diff --git a/package-lock.json b/package-lock.json index 1e267c4172..2123f047ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@headlessui/react": "^1.7.19", "@headlessui/tailwindcss": "^0.2.0", "@hookform/resolvers": "^3.3.4", - "@inkeep/widgets": "^0.2.275", + "@inkeep/uikit": "^0.3.8", "@next/bundle-analyzer": "^14.2.2", "@octokit/core": "^6.1.2", "@radix-ui/react-dialog": "^1.0.5", @@ -3478,21 +3478,64 @@ "dev": true, "license": "BSD-3-Clause" }, - "node_modules/@inkeep/color-mode": { - "version": "0.0.23", + "node_modules/@inkeep/uikit": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@inkeep/uikit/-/uikit-0.3.8.tgz", + "integrity": "sha512-PjMplnBheJlVznyNi9YoXYUOi95tmC+gi22/kBL4mvB/5LKpLYIVMqOE0vJF41MDylr2Bj1Fkk02a64DEUk9EQ==", + "dependencies": { + "@apollo/client": "^3.8.1", + "@ark-ui/react": "^0.15.0", + "@inkeep/color-mode": "^0.1.2", + "@inkeep/components": "^0.1.2", + "@inkeep/preset": "^0.1.2", + "@inkeep/preset-chakra": "^0.1.2", + "@inkeep/shared": "^0.1.2", + "@inkeep/styled-system": "^0.1.7", + "@radix-ui/react-scroll-area": "^1.1.0", + "@types/lodash.isequal": "^4.5.7", + "graphql": "^16.8.1", + "graphql-ws": "^5.14.0", + "html-react-parser": "^3.0.16", + "humps": "^2.0.1", + "lodash.isequal": "^4.5.0", + "prism-react-renderer": "^2.1.0", + "prismjs": "^1.29.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-error-boundary": "^4.0.11", + "react-hook-form": "^7.50.1", + "react-hotkeys-hook": "^4.4.1", + "react-icons": "^4.10.1", + "react-markdown": "^8.0.7", + "react-svg": "^16.1.33", + "react-textarea-autosize": "^8.5.3", + "rehype-raw": "^6.1.1", + "xregexp": "^5.1.1" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + }, + "node_modules/@inkeep/uikit/node_modules/@inkeep/color-mode": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@inkeep/color-mode/-/color-mode-0.1.2.tgz", + "integrity": "sha512-2LV001r8DXHRCBxBzO/2GKiwzcf1KQkVdu0RWAXixhyDhPiiHsITljwDAvtSCrFdsZJRdz1lG9/8KFiMltl3Yg==", "peerDependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" } }, - "node_modules/@inkeep/components": { - "version": "0.0.23", + "node_modules/@inkeep/uikit/node_modules/@inkeep/components": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@inkeep/components/-/components-0.1.2.tgz", + "integrity": "sha512-plo3+T1eMq5Fr0pEz8O79/WsvkJUPBaG2oB1SwypAMpkkMKspee/I1e6gDaCHSMswuTnTeakhTqfnUmUxyRhDA==", "dependencies": { "@ark-ui/react": "^0.15.0", - "@inkeep/preset": "^0.0.23", - "@inkeep/preset-chakra": "^0.0.23", - "@inkeep/shared": "^0.0.24", - "@inkeep/styled-system": "^0.0.37", + "@inkeep/preset": "^0.1.2", + "@inkeep/preset-chakra": "^0.1.2", + "@inkeep/shared": "^0.1.2", + "@inkeep/styled-system": "^0.1.7", "@pandacss/dev": "^0.22.0", "framer-motion": "^10.16.1" }, @@ -3502,12 +3545,42 @@ "react-dom": "^18.2.0" } }, - "node_modules/@inkeep/components/node_modules/@inkeep/styled-system": { - "version": "0.0.37" + "node_modules/@inkeep/uikit/node_modules/@inkeep/preset": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@inkeep/preset/-/preset-0.1.2.tgz", + "integrity": "sha512-GGGRAK5J74VknCid33a/P1sdfUsfS7zmHdwcKZaHcF0wqPSBaTlPqSCZe9T8mDblEni+X/Hty4SBt5ksuF+MQA==", + "dependencies": { + "@ark-ui/anatomy": "^0.1.0", + "@inkeep/preset-chakra": "^0.1.2", + "@inkeep/shared": "^0.1.2", + "@pandacss/dev": "^0.22.0", + "colorjs.io": "^0.4.5" + } + }, + "node_modules/@inkeep/uikit/node_modules/@inkeep/preset-chakra": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@inkeep/preset-chakra/-/preset-chakra-0.1.2.tgz", + "integrity": "sha512-h/oYVDTP1rk8ANsvLoO3LnrCk5tu/SAqQnpidGzHfSemrmYMCkiagPvRJpanU//Q2dQ4RZMZFey6yONw2zXnjA==", + "dependencies": { + "@ark-ui/anatomy": "^0.1.0", + "@inkeep/shared": "^0.1.2", + "@pandacss/dev": "^0.22.0" + } }, - "node_modules/@inkeep/components/node_modules/framer-motion": { + "node_modules/@inkeep/uikit/node_modules/@inkeep/shared": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@inkeep/shared/-/shared-0.1.2.tgz", + "integrity": "sha512-xrWvwdmS//fL9Bgk5t5xiuWUOnHgv9Jf4nSTv4pQSeEzmOXT2TJ6UDeG2IHTMYn/hK3StlKFR3nwopZ4bFGmXA==" + }, + "node_modules/@inkeep/uikit/node_modules/@inkeep/styled-system": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/@inkeep/styled-system/-/styled-system-0.1.7.tgz", + "integrity": "sha512-zJcOTD0WT+YSGgCcZcs7vpnKlSbZpgKBixzdWz08mFRgV2ryzD9Th1W1B00ZQ8NTqXCyNIRVaNUz5LAoLPWv9Q==" + }, + "node_modules/@inkeep/uikit/node_modules/framer-motion": { "version": "10.18.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.18.0.tgz", + "integrity": "sha512-oGlDh1Q1XqYPksuTD/usb0I70hq95OUzmL9+6Zd+Hs4XV0oaISBa/UUMSjYiq6m8EUF32132mOJ8xVZS+I0S6w==", "dependencies": { "tslib": "^2.4.0" }, @@ -3527,78 +3600,19 @@ } } }, - "node_modules/@inkeep/preset": { - "version": "0.0.23", - "dependencies": { - "@ark-ui/anatomy": "^0.1.0", - "@inkeep/preset-chakra": "^0.0.23", - "@inkeep/shared": "^0.0.24", - "@pandacss/dev": "^0.22.0", - "colorjs.io": "^0.4.5" - } - }, - "node_modules/@inkeep/preset-chakra": { - "version": "0.0.23", - "dependencies": { - "@ark-ui/anatomy": "^0.1.0", - "@inkeep/shared": "^0.0.24", - "@pandacss/dev": "^0.22.0" - } - }, - "node_modules/@inkeep/shared": { - "version": "0.0.24" - }, - "node_modules/@inkeep/styled-system": { - "version": "0.0.42" - }, - "node_modules/@inkeep/widgets": { - "version": "0.2.278", - "license": "SEE LICENSE IN LICENSE", - "dependencies": { - "@apollo/client": "^3.8.1", - "@ark-ui/react": "^0.15.0", - "@inkeep/color-mode": "^0.0.23", - "@inkeep/components": "^0.0.23", - "@inkeep/preset": "^0.0.23", - "@inkeep/preset-chakra": "^0.0.23", - "@inkeep/shared": "^0.0.24", - "@inkeep/styled-system": "^0.0.42", - "@types/lodash.isequal": "^4.5.7", - "graphql": "^16.8.1", - "graphql-ws": "^5.14.0", - "html-react-parser": "^3.0.16", - "lodash.isequal": "^4.5.0", - "prism-react-renderer": "^2.1.0", - "prismjs": "^1.29.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-error-boundary": "^4.0.11", - "react-hook-form": "^7.50.1", - "react-hotkeys-hook": "^4.4.1", - "react-icons": "^4.10.1", - "react-markdown": "^8.0.7", - "react-shadow": "^20.4.0", - "react-svg": "^16.1.33", - "react-textarea-autosize": "^8.5.3", - "rehype-raw": "^6.1.1", - "xregexp": "^5.1.1" - }, - "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" - } - }, - "node_modules/@inkeep/widgets/node_modules/html-dom-parser": { + "node_modules/@inkeep/uikit/node_modules/html-dom-parser": { "version": "3.1.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-3.1.7.tgz", + "integrity": "sha512-cDgNF4YgF6J3H+d9mcldGL19p0GzVdS3iGuDNzYWQpU47q3+IRM85X3Xo07E+nntF4ek4s78A9V24EwxlPTjig==", "dependencies": { "domhandler": "5.0.3", "htmlparser2": "8.0.2" } }, - "node_modules/@inkeep/widgets/node_modules/html-react-parser": { + "node_modules/@inkeep/uikit/node_modules/html-react-parser": { "version": "3.0.16", - "license": "MIT", + "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-3.0.16.tgz", + "integrity": "sha512-ysQZtRFPcg+McVb4B05oNWSnqM14zagpvTgGcI5e1/BvCl38YwzWzKibrbBmXeemg70olN1bAoeixo7o06G5Eg==", "dependencies": { "domhandler": "5.0.3", "html-dom-parser": "3.1.7", @@ -3609,8 +3623,10 @@ "react": "0.14 || 15 || 16 || 17 || 18" } }, - "node_modules/@inkeep/widgets/node_modules/htmlparser2": { + "node_modules/@inkeep/uikit/node_modules/htmlparser2": { "version": "8.0.2", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", + "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", { @@ -3618,7 +3634,6 @@ "url": "https://github.com/sponsors/fb55" } ], - "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", @@ -3626,20 +3641,23 @@ "entities": "^4.4.0" } }, - "node_modules/@inkeep/widgets/node_modules/react-property": { + "node_modules/@inkeep/uikit/node_modules/react-property": { "version": "2.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/react-property/-/react-property-2.0.0.tgz", + "integrity": "sha512-kzmNjIgU32mO4mmH5+iUyrqlpFQhF8K2k7eZ4fdLSOPFrD1XgEuSBv9LDEgxRXTMBqMd8ppT0x6TIzqE5pdGdw==" }, - "node_modules/@inkeep/widgets/node_modules/style-to-js": { + "node_modules/@inkeep/uikit/node_modules/style-to-js": { "version": "1.1.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.3.tgz", + "integrity": "sha512-zKI5gN/zb7LS/Vm0eUwjmjrXWw8IMtyA8aPBJZdYiQTXj4+wQ3IucOLIOnF7zCHxvW8UhIGh/uZh/t9zEHXNTQ==", "dependencies": { "style-to-object": "0.4.1" } }, - "node_modules/@inkeep/widgets/node_modules/style-to-object": { + "node_modules/@inkeep/uikit/node_modules/style-to-object": { "version": "0.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz", + "integrity": "sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==", "dependencies": { "inline-style-parser": "0.1.1" } @@ -4389,6 +4407,11 @@ "version": "1.0.0-next.25", "license": "MIT" }, + "node_modules/@radix-ui/number": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.0.tgz", + "integrity": "sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==" + }, "node_modules/@radix-ui/primitive": { "version": "1.0.1", "license": "MIT", @@ -4463,6 +4486,20 @@ } } }, + "node_modules/@radix-ui/react-direction": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.0.tgz", + "integrity": "sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-dismissable-layer": { "version": "1.0.5", "license": "MIT", @@ -4613,6 +4650,159 @@ } } }, + "node_modules/@radix-ui/react-scroll-area": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.1.0.tgz", + "integrity": "sha512-9ArIZ9HWhsrfqS765h+GZuLoxaRHD/j0ZWOWilsCvYTpYJp8XwCqNG7Dt9Nu/TItKOdgLGkOPCodQvDc+UMwYg==", + "dependencies": { + "@radix-ui/number": "1.1.0", + "@radix-ui/primitive": "1.1.0", + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-context": "1.1.0", + "@radix-ui/react-direction": "1.1.0", + "@radix-ui/react-presence": "1.1.0", + "@radix-ui/react-primitive": "2.0.0", + "@radix-ui/react-use-callback-ref": "1.1.0", + "@radix-ui/react-use-layout-effect": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.0.tgz", + "integrity": "sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==" + }, + "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.0.tgz", + "integrity": "sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.0.tgz", + "integrity": "sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.0.tgz", + "integrity": "sha512-Gq6wuRN/asf9H/E/VzdKoUtT8GC9PQc9z40/vEr0VCJ4u5XvvhWIrSsCB6vD2/cH7ugTdSfYq9fLJCcM00acrQ==", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-use-layout-effect": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.0.0.tgz", + "integrity": "sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==", + "dependencies": { + "@radix-ui/react-slot": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.1.0.tgz", + "integrity": "sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.0.tgz", + "integrity": "sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.0.tgz", + "integrity": "sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-slot": { "version": "1.0.2", "license": "MIT", @@ -18165,18 +18355,6 @@ "react-dom": "^15.5.4 || ^16.0.0 || ^17.0.0 || ^18.0.0" } }, - "node_modules/react-shadow": { - "version": "20.4.0", - "license": "MIT", - "dependencies": { - "humps": "^2.0.1" - }, - "peerDependencies": { - "prop-types": "^15.0.0", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0" - } - }, "node_modules/react-share": { "version": "5.1.0", "license": "MIT", diff --git a/package.json b/package.json index ce065cb3cb..c6edc5d509 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@headlessui/react": "^1.7.19", "@headlessui/tailwindcss": "^0.2.0", "@hookform/resolvers": "^3.3.4", - "@inkeep/widgets": "^0.2.275", + "@inkeep/uikit": "^0.3.8", "@next/bundle-analyzer": "^14.2.2", "@octokit/core": "^6.1.2", "@radix-ui/react-dialog": "^1.0.5", diff --git a/src/components/pages/doc/inkeep-trigger/images/close.svg b/src/components/pages/doc/inkeep-trigger/images/close.svg deleted file mode 100644 index b372956cf0..0000000000 --- a/src/components/pages/doc/inkeep-trigger/images/close.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/components/pages/doc/inkeep-trigger/images/example.inline.svg b/src/components/pages/doc/inkeep-trigger/images/example.inline.svg deleted file mode 100644 index 394e33d753..0000000000 --- a/src/components/pages/doc/inkeep-trigger/images/example.inline.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/src/components/pages/doc/inkeep-trigger/images/sparks.inline.svg b/src/components/pages/doc/inkeep-trigger/images/sparks.inline.svg deleted file mode 100644 index b0ca3963b8..0000000000 --- a/src/components/pages/doc/inkeep-trigger/images/sparks.inline.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/src/components/pages/doc/inkeep-trigger/images/user.inline.svg b/src/components/pages/doc/inkeep-trigger/images/user.inline.svg deleted file mode 100644 index a75f119818..0000000000 --- a/src/components/pages/doc/inkeep-trigger/images/user.inline.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/components/pages/doc/inkeep-trigger/index.js b/src/components/pages/doc/inkeep-trigger/index.js deleted file mode 100644 index 7f773c215c..0000000000 --- a/src/components/pages/doc/inkeep-trigger/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import InkeepTrigger from './inkeep-trigger'; - -export default InkeepTrigger; diff --git a/src/components/pages/doc/inkeep-trigger/inkeep-trigger.jsx b/src/components/pages/doc/inkeep-trigger/inkeep-trigger.jsx deleted file mode 100644 index 2e6fdff1c0..0000000000 --- a/src/components/pages/doc/inkeep-trigger/inkeep-trigger.jsx +++ /dev/null @@ -1,135 +0,0 @@ -'use client'; - -import clsx from 'clsx'; -import dynamic from 'next/dynamic'; -import { useTheme } from 'next-themes'; -import PropTypes from 'prop-types'; -import { useState, useCallback } from 'react'; - -import closeIcon from './images/close.svg'; -import ExampleIcon from './images/example.inline.svg'; -import SparksIcon from './images/sparks.inline.svg'; - -const InkeepCustomTrigger = dynamic( - () => import('@inkeep/widgets').then((mod) => mod.InkeepCustomTrigger), - { ssr: false } -); - -const baseSettings = { - apiKey: process.env.INKEEP_INTEGRATION_API_KEY, - integrationId: process.env.INKEEP_INTEGRATION_ID, - organizationId: process.env.INKEEP_ORGANIZATION_ID, - primaryBrandColor: '#00E599', - organizationDisplayName: 'Neon', - customIcons: { - close: { custom: closeIcon }, - }, -}; - -const aiChatSettings = { - botName: 'Neon AI', - placeholder: 'How can I help you?', - quickQuestionsLabel: 'Examples', - quickQuestions: [ - 'What’s Neon?', - 'How do I sign up for Neon?', - 'How to create a project?', - 'How to get started with the Neon API?', - ], - botAvatarSrcUrl: '/inkeep/images/example.svg', - botAvatarDarkSrcUrl: '/inkeep/images/example.svg', - userAvatarSrcUrl: '/inkeep/images/user.svg', -}; - -const InkeepTrigger = ({ className, isSidebar }) => { - const [isOpen, setIsOpen] = useState(false); - const { theme, systemTheme } = useTheme(); - - const handleClose = useCallback(() => { - setIsOpen(false); - }, []); - - const inkeepCustomTriggerProps = { - isOpen, - onClose: handleClose, - stylesheetUrls: ['/inkeep/css/inkeep-chat.css'], - baseSettings: { - ...baseSettings, - colorMode: { - forcedColorMode: theme === 'system' ? systemTheme : theme, - }, - }, - aiChatSettings, - modalSettings: { - defaultView: 'AI_CHAT', - }, - }; - - const handleClick = () => { - setIsOpen(!isOpen); - }; - - return ( - <> - - - - ); -}; - -InkeepTrigger.propTypes = { - className: PropTypes.string, - isSidebar: PropTypes.bool, -}; - -export default InkeepTrigger; diff --git a/src/components/pages/doc/mobile-nav/mobile-nav.jsx b/src/components/pages/doc/mobile-nav/mobile-nav.jsx index 2881494e72..6ee262cc98 100644 --- a/src/components/pages/doc/mobile-nav/mobile-nav.jsx +++ b/src/components/pages/doc/mobile-nav/mobile-nav.jsx @@ -13,7 +13,6 @@ import useClickOutside from 'hooks/use-click-outside'; import useWindowSize from 'hooks/use-window-size'; import ChevronRight from 'icons/chevron-right.inline.svg'; -import InkeepTrigger from '../inkeep-trigger'; import { sidebarPropTypes } from '../sidebar/sidebar'; const ANIMATION_DURATION = 0.2; @@ -118,23 +117,20 @@ const MobileNav = ({ className = null, sidebar, basePath, isPostgres = false }) style={{ height: containerHeight }} > {!isPostgres && ( - <> - - - + )}