@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,188 @@
|
|
|
1
|
+
import { UserProperties } from './config/base';
|
|
2
|
+
import { GetHelpOption } from './config/settings/actions';
|
|
3
|
+
import { TransformedSource } from './sources';
|
|
4
|
+
export interface MessageFeedback {
|
|
5
|
+
unrelated_response: boolean;
|
|
6
|
+
inaccurate_statement: boolean;
|
|
7
|
+
inaccurate_code_snippet: boolean;
|
|
8
|
+
irrelevant_citations: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type FeedbackItemType = keyof MessageFeedback;
|
|
11
|
+
export type FeebackReason = {
|
|
12
|
+
label: string;
|
|
13
|
+
details: string;
|
|
14
|
+
};
|
|
15
|
+
export type FeedbackType = 'positive' | 'negative';
|
|
16
|
+
export interface FeedbackBody {
|
|
17
|
+
type: FeedbackType;
|
|
18
|
+
messageId: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
reasons?: {
|
|
21
|
+
label: string;
|
|
22
|
+
details: string;
|
|
23
|
+
}[] | null;
|
|
24
|
+
userProperties: UserProperties;
|
|
25
|
+
properties?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
export interface InkeepFeedback {
|
|
28
|
+
type: FeedbackType;
|
|
29
|
+
messageId: string;
|
|
30
|
+
reasons?: FeebackReason[];
|
|
31
|
+
}
|
|
32
|
+
export type EntityType = 'conversation' | 'message' | 'search';
|
|
33
|
+
interface CommonProperties {
|
|
34
|
+
conversationId: string;
|
|
35
|
+
componentType: any;
|
|
36
|
+
tags: string[];
|
|
37
|
+
}
|
|
38
|
+
type ExtendPropertiesWithCommon<T> = T extends {
|
|
39
|
+
properties: infer P;
|
|
40
|
+
} ? T & {
|
|
41
|
+
properties: P & CommonProperties;
|
|
42
|
+
} : T;
|
|
43
|
+
export type InkeepEventWithCommon = ExtendPropertiesWithCommon<InkeepEvent>;
|
|
44
|
+
export type InkeepCallbackEvent = InkeepEventWithCommon;
|
|
45
|
+
export type SearchEvent = SearchQueryResponseReceivedEvent | SearchQuerySubmittedEvent | SearchResultClickedEvent;
|
|
46
|
+
export type ChatEvent = AssistantMessageReceivedEvent | AssistantAnswerDisplayedEvent | UserMessageSubmittedEvent | UserEscalationIndicatedEvent | SharedChatLoadedEvent | AssistantPositiveFeedbackSubmittedEvent | AssistantNegativeFeedbackSubmittedEvent | ChatClearButtonClickedEvent | AssistantMessageCopiedEvent | GetHelpOptionClickedEvent | ChatShareButtonClickedEvent | AssistantSourceItemClickedEvent | AssistantMessageLinkOpenedEvent | AssistantCodeBlockCopiedEvent | ChatErrorEvent;
|
|
47
|
+
export type WidgetEvent = ModalOpenedEvent | ModalClosedEvent | ChatBubbleOpenedEvent | ChatBubbleClosedEvent;
|
|
48
|
+
export type InkeepEvent = SearchEvent | ChatEvent | WidgetEvent;
|
|
49
|
+
export interface AssistantMessageReceivedEvent {
|
|
50
|
+
eventName: 'assistant_message_received';
|
|
51
|
+
properties: {
|
|
52
|
+
conversationId?: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface AssistantAnswerDisplayedEvent {
|
|
56
|
+
eventName: 'assistant_answer_displayed';
|
|
57
|
+
properties: {
|
|
58
|
+
conversationId?: string;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface UserMessageSubmittedEvent {
|
|
62
|
+
eventName: 'user_message_submitted';
|
|
63
|
+
properties: {
|
|
64
|
+
conversationId?: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export interface UserEscalationIndicatedEvent {
|
|
68
|
+
eventName: 'user_escalation_indicated';
|
|
69
|
+
properties: {
|
|
70
|
+
escalationType: 'downvote' | 'get_help_option' | 'contact_us' | 'support_form';
|
|
71
|
+
getHelpOption?: GetHelpOption;
|
|
72
|
+
getHelpOptionName?: string;
|
|
73
|
+
conversationId?: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export interface SharedChatLoadedEvent {
|
|
77
|
+
eventName: 'shared_chat_loaded';
|
|
78
|
+
properties: {
|
|
79
|
+
conversationId?: string;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
interface FeedbackProperties {
|
|
83
|
+
conversationId?: string;
|
|
84
|
+
reasons: FeebackReason[];
|
|
85
|
+
}
|
|
86
|
+
export interface AssistantNegativeFeedbackSubmittedEvent {
|
|
87
|
+
eventName: 'assistant_negative_feedback_submitted';
|
|
88
|
+
properties: FeedbackProperties;
|
|
89
|
+
}
|
|
90
|
+
export interface AssistantPositiveFeedbackSubmittedEvent {
|
|
91
|
+
eventName: 'assistant_positive_feedback_submitted';
|
|
92
|
+
properties: FeedbackProperties;
|
|
93
|
+
}
|
|
94
|
+
export interface GetHelpOptionClickedEvent {
|
|
95
|
+
eventName: 'get_help_option_clicked';
|
|
96
|
+
properties: {
|
|
97
|
+
getHelpOption: GetHelpOption;
|
|
98
|
+
conversationId?: string;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export interface ChatClearButtonClickedEvent {
|
|
102
|
+
eventName: 'chat_clear_button_clicked';
|
|
103
|
+
properties: {
|
|
104
|
+
conversationId: string;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export interface ChatShareButtonClickedEvent {
|
|
108
|
+
eventName: 'chat_share_button_clicked';
|
|
109
|
+
properties: {
|
|
110
|
+
sharedChatUrl: string;
|
|
111
|
+
sharedConversationId: string;
|
|
112
|
+
originalConversationId: string;
|
|
113
|
+
conversationId: string;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
export interface AssistantMessageCopiedEvent {
|
|
117
|
+
eventName: 'assistant_message_copied';
|
|
118
|
+
properties: {
|
|
119
|
+
conversationId: string;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export interface AssistantCodeBlockCopiedEvent {
|
|
123
|
+
eventName: 'assistant_code_block_copied';
|
|
124
|
+
properties: {
|
|
125
|
+
conversationId: string;
|
|
126
|
+
language: string;
|
|
127
|
+
code: string;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export interface AssistantSourceItemClickedEvent {
|
|
131
|
+
eventName: 'assistant_source_item_clicked';
|
|
132
|
+
properties: {
|
|
133
|
+
conversationId: string;
|
|
134
|
+
link: TransformedSource;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export interface AssistantMessageLinkOpenedEvent {
|
|
138
|
+
eventName: 'assistant_message_inline_link_opened';
|
|
139
|
+
properties: {
|
|
140
|
+
title?: string;
|
|
141
|
+
url?: string;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
export interface ChatErrorEvent {
|
|
145
|
+
eventName: 'chat_error';
|
|
146
|
+
properties: {
|
|
147
|
+
conversationId: string;
|
|
148
|
+
error?: string;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export interface SearchResultClickedEvent {
|
|
152
|
+
eventName: 'search_result_clicked';
|
|
153
|
+
properties: {
|
|
154
|
+
searchQuery: string;
|
|
155
|
+
title?: string;
|
|
156
|
+
url?: string;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export interface SearchQuerySubmittedEvent {
|
|
160
|
+
eventName: 'search_query_submitted';
|
|
161
|
+
properties: {
|
|
162
|
+
searchQuery: string;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
export interface SearchQueryResponseReceivedEvent {
|
|
166
|
+
eventName: 'search_query_response_received';
|
|
167
|
+
properties: {
|
|
168
|
+
searchQuery: string;
|
|
169
|
+
totalResults: number;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
export interface ModalOpenedEvent {
|
|
173
|
+
eventName: 'modal_opened';
|
|
174
|
+
properties: {};
|
|
175
|
+
}
|
|
176
|
+
export interface ModalClosedEvent {
|
|
177
|
+
eventName: 'modal_closed';
|
|
178
|
+
properties: {};
|
|
179
|
+
}
|
|
180
|
+
export interface ChatBubbleOpenedEvent {
|
|
181
|
+
eventName: 'chat_bubble_opened';
|
|
182
|
+
properties: {};
|
|
183
|
+
}
|
|
184
|
+
export interface ChatBubbleClosedEvent {
|
|
185
|
+
eventName: 'chat_bubble_closed';
|
|
186
|
+
properties: {};
|
|
187
|
+
}
|
|
188
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AvailableBuiltInIcons = 'FaBook' | 'FaGithub' | 'FaDatabase' | 'FaStackOverflow' | 'FaChrome' | 'FaPhone' | 'FaEnvelope' | 'FaPencil' | 'FaBlog' | 'FaSort' | 'FaPenSquare' | 'FaChevronRight' | 'FaChevronUp' | 'FaFilePdf' | 'FaDiscourse' | 'FaDiscord' | 'FaSlack' | 'IoDocumentTextSharp' | 'IoDocumentSharp' | 'IoSend' | 'IoInformationCircleOutline' | 'IoLinkOutline' | 'IoThumbsUpSharp' | 'IoThumbsDownSharp' | 'IoSearch' | 'IoCopyOutline' | 'IoCopy' | 'IoReturnDownBackOutline' | 'IoChevronForwardOutline' | 'IoReturnDownForward' | 'IoCloseOutline' | 'IoCheckmarkOutline' | 'IoBookOutline' | 'IoReaderOutline' | 'IoHelpBuoyOutline' | 'IoPeopleOutline' | 'IoDocumentTextOutline' | 'IoChatbubblesOutline' | 'FaRegFilePdf' | 'IoLogoDiscord' | 'IoLogoGithub' | 'IoTerminal' | 'FaBriefcase' | 'IoPlayCircleOutline' | 'IoPencilOutline' | 'IoCheckmarkDoneOutline' | 'IoHomeOutline' | 'IoMail' | 'IoOpenOutline' | 'FaTelegram' | 'FaTable' | 'FaMagnifyingGlass' | 'LuArrowLeft' | 'LuCircleCheck' | 'LuCommand' | 'LuCopy' | 'LuCheck' | 'LuCornerDownLeft' | 'LuGlobe' | 'LuHistory' | 'LuPanelLeft' | 'LuLink' | 'LuRepeat' | 'LuThumbsDown' | 'LuThumbsUp' | 'LuUsers' | 'LuUser' | 'LuArrowUpRight' | 'LuBookOpen' | 'LuChevronDown' | 'LuLoaderCircle' | 'FiEdit' | 'LuSparkles' | 'LuCornerDownRight' | 'LuCalendar' | 'LuHeadset' | 'LuSend';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AvailableBuiltInIcons } from './built-in';
|
|
2
|
+
export type InkeepCustomIcon = {
|
|
3
|
+
builtIn: AvailableBuiltInIcons;
|
|
4
|
+
} | {
|
|
5
|
+
custom: string;
|
|
6
|
+
};
|
|
7
|
+
export interface CustomIcons {
|
|
8
|
+
search: string;
|
|
9
|
+
thumbsUp: string;
|
|
10
|
+
thumbsDown: string;
|
|
11
|
+
messageCopy: string;
|
|
12
|
+
messageCopied: string;
|
|
13
|
+
messageRevise: string;
|
|
14
|
+
codeCopy: string;
|
|
15
|
+
codeCopied: string;
|
|
16
|
+
openLinkInNewTab: string;
|
|
17
|
+
openLinkInSameTab: string;
|
|
18
|
+
newLine: string;
|
|
19
|
+
breadcrumbSeparator: string;
|
|
20
|
+
switchToSearch: string;
|
|
21
|
+
switchToChat: string;
|
|
22
|
+
chatSubmit: string;
|
|
23
|
+
close: string;
|
|
24
|
+
info: string;
|
|
25
|
+
command: string;
|
|
26
|
+
chatButtonClose: string;
|
|
27
|
+
chatHistory: string;
|
|
28
|
+
chatHistoryPanel: string;
|
|
29
|
+
backToChat: string;
|
|
30
|
+
}
|
|
31
|
+
export type CustomIconMap = {
|
|
32
|
+
[K in keyof CustomIcons]?: InkeepCustomIcon;
|
|
33
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './config/settings/actions';
|
|
2
|
+
export * from './config/settings/form';
|
|
3
|
+
export * from './config/settings/workflow';
|
|
4
|
+
export * from './config/settings/jsonschema';
|
|
5
|
+
export * from './config';
|
|
6
|
+
export * from './config/ai';
|
|
7
|
+
export * from './config/base';
|
|
8
|
+
export * from './config/search';
|
|
9
|
+
export * from './config/open-settings';
|
|
10
|
+
export * from './config/components';
|
|
11
|
+
export * from './config/filters';
|
|
12
|
+
export * from './message';
|
|
13
|
+
export * from './widget';
|
|
14
|
+
export * from './events';
|
|
15
|
+
export * from './theme';
|
|
16
|
+
export * from './color-mode';
|
|
17
|
+
export * from './icons';
|
|
18
|
+
export * from './shadow';
|
|
19
|
+
export * from './sources';
|
|
20
|
+
export * from './js';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { InkeepAIChatSettings } from '../config/ai';
|
|
2
|
+
import { InkeepBaseSettings } from '../config/base';
|
|
3
|
+
import { OpenSettingsModal } from '../config/open-settings';
|
|
4
|
+
import { InkeepSearchSettings } from '../config/search';
|
|
5
|
+
/**
|
|
6
|
+
* Represents the available Inkeep component types that can be rendered
|
|
7
|
+
* via the global Inkeep object.
|
|
8
|
+
*/
|
|
9
|
+
export type InkeepJSComponent = 'EmbeddedChat' | 'EmbeddedSearch' | 'EmbeddedSearchAndChat' | 'ModalChat' | 'ModalSearch' | 'ModalSearchAndChat' | 'ChatButton' | 'ChatButtonModal' | 'SearchBar' | 'SidebarChat';
|
|
10
|
+
export interface InkeepSettings {
|
|
11
|
+
baseSettings?: InkeepBaseSettings;
|
|
12
|
+
aiChatSettings?: InkeepAIChatSettings;
|
|
13
|
+
searchSettings?: InkeepSearchSettings;
|
|
14
|
+
openSettings?: OpenSettingsModal;
|
|
15
|
+
}
|
|
16
|
+
export type InkeepComponentProps = InkeepSettings & {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
export type InkeepComponentInitializer = {
|
|
20
|
+
(props: InkeepComponentProps): InkeepComponentInstance | undefined;
|
|
21
|
+
(targetSelector: string, props: InkeepComponentProps): InkeepComponentInstance | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type InkeepJS = Partial<Record<InkeepJSComponent, InkeepComponentInitializer>>;
|
|
24
|
+
/**
|
|
25
|
+
* Represents an instance of any Inkeep component that is returned after initialization.
|
|
26
|
+
* These instances have methods that can be used to update the component's state.
|
|
27
|
+
*/
|
|
28
|
+
export interface InkeepComponentInstance {
|
|
29
|
+
/**
|
|
30
|
+
* Updates the component with new props
|
|
31
|
+
|
|
32
|
+
* @param newProps - The new props to apply to the component
|
|
33
|
+
*/
|
|
34
|
+
update: <T extends object>(newProps: T) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Unmounts the component from the DOM but preserves its state
|
|
37
|
+
*/
|
|
38
|
+
unmount: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Remounts a previously unmounted component
|
|
41
|
+
*/
|
|
42
|
+
remount: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Access to chat-specific functionality (only available for components with chat capabilities)
|
|
45
|
+
*/
|
|
46
|
+
chat?: {
|
|
47
|
+
[key: string]: (...args: any[]) => any;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Access to search-specific functionality (only available for components with search capabilities)
|
|
51
|
+
*/
|
|
52
|
+
search?: {
|
|
53
|
+
[key: string]: (...args: any[]) => any;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UIMessage } from '@ai-sdk/react';
|
|
2
|
+
export type ArtifactType = 'citation' | (string & {});
|
|
3
|
+
export type ArtifactPart = Extract<Message['parts'][number], {
|
|
4
|
+
type: 'data-artifact';
|
|
5
|
+
}>;
|
|
6
|
+
export type OperationType = 'error' | 'agent_initializing' | 'completion' | 'agent_generate' | 'agent_reasoning' | 'tool_call' | 'tool_result' | 'transfer' | 'delegation_sent' | 'delegation_returned' | 'artifact_saved';
|
|
7
|
+
export type DataParts = {
|
|
8
|
+
operation: {
|
|
9
|
+
type: OperationType;
|
|
10
|
+
ctx: Record<string, unknown>;
|
|
11
|
+
message?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
};
|
|
14
|
+
summary: {
|
|
15
|
+
type: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
details?: Record<string, unknown>;
|
|
18
|
+
};
|
|
19
|
+
component: {
|
|
20
|
+
type: 'text';
|
|
21
|
+
text?: string;
|
|
22
|
+
} | {
|
|
23
|
+
type: 'component';
|
|
24
|
+
name: string;
|
|
25
|
+
props: Record<string, unknown>;
|
|
26
|
+
};
|
|
27
|
+
artifact: {
|
|
28
|
+
artifactId: string;
|
|
29
|
+
taskId: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
artifactType: string;
|
|
33
|
+
type: ArtifactType;
|
|
34
|
+
artifactSummary: {
|
|
35
|
+
record_type: 'custom_question_answer' | 'site';
|
|
36
|
+
title: string;
|
|
37
|
+
url?: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export type Message = UIMessage<unknown, DataParts>;
|
|
42
|
+
export type MessageAction = 'copy' | 'upvote' | 'downvote';
|
|
43
|
+
export type AnswerConfidence = 'very_confident' | 'somewhat_confident' | 'not_confident' | 'no_sources' | 'other';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentType, HTMLProps, ReactNode } from 'react';
|
|
2
|
+
interface ShadowRootProps {
|
|
3
|
+
mode?: 'closed' | 'open';
|
|
4
|
+
delegatesFocus?: boolean;
|
|
5
|
+
styleSheets?: CSSStyleSheet[];
|
|
6
|
+
ssr?: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
type Root = Record<string, ComponentType<HTMLProps<HTMLElement> & ShadowRootProps>>;
|
|
10
|
+
type RenderFn = ({ children, ssr, root, }: {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
ssr: boolean;
|
|
13
|
+
root: ShadowRoot | null;
|
|
14
|
+
}) => ReactNode;
|
|
15
|
+
export type { RenderFn, Root, ShadowRootProps };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { InkeepSearchSettings } from './config/search';
|
|
2
|
+
import { UrlQueryParam } from './widget';
|
|
3
|
+
import { InkeepCustomIcon } from './icons';
|
|
4
|
+
export interface Heading {
|
|
5
|
+
anchor?: string | null;
|
|
6
|
+
url?: string | null;
|
|
7
|
+
content: string;
|
|
8
|
+
isMatch?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface SourceItem {
|
|
11
|
+
id?: string;
|
|
12
|
+
title: string | undefined;
|
|
13
|
+
url: string;
|
|
14
|
+
description: string | undefined;
|
|
15
|
+
breadcrumbs: string[];
|
|
16
|
+
type: string;
|
|
17
|
+
contentType?: string;
|
|
18
|
+
tag?: string;
|
|
19
|
+
tabs?: (SourceTab | string)[];
|
|
20
|
+
headings?: Heading[];
|
|
21
|
+
preview?: string;
|
|
22
|
+
}
|
|
23
|
+
export type TransformSourceType = 'chatSourceItem' | 'searchResultItem';
|
|
24
|
+
export interface TransformSourceOptions {
|
|
25
|
+
organizationDisplayName?: string;
|
|
26
|
+
tabs?: InkeepSearchSettings['tabs'];
|
|
27
|
+
}
|
|
28
|
+
export type TransformSource = (source: SourceItem, type: TransformSourceType, opts?: TransformSourceOptions) => Partial<TransformedSource>;
|
|
29
|
+
export interface SourceTab {
|
|
30
|
+
[0]: string;
|
|
31
|
+
[1]: {
|
|
32
|
+
breadcrumbs: string[];
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface TransformedSource {
|
|
36
|
+
/**
|
|
37
|
+
* ID of the source.
|
|
38
|
+
*/
|
|
39
|
+
id?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Title of the source.
|
|
42
|
+
*/
|
|
43
|
+
title: string;
|
|
44
|
+
/**
|
|
45
|
+
* URL of the source.
|
|
46
|
+
*/
|
|
47
|
+
url: string;
|
|
48
|
+
/**
|
|
49
|
+
* Description of the source.
|
|
50
|
+
*/
|
|
51
|
+
description?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Breadcrumbs for the source.
|
|
54
|
+
* ```ts
|
|
55
|
+
* breadcrumbs: ['Subpath', 'Page']
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
breadcrumbs?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Tabs where this source shows up. (Only for searchResultsItem)
|
|
61
|
+
* ```ts
|
|
62
|
+
* tabs: ['Docs']
|
|
63
|
+
* tabs: ['Docs', 'API']
|
|
64
|
+
* ```
|
|
65
|
+
* You can also specify different breadcrumbs for specific tab.
|
|
66
|
+
*
|
|
67
|
+
* ```ts
|
|
68
|
+
* tabs: ['Docs', ['API', { breadcrumbs: ['Guides', 'API'] }]]
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
tabs?: (SourceTab | string)[];
|
|
72
|
+
/**
|
|
73
|
+
* Icon of the source.
|
|
74
|
+
* ```ts
|
|
75
|
+
* icon: { builtIn: 'LuBookOpen' }
|
|
76
|
+
* icon: { custom: 'https://example.com/icon.svg' }
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
icon: InkeepCustomIcon;
|
|
80
|
+
/**
|
|
81
|
+
* Whether to open the source in a new tab.
|
|
82
|
+
*/
|
|
83
|
+
shouldOpenInNewTab?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Search query params to append to the URL.
|
|
86
|
+
* If you want to know if the source is from chat or search, you can append the source type to the URL.
|
|
87
|
+
* ```ts
|
|
88
|
+
* appendToUrl: { from: 'chatSourceItem' }
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
appendToUrl?: UrlQueryParam;
|
|
92
|
+
/**
|
|
93
|
+
* Type of the source.
|
|
94
|
+
*/
|
|
95
|
+
type: string;
|
|
96
|
+
/**
|
|
97
|
+
* Tag to append to the source.
|
|
98
|
+
*/
|
|
99
|
+
tag?: string;
|
|
100
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface StrictIkpTheme {
|
|
2
|
+
colors: Record<string, any>;
|
|
3
|
+
fontFamily: Record<string, string>;
|
|
4
|
+
fontSize: Record<string, string>;
|
|
5
|
+
zIndex: Record<string, string | number>;
|
|
6
|
+
}
|
|
7
|
+
export interface UserProvidedColorScheme {
|
|
8
|
+
textBold?: string;
|
|
9
|
+
textSubtle?: string;
|
|
10
|
+
lighter?: string;
|
|
11
|
+
light?: string;
|
|
12
|
+
lightSubtle?: string;
|
|
13
|
+
medium?: string;
|
|
14
|
+
mediumSubtle?: string;
|
|
15
|
+
strongerLight?: string;
|
|
16
|
+
strong?: string;
|
|
17
|
+
stronger?: string;
|
|
18
|
+
textColorOnPrimary?: string;
|
|
19
|
+
}
|
|
20
|
+
export type DeepPartial<T> = {
|
|
21
|
+
[P in keyof T]?: T[P] extends Record<string, unknown> ? DeepPartial<T[P]> : T[P];
|
|
22
|
+
};
|
|
23
|
+
export type IkpThemeCategory = keyof StrictIkpTheme;
|
|
24
|
+
export type IkpTheme = DeepPartial<StrictIkpTheme>;
|
|
25
|
+
export type IkpThemeEntry = [keyof IkpTheme, Record<string, unknown>][];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type UrlQueryParam = Record<string, string>;
|
|
2
|
+
export type ModalViewTypes = 'chat' | 'search';
|
|
3
|
+
export interface WidgetView {
|
|
4
|
+
/**
|
|
5
|
+
* Callback fired when the user toggles between chat and search views.
|
|
6
|
+
*
|
|
7
|
+
* The parent component can use this
|
|
8
|
+
* to coordinate showing/hiding the appropriate view.
|
|
9
|
+
*/
|
|
10
|
+
onToggleView?: (opts: {
|
|
11
|
+
view: ModalViewTypes;
|
|
12
|
+
query?: string;
|
|
13
|
+
autoSubmit?: boolean;
|
|
14
|
+
}) => void;
|
|
15
|
+
/**
|
|
16
|
+
* The label for the Ask AI button.
|
|
17
|
+
*/
|
|
18
|
+
askAILabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The label for the Search button.
|
|
21
|
+
*/
|
|
22
|
+
searchLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The label for the Ask AI card.
|
|
25
|
+
*/
|
|
26
|
+
askAICardLabel?: string;
|
|
27
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@inkeep/agents-ui",
|
|
3
|
+
"version": "0.0.0-dev-20260313222128",
|
|
4
|
+
"description": "",
|
|
5
|
+
"homepage": "",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/inkeep/agents-ui",
|
|
9
|
+
"directory": "packages/agents-ui"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "dist/index.cjs",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"clean-package": "./clean-package.config.json",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"source": "./src/index.ts",
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./dist/index.d.cts",
|
|
26
|
+
"default": "./dist/index.cjs"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"./types": {
|
|
30
|
+
"types": "./dist/types/index.d.ts",
|
|
31
|
+
"default": "./dist/types/index.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./package.json": "./package.json",
|
|
34
|
+
"./inkeep.css": "./src/styled/inkeep.css"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"sideEffects": false,
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@ai-sdk/openai": "3.0.14",
|
|
42
|
+
"@ai-sdk/react": "3.0.46",
|
|
43
|
+
"@radix-ui/number": "^1.1.1",
|
|
44
|
+
"@radix-ui/primitive": "^1.1.1",
|
|
45
|
+
"@radix-ui/react-avatar": "1.1.2",
|
|
46
|
+
"@radix-ui/react-checkbox": "1.1.3",
|
|
47
|
+
"@radix-ui/react-collection": "^1.1.7",
|
|
48
|
+
"@radix-ui/react-compose-refs": "^1.1.1",
|
|
49
|
+
"@radix-ui/react-context": "^1.1.1",
|
|
50
|
+
"@radix-ui/react-direction": "^1.1.1",
|
|
51
|
+
"@radix-ui/react-dismissable-layer": "^1.1.5",
|
|
52
|
+
"@radix-ui/react-focus-guards": "^1.1.1",
|
|
53
|
+
"@radix-ui/react-focus-scope": "^1.1.2",
|
|
54
|
+
"@radix-ui/react-hover-card": "^1.1.6",
|
|
55
|
+
"@radix-ui/react-id": "^1.1.0",
|
|
56
|
+
"@radix-ui/react-popover": "1.1.6",
|
|
57
|
+
"@radix-ui/react-popper": "^1.2.7",
|
|
58
|
+
"@radix-ui/react-portal": "^1.1.4",
|
|
59
|
+
"@radix-ui/react-presence": "^1.1.2",
|
|
60
|
+
"@radix-ui/react-primitive": "^2.0.2",
|
|
61
|
+
"@radix-ui/react-scroll-area": "1.2.2",
|
|
62
|
+
"@radix-ui/react-slot": "^1.2.0",
|
|
63
|
+
"@radix-ui/react-tabs": "^1.1.4",
|
|
64
|
+
"@radix-ui/react-tooltip": "1.1.6",
|
|
65
|
+
"@radix-ui/react-use-callback-ref": "^1.1.0",
|
|
66
|
+
"@radix-ui/react-use-controllable-state": "^1.1.0",
|
|
67
|
+
"@radix-ui/react-use-layout-effect": "^1.1.1",
|
|
68
|
+
"@zag-js/combobox": "^1.33.1",
|
|
69
|
+
"@zag-js/focus-trap": "^1.33.1",
|
|
70
|
+
"@zag-js/presence": "^1.33.1",
|
|
71
|
+
"@zag-js/react": "^1.33.1",
|
|
72
|
+
"@zag-js/remove-scroll": "^1.33.1",
|
|
73
|
+
"ai": "6.0.44",
|
|
74
|
+
"altcha-lib": "^1.2.0",
|
|
75
|
+
"aria-hidden": "^1.2.4",
|
|
76
|
+
"class-variance-authority": "0.7.1",
|
|
77
|
+
"clsx": "2.1.1",
|
|
78
|
+
"colorjs.io": "0.5.2",
|
|
79
|
+
"dequal": "^2.0.3",
|
|
80
|
+
"humps": "2.0.1",
|
|
81
|
+
"lucide-react": "^0.503.0",
|
|
82
|
+
"marked": "^15.0.9",
|
|
83
|
+
"merge-anything": "5.1.7",
|
|
84
|
+
"openai": "4.78.1",
|
|
85
|
+
"prism-react-renderer": "2.4.1",
|
|
86
|
+
"react-error-boundary": "^6.0.0",
|
|
87
|
+
"react-hook-form": "7.54.2",
|
|
88
|
+
"react-markdown": "9.0.3",
|
|
89
|
+
"react-remove-scroll": "^2.7.1",
|
|
90
|
+
"react-svg": "16.3.0",
|
|
91
|
+
"react-textarea-autosize": "8.5.7",
|
|
92
|
+
"rehype-raw": "7.0.0",
|
|
93
|
+
"remark-gfm": "^4.0.1",
|
|
94
|
+
"remark-supersub": "^1.0.0",
|
|
95
|
+
"tailwind-merge": "2.6.0",
|
|
96
|
+
"unist-util-visit": "^5.0.0",
|
|
97
|
+
"use-sync-external-store": "^1.4.0",
|
|
98
|
+
"zod": "^4.0.5"
|
|
99
|
+
},
|
|
100
|
+
"devDependencies": {
|
|
101
|
+
"@biomejs/biome": "1.9.4",
|
|
102
|
+
"@chromatic-com/storybook": "^3",
|
|
103
|
+
"@radix-ui/react-select": "^2.1.7",
|
|
104
|
+
"@storybook/addon-a11y": "^8.5.3",
|
|
105
|
+
"@storybook/addon-essentials": "^8.5.3",
|
|
106
|
+
"@storybook/react": "^8.5.3",
|
|
107
|
+
"@storybook/react-vite": "^8.5.3",
|
|
108
|
+
"@types/humps": "2.0.6",
|
|
109
|
+
"@types/react": "19.0.10",
|
|
110
|
+
"@types/react-dom": "19.0.3",
|
|
111
|
+
"@types/use-sync-external-store": "^0.0.6",
|
|
112
|
+
"@vitejs/plugin-react": "4.3.4",
|
|
113
|
+
"autoprefixer": "^10.4.21",
|
|
114
|
+
"clean-package": "2.2.0",
|
|
115
|
+
"cssnano": "^7.1.0",
|
|
116
|
+
"globby": "14.0.2",
|
|
117
|
+
"postcss-cli": "^11.0.1",
|
|
118
|
+
"prism-react-renderer": "2.4.1",
|
|
119
|
+
"react": "19.0.0",
|
|
120
|
+
"react-dom": "19.0.0",
|
|
121
|
+
"storybook": "^8.5.3",
|
|
122
|
+
"tailwindcss": "3.4.17",
|
|
123
|
+
"typescript": "5.7.3",
|
|
124
|
+
"vite": "5.4.11",
|
|
125
|
+
"vite-plugin-dts": "4.4.0"
|
|
126
|
+
},
|
|
127
|
+
"module": "dist/index.js",
|
|
128
|
+
"types": "dist/index.d.ts",
|
|
129
|
+
"scripts": {
|
|
130
|
+
"css:gen": "postcss ./src/styled/index.css -o ./src/styled/inkeep.css",
|
|
131
|
+
"ui:gen": "vite build",
|
|
132
|
+
"build": "pnpm css:gen && pnpm ui:gen",
|
|
133
|
+
"watch": "vite build --watch",
|
|
134
|
+
"dev": "pnpm storybook",
|
|
135
|
+
"lint": "biome lint ./src",
|
|
136
|
+
"typecheck": "tsc",
|
|
137
|
+
"storybook": "storybook dev -p 6006",
|
|
138
|
+
"test": "echo 'test'"
|
|
139
|
+
}
|
|
140
|
+
}
|