@assistant-ui/react 0.5.76 → 0.5.77

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var _chunkKVXP3Q6Kjs = require('./chunk-KVXP3Q6K.js');
15
15
  var _chunkPZ5AY32Cjs = require('./chunk-PZ5AY32C.js');
16
16
 
17
17
  // src/context/providers/AssistantRuntimeProvider.tsx
18
- var _react = require('react');
18
+ var _react = require('react'); var React = _interopRequireWildcard(_react);
19
19
 
20
20
  // src/context/react/AssistantContext.ts
21
21
 
@@ -1437,9 +1437,9 @@ var useIsHoveringRef = () => {
1437
1437
  );
1438
1438
  return useManagedRef(callbackRef);
1439
1439
  };
1440
- var MessagePrimitiveRoot = _react.forwardRef.call(void 0, (props, forwardRef35) => {
1440
+ var MessagePrimitiveRoot = _react.forwardRef.call(void 0, (props, forwardRef36) => {
1441
1441
  const isHoveringRef = useIsHoveringRef();
1442
- const ref = _reactcomposerefs.useComposedRefs.call(void 0, forwardRef35, isHoveringRef);
1442
+ const ref = _reactcomposerefs.useComposedRefs.call(void 0, forwardRef36, isHoveringRef);
1443
1443
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactprimitive.Primitive.div, { ...props, ref });
1444
1444
  });
1445
1445
  MessagePrimitiveRoot.displayName = "MessagePrimitive.Root";
@@ -5589,15 +5589,117 @@ var CircleStopIcon = () => {
5589
5589
  };
5590
5590
  CircleStopIcon.displayName = "CircleStopIcon";
5591
5591
 
5592
- // src/ui/composer-attachment.tsx
5592
+ // src/ui/attachment.tsx
5593
5593
 
5594
5594
 
5595
5595
 
5596
- var ComposerAttachmentRoot = withDefaults(attachment_exports.Root, {
5596
+
5597
+
5598
+
5599
+
5600
+ // src/ui/base/dialog.tsx
5601
+
5602
+ var _reactdialog = require('@radix-ui/react-dialog'); var DialogPrimitive = _interopRequireWildcard(_reactdialog);
5603
+
5604
+
5605
+ var Dialog = DialogPrimitive.Root;
5606
+ var DialogTrigger = DialogPrimitive.Trigger;
5607
+ var DialogPortal = DialogPrimitive.Portal;
5608
+ var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5609
+ DialogPrimitive.Overlay,
5610
+ {
5611
+ ref,
5612
+ className: _classnames2.default.call(void 0, "aui-dialog-overlay", className),
5613
+ ...props
5614
+ }
5615
+ ));
5616
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
5617
+ var DialogContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPortal, { children: [
5618
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogOverlay, {}),
5619
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5620
+ DialogPrimitive.Content,
5621
+ {
5622
+ ref,
5623
+ className: _classnames2.default.call(void 0, "aui-dialog-content", className),
5624
+ ...props,
5625
+ children
5626
+ }
5627
+ )
5628
+ ] }));
5629
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
5630
+
5631
+ // src/ui/attachment.tsx
5632
+
5633
+
5634
+ var AttachmentRoot = withDefaults(attachment_exports.Root, {
5597
5635
  className: "aui-attachment-root"
5598
5636
  });
