@inkeep/agents-ui 0.15.12 → 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.
Files changed (46) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +171 -169
  3. package/dist/primitives/atoms/combobox.cjs +1 -0
  4. package/dist/primitives/atoms/combobox.js +275 -0
  5. package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -1
  6. package/dist/primitives/components/embedded-chat/use-stream-processor.js +74 -87
  7. package/dist/primitives/components/embedded-chat.cjs +4 -4
  8. package/dist/primitives/components/embedded-chat.d.ts +22 -1
  9. package/dist/primitives/components/embedded-chat.js +1249 -1137
  10. package/dist/primitives/hooks/use-simple-scroll.cjs +1 -1
  11. package/dist/primitives/hooks/use-simple-scroll.d.ts +12 -1
  12. package/dist/primitives/hooks/use-simple-scroll.js +45 -12
  13. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  14. package/dist/primitives/providers/base-events-provider.js +1 -1
  15. package/dist/primitives/utils/component-ids.cjs +1 -1
  16. package/dist/primitives/utils/component-ids.d.ts +24 -0
  17. package/dist/primitives/utils/component-ids.js +12 -0
  18. package/dist/primitives/utils/form.cjs +1 -1
  19. package/dist/primitives/utils/form.d.ts +1 -1
  20. package/dist/primitives/utils/form.js +3 -1
  21. package/dist/react/chat-button-modal.cjs +1 -0
  22. package/dist/react/chat-button-modal.d.ts +22 -0
  23. package/dist/react/chat-button-modal.js +41 -0
  24. package/dist/react/embedded-chat.cjs +1 -1
  25. package/dist/react/embedded-chat.js +210 -191
  26. package/dist/react/index.cjs +1 -1
  27. package/dist/react/index.d.ts +1 -0
  28. package/dist/react/index.js +171 -169
  29. package/dist/styled/components/embedded-chat.cjs +1 -1
  30. package/dist/styled/components/embedded-chat.d.ts +16 -1
  31. package/dist/styled/components/embedded-chat.js +686 -568
  32. package/dist/styled/components/message.cjs +1 -1
  33. package/dist/styled/components/message.js +191 -183
  34. package/dist/styled/components/ui/recipes/combobox.cjs +1 -0
  35. package/dist/styled/components/ui/recipes/combobox.d.ts +4 -0
  36. package/dist/styled/components/ui/recipes/combobox.js +57 -0
  37. package/dist/styled/components/ui/recipes/index.cjs +1 -1
  38. package/dist/styled/components/ui/recipes/index.d.ts +1 -0
  39. package/dist/styled/components/ui/recipes/index.js +29 -27
  40. package/dist/styled/components/ui/recipes/modal.d.ts +1 -1
  41. package/dist/styled/components/ui/recipes/scrollable.d.ts +1 -1
  42. package/dist/styled/components/ui/recipes/select.d.ts +1 -1
  43. package/dist/styled/inkeep.css.cjs +182 -2
  44. package/dist/styled/inkeep.css.js +182 -2
  45. package/dist/types/config/settings/form.d.ts +9 -1
  46. package/package.json +6 -5
