@inkeep/agents-ui 0.1.0 → 0.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +64 -0
- package/README.md +1 -67
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/color-mode/index.cjs +1 -0
- package/dist/color-mode/index.js +170 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +5093 -0
- package/dist/index.d.ts +5093 -0
- package/dist/index.js +213 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
- package/dist/primitives/atoms/avatars/ai.cjs +1 -0
- package/dist/primitives/atoms/avatars/ai.js +99 -0
- package/dist/primitives/atoms/avatars/user.cjs +1 -0
- package/dist/primitives/atoms/avatars/user.js +27 -0
- package/dist/primitives/atoms/cmdk/command-score.cjs +1 -0
- package/dist/primitives/atoms/cmdk/command-score.js +46 -0
- package/dist/primitives/atoms/cmdk/index.cjs +1 -0
- package/dist/primitives/atoms/cmdk/index.js +521 -0
- package/dist/primitives/atoms/codeblock/index.cjs +1 -0
- package/dist/primitives/atoms/codeblock/index.js +40 -0
- package/dist/primitives/atoms/custom-styles.cjs +1 -0
- package/dist/primitives/atoms/custom-styles.js +57 -0
- package/dist/primitives/atoms/dialog.cjs +1 -0
- package/dist/primitives/atoms/dialog.js +226 -0
- package/dist/primitives/atoms/error-boundary.cjs +1 -0
- package/dist/primitives/atoms/error-boundary.js +9 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.js +51 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icons.js +86 -0
- package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/checkbox-icon.js +24 -0
- package/dist/primitives/atoms/icons/collections/bi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/bi.js +49 -0
- package/dist/primitives/atoms/icons/collections/fi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/fi.js +29 -0
- package/dist/primitives/atoms/icons/collections/gr.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/gr.js +21 -0
- package/dist/primitives/atoms/icons/collections/io5.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/io5.js +806 -0
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/pi.js +49 -0
- package/dist/primitives/atoms/icons/custom-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/custom-icon.js +19 -0
- package/dist/primitives/atoms/icons/generate-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/generate-icon.js +56 -0
- package/dist/primitives/atoms/icons/index.cjs +1 -0
- package/dist/primitives/atoms/icons/index.js +6 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +24 -0
- package/dist/primitives/atoms/link.cjs +1 -0
- package/dist/primitives/atoms/link.js +35 -0
- package/dist/primitives/atoms/markdown/components.cjs +1 -0
- package/dist/primitives/atoms/markdown/components.js +73 -0
- package/dist/primitives/atoms/markdown/index.cjs +1 -0
- package/dist/primitives/atoms/markdown/index.js +115 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.cjs +1 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.js +12 -0
- package/dist/primitives/atoms/portal-with-theme.cjs +1 -0
- package/dist/primitives/atoms/portal-with-theme.js +12 -0
- package/dist/primitives/atoms/portal.cjs +1 -0
- package/dist/primitives/atoms/portal.js +19 -0
- package/dist/primitives/atoms/select.cjs +1 -0
- package/dist/primitives/atoms/select.js +785 -0
- package/dist/primitives/atoms/shadow/context.cjs +1 -0
- package/dist/primitives/atoms/shadow/context.js +54 -0
- package/dist/primitives/atoms/shadow/create.cjs +1 -0
- package/dist/primitives/atoms/shadow/create.js +56 -0
- package/dist/primitives/atoms/shadow/root.cjs +1 -0
- package/dist/primitives/atoms/shadow/root.js +22 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
- package/dist/primitives/atoms/shadow/utils.cjs +1 -0
- package/dist/primitives/atoms/shadow/utils.js +16 -0
- package/dist/primitives/components/chat-button.cjs +1 -0
- package/dist/primitives/components/chat-button.js +46 -0
- package/dist/primitives/components/embedded-chat/chat-provider.cjs +1 -0
- package/dist/primitives/components/embedded-chat/chat-provider.js +20 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.js +38 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +160 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +82 -0
- package/dist/primitives/components/embedded-chat.cjs +11 -0
- package/dist/primitives/components/embedded-chat.js +1898 -0
- package/dist/primitives/components/embedded-search/search-provider.cjs +1 -0
- package/dist/primitives/components/embedded-search/search-provider.js +26 -0
- package/dist/primitives/components/embedded-search/transform-results.cjs +1 -0
- package/dist/primitives/components/embedded-search/transform-results.js +47 -0
- package/dist/primitives/components/embedded-search/url-query.cjs +1 -0
- package/dist/primitives/components/embedded-search/url-query.js +12 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.js +35 -0
- package/dist/primitives/components/embedded-search/use-search-filter.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-search-filter.js +77 -0
- package/dist/primitives/components/embedded-search.cjs +1 -0
- package/dist/primitives/components/embedded-search.js +628 -0
- package/dist/primitives/components/factory.cjs +1 -0
- package/dist/primitives/components/factory.js +39 -0
- package/dist/primitives/components/index.cjs +1 -0
- package/dist/primitives/components/index.js +27 -0
- package/dist/primitives/components/modal/modal-provider.cjs +1 -0
- package/dist/primitives/components/modal/modal-provider.js +8 -0
- package/dist/primitives/components/modal/use-inkeep-modal.cjs +1 -0
- package/dist/primitives/components/modal/use-inkeep-modal.js +45 -0
- package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -0
- package/dist/primitives/components/modal/widget-auto-focus.js +16 -0
- package/dist/primitives/components/modal.cjs +1 -0
- package/dist/primitives/components/modal.js +40 -0
- package/dist/primitives/components/presence.cjs +1 -0
- package/dist/primitives/components/presence.js +26 -0
- package/dist/primitives/components/searchbar.cjs +1 -0
- package/dist/primitives/components/searchbar.js +54 -0
- package/dist/primitives/components/sidebar-chat/index.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/index.js +86 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.js +34 -0
- package/dist/primitives/components/tagline-logo-icon.cjs +1 -0
- package/dist/primitives/components/tagline-logo-icon.js +26 -0
- package/dist/primitives/components/use-component-trigger.cjs +1 -0
- package/dist/primitives/components/use-component-trigger.js +16 -0
- package/dist/primitives/constants/search.cjs +1 -0
- package/dist/primitives/constants/search.js +5 -0
- package/dist/primitives/hooks/index.cjs +1 -0
- package/dist/primitives/hooks/index.js +24 -0
- package/dist/primitives/hooks/use-boolean.cjs +1 -0
- package/dist/primitives/hooks/use-boolean.js +17 -0
- package/dist/primitives/hooks/use-component-classnames.cjs +1 -0
- package/dist/primitives/hooks/use-component-classnames.js +14 -0
- package/dist/primitives/hooks/use-container-size.cjs +1 -0
- package/dist/primitives/hooks/use-container-size.js +18 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.cjs +1 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.js +24 -0
- package/dist/primitives/hooks/use-debounce.cjs +1 -0
- package/dist/primitives/hooks/use-debounce.js +16 -0
- package/dist/primitives/hooks/use-instant-update.cjs +1 -0
- package/dist/primitives/hooks/use-instant-update.js +16 -0
- package/dist/primitives/hooks/use-is-mounted.cjs +1 -0
- package/dist/primitives/hooks/use-is-mounted.js +11 -0
- package/dist/primitives/hooks/use-media-query.cjs +1 -0
- package/dist/primitives/hooks/use-media-query.js +14 -0
- package/dist/primitives/hooks/use-resize-observer.cjs +1 -0
- package/dist/primitives/hooks/use-resize-observer.js +32 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.cjs +1 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.js +52 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.js +18 -0
- package/dist/primitives/hooks/use-settle-action.cjs +1 -0
- package/dist/primitives/hooks/use-settle-action.js +11 -0
- package/dist/primitives/index.cjs +1 -0
- package/dist/primitives/index.js +155 -0
- package/dist/primitives/providers/attachment-item-provider.cjs +1 -0
- package/dist/primitives/providers/attachment-item-provider.js +13 -0
- package/dist/primitives/providers/attachments-bar-provider.cjs +1 -0
- package/dist/primitives/providers/attachments-bar-provider.js +57 -0
- package/dist/primitives/providers/base-events-provider.cjs +1 -0
- package/dist/primitives/providers/base-events-provider.js +37 -0
- package/dist/primitives/providers/chat-form-provider.cjs +1 -0
- package/dist/primitives/providers/chat-form-provider.js +109 -0
- package/dist/primitives/providers/config-provider.cjs +1 -0
- package/dist/primitives/providers/config-provider.js +38 -0
- package/dist/primitives/providers/feedback-item-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-item-provider.js +16 -0
- package/dist/primitives/providers/feedback-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-provider.js +83 -0
- package/dist/primitives/providers/form-field-provider.cjs +1 -0
- package/dist/primitives/providers/form-field-provider.js +17 -0
- package/dist/primitives/providers/help-menu-provider.cjs +1 -0
- package/dist/primitives/providers/help-menu-provider.js +19 -0
- package/dist/primitives/providers/hover-popover-provider.cjs +1 -0
- package/dist/primitives/providers/hover-popover-provider.js +13 -0
- package/dist/primitives/providers/index.cjs +1 -0
- package/dist/primitives/providers/index.js +57 -0
- package/dist/primitives/providers/markdown-provider.cjs +1 -0
- package/dist/primitives/providers/markdown-provider.js +8 -0
- package/dist/primitives/providers/message-attachments-provider.cjs +1 -0
- package/dist/primitives/providers/message-attachments-provider.js +27 -0
- package/dist/primitives/providers/message-provider.cjs +1 -0
- package/dist/primitives/providers/message-provider.js +14 -0
- package/dist/primitives/providers/root-provider.cjs +1 -0
- package/dist/primitives/providers/root-provider.js +21 -0
- package/dist/primitives/providers/search-events-provider.cjs +1 -0
- package/dist/primitives/providers/search-events-provider.js +17 -0
- package/dist/primitives/providers/sidebar-chat-provider.cjs +1 -0
- package/dist/primitives/providers/sidebar-chat-provider.js +41 -0
- package/dist/primitives/providers/source-item-provider.cjs +1 -0
- package/dist/primitives/providers/source-item-provider.js +13 -0
- package/dist/primitives/providers/theme-provider.cjs +3 -0
- package/dist/primitives/providers/theme-provider.js +79 -0
- package/dist/primitives/providers/widget-provider.cjs +1 -0
- package/dist/primitives/providers/widget-provider.js +8 -0
- package/dist/primitives/utils/component-ids.cjs +1 -0
- package/dist/primitives/utils/component-ids.js +309 -0
- package/dist/primitives/utils/compose-event-handlers.cjs +1 -0
- package/dist/primitives/utils/compose-event-handlers.js +10 -0
- package/dist/primitives/utils/compose-refs.cjs +1 -0
- package/dist/primitives/utils/compose-refs.js +30 -0
- package/dist/primitives/utils/default-settings.cjs +1 -0
- package/dist/primitives/utils/default-settings.js +50 -0
- package/dist/primitives/utils/form.cjs +1 -0
- package/dist/primitives/utils/form.js +17 -0
- package/dist/primitives/utils/generate-uid.cjs +1 -0
- package/dist/primitives/utils/generate-uid.js +14 -0
- package/dist/primitives/utils/get-source-icon.cjs +1 -0
- package/dist/primitives/utils/get-source-icon.js +11 -0
- package/dist/primitives/utils/highlight-emphasis.cjs +1 -0
- package/dist/primitives/utils/highlight-emphasis.js +15 -0
- package/dist/primitives/utils/merge-props.cjs +1 -0
- package/dist/primitives/utils/merge-props.js +41 -0
- package/dist/primitives/utils/misc.cjs +1 -0
- package/dist/primitives/utils/misc.js +31 -0
- package/dist/primitives/utils/split-props.cjs +1 -0
- package/dist/primitives/utils/split-props.js +10 -0
- package/dist/react/chat-button.cjs +1 -0
- package/dist/react/chat-button.js +60 -0
- package/dist/react/embedded-chat.cjs +1 -0
- package/dist/react/embedded-chat.js +380 -0
- package/dist/react/embedded-search-and-chat.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.js +43 -0
- package/dist/react/embedded-search-and-chat.js +66 -0
- package/dist/react/embedded-search.cjs +1 -0
- package/dist/react/embedded-search.js +181 -0
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.js +213 -0
- package/dist/react/modal.chat.cjs +1 -0
- package/dist/react/modal.chat.js +21 -0
- package/dist/react/modal.cjs +1 -0
- package/dist/react/modal.js +27 -0
- package/dist/react/modal.search-and-chat.cjs +1 -0
- package/dist/react/modal.search-and-chat.js +27 -0
- package/dist/react/modal.search.cjs +1 -0
- package/dist/react/modal.search.js +21 -0
- package/dist/react/searchbar.cjs +1 -0
- package/dist/react/searchbar.js +68 -0
- package/dist/react/sidebar-chat.cjs +1 -0
- package/dist/react/sidebar-chat.js +49 -0
- package/dist/react/utils.cjs +1 -0
- package/dist/react/utils.js +20 -0
- package/dist/react/widget-toggle.cjs +1 -0
- package/dist/react/widget-toggle.js +65 -0
- package/dist/styled/components/chat-button.cjs +1 -0
- package/dist/styled/components/chat-button.js +56 -0
- package/dist/styled/components/data-summary-group.cjs +1 -0
- package/dist/styled/components/data-summary-group.js +76 -0
- package/dist/styled/components/embedded-chat.cjs +1 -0
- package/dist/styled/components/embedded-chat.js +1816 -0
- package/dist/styled/components/embedded-search/results-loading.cjs +1 -0
- package/dist/styled/components/embedded-search/results-loading.js +39 -0
- package/dist/styled/components/embedded-search.cjs +1 -0
- package/dist/styled/components/embedded-search.js +680 -0
- package/dist/styled/components/index.cjs +1 -0
- package/dist/styled/components/index.js +24 -0
- package/dist/styled/components/loading-indicator.cjs +1 -0
- package/dist/styled/components/loading-indicator.js +36 -0
- package/dist/styled/components/message.cjs +1 -0
- package/dist/styled/components/message.js +140 -0
- package/dist/styled/components/modal.cjs +1 -0
- package/dist/styled/components/modal.js +46 -0
- package/dist/styled/components/searchbar.cjs +1 -0
- package/dist/styled/components/searchbar.js +81 -0
- package/dist/styled/components/shadow.cjs +1 -0
- package/dist/styled/components/shadow.js +8 -0
- package/dist/styled/components/sidebar-chat.cjs +1 -0
- package/dist/styled/components/sidebar-chat.js +90 -0
- package/dist/styled/components/ui/markdown-styles.cjs +1 -0
- package/dist/styled/components/ui/markdown-styles.js +38 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.js +32 -0
- package/dist/styled/components/ui/recipes/attachment.cjs +1 -0
- package/dist/styled/components/ui/recipes/attachment.js +28 -0
- package/dist/styled/components/ui/recipes/button.cjs +1 -0
- package/dist/styled/components/ui/recipes/button.js +81 -0
- package/dist/styled/components/ui/recipes/checkbox.cjs +1 -0
- package/dist/styled/components/ui/recipes/checkbox.js +23 -0
- package/dist/styled/components/ui/recipes/citation.cjs +1 -0
- package/dist/styled/components/ui/recipes/citation.js +75 -0
- package/dist/styled/components/ui/recipes/icon.cjs +1 -0
- package/dist/styled/components/ui/recipes/icon.js +6 -0
- package/dist/styled/components/ui/recipes/index.cjs +1 -0
- package/dist/styled/components/ui/recipes/index.js +37 -0
- package/dist/styled/components/ui/recipes/input.cjs +1 -0
- package/dist/styled/components/ui/recipes/input.js +34 -0
- package/dist/styled/components/ui/recipes/link.cjs +1 -0
- package/dist/styled/components/ui/recipes/link.js +13 -0
- package/dist/styled/components/ui/recipes/markdown.cjs +1 -0
- package/dist/styled/components/ui/recipes/markdown.js +103 -0
- package/dist/styled/components/ui/recipes/modal.cjs +1 -0
- package/dist/styled/components/ui/recipes/modal.js +59 -0
- package/dist/styled/components/ui/recipes/popover.cjs +1 -0
- package/dist/styled/components/ui/recipes/popover.js +20 -0
- package/dist/styled/components/ui/recipes/scrollable.cjs +1 -0
- package/dist/styled/components/ui/recipes/scrollable.js +15 -0
- package/dist/styled/components/ui/recipes/select.cjs +1 -0
- package/dist/styled/components/ui/recipes/select.js +38 -0
- package/dist/styled/components/ui/recipes/skeleton.cjs +1 -0
- package/dist/styled/components/ui/recipes/skeleton.js +16 -0
- package/dist/styled/components/ui/recipes/widget-toggle.cjs +1 -0
- package/dist/styled/components/ui/recipes/widget-toggle.js +35 -0
- package/dist/styled/index.cjs +1 -0
- package/dist/styled/index.js +177 -0
- package/dist/styled/inkeep.css.cjs +4049 -0
- package/dist/styled/inkeep.css.js +4053 -0
- package/dist/styled/utils.cjs +1 -0
- package/dist/styled/utils.js +11 -0
- package/dist/theme/color-utils.cjs +1 -0
- package/dist/theme/color-utils.js +21 -0
- package/dist/theme/colors.cjs +1 -0
- package/dist/theme/colors.js +143 -0
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.js +58 -0
- package/dist/theme/utils/create-css-variables.cjs +1 -0
- package/dist/theme/utils/create-css-variables.js +24 -0
- package/dist/theme/utils/generate-theme-variables.cjs +1 -0
- package/dist/theme/utils/generate-theme-variables.js +34 -0
- package/dist/types/message.cjs +1 -0
- package/dist/types/message.js +5 -0
- package/dist/types/types.d.cts +1754 -0
- package/dist/types/types.d.ts +1754 -0
- package/package.json +132 -39
- package/LICENSE.md +0 -51
- package/dist/assets/index-3anqgmEs.js +0 -49
- package/dist/assets/index-CF_BRP1w.css +0 -1
- package/dist/index.html +0 -14
package/LICENSE
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Inkeep, Inc. Customer License (IICL) v1.1
|
|
2
|
+
|
|
3
|
+
This license agreement ("Agreement") is a legal agreement between you (either an individual or a
|
|
4
|
+
single entity) and Inkeep, Inc. ("Inkeep") for the npm React component package `widgets` (the
|
|
5
|
+
"Software"). By installing, copying, or otherwise using the Software, you agree to be bound by the
|
|
6
|
+
terms of this Agreement.
|
|
7
|
+
|
|
8
|
+
1. Grant of License
|
|
9
|
+
Subject to the terms of this Agreement, Inkeep grants you a non-exclusive, non-transferable, limited license to install, copy, and use the Software solely for the purpose of serving Inkeep's search and chat services to your own end-users or employees. This license is applicable only as an Inkeep customer, and must be in accordance with Inkeep's search and chat service (the "Service"). You are not permitted to use the Software to act as a reseller, distributor, or vendor to provide Inkeep's search and chat services to third-party customers or use the Software with other search and chat services. The Software may only be used to serve your own end-users or employees.
|
|
10
|
+
|
|
11
|
+
2. Modification and Extension
|
|
12
|
+
As an Inkeep customer, you are granted the right to modify and extend the Software for your internal business purposes, provided that such modifications and extensions are used solely in conjunction with the Service.
|
|
13
|
+
|
|
14
|
+
3. Restrictions
|
|
15
|
+
a) You may not reverse engineer, decompile, or disassemble the Software.
|
|
16
|
+
b) You may not distribute or make the Software available to any third parties.
|
|
17
|
+
c) You may not sublicense, rent, lease, or lend the Software.
|
|
18
|
+
d) You may not use the Software or any modifications or extensions thereof with any search and chat services other than the Service.
|
|
19
|
+
e) You may not use the Software if you are not an Inkeep customer.
|
|
20
|
+
|
|
21
|
+
4. Termination
|
|
22
|
+
This Agreement will terminate automatically if you fail to comply with any of the terms and conditions of this Agreement or if you cease to be an Inkeep customer. Upon termination, you must destroy all copies of the Software, including any modifications or extensions.
|
|
23
|
+
|
|
24
|
+
5. Copyright The Software is protected by copyright laws and international copyright treaties, as
|
|
25
|
+
well as other intellectual property laws and treaties. All title, copyright, and other
|
|
26
|
+
intellectual property rights in and to the Software are owned by Inkeep or its licensors.
|
|
27
|
+
|
|
28
|
+
6. No Warranties Inkeep expressly disclaims any warranty for the Software. The Software is provided
|
|
29
|
+
"as is" without any express or implied warranty of any kind, including but not limited to any
|
|
30
|
+
warranties of merchantability, non-infringement, or fitness for a particular purpose.
|
|
31
|
+
|
|
32
|
+
7. Limitation of Liability In no event shall Inkeep or its licensors be liable for any damages
|
|
33
|
+
whatsoever (including, without limitation, damages for loss of business profits, business
|
|
34
|
+
interruption, loss of business information, or any other pecuniary loss) arising out of the use
|
|
35
|
+
of or inability to use the Software, even if Inkeep has been advised of the possibility of such
|
|
36
|
+
damages.
|
|
37
|
+
|
|
38
|
+
8. Governing Law This Agreement shall be governed by and construed in accordance with the laws of
|
|
39
|
+
the jurisdiction in which Inkeep is incorporated, excluding its conflict of laws provisions.
|
|
40
|
+
|
|
41
|
+
9. Entire Agreement This Agreement constitutes the entire agreement between you and Inkeep with
|
|
42
|
+
respect to the Software and supersedes all prior or contemporaneous understandings regarding the
|
|
43
|
+
same, whether written or oral.
|
|
44
|
+
|
|
45
|
+
10. Additional Provisions With regard to the Software, you may only use the Software in production
|
|
46
|
+
if you (and any entity that you represent) are in compliance with Inkeep's terms of service,
|
|
47
|
+
available at <https://inkeep.com/terms-of-service/> (the "Enterprise Terms"). You are free to
|
|
48
|
+
modify the Software and publish patches to the Software, provided that such modifications and
|
|
49
|
+
patches are used solely in conjunction with the Service. You agree that Inkeep and/or its
|
|
50
|
+
licensors (as applicable) retain all right, title, and interest in and to all such modifications
|
|
51
|
+
and/or patches. You may copy and modify the Software for development and testing purposes,
|
|
52
|
+
without requiring a subscription. You agree that Inkeep and/or its licensors (as applicable)
|
|
53
|
+
retain all right, title, and interest in and to all such modifications. You are not granted any
|
|
54
|
+
other rights beyond what is expressly stated herein. Subject to the foregoing, it is forbidden
|
|
55
|
+
to copy, merge, publish, distribute, sublicense, and/or sell the Software.
|
|
56
|
+
|
|
57
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
|
58
|
+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
59
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
|
|
60
|
+
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
61
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
62
|
+
|
|
63
|
+
For all third-party components incorporated into the Software, those components are licensed under
|
|
64
|
+
the original license provided by the owner of the applicable component.
|
package/README.md
CHANGED
|
@@ -1,67 +1 @@
|
|
|
1
|
-
# @inkeep
|
|
2
|
-
|
|
3
|
-
React-based UI components for the Inkeep Agent Framework chat interface.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @inkeep/agents-ui
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Overview
|
|
12
|
-
|
|
13
|
-
This package provides a customizable chat widget UI for interacting with agents built using the Inkeep Agent Framework. It includes:
|
|
14
|
-
|
|
15
|
-
- Chat interface components
|
|
16
|
-
- Message rendering with markdown support
|
|
17
|
-
- Streaming response handling
|
|
18
|
-
- Tool call visualization
|
|
19
|
-
- Responsive design with Tailwind CSS
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import { ChatWidget } from '@inkeep/agents-ui';
|
|
25
|
-
|
|
26
|
-
// Basic usage
|
|
27
|
-
<ChatWidget
|
|
28
|
-
apiUrl="https://your-api-endpoint.com"
|
|
29
|
-
agentId="your-agent-id"
|
|
30
|
-
/>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Development
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
# Install dependencies
|
|
37
|
-
pnpm install
|
|
38
|
-
|
|
39
|
-
# Start development server
|
|
40
|
-
pnpm dev
|
|
41
|
-
|
|
42
|
-
# Build for production
|
|
43
|
-
pnpm build
|
|
44
|
-
|
|
45
|
-
# Preview production build
|
|
46
|
-
pnpm preview
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Dependencies
|
|
50
|
-
|
|
51
|
-
- React 19+
|
|
52
|
-
- Vite for bundling
|
|
53
|
-
- TypeScript for type safety
|
|
54
|
-
- Tailwind CSS for styling
|
|
55
|
-
- Lucide React for icons
|
|
56
|
-
|
|
57
|
-
## License
|
|
58
|
-
|
|
59
|
-
See LICENSE.md for details.
|
|
60
|
-
|
|
61
|
-
## Contributing
|
|
62
|
-
|
|
63
|
-
Please refer to the main repository's contribution guidelines.
|
|
64
|
-
|
|
65
|
-
## Support
|
|
66
|
-
|
|
67
|
-
For issues and questions, please open an issue in the main [inkeep/agents repository](https://github.com/inkeep/agents/issues).
|
|
1
|
+
# @inkeep
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react/jsx-runtime"),n=require("react"),L=["light","dark"],P="(prefers-color-scheme: dark)",T=typeof window>"u",D=n.createContext(void 0),_={setColorMode:e=>{},colorModes:[]},I=()=>n.useContext(D)??_;function q(e,l){const t=I();return(t.forcedColorMode??t.resolvedColorMode)==="dark"?l:e}const z=e=>(n.useContext(D),x.jsx(N,{...e})),J=()=>{},Q={setColorMode:J,colorModes:["dark"],colorMode:"dark",forcedColorMode:"dark",resolvedColorMode:"dark",systemColorMode:"dark"},F=({children:e})=>x.jsx(D.Provider,{value:Q,children:x.jsx("div",{"data-theme":"dark",children:e})}),G=["light","dark"],N=({forcedColorMode:e,disableTransitionOnChange:l=!1,enableSystem:t=!1,enableColorScheme:y=!0,storageKey:m="inkeep-colorMode",colorModes:r=G,defaultColorMode:o=t?"system":"light",attribute:M="data-theme",value:$,children:S,nonce:j,shadowHostId:p,rootId:h})=>{const[i,a]=n.useState(()=>A(m,o)),[w,d]=n.useState(()=>A(m)),u=$?Object.values($):r,g=n.useCallback(s=>{let c=s;if(!c)return;s==="system"&&t&&(c=B());const C=$?$[c]:c,O=l?W():null,R=p&&h&&document.getElementById(p)?.shadowRoot,E=R?R.getElementById(h)??document.documentElement:document.documentElement;if(M==="class"?(E.classList.remove(...u),C&&E.classList.add(C)):C?E.setAttribute(M,C):E.removeAttribute(M),y){const V=L.includes(o)?o:null,b=L.includes(c)?c:V;E.style.colorScheme=b}O?.()},[]),f=n.useCallback(s=>{a(s);try{localStorage.setItem(m,s)}catch{}},[e]),v=n.useCallback(s=>{const c=B(s);d(c),i==="system"&&t&&!e&&g("system")},[i,e]);n.useEffect(()=>{const s=window.matchMedia(P);return s.addListener(v),v(s),()=>s.removeListener(v)},[v]),n.useEffect(()=>{const s=c=>{if(c.key!==m)return;const C=c.newValue||o;f(C)};return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[f]),n.useEffect(()=>{g(e??i)},[e,i]);const k=n.useMemo(()=>({colorMode:i,setColorMode:f,forcedColorMode:e,resolvedColorMode:i==="system"?w:i,colorModes:t?[...r,"system"]:r,systemColorMode:t?w:void 0}),[i,f,e,w,t,r]);return x.jsxs(D.Provider,{value:k,children:[x.jsx(U,{forcedColorMode:e,disableTransitionOnChange:l,enableSystem:t,enableColorScheme:y,storageKey:m,colorModes:r,defaultColorMode:o,attribute:M,value:$,children:S,attrs:u,nonce:j,shadowHostId:p,rootId:h}),S]})},U=n.memo(({forcedColorMode:e,storageKey:l,attribute:t,enableSystem:y,enableColorScheme:m,defaultColorMode:r,value:o,attrs:M,nonce:$,shadowHostId:S,rootId:j})=>{const p=r==="system",h=(()=>{const d=S&&j?`document.getElementById('${S}').shadowRoot.getElementById('${j}')`:"document.documentElement";if(t==="class"){const u=`c.remove(${M.map(g=>`'${g}'`).join(",")})`;return`var d=${d},c=d.classList;${u};`}return`var d=${d},n='${t}',s='setAttribute';`})(),i=m?(L.includes(r)?r:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${r}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",a=(d,u=!1,g=!0)=>{const f=o?o[d]:d,v=u?`${d}|| ''`:`'${f}'`;let k="";return m&&g&&!u&&L.includes(d)&&(k+=`d.style.colorScheme = '${d}';`),t==="class"?u||f?k+=`c.add(${v})`:k+="null":f&&(k+=`d[s](n,${v})`),k},w=e?`!function(){${h}${a(e)}}()`:y?`!function(){try{${h}var e=localStorage.getItem('${l}');if('system'===e||(!e&&${p})){var t='${P}',m=window.matchMedia(t);if(m.media!==t||m.matches){${a("dark")}}else{${a("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${a(o?"x[e]":"e",!0)}}${p?"":`else{${a(r,!1,!1)}}`}${i}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${l}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${a(o?"x[e]":"e",!0)}}else{${a(r,!1,!1)};}${i}}catch(t){}}();`;return x.jsx("script",{nonce:$,dangerouslySetInnerHTML:{__html:w}})},()=>!0),A=(e,l)=>{if(T)return;let t;try{t=localStorage.getItem(e)||void 0}catch{}return t||l},W=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},B=e=>(e||(e=window.matchMedia(P)),e.matches?"dark":"light");exports.ColorMode=N;exports.ColorModeProvider=z;exports.DarkModeProvider=F;exports.useColorMode=I;exports.useColorModeValue=q;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsx as x, jsxs as J } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as O, createContext as T, useState as N, useCallback as A, useEffect as j, useMemo as Q, memo as q } from "react";
|
|
3
|
+
const L = ["light", "dark"], B = "(prefers-color-scheme: dark)", F = typeof window > "u", D = T(void 0), G = {
|
|
4
|
+
setColorMode: (e) => {
|
|
5
|
+
},
|
|
6
|
+
colorModes: []
|
|
7
|
+
}, U = () => O(D) ?? G;
|
|
8
|
+
function te(e, d) {
|
|
9
|
+
const t = U();
|
|
10
|
+
return (t.forcedColorMode ?? t.resolvedColorMode) === "dark" ? d : e;
|
|
11
|
+
}
|
|
12
|
+
const oe = (e) => (O(D), /* @__PURE__ */ x(Z, { ...e })), W = () => {
|
|
13
|
+
}, X = {
|
|
14
|
+
setColorMode: W,
|
|
15
|
+
colorModes: ["dark"],
|
|
16
|
+
colorMode: "dark",
|
|
17
|
+
forcedColorMode: "dark",
|
|
18
|
+
resolvedColorMode: "dark",
|
|
19
|
+
systemColorMode: "dark"
|
|
20
|
+
}, se = ({ children: e }) => /* @__PURE__ */ x(D.Provider, { value: X, children: /* @__PURE__ */ x("div", { "data-theme": "dark", children: e }) }), Y = ["light", "dark"], Z = ({
|
|
21
|
+
forcedColorMode: e,
|
|
22
|
+
disableTransitionOnChange: d = !1,
|
|
23
|
+
enableSystem: t = !1,
|
|
24
|
+
enableColorScheme: v = !0,
|
|
25
|
+
storageKey: a = "inkeep-colorMode",
|
|
26
|
+
colorModes: n = Y,
|
|
27
|
+
defaultColorMode: o = t ? "system" : "light",
|
|
28
|
+
attribute: k = "data-theme",
|
|
29
|
+
value: f,
|
|
30
|
+
children: w,
|
|
31
|
+
nonce: E,
|
|
32
|
+
shadowHostId: y,
|
|
33
|
+
rootId: $
|
|
34
|
+
}) => {
|
|
35
|
+
const [c, l] = N(() => P(a, o)), [C, i] = N(() => P(a)), m = f ? Object.values(f) : n, g = A((s) => {
|
|
36
|
+
let r = s;
|
|
37
|
+
if (!r) return;
|
|
38
|
+
s === "system" && t && (r = R());
|
|
39
|
+
const M = f ? f[r] : r, V = d ? H() : null, I = y && $ && document.getElementById(y)?.shadowRoot, S = I ? I.getElementById($) ?? document.documentElement : document.documentElement;
|
|
40
|
+
if (k === "class" ? (S.classList.remove(...m), M && S.classList.add(M)) : M ? S.setAttribute(k, M) : S.removeAttribute(k), v) {
|
|
41
|
+
const _ = L.includes(o) ? o : null, z = L.includes(r) ? r : _;
|
|
42
|
+
S.style.colorScheme = z;
|
|
43
|
+
}
|
|
44
|
+
V?.();
|
|
45
|
+
}, []), u = A(
|
|
46
|
+
(s) => {
|
|
47
|
+
l(s);
|
|
48
|
+
try {
|
|
49
|
+
localStorage.setItem(a, s);
|
|
50
|
+
} catch {
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
[e]
|
|
54
|
+
), h = A(
|
|
55
|
+
(s) => {
|
|
56
|
+
const r = R(s);
|
|
57
|
+
i(r), c === "system" && t && !e && g("system");
|
|
58
|
+
},
|
|
59
|
+
[c, e]
|
|
60
|
+
);
|
|
61
|
+
j(() => {
|
|
62
|
+
const s = window.matchMedia(B);
|
|
63
|
+
return s.addListener(h), h(s), () => s.removeListener(h);
|
|
64
|
+
}, [h]), j(() => {
|
|
65
|
+
const s = (r) => {
|
|
66
|
+
if (r.key !== a)
|
|
67
|
+
return;
|
|
68
|
+
const M = r.newValue || o;
|
|
69
|
+
u(M);
|
|
70
|
+
};
|
|
71
|
+
return window.addEventListener("storage", s), () => window.removeEventListener("storage", s);
|
|
72
|
+
}, [u]), j(() => {
|
|
73
|
+
g(e ?? c);
|
|
74
|
+
}, [e, c]);
|
|
75
|
+
const p = Q(
|
|
76
|
+
() => ({
|
|
77
|
+
colorMode: c,
|
|
78
|
+
setColorMode: u,
|
|
79
|
+
forcedColorMode: e,
|
|
80
|
+
resolvedColorMode: c === "system" ? C : c,
|
|
81
|
+
colorModes: t ? [...n, "system"] : n,
|
|
82
|
+
systemColorMode: t ? C : void 0
|
|
83
|
+
}),
|
|
84
|
+
[c, u, e, C, t, n]
|
|
85
|
+
);
|
|
86
|
+
return /* @__PURE__ */ J(D.Provider, { value: p, children: [
|
|
87
|
+
/* @__PURE__ */ x(
|
|
88
|
+
b,
|
|
89
|
+
{
|
|
90
|
+
forcedColorMode: e,
|
|
91
|
+
disableTransitionOnChange: d,
|
|
92
|
+
enableSystem: t,
|
|
93
|
+
enableColorScheme: v,
|
|
94
|
+
storageKey: a,
|
|
95
|
+
colorModes: n,
|
|
96
|
+
defaultColorMode: o,
|
|
97
|
+
attribute: k,
|
|
98
|
+
value: f,
|
|
99
|
+
children: w,
|
|
100
|
+
attrs: m,
|
|
101
|
+
nonce: E,
|
|
102
|
+
shadowHostId: y,
|
|
103
|
+
rootId: $
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
w
|
|
107
|
+
] });
|
|
108
|
+
}, b = q(
|
|
109
|
+
({
|
|
110
|
+
forcedColorMode: e,
|
|
111
|
+
storageKey: d,
|
|
112
|
+
attribute: t,
|
|
113
|
+
enableSystem: v,
|
|
114
|
+
enableColorScheme: a,
|
|
115
|
+
defaultColorMode: n,
|
|
116
|
+
value: o,
|
|
117
|
+
attrs: k,
|
|
118
|
+
nonce: f,
|
|
119
|
+
shadowHostId: w,
|
|
120
|
+
rootId: E
|
|
121
|
+
}) => {
|
|
122
|
+
const y = n === "system", $ = (() => {
|
|
123
|
+
const i = w && E ? `document.getElementById('${w}').shadowRoot.getElementById('${E}')` : "document.documentElement";
|
|
124
|
+
if (t === "class") {
|
|
125
|
+
const m = `c.remove(${k.map((g) => `'${g}'`).join(",")})`;
|
|
126
|
+
return `var d=${i},c=d.classList;${m};`;
|
|
127
|
+
}
|
|
128
|
+
return `var d=${i},n='${t}',s='setAttribute';`;
|
|
129
|
+
})(), c = a ? (L.includes(n) ? n : null) ? `if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${n}'` : "if(e==='light'||e==='dark')d.style.colorScheme=e" : "", l = (i, m = !1, g = !0) => {
|
|
130
|
+
const u = o ? o[i] : i, h = m ? `${i}|| ''` : `'${u}'`;
|
|
131
|
+
let p = "";
|
|
132
|
+
return a && g && !m && L.includes(i) && (p += `d.style.colorScheme = '${i}';`), t === "class" ? m || u ? p += `c.add(${h})` : p += "null" : u && (p += `d[s](n,${h})`), p;
|
|
133
|
+
}, C = e ? `!function(){${$}${l(e)}}()` : v ? `!function(){try{${$}var e=localStorage.getItem('${d}');if('system'===e||(!e&&${y})){var t='${B}',m=window.matchMedia(t);if(m.media!==t||m.matches){${l(
|
|
134
|
+
"dark"
|
|
135
|
+
)}}else{${l("light")}}}else if(e){${o ? `var x=${JSON.stringify(o)};` : ""}${l(o ? "x[e]" : "e", !0)}}${y ? "" : `else{${l(n, !1, !1)}}`}${c}}catch(e){}}()` : `!function(){try{${$}var e=localStorage.getItem('${d}');if(e){${o ? `var x=${JSON.stringify(o)};` : ""}${l(o ? "x[e]" : "e", !0)}}else{${l(
|
|
136
|
+
n,
|
|
137
|
+
!1,
|
|
138
|
+
!1
|
|
139
|
+
)};}${c}}catch(t){}}();`;
|
|
140
|
+
return /* @__PURE__ */ x("script", { nonce: f, dangerouslySetInnerHTML: { __html: C } });
|
|
141
|
+
},
|
|
142
|
+
// Never re-render this component
|
|
143
|
+
() => !0
|
|
144
|
+
), P = (e, d) => {
|
|
145
|
+
if (F) return;
|
|
146
|
+
let t;
|
|
147
|
+
try {
|
|
148
|
+
t = localStorage.getItem(e) || void 0;
|
|
149
|
+
} catch {
|
|
150
|
+
}
|
|
151
|
+
return t || d;
|
|
152
|
+
}, H = () => {
|
|
153
|
+
const e = document.createElement("style");
|
|
154
|
+
return e.appendChild(
|
|
155
|
+
document.createTextNode(
|
|
156
|
+
"*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}"
|
|
157
|
+
)
|
|
158
|
+
), document.head.appendChild(e), () => {
|
|
159
|
+
window.getComputedStyle(document.body), setTimeout(() => {
|
|
160
|
+
document.head.removeChild(e);
|
|
161
|
+
}, 1);
|
|
162
|
+
};
|
|
163
|
+
}, R = (e) => (e || (e = window.matchMedia(B)), e.matches ? "dark" : "light");
|
|
164
|
+
export {
|
|
165
|
+
Z as ColorMode,
|
|
166
|
+
oe as ColorModeProvider,
|
|
167
|
+
se as DarkModeProvider,
|
|
168
|
+
U as useColorMode,
|
|
169
|
+
te as useColorModeValue
|
|
170
|
+
};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./react/embedded-chat.cjs"),f=require("./react/sidebar-chat.cjs"),C=require("./react/embedded-search-and-chat.cjs"),d=require("./react/embedded-search.cjs"),R=require("./react/modal.chat.cjs"),T=require("./react/modal.search-and-chat.cjs"),$=require("./react/modal.search.cjs"),l=require("./react/modal.cjs"),p=require("./react/chat-button.cjs"),I=require("./react/searchbar.cjs"),W=require("./styled/components/embedded-chat.cjs"),D=require("./styled/components/sidebar-chat.cjs"),x=require("./styled/components/embedded-search.cjs"),O=require("./styled/components/modal.cjs"),z=require("./styled/components/chat-button.cjs"),H=require("./styled/components/searchbar.cjs"),L=require("./styled/components/shadow.cjs"),j=require("./styled/components/loading-indicator.cjs"),G=require("./styled/components/ui/recipes/widget-toggle.cjs"),Q=require("./styled/components/message.cjs"),U=require("./styled/components/data-summary-group.cjs"),S=require("./primitives/providers/attachment-item-provider.cjs"),P=require("./primitives/providers/attachments-bar-provider.cjs"),v=require("./primitives/providers/base-events-provider.cjs"),i=require("./primitives/providers/chat-form-provider.cjs"),m=require("./primitives/providers/config-provider.cjs"),b=require("./primitives/providers/feedback-item-provider.cjs"),q=require("./primitives/providers/feedback-provider.cjs"),k=require("./primitives/providers/form-field-provider.cjs"),u=require("./primitives/providers/help-menu-provider.cjs"),g=require("./primitives/providers/markdown-provider.cjs"),M=require("./primitives/providers/message-attachments-provider.cjs"),c=require("./primitives/providers/message-provider.cjs"),_=require("./primitives/providers/root-provider.cjs"),B=require("./primitives/providers/source-item-provider.cjs"),K=require("./primitives/providers/theme-provider.cjs"),E=require("./primitives/providers/widget-provider.cjs"),n=require("./primitives/providers/sidebar-chat-provider.cjs"),F=require("./primitives/components/factory.cjs"),N=require("./primitives/components/embedded-chat.cjs"),V=require("./primitives/components/sidebar-chat/index.cjs"),A=require("./primitives/components/embedded-chat/chat-provider.cjs"),J=require("./primitives/components/embedded-search.cjs"),h=require("./primitives/components/embedded-search/search-provider.cjs"),X=require("./primitives/components/modal.cjs"),y=require("./primitives/components/modal/modal-provider.cjs"),Y=require("./primitives/components/chat-button.cjs"),Z=require("./primitives/components/searchbar.cjs"),ee=require("./primitives/hooks/use-boolean.cjs"),re=require("./primitives/hooks/use-component-classnames.cjs"),oe=require("./primitives/hooks/use-container-size.cjs"),te=require("./primitives/hooks/use-copy-to-clipboard.cjs"),ae=require("./primitives/hooks/use-instant-update.cjs"),de=require("./primitives/hooks/use-is-mounted.cjs"),ne=require("./primitives/hooks/use-media-query.cjs"),se=require("./primitives/hooks/use-resize-observer.cjs"),ie=require("./primitives/hooks/use-scrolling-fades.cjs"),me=require("./primitives/hooks/use-settle-action.cjs"),ue=require("./primitives/hooks/use-scroll-to-bottom.cjs"),o=require("./primitives/utils/misc.cjs"),r=require("./primitives/utils/component-ids.cjs"),w=require("./primitives/utils/compose-refs.cjs"),ce=require("./primitives/utils/merge-props.cjs"),he=require("./primitives/atoms/portal.cjs"),Ce=require("./primitives/atoms/icons/custom-icon.cjs"),le=require("./primitives/atoms/icons/built-in-icon-renderer.cjs"),pe=require("./primitives/atoms/portal-with-theme.cjs"),e=require("./primitives/atoms/cmdk/index.cjs"),Ie=require("./primitives/atoms/error-boundary.cjs"),t=require("./color-mode/index.cjs"),s=require("./primitives/atoms/shadow/context.cjs");exports.InkeepEmbeddedChat=a.InkeepEmbeddedChat;exports.InkeepEmbeddedChatImpl=a.InkeepEmbeddedChatImpl;exports.InkeepEmbeddedChatImplContent=a.InkeepEmbeddedChatImplContent;exports.InkeepEmbeddedChatProvider=a.InkeepEmbeddedChatProvider;exports.InkeepSidebarChat=f.InkeepSidebarChat;exports.InkeepEmbeddedSearchAndChat=C.InkeepEmbeddedSearchAndChat;exports.InkeepEmbeddedSearchAndChatImpl=C.InkeepEmbeddedSearchAndChatImpl;exports.InkeepEmbeddedSearch=d.InkeepEmbeddedSearch;exports.InkeepEmbeddedSearchImpl=d.InkeepEmbeddedSearchImpl;exports.InkeepEmbeddedSearchImplContent=d.InkeepEmbeddedSearchImplContent;exports.InkeepEmbeddedSearchProvider=d.InkeepEmbeddedSearchProvider;exports.InkeepModalChat=R.InkeepModalChat;exports.InkeepModalSearchAndChat=T.InkeepModalSearchAndChat;exports.InkeepModalSearch=$.InkeepModalSearch;exports.InkeepModal=l.InkeepModal;exports.ModalContent=l.ModalContent;exports.ChatButtonImpl=p.ChatButtonImpl;exports.InkeepChatButton=p.InkeepChatButton;exports.InkeepSearchBar=I.InkeepSearchBar;exports.SearchBarImpl=I.SearchBarImpl;exports.EmbeddedChat=W;exports.SidebarChat=D;exports.EmbeddedSearch=x;exports.Modal=O;exports.ChatButton=z;exports.SearchBar=H;exports.Shadow=L.Shadow;exports.LoadingIndicator=j.LoadingIndicator;exports.widgetToggle=G.widgetToggle;exports.EmbeddedChatMessagePart=Q.EmbeddedChatMessagePart;exports.DataSummaryGroup=U.DataSummaryGroup;exports.AttachmentItemProvider=S.AttachmentItemProvider;exports.useAttachmentItem=S.useAttachmentItem;exports.AttachmentsBarProvider=P.AttachmentsBarProvider;exports.useAttachmentsBar=P.useAttachmentsBar;exports.BaseEventsProvider=v.BaseEventsProvider;exports.useBaseEvents=v.useBaseEvents;exports.ChatFormProvider=i.ChatFormProvider;exports.useChatForm=i.useChatForm;exports.useChatFormState=i.useChatFormState;exports.InkeepConfigProvider=m.InkeepConfigProvider;exports.WebWidgetInteractionType=m.WebWidgetInteractionType;exports.useInkeepConfig=m.useInkeepConfig;exports.FeedbackItemProvider=b.FeedbackItemProvider;exports.useFeedbackItem=b.useFeedbackItem;exports.FeedbackProvider=q.FeedbackProvider;exports.useMessageFeedback=q.useMessageFeedback;exports.FormFieldProvider=k.FormFieldProvider;exports.useFormField=k.useFormField;exports.HelpMenuProvider=u.HelpMenuProvider;exports.useHelpMenu=u.useHelpMenu;exports.useHelpMenuState=u.useHelpMenuState;exports.ChatMarkdownProvider=g.ChatMarkdownProvider;exports.useChatMarkdown=g.useChatMarkdown;exports.MessageAttachmentsProvider=M.MessageAttachmentsProvider;exports.useMessageAttachments=M.useMessageAttachments;exports.MessageProvider=c.MessageProvider;exports.useMessage=c.useMessage;exports.useOptionalMessage=c.useOptionalMessage;exports.RootProvider=_.RootProvider;exports.SourceItemProvider=B.SourceItemProvider;exports.useSourceItem=B.useSourceItem;exports.ThemeProvider=K.ThemeProvider;exports.WidgetProvider=E.WidgetProvider;exports.useWidget=E.useWidget;exports.SidebarChatProvider=n.SidebarChatProvider;exports.useInkeepSidebarChat=n.useInkeepSidebarChat;exports.useOptionalSidebarChat=n.useOptionalSidebarChat;exports.useSidebarChat=n.useSidebarChat;exports.ikp=F.ikp;exports.jsxFactory=F.jsxFactory;exports.EmbeddedChatPrimitive=N;exports.SidebarChatPrimitive=V;exports.ChatProvider=A.ChatProvider;exports.useChat=A.useChat;exports.EmbeddedSearchPrimitive=J;exports.SearchProvider=h.SearchProvider;exports.SearchProviderImpl=h.SearchProviderImpl;exports.useSearch=h.useSearch;exports.ModalPrimitive=X;exports.ModalProvider=y.ModalProvider;exports.useModal=y.useModal;exports.ChatButtonPrimitive=Y;exports.SearchBarPrimitive=Z;exports.useBoolean=ee.useBoolean;exports.useComponentClassNames=re.useComponentClassNames;exports.useContainerSize=oe.useContainerSize;exports.useCopyToClipboard=te.useCopyToClipboard;exports.useInstantUpdate=ae.useInstantUpdate;exports.useIsMounted=de.useIsMounted;exports.useMediaQuery=ne.useMediaQuery;exports.useResizeObserver=se.useResizeObserver;exports.useScrollingFades=ie.useScrollingFades;exports.useSettleAction=me.useSettleAction;exports.useScrollToBottom=ue.useScrollToBottom;exports.callAll=o.callAll;exports.dataAttr=o.dataAttr;exports.getInitials=o.getInitials;exports.getMessageContent=o.getMessageContent;exports.isString=o.isString;exports.maybeRender=o.maybeRender;exports.toKebabCase=o.toKebabCase;exports.SearchBarComponentIds=r.SearchBarComponentIds;exports.SidebarChatComponentIds=r.SidebarChatComponentIds;exports.aiChatComponentIds=r.aiChatComponentIds;exports.aiSearchComponentIds=r.aiSearchComponentIds;exports.chatButtonComponentIds=r.chatButtonComponentIds;exports.componentIDs=r.componentIDs;exports.markDownComponentIds=r.markDownComponentIds;exports.miscellanousComponentIds=r.miscellanousComponentIds;exports.modalComponentIds=r.modalComponentIds;exports.composeRefs=w.composeRefs;exports.useComposedRefs=w.useComposedRefs;exports.mergeProps=ce.mergeProps;exports.Portal=he.Portal;exports.CustomIcon=Ce.CustomIcon;exports.BuiltInIconRenderer=le.BuiltInIconRenderer;exports.PortalWithTheme=pe.PortalWithTheme;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandLoading=e.CommandLoading;exports.CommandRoot=e.CommandRoot;exports.CommandSeparator=e.CommandSeparator;exports.defaultFilter=e.defaultFilter;exports.useCommandState=e.useCommandState;exports.useCommandStore=e.useCommandStore;exports.ErrorBoundary=Ie.ErrorBoundary;exports.ColorMode=t.ColorMode;exports.ColorModeProvider=t.ColorModeProvider;exports.DarkModeProvider=t.DarkModeProvider;exports.useColorMode=t.useColorMode;exports.useColorModeValue=t.useColorModeValue;exports.InkeepShadow=s.InkeepShadow;exports.InkeepShadowProvider=s.InkeepShadowProvider;exports.ShadowContext=s.ShadowContext;exports.useShadow=s.useShadow;
|