@inkeep/agents-ui 0.0.0-dev-20260401193828 → 0.0.0-dev-20260402200940

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 (71) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +78 -77
  3. package/dist/primitives/atoms/dialog.cjs +1 -1
  4. package/dist/primitives/atoms/dialog.js +110 -106
  5. package/dist/primitives/atoms/file-upload.cjs +1 -0
  6. package/dist/primitives/atoms/file-upload.d.ts +35 -0
  7. package/dist/primitives/atoms/file-upload.js +45 -0
  8. package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
  9. package/dist/primitives/atoms/icons/built-in-icons.d.ts +8 -1
  10. package/dist/primitives/atoms/icons/built-in-icons.js +86 -79
  11. package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
  12. package/dist/primitives/atoms/icons/collections/pi.d.ts +6 -0
  13. package/dist/primitives/atoms/icons/collections/pi.js +103 -13
  14. package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
  15. package/dist/primitives/atoms/icons/inkeep-default-icons.js +9 -1
  16. package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -0
  17. package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +68 -0
  18. package/dist/primitives/components/embedded-chat/file-upload-input.js +328 -0
  19. package/dist/primitives/components/embedded-chat/image-preview-modal.cjs +1 -0
  20. package/dist/primitives/components/embedded-chat/image-preview-modal.d.ts +15 -0
  21. package/dist/primitives/components/embedded-chat/image-preview-modal.js +71 -0
  22. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
  23. package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +6 -0
  24. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +282 -237
  25. package/dist/primitives/components/embedded-chat.cjs +5 -5
  26. package/dist/primitives/components/embedded-chat.d.ts +6 -5
  27. package/dist/primitives/components/embedded-chat.js +934 -907
  28. package/dist/primitives/components/embedded-search.d.ts +1 -1
  29. package/dist/primitives/hooks/index.cjs +1 -1
  30. package/dist/primitives/hooks/index.js +15 -14
  31. package/dist/primitives/hooks/use-input-notification.cjs +1 -0
  32. package/dist/primitives/hooks/use-input-notification.d.ts +9 -0
  33. package/dist/primitives/hooks/use-input-notification.js +18 -0
  34. package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -1
  35. package/dist/primitives/hooks/use-scrolling-fades.d.ts +1 -0
  36. package/dist/primitives/hooks/use-scrolling-fades.js +21 -5
  37. package/dist/primitives/index.cjs +1 -1
  38. package/dist/primitives/index.js +69 -68
  39. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  40. package/dist/primitives/providers/base-events-provider.js +1 -1
  41. package/dist/primitives/providers/image-preview-provider.cjs +1 -0
  42. package/dist/primitives/providers/image-preview-provider.d.ts +15 -0
  43. package/dist/primitives/providers/image-preview-provider.js +23 -0
  44. package/dist/primitives/utils/component-ids.cjs +1 -1
  45. package/dist/primitives/utils/component-ids.d.ts +54 -0
  46. package/dist/primitives/utils/component-ids.js +37 -10
  47. package/dist/react/embedded-chat.cjs +1 -1
  48. package/dist/react/embedded-chat.js +305 -260
  49. package/dist/react/index.cjs +1 -1
  50. package/dist/react/index.js +78 -77
  51. package/dist/styled/components/chat-history.cjs +1 -1
  52. package/dist/styled/components/chat-history.d.ts +1 -1
  53. package/dist/styled/components/chat-history.js +31 -29
  54. package/dist/styled/components/embedded-chat/file-upload-input.cjs +1 -0
  55. package/dist/styled/components/embedded-chat/file-upload-input.d.ts +20 -0
  56. package/dist/styled/components/embedded-chat/file-upload-input.js +300 -0
  57. package/dist/styled/components/embedded-chat/image-preview-modal.cjs +1 -0
  58. package/dist/styled/components/embedded-chat/image-preview-modal.d.ts +11 -0
  59. package/dist/styled/components/embedded-chat/image-preview-modal.js +77 -0
  60. package/dist/styled/components/embedded-chat.cjs +1 -1
  61. package/dist/styled/components/embedded-chat.d.ts +2 -0
  62. package/dist/styled/components/embedded-chat.js +479 -449
  63. package/dist/styled/components/message.cjs +1 -1
  64. package/dist/styled/components/message.js +89 -88
  65. package/dist/styled/index.cjs +1 -1
  66. package/dist/styled/index.js +77 -76
  67. package/dist/styled/inkeep.css.cjs +253 -7
  68. package/dist/styled/inkeep.css.js +253 -7
  69. package/dist/types/icons/built-in.d.ts +1 -1
  70. package/dist/types/icons/custom.d.ts +8 -0
  71. package/package.json +7 -6
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./embedded-chat.cjs"),H=require("./sidebar-chat.cjs"),l=require("./embedded-search-and-chat.cjs"),d=require("./embedded-search.cjs"),$=require("./modal.chat.cjs"),T=require("./modal.search-and-chat.cjs"),D=require("./modal.search.cjs"),p=require("./modal.cjs"),I=require("./chat-button.cjs"),O=require("./chat-button-modal.cjs"),b=require("./searchbar.cjs"),W=require("../styled/components/embedded-chat.cjs"),x=require("../styled/components/chat-history.cjs"),z=require("../styled/components/sidebar-chat.cjs"),L=require("../styled/components/chat-bubble.cjs"),j=require("../styled/components/embedded-search.cjs"),G=require("../styled/components/modal.cjs"),Q=require("../styled/components/chat-button.cjs"),U=require("../styled/components/searchbar.cjs"),_=require("../styled/components/shadow.cjs"),K=require("../styled/components/loading-indicator.cjs"),N=require("../styled/components/ui/recipes/widget-toggle.cjs"),V=require("../styled/components/message.cjs"),J=require("../styled/components/data-summary-group.cjs"),S=require("../primitives/providers/attachment-item-provider.cjs"),P=require("../primitives/providers/attachments-bar-provider.cjs"),v=require("../primitives/providers/base-events-provider.cjs"),u=require("../primitives/providers/chat-form-provider.cjs"),q=require("../primitives/providers/chat-history-provider.cjs"),m=require("../primitives/providers/config-provider.cjs"),k=require("../primitives/providers/feedback-item-provider.cjs"),M=require("../primitives/providers/feedback-provider.cjs"),g=require("../primitives/providers/form-field-provider.cjs"),c=require("../primitives/providers/help-menu-provider.cjs"),B=require("../primitives/providers/markdown-provider.cjs"),y=require("../primitives/providers/message-attachments-provider.cjs"),h=require("../primitives/providers/message-provider.cjs"),X=require("../primitives/providers/root-provider.cjs"),E=require("../primitives/providers/source-item-provider.cjs"),Y=require("../primitives/providers/theme-provider.cjs"),F=require("../primitives/providers/widget-provider.cjs"),n=require("../primitives/providers/sidebar-chat-provider.cjs"),s=require("../primitives/providers/chat-bubble-provider.cjs"),A=require("../primitives/components/factory.cjs"),Z=require("../primitives/components/embedded-chat.cjs"),ee=require("../primitives/components/sidebar-chat/index.cjs"),w=require("../primitives/components/embedded-chat/chat-provider.cjs"),re=require("../primitives/components/embedded-search.cjs"),C=require("../primitives/components/embedded-search/search-provider.cjs"),oe=require("../primitives/components/modal.cjs"),f=require("../primitives/components/modal/modal-provider.cjs"),te=require("../primitives/components/chat-button.cjs"),ae=require("../primitives/components/searchbar.cjs"),de=require("../primitives/components/chat-bubble/index.cjs"),ne=require("../primitives/components/data-summaries.cjs"),se=require("../primitives/components/chat-history/index.cjs"),ie=require("../primitives/hooks/use-boolean.cjs"),ue=require("../primitives/hooks/use-component-classnames.cjs"),me=require("../primitives/hooks/use-container-size.cjs"),ce=require("../primitives/hooks/use-inkeep-open-state.cjs"),he=require("../primitives/hooks/use-copy-to-clipboard.cjs"),Ce=require("../primitives/hooks/use-instant-update.cjs"),le=require("../primitives/hooks/use-is-mounted.cjs"),pe=require("../primitives/hooks/use-media-query.cjs"),Ie=require("../primitives/hooks/use-resize-observer.cjs"),be=require("../primitives/hooks/use-scrolling-fades.cjs"),Se=require("../primitives/hooks/use-settle-action.cjs"),Pe=require("../primitives/hooks/use-simple-scroll.cjs"),o=require("../primitives/utils/misc.cjs"),e=require("../primitives/utils/component-ids.cjs"),R=require("../primitives/utils/compose-refs.cjs"),ve=require("../primitives/utils/merge-props.cjs"),qe=require("../primitives/atoms/portal.cjs"),ke=require("../primitives/atoms/icons/custom-icon.cjs"),Me=require("../primitives/atoms/icons/built-in-icon-renderer.cjs"),ge=require("../primitives/atoms/portal-with-theme.cjs"),r=require("../primitives/atoms/cmdk/index.cjs"),Be=require("../primitives/atoms/error-boundary.cjs"),t=require("../color-mode/index.cjs"),i=require("../primitives/atoms/shadow/context.cjs");exports.InkeepEmbeddedChat=a.InkeepEmbeddedChat;exports.InkeepEmbeddedChatImpl=a.InkeepEmbeddedChatImpl;exports.InkeepEmbeddedChatImplContent=a.InkeepEmbeddedChatImplContent;exports.InkeepEmbeddedChatProvider=a.InkeepEmbeddedChatProvider;exports.InkeepSidebarChat=H.InkeepSidebarChat;exports.InkeepEmbeddedSearchAndChat=l.InkeepEmbeddedSearchAndChat;exports.InkeepEmbeddedSearchAndChatImpl=l.InkeepEmbeddedSearchAndChatImpl;exports.InkeepEmbeddedSearch=d.InkeepEmbeddedSearch;exports.InkeepEmbeddedSearchImpl=d.InkeepEmbeddedSearchImpl;exports.InkeepEmbeddedSearchImplContent=d.InkeepEmbeddedSearchImplContent;exports.InkeepEmbeddedSearchProvider=d.InkeepEmbeddedSearchProvider;exports.InkeepModalChat=$.InkeepModalChat;exports.InkeepModalSearchAndChat=T.InkeepModalSearchAndChat;exports.InkeepModalSearch=D.InkeepModalSearch;exports.InkeepModal=p.InkeepModal;exports.ModalContent=p.ModalContent;exports.ChatButtonImpl=I.ChatButtonImpl;exports.InkeepChatButton=I.InkeepChatButton;exports.InkeepChatButtonModal=O.InkeepChatButtonModal;exports.InkeepSearchBar=b.InkeepSearchBar;exports.SearchBarImpl=b.SearchBarImpl;exports.EmbeddedChat=W;exports.ChatHistory=x;exports.SidebarChat=z;exports.ChatBubble=L;exports.EmbeddedSearch=j;exports.Modal=G;exports.ChatButton=Q;exports.SearchBar=U;exports.Shadow=_.Shadow;exports.LoadingIndicator=K.LoadingIndicator;exports.widgetToggle=N.widgetToggle;exports.EmbeddedChatMessagePart=V.EmbeddedChatMessagePart;exports.DataSummaryGroup=J.DataSummaryGroup;exports.AttachmentItemProvider=S.AttachmentItemProvider;exports.useAttachmentItem=S.useAttachmentItem;exports.AttachmentsBarProvider=P.AttachmentsBarProvider;exports.useAttachmentsBar=P.useAttachmentsBar;exports.BaseEventsProvider=v.BaseEventsProvider;exports.useBaseEvents=v.useBaseEvents;exports.ChatFormProvider=u.ChatFormProvider;exports.useChatForm=u.useChatForm;exports.useChatFormState=u.useChatFormState;exports.ChatHistoryProvider=q.ChatHistoryProvider;exports.useChatHistory=q.useChatHistory;exports.InkeepConfigProvider=m.InkeepConfigProvider;exports.WebWidgetInteractionType=m.WebWidgetInteractionType;exports.useInkeepConfig=m.useInkeepConfig;exports.FeedbackItemProvider=k.FeedbackItemProvider;exports.useFeedbackItem=k.useFeedbackItem;exports.FeedbackProvider=M.FeedbackProvider;exports.useMessageFeedback=M.useMessageFeedback;exports.FormFieldProvider=g.FormFieldProvider;exports.useFormField=g.useFormField;exports.HelpMenuProvider=c.HelpMenuProvider;exports.useHelpMenu=c.useHelpMenu;exports.useHelpMenuState=c.useHelpMenuState;exports.ChatMarkdownProvider=B.ChatMarkdownProvider;exports.useChatMarkdown=B.useChatMarkdown;exports.MessageAttachmentsProvider=y.MessageAttachmentsProvider;exports.useMessageAttachments=y.useMessageAttachments;exports.MessageProvider=h.MessageProvider;exports.useMessage=h.useMessage;exports.useOptionalMessage=h.useOptionalMessage;exports.RootProvider=X.RootProvider;exports.SourceItemProvider=E.SourceItemProvider;exports.useSourceItem=E.useSourceItem;exports.ThemeProvider=Y.ThemeProvider;exports.WidgetProvider=F.WidgetProvider;exports.useWidget=F.useWidget;exports.SidebarChatProvider=n.SidebarChatProvider;exports.useInkeepSidebarChat=n.useInkeepSidebarChat;exports.useOptionalSidebarChat=n.useOptionalSidebarChat;exports.useSidebarChat=n.useSidebarChat;exports.ChatBubbleProvider=s.ChatBubbleProvider;exports.useChatBubble=s.useChatBubble;exports.useInkeepChatBubble=s.useInkeepChatBubble;exports.useOptionalChatBubble=s.useOptionalChatBubble;exports.ikp=A.ikp;exports.jsxFactory=A.jsxFactory;exports.EmbeddedChatPrimitive=Z;exports.SidebarChatPrimitive=ee;exports.ChatProvider=w.ChatProvider;exports.useChat=w.useChat;exports.EmbeddedSearchPrimitive=re;exports.SearchProvider=C.SearchProvider;exports.SearchProviderImpl=C.SearchProviderImpl;exports.useSearch=C.useSearch;exports.ModalPrimitive=oe;exports.ModalProvider=f.ModalProvider;exports.useModal=f.useModal;exports.ChatButtonPrimitive=te;exports.SearchBarPrimitive=ae;exports.ChatBubblePrimitive=de;exports.DataSummaryPrimitive=ne;exports.ChatHistoryPrimitive=se;exports.useBoolean=ie.useBoolean;exports.useComponentClassNames=ue.useComponentClassNames;exports.useContainerSize=me.useContainerSize;exports.useInkeepOpenState=ce.useInkeepOpenState;exports.useCopyToClipboard=he.useCopyToClipboard;exports.useInstantUpdate=Ce.useInstantUpdate;exports.useIsMounted=le.useIsMounted;exports.useMediaQuery=pe.useMediaQuery;exports.useResizeObserver=Ie.useResizeObserver;exports.useScrollingFades=be.useScrollingFades;exports.useSettleAction=Se.useSettleAction;exports.useSimpleScroll=Pe.useSimpleScroll;exports.callAll=o.callAll;exports.dataAttr=o.dataAttr;exports.getInitials=o.getInitials;exports.getMessageContent=o.getMessageContent;exports.isString=o.isString;exports.maybeRender=o.maybeRender;exports.toKebabCase=o.toKebabCase;exports.ChatBubbleComponentIds=e.ChatBubbleComponentIds;exports.DataSummaryComponentIds=e.DataSummaryComponentIds;exports.SearchBarComponentIds=e.SearchBarComponentIds;exports.SidebarChatComponentIds=e.SidebarChatComponentIds;exports.aiChatComponentIds=e.aiChatComponentIds;exports.aiChatHistoryComponentIds=e.aiChatHistoryComponentIds;exports.aiSearchComponentIds=e.aiSearchComponentIds;exports.chatButtonComponentIds=e.chatButtonComponentIds;exports.componentIDs=e.componentIDs;exports.markDownComponentIds=e.markDownComponentIds;exports.miscellanousComponentIds=e.miscellanousComponentIds;exports.modalComponentIds=e.modalComponentIds;exports.composeRefs=R.composeRefs;exports.useComposedRefs=R.useComposedRefs;exports.mergeProps=ve.mergeProps;exports.Portal=qe.Portal;exports.CustomIcon=ke.CustomIcon;exports.BuiltInIconRenderer=Me.BuiltInIconRenderer;exports.PortalWithTheme=ge.PortalWithTheme;exports.Command=r.Command;exports.CommandDialog=r.CommandDialog;exports.CommandEmpty=r.CommandEmpty;exports.CommandInput=r.CommandInput;exports.CommandItem=r.CommandItem;exports.CommandList=r.CommandList;exports.CommandLoading=r.CommandLoading;exports.CommandRoot=r.CommandRoot;exports.CommandSeparator=r.CommandSeparator;exports.defaultFilter=r.defaultFilter;exports.useCommandState=r.useCommandState;exports.useCommandStore=r.useCommandStore;exports.ErrorBoundary=Be.ErrorBoundary;exports.ColorMode=t.ColorMode;exports.ColorModeProvider=t.ColorModeProvider;exports.DarkModeProvider=t.DarkModeProvider;exports.useColorMode=t.useColorMode;exports.useColorModeValue=t.useColorModeValue;exports.InkeepShadow=i.InkeepShadow;exports.InkeepShadowProvider=i.InkeepShadowProvider;exports.ShadowContext=i.ShadowContext;exports.useShadow=i.useShadow;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./embedded-chat.cjs"),$=require("./sidebar-chat.cjs"),l=require("./embedded-search-and-chat.cjs"),d=require("./embedded-search.cjs"),T=require("./modal.chat.cjs"),D=require("./modal.search-and-chat.cjs"),O=require("./modal.search.cjs"),p=require("./modal.cjs"),I=require("./chat-button.cjs"),W=require("./chat-button-modal.cjs"),b=require("./searchbar.cjs"),x=require("../styled/components/embedded-chat.cjs"),z=require("../styled/components/chat-history.cjs"),L=require("../styled/components/sidebar-chat.cjs"),j=require("../styled/components/chat-bubble.cjs"),G=require("../styled/components/embedded-search.cjs"),Q=require("../styled/components/modal.cjs"),U=require("../styled/components/chat-button.cjs"),_=require("../styled/components/searchbar.cjs"),K=require("../styled/components/shadow.cjs"),N=require("../styled/components/loading-indicator.cjs"),V=require("../styled/components/ui/recipes/widget-toggle.cjs"),J=require("../styled/components/message.cjs"),X=require("../styled/components/data-summary-group.cjs"),S=require("../primitives/providers/attachment-item-provider.cjs"),P=require("../primitives/providers/attachments-bar-provider.cjs"),v=require("../primitives/providers/base-events-provider.cjs"),u=require("../primitives/providers/chat-form-provider.cjs"),q=require("../primitives/providers/chat-history-provider.cjs"),m=require("../primitives/providers/config-provider.cjs"),k=require("../primitives/providers/feedback-item-provider.cjs"),g=require("../primitives/providers/feedback-provider.cjs"),M=require("../primitives/providers/form-field-provider.cjs"),c=require("../primitives/providers/help-menu-provider.cjs"),B=require("../primitives/providers/markdown-provider.cjs"),y=require("../primitives/providers/message-attachments-provider.cjs"),h=require("../primitives/providers/message-provider.cjs"),Y=require("../primitives/providers/root-provider.cjs"),E=require("../primitives/providers/source-item-provider.cjs"),Z=require("../primitives/providers/theme-provider.cjs"),F=require("../primitives/providers/widget-provider.cjs"),n=require("../primitives/providers/sidebar-chat-provider.cjs"),s=require("../primitives/providers/chat-bubble-provider.cjs"),A=require("../primitives/components/factory.cjs"),ee=require("../primitives/components/embedded-chat.cjs"),re=require("../primitives/components/sidebar-chat/index.cjs"),w=require("../primitives/components/embedded-chat/chat-provider.cjs"),oe=require("../primitives/components/embedded-search.cjs"),C=require("../primitives/components/embedded-search/search-provider.cjs"),te=require("../primitives/components/modal.cjs"),H=require("../primitives/components/modal/modal-provider.cjs"),ae=require("../primitives/components/chat-button.cjs"),de=require("../primitives/components/searchbar.cjs"),ne=require("../primitives/components/chat-bubble/index.cjs"),se=require("../primitives/components/data-summaries.cjs"),ie=require("../primitives/components/chat-history/index.cjs"),ue=require("../primitives/hooks/use-boolean.cjs"),me=require("../primitives/hooks/use-component-classnames.cjs"),ce=require("../primitives/hooks/use-container-size.cjs"),he=require("../primitives/hooks/use-inkeep-open-state.cjs"),Ce=require("../primitives/hooks/use-copy-to-clipboard.cjs"),le=require("../primitives/hooks/use-instant-update.cjs"),pe=require("../primitives/hooks/use-is-mounted.cjs"),Ie=require("../primitives/hooks/use-media-query.cjs"),be=require("../primitives/hooks/use-resize-observer.cjs"),f=require("../primitives/hooks/use-scrolling-fades.cjs"),Se=require("../primitives/hooks/use-settle-action.cjs"),Pe=require("../primitives/hooks/use-simple-scroll.cjs"),o=require("../primitives/utils/misc.cjs"),e=require("../primitives/utils/component-ids.cjs"),R=require("../primitives/utils/compose-refs.cjs"),ve=require("../primitives/utils/merge-props.cjs"),qe=require("../primitives/atoms/portal.cjs"),ke=require("../primitives/atoms/icons/custom-icon.cjs"),ge=require("../primitives/atoms/icons/built-in-icon-renderer.cjs"),Me=require("../primitives/atoms/portal-with-theme.cjs"),r=require("../primitives/atoms/cmdk/index.cjs"),Be=require("../primitives/atoms/error-boundary.cjs"),t=require("../color-mode/index.cjs"),i=require("../primitives/atoms/shadow/context.cjs");exports.InkeepEmbeddedChat=a.InkeepEmbeddedChat;exports.InkeepEmbeddedChatImpl=a.InkeepEmbeddedChatImpl;exports.InkeepEmbeddedChatImplContent=a.InkeepEmbeddedChatImplContent;exports.InkeepEmbeddedChatProvider=a.InkeepEmbeddedChatProvider;exports.InkeepSidebarChat=$.InkeepSidebarChat;exports.InkeepEmbeddedSearchAndChat=l.InkeepEmbeddedSearchAndChat;exports.InkeepEmbeddedSearchAndChatImpl=l.InkeepEmbeddedSearchAndChatImpl;exports.InkeepEmbeddedSearch=d.InkeepEmbeddedSearch;exports.InkeepEmbeddedSearchImpl=d.InkeepEmbeddedSearchImpl;exports.InkeepEmbeddedSearchImplContent=d.InkeepEmbeddedSearchImplContent;exports.InkeepEmbeddedSearchProvider=d.InkeepEmbeddedSearchProvider;exports.InkeepModalChat=T.InkeepModalChat;exports.InkeepModalSearchAndChat=D.InkeepModalSearchAndChat;exports.InkeepModalSearch=O.InkeepModalSearch;exports.InkeepModal=p.InkeepModal;exports.ModalContent=p.ModalContent;exports.ChatButtonImpl=I.ChatButtonImpl;exports.InkeepChatButton=I.InkeepChatButton;exports.InkeepChatButtonModal=W.InkeepChatButtonModal;exports.InkeepSearchBar=b.InkeepSearchBar;exports.SearchBarImpl=b.SearchBarImpl;exports.EmbeddedChat=x;exports.ChatHistory=z;exports.SidebarChat=L;exports.ChatBubble=j;exports.EmbeddedSearch=G;exports.Modal=Q;exports.ChatButton=U;exports.SearchBar=_;exports.Shadow=K.Shadow;exports.LoadingIndicator=N.LoadingIndicator;exports.widgetToggle=V.widgetToggle;exports.EmbeddedChatMessagePart=J.EmbeddedChatMessagePart;exports.DataSummaryGroup=X.DataSummaryGroup;exports.AttachmentItemProvider=S.AttachmentItemProvider;exports.useAttachmentItem=S.useAttachmentItem;exports.AttachmentsBarProvider=P.AttachmentsBarProvider;exports.useAttachmentsBar=P.useAttachmentsBar;exports.BaseEventsProvider=v.BaseEventsProvider;exports.useBaseEvents=v.useBaseEvents;exports.ChatFormProvider=u.ChatFormProvider;exports.useChatForm=u.useChatForm;exports.useChatFormState=u.useChatFormState;exports.ChatHistoryProvider=q.ChatHistoryProvider;exports.useChatHistory=q.useChatHistory;exports.InkeepConfigProvider=m.InkeepConfigProvider;exports.WebWidgetInteractionType=m.WebWidgetInteractionType;exports.useInkeepConfig=m.useInkeepConfig;exports.FeedbackItemProvider=k.FeedbackItemProvider;exports.useFeedbackItem=k.useFeedbackItem;exports.FeedbackProvider=g.FeedbackProvider;exports.useMessageFeedback=g.useMessageFeedback;exports.FormFieldProvider=M.FormFieldProvider;exports.useFormField=M.useFormField;exports.HelpMenuProvider=c.HelpMenuProvider;exports.useHelpMenu=c.useHelpMenu;exports.useHelpMenuState=c.useHelpMenuState;exports.ChatMarkdownProvider=B.ChatMarkdownProvider;exports.useChatMarkdown=B.useChatMarkdown;exports.MessageAttachmentsProvider=y.MessageAttachmentsProvider;exports.useMessageAttachments=y.useMessageAttachments;exports.MessageProvider=h.MessageProvider;exports.useMessage=h.useMessage;exports.useOptionalMessage=h.useOptionalMessage;exports.RootProvider=Y.RootProvider;exports.SourceItemProvider=E.SourceItemProvider;exports.useSourceItem=E.useSourceItem;exports.ThemeProvider=Z.ThemeProvider;exports.WidgetProvider=F.WidgetProvider;exports.useWidget=F.useWidget;exports.SidebarChatProvider=n.SidebarChatProvider;exports.useInkeepSidebarChat=n.useInkeepSidebarChat;exports.useOptionalSidebarChat=n.useOptionalSidebarChat;exports.useSidebarChat=n.useSidebarChat;exports.ChatBubbleProvider=s.ChatBubbleProvider;exports.useChatBubble=s.useChatBubble;exports.useInkeepChatBubble=s.useInkeepChatBubble;exports.useOptionalChatBubble=s.useOptionalChatBubble;exports.ikp=A.ikp;exports.jsxFactory=A.jsxFactory;exports.EmbeddedChatPrimitive=ee;exports.SidebarChatPrimitive=re;exports.ChatProvider=w.ChatProvider;exports.useChat=w.useChat;exports.EmbeddedSearchPrimitive=oe;exports.SearchProvider=C.SearchProvider;exports.SearchProviderImpl=C.SearchProviderImpl;exports.useSearch=C.useSearch;exports.ModalPrimitive=te;exports.ModalProvider=H.ModalProvider;exports.useModal=H.useModal;exports.ChatButtonPrimitive=ae;exports.SearchBarPrimitive=de;exports.ChatBubblePrimitive=ne;exports.DataSummaryPrimitive=se;exports.ChatHistoryPrimitive=ie;exports.useBoolean=ue.useBoolean;exports.useComponentClassNames=me.useComponentClassNames;exports.useContainerSize=ce.useContainerSize;exports.useInkeepOpenState=he.useInkeepOpenState;exports.useCopyToClipboard=Ce.useCopyToClipboard;exports.useInstantUpdate=le.useInstantUpdate;exports.useIsMounted=pe.useIsMounted;exports.useMediaQuery=Ie.useMediaQuery;exports.useResizeObserver=be.useResizeObserver;exports.useScrollingFades=f.useScrollingFades;exports.useScrollingFadesHorizontal=f.useScrollingFadesHorizontal;exports.useSettleAction=Se.useSettleAction;exports.useSimpleScroll=Pe.useSimpleScroll;exports.callAll=o.callAll;exports.dataAttr=o.dataAttr;exports.getInitials=o.getInitials;exports.getMessageContent=o.getMessageContent;exports.isString=o.isString;exports.maybeRender=o.maybeRender;exports.toKebabCase=o.toKebabCase;exports.ChatBubbleComponentIds=e.ChatBubbleComponentIds;exports.DataSummaryComponentIds=e.DataSummaryComponentIds;exports.SearchBarComponentIds=e.SearchBarComponentIds;exports.SidebarChatComponentIds=e.SidebarChatComponentIds;exports.aiChatComponentIds=e.aiChatComponentIds;exports.aiChatHistoryComponentIds=e.aiChatHistoryComponentIds;exports.aiSearchComponentIds=e.aiSearchComponentIds;exports.chatButtonComponentIds=e.chatButtonComponentIds;exports.componentIDs=e.componentIDs;exports.markDownComponentIds=e.markDownComponentIds;exports.miscellanousComponentIds=e.miscellanousComponentIds;exports.modalComponentIds=e.modalComponentIds;exports.composeRefs=R.composeRefs;exports.useComposedRefs=R.useComposedRefs;exports.mergeProps=ve.mergeProps;exports.Portal=qe.Portal;exports.CustomIcon=ke.CustomIcon;exports.BuiltInIconRenderer=ge.BuiltInIconRenderer;exports.PortalWithTheme=Me.PortalWithTheme;exports.Command=r.Command;exports.CommandDialog=r.CommandDialog;exports.CommandEmpty=r.CommandEmpty;exports.CommandInput=r.CommandInput;exports.CommandItem=r.CommandItem;exports.CommandList=r.CommandList;exports.CommandLoading=r.CommandLoading;exports.CommandRoot=r.CommandRoot;exports.CommandSeparator=r.CommandSeparator;exports.defaultFilter=r.defaultFilter;exports.useCommandState=r.useCommandState;exports.useCommandStore=r.useCommandStore;exports.ErrorBoundary=Be.ErrorBoundary;exports.ColorMode=t.ColorMode;exports.ColorModeProvider=t.ColorModeProvider;exports.DarkModeProvider=t.DarkModeProvider;exports.useColorMode=t.useColorMode;exports.useColorModeValue=t.useColorModeValue;exports.InkeepShadow=i.InkeepShadow;exports.InkeepShadowProvider=i.InkeepShadowProvider;exports.ShadowContext=i.ShadowContext;exports.useShadow=i.useShadow;
@@ -1,11 +1,11 @@
1
1
  import { InkeepEmbeddedChat as c, InkeepEmbeddedChatImpl as S, InkeepEmbeddedChatImplContent as P, InkeepEmbeddedChatProvider as v } from "./embedded-chat.js";
