@assistant-ui/react-native 0.1.28 → 0.1.30

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 (119) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +2 -2
  3. package/dist/primitives/actionBar/ActionBarCopy.d.ts +1 -8
  4. package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
  5. package/dist/primitives/actionBar/ActionBarEdit.d.ts +1 -6
  6. package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
  7. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +1 -5
  8. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
  9. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +1 -5
  10. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
  11. package/dist/primitives/actionBar/ActionBarReload.d.ts +1 -6
  12. package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
  13. package/dist/primitives/actionBar.d.ts +0 -2
  14. package/dist/primitives/attachment/AttachmentName.d.ts +0 -1
  15. package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
  16. package/dist/primitives/attachment/AttachmentRemove.d.ts +1 -5
  17. package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
  18. package/dist/primitives/attachment/AttachmentRoot.d.ts +1 -5
  19. package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
  20. package/dist/primitives/attachment/AttachmentThumb.d.ts +0 -1
  21. package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
  22. package/dist/primitives/attachment.d.ts +0 -2
  23. package/dist/primitives/branchPicker/BranchPickerCount.d.ts +0 -1
  24. package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
  25. package/dist/primitives/branchPicker/BranchPickerNext.d.ts +1 -6
  26. package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
  27. package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +0 -1
  28. package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
  29. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +1 -6
  30. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
  31. package/dist/primitives/branchPicker.d.ts +0 -2
  32. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +1 -5
  33. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
  34. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +1 -5
  35. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
  36. package/dist/primitives/chainOfThought.d.ts +0 -2
  37. package/dist/primitives/composer/ComposerAddAttachment.d.ts +1 -6
  38. package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
  39. package/dist/primitives/composer/ComposerAttachments.d.ts +3 -16
  40. package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
  41. package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
  42. package/dist/primitives/composer/ComposerCancel.d.ts +1 -6
  43. package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
  44. package/dist/primitives/composer/ComposerInput.d.ts +1 -8
  45. package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
  46. package/dist/primitives/composer/ComposerInput.js +15 -2
  47. package/dist/primitives/composer/ComposerInput.js.map +1 -1
  48. package/dist/primitives/composer/ComposerRoot.d.ts +1 -5
  49. package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
  50. package/dist/primitives/composer/ComposerSend.d.ts +1 -6
  51. package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
  52. package/dist/primitives/composer.d.ts +3 -5
  53. package/dist/primitives/composer.js.map +1 -1
  54. package/dist/primitives/error/ErrorMessage.d.ts +1 -5
  55. package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
  56. package/dist/primitives/error/ErrorRoot.d.ts +1 -5
  57. package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
  58. package/dist/primitives/error/index.d.ts +0 -2
  59. package/dist/primitives/message/MessageAttachments.d.ts +2 -9
  60. package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
  61. package/dist/primitives/message/MessageAttachments.js.map +1 -1
  62. package/dist/primitives/message/MessageContent.d.ts +1 -10
  63. package/dist/primitives/message/MessageContent.d.ts.map +1 -1
  64. package/dist/primitives/message/MessageIf.d.ts +1 -8
  65. package/dist/primitives/message/MessageIf.d.ts.map +1 -1
  66. package/dist/primitives/message/MessageParts.d.ts +0 -1
  67. package/dist/primitives/message/MessageParts.d.ts.map +1 -1
  68. package/dist/primitives/message/MessageRoot.d.ts +1 -5
  69. package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
  70. package/dist/primitives/message.d.ts +3 -5
  71. package/dist/primitives/message.js.map +1 -1
  72. package/dist/primitives/suggestion/SuggestionDescription.d.ts +1 -5
  73. package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
  74. package/dist/primitives/suggestion/SuggestionTitle.d.ts +1 -5
  75. package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
  76. package/dist/primitives/suggestion/SuggestionTrigger.d.ts +1 -8
  77. package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
  78. package/dist/primitives/suggestion.d.ts +0 -2
  79. package/dist/primitives/thread/ThreadEmpty.d.ts +1 -4
  80. package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
  81. package/dist/primitives/thread/ThreadIf.d.ts +1 -6
  82. package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
  83. package/dist/primitives/thread/ThreadMessages.d.ts +4 -11
  84. package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
  85. package/dist/primitives/thread/ThreadMessages.js +11 -9
  86. package/dist/primitives/thread/ThreadMessages.js.map +1 -1
  87. package/dist/primitives/thread/ThreadRoot.d.ts +1 -5
  88. package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
  89. package/dist/primitives/thread/ThreadSuggestion.d.ts +3 -10
  90. package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
  91. package/dist/primitives/thread.d.ts +0 -2
  92. package/dist/primitives/threadList/ThreadListItems.d.ts +1 -5
  93. package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
  94. package/dist/primitives/threadList/ThreadListNew.d.ts +1 -5
  95. package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
  96. package/dist/primitives/threadList/ThreadListRoot.d.ts +1 -5
  97. package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
  98. package/dist/primitives/threadList.d.ts +0 -2
  99. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +1 -5
  100. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
  101. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +1 -5
  102. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
  103. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +1 -5
  104. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
  105. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +1 -5
  106. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
  107. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +1 -5
  108. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
  109. package/dist/primitives/threadListItem.d.ts +0 -2
  110. package/package.json +7 -7
  111. package/src/index.ts +5 -0
  112. package/src/primitives/composer/ComposerAttachments.tsx +3 -15
  113. package/src/primitives/composer/ComposerInput.test.tsx +106 -8
  114. package/src/primitives/composer/ComposerInput.tsx +21 -2
  115. package/src/primitives/composer.ts +2 -0
  116. package/src/primitives/message/MessageAttachments.tsx +3 -8
  117. package/src/primitives/message.ts +2 -0
  118. package/src/primitives/thread/ThreadMessages.test.tsx +21 -1
  119. package/src/primitives/thread/ThreadMessages.tsx +7 -6
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.js","names":["useCallback","useEffect","useRef","Platform","TextInput","NativeSyntheticEvent","TextInputKeyPressEventData","TextInputProps","useAui","useAuiState","flushTapSync","ComposerInputProps","Omit","submitMode","adjustWebTextareaHeight","ref","React","RefObject","OS","el","current","HTMLTextAreaElement","rows","style","overflow","height","scrollHeight","ComposerInput","t0","$","_c","numberOfLines","onKeyPressProp","props","t1","onKeyPress","undefined","aui","text","_temp","inputRef","t2","value","composer","setText","onChangeText","t3","Symbol","for","t4","t5","e","nativeEvent","shiftKey","isComposing","keyCode","key","Event","preventDefault","send","t6","t7","s"],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport {\n Platform,\n TextInput,\n type NativeSyntheticEvent,\n type TextInputKeyPressEventData,\n type TextInputProps,\n} from \"react-native\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\nimport { flushTapSync } from \"@assistant-ui/tap\";\n\nexport type ComposerInputProps = Omit<\n TextInputProps,\n \"value\" | \"onChangeText\"\n> & {\n /**\n * Controls how the Enter key submits messages (web only).\n * - \"enter\": Plain Enter submits (Shift+Enter for newline)\n * - \"none\": Enter inserts newline (no keyboard submission)\n * @default \"enter\"\n */\n submitMode?: \"enter\" | \"none\";\n};\n\nconst adjustWebTextareaHeight = (ref: React.RefObject<TextInput | null>) => {\n if (Platform.OS !== \"web\") return;\n // On web, the TextInput ref IS the DOM element\n const el = ref.current as unknown as HTMLTextAreaElement | null;\n if (!el) return;\n // Ensure rows=1 so scrollHeight reflects actual content\n if (el.rows !== 1) el.rows = 1;\n el.style.overflow = \"hidden\";\n el.style.height = \"auto\";\n el.style.height = `${el.scrollHeight}px`;\n};\n\nexport const ComposerInput = ({\n submitMode = \"enter\",\n onKeyPress: onKeyPressProp,\n numberOfLines,\n style,\n ...props\n}: ComposerInputProps) => {\n const aui = useAui();\n const text = useAuiState((s) => s.composer.text);\n const inputRef = useRef<TextInput>(null);\n\n const onChangeText = useCallback(\n (value: string) => {\n if (Platform.OS === \"web\") {\n // Keep the controlled value in sync mid-IME so react-dom does not reset the textarea to a stale value\n flushTapSync(() => {\n aui.composer().setText(value);\n });\n return;\n }\n aui.composer().setText(value);\n },\n [aui],\n );\n\n // Auto-resize textarea on web when text changes\n useEffect(() => {\n void text; // trigger re-run when text changes\n adjustWebTextareaHeight(inputRef);\n }, [text]);\n\n const onKeyPress = useCallback(\n (e: NativeSyntheticEvent<TextInputKeyPressEventData>) => {\n onKeyPressProp?.(e);\n\n if (Platform.OS !== \"web\") return;\n if (submitMode !== \"enter\") return;\n\n const nativeEvent = e.nativeEvent as TextInputKeyPressEventData & {\n shiftKey?: boolean;\n isComposing?: boolean;\n keyCode?: number;\n };\n // react-native-web forwards the raw DOM keydown before its own composition guard, so re-check it here (mirrors isEventComposing)\n if (nativeEvent.isComposing || nativeEvent.keyCode === 229) return;\n if (nativeEvent.key === \"Enter\" && !nativeEvent.shiftKey) {\n (e as unknown as Event).preventDefault?.();\n aui.composer().send();\n }\n },\n [aui, submitMode, onKeyPressProp],\n );\n\n return (\n <TextInput\n ref={inputRef}\n value={text}\n onChangeText={onChangeText}\n onKeyPress={onKeyPress}\n numberOfLines={numberOfLines ?? (Platform.OS === \"web\" ? 1 : undefined)}\n style={style}\n {...props}\n />\n );\n};\n"],"mappings":"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"}
1
+ {"version":3,"file":"ComposerInput.js","names":["useCallback","useEffect","useRef","Platform","TextInput","NativeSyntheticEvent","TextInputKeyPressEventData","TextInputProps","useAui","useAuiState","flushTapSync","ComposerInputProps","Omit","submitMode","getWebTextareaMaxHeight","el","HTMLTextAreaElement","computedMaxHeight","globalThis","getComputedStyle","maxHeight","parsedComputedMaxHeight","Number","parseFloat","isFinite","inlineMaxHeight","style","adjustWebTextareaHeight","ref","React","RefObject","OS","current","rows","overflowX","overflowY","height","scrollHeight","needsScrollbar","nextHeight","Math","min","ComposerInput","t0","$","_c","numberOfLines","onKeyPressProp","props","t1","onKeyPress","undefined","aui","text","_temp","inputRef","t2","value","composer","setText","onChangeText","t3","Symbol","for","t4","t5","e","nativeEvent","shiftKey","isComposing","keyCode","key","Event","preventDefault","send","t6","t7","s"],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport {\n Platform,\n TextInput,\n type NativeSyntheticEvent,\n type TextInputKeyPressEventData,\n type TextInputProps,\n} from \"react-native\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\nimport { flushTapSync } from \"@assistant-ui/tap\";\n\nexport type ComposerInputProps = Omit<\n TextInputProps,\n \"value\" | \"onChangeText\"\n> & {\n /**\n * Controls how the Enter key submits messages (web only).\n * - \"enter\": Plain Enter submits (Shift+Enter for newline)\n * - \"none\": Enter inserts newline (no keyboard submission)\n * @default \"enter\"\n */\n submitMode?: \"enter\" | \"none\";\n};\n\nconst getWebTextareaMaxHeight = (el: HTMLTextAreaElement) => {\n const computedMaxHeight = globalThis.getComputedStyle?.(el).maxHeight;\n const parsedComputedMaxHeight = Number.parseFloat(computedMaxHeight ?? \"\");\n if (Number.isFinite(parsedComputedMaxHeight)) return parsedComputedMaxHeight;\n\n const inlineMaxHeight = Number.parseFloat(el.style.maxHeight);\n return Number.isFinite(inlineMaxHeight) ? inlineMaxHeight : null;\n};\n\nconst adjustWebTextareaHeight = (ref: React.RefObject<TextInput | null>) => {\n if (Platform.OS !== \"web\") return;\n // On web, the TextInput ref IS the DOM element\n const el = ref.current as unknown as HTMLTextAreaElement | null;\n if (!el) return;\n // Ensure rows=1 so scrollHeight reflects actual content\n if (el.rows !== 1) el.rows = 1;\n\n el.style.overflowX = \"hidden\";\n el.style.overflowY = \"hidden\";\n el.style.height = \"auto\";\n\n const scrollHeight = el.scrollHeight;\n const maxHeight = getWebTextareaMaxHeight(el);\n const needsScrollbar = maxHeight !== null && scrollHeight > maxHeight;\n const nextHeight =\n maxHeight === null ? scrollHeight : Math.min(scrollHeight, maxHeight);\n\n el.style.overflowY = needsScrollbar ? \"auto\" : \"hidden\";\n el.style.height = `${nextHeight}px`;\n};\n\nexport const ComposerInput = ({\n submitMode = \"enter\",\n onKeyPress: onKeyPressProp,\n numberOfLines,\n style,\n ...props\n}: ComposerInputProps) => {\n const aui = useAui();\n const text = useAuiState((s) => s.composer.text);\n const inputRef = useRef<TextInput>(null);\n\n const onChangeText = useCallback(\n (value: string) => {\n if (Platform.OS === \"web\") {\n // Keep the controlled value in sync mid-IME so react-dom does not reset the textarea to a stale value\n flushTapSync(() => {\n aui.composer().setText(value);\n });\n return;\n }\n aui.composer().setText(value);\n },\n [aui],\n );\n\n // Auto-resize textarea on web when text changes\n useEffect(() => {\n void text; // trigger re-run when text changes\n adjustWebTextareaHeight(inputRef);\n }, [text]);\n\n const onKeyPress = useCallback(\n (e: NativeSyntheticEvent<TextInputKeyPressEventData>) => {\n onKeyPressProp?.(e);\n\n if (Platform.OS !== \"web\") return;\n if (submitMode !== \"enter\") return;\n\n const nativeEvent = e.nativeEvent as TextInputKeyPressEventData & {\n shiftKey?: boolean;\n isComposing?: boolean;\n keyCode?: number;\n };\n // react-native-web forwards the raw DOM keydown before its own composition guard, so re-check it here (mirrors isEventComposing)\n if (nativeEvent.isComposing || nativeEvent.keyCode === 229) return;\n if (nativeEvent.key === \"Enter\" && !nativeEvent.shiftKey) {\n (e as unknown as Event).preventDefault?.();\n aui.composer().send();\n }\n },\n [aui, submitMode, onKeyPressProp],\n );\n\n return (\n <TextInput\n ref={inputRef}\n value={text}\n onChangeText={onChangeText}\n onKeyPress={onKeyPress}\n numberOfLines={numberOfLines ?? (Platform.OS === \"web\" ? 1 : undefined)}\n style={style}\n {...props}\n />\n );\n};\n"],"mappings":"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"}
@@ -1,14 +1,10 @@
1
1
  import { ViewProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/composer/ComposerRoot.d.ts
5
4
  type ComposerRootProps = ViewProps & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const ComposerRoot: ({
9
- children,
10
- ...viewProps
11
- }: ComposerRootProps) => import("react").JSX.Element;
7
+ declare const ComposerRoot: ({ children, ...viewProps }: ComposerRootProps) => import("react").JSX.Element;
12
8
  //#endregion
13
9
  export { ComposerRoot, ComposerRootProps };
14
10
  //# sourceMappingURL=ComposerRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerRoot.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerRoot.tsx"],"mappings":";;;;KAGY,iBAAA,GAAoB,SAAA;EAC9B,QAAA,EAAU,SAAS;AAAA;AAAA,cAGR,YAAA;EAAgB,QAAA;EAAA,GAAA;AAAA,GAA4B,iBAAiB,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ComposerRoot.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerRoot.tsx"],"mappings":";;;KAGY,oBAAoB;EAC9B,UAAU;;cAGC,iBAAgB,aAAA,aAA4B,sCAAiB,IAAA"}
@@ -1,15 +1,10 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/composer/ComposerSend.d.ts
5
4
  type ComposerSendProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const ComposerSend: ({
9
- children,
10
- disabled,
11
- ...pressableProps
12
- }: ComposerSendProps) => import("react").JSX.Element;
7
+ declare const ComposerSend: ({ children, disabled, ...pressableProps }: ComposerSendProps) => import("react").JSX.Element;
13
8
  //#endregion
14
9
  export { ComposerSend, ComposerSendProps };
15
10
  //# sourceMappingURL=ComposerSend.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerSend.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerSend.tsx"],"mappings":";;;;KAIY,iBAAA,GAAoB,IAAA,CAAK,cAAA;EACnC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,YAAA;EAAgB,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAI1B,iBAAA,qBAAiB,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ComposerSend.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerSend.tsx"],"mappings":";;;KAIY,oBAAoB,KAAK;EACnC,UAAU;;cAGC,iBAAgB,UAAA,aAAA,kBAI1B,sCAAiB,IAAA"}
@@ -1,15 +1,13 @@
1
1
  import { ComposerRoot, ComposerRootProps } from "./composer/ComposerRoot.js";
2
- import { ComposerAttachmentByIndex, ComposerAttachments } from "./composer/ComposerAttachments.js";
2
+ import { ComposerAttachmentByIndex, ComposerAttachmentByIndexProps, ComposerAttachments, ComposerAttachmentsProps } from "./composer/ComposerAttachments.js";
3
3
  import { ComposerInput, ComposerInputProps } from "./composer/ComposerInput.js";
4
4
  import { ComposerSend, ComposerSendProps } from "./composer/ComposerSend.js";
5
5
  import { ComposerCancel, ComposerCancelProps } from "./composer/ComposerCancel.js";
6
6
  import { ComposerAddAttachment, ComposerAddAttachmentProps } from "./composer/ComposerAddAttachment.js";
7
7
  import { ComposerIf } from "./composer/ComposerIf.js";
8
-
9
- //#region src/primitives/composer.d.ts
10
8
  declare namespace composer_d_exports {
11
- export { ComposerAddAttachment as AddAttachment, ComposerAddAttachmentProps as AddAttachmentProps, ComposerAttachmentByIndex as AttachmentByIndex, ComposerAttachments as Attachments, ComposerCancel as Cancel, ComposerCancelProps as CancelProps, ComposerIf as If, ComposerInput as Input, ComposerInputProps as InputProps, ComposerRoot as Root, ComposerRootProps as RootProps, ComposerSend as Send, ComposerSendProps as SendProps };
9
+ export { ComposerAddAttachment as AddAttachment, ComposerAddAttachmentProps as AddAttachmentProps, ComposerAttachmentByIndex as AttachmentByIndex, ComposerAttachmentByIndexProps as AttachmentByIndexProps, ComposerAttachments as Attachments, ComposerAttachmentsProps as AttachmentsProps, ComposerCancel as Cancel, ComposerCancelProps as CancelProps, ComposerIf as If, ComposerInput as Input, ComposerInputProps as InputProps, ComposerRoot as Root, ComposerRootProps as RootProps, ComposerSend as Send, ComposerSendProps as SendProps };
12
10
  }
13
11
  //#endregion
14
- export { ComposerAddAttachment as AddAttachment, type ComposerAddAttachmentProps as AddAttachmentProps, ComposerAttachmentByIndex as AttachmentByIndex, ComposerAttachments as Attachments, ComposerCancel as Cancel, type ComposerCancelProps as CancelProps, ComposerIf as If, ComposerInput as Input, type ComposerInputProps as InputProps, ComposerRoot as Root, type ComposerRootProps as RootProps, ComposerSend as Send, type ComposerSendProps as SendProps, composer_d_exports };
12
+ export { ComposerAddAttachment as AddAttachment, type ComposerAddAttachmentProps as AddAttachmentProps, ComposerAttachmentByIndex as AttachmentByIndex, type ComposerAttachmentByIndexProps as AttachmentByIndexProps, ComposerAttachments as Attachments, type ComposerAttachmentsProps as AttachmentsProps, ComposerCancel as Cancel, type ComposerCancelProps as CancelProps, ComposerIf as If, ComposerInput as Input, type ComposerInputProps as InputProps, ComposerRoot as Root, type ComposerRootProps as RootProps, ComposerSend as Send, type ComposerSendProps as SendProps, composer_d_exports };
15
13
  //# sourceMappingURL=composer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"composer.js","names":["ComposerRoot","Root","ComposerRootProps","RootProps","ComposerAttachments","Attachments","ComposerAttachmentByIndex","AttachmentByIndex","ComposerInput","Input","ComposerInputProps","InputProps","ComposerSend","Send","ComposerSendProps","SendProps","ComposerCancel","Cancel","ComposerCancelProps","CancelProps","ComposerAddAttachment","AddAttachment","ComposerAddAttachmentProps","AddAttachmentProps","ComposerIf","If"],"sources":["../../src/primitives/composer.ts"],"sourcesContent":["export {\n ComposerRoot as Root,\n type ComposerRootProps as RootProps,\n} from \"./composer/ComposerRoot\";\nexport {\n ComposerAttachments as Attachments,\n ComposerAttachmentByIndex as AttachmentByIndex,\n} from \"./composer/ComposerAttachments\";\nexport {\n ComposerInput as Input,\n type ComposerInputProps as InputProps,\n} from \"./composer/ComposerInput\";\nexport {\n ComposerSend as Send,\n type ComposerSendProps as SendProps,\n} from \"./composer/ComposerSend\";\nexport {\n ComposerCancel as Cancel,\n type ComposerCancelProps as CancelProps,\n} from \"./composer/ComposerCancel\";\nexport {\n ComposerAddAttachment as AddAttachment,\n type ComposerAddAttachmentProps as AddAttachmentProps,\n} from \"./composer/ComposerAddAttachment\";\nexport { ComposerIf as If } from \"./composer/ComposerIf\";\n"],"mappings":""}
1
+ {"version":3,"file":"composer.js","names":["ComposerRoot","Root","ComposerRootProps","RootProps","ComposerAttachments","Attachments","ComposerAttachmentsProps","AttachmentsProps","ComposerAttachmentByIndex","AttachmentByIndex","ComposerAttachmentByIndexProps","AttachmentByIndexProps","ComposerInput","Input","ComposerInputProps","InputProps","ComposerSend","Send","ComposerSendProps","SendProps","ComposerCancel","Cancel","ComposerCancelProps","CancelProps","ComposerAddAttachment","AddAttachment","ComposerAddAttachmentProps","AddAttachmentProps","ComposerIf","If"],"sources":["../../src/primitives/composer.ts"],"sourcesContent":["export {\n ComposerRoot as Root,\n type ComposerRootProps as RootProps,\n} from \"./composer/ComposerRoot\";\nexport {\n ComposerAttachments as Attachments,\n type ComposerAttachmentsProps as AttachmentsProps,\n ComposerAttachmentByIndex as AttachmentByIndex,\n type ComposerAttachmentByIndexProps as AttachmentByIndexProps,\n} from \"./composer/ComposerAttachments\";\nexport {\n ComposerInput as Input,\n type ComposerInputProps as InputProps,\n} from \"./composer/ComposerInput\";\nexport {\n ComposerSend as Send,\n type ComposerSendProps as SendProps,\n} from \"./composer/ComposerSend\";\nexport {\n ComposerCancel as Cancel,\n type ComposerCancelProps as CancelProps,\n} from \"./composer/ComposerCancel\";\nexport {\n ComposerAddAttachment as AddAttachment,\n type ComposerAddAttachmentProps as AddAttachmentProps,\n} from \"./composer/ComposerAddAttachment\";\nexport { ComposerIf as If } from \"./composer/ComposerIf\";\n"],"mappings":""}
@@ -1,15 +1,11 @@
1
1
  import { TextProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/error/ErrorMessage.d.ts
5
4
  type ErrorMessageProps = TextProps & {
6
5
  children?: ReactNode;
7
6
  };
8
7
  declare const ErrorMessage: {
9
- ({
10
- children,
11
- ...textProps
12
- }: ErrorMessageProps): import("react").JSX.Element | null;
8
+ ({ children, ...textProps }: ErrorMessageProps): import("react").JSX.Element | null;
13
9
  displayName: string;
14
10
  };
15
11
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorMessage.d.ts","names":[],"sources":["../../../src/primitives/error/ErrorMessage.tsx"],"mappings":";;;;KAIY,iBAAA,GAAoB,SAAA;EAC9B,QAAA,GAAW,SAAS;AAAA;AAAA,cAGT,YAAA;EAAA;;;KAA4C,iBAAiB,mBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ErrorMessage.d.ts","names":[],"sources":["../../../src/primitives/error/ErrorMessage.tsx"],"mappings":";;;KAIY,oBAAoB;EAC9B,WAAW;;cAGA;KAAA,0BAA4C,oCAAiB,IAAA"}
@@ -1,15 +1,11 @@
1
1
  import { ViewProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/error/ErrorRoot.d.ts
5
4
  type ErrorRootProps = ViewProps & {
6
5
  children: ReactNode;
7
6
  };
8
7
  declare const ErrorRoot: {
9
- ({
10
- children,
11
- ...viewProps
12
- }: ErrorRootProps): import("react").JSX.Element | null;
8
+ ({ children, ...viewProps }: ErrorRootProps): import("react").JSX.Element | null;
13
9
  displayName: string;
14
10
  };
15
11
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorRoot.d.ts","names":[],"sources":["../../../src/primitives/error/ErrorRoot.tsx"],"mappings":";;;;KAIY,cAAA,GAAiB,SAAA;EAC3B,QAAA,EAAU,SAAS;AAAA;AAAA,cAGR,SAAA;EAAA;;;KAAyC,cAAc,mBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ErrorRoot.d.ts","names":[],"sources":["../../../src/primitives/error/ErrorRoot.tsx"],"mappings":";;;KAIY,iBAAiB;EAC3B,UAAU;;cAGC;KAAA,0BAAyC,iCAAc,IAAA"}
@@ -1,7 +1,5 @@
1
1
  import { ErrorRoot, ErrorRootProps } from "./ErrorRoot.js";
2
2
  import { ErrorMessage, ErrorMessageProps } from "./ErrorMessage.js";
3
-
4
- //#region src/primitives/error/index.d.ts
5
3
  declare namespace index_d_exports {
6
4
  export { ErrorMessage as Message, ErrorMessageProps as MessageProps, ErrorRoot as Root, ErrorRootProps as RootProps };
7
5
  }
@@ -1,14 +1,7 @@
1
- import { AttachmentComponents } from "../composer/ComposerAttachments.js";
2
1
  import { MessagePrimitiveAttachmentByIndex, MessagePrimitiveAttachments } from "@assistant-ui/core/react";
3
-
4
2
  //#region src/primitives/message/MessageAttachments.d.ts
5
- type MessageAttachmentsProps = {
6
- components: AttachmentComponents | undefined;
7
- };
8
- type MessageAttachmentByIndexProps = {
9
- index: number;
10
- components?: AttachmentComponents | undefined;
11
- };
3
+ type MessageAttachmentsProps = MessagePrimitiveAttachments.Props;
4
+ type MessageAttachmentByIndexProps = MessagePrimitiveAttachmentByIndex.Props;
12
5
  declare const MessageAttachmentByIndex: import("react").FC<MessagePrimitiveAttachmentByIndex.Props>;
13
6
  declare const MessageAttachments: import("react").FC<MessagePrimitiveAttachments.Props>;
14
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"MessageAttachments.d.ts","names":[],"sources":["../../../src/primitives/message/MessageAttachments.tsx"],"mappings":";;;;KAMY,uBAAA;EACV,UAAA,EAAY,oBAAoB;AAAA;AAAA,KAGtB,6BAAA;EACV,KAAA;EACA,UAAA,GAAa,oBAAoB;AAAA;AAAA,cAGtB,wBAAA,kBAAwB,EAAA,CAAA,iCAAA,CAAA,KAAA;AAAA,cAExB,kBAAA,kBAAkB,EAAA,CAAA,2BAAA,CAAA,KAAA"}
1
+ {"version":3,"file":"MessageAttachments.d.ts","names":[],"sources":["../../../src/primitives/message/MessageAttachments.tsx"],"mappings":";;KAKY,0BAA0B,4BAA4B;KAEtD,gCACV,kCAAkC;cAEvB,0CAAwB,GAAA,kCAAA;cAExB,oCAAkB,GAAA,4BAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageAttachments.js","names":["MessagePrimitiveAttachments","MessagePrimitiveAttachmentByIndex","AttachmentComponents","MessageAttachmentsProps","components","MessageAttachmentByIndexProps","index","MessageAttachmentByIndex","MessageAttachments"],"sources":["../../../src/primitives/message/MessageAttachments.tsx"],"sourcesContent":["import {\n MessagePrimitiveAttachments,\n MessagePrimitiveAttachmentByIndex,\n} from \"@assistant-ui/core/react\";\nimport type { AttachmentComponents } from \"../composer/ComposerAttachments\";\n\nexport type MessageAttachmentsProps = {\n components: AttachmentComponents | undefined;\n};\n\nexport type MessageAttachmentByIndexProps = {\n index: number;\n components?: AttachmentComponents | undefined;\n};\n\nexport const MessageAttachmentByIndex = MessagePrimitiveAttachmentByIndex;\n\nexport const MessageAttachments = MessagePrimitiveAttachments;\n"],"mappings":";;AAeA,MAAaO,2BAA2BN;AAExC,MAAaO,qBAAqBR"}
1
+ {"version":3,"file":"MessageAttachments.js","names":["MessagePrimitiveAttachments","MessagePrimitiveAttachmentByIndex","MessageAttachmentsProps","Props","MessageAttachmentByIndexProps","MessageAttachmentByIndex","MessageAttachments"],"sources":["../../../src/primitives/message/MessageAttachments.tsx"],"sourcesContent":["import {\n MessagePrimitiveAttachments,\n MessagePrimitiveAttachmentByIndex,\n} from \"@assistant-ui/core/react\";\n\nexport type MessageAttachmentsProps = MessagePrimitiveAttachments.Props;\n\nexport type MessageAttachmentByIndexProps =\n MessagePrimitiveAttachmentByIndex.Props;\n\nexport const MessageAttachmentByIndex = MessagePrimitiveAttachmentByIndex;\n\nexport const MessageAttachments = MessagePrimitiveAttachments;\n"],"mappings":";;AAUA,MAAaK,2BAA2BJ;AAExC,MAAaK,qBAAqBN"}
@@ -1,6 +1,5 @@
1
1
  import { ThreadAssistantMessagePart, ThreadUserMessagePart } from "@assistant-ui/core";
2
2
  import { ReactElement } from "react";
3
-
4
3
  //#region src/primitives/message/MessageContent.d.ts
5
4
  type MessageContentPart = ThreadUserMessagePart | ThreadAssistantMessagePart;
6
5
  type MessageContentProps = {
@@ -47,15 +46,7 @@ type MessageContentProps = {
47
46
  index: number;
48
47
  }) => ReactElement;
49
48
  };
50
- declare const MessageContent: ({
51
- renderText,
52
- renderToolCall,
53
- renderImage,
54
- renderReasoning,
55
- renderSource,
56
- renderFile,
57
- renderData
58
- }: MessageContentProps) => import("react").JSX.Element;
49
+ declare const MessageContent: ({ renderText, renderToolCall, renderImage, renderReasoning, renderSource, renderFile, renderData }: MessageContentProps) => import("react").JSX.Element;
59
50
  //#endregion
60
51
  export { MessageContent, MessageContentProps };
61
52
  //# sourceMappingURL=MessageContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageContent.d.ts","names":[],"sources":["../../../src/primitives/message/MessageContent.tsx"],"mappings":";;;;KAcK,kBAAA,GAAqB,qBAAA,GAAwB,0BAA0B;AAAA,KAEhE,mBAAA;EACV,UAAA,IAAc,KAAA;IACZ,IAAA,EAAM,OAAA,CAAQ,kBAAA;MAAsB,IAAA;IAAA;IACpC,KAAA;EAAA,MACI,YAAA;EACN,cAAA,IAAkB,KAAA;IAChB,IAAA,EAAM,OAAA,CAAQ,kBAAA;MAAsB,IAAA;IAAA;IACpC,KAAA;EAAA,MACI,YAAA;EACN,WAAA,IAAe,KAAA;IACb,IAAA,EAAM,OAAA,CAAQ,kBAAA;MAAsB,IAAA;IAAA;IACpC,KAAA;EAAA,MACI,YAAA;EACN,eAAA,IAAmB,KAAA;IACjB,IAAA,EAAM,OAAA,CAAQ,kBAAA;MAAsB,IAAA;IAAA;IACpC,KAAA;EAAA,MACI,YAAA;EACN,YAAA,IAAgB,KAAA;IACd,IAAA,EAAM,OAAA,CAAQ,kBAAA;MAAsB,IAAA;IAAA;IACpC,KAAA;EAAA,MACI,YAAA;EACN,UAAA,IAAc,KAAA;IACZ,IAAA,EAAM,OAAA,CAAQ,kBAAA;MAAsB,IAAA;IAAA;IACpC,KAAA;EAAA,MACI,YAAA;EACN,UAAA,IAAc,KAAA;IACZ,IAAA,EAAM,OAAA,CAAQ,kBAAA;MAAsB,IAAA;IAAA;IACpC,KAAA;EAAA,MACI,YAAA;AAAA;AAAA,cAqEK,cAAA;EAAkB,UAAA;EAAA,cAAA;EAAA,WAAA;EAAA,eAAA;EAAA,YAAA;EAAA,UAAA;EAAA;AAAA,GAQ5B,mBAAA,qBAAmB,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"MessageContent.d.ts","names":[],"sources":["../../../src/primitives/message/MessageContent.tsx"],"mappings":";;;KAcK,qBAAqB,wBAAwB;KAEtC;EACV,cAAc;IACZ,MAAM,QAAQ;MAAsB;;IACpC;QACI;EACN,kBAAkB;IAChB,MAAM,QAAQ;MAAsB;;IACpC;QACI;EACN,eAAe;IACb,MAAM,QAAQ;MAAsB;;IACpC;QACI;EACN,mBAAmB;IACjB,MAAM,QAAQ;MAAsB;;IACpC;QACI;EACN,gBAAgB;IACd,MAAM,QAAQ;MAAsB;;IACpC;QACI;EACN,cAAc;IACZ,MAAM,QAAQ;MAAsB;;IACpC;QACI;EACN,cAAc;IACZ,MAAM,QAAQ;MAAsB;;IACpC;QACI;;cAqEK,mBAAkB,YAAA,gBAAA,aAAA,iBAAA,cAAA,YAAA,cAQ5B,wCAAmB,IAAA"}
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from "react";
2
-
3
2
  //#region src/primitives/message/MessageIf.d.ts
4
3
  type MessageIfProps = {
5
4
  children: ReactNode;
@@ -8,13 +7,7 @@ type MessageIfProps = {
8
7
  running?: boolean | undefined;
9
8
  last?: boolean | undefined;
10
9
  };
11
- declare const MessageIf: ({
12
- children,
13
- user,
14
- assistant,
15
- running,
16
- last
17
- }: MessageIfProps) => import("react").JSX.Element | null;
10
+ declare const MessageIf: ({ children, user, assistant, running, last }: MessageIfProps) => import("react").JSX.Element | null;
18
11
  //#endregion
19
12
  export { MessageIf, MessageIfProps };
20
13
  //# sourceMappingURL=MessageIf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageIf.d.ts","names":[],"sources":["../../../src/primitives/message/MessageIf.tsx"],"mappings":";;;KAGY,cAAA;EACV,QAAA,EAAU,SAAS;EACnB,IAAA;EACA,SAAA;EACA,OAAA;EACA,IAAA;AAAA;AAAA,cAGW,SAAA;EAAa,QAAA;EAAA,IAAA;EAAA,SAAA;EAAA,OAAA;EAAA;AAAA,GAMvB,cAAA,qBAAc,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"MessageIf.d.ts","names":[],"sources":["../../../src/primitives/message/MessageIf.tsx"],"mappings":";;KAGY;EACV,UAAU;EACV;EACA;EACA;EACA;;cAGW,cAAa,UAAA,MAAA,WAAA,SAAA,QAMvB,mCAAc,IAAA"}
@@ -1,6 +1,5 @@
1
1
  import { MessagePartComponent as MessagePartComponentBase, MessagePrimitivePartByIndex as MessagePrimitivePartByIndexBase, MessagePrimitiveParts as MessagePrimitiveParts$1 } from "@assistant-ui/core/react";
2
2
  import { FC } from "react";
3
-
4
3
  //#region src/primitives/message/MessageParts.d.ts
5
4
  declare namespace MessagePrimitiveParts {
6
5
  type Props = MessagePrimitiveParts$1.Props;
@@ -1 +1 @@
1
- {"version":3,"file":"MessageParts.d.ts","names":[],"sources":["../../../src/primitives/message/MessageParts.tsx"],"mappings":";;;;kBAciB,qBAAA;EAAA,KACH,KAAA,GAAQ,uBAAA,CAA0B,KAAK;AAAA;;;;cAMxC,qBAAA,EAAuB,EAAE,CAAC,qBAAA,CAAsB,KAAA"}
1
+ {"version":3,"file":"MessageParts.d.ts","names":[],"sources":["../../../src/primitives/message/MessageParts.tsx"],"mappings":";;;kBAciB;OACH,QAAQ,wBAA0B;;;;;cAMnC,uBAAuB,GAAG,sBAAsB"}
@@ -1,14 +1,10 @@
1
1
  import { ViewProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/message/MessageRoot.d.ts
5
4
  type MessageRootProps = ViewProps & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const MessageRoot: ({
9
- children,
10
- ...viewProps
11
- }: MessageRootProps) => import("react").JSX.Element;
7
+ declare const MessageRoot: ({ children, ...viewProps }: MessageRootProps) => import("react").JSX.Element;
12
8
  //#endregion
13
9
  export { MessageRoot, MessageRootProps };
14
10
  //# sourceMappingURL=MessageRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageRoot.d.ts","names":[],"sources":["../../../src/primitives/message/MessageRoot.tsx"],"mappings":";;;;KAGY,gBAAA,GAAmB,SAAA;EAC7B,QAAA,EAAU,SAAS;AAAA;AAAA,cAGR,WAAA;EAAe,QAAA;EAAA,GAAA;AAAA,GAA4B,gBAAgB,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"MessageRoot.d.ts","names":[],"sources":["../../../src/primitives/message/MessageRoot.tsx"],"mappings":";;;KAGY,mBAAmB;EAC7B,UAAU;;cAGC,gBAAe,aAAA,aAA4B,qCAAgB,IAAA"}
@@ -2,13 +2,11 @@ import { MessageRoot, MessageRootProps } from "./message/MessageRoot.js";
2
2
  import { MessageContent, MessageContentProps } from "./message/MessageContent.js";
3
3
  import { MessagePrimitivePartByIndex as MessagePrimitivePartByIndexBase, MessagePrimitiveParts } from "./message/MessageParts.js";
4
4
  import { MessageIf, MessageIfProps } from "./message/MessageIf.js";
5
- import { MessageAttachmentByIndex, MessageAttachments } from "./message/MessageAttachments.js";
5
+ import { MessageAttachmentByIndex, MessageAttachmentByIndexProps, MessageAttachments, MessageAttachmentsProps } from "./message/MessageAttachments.js";
6
6
  import { MessagePrimitiveGroupedParts as GroupedParts } from "@assistant-ui/core/react";
7
-
8
- //#region src/primitives/message.d.ts
9
7
  declare namespace message_d_exports {
10
- export { MessageAttachmentByIndex as AttachmentByIndex, MessageAttachments as Attachments, MessageContent as Content, MessageContentProps as ContentProps, GroupedParts, MessageIf as If, MessageIfProps as IfProps, MessagePrimitivePartByIndexBase as PartByIndex, MessagePrimitiveParts as Parts, MessageRoot as Root, MessageRootProps as RootProps };
8
+ export { MessageAttachmentByIndex as AttachmentByIndex, MessageAttachmentByIndexProps as AttachmentByIndexProps, MessageAttachments as Attachments, MessageAttachmentsProps as AttachmentsProps, MessageContent as Content, MessageContentProps as ContentProps, GroupedParts, MessageIf as If, MessageIfProps as IfProps, MessagePrimitivePartByIndexBase as PartByIndex, MessagePrimitiveParts as Parts, MessageRoot as Root, MessageRootProps as RootProps };
11
9
  }
12
10
  //#endregion
13
- export { MessageAttachmentByIndex as AttachmentByIndex, MessageAttachments as Attachments, MessageContent as Content, type MessageContentProps as ContentProps, GroupedParts, MessageIf as If, type MessageIfProps as IfProps, MessagePrimitivePartByIndexBase as PartByIndex, MessagePrimitiveParts as Parts, MessageRoot as Root, type MessageRootProps as RootProps, message_d_exports };
11
+ export { MessageAttachmentByIndex as AttachmentByIndex, type MessageAttachmentByIndexProps as AttachmentByIndexProps, MessageAttachments as Attachments, type MessageAttachmentsProps as AttachmentsProps, MessageContent as Content, type MessageContentProps as ContentProps, GroupedParts, MessageIf as If, type MessageIfProps as IfProps, MessagePrimitivePartByIndexBase as PartByIndex, MessagePrimitiveParts as Parts, MessageRoot as Root, type MessageRootProps as RootProps, message_d_exports };
14
12
  //# sourceMappingURL=message.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message.js","names":["MessageRoot","Root","MessageRootProps","RootProps","MessageContent","Content","MessageContentProps","ContentProps","MessagePrimitiveParts","Parts","MessagePrimitivePartByIndex","PartByIndex","MessagePrimitiveGroupedParts","GroupedParts","MessageIf","If","MessageIfProps","IfProps","MessageAttachments","Attachments","MessageAttachmentByIndex","AttachmentByIndex"],"sources":["../../src/primitives/message.ts"],"sourcesContent":["export {\n MessageRoot as Root,\n type MessageRootProps as RootProps,\n} from \"./message/MessageRoot\";\nexport {\n MessageContent as Content,\n type MessageContentProps as ContentProps,\n} from \"./message/MessageContent\";\nexport {\n MessagePrimitiveParts as Parts,\n MessagePrimitivePartByIndex as PartByIndex,\n} from \"./message/MessageParts\";\nexport { MessagePrimitiveGroupedParts as GroupedParts } from \"@assistant-ui/core/react\";\nexport {\n MessageIf as If,\n type MessageIfProps as IfProps,\n} from \"./message/MessageIf\";\nexport {\n MessageAttachments as Attachments,\n MessageAttachmentByIndex as AttachmentByIndex,\n} from \"./message/MessageAttachments\";\n"],"mappings":""}
1
+ {"version":3,"file":"message.js","names":["MessageRoot","Root","MessageRootProps","RootProps","MessageContent","Content","MessageContentProps","ContentProps","MessagePrimitiveParts","Parts","MessagePrimitivePartByIndex","PartByIndex","MessagePrimitiveGroupedParts","GroupedParts","MessageIf","If","MessageIfProps","IfProps","MessageAttachments","Attachments","MessageAttachmentsProps","AttachmentsProps","MessageAttachmentByIndex","AttachmentByIndex","MessageAttachmentByIndexProps","AttachmentByIndexProps"],"sources":["../../src/primitives/message.ts"],"sourcesContent":["export {\n MessageRoot as Root,\n type MessageRootProps as RootProps,\n} from \"./message/MessageRoot\";\nexport {\n MessageContent as Content,\n type MessageContentProps as ContentProps,\n} from \"./message/MessageContent\";\nexport {\n MessagePrimitiveParts as Parts,\n MessagePrimitivePartByIndex as PartByIndex,\n} from \"./message/MessageParts\";\nexport { MessagePrimitiveGroupedParts as GroupedParts } from \"@assistant-ui/core/react\";\nexport {\n MessageIf as If,\n type MessageIfProps as IfProps,\n} from \"./message/MessageIf\";\nexport {\n MessageAttachments as Attachments,\n type MessageAttachmentsProps as AttachmentsProps,\n MessageAttachmentByIndex as AttachmentByIndex,\n type MessageAttachmentByIndexProps as AttachmentByIndexProps,\n} from \"./message/MessageAttachments\";\n"],"mappings":""}
@@ -1,14 +1,10 @@
1
1
  import { TextProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/suggestion/SuggestionDescription.d.ts
5
4
  type SuggestionDescriptionProps = TextProps & {
6
5
  children?: ReactNode;
7
6
  };
8
- declare const SuggestionDescription: ({
9
- children,
10
- ...textProps
11
- }: SuggestionDescriptionProps) => import("react").JSX.Element;
7
+ declare const SuggestionDescription: ({ children, ...textProps }: SuggestionDescriptionProps) => import("react").JSX.Element;
12
8
  //#endregion
13
9
  export { SuggestionDescription, SuggestionDescriptionProps };
14
10
  //# sourceMappingURL=SuggestionDescription.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SuggestionDescription.d.ts","names":[],"sources":["../../../src/primitives/suggestion/SuggestionDescription.tsx"],"mappings":";;;;KAIY,0BAAA,GAA6B,SAAA;EACvC,QAAA,GAAW,SAAS;AAAA;AAAA,cAGT,qBAAA;EAAyB,QAAA;EAAA,GAAA;AAAA,GAGnC,0BAA0B,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"SuggestionDescription.d.ts","names":[],"sources":["../../../src/primitives/suggestion/SuggestionDescription.tsx"],"mappings":";;;KAIY,6BAA6B;EACvC,WAAW;;cAGA,0BAAyB,aAAA,aAGnC,+CAA0B,IAAA"}
@@ -1,14 +1,10 @@
1
1
  import { TextProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/suggestion/SuggestionTitle.d.ts
5
4
  type SuggestionTitleProps = TextProps & {
6
5
  children?: ReactNode;
7
6
  };
8
- declare const SuggestionTitle: ({
9
- children,
10
- ...textProps
11
- }: SuggestionTitleProps) => import("react").JSX.Element;
7
+ declare const SuggestionTitle: ({ children, ...textProps }: SuggestionTitleProps) => import("react").JSX.Element;
12
8
  //#endregion
13
9
  export { SuggestionTitle, SuggestionTitleProps };
14
10
  //# sourceMappingURL=SuggestionTitle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SuggestionTitle.d.ts","names":[],"sources":["../../../src/primitives/suggestion/SuggestionTitle.tsx"],"mappings":";;;;KAIY,oBAAA,GAAuB,SAAA;EACjC,QAAA,GAAW,SAAS;AAAA;AAAA,cAGT,eAAA;EAAmB,QAAA;EAAA,GAAA;AAAA,GAG7B,oBAAoB,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"SuggestionTitle.d.ts","names":[],"sources":["../../../src/primitives/suggestion/SuggestionTitle.tsx"],"mappings":";;;KAIY,uBAAuB;EACjC,WAAW;;cAGA,oBAAmB,aAAA,aAG7B,yCAAoB,IAAA"}
@@ -1,6 +1,5 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/suggestion/SuggestionTrigger.d.ts
5
4
  type SuggestionTriggerProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
@@ -16,13 +15,7 @@ type SuggestionTriggerProps = Omit<PressableProps, "onPress"> & {
16
15
  */
17
16
  clearComposer?: boolean | undefined;
18
17
  };
19
- declare const SuggestionTrigger: ({
20
- children,
21
- send,
22
- clearComposer,
23
- disabled: disabledProp,
24
- ...pressableProps
25
- }: SuggestionTriggerProps) => import("react").JSX.Element;
18
+ declare const SuggestionTrigger: ({ children, send, clearComposer, disabled: disabledProp, ...pressableProps }: SuggestionTriggerProps) => import("react").JSX.Element;
26
19
  //#endregion
27
20
  export { SuggestionTrigger, SuggestionTriggerProps };
28
21
  //# sourceMappingURL=SuggestionTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SuggestionTrigger.d.ts","names":[],"sources":["../../../src/primitives/suggestion/SuggestionTrigger.tsx"],"mappings":";;;;KAKY,sBAAA,GAAyB,IAAA,CAAK,cAAA;EACxC,QAAA,EAAU,SAAA;EADA;;;;EAMV,IAAA;EALU;;;;;EAWV,aAAA;AAAA;AAAA,cAGW,iBAAA;EAAqB,QAAA;EAAA,IAAA;EAAA,aAAA;EAAA,QAAA,EAAA,YAAA;EAAA,GAAA;AAAA,GAM/B,sBAAA,qBAAsB,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"SuggestionTrigger.d.ts","names":[],"sources":["../../../src/primitives/suggestion/SuggestionTrigger.tsx"],"mappings":";;;KAKY,yBAAyB,KAAK;EACxC,UAAU;;;;;EAKV;;;;;;EAMA;;cAGW,sBAAqB,UAAA,MAAA,eAAA,UAAA,iBAAA,kBAM/B,2CAAsB,IAAA"}
@@ -1,8 +1,6 @@
1
1
  import { SuggestionTitle, SuggestionTitleProps } from "./suggestion/SuggestionTitle.js";
2
2
  import { SuggestionDescription, SuggestionDescriptionProps } from "./suggestion/SuggestionDescription.js";
3
3
  import { SuggestionTrigger, SuggestionTriggerProps } from "./suggestion/SuggestionTrigger.js";
4
-
5
- //#region src/primitives/suggestion.d.ts
6
4
  declare namespace suggestion_d_exports {
7
5
  export { SuggestionDescription as Description, SuggestionDescriptionProps as DescriptionProps, SuggestionTitle as Title, SuggestionTitleProps as TitleProps, SuggestionTrigger as Trigger, SuggestionTriggerProps as TriggerProps };
8
6
  }
@@ -1,12 +1,9 @@
1
1
  import { ReactNode } from "react";
2
-
3
2
  //#region src/primitives/thread/ThreadEmpty.d.ts
4
3
  type ThreadEmptyProps = {
5
4
  children: ReactNode;
6
5
  };
7
- declare const ThreadEmpty: ({
8
- children
9
- }: ThreadEmptyProps) => import("react").JSX.Element | null;
6
+ declare const ThreadEmpty: ({ children }: ThreadEmptyProps) => import("react").JSX.Element | null;
10
7
  //#endregion
11
8
  export { ThreadEmpty, ThreadEmptyProps };
12
9
  //# sourceMappingURL=ThreadEmpty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThreadEmpty.d.ts","names":[],"sources":["../../../src/primitives/thread/ThreadEmpty.tsx"],"mappings":";;;KAGY,gBAAA;EACV,QAAA,EAAU,SAAS;AAAA;AAAA,cAGR,WAAA;EAAe;AAAA,GAAc,gBAAgB,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ThreadEmpty.d.ts","names":[],"sources":["../../../src/primitives/thread/ThreadEmpty.tsx"],"mappings":";;KAGY;EACV,UAAU;;cAGC,gBAAe,YAAc,qCAAgB,IAAA"}
@@ -1,16 +1,11 @@
1
1
  import { ReactNode } from "react";
2
-
3
2
  //#region src/primitives/thread/ThreadIf.d.ts
4
3
  type ThreadIfProps = {
5
4
  children: ReactNode;
6
5
  empty?: boolean | undefined;
7
6
  running?: boolean | undefined;
8
7
  };
9
- declare const ThreadIf: ({
10
- children,
11
- empty,
12
- running
13
- }: ThreadIfProps) => import("react").JSX.Element | null;
8
+ declare const ThreadIf: ({ children, empty, running }: ThreadIfProps) => import("react").JSX.Element | null;
14
9
  //#endregion
15
10
  export { ThreadIf, ThreadIfProps };
16
11
  //# sourceMappingURL=ThreadIf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThreadIf.d.ts","names":[],"sources":["../../../src/primitives/thread/ThreadIf.tsx"],"mappings":";;;KAGY,aAAA;EACV,QAAA,EAAU,SAAS;EACnB,KAAA;EACA,OAAA;AAAA;AAAA,cAGW,QAAA;EAAY,QAAA;EAAA,KAAA;EAAA;AAAA,GAA8B,aAAA,qBAAa,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ThreadIf.d.ts","names":[],"sources":["../../../src/primitives/thread/ThreadIf.tsx"],"mappings":";;KAGY;EACV,UAAU;EACV;EACA;;cAGW,aAAY,UAAA,OAAA,WAA8B,kCAAa,IAAA"}
@@ -1,7 +1,6 @@
1
1
  import { MessageState, ThreadMessage } from "@assistant-ui/core";
2
- import { FlatListProps } from "react-native";
2
+ import { FlatList, FlatListProps } from "react-native";
3
3
  import { ComponentType, ReactNode } from "react";
4
-
5
4
  //#region src/primitives/thread/ThreadMessages.d.ts
6
5
  type MessageComponents = {
7
6
  Message: ComponentType;
@@ -23,7 +22,8 @@ type MessageComponents = {
23
22
  SystemMessage?: ComponentType | undefined;
24
23
  };
25
24
  type MessagesContent = {
26
- /** @deprecated Use the children render function instead. */components: MessageComponents;
25
+ /** @deprecated Use the children render function instead. */
26
+ components: MessageComponents;
27
27
  children?: never;
28
28
  } | {
29
29
  children: (value: {
@@ -32,14 +32,7 @@ type MessagesContent = {
32
32
  components?: never;
33
33
  };
34
34
  type ThreadMessagesProps = Omit<FlatListProps<ThreadMessage>, "data" | "renderItem" | "children"> & MessagesContent;
35
- declare const ThreadMessages: {
36
- ({
37
- components,
38
- children,
39
- ...flatListProps
40
- }: ThreadMessagesProps): import("react").JSX.Element;
41
- displayName: string;
42
- };
35
+ declare const ThreadMessages: import("react").ForwardRefExoticComponent<ThreadMessagesProps & import("react").RefAttributes<FlatList<ThreadMessage>>>;
43
36
  //#endregion
44
37
  export { ThreadMessages, ThreadMessagesProps };
45
38
  //# sourceMappingURL=ThreadMessages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThreadMessages.d.ts","names":[],"sources":["../../../src/primitives/thread/ThreadMessages.tsx"],"mappings":";;;;;KAYK,iBAAA;EAEC,OAAA,EAAS,aAAA;EACT,YAAA,GAAe,aAAA;EACf,gBAAA,GAAmB,aAAA;EACnB,qBAAA,GAAwB,aAAA;EACxB,kBAAA,GAAqB,aAAA;EACrB,WAAA,GAAc,aAAA;EACd,gBAAA,GAAmB,aAAA;EACnB,aAAA,GAAgB,aAAA;AAAA;EAGhB,OAAA,GAAU,aAAA;EACV,YAAA,GAAe,aAAA;EACf,gBAAA,GAAmB,aAAA;EACnB,qBAAA,GAAwB,aAAA;EACxB,kBAAA,GAAqB,aAAA;EACrB,WAAA,EAAa,aAAA;EACb,gBAAA,EAAkB,aAAA;EAClB,aAAA,GAAgB,aAAA;AAAA;AAAA,KAGjB,eAAA;EAHiB,4DAMhB,UAAA,EAAY,iBAAA;EACZ,QAAA;AAAA;EAGA,QAAA,GAAW,KAAA;IAAS,OAAA,EAAS,YAAA;EAAA,MAAmB,SAAA;EAChD,UAAA;AAAA;AAAA,KAGM,mBAAA,GAAsB,IAAA,CAChC,aAAA,CAAc,aAAA,yCAGd,eAAA;AAAA,cA2GW,cAAA;EAAA;;;;KAIV,mBAAA,mBAAmB,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ThreadMessages.d.ts","names":[],"sources":["../../../src/primitives/thread/ThreadMessages.tsx"],"mappings":";;;;KAaK;EAEC,SAAS;EACT,eAAe;EACf,mBAAmB;EACnB,wBAAwB;EACxB,qBAAqB;EACrB,cAAc;EACd,mBAAmB;EACnB,gBAAgB;;EAGhB,UAAU;EACV,eAAe;EACf,mBAAmB;EACnB,wBAAwB;EACxB,qBAAqB;EACrB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;;KAGjB;;EAGC,YAAY;EACZ;;EAGA,WAAW;IAAS,SAAS;QAAmB;EAChD;;KAGM,sBAAsB,KAChC,cAAc,sDAGd;cA2GW,gCAAc,0BAAA,sCAAA,cAAA,SAAA"}
@@ -3,7 +3,7 @@ import { MessageByIndexProvider } from "@assistant-ui/core/react";
3
3
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
4
4
  import { FlatList } from "react-native";
5
5
  import { jsx } from "react/jsx-runtime";
6
- import { memo } from "@assistant-ui/tap/react-shim";
6
+ import { forwardRef, memo } from "@assistant-ui/tap/react-shim";
7
7
  //#region src/primitives/thread/ThreadMessages.tsx
8
8
  const DEFAULT_SYSTEM_MESSAGE = () => null;
9
9
  const getComponent = (components, role, isEditing) => {
@@ -73,8 +73,8 @@ const ThreadMessageByChildren = memo(({ index, children }) => {
73
73
  });
74
74
  }, (prev, next) => prev.index === next.index && prev.children === next.children);
75
75
  ThreadMessageByChildren.displayName = "ThreadPrimitive.MessageByChildren";
76
- const ThreadMessages = (t0) => {
77
- const $ = c(11);
76
+ const ThreadMessages = forwardRef((t0, ref) => {
77
+ const $ = c(12);
78
78
  let children;
79
79
  let components;
80
80
  let flatListProps;
@@ -111,20 +111,22 @@ const ThreadMessages = (t0) => {
111
111
  const keyExtractor = _temp4;
112
112
  const t2 = messages;
113
113
  let t3;
114
- if ($[7] !== flatListProps || $[8] !== renderItem || $[9] !== t2) {
114
+ if ($[7] !== flatListProps || $[8] !== ref || $[9] !== renderItem || $[10] !== t2) {
115
115
  t3 = /* @__PURE__ */ jsx(FlatList, {
116
+ ref,
116
117
  data: t2,
117
118
  renderItem,
118
119
  keyExtractor,
119
120
  ...flatListProps
120
121
  });
121
122
  $[7] = flatListProps;
122
- $[8] = renderItem;
123
- $[9] = t2;
124
- $[10] = t3;
125
- } else t3 = $[10];
123
+ $[8] = ref;
124
+ $[9] = renderItem;
125
+ $[10] = t2;
126
+ $[11] = t3;
127
+ } else t3 = $[11];
126
128
  return t3;
127
- };
129
+ });
128
130
  ThreadMessages.displayName = "ThreadPrimitive.Messages";
129
131
  function _temp(s) {
130
132
  return s.message.role;