@inkeep/agents-ui 0.15.1 → 0.15.3

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 (26) hide show
  1. package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -1
  2. package/dist/primitives/components/embedded-chat/use-chat-action.d.ts +1 -1
  3. package/dist/primitives/components/embedded-chat/use-chat-action.js +20 -17
  4. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +2 -2
  5. package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +0 -1
  6. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +73 -66
  7. package/dist/primitives/components/embedded-chat.cjs +3 -3
  8. package/dist/primitives/components/embedded-chat.d.ts +16 -10
  9. package/dist/primitives/components/embedded-chat.js +419 -426
  10. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  11. package/dist/primitives/providers/base-events-provider.js +1 -1
  12. package/dist/primitives/utils/component-ids.cjs +1 -1
  13. package/dist/primitives/utils/component-ids.d.ts +4 -4
  14. package/dist/primitives/utils/component-ids.js +2 -2
  15. package/dist/react/embedded-chat.cjs +1 -1
  16. package/dist/react/embedded-chat.js +19 -13
  17. package/dist/styled/components/data-summary-group.cjs +1 -1
  18. package/dist/styled/components/data-summary-group.js +13 -13
  19. package/dist/styled/components/embedded-chat.cjs +1 -1
  20. package/dist/styled/components/embedded-chat.d.ts +3 -3
  21. package/dist/styled/components/embedded-chat.js +29 -29
  22. package/dist/styled/components/message.cjs +1 -1
  23. package/dist/styled/components/message.js +33 -33
  24. package/dist/types/config/ai.d.ts +10 -3
  25. package/dist/types/config/settings/actions.d.ts +13 -4
  26. package/package.json +1 -1
@@ -64,8 +64,8 @@ declare const EmbeddedChatMessageAttachmentsPreviewBody: ({ className, ...props
64
64
  declare const EmbeddedChatDynamicComponent: ({ name, props, componentDef, }: EmbeddedChatPrimitive.EmbeddedChatPrimitiveDynamicComponentProps) => import("react/jsx-runtime").JSX.Element;
65
65
  declare const EmbeddedChatMarkdown: ({ componentStyles, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.Markdown>) => import("react/jsx-runtime").JSX.Element;
66
66
  declare const EmbeddedChatMessageToolbar: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.MessageToolbar>) => import("react/jsx-runtime").JSX.Element;
67
- declare const EmbeddedChatMessageAnnotationActions: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.MessageAnnotationActions>) => import("react/jsx-runtime").JSX.Element;
68
- declare const EmbeddedChatMessageAnnotationAction: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.MessageAnnotationAction>) => import("react/jsx-runtime").JSX.Element;
67
+ declare const EmbeddedChatMessageCustomActions: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.MessageCustomActions>) => import("react/jsx-runtime").JSX.Element;
68
+ declare const EmbeddedChatMessageCustomAction: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.MessageCustomAction>) => import("react/jsx-runtime").JSX.Element;
69
69
  declare const EmbeddedChatMessageAction: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.MessageAction>) => import("react/jsx-runtime").JSX.Element;
70
70
  declare const EmbeddedChatMessageSources: (props: ComponentPropsWithRef<ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>>) => import("react/jsx-runtime").JSX.Element | null;
71
71
  declare const EmbeddedChatMessageSourcesHeader: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.MessageSourcesHeader>) => import("react/jsx-runtime").JSX.Element;
@@ -187,4 +187,4 @@ declare const EmbeddedChatFormSuccess: ({ className, ...props }: React.Component
187
187
  declare const EmbeddedChatFormSuccessHeading: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormSuccessHeading>) => import("react/jsx-runtime").JSX.Element;
188
188
  declare const EmbeddedChatFormSuccessMessage: (props: ComponentPropsWithRef<ForwardRefExoticComponent< PolymorphicProps & Omit< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & MarkdownProps, "_id"> & Partial<Pick< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & MarkdownProps, "_id">>>>) => import("react/jsx-runtime").JSX.Element;
189
189
  declare const EmbeddedChatFormSuccessButton: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormSuccessButton>) => import("react/jsx-runtime").JSX.Element;
