@inkeep/agents-ui 0.1.0 → 0.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +64 -0
- package/README.md +1 -67
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/color-mode/index.cjs +1 -0
- package/dist/color-mode/index.js +170 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +5093 -0
- package/dist/index.d.ts +5093 -0
- package/dist/index.js +213 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
- package/dist/primitives/atoms/avatars/ai.cjs +1 -0
- package/dist/primitives/atoms/avatars/ai.js +99 -0
- package/dist/primitives/atoms/avatars/user.cjs +1 -0
- package/dist/primitives/atoms/avatars/user.js +27 -0
- package/dist/primitives/atoms/cmdk/command-score.cjs +1 -0
- package/dist/primitives/atoms/cmdk/command-score.js +46 -0
- package/dist/primitives/atoms/cmdk/index.cjs +1 -0
- package/dist/primitives/atoms/cmdk/index.js +521 -0
- package/dist/primitives/atoms/codeblock/index.cjs +1 -0
- package/dist/primitives/atoms/codeblock/index.js +40 -0
- package/dist/primitives/atoms/custom-styles.cjs +1 -0
- package/dist/primitives/atoms/custom-styles.js +57 -0
- package/dist/primitives/atoms/dialog.cjs +1 -0
- package/dist/primitives/atoms/dialog.js +226 -0
- package/dist/primitives/atoms/error-boundary.cjs +1 -0
- package/dist/primitives/atoms/error-boundary.js +9 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.js +51 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icons.js +86 -0
- package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/checkbox-icon.js +24 -0
- package/dist/primitives/atoms/icons/collections/bi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/bi.js +49 -0
- package/dist/primitives/atoms/icons/collections/fi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/fi.js +29 -0
- package/dist/primitives/atoms/icons/collections/gr.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/gr.js +21 -0
- package/dist/primitives/atoms/icons/collections/io5.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/io5.js +806 -0
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/pi.js +49 -0
- package/dist/primitives/atoms/icons/custom-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/custom-icon.js +19 -0
- package/dist/primitives/atoms/icons/generate-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/generate-icon.js +56 -0
- package/dist/primitives/atoms/icons/index.cjs +1 -0
- package/dist/primitives/atoms/icons/index.js +6 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +24 -0
- package/dist/primitives/atoms/link.cjs +1 -0
- package/dist/primitives/atoms/link.js +35 -0
- package/dist/primitives/atoms/markdown/components.cjs +1 -0
- package/dist/primitives/atoms/markdown/components.js +73 -0
- package/dist/primitives/atoms/markdown/index.cjs +1 -0
- package/dist/primitives/atoms/markdown/index.js +115 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.cjs +1 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.js +12 -0
- package/dist/primitives/atoms/portal-with-theme.cjs +1 -0
- package/dist/primitives/atoms/portal-with-theme.js +12 -0
- package/dist/primitives/atoms/portal.cjs +1 -0
- package/dist/primitives/atoms/portal.js +19 -0
- package/dist/primitives/atoms/select.cjs +1 -0
- package/dist/primitives/atoms/select.js +785 -0
- package/dist/primitives/atoms/shadow/context.cjs +1 -0
- package/dist/primitives/atoms/shadow/context.js +54 -0
- package/dist/primitives/atoms/shadow/create.cjs +1 -0
- package/dist/primitives/atoms/shadow/create.js +56 -0
- package/dist/primitives/atoms/shadow/root.cjs +1 -0
- package/dist/primitives/atoms/shadow/root.js +22 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
- package/dist/primitives/atoms/shadow/utils.cjs +1 -0
- package/dist/primitives/atoms/shadow/utils.js +16 -0
- package/dist/primitives/components/chat-button.cjs +1 -0
- package/dist/primitives/components/chat-button.js +46 -0
- package/dist/primitives/components/embedded-chat/chat-provider.cjs +1 -0
- package/dist/primitives/components/embedded-chat/chat-provider.js +20 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.js +38 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +160 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +82 -0
- package/dist/primitives/components/embedded-chat.cjs +11 -0
- package/dist/primitives/components/embedded-chat.js +1898 -0
- package/dist/primitives/components/embedded-search/search-provider.cjs +1 -0
- package/dist/primitives/components/embedded-search/search-provider.js +26 -0
- package/dist/primitives/components/embedded-search/transform-results.cjs +1 -0
- package/dist/primitives/components/embedded-search/transform-results.js +47 -0
- package/dist/primitives/components/embedded-search/url-query.cjs +1 -0
- package/dist/primitives/components/embedded-search/url-query.js +12 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.js +35 -0
- package/dist/primitives/components/embedded-search/use-search-filter.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-search-filter.js +77 -0
- package/dist/primitives/components/embedded-search.cjs +1 -0
- package/dist/primitives/components/embedded-search.js +628 -0
- package/dist/primitives/components/factory.cjs +1 -0
- package/dist/primitives/components/factory.js +39 -0
- package/dist/primitives/components/index.cjs +1 -0
- package/dist/primitives/components/index.js +27 -0
- package/dist/primitives/components/modal/modal-provider.cjs +1 -0
- package/dist/primitives/components/modal/modal-provider.js +8 -0
- package/dist/primitives/components/modal/use-inkeep-modal.cjs +1 -0
- package/dist/primitives/components/modal/use-inkeep-modal.js +45 -0
- package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -0
- package/dist/primitives/components/modal/widget-auto-focus.js +16 -0
- package/dist/primitives/components/modal.cjs +1 -0
- package/dist/primitives/components/modal.js +40 -0
- package/dist/primitives/components/presence.cjs +1 -0
- package/dist/primitives/components/presence.js +26 -0
- package/dist/primitives/components/searchbar.cjs +1 -0
- package/dist/primitives/components/searchbar.js +54 -0
- package/dist/primitives/components/sidebar-chat/index.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/index.js +86 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.js +34 -0
- package/dist/primitives/components/tagline-logo-icon.cjs +1 -0
- package/dist/primitives/components/tagline-logo-icon.js +26 -0
- package/dist/primitives/components/use-component-trigger.cjs +1 -0
- package/dist/primitives/components/use-component-trigger.js +16 -0
- package/dist/primitives/constants/search.cjs +1 -0
- package/dist/primitives/constants/search.js +5 -0
- package/dist/primitives/hooks/index.cjs +1 -0
- package/dist/primitives/hooks/index.js +24 -0
- package/dist/primitives/hooks/use-boolean.cjs +1 -0
- package/dist/primitives/hooks/use-boolean.js +17 -0
- package/dist/primitives/hooks/use-component-classnames.cjs +1 -0
- package/dist/primitives/hooks/use-component-classnames.js +14 -0
- package/dist/primitives/hooks/use-container-size.cjs +1 -0
- package/dist/primitives/hooks/use-container-size.js +18 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.cjs +1 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.js +24 -0
- package/dist/primitives/hooks/use-debounce.cjs +1 -0
- package/dist/primitives/hooks/use-debounce.js +16 -0
- package/dist/primitives/hooks/use-instant-update.cjs +1 -0
- package/dist/primitives/hooks/use-instant-update.js +16 -0
- package/dist/primitives/hooks/use-is-mounted.cjs +1 -0
- package/dist/primitives/hooks/use-is-mounted.js +11 -0
- package/dist/primitives/hooks/use-media-query.cjs +1 -0
- package/dist/primitives/hooks/use-media-query.js +14 -0
- package/dist/primitives/hooks/use-resize-observer.cjs +1 -0
- package/dist/primitives/hooks/use-resize-observer.js +32 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.cjs +1 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.js +52 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.js +18 -0
- package/dist/primitives/hooks/use-settle-action.cjs +1 -0
- package/dist/primitives/hooks/use-settle-action.js +11 -0
- package/dist/primitives/index.cjs +1 -0
- package/dist/primitives/index.js +155 -0
- package/dist/primitives/providers/attachment-item-provider.cjs +1 -0
- package/dist/primitives/providers/attachment-item-provider.js +13 -0
- package/dist/primitives/providers/attachments-bar-provider.cjs +1 -0
- package/dist/primitives/providers/attachments-bar-provider.js +57 -0
- package/dist/primitives/providers/base-events-provider.cjs +1 -0
- package/dist/primitives/providers/base-events-provider.js +37 -0
- package/dist/primitives/providers/chat-form-provider.cjs +1 -0
- package/dist/primitives/providers/chat-form-provider.js +109 -0
- package/dist/primitives/providers/config-provider.cjs +1 -0
- package/dist/primitives/providers/config-provider.js +38 -0
- package/dist/primitives/providers/feedback-item-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-item-provider.js +16 -0
- package/dist/primitives/providers/feedback-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-provider.js +83 -0
- package/dist/primitives/providers/form-field-provider.cjs +1 -0
- package/dist/primitives/providers/form-field-provider.js +17 -0
- package/dist/primitives/providers/help-menu-provider.cjs +1 -0
- package/dist/primitives/providers/help-menu-provider.js +19 -0
- package/dist/primitives/providers/hover-popover-provider.cjs +1 -0
- package/dist/primitives/providers/hover-popover-provider.js +13 -0
- package/dist/primitives/providers/index.cjs +1 -0
- package/dist/primitives/providers/index.js +57 -0
- package/dist/primitives/providers/markdown-provider.cjs +1 -0
- package/dist/primitives/providers/markdown-provider.js +8 -0
- package/dist/primitives/providers/message-attachments-provider.cjs +1 -0
- package/dist/primitives/providers/message-attachments-provider.js +27 -0
- package/dist/primitives/providers/message-provider.cjs +1 -0
- package/dist/primitives/providers/message-provider.js +14 -0
- package/dist/primitives/providers/root-provider.cjs +1 -0
- package/dist/primitives/providers/root-provider.js +21 -0
- package/dist/primitives/providers/search-events-provider.cjs +1 -0
- package/dist/primitives/providers/search-events-provider.js +17 -0
- package/dist/primitives/providers/sidebar-chat-provider.cjs +1 -0
- package/dist/primitives/providers/sidebar-chat-provider.js +41 -0
- package/dist/primitives/providers/source-item-provider.cjs +1 -0
- package/dist/primitives/providers/source-item-provider.js +13 -0
- package/dist/primitives/providers/theme-provider.cjs +3 -0
- package/dist/primitives/providers/theme-provider.js +79 -0
- package/dist/primitives/providers/widget-provider.cjs +1 -0
- package/dist/primitives/providers/widget-provider.js +8 -0
- package/dist/primitives/utils/component-ids.cjs +1 -0
- package/dist/primitives/utils/component-ids.js +309 -0
- package/dist/primitives/utils/compose-event-handlers.cjs +1 -0
- package/dist/primitives/utils/compose-event-handlers.js +10 -0
- package/dist/primitives/utils/compose-refs.cjs +1 -0
- package/dist/primitives/utils/compose-refs.js +30 -0
- package/dist/primitives/utils/default-settings.cjs +1 -0
- package/dist/primitives/utils/default-settings.js +50 -0
- package/dist/primitives/utils/form.cjs +1 -0
- package/dist/primitives/utils/form.js +17 -0
- package/dist/primitives/utils/generate-uid.cjs +1 -0
- package/dist/primitives/utils/generate-uid.js +14 -0
- package/dist/primitives/utils/get-source-icon.cjs +1 -0
- package/dist/primitives/utils/get-source-icon.js +11 -0
- package/dist/primitives/utils/highlight-emphasis.cjs +1 -0
- package/dist/primitives/utils/highlight-emphasis.js +15 -0
- package/dist/primitives/utils/merge-props.cjs +1 -0
- package/dist/primitives/utils/merge-props.js +41 -0
- package/dist/primitives/utils/misc.cjs +1 -0
- package/dist/primitives/utils/misc.js +31 -0
- package/dist/primitives/utils/split-props.cjs +1 -0
- package/dist/primitives/utils/split-props.js +10 -0
- package/dist/react/chat-button.cjs +1 -0
- package/dist/react/chat-button.js +60 -0
- package/dist/react/embedded-chat.cjs +1 -0
- package/dist/react/embedded-chat.js +380 -0
- package/dist/react/embedded-search-and-chat.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.js +43 -0
- package/dist/react/embedded-search-and-chat.js +66 -0
- package/dist/react/embedded-search.cjs +1 -0
- package/dist/react/embedded-search.js +181 -0
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.js +213 -0
- package/dist/react/modal.chat.cjs +1 -0
- package/dist/react/modal.chat.js +21 -0
- package/dist/react/modal.cjs +1 -0
- package/dist/react/modal.js +27 -0
- package/dist/react/modal.search-and-chat.cjs +1 -0
- package/dist/react/modal.search-and-chat.js +27 -0
- package/dist/react/modal.search.cjs +1 -0
- package/dist/react/modal.search.js +21 -0
- package/dist/react/searchbar.cjs +1 -0
- package/dist/react/searchbar.js +68 -0
- package/dist/react/sidebar-chat.cjs +1 -0
- package/dist/react/sidebar-chat.js +49 -0
- package/dist/react/utils.cjs +1 -0
- package/dist/react/utils.js +20 -0
- package/dist/react/widget-toggle.cjs +1 -0
- package/dist/react/widget-toggle.js +65 -0
- package/dist/styled/components/chat-button.cjs +1 -0
- package/dist/styled/components/chat-button.js +56 -0
- package/dist/styled/components/data-summary-group.cjs +1 -0
- package/dist/styled/components/data-summary-group.js +76 -0
- package/dist/styled/components/embedded-chat.cjs +1 -0
- package/dist/styled/components/embedded-chat.js +1816 -0
- package/dist/styled/components/embedded-search/results-loading.cjs +1 -0
- package/dist/styled/components/embedded-search/results-loading.js +39 -0
- package/dist/styled/components/embedded-search.cjs +1 -0
- package/dist/styled/components/embedded-search.js +680 -0
- package/dist/styled/components/index.cjs +1 -0
- package/dist/styled/components/index.js +24 -0
- package/dist/styled/components/loading-indicator.cjs +1 -0
- package/dist/styled/components/loading-indicator.js +36 -0
- package/dist/styled/components/message.cjs +1 -0
- package/dist/styled/components/message.js +140 -0
- package/dist/styled/components/modal.cjs +1 -0
- package/dist/styled/components/modal.js +46 -0
- package/dist/styled/components/searchbar.cjs +1 -0
- package/dist/styled/components/searchbar.js +81 -0
- package/dist/styled/components/shadow.cjs +1 -0
- package/dist/styled/components/shadow.js +8 -0
- package/dist/styled/components/sidebar-chat.cjs +1 -0
- package/dist/styled/components/sidebar-chat.js +90 -0
- package/dist/styled/components/ui/markdown-styles.cjs +1 -0
- package/dist/styled/components/ui/markdown-styles.js +38 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.js +32 -0
- package/dist/styled/components/ui/recipes/attachment.cjs +1 -0
- package/dist/styled/components/ui/recipes/attachment.js +28 -0
- package/dist/styled/components/ui/recipes/button.cjs +1 -0
- package/dist/styled/components/ui/recipes/button.js +81 -0
- package/dist/styled/components/ui/recipes/checkbox.cjs +1 -0
- package/dist/styled/components/ui/recipes/checkbox.js +23 -0
- package/dist/styled/components/ui/recipes/citation.cjs +1 -0
- package/dist/styled/components/ui/recipes/citation.js +75 -0
- package/dist/styled/components/ui/recipes/icon.cjs +1 -0
- package/dist/styled/components/ui/recipes/icon.js +6 -0
- package/dist/styled/components/ui/recipes/index.cjs +1 -0
- package/dist/styled/components/ui/recipes/index.js +37 -0
- package/dist/styled/components/ui/recipes/input.cjs +1 -0
- package/dist/styled/components/ui/recipes/input.js +34 -0
- package/dist/styled/components/ui/recipes/link.cjs +1 -0
- package/dist/styled/components/ui/recipes/link.js +13 -0
- package/dist/styled/components/ui/recipes/markdown.cjs +1 -0
- package/dist/styled/components/ui/recipes/markdown.js +103 -0
- package/dist/styled/components/ui/recipes/modal.cjs +1 -0
- package/dist/styled/components/ui/recipes/modal.js +59 -0
- package/dist/styled/components/ui/recipes/popover.cjs +1 -0
- package/dist/styled/components/ui/recipes/popover.js +20 -0
- package/dist/styled/components/ui/recipes/scrollable.cjs +1 -0
- package/dist/styled/components/ui/recipes/scrollable.js +15 -0
- package/dist/styled/components/ui/recipes/select.cjs +1 -0
- package/dist/styled/components/ui/recipes/select.js +38 -0
- package/dist/styled/components/ui/recipes/skeleton.cjs +1 -0
- package/dist/styled/components/ui/recipes/skeleton.js +16 -0
- package/dist/styled/components/ui/recipes/widget-toggle.cjs +1 -0
- package/dist/styled/components/ui/recipes/widget-toggle.js +35 -0
- package/dist/styled/index.cjs +1 -0
- package/dist/styled/index.js +177 -0
- package/dist/styled/inkeep.css.cjs +4049 -0
- package/dist/styled/inkeep.css.js +4053 -0
- package/dist/styled/utils.cjs +1 -0
- package/dist/styled/utils.js +11 -0
- package/dist/theme/color-utils.cjs +1 -0
- package/dist/theme/color-utils.js +21 -0
- package/dist/theme/colors.cjs +1 -0
- package/dist/theme/colors.js +143 -0
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.js +58 -0
- package/dist/theme/utils/create-css-variables.cjs +1 -0
- package/dist/theme/utils/create-css-variables.js +24 -0
- package/dist/theme/utils/generate-theme-variables.cjs +1 -0
- package/dist/theme/utils/generate-theme-variables.js +34 -0
- package/dist/types/message.cjs +1 -0
- package/dist/types/message.js +5 -0
- package/dist/types/types.d.cts +1754 -0
- package/dist/types/types.d.ts +1754 -0
- package/package.json +132 -39
- package/LICENSE.md +0 -51
- package/dist/assets/index-3anqgmEs.js +0 -49
- package/dist/assets/index-CF_BRP1w.css +0 -1
- package/dist/index.html +0 -14
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as P } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as E, useContext as N, useState as v, useCallback as b } from "react";
|
|
4
|
+
import { useChat as m } from "../components/embedded-chat/chat-provider.js";
|
|
5
|
+
import { getMessageContent as l } from "../utils/misc.js";
|
|
6
|
+
import { useInkeepConfig as M } from "./config-provider.js";
|
|
7
|
+
import { useBaseEvents as S } from "./base-events-provider.js";
|
|
8
|
+
const F = E(void 0);
|
|
9
|
+
function j() {
|
|
10
|
+
const { baseSettings: e } = M(), [s, o] = v(null), [k, g] = v({}), { conversationId: a } = m(), { messages: c, selectedWorkflow: w } = m(), { analyticsProperties: C } = e, { logEvent: f } = S(), i = b(
|
|
11
|
+
async (t, n, r = []) => {
|
|
12
|
+
const d = await e.onFeedback?.({
|
|
13
|
+
type: n,
|
|
14
|
+
messageId: t,
|
|
15
|
+
reasons: r,
|
|
16
|
+
properties: C
|
|
17
|
+
});
|
|
18
|
+
d && g((u) => ({
|
|
19
|
+
...u,
|
|
20
|
+
[t]: { type: d.type, messageId: t, reasons: d.reasons }
|
|
21
|
+
}));
|
|
22
|
+
const p = c.findIndex((u) => u.id === t), x = c[p], y = {
|
|
23
|
+
conversationId: a,
|
|
24
|
+
question: l(c[p - 1]),
|
|
25
|
+
answer: l(x),
|
|
26
|
+
messageId: t,
|
|
27
|
+
reasons: r,
|
|
28
|
+
workflowId: w?.id
|
|
29
|
+
};
|
|
30
|
+
f({
|
|
31
|
+
eventName: n === "positive" ? "assistant_positive_feedback_submitted" : "assistant_negative_feedback_submitted",
|
|
32
|
+
properties: y
|
|
33
|
+
}), n === "negative" && f({
|
|
34
|
+
eventName: "user_escalation_indicated",
|
|
35
|
+
properties: {
|
|
36
|
+
escalationType: "downvote",
|
|
37
|
+
conversationId: a
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
[c, a]
|
|
42
|
+
), _ = b(
|
|
43
|
+
async (t) => {
|
|
44
|
+
i(t, "positive");
|
|
45
|
+
},
|
|
46
|
+
[i]
|
|
47
|
+
), h = b(
|
|
48
|
+
async (t, n) => {
|
|
49
|
+
const r = q(n);
|
|
50
|
+
i(t, "negative", r);
|
|
51
|
+
},
|
|
52
|
+
[i]
|
|
53
|
+
);
|
|
54
|
+
return {
|
|
55
|
+
feedback: k,
|
|
56
|
+
currentFeedback: s,
|
|
57
|
+
setCurrentFeedback: o,
|
|
58
|
+
submitPositiveFeedback: _,
|
|
59
|
+
submitNegativeFeedback: h
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
const z = ({ children: e }) => {
|
|
63
|
+
const s = j();
|
|
64
|
+
return /* @__PURE__ */ P(F.Provider, { value: s, children: e });
|
|
65
|
+
}, A = () => {
|
|
66
|
+
const e = N(F);
|
|
67
|
+
if (!e)
|
|
68
|
+
throw new Error("useFeedback must be used within a FeedbackProvider");
|
|
69
|
+
return e;
|
|
70
|
+
};
|
|
71
|
+
function q(e) {
|
|
72
|
+
const s = [];
|
|
73
|
+
for (const o in e)
|
|
74
|
+
e[o] === "on" && s.push({
|
|
75
|
+
label: o,
|
|
76
|
+
details: e[`${o}:description`] || ""
|
|
77
|
+
});
|
|
78
|
+
return s.length > 0 ? s : [];
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
z as FeedbackProvider,
|
|
82
|
+
A as useMessageFeedback
|
|
83
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),o=require("react"),F=require("./chat-form-provider.cjs"),t=o.createContext(void 0),d=({children:e,field:r,fieldProps:i,autoFocus:n})=>{const{errors:s}=F.useChatForm(),u=s[r.name];return c.jsx(t.Provider,{value:{field:r,fieldProps:i,error:u,autoFocus:n},children:e})},m=()=>{const e=o.useContext(t);if(!e)throw new Error("useFormField must be used within a FormFieldProvider");return e};exports.FormFieldProvider=d;exports.useFormField=m;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as F, useContext as u } from "react";
|
|
4
|
+
import { useChatForm as c } from "./chat-form-provider.js";
|
|
5
|
+
const e = F(void 0), a = ({ children: r, field: o, fieldProps: t, autoFocus: n }) => {
|
|
6
|
+
const { errors: i } = c(), s = i[o.name];
|
|
7
|
+
return /* @__PURE__ */ m(e.Provider, { value: { field: o, fieldProps: t, error: s, autoFocus: n }, children: r });
|
|
8
|
+
}, v = () => {
|
|
9
|
+
const r = u(e);
|
|
10
|
+
if (!r)
|
|
11
|
+
throw new Error("useFormField must be used within a FormFieldProvider");
|
|
12
|
+
return r;
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
a as FormFieldProvider,
|
|
16
|
+
v as useFormField
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("react"),u=n.createContext(void 0);function o(){const[e,t]=n.useState(!1);return{open:e,setOpen:t}}const s=({children:e,value:t})=>r.jsx(u.Provider,{value:t,children:e}),i=()=>{const e=n.useContext(u);if(!e)throw new Error("useHelpMenu must be used within a HelpMenuProvider");return e};exports.HelpMenuProvider=s;exports.useHelpMenu=i;exports.useHelpMenuState=o;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { useState as r, createContext as u, useContext as s } from "react";
|
|
4
|
+
const n = u(void 0);
|
|
5
|
+
function c() {
|
|
6
|
+
const [e, t] = r(!1);
|
|
7
|
+
return { open: e, setOpen: t };
|
|
8
|
+
}
|
|
9
|
+
const l = ({ children: e, value: t }) => /* @__PURE__ */ o(n.Provider, { value: t, children: e }), x = () => {
|
|
10
|
+
const e = s(n);
|
|
11
|
+
if (!e)
|
|
12
|
+
throw new Error("useHelpMenu must be used within a HelpMenuProvider");
|
|
13
|
+
return e;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
l as HelpMenuProvider,
|
|
17
|
+
x as useHelpMenu,
|
|
18
|
+
c as useHelpMenuState
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("react"),r=o.createContext(void 0),s=({children:e,open:t,setOpen:v})=>n.jsx(r.Provider,{value:{open:t,setOpen:v},children:e}),u=()=>{const e=o.useContext(r);if(!e)throw new Error("useHoverPopover must be used within a HoverPopoverProvider");return e};exports.HoverPopoverProvider=s;exports.useHoverPopover=u;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as n, useContext as s } from "react";
|
|
4
|
+
const e = n(void 0), p = ({ children: o, open: r, setOpen: t }) => /* @__PURE__ */ v(e.Provider, { value: { open: r, setOpen: t }, children: o }), P = () => {
|
|
5
|
+
const o = s(e);
|
|
6
|
+
if (!o)
|
|
7
|
+
throw new Error("useHoverPopover must be used within a HoverPopoverProvider");
|
|
8
|
+
return o;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
p as HoverPopoverProvider,
|
|
12
|
+
P as useHoverPopover
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./attachment-item-provider.cjs"),a=require("./attachments-bar-provider.cjs"),d=require("./base-events-provider.cjs"),r=require("./chat-form-provider.cjs"),t=require("./config-provider.cjs"),u=require("./feedback-item-provider.cjs"),n=require("./feedback-provider.cjs"),v=require("./form-field-provider.cjs"),o=require("./help-menu-provider.cjs"),c=require("./markdown-provider.cjs"),P=require("./message-attachments-provider.cjs"),s=require("./message-provider.cjs"),g=require("./root-provider.cjs"),m=require("./source-item-provider.cjs"),b=require("./theme-provider.cjs"),h=require("./widget-provider.cjs"),e=require("./sidebar-chat-provider.cjs");exports.AttachmentItemProvider=i.AttachmentItemProvider;exports.useAttachmentItem=i.useAttachmentItem;exports.AttachmentsBarProvider=a.AttachmentsBarProvider;exports.useAttachmentsBar=a.useAttachmentsBar;exports.BaseEventsProvider=d.BaseEventsProvider;exports.useBaseEvents=d.useBaseEvents;exports.ChatFormProvider=r.ChatFormProvider;exports.useChatForm=r.useChatForm;exports.useChatFormState=r.useChatFormState;exports.InkeepConfigProvider=t.InkeepConfigProvider;exports.WebWidgetInteractionType=t.WebWidgetInteractionType;exports.useInkeepConfig=t.useInkeepConfig;exports.FeedbackItemProvider=u.FeedbackItemProvider;exports.useFeedbackItem=u.useFeedbackItem;exports.FeedbackProvider=n.FeedbackProvider;exports.useMessageFeedback=n.useMessageFeedback;exports.FormFieldProvider=v.FormFieldProvider;exports.useFormField=v.useFormField;exports.HelpMenuProvider=o.HelpMenuProvider;exports.useHelpMenu=o.useHelpMenu;exports.useHelpMenuState=o.useHelpMenuState;exports.ChatMarkdownProvider=c.ChatMarkdownProvider;exports.useChatMarkdown=c.useChatMarkdown;exports.MessageAttachmentsProvider=P.MessageAttachmentsProvider;exports.useMessageAttachments=P.useMessageAttachments;exports.MessageProvider=s.MessageProvider;exports.useMessage=s.useMessage;exports.useOptionalMessage=s.useOptionalMessage;exports.RootProvider=g.RootProvider;exports.SourceItemProvider=m.SourceItemProvider;exports.useSourceItem=m.useSourceItem;exports.ThemeProvider=b.ThemeProvider;exports.WidgetProvider=h.WidgetProvider;exports.useWidget=h.useWidget;exports.SidebarChatProvider=e.SidebarChatProvider;exports.useInkeepSidebarChat=e.useInkeepSidebarChat;exports.useOptionalSidebarChat=e.useOptionalSidebarChat;exports.useSidebarChat=e.useSidebarChat;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { AttachmentItemProvider as o, useAttachmentItem as t } from "./attachment-item-provider.js";
|
|
2
|
+
import { AttachmentsBarProvider as s, useAttachmentsBar as m } from "./attachments-bar-provider.js";
|
|
3
|
+
import { BaseEventsProvider as i, useBaseEvents as p } from "./base-events-provider.js";
|
|
4
|
+
import { ChatFormProvider as n, useChatForm as f, useChatFormState as v } from "./chat-form-provider.js";
|
|
5
|
+
import { InkeepConfigProvider as P, WebWidgetInteractionType as h, useInkeepConfig as c } from "./config-provider.js";
|
|
6
|
+
import { FeedbackItemProvider as C, useFeedbackItem as F } from "./feedback-item-provider.js";
|
|
7
|
+
import { FeedbackProvider as I, useMessageFeedback as b } from "./feedback-provider.js";
|
|
8
|
+
import { FormFieldProvider as S, useFormField as l } from "./form-field-provider.js";
|
|
9
|
+
import { HelpMenuProvider as B, useHelpMenu as W, useHelpMenuState as H } from "./help-menu-provider.js";
|
|
10
|
+
import { ChatMarkdownProvider as E, useChatMarkdown as O } from "./markdown-provider.js";
|
|
11
|
+
import { MessageAttachmentsProvider as y, useMessageAttachments as R } from "./message-attachments-provider.js";
|
|
12
|
+
import { MessageProvider as q, useMessage as z, useOptionalMessage as D } from "./message-provider.js";
|
|
13
|
+
import { RootProvider as J } from "./root-provider.js";
|
|
14
|
+
import { SourceItemProvider as L, useSourceItem as N } from "./source-item-provider.js";
|
|
15
|
+
import { ThemeProvider as U } from "./theme-provider.js";
|
|
16
|
+
import { WidgetProvider as X, useWidget as Y } from "./widget-provider.js";
|
|
17
|
+
import { SidebarChatProvider as _, useInkeepSidebarChat as $, useOptionalSidebarChat as ee, useSidebarChat as re } from "./sidebar-chat-provider.js";
|
|
18
|
+
export {
|
|
19
|
+
o as AttachmentItemProvider,
|
|
20
|
+
s as AttachmentsBarProvider,
|
|
21
|
+
i as BaseEventsProvider,
|
|
22
|
+
n as ChatFormProvider,
|
|
23
|
+
E as ChatMarkdownProvider,
|
|
24
|
+
C as FeedbackItemProvider,
|
|
25
|
+
I as FeedbackProvider,
|
|
26
|
+
S as FormFieldProvider,
|
|
27
|
+
B as HelpMenuProvider,
|
|
28
|
+
P as InkeepConfigProvider,
|
|
29
|
+
y as MessageAttachmentsProvider,
|
|
30
|
+
q as MessageProvider,
|
|
31
|
+
J as RootProvider,
|
|
32
|
+
_ as SidebarChatProvider,
|
|
33
|
+
L as SourceItemProvider,
|
|
34
|
+
U as ThemeProvider,
|
|
35
|
+
h as WebWidgetInteractionType,
|
|
36
|
+
X as WidgetProvider,
|
|
37
|
+
t as useAttachmentItem,
|
|
38
|
+
m as useAttachmentsBar,
|
|
39
|
+
p as useBaseEvents,
|
|
40
|
+
f as useChatForm,
|
|
41
|
+
v as useChatFormState,
|
|
42
|
+
O as useChatMarkdown,
|
|
43
|
+
F as useFeedbackItem,
|
|
44
|
+
l as useFormField,
|
|
45
|
+
W as useHelpMenu,
|
|
46
|
+
H as useHelpMenuState,
|
|
47
|
+
c as useInkeepConfig,
|
|
48
|
+
$ as useInkeepSidebarChat,
|
|
49
|
+
z as useMessage,
|
|
50
|
+
R as useMessageAttachments,
|
|
51
|
+
b as useMessageFeedback,
|
|
52
|
+
D as useOptionalMessage,
|
|
53
|
+
ee as useOptionalSidebarChat,
|
|
54
|
+
re as useSidebarChat,
|
|
55
|
+
N as useSourceItem,
|
|
56
|
+
Y as useWidget
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=require("react"),o=e.createContext(void 0),a=({children:t,componentStyles:r})=>n.jsx(o.Provider,{value:{componentStyles:r},children:t}),s=()=>e.useContext(o);exports.ChatMarkdownProvider=a;exports.useChatMarkdown=s;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as n, useContext as a } from "react";
|
|
4
|
+
const o = n(void 0), x = ({ children: t, componentStyles: e }) => /* @__PURE__ */ r(o.Provider, { value: { componentStyles: e }, children: t }), d = () => a(o);
|
|
5
|
+
export {
|
|
6
|
+
x as ChatMarkdownProvider,
|
|
7
|
+
d as useChatMarkdown
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),i=require("../hooks/use-boolean.cjs"),s=t.createContext(void 0);function l({children:e}){const[n,o]=t.useState(null),{value:r,setTrue:a,setFalse:c}=i.useBoolean(!1);return u.jsx(s.Provider,{value:{selectedItem:n,selectItem:o,isOpen:r,onOpen:a,onClose:c},children:e})}const m=()=>{const e=t.useContext(s);if(!e)throw new Error("useMessageAttachments must be used within a MessageAttachmentsProvider");return e};exports.MessageAttachmentsProvider=l;exports.useMessageAttachments=m;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import u, { createContext as m, useContext as i } from "react";
|
|
4
|
+
import { useBoolean as l } from "../hooks/use-boolean.js";
|
|
5
|
+
const t = m(
|
|
6
|
+
void 0
|
|
7
|
+
);
|
|
8
|
+
function p({ children: e }) {
|
|
9
|
+
const [s, o] = u.useState(null), { value: n, setTrue: r, setFalse: a } = l(!1);
|
|
10
|
+
return /* @__PURE__ */ c(
|
|
11
|
+
t.Provider,
|
|
12
|
+
{
|
|
13
|
+
value: { selectedItem: s, selectItem: o, isOpen: n, onOpen: r, onClose: a },
|
|
14
|
+
children: e
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
const v = () => {
|
|
19
|
+
const e = i(t);
|
|
20
|
+
if (!e)
|
|
21
|
+
throw new Error("useMessageAttachments must be used within a MessageAttachmentsProvider");
|
|
22
|
+
return e;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
p as MessageAttachmentsProvider,
|
|
26
|
+
v as useMessageAttachments
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("react"),t=s.createContext(void 0),n=({children:e,message:o})=>r.jsx(t.Provider,{value:{message:o},children:e}),u=()=>{const e=s.useContext(t);if(!e)throw new Error("useMessage must be used within a MessageProvider");return e},a=()=>s.useContext(t);exports.MessageProvider=n;exports.useMessage=u;exports.useOptionalMessage=a;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as n, useContext as s } from "react";
|
|
4
|
+
const t = n(void 0), u = ({ children: e, message: o }) => /* @__PURE__ */ r(t.Provider, { value: { message: o }, children: e }), a = () => {
|
|
5
|
+
const e = s(t);
|
|
6
|
+
if (!e)
|
|
7
|
+
throw new Error("useMessage must be used within a MessageProvider");
|
|
8
|
+
return e;
|
|
9
|
+
}, x = () => s(t);
|
|
10
|
+
export {
|
|
11
|
+
u as MessageProvider,
|
|
12
|
+
a as useMessage,
|
|
13
|
+
x as useOptionalMessage
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./base-events-provider.cjs"),s=require("./config-provider.cjs"),c=require("./theme-provider.cjs");function d(r){const{children:o,config:i,componentType:n}=r;return e.jsx(s.InkeepConfigProvider,{value:{...i,componentType:n},children:e.jsx(c.ThemeProvider,{children:e.jsx(t.BaseEventsProvider,{children:o})})})}exports.RootProvider=d;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { BaseEventsProvider as t } from "./base-events-provider.js";
|
|
4
|
+
import { InkeepConfigProvider as m } from "./config-provider.js";
|
|
5
|
+
import { ThemeProvider as c } from "./theme-provider.js";
|
|
6
|
+
function l(o) {
|
|
7
|
+
const { children: e, config: i, componentType: n } = o;
|
|
8
|
+
return /* @__PURE__ */ r(
|
|
9
|
+
m,
|
|
10
|
+
{
|
|
11
|
+
value: {
|
|
12
|
+
...i,
|
|
13
|
+
componentType: n
|
|
14
|
+
},
|
|
15
|
+
children: /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r(t, { children: e }) })
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
l as RootProvider
|
|
21
|
+
};
|
|
@@ -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=require("./base-events-provider.cjs"),r=t.createContext(void 0),c=({children:e})=>{const{logEvent:s}=o.useBaseEvents();return n.jsx(r.Provider,{value:{logEvent:s},children:e})},u=()=>{const e=t.useContext(r);if(!e)throw new Error("useSearchEvents must be used within a SearchEventsProvider");return e};exports.SearchEventsProvider=c;exports.useSearchEvents=u;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as n, createContext as s } from "react";
|
|
4
|
+
import { useBaseEvents as c } from "./base-events-provider.js";
|
|
5
|
+
const t = s(void 0), a = ({ children: e }) => {
|
|
6
|
+
const { logEvent: r } = c();
|
|
7
|
+
return /* @__PURE__ */ o(t.Provider, { value: { logEvent: r }, children: e });
|
|
8
|
+
}, E = () => {
|
|
9
|
+
const e = n(t);
|
|
10
|
+
if (!e)
|
|
11
|
+
throw new Error("useSearchEvents must be used within a SearchEventsProvider");
|
|
12
|
+
return e;
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
a as SearchEventsProvider,
|
|
16
|
+
E as useSearchEvents
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),S=require("@radix-ui/react-use-controllable-state"),r=require("react"),o=r.createContext(void 0),p=({children:e,value:t})=>l.jsx(o.Provider,{value:t,children:e}),x=()=>{const e=r.useContext(o);if(!e)throw new Error("useSidebarChat must be used within a SidebarChatProvider");return e},f=()=>r.useContext(o),v=250,I=600,P=420,M=({position:e="right",minWidth:t=v,maxWidth:n=I,defaultWidth:s=P,defaultOpen:i=!1,autoCloseThreshold:u=.7,isOpen:a,onOpenChange:c})=>{const[d,C]=r.useState(Math.min(s,Math.floor((t+n)/2))),[h=i,b]=S.useControllableState({prop:a,defaultProp:a??!1,onChange:c});return{width:d,setWidth:C,position:e,minWidth:t,maxWidth:n,autoCloseThreshold:u,setOpen:b,isOpen:h}};exports.SidebarChatProvider=p;exports.useInkeepSidebarChat=M;exports.useOptionalSidebarChat=f;exports.useSidebarChat=x;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
3
|
+
import { useControllableState as l } from "@radix-ui/react-use-controllable-state";
|
|
4
|
+
import { createContext as S, useContext as s, useState as f } from "react";
|
|
5
|
+
const o = S(void 0), M = ({ children: t, value: e }) => /* @__PURE__ */ b(o.Provider, { value: e, children: t }), P = () => {
|
|
6
|
+
const t = s(o);
|
|
7
|
+
if (!t)
|
|
8
|
+
throw new Error("useSidebarChat must be used within a SidebarChatProvider");
|
|
9
|
+
return t;
|
|
10
|
+
}, T = () => s(o), x = 250, m = 600, I = 420, H = ({
|
|
11
|
+
position: t = "right",
|
|
12
|
+
minWidth: e = x,
|
|
13
|
+
maxWidth: r = m,
|
|
14
|
+
defaultWidth: a = I,
|
|
15
|
+
defaultOpen: i = !1,
|
|
16
|
+
autoCloseThreshold: c = 0.7,
|
|
17
|
+
isOpen: n,
|
|
18
|
+
onOpenChange: u
|
|
19
|
+
}) => {
|
|
20
|
+
const [d, h] = f(Math.min(a, Math.floor((e + r) / 2))), [C = i, p] = l({
|
|
21
|
+
prop: n,
|
|
22
|
+
defaultProp: n ?? !1,
|
|
23
|
+
onChange: u
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
width: d,
|
|
27
|
+
setWidth: h,
|
|
28
|
+
position: t,
|
|
29
|
+
minWidth: e,
|
|
30
|
+
maxWidth: r,
|
|
31
|
+
autoCloseThreshold: c,
|
|
32
|
+
setOpen: p,
|
|
33
|
+
isOpen: C
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
M as SidebarChatProvider,
|
|
38
|
+
H as useInkeepSidebarChat,
|
|
39
|
+
T as useOptionalSidebarChat,
|
|
40
|
+
P as useSidebarChat
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),r=t.createContext(void 0),c=({children:e,source:o})=>u.jsx(r.Provider,{value:{source:o},children:e}),n=()=>{const e=t.useContext(r);if(!e)throw new Error("useSourceItem must be used within a SourceItemProvider");return e};exports.SourceItemProvider=c;exports.useSourceItem=n;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as u, useContext as n } from "react";
|
|
4
|
+
const t = u(void 0), i = ({ children: e, source: r }) => /* @__PURE__ */ o(t.Provider, { value: { source: r }, children: e }), m = () => {
|
|
5
|
+
const e = n(t);
|
|
6
|
+
if (!e)
|
|
7
|
+
throw new Error("useSourceItem must be used within a SourceItemProvider");
|
|
8
|
+
return e;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
i as SourceItemProvider,
|
|
12
|
+
m as useSourceItem
|
|
13
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),A=require("../../theme/colors.cjs"),D=require("../../theme/utils/create-css-variables.cjs"),H=require("../../color-mode/index.cjs"),L=require("./config-provider.cjs"),$=require("merge-anything"),z=require("../atoms/custom-styles.cjs"),i=require("react"),E=({children:m})=>{const{baseSettings:g}=L.useInkeepConfig(),{theme:s,primaryBrandColor:y,shadowHost:f,rootElement:h,colorMode:b}=g,{primaryColors:S,varsClassName:C}=s,{disableLoadingDefaultFont:M,fontFamily:p,fontSize:v,zIndex:q}=s,x=A.createColorScheme(S,y),j={colors:$.merge(s.colors,x),fontFamily:p,fontSize:v,zIndex:q},I=D.createCSSVariables(j),{customStyles:T,loaded:k}=z.useCustomStyles(),{sync:e,forcedColorMode:w,...P}=b??{},[V,l]=i.useState(),F=i.useRef(null);return i.useEffect(()=>{if(!e?.target)return;const o=typeof e.target=="string"?document.querySelector(e.target):e.target;if(!o)return;function a(c,r){return r.reduce((R,d)=>({...R,[d]:c.getAttribute(d)}),{})}const n=new MutationObserver(()=>{const c=a(o,e.attributes),r=e.isDarkMode?.(c)?"dark":"light";e.onChange?.(r),l(r)});n.observe(o,{attributes:!0,attributeFilter:e.attributes,childList:!1,subtree:!1}),F.current=n;const u=e.isDarkMode?.(a(o,e?.attributes))?"dark":"light";return e.onChange?.(u),l(u),()=>n.disconnect()},[e]),t.jsxs(t.Fragment,{children:[!M&&t.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');
|
|
3
|
+
`}}),T,k&&t.jsx(H.ColorModeProvider,{forcedColorMode:w??V,...P,shadowHostId:f?.id,rootId:h?.id,children:t.jsx("div",{className:C,style:{display:"contents",...I},children:m})})]})};exports.ThemeProvider=E;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as j, Fragment as z, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { createColorScheme as A } from "../../theme/colors.js";
|
|
4
|
+
import { createCSSVariables as E } from "../../theme/utils/create-css-variables.js";
|
|
5
|
+
import { ColorModeProvider as N } from "../../color-mode/index.js";
|
|
6
|
+
import { useInkeepConfig as P } from "./config-provider.js";
|
|
7
|
+
import { merge as R } from "merge-anything";
|
|
8
|
+
import { useCustomStyles as _ } from "../atoms/custom-styles.js";
|
|
9
|
+
import { useState as q, useRef as B, useEffect as O } from "react";
|
|
10
|
+
const $ = ({ children: m }) => {
|
|
11
|
+
const { baseSettings: u } = P(), { theme: r, primaryBrandColor: f, shadowHost: g, rootElement: p, colorMode: y } = u, { primaryColors: h, varsClassName: b } = r, { disableLoadingDefaultFont: C, fontFamily: M, fontSize: S, zIndex: v } = r, I = A(h, f), k = {
|
|
12
|
+
colors: R(r.colors, I),
|
|
13
|
+
fontFamily: M,
|
|
14
|
+
fontSize: S,
|
|
15
|
+
zIndex: v
|
|
16
|
+
}, w = E(k), { customStyles: x, loaded: F } = _(), { sync: e, forcedColorMode: T, ...V } = y ?? {}, [D, i] = q(), H = B(null);
|
|
17
|
+
return O(() => {
|
|
18
|
+
if (!e?.target) return;
|
|
19
|
+
const t = typeof e.target == "string" ? document.querySelector(e.target) : e.target;
|
|
20
|
+
if (!t) return;
|
|
21
|
+
function a(n, o) {
|
|
22
|
+
return o.reduce(
|
|
23
|
+
(L, d) => ({
|
|
24
|
+
...L,
|
|
25
|
+
[d]: n.getAttribute(d)
|
|
26
|
+
}),
|
|
27
|
+
{}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
const s = new MutationObserver(() => {
|
|
31
|
+
const n = a(t, e.attributes), o = e.isDarkMode?.(n) ? "dark" : "light";
|
|
32
|
+
e.onChange?.(o), i(o);
|
|
33
|
+
});
|
|
34
|
+
s.observe(t, {
|
|
35
|
+
attributes: !0,
|
|
36
|
+
attributeFilter: e.attributes,
|
|
37
|
+
childList: !1,
|
|
38
|
+
subtree: !1
|
|
39
|
+
}), H.current = s;
|
|
40
|
+
const l = e.isDarkMode?.(a(t, e?.attributes)) ? "dark" : "light";
|
|
41
|
+
return e.onChange?.(l), i(l), () => s.disconnect();
|
|
42
|
+
}, [e]), /* @__PURE__ */ j(z, { children: [
|
|
43
|
+
!C && /* @__PURE__ */ c(
|
|
44
|
+
"style",
|
|
45
|
+
{
|
|
46
|
+
type: "text/css",
|
|
47
|
+
dangerouslySetInnerHTML: {
|
|
48
|
+
__html: `
|
|
49
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');
|
|
50
|
+
`
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
x,
|
|
55
|
+
F && /* @__PURE__ */ c(
|
|
56
|
+
N,
|
|
57
|
+
{
|
|
58
|
+
forcedColorMode: T ?? D,
|
|
59
|
+
...V,
|
|
60
|
+
shadowHostId: g?.id,
|
|
61
|
+
rootId: p?.id,
|
|
62
|
+
children: /* @__PURE__ */ c(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: b,
|
|
66
|
+
style: {
|
|
67
|
+
display: "contents",
|
|
68
|
+
...w
|
|
69
|
+
},
|
|
70
|
+
children: m
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
] });
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
$ as ThemeProvider
|
|
79
|
+
};
|
|
@@ -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),i=({children:e,widget:r})=>n.jsx(o.Provider,{value:r,children:e}),s=()=>t.useContext(o);exports.WidgetProvider=i;exports.useWidget=s;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as n, useContext as i } from "react";
|
|
4
|
+
const e = n(void 0), x = ({ children: t, widget: o }) => /* @__PURE__ */ r(e.Provider, { value: o, children: t }), d = () => i(e);
|
|
5
|
+
export {
|
|
6
|
+
x as WidgetProvider,
|
|
7
|
+
d as useWidget
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={icon:"icon",loadingIndicator__Text:"loadingIndicator__Text",loadingIndicator__Dots:"loadingIndicator__Dots",loadingIndicator__Dot:"loadingIndicator__Dot",view_toggle:"view_toggle",view_toggle_button:"view_toggle_button",view_toggle_icon:"view_toggle_icon"},e={codeblockContainer:"codeblockContainer",codeblockHeader:"codeblockHeader",codeblockHeaderLanguage:"codeblockHeaderLanguage",codeblockCopyButton:"codeblockCopyButton",codeblockHighlighterWrapper:"codeblockHighlighterWrapper",codeblockHighlighter:"codeblockHighlighter",codeblockCode:"codeblockCode",markdownH1:"markdownH1",markdownH2:"markdownH2",markdownP:"markdownP",markdownLi:"markdownLi",markdownUl:"markdownUl",markdownOl:"markdownOl",markdownLink:"markdownLink",markdownSourceLink:"markdownSourceLink",markdownTable:"markdownTable",markdownTh:"markdownTh",markdownTd:"markdownTd",markdownCode:"markdownCode",markdownInput:"markdownInput",markdownSup:"markdownSup",markdownImg:"markdownImg"},t={aiChatWrapper:"aiChatWrapper",aiChatRoot:"aiChatRoot",aiChatHeader:"aiChatHeader",aiChatHeader__Toolbar:"aiChatHeader__Toolbar",aiChatHeader__ToolbarHeader:"aiChatHeader__ToolbarHeader",aiChatHeader__ToolbarHeaderWrapper:"aiChatHeader__ToolbarHeaderWrapper",aiChatContent:"aiChatContent",aiChatContentScrollArea:"aiChatContentScrollArea",aiChatContentScrollArea__Viewport:"aiChatContentScrollArea__Viewport",aiChatContentScrollArea__Scrollbar:"aiChatContentScrollArea__Scrollbar",aiChatContentScrollArea__Thumb:"aiChatContentScrollArea__Thumb",aiChatContentScrollArea__Corner:"aiChatContentScrollArea__Corner",aiChatDisclaimer:"aiChatDisclaimer",aiChatDisclaimerLabel:"aiChatDisclaimerLabel",aiChatDisclaimerTrigger:"aiChatDisclaimerTrigger",aiChatDisclaimerContent:"aiChatDisclaimerContent",aiChatDisclaimerText:"aiChatDisclaimerText",aiChatDisclaimerArrow:"aiChatDisclaimerArrow",aiChatExampleQuestions:"aiChatExampleQuestions",aiChatExampleQuestionsLabel:"aiChatExampleQuestionsLabel",aiChatExampleQuestionsList:"aiChatExampleQuestionsList",aiChatExampleQuestion:"aiChatExampleQuestion",aiChatExampleQuestionButton:"aiChatExampleQuestionButton",aiChatWorkflows:"aiChatWorkflows",aiChatWorkflowsLabel:"aiChatWorkflowsLabel",aiChatWorkflowsList:"aiChatWorkflowsList",aiChatWorkflow:"aiChatWorkflow",aiChatWorkflow__Icon:"aiChatWorkflow__Icon",aiChatMessages:"aiChatMessages",aiChatMessageWrapper:"aiChatMessageWrapper",aiChatMessageHeader:"aiChatMessageHeader",aiChatMessageLoading:"aiChatMessageLoading",aiChatMessageAvatar:"aiChatMessageAvatar",aiChatMessageAvatarFallback:"aiChatMessageAvatarFallback",aiChatMessageAvatarImage:"aiChatMessageAvatarImage",aiChatMessageAvatarContent:"aiChatMessageAvatarContent",aiChatMessageName:"aiChatMessageName",aiChatMessageContentWrapper:"aiChatMessageContentWrapper",aiChatMessageContent:"aiChatMessageContent",aiChatMessageAttachments:"aiChatMessageAttachments",aiChatMessageAttachments__List:"aiChatMessageAttachments__List",aiChatMessageAttachments__Item:"aiChatMessageAttachments__Item",aiChatMessageAttachments__ItemIcon:"aiChatMessageAttachments__ItemIcon",aiChatMessageAttachments__ItemTitle:"aiChatMessageAttachments__ItemTitle",aiChatMessageAttachmentsPreview:"aiChatMessageAttachmentsPreview",aiChatMessageAttachmentsPreview__Overlay:"aiChatMessageAttachmentsPreview__Overlay",aiChatMessageAttachmentsPreview__Content:"aiChatMessageAttachmentsPreview__Content",aiChatMessageAttachmentsPreview__Header:"aiChatMessageAttachmentsPreview__Header",aiChatMessageAttachmentsPreview__Close:"aiChatMessageAttachmentsPreview__Close",aiChatMessageAttachmentsPreview__Body:"aiChatMessageAttachmentsPreview__Body",aiChatMessagePart:"aiChatMessagePart",aiChatMessageToolbar:"aiChatMessageToolbar",aiChatMessageAnnotationActions:"aiChatMessageAnnotationActions",aiChatMessageAnnotationAction:"aiChatMessageAnnotationAction",aiChatMessageAction:"aiChatMessageAction",aiChatMessageSources:"aiChatMessageSources",aiChatMessageSources__Header:"aiChatMessageSources__Header",aiChatMessageSources__List:"aiChatMessageSources__List",aiChatMessageSourceItem:"aiChatMessageSourceItem",aiChatMessageSourceItem__Icon:"aiChatMessageSourceItem__Icon",aiChatMessageSourceItem__Breadcrumbs:"aiChatMessageSourceItem__Breadcrumbs",aiChatMessageSourceItem__Breadcrumb:"aiChatMessageSourceItem__Breadcrumb",aiChatMessageSourceItem__BreadcrumbIcon:"aiChatMessageSourceItem__BreadcrumbIcon",aiChatMessageSourceItem__Title:"aiChatMessageSourceItem__Title",aiChatMessageSourceItem__Tag:"aiChatMessageSourceItem__Tag",aiChatMessageSourceItem__Description:"aiChatMessageSourceItem__Description",aiChatMessageSourceItem__DescriptionPart:"aiChatMessageSourceItem__DescriptionPart",aiChatMessageSourceItem__Indicator:"aiChatMessageSourceItem__Indicator",aiChatFooter:"aiChatFooter",aiChatInput__Fieldset:"aiChatInput__Fieldset",aiChatInput__Group:"aiChatInput__Group",aiChatInput:"aiChatInput",aiChatInput__SendButton:"aiChatInput__SendButton",aiChatInput__SendButtonIcon:"aiChatInput__SendButtonIcon",aiChatAttachmentsBar:"aiChatAttachmentsBar",aiChatAttachmentsBar__List:"aiChatAttachmentsBar__List",aiChatAttachmentsBar__Attachment:"aiChatAttachmentsBar__Attachment",aiChatAttachmentsBar__AttachmentIcon:"aiChatAttachmentsBar__AttachmentIcon",aiChatAttachmentsBar__AttachmentTitle:"aiChatAttachmentsBar__AttachmentTitle",aiChatAttachmentsBar__AttachmentDelete:"aiChatAttachmentsBar__AttachmentDelete",aiChatAttachmentsBar__Actions:"aiChatAttachmentsBar__Actions",aiChatAttachmentsBar__InfoTip:"aiChatAttachmentsBar__InfoTip",aiChatAttachmentsBar__InfoTipIcon:"aiChatAttachmentsBar__InfoTipIcon",aiChatAttachmentsBar__InfoTipArrow:"aiChatAttachmentsBar__InfoTipArrow",aiChatAttachmentsBar__InfoTipText:"aiChatAttachmentsBar__InfoTipText",aiChatAttachmentsBar__Inputs:"aiChatAttachmentsBar__Inputs",aiChatAttachmentsBar__Input:"aiChatAttachmentsBar__Input",aiChatAttachmentsBar__InputIcon:"aiChatAttachmentsBar__InputIcon",aiChatAttachmentsBar__Modal:"aiChatAttachmentsBar__Modal",aiChatAttachmentsBar__ModalOverlay:"aiChatAttachmentsBar__ModalOverlay",aiChatAttachmentsBar__ModalContent:"aiChatAttachmentsBar__ModalContent",aiChatAttachmentsBar__ModalHeader:"aiChatAttachmentsBar__ModalHeader",aiChatAttachmentsBar__ModalClose:"aiChatAttachmentsBar__ModalClose",aiChatAttachmentsBar__ModalBody:"aiChatAttachmentsBar__ModalBody",aiChatAttachmentsBar__ModalHeading:"aiChatAttachmentsBar__ModalHeading",aiChatAttachmentsBar__ModalDescription:"aiChatAttachmentsBar__ModalDescription",aiChatAttachmentsBar__ModalHelp:"aiChatAttachmentsBar__ModalHelp",aiChatAttachmentsBar__Form:"aiChatAttachmentsBar__Form",aiChatAttachmentsBar__FormTitle:"aiChatAttachmentsBar__FormTitle",aiChatAttachmentsBar__FormTitleLabel:"aiChatAttachmentsBar__FormTitleLabel",aiChatAttachmentsBar__FormTitleInput:"aiChatAttachmentsBar__FormTitleInput",aiChatAttachmentsBar__FormTitleError:"aiChatAttachmentsBar__FormTitleError",aiChatAttachmentsBar__FormContent:"aiChatAttachmentsBar__FormContent",aiChatAttachmentsBar__FormContentLabel:"aiChatAttachmentsBar__FormContentLabel",aiChatAttachmentsBar__FormContentInput:"aiChatAttachmentsBar__FormContentInput",aiChatAttachmentsBar__FormContentError:"aiChatAttachmentsBar__FormContentError",aiChatAttachmentsBar__FormSubmitButton:"aiChatAttachmentsBar__FormSubmitButton",aiChatActionBar:"aiChatActionBar",aiChat__ChatActions:"aiChat__ChatActions",aiChat__ChatAction:"aiChat__ChatAction",aiChat__ChatActionLabel:"aiChat__ChatActionLabel",aiChat__ChatActionFeeback:"aiChat__ChatActionFeeback",aiChatHelpActions:"aiChatHelpActions",aiChatHelpAction:"aiChatHelpAction",aiChatHelpActions__Trigger:"aiChatHelpActions__Trigger",aiChatHelpActions__Menu:"aiChatHelpActions__Menu",aiChatHelpActions__MenuArrow:"aiChatHelpActions__MenuArrow",aiChatHelpActions__MenuItem:"aiChatHelpActions__MenuItem",aiChatHelpActions_MenuItemIcon:"aiChatHelpActions_MenuItemIcon",aiChatTagline__Container:"aiChatTagline__Container",aiChatTagline__Text:"aiChatTagline__Text",aiChatTagline__Logo:"aiChatTagline__Logo",aiChatTagline__BrandName:"aiChatTagline__BrandName",aiChatFeedbackModal:"aiChatFeedbackModal",aiChatFeedbackModal__Overlay:"aiChatFeedbackModal__Overlay",aiChatFeedbackModal__Content:"aiChatFeedbackModal__Content",aiChatFeedbackModal__Header:"aiChatFeedbackModal__Header",aiChatFeedbackModal__Close:"aiChatFeedbackModal__Close",aiChatFeedbackModal__Body:"aiChatFeedbackModal__Body",aiChatFeedbackForm:"aiChatFeedbackForm",aiChatFeedbackItem:"aiChatFeedbackItem",aiChatFeedbackItem__Checkbox:"aiChatFeedbackItem__Checkbox",aiChatFeedbackItem__CheckboxIndicator:"aiChatFeedbackItem__CheckboxIndicator",aiChatFeedbackItem__Label:"aiChatFeedbackItem__Label",aiChatFeedbackItem__Description:"aiChatFeedbackItem__Description",aiChatFeedbackForm__SubmitButton:"aiChatFeedbackForm__SubmitButton",aiChatForm__Wrapper:"aiChatForm__Wrapper",aiChatForm:"aiChatForm",aiChatForm__Close:"aiChatForm__Close",aiChatForm__Header:"aiChatForm__Header",aiChatForm__Heading:"aiChatForm__Heading",aiChatForm__Description:"aiChatForm__Description",aiChatForm__Content:"aiChatForm__Content",aiChatForm__Field:"aiChatForm__Field",aiChatForm__FieldLabel:"aiChatForm__FieldLabel",aiChatForm__FieldText:"aiChatForm__FieldText",aiChatForm__FieldEmail:"aiChatForm__FieldEmail",aiChatForm__FieldFile:"aiChatForm__FieldFile",aiChatForm__FieldTextArea:"aiChatForm__FieldTextArea",aiChatForm__FieldCheckbox:"aiChatForm__FieldCheckbox",aiChatForm__FieldCheckboxIndicator:"aiChatForm__FieldCheckboxIndicator",aiChatForm__FieldSelect:"aiChatForm__FieldSelect",aiChatForm__FieldSelect__Trigger:"aiChatForm__FieldSelect__Trigger",aiChatForm__FieldSelect__Value:"aiChatForm__FieldSelect__Value",aiChatForm__FieldSelect__Icon:"aiChatForm__FieldSelect__Icon",aiChatForm__FieldSelect__Content:"aiChatForm__FieldSelect__Content",aiChatForm__FieldSelect__Viewport:"aiChatForm__FieldSelect__Viewport",aiChatForm__FieldSelect__Item:"aiChatForm__FieldSelect__Item",aiChatForm__FieldSelect__ItemIndicator:"aiChatForm__FieldSelect__ItemIndicator",aiChatForm__FieldSelect__ItemText:"aiChatForm__FieldSelect__ItemText",aiChatForm__FieldError:"aiChatForm__FieldError",aiChatForm__Error:"aiChatForm__Error",aiChatForm__Footer:"aiChatForm__Footer",aiChatForm__Cancel:"aiChatForm__Cancel",aiChatForm__Submit:"aiChatForm__Submit",aiChatForm__Success:"aiChatForm__Success",aiChatForm__SuccessHeading:"aiChatForm__SuccessHeading",aiChatForm__SuccessMessage:"aiChatForm__SuccessMessage",aiChatForm__SuccessButton:"aiChatForm__SuccessButton",aiChatLink:"aiChatLink"},_={aiSearchWrapper:"aiSearchWrapper",aiSearchRoot:"aiSearchRoot",aiSearchContent:"aiSearchContent",aiSearchInputGroup:"aiSearchInputGroup",aiSearchInputIcon:"aiSearchInputIcon",aiSearchInput:"aiSearchInput",aiSearchLoading:"aiSearchLoading",aiAskAITrigger:"aiAskAITrigger",aiAskAITrigger__Icon:"aiAskAITrigger__Icon",aiAskAITrigger__Label:"aiAskAITrigger__Label",aiAskAITrigger__Query:"aiAskAITrigger__Query",aiAskAITrigger__Indicator:"aiAskAITrigger__Indicator",aiAskAITrigger__IndicatorText:"aiAskAITrigger__IndicatorText",aiSearchResults:"aiSearchResults",aiSearchResults__Loading:"aiSearchResults__Loading",aiSearchResults__Empty:"aiSearchResults__Empty",aiSearchResults__TabList:"aiSearchResults__TabList",aiSearchResults__Tab:"aiSearchResults__Tab",aiSearchResults__Content:"aiSearchResults__Content",aiSearchResults__ScrollArea:"aiSearchResults__ScrollArea",aiSearchResults__ScrollAreaViewport:"aiSearchResults__ScrollAreaViewport",aiSearchResults__List:"aiSearchResults__List",aiSearchResults__Item:"aiSearchResults__Item",aiSearchResults__ItemIcon:"aiSearchResults__ItemIcon",aiSearchResults__ItemBreadcrumbs:"aiSearchResults__ItemBreadcrumbs",aiSearchResults__ItemBreadcrumbIcon:"aiSearchResults__ItemBreadcrumbIcon",aiSearchResults__ItemTitle:"aiSearchResults__ItemTitle",aiSearchResults__ItemTag:"aiSearchResults__ItemTag",aiSearchResults__ItemDescription:"aiSearchResults__ItemDescription",aiSearchResults__ItemDescriptionPart:"aiSearchResults__ItemDescriptionPart",aiSearchResults__ItemIndicator:"aiSearchResults__ItemIndicator",aiSearchResults__ItemPreview:"aiSearchResults__ItemPreview",aiSearchResults__ItemPreview__Header:"aiSearchResults__ItemPreview__Header",aiSearchResults__ItemPreview__Heading:"aiSearchResults__ItemPreview__Heading",aiSearchResults__ItemPreview__Title:"aiSearchResults__ItemPreview__Title",aiSearchResults__ItemPreview__Title__LinkIcon:"aiSearchResults__ItemPreview__Title__LinkIcon",aiSearchResults__ItemPreview__Breadcrumbs:"aiSearchResults__ItemPreview__Breadcrumbs",aiSearchResults__ItemPreview__BreadcrumbIcon:"aiSearchResults__ItemPreview__BreadcrumbIcon",aiSearchResults__ItemPreview__Body:"aiSearchResults__ItemPreview__Body",aiSearchResults__ItemPreview__Outline:"aiSearchResults__ItemPreview__Outline",aiSearchResults__ItemPreview__Outline__Title:"aiSearchResults__ItemPreview__Outline__Title",aiSearchResults__ItemPreview__Outline__List:"aiSearchResults__ItemPreview__Outline__List",aiSearchResults__ItemPreview__Outline__Item:"aiSearchResults__ItemPreview__Outline__Item",aiSearchResults__ItemPreview__Outline__ItemIcon:"aiSearchResults__ItemPreview__Outline__ItemIcon",aiSearchResults__ItemPreview__Outline__ItemText:"aiSearchResults__ItemPreview__Outline__ItemText",aiSearchResults__ItemPreview__Outline__ItemLinkIcon:"aiSearchResults__ItemPreview__Outline__ItemLinkIcon",aiSearchResults__ScrollAreaScrollbar:"aiSearchResults__ScrollAreaScrollbar",aiSearchResults__ScrollAreaThumb:"aiSearchResults__ScrollAreaThumb",aiSearchResults__ScrollAreaCorner:"aiSearchResults__ScrollAreaCorner",aiSearchFooter:"aiSearchFooter",aiSearchTagline__Container:"aiSearchTagline__Container",aiSearchTagline__Text:"aiSearchTagline__Text",aiSearchTagline__Logo:"aiSearchTagline__Logo",aiSearchTagline__BrandName:"aiSearchTagline__BrandName"},i={modal:"modal",modal__Overlay:"modal__Overlay",modal__Content:"modal__Content",modal__Close:"modal__Close"},r={chatButton__Text:"chatButton__Text",chatButton__Button:"chatButton__Button",chatButton__Container:"chatButton__Container",chatButton__AvatarImage:"chatButton__AvatarImage",chatButton__AvatarContent:"chatButton__AvatarContent"},o={searchBar__Container:"searchBar__Container",searchBar__Button:"searchBar__Button",searchBar__ContentWrapper:"searchBar__ContentWrapper",searchBar__Text:"searchBar__Text",searchBar__Icon:"searchBar__Icon",searchBar__KbdWrapper:"searchBar__KbdWrapper",searchBar__CmdIcon:"searchBar__CmdIcon",searchBar__Ctrl:"searchBar__Ctrl",searchBar__KbdShortcutKey:"searchBar__KbdShortcutKey"},h={sidebarChat__Root:"sidebarChat__Root",sidebarChat__Resizer:"sidebarChat__Resizer",sidebarChat__CloseButton:"sidebarChat__CloseButton",sidebarChat__Header:"sidebarChat__Header"},s={...e,...t,..._,...i,...r,...o,...a,...h};exports.SearchBarComponentIds=o;exports.SidebarChatComponentIds=h;exports.aiChatComponentIds=t;exports.aiSearchComponentIds=_;exports.chatButtonComponentIds=r;exports.componentIDs=s;exports.markDownComponentIds=e;exports.miscellanousComponentIds=a;exports.modalComponentIds=i;
|