@@ -1,139 +1,139 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as t, Fragment as E } from "react/jsx-runtime";
3
- import M, { Fragment as T } 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 k, DisclaimerTrigger as f, DisclaimerContent as H, DisclaimerText as w, 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 ne, FeedbackForm as se, FeedbackItem as h, FeedbackItemCheckbox as l, FeedbackItemCheckboxIndicator as b, FeedbackItemLabel as C, FeedbackItemDescription as F, FeedbackSubmitButton as oe, FormWrapper as me, FormClose as ce, Form as ie, FormHeader as he, FormHeading as le, FormDescription as be, FormContent as Ce, FormField as Ee, FormFieldLabel as Fe, FormFieldText as pe, FormFieldEmail as ue, FormFieldFile as Ae, FormFieldTextArea as ge, FormFieldCheckbox as Me, FormFieldCheckboxIndicator as Ie, FormFieldSelect as Be, FormFieldSelectTrigger as Se, FormFieldSelectValue as Te, FormFieldSelectIcon as ke, FormFieldSelectContent as fe, FormFieldSelectViewport as He, FormFieldSelectItem as we, FormFieldSelectItemText as ve, FormFieldSelectItemIndicator as xe, FormFieldError as ye, FormError as Le, FormFooter as De, FormCancel as Pe, FormSubmit as We, FormSuccess as _e, FormSuccessHeading as Ve, FormSuccessMessage as Qe, FormSuccessButton as Oe, Messages as Ne, MessageWrapper as I, MessageContentWrapper as x, MessageContent as y, DynamicComponent as $e, MessageLoading as Re, InputFieldset as je, InputGroup as Ge, Input as ze, SendButton as Je, SendButtonIcon as Ke, AttachmentsBar as Ue, AttachmentsBarList as Xe, AttachmentsBarAttachment as Ye, AttachmentsBarAttachmentIcon as Ze, AttachmentsBarAttachmentTitle as qe, AttachmentsBarAttachmentDelete as et, AttachmentsBarActions as tt, AttachmentsBarInfoTip as at, AttachmentsBarInfoTipIcon as dt, AttachmentsBarInfoTipText as rt, AttachmentsBarInputs as nt, AttachmentsBarInput as st, AttachmentsBarModal as ot, AttachmentsBarModalOverlay as mt, AttachmentsBarModalContent as ct, AttachmentsBarModalHeader as it, AttachmentsBarModalHeading as ht, AttachmentsBarModalDescription as lt, AttachmentsBarModalHelp as bt, AttachmentsBarModalClose as Ct, AttachmentsBarModalBody as Et, AttachmentsBarForm as Ft, AttachmentsBarFormTitle as pt, AttachmentsBarFormTitleLabel as ut, AttachmentsBarFormTitleInput as At, AttachmentsBarFormTitleError as gt, AttachmentsBarFormContent as Mt, AttachmentsBarFormContentLabel as It, AttachmentsBarFormContentInput as Bt, AttachmentsBarFormContentError as St, AttachmentsBarFormSubmitButton as Tt, ActionBar as kt, TaglineContainer as ft, TaglineText as Ht, TaglineLogo as wt, TaglineBrandName as vt, Actions as xt, HelpActions as yt, HelpAction as Lt, HelpActionsTrigger as Dt, HelpActionsMenu as Pt, HelpActionsMenuArrow as Wt, HelpActionsMenuItem as _t, HelpActionsMenuItemIcon as Vt, ChatAction as p, ChatActionLabel as Qt, ChatActionFeedback as Ot, IntroMessageWrapper as Nt, MessageHeader as L, MessageAvatar as D, MessageAvatarContent as P, MessageAvatarImage as W, MessageName as _, DisclaimerLabel as $t, ExampleQuestions as Rt, ExampleQuestionsLabel as jt, ExampleQuestionsList as Gt, ExampleQuestion as zt, ExampleQuestionButton as Jt, Markdown as Kt, MessageSources as Ut, MessageSourcesHeader as Xt, MessageSourcesList as Yt, MessageSourceItem as Zt, MessageSourceItemBreadcrumbs as qt, MessageSourceItemBreadcrumbIcon as ea, MessageSourceItemIcon as ta, MessageSourceItemTitle as aa, MessageSourceItemTag as da, MessageSourceItemDescription as ra, MessageSourceItemDescriptionPart as na, MessageSourceItemIndicator as sa, MessageAttachments as oa, MessageAttachmentsList as ma, MessageAttachmentsItem as ca, MessageAttachmentsItemIcon as ia, MessageAttachmentsItemTitle as ha, MessageAttachmentsPreview as la, MessageAttachmentsPreviewOverlay as ba, MessageAttachmentsPreviewContent as Ca, MessageAttachmentsPreviewHeader as Ea, MessageAttachmentsPreviewClose as Fa, MessageAttachmentsPreviewBody as pa, MessageToolbar as ua, MessageCustomActions as Aa, MessageCustomAction as ga, MessageAction as u } from "../styled/components/embedded-chat.js";
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 Ma } from "../styled/components/shadow.js";
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 Ia, useInkeepConfig as Ba } from "../primitives/providers/config-provider.js";
9
- import { RootProvider as Sa } from "../primitives/providers/root-provider.js";
10
- import { useWidget as Ta } from "../primitives/providers/widget-provider.js";
11
- import { useModal as ka } from "../primitives/components/modal/modal-provider.js";
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 A } from "../primitives/atoms/portal-with-theme.js";
14
- import { ErrorBoundary as fa } from "../primitives/atoms/error-boundary.js";
15
- import { ModalContent as Ha } from "./modal.js";
16
- import { WidgetToggle as wa } from "./widget-toggle.js";
17
- function sd(d) {
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(fa, { children: /* @__PURE__ */ e(
20
- Ma,
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
- Sa,
27
+ Va,
28
28
  {
29
29
  config: {
30
30
  baseSettings: a,
31
31
  aiChatSettings: r
32
32
  },
33
- componentType: Ia.EmbeddedChat,
34
- children: /* @__PURE__ */ e(xa, { ...d })
33
+ componentType: Wa.EmbeddedChat,
34
+ children: /* @__PURE__ */ e(Ga, { ...d })
35
35
  }
36
36
  )
37
37
  }
38
38
  ) });