5599
- ComposerAttachmentRoot.displayName = "ComposerAttachmentRoot";
5600
- var ComposerAttachment2 = () => {
5637
+ AttachmentRoot.displayName = "AttachmentRoot";
5638
+ var useFileSrc = (file) => {
5639
+ const [src, setSrc] = _react.useState.call(void 0, void 0);
5640
+ _react.useEffect.call(void 0, () => {
5641
+ if (!file) {
5642
+ setSrc(void 0);
5643
+ return;
5644
+ }
5645
+ const objectUrl = URL.createObjectURL(file);
5646
+ setSrc(objectUrl);
5647
+ return () => {
5648
+ URL.revokeObjectURL(objectUrl);
5649
+ };
5650
+ }, [file]);
5651
+ return src;
5652
+ };
5653
+ var useAttachmentSrc = () => {
5654
+ const { file, src } = useAttachment((a) => {
5655
+ if (a.type !== "image") return {};
5656
+ if (a.file) return { file: a.file };
5657
+ const src2 = _optionalChain([a, 'access', _268 => _268.content, 'optionalAccess', _269 => _269.filter, 'call', _270 => _270((c) => c.type === "image"), 'access', _271 => _271[0], 'optionalAccess', _272 => _272.image]);
5658
+ if (!src2) return {};
5659
+ return { src: src2 };
5660
+ });
5661
+ return _nullishCoalesce(useFileSrc(file), () => ( src));
5662
+ };
5663
+ var AttachmentPreview = ({ src }) => {
5664
+ const [isLoaded, setIsLoaded] = _react.useState.call(void 0, false);
5665
+ return (
5666
+ // eslint-disable-next-line @next/next/no-img-element
5667
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5668
+ "img",
5669
+ {
5670
+ src,
5671
+ style: {
5672
+ width: "auto",
5673
+ height: "auto",
5674
+ maxWidth: "75dvh",
5675
+ maxHeight: "75dvh",
5676
+ display: isLoaded ? "block" : "none",
5677
+ overflow: "clip"
5678
+ },
5679
+ onLoad: () => setIsLoaded(true),
5680
+ alt: "Image Preview"
5681
+ }
5682
+ )
5683
+ );
5684
+ };
5685
+ var AttachmentPreviewDialog = ({ children }) => {
5686
+ const src = useAttachmentSrc();
5687
+ if (!src) return children;
5688
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { children: [
5689
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { className: "aui-attachment-preview-trigger", asChild: true, children }),
5690
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttachmentPreview, { src }) })
5691
+ ] });
5692
+ };
5693
+ var AttachmentThumb = () => {
5694
+ const isImage = useAttachment((a) => a.type === "image");
5695
+ const src = useAttachmentSrc();
5696
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AvatarRoot, { className: "aui-attachment-thumb", children: [
5697
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactavatar.AvatarFallback, { delayMs: isImage ? 200 : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileIcon, {}) }),
5698
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src })
5699
+ ] });
5700
+ };
5701
+ var Attachment = () => {
5702
+ const canRemove = useAttachment((a) => a.source !== "message");
5601
5703
  const typeLabel = useAttachment((a) => {
5602
5704
  const type = a.type;
5603
5705
  switch (type) {
@@ -5612,17 +5714,20 @@ var ComposerAttachment2 = () => {
5612
5714
  throw new Error(`Unknown attachment type: ${_exhaustiveCheck}`);
5613
5715
  }
5614
5716
  });
5615
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ComposerAttachmentRoot, { children: [
5616
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, attachment_exports.unstable_Thumb, { className: "aui-attachment-thumb" }),
5617
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "aui-attachment-text", children: [
5618
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "aui-attachment-name", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, attachment_exports.Name, {}) }),
5619
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "aui-attachment-type", children: typeLabel })
5620
- ] }),
5621
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ComposerAttachmentRemove, {})
5717
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip, { children: [
5718
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttachmentPreviewDialog, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AttachmentRoot, { children: [
5719
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttachmentThumb, {}),
5720
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "aui-attachment-text", children: [
5721
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "aui-attachment-name", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, attachment_exports.Name, {}) }),
5722
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "aui-attachment-type", children: typeLabel })
5723
+ ] }),
5724
+ canRemove && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AttachmentRemove, {})
5725
+ ] }) }) }),
5726
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { side: "top", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, attachment_exports.Name, {}) })
5622
5727
  ] });
5623
5728
  };