190
- export { EmbeddedChatProvider as Provider, EmbeddedChatWrapper as Wrapper, EmbeddedChatRoot as Root, EmbeddedChatHeader as Header, EmbeddedChatHeaderToolbar as HeaderToolbar, EmbeddedChatHeaderToolbarWrapper as HeaderToolbarWrapper, EmbeddedChatToolbarHeader as ToolbarHeader, EmbeddedChatContent as Content, EmbeddedChatContentScrollArea as ContentScrollArea, EmbeddedChatContentScrollAreaViewport as ContentScrollAreaViewport, EmbeddedChatContentScrollAreaScrollbar as ContentScrollAreaScrollbar, EmbeddedChatContentScrollAreaThumb as ContentScrollAreaThumb, EmbeddedChatContentScrollAreaCorner as ContentScrollAreaCorner, EmbeddedChatMessages as Messages, EmbeddedChatMessageWrapper as MessageWrapper, EmbeddedChatIntroMessageWrapper as IntroMessageWrapper, EmbeddedChatDisclaimer as Disclaimer, EmbeddedChatDisclaimerLabel as DisclaimerLabel, EmbeddedChatDisclaimerTrigger as DisclaimerTrigger, EmbeddedChatDisclaimerContent as DisclaimerContent, EmbeddedChatDisclaimerText as DisclaimerText, EmbeddedChatDisclaimerArrow as DisclaimerArrow, EmbeddedChatExampleQuestions as ExampleQuestions, EmbeddedChatExampleQuestionsLabel as ExampleQuestionsLabel, EmbeddedChatExampleQuestionsList as ExampleQuestionsList, EmbeddedChatExampleQuestion as ExampleQuestion, EmbeddedChatExampleQuestionButton as ExampleQuestionButton, EmbeddedChatWorkflows as Workflows, EmbeddedChatWorkflowsLabel as WorkflowsLabel, EmbeddedChatWorkflowsList as WorkflowsList, EmbeddedChatWorkflow as Workflow, EmbeddedChatMessageHeader as MessageHeader, EmbeddedChatMessageLoading as MessageLoading, EmbeddedChatMessageAvatar as MessageAvatar, EmbeddedChatMessageAvatarContent as MessageAvatarContent, EmbeddedChatMessageAvatarFallback as MessageAvatarFallback, EmbeddedChatMessageAvatarImage as MessageAvatarImage, EmbeddedChatMessageName as MessageName, EmbeddedChatMessageContentWrapper as MessageContentWrapper, EmbeddedChatMessageContent as MessageContent, EmbeddedChatMessageAttachments as MessageAttachments, EmbeddedChatMessageAttachmentsList as MessageAttachmentsList, EmbeddedChatMessageAttachmentsItem as MessageAttachmentsItem, EmbeddedChatMessageAttachmentsItemIcon as MessageAttachmentsItemIcon, EmbeddedChatMessageAttachmentsItemTitle as MessageAttachmentsItemTitle, EmbeddedChatMessageAttachmentsPreview as MessageAttachmentsPreview, EmbeddedChatMessageAttachmentsPreviewOverlay as MessageAttachmentsPreviewOverlay, EmbeddedChatMessageAttachmentsPreviewContent as MessageAttachmentsPreviewContent, EmbeddedChatMessageAttachmentsPreviewHeader as MessageAttachmentsPreviewHeader, EmbeddedChatMessageAttachmentsPreviewClose as MessageAttachmentsPreviewClose, EmbeddedChatMessageAttachmentsPreviewBody as MessageAttachmentsPreviewBody, EmbeddedChatMarkdown as Markdown, EmbeddedChatDynamicComponent as DynamicComponent, EmbeddedChatMessagePart as MessagePart, EmbeddedChatMessageToolbar as MessageToolbar, EmbeddedChatMessageAnnotationActions as MessageAnnotationActions, EmbeddedChatMessageAnnotationAction as MessageAnnotationAction, EmbeddedChatMessageAction as MessageAction, EmbeddedChatMessageSources as MessageSources, EmbeddedChatMessageSourcesHeader as MessageSourcesHeader, EmbeddedChatMessageSourcesList as MessageSourcesList, EmbeddedChatMessageSourceItem as MessageSourceItem, EmbeddedChatMessageSourceItemBreadcrumbs as MessageSourceItemBreadcrumbs, EmbeddedChatMessageSourceItemBreadcrumbIcon as MessageSourceItemBreadcrumbIcon, EmbeddedChatMessageSourceItemIcon as MessageSourceItemIcon, EmbeddedChatMessageSourceItemTitle as MessageSourceItemTitle, EmbeddedChatMessageSourceItemTag as MessageSourceItemTag, EmbeddedChatMessageSourceItemDescription as MessageSourceItemDescription, EmbeddedChatMessageSourceItemDescriptionPart as MessageSourceItemDescriptionPart, EmbeddedChatMessageSourceItemIndicator as MessageSourceItemIndicator, EmbeddedChatFooter as Footer, EmbeddedChatInputFieldset as InputFieldset, EmbeddedChatInputGroup as InputGroup, EmbeddedChatInput as Input, EmbeddedChatSendButton as SendButton, EmbeddedChatSendButtonIcon as SendButtonIcon, EmbeddedChatAttachmentsBar as AttachmentsBar, EmbeddedChatAttachmentsBarList as AttachmentsBarList, EmbeddedChatAttachmentsBarAttachment as AttachmentsBarAttachment, EmbeddedChatAttachmentsBarAttachmentIcon as AttachmentsBarAttachmentIcon, EmbeddedChatAttachmentsBarAttachmentTitle as AttachmentsBarAttachmentTitle, EmbeddedChatAttachmentsBarAttachmentDelete as AttachmentsBarAttachmentDelete, EmbeddedChatAttachmentsBarActions as AttachmentsBarActions, EmbeddedChatAttachmentsBarInfoTip as AttachmentsBarInfoTip, EmbeddedChatAttachmentsBarInfoTipIcon as AttachmentsBarInfoTipIcon, EmbeddedChatAttachmentsBarInfoTipText as AttachmentsBarInfoTipText, EmbeddedChatAttachmentsBarInfoTipArrow as AttachmentsBarInfoTipArrow, EmbeddedChatAttachmentsBarInputs as AttachmentsBarInputs, EmbeddedChatAttachmentsBarInput as AttachmentsBarInput, EmbeddedChatAttachmentsBarModal as AttachmentsBarModal, EmbeddedChatAttachmentsBarModalOverlay as AttachmentsBarModalOverlay, EmbeddedChatAttachmentsBarModalContent as AttachmentsBarModalContent, EmbeddedChatAttachmentsBarModalHeader as AttachmentsBarModalHeader, EmbeddedChatAttachmentsBarModalHeading as AttachmentsBarModalHeading, EmbeddedChatAttachmentsBarModalDescription as AttachmentsBarModalDescription, EmbeddedChatAttachmentsBarModalHelp as AttachmentsBarModalHelp, EmbeddedChatAttachmentsBarModalClose as AttachmentsBarModalClose, EmbeddedChatAttachmentsBarModalBody as AttachmentsBarModalBody, EmbeddedChatAttachmentsBarForm as AttachmentsBarForm, EmbeddedChatAttachmentsBarFormTitle as AttachmentsBarFormTitle, EmbeddedChatAttachmentsBarFormTitleLabel as AttachmentsBarFormTitleLabel, EmbeddedChatAttachmentsBarFormTitleInput as AttachmentsBarFormTitleInput, EmbeddedChatAttachmentsBarFormTitleError as AttachmentsBarFormTitleError, EmbeddedChatAttachmentsBarFormContent as AttachmentsBarFormContent, EmbeddedChatAttachmentsBarFormContentLabel as AttachmentsBarFormContentLabel, EmbeddedChatAttachmentsBarFormContentInput as AttachmentsBarFormContentInput, EmbeddedChatAttachmentsBarFormContentError as AttachmentsBarFormContentError, EmbeddedChatAttachmentsBarFormSubmitButton as AttachmentsBarFormSubmitButton, EmbeddedChatActionBar as ActionBar, EmbeddedChatActions as Actions, EmbeddedChatTaglineContainer as TaglineContainer, EmbeddedChatTaglineText as TaglineText, EmbeddedChatTaglineLogo as TaglineLogo, EmbeddedChatTaglineBrandName as TaglineBrandName, EmbeddedChatAction as ChatAction, EmbeddedChatActionLabel as ChatActionLabel, EmbeddedChatActionFeedback as ChatActionFeedback, EmbeddedChatHelpActions as HelpActions, EmbeddedChatHelpAction as HelpAction, EmbeddedChatHelpActionsTrigger as HelpActionsTrigger, EmbeddedChatHelpActionsMenu as HelpActionsMenu, EmbeddedChatHelpActionsMenuArrow as HelpActionsMenuArrow, EmbeddedChatHelpActionsMenuItem as HelpActionsMenuItem, EmbeddedChatHelpActionsMenuItemIcon as HelpActionsMenuItemIcon, EmbeddedChatFeedbackModal as FeedbackModal, EmbeddedChatFeedbackModalOverlay as FeedbackModalOverlay, EmbeddedChatFeedbackModalContent as FeedbackModalContent, EmbeddedChatFeedbackModalHeader as FeedbackModalHeader, EmbeddedChatFeedbackModalClose as FeedbackModalClose, EmbeddedChatFeedbackModalBody as FeedbackModalBody, EmbeddedChatFeedbackForm as FeedbackForm, EmbeddedChatFeedbackItem as FeedbackItem, EmbeddedChatFeedbackItemCheckbox as FeedbackItemCheckbox, EmbeddedChatFeedbackItemCheckboxIndicator as FeedbackItemCheckboxIndicator, EmbeddedChatFeedbackItemLabel as FeedbackItemLabel, EmbeddedChatFeedbackItemDescription as FeedbackItemDescription, EmbeddedChatFeedbackSubmitButton as FeedbackSubmitButton, EmbeddedChatFormWrapper as FormWrapper, EmbeddedChatForm as Form, EmbeddedChatFormClose as FormClose, EmbeddedChatFormHeader as FormHeader, EmbeddedChatFormHeading as FormHeading, EmbeddedChatFormDescription as FormDescription, EmbeddedChatFormContent as FormContent, EmbeddedChatFormField as FormField, EmbeddedChatFormFieldLabel as FormFieldLabel, EmbeddedChatFormFieldText as FormFieldText, EmbeddedChatFormFieldEmail as FormFieldEmail, EmbeddedChatFormFieldFile as FormFieldFile, EmbeddedChatFormFieldTextArea as FormFieldTextArea, EmbeddedChatFormFieldCheckbox as FormFieldCheckbox, EmbeddedChatFormFieldCheckboxIndicator as FormFieldCheckboxIndicator, EmbeddedChatFormFieldSelect as FormFieldSelect, EmbeddedChatFormFieldSelectTrigger as FormFieldSelectTrigger, EmbeddedChatFormFieldSelectValue as FormFieldSelectValue, EmbeddedChatFormFieldSelectIcon as FormFieldSelectIcon, EmbeddedChatFormFieldSelectContent as FormFieldSelectContent, EmbeddedChatFormFieldSelectViewport as FormFieldSelectViewport, EmbeddedChatFormFieldSelectItem as FormFieldSelectItem, EmbeddedChatFormFieldSelectItemText as FormFieldSelectItemText, EmbeddedChatFormFieldSelectItemIndicator as FormFieldSelectItemIndicator, EmbeddedChatFormFieldError as FormFieldError, EmbeddedChatFormError as FormError, EmbeddedChatFormFooter as FormFooter, EmbeddedChatFormCancel as FormCancel, EmbeddedChatFormSubmit as FormSubmit, EmbeddedChatFormSuccess as FormSuccess, EmbeddedChatFormSuccessHeading as FormSuccessHeading, EmbeddedChatFormSuccessMessage as FormSuccessMessage, EmbeddedChatFormSuccessButton as FormSuccessButton, };
190
+ export { EmbeddedChatProvider as Provider, EmbeddedChatWrapper as Wrapper, EmbeddedChatRoot as Root, EmbeddedChatHeader as Header, EmbeddedChatHeaderToolbar as HeaderToolbar, EmbeddedChatHeaderToolbarWrapper as HeaderToolbarWrapper, EmbeddedChatToolbarHeader as ToolbarHeader, EmbeddedChatContent as Content, EmbeddedChatContentScrollArea as ContentScrollArea, EmbeddedChatContentScrollAreaViewport as ContentScrollAreaViewport, EmbeddedChatContentScrollAreaScrollbar as ContentScrollAreaScrollbar, EmbeddedChatContentScrollAreaThumb as ContentScrollAreaThumb, EmbeddedChatContentScrollAreaCorner as ContentScrollAreaCorner, EmbeddedChatMessages as Messages, EmbeddedChatMessageWrapper as MessageWrapper, EmbeddedChatIntroMessageWrapper as IntroMessageWrapper, EmbeddedChatDisclaimer as Disclaimer, EmbeddedChatDisclaimerLabel as DisclaimerLabel, EmbeddedChatDisclaimerTrigger as DisclaimerTrigger, EmbeddedChatDisclaimerContent as DisclaimerContent, EmbeddedChatDisclaimerText as DisclaimerText, EmbeddedChatDisclaimerArrow as DisclaimerArrow, EmbeddedChatExampleQuestions as ExampleQuestions, EmbeddedChatExampleQuestionsLabel as ExampleQuestionsLabel, EmbeddedChatExampleQuestionsList as ExampleQuestionsList, EmbeddedChatExampleQuestion as ExampleQuestion, EmbeddedChatExampleQuestionButton as ExampleQuestionButton, EmbeddedChatWorkflows as Workflows, EmbeddedChatWorkflowsLabel as WorkflowsLabel, EmbeddedChatWorkflowsList as WorkflowsList, EmbeddedChatWorkflow as Workflow, EmbeddedChatMessageHeader as MessageHeader, EmbeddedChatMessageLoading as MessageLoading, EmbeddedChatMessageAvatar as MessageAvatar, EmbeddedChatMessageAvatarContent as MessageAvatarContent, EmbeddedChatMessageAvatarFallback as MessageAvatarFallback, EmbeddedChatMessageAvatarImage as MessageAvatarImage, EmbeddedChatMessageName as MessageName, EmbeddedChatMessageContentWrapper as MessageContentWrapper, EmbeddedChatMessageContent as MessageContent, EmbeddedChatMessageAttachments as MessageAttachments, EmbeddedChatMessageAttachmentsList as MessageAttachmentsList, EmbeddedChatMessageAttachmentsItem as MessageAttachmentsItem, EmbeddedChatMessageAttachmentsItemIcon as MessageAttachmentsItemIcon, EmbeddedChatMessageAttachmentsItemTitle as MessageAttachmentsItemTitle, EmbeddedChatMessageAttachmentsPreview as MessageAttachmentsPreview, EmbeddedChatMessageAttachmentsPreviewOverlay as MessageAttachmentsPreviewOverlay, EmbeddedChatMessageAttachmentsPreviewContent as MessageAttachmentsPreviewContent, EmbeddedChatMessageAttachmentsPreviewHeader as MessageAttachmentsPreviewHeader, EmbeddedChatMessageAttachmentsPreviewClose as MessageAttachmentsPreviewClose, EmbeddedChatMessageAttachmentsPreviewBody as MessageAttachmentsPreviewBody, EmbeddedChatMarkdown as Markdown, EmbeddedChatDynamicComponent as DynamicComponent, EmbeddedChatMessagePart as MessagePart, EmbeddedChatMessageToolbar as MessageToolbar, EmbeddedChatMessageCustomActions as MessageCustomActions, EmbeddedChatMessageCustomAction as MessageCustomAction, EmbeddedChatMessageAction as MessageAction, EmbeddedChatMessageSources as MessageSources, EmbeddedChatMessageSourcesHeader as MessageSourcesHeader, EmbeddedChatMessageSourcesList as MessageSourcesList, EmbeddedChatMessageSourceItem as MessageSourceItem, EmbeddedChatMessageSourceItemBreadcrumbs as MessageSourceItemBreadcrumbs, EmbeddedChatMessageSourceItemBreadcrumbIcon as MessageSourceItemBreadcrumbIcon, EmbeddedChatMessageSourceItemIcon as MessageSourceItemIcon, EmbeddedChatMessageSourceItemTitle as MessageSourceItemTitle, EmbeddedChatMessageSourceItemTag as MessageSourceItemTag, EmbeddedChatMessageSourceItemDescription as MessageSourceItemDescription, EmbeddedChatMessageSourceItemDescriptionPart as MessageSourceItemDescriptionPart, EmbeddedChatMessageSourceItemIndicator as MessageSourceItemIndicator, EmbeddedChatFooter as Footer, EmbeddedChatInputFieldset as InputFieldset, EmbeddedChatInputGroup as InputGroup, EmbeddedChatInput as Input, EmbeddedChatSendButton as SendButton, EmbeddedChatSendButtonIcon as SendButtonIcon, EmbeddedChatAttachmentsBar as AttachmentsBar, EmbeddedChatAttachmentsBarList as AttachmentsBarList, EmbeddedChatAttachmentsBarAttachment as AttachmentsBarAttachment, EmbeddedChatAttachmentsBarAttachmentIcon as AttachmentsBarAttachmentIcon, EmbeddedChatAttachmentsBarAttachmentTitle as AttachmentsBarAttachmentTitle, EmbeddedChatAttachmentsBarAttachmentDelete as AttachmentsBarAttachmentDelete, EmbeddedChatAttachmentsBarActions as AttachmentsBarActions, EmbeddedChatAttachmentsBarInfoTip as AttachmentsBarInfoTip, EmbeddedChatAttachmentsBarInfoTipIcon as AttachmentsBarInfoTipIcon, EmbeddedChatAttachmentsBarInfoTipText as AttachmentsBarInfoTipText, EmbeddedChatAttachmentsBarInfoTipArrow as AttachmentsBarInfoTipArrow, EmbeddedChatAttachmentsBarInputs as AttachmentsBarInputs, EmbeddedChatAttachmentsBarInput as AttachmentsBarInput, EmbeddedChatAttachmentsBarModal as AttachmentsBarModal, EmbeddedChatAttachmentsBarModalOverlay as AttachmentsBarModalOverlay, EmbeddedChatAttachmentsBarModalContent as AttachmentsBarModalContent, EmbeddedChatAttachmentsBarModalHeader as AttachmentsBarModalHeader, EmbeddedChatAttachmentsBarModalHeading as AttachmentsBarModalHeading, EmbeddedChatAttachmentsBarModalDescription as AttachmentsBarModalDescription, EmbeddedChatAttachmentsBarModalHelp as AttachmentsBarModalHelp, EmbeddedChatAttachmentsBarModalClose as AttachmentsBarModalClose, EmbeddedChatAttachmentsBarModalBody as AttachmentsBarModalBody, EmbeddedChatAttachmentsBarForm as AttachmentsBarForm, EmbeddedChatAttachmentsBarFormTitle as AttachmentsBarFormTitle, EmbeddedChatAttachmentsBarFormTitleLabel as AttachmentsBarFormTitleLabel, EmbeddedChatAttachmentsBarFormTitleInput as AttachmentsBarFormTitleInput, EmbeddedChatAttachmentsBarFormTitleError as AttachmentsBarFormTitleError, EmbeddedChatAttachmentsBarFormContent as AttachmentsBarFormContent, EmbeddedChatAttachmentsBarFormContentLabel as AttachmentsBarFormContentLabel, EmbeddedChatAttachmentsBarFormContentInput as AttachmentsBarFormContentInput, EmbeddedChatAttachmentsBarFormContentError as AttachmentsBarFormContentError, EmbeddedChatAttachmentsBarFormSubmitButton as AttachmentsBarFormSubmitButton, EmbeddedChatActionBar as ActionBar, EmbeddedChatActions as Actions, EmbeddedChatTaglineContainer as TaglineContainer, EmbeddedChatTaglineText as TaglineText, EmbeddedChatTaglineLogo as TaglineLogo, EmbeddedChatTaglineBrandName as TaglineBrandName, EmbeddedChatAction as ChatAction, EmbeddedChatActionLabel as ChatActionLabel, EmbeddedChatActionFeedback as ChatActionFeedback, EmbeddedChatHelpActions as HelpActions, EmbeddedChatHelpAction as HelpAction, EmbeddedChatHelpActionsTrigger as HelpActionsTrigger, EmbeddedChatHelpActionsMenu as HelpActionsMenu, EmbeddedChatHelpActionsMenuArrow as HelpActionsMenuArrow, EmbeddedChatHelpActionsMenuItem as HelpActionsMenuItem, EmbeddedChatHelpActionsMenuItemIcon as HelpActionsMenuItemIcon, EmbeddedChatFeedbackModal as FeedbackModal, EmbeddedChatFeedbackModalOverlay as FeedbackModalOverlay, EmbeddedChatFeedbackModalContent as FeedbackModalContent, EmbeddedChatFeedbackModalHeader as FeedbackModalHeader, EmbeddedChatFeedbackModalClose as FeedbackModalClose, EmbeddedChatFeedbackModalBody as FeedbackModalBody, EmbeddedChatFeedbackForm as FeedbackForm, EmbeddedChatFeedbackItem as FeedbackItem, EmbeddedChatFeedbackItemCheckbox as FeedbackItemCheckbox, EmbeddedChatFeedbackItemCheckboxIndicator as FeedbackItemCheckboxIndicator, EmbeddedChatFeedbackItemLabel as FeedbackItemLabel, EmbeddedChatFeedbackItemDescription as FeedbackItemDescription, EmbeddedChatFeedbackSubmitButton as FeedbackSubmitButton, EmbeddedChatFormWrapper as FormWrapper, EmbeddedChatForm as Form, EmbeddedChatFormClose as FormClose, EmbeddedChatFormHeader as FormHeader, EmbeddedChatFormHeading as FormHeading, EmbeddedChatFormDescription as FormDescription, EmbeddedChatFormContent as FormContent, EmbeddedChatFormField as FormField, EmbeddedChatFormFieldLabel as FormFieldLabel, EmbeddedChatFormFieldText as FormFieldText, EmbeddedChatFormFieldEmail as FormFieldEmail, EmbeddedChatFormFieldFile as FormFieldFile, EmbeddedChatFormFieldTextArea as FormFieldTextArea, EmbeddedChatFormFieldCheckbox as FormFieldCheckbox, EmbeddedChatFormFieldCheckboxIndicator as FormFieldCheckboxIndicator, EmbeddedChatFormFieldSelect as FormFieldSelect, EmbeddedChatFormFieldSelectTrigger as FormFieldSelectTrigger, EmbeddedChatFormFieldSelectValue as FormFieldSelectValue, EmbeddedChatFormFieldSelectIcon as FormFieldSelectIcon, EmbeddedChatFormFieldSelectContent as FormFieldSelectContent, EmbeddedChatFormFieldSelectViewport as FormFieldSelectViewport, EmbeddedChatFormFieldSelectItem as FormFieldSelectItem, EmbeddedChatFormFieldSelectItemText as FormFieldSelectItemText, EmbeddedChatFormFieldSelectItemIndicator as FormFieldSelectItemIndicator, EmbeddedChatFormFieldError as FormFieldError, EmbeddedChatFormError as FormError, EmbeddedChatFormFooter as FormFooter, EmbeddedChatFormCancel as FormCancel, EmbeddedChatFormSubmit as FormSubmit, EmbeddedChatFormSuccess as FormSuccess, EmbeddedChatFormSuccessHeading as FormSuccessHeading, EmbeddedChatFormSuccessMessage as FormSuccessMessage, EmbeddedChatFormSuccessButton as FormSuccessButton, };
@@ -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 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),A=require("../../primitives/providers/base-events-provider.cjs"),G=require("../../primitives/providers/config-provider.cjs"),K=require("../../primitives/providers/message-provider.cjs"),r=require("../../primitives/components/embedded-chat.cjs"),O=require("../../primitives/components/embedded-chat/chat-provider.cjs"),B=require("merge-anything"),F=require("../utils.cjs"),J=require("./ui/markdown-styles.cjs"),z=require("../../primitives/components/embedded-chat/use-stream-processor.cjs"),H=require("./data-summary-group.cjs"),i=require("react"),Q=require("./embedded-chat.cjs"),k=require("lucide-react"),U=()=>e.jsx("div",{className:"flex space-x-1",children:[0,1,2].map(s=>e.jsx("span",{className:"animate-bounce-dot opacity-30",style:{animationDelay:`${s*.2}s`},children:"."},s))}),w=({name:s,Icon:n,props:y,componentType:p})=>e.jsxs("div",{className:"border rounded-lg bg-gray-50 dark:bg-gray-dark-800 mb-3",children:[e.jsxs("div",{className:"flex justify-between px-4 py-2 text-xs",children:[e.jsxs("div",{className:"font-medium flex items-center gap-2",children:[e.jsx(n,{className:"w-3 h-3 text-gray-600 dark:text-white-alpha-600"}),e.jsx("span",{children:s})]}),e.jsx("div",{className:"flex items-center px-1.5 py-0.5 rounded-md text-2xs uppercase tracking-wider bg-gray-200 dark:bg-white-alpha-200 font-medium text-gray-700 dark:text-white-alpha-700 font-mono",children:p})]}),e.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 font-mono px-4 py-2",children:JSON.stringify(y,null,2)})]}),V=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.ComponentIcon,props:n,componentType:"component"}),W=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.Library,props:n,componentType:"artifact"}),X=({className:s,componentStyles:n,children:y,isLast:p,...S})=>{const{message:c}=K.useMessage(),{logEvent:u}=A.useBaseEvents(),{conversationId:C,isStreaming:D,isLoading:q,setError:M}=O.useChat(),{aiChatSettings:{components:N,artifacts:E}}=G.useInkeepConfig(),L=(D||q)&&p&&c.role==="assistant",{processedParts:$,summaryTimings:_,shouldShowInitialLoading:I,shouldShowStreamDelayLoading:T}=z.useStreamProcessor(c.parts,L,M),f=i.useMemo(()=>c.parts.filter(t=>t.type==="data-artifact"&&t.data?.type?.toLowerCase()==="citation"),[c.parts]),b=i.useMemo(()=>B.merge(J.markdownStyles,n??{}),[n]),j=i.useCallback((t,a)=>{u({eventName:"assistant_message_inline_link_opened",properties:{title:a?.toString(),url:t}})},[u]),v=i.useCallback((t,a)=>{u({eventName:"assistant_code_block_copied",properties:{conversationId:C,language:t,code:a}})},[u,C]),P=i.useCallback(t=>e.jsx(r.EmbeddedChatPrimitiveMarkdown,{text:t,componentStyles:b,onLinkClick:j,onCodeCopy:v,artifacts:f}),[b,j,v,f]),R=i.useMemo(()=>F.cn("data-[role=user]:whitespace-pre-wrap mb-3 data-[role=user]:mb-0 [&[data-role=user]>p]:mb-0 max-w-full",s),[s]);return e.jsxs(e.Fragment,{children:[$.map((t,a)=>{const m={"data-role":c.role,"data-type":t?.type==="data-component"?t.data.type:t?.type,...S,className:R};switch(t?.type){case"text":return e.jsx(r.PrimitiveMessagePart,{...m,children:P(t.text||"")},a);case"data-component":{const{type:d}=t.data;switch(d){case"text":return e.jsx("div",{...m,children:P(t.data.text||"")},a);default:{const g=t.data,{name:o,props:x}=g,l=N?.[o],h=l?r.EmbeddedChatPrimitiveDynamicComponent:V;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:o,props:x,componentDef:l})},`${o}-${a}`)}}}case"data-artifact":{const d=t.data,{name:g,type:o,artifactSummary:x}=d,l=E?.[o],h=l?r.EmbeddedChatPrimitiveDynamicComponent:W;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:o,props:x,componentDef:l})},`${g}-${a}`)}case"summary-group":{const d=_.get(t.groupKey)||{isCompleted:!1};return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(H.DataSummaryGroup,{summaries:t.summaries||[],isCompleted:d.isCompleted})},`${t.groupKey}-${a}`)}default:return null}}),I&&e.jsx(Q.MessageLoading,{}),T&&e.jsx(U,{})]})};exports.EmbeddedChatMessagePart=X;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),G=require("../../primitives/providers/base-events-provider.cjs"),K=require("../../primitives/providers/config-provider.cjs"),O=require("../../primitives/providers/message-provider.cjs"),r=require("../../primitives/components/embedded-chat.cjs"),B=require("../../primitives/components/embedded-chat/chat-provider.cjs"),F=require("merge-anything"),J=require("../utils.cjs"),U=require("./ui/markdown-styles.cjs"),z=require("../../primitives/components/embedded-chat/use-stream-processor.cjs"),H=require("./data-summary-group.cjs"),c=require("react"),Q=require("./embedded-chat.cjs"),k=require("lucide-react"),V=()=>e.jsx("div",{className:"flex space-x-1",children:[0,1,2].map(s=>e.jsx("span",{className:"animate-bounce-dot opacity-30",style:{animationDelay:`${s*.2}s`},children:"."},s))}),w=({name:s,Icon:n,props:y,componentType:p})=>e.jsxs("div",{className:"border rounded-lg bg-gray-50 dark:bg-gray-dark-800 mb-3",children:[e.jsxs("div",{className:"flex justify-between px-4 py-2 text-xs",children:[e.jsxs("div",{className:"font-medium flex items-center gap-2",children:[e.jsx(n,{className:"w-3 h-3 text-gray-600 dark:text-white-alpha-600"}),e.jsx("span",{children:s})]}),e.jsx("div",{className:"flex items-center px-1.5 py-0.5 rounded-md text-2xs uppercase tracking-wider bg-gray-200 dark:bg-white-alpha-200 font-medium text-gray-700 dark:text-white-alpha-700 font-mono",children:p})]}),e.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 font-mono px-4 py-2",children:JSON.stringify(y,null,2)})]}),W=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.ComponentIcon,props:n,componentType:"component"}),X=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.Library,props:n,componentType:"artifact"}),Y=({className:s,componentStyles:n,children:y,isLast:p,...S})=>{const{message:o}=O.useMessage(),{logEvent:u}=G.useBaseEvents(),{conversationId:C,isStreaming:D,isLoading:M,setError:q}=B.useChat(),{aiChatSettings:{components:N,artifacts:E}}=K.useInkeepConfig(),L=o.role==="user",$=(D||M)&&p&&o.role==="assistant",{processedParts:_,summaryTimings:I,shouldShowInitialLoading:T,shouldShowStreamDelayLoading:R}=z.useStreamProcessor(o.parts,$,q),f=c.useMemo(()=>o.parts.filter(t=>t.type==="data-artifact"&&t.data?.type?.toLowerCase()==="citation"),[o.parts]),b=c.useMemo(()=>F.merge(U.markdownStyles,n??{}),[n]),j=c.useCallback((t,a)=>{u({eventName:"assistant_message_inline_link_opened",properties:{title:a?.toString(),url:t}})},[u]),v=c.useCallback((t,a)=>{u({eventName:"assistant_code_block_copied",properties:{conversationId:C,language:t,code:a}})},[u,C]),P=c.useCallback(t=>e.jsx(r.EmbeddedChatPrimitiveMarkdown,{text:t,componentStyles:b,onLinkClick:j,onCodeCopy:v,artifacts:f}),[b,j,v,f]),A=c.useMemo(()=>J.cn("data-[role=user]:whitespace-pre-wrap mb-3 data-[role=user]:mb-0 [&[data-role=user]>p]:mb-0 max-w-full",s),[s]);return e.jsxs(e.Fragment,{children:[_.map((t,a)=>{const m={"data-role":o.role,"data-type":t?.type==="data-component"?t.data.type:t?.type,...S,className:A};switch(t?.type){case"text":return e.jsx(r.PrimitiveMessagePart,{...m,children:L?t.text:P(t.text||"")},a);case"data-component":{const{type:d}=t.data;switch(d){case"text":return e.jsx("div",{...m,children:P(t.data.text||"")},a);default:{const g=t.data,{name:i,props:x}=g,l=N?.[i],h=l?r.EmbeddedChatPrimitiveDynamicComponent:W;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:i,props:x,componentDef:l})},`${i}-${a}`)}}}case"data-artifact":{const d=t.data,{name:g,type:i,artifactSummary:x}=d,l=E?.[i],h=l?r.EmbeddedChatPrimitiveDynamicComponent:X;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:i,props:x,componentDef:l})},`${g}-${a}`)}case"summary-group":{const d=I.get(t.groupKey)||{isCompleted:!1};return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(H.DataSummaryGroup,{summaries:t.summaries||[],isCompleted:d.isCompleted})},`${t.groupKey}-${a}`)}default:return null}}),T&&e.jsx(Q.MessageLoading,{}),R&&e.jsx(V,{})]})};exports.EmbeddedChatMessagePart=Y;
@@ -1,19 +1,19 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as l, Fragment as G } from "react/jsx-runtime";
3
- import { useBaseEvents as J } from "../../primitives/providers/base-events-provider.js";
4
- import { useInkeepConfig as O } from "../../primitives/providers/config-provider.js";
2
+ import { jsx as t, jsxs as l, Fragment as J } from "react/jsx-runtime";
3
+ import { useBaseEvents as O } from "../../primitives/providers/base-events-provider.js";
4
+ import { useInkeepConfig as U } from "../../primitives/providers/config-provider.js";
5
5
  import { useMessage as q } from "../../primitives/providers/message-provider.js";