39
39
  }
40
- function va(d) {
41
- const { children: a, onToggleView: r, isHidden: n, shouldAutoFocusInput: s = !r } = d;
42
- return /* @__PURE__ */ e(O, { isHidden: n, shouldAutoFocusInput: s, children: a });
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 xa(d) {
45
- return /* @__PURE__ */ e(va, { ...d, children: /* @__PURE__ */ e(ya, { ...d }) });
44
+ function Ga(d) {
45
+ return /* @__PURE__ */ e(ja, { ...d, children: /* @__PURE__ */ e(za, { ...d }) });
46
46
  }
47
- function ya(d) {
48
- const { onToggleView: a, variant: r, header: n = La } = d, s = ka(), m = Ta();
49
- return /* @__PURE__ */ e(s && !m ? Ha : T, { children: /* @__PURE__ */ t(
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 || s?.isOpen),
53
+ "data-composite": Q(!!d.onToggleView || n?.isOpen),
54
54
  children: [
55
55
  /* @__PURE__ */ t($, { children: [
56
- n && /* @__PURE__ */ e(n, { ...d }),
57
- /* @__PURE__ */ e(Da, {}),
58
- /* @__PURE__ */ e(Oa, {})
56
+ o && /* @__PURE__ */ e(o, { ...d }),
57
+ /* @__PURE__ */ e(Ka, {}),
58
+ /* @__PURE__ */ e(ed, {})
59
59
  ] }),
60
- /* @__PURE__ */ e(Ra, {}),
61
- /* @__PURE__ */ e(ja, {})
60
+ /* @__PURE__ */ e(dd, {}),
61
+ /* @__PURE__ */ e(rd, {})
62
62
  ]
63
63
  }
64
64
  ) });
65
65
  }
