@inkeep/agents-ui 0.0.0-dev-20260313222128
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 -0
- 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.d.ts +20 -0
- package/dist/color-mode/index.js +170 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +238 -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.d.ts +3 -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.d.ts +3 -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.d.ts +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.d.ts +460 -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.d.ts +10 -0
- package/dist/primitives/atoms/codeblock/index.js +40 -0
- package/dist/primitives/atoms/combobox.cjs +1 -0
- package/dist/primitives/atoms/combobox.js +275 -0
- package/dist/primitives/atoms/custom-styles.cjs +1 -0
- package/dist/primitives/atoms/custom-styles.d.ts +5 -0
- package/dist/primitives/atoms/custom-styles.js +57 -0
- package/dist/primitives/atoms/dialog.cjs +1 -0
- package/dist/primitives/atoms/dialog.d.ts +94 -0
- package/dist/primitives/atoms/dialog.js +227 -0
- package/dist/primitives/atoms/error-boundary.cjs +1 -0
- package/dist/primitives/atoms/error-boundary.d.ts +6 -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.d.ts +6 -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.d.ts +86 -0
- package/dist/primitives/atoms/icons/built-in-icons.js +89 -0
- package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/checkbox-icon.d.ts +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.d.ts +4 -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.d.ts +2 -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.d.ts +2 -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.d.ts +34 -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.d.ts +4 -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.d.ts +6 -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.d.ts +28 -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.d.ts +2 -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.d.ts +2 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +28 -0
- package/dist/primitives/atoms/link.cjs +1 -0
- package/dist/primitives/atoms/link.d.ts +14 -0
- package/dist/primitives/atoms/link.js +35 -0
- package/dist/primitives/atoms/markdown/components.cjs +1 -0
- package/dist/primitives/atoms/markdown/components.d.ts +31 -0
- package/dist/primitives/atoms/markdown/components.js +76 -0
- package/dist/primitives/atoms/markdown/index.cjs +1 -0
- package/dist/primitives/atoms/markdown/index.d.ts +17 -0
- package/dist/primitives/atoms/markdown/index.js +121 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.cjs +1 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.d.ts +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.d.ts +2 -0
- package/dist/primitives/atoms/portal-with-theme.js +12 -0
- package/dist/primitives/atoms/portal.cjs +1 -0
- package/dist/primitives/atoms/portal.d.ts +8 -0
- package/dist/primitives/atoms/portal.js +19 -0
- package/dist/primitives/atoms/select.cjs +1 -0
- package/dist/primitives/atoms/select.d.ts +136 -0
- package/dist/primitives/atoms/select.js +785 -0
- package/dist/primitives/atoms/shadow/context.cjs +1 -0
- package/dist/primitives/atoms/shadow/context.d.ts +14 -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.d.ts +8 -0
- package/dist/primitives/atoms/shadow/create.js +56 -0
- package/dist/primitives/atoms/shadow/index.d.ts +1 -0
- package/dist/primitives/atoms/shadow/root.cjs +1 -0
- package/dist/primitives/atoms/shadow/root.d.ts +5 -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.d.ts +2 -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.d.ts +9 -0
- package/dist/primitives/atoms/shadow/utils.js +16 -0
- package/dist/primitives/components/chat-bubble/index.cjs +1 -0
- package/dist/primitives/components/chat-bubble/index.d.ts +10 -0
- package/dist/primitives/components/chat-bubble/index.js +38 -0
- package/dist/primitives/components/chat-button.cjs +1 -0
- package/dist/primitives/components/chat-button.d.ts +20 -0
- package/dist/primitives/components/chat-button.js +51 -0
- package/dist/primitives/components/chat-history/index.cjs +1 -0
- package/dist/primitives/components/chat-history/index.d.ts +27 -0
- package/dist/primitives/components/chat-history/index.js +105 -0
- package/dist/primitives/components/data-summaries.cjs +1 -0
- package/dist/primitives/components/data-summaries.d.ts +14 -0
- package/dist/primitives/components/data-summaries.js +38 -0
- package/dist/primitives/components/embedded-chat/chat-provider.cjs +1 -0
- package/dist/primitives/components/embedded-chat/chat-provider.d.ts +19 -0
- package/dist/primitives/components/embedded-chat/chat-provider.js +20 -0
- package/dist/primitives/components/embedded-chat/use-captcha.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-captcha.d.ts +30 -0
- package/dist/primitives/components/embedded-chat/use-captcha.js +67 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.d.ts +9 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.js +41 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +57 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +312 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.d.ts +30 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +159 -0
- package/dist/primitives/components/embedded-chat.cjs +11 -0
- package/dist/primitives/components/embedded-chat.d.ts +461 -0
- package/dist/primitives/components/embedded-chat.js +2051 -0
- package/dist/primitives/components/embedded-search/search-provider.cjs +1 -0
- package/dist/primitives/components/embedded-search/search-provider.d.ts +21 -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.d.ts +3 -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.d.ts +4 -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.d.ts +19 -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.d.ts +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.d.ts +249 -0
- package/dist/primitives/components/embedded-search.js +628 -0
- package/dist/primitives/components/factory.cjs +1 -0
- package/dist/primitives/components/factory.d.ts +19 -0
- package/dist/primitives/components/factory.js +39 -0
- package/dist/primitives/components/index.cjs +1 -0
- package/dist/primitives/components/index.d.ts +13 -0
- package/dist/primitives/components/index.js +33 -0
- package/dist/primitives/components/modal/modal-provider.cjs +1 -0
- package/dist/primitives/components/modal/modal-provider.d.ts +12 -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.d.ts +7 -0
- package/dist/primitives/components/modal/use-inkeep-modal.js +9 -0
- package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -0
- package/dist/primitives/components/modal/widget-auto-focus.d.ts +2 -0
- package/dist/primitives/components/modal/widget-auto-focus.js +25 -0
- package/dist/primitives/components/modal.cjs +1 -0
- package/dist/primitives/components/modal.d.ts +18 -0
- package/dist/primitives/components/modal.js +40 -0
- package/dist/primitives/components/presence.cjs +1 -0
- package/dist/primitives/components/presence.d.ts +8 -0
- package/dist/primitives/components/presence.js +26 -0
- package/dist/primitives/components/searchbar.cjs +1 -0
- package/dist/primitives/components/searchbar.d.ts +23 -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.d.ts +9 -0
- package/dist/primitives/components/sidebar-chat/index.js +67 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.d.ts +5 -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.d.ts +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.d.ts +5 -0
- package/dist/primitives/components/use-component-trigger.js +17 -0
- package/dist/primitives/constants/search.cjs +1 -0
- package/dist/primitives/constants/search.d.ts +1 -0
- package/dist/primitives/constants/search.js +5 -0
- package/dist/primitives/hooks/index.cjs +1 -0
- package/dist/primitives/hooks/index.d.ts +12 -0
- package/dist/primitives/hooks/index.js +26 -0
- package/dist/primitives/hooks/use-anonymous-session.cjs +1 -0
- package/dist/primitives/hooks/use-anonymous-session.d.ts +12 -0
- package/dist/primitives/hooks/use-anonymous-session.js +82 -0
- package/dist/primitives/hooks/use-boolean.cjs +1 -0
- package/dist/primitives/hooks/use-boolean.d.ts +10 -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.d.ts +6 -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.d.ts +5 -0
- package/dist/primitives/hooks/use-container-size.js +18 -0
- package/dist/primitives/hooks/use-conversation-loader.cjs +1 -0
- package/dist/primitives/hooks/use-conversation-loader.d.ts +13 -0
- package/dist/primitives/hooks/use-conversation-loader.js +36 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.cjs +1 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.d.ts +3 -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.d.ts +1 -0
- package/dist/primitives/hooks/use-debounce.js +16 -0
- package/dist/primitives/hooks/use-inkeep-api-client.cjs +1 -0
- package/dist/primitives/hooks/use-inkeep-api-client.d.ts +33 -0
- package/dist/primitives/hooks/use-inkeep-api-client.js +87 -0
- package/dist/primitives/hooks/use-inkeep-open-state.cjs +1 -0
- package/dist/primitives/hooks/use-inkeep-open-state.d.ts +18 -0
- package/dist/primitives/hooks/use-inkeep-open-state.js +47 -0
- package/dist/primitives/hooks/use-instant-update.cjs +1 -0
- package/dist/primitives/hooks/use-instant-update.d.ts +16 -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.d.ts +1 -0
- package/dist/primitives/hooks/use-is-mounted.js +11 -0
- package/dist/primitives/hooks/use-local-storage.cjs +1 -0
- package/dist/primitives/hooks/use-local-storage.d.ts +8 -0
- package/dist/primitives/hooks/use-local-storage.js +26 -0
- package/dist/primitives/hooks/use-media-query.cjs +1 -0
- package/dist/primitives/hooks/use-media-query.d.ts +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.d.ts +12 -0
- package/dist/primitives/hooks/use-resize-observer.js +32 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.d.ts +2 -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.d.ts +3 -0
- package/dist/primitives/hooks/use-settle-action.js +11 -0
- package/dist/primitives/hooks/use-simple-scroll.cjs +1 -0
- package/dist/primitives/hooks/use-simple-scroll.d.ts +16 -0
- package/dist/primitives/hooks/use-simple-scroll.js +51 -0
- package/dist/primitives/hooks/use-streaming-events.cjs +1 -0
- package/dist/primitives/hooks/use-streaming-events.d.ts +8 -0
- package/dist/primitives/hooks/use-streaming-events.js +33 -0
- package/dist/primitives/index.cjs +1 -0
- package/dist/primitives/index.d.ts +13 -0
- package/dist/primitives/index.js +174 -0
- package/dist/primitives/providers/attachment-item-provider.cjs +1 -0
- package/dist/primitives/providers/attachment-item-provider.d.ts +9 -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.d.ts +30 -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.d.ts +8 -0
- package/dist/primitives/providers/base-events-provider.js +37 -0
- package/dist/primitives/providers/chat-bubble-provider.cjs +1 -0
- package/dist/primitives/providers/chat-bubble-provider.d.ts +22 -0
- package/dist/primitives/providers/chat-bubble-provider.js +19 -0
- package/dist/primitives/providers/chat-form-provider.cjs +1 -0
- package/dist/primitives/providers/chat-form-provider.d.ts +26 -0
- package/dist/primitives/providers/chat-form-provider.js +109 -0
- package/dist/primitives/providers/chat-history-provider.cjs +1 -0
- package/dist/primitives/providers/chat-history-provider.d.ts +32 -0
- package/dist/primitives/providers/chat-history-provider.js +105 -0
- package/dist/primitives/providers/config-provider.cjs +1 -0
- package/dist/primitives/providers/config-provider.d.ts +24 -0
- package/dist/primitives/providers/config-provider.js +40 -0
- package/dist/primitives/providers/feedback-item-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-item-provider.d.ts +10 -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.d.ts +16 -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.d.ts +15 -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.d.ts +11 -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.d.ts +10 -0
- package/dist/primitives/providers/hover-popover-provider.js +13 -0
- package/dist/primitives/providers/index.cjs +1 -0
- package/dist/primitives/providers/index.d.ts +19 -0
- package/dist/primitives/providers/index.js +65 -0
- package/dist/primitives/providers/markdown-provider.cjs +1 -0
- package/dist/primitives/providers/markdown-provider.d.ts +9 -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.d.ts +13 -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.d.ts +10 -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.d.ts +8 -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.d.ts +8 -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.d.ts +61 -0
- package/dist/primitives/providers/sidebar-chat-provider.js +37 -0
- package/dist/primitives/providers/source-item-provider.cjs +1 -0
- package/dist/primitives/providers/source-item-provider.d.ts +12 -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.d.ts +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.d.ts +10 -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.d.ts +662 -0
- package/dist/primitives/utils/component-ids.js +361 -0
- package/dist/primitives/utils/compose-event-handlers.cjs +1 -0
- package/dist/primitives/utils/compose-event-handlers.d.ts +3 -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.d.ts +5 -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.d.ts +169 -0
- package/dist/primitives/utils/default-settings.js +52 -0
- package/dist/primitives/utils/form.cjs +1 -0
- package/dist/primitives/utils/form.d.ts +3 -0
- package/dist/primitives/utils/form.js +19 -0
- package/dist/primitives/utils/generate-uid.cjs +1 -0
- package/dist/primitives/utils/generate-uid.d.ts +2 -0
- package/dist/primitives/utils/generate-uid.js +14 -0
- package/dist/primitives/utils/get-message-metadata.d.ts +8 -0
- package/dist/primitives/utils/get-source-icon.cjs +1 -0
- package/dist/primitives/utils/get-source-icon.d.ts +2 -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.d.ts +4 -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.d.ts +7 -0
- package/dist/primitives/utils/merge-props.js +41 -0
- package/dist/primitives/utils/misc.cjs +1 -0
- package/dist/primitives/utils/misc.d.ts +12 -0
- package/dist/primitives/utils/misc.js +31 -0
- package/dist/primitives/utils/split-props.cjs +1 -0
- package/dist/primitives/utils/split-props.d.ts +14 -0
- package/dist/primitives/utils/split-props.js +10 -0
- package/dist/react/chat-button-modal.cjs +1 -0
- package/dist/react/chat-button-modal.d.ts +22 -0
- package/dist/react/chat-button-modal.js +41 -0
- package/dist/react/chat-button.cjs +1 -0
- package/dist/react/chat-button.d.ts +28 -0
- package/dist/react/chat-button.js +73 -0
- package/dist/react/embedded-chat.cjs +1 -0
- package/dist/react/embedded-chat.d.ts +15 -0
- package/dist/react/embedded-chat.js +431 -0
- package/dist/react/embedded-search-and-chat.cjs +1 -0
- package/dist/react/embedded-search-and-chat.d.ts +40 -0
- package/dist/react/embedded-search-and-chat.impl.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.d.ts +9 -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.d.ts +17 -0
- package/dist/react/embedded-search.js +181 -0
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.d.ts +13 -0
- package/dist/react/index.js +238 -0
- package/dist/react/modal.chat.cjs +1 -0
- package/dist/react/modal.chat.d.ts +9 -0
- package/dist/react/modal.chat.js +21 -0
- package/dist/react/modal.cjs +1 -0
- package/dist/react/modal.d.ts +23 -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.d.ts +6 -0
- package/dist/react/modal.search-and-chat.js +27 -0
- package/dist/react/modal.search.cjs +1 -0
- package/dist/react/modal.search.d.ts +6 -0
- package/dist/react/modal.search.js +21 -0
- package/dist/react/searchbar.cjs +1 -0
- package/dist/react/searchbar.d.ts +13 -0
- package/dist/react/searchbar.js +68 -0
- package/dist/react/sidebar-chat.cjs +1 -0
- package/dist/react/sidebar-chat.d.ts +4 -0
- package/dist/react/sidebar-chat.js +53 -0
- package/dist/react/utils.cjs +1 -0
- package/dist/react/utils.d.ts +6 -0
- package/dist/react/utils.js +20 -0
- package/dist/react/widget-toggle.cjs +1 -0
- package/dist/react/widget-toggle.d.ts +14 -0
- package/dist/react/widget-toggle.js +65 -0
- package/dist/styled/components/chat-bubble.cjs +1 -0
- package/dist/styled/components/chat-bubble.d.ts +5 -0
- package/dist/styled/components/chat-bubble.js +70 -0
- package/dist/styled/components/chat-button.cjs +1 -0
- package/dist/styled/components/chat-button.d.ts +9 -0
- package/dist/styled/components/chat-button.js +60 -0
- package/dist/styled/components/chat-history.cjs +1 -0
- package/dist/styled/components/chat-history.d.ts +15 -0
- package/dist/styled/components/chat-history.js +197 -0
- package/dist/styled/components/data-summary-group.cjs +1 -0
- package/dist/styled/components/data-summary-group.d.ts +11 -0
- package/dist/styled/components/data-summary-group.js +96 -0
- package/dist/styled/components/embedded-chat/session-loading.cjs +1 -0
- package/dist/styled/components/embedded-chat/session-loading.d.ts +1 -0
- package/dist/styled/components/embedded-chat/session-loading.js +23 -0
- package/dist/styled/components/embedded-chat.cjs +1 -0
- package/dist/styled/components/embedded-chat.d.ts +211 -0
- package/dist/styled/components/embedded-chat.js +1997 -0
- package/dist/styled/components/embedded-search/results-loading.cjs +1 -0
- package/dist/styled/components/embedded-search/results-loading.d.ts +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.d.ts +73 -0
- package/dist/styled/components/embedded-search.js +680 -0
- package/dist/styled/components/index.cjs +1 -0
- package/dist/styled/components/index.d.ts +13 -0
- package/dist/styled/components/index.js +28 -0
- package/dist/styled/components/loading-indicator.cjs +1 -0
- package/dist/styled/components/loading-indicator.d.ts +1 -0
- package/dist/styled/components/loading-indicator.js +36 -0
- package/dist/styled/components/message.cjs +1 -0
- package/dist/styled/components/message.d.ts +4 -0
- package/dist/styled/components/message.js +333 -0
- package/dist/styled/components/modal.cjs +1 -0
- package/dist/styled/components/modal.d.ts +6 -0
- package/dist/styled/components/modal.js +46 -0
- package/dist/styled/components/searchbar.cjs +1 -0
- package/dist/styled/components/searchbar.d.ts +11 -0
- package/dist/styled/components/searchbar.js +81 -0
- package/dist/styled/components/shadow.cjs +1 -0
- package/dist/styled/components/shadow.d.ts +3 -0
- package/dist/styled/components/shadow.js +8 -0
- package/dist/styled/components/sidebar-chat.cjs +1 -0
- package/dist/styled/components/sidebar-chat.d.ts +6 -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.d.ts +23 -0
- package/dist/styled/components/ui/markdown-styles.js +39 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.d.ts +7 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.js +33 -0
- package/dist/styled/components/ui/recipes/attachment.cjs +1 -0
- package/dist/styled/components/ui/recipes/attachment.d.ts +4 -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.d.ts +6 -0
- package/dist/styled/components/ui/recipes/button.js +87 -0
- package/dist/styled/components/ui/recipes/checkbox.cjs +1 -0
- package/dist/styled/components/ui/recipes/checkbox.d.ts +4 -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.d.ts +4 -0
- package/dist/styled/components/ui/recipes/citation.js +75 -0
- package/dist/styled/components/ui/recipes/combobox.cjs +1 -0
- package/dist/styled/components/ui/recipes/combobox.d.ts +4 -0
- package/dist/styled/components/ui/recipes/combobox.js +57 -0
- package/dist/styled/components/ui/recipes/icon.cjs +1 -0
- package/dist/styled/components/ui/recipes/icon.d.ts +2 -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.d.ts +16 -0
- package/dist/styled/components/ui/recipes/index.js +39 -0
- package/dist/styled/components/ui/recipes/input.cjs +1 -0
- package/dist/styled/components/ui/recipes/input.d.ts +5 -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.d.ts +2 -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.d.ts +16 -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.d.ts +4 -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.d.ts +4 -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.d.ts +4 -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.d.ts +4 -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.d.ts +2 -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.d.ts +4 -0
- package/dist/styled/components/ui/recipes/widget-toggle.js +35 -0
- package/dist/styled/index.cjs +1 -0
- package/dist/styled/index.d.ts +2 -0
- package/dist/styled/index.js +200 -0
- package/dist/styled/inkeep.css.cjs +4567 -0
- package/dist/styled/inkeep.css.js +4571 -0
- package/dist/styled/utils.cjs +1 -0
- package/dist/styled/utils.d.ts +4 -0
- package/dist/styled/utils.js +11 -0
- package/dist/theme/color-utils.cjs +1 -0
- package/dist/theme/color-utils.d.ts +1 -0
- package/dist/theme/color-utils.js +21 -0
- package/dist/theme/colors.cjs +1 -0
- package/dist/theme/colors.d.ts +104 -0
- package/dist/theme/colors.js +143 -0
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.d.ts +125 -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.d.ts +2 -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.d.ts +3 -0
- package/dist/theme/utils/generate-theme-variables.js +34 -0
- package/dist/types/color-mode.d.ts +44 -0
- package/dist/types/config/ai.d.ts +269 -0
- package/dist/types/config/base.d.ts +358 -0
- package/dist/types/config/components.d.ts +16 -0
- package/dist/types/config/filters.d.ts +17 -0
- package/dist/types/config/index.d.ts +36 -0
- package/dist/types/config/open-settings.d.ts +70 -0
- package/dist/types/config/search.d.ts +95 -0
- package/dist/types/config/settings/actions.d.ts +112 -0
- package/dist/types/config/settings/form.d.ts +83 -0
- package/dist/types/config/settings/jsonschema.d.ts +105 -0
- package/dist/types/config/settings/workflow.d.ts +86 -0
- package/dist/types/events.d.ts +188 -0
- package/dist/types/icons/built-in.d.ts +1 -0
- package/dist/types/icons/custom.d.ts +33 -0
- package/dist/types/icons/index.d.ts +2 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/js/index.d.ts +55 -0
- package/dist/types/message.d.ts +43 -0
- package/dist/types/shadow.d.ts +15 -0
- package/dist/types/sources.d.ts +100 -0
- package/dist/types/theme.d.ts +25 -0
- package/dist/types/widget.d.ts +27 -0
- package/package.json +140 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './factory';
|
|
2
|
+
export * as EmbeddedChatPrimitive from './embedded-chat';
|
|
3
|
+
export * as SidebarChatPrimitive from './sidebar-chat';
|
|
4
|
+
export * from './embedded-chat/chat-provider';
|
|
5
|
+
export * as EmbeddedSearchPrimitive from './embedded-search';
|
|
6
|
+
export * from './embedded-search/search-provider';
|
|
7
|
+
export * as ModalPrimitive from './modal';
|
|
8
|
+
export * from './modal/modal-provider';
|
|
9
|
+
export * as ChatButtonPrimitive from './chat-button';
|
|
10
|
+
export * as SearchBarPrimitive from './searchbar';
|
|
11
|
+
export * as ChatBubblePrimitive from './chat-bubble';
|
|
12
|
+
export * as DataSummaryPrimitive from './data-summaries';
|
|
13
|
+
export * as ChatHistoryPrimitive from './chat-history';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ikp as h, jsxFactory as f } from "./factory.js";
|
|
2
|
+
import * as r from "./embedded-chat.js";
|
|
3
|
+
import * as e from "./sidebar-chat/index.js";
|
|
4
|
+
import { ChatProvider as P, useChat as c } from "./embedded-chat/chat-provider.js";
|
|
5
|
+
import * as a from "./embedded-search.js";
|
|
6
|
+
import { SearchProvider as b, SearchProviderImpl as u, useSearch as C } from "./embedded-search/search-provider.js";
|
|
7
|
+
import * as t from "./modal.js";
|
|
8
|
+
import { ModalProvider as n, useModal as B } from "./modal/modal-provider.js";
|
|
9
|
+
import * as i from "./chat-button.js";
|
|
10
|
+
import * as o from "./searchbar.js";
|
|
11
|
+
import * as m from "./chat-bubble/index.js";
|
|
12
|
+
import * as d from "./data-summaries.js";
|
|
13
|
+
import * as s from "./chat-history/index.js";
|
|
14
|
+
export {
|
|
15
|
+
m as ChatBubblePrimitive,
|
|
16
|
+
i as ChatButtonPrimitive,
|
|
17
|
+
s as ChatHistoryPrimitive,
|
|
18
|
+
P as ChatProvider,
|
|
19
|
+
d as DataSummaryPrimitive,
|
|
20
|
+
r as EmbeddedChatPrimitive,
|
|
21
|
+
a as EmbeddedSearchPrimitive,
|
|
22
|
+
t as ModalPrimitive,
|
|
23
|
+
n as ModalProvider,
|
|
24
|
+
o as SearchBarPrimitive,
|
|
25
|
+
b as SearchProvider,
|
|
26
|
+
u as SearchProviderImpl,
|
|
27
|
+
e as SidebarChatPrimitive,
|
|
28
|
+
h as ikp,
|
|
29
|
+
f as jsxFactory,
|
|
30
|
+
c as useChat,
|
|
31
|
+
B as useModal,
|
|
32
|
+
C as useSearch
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),o=t.createContext(void 0),s=({children:e,modal:r})=>n.jsx(o.Provider,{value:r,children:e}),c=()=>t.useContext(o);exports.ModalProvider=s;exports.useModal=c;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useInkeepModal } from './use-inkeep-modal';
|
|
2
|
+
import { SetStateAction } from 'react';
|
|
3
|
+
export type ModalContextValue = ReturnType<typeof useInkeepModal>;
|
|
4
|
+
export declare const ModalProvider: React.FC<{
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
modal: ModalContextValue;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const useModal: () => {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
setOpen: (value: SetStateAction<boolean>) => void;
|
|
11
|
+
shortcutKey: string | null | undefined;
|
|
12
|
+
} | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as n, useContext as c } from "react";
|
|
4
|
+
const o = n(void 0), d = ({ children: t, modal: e }) => /* @__PURE__ */ r(o.Provider, { value: e, children: t }), i = () => c(o);
|
|
5
|
+
export {
|
|
6
|
+
d as ModalProvider,
|
|
7
|
+
i as useModal
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../hooks/use-inkeep-open-state.cjs"),n=e=>t.useInkeepOpenState(e,{eventNamePrefix:"modal",defaultTriggerSelector:"[data-inkeep-modal-trigger]"});exports.useInkeepModal=n;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenSettingsModal } from '../../../types/index.ts';
|
|
2
|
+
import { SetStateAction } from 'react';
|
|
3
|
+
export declare const useInkeepModal: (props: OpenSettingsModal | undefined) => {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
setOpen: (value: SetStateAction<boolean>) => void;
|
|
6
|
+
shortcutKey: string | null | undefined;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),g=require("../../providers/widget-provider.cjs"),C=require("../../providers/sidebar-chat-provider.cjs"),h=require("../../providers/chat-bubble-provider.cjs"),v=require("./modal-provider.cjs"),O=(s,e,o)=>{const i=v.useModal(),n=h.useOptionalChatBubble(),t=C.useOptionalSidebarChat(),r=g.useWidget(),a=i&&!i?.isOpen,d=n&&!n?.isOpen,l=t&&!t?.isOpen,c=a||d||l;m.useEffect(()=>{if(!o||c)return;const u=()=>{e?.current&&(r?.view&&r.view!==s||(e.current.focus(),e.current.selectionStart=e.current.value.length))};if(t?.isOpen){const b=setTimeout(()=>{requestAnimationFrame(u)},250);return()=>clearTimeout(b)}requestAnimationFrame(u)},[o,e,c,r?.view,s,t?.isOpen])};exports.useWidgetAutoFocus=O;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect as b } from "react";
|
|
3
|
+
import { useWidget as f } from "../../providers/widget-provider.js";
|
|
4
|
+
import { useOptionalSidebarChat as p } from "../../providers/sidebar-chat-provider.js";
|
|
5
|
+
import { useOptionalChatBubble as C } from "../../providers/chat-bubble-provider.js";
|
|
6
|
+
import { useModal as O } from "./modal-provider.js";
|
|
7
|
+
const W = (r, e, s) => {
|
|
8
|
+
const i = O(), n = C(), t = p(), o = f(), u = i && !i?.isOpen, m = n && !n?.isOpen, l = t && !t?.isOpen, c = u || m || l;
|
|
9
|
+
b(() => {
|
|
10
|
+
if (!s || c) return;
|
|
11
|
+
const a = () => {
|
|
12
|
+
e?.current && (o?.view && o.view !== r || (e.current.focus(), e.current.selectionStart = e.current.value.length));
|
|
13
|
+
};
|
|
14
|
+
if (t?.isOpen) {
|
|
15
|
+
const d = setTimeout(() => {
|
|
16
|
+
requestAnimationFrame(a);
|
|
17
|
+
}, 250);
|
|
18
|
+
return () => clearTimeout(d);
|
|
19
|
+
}
|
|
20
|
+
requestAnimationFrame(a);
|
|
21
|
+
}, [s, e, c, o?.view, r, t?.isOpen]);
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
W as useWidgetAutoFocus
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("../atoms/dialog.cjs"),i=require("./factory.cjs"),c=require("../atoms/icons/custom-icon.cjs"),u=require("./modal/use-inkeep-modal.cjs"),s=require("./modal/modal-provider.cjs"),m=require("../utils/compose-event-handlers.cjs"),M=require("../hooks/use-media-query.cjs"),p=require("../utils/misc.cjs"),v=i.ikp(t.Root,{_id:"modal"}),C=e=>{const{onOpenChange:n,config:l,...a}=e,r=u.useInkeepModal(l);return o.jsx(s.ModalProvider,{modal:r,children:o.jsx(v,{open:r.isOpen,onOpenChange:m.composeEventHandlers(n,d=>r.setOpen(d)),...a})})},y=i.ikp(t.Overlay,{_id:"modal__Overlay"}),_=i.ikp(t.Content,{_id:"modal__Content","aria-describedby":void 0}),q=e=>{const n=M.useMediaQuery("(max-width: 768px)");return o.jsx(_,{"data-mobile":p.dataAttr(n),tabIndex:-1,...e})},x=i.ikp(t.Close,{_id:"modal__Close",children:o.jsx(c.CustomIcon,{iconKey:"close"})}),O=e=>s.useModal()?o.jsx(x,{...e}):null;exports.Close=O;exports.Content=q;exports.Modal=C;exports.Overlay=y;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
import { OpenSettingsModal } from '../../types/index.ts';
|
|
3
|
+
import { PolymorphicProps } from './factory';
|
|
4
|
+
import * as DialogPrimitive from '../atoms/dialog';
|
|
5
|
+
declare const Modal: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogProps, "_id"> & Partial<Pick<DialogPrimitive.DialogProps, "_id">>>;
|
|
6
|
+
export interface PrimitiveModalProps extends ComponentPropsWithRef<typeof Modal> {
|
|
7
|
+
/**
|
|
8
|
+
* Configuration for the modal.
|
|
9
|
+
*/
|
|
10
|
+
config?: OpenSettingsModal;
|
|
11
|
+
}
|
|
12
|
+
declare const PrimitiveModal: (props: PrimitiveModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const PrimitiveModalOverlay: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogOverlayProps & RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick<DialogPrimitive.DialogOverlayProps & RefAttributes<HTMLDivElement>, "_id">>>;
|
|
14
|
+
declare const ModalContent: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogContentProps & RefAttributes<HTMLDivElement>, "aria-describedby" | "_id"> & Partial<Pick<DialogPrimitive.DialogContentProps & RefAttributes<HTMLDivElement>, "aria-describedby" | "_id">>>;
|
|
15
|
+
declare const PrimitiveModalContent: (props: ComponentPropsWithRef<typeof ModalContent>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const ModalClose: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogCloseProps & RefAttributes<HTMLButtonElement>, "children" | "_id"> & Partial<Pick<DialogPrimitive.DialogCloseProps & RefAttributes<HTMLButtonElement>, "children" | "_id">>>;
|
|
17
|
+
declare const PrimitiveModalClose: (props: ComponentPropsWithRef<typeof ModalClose>) => import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
export { PrimitiveModal as Modal, PrimitiveModalOverlay as Overlay, PrimitiveModalContent as Content, PrimitiveModalClose as Close, };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { Overlay as d, Root as s, Content as m, Close as c } from "../atoms/dialog.js";
|
|
4
|
+
import { ikp as n } from "./factory.js";
|
|
5
|
+
import { CustomIcon as p } from "../atoms/icons/custom-icon.js";
|
|
6
|
+
import { useInkeepModal as C } from "./modal/use-inkeep-modal.js";
|
|
7
|
+
import { ModalProvider as M, useModal as f } from "./modal/modal-provider.js";
|
|
8
|
+
import { composeEventHandlers as u } from "../utils/compose-event-handlers.js";
|
|
9
|
+
import { useMediaQuery as v } from "../hooks/use-media-query.js";
|
|
10
|
+
import { dataAttr as _ } from "../utils/misc.js";
|
|
11
|
+
const O = n(s, {
|
|
12
|
+
_id: "modal"
|
|
13
|
+
}), E = (o) => {
|
|
14
|
+
const { onOpenChange: t, config: i, ...a } = o, r = C(i);
|
|
15
|
+
return /* @__PURE__ */ e(M, { modal: r, children: /* @__PURE__ */ e(
|
|
16
|
+
O,
|
|
17
|
+
{
|
|
18
|
+
open: r.isOpen,
|
|
19
|
+
onOpenChange: u(t, (l) => r.setOpen(l)),
|
|
20
|
+
...a
|
|
21
|
+
}
|
|
22
|
+
) });
|
|
23
|
+
}, H = n(d, {
|
|
24
|
+
_id: "modal__Overlay"
|
|
25
|
+
}), y = n(m, {
|
|
26
|
+
_id: "modal__Content",
|
|
27
|
+
"aria-describedby": void 0
|
|
28
|
+
}), K = (o) => {
|
|
29
|
+
const t = v("(max-width: 768px)");
|
|
30
|
+
return /* @__PURE__ */ e(y, { "data-mobile": _(t), tabIndex: -1, ...o });
|
|
31
|
+
}, b = n(c, {
|
|
32
|
+
_id: "modal__Close",
|
|
33
|
+
children: /* @__PURE__ */ e(p, { iconKey: "close" })
|
|
34
|
+
}), Q = (o) => f() ? /* @__PURE__ */ e(b, { ...o }) : null;
|
|
35
|
+
export {
|
|
36
|
+
Q as Close,
|
|
37
|
+
K as Content,
|
|
38
|
+
E as Modal,
|
|
39
|
+
H as Overlay
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),d=require("react"),m=require("@zag-js/presence"),o=require("@zag-js/react");function b(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=b(m),g=d.forwardRef((t,e)=>{const{unmountOnExit:n=!1,present:r,onExitComplete:u,children:a,...l}=t,p=o.useMachine(i.machine,{present:r,onExitComplete:u}),c=i.connect(p,o.normalizeProps);return!c.present&&n?null:f.jsx("div",{hidden:!c.present,"data-state":c.skip?void 0:r?"open":"closed",ref:s=>{c.setNode(s),typeof e=="function"?e(s):e&&(e.current=s)},...l,children:a})});exports.Presence=g;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode, ComponentPropsWithoutRef, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
export interface PresenceProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
present: boolean;
|
|
4
|
+
unmountOnExit?: boolean;
|
|
5
|
+
onExitComplete?: () => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Presence: ForwardRefExoticComponent<PresenceProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as l } from "react";
|
|
4
|
+
import * as o from "@zag-js/presence";
|
|
5
|
+
import { useMachine as u, normalizeProps as d } from "@zag-js/react";
|
|
6
|
+
const E = l((s, e) => {
|
|
7
|
+
const { unmountOnExit: i = !1, present: r, onExitComplete: c, children: p, ...m } = s, a = u(o.machine, {
|
|
8
|
+
present: r,
|
|
9
|
+
onExitComplete: c
|
|
10
|
+
}), t = o.connect(a, d);
|
|
11
|
+
return !t.present && i ? null : /* @__PURE__ */ f(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
hidden: !t.present,
|
|
15
|
+
"data-state": t.skip ? void 0 : r ? "open" : "closed",
|
|
16
|
+
ref: (n) => {
|
|
17
|
+
t.setNode(n), typeof e == "function" ? e(n) : e && (e.current = n);
|
|
18
|
+
},
|
|
19
|
+
...m,
|
|
20
|
+
children: p
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
E as Presence
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("./factory.cjs"),a=require("../atoms/icons/custom-icon.cjs"),n=require("../providers/config-provider.cjs"),o=r.ikp("div",{_id:"searchBar__Container"}),s=r.ikp("button",{_id:"searchBar__Button",type:"button"}),d=r.ikp("div",{_id:"searchBar__ContentWrapper"}),h=r.ikp("div",{_id:"searchBar__Text"}),u=e=>{const{searchSettings:{placeholder:i}}=n.useInkeepConfig();return t.jsx(h,{...e,children:i})},B=r.ikp(a.CustomIcon,{_id:"searchBar__Icon",iconKey:"search"}),p=r.ikp("kbd",{_id:"searchBar__KbdWrapper"}),_=r.ikp("kbd",{_id:"searchBar__KbdShortcutKey"}),S=e=>{const{shortcutKey:i,...c}=e;return t.jsx(_,{...c,children:i?.toUpperCase()})},m=()=>{if(typeof window>"u")return!1;const e=window.navigator?.userAgent?.toLowerCase();return e.includes("macintosh")||e.includes("mac os x")},l=r.ikp("kbd",{_id:"searchBar__Ctrl",children:"Ctrl"}),v=r.ikp(a.CustomIcon,{_id:"searchBar__CmdIcon",iconKey:"command"}),K=e=>{const{shortcutKey:i,...c}=e;return t.jsx(t.Fragment,{children:i?m()?t.jsx(v,{...c}):t.jsx(l,{...c}):null})};exports.SearchBarButton=s;exports.SearchBarContainer=o;exports.SearchBarContentWrapper=d;exports.SearchBarIcon=B;exports.SearchBarKbdModifier=K;exports.SearchBarKbdShortcutKey=S;exports.SearchBarKbdWrapper=p;exports.SearchBarText=u;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { OpenSettingsSearchBar } from '../../types/index.ts';
|
|
3
|
+
import { PolymorphicProps } from './factory';
|
|
4
|
+
import { CustomIconProps } from '..';
|
|
5
|
+
declare const SearchBarContainer: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
|
|
6
|
+
declare const SearchBarPrimitiveButton: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id">>>;
|
|
7
|
+
declare const SearchBarPrimitiveContentWrapper: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
|
|
8
|
+
declare const PrimitiveSearchBarText: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
|
|
9
|
+
declare const SearchBarPrimitiveText: (props: ComponentPropsWithRef<typeof PrimitiveSearchBarText>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const SearchBarPrimitiveIcon: ForwardRefExoticComponent< PolymorphicProps & Omit< CustomIconProps, "_id" | "iconKey"> & Partial<Pick< CustomIconProps, "_id" | "iconKey">>>;
|
|
11
|
+
declare const SearchBarPrimitiveKbdWrapper: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id">>>;
|
|
12
|
+
declare const PrimitiveKbdShortcutKey: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id">>>;
|
|
13
|
+
type SearchBarPrimitiveKbdShortcutKeyProps = ComponentPropsWithRef<typeof PrimitiveKbdShortcutKey> & {
|
|
14
|
+
shortcutKey?: OpenSettingsSearchBar['shortcutKey'];
|
|
15
|
+
};
|
|
16
|
+
declare const SearchBarPrimitiveKbdShortcutKey: (props: SearchBarPrimitiveKbdShortcutKeyProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const SearchBarPrimitiveCtrl: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "children" | "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "children" | "_id">>>;
|
|
18
|
+
declare const SearchBarPrimitiveCmdIcon: ForwardRefExoticComponent< PolymorphicProps & Omit< CustomIconProps, "_id" | "iconKey"> & Partial<Pick< CustomIconProps, "_id" | "iconKey">>>;
|
|
19
|
+
type SearchBarPrimitiveKbdModifierProps = ComponentPropsWithRef<typeof SearchBarPrimitiveCtrl | typeof SearchBarPrimitiveCmdIcon> & {
|
|
20
|
+
shortcutKey?: OpenSettingsSearchBar['shortcutKey'];
|
|
21
|
+
};
|
|
22
|
+
declare const SearchBarPrimitiveKbdModifier: (props: SearchBarPrimitiveKbdModifierProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { SearchBarContainer, SearchBarPrimitiveButton as SearchBarButton, SearchBarPrimitiveText as SearchBarText, SearchBarPrimitiveContentWrapper as SearchBarContentWrapper, SearchBarPrimitiveIcon as SearchBarIcon, SearchBarPrimitiveKbdWrapper as SearchBarKbdWrapper, SearchBarPrimitiveKbdModifier as SearchBarKbdModifier, SearchBarPrimitiveKbdShortcutKey as SearchBarKbdShortcutKey, };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, Fragment as n } from "react/jsx-runtime";
|
|
3
|
+
import { ikp as r } from "./factory.js";
|
|
4
|
+
import { CustomIcon as c } from "../atoms/icons/custom-icon.js";
|
|
5
|
+
import { useInkeepConfig as o } from "../providers/config-provider.js";
|
|
6
|
+
const K = r("div", {
|
|
7
|
+
_id: "searchBar__Container"
|
|
8
|
+
}), l = r("button", {
|
|
9
|
+
_id: "searchBar__Button",
|
|
10
|
+
type: "button"
|
|
11
|
+
}), v = r("div", {
|
|
12
|
+
_id: "searchBar__ContentWrapper"
|
|
13
|
+
}), s = r("div", {
|
|
14
|
+
_id: "searchBar__Text"
|
|
15
|
+
}), b = (e) => {
|
|
16
|
+
const {
|
|
17
|
+
searchSettings: { placeholder: t }
|
|
18
|
+
} = o();
|
|
19
|
+
return /* @__PURE__ */ a(s, { ...e, children: t });
|
|
20
|
+
}, C = r(c, {
|
|
21
|
+
_id: "searchBar__Icon",
|
|
22
|
+
iconKey: "search"
|
|
23
|
+
}), f = r("kbd", {
|
|
24
|
+
_id: "searchBar__KbdWrapper"
|
|
25
|
+
}), h = r("kbd", {
|
|
26
|
+
_id: "searchBar__KbdShortcutKey"
|
|
27
|
+
}), P = (e) => {
|
|
28
|
+
const { shortcutKey: t, ...i } = e;
|
|
29
|
+
return /* @__PURE__ */ a(h, { ...i, children: t?.toUpperCase() });
|
|
30
|
+
}, d = () => {
|
|
31
|
+
if (typeof window > "u")
|
|
32
|
+
return !1;
|
|
33
|
+
const e = window.navigator?.userAgent?.toLowerCase();
|
|
34
|
+
return e.includes("macintosh") || e.includes("mac os x");
|
|
35
|
+
}, B = r("kbd", {
|
|
36
|
+
_id: "searchBar__Ctrl",
|
|
37
|
+
children: "Ctrl"
|
|
38
|
+
}), m = r(c, {
|
|
39
|
+
_id: "searchBar__CmdIcon",
|
|
40
|
+
iconKey: "command"
|
|
41
|
+
}), y = (e) => {
|
|
42
|
+
const { shortcutKey: t, ...i } = e;
|
|
43
|
+
return /* @__PURE__ */ a(n, { children: t ? d() ? /* @__PURE__ */ a(m, { ...i }) : /* @__PURE__ */ a(B, { ...i }) : null });
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
l as SearchBarButton,
|
|
47
|
+
K as SearchBarContainer,
|
|
48
|
+
v as SearchBarContentWrapper,
|
|
49
|
+
C as SearchBarIcon,
|
|
50
|
+
y as SearchBarKbdModifier,
|
|
51
|
+
P as SearchBarKbdShortcutKey,
|
|
52
|
+
f as SearchBarKbdWrapper,
|
|
53
|
+
b as SearchBarText
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),a=require("react"),d=require("../factory.cjs"),n=require("../../providers/sidebar-chat-provider.cjs"),b=require("./use-sidebar-chat-resizer.cjs"),h=require("../presence.cjs"),C=require("../../utils/misc.cjs"),R=require("../../utils/split-props.cjs"),l=require("../../atoms/icons/built-in-icon-renderer.cjs"),P=d.ikp(h.Presence,{_id:"sidebarChat__Root"}),S=["position","minWidth","maxWidth","defaultWidth","openSettings"],u=a.forwardRef((i,e)=>{const[s,o]=R.splitProps(i,S),t=n.useInkeepSidebarChat(s);return r.jsx(n.SidebarChatProvider,{value:t,children:r.jsx(P,{ref:e,present:t.isOpen,"data-sidebar":"","data-position":t.position,"data-open":C.dataAttr(t.isOpen),style:{"--width":`${t.width}px`},...o})})}),m=d.ikp("div",{_id:"sidebarChat__Resizer"}),p=a.forwardRef((i,e)=>{const{position:s}=n.useSidebarChat(),{onMouseDown:o,resizerRef:t}=b.useSidebarChatResizer();return r.jsx(m,{ref:c=>{typeof e=="function"?e(c):e&&(e.current=c),t.current=c},"data-position":s,onMouseDown:o,...i})}),v=d.ikp("div",{_id:"sidebarChat__Header"}),f=a.forwardRef((i,e)=>r.jsx(v,{ref:e,...i})),_=d.ikp("button",{_id:"sidebarChat__CloseButton",children:r.jsx(l.BuiltInIconRenderer,{iconSettings:{builtIn:"IoCloseOutline"}})}),q=a.forwardRef((i,e)=>{const{setOpen:s}=n.useSidebarChat(),o=()=>{s(!1)};return r.jsx(_,{ref:e,onClick:o,...i})});exports.CloseButton=q;exports.Header=f;exports.Resizer=p;exports.Root=u;exports.SidebarChatPrimitiveResizer=p;exports.SidebarChatPrimitiveRoot=u;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SidebarChatProps } from '../../providers/sidebar-chat-provider';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes, DetailedHTMLProps, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import { PolymorphicProps } from '..';
|
|
4
|
+
import { PresenceProps } from '../presence';
|
|
5
|
+
export declare const SidebarChatPrimitiveRoot: ForwardRefExoticComponent<Omit<Omit< PolymorphicProps & Omit< PresenceProps & RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick< PresenceProps & RefAttributes<HTMLDivElement>, "_id">>, "present"> & SidebarChatProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const SidebarChatPrimitiveResizer: ForwardRefExoticComponent<Omit< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const SidebarChatPrimitiveHeader: ForwardRefExoticComponent<Omit< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SidebarChatPrimitiveCloseButton: ForwardRefExoticComponent<Omit< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "_id">>, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export { SidebarChatPrimitiveRoot as Root, SidebarChatPrimitiveResizer as Resizer, SidebarChatPrimitiveCloseButton as CloseButton, SidebarChatPrimitiveHeader as Header, };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { ikp as a } from "../factory.js";
|
|
4
|
+
import { useInkeepSidebarChat as p, SidebarChatProvider as c, useSidebarChat as m } from "../../providers/sidebar-chat-provider.js";
|
|
5
|
+
import { useSidebarChatResizer as h } from "./use-sidebar-chat-resizer.js";
|
|
6
|
+
import { Presence as u } from "../presence.js";
|
|
7
|
+
import { dataAttr as C } from "../../utils/misc.js";
|
|
8
|
+
import { splitProps as l } from "../../utils/split-props.js";
|
|
9
|
+
import { BuiltInIconRenderer as b } from "../../atoms/icons/built-in-icon-renderer.js";
|
|
10
|
+
const f = a(u, {
|
|
11
|
+
_id: "sidebarChat__Root"
|
|
12
|
+
}), P = [
|
|
13
|
+
"position",
|
|
14
|
+
"minWidth",
|
|
15
|
+
"maxWidth",
|
|
16
|
+
"defaultWidth",
|
|
17
|
+
"openSettings"
|
|
18
|
+
], W = n((i, t) => {
|
|
19
|
+
const [r, s] = l(i, P), e = p(r);
|
|
20
|
+
return /* @__PURE__ */ o(c, { value: e, children: /* @__PURE__ */ o(
|
|
21
|
+
f,
|
|
22
|
+
{
|
|
23
|
+
ref: t,
|
|
24
|
+
present: e.isOpen,
|
|
25
|
+
"data-sidebar": "",
|
|
26
|
+
"data-position": e.position,
|
|
27
|
+
"data-open": C(e.isOpen),
|
|
28
|
+
style: {
|
|
29
|
+
"--width": `${e.width}px`
|
|
30
|
+
},
|
|
31
|
+
...s
|
|
32
|
+
}
|
|
33
|
+
) });
|
|
34
|
+
}), R = a("div", {
|
|
35
|
+
_id: "sidebarChat__Resizer"
|
|
36
|
+
}), g = n((i, t) => {
|
|
37
|
+
const { position: r } = m(), { onMouseDown: s, resizerRef: e } = h();
|
|
38
|
+
return /* @__PURE__ */ o(
|
|
39
|
+
R,
|
|
40
|
+
{
|
|
41
|
+
ref: (d) => {
|
|
42
|
+
typeof t == "function" ? t(d) : t && (t.current = d), e.current = d;
|
|
43
|
+
},
|
|
44
|
+
"data-position": r,
|
|
45
|
+
onMouseDown: s,
|
|
46
|
+
...i
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}), _ = a("div", {
|
|
50
|
+
_id: "sidebarChat__Header"
|
|
51
|
+
}), y = n((i, t) => /* @__PURE__ */ o(_, { ref: t, ...i })), v = a("button", {
|
|
52
|
+
_id: "sidebarChat__CloseButton",
|
|
53
|
+
children: /* @__PURE__ */ o(b, { iconSettings: { builtIn: "IoCloseOutline" } })
|
|
54
|
+
}), A = n((i, t) => {
|
|
55
|
+
const { setOpen: r } = m();
|
|
56
|
+
return /* @__PURE__ */ o(v, { ref: t, onClick: () => {
|
|
57
|
+
r(!1);
|
|
58
|
+
}, ...i });
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
A as CloseButton,
|
|
62
|
+
y as Header,
|
|
63
|
+
g as Resizer,
|
|
64
|
+
W as Root,
|
|
65
|
+
g as SidebarChatPrimitiveResizer,
|
|
66
|
+
W as SidebarChatPrimitiveRoot
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),R=require("../../providers/sidebar-chat-provider.cjs"),p=()=>{const{width:r,setWidth:o,position:u,minWidth:s,maxWidth:i,autoCloseThreshold:w,setOpen:c}=R.useSidebarChat(),v=e.useRef(null),n=e.useRef(!1),d=e.useRef(0),a=e.useRef(0),l=s*w;return e.useEffect(()=>{const t=b=>{if(!n.current)return;const m=b.clientX-d.current,g=u==="right"?-m:m,f=a.current+g;if(f<l){c(!1);return}const y=Math.max(s,Math.min(i,f));o(y)},h=()=>{n.current=!1,document.body.style.cursor="",document.body.style.userSelect=""};return window.addEventListener("mousemove",t),window.addEventListener("mouseup",h),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",h)}},[o,u,s,i,l,c]),{onMouseDown:e.useCallback(t=>{n.current=!0,d.current=t.clientX,a.current=r,document.body.style.cursor="ew-resize",document.body.style.userSelect="none",t.preventDefault()},[r]),resizerRef:v}};exports.useSidebarChatResizer=p;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useRef as t, useEffect as b, useCallback as D } from "react";
|
|
3
|
+
import { useSidebarChat as M } from "../../providers/sidebar-chat-provider.js";
|
|
4
|
+
const L = () => {
|
|
5
|
+
const { width: s, setWidth: r, position: u, minWidth: n, maxWidth: i, autoCloseThreshold: f, setOpen: c } = M(), v = t(null), o = t(!1), d = t(0), a = t(0), l = n * f;
|
|
6
|
+
return b(() => {
|
|
7
|
+
const e = (p) => {
|
|
8
|
+
if (!o.current) return;
|
|
9
|
+
const h = p.clientX - d.current, g = u === "right" ? -h : h, w = a.current + g;
|
|
10
|
+
if (w < l) {
|
|
11
|
+
c(!1);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const y = Math.max(n, Math.min(i, w));
|
|
15
|
+
r(y);
|
|
16
|
+
}, m = () => {
|
|
17
|
+
o.current = !1, document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
18
|
+
};
|
|
19
|
+
return window.addEventListener("mousemove", e), window.addEventListener("mouseup", m), () => {
|
|
20
|
+
window.removeEventListener("mousemove", e), window.removeEventListener("mouseup", m);
|
|
21
|
+
};
|
|
22
|
+
}, [r, u, n, i, l, c]), {
|
|
23
|
+
onMouseDown: D(
|
|
24
|
+
(e) => {
|
|
25
|
+
o.current = !0, d.current = e.clientX, a.current = s, document.body.style.cursor = "ew-resize", document.body.style.userSelect = "none", e.preventDefault();
|
|
26
|
+
},
|
|
27
|
+
[s]
|
|
28
|
+
),
|
|
29
|
+
resizerRef: v
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
L as useSidebarChatResizer
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime");function o(t){return e.jsxs("svg",{viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("title",{children:"Tag Line Logo Icon"}),e.jsx("path",{d:"M7.2413 7.9244C6.85545 7.9244 6.49892 8.13025 6.30599 8.4644L1.99827 15.9256C1.80535 16.2597 1.80535 16.6714 1.99827 17.0056L6.30599 24.4668C6.49892 24.8009 6.85545 25.0068 7.2413 25.0068L15.8567 25.0068C16.2426 25.0068 16.5991 24.8009 16.792 24.4668L21.0998 17.0056C21.2927 16.6714 21.2927 16.2597 21.0998 15.9256L16.792 8.4644C16.5991 8.13025 16.2426 7.9244 15.8567 7.9244L7.2413 7.9244Z",stroke:"currentColor",strokeWidth:"1.75"}),e.jsx("path",{d:"M24.8143 7.76209C27.3966 8.42659 27.1023 9.89204 28.1732 12.8728C28.8603 14.7852 32.182 17.1565 29.1465 21.766C28.2406 23.1417 25.3276 24.7738 23.2199 25.2265C18.5764 26.2085 15.8404 23.98 13.4131 20.3057C11.592 17.5265 12.2355 13.5253 14.9976 11.5606C17.6151 9.70372 21.4197 6.82238 24.8143 7.76209Z",stroke:"currentColor",strokeWidth:"1.75"})]})}exports.default=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function TagLineLogoIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
function n(t) {
|
|
4
|
+
return /* @__PURE__ */ e("svg", { viewBox: "0 0 32 33", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
5
|
+
/* @__PURE__ */ o("title", { children: "Tag Line Logo Icon" }),
|
|
6
|
+
/* @__PURE__ */ o(
|
|
7
|
+
"path",
|
|
8
|
+
{
|
|
9
|
+
d: "M7.2413 7.9244C6.85545 7.9244 6.49892 8.13025 6.30599 8.4644L1.99827 15.9256C1.80535 16.2597 1.80535 16.6714 1.99827 17.0056L6.30599 24.4668C6.49892 24.8009 6.85545 25.0068 7.2413 25.0068L15.8567 25.0068C16.2426 25.0068 16.5991 24.8009 16.792 24.4668L21.0998 17.0056C21.2927 16.6714 21.2927 16.2597 21.0998 15.9256L16.792 8.4644C16.5991 8.13025 16.2426 7.9244 15.8567 7.9244L7.2413 7.9244Z",
|
|
10
|
+
stroke: "currentColor",
|
|
11
|
+
strokeWidth: "1.75"
|
|
12
|
+
}
|
|
13
|
+
),
|
|
14
|
+
/* @__PURE__ */ o(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
d: "M24.8143 7.76209C27.3966 8.42659 27.1023 9.89204 28.1732 12.8728C28.8603 14.7852 32.182 17.1565 29.1465 21.766C28.2406 23.1417 25.3276 24.7738 23.2199 25.2265C18.5764 26.2085 15.8404 23.98 13.4131 20.3057C11.592 17.5265 12.2355 13.5253 14.9976 11.5606C17.6151 9.70372 21.4197 6.82238 24.8143 7.76209Z",
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
strokeWidth: "1.75"
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
n as default
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),g=n=>{const{triggerSelector:e,onTriggerClick:t}=n;o.useEffect(()=>{const r=c=>{const i=c.target;e&&i?.matches?.(e)&&t?.()};return e&&document.addEventListener("click",r),()=>{e&&document.removeEventListener("click",r)}},[e,t])};exports.useComponentTrigger=g;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect as o } from "react";
|
|
3
|
+
const s = (c) => {
|
|
4
|
+
const { triggerSelector: e, onTriggerClick: t } = c;
|
|
5
|
+
o(() => {
|
|
6
|
+
const r = (n) => {
|
|
7
|
+
const i = n.target;
|
|
8
|
+
e && i?.matches?.(e) && t?.();
|
|
9
|
+
};
|
|
10
|
+
return e && document.addEventListener("click", r), () => {
|
|
11
|
+
e && document.removeEventListener("click", r);
|
|
12
|
+
};
|
|
13
|
+
}, [e, t]);
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
s as useComponentTrigger
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _="__ask_ai__";exports.ASK_AI_TRIGGER_VALUE=_;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ASK_AI_TRIGGER_VALUE = "__ask_ai__";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-boolean.cjs"),s=require("./use-component-classnames.cjs"),u=require("./use-container-size.cjs"),o=require("./use-inkeep-open-state.cjs"),n=require("./use-copy-to-clipboard.cjs"),t=require("./use-instant-update.cjs"),r=require("./use-is-mounted.cjs"),i=require("./use-media-query.cjs"),a=require("./use-resize-observer.cjs"),l=require("./use-scrolling-fades.cjs"),c=require("./use-settle-action.cjs"),p=require("./use-simple-scroll.cjs");exports.useBoolean=e.useBoolean;exports.useComponentClassNames=s.useComponentClassNames;exports.useContainerSize=u.useContainerSize;exports.useInkeepOpenState=o.useInkeepOpenState;exports.useCopyToClipboard=n.useCopyToClipboard;exports.useInstantUpdate=t.useInstantUpdate;exports.useIsMounted=r.useIsMounted;exports.useMediaQuery=i.useMediaQuery;exports.useResizeObserver=a.useResizeObserver;exports.useScrollingFades=l.useScrollingFades;exports.useSettleAction=c.useSettleAction;exports.useSimpleScroll=p.useSimpleScroll;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './use-boolean';
|
|
2
|
+
export * from './use-component-classnames';
|
|
3
|
+
export * from './use-container-size';
|
|
4
|
+
export * from './use-inkeep-open-state';
|
|
5
|
+
export * from './use-copy-to-clipboard';
|
|
6
|
+
export * from './use-instant-update';
|
|
7
|
+
export * from './use-is-mounted';
|
|
8
|
+
export * from './use-media-query';
|
|
9
|
+
export * from './use-resize-observer';
|
|
10
|
+
export * from './use-scrolling-fades';
|
|
11
|
+
export * from './use-settle-action';
|
|
12
|
+
export * from './use-simple-scroll';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useBoolean as r } from "./use-boolean.js";
|
|
2
|
+
import { useComponentClassNames as s } from "./use-component-classnames.js";
|
|
3
|
+
import { useContainerSize as m } from "./use-container-size.js";
|
|
4
|
+
import { useInkeepOpenState as f } from "./use-inkeep-open-state.js";
|
|
5
|
+
import { useCopyToClipboard as x } from "./use-copy-to-clipboard.js";
|
|
6
|
+
import { useInstantUpdate as l } from "./use-instant-update.js";
|
|
7
|
+
import { useIsMounted as S } from "./use-is-mounted.js";
|
|
8
|
+
import { useMediaQuery as C } from "./use-media-query.js";
|
|
9
|
+
import { useResizeObserver as I } from "./use-resize-observer.js";
|
|
10
|
+
import { useScrollingFades as y } from "./use-scrolling-fades.js";
|
|
11
|
+
import { useSettleAction as M } from "./use-settle-action.js";
|
|
12
|
+
import { useSimpleScroll as g } from "./use-simple-scroll.js";
|
|
13
|
+
export {
|
|
14
|
+
r as useBoolean,
|
|
15
|
+
s as useComponentClassNames,
|
|
16
|
+
m as useContainerSize,
|
|
17
|
+
x as useCopyToClipboard,
|
|
18
|
+
f as useInkeepOpenState,
|
|
19
|
+
l as useInstantUpdate,
|
|
20
|
+
S as useIsMounted,
|
|
21
|
+
C as useMediaQuery,
|
|
22
|
+
I as useResizeObserver,
|
|
23
|
+
y as useScrollingFades,
|
|
24
|
+
M as useSettleAction,
|
|
25
|
+
g as useSimpleScroll
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),b=require("./use-local-storage.cjs"),_=require("./use-inkeep-api-client.cjs"),M=30*1e3,$=2147483647,D=()=>{},F=async()=>({});function C(n){return new Date(n.expiresAt).getTime()-M<=Date.now()}const L=({baseUrl:n,appId:t,getCaptchaHeader:d,invalidateCaptcha:g,optOutAllAnalytics:p})=>{const w=t&&!p?`inkeep_session_${t}`:null,[u,R]=b.useLocalStorage(w),{fetchWithAuth:k}=_.useInkeepApiClient({appId:t,authToken:void 0,getCaptchaHeader:d??F,invalidateCaptcha:g??D}),l=e.useRef(n);l.current=n;const h=e.useRef(t);h.current=t;const c=e.useRef(u);c.current=u;const S=e.useRef(R);S.current=R;const T=e.useRef(k);T.current=k;const f=e.useRef(null),s=e.useCallback(async r=>{if(!l.current||!h.current)return null;if(!r&&f.current)return f.current;const o=`${l.current}/run/auth/apps/${h.current}/anonymous-session`,a=(async()=>{try{const i={"Content-Type":"application/json"},v=c.current?.token;v&&(i.Authorization=`Bearer ${v}`);const A=await T.current(o,{method:"POST",headers:i,signal:r});if(!A.ok)throw new Error(`Failed to fetch anonymous session: ${A.status}`);const y=await A.json();return S.current({token:y.token,expiresAt:y.expiresAt}),y.token}catch(i){return i instanceof Error&&i.name==="AbortError"||console.error("[anonymous-session] fetch failed",i),null}finally{r||(f.current=null)}})();return r||(f.current=a),a},[]),E=e.useRef(!1);e.useEffect(()=>{if(!n||!t)return;const r=!E.current;if(E.current=!0,!r&&c.current&&!C(c.current)||f.current)return;const o=new AbortController;return s(o.signal),()=>o.abort()},[n,t,s]),e.useEffect(()=>{if(!n||!t||!u?.expiresAt)return;const m=new Date(u.expiresAt).getTime()-M-Date.now();if(m<=0)return;const a=setTimeout(()=>s(),Math.min(m,$));return()=>clearTimeout(a)},[n,t,u?.expiresAt,s]),e.useEffect(()=>{if(!n||!t)return;const r=()=>{if(document.visibilityState!=="visible")return;const o=c.current;(!o||C(o))&&s()};return document.addEventListener("visibilitychange",r),()=>document.removeEventListener("visibilitychange",r)},[n,t,s]);const x=e.useCallback(()=>s(),[s]);return{sessionToken:u?.token??null,refreshSession:x}};exports.useAnonymousSession=L;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface UseAnonymousSessionOptions {
|
|
2
|
+
baseUrl?: string;
|
|
3
|
+
appId?: string;
|
|
4
|
+
getCaptchaHeader?: () => Promise<Record<string, string>>;
|
|
5
|
+
invalidateCaptcha?: () => void;
|
|
6
|
+
optOutAllAnalytics?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const useAnonymousSession: ({ baseUrl, appId, getCaptchaHeader, invalidateCaptcha, optOutAllAnalytics, }: UseAnonymousSessionOptions) => {
|
|
9
|
+
sessionToken: string | null;
|
|
10
|
+
refreshSession: () => Promise<string | null>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|