2
2
  import { InkeepSidebarChat as M } from "./sidebar-chat.js";
3
3
  import { InkeepEmbeddedSearchAndChat as g, InkeepEmbeddedSearchAndChatImpl as E } from "./embedded-search-and-chat.js";
4
- import { InkeepEmbeddedSearch as F, InkeepEmbeddedSearchImpl as A, InkeepEmbeddedSearchImplContent as w, InkeepEmbeddedSearchProvider as H } from "./embedded-search.js";
4
+ import { InkeepEmbeddedSearch as F, InkeepEmbeddedSearchImpl as A, InkeepEmbeddedSearchImplContent as H, InkeepEmbeddedSearchProvider as w } from "./embedded-search.js";
5
5
  import { InkeepModalChat as R } from "./modal.chat.js";
6
6
  import { InkeepModalSearchAndChat as O } from "./modal.search-and-chat.js";
7
7
  import { InkeepModalSearch as W } from "./modal.search.js";
8
- import { InkeepModal as z, ModalContent as j } from "./modal.js";
8
+ import { InkeepModal as L, ModalContent as j } from "./modal.js";
9
9
  import { ChatButtonImpl as K, InkeepChatButton as N } from "./chat-button.js";
10
10
  import { InkeepChatButtonModal as U } from "./chat-button-modal.js";
