@inkeep/agents-ui 0.14.28 → 0.15.1
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 +220 -205
- 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/data-summaries.cjs +1 -0
- package/dist/primitives/components/data-summaries.d.ts +14 -0
- package/dist/primitives/components/data-summaries.js +38 -0
- package/dist/primitives/components/index.cjs +1 -1
- package/dist/primitives/components/index.d.ts +2 -0
- package/dist/primitives/components/index.js +21 -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 +155 -142
- 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/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 +34 -0
- package/dist/primitives/utils/component-ids.js +29 -8
- package/dist/react/chat-button.cjs +1 -1
- package/dist/react/chat-button.d.ts +7 -13
- 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 +220 -205
- package/dist/react/modal.chat.cjs +1 -1
- package/dist/react/modal.chat.d.ts +3 -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/data-summary-group.cjs +1 -1
- package/dist/styled/components/data-summary-group.js +62 -62
- 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 +182 -167
- 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/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,228 @@
|
|
|
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
|
|
9
|
-
import { ChatButtonImpl as
|
|
10
|
-
import { InkeepSearchBar as
|
|
1
|
+
import { InkeepEmbeddedChat as I, InkeepEmbeddedChatImpl as b, InkeepEmbeddedChatImplContent as S, InkeepEmbeddedChatProvider as c } from "./embedded-chat.js";
|
|
2
|
+
import { InkeepSidebarChat as v } from "./sidebar-chat.js";
|
|
3
|
+
import { InkeepEmbeddedSearchAndChat as M, InkeepEmbeddedSearchAndChatImpl as B } from "./embedded-search-and-chat.js";
|
|
4
|
+
import { InkeepEmbeddedSearch as E, InkeepEmbeddedSearchImpl as F, InkeepEmbeddedSearchImplContent as A, InkeepEmbeddedSearchProvider as y } from "./embedded-search.js";
|
|
5
|
+
import { InkeepModalChat as D } from "./modal.chat.js";
|
|
6
|
+
import { InkeepModalSearchAndChat as $ } from "./modal.search-and-chat.js";
|
|
7
|
+
import { InkeepModalSearch as T } from "./modal.search.js";
|
|
8
|
+
import { InkeepModal as H, ModalContent as L } from "./modal.js";
|
|
9
|
+
import { ChatButtonImpl as j, InkeepChatButton as G } from "./chat-button.js";
|
|
10
|
+
import { InkeepSearchBar as N, SearchBarImpl as Q } 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 V } from "../styled/components/shadow.js";
|
|
19
|
+
import { LoadingIndicator as J } from "../styled/components/loading-indicator.js";
|
|
20
|
+
import { widgetToggle as Y } from "../styled/components/ui/recipes/widget-toggle.js";
|
|
21
|
+
import { EmbeddedChatMessagePart as _ } from "../styled/components/message.js";
|
|
22
|
+
import { DataSummaryGroup as oe } from "../styled/components/data-summary-group.js";
|
|
23
|
+
import { AttachmentItemProvider as te, useAttachmentItem as ae } from "../primitives/providers/attachment-item-provider.js";
|
|
24
|
+
import { AttachmentsBarProvider as de, useAttachmentsBar as pe } from "../primitives/providers/attachments-bar-provider.js";
|
|
25
|
+
import { BaseEventsProvider as ne, useBaseEvents as ie } from "../primitives/providers/base-events-provider.js";
|
|
26
|
+
import { ChatFormProvider as fe, useChatForm as Ce, useChatFormState as xe } from "../primitives/providers/chat-form-provider.js";
|
|
27
|
+
import { InkeepConfigProvider as le, WebWidgetInteractionType as Ie, useInkeepConfig as be } from "../primitives/providers/config-provider.js";
|
|
28
|
+
import { FeedbackItemProvider as ce, useFeedbackItem as Pe } from "../primitives/providers/feedback-item-provider.js";
|
|
29
|
+
import { FeedbackProvider as ke, useMessageFeedback as Me } from "../primitives/providers/feedback-provider.js";
|
|
30
|
+
import { FormFieldProvider as ge, useFormField as Ee } from "../primitives/providers/form-field-provider.js";
|
|
31
|
+
import { HelpMenuProvider as Ae, useHelpMenu as ye, 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 Te, useMessageAttachments as We } from "../primitives/providers/message-attachments-provider.js";
|
|
34
|
+
import { MessageProvider as Le, useMessage as ze, useOptionalMessage as je } from "../primitives/providers/message-provider.js";
|
|
35
|
+
import { RootProvider as Ke } from "../primitives/providers/root-provider.js";
|
|
36
|
+
import { SourceItemProvider as Qe, useSourceItem as Ue } from "../primitives/providers/source-item-provider.js";
|
|
37
|
+
import { ThemeProvider as qe } from "../primitives/providers/theme-provider.js";
|
|
38
|
+
import { WidgetProvider as Xe, useWidget as Ye } from "../primitives/providers/widget-provider.js";
|
|
39
|
+
import { SidebarChatProvider as _e, useInkeepSidebarChat as eo, useOptionalSidebarChat as oo, useSidebarChat as ro } from "../primitives/providers/sidebar-chat-provider.js";
|
|
40
|
+
import { ChatBubbleProvider as ao, useChatBubble as mo, useInkeepChatBubble as po, useOptionalChatBubble as so } from "../primitives/providers/chat-bubble-provider.js";
|
|
41
|
+
import { ikp as io, jsxFactory as ho } 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 Co, useChat as xo } from "../primitives/components/embedded-chat/chat-provider.js";
|
|
45
|
+
import * as n from "../primitives/components/embedded-search.js";
|
|
46
|
+
import { SearchProvider as lo, SearchProviderImpl as Io, useSearch as bo } from "../primitives/components/embedded-search/search-provider.js";
|
|
47
|
+
import * as i from "../primitives/components/modal.js";
|
|
48
|
+
import { ModalProvider as co, useModal as Po } 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 * as x from "../primitives/components/data-summaries.js";
|
|
53
|
+
import { useBoolean as ko } from "../primitives/hooks/use-boolean.js";
|
|
54
|
+
import { useComponentClassNames as Bo } from "../primitives/hooks/use-component-classnames.js";
|
|
55
|
+
import { useContainerSize as Eo } from "../primitives/hooks/use-container-size.js";
|
|
56
|
+
import { useInkeepOpenState as Ao } from "../primitives/hooks/use-inkeep-open-state.js";
|
|
57
|
+
import { useCopyToClipboard as wo } from "../primitives/hooks/use-copy-to-clipboard.js";
|
|
58
|
+
import { useInstantUpdate as Ro } from "../primitives/hooks/use-instant-update.js";
|
|
59
|
+
import { useIsMounted as Oo } from "../primitives/hooks/use-is-mounted.js";
|
|
60
|
+
import { useMediaQuery as Wo } from "../primitives/hooks/use-media-query.js";
|
|
61
|
+
import { useResizeObserver as Lo } from "../primitives/hooks/use-resize-observer.js";
|
|
62
|
+
import { useScrollingFades as jo } from "../primitives/hooks/use-scrolling-fades.js";
|
|
63
|
+
import { useSettleAction as Ko } from "../primitives/hooks/use-settle-action.js";
|
|
64
|
+
import { useSimpleScroll as Qo } from "../primitives/hooks/use-simple-scroll.js";
|
|
65
|
+
import { callAll as Vo, dataAttr as qo, getInitials as Jo, getMessageContent as Xo, isString as Yo, maybeRender as Zo, toKebabCase as _o } from "../primitives/utils/misc.js";
|
|
66
|
+
import { ChatBubbleComponentIds as or, DataSummaryComponentIds as rr, SearchBarComponentIds as tr, SidebarChatComponentIds as ar, aiChatComponentIds as mr, aiSearchComponentIds as dr, chatButtonComponentIds as pr, componentIDs as sr, markDownComponentIds as nr, miscellanousComponentIds as ir, modalComponentIds as hr } from "../primitives/utils/component-ids.js";
|
|
67
|
+
import { composeRefs as Cr, useComposedRefs as xr } from "../primitives/utils/compose-refs.js";
|
|
68
|
+
import { mergeProps as lr } from "../primitives/utils/merge-props.js";
|
|
69
|
+
import { Portal as br } from "../primitives/atoms/portal.js";
|
|
70
|
+
import { CustomIcon as cr } from "../primitives/atoms/icons/custom-icon.js";
|
|
71
|
+
import { BuiltInIconRenderer as vr } from "../primitives/atoms/icons/built-in-icon-renderer.js";
|
|
72
|
+
import { PortalWithTheme as Mr } from "../primitives/atoms/portal-with-theme.js";
|
|
73
|
+
import { Command as gr, CommandDialog as Er, CommandEmpty as Fr, CommandInput as Ar, CommandItem as yr, CommandList as wr, CommandLoading as Dr, CommandRoot as Rr, CommandSeparator as $r, defaultFilter as Or, useCommandState as Tr, useCommandStore as Wr } from "../primitives/atoms/cmdk/index.js";
|
|
74
|
+
import { ErrorBoundary as Lr } from "../primitives/atoms/error-boundary.js";
|
|
75
|
+
import { ColorMode as jr, ColorModeProvider as Gr, DarkModeProvider as Kr, useColorMode as Nr, useColorModeValue as Qr } from "../color-mode/index.js";
|
|
76
|
+
import { InkeepShadow as Vr, InkeepShadowProvider as qr, ShadowContext as Jr, useShadow as Xr } from "../primitives/atoms/shadow/context.js";
|
|
72
77
|
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
|
-
|
|
78
|
+
te as AttachmentItemProvider,
|
|
79
|
+
de as AttachmentsBarProvider,
|
|
80
|
+
ne as BaseEventsProvider,
|
|
81
|
+
vr as BuiltInIconRenderer,
|
|
82
|
+
r as ChatBubble,
|
|
83
|
+
or as ChatBubbleComponentIds,
|
|
84
|
+
C as ChatBubblePrimitive,
|
|
85
|
+
ao as ChatBubbleProvider,
|
|
86
|
+
m as ChatButton,
|
|
87
|
+
j as ChatButtonImpl,
|
|
88
|
+
h as ChatButtonPrimitive,
|
|
89
|
+
fe as ChatFormProvider,
|
|
90
|
+
Re as ChatMarkdownProvider,
|
|
91
|
+
Co as ChatProvider,
|
|
92
|
+
jr as ColorMode,
|
|
93
|
+
Gr as ColorModeProvider,
|
|
94
|
+
gr as Command,
|
|
95
|
+
Er as CommandDialog,
|
|
96
|
+
Fr as CommandEmpty,
|
|
97
|
+
Ar as CommandInput,
|
|
98
|
+
yr as CommandItem,
|
|
99
|
+
wr as CommandList,
|
|
100
|
+
Dr as CommandLoading,
|
|
101
|
+
Rr as CommandRoot,
|
|
102
|
+
$r as CommandSeparator,
|
|
103
|
+
cr as CustomIcon,
|
|
104
|
+
Kr as DarkModeProvider,
|
|
105
|
+
rr as DataSummaryComponentIds,
|
|
106
|
+
oe as DataSummaryGroup,
|
|
107
|
+
x as DataSummaryPrimitive,
|
|
97
108
|
e as EmbeddedChat,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
109
|
+
_ as EmbeddedChatMessagePart,
|
|
110
|
+
p as EmbeddedChatPrimitive,
|
|
111
|
+
t as EmbeddedSearch,
|
|
112
|
+
n as EmbeddedSearchPrimitive,
|
|
113
|
+
Lr as ErrorBoundary,
|
|
114
|
+
ce as FeedbackItemProvider,
|
|
115
|
+
ke as FeedbackProvider,
|
|
116
|
+
ge as FormFieldProvider,
|
|
117
|
+
Ae as HelpMenuProvider,
|
|
118
|
+
G as InkeepChatButton,
|
|
119
|
+
le as InkeepConfigProvider,
|
|
120
|
+
I as InkeepEmbeddedChat,
|
|
121
|
+
b as InkeepEmbeddedChatImpl,
|
|
122
|
+
S as InkeepEmbeddedChatImplContent,
|
|
123
|
+
c as InkeepEmbeddedChatProvider,
|
|
124
|
+
E as InkeepEmbeddedSearch,
|
|
125
|
+
M as InkeepEmbeddedSearchAndChat,
|
|
126
|
+
B as InkeepEmbeddedSearchAndChatImpl,
|
|
127
|
+
F as InkeepEmbeddedSearchImpl,
|
|
128
|
+
A as InkeepEmbeddedSearchImplContent,
|
|
129
|
+
y as InkeepEmbeddedSearchProvider,
|
|
130
|
+
H as InkeepModal,
|
|
131
|
+
D as InkeepModalChat,
|
|
132
|
+
T as InkeepModalSearch,
|
|
133
|
+
$ as InkeepModalSearchAndChat,
|
|
134
|
+
N as InkeepSearchBar,
|
|
135
|
+
Vr as InkeepShadow,
|
|
136
|
+
qr as InkeepShadowProvider,
|
|
137
|
+
v as InkeepSidebarChat,
|
|
138
|
+
J as LoadingIndicator,
|
|
139
|
+
Te as MessageAttachmentsProvider,
|
|
140
|
+
Le as MessageProvider,
|
|
141
|
+
a as Modal,
|
|
142
|
+
L as ModalContent,
|
|
143
|
+
i as ModalPrimitive,
|
|
144
|
+
co as ModalProvider,
|
|
145
|
+
br as Portal,
|
|
146
|
+
Mr as PortalWithTheme,
|
|
147
|
+
Ke as RootProvider,
|
|
148
|
+
d as SearchBar,
|
|
149
|
+
tr as SearchBarComponentIds,
|
|
150
|
+
Q as SearchBarImpl,
|
|
140
151
|
f as SearchBarPrimitive,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
152
|
+
lo as SearchProvider,
|
|
153
|
+
Io as SearchProviderImpl,
|
|
154
|
+
V as Shadow,
|
|
155
|
+
Jr as ShadowContext,
|
|
145
156
|
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
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
Ee as
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
157
|
+
ar as SidebarChatComponentIds,
|
|
158
|
+
s as SidebarChatPrimitive,
|
|
159
|
+
_e as SidebarChatProvider,
|
|
160
|
+
Qe as SourceItemProvider,
|
|
161
|
+
qe as ThemeProvider,
|
|
162
|
+
Ie as WebWidgetInteractionType,
|
|
163
|
+
Xe as WidgetProvider,
|
|
164
|
+
mr as aiChatComponentIds,
|
|
165
|
+
dr as aiSearchComponentIds,
|
|
166
|
+
Vo as callAll,
|
|
167
|
+
pr as chatButtonComponentIds,
|
|
168
|
+
sr as componentIDs,
|
|
169
|
+
Cr as composeRefs,
|
|
170
|
+
qo as dataAttr,
|
|
171
|
+
Or as defaultFilter,
|
|
172
|
+
Jo as getInitials,
|
|
173
|
+
Xo as getMessageContent,
|
|
174
|
+
io as ikp,
|
|
175
|
+
Yo as isString,
|
|
176
|
+
ho as jsxFactory,
|
|
177
|
+
nr as markDownComponentIds,
|
|
178
|
+
Zo as maybeRender,
|
|
179
|
+
lr as mergeProps,
|
|
180
|
+
ir as miscellanousComponentIds,
|
|
181
|
+
hr as modalComponentIds,
|
|
182
|
+
_o as toKebabCase,
|
|
183
|
+
ae as useAttachmentItem,
|
|
184
|
+
pe as useAttachmentsBar,
|
|
185
|
+
ie as useBaseEvents,
|
|
186
|
+
ko as useBoolean,
|
|
187
|
+
xo as useChat,
|
|
188
|
+
mo as useChatBubble,
|
|
189
|
+
Ce as useChatForm,
|
|
190
|
+
xe as useChatFormState,
|
|
191
|
+
$e as useChatMarkdown,
|
|
192
|
+
Nr as useColorMode,
|
|
193
|
+
Qr as useColorModeValue,
|
|
194
|
+
Tr as useCommandState,
|
|
195
|
+
Wr as useCommandStore,
|
|
196
|
+
Bo as useComponentClassNames,
|
|
197
|
+
xr as useComposedRefs,
|
|
198
|
+
Eo as useContainerSize,
|
|
199
|
+
wo as useCopyToClipboard,
|
|
200
|
+
Pe as useFeedbackItem,
|
|
201
|
+
Ee as useFormField,
|
|
202
|
+
ye as useHelpMenu,
|
|
203
|
+
we as useHelpMenuState,
|
|
204
|
+
po as useInkeepChatBubble,
|
|
205
|
+
be as useInkeepConfig,
|
|
206
|
+
Ao as useInkeepOpenState,
|
|
207
|
+
eo as useInkeepSidebarChat,
|
|
208
|
+
Ro as useInstantUpdate,
|
|
209
|
+
Oo as useIsMounted,
|
|
210
|
+
Wo as useMediaQuery,
|
|
211
|
+
ze as useMessage,
|
|
212
|
+
We as useMessageAttachments,
|
|
213
|
+
Me as useMessageFeedback,
|
|
214
|
+
Po as useModal,
|
|
215
|
+
so as useOptionalChatBubble,
|
|
216
|
+
je as useOptionalMessage,
|
|
217
|
+
oo as useOptionalSidebarChat,
|
|
218
|
+
Lo as useResizeObserver,
|
|
219
|
+
jo as useScrollingFades,
|
|
220
|
+
bo as useSearch,
|
|
221
|
+
Ko as useSettleAction,
|
|
222
|
+
Xr as useShadow,
|
|
223
|
+
ro as useSidebarChat,
|
|
224
|
+
Qo as useSimpleScroll,
|
|
225
|
+
Ue as useSourceItem,
|
|
226
|
+
Ye as useWidget,
|
|
227
|
+
Y as widgetToggle
|
|
213
228
|
};
|
|
@@ -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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OpenSettingsModal } from '../types/index.ts';
|
|
2
2
|
import { InkeepEmbeddedChatProps } from './embedded-chat';
|
|
3
|
-
export interface InkeepModalChatProps extends
|
|
3
|
+
export interface InkeepModalChatProps extends InkeepEmbeddedChatProps {
|
|
4
4
|
/**
|
|
5
5
|
* Modal settings for the chat modal.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
openSettings?: OpenSettingsModal;
|
|
8
8
|
}
|
|
9
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;
|