5624
- ComposerAttachment2.displayName = "ComposerAttachment";
5625
- var ComposerAttachmentRemove = _react.forwardRef.call(void 0, (props, ref) => {
5729
+ Attachment.displayName = "Attachment";
5730
+ var AttachmentRemove = _react.forwardRef.call(void 0, (props, ref) => {
5626
5731
  const {
5627
5732
  strings: {
5628
5733
  composer: { removeAttachment: { tooltip = "Remove file" } = {} } = {}
@@ -5632,7 +5737,7 @@ var ComposerAttachmentRemove = _react.forwardRef.call(void 0, (props, ref) => {
5632
5737
  TooltipIconButton,
5633
5738
  {
5634
5739
  tooltip,
5635
- className: "aui-composer-attachment-remove",
5740
+ className: "aui-attachment-remove",
5636
5741
  side: "top",
5637
5742
  ...props,
5638
5743
  ref,
@@ -5640,15 +5745,12 @@ var ComposerAttachmentRemove = _react.forwardRef.call(void 0, (props, ref) => {
5640
5745
  }
5641
5746
  ) });
5642
5747
  });
5643
- ComposerAttachmentRemove.displayName = "ComposerAttachmentRemove";
5748
+ AttachmentRemove.displayName = "AttachmentRemove";
5644
5749
  var exports5 = {
5645
- Root: ComposerAttachmentRoot,
5646
- Remove: ComposerAttachmentRemove
5750
+ Root: AttachmentRoot,
5751
+ Remove: AttachmentRemove
5647
5752
  };
5648
- var composer_attachment_default = Object.assign(
5649
- ComposerAttachment2,
5650
- exports5
5651
- );
5753
+ var attachment_default = Object.assign(Attachment, exports5);
5652
5754
 
5653
5755
  // src/ui/composer.tsx
5654
5756
 
@@ -5696,7 +5798,7 @@ var ComposerAttachments = ({ components }) => {
5696
5798
  {
5697
5799
  components: {
5698
5800
  ...components,
5699
- Attachment: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _268 => _268.Attachment]), () => ( composer_attachment_default))
5801
+ Attachment: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _273 => _273.Attachment]), () => ( attachment_default))
5700
5802
  }
5701
5803
  }
5702
5804
  ) });
@@ -5824,7 +5926,7 @@ var ThreadWelcomeSuggestions = () => {
5824
5926
  const suggestions2 = useThread((t) => t.suggestions);
5825
5927
  const { welcome: { suggestions } = {} } = useThreadConfig();
5826
5928
  const finalSuggestions = suggestions2.length ? suggestions2 : suggestions;
5827
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ThreadWelcomeSuggestionContainer, { children: _optionalChain([finalSuggestions, 'optionalAccess', _269 => _269.map, 'call', _270 => _270((suggestion, idx) => {
5929
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ThreadWelcomeSuggestionContainer, { children: _optionalChain([finalSuggestions, 'optionalAccess', _274 => _274.map, 'call', _275 => _275((suggestion, idx) => {
5828
5930
  const key = `${suggestion.prompt}-${idx}`;
5829
5931
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ThreadWelcomeSuggestion, { suggestion }, key);
5830
5932
  })]) });
@@ -5876,44 +5978,6 @@ var exports8 = {
5876
5978
  };
5877
5979
  var user_action_bar_default = Object.assign(UserActionBar, exports8);
5878
5980
 
5879
- // src/ui/user-message-attachment.tsx
5880
-
5881
- var UserMessageAttachmentRoot = withDefaults(attachment_exports.Root, {
5882
- className: "aui-attachment-root"
5883
- });
5884
- UserMessageAttachmentRoot.displayName = "UserMessageAttachmentRoot";
5885
- var UserMessageAttachment = () => {
5886
- const typeLabel = useAttachment((a) => {
5887
- const type = a.type;
5888
- switch (type) {
5889
- case "image":
5890
- return "Image";
5891
- case "document":
5892
- return "Document";
5893
- case "file":
5894
- return "File";
5895
- default:
5896
- const _exhaustiveCheck = type;
5897
- throw new Error(`Unknown attachment type: ${_exhaustiveCheck}`);
5898
- }
5899
- });
5900
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, UserMessageAttachmentRoot, { children: [
5901
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, attachment_exports.unstable_Thumb, { className: "aui-attachment-thumb" }),
5902
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "aui-attachment-text", children: [
5903
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "aui-attachment-name", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, attachment_exports.Name, {}) }),
5904
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "aui-attachment-type", children: typeLabel })
5905
- ] })
5906
- ] });
5907
- };
5908
- UserMessageAttachment.displayName = "UserMessageAttachment";
5909
- var exports9 = {
5910
- Root: UserMessageAttachmentRoot
5911
- };
5912
- var user_message_attachment_default = Object.assign(
5913
- UserMessageAttachment,
5914
- exports9
5915
- );
5916
-
5917
5981
  // src/ui/user-message.tsx