11
11
  import { InkeepSearchBar as q, SearchBarImpl as J } from "./searchbar.js";
@@ -29,10 +29,10 @@ import { ChatFormProvider as le, useChatForm as Ie, useChatFormState as be } fro
29
29
  import { ChatHistoryProvider as Se, useChatHistory as Pe } from "../primitives/providers/chat-history-provider.js";
30
30
  import { InkeepConfigProvider as ke, WebWidgetInteractionType as Me, useInkeepConfig as Be } from "../primitives/providers/config-provider.js";
31
31
  import { FeedbackItemProvider as Ee, useFeedbackItem as ye } from "../primitives/providers/feedback-item-provider.js";
32
- import { FeedbackProvider as Ae, useMessageFeedback as we } from "../primitives/providers/feedback-provider.js";
32
+ import { FeedbackProvider as Ae, useMessageFeedback as He } from "../primitives/providers/feedback-provider.js";
33
33
  import { FormFieldProvider as De, useFormField as Re } from "../primitives/providers/form-field-provider.js";
34
34
  import { HelpMenuProvider as Oe, useHelpMenu as Te, useHelpMenuState as We } from "../primitives/providers/help-menu-provider.js";
35
- import { ChatMarkdownProvider as ze, useChatMarkdown as je } from "../primitives/providers/markdown-provider.js";
35
+ import { ChatMarkdownProvider as Le, useChatMarkdown as je } from "../primitives/providers/markdown-provider.js";
36
36
  import { MessageAttachmentsProvider as Ke, useMessageAttachments as Ne } from "../primitives/providers/message-attachments-provider.js";