66
- const La = (d) => {
67
- const { onToggleView: a, askAILabel: r, searchLabel: n } = d, s = !!a;
68
- return /* @__PURE__ */ e(R, { "data-show-toolbar": Q(s), children: s ? /* @__PURE__ */ t(j, { children: [
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(k, { children: [
72
- /* @__PURE__ */ e(f, {}),
71
+ /* @__PURE__ */ t(x, { children: [
72
+ /* @__PURE__ */ e(k, {}),
73
73
  /* @__PURE__ */ t(H, { side: "bottom", align: "start", children: [
74
- /* @__PURE__ */ e(w, {}),
74
+ /* @__PURE__ */ e(f, {}),
75
75
  /* @__PURE__ */ e(v, {})
76
76
  ] })
77
77
  ] })
78
78
  ] }),
79
79
  /* @__PURE__ */ e(
80
- wa,
80
+ Ra,
81
81
  {
82
82
  onToggleView: a,
83
83
  askAILabel: r,
84
- searchLabel: n,
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 Da() {
91
+ function Ka() {
92
92
  return /* @__PURE__ */ e(J, { children: /* @__PURE__ */ t(K, { children: [
93
- /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(Pa, {}) }),
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 Pa() {
98
+ function Ua() {
99
99
  const {
100
100
  aiChatSettings: { components: d }
101
- } = Ba();
102
- return /* @__PURE__ */ e(Ne, { children: ({ messages: a, isLoading: r }) => {
103
- const n = a.at(-1), s = (o, g) => {
104
- const c = d?.[o];
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 "${o}" not found in components config`), null;
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, g);
110
- const i = c(g, document.createElement("div"), null);
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 "${o}":`, i), null;
113
+ return console.error(`🔍 [renderComponent] Error rendering component "${s}":`, i), null;
114
114
  }
115
- }, m = (o) => /* @__PURE__ */ e(Kt, { text: o });
116
- return /* @__PURE__ */ t(E, { children: [
117
- /* @__PURE__ */ e(Wa, {}),
118
- a.map((o) => /* @__PURE__ */ t(I, { message: o, children: [
119
- /* @__PURE__ */ e(S, {}),
120
- /* @__PURE__ */ t(x, { children: [
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
- $e,
122
+ at,
123
123
  {
124
124
  name: "IkpMessage",
125
- props: { message: o, renderComponent: s, renderMarkdown: m },
125
+ props: { message: s, renderComponent: n, renderMarkdown: m },
126
126
  componentDef: d.IkpMessage
127
127
  }
128
- ) : /* @__PURE__ */ t(E, { children: [
129
- /* @__PURE__ */ e(V, { isLast: n?.id === o.id }),
130
- /* @__PURE__ */ e(Qa, {})
128
+ ) : /* @__PURE__ */ t(F, { children: [
129
+ /* @__PURE__ */ e(V, { isLast: o?.id === s.id }),
130
+ /* @__PURE__ */ e(qa, {})
131
131
  ] }) }),
132
- /* @__PURE__ */ e(_a, {}),
133
- /* @__PURE__ */ e(Va, {})
132
+ /* @__PURE__ */ e(Ya, {}),
133
+ /* @__PURE__ */ e(Za, {})
134
134
  ] })
135
- ] }, o.id)),
136
- r && n?.parts.length && /* @__PURE__ */ t(
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(S, {}),
146
- /* @__PURE__ */ e(Re, {})
145
+ /* @__PURE__ */ e(T, {}),
146
+ /* @__PURE__ */ e(dt, {})
147
147
  ]
148
148
  }
149
149
  )
150
150
  ] });
151
151
  } });
152
152
  }
153
- function Wa() {
154
- return /* @__PURE__ */ t(Nt, { children: [
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(x, { children: [
159
+ /* @__PURE__ */ t(w, { children: [
160
160
  /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(V, { isLast: !1 }) }),
161
- /* @__PURE__ */ t(k, { children: [
162
- /* @__PURE__ */ e($t, {}),
163
- /* @__PURE__ */ e(f, {}),
161
+ /* @__PURE__ */ t(x, { children: [
162
+ /* @__PURE__ */ e(aa, {}),
163
+ /* @__PURE__ */ e(k, {}),
164
164
  /* @__PURE__ */ t(H, { children: [
165
- /* @__PURE__ */ e(w, {}),
165
+ /* @__PURE__ */ e(f, {}),
166
166
  /* @__PURE__ */ e(v, {})
167
167
  ] })
168
168
  ] }),
169
- /* @__PURE__ */ t(Rt, { children: [
170
- /* @__PURE__ */ e(jt, {}),
171
- /* @__PURE__ */ e(Gt, { children: (d) => d.map((a) => /* @__PURE__ */ e(
172
- zt,
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(Jt, { question: a })
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 S() {
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 _a() {
189
- return /* @__PURE__ */ t(oa, { children: [
190
- /* @__PURE__ */ e(ma, { children: (d) => d.map((a) => /* @__PURE__ */ t(ca, { attachment: a, children: [
191
- /* @__PURE__ */ e(ia, {}),
192
- /* @__PURE__ */ e(ha, {})
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(la, { children: /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(ba, { children: /* @__PURE__ */ t(Ca, { children: [
195
- /* @__PURE__ */ e(Ea, {}),
196
- /* @__PURE__ */ e(Fa, {}),
197
- /* @__PURE__ */ e(pa, {})
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 Va() {
202
- return /* @__PURE__ */ t(ua, { children: [
203
- /* @__PURE__ */ e(Aa, { children: (d) => d.map((a, r) => /* @__PURE__ */ e(ga, { action: a }, `action-${r}`)) }),
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 Qa() {
210
- return /* @__PURE__ */ t(Ut, { children: [
211
- /* @__PURE__ */ e(Xt, {}),
212
- /* @__PURE__ */ e(Yt, { children: (d) => d.map((a, r) => /* @__PURE__ */ t(Zt, { href: a.url, source: a, children: [
213
- /* @__PURE__ */ e(qt, { children: a.breadcrumbs?.map((n) => /* @__PURE__ */ t(T, { children: [
214
- n,
215
- /* @__PURE__ */ e(ea, {})
216
- ] }, n)) }),
217
- /* @__PURE__ */ e(ta, {}),
218
- /* @__PURE__ */ e(aa, {}),
219
- /* @__PURE__ */ e(da, {}),
220
- /* @__PURE__ */ e(ra, { children: (n) => n.map((s, m) => /* @__PURE__ */ e(
221
- na,
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: s
223
+ part: n
224
224
  },
225
225
  `part-${m}`
226
226
  )) }),
227
- /* @__PURE__ */ e(sa, {})
227
+ /* @__PURE__ */ e(Aa, {})
228
228
  ] }, r)) })
229
229
  ] });
230
230
  }
231
- function Oa() {
231
+ function ed() {
232
232
  return /* @__PURE__ */ t(q, { children: [
233
- /* @__PURE__ */ e(Na, {}),
234
- /* @__PURE__ */ e($a, {})
233
+ /* @__PURE__ */ e(td, {}),
234
+ /* @__PURE__ */ e(ad, {})
235
235
  ] });
236
236
  }
237
- function Na() {
238
- return /* @__PURE__ */ t(je, { children: [
239
- /* @__PURE__ */ t(Ge, { children: [
240
- /* @__PURE__ */ e(ze, {}),
241
- /* @__PURE__ */ e(Je, { children: /* @__PURE__ */ e(Ke, {}) })
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(Ue, { children: [
244
- /* @__PURE__ */ e(Xe, { children: (d) => d.map((a) => /* @__PURE__ */ t(Ye, { attachment: a, children: [
245
- /* @__PURE__ */ e(Ze, {}),
246
- /* @__PURE__ */ e(qe, {}),
247
- /* @__PURE__ */ e(et, {})
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(tt, { children: [
250
- /* @__PURE__ */ t(at, { children: [
251
- /* @__PURE__ */ e(dt, {}),
252
- /* @__PURE__ */ e(rt, {})
249
+ /* @__PURE__ */ t(Ft, { children: [
250
+ /* @__PURE__ */ t(Et, { children: [
251
+ /* @__PURE__ */ e(pt, {}),
252
+ /* @__PURE__ */ e(ut, {})
253
253
  ] }),
254
- /* @__PURE__ */ e(nt, { children: (d) => d.map((a) => /* @__PURE__ */ e(st, { input: a, children: a.displayName }, a.id)) })
254
+ /* @__PURE__ */ e(gt, { children: (d) => d.map((a) => /* @__PURE__ */ e(At, { input: a, children: a.displayName }, a.id)) })
255
255
  ] }),
256
- /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(ot, { children: /* @__PURE__ */ e(mt, { children: /* @__PURE__ */ t(ct, { children: [
257
- /* @__PURE__ */ t(it, { children: [
258
- /* @__PURE__ */ e(ht, {}),
259
- /* @__PURE__ */ e(lt, {}),
260
- /* @__PURE__ */ e(bt, {})
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(Ct, {}),
263
- /* @__PURE__ */ e(Et, { children: /* @__PURE__ */ t(Ft, { children: [
264
- /* @__PURE__ */ t(pt, { children: [
265
- /* @__PURE__ */ e(ut, {}),
266
- /* @__PURE__ */ e(At, {}),
267
- /* @__PURE__ */ e(gt, {})
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(Mt, { children: [
270
- /* @__PURE__ */ e(It, {}),
271
- /* @__PURE__ */ e(Bt, {}),
272
- /* @__PURE__ */ e(St, {})
269
+ /* @__PURE__ */ t(Pt, { children: [
270
+ /* @__PURE__ */ e(Wt, {}),
271
+ /* @__PURE__ */ e(_t, {}),
272
+ /* @__PURE__ */ e(Vt, {})
273
273
  ] }),
274
- /* @__PURE__ */ e(Tt, {})
274
+ /* @__PURE__ */ e(Qt, {})
275
275
  ] }) })
276
276
  ] }) }) }) })
277
277
  ] })
278
278
  ] });
279
279
  }
280
- function $a() {
281
- return /* @__PURE__ */ t(kt, { children: [
282
- /* @__PURE__ */ t(ft, { children: [
283
- /* @__PURE__ */ e(Ht, {}),
284
- /* @__PURE__ */ e(wt, {}),
285
- /* @__PURE__ */ e(vt, {})
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(xt, { children: [
288
- /* @__PURE__ */ e(yt, { children: ({ pinned: d, unpinned: a }) => /* @__PURE__ */ t(E, { children: [
289
- d.map((r) => /* @__PURE__ */ e(Lt, { action: r }, r.name)),
290
- a.length > 0 && /* @__PURE__ */ e(Dt, {}),
291
- /* @__PURE__ */ t(Pt, { children: [
292
- /* @__PURE__ */ e(Wt, {}),
293
- a.map((r) => /* @__PURE__ */ t(_t, { action: r, children: [
294
- /* @__PURE__ */ e(Vt, { action: r }),
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(Qt, { action: "copy" }),
301
- /* @__PURE__ */ e(Ot, { action: "copy" })
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 Ra() {
309
- return /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(te, { children: /* @__PURE__ */ t(ae, { children: [
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(ne, { children: /* @__PURE__ */ t(se, { children: [
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(F, {})
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(F, {})
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(F, {})
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(oe, {})
332
+ /* @__PURE__ */ e(se, {})
333
333
  ] }) })
334
334
  ] }) }) }) });
335
335
  }
336
- function ja() {
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(E, { children: [
345
- d.map((a, r) => /* @__PURE__ */ t(Ee, { field: a, autoFocus: r === 0, children: [
346
- /* @__PURE__ */ e(Fe, {}),
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(Ae, {}),
350
- a.inputType === "textarea" && /* @__PURE__ */ e(ge, {}),
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(Se, { children: [
354
- /* @__PURE__ */ e(Te, {}),
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
- ] }, n.value)) }) })
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(ye, {})
380
+ /* @__PURE__ */ e(Ge, {}),
381
+ /* @__PURE__ */ e(ze, {})
363
382
  ] }, a.name)),
364
- /* @__PURE__ */ e(Le, {})
383
+ /* @__PURE__ */ e(Je, {})
365
384
  ] }) }),
366
- /* @__PURE__ */ t(De, { children: [
367
- /* @__PURE__ */ e(Pe, {}),
368
- /* @__PURE__ */ e(We, {})
385
+ /* @__PURE__ */ t(Ke, { children: [
386
+ /* @__PURE__ */ e(Ue, {}),
387
+ /* @__PURE__ */ e(Xe, {})
369
388
  ] })
370
389
  ] }),
371
- /* @__PURE__ */ t(_e, { children: [
372
- /* @__PURE__ */ e(Ve, {}),
373
- /* @__PURE__ */ e(Qe, {}),
374
- /* @__PURE__ */ e(Oe, {})
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
- sd as InkeepEmbeddedChat,
380
- xa as InkeepEmbeddedChatImpl,
381
- ya as InkeepEmbeddedChatImplContent,
382
- va as InkeepEmbeddedChatProvider
398
+ Ad as InkeepEmbeddedChat,
399
+ Ga as InkeepEmbeddedChatImpl,
400
+ za as InkeepEmbeddedChatImplContent,
401
+ ja as InkeepEmbeddedChatProvider
383
402
  };