@inkeep/agents-ui 0.15.2 → 0.15.4

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.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as a } from "react/jsx-runtime";
3
- import { EmbeddedChatPrimitiveContentScrollAreaCorner as A, EmbeddedChatPrimitiveDisclaimerText as k, EmbeddedChatPrimitiveMessageAttachments as w, EmbeddedChatPrimitiveMessageAttachmentsPreview as P, EmbeddedChatPrimitiveDynamicComponent as M, EmbeddedChatPrimitiveMessageSources as y, EmbeddedChatPrimitiveAttachmentsBarInfoTip as N, EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow as I, EmbeddedChatPrimitiveAttachmentsBarModal as B, EmbeddedChatPrimitiveAttachmentsBarModalHelp as S, EmbeddedChatPrimitiveHelpActions as T, EmbeddedChatPrimitiveFeedbackModal as H, EmbeddedChatPrimitiveFormFieldSelect as L, EmbeddedChatPrimitiveFormFieldSelectValue as D, EmbeddedChatPrimitiveFormFieldSelectItemText as W, EmbeddedChatPrimitiveFormSuccessMessage as _, EmbeddedChatPrimitiveWrapper as z, EmbeddedChatPrimitiveRoot as j, Header as Q, EmbeddedChatPrimitiveHeaderToolbar as O, EmbeddedChatPrimitiveToolbarHeaderWrapper as V, EmbeddedChatPrimitiveToolbarHeader as R, EmbeddedChatPrimitiveContent as q, EmbeddedChatPrimitiveContentScrollArea as G, EmbeddedChatPrimitiveContentScrollAreaViewport as $, EmbeddedChatPrimitiveContentScrollAreaScrollbar as J, EmbeddedChatPrimitiveContentScrollAreaThumb as K, EmbeddedChatPrimitiveMessages as U, EmbeddedChatPrimitiveMessageWrapper as X, EmbeddedChatPrimitiveIntroMessageWrapper as Y, EmbeddedChatPrimitiveDisclaimer as Z, EmbeddedChatPrimitiveDisclaimerLabel as ee, EmbeddedChatPrimitiveDisclaimerTrigger as te, EmbeddedChatPrimitiveDisclaimerContent as ae, EmbeddedChatPrimitiveDisclaimerArrow as de, EmbeddedChatPrimitiveExampleQuestions as se, EmbeddedChatPrimitiveExampleQuestionsLabel as re, EmbeddedChatPrimitiveExampleQuestionsList as me, EmbeddedChatPrimitiveExampleQuestion as oe, EmbeddedChatPrimitiveExampleQuestionButton as ie, EmbeddedChatPrimitiveWorkflows as ne, EmbeddedChatPrimitiveWorkflowsLabel as le, EmbeddedChatPrimitiveWorkflowsList as ce, EmbeddedChatPrimitiveWorkflow as he, EmbeddedChatPrimitiveMessageHeader as be, EmbeddedChatPrimitiveMessageLoading as pe, EmbeddedChatPrimitiveMessageAvatar as Ce, EmbeddedChatPrimitiveMessageAvatarContent as Ee, EmbeddedChatPrimitiveMessageAvatarFallback as ue, EmbeddedChatPrimitiveMessageAvatarImage as ge, EmbeddedChatPrimitiveMessageName as xe, EmbeddedChatPrimitiveMessageContentWrapper as fe, EmbeddedChatPrimitiveMessageContent as ve, EmbeddedChatPrimitiveMessageAttachmentsList as Fe, EmbeddedChatPrimitiveMessageAttachmentsItem as Ae, EmbeddedChatPrimitiveMessageAttachmentsItemIcon as ke, EmbeddedChatPrimitiveMessageAttachmentsItemTitle as we, EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay as Pe, EmbeddedChatPrimitiveMessageAttachmentsPreviewContent as Me, EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader as ye, EmbeddedChatPrimitiveMessageAttachmentsPreviewClose as Ne, EmbeddedChatPrimitiveMessageAttachmentsPreviewBody as Ie, EmbeddedChatPrimitiveMarkdown as Be, EmbeddedChatPrimitiveMessageToolbar as Se, EmbeddedChatPrimitiveMessageAnnotationActions as Te, EmbeddedChatPrimitiveMessageAnnotationAction as He, EmbeddedChatPrimitiveMessageAction as Le, EmbeddedChatPrimitiveMessageSourcesHeader as De, EmbeddedChatPrimitiveMessageSourcesList as We, EmbeddedChatPrimitiveMessageSourceItem as _e, EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs as ze, MessageSourceItemBreadcrumbIcon as je, EmbeddedChatPrimitiveMessageSourceItemIcon as Qe, EmbeddedChatPrimitiveMessageSourceItemTitle as Oe, EmbeddedChatPrimitiveMessageSourceItemTag as Ve, EmbeddedChatPrimitiveMessageSourceItemDescription as Re, EmbeddedChatPrimitiveMessageSourceItemDescriptionPart as qe, EmbeddedChatPrimitiveMessageSourceItemIndicator as Ge, EmbeddedChatPrimitiveFooter as $e, EmbeddedChatPrimitiveInputFieldset as Je, EmbeddedChatPrimitiveInputGroup as Ke, EmbeddedChatPrimitiveInput as Ue, EmbeddedChatPrimitiveSendButton as Xe, EmbeddedChatPrimitiveSendButtonIcon as Ye, EmbeddedChatPrimitiveAttachmentsBar as Ze, EmbeddedChatPrimitiveAttachmentsBarList as et, EmbeddedChatPrimitiveAttachmentsBarAttachment as tt, EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon as at, EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle as dt, EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete as st, EmbeddedChatPrimitiveAttachmentsBarActions as rt, EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon as mt, EmbeddedChatPrimitiveAttachmentsBarInfoTipText as ot, EmbeddedChatPrimitiveAttachmentsBarInputs as it, EmbeddedChatPrimitiveAttachmentsBarInput as nt, EmbeddedChatPrimitiveAttachmentsBarModalOverlay as lt, EmbeddedChatPrimitiveAttachmentsBarModalContent as ct, EmbeddedChatPrimitiveAttachmentsBarModalHeader as ht, EmbeddedChatPrimitiveAttachmentsBarModalHeading as bt, EmbeddedChatPrimitiveAttachmentsBarModalDescription as pt, EmbeddedChatPrimitiveAttachmentsBarModalClose as Ct, EmbeddedChatPrimitiveAttachmentsBarModalBody as Et, EmbeddedChatPrimitiveAttachmentsBarForm as ut, EmbeddedChatPrimitiveAttachmentsBarFormTitle as gt, EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel as xt, EmbeddedChatPrimitiveAttachmentsBarFormTitleInput as ft, EmbeddedChatPrimitiveAttachmentsBarFormTitleError as vt, EmbeddedChatPrimitiveAttachmentsBarFormContent as Ft, EmbeddedChatPrimitiveAttachmentsBarFormContentLabel as At, EmbeddedChatPrimitiveAttachmentsBarFormContentInput as kt, EmbeddedChatPrimitiveAttachmentsBarFormContentError as wt, EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton as Pt, EmbeddedChatPrimitiveActionBar as Mt, EmbeddedChatPrimitiveActions as yt, EmbeddedChatPrimitiveTaglineContainer as Nt, EmbeddedChatPrimitiveTaglineText as It, EmbeddedChatPrimitiveTaglineLogo as Bt, EmbeddedChatPrimitiveTaglineBrandName as St, EmbeddedChatPrimitiveChatAction as Tt, EmbeddedChatPrimitiveChatActionLabel as Ht, EmbeddedChatPrimitiveChatActionFeedback as Lt, EmbeddedChatPrimitiveChatHelpAction as Dt, EmbeddedChatPrimitiveHelpActionsTrigger as Wt, EmbeddedChatPrimitiveHelpActionsMenu as _t, EmbeddedChatPrimitiveHelpActionsMenuArrow as zt, EmbeddedChatPrimitiveHelpActionsMenuItem as jt, EmbeddedChatPrimitiveHelpActionsMenuItemIcon as Qt, EmbeddedChatPrimitiveFeedbackModalOverlay as Ot, EmbeddedChatPrimitiveFeedbackModalContent as Vt, EmbeddedChatPrimitiveFeedbackModalHeader as Rt, EmbeddedChatPrimitiveFeedbackModalClose as qt, EmbeddedChatPrimitiveFeedbackModalBody as Gt, EmbeddedChatPrimitiveFeedbackForm as $t, EmbeddedChatPrimitiveFeedbackItem as Jt, EmbeddedChatPrimitiveFeedbackItemCheckbox as Kt, EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator as Ut, EmbeddedChatPrimitiveFeedbackItemLabel as Xt, EmbeddedChatPrimitiveFeedbackItemDescription as Yt, EmbeddedChatPrimitiveFeedbackSubmitButton as Zt, EmbeddedChatPrimitiveFormWrapper as ea, EmbeddedChatPrimitiveForm as ta, EmbeddedChatPrimitiveFormClose as aa, EmbeddedChatPrimitiveFormHeader as da, EmbeddedChatPrimitiveFormHeading as sa, EmbeddedChatPrimitiveFormDescription as ra, EmbeddedChatPrimitiveFormContent as ma, EmbeddedChatPrimitiveFormField as oa, EmbeddedChatPrimitiveFormFieldLabel as ia, EmbeddedChatPrimitiveFormFieldText as na, EmbeddedChatPrimitiveFormFieldEmail as la, EmbeddedChatPrimitiveFormFieldFile as ca, EmbeddedChatPrimitiveFormFieldTextArea as ha, EmbeddedChatPrimitiveFormFieldCheckbox as ba, EmbeddedChatPrimitiveFormFieldCheckboxIndicator as pa, EmbeddedChatPrimitiveFormFieldSelectTrigger as Ca, EmbeddedChatPrimitiveFormFieldSelectIcon as Ea, EmbeddedChatPrimitiveFormFieldSelectContent as ua, EmbeddedChatPrimitiveFormFieldSelectViewport as ga, EmbeddedChatPrimitiveFormFieldSelectItem as xa, EmbeddedChatPrimitiveFormFieldSelectItemIndicator as fa, EmbeddedChatPrimitiveFormFieldError as va, EmbeddedChatPrimitiveFormError as Fa, EmbeddedChatPrimitiveFormFooter as Aa, EmbeddedChatPrimitiveFormCancel as ka, EmbeddedChatPrimitiveFormSubmit as wa, EmbeddedChatPrimitiveFormSuccess as Pa, EmbeddedChatPrimitiveFormSuccessHeading as Ma, EmbeddedChatPrimitiveFormSuccessButton as ya } from "../../primitives/components/embedded-chat.js";
3
+ import { EmbeddedChatPrimitiveContentScrollAreaCorner as A, EmbeddedChatPrimitiveDisclaimerText as k, EmbeddedChatPrimitiveMessageAttachments as w, EmbeddedChatPrimitiveMessageAttachmentsPreview as P, EmbeddedChatPrimitiveDynamicComponent as M, EmbeddedChatPrimitiveMessageSources as y, EmbeddedChatPrimitiveAttachmentsBarInfoTip as N, EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow as I, EmbeddedChatPrimitiveAttachmentsBarModal as B, EmbeddedChatPrimitiveAttachmentsBarModalHelp as S, EmbeddedChatPrimitiveHelpActions as T, EmbeddedChatPrimitiveFeedbackModal as H, EmbeddedChatPrimitiveFormFieldSelect as L, EmbeddedChatPrimitiveFormFieldSelectValue as D, EmbeddedChatPrimitiveFormFieldSelectItemText as W, EmbeddedChatPrimitiveFormSuccessMessage as _, EmbeddedChatPrimitiveWrapper as z, EmbeddedChatPrimitiveRoot as j, Header as Q, EmbeddedChatPrimitiveHeaderToolbar as O, EmbeddedChatPrimitiveToolbarHeaderWrapper as V, EmbeddedChatPrimitiveToolbarHeader as R, EmbeddedChatPrimitiveContent as q, EmbeddedChatPrimitiveContentScrollArea as G, EmbeddedChatPrimitiveContentScrollAreaViewport as $, EmbeddedChatPrimitiveContentScrollAreaScrollbar as J, EmbeddedChatPrimitiveContentScrollAreaThumb as K, EmbeddedChatPrimitiveMessages as U, EmbeddedChatPrimitiveMessageWrapper as X, EmbeddedChatPrimitiveIntroMessageWrapper as Y, EmbeddedChatPrimitiveDisclaimer as Z, EmbeddedChatPrimitiveDisclaimerLabel as ee, EmbeddedChatPrimitiveDisclaimerTrigger as te, EmbeddedChatPrimitiveDisclaimerContent as ae, EmbeddedChatPrimitiveDisclaimerArrow as de, EmbeddedChatPrimitiveExampleQuestions as se, EmbeddedChatPrimitiveExampleQuestionsLabel as re, EmbeddedChatPrimitiveExampleQuestionsList as me, EmbeddedChatPrimitiveExampleQuestion as oe, EmbeddedChatPrimitiveExampleQuestionButton as ie, EmbeddedChatPrimitiveWorkflows as ne, EmbeddedChatPrimitiveWorkflowsLabel as le, EmbeddedChatPrimitiveWorkflowsList as ce, EmbeddedChatPrimitiveWorkflow as he, EmbeddedChatPrimitiveMessageHeader as be, EmbeddedChatPrimitiveMessageLoading as pe, EmbeddedChatPrimitiveMessageAvatar as Ce, EmbeddedChatPrimitiveMessageAvatarContent as ue, EmbeddedChatPrimitiveMessageAvatarFallback as Ee, EmbeddedChatPrimitiveMessageAvatarImage as ge, EmbeddedChatPrimitiveMessageName as xe, EmbeddedChatPrimitiveMessageContentWrapper as fe, EmbeddedChatPrimitiveMessageContent as ve, EmbeddedChatPrimitiveMessageAttachmentsList as Fe, EmbeddedChatPrimitiveMessageAttachmentsItem as Ae, EmbeddedChatPrimitiveMessageAttachmentsItemIcon as ke, EmbeddedChatPrimitiveMessageAttachmentsItemTitle as we, EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay as Pe, EmbeddedChatPrimitiveMessageAttachmentsPreviewContent as Me, EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader as ye, EmbeddedChatPrimitiveMessageAttachmentsPreviewClose as Ne, EmbeddedChatPrimitiveMessageAttachmentsPreviewBody as Ie, EmbeddedChatPrimitiveMarkdown as Be, EmbeddedChatPrimitiveMessageToolbar as Se, EmbeddedChatPrimitiveMessageCustomActions as Te, EmbeddedChatPrimitiveMessageCustomAction as He, EmbeddedChatPrimitiveMessageAction as Le, EmbeddedChatPrimitiveMessageSourcesHeader as De, EmbeddedChatPrimitiveMessageSourcesList as We, EmbeddedChatPrimitiveMessageSourceItem as _e, EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs as ze, MessageSourceItemBreadcrumbIcon as je, EmbeddedChatPrimitiveMessageSourceItemIcon as Qe, EmbeddedChatPrimitiveMessageSourceItemTitle as Oe, EmbeddedChatPrimitiveMessageSourceItemTag as Ve, EmbeddedChatPrimitiveMessageSourceItemDescription as Re, EmbeddedChatPrimitiveMessageSourceItemDescriptionPart as qe, EmbeddedChatPrimitiveMessageSourceItemIndicator as Ge, EmbeddedChatPrimitiveFooter as $e, EmbeddedChatPrimitiveInputFieldset as Je, EmbeddedChatPrimitiveInputGroup as Ke, EmbeddedChatPrimitiveInput as Ue, EmbeddedChatPrimitiveSendButton as Xe, EmbeddedChatPrimitiveSendButtonIcon as Ye, EmbeddedChatPrimitiveAttachmentsBar as Ze, EmbeddedChatPrimitiveAttachmentsBarList as et, EmbeddedChatPrimitiveAttachmentsBarAttachment as tt, EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon as at, EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle as dt, EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete as st, EmbeddedChatPrimitiveAttachmentsBarActions as rt, EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon as mt, EmbeddedChatPrimitiveAttachmentsBarInfoTipText as ot, EmbeddedChatPrimitiveAttachmentsBarInputs as it, EmbeddedChatPrimitiveAttachmentsBarInput as nt, EmbeddedChatPrimitiveAttachmentsBarModalOverlay as lt, EmbeddedChatPrimitiveAttachmentsBarModalContent as ct, EmbeddedChatPrimitiveAttachmentsBarModalHeader as ht, EmbeddedChatPrimitiveAttachmentsBarModalHeading as bt, EmbeddedChatPrimitiveAttachmentsBarModalDescription as pt, EmbeddedChatPrimitiveAttachmentsBarModalClose as Ct, EmbeddedChatPrimitiveAttachmentsBarModalBody as ut, EmbeddedChatPrimitiveAttachmentsBarForm as Et, EmbeddedChatPrimitiveAttachmentsBarFormTitle as gt, EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel as xt, EmbeddedChatPrimitiveAttachmentsBarFormTitleInput as ft, EmbeddedChatPrimitiveAttachmentsBarFormTitleError as vt, EmbeddedChatPrimitiveAttachmentsBarFormContent as Ft, EmbeddedChatPrimitiveAttachmentsBarFormContentLabel as At, EmbeddedChatPrimitiveAttachmentsBarFormContentInput as kt, EmbeddedChatPrimitiveAttachmentsBarFormContentError as wt, EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton as Pt, EmbeddedChatPrimitiveActionBar as Mt, EmbeddedChatPrimitiveActions as yt, EmbeddedChatPrimitiveTaglineContainer as Nt, EmbeddedChatPrimitiveTaglineText as It, EmbeddedChatPrimitiveTaglineLogo as Bt, EmbeddedChatPrimitiveTaglineBrandName as St, EmbeddedChatPrimitiveChatAction as Tt, EmbeddedChatPrimitiveChatActionLabel as Ht, EmbeddedChatPrimitiveChatActionFeedback as Lt, EmbeddedChatPrimitiveChatHelpAction as Dt, EmbeddedChatPrimitiveHelpActionsTrigger as Wt, EmbeddedChatPrimitiveHelpActionsMenu as _t, EmbeddedChatPrimitiveHelpActionsMenuArrow as zt, EmbeddedChatPrimitiveHelpActionsMenuItem as jt, EmbeddedChatPrimitiveHelpActionsMenuItemIcon as Qt, EmbeddedChatPrimitiveFeedbackModalOverlay as Ot, EmbeddedChatPrimitiveFeedbackModalContent as Vt, EmbeddedChatPrimitiveFeedbackModalHeader as Rt, EmbeddedChatPrimitiveFeedbackModalClose as qt, EmbeddedChatPrimitiveFeedbackModalBody as Gt, EmbeddedChatPrimitiveFeedbackForm as $t, EmbeddedChatPrimitiveFeedbackItem as Jt, EmbeddedChatPrimitiveFeedbackItemCheckbox as Kt, EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator as Ut, EmbeddedChatPrimitiveFeedbackItemLabel as Xt, EmbeddedChatPrimitiveFeedbackItemDescription as Yt, EmbeddedChatPrimitiveFeedbackSubmitButton as Zt, EmbeddedChatPrimitiveFormWrapper as ea, EmbeddedChatPrimitiveForm as ta, EmbeddedChatPrimitiveFormClose as aa, EmbeddedChatPrimitiveFormHeader as da, EmbeddedChatPrimitiveFormHeading as sa, EmbeddedChatPrimitiveFormDescription as ra, EmbeddedChatPrimitiveFormContent as ma, EmbeddedChatPrimitiveFormField as oa, EmbeddedChatPrimitiveFormFieldLabel as ia, EmbeddedChatPrimitiveFormFieldText as na, EmbeddedChatPrimitiveFormFieldEmail as la, EmbeddedChatPrimitiveFormFieldFile as ca, EmbeddedChatPrimitiveFormFieldTextArea as ha, EmbeddedChatPrimitiveFormFieldCheckbox as ba, EmbeddedChatPrimitiveFormFieldCheckboxIndicator as pa, EmbeddedChatPrimitiveFormFieldSelectTrigger as Ca, EmbeddedChatPrimitiveFormFieldSelectIcon as ua, EmbeddedChatPrimitiveFormFieldSelectContent as Ea, EmbeddedChatPrimitiveFormFieldSelectViewport as ga, EmbeddedChatPrimitiveFormFieldSelectItem as xa, EmbeddedChatPrimitiveFormFieldSelectItemIndicator as fa, EmbeddedChatPrimitiveFormFieldError as va, EmbeddedChatPrimitiveFormError as Fa, EmbeddedChatPrimitiveFormFooter as Aa, EmbeddedChatPrimitiveFormCancel as ka, EmbeddedChatPrimitiveFormSubmit as wa, EmbeddedChatPrimitiveFormSuccess as Pa, EmbeddedChatPrimitiveFormSuccessHeading as Ma, EmbeddedChatPrimitiveFormSuccessButton as ya } from "../../primitives/components/embedded-chat.js";
4
4
  import { ChatProvider as Na } from "../../primitives/components/embedded-chat/chat-provider.js";