37
37
  import { MessageProvider as Ue, useMessage as Ve, useOptionalMessage as qe } from "../primitives/providers/message-provider.js";
38
38
  import { RootProvider as Xe } from "../primitives/providers/root-provider.js";
@@ -55,36 +55,36 @@ import * as x from "../primitives/components/chat-bubble/index.js";
55
55
  import * as u from "../primitives/components/data-summaries.js";
56
56
  import * as l from "../primitives/components/chat-history/index.js";
57
57
  import { useBoolean as Ao } from "../primitives/hooks/use-boolean.js";
58
- import { useComponentClassNames as Ho } from "../primitives/hooks/use-component-classnames.js";
58
+ import { useComponentClassNames as wo } from "../primitives/hooks/use-component-classnames.js";
59
59
  import { useContainerSize as Ro } from "../primitives/hooks/use-container-size.js";
60
60
  import { useInkeepOpenState as Oo } from "../primitives/hooks/use-inkeep-open-state.js";
61
61
  import { useCopyToClipboard as Wo } from "../primitives/hooks/use-copy-to-clipboard.js";
62
- import { useInstantUpdate as zo } from "../primitives/hooks/use-instant-update.js";
62
+ import { useInstantUpdate as Lo } from "../primitives/hooks/use-instant-update.js";
63
63
  import { useIsMounted as Go } from "../primitives/hooks/use-is-mounted.js";
64
64
  import { useMediaQuery as No } from "../primitives/hooks/use-media-query.js";
65
65
  import { useResizeObserver as Uo } from "../primitives/hooks/use-resize-observer.js";