5918
5982
 
5919
5983
  var UserMessage = () => {
@@ -5940,7 +6004,7 @@ var UserMessageContent = _react.forwardRef.call(void 0, ({ components, ...props
5940
6004
  {
5941
6005
  components: {
5942
6006
  ...components,
5943
- Text: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _271 => _271.Text]), () => ( content_part_default.Text))
6007
+ Text: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _276 => _276.Text]), () => ( content_part_default.Text))
5944
6008
  }
5945
6009
  }
5946
6010
  ) });
@@ -5957,17 +6021,17 @@ var UserMessageAttachments = ({
5957
6021
  {
5958
6022
  components: {
5959
6023
  ...components,
5960
- Attachment: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _272 => _272.Attachment]), () => ( user_message_attachment_default))
6024
+ Attachment: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _277 => _277.Attachment]), () => ( attachment_default))
5961
6025
  }
5962
6026
  }
5963
6027
  ) }) });
5964
6028
  };
5965
- var exports10 = {
6029
+ var exports9 = {
5966
6030
  Root: UserMessageRoot,
5967
6031
  Content: UserMessageContent,
5968
6032
  Attachments: UserMessageAttachments
5969
6033
  };
5970
- var user_message_default = Object.assign(UserMessage, exports10);
6034
+ var user_message_default = Object.assign(UserMessage, exports9);
5971
6035
 
5972
6036
  // src/ui/edit-composer.tsx
5973
6037
 
@@ -6008,14 +6072,14 @@ var EditComposerSend = _react.forwardRef.call(void 0, (props, ref) => {
6008
6072
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, composer_exports.Send, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { ...props, ref, children: _nullishCoalesce(props.children, () => ( label)) }) });
6009
6073
  });
6010
6074
  EditComposerSend.displayName = "EditComposerSend";
6011
- var exports11 = {
6075
+ var exports10 = {
6012
6076
  Root: EditComposerRoot,
6013
6077
  Input: EditComposerInput,
6014
6078
  Footer: EditComposerFooter,
6015
6079
  Cancel: EditComposerCancel,
6016
6080
  Send: EditComposerSend
6017
6081
  };
6018
- var edit_composer_default = Object.assign(EditComposer, exports11);
6082
+ var edit_composer_default = Object.assign(EditComposer, exports10);
6019
6083
 
6020
6084
  // src/ui/thread.tsx
6021
6085
 
@@ -6060,10 +6124,10 @@ var ThreadMessages = ({ components, unstable_flexGrowDiv: flexGrowDiv = true, ..
6060
6124
  thread_exports.Messages,
6061
6125
  {
6062
6126
  components: {
6063
- UserMessage: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _273 => _273.UserMessage]), () => ( user_message_default)),
6064
- EditComposer: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _274 => _274.EditComposer]), () => ( edit_composer_default)),
6065
- AssistantMessage: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _275 => _275.AssistantMessage]), () => ( assistant_message_default)),
6066
- SystemMessage: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _276 => _276.SystemMessage]), () => ( SystemMessage))
6127
+ UserMessage: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _278 => _278.UserMessage]), () => ( user_message_default)),
6128
+ EditComposer: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _279 => _279.EditComposer]), () => ( edit_composer_default)),
6129
+ AssistantMessage: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _280 => _280.AssistantMessage]), () => ( assistant_message_default)),
6130
+ SystemMessage: _nullishCoalesce(_optionalChain([components, 'optionalAccess', _281 => _281.SystemMessage]), () => ( SystemMessage))
6067
6131
  },
