@inkeep/agents-ui 0.15.11 → 0.15.13
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 +171 -169
- package/dist/primitives/atoms/combobox.cjs +1 -0
- package/dist/primitives/atoms/combobox.js +275 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -1
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +74 -87
- package/dist/primitives/components/embedded-chat.cjs +4 -4
- package/dist/primitives/components/embedded-chat.d.ts +22 -1
- package/dist/primitives/components/embedded-chat.js +1249 -1137
- package/dist/primitives/hooks/use-simple-scroll.cjs +1 -1
- package/dist/primitives/hooks/use-simple-scroll.d.ts +12 -1
- package/dist/primitives/hooks/use-simple-scroll.js +45 -12
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +24 -0
- package/dist/primitives/utils/component-ids.js +12 -0
- package/dist/primitives/utils/form.cjs +1 -1
- package/dist/primitives/utils/form.d.ts +1 -1
- package/dist/primitives/utils/form.js +3 -1
- package/dist/react/chat-button-modal.cjs +1 -0
- package/dist/react/chat-button-modal.d.ts +22 -0
- package/dist/react/chat-button-modal.js +41 -0
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +210 -191
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +171 -169
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +16 -1
- package/dist/styled/components/embedded-chat.js +686 -568
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +191 -183
- package/dist/styled/components/ui/recipes/combobox.cjs +1 -0
- package/dist/styled/components/ui/recipes/combobox.d.ts +4 -0
- package/dist/styled/components/ui/recipes/combobox.js +57 -0
- package/dist/styled/components/ui/recipes/index.cjs +1 -1
- package/dist/styled/components/ui/recipes/index.d.ts +1 -0
- package/dist/styled/components/ui/recipes/index.js +29 -27
- package/dist/styled/components/ui/recipes/modal.d.ts +1 -1
- package/dist/styled/components/ui/recipes/scrollable.d.ts +1 -1
- package/dist/styled/components/ui/recipes/select.d.ts +1 -1
- package/dist/styled/inkeep.css.cjs +182 -2
- package/dist/styled/inkeep.css.js +182 -2
- package/dist/types/config/settings/form.d.ts +9 -1
- package/package.json +6 -5
|
@@ -1,139 +1,139 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as t, Fragment as
|
|
3
|
-
import M, { Fragment as
|
|
4
|
-
import { Provider as O, Wrapper as N, Root as $, Header as R, HeaderToolbar as j, HeaderToolbarWrapper as G, ToolbarHeader as z, Disclaimer as
|
|
2
|
+
import { jsx as e, jsxs as t, Fragment as F } from "react/jsx-runtime";
|
|
3
|
+
import M, { Fragment as S } from "react";
|
|
4
|
+
import { Provider as O, Wrapper as N, Root as $, Header as R, HeaderToolbar as j, HeaderToolbarWrapper as G, ToolbarHeader as z, Disclaimer as x, DisclaimerTrigger as k, DisclaimerContent as H, DisclaimerText as f, DisclaimerArrow as v, Content as J, ContentScrollArea as K, ContentScrollAreaViewport as U, ContentScrollAreaScrollbar as X, ContentScrollAreaThumb as Y, ContentScrollAreaCorner as Z, Footer as q, FeedbackModal as ee, FeedbackModalOverlay as te, FeedbackModalContent as ae, FeedbackModalHeader as de, FeedbackModalClose as re, FeedbackModalBody as oe, FeedbackForm as ne, FeedbackItem as h, FeedbackItemCheckbox as l, FeedbackItemCheckboxIndicator as b, FeedbackItemLabel as C, FeedbackItemDescription as E, FeedbackSubmitButton as se, FormWrapper as me, FormClose as ce, Form as ie, FormHeader as he, FormHeading as le, FormDescription as be, FormContent as Ce, FormField as Fe, FormFieldLabel as Ee, FormFieldText as pe, FormFieldEmail as ue, FormFieldFile as ge, FormFieldTextArea as Ae, FormFieldCheckbox as Me, FormFieldCheckboxIndicator as Ie, FormFieldSelect as Be, FormFieldSelectTrigger as Te, FormFieldSelectValue as Se, FormFieldSelectIcon as xe, FormFieldSelectContent as ke, FormFieldSelectViewport as He, FormFieldSelectItem as fe, FormFieldSelectItemText as ve, FormFieldSelectItemIndicator as we, FormFieldCombobox as ye, FormFieldComboboxControl as Le, FormFieldComboboxSelectedTags as De, FormFieldComboboxInput as Pe, FormFieldComboboxTrigger as We, FormFieldComboboxPositioner as _e, FormFieldComboboxContent as Ve, FormFieldComboboxList as Qe, FormFieldComboboxListItems as Oe, FormFieldComboboxListEmpty as Ne, FormFieldComboboxItem as $e, FormFieldComboboxItemText as Re, FormFieldComboboxItemIndicator as je, FormFieldDescription as Ge, FormFieldError as ze, FormError as Je, FormFooter as Ke, FormCancel as Ue, FormSubmit as Xe, FormSuccess as Ye, FormSuccessHeading as Ze, FormSuccessMessage as qe, FormSuccessButton as et, Messages as tt, MessageWrapper as I, MessageContentWrapper as w, MessageContent as y, DynamicComponent as at, MessageLoading as dt, InputFieldset as rt, InputGroup as ot, Input as nt, SendButton as st, SendButtonIcon as mt, AttachmentsBar as ct, AttachmentsBarList as it, AttachmentsBarAttachment as ht, AttachmentsBarAttachmentIcon as lt, AttachmentsBarAttachmentTitle as bt, AttachmentsBarAttachmentDelete as Ct, AttachmentsBarActions as Ft, AttachmentsBarInfoTip as Et, AttachmentsBarInfoTipIcon as pt, AttachmentsBarInfoTipText as ut, AttachmentsBarInputs as gt, AttachmentsBarInput as At, AttachmentsBarModal as Mt, AttachmentsBarModalOverlay as It, AttachmentsBarModalContent as Bt, AttachmentsBarModalHeader as Tt, AttachmentsBarModalHeading as St, AttachmentsBarModalDescription as xt, AttachmentsBarModalHelp as kt, AttachmentsBarModalClose as Ht, AttachmentsBarModalBody as ft, AttachmentsBarForm as vt, AttachmentsBarFormTitle as wt, AttachmentsBarFormTitleLabel as yt, AttachmentsBarFormTitleInput as Lt, AttachmentsBarFormTitleError as Dt, AttachmentsBarFormContent as Pt, AttachmentsBarFormContentLabel as Wt, AttachmentsBarFormContentInput as _t, AttachmentsBarFormContentError as Vt, AttachmentsBarFormSubmitButton as Qt, ActionBar as Ot, TaglineContainer as Nt, TaglineText as $t, TaglineLogo as Rt, TaglineBrandName as jt, Actions as Gt, HelpActions as zt, HelpAction as Jt, HelpActionsTrigger as Kt, HelpActionsMenu as Ut, HelpActionsMenuArrow as Xt, HelpActionsMenuItem as Yt, HelpActionsMenuItemIcon as Zt, ChatAction as p, ChatActionLabel as qt, ChatActionFeedback as ea, IntroMessageWrapper as ta, MessageHeader as L, MessageAvatar as D, MessageAvatarContent as P, MessageAvatarImage as W, MessageName as _, DisclaimerLabel as aa, ExampleQuestions as da, ExampleQuestionsLabel as ra, ExampleQuestionsList as oa, ExampleQuestion as na, ExampleQuestionButton as sa, Markdown as ma, MessageSources as ca, MessageSourcesHeader as ia, MessageSourcesList as ha, MessageSourceItem as la, MessageSourceItemBreadcrumbs as ba, MessageSourceItemBreadcrumbIcon as Ca, MessageSourceItemIcon as Fa, MessageSourceItemTitle as Ea, MessageSourceItemTag as pa, MessageSourceItemDescription as ua, MessageSourceItemDescriptionPart as ga, MessageSourceItemIndicator as Aa, MessageAttachments as Ma, MessageAttachmentsList as Ia, MessageAttachmentsItem as Ba, MessageAttachmentsItemIcon as Ta, MessageAttachmentsItemTitle as Sa, MessageAttachmentsPreview as xa, MessageAttachmentsPreviewOverlay as ka, MessageAttachmentsPreviewContent as Ha, MessageAttachmentsPreviewHeader as fa, MessageAttachmentsPreviewClose as va, MessageAttachmentsPreviewBody as wa, MessageToolbar as ya, MessageCustomActions as La, MessageCustomAction as Da, MessageAction as u } from "../styled/components/embedded-chat.js";
|
|
5
5
|
import { Close as B } from "../styled/components/modal.js";
|
|
6
|
-
import { Shadow as
|
|
6
|
+
import { Shadow as Pa } from "../styled/components/shadow.js";
|
|
7
7
|
import { EmbeddedChatMessagePart as V } from "../styled/components/message.js";
|
|
8
|
-
import { WebWidgetInteractionType as
|
|
9
|
-
import { RootProvider as
|
|
10
|
-
import { useWidget as
|
|
11
|
-
import { useModal as
|
|
8
|
+
import { WebWidgetInteractionType as Wa, useInkeepConfig as _a } from "../primitives/providers/config-provider.js";
|
|
9
|
+
import { RootProvider as Va } from "../primitives/providers/root-provider.js";
|
|
10
|
+
import { useWidget as Qa } from "../primitives/providers/widget-provider.js";
|
|
11
|
+
import { useModal as Oa } from "../primitives/components/modal/modal-provider.js";
|
|
12
12
|
import { dataAttr as Q } from "../primitives/utils/misc.js";
|
|
13
|
-
import { PortalWithTheme as
|
|
14
|
-
import { ErrorBoundary as
|
|
15
|
-
import { ModalContent as
|
|
16
|
-
import { WidgetToggle as
|
|
17
|
-
function
|
|
13
|
+
import { PortalWithTheme as g } from "../primitives/atoms/portal-with-theme.js";
|
|
14
|
+
import { ErrorBoundary as Na } from "../primitives/atoms/error-boundary.js";
|
|
15
|
+
import { ModalContent as $a } from "./modal.js";
|
|
16
|
+
import { WidgetToggle as Ra } from "./widget-toggle.js";
|
|
17
|
+
function Ad(d) {
|
|
18
18
|
const { baseSettings: a, aiChatSettings: r } = d;
|
|
19
|
-
return /* @__PURE__ */ e(
|
|
20
|
-
|
|
19
|
+
return /* @__PURE__ */ e(Na, { children: /* @__PURE__ */ e(
|
|
20
|
+
Pa,
|
|
21
21
|
{
|
|
22
22
|
wrapperStyles: {
|
|
23
23
|
height: "inherit",
|
|
24
24
|
width: "inherit"
|
|
25
25
|
},
|
|
26
26
|
children: /* @__PURE__ */ e(
|
|
27
|
-
|
|
27
|
+
Va,
|
|
28
28
|
{
|
|
29
29
|
config: {
|
|
30
30
|
baseSettings: a,
|
|
31
31
|
aiChatSettings: r
|
|
32
32
|
},
|
|
33
|
-
componentType:
|
|
34
|
-
children: /* @__PURE__ */ e(
|
|
33
|
+
componentType: Wa.EmbeddedChat,
|
|
34
|
+
children: /* @__PURE__ */ e(Ga, { ...d })
|
|
35
35
|
}
|
|
36
36
|
)
|
|
37
37
|
}
|
|
38
38
|
) });
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const { children: a, onToggleView: r, isHidden:
|
|
42
|
-
return /* @__PURE__ */ e(O, { isHidden:
|
|
40
|
+
function ja(d) {
|
|
41
|
+
const { children: a, onToggleView: r, isHidden: o, shouldAutoFocusInput: n = !r } = d;
|
|
42
|
+
return /* @__PURE__ */ e(O, { isHidden: o, shouldAutoFocusInput: n, children: a });
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return /* @__PURE__ */ e(
|
|
44
|
+
function Ga(d) {
|
|
45
|
+
return /* @__PURE__ */ e(ja, { ...d, children: /* @__PURE__ */ e(za, { ...d }) });
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
const { onToggleView: a, variant: r, header:
|
|
49
|
-
return /* @__PURE__ */ e(
|
|
47
|
+
function za(d) {
|
|
48
|
+
const { onToggleView: a, variant: r, header: o = Ja } = d, n = Oa(), m = Qa();
|
|
49
|
+
return /* @__PURE__ */ e(n && !m ? $a : S, { children: /* @__PURE__ */ t(
|
|
50
50
|
N,
|
|
51
51
|
{
|
|
52
52
|
variant: r ?? (a ? "no-shadow" : "container-with-shadow"),
|
|
53
|
-
"data-composite": Q(!!d.onToggleView ||
|
|
53
|
+
"data-composite": Q(!!d.onToggleView || n?.isOpen),
|
|
54
54
|
children: [
|
|
55
55
|
/* @__PURE__ */ t($, { children: [
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */ e(
|
|
58
|
-
/* @__PURE__ */ e(
|
|
56
|
+
o && /* @__PURE__ */ e(o, { ...d }),
|
|
57
|
+
/* @__PURE__ */ e(Ka, {}),
|
|
58
|
+
/* @__PURE__ */ e(ed, {})
|
|
59
59
|
] }),
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
-
/* @__PURE__ */ e(
|
|
60
|
+
/* @__PURE__ */ e(dd, {}),
|
|
61
|
+
/* @__PURE__ */ e(rd, {})
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
64
|
) });
|
|
65
65
|
}
|
|
66
|
-
const
|
|
67
|
-
const { onToggleView: a, askAILabel: r, searchLabel:
|
|
68
|
-
return /* @__PURE__ */ e(R, { "data-show-toolbar": Q(
|
|
66
|
+
const Ja = (d) => {
|
|
67
|
+
const { onToggleView: a, askAILabel: r, searchLabel: o } = d, n = !!a;
|
|
68
|
+
return /* @__PURE__ */ e(R, { "data-show-toolbar": Q(n), children: n ? /* @__PURE__ */ t(j, { children: [
|
|
69
69
|
/* @__PURE__ */ t(G, { children: [
|
|
70
70
|
/* @__PURE__ */ e(z, {}),
|
|
71
|
-
/* @__PURE__ */ t(
|
|
72
|
-
/* @__PURE__ */ e(
|
|
71
|
+
/* @__PURE__ */ t(x, { children: [
|
|
72
|
+
/* @__PURE__ */ e(k, {}),
|
|
73
73
|
/* @__PURE__ */ t(H, { side: "bottom", align: "start", children: [
|
|
74
|
-
/* @__PURE__ */ e(
|
|
74
|
+
/* @__PURE__ */ e(f, {}),
|
|
75
75
|
/* @__PURE__ */ e(v, {})
|
|
76
76
|
] })
|
|
77
77
|
] })
|
|
78
78
|
] }),
|
|
79
79
|
/* @__PURE__ */ e(
|
|
80
|
-
|
|
80
|
+
Ra,
|
|
81
81
|
{
|
|
82
82
|
onToggleView: a,
|
|
83
83
|
askAILabel: r,
|
|
84
|
-
searchLabel:
|
|
84
|
+
searchLabel: o,
|
|
85
85
|
view: "chat"
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
88
|
/* @__PURE__ */ e(B, {})
|
|
89
89
|
] }) : /* @__PURE__ */ e(B, {}) });
|
|
90
90
|
};
|
|
91
|
-
function
|
|
91
|
+
function Ka() {
|
|
92
92
|
return /* @__PURE__ */ e(J, { children: /* @__PURE__ */ t(K, { children: [
|
|
93
|
-
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(
|
|
93
|
+
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(Ua, {}) }),
|
|
94
94
|
/* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(Y, {}) }),
|
|
95
95
|
/* @__PURE__ */ e(Z, {})
|
|
96
96
|
] }) });
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ua() {
|
|
99
99
|
const {
|
|
100
100
|
aiChatSettings: { components: d }
|
|
101
|
-
} =
|
|
102
|
-
return /* @__PURE__ */ e(
|
|
103
|
-
const
|
|
104
|
-
const c = d?.[
|
|
101
|
+
} = _a();
|
|
102
|
+
return /* @__PURE__ */ e(tt, { children: ({ messages: a, isLoading: r }) => {
|
|
103
|
+
const o = a.at(-1), n = (s, A) => {
|
|
104
|
+
const c = d?.[s];
|
|
105
105
|
if (!c)
|
|
106
|
-
return console.warn(`Component "${
|
|
106
|
+
return console.warn(`Component "${s}" not found in components config`), null;
|
|
107
107
|
try {
|
|
108
108
|
if (typeof c == "function" && c.length <= 1)
|
|
109
|
-
return M.createElement(c,
|
|
110
|
-
const i = c(
|
|
109
|
+
return M.createElement(c, A);
|
|
110
|
+
const i = c(A, document.createElement("div"), null);
|
|
111
111
|
return M.isValidElement(i) || typeof i == "string" ? i : null;
|
|
112
112
|
} catch (i) {
|
|
113
|
-
return console.error(`🔍 [renderComponent] Error rendering component "${
|
|
113
|
+
return console.error(`🔍 [renderComponent] Error rendering component "${s}":`, i), null;
|
|
114
114
|
}
|
|
115
|
-
}, m = (
|
|
116
|
-
return /* @__PURE__ */ t(
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
-
a.map((
|
|
119
|
-
/* @__PURE__ */ e(
|
|
120
|
-
/* @__PURE__ */ t(
|
|
115
|
+
}, m = (s) => /* @__PURE__ */ e(ma, { text: s });
|
|
116
|
+
return /* @__PURE__ */ t(F, { children: [
|
|
117
|
+
/* @__PURE__ */ e(Xa, {}),
|
|
118
|
+
a.map((s) => /* @__PURE__ */ t(I, { message: s, children: [
|
|
119
|
+
/* @__PURE__ */ e(T, {}),
|
|
120
|
+
/* @__PURE__ */ t(w, { children: [
|
|
121
121
|
/* @__PURE__ */ e(y, { children: d?.IkpMessage ? /* @__PURE__ */ e(
|
|
122
|
-
|
|
122
|
+
at,
|
|
123
123
|
{
|
|
124
124
|
name: "IkpMessage",
|
|
125
|
-
props: { message:
|
|
125
|
+
props: { message: s, renderComponent: n, renderMarkdown: m },
|
|
126
126
|
componentDef: d.IkpMessage
|
|
127
127
|
}
|
|
128
|
-
) : /* @__PURE__ */ t(
|
|
129
|
-
/* @__PURE__ */ e(V, { isLast:
|
|
130
|
-
/* @__PURE__ */ e(
|
|
128
|
+
) : /* @__PURE__ */ t(F, { children: [
|
|
129
|
+
/* @__PURE__ */ e(V, { isLast: o?.id === s.id }),
|
|
130
|
+
/* @__PURE__ */ e(qa, {})
|
|
131
131
|
] }) }),
|
|
132
|
-
/* @__PURE__ */ e(
|
|
133
|
-
/* @__PURE__ */ e(
|
|
132
|
+
/* @__PURE__ */ e(Ya, {}),
|
|
133
|
+
/* @__PURE__ */ e(Za, {})
|
|
134
134
|
] })
|
|
135
|
-
] },
|
|
136
|
-
r &&
|
|
135
|
+
] }, s.id)),
|
|
136
|
+
r && o?.parts.length && /* @__PURE__ */ t(
|
|
137
137
|
I,
|
|
138
138
|
{
|
|
139
139
|
message: {
|
|
@@ -142,36 +142,36 @@ function Pa() {
|
|
|
142
142
|
parts: [{ type: "text", text: "Thinking..." }]
|
|
143
143
|
},
|
|
144
144
|
children: [
|
|
145
|
-
/* @__PURE__ */ e(
|
|
146
|
-
/* @__PURE__ */ e(
|
|
145
|
+
/* @__PURE__ */ e(T, {}),
|
|
146
|
+
/* @__PURE__ */ e(dt, {})
|
|
147
147
|
]
|
|
148
148
|
}
|
|
149
149
|
)
|
|
150
150
|
] });
|
|
151
151
|
} });
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return /* @__PURE__ */ t(
|
|
153
|
+
function Xa() {
|
|
154
|
+
return /* @__PURE__ */ t(ta, { children: [
|
|
155
155
|
/* @__PURE__ */ t(L, { children: [
|
|
156
156
|
/* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(W, {}) }) }),
|
|
157
157
|
/* @__PURE__ */ e(_, {})
|
|
158
158
|
] }),
|
|
159
|
-
/* @__PURE__ */ t(
|
|
159
|
+
/* @__PURE__ */ t(w, { children: [
|
|
160
160
|
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(V, { isLast: !1 }) }),
|
|
161
|
-
/* @__PURE__ */ t(
|
|
162
|
-
/* @__PURE__ */ e(
|
|
163
|
-
/* @__PURE__ */ e(
|
|
161
|
+
/* @__PURE__ */ t(x, { children: [
|
|
162
|
+
/* @__PURE__ */ e(aa, {}),
|
|
163
|
+
/* @__PURE__ */ e(k, {}),
|
|
164
164
|
/* @__PURE__ */ t(H, { children: [
|
|
165
|
-
/* @__PURE__ */ e(
|
|
165
|
+
/* @__PURE__ */ e(f, {}),
|
|
166
166
|
/* @__PURE__ */ e(v, {})
|
|
167
167
|
] })
|
|
168
168
|
] }),
|
|
169
|
-
/* @__PURE__ */ t(
|
|
170
|
-
/* @__PURE__ */ e(
|
|
171
|
-
/* @__PURE__ */ e(
|
|
172
|
-
|
|
169
|
+
/* @__PURE__ */ t(da, { children: [
|
|
170
|
+
/* @__PURE__ */ e(ra, {}),
|
|
171
|
+
/* @__PURE__ */ e(oa, { children: (d) => d.map((a) => /* @__PURE__ */ e(
|
|
172
|
+
na,
|
|
173
173
|
{
|
|
174
|
-
children: /* @__PURE__ */ e(
|
|
174
|
+
children: /* @__PURE__ */ e(sa, { question: a })
|
|
175
175
|
},
|
|
176
176
|
typeof a == "object" ? a.label : a
|
|
177
177
|
)) })
|
|
@@ -179,161 +179,161 @@ function Wa() {
|
|
|
179
179
|
] })
|
|
180
180
|
] });
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function T() {
|
|
183
183
|
return /* @__PURE__ */ t(L, { children: [
|
|
184
184
|
/* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(W, {}) }) }),
|
|
185
185
|
/* @__PURE__ */ e(_, {})
|
|
186
186
|
] });
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
return /* @__PURE__ */ t(
|
|
190
|
-
/* @__PURE__ */ e(
|
|
191
|
-
/* @__PURE__ */ e(
|
|
192
|
-
/* @__PURE__ */ e(
|
|
188
|
+
function Ya() {
|
|
189
|
+
return /* @__PURE__ */ t(Ma, { children: [
|
|
190
|
+
/* @__PURE__ */ e(Ia, { children: (d) => d.map((a) => /* @__PURE__ */ t(Ba, { attachment: a, children: [
|
|
191
|
+
/* @__PURE__ */ e(Ta, {}),
|
|
192
|
+
/* @__PURE__ */ e(Sa, {})
|
|
193
193
|
] }, a.id)) }),
|
|
194
|
-
/* @__PURE__ */ e(
|
|
195
|
-
/* @__PURE__ */ e(
|
|
196
|
-
/* @__PURE__ */ e(
|
|
197
|
-
/* @__PURE__ */ e(
|
|
194
|
+
/* @__PURE__ */ e(xa, { children: /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(ka, { children: /* @__PURE__ */ t(Ha, { children: [
|
|
195
|
+
/* @__PURE__ */ e(fa, {}),
|
|
196
|
+
/* @__PURE__ */ e(va, {}),
|
|
197
|
+
/* @__PURE__ */ e(wa, {})
|
|
198
198
|
] }) }) }) })
|
|
199
199
|
] });
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return /* @__PURE__ */ t(
|
|
203
|
-
/* @__PURE__ */ e(
|
|
201
|
+
function Za() {
|
|
202
|
+
return /* @__PURE__ */ t(ya, { children: [
|
|
203
|
+
/* @__PURE__ */ e(La, { children: (d) => d.map((a, r) => /* @__PURE__ */ e(Da, { action: a }, `action-${r}`)) }),
|
|
204
204
|
/* @__PURE__ */ e(u, { action: "copy" }),
|
|
205
205
|
/* @__PURE__ */ e(u, { action: "upvote" }),
|
|
206
206
|
/* @__PURE__ */ e(u, { action: "downvote" })
|
|
207
207
|
] });
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
return /* @__PURE__ */ t(
|
|
211
|
-
/* @__PURE__ */ e(
|
|
212
|
-
/* @__PURE__ */ e(
|
|
213
|
-
/* @__PURE__ */ e(
|
|
214
|
-
|
|
215
|
-
/* @__PURE__ */ e(
|
|
216
|
-
] },
|
|
217
|
-
/* @__PURE__ */ e(
|
|
218
|
-
/* @__PURE__ */ e(
|
|
219
|
-
/* @__PURE__ */ e(
|
|
220
|
-
/* @__PURE__ */ e(
|
|
221
|
-
|
|
209
|
+
function qa() {
|
|
210
|
+
return /* @__PURE__ */ t(ca, { children: [
|
|
211
|
+
/* @__PURE__ */ e(ia, {}),
|
|
212
|
+
/* @__PURE__ */ e(ha, { children: (d) => d.map((a, r) => /* @__PURE__ */ t(la, { href: a.url, source: a, children: [
|
|
213
|
+
/* @__PURE__ */ e(ba, { children: a.breadcrumbs?.map((o) => /* @__PURE__ */ t(S, { children: [
|
|
214
|
+
o,
|
|
215
|
+
/* @__PURE__ */ e(Ca, {})
|
|
216
|
+
] }, o)) }),
|
|
217
|
+
/* @__PURE__ */ e(Fa, {}),
|
|
218
|
+
/* @__PURE__ */ e(Ea, {}),
|
|
219
|
+
/* @__PURE__ */ e(pa, {}),
|
|
220
|
+
/* @__PURE__ */ e(ua, { children: (o) => o.map((n, m) => /* @__PURE__ */ e(
|
|
221
|
+
ga,
|
|
222
222
|
{
|
|
223
|
-
part:
|
|
223
|
+
part: n
|
|
224
224
|
},
|
|
225
225
|
`part-${m}`
|
|
226
226
|
)) }),
|
|
227
|
-
/* @__PURE__ */ e(
|
|
227
|
+
/* @__PURE__ */ e(Aa, {})
|
|
228
228
|
] }, r)) })
|
|
229
229
|
] });
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function ed() {
|
|
232
232
|
return /* @__PURE__ */ t(q, { children: [
|
|
233
|
-
/* @__PURE__ */ e(
|
|
234
|
-
/* @__PURE__ */ e(
|
|
233
|
+
/* @__PURE__ */ e(td, {}),
|
|
234
|
+
/* @__PURE__ */ e(ad, {})
|
|
235
235
|
] });
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
return /* @__PURE__ */ t(
|
|
239
|
-
/* @__PURE__ */ t(
|
|
240
|
-
/* @__PURE__ */ e(
|
|
241
|
-
/* @__PURE__ */ e(
|
|
237
|
+
function td() {
|
|
238
|
+
return /* @__PURE__ */ t(rt, { children: [
|
|
239
|
+
/* @__PURE__ */ t(ot, { children: [
|
|
240
|
+
/* @__PURE__ */ e(nt, {}),
|
|
241
|
+
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(mt, {}) })
|
|
242
242
|
] }),
|
|
243
|
-
/* @__PURE__ */ t(
|
|
244
|
-
/* @__PURE__ */ e(
|
|
245
|
-
/* @__PURE__ */ e(
|
|
246
|
-
/* @__PURE__ */ e(
|
|
247
|
-
/* @__PURE__ */ e(
|
|
243
|
+
/* @__PURE__ */ t(ct, { children: [
|
|
244
|
+
/* @__PURE__ */ e(it, { children: (d) => d.map((a) => /* @__PURE__ */ t(ht, { attachment: a, children: [
|
|
245
|
+
/* @__PURE__ */ e(lt, {}),
|
|
246
|
+
/* @__PURE__ */ e(bt, {}),
|
|
247
|
+
/* @__PURE__ */ e(Ct, {})
|
|
248
248
|
] }, a.id)) }),
|
|
249
|
-
/* @__PURE__ */ t(
|
|
250
|
-
/* @__PURE__ */ t(
|
|
251
|
-
/* @__PURE__ */ e(
|
|
252
|
-
/* @__PURE__ */ e(
|
|
249
|
+
/* @__PURE__ */ t(Ft, { children: [
|
|
250
|
+
/* @__PURE__ */ t(Et, { children: [
|
|
251
|
+
/* @__PURE__ */ e(pt, {}),
|
|
252
|
+
/* @__PURE__ */ e(ut, {})
|
|
253
253
|
] }),
|
|
254
|
-
/* @__PURE__ */ e(
|
|
254
|
+
/* @__PURE__ */ e(gt, { children: (d) => d.map((a) => /* @__PURE__ */ e(At, { input: a, children: a.displayName }, a.id)) })
|
|
255
255
|
] }),
|
|
256
|
-
/* @__PURE__ */ e(
|
|
257
|
-
/* @__PURE__ */ t(
|
|
258
|
-
/* @__PURE__ */ e(
|
|
259
|
-
/* @__PURE__ */ e(
|
|
260
|
-
/* @__PURE__ */ e(
|
|
256
|
+
/* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(Mt, { children: /* @__PURE__ */ e(It, { children: /* @__PURE__ */ t(Bt, { children: [
|
|
257
|
+
/* @__PURE__ */ t(Tt, { children: [
|
|
258
|
+
/* @__PURE__ */ e(St, {}),
|
|
259
|
+
/* @__PURE__ */ e(xt, {}),
|
|
260
|
+
/* @__PURE__ */ e(kt, {})
|
|
261
261
|
] }),
|
|
262
|
-
/* @__PURE__ */ e(
|
|
263
|
-
/* @__PURE__ */ e(
|
|
264
|
-
/* @__PURE__ */ t(
|
|
265
|
-
/* @__PURE__ */ e(
|
|
266
|
-
/* @__PURE__ */ e(
|
|
267
|
-
/* @__PURE__ */ e(
|
|
262
|
+
/* @__PURE__ */ e(Ht, {}),
|
|
263
|
+
/* @__PURE__ */ e(ft, { children: /* @__PURE__ */ t(vt, { children: [
|
|
264
|
+
/* @__PURE__ */ t(wt, { children: [
|
|
265
|
+
/* @__PURE__ */ e(yt, {}),
|
|
266
|
+
/* @__PURE__ */ e(Lt, {}),
|
|
267
|
+
/* @__PURE__ */ e(Dt, {})
|
|
268
268
|
] }),
|
|
269
|
-
/* @__PURE__ */ t(
|
|
270
|
-
/* @__PURE__ */ e(
|
|
271
|
-
/* @__PURE__ */ e(
|
|
272
|
-
/* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ t(Pt, { children: [
|
|
270
|
+
/* @__PURE__ */ e(Wt, {}),
|
|
271
|
+
/* @__PURE__ */ e(_t, {}),
|
|
272
|
+
/* @__PURE__ */ e(Vt, {})
|
|
273
273
|
] }),
|
|
274
|
-
/* @__PURE__ */ e(
|
|
274
|
+
/* @__PURE__ */ e(Qt, {})
|
|
275
275
|
] }) })
|
|
276
276
|
] }) }) }) })
|
|
277
277
|
] })
|
|
278
278
|
] });
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return /* @__PURE__ */ t(
|
|
282
|
-
/* @__PURE__ */ t(
|
|
283
|
-
/* @__PURE__ */ e(
|
|
284
|
-
/* @__PURE__ */ e(
|
|
285
|
-
/* @__PURE__ */ e(
|
|
280
|
+
function ad() {
|
|
281
|
+
return /* @__PURE__ */ t(Ot, { children: [
|
|
282
|
+
/* @__PURE__ */ t(Nt, { children: [
|
|
283
|
+
/* @__PURE__ */ e($t, {}),
|
|
284
|
+
/* @__PURE__ */ e(Rt, {}),
|
|
285
|
+
/* @__PURE__ */ e(jt, {})
|
|
286
286
|
] }),
|
|
287
|
-
/* @__PURE__ */ t(
|
|
288
|
-
/* @__PURE__ */ e(
|
|
289
|
-
d.map((r) => /* @__PURE__ */ e(
|
|
290
|
-
a.length > 0 && /* @__PURE__ */ e(
|
|
291
|
-
/* @__PURE__ */ t(
|
|
292
|
-
/* @__PURE__ */ e(
|
|
293
|
-
a.map((r) => /* @__PURE__ */ t(
|
|
294
|
-
/* @__PURE__ */ e(
|
|
287
|
+
/* @__PURE__ */ t(Gt, { children: [
|
|
288
|
+
/* @__PURE__ */ e(zt, { children: ({ pinned: d, unpinned: a }) => /* @__PURE__ */ t(F, { children: [
|
|
289
|
+
d.map((r) => /* @__PURE__ */ e(Jt, { action: r }, r.name)),
|
|
290
|
+
a.length > 0 && /* @__PURE__ */ e(Kt, {}),
|
|
291
|
+
/* @__PURE__ */ t(Ut, { children: [
|
|
292
|
+
/* @__PURE__ */ e(Xt, {}),
|
|
293
|
+
a.map((r) => /* @__PURE__ */ t(Yt, { action: r, children: [
|
|
294
|
+
/* @__PURE__ */ e(Zt, { action: r }),
|
|
295
295
|
r.name
|
|
296
296
|
] }, r.name))
|
|
297
297
|
] })
|
|
298
298
|
] }) }),
|
|
299
299
|
/* @__PURE__ */ t(p, { action: "copy", children: [
|
|
300
|
-
/* @__PURE__ */ e(
|
|
301
|
-
/* @__PURE__ */ e(
|
|
300
|
+
/* @__PURE__ */ e(qt, { action: "copy" }),
|
|
301
|
+
/* @__PURE__ */ e(ea, { action: "copy" })
|
|
302
302
|
] }),
|
|
303
303
|
/* @__PURE__ */ e(p, { action: "clear" }),
|
|
304
304
|
/* @__PURE__ */ e(p, { action: "stop" })
|
|
305
305
|
] })
|
|
306
306
|
] });
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
return /* @__PURE__ */ e(
|
|
308
|
+
function dd() {
|
|
309
|
+
return /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(te, { children: /* @__PURE__ */ t(ae, { children: [
|
|
310
310
|
/* @__PURE__ */ e(de, {}),
|
|
311
311
|
/* @__PURE__ */ e(re, {}),
|
|
312
|
-
/* @__PURE__ */ e(
|
|
312
|
+
/* @__PURE__ */ e(oe, { children: /* @__PURE__ */ t(ne, { children: [
|
|
313
313
|
/* @__PURE__ */ t(h, { name: "unrelated_response", children: [
|
|
314
314
|
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(b, {}) }),
|
|
315
315
|
/* @__PURE__ */ e(C, {}),
|
|
316
|
-
/* @__PURE__ */ e(
|
|
316
|
+
/* @__PURE__ */ e(E, {})
|
|
317
317
|
] }),
|
|
318
318
|
/* @__PURE__ */ t(h, { name: "inaccurate_statement", children: [
|
|
319
319
|
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(b, {}) }),
|
|
320
320
|
/* @__PURE__ */ e(C, {}),
|
|
321
|
-
/* @__PURE__ */ e(
|
|
321
|
+
/* @__PURE__ */ e(E, {})
|
|
322
322
|
] }),
|
|
323
323
|
/* @__PURE__ */ t(h, { name: "inaccurate_code_snippet", children: [
|
|
324
324
|
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(b, {}) }),
|
|
325
325
|
/* @__PURE__ */ e(C, {}),
|
|
326
|
-
/* @__PURE__ */ e(
|
|
326
|
+
/* @__PURE__ */ e(E, {})
|
|
327
327
|
] }),
|
|
328
328
|
/* @__PURE__ */ t(h, { name: "irrelevant_citations", children: [
|
|
329
329
|
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(b, {}) }),
|
|
330
330
|
/* @__PURE__ */ e(C, {})
|
|
331
331
|
] }),
|
|
332
|
-
/* @__PURE__ */ e(
|
|
332
|
+
/* @__PURE__ */ e(se, {})
|
|
333
333
|
] }) })
|
|
334
334
|
] }) }) }) });
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function rd() {
|
|
337
337
|
return /* @__PURE__ */ t(me, { children: [
|
|
338
338
|
/* @__PURE__ */ e(ce, {}),
|
|
339
339
|
/* @__PURE__ */ t(ie, { children: [
|
|
@@ -341,43 +341,62 @@ function ja() {
|
|
|
341
341
|
/* @__PURE__ */ e(le, {}),
|
|
342
342
|
/* @__PURE__ */ e(be, {})
|
|
343
343
|
] }),
|
|
344
|
-
/* @__PURE__ */ e(Ce, { children: (d) => /* @__PURE__ */ t(
|
|
345
|
-
d.map((a, r) => /* @__PURE__ */ t(
|
|
346
|
-
/* @__PURE__ */ e(
|
|
344
|
+
/* @__PURE__ */ e(Ce, { children: (d) => /* @__PURE__ */ t(F, { children: [
|
|
345
|
+
d.map((a, r) => /* @__PURE__ */ t(Fe, { field: a, autoFocus: r === 0, children: [
|
|
346
|
+
/* @__PURE__ */ e(Ee, {}),
|
|
347
347
|
a.inputType === "text" && /* @__PURE__ */ e(pe, {}),
|
|
348
348
|
a.inputType === "email" && /* @__PURE__ */ e(ue, {}),
|
|
349
|
-
a.inputType === "file" && /* @__PURE__ */ e(
|
|
350
|
-
a.inputType === "textarea" && /* @__PURE__ */ e(
|
|
349
|
+
a.inputType === "file" && /* @__PURE__ */ e(ge, {}),
|
|
350
|
+
a.inputType === "textarea" && /* @__PURE__ */ e(Ae, {}),
|
|
351
351
|
a.inputType === "checkbox" && /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(Ie, {}) }),
|
|
352
352
|
a.inputType === "select" && /* @__PURE__ */ t(Be, { children: [
|
|
353
|
-
/* @__PURE__ */ t(
|
|
354
|
-
/* @__PURE__ */ e(
|
|
355
|
-
/* @__PURE__ */ e(ke, {})
|
|
356
|
-
] }),
|
|
357
|
-
/* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e(He, { children: a.items.map((n) => /* @__PURE__ */ t(we, { value: n.value, children: [
|
|
358
|
-
/* @__PURE__ */ e(ve, { children: n.label }),
|
|
353
|
+
/* @__PURE__ */ t(Te, { children: [
|
|
354
|
+
/* @__PURE__ */ e(Se, {}),
|
|
359
355
|
/* @__PURE__ */ e(xe, {})
|
|
360
|
-
] },
|
|
356
|
+
] }),
|
|
357
|
+
/* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(He, { children: a.items.map((o) => /* @__PURE__ */ t(fe, { value: o.value, children: [
|
|
358
|
+
/* @__PURE__ */ e(ve, { children: o.label }),
|
|
359
|
+
/* @__PURE__ */ e(we, {})
|
|
360
|
+
] }, o.value)) }) })
|
|
361
|
+
] }),
|
|
362
|
+
a.inputType === "combobox" && /* @__PURE__ */ t(ye, { children: [
|
|
363
|
+
/* @__PURE__ */ t(Le, { children: [
|
|
364
|
+
"multiple" in a && a.multiple && /* @__PURE__ */ e(De, {}),
|
|
365
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
366
|
+
/* @__PURE__ */ e(We, {})
|
|
367
|
+
] }),
|
|
368
|
+
/* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e(Oe, { children: (o) => o.length === 0 ? /* @__PURE__ */ e(Ne, {}) : o.map((n) => /* @__PURE__ */ t(
|
|
369
|
+
$e,
|
|
370
|
+
{
|
|
371
|
+
item: n,
|
|
372
|
+
children: [
|
|
373
|
+
/* @__PURE__ */ e(Re, { children: n.label }),
|
|
374
|
+
/* @__PURE__ */ e(je, {})
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
n.value
|
|
378
|
+
)) }) }) }) })
|
|
361
379
|
] }),
|
|
362
|
-
/* @__PURE__ */ e(
|
|
380
|
+
/* @__PURE__ */ e(Ge, {}),
|
|
381
|
+
/* @__PURE__ */ e(ze, {})
|
|
363
382
|
] }, a.name)),
|
|
364
|
-
/* @__PURE__ */ e(
|
|
383
|
+
/* @__PURE__ */ e(Je, {})
|
|
365
384
|
] }) }),
|
|
366
|
-
/* @__PURE__ */ t(
|
|
367
|
-
/* @__PURE__ */ e(
|
|
368
|
-
/* @__PURE__ */ e(
|
|
385
|
+
/* @__PURE__ */ t(Ke, { children: [
|
|
386
|
+
/* @__PURE__ */ e(Ue, {}),
|
|
387
|
+
/* @__PURE__ */ e(Xe, {})
|
|
369
388
|
] })
|
|
370
389
|
] }),
|
|
371
|
-
/* @__PURE__ */ t(
|
|
372
|
-
/* @__PURE__ */ e(
|
|
373
|
-
/* @__PURE__ */ e(
|
|
374
|
-
/* @__PURE__ */ e(
|
|
390
|
+
/* @__PURE__ */ t(Ye, { children: [
|
|
391
|
+
/* @__PURE__ */ e(Ze, {}),
|
|
392
|
+
/* @__PURE__ */ e(qe, {}),
|
|
393
|
+
/* @__PURE__ */ e(et, {})
|
|
375
394
|
] })
|
|
376
395
|
] });
|
|
377
396
|
}
|
|
378
397
|
export {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
398
|
+
Ad as InkeepEmbeddedChat,
|
|
399
|
+
Ga as InkeepEmbeddedChatImpl,
|
|
400
|
+
za as InkeepEmbeddedChatImplContent,
|
|
401
|
+
ja as InkeepEmbeddedChatProvider
|
|
383
402
|
};
|