@inkeep/agents-ui 0.14.27 → 0.15.0
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/dist/index.cjs +1 -1
- package/dist/index.js +215 -203
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/built-in-icons.d.ts +1 -0
- package/dist/primitives/atoms/icons/built-in-icons.js +44 -43
- package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -1
- package/dist/primitives/atoms/icons/checkbox-icon.js +1 -1
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +3 -2
- 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 -1
- package/dist/primitives/components/chat-button.d.ts +3 -1
- package/dist/primitives/components/chat-button.js +31 -26
- package/dist/primitives/components/index.cjs +1 -1
- package/dist/primitives/components/index.d.ts +1 -0
- package/dist/primitives/components/index.js +19 -17
- package/dist/primitives/components/modal/use-inkeep-modal.cjs +1 -1
- package/dist/primitives/components/modal/use-inkeep-modal.d.ts +2 -2
- package/dist/primitives/components/modal/use-inkeep-modal.js +6 -42
- package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -1
- package/dist/primitives/components/modal/widget-auto-focus.js +21 -12
- package/dist/primitives/components/modal.d.ts +2 -2
- package/dist/primitives/components/searchbar.d.ts +3 -3
- package/dist/primitives/components/sidebar-chat/index.cjs +1 -1
- package/dist/primitives/components/sidebar-chat/index.js +48 -67
- package/dist/primitives/components/use-component-trigger.cjs +1 -1
- package/dist/primitives/components/use-component-trigger.d.ts +1 -1
- package/dist/primitives/components/use-component-trigger.js +4 -3
- package/dist/primitives/hooks/index.cjs +1 -1
- package/dist/primitives/hooks/index.d.ts +1 -0
- package/dist/primitives/hooks/index.js +18 -16
- 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/index.cjs +1 -1
- package/dist/primitives/index.js +140 -130
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- 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/config-provider.cjs +1 -1
- package/dist/primitives/providers/config-provider.d.ts +0 -1
- package/dist/primitives/providers/config-provider.js +12 -13
- package/dist/primitives/providers/index.cjs +1 -1
- package/dist/primitives/providers/index.d.ts +1 -0
- package/dist/primitives/providers/index.js +27 -22
- package/dist/primitives/providers/sidebar-chat-provider.cjs +1 -1
- package/dist/primitives/providers/sidebar-chat-provider.d.ts +3 -25
- package/dist/primitives/providers/sidebar-chat-provider.js +23 -27
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +10 -0
- package/dist/primitives/utils/component-ids.js +10 -3
- package/dist/react/chat-button.cjs +1 -1
- package/dist/react/chat-button.d.ts +23 -7
- package/dist/react/chat-button.js +55 -46
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.d.ts +4 -3
- package/dist/react/embedded-chat.js +171 -177
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +215 -203
- package/dist/react/modal.chat.cjs +1 -1
- package/dist/react/modal.chat.d.ts +6 -3
- package/dist/react/modal.chat.js +10 -10
- package/dist/react/modal.cjs +1 -1
- package/dist/react/modal.d.ts +2 -2
- package/dist/react/modal.js +5 -5
- package/dist/react/modal.search-and-chat.cjs +1 -1
- package/dist/react/modal.search-and-chat.d.ts +2 -2
- package/dist/react/modal.search-and-chat.js +15 -15
- package/dist/react/modal.search.cjs +1 -1
- package/dist/react/modal.search.d.ts +2 -2
- package/dist/react/modal.search.js +8 -8
- package/dist/react/searchbar.cjs +1 -1
- package/dist/react/searchbar.d.ts +4 -4
- package/dist/react/searchbar.js +12 -12
- package/dist/react/sidebar-chat.d.ts +1 -3
- 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 -1
- package/dist/styled/components/chat-button.d.ts +2 -1
- package/dist/styled/components/chat-button.js +10 -6
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.js +331 -320
- package/dist/styled/components/embedded-search.cjs +1 -1
- package/dist/styled/components/embedded-search.js +3 -3
- package/dist/styled/components/index.cjs +1 -1
- package/dist/styled/components/index.d.ts +1 -0
- package/dist/styled/components/index.js +14 -12
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +28 -25
- package/dist/styled/components/ui/recipes/button.cjs +1 -1
- package/dist/styled/components/ui/recipes/button.js +1 -1
- package/dist/styled/components/ui/recipes/checkbox.cjs +1 -1
- package/dist/styled/components/ui/recipes/checkbox.js +1 -1
- package/dist/styled/components/ui/recipes/input.cjs +1 -1
- package/dist/styled/components/ui/recipes/input.js +2 -2
- package/dist/styled/components/ui/recipes/markdown.cjs +1 -1
- package/dist/styled/components/ui/recipes/markdown.js +3 -3
- package/dist/styled/components/ui/recipes/select.cjs +1 -1
- package/dist/styled/components/ui/recipes/select.js +2 -2
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +174 -162
- package/dist/styled/inkeep.css.cjs +218 -99
- package/dist/styled/inkeep.css.js +218 -99
- package/dist/types/config/open-settings.d.ts +70 -0
- package/dist/types/config/settings/form.d.ts +0 -53
- package/dist/types/events.d.ts +9 -1
- package/dist/types/icons/built-in.d.ts +1 -1
- package/dist/types/icons/custom.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/js/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/config/modal.d.ts +0 -33
package/dist/react/index.js
CHANGED
|
@@ -1,213 +1,225 @@
|
|
|
1
|
-
import { InkeepEmbeddedChat as
|
|
2
|
-
import { InkeepSidebarChat as
|
|
3
|
-
import { InkeepEmbeddedSearchAndChat as
|
|
4
|
-
import { InkeepEmbeddedSearch as
|
|
5
|
-
import { InkeepModalChat as
|
|
6
|
-
import { InkeepModalSearchAndChat as
|
|
7
|
-
import { InkeepModalSearch as
|
|
8
|
-
import { InkeepModal as W, ModalContent as
|
|
9
|
-
import { ChatButtonImpl as
|
|
10
|
-
import { InkeepSearchBar as
|
|
1
|
+
import { InkeepEmbeddedChat as l, InkeepEmbeddedChatImpl as I, InkeepEmbeddedChatImplContent as b, InkeepEmbeddedChatProvider as c } from "./embedded-chat.js";
|
|
2
|
+
import { InkeepSidebarChat as P } from "./sidebar-chat.js";
|
|
3
|
+
import { InkeepEmbeddedSearchAndChat as k, InkeepEmbeddedSearchAndChatImpl as M } from "./embedded-search-and-chat.js";
|
|
4
|
+
import { InkeepEmbeddedSearch as g, InkeepEmbeddedSearchImpl as E, InkeepEmbeddedSearchImplContent as F, InkeepEmbeddedSearchProvider as A } from "./embedded-search.js";
|
|
5
|
+
import { InkeepModalChat as y } from "./modal.chat.js";
|
|
6
|
+
import { InkeepModalSearchAndChat as $ } from "./modal.search-and-chat.js";
|
|
7
|
+
import { InkeepModalSearch as O } from "./modal.search.js";
|
|
8
|
+
import { InkeepModal as W, ModalContent as H } from "./modal.js";
|
|
9
|
+
import { ChatButtonImpl as z, InkeepChatButton as j } from "./chat-button.js";
|
|
10
|
+
import { InkeepSearchBar as K, SearchBarImpl as N } from "./searchbar.js";
|
|
11
11
|
import * as e from "../styled/components/embedded-chat.js";
|
|
12
12
|
import * as o from "../styled/components/sidebar-chat.js";
|
|
13
|
-
import * as r from "../styled/components/
|
|
14
|
-
import * as t from "../styled/components/
|
|
15
|
-
import * as a from "../styled/components/
|
|
16
|
-
import * as m from "../styled/components/
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import * as s from "../primitives/components/
|
|
44
|
-
import {
|
|
45
|
-
import * as n from "../primitives/components/
|
|
46
|
-
import {
|
|
47
|
-
import * as i from "../primitives/components/
|
|
13
|
+
import * as r from "../styled/components/chat-bubble.js";
|
|
14
|
+
import * as t from "../styled/components/embedded-search.js";
|
|
15
|
+
import * as a from "../styled/components/modal.js";
|
|
16
|
+
import * as m from "../styled/components/chat-button.js";
|
|
17
|
+
import * as d from "../styled/components/searchbar.js";
|
|
18
|
+
import { Shadow as U } from "../styled/components/shadow.js";
|
|
19
|
+
import { LoadingIndicator as q } from "../styled/components/loading-indicator.js";
|
|
20
|
+
import { widgetToggle as X } from "../styled/components/ui/recipes/widget-toggle.js";
|
|
21
|
+
import { EmbeddedChatMessagePart as Z } from "../styled/components/message.js";
|
|
22
|
+
import { DataSummaryGroup as ee } from "../styled/components/data-summary-group.js";
|
|
23
|
+
import { AttachmentItemProvider as re, useAttachmentItem as te } from "../primitives/providers/attachment-item-provider.js";
|
|
24
|
+
import { AttachmentsBarProvider as me, useAttachmentsBar as de } from "../primitives/providers/attachments-bar-provider.js";
|
|
25
|
+
import { BaseEventsProvider as se, useBaseEvents as ne } from "../primitives/providers/base-events-provider.js";
|
|
26
|
+
import { ChatFormProvider as he, useChatForm as fe, useChatFormState as Ce } from "../primitives/providers/chat-form-provider.js";
|
|
27
|
+
import { InkeepConfigProvider as ue, WebWidgetInteractionType as le, useInkeepConfig as Ie } from "../primitives/providers/config-provider.js";
|
|
28
|
+
import { FeedbackItemProvider as ce, useFeedbackItem as Se } from "../primitives/providers/feedback-item-provider.js";
|
|
29
|
+
import { FeedbackProvider as ve, useMessageFeedback as ke } from "../primitives/providers/feedback-provider.js";
|
|
30
|
+
import { FormFieldProvider as Be, useFormField as ge } from "../primitives/providers/form-field-provider.js";
|
|
31
|
+
import { HelpMenuProvider as Fe, useHelpMenu as Ae, useHelpMenuState as we } from "../primitives/providers/help-menu-provider.js";
|
|
32
|
+
import { ChatMarkdownProvider as Re, useChatMarkdown as $e } from "../primitives/providers/markdown-provider.js";
|
|
33
|
+
import { MessageAttachmentsProvider as Oe, useMessageAttachments as Te } from "../primitives/providers/message-attachments-provider.js";
|
|
34
|
+
import { MessageProvider as He, useMessage as Le, useOptionalMessage as ze } from "../primitives/providers/message-provider.js";
|
|
35
|
+
import { RootProvider as Ge } from "../primitives/providers/root-provider.js";
|
|
36
|
+
import { SourceItemProvider as Ne, useSourceItem as Qe } from "../primitives/providers/source-item-provider.js";
|
|
37
|
+
import { ThemeProvider as Ve } from "../primitives/providers/theme-provider.js";
|
|
38
|
+
import { WidgetProvider as Je, useWidget as Xe } from "../primitives/providers/widget-provider.js";
|
|
39
|
+
import { SidebarChatProvider as Ze, useInkeepSidebarChat as _e, useOptionalSidebarChat as eo, useSidebarChat as oo } from "../primitives/providers/sidebar-chat-provider.js";
|
|
40
|
+
import { ChatBubbleProvider as to, useChatBubble as ao, useInkeepChatBubble as mo, useOptionalChatBubble as po } from "../primitives/providers/chat-bubble-provider.js";
|
|
41
|
+
import { ikp as no, jsxFactory as io } from "../primitives/components/factory.js";
|
|
42
|
+
import * as p from "../primitives/components/embedded-chat.js";
|
|
43
|
+
import * as s from "../primitives/components/sidebar-chat/index.js";
|
|
44
|
+
import { ChatProvider as fo, useChat as Co } from "../primitives/components/embedded-chat/chat-provider.js";
|
|
45
|
+
import * as n from "../primitives/components/embedded-search.js";
|
|
46
|
+
import { SearchProvider as uo, SearchProviderImpl as lo, useSearch as Io } from "../primitives/components/embedded-search/search-provider.js";
|
|
47
|
+
import * as i from "../primitives/components/modal.js";
|
|
48
|
+
import { ModalProvider as co, useModal as So } from "../primitives/components/modal/modal-provider.js";
|
|
49
|
+
import * as h from "../primitives/components/chat-button.js";
|
|
48
50
|
import * as f from "../primitives/components/searchbar.js";
|
|
49
|
-
import
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
51
|
+
import * as C from "../primitives/components/chat-bubble/index.js";
|
|
52
|
+
import { useBoolean as vo } from "../primitives/hooks/use-boolean.js";
|
|
53
|
+
import { useComponentClassNames as Mo } from "../primitives/hooks/use-component-classnames.js";
|
|
54
|
+
import { useContainerSize as go } from "../primitives/hooks/use-container-size.js";
|
|
55
|
+
import { useInkeepOpenState as Fo } from "../primitives/hooks/use-inkeep-open-state.js";
|
|
56
|
+
import { useCopyToClipboard as wo } from "../primitives/hooks/use-copy-to-clipboard.js";
|
|
57
|
+
import { useInstantUpdate as Ro } from "../primitives/hooks/use-instant-update.js";
|
|
58
|
+
import { useIsMounted as Do } from "../primitives/hooks/use-is-mounted.js";
|
|
59
|
+
import { useMediaQuery as To } from "../primitives/hooks/use-media-query.js";
|
|
60
|
+
import { useResizeObserver as Ho } from "../primitives/hooks/use-resize-observer.js";
|
|
61
|
+
import { useScrollingFades as zo } from "../primitives/hooks/use-scrolling-fades.js";
|
|
62
|
+
import { useSettleAction as Go } from "../primitives/hooks/use-settle-action.js";
|
|
63
|
+
import { useSimpleScroll as No } from "../primitives/hooks/use-simple-scroll.js";
|
|
64
|
+
import { callAll as Uo, dataAttr as Vo, getInitials as qo, getMessageContent as Jo, isString as Xo, maybeRender as Yo, toKebabCase as Zo } from "../primitives/utils/misc.js";
|
|
65
|
+
import { ChatBubbleComponentIds as er, SearchBarComponentIds as or, SidebarChatComponentIds as rr, aiChatComponentIds as tr, aiSearchComponentIds as ar, chatButtonComponentIds as mr, componentIDs as dr, markDownComponentIds as pr, miscellanousComponentIds as sr, modalComponentIds as nr } from "../primitives/utils/component-ids.js";
|
|
66
|
+
import { composeRefs as hr, useComposedRefs as fr } from "../primitives/utils/compose-refs.js";
|
|
67
|
+
import { mergeProps as xr } from "../primitives/utils/merge-props.js";
|
|
68
|
+
import { Portal as lr } from "../primitives/atoms/portal.js";
|
|
69
|
+
import { CustomIcon as br } from "../primitives/atoms/icons/custom-icon.js";
|
|
70
|
+
import { BuiltInIconRenderer as Sr } from "../primitives/atoms/icons/built-in-icon-renderer.js";
|
|
71
|
+
import { PortalWithTheme as vr } from "../primitives/atoms/portal-with-theme.js";
|
|
72
|
+
import { Command as Mr, CommandDialog as Br, CommandEmpty as gr, CommandInput as Er, CommandItem as Fr, CommandList as Ar, CommandLoading as wr, CommandRoot as yr, CommandSeparator as Rr, defaultFilter as $r, useCommandState as Dr, useCommandStore as Or } from "../primitives/atoms/cmdk/index.js";
|
|
73
|
+
import { ErrorBoundary as Wr } from "../primitives/atoms/error-boundary.js";
|
|
74
|
+
import { ColorMode as Lr, ColorModeProvider as zr, DarkModeProvider as jr, useColorMode as Gr, useColorModeValue as Kr } from "../color-mode/index.js";
|
|
75
|
+
import { InkeepShadow as Qr, InkeepShadowProvider as Ur, ShadowContext as Vr, useShadow as qr } from "../primitives/atoms/shadow/context.js";
|
|
72
76
|
export {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
77
|
+
re as AttachmentItemProvider,
|
|
78
|
+
me as AttachmentsBarProvider,
|
|
79
|
+
se as BaseEventsProvider,
|
|
80
|
+
Sr as BuiltInIconRenderer,
|
|
81
|
+
r as ChatBubble,
|
|
82
|
+
er as ChatBubbleComponentIds,
|
|
83
|
+
C as ChatBubblePrimitive,
|
|
84
|
+
to as ChatBubbleProvider,
|
|
85
|
+
m as ChatButton,
|
|
86
|
+
z as ChatButtonImpl,
|
|
87
|
+
h as ChatButtonPrimitive,
|
|
88
|
+
he as ChatFormProvider,
|
|
89
|
+
Re as ChatMarkdownProvider,
|
|
90
|
+
fo as ChatProvider,
|
|
91
|
+
Lr as ColorMode,
|
|
92
|
+
zr as ColorModeProvider,
|
|
93
|
+
Mr as Command,
|
|
94
|
+
Br as CommandDialog,
|
|
95
|
+
gr as CommandEmpty,
|
|
96
|
+
Er as CommandInput,
|
|
97
|
+
Fr as CommandItem,
|
|
98
|
+
Ar as CommandList,
|
|
99
|
+
wr as CommandLoading,
|
|
100
|
+
yr as CommandRoot,
|
|
101
|
+
Rr as CommandSeparator,
|
|
102
|
+
br as CustomIcon,
|
|
103
|
+
jr as DarkModeProvider,
|
|
104
|
+
ee as DataSummaryGroup,
|
|
97
105
|
e as EmbeddedChat,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
106
|
+
Z as EmbeddedChatMessagePart,
|
|
107
|
+
p as EmbeddedChatPrimitive,
|
|
108
|
+
t as EmbeddedSearch,
|
|
109
|
+
n as EmbeddedSearchPrimitive,
|
|
110
|
+
Wr as ErrorBoundary,
|
|
111
|
+
ce as FeedbackItemProvider,
|
|
112
|
+
ve as FeedbackProvider,
|
|
113
|
+
Be as FormFieldProvider,
|
|
114
|
+
Fe as HelpMenuProvider,
|
|
115
|
+
j as InkeepChatButton,
|
|
116
|
+
ue as InkeepConfigProvider,
|
|
117
|
+
l as InkeepEmbeddedChat,
|
|
118
|
+
I as InkeepEmbeddedChatImpl,
|
|
119
|
+
b as InkeepEmbeddedChatImplContent,
|
|
120
|
+
c as InkeepEmbeddedChatProvider,
|
|
121
|
+
g as InkeepEmbeddedSearch,
|
|
122
|
+
k as InkeepEmbeddedSearchAndChat,
|
|
123
|
+
M as InkeepEmbeddedSearchAndChatImpl,
|
|
124
|
+
E as InkeepEmbeddedSearchImpl,
|
|
125
|
+
F as InkeepEmbeddedSearchImplContent,
|
|
126
|
+
A as InkeepEmbeddedSearchProvider,
|
|
119
127
|
W as InkeepModal,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
128
|
+
y as InkeepModalChat,
|
|
129
|
+
O as InkeepModalSearch,
|
|
130
|
+
$ as InkeepModalSearchAndChat,
|
|
131
|
+
K as InkeepSearchBar,
|
|
132
|
+
Qr as InkeepShadow,
|
|
133
|
+
Ur as InkeepShadowProvider,
|
|
134
|
+
P as InkeepSidebarChat,
|
|
135
|
+
q as LoadingIndicator,
|
|
136
|
+
Oe as MessageAttachmentsProvider,
|
|
137
|
+
He as MessageProvider,
|
|
138
|
+
a as Modal,
|
|
139
|
+
H as ModalContent,
|
|
140
|
+
i as ModalPrimitive,
|
|
141
|
+
co as ModalProvider,
|
|
142
|
+
lr as Portal,
|
|
143
|
+
vr as PortalWithTheme,
|
|
144
|
+
Ge as RootProvider,
|
|
145
|
+
d as SearchBar,
|
|
146
|
+
or as SearchBarComponentIds,
|
|
147
|
+
N as SearchBarImpl,
|
|
140
148
|
f as SearchBarPrimitive,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
149
|
+
uo as SearchProvider,
|
|
150
|
+
lo as SearchProviderImpl,
|
|
151
|
+
U as Shadow,
|
|
152
|
+
Vr as ShadowContext,
|
|
145
153
|
o as SidebarChat,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
fe as
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
154
|
+
rr as SidebarChatComponentIds,
|
|
155
|
+
s as SidebarChatPrimitive,
|
|
156
|
+
Ze as SidebarChatProvider,
|
|
157
|
+
Ne as SourceItemProvider,
|
|
158
|
+
Ve as ThemeProvider,
|
|
159
|
+
le as WebWidgetInteractionType,
|
|
160
|
+
Je as WidgetProvider,
|
|
161
|
+
tr as aiChatComponentIds,
|
|
162
|
+
ar as aiSearchComponentIds,
|
|
163
|
+
Uo as callAll,
|
|
164
|
+
mr as chatButtonComponentIds,
|
|
165
|
+
dr as componentIDs,
|
|
166
|
+
hr as composeRefs,
|
|
167
|
+
Vo as dataAttr,
|
|
168
|
+
$r as defaultFilter,
|
|
169
|
+
qo as getInitials,
|
|
170
|
+
Jo as getMessageContent,
|
|
171
|
+
no as ikp,
|
|
172
|
+
Xo as isString,
|
|
173
|
+
io as jsxFactory,
|
|
174
|
+
pr as markDownComponentIds,
|
|
175
|
+
Yo as maybeRender,
|
|
176
|
+
xr as mergeProps,
|
|
177
|
+
sr as miscellanousComponentIds,
|
|
178
|
+
nr as modalComponentIds,
|
|
179
|
+
Zo as toKebabCase,
|
|
180
|
+
te as useAttachmentItem,
|
|
181
|
+
de as useAttachmentsBar,
|
|
182
|
+
ne as useBaseEvents,
|
|
183
|
+
vo as useBoolean,
|
|
184
|
+
Co as useChat,
|
|
185
|
+
ao as useChatBubble,
|
|
186
|
+
fe as useChatForm,
|
|
187
|
+
Ce as useChatFormState,
|
|
188
|
+
$e as useChatMarkdown,
|
|
189
|
+
Gr as useColorMode,
|
|
190
|
+
Kr as useColorModeValue,
|
|
191
|
+
Dr as useCommandState,
|
|
192
|
+
Or as useCommandStore,
|
|
193
|
+
Mo as useComponentClassNames,
|
|
194
|
+
fr as useComposedRefs,
|
|
195
|
+
go as useContainerSize,
|
|
196
|
+
wo as useCopyToClipboard,
|
|
197
|
+
Se as useFeedbackItem,
|
|
198
|
+
ge as useFormField,
|
|
199
|
+
Ae as useHelpMenu,
|
|
200
|
+
we as useHelpMenuState,
|
|
201
|
+
mo as useInkeepChatBubble,
|
|
202
|
+
Ie as useInkeepConfig,
|
|
203
|
+
Fo as useInkeepOpenState,
|
|
204
|
+
_e as useInkeepSidebarChat,
|
|
205
|
+
Ro as useInstantUpdate,
|
|
206
|
+
Do as useIsMounted,
|
|
207
|
+
To as useMediaQuery,
|
|
208
|
+
Le as useMessage,
|
|
198
209
|
Te as useMessageAttachments,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
ke as useMessageFeedback,
|
|
211
|
+
So as useModal,
|
|
212
|
+
po as useOptionalChatBubble,
|
|
213
|
+
ze as useOptionalMessage,
|
|
214
|
+
eo as useOptionalSidebarChat,
|
|
215
|
+
Ho as useResizeObserver,
|
|
216
|
+
zo as useScrollingFades,
|
|
217
|
+
Io as useSearch,
|
|
218
|
+
Go as useSettleAction,
|
|
219
|
+
qr as useShadow,
|
|
220
|
+
oo as useSidebarChat,
|
|
221
|
+
No as useSimpleScroll,
|
|
222
|
+
Qe as useSourceItem,
|
|
223
|
+
Xe as useWidget,
|
|
224
|
+
X as widgetToggle
|
|
213
225
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./embedded-chat.cjs"),d=require("./modal.cjs"),a=require("../primitives/providers/config-provider.cjs");function c(t){const{
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./embedded-chat.cjs"),d=require("./modal.cjs"),a=require("../primitives/providers/config-provider.cjs");function c(t){const{openSettings:n,baseSettings:o,aiChatSettings:r,...i}=t;return e.jsx(d.InkeepModal,{componentType:a.WebWidgetInteractionType.CustomTrigger,openSettings:n,baseSettings:o,aiChatSettings:r,children:e.jsx(s.InkeepEmbeddedChatImpl,{...i})})}exports.InkeepModalChat=c;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OpenSettingsModal } from '../types/index.ts';
|
|
2
2
|
import { InkeepEmbeddedChatProps } from './embedded-chat';
|
|
3
|
-
export interface InkeepModalChatProps extends
|
|
4
|
-
|
|
3
|
+
export interface InkeepModalChatProps extends InkeepEmbeddedChatProps {
|
|
4
|
+
/**
|
|
5
|
+
* Modal settings for the chat modal.
|
|
6
|
+
*/
|
|
7
|
+
openSettings?: OpenSettingsModal;
|
|
5
8
|
}
|
|
6
9
|
export declare function InkeepModalChat(props: InkeepModalChatProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/react/modal.chat.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { InkeepEmbeddedChatImpl as
|
|
4
|
-
import { InkeepModal as
|
|
5
|
-
import { WebWidgetInteractionType as
|
|
6
|
-
function
|
|
7
|
-
const {
|
|
3
|
+
import { InkeepEmbeddedChatImpl as p } from "./embedded-chat.js";
|
|
4
|
+
import { InkeepModal as m } from "./modal.js";
|
|
5
|
+
import { WebWidgetInteractionType as s } from "../primitives/providers/config-provider.js";
|
|
6
|
+
function f(t) {
|
|
7
|
+
const { openSettings: o, baseSettings: n, aiChatSettings: r, ...i } = t;
|
|
8
8
|
return /* @__PURE__ */ e(
|
|
9
|
-
|
|
9
|
+
m,
|
|
10
10
|
{
|
|
11
|
-
componentType:
|
|
12
|
-
|
|
11
|
+
componentType: s.CustomTrigger,
|
|
12
|
+
openSettings: o,
|
|
13
13
|
baseSettings: n,
|
|
14
14
|
aiChatSettings: r,
|
|
15
|
-
children: /* @__PURE__ */ e(
|
|
15
|
+
children: /* @__PURE__ */ e(p, { ...i })
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
f as InkeepModalChat
|
|
21
21
|
};
|
package/dist/react/modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../styled/components/modal.cjs"),d=require("../styled/components/shadow.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../styled/components/modal.cjs"),d=require("../styled/components/shadow.cjs"),s=require("../primitives/providers/root-provider.cjs"),l=require("../primitives/atoms/portal.cjs"),u=require("../primitives/atoms/error-boundary.cjs");function a(r){const{componentType:n,children:t,openSettings:i,...c}=r;return e.jsx(u.ErrorBoundary,{children:e.jsx(l.Portal,{children:e.jsx(d.Shadow,{children:e.jsx(s.RootProvider,{config:{...c},componentType:n,children:e.jsx(o.Root,{config:i,children:t})})})})})}function h(r){return e.jsx(o.Overlay,{children:e.jsx(o.Content,{children:r.children})})}exports.InkeepModal=a;exports.ModalContent=h;
|
package/dist/react/modal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OpenSettingsModal } from '../types/index.ts';
|
|
2
2
|
import { WebWidgetInteractionType, RootProviderProps } from '../styled';
|
|
3
3
|
import { PropsWithChildren } from 'react';
|
|
4
4
|
type RootConfig = RootProviderProps['config'];
|
|
@@ -6,7 +6,7 @@ interface ModalConfig extends RootConfig {
|
|
|
6
6
|
/**
|
|
7
7
|
* The configuration for the modal.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
openSettings?: OpenSettingsModal;
|
|
10
10
|
}
|
|
11
11
|
export interface InkeepModalProps extends ModalConfig {
|
|
12
12
|
/**
|
package/dist/react/modal.js
CHANGED
|
@@ -3,18 +3,18 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
3
3
|
import { Root as l, Overlay as d, Content as c } from "../styled/components/modal.js";
|
|
4
4
|
import { Shadow as a } from "../styled/components/shadow.js";
|
|
5
5
|
import { RootProvider as m } from "../primitives/providers/root-provider.js";
|
|
6
|
-
import { Portal as
|
|
7
|
-
import { ErrorBoundary as
|
|
6
|
+
import { Portal as p } from "../primitives/atoms/portal.js";
|
|
7
|
+
import { ErrorBoundary as f } from "../primitives/atoms/error-boundary.js";
|
|
8
8
|
function v(r) {
|
|
9
|
-
const { componentType: n, children:
|
|
10
|
-
return /* @__PURE__ */ o(
|
|
9
|
+
const { componentType: n, children: e, openSettings: t, ...i } = r;
|
|
10
|
+
return /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(p, { children: /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(
|
|
11
11
|
m,
|
|
12
12
|
{
|
|
13
13
|
config: {
|
|
14
14
|
...i
|
|
15
15
|
},
|
|
16
16
|
componentType: n,
|
|
17
|
-
children: /* @__PURE__ */ o(l, { config:
|
|
17
|
+
children: /* @__PURE__ */ o(l, { config: t, children: e })
|
|
18
18
|
}
|
|
19
19
|
) }) }) });
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),a=require("./embedded-search-and-chat.cjs"),u=require("./modal.cjs"),l=require("./embedded-search-and-chat.impl.cjs"),h=require("../primitives/providers/config-provider.cjs"),p=require("./utils.cjs");function g(e){const{openSettings:n,...r}=e,{config:i,...t}=l.useWidgetImpl(r),c=p.composeEventHandlers(n?.onOpenChange,s=>{e.forceDefaultView&&!s&&t.setView(e.defaultView??"search")}),d={...n,onOpenChange:c};return o.jsx(u.InkeepModal,{...i,openSettings:d,componentType:h.WebWidgetInteractionType.CustomTrigger,children:o.jsx(a.InkeepEmbeddedSearchAndChatImpl,{...t})})}exports.InkeepModalSearchAndChat=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OpenSettingsModal } from '../types/index.ts';
|
|
2
2
|
import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
|
|
3
3
|
export interface InkeepModalSearchAndChatProps extends InkeepEmbeddedSearchAndChatProps {
|
|
4
|
-
|
|
4
|
+
openSettings?: OpenSettingsModal;
|
|
5
5
|
}
|
|
6
6
|
export declare function InkeepModalSearchAndChat(props: InkeepModalSearchAndChatProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { InkeepEmbeddedSearchAndChatImpl as
|
|
4
|
-
import { InkeepModal as
|
|
5
|
-
import { useWidgetImpl as
|
|
6
|
-
import { WebWidgetInteractionType as
|
|
7
|
-
import { composeEventHandlers as
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { InkeepEmbeddedSearchAndChatImpl as s } from "./embedded-search-and-chat.js";
|
|
4
|
+
import { InkeepModal as a } from "./modal.js";
|
|
5
|
+
import { useWidgetImpl as d } from "./embedded-search-and-chat.impl.js";
|
|
6
|
+
import { WebWidgetInteractionType as f } from "../primitives/providers/config-provider.js";
|
|
7
|
+
import { composeEventHandlers as g } from "./utils.js";
|
|
8
8
|
function k(e) {
|
|
9
|
-
const {
|
|
10
|
-
e.forceDefaultView && !c &&
|
|
11
|
-
}),
|
|
12
|
-
...
|
|
9
|
+
const { openSettings: n, ...r } = e, { config: i, ...t } = d(r), m = g(n?.onOpenChange, (c) => {
|
|
10
|
+
e.forceDefaultView && !c && t.setView(e.defaultView ?? "search");
|
|
11
|
+
}), p = {
|
|
12
|
+
...n,
|
|
13
13
|
onOpenChange: m
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
15
|
+
return /* @__PURE__ */ o(
|
|
16
|
+
a,
|
|
17
17
|
{
|
|
18
18
|
...i,
|
|
19
|
-
|
|
20
|
-
componentType:
|
|
21
|
-
children: /* @__PURE__ */
|
|
19
|
+
openSettings: p,
|
|
20
|
+
componentType: f.CustomTrigger,
|
|
21
|
+
children: /* @__PURE__ */ o(s, { ...t })
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("./embedded-search.cjs"),i=require("./modal.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("./embedded-search.cjs"),i=require("./modal.cjs"),u=require("../primitives/providers/config-provider.cjs");function d(t){const{openSettings:n,baseSettings:r,searchSettings:o,...s}=t;return e.jsx(i.InkeepModal,{componentType:u.WebWidgetInteractionType.CustomTrigger,openSettings:n,baseSettings:r,searchSettings:o,children:e.jsx(c.InkeepEmbeddedSearchImpl,{shouldAutoFocusInput:!0,...s})})}exports.InkeepModalSearch=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OpenSettingsModal } from '../types/index.ts';
|
|
2
2
|
import { InkeepEmbeddedSearchProps } from './embedded-search';
|
|
3
3
|
export interface InkeepModalSearchProps extends Omit<InkeepEmbeddedSearchProps, 'onToggleView'> {
|
|
4
|
-
|
|
4
|
+
openSettings?: OpenSettingsModal;
|
|
5
5
|
}
|
|
6
6
|
export declare function InkeepModalSearch(props: InkeepModalSearchProps): import("react/jsx-runtime").JSX.Element;
|