6068
6132
  ...rest
6069
6133
  }
@@ -6074,7 +6138,7 @@ var ThreadMessages = ({ components, unstable_flexGrowDiv: flexGrowDiv = true, ..
6074
6138
  ThreadMessages.displayName = "ThreadMessages";
6075
6139
  var ThreadFollowupSuggestions = () => {
6076
6140
  const suggestions = useThread((t) => t.suggestions);
6077
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, thread_exports.If, { empty: false, running: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aui-thread-followup-suggestions", children: _optionalChain([suggestions, 'optionalAccess', _277 => _277.map, 'call', _278 => _278((suggestion, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6141
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, thread_exports.If, { empty: false, running: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aui-thread-followup-suggestions", children: _optionalChain([suggestions, 'optionalAccess', _282 => _282.map, 'call', _283 => _283((suggestion, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6078
6142
  thread_exports.Suggestion,
6079
6143
  {
6080
6144
  className: "aui-thread-followup-suggestion",
@@ -6099,7 +6163,7 @@ var ThreadScrollToBottom = _react.forwardRef.call(void 0, (props, ref) => {
6099
6163
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, thread_exports.ScrollToBottom, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ThreadScrollToBottomIconButton, { tooltip, ...props, ref, children: _nullishCoalesce(props.children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowDownIcon, {}))) }) });
6100
6164
  });
6101
6165
  ThreadScrollToBottom.displayName = "ThreadScrollToBottom";
6102
- var exports12 = {
6166
+ var exports11 = {
6103
6167
  Root: ThreadRoot,
6104
6168
  Viewport: ThreadViewport,
6105
6169
  Messages: ThreadMessages,
@@ -6107,7 +6171,7 @@ var exports12 = {
6107
6171
  ScrollToBottom: ThreadScrollToBottom,
6108
6172
  ViewportFooter: ThreadViewportFooter
6109
6173
  };
6110
- var thread_default = Object.assign(Thread, exports12);
6174
+ var thread_default = Object.assign(Thread, exports11);
6111
6175
 
6112
6176
  // src/ui/assistant-modal.tsx
6113
6177
 
@@ -6184,14 +6248,15 @@ var AssistantModalContent = withDefaults(assistantModal_exports.Content, {
6184
6248
  sideOffset: 16
6185
6249
  });
6186
6250
  AssistantModalContent.displayName = "AssistantModalContent";
6187
- var exports13 = {
6251
+ var exports12 = {
6188
6252
  Root: AssistantModalRoot,
6189
6253
  Trigger: AssistantModalTrigger,
6190
6254
  Content: AssistantModalContent,
6191
6255
  Button: AssistantModalButton,
6192
6256
  Anchor: AssistantModalAnchor
6193
6257
  };
6194
- var assistant_modal_default = Object.assign(AssistantModal, exports13);
6258
+ var assistant_modal_default = Object.assign(AssistantModal, exports12);
6259
+
6195
6260
 
6196
6261
 
6197
6262
 
@@ -6306,5 +6371,5 @@ var assistant_modal_default = Object.assign(AssistantModal, exports13);
6306
6371
 
6307
6372
 
6308
6373
 
6309
- exports.ActionBarPrimitive = actionBar_exports; exports.AssistantActionBar = assistant_action_bar_default; exports.AssistantMessage = assistant_message_default; exports.AssistantModal = assistant_modal_default; exports.AssistantModalPrimitive = assistantModal_exports; exports.AssistantRuntimeProvider = AssistantRuntimeProvider; exports.AttachmentPrimitive = attachment_exports; exports.BranchPicker = branch_picker_default; exports.BranchPickerPrimitive = branchPicker_exports; exports.Composer = composer_default; exports.ComposerAttachment = composer_attachment_default; exports.ComposerPrimitive = composer_exports; exports.CompositeAttachmentAdapter = CompositeAttachmentAdapter; exports.ContentPart = content_part_default; exports.ContentPartPrimitive = contentPart_exports; exports.EdgeChatAdapter = EdgeChatAdapter; exports.EditComposer = edit_composer_default; exports.INTERNAL = internal_exports; exports.MessagePrimitive = message_exports; exports.SimpleImageAttachmentAdapter = SimpleImageAttachmentAdapter; exports.SimpleTextAttachmentAdapter = SimpleTextAttachmentAdapter; exports.TextContentPartProvider = TextContentPartProvider; exports.Thread = thread_default; exports.ThreadConfigProvider = ThreadConfigProvider; exports.ThreadPrimitive = thread_exports; exports.ThreadWelcome = thread_welcome_default; exports.UserActionBar = user_action_bar_default; exports.UserMessage = user_message_default; exports.UserMessageAttachment = user_message_attachment_default; exports.WebSpeechSynthesisAdapter = WebSpeechSynthesisAdapter; exports.fromCoreMessage = fromCoreMessage; exports.fromCoreMessages = fromCoreMessages; exports.fromLanguageModelMessages = fromLanguageModelMessages; exports.fromLanguageModelTools = fromLanguageModelTools; exports.getExternalStoreMessage = getExternalStoreMessage; exports.makeAssistantTool = makeAssistantTool; exports.makeAssistantToolUI = makeAssistantToolUI; exports.streamUtils = streamUtils; exports.subscribeToMainThread = subscribeToMainThread; exports.toCoreMessage = _chunkKVXP3Q6Kjs.toCoreMessage; exports.toCoreMessages = _chunkKVXP3Q6Kjs.toCoreMessages; exports.toLanguageModelMessages = _chunkKVXP3Q6Kjs.toLanguageModelMessages; exports.toLanguageModelTools = _chunkKVXP3Q6Kjs.toLanguageModelTools; exports.useActionBarCopy = useActionBarCopy; exports.useActionBarEdit = useActionBarEdit; exports.useActionBarFeedbackNegative = useActionBarFeedbackNegative; exports.useActionBarFeedbackPositive = useActionBarFeedbackPositive; exports.useActionBarReload = useActionBarReload; exports.useActionBarSpeak = useActionBarSpeak; exports.useActionBarStopSpeaking = useActionBarStopSpeaking; exports.useAppendMessage = useAppendMessage; exports.useAssistantActions = useAssistantActions; exports.useAssistantActionsStore = useAssistantActionsStore; exports.useAssistantContext = useAssistantContext; exports.useAssistantInstructions = useAssistantInstructions; exports.useAssistantRuntime = useAssistantRuntime; exports.useAssistantRuntimeStore = useAssistantRuntimeStore; exports.useAssistantTool = useAssistantTool; exports.useAssistantToolUI = useAssistantToolUI; exports.useBranchPickerCount = useBranchPickerCount; exports.useBranchPickerNext = useBranchPickerNext; exports.useBranchPickerNumber = useBranchPickerNumber; exports.useBranchPickerPrevious = useBranchPickerPrevious; exports.useComposer = useComposer; exports.useComposerAddAttachment = useComposerAddAttachment; exports.useComposerCancel = useComposerCancel; exports.useComposerContext = useComposerContext; exports.useComposerIf = useComposerIf; exports.useComposerRuntime = useComposerRuntime; exports.useComposerSend = useComposerSend; exports.useComposerStore = useComposerStore; exports.useContentPart = useContentPart; exports.useContentPartContext = useContentPartContext; exports.useContentPartDisplay = useContentPartDisplay; exports.useContentPartImage = useContentPartImage; exports.useContentPartRuntime = useContentPartRuntime; exports.useContentPartStore = useContentPartStore; exports.useContentPartText = useContentPartText; exports.useDangerousInBrowserRuntime = useDangerousInBrowserRuntime; exports.useEdgeRuntime = useEdgeRuntime; exports.useEditComposer = useEditComposer; exports.useEditComposerStore = useEditComposerStore; exports.useExternalMessageConverter = useExternalMessageConverter; exports.useExternalStoreRuntime = useExternalStoreRuntime; exports.useLocalRuntime = useLocalRuntime; exports.useMessage = useMessage; exports.useMessageContext = useMessageContext; exports.useMessageIf = useMessageIf; exports.useMessageRuntime = useMessageRuntime; exports.useMessageStore = useMessageStore; exports.useMessageUtils = useMessageUtils; exports.useMessageUtilsStore = useMessageUtilsStore; exports.useSwitchToNewThread = useSwitchToNewThread; exports.useThread = useThread; exports.useThreadActions = useThreadActions; exports.useThreadActionsStore = useThreadActionsStore; exports.useThreadComposer = useThreadComposer; exports.useThreadComposerStore = useThreadComposerStore; exports.useThreadConfig = useThreadConfig; exports.useThreadContext = useThreadContext; exports.useThreadEmpty = useThreadEmpty; exports.useThreadIf = useThreadIf; exports.useThreadMessages = useThreadMessages; exports.useThreadMessagesStore = useThreadMessagesStore; exports.useThreadRuntime = useThreadRuntime; exports.useThreadRuntimeStore = useThreadRuntimeStore; exports.useThreadScrollToBottom = useThreadScrollToBottom; exports.useThreadStore = useThreadStore; exports.useThreadSuggestion = useThreadSuggestion; exports.useThreadViewport = useThreadViewport; exports.useThreadViewportStore = useThreadViewportStore; exports.useToolUIs = useToolUIs; exports.useToolUIsStore = useToolUIsStore;
6374
+ exports.ActionBarPrimitive = actionBar_exports; exports.AssistantActionBar = assistant_action_bar_default; exports.AssistantMessage = assistant_message_default; exports.AssistantModal = assistant_modal_default; exports.AssistantModalPrimitive = assistantModal_exports; exports.AssistantRuntimeProvider = AssistantRuntimeProvider; exports.AttachmentPrimitive = attachment_exports; exports.AttachmentUI = attachment_default; exports.BranchPicker = branch_picker_default; exports.BranchPickerPrimitive = branchPicker_exports; exports.Composer = composer_default; exports.ComposerAttachment = attachment_default; exports.ComposerPrimitive = composer_exports; exports.CompositeAttachmentAdapter = CompositeAttachmentAdapter; exports.ContentPart = content_part_default; exports.ContentPartPrimitive = contentPart_exports; exports.EdgeChatAdapter = EdgeChatAdapter; exports.EditComposer = edit_composer_default; exports.INTERNAL = internal_exports; exports.MessagePrimitive = message_exports; exports.SimpleImageAttachmentAdapter = SimpleImageAttachmentAdapter; exports.SimpleTextAttachmentAdapter = SimpleTextAttachmentAdapter; exports.TextContentPartProvider = TextContentPartProvider; exports.Thread = thread_default; exports.ThreadConfigProvider = ThreadConfigProvider; exports.ThreadPrimitive = thread_exports; exports.ThreadWelcome = thread_welcome_default; exports.UserActionBar = user_action_bar_default; exports.UserMessage = user_message_default; exports.UserMessageAttachment = attachment_default; exports.WebSpeechSynthesisAdapter = WebSpeechSynthesisAdapter; exports.fromCoreMessage = fromCoreMessage; exports.fromCoreMessages = fromCoreMessages; exports.fromLanguageModelMessages = fromLanguageModelMessages; exports.fromLanguageModelTools = fromLanguageModelTools; exports.getExternalStoreMessage = getExternalStoreMessage; exports.makeAssistantTool = makeAssistantTool; exports.makeAssistantToolUI = makeAssistantToolUI; exports.streamUtils = streamUtils; exports.subscribeToMainThread = subscribeToMainThread; exports.toCoreMessage = _chunkKVXP3Q6Kjs.toCoreMessage; exports.toCoreMessages = _chunkKVXP3Q6Kjs.toCoreMessages; exports.toLanguageModelMessages = _chunkKVXP3Q6Kjs.toLanguageModelMessages; exports.toLanguageModelTools = _chunkKVXP3Q6Kjs.toLanguageModelTools; exports.useActionBarCopy = useActionBarCopy; exports.useActionBarEdit = useActionBarEdit; exports.useActionBarFeedbackNegative = useActionBarFeedbackNegative; exports.useActionBarFeedbackPositive = useActionBarFeedbackPositive; exports.useActionBarReload = useActionBarReload; exports.useActionBarSpeak = useActionBarSpeak; exports.useActionBarStopSpeaking = useActionBarStopSpeaking; exports.useAppendMessage = useAppendMessage; exports.useAssistantActions = useAssistantActions; exports.useAssistantActionsStore = useAssistantActionsStore; exports.useAssistantContext = useAssistantContext; exports.useAssistantInstructions = useAssistantInstructions; exports.useAssistantRuntime = useAssistantRuntime; exports.useAssistantRuntimeStore = useAssistantRuntimeStore; exports.useAssistantTool = useAssistantTool; exports.useAssistantToolUI = useAssistantToolUI; exports.useBranchPickerCount = useBranchPickerCount; exports.useBranchPickerNext = useBranchPickerNext; exports.useBranchPickerNumber = useBranchPickerNumber; exports.useBranchPickerPrevious = useBranchPickerPrevious; exports.useComposer = useComposer; exports.useComposerAddAttachment = useComposerAddAttachment; exports.useComposerCancel = useComposerCancel; exports.useComposerContext = useComposerContext; exports.useComposerIf = useComposerIf; exports.useComposerRuntime = useComposerRuntime; exports.useComposerSend = useComposerSend; exports.useComposerStore = useComposerStore; exports.useContentPart = useContentPart; exports.useContentPartContext = useContentPartContext; exports.useContentPartDisplay = useContentPartDisplay; exports.useContentPartImage = useContentPartImage; exports.useContentPartRuntime = useContentPartRuntime; exports.useContentPartStore = useContentPartStore; exports.useContentPartText = useContentPartText; exports.useDangerousInBrowserRuntime = useDangerousInBrowserRuntime; exports.useEdgeRuntime = useEdgeRuntime; exports.useEditComposer = useEditComposer; exports.useEditComposerStore = useEditComposerStore; exports.useExternalMessageConverter = useExternalMessageConverter; exports.useExternalStoreRuntime = useExternalStoreRuntime; exports.useLocalRuntime = useLocalRuntime; exports.useMessage = useMessage; exports.useMessageContext = useMessageContext; exports.useMessageIf = useMessageIf; exports.useMessageRuntime = useMessageRuntime; exports.useMessageStore = useMessageStore; exports.useMessageUtils = useMessageUtils; exports.useMessageUtilsStore = useMessageUtilsStore; exports.useSwitchToNewThread = useSwitchToNewThread; exports.useThread = useThread; exports.useThreadActions = useThreadActions; exports.useThreadActionsStore = useThreadActionsStore; exports.useThreadComposer = useThreadComposer; exports.useThreadComposerStore = useThreadComposerStore; exports.useThreadConfig = useThreadConfig; exports.useThreadContext = useThreadContext; exports.useThreadEmpty = useThreadEmpty; exports.useThreadIf = useThreadIf; exports.useThreadMessages = useThreadMessages; exports.useThreadMessagesStore = useThreadMessagesStore; exports.useThreadRuntime = useThreadRuntime; exports.useThreadRuntimeStore = useThreadRuntimeStore; exports.useThreadScrollToBottom = useThreadScrollToBottom; exports.useThreadStore = useThreadStore; exports.useThreadSuggestion = useThreadSuggestion; exports.useThreadViewport = useThreadViewport; exports.useThreadViewportStore = useThreadViewportStore; exports.useToolUIs = useToolUIs; exports.useToolUIsStore = useToolUIsStore;
6310
6375
  //# sourceMappingURL=index.js.map