66
- import { useScrollingFades as qo } from "../primitives/hooks/use-scrolling-fades.js";
67
- import { useSettleAction as Xo } from "../primitives/hooks/use-settle-action.js";
68
- import { useSimpleScroll as Zo } from "../primitives/hooks/use-simple-scroll.js";
69
- import { callAll as er, dataAttr as or, getInitials as rr, getMessageContent as tr, isString as ar, maybeRender as mr, toKebabCase as dr } from "../primitives/utils/misc.js";
70
- import { ChatBubbleComponentIds as sr, DataSummaryComponentIds as ir, SearchBarComponentIds as nr, SidebarChatComponentIds as hr, aiChatComponentIds as Cr, aiChatHistoryComponentIds as fr, aiSearchComponentIds as xr, chatButtonComponentIds as ur, componentIDs as lr, markDownComponentIds as Ir, miscellanousComponentIds as br, modalComponentIds as cr } from "../primitives/utils/component-ids.js";
71
- import { composeRefs as Pr, useComposedRefs as vr } from "../primitives/utils/compose-refs.js";
72
- import { mergeProps as Mr } from "../primitives/utils/merge-props.js";
73
- import { Portal as gr } from "../primitives/atoms/portal.js";
74
- import { CustomIcon as yr } from "../primitives/atoms/icons/custom-icon.js";
75
- import { BuiltInIconRenderer as Ar } from "../primitives/atoms/icons/built-in-icon-renderer.js";
76
- import { PortalWithTheme as Hr } from "../primitives/atoms/portal-with-theme.js";
77
- import { Command as Rr, CommandDialog as $r, CommandEmpty as Or, CommandInput as Tr, CommandItem as Wr, CommandList as Lr, CommandLoading as zr, CommandRoot as jr, CommandSeparator as Gr, defaultFilter as Kr, useCommandState as Nr, useCommandStore as Qr } from "../primitives/atoms/cmdk/index.js";
78
- import { ErrorBoundary as Vr } from "../primitives/atoms/error-boundary.js";
79
- import { ColorMode as Jr, ColorModeProvider as Xr, DarkModeProvider as Yr, useColorMode as Zr, useColorModeValue as _r } from "../color-mode/index.js";
80
- import { InkeepShadow as ot, InkeepShadowProvider as rt, ShadowContext as tt, useShadow as at } from "../primitives/atoms/shadow/context.js";
66
+ import { useScrollingFades as qo, useScrollingFadesHorizontal as Jo } from "../primitives/hooks/use-scrolling-fades.js";
67
+ import { useSettleAction as Yo } from "../primitives/hooks/use-settle-action.js";
68
+ import { useSimpleScroll as _o } from "../primitives/hooks/use-simple-scroll.js";
69
+ import { callAll as or, dataAttr as rr, getInitials as tr, getMessageContent as ar, isString as mr, maybeRender as dr, toKebabCase as pr } from "../primitives/utils/misc.js";
70
+ import { ChatBubbleComponentIds as ir, DataSummaryComponentIds as nr, SearchBarComponentIds as hr, SidebarChatComponentIds as Cr, aiChatComponentIds as fr, aiChatHistoryComponentIds as xr, aiSearchComponentIds as ur, chatButtonComponentIds as lr, componentIDs as Ir, markDownComponentIds as br, miscellanousComponentIds as cr, modalComponentIds as Sr } from "../primitives/utils/component-ids.js";
71
+ import { composeRefs as vr, useComposedRefs as kr } from "../primitives/utils/compose-refs.js";
72
+ import { mergeProps as Br } from "../primitives/utils/merge-props.js";
73
+ import { Portal as Er } from "../primitives/atoms/portal.js";
74
+ import { CustomIcon as Fr } from "../primitives/atoms/icons/custom-icon.js";
75
+ import { BuiltInIconRenderer as Hr } from "../primitives/atoms/icons/built-in-icon-renderer.js";
76
+ import { PortalWithTheme as Dr } from "../primitives/atoms/portal-with-theme.js";
77
+ import { Command as $r, CommandDialog as Or, CommandEmpty as Tr, CommandInput as Wr, CommandItem as zr, CommandList as Lr, CommandLoading as jr, CommandRoot as Gr, CommandSeparator as Kr, defaultFilter as Nr, useCommandState as Qr, useCommandStore as Ur } from "../primitives/atoms/cmdk/index.js";
78
+ import { ErrorBoundary as qr } from "../primitives/atoms/error-boundary.js";
79
+ import { ColorMode as Xr, ColorModeProvider as Yr, DarkModeProvider as Zr, useColorMode as _r, useColorModeValue as et } from "../color-mode/index.js";
80
+ import { InkeepShadow as rt, InkeepShadowProvider as tt, ShadowContext as at, useShadow as mt } from "../primitives/atoms/shadow/context.js";
81
81
  export {
82
82
  pe as AttachmentItemProvider,
83
83
  ne as AttachmentsBarProvider,
84
84
  fe as BaseEventsProvider,
85
- Ar as BuiltInIconRenderer,
85
+ Hr as BuiltInIconRenderer,
86
86
  t as ChatBubble,
87
- sr as ChatBubbleComponentIds,
87
+ ir as ChatBubbleComponentIds,
88
88
  x as ChatBubblePrimitive,
89
89
  Co as ChatBubbleProvider,
90
90
  d as ChatButton,
@@ -94,22 +94,22 @@ export {
94
94
  o as ChatHistory,
95
95
  l as ChatHistoryPrimitive,
96
96
  Se as ChatHistoryProvider,
97
- ze as ChatMarkdownProvider,
97
+ Le as ChatMarkdownProvider,
98
98
  So as ChatProvider,
99
- Jr as ColorMode,
100
- Xr as ColorModeProvider,
101
- Rr as Command,
102
- $r as CommandDialog,
103
- Or as CommandEmpty,
104
- Tr as CommandInput,
105
- Wr as CommandItem,
99
+ Xr as ColorMode,
100
+ Yr as ColorModeProvider,
101
+ $r as Command,
102
+ Or as CommandDialog,
103
+ Tr as CommandEmpty,
104
+ Wr as CommandInput,
105
+ zr as CommandItem,
106
106
  Lr as CommandList,
107
- zr as CommandLoading,
108
- jr as CommandRoot,
109
- Gr as CommandSeparator,
110
- yr as CustomIcon,
111
- Yr as DarkModeProvider,
112
- ir as DataSummaryComponentIds,
107
+ jr as CommandLoading,
108
+ Gr as CommandRoot,
109
+ Kr as CommandSeparator,
110
+ Fr as CustomIcon,
111
+ Zr as DarkModeProvider,
112
+ nr as DataSummaryComponentIds,
113
113
  me as DataSummaryGroup,
114
114
  u as DataSummaryPrimitive,
115
115
  e as EmbeddedChat,
@@ -117,7 +117,7 @@ export {
117
117
  s as EmbeddedChatPrimitive,
118
118
  a as EmbeddedSearch,
119
119
  n as EmbeddedSearchPrimitive,
120
- Vr as ErrorBoundary,
120
+ qr as ErrorBoundary,
121
121
  Ee as FeedbackItemProvider,
122
122
  Ae as FeedbackProvider,
123
123
  De as FormFieldProvider,
@@ -133,15 +133,15 @@ export {
133
133
  g as InkeepEmbeddedSearchAndChat,
134
134
  E as InkeepEmbeddedSearchAndChatImpl,
135
135
  A as InkeepEmbeddedSearchImpl,
136
- w as InkeepEmbeddedSearchImplContent,
137
- H as InkeepEmbeddedSearchProvider,
138
- z as InkeepModal,
136
+ H as InkeepEmbeddedSearchImplContent,
137
+ w as InkeepEmbeddedSearchProvider,
138
+ L as InkeepModal,
139
139
  R as InkeepModalChat,
140
140
  W as InkeepModalSearch,
141
141
  O as InkeepModalSearchAndChat,
142
142
  q as InkeepSearchBar,
143
- ot as InkeepShadow,
144
- rt as InkeepShadowProvider,
143
+ rt as InkeepShadow,
144
+ tt as InkeepShadowProvider,
145
145
  M as InkeepSidebarChat,
146
146
  _ as LoadingIndicator,
147
147
  Ke as MessageAttachmentsProvider,
@@ -150,45 +150,45 @@ export {
150
150
  j as ModalContent,
151
151
  h as ModalPrimitive,
152
152
  Eo as ModalProvider,
153
- gr as Portal,
154
- Hr as PortalWithTheme,
153
+ Er as Portal,
154
+ Dr as PortalWithTheme,
155
155
  Xe as RootProvider,
156
156
  p as SearchBar,
157
- nr as SearchBarComponentIds,
157
+ hr as SearchBarComponentIds,
158
158
  J as SearchBarImpl,
159
159
  f as SearchBarPrimitive,
160
160
  ko as SearchProvider,
161
161
  Mo as SearchProviderImpl,
162
162
  Y as Shadow,
163
- tt as ShadowContext,
163
+ at as ShadowContext,
164
164
  r as SidebarChat,
165
- hr as SidebarChatComponentIds,
165
+ Cr as SidebarChatComponentIds,
166
166
  i as SidebarChatPrimitive,
167
167
  po as SidebarChatProvider,
168
168
  Ze as SourceItemProvider,
169
169
  oo as ThemeProvider,
170
170
  Me as WebWidgetInteractionType,
171
171
  to as WidgetProvider,
172
- Cr as aiChatComponentIds,
173
- fr as aiChatHistoryComponentIds,
174
- xr as aiSearchComponentIds,
175
- er as callAll,
176
- ur as chatButtonComponentIds,
177
- lr as componentIDs,
178
- Pr as composeRefs,
179
- or as dataAttr,
180
- Kr as defaultFilter,
181
- rr as getInitials,
182
- tr as getMessageContent,
172
+ fr as aiChatComponentIds,
173
+ xr as aiChatHistoryComponentIds,
174
+ ur as aiSearchComponentIds,
175
+ or as callAll,
176
+ lr as chatButtonComponentIds,
177
+ Ir as componentIDs,
178
+ vr as composeRefs,
179
+ rr as dataAttr,
180
+ Nr as defaultFilter,
181
+ tr as getInitials,
182
+ ar as getMessageContent,
183
183
  Io as ikp,
184
- ar as isString,
184
+ mr as isString,
185
185
  bo as jsxFactory,
186
- Ir as markDownComponentIds,
187
- mr as maybeRender,
188
- Mr as mergeProps,
189
- br as miscellanousComponentIds,
190
- cr as modalComponentIds,
191
- dr as toKebabCase,
186
+ br as markDownComponentIds,
187
+ dr as maybeRender,
188
+ Br as mergeProps,
189
+ cr as miscellanousComponentIds,
190
+ Sr as modalComponentIds,
191
+ pr as toKebabCase,
192
192
  se as useAttachmentItem,
193
193
  he as useAttachmentsBar,
194
194
  xe as useBaseEvents,
@@ -199,12 +199,12 @@ export {
199
199
  be as useChatFormState,
200
200
  Pe as useChatHistory,
201
201
  je as useChatMarkdown,
202
- Zr as useColorMode,
203
- _r as useColorModeValue,
204
- Nr as useCommandState,
205
- Qr as useCommandStore,
206
- Ho as useComponentClassNames,
207
- vr as useComposedRefs,
202
+ _r as useColorMode,
203
+ et as useColorModeValue,
204
+ Qr as useCommandState,
205
+ Ur as useCommandStore,
206
+ wo as useComponentClassNames,
207
+ kr as useComposedRefs,
208
208
  Ro as useContainerSize,
209
209
  Wo as useCopyToClipboard,
210
210
  ye as useFeedbackItem,
@@ -215,23 +215,24 @@ export {
215
215
  Be as useInkeepConfig,
216
216
  Oo as useInkeepOpenState,
217
217
  so as useInkeepSidebarChat,
218
- zo as useInstantUpdate,
218
+ Lo as useInstantUpdate,
219
219
  Go as useIsMounted,
220
220
  No as useMediaQuery,
221
221
  Ve as useMessage,
222
222
  Ne as useMessageAttachments,
223
- we as useMessageFeedback,
223
+ He as useMessageFeedback,
224
224
  yo as useModal,
225
225
  uo as useOptionalChatBubble,
226
226
  qe as useOptionalMessage,
227
227
  io as useOptionalSidebarChat,
228
228
  Uo as useResizeObserver,
229
229
  qo as useScrollingFades,
230
+ Jo as useScrollingFadesHorizontal,
230
231
  Bo as useSearch,
231
- Xo as useSettleAction,
232
- at as useShadow,
232
+ Yo as useSettleAction,
233
+ mt as useShadow,
233
234
  no as useSidebarChat,
234
- Zo as useSimpleScroll,
235
+ _o as useSimpleScroll,
235
236
  _e as useSourceItem,
236
237
  ao as useWidget,
237
238
  oe as widgetToggle
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("../../primitives/components/chat-history/index.cjs"),o=require("../utils.cjs"),d=require("./ui/recipes/button.cjs");function h(t){const e=Date.now()-t.getTime(),i=Math.floor(e/(1e3*60)),s=Math.floor(e/(1e3*60*60)),n=Math.floor(e/(1e3*60*60*24));return i<1?"Just now":i<60?`${i}m ago`:s<24?`${s}h ago`:n<7?t.toLocaleDateString("en-US",{weekday:"short"}):t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}const c=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveRoot,{className:o.cn("flex flex-col flex-1 min-h-0 w-full rounded-[inherit] font-body","data-[hidden]:hidden","group-data-[chat-history-layout=sidepane]/chat-history:basis-64","group-data-[chat-history-layout=sidepane]/chat-history:w-64","group-data-[chat-history-layout=sidepane]/chat-history:max-w-64","group-data-[chat-history-layout=sidepane]/chat-history:shrink-0","group-data-[chat-history-layout=sidepane]/chat-history:grow-0","group-data-[chat-history-layout=sidepane]/chat-history:border-r","group-data-[chat-history-layout=sidepane]/chat-history:border-gray-200","dark:group-data-[chat-history-layout=sidepane]/chat-history:border-gray-dark-800",t),...e}),l=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveHeader,{className:o.cn("flex items-center justify-between shrink-0","px-3 py-3 relative","after:absolute after:left-0 after:top-full after:h-3 after:w-full after:text-white after:dark:text-gray-dark-950 after:bg-[linear-gradient(currentColor,_transparent)] after:z-start",t),...e}),y=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveBackButtonIcon,{className:o.cn("text-sm",t),...e}),m=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveBackButton,{className:o.cn(d.button({size:"xs",variant:"ghost"}),"gap-1.5 text-gray-600 hover:text-gray-800 dark:text-white dark:opacity-60 dark:hover:text-white dark:hover:opacity-95","group-data-[chat-history-layout=sidepane]/chat-history:!hidden",t),...e}),u=({className:t,children:e,...i})=>a.jsx(r.ChatHistoryPrimitiveTitle,{className:o.cn("pl-2 text-sm font-normal text-gray-600 dark:text-white-alpha-600","group-data-[chat-history-layout=stack]/chat-history:!hidden",t),...i,children:e??"Chats"}),f=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveList,{className:o.cn("flex-1 min-h-0 overflow-y-auto [scrollbar-width:thin] px-2 py-3 space-y-0.5",t),...e}),b=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveItem,{className:o.cn("flex flex-col gap-0.5 w-full text-left px-3 py-2 rounded-lg","hover:bg-gray-50 dark:hover:bg-gray-dark-900","focus-visible:outline-none focus-visible:bg-gray-50 dark:focus-visible:bg-gray-dark-900","data-[active]:bg-gray-100 dark:data-[active]:bg-gray-dark-800","transition-colors cursor-pointer",t),...e}),g=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveItemTitle,{className:o.cn("text-sm text-gray-800 dark:text-white-alpha-950 truncate w-full block",t),...e}),p=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveItemDate,{className:o.cn("text-xs text-gray-500 dark:text-white-alpha-500",t),...e}),x=({className:t,children:e,...i})=>a.jsx(r.ChatHistoryPrimitiveEmptyState,{className:o.cn("flex flex-col items-center justify-center flex-1 py-2 h-full","text-sm text-gray-500 dark:text-white-alpha-500",t),...i,children:e??"No conversations yet."}),C=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveLoadingState,{className:o.cn("flex flex-col px-3 py-2 gap-3",t),...e,children:[1,2,3].map(i=>a.jsx("div",{className:"h-14 w-full rounded-lg bg-gray-100 dark:bg-gray-dark-800 animate-pulse"},i))}),H=({className:t,...e})=>a.jsx(r.ChatHistoryPrimitiveFooter,{className:o.cn("shrink-0 px-5 py-4 relative","before:absolute before:block before:top-0 before:left-0 before:pointer-events-none before:w-full before:h-3 before:bg-[linear-gradient(transparent,_white)] dark:before:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))] before:-translate-y-full",t),...e}),k=({className:t,children:e,...i})=>a.jsx(r.ChatHistoryPrimitiveNewConversationButton,{className:o.cn(d.button({variant:"primaryFilled"}),"w-full shrink-0",t),...i,children:e??"New conversation"});exports.EmbeddedChatHistoryBackButton=m;exports.EmbeddedChatHistoryBackButtonIcon=y;exports.EmbeddedChatHistoryEmptyState=x;exports.EmbeddedChatHistoryFooter=H;exports.EmbeddedChatHistoryHeader=l;exports.EmbeddedChatHistoryItem=b;exports.EmbeddedChatHistoryItemDate=p;exports.EmbeddedChatHistoryItemTitle=g;exports.EmbeddedChatHistoryList=f;exports.EmbeddedChatHistoryLoadingState=C;exports.EmbeddedChatHistoryNewConversationButton=k;exports.EmbeddedChatHistoryRoot=c;exports.EmbeddedChatHistoryTitle=u;exports.formatSessionDate=h;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("../../primitives/components/chat-history/index.cjs"),i=require("../utils.cjs"),d=require("./ui/recipes/button.cjs");function h(t){const e=Date.now()-t.getTime(),r=Math.floor(e/(1e3*60)),s=Math.floor(e/(1e3*60*60)),n=Math.floor(e/(1e3*60*60*24));return r<1?"Just now":r<60?`${r}m ago`:s<24?`${s}h ago`:n<7?t.toLocaleDateString("en-US",{weekday:"short"}):t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}const c=({className:t,...e})=>a.jsx(o.ChatHistoryPrimitiveRoot,{className:i.cn("flex flex-col flex-1 min-h-0 w-full rounded-[inherit] font-body","data-[hidden]:hidden","group-data-[chat-history-layout=sidepane]/chat-history:basis-64","group-data-[chat-history-layout=sidepane]/chat-history:w-64","group-data-[chat-history-layout=sidepane]/chat-history:max-w-64","group-data-[chat-history-layout=sidepane]/chat-history:shrink-0","group-data-[chat-history-layout=sidepane]/chat-history:grow-0","group-data-[chat-history-layout=sidepane]/chat-history:border-r","group-data-[chat-history-layout=sidepane]/chat-history:border-gray-200","dark:group-data-[chat-history-layout=sidepane]/chat-history:border-gray-dark-800",t),...e}),l=({className:t,...e})=>a.jsx(o.ChatHistoryPrimitiveHeader,{className:i.cn("flex items-center justify-between shrink-0","px-3 py-3 relative","after:absolute after:left-0 after:top-full after:h-3 after:w-full after:text-white after:dark:text-gray-dark-950 after:bg-[linear-gradient(currentColor,_transparent)] after:z-start",t),...e}),y=({className:t,...e})=>a.jsx(o.ChatHistoryPrimitiveBackButtonIcon,{className:i.cn("text-sm",t),...e}),m=({className:t,...e})=>a.jsx(o.ChatHistoryPrimitiveBackButton,{className:i.cn(d.button({size:"xs",variant:"ghost"}),"gap-1.5 text-gray-600 hover:text-gray-800 dark:text-white dark:opacity-60 dark:hover:text-white dark:hover:opacity-95","group-data-[chat-history-layout=sidepane]/chat-history:!hidden",t),...e}),u=({className:t,children:e,...r})=>a.jsx(o.ChatHistoryPrimitiveTitle,{className:i.cn("pl-2 text-sm font-normal text-gray-600 dark:text-white-alpha-600","group-data-[chat-history-layout=stack]/chat-history:!hidden",t),...r,children:e??"Chats"}),f=({className:t,...e})=>a.jsx(o.ChatHistoryPrimitiveList,{className:i.cn("flex-1 min-h-0 overflow-y-auto [scrollbar-width:thin] px-2 py-3 space-y-0.5",t),...e}),b=({className:t,...e})=>a.jsx(o.ChatHistoryPrimitiveItem,{className:i.cn("flex flex-col gap-0.5 w-full text-left px-3 py-2 rounded-lg","hover:bg-gray-50 dark:hover:bg-gray-dark-900","focus-visible:outline-none focus-visible:bg-gray-50 dark:focus-visible:bg-gray-dark-900","data-[active]:bg-gray-100 dark:data-[active]:bg-gray-dark-800","transition-colors cursor-pointer",t),...e}),g=({className:t,children:e,...r})=>a.jsx(o.ChatHistoryPrimitiveItemTitle,{className:i.cn("text-sm text-gray-800 dark:text-white-alpha-950 truncate w-full block",t),...r,children:e||a.jsx("span",{className:"text-gray-500 dark:text-white-alpha-500",children:"No message"})}),x=({className:t,...e})=>a.jsx(o.ChatHistoryPrimitiveItemDate,{className:i.cn("text-xs text-gray-500 dark:text-white-alpha-500",t),...e}),p=({className:t,children:e,...r})=>a.jsx(o.ChatHistoryPrimitiveEmptyState,{className:i.cn("flex flex-col items-center justify-center flex-1 py-2 h-full","text-sm text-gray-500 dark:text-white-alpha-500",t),...r,children:e??"No conversations yet."}),C=({className:t,...e})=>a.jsx(o.ChatHistoryPrimitiveLoadingState,{className:i.cn("flex flex-col px-3 py-2 gap-3",t),...e,children:[1,2,3].map(r=>a.jsx("div",{className:"h-14 w-full rounded-lg bg-gray-100 dark:bg-gray-dark-800 animate-pulse"},r))}),H=({className:t,...e})=>a.jsx(o.ChatHistoryPrimitiveFooter,{className:i.cn("shrink-0 px-5 py-4 relative","before:absolute before:block before:top-0 before:left-0 before:pointer-events-none before:w-full before:h-3 before:bg-[linear-gradient(transparent,_white)] dark:before:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))] before:-translate-y-full",t),...e}),k=({className:t,children:e,...r})=>a.jsx(o.ChatHistoryPrimitiveNewConversationButton,{className:i.cn(d.button({variant:"primaryFilled"}),"w-full shrink-0",t),...r,children:e??"New conversation"});exports.EmbeddedChatHistoryBackButton=m;exports.EmbeddedChatHistoryBackButtonIcon=y;exports.EmbeddedChatHistoryEmptyState=p;exports.EmbeddedChatHistoryFooter=H;exports.EmbeddedChatHistoryHeader=l;exports.EmbeddedChatHistoryItem=b;exports.EmbeddedChatHistoryItemDate=x;exports.EmbeddedChatHistoryItemTitle=g;exports.EmbeddedChatHistoryList=f;exports.EmbeddedChatHistoryLoadingState=C;exports.EmbeddedChatHistoryNewConversationButton=k;exports.EmbeddedChatHistoryRoot=c;exports.EmbeddedChatHistoryTitle=u;exports.formatSessionDate=h;
@@ -7,7 +7,7 @@ export declare const EmbeddedChatHistoryBackButton: ({ className, ...props }: Re
7
7
  export declare const EmbeddedChatHistoryTitle: ({ className, children, ...props }: React.ComponentPropsWithRef<typeof ChatHistoryPrimitive.Title>) => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const EmbeddedChatHistoryList: ({ className, ...props }: React.ComponentPropsWithRef<typeof ChatHistoryPrimitive.List>) => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const EmbeddedChatHistoryItem: ({ className, ...props }: React.ComponentPropsWithRef<typeof ChatHistoryPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
10
- export declare const EmbeddedChatHistoryItemTitle: ({ className, ...props }: React.ComponentPropsWithRef<typeof ChatHistoryPrimitive.ItemTitle>) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const EmbeddedChatHistoryItemTitle: ({ className, children, ...props }: React.ComponentPropsWithRef<typeof ChatHistoryPrimitive.ItemTitle>) => import("react/jsx-runtime").JSX.Element;
11
11
  export declare const EmbeddedChatHistoryItemDate: ({ className, ...props }: React.ComponentPropsWithRef<typeof ChatHistoryPrimitive.ItemDate>) => import("react/jsx-runtime").JSX.Element;
12
12
  export declare const EmbeddedChatHistoryEmptyState: ({ className, children, ...props }: React.ComponentPropsWithRef<typeof ChatHistoryPrimitive.EmptyState>) => import("react/jsx-runtime").JSX.Element;
13
13
  export declare const EmbeddedChatHistoryLoadingState: ({ className, ...props }: React.ComponentPropsWithRef<typeof ChatHistoryPrimitive.LoadingState>) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as a } from "react/jsx-runtime";
3
- import { ChatHistoryPrimitiveRoot as n, ChatHistoryPrimitiveHeader as h, ChatHistoryPrimitiveBackButtonIcon as l, ChatHistoryPrimitiveBackButton as y, ChatHistoryPrimitiveTitle as c, ChatHistoryPrimitiveList as m, ChatHistoryPrimitiveItem as f, ChatHistoryPrimitiveItemTitle as u, ChatHistoryPrimitiveItemDate as p, ChatHistoryPrimitiveEmptyState as g, ChatHistoryPrimitiveLoadingState as b, ChatHistoryPrimitiveFooter as x, ChatHistoryPrimitiveNewConversationButton as k } from "../../primitives/components/chat-history/index.js";
4
- import { cn as r } from "../utils.js";
3
+ import { ChatHistoryPrimitiveRoot as n, ChatHistoryPrimitiveHeader as h, ChatHistoryPrimitiveBackButtonIcon as l, ChatHistoryPrimitiveBackButton as c, ChatHistoryPrimitiveTitle as y, ChatHistoryPrimitiveList as m, ChatHistoryPrimitiveItem as f, ChatHistoryPrimitiveItemTitle as u, ChatHistoryPrimitiveItemDate as p, ChatHistoryPrimitiveEmptyState as g, ChatHistoryPrimitiveLoadingState as b, ChatHistoryPrimitiveFooter as x, ChatHistoryPrimitiveNewConversationButton as k } from "../../primitives/components/chat-history/index.js";
4
+ import { cn as o } from "../utils.js";
5
5
  import { button as s } from "./ui/recipes/button.js";
6
6
  function N(t) {
7
- const e = Date.now() - t.getTime(), o = Math.floor(e / (1e3 * 60)), i = Math.floor(e / (1e3 * 60 * 60)), d = Math.floor(e / (1e3 * 60 * 60 * 24));
8
- return o < 1 ? "Just now" : o < 60 ? `${o}m ago` : i < 24 ? `${i}h ago` : d < 7 ? t.toLocaleDateString("en-US", { weekday: "short" }) : t.toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
7
+ const e = Date.now() - t.getTime(), r = Math.floor(e / (1e3 * 60)), i = Math.floor(e / (1e3 * 60 * 60)), d = Math.floor(e / (1e3 * 60 * 60 * 24));
8
+ return r < 1 ? "Just now" : r < 60 ? `${r}m ago` : i < 24 ? `${i}h ago` : d < 7 ? t.toLocaleDateString("en-US", { weekday: "short" }) : t.toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
9
9
  }
10
10
  const E = ({
11
11
  className: t,
@@ -13,7 +13,7 @@ const E = ({
13
13
  }) => /* @__PURE__ */ a(
14
14
  n,
15
15
  {
16
- className: r(
16
+ className: o(
17
17
  "flex flex-col flex-1 min-h-0 w-full rounded-[inherit] font-body",
18
18
  "data-[hidden]:hidden",
19
19
  "group-data-[chat-history-layout=sidepane]/chat-history:basis-64",
@@ -34,7 +34,7 @@ const E = ({
34
34
  }) => /* @__PURE__ */ a(
35
35
  h,
36
36
  {
37
- className: r(
37
+ className: o(
38
38
  "flex items-center justify-between shrink-0",
39
39
  "px-3 py-3 relative",
40
40
  "after:absolute after:left-0 after:top-full after:h-3 after:w-full after:text-white after:dark:text-gray-dark-950 after:bg-[linear-gradient(currentColor,_transparent)] after:z-start",
@@ -45,13 +45,13 @@ const E = ({
45
45
  ), B = ({
46
46
  className: t,
47
47
  ...e
48
- }) => /* @__PURE__ */ a(l, { className: r("text-sm", t), ...e }), S = ({
48
+ }) => /* @__PURE__ */ a(l, { className: o("text-sm", t), ...e }), S = ({
49
49
  className: t,
50
50
  ...e
51
51
  }) => /* @__PURE__ */ a(
52
- y,
52
+ c,
53
53
  {
54
- className: r(
54
+ className: o(
55
55
  s({ size: "xs", variant: "ghost" }),
56
56
  "gap-1.5 text-gray-600 hover:text-gray-800 dark:text-white dark:opacity-60 dark:hover:text-white dark:hover:opacity-95",
57
57
  "group-data-[chat-history-layout=sidepane]/chat-history:!hidden",
@@ -62,16 +62,16 @@ const E = ({
62
62
  ), I = ({
63
63
  className: t,
64
64
  children: e,
65
- ...o
65
+ ...r
66
66
  }) => /* @__PURE__ */ a(
67
- c,
67
+ y,
68
68
  {
69
- className: r(
69
+ className: o(
70
70
  "pl-2 text-sm font-normal text-gray-600 dark:text-white-alpha-600",
71
71
  "group-data-[chat-history-layout=stack]/chat-history:!hidden",
72
72
  t
73
73
  ),
74
- ...o,
74
+ ...r,
75
75
  children: e ?? "Chats"
76
76
  }
77
77
  ), D = ({
@@ -80,7 +80,7 @@ const E = ({
80
80
  }) => /* @__PURE__ */ a(
81
81
  m,
82
82
  {
83
- className: r(
83
+ className: o(
84
84
  "flex-1 min-h-0 overflow-y-auto [scrollbar-width:thin] px-2 py-3 space-y-0.5",
85
85
  t
86
86
  ),
@@ -92,7 +92,7 @@ const E = ({
92
92
  }) => /* @__PURE__ */ a(
93
93
  f,
94
94
  {
95
- className: r(
95
+ className: o(
96
96
  "flex flex-col gap-0.5 w-full text-left px-3 py-2 rounded-lg",
97
97
  "hover:bg-gray-50 dark:hover:bg-gray-dark-900",
98
98
  "focus-visible:outline-none focus-visible:bg-gray-50 dark:focus-visible:bg-gray-dark-900",
@@ -104,15 +104,17 @@ const E = ({
104
104
  }
105
105
  ), M = ({
106
106
  className: t,
107
- ...e
107
+ children: e,
108
+ ...r
108
109
  }) => /* @__PURE__ */ a(
109
110
  u,
110
111
  {
111
- className: r(
112
+ className: o(
112
113
  "text-sm text-gray-800 dark:text-white-alpha-950 truncate w-full block",
113
114
  t
114
115
  ),
115
- ...e
116
+ ...r,
117
+ children: e || /* @__PURE__ */ a("span", { className: "text-gray-500 dark:text-white-alpha-500", children: "No message" })
116
118
  }
117
119
  ), T = ({
118
120
  className: t,
@@ -120,22 +122,22 @@ const E = ({
120
122
  }) => /* @__PURE__ */ a(
121
123
  p,
122
124
  {
123
- className: r("text-xs text-gray-500 dark:text-white-alpha-500", t),
125
+ className: o("text-xs text-gray-500 dark:text-white-alpha-500", t),
124
126
  ...e
125
127
  }
126
128
  ), j = ({
127
129
  className: t,
128
130
  children: e,
129
- ...o
131
+ ...r
130
132
  }) => /* @__PURE__ */ a(
131
133
  g,
132
134
  {
133
- className: r(
135
+ className: o(
134
136
  "flex flex-col items-center justify-center flex-1 py-2 h-full",
135
137
  "text-sm text-gray-500 dark:text-white-alpha-500",
136
138
  t
137
139
  ),
138
- ...o,
140
+ ...r,
139
141
  children: e ?? "No conversations yet."
140
142
  }
141
143
  ), F = ({
@@ -144,14 +146,14 @@ const E = ({
144
146
  }) => /* @__PURE__ */ a(
145
147
  b,
146
148
  {
147
- className: r("flex flex-col px-3 py-2 gap-3", t),
149
+ className: o("flex flex-col px-3 py-2 gap-3", t),
148
150
  ...e,
149
- children: [1, 2, 3].map((o) => /* @__PURE__ */ a(
151
+ children: [1, 2, 3].map((r) => /* @__PURE__ */ a(
150
152
  "div",
151
153
  {
152
154
  className: "h-14 w-full rounded-lg bg-gray-100 dark:bg-gray-dark-800 animate-pulse"
153
155
  },
154
- o
156
+ r
155
157
  ))
156
158
  }
157
159
  ), _ = ({
@@ -160,7 +162,7 @@ const E = ({
160
162
  }) => /* @__PURE__ */ a(
161
163
  x,
162
164
  {
163
- className: r(
165
+ className: o(
164
166
  "shrink-0 px-5 py-4 relative",
165
167
  "before:absolute before:block before:top-0 before:left-0 before:pointer-events-none before:w-full before:h-3 before:bg-[linear-gradient(transparent,_white)] dark:before:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))] before:-translate-y-full",
166
168
  t
@@ -170,12 +172,12 @@ const E = ({
170
172
  ), z = ({
171
173
  className: t,
172
174
  children: e,
173
- ...o
175
+ ...r
174
176
  }) => /* @__PURE__ */ a(
175
177
  k,
176
178
  {
177
- className: r(s({ variant: "primaryFilled" }), "w-full shrink-0", t),
178
- ...o,
179
+ className: o(s({ variant: "primaryFilled" }), "w-full shrink-0", t),
180
+ ...r,
179
181
  children: e ?? "New conversation"
180
182
  }
181
183
  );
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("../../../primitives/hooks/use-scrolling-fades.cjs"),o=require("../ui/recipes/button.cjs"),d=require("../ui/recipes/icon.cjs"),a=require("../../utils.cjs"),r=require("../../../primitives/components/embedded-chat/file-upload-input.cjs"),l=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveDropZone,{className:a.cn("absolute inset-0 z-10 rounded-lg","flex items-center justify-center","border-2 border-dashed border-inkeep-expanded-primary-500 dark:border-inkeep-expanded-primary-400","bg-gray-50 dark:bg-gray-dark-900","pointer-events-none","text-sm text-gray-500 dark:text-gray-dark-300","opacity-0 transition-opacity","group-data-[drag-over]/fieldset:opacity-100",e),...t}),c=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileUploadButton,{className:a.cn(o.button({}),"group","bg-transparent relative size-8 min-w-[unset] rounded-lg transition-all ease-linear","text-gray-500 dark:text-gray-dark-200","hover:bg-gray-200 hover:text-gray-700 dark:hover:bg-white-alpha-100 dark:hover:text-gray-dark-50","active:bg-gray-200 dark:active:bg-white-alpha-100","disabled:cursor-not-allowed hover:disabled:[background:none]",e),...t,children:i.jsx(r.EmbeddedChatPrimitiveFileUploadButtonIcon,{className:a.cn(d.icon(),"text-inherit")})}),b=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileInput,{className:a.cn("hidden",e),...t}),m=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotification,{className:a.cn("flex items-start justify-between gap-3","rounded-lg px-4 py-3 mx-5","bg-white dark:bg-gray-dark-800","border border-gray-200 dark:border-gray-dark-700","absolute bottom-full left-0 right-0 mx-5 mb-1.5","shadow-md dark:shadow-none","animate-notification-in",e),...t}),g=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationContent,{className:a.cn("flex flex-col gap-0.5 w-full",e),...t}),h=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationHeader,{className:a.cn("flex items-center gap-2 justify-between w-full",e),...t}),p=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationTitle,{className:a.cn("text-sm font-medium text-gray-900 dark:text-white-alpha-950",e),...t}),u=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationMessage,{className:a.cn("text-sm text-gray-600 dark:text-white-alpha-600",e),...t}),f=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveInputNotificationClose,{className:a.cn(o.button({variant:"ghost",size:"xs"}),"px-1",e),...t,children:i.jsx(r.EmbeddedChatPrimitiveFileRemoveIcon,{className:a.cn(d.icon())})}),x=({className:e,...t})=>{const n=s.useScrollingFadesHorizontal();return i.jsx("div",{ref:n,className:a.cn("relative","[--scroll-fade-color:var(--ikp-color-gray-50)] dark:[--scroll-fade-color:var(--ikp-color-gray-dark-900)]",'befter:content-[""] befter:absolute befter:inset-y-0 befter:w-10 befter:pointer-events-none befter:z-10',"befter:transition-opacity befter:duration-300 befter:ease-in-out","before:left-0 before:bg-[linear-gradient(to_right,var(--scroll-fade-color),transparent)]","after:right-0 after:bg-[linear-gradient(to_left,var(--scroll-fade-color),transparent)]","has-[[data-scroll-left]]:before:opacity-0","has-[[data-scroll-right]]:after:opacity-0"),children:i.jsx(r.EmbeddedChatPrimitiveFileList,{className:a.cn("flex max-w-full overflow-x-auto gap-2 pt-0.5 pb-1.5 [scrollbar-width:none]",e),...t})})},v=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileItem,{className:a.cn("group/chip","relative flex items-center gap-1.5","max-w-[200px] rounded-lg","border border-gray-300 dark:border-gray-dark-600","[--chip-bg:theme(colors.gray.200)] dark:[--chip-bg:theme(colors.gray-dark.700)]","bg-[--chip-bg]","px-1 h-7",e),...t}),C=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFilePreviewTrigger,{className:a.cn("flex items-center gap-1.5 min-w-0 flex-1","bg-transparent border-0 p-0 text-left cursor-pointer","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:rounded dark:focus-visible:ring-white-alpha-900",e),...t}),y=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileContent,{className:a.cn("flex items-center gap-1.5 min-w-0 flex-1",e),...t}),E=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileThumbnail,{className:a.cn("size-5 shrink-0 rounded object-cover border border-gray-300 dark:border-gray-dark-600","group-data-[loading]/chip:animate-pulse group-data-[loading]/chip:bg-gray-200 dark:group-data-[loading]/chip:bg-gray-dark-600",e),...t}),k=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileTypeIcon,{className:a.cn("size-5 shrink-0 text-gray-600 dark:text-gray-dark-100",e),...t}),N=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileName,{className:a.cn("min-w-0 flex-1 truncate text-xs","text-gray-900 dark:text-gray-dark-50",e),...t}),F=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveFileRemove,{className:a.cn("absolute top-0 right-0 rounded-r-lg","flex h-full px-1 items-center justify-center","bg-[--chip-bg]","text-gray-800 dark:text-gray-dark-100","opacity-0 transition-opacity","group-hover/chip:opacity-100","[@media(hover:none)]:opacity-100","focus:outline-none","focus-visible:ring","focus-visible:ring-2","focus-visible:opacity-100","focus-visible:ring-gray-500","dark:focus-visible:ring-white-alpha-900","focus-visible:rounded","before:bg-gradient-to-l before:absolute before:-left-1 before:from-[--chip-bg] before:h-full before:w-1 before:pointer-events-none",e),...t,children:i.jsx(r.EmbeddedChatPrimitiveFileRemoveIcon,{className:a.cn(d.icon(),"size-2.5 text-inherit")})}),w=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveMessageFiles,{className:a.cn("flex flex-wrap gap-2 mt-2 justify-end",e),...t}),j=({className:e,...t})=>i.jsx(r.EmbeddedChatPrimitiveMessageFile,{className:a.cn("relative flex items-center gap-1.5","max-w-[200px] rounded-lg","border","bg-gray-100 dark:bg-white-alpha-100","px-1 h-7","focus-visible:ring-gray-500 dark:focus-visible:ring-white-alpha-900 focus-visible:ring-2 focus:outline-none",e),...t});exports.EmbeddedChatDropZone=l;exports.EmbeddedChatFileContent=y;exports.EmbeddedChatFileInput=b;exports.EmbeddedChatFileItem=v;exports.EmbeddedChatFileList=x;exports.EmbeddedChatFileName=N;exports.EmbeddedChatFilePreviewTrigger=C;exports.EmbeddedChatFileRemove=F;exports.EmbeddedChatFileThumbnail=E;exports.EmbeddedChatFileTypeIcon=k;exports.EmbeddedChatFileUploadButton=c;exports.EmbeddedChatInputNotification=m;exports.EmbeddedChatInputNotificationClose=f;exports.EmbeddedChatInputNotificationContent=g;exports.EmbeddedChatInputNotificationHeader=h;exports.EmbeddedChatInputNotificationMessage=u;exports.EmbeddedChatInputNotificationTitle=p;exports.EmbeddedChatMessageFile=j;exports.EmbeddedChatMessageFiles=w;
@@ -0,0 +1,20 @@
1
+ import { EmbeddedChatPrimitive } from '../../../primitives';
2
+ export declare const EmbeddedChatDropZone: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.DropZone>) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const EmbeddedChatFileUploadButton: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FileUploadButton>) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const EmbeddedChatFileInput: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FileInput>) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const EmbeddedChatInputNotification: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.InputNotification>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const EmbeddedChatInputNotificationContent: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.InputNotificationContent>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const EmbeddedChatInputNotificationHeader: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.InputNotificationHeader>) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const EmbeddedChatInputNotificationTitle: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.InputNotificationTitle>) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const EmbeddedChatInputNotificationMessage: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.InputNotificationMessage>) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const EmbeddedChatInputNotificationClose: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.InputNotificationClose>) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const EmbeddedChatFileList: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FileList>) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const EmbeddedChatFileItem: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FileItem>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const EmbeddedChatFilePreviewTrigger: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FilePreviewTrigger>) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const EmbeddedChatFileContent: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FileContent>) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const EmbeddedChatFileThumbnail: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FileThumbnail>) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const EmbeddedChatFileTypeIcon: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FileTypeIcon>) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const EmbeddedChatFileName: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FileName>) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const EmbeddedChatFileRemove: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FileRemove>) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const EmbeddedChatMessageFiles: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.MessageFiles>) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const EmbeddedChatMessageFile: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.MessageFile>) => import("react/jsx-runtime").JSX.Element;