6
6
  import { EmbeddedChatPrimitiveMarkdown as z, PrimitiveMessagePart as d, EmbeddedChatPrimitiveDynamicComponent as S } from "../../primitives/components/embedded-chat.js";
7
7
  import { useChat as H } from "../../primitives/components/embedded-chat/chat-provider.js";
8
8
  import { merge as Q } from "merge-anything";
9
9
  import { cn as R } from "../utils.js";
10
- import { markdownStyles as U } from "./ui/markdown-styles.js";
11
- import { useStreamProcessor as V } from "../../primitives/components/embedded-chat/use-stream-processor.js";
12
- import { DataSummaryGroup as W } from "./data-summary-group.js";
10
+ import { markdownStyles as V } from "./ui/markdown-styles.js";
11
+ import { useStreamProcessor as W } from "../../primitives/components/embedded-chat/use-stream-processor.js";
12
+ import { DataSummaryGroup as X } from "./data-summary-group.js";
13
13
  import { useMemo as h, useCallback as y } from "react";
14
- import { MessageLoading as X } from "./embedded-chat.js";
15
- import { Library as Y, ComponentIcon as Z } from "lucide-react";
16
- const ee = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", children: [0, 1, 2].map((a) => /* @__PURE__ */ t(
14
+ import { MessageLoading as Y } from "./embedded-chat.js";
15
+ import { Library as Z, ComponentIcon as ee } from "lucide-react";
16
+ const te = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", children: [0, 1, 2].map((a) => /* @__PURE__ */ t(
17
17
  "span",