5
5
  import { useResizeObserver as Ia } from "../../primitives/hooks/use-resize-observer.js";
6
6
  import { composeRefs as Ba } from "../../primitives/utils/compose-refs.js";
@@ -24,7 +24,7 @@ import { markdownStyles as _a } from "./ui/markdown-styles.js";
24
24
  import { LoadingIndicator as za } from "./loading-indicator.js";
25
25
  import { EmbeddedChatMessagePart as gm } from "./message.js";
26
26
  const nd = Na, ld = C(
27
- ({ className: e, size: t, variant: o, ...E }, c) => /* @__PURE__ */ a(
27
+ ({ className: e, size: t, variant: o, ...u }, c) => /* @__PURE__ */ a(
28
28
  z,
29
29
  {
30
30
  ref: c,
@@ -41,7 +41,7 @@ const nd = Na, ld = C(
41
41
  "[[data-chat-bubble]_&]:h-full [[data-chat-bubble]_&]:w-full [[data-chat-bubble]_&]:rounded-[inherit]",
42
42
  e
43
43
  ),
44
- ...E
44
+ ...u
45
45
  }
46
46
  )
47
47
  ), cd = ({
@@ -107,7 +107,7 @@ const nd = Na, ld = C(
107
107
  className: d("text-gray-600 dark:text-gray-dark-100 text-sm", e),
108
108
  ...t
109
109
  }
110
- ), Ed = ({
110
+ ), ud = ({
111
111
  className: e,
112
112
  ...t
113
113
  }) => /* @__PURE__ */ a(
@@ -116,7 +116,7 @@ const nd = Na, ld = C(
116
116
  className: d(p({ section: "content" }), "justify-end", e),
117
117
  ...t
118
118
  }
119
- ), ud = ({
119
+ ), Ed = ({
120
120
  className: e,
121
121
  ...t
122
122
  }) => /* @__PURE__ */ a(
@@ -244,8 +244,8 @@ const nd = Na, ld = C(
244
244
  className: d("flex flex-col", "ikp-md:flex-row", "flex-wrap gap-2", e),
245
245
  ...t
246
246
  }
247
- ), Bd = C(({ className: e, style: t, ...o }, E) => {
248
- const c = Wa(null), x = Ba(E, c), { width: f = 0, height: v = 0 } = Ia({
247
+ ), Bd = C(({ className: e, style: t, ...o }, u) => {
248
+ const c = Wa(null), x = Ba(u, c), { width: f = 0, height: v = 0 } = Ia({
249
249
  ref: c,
250
250
  box: "border-box"
251
251
  }), F = Math.max(v, f);
@@ -412,7 +412,7 @@ const nd = Na, ld = C(
412
412
  className: e,
413
413
  ...t
414
414
  }) => /* @__PURE__ */ a(
415
- Ee,
415
+ ue,
416
416
  {
417
417
  className: d(
418
418
  "relative flex h-6 w-6 shrink-0 overflow-hidden",
@@ -429,7 +429,7 @@ const nd = Na, ld = C(
429
429
  className: e,
430
430
  ...t
431
431
  }) => /* @__PURE__ */ a(
432
- ue,
432
+ Ee,
433
433
  {
434
434
  className: d("hidden data-[role=user]:block", e),
435
435
  ...t
@@ -680,7 +680,7 @@ const nd = Na, ld = C(
680
680
  className: d(m({ slot: "root" }), e),
681
681
  ...t
682
682
  }
683
- ), Es = ({
683
+ ), us = ({
684
684
  className: e,
685
685
  ...t
686
686
  }) => /* @__PURE__ */ a(
@@ -689,7 +689,7 @@ const nd = Na, ld = C(
689
689
  className: d(m({ slot: "breadcrumbs" }), e),
690
690
  ...t
691
691
  }
692
- ), us = ({
692
+ ), Es = ({
693
693
  className: e,
694
694
  ...t
695
695
  }) => /* @__PURE__ */ a(
@@ -1001,7 +1001,7 @@ const nd = Na, ld = C(
1001
1001
  className: e,
1002
1002
  ...t
1003
1003
  }) => /* @__PURE__ */ a(
1004
- Et,
1004
+ ut,
1005
1005
  {
1006
1006
  className: d(s({ slot: "body" }), "p-0", e),
1007
1007
  ...t
@@ -1010,7 +1010,7 @@ const nd = Na, ld = C(
1010
1010
  className: e,
1011
1011
  ...t
1012
1012
  }) => /* @__PURE__ */ a(
1013
- ut,
1013
+ Et,
1014
1014
  {
1015
1015
  className: d("flex flex-col gap-8", e),
1016
1016
  ...t
@@ -1165,16 +1165,16 @@ const nd = Na, ld = C(
1165
1165
  ),
1166
1166
  ...t
1167
1167
  }
1168
- ), u = d(
1168
+ ), E = d(
1169
1169
  r({ size: "xs", variant: "outline" }),
1170
1170
  "text-gray-700 dark:text-white-alpha-700"
1171
1171
  ), pr = ({
1172
1172
  className: e,
1173
1173
  ...t
1174
- }) => /* @__PURE__ */ a(Tt, { className: d(u, e), ...t }), Cr = ({
1174
+ }) => /* @__PURE__ */ a(Tt, { className: d(E, e), ...t }), Cr = ({
1175
1175
  className: e,
1176
1176
  ...t
1177
- }) => /* @__PURE__ */ a(Ht, { className: d("cursor-pointer", e), ...t }), Er = ({
1177
+ }) => /* @__PURE__ */ a(Ht, { className: d("cursor-pointer", e), ...t }), ur = ({
1178
1178
  className: e,
1179
1179
  ...t
1180
1180
  }) => /* @__PURE__ */ a(
@@ -1189,16 +1189,16 @@ const nd = Na, ld = C(
1189
1189
  ),
1190
1190
  ...t
1191
1191
  }
1192
- ), ur = T, gr = ({
1192
+ ), Er = T, gr = ({
1193
1193
  className: e,
1194
1194
  ...t
1195
- }) => /* @__PURE__ */ a(Dt, { className: d(u, e), ...t }), xr = ({
1195
+ }) => /* @__PURE__ */ a(Dt, { className: d(E, e), ...t }), xr = ({
1196
1196
  className: e,
1197
1197
  ...t
1198
1198
  }) => /* @__PURE__ */ a(
1199
1199
  Wt,
1200
1200
  {
1201
- className: d(u, e),
1201
+ className: d(E, e),
1202
1202
  ...t
1203
1203
  }
1204
1204
  ), fr = ({
@@ -1531,7 +1531,7 @@ const nd = Na, ld = C(
1531
1531
  className: e,
1532
1532
  ...t
1533
1533
  }) => /* @__PURE__ */ a(
1534
- Ea,
1534
+ ua,
1535
1535
  {
1536
1536
  className: d("h-4 w-4 opacity-45", e),
1537
1537
  ...t
@@ -1540,7 +1540,7 @@ const nd = Na, ld = C(
1540
1540
  className: e,
1541
1541
  ...t
1542
1542
  }) => /* @__PURE__ */ a(
1543
- ua,
1543
+ Ea,
1544
1544
  {
1545
1545
  className: d(l({ slot: "content" }), e),
1546
1546
  ...t
@@ -1689,10 +1689,10 @@ export {
1689
1689
  Ks as AttachmentsBarModalHelp,
1690
1690
  Rs as AttachmentsBarModalOverlay,
1691
1691
  pr as ChatAction,
1692
- Er as ChatActionFeedback,
1692
+ ur as ChatActionFeedback,
1693
1693
  Cr as ChatActionLabel,
1694
- Ed as Content,
1695
- ud as ContentScrollArea,
1694
+ ud as Content,
1695
+ Ed as ContentScrollArea,
1696
1696
  vd as ContentScrollAreaCorner,
1697
1697
  xd as ContentScrollAreaScrollbar,
1698
1698
  fd as ContentScrollAreaThumb,
@@ -1760,7 +1760,7 @@ export {
1760
1760
  bd as HeaderToolbar,
1761
1761
  pd as HeaderToolbarWrapper,
1762
1762
  gr as HelpAction,
1763
- ur as HelpActions,
1763
+ Er as HelpActions,
1764
1764
  fr as HelpActionsMenu,
1765
1765
  vr as HelpActionsMenuArrow,
1766
1766
  Fr as HelpActionsMenuItem,
@@ -1772,8 +1772,6 @@ export {
1772
1772
  zd as IntroMessageWrapper,
1773
1773
  os as Markdown,
1774
1774
  cs as MessageAction,
1775
- ls as MessageAnnotationAction,
1776
- ns as MessageAnnotationActions,
1777
1775
  Kd as MessageAttachments,
1778
1776
  Xd as MessageAttachmentsItem,
1779
1777
  Yd as MessageAttachmentsItemIcon,
@@ -1791,13 +1789,15 @@ export {
1791
1789
  qd as MessageAvatarImage,
1792
1790
  Jd as MessageContent,
1793
1791
  $d as MessageContentWrapper,
1792
+ ls as MessageCustomAction,
1793
+ ns as MessageCustomActions,
1794
1794
  jd as MessageHeader,
1795
1795
  Qd as MessageLoading,
1796
1796
  Gd as MessageName,
1797
1797
  gm as MessagePart,
1798
1798
  Cs as MessageSourceItem,
1799
- us as MessageSourceItemBreadcrumbIcon,
1800
- Es as MessageSourceItemBreadcrumbs,
1799
+ Es as MessageSourceItemBreadcrumbIcon,
1800
+ us as MessageSourceItemBreadcrumbs,
1801
1801
  vs as MessageSourceItemDescription,
1802
1802
  Fs as MessageSourceItemDescriptionPart,
1803
1803
  gs as MessageSourceItemIcon,
@@ -1,5 +1,5 @@
1
1
  import { AIChatFormSettings } from './settings/form';
2
- import { GetHelpOption } from './settings/actions';
2
+ import { GetHelpOption, CustomMessageAction } from './settings/actions';
3
3
  import { SearchAndChatFilters } from './filters';
4
4
  import { ComponentsConfig } from './components';
5
5
  export interface InkeepAIChatSettings {
@@ -83,9 +83,12 @@ export interface InkeepAIChatSettings {
83
83
  /**
84
84
  * A list of pre-written questions users can click to quickly start a conversation.
85
85
  * These should reflect common use cases and help users understand the AI assistant's capabilities.
86
- * @example ["How do I reset my password?", "What are the API rate limits?"]
86
+ * @example ["How do I reset my password?", "What are the API rate limits?"] or [{ value: "How do I reset my password?", label: "How do I reset my password?" }, { value: "What are the API rate limits?", label: "What are the API rate limits?" }]
87
87
  */
88
- exampleQuestions?: string[];
88
+ exampleQuestions?: string[] | {
89
+ value: string;
90
+ label: string;
91
+ }[];
89
92
  /**
90
93
  * Whether to visually emphasize the first example question.
91
94
  * Use this to draw attention to the most important or common query.
@@ -145,6 +148,10 @@ export interface InkeepAIChatSettings {
145
148
  * Use this to provide alternative support options like contact forms or documentation links.
146
149
  */
147
150
  getHelpOptions?: GetHelpOption[];
151
+ /**
152
+ * Array of actions available rendered after each message.
153
+ */
154
+ messageActions?: CustomMessageAction[];
148
155
  /**
149
156
  * Custom heading text for the workflows section.
150
157
  * Use this to describe available automated processes or guided flows.
@@ -9,18 +9,27 @@ export interface OpenUrlAction {
9
9
  type: 'open_link';
10
10
  url: string;
11
11
  }
12
- interface InvokeCallbackArgs {
12
+ export interface InvokeCallbackArgs {
13
13
  conversation: {
14
14
  id: string;
15
15
  messages: Message[];
16
16
  };
17
17
  }
18
+ export interface InvokeMessageCallbackActionArgs extends InvokeCallbackArgs {
19
+ messageId?: string;
20
+ }
18
21
  export interface InvokeCallbackAction {
19
22
  type: 'invoke_callback';
20
23
  callback: (args: InvokeCallbackArgs) => void;
21
24
  shouldCloseModal?: boolean;
22
25
  }
26
+ export interface InvokeMessageCallbackAction {
27
+ type: 'invoke_message_callback';
28
+ callback: (args: InvokeMessageCallbackActionArgs) => void;
29
+ shouldCloseModal?: boolean;
30
+ }
23
31
  type ChatAction = InvokeCallbackAction | OpenFormAction | OpenUrlAction;
32
+ type MessageChatAction = InvokeMessageCallbackAction | OpenFormAction | OpenUrlAction;
24
33
  export type ChatActionType = ChatAction['type'];
25
34
  export interface GetHelpOption {
26
35
  icon?: InkeepCustomIcon;
@@ -28,10 +37,10 @@ export interface GetHelpOption {
28
37
  isPinnedToToolbar?: boolean;
29
38
  action: ChatAction;
30
39
  }
31
- export interface AnnotationAction {
40
+ export interface CustomMessageAction {
32
41
  label?: string;
33
42
  icon?: InkeepCustomIcon;
34
- action: ChatAction;
43
+ action: MessageChatAction;
35
44
  }
36
- export type IkpChatAction = GetHelpOption | AnnotationAction;
45
+ export type IkpChatAction = GetHelpOption | CustomMessageAction;
37
46
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-ui",
3
- "version": "0.15.2",
3
+ "version": "0.15.4",
4
4
  "description": "",
5
5
  "homepage": "",
6
6
  "repository": {