18
18
  {
19
19
  className: "animate-bounce-dot opacity-30",
@@ -32,22 +32,22 @@ const ee = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", childre
32
32
  /* @__PURE__ */ t("div", { className: "flex items-center px-1.5 py-0.5 rounded-md text-2xs uppercase tracking-wider bg-gray-200 dark:bg-white-alpha-200 font-medium text-gray-700 dark:text-white-alpha-700 font-mono", children: u })
33
33
  ] }),
34
34
  /* @__PURE__ */ t("pre", { className: "whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 font-mono px-4 py-2", children: JSON.stringify(C, null, 2) })
35
- ] }), te = ({ name: a, props: n }) => /* @__PURE__ */ t(N, { name: a, Icon: Z, props: n, componentType: "component" }), ae = ({ name: a, props: n }) => /* @__PURE__ */ t(N, { name: a, Icon: Y, props: n, componentType: "artifact" }), ye = ({
35
+ ] }), ae = ({ name: a, props: n }) => /* @__PURE__ */ t(N, { name: a, Icon: ee, props: n, componentType: "component" }), oe = ({ name: a, props: n }) => /* @__PURE__ */ t(N, { name: a, Icon: Z, props: n, componentType: "artifact" }), Ce = ({
36
36
  className: a,
37
37
  componentStyles: n,
38
38
  children: C,
39
39
  isLast: u,
40
40
  ...L
41
41
  }) => {
42
- const { message: s } = q(), { logEvent: p } = J(), { conversationId: x, isStreaming: M, isLoading: P, setError: E } = H(), {
42
+ const { message: s } = q(), { logEvent: p } = O(), { conversationId: x, isStreaming: M, isLoading: P, setError: E } = H(), {
43
43
  aiChatSettings: { components: _, artifacts: $ }
44
- } = O(), I = (M || P) && u && s.role === "assistant", { processedParts: T, summaryTimings: j, shouldShowInitialLoading: K, shouldShowStreamDelayLoading: A } = V(s.parts, I, E), w = h(
44
+ } = U(), I = s.role === "user", T = (M || P) && u && s.role === "assistant", { processedParts: j, summaryTimings: K, shouldShowInitialLoading: A, shouldShowStreamDelayLoading: B } = W(s.parts, T, E), w = h(
45
45
  () => s.parts.filter(
46
46
  (e) => e.type === "data-artifact" && e.data?.type?.toLowerCase() === "citation"
47
47
  ),
48
48
  [s.parts]
49
49
  ), b = h(
50
- () => Q(U, n ?? {}),
50
+ () => Q(V, n ?? {}),
51
51
  [n]
52
52
  ), k = y(
53
53
  (e, o) => {
@@ -84,48 +84,48 @@ const ee = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", childre
84
84
  }
85
85
  ),
86
86
  [b, k, D, w]
87
- ), B = h(
87
+ ), F = h(
88
88
  () => R(
89
89
  "data-[role=user]:whitespace-pre-wrap mb-3 data-[role=user]:mb-0 [&[data-role=user]>p]:mb-0 max-w-full",
90
90
  a
91
91
  ),
92
92
  [a]
93
93
  );
94
- return /* @__PURE__ */ l(G, { children: [
95
- T.map((e, o) => {
96
- const m = {
94
+ return /* @__PURE__ */ l(J, { children: [
95
+ j.map((e, o) => {
96
+ const i = {
97
97
  "data-role": s.role,
98
98
  "data-type": e?.type === "data-component" ? e.data.type : e?.type,
99
99
  ...L,
100
- className: B
100
+ className: F
101
101
  };
102
102
  switch (e?.type) {
103
103
  case "text":
104
- return /* @__PURE__ */ t(d, { ...m, children: v(e.text || "") }, o);
104
+ return /* @__PURE__ */ t(d, { ...i, children: I ? e.text : v(e.text || "") }, o);
105
105
  case "data-component": {
106
- const { type: i } = e.data;
107
- switch (i) {
106
+ const { type: m } = e.data;
107
+ switch (m) {
108
108
  case "text":
109
- return /* @__PURE__ */ t("div", { ...m, children: v(e.data.text || "") }, o);
109
+ return /* @__PURE__ */ t("div", { ...i, children: v(e.data.text || "") }, o);
110
110
  default: {
111
- const f = e.data, { name: r, props: g } = f, c = _?.[r];
112
- return /* @__PURE__ */ t(d, { ...m, children: /* @__PURE__ */ t(c ? S : te, { name: r, props: g, componentDef: c }) }, `${r}-${o}`);
111
+ const g = e.data, { name: r, props: f } = g, c = _?.[r];
112
+ return /* @__PURE__ */ t(d, { ...i, children: /* @__PURE__ */ t(c ? S : ae, { name: r, props: f, componentDef: c }) }, `${r}-${o}`);
113
113
  }
114
114
  }
115
115
  }
116
116
  case "data-artifact": {
117
- const i = e.data, { name: f, type: r, artifactSummary: g } = i, c = $?.[r];
118
- return /* @__PURE__ */ t(d, { ...m, children: /* @__PURE__ */ t(c ? S : ae, { name: r, props: g, componentDef: c }) }, `${f}-${o}`);
117
+ const m = e.data, { name: g, type: r, artifactSummary: f } = m, c = $?.[r];
118
+ return /* @__PURE__ */ t(d, { ...i, children: /* @__PURE__ */ t(c ? S : oe, { name: r, props: f, componentDef: c }) }, `${g}-${o}`);
119
119
  }
120
120
  case "summary-group": {
121
- const i = j.get(e.groupKey) || {
121
+ const m = K.get(e.groupKey) || {
122
122
  isCompleted: !1
123
123
  };
124
- return /* @__PURE__ */ t(d, { ...m, children: /* @__PURE__ */ t(
125
- W,
124
+ return /* @__PURE__ */ t(d, { ...i, children: /* @__PURE__ */ t(
125
+ X,
126
126
  {
127
127
  summaries: e.summaries || [],
128
- isCompleted: i.isCompleted
128
+ isCompleted: m.isCompleted
129
129
  }
130
130
  ) }, `${e.groupKey}-${o}`);
131
131
  }
@@ -133,10 +133,10 @@ const ee = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", childre
133
133
  return null;
134
134
  }
135
135
  }),
136
- K && /* @__PURE__ */ t(X, {}),
137
- A && /* @__PURE__ */ t(ee, {})
136
+ A && /* @__PURE__ */ t(Y, {}),
137
+ B && /* @__PURE__ */ t(te, {})
138
138
  ] });
139
139
  };
140
140
  export {
141
- ye as EmbeddedChatMessagePart
141
+ Ce as EmbeddedChatMessagePart
142
142
  };
@@ -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.1",
3
+ "version": "0.15.3",
4
4
  "description": "",
5
5
  "homepage": "",
6
6
  "repository": {