@assistant-ui/react-native 0.1.23 → 0.1.24

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 (100) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/primitives/actionBar/ActionBarCopy.js +57 -11
  3. package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
  4. package/dist/primitives/actionBar/ActionBarEdit.js +33 -7
  5. package/dist/primitives/actionBar/ActionBarEdit.js.map +1 -1
  6. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +34 -6
  7. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
  8. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +34 -6
  9. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
  10. package/dist/primitives/actionBar/ActionBarReload.js +33 -7
  11. package/dist/primitives/actionBar/ActionBarReload.js.map +1 -1
  12. package/dist/primitives/actionBar.js.map +1 -1
  13. package/dist/primitives/attachment/AttachmentName.js +17 -5
  14. package/dist/primitives/attachment/AttachmentName.js.map +1 -1
  15. package/dist/primitives/attachment/AttachmentRemove.js +35 -8
  16. package/dist/primitives/attachment/AttachmentRemove.js.map +1 -1
  17. package/dist/primitives/attachment/AttachmentRoot.js +25 -5
  18. package/dist/primitives/attachment/AttachmentRoot.js.map +1 -1
  19. package/dist/primitives/attachment/AttachmentThumb.js +18 -8
  20. package/dist/primitives/attachment/AttachmentThumb.js.map +1 -1
  21. package/dist/primitives/attachment.js.map +1 -1
  22. package/dist/primitives/branchPicker/BranchPickerCount.js +17 -5
  23. package/dist/primitives/branchPicker/BranchPickerCount.js.map +1 -1
  24. package/dist/primitives/branchPicker/BranchPickerNext.js +33 -7
  25. package/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -1
  26. package/dist/primitives/branchPicker/BranchPickerNumber.js +17 -5
  27. package/dist/primitives/branchPicker/BranchPickerNumber.js.map +1 -1
  28. package/dist/primitives/branchPicker/BranchPickerPrevious.js +33 -7
  29. package/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -1
  30. package/dist/primitives/branchPicker.js.map +1 -1
  31. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +40 -9
  32. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js.map +1 -1
  33. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js +25 -5
  34. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js.map +1 -1
  35. package/dist/primitives/chainOfThought.js.map +1 -1
  36. package/dist/primitives/composer/ComposerAddAttachment.js +31 -6
  37. package/dist/primitives/composer/ComposerAddAttachment.js.map +1 -1
  38. package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
  39. package/dist/primitives/composer/ComposerCancel.js +33 -7
  40. package/dist/primitives/composer/ComposerCancel.js.map +1 -1
  41. package/dist/primitives/composer/ComposerInput.js +83 -23
  42. package/dist/primitives/composer/ComposerInput.js.map +1 -1
  43. package/dist/primitives/composer/ComposerRoot.js +25 -5
  44. package/dist/primitives/composer/ComposerRoot.js.map +1 -1
  45. package/dist/primitives/composer/ComposerSend.js +39 -7
  46. package/dist/primitives/composer/ComposerSend.js.map +1 -1
  47. package/dist/primitives/composer.js.map +1 -1
  48. package/dist/primitives/error/ErrorMessage.js +26 -5
  49. package/dist/primitives/error/ErrorMessage.js.map +1 -1
  50. package/dist/primitives/error/ErrorRoot.js +25 -5
  51. package/dist/primitives/error/ErrorRoot.js.map +1 -1
  52. package/dist/primitives/error/index.js.map +1 -1
  53. package/dist/primitives/message/MessageAttachments.js.map +1 -1
  54. package/dist/primitives/message/MessageContent.js +188 -76
  55. package/dist/primitives/message/MessageContent.js.map +1 -1
  56. package/dist/primitives/message/MessageIf.js +15 -3
  57. package/dist/primitives/message/MessageIf.js.map +1 -1
  58. package/dist/primitives/message/MessageParts.js +41 -7
  59. package/dist/primitives/message/MessageParts.js.map +1 -1
  60. package/dist/primitives/message/MessageRoot.js +25 -5
  61. package/dist/primitives/message/MessageRoot.js.map +1 -1
  62. package/dist/primitives/message.js.map +1 -1
  63. package/dist/primitives/suggestion/SuggestionDescription.js +30 -6
  64. package/dist/primitives/suggestion/SuggestionDescription.js.map +1 -1
  65. package/dist/primitives/suggestion/SuggestionTitle.js +30 -6
  66. package/dist/primitives/suggestion/SuggestionTitle.js.map +1 -1
  67. package/dist/primitives/suggestion/SuggestionTrigger.js +57 -12
  68. package/dist/primitives/suggestion/SuggestionTrigger.js.map +1 -1
  69. package/dist/primitives/suggestion.js.map +1 -1
  70. package/dist/primitives/thread/ThreadEmpty.js +11 -2
  71. package/dist/primitives/thread/ThreadEmpty.js.map +1 -1
  72. package/dist/primitives/thread/ThreadIf.js +15 -3
  73. package/dist/primitives/thread/ThreadIf.js.map +1 -1
  74. package/dist/primitives/thread/ThreadMessages.js +98 -16
  75. package/dist/primitives/thread/ThreadMessages.js.map +1 -1
  76. package/dist/primitives/thread/ThreadRoot.js +25 -5
  77. package/dist/primitives/thread/ThreadRoot.js.map +1 -1
  78. package/dist/primitives/thread/ThreadSuggestion.js +56 -12
  79. package/dist/primitives/thread/ThreadSuggestion.js.map +1 -1
  80. package/dist/primitives/thread.js.map +1 -1
  81. package/dist/primitives/threadList/ThreadListItems.js +46 -9
  82. package/dist/primitives/threadList/ThreadListItems.js.map +1 -1
  83. package/dist/primitives/threadList/ThreadListNew.js +27 -6
  84. package/dist/primitives/threadList/ThreadListNew.js.map +1 -1
  85. package/dist/primitives/threadList/ThreadListRoot.js +25 -5
  86. package/dist/primitives/threadList/ThreadListRoot.js.map +1 -1
  87. package/dist/primitives/threadList.js.map +1 -1
  88. package/dist/primitives/threadListItem/ThreadListItemArchive.js +27 -6
  89. package/dist/primitives/threadListItem/ThreadListItemArchive.js.map +1 -1
  90. package/dist/primitives/threadListItem/ThreadListItemDelete.js +27 -6
  91. package/dist/primitives/threadListItem/ThreadListItemDelete.js.map +1 -1
  92. package/dist/primitives/threadListItem/ThreadListItemRoot.js +25 -5
  93. package/dist/primitives/threadListItem/ThreadListItemRoot.js.map +1 -1
  94. package/dist/primitives/threadListItem/ThreadListItemTrigger.js +27 -6
  95. package/dist/primitives/threadListItem/ThreadListItemTrigger.js.map +1 -1
  96. package/dist/primitives/threadListItem/ThreadListItemUnarchive.js +27 -6
  97. package/dist/primitives/threadListItem/ThreadListItemUnarchive.js.map +1 -1
  98. package/dist/primitives/threadListItem.js.map +1 -1
  99. package/package.json +6 -6
  100. package/src/index.ts +5 -0
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerCount.js","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerCount.tsx"],"sourcesContent":["import { Text, type TextProps } from \"react-native\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport type BranchPickerCountProps = TextProps;\n\nexport const BranchPickerCount = (props: BranchPickerCountProps) => {\n const branchCount = useAuiState((s) => s.message.branchCount);\n return <Text {...props}>{branchCount}</Text>;\n};\n"],"mappings":";;;;AAKA,MAAa,qBAAqB,UAAkC;CAClE,MAAM,cAAc,aAAa,MAAM,EAAE,QAAQ,WAAW;CAC5D,OAAO,oBAAC,MAAD;EAAM,GAAI;YAAQ;CAAkB,CAAA;AAC7C"}
1
+ {"version":3,"file":"BranchPickerCount.js","names":["Text","TextProps","useAuiState","BranchPickerCountProps","BranchPickerCount","props","$","_c","branchCount","_temp","t0","s","message"],"sources":["../../../src/primitives/branchPicker/BranchPickerCount.tsx"],"sourcesContent":["import { Text, type TextProps } from \"react-native\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport type BranchPickerCountProps = TextProps;\n\nexport const BranchPickerCount = (props: BranchPickerCountProps) => {\n const branchCount = useAuiState((s) => s.message.branchCount);\n return <Text {...props}>{branchCount}</Text>;\n};\n"],"mappings":";;;;;AAKA,MAAaI,qBAAoBC,UAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAC/B,MAAAC,cAAoBN,YAAYO,KAA4B;CAAE,IAAAC;CAAA,IAAAJ,EAAA,OAAAE,eAAAF,EAAA,OAAAD,OAAA;EACvDK,KAAA,oBAAC,MAAD;GAAK,GAAKL;aAAQG;EAAb,CAAA;EAAgCF,EAAA,KAAAE;EAAAF,EAAA,KAAAD;EAAAC,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,OAArCI;AAAqC;AAFb,SAAAD,MAAAE,GAAA;CAAA,OACQA,EAACC,QAAQJ;AAAY"}
@@ -1,15 +1,41 @@
1
1
  import { useBranchPickerNext } from "@assistant-ui/core/react";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/branchPicker/BranchPickerNext.tsx
5
- const BranchPickerNext = ({ children, disabled: disabledProp, ...pressableProps }) => {
6
+ const BranchPickerNext = (t0) => {
7
+ const $ = c(9);
8
+ let children;
9
+ let disabledProp;
10
+ let pressableProps;
11
+ if ($[0] !== t0) {
12
+ ({children, disabled: disabledProp, ...pressableProps} = t0);
13
+ $[0] = t0;
14
+ $[1] = children;
15
+ $[2] = disabledProp;
16
+ $[3] = pressableProps;
17
+ } else {
18
+ children = $[1];
19
+ disabledProp = $[2];
20
+ pressableProps = $[3];
21
+ }
6
22
  const { next, disabled } = useBranchPickerNext();
7
- return /* @__PURE__ */ jsx(Pressable, {
8
- onPress: next,
9
- disabled: disabledProp ?? disabled,
10
- ...pressableProps,
11
- children
12
- });
23
+ const t1 = disabledProp ?? disabled;
24
+ let t2;
25
+ if ($[4] !== children || $[5] !== next || $[6] !== pressableProps || $[7] !== t1) {
26
+ t2 = /* @__PURE__ */ jsx(Pressable, {
27
+ onPress: next,
28
+ disabled: t1,
29
+ ...pressableProps,
30
+ children
31
+ });
32
+ $[4] = children;
33
+ $[5] = next;
34
+ $[6] = pressableProps;
35
+ $[7] = t1;
36
+ $[8] = t2;
37
+ } else t2 = $[8];
38
+ return t2;
13
39
  };
14
40
  //#endregion
15
41
  export { BranchPickerNext };
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerNext.js","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerNext } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerNextProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const BranchPickerNext = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerNextProps) => {\n const { next, disabled } = useBranchPickerNext();\n\n return (\n <Pressable\n onPress={next}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAQA,MAAa,oBAAoB,EAC/B,UACA,UAAU,cACV,GAAG,qBACwB;CAC3B,MAAM,EAAE,MAAM,aAAa,oBAAoB;CAE/C,OACE,oBAAC,WAAD;EACE,SAAS;EACT,UAAU,gBAAgB;EAC1B,GAAI;EAEH;CACQ,CAAA;AAEf"}
1
+ {"version":3,"file":"BranchPickerNext.js","names":["ReactNode","Pressable","PressableProps","useBranchPickerNext","BranchPickerNextProps","Omit","children","BranchPickerNext","t0","$","_c","disabledProp","pressableProps","disabled","next","t1","t2"],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerNext } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerNextProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const BranchPickerNext = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerNextProps) => {\n const { next, disabled } = useBranchPickerNext();\n\n return (\n <Pressable\n onPress={next}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAQA,MAAaO,oBAAmBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACtB,MAAA,EAAAK,MAAAD,aAA2BV,oBAAoB;CAKjC,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAK,QAAAL,EAAA,OAAAG,kBAAAH,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAK;EAAAL,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
@@ -1,14 +1,26 @@
1
1
  import { useAuiState } from "@assistant-ui/store";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Text } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/branchPicker/BranchPickerNumber.tsx
5
6
  const BranchPickerNumber = (props) => {
6
- const branchNumber = useAuiState((s) => s.message.branchNumber);
7
- return /* @__PURE__ */ jsx(Text, {
8
- ...props,
9
- children: branchNumber
10
- });
7
+ const $ = c(3);
8
+ const branchNumber = useAuiState(_temp);
9
+ let t0;
10
+ if ($[0] !== branchNumber || $[1] !== props) {
11
+ t0 = /* @__PURE__ */ jsx(Text, {
12
+ ...props,
13
+ children: branchNumber
14
+ });
15
+ $[0] = branchNumber;
16
+ $[1] = props;
17
+ $[2] = t0;
18
+ } else t0 = $[2];
19
+ return t0;
11
20
  };
21
+ function _temp(s) {
22
+ return s.message.branchNumber;
23
+ }
12
24
  //#endregion
13
25
  export { BranchPickerNumber };
14
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerNumber.js","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"sourcesContent":["import { Text, type TextProps } from \"react-native\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport type BranchPickerNumberProps = TextProps;\n\nexport const BranchPickerNumber = (props: BranchPickerNumberProps) => {\n const branchNumber = useAuiState((s) => s.message.branchNumber);\n return <Text {...props}>{branchNumber}</Text>;\n};\n"],"mappings":";;;;AAKA,MAAa,sBAAsB,UAAmC;CACpE,MAAM,eAAe,aAAa,MAAM,EAAE,QAAQ,YAAY;CAC9D,OAAO,oBAAC,MAAD;EAAM,GAAI;YAAQ;CAAmB,CAAA;AAC9C"}
1
+ {"version":3,"file":"BranchPickerNumber.js","names":["Text","TextProps","useAuiState","BranchPickerNumberProps","BranchPickerNumber","props","$","_c","branchNumber","_temp","t0","s","message"],"sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"sourcesContent":["import { Text, type TextProps } from \"react-native\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport type BranchPickerNumberProps = TextProps;\n\nexport const BranchPickerNumber = (props: BranchPickerNumberProps) => {\n const branchNumber = useAuiState((s) => s.message.branchNumber);\n return <Text {...props}>{branchNumber}</Text>;\n};\n"],"mappings":";;;;;AAKA,MAAaI,sBAAqBC,UAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAChC,MAAAC,eAAqBN,YAAYO,KAA6B;CAAE,IAAAC;CAAA,IAAAJ,EAAA,OAAAE,gBAAAF,EAAA,OAAAD,OAAA;EACzDK,KAAA,oBAAC,MAAD;GAAK,GAAKL;aAAQG;EAAb,CAAA;EAAiCF,EAAA,KAAAE;EAAAF,EAAA,KAAAD;EAAAC,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,OAAtCI;AAAsC;AAFb,SAAAD,MAAAE,GAAA;CAAA,OACQA,EAACC,QAAQJ;AAAa"}
@@ -1,15 +1,41 @@
1
1
  import { useBranchPickerPrevious } from "@assistant-ui/core/react";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/branchPicker/BranchPickerPrevious.tsx
5
- const BranchPickerPrevious = ({ children, disabled: disabledProp, ...pressableProps }) => {
6
+ const BranchPickerPrevious = (t0) => {
7
+ const $ = c(9);
8
+ let children;
9
+ let disabledProp;
10
+ let pressableProps;
11
+ if ($[0] !== t0) {
12
+ ({children, disabled: disabledProp, ...pressableProps} = t0);
13
+ $[0] = t0;
14
+ $[1] = children;
15
+ $[2] = disabledProp;
16
+ $[3] = pressableProps;
17
+ } else {
18
+ children = $[1];
19
+ disabledProp = $[2];
20
+ pressableProps = $[3];
21
+ }
6
22
  const { previous, disabled } = useBranchPickerPrevious();
7
- return /* @__PURE__ */ jsx(Pressable, {
8
- onPress: previous,
9
- disabled: disabledProp ?? disabled,
10
- ...pressableProps,
11
- children
12
- });
23
+ const t1 = disabledProp ?? disabled;
24
+ let t2;
25
+ if ($[4] !== children || $[5] !== pressableProps || $[6] !== previous || $[7] !== t1) {
26
+ t2 = /* @__PURE__ */ jsx(Pressable, {
27
+ onPress: previous,
28
+ disabled: t1,
29
+ ...pressableProps,
30
+ children
31
+ });
32
+ $[4] = children;
33
+ $[5] = pressableProps;
34
+ $[6] = previous;
35
+ $[7] = t1;
36
+ $[8] = t2;
37
+ } else t2 = $[8];
38
+ return t2;
13
39
  };
14
40
  //#endregion
15
41
  export { BranchPickerPrevious };
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerPrevious.js","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerPrevious } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerPreviousProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const BranchPickerPrevious = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerPreviousProps) => {\n const { previous, disabled } = useBranchPickerPrevious();\n\n return (\n <Pressable\n onPress={previous}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAQA,MAAa,wBAAwB,EACnC,UACA,UAAU,cACV,GAAG,qBAC4B;CAC/B,MAAM,EAAE,UAAU,aAAa,wBAAwB;CAEvD,OACE,oBAAC,WAAD;EACE,SAAS;EACT,UAAU,gBAAgB;EAC1B,GAAI;EAEH;CACQ,CAAA;AAEf"}
1
+ {"version":3,"file":"BranchPickerPrevious.js","names":["ReactNode","Pressable","PressableProps","useBranchPickerPrevious","BranchPickerPreviousProps","Omit","children","BranchPickerPrevious","t0","$","_c","disabledProp","pressableProps","disabled","previous","t1","t2"],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerPrevious } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerPreviousProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const BranchPickerPrevious = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerPreviousProps) => {\n const { previous, disabled } = useBranchPickerPrevious();\n\n return (\n <Pressable\n onPress={previous}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAQA,MAAaO,wBAAuBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CAC1B,MAAA,EAAAK,UAAAD,aAA+BV,wBAAwB;CAKzC,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAK,YAAAL,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAK;EAAAL,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
@@ -1 +1 @@
1
- {"version":3,"file":"branchPicker.js","names":[],"sources":["../../src/primitives/branchPicker.ts"],"sourcesContent":["export {\n BranchPickerPrevious as Previous,\n type BranchPickerPreviousProps as PreviousProps,\n} from \"./branchPicker/BranchPickerPrevious\";\nexport {\n BranchPickerNext as Next,\n type BranchPickerNextProps as NextProps,\n} from \"./branchPicker/BranchPickerNext\";\nexport {\n BranchPickerNumber as Number,\n type BranchPickerNumberProps as NumberProps,\n} from \"./branchPicker/BranchPickerNumber\";\nexport {\n BranchPickerCount as Count,\n type BranchPickerCountProps as CountProps,\n} from \"./branchPicker/BranchPickerCount\";\n"],"mappings":""}
1
+ {"version":3,"file":"branchPicker.js","names":["BranchPickerPrevious","Previous","BranchPickerPreviousProps","PreviousProps","BranchPickerNext","Next","BranchPickerNextProps","NextProps","BranchPickerNumber","Number","BranchPickerNumberProps","NumberProps","BranchPickerCount","Count","BranchPickerCountProps","CountProps"],"sources":["../../src/primitives/branchPicker.ts"],"sourcesContent":["export {\n BranchPickerPrevious as Previous,\n type BranchPickerPreviousProps as PreviousProps,\n} from \"./branchPicker/BranchPickerPrevious\";\nexport {\n BranchPickerNext as Next,\n type BranchPickerNextProps as NextProps,\n} from \"./branchPicker/BranchPickerNext\";\nexport {\n BranchPickerNumber as Number,\n type BranchPickerNumberProps as NumberProps,\n} from \"./branchPicker/BranchPickerNumber\";\nexport {\n BranchPickerCount as Count,\n type BranchPickerCountProps as CountProps,\n} from \"./branchPicker/BranchPickerCount\";\n"],"mappings":""}
@@ -1,19 +1,50 @@
1
1
  import { useAui, useAuiState } from "@assistant-ui/store";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
- import { useCallback } from "@assistant-ui/tap/react-shim";
5
5
  //#region src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx
6
- const ChainOfThoughtAccordionTrigger = ({ children, ...pressableProps }) => {
6
+ const ChainOfThoughtAccordionTrigger = (t0) => {
7
+ const $ = c(10);
8
+ let children;
9
+ let pressableProps;
10
+ if ($[0] !== t0) {
11
+ ({children, ...pressableProps} = t0);
12
+ $[0] = t0;
13
+ $[1] = children;
14
+ $[2] = pressableProps;
15
+ } else {
16
+ children = $[1];
17
+ pressableProps = $[2];
18
+ }
7
19
  const aui = useAui();
8
- const collapsed = useAuiState((s) => s.chainOfThought.collapsed);
9
- return /* @__PURE__ */ jsx(Pressable, {
10
- onPress: useCallback(() => {
20
+ const collapsed = useAuiState(_temp);
21
+ let t1;
22
+ if ($[3] !== aui || $[4] !== collapsed) {
23
+ t1 = () => {
11
24
  aui.chainOfThought().setCollapsed(!collapsed);
12
- }, [aui, collapsed]),
13
- ...pressableProps,
14
- children
15
- });
25
+ };
26
+ $[3] = aui;
27
+ $[4] = collapsed;
28
+ $[5] = t1;
29
+ } else t1 = $[5];
30
+ const onPress = t1;
31
+ let t2;
32
+ if ($[6] !== children || $[7] !== onPress || $[8] !== pressableProps) {
33
+ t2 = /* @__PURE__ */ jsx(Pressable, {
34
+ onPress,
35
+ ...pressableProps,
36
+ children
37
+ });
38
+ $[6] = children;
39
+ $[7] = onPress;
40
+ $[8] = pressableProps;
41
+ $[9] = t2;
42
+ } else t2 = $[9];
43
+ return t2;
16
44
  };
45
+ function _temp(s) {
46
+ return s.chainOfThought.collapsed;
47
+ }
17
48
  //#endregion
18
49
  export { ChainOfThoughtAccordionTrigger };
19
50
 
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtAccordionTrigger.js","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"sourcesContent":["import { useCallback, type ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useAuiState, useAui } from \"@assistant-ui/store\";\n\nexport type ChainOfThoughtAccordionTriggerProps = Omit<\n PressableProps,\n \"onPress\"\n> & {\n children: ReactNode;\n};\n\nexport const ChainOfThoughtAccordionTrigger = ({\n children,\n ...pressableProps\n}: ChainOfThoughtAccordionTriggerProps) => {\n const aui = useAui();\n const collapsed = useAuiState((s) => s.chainOfThought.collapsed);\n\n const onPress = useCallback(() => {\n aui.chainOfThought().setCollapsed(!collapsed);\n }, [aui, collapsed]);\n\n return (\n <Pressable onPress={onPress} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAWA,MAAa,kCAAkC,EAC7C,UACA,GAAG,qBACsC;CACzC,MAAM,MAAM,OAAO;CACnB,MAAM,YAAY,aAAa,MAAM,EAAE,eAAe,SAAS;CAM/D,OACE,oBAAC,WAAD;EAAW,SALG,kBAAkB;GAChC,IAAI,eAAe,CAAC,CAAC,aAAa,CAAC,SAAS;EAC9C,GAAG,CAAC,KAAK,SAAS,CAGU;EAAG,GAAI;EAC9B;CACQ,CAAA;AAEf"}
1
+ {"version":3,"file":"ChainOfThoughtAccordionTrigger.js","names":["useCallback","ReactNode","Pressable","PressableProps","useAuiState","useAui","ChainOfThoughtAccordionTriggerProps","Omit","children","ChainOfThoughtAccordionTrigger","t0","$","_c","pressableProps","aui","collapsed","_temp","t1","chainOfThought","setCollapsed","onPress","t2","s"],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"sourcesContent":["import { useCallback, type ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useAuiState, useAui } from \"@assistant-ui/store\";\n\nexport type ChainOfThoughtAccordionTriggerProps = Omit<\n PressableProps,\n \"onPress\"\n> & {\n children: ReactNode;\n};\n\nexport const ChainOfThoughtAccordionTrigger = ({\n children,\n ...pressableProps\n}: ChainOfThoughtAccordionTriggerProps) => {\n const aui = useAui();\n const collapsed = useAuiState((s) => s.chainOfThought.collapsed);\n\n const onPress = useCallback(() => {\n aui.chainOfThought().setCollapsed(!collapsed);\n }, [aui, collapsed]);\n\n return (\n <Pressable onPress={onPress} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAWA,MAAaS,kCAAiCC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,aAAAK,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,WAAAG,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CACpC,MAAAG,MAAYT,OAAO;CACnB,MAAAU,YAAkBX,YAAYY,KAAiC;CAAE,IAAAC;CAAA,IAAAN,EAAA,OAAAG,OAAAH,EAAA,OAAAI,WAAA;EAErCE,WAAA;GAC1BH,IAAGI,eAAgB,CAAC,CAAAC,aAAc,CAACJ,SAAS;EAAC;EAC9CJ,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAFD,MAAAS,UAAgBH;CAEK,IAAAI;CAAA,IAAAV,EAAA,OAAAH,YAAAG,EAAA,OAAAS,WAAAT,EAAA,OAAAE,gBAAA;EAGnBQ,KAAA,oBAAC,WAAD;GAAoBD;GAAO,GAAMP;GAC9BL;EADO,CAAA;EAEEG,EAAA,KAAAH;EAAAG,EAAA,KAAAS;EAAAT,EAAA,KAAAE;EAAAF,EAAA,KAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,OAFZU;AAEY;AAd8B,SAAAL,MAAAM,GAAA;CAAA,OAKPA,EAACJ,eAAeH;AAAU"}
@@ -1,11 +1,31 @@
1
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
1
2
  import { View } from "react-native";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  //#region src/primitives/chainOfThought/ChainOfThoughtRoot.tsx
4
- const ChainOfThoughtRoot = ({ children, ...viewProps }) => {
5
- return /* @__PURE__ */ jsx(View, {
6
- ...viewProps,
7
- children
8
- });
5
+ const ChainOfThoughtRoot = (t0) => {
6
+ const $ = c(6);
7
+ let children;
8
+ let viewProps;
9
+ if ($[0] !== t0) {
10
+ ({children, ...viewProps} = t0);
11
+ $[0] = t0;
12
+ $[1] = children;
13
+ $[2] = viewProps;
14
+ } else {
15
+ children = $[1];
16
+ viewProps = $[2];
17
+ }
18
+ let t1;
19
+ if ($[3] !== children || $[4] !== viewProps) {
20
+ t1 = /* @__PURE__ */ jsx(View, {
21
+ ...viewProps,
22
+ children
23
+ });
24
+ $[3] = children;
25
+ $[4] = viewProps;
26
+ $[5] = t1;
27
+ } else t1 = $[5];
28
+ return t1;
9
29
  };
10
30
  //#endregion
11
31
  export { ChainOfThoughtRoot };
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtRoot.js","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { View, type ViewProps } from \"react-native\";\n\nexport type ChainOfThoughtRootProps = ViewProps & {\n children: ReactNode;\n};\n\nexport const ChainOfThoughtRoot = ({\n children,\n ...viewProps\n}: ChainOfThoughtRootProps) => {\n return <View {...viewProps}>{children}</View>;\n};\n"],"mappings":";;;AAOA,MAAa,sBAAsB,EACjC,UACA,GAAG,gBAC0B;CAC7B,OAAO,oBAAC,MAAD;EAAM,GAAI;EAAY;CAAe,CAAA;AAC9C"}
1
+ {"version":3,"file":"ChainOfThoughtRoot.js","names":["ReactNode","View","ViewProps","ChainOfThoughtRootProps","children","ChainOfThoughtRoot","t0","$","_c","viewProps","t1"],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { View, type ViewProps } from \"react-native\";\n\nexport type ChainOfThoughtRootProps = ViewProps & {\n children: ReactNode;\n};\n\nexport const ChainOfThoughtRoot = ({\n children,\n ...viewProps\n}: ChainOfThoughtRootProps) => {\n return <View {...viewProps}>{children}</View>;\n};\n"],"mappings":";;;;AAOA,MAAaK,sBAAqBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,aAAAK,aAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,WAAAG,EAAA;EAAAE,YAAAF,EAAA;CAAA;CAAA,IAAAG;CAAA,IAAAH,EAAA,OAAAH,YAAAG,EAAA,OAAAE,WAAA;EACjBC,KAAA,oBAAC,MAAD;GAAK,GAAKD;GAAYL;EAAjB,CAAA;EAAiCG,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAAA,KAAAH,EAAA;CAAA,OAAtCG;AAAsC"}
@@ -1 +1 @@
1
- {"version":3,"file":"chainOfThought.js","names":[],"sources":["../../src/primitives/chainOfThought.ts"],"sourcesContent":["export {\n ChainOfThoughtRoot as Root,\n type ChainOfThoughtRootProps as RootProps,\n} from \"./chainOfThought/ChainOfThoughtRoot\";\nexport {\n ChainOfThoughtAccordionTrigger as AccordionTrigger,\n type ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps,\n} from \"./chainOfThought/ChainOfThoughtAccordionTrigger\";\nexport { ChainOfThoughtPrimitiveParts as Parts } from \"@assistant-ui/core/react\";\n"],"mappings":""}
1
+ {"version":3,"file":"chainOfThought.js","names":["ChainOfThoughtRoot","Root","ChainOfThoughtRootProps","RootProps","ChainOfThoughtAccordionTrigger","AccordionTrigger","ChainOfThoughtAccordionTriggerProps","AccordionTriggerProps","ChainOfThoughtPrimitiveParts","Parts"],"sources":["../../src/primitives/chainOfThought.ts"],"sourcesContent":["export {\n ChainOfThoughtRoot as Root,\n type ChainOfThoughtRootProps as RootProps,\n} from \"./chainOfThought/ChainOfThoughtRoot\";\nexport {\n ChainOfThoughtAccordionTrigger as AccordionTrigger,\n type ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps,\n} from \"./chainOfThought/ChainOfThoughtAccordionTrigger\";\nexport { ChainOfThoughtPrimitiveParts as Parts } from \"@assistant-ui/core/react\";\n"],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  import { useComposerAddAttachment } from "@assistant-ui/core/react";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/composer/ComposerAddAttachment.tsx
@@ -9,13 +10,37 @@ import { jsx } from "react/jsx-runtime";
9
10
  * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.
10
11
  * You must handle the file selection in your own component using the returned `addAttachment` callback.
11
12
  */
12
- const ComposerAddAttachment = ({ children, disabled: disabledProp, ...pressableProps }) => {
13
+ const ComposerAddAttachment = (t0) => {
14
+ const $ = c(8);
15
+ let children;
16
+ let disabledProp;
17
+ let pressableProps;
18
+ if ($[0] !== t0) {
19
+ ({children, disabled: disabledProp, ...pressableProps} = t0);
20
+ $[0] = t0;
21
+ $[1] = children;
22
+ $[2] = disabledProp;
23
+ $[3] = pressableProps;
24
+ } else {
25
+ children = $[1];
26
+ disabledProp = $[2];
27
+ pressableProps = $[3];
28
+ }
13
29
  const { disabled } = useComposerAddAttachment();
14
- return /* @__PURE__ */ jsx(Pressable, {
15
- disabled: disabledProp ?? disabled,
16
- ...pressableProps,
17
- children
18
- });
30
+ const t1 = disabledProp ?? disabled;
31
+ let t2;
32
+ if ($[4] !== children || $[5] !== pressableProps || $[6] !== t1) {
33
+ t2 = /* @__PURE__ */ jsx(Pressable, {
34
+ disabled: t1,
35
+ ...pressableProps,
36
+ children
37
+ });
38
+ $[4] = children;
39
+ $[5] = pressableProps;
40
+ $[6] = t1;
41
+ $[7] = t2;
42
+ } else t2 = $[7];
43
+ return t2;
19
44
  };
20
45
  //#endregion
21
46
  export { ComposerAddAttachment };
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAddAttachment.js","names":[],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerAddAttachment } from \"@assistant-ui/core/react\";\n\nexport type ComposerAddAttachmentProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\n/**\n * A button that triggers the attachment adding flow.\n *\n * Note: The actual file picker implementation is platform-specific.\n * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.\n * You must handle the file selection in your own component using the returned `addAttachment` callback.\n */\nexport const ComposerAddAttachment = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ComposerAddAttachmentProps) => {\n const { disabled } = useComposerAddAttachment();\n\n return (\n <Pressable disabled={disabledProp ?? disabled} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;;;;;;AAeA,MAAa,yBAAyB,EACpC,UACA,UAAU,cACV,GAAG,qBAC6B;CAChC,MAAM,EAAE,aAAa,yBAAyB;CAE9C,OACE,oBAAC,WAAD;EAAW,UAAU,gBAAgB;EAAU,GAAI;EAChD;CACQ,CAAA;AAEf"}
1
+ {"version":3,"file":"ComposerAddAttachment.js","names":["ReactNode","Pressable","PressableProps","useComposerAddAttachment","ComposerAddAttachmentProps","Omit","children","ComposerAddAttachment","t0","$","_c","disabledProp","pressableProps","disabled","t1","t2"],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerAddAttachment } from \"@assistant-ui/core/react\";\n\nexport type ComposerAddAttachmentProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\n/**\n * A button that triggers the attachment adding flow.\n *\n * Note: The actual file picker implementation is platform-specific.\n * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.\n * You must handle the file selection in your own component using the returned `addAttachment` callback.\n */\nexport const ComposerAddAttachment = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ComposerAddAttachmentProps) => {\n const { disabled } = useComposerAddAttachment();\n\n return (\n <Pressable disabled={disabledProp ?? disabled} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAeA,MAAaO,yBAAwBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CAC3B,MAAA,EAAAI,aAAqBV,yBAAyB;CAGvB,MAAAW,KAAAH,gBAAAE;CAAwB,IAAAE;CAAA,IAAAN,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAK,IAAA;EAA7CC,KAAA,oBAAC,WAAD;GAAqB,UAAAD;GAAwB,GAAMF;GAChDN;EADO,CAAA;EAEEG,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFZM;AAEY"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAttachments.js","names":[],"sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"sourcesContent":["import type { ComponentType } from \"react\";\nimport {\n ComposerPrimitiveAttachments,\n ComposerPrimitiveAttachmentByIndex,\n} from \"@assistant-ui/core/react\";\n\nexport type AttachmentComponents = {\n Image?: ComponentType | undefined;\n Document?: ComponentType | undefined;\n File?: ComponentType | undefined;\n Attachment?: ComponentType | undefined;\n};\n\nexport type ComposerAttachmentsProps = {\n components: AttachmentComponents | undefined;\n};\n\nexport type ComposerAttachmentByIndexProps = {\n index: number;\n components?: AttachmentComponents | undefined;\n};\n\nexport const ComposerAttachmentByIndex = ComposerPrimitiveAttachmentByIndex;\n\nexport const ComposerAttachments = ComposerPrimitiveAttachments;\n"],"mappings":";;AAsBA,MAAa,4BAA4B;AAEzC,MAAa,sBAAsB"}
1
+ {"version":3,"file":"ComposerAttachments.js","names":["ComponentType","ComposerPrimitiveAttachments","ComposerPrimitiveAttachmentByIndex","AttachmentComponents","Image","Document","File","Attachment","ComposerAttachmentsProps","components","ComposerAttachmentByIndexProps","index","ComposerAttachmentByIndex","ComposerAttachments"],"sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"sourcesContent":["import type { ComponentType } from \"react\";\nimport {\n ComposerPrimitiveAttachments,\n ComposerPrimitiveAttachmentByIndex,\n} from \"@assistant-ui/core/react\";\n\nexport type AttachmentComponents = {\n Image?: ComponentType | undefined;\n Document?: ComponentType | undefined;\n File?: ComponentType | undefined;\n Attachment?: ComponentType | undefined;\n};\n\nexport type ComposerAttachmentsProps = {\n components: AttachmentComponents | undefined;\n};\n\nexport type ComposerAttachmentByIndexProps = {\n index: number;\n components?: AttachmentComponents | undefined;\n};\n\nexport const ComposerAttachmentByIndex = ComposerPrimitiveAttachmentByIndex;\n\nexport const ComposerAttachments = ComposerPrimitiveAttachments;\n"],"mappings":";;AAsBA,MAAaY,4BAA4BV;AAEzC,MAAaW,sBAAsBZ"}
@@ -1,15 +1,41 @@
1
1
  import { useComposerCancel } from "@assistant-ui/core/react";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/composer/ComposerCancel.tsx
5
- const ComposerCancel = ({ children, disabled, ...pressableProps }) => {
6
+ const ComposerCancel = (t0) => {
7
+ const $ = c(9);
8
+ let children;
9
+ let disabled;
10
+ let pressableProps;
11
+ if ($[0] !== t0) {
12
+ ({children, disabled, ...pressableProps} = t0);
13
+ $[0] = t0;
14
+ $[1] = children;
15
+ $[2] = disabled;
16
+ $[3] = pressableProps;
17
+ } else {
18
+ children = $[1];
19
+ disabled = $[2];
20
+ pressableProps = $[3];
21
+ }
6
22
  const { cancel, disabled: hookDisabled } = useComposerCancel();
7
- return /* @__PURE__ */ jsx(Pressable, {
8
- onPress: cancel,
9
- disabled: disabled ?? hookDisabled,
10
- ...pressableProps,
11
- children
12
- });
23
+ const t1 = disabled ?? hookDisabled;
24
+ let t2;
25
+ if ($[4] !== cancel || $[5] !== children || $[6] !== pressableProps || $[7] !== t1) {
26
+ t2 = /* @__PURE__ */ jsx(Pressable, {
27
+ onPress: cancel,
28
+ disabled: t1,
29
+ ...pressableProps,
30
+ children
31
+ });
32
+ $[4] = cancel;
33
+ $[5] = children;
34
+ $[6] = pressableProps;
35
+ $[7] = t1;
36
+ $[8] = t2;
37
+ } else t2 = $[8];
38
+ return t2;
13
39
  };
14
40
  //#endregion
15
41
  export { ComposerCancel };
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerCancel.js","names":[],"sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerCancel } from \"@assistant-ui/core/react\";\n\nexport type ComposerCancelProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const ComposerCancel = ({\n children,\n disabled,\n ...pressableProps\n}: ComposerCancelProps) => {\n const { cancel, disabled: hookDisabled } = useComposerCancel();\n\n return (\n <Pressable\n onPress={cancel}\n disabled={disabled ?? hookDisabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAQA,MAAa,kBAAkB,EAC7B,UACA,UACA,GAAG,qBACsB;CACzB,MAAM,EAAE,QAAQ,UAAU,iBAAiB,kBAAkB;CAE7D,OACE,oBAAC,WAAD;EACE,SAAS;EACT,UAAU,YAAY;EACtB,GAAI;EAEH;CACQ,CAAA;AAEf"}
1
+ {"version":3,"file":"ComposerCancel.js","names":["ReactNode","Pressable","PressableProps","useComposerCancel","ComposerCancelProps","Omit","children","ComposerCancel","t0","$","_c","disabled","pressableProps","cancel","hookDisabled","t1","t2"],"sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerCancel } from \"@assistant-ui/core/react\";\n\nexport type ComposerCancelProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const ComposerCancel = ({\n children,\n disabled,\n ...pressableProps\n}: ComposerCancelProps) => {\n const { cancel, disabled: hookDisabled } = useComposerCancel();\n\n return (\n <Pressable\n onPress={cancel}\n disabled={disabled ?? hookDisabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAQA,MAAaO,kBAAiBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAK,aAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,WAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACpB,MAAA,EAAAI,QAAAF,UAAAG,iBAA2CX,kBAAkB;CAK/C,MAAAY,KAAAJ,YAAAG;CAAwB,IAAAE;CAAA,IAAAP,EAAA,OAAAI,UAAAJ,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACC,UAAAE;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAI;EAAAJ,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
@@ -1,7 +1,8 @@
1
1
  import { useAui, useAuiState } from "@assistant-ui/store";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Platform, TextInput } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
- import { useCallback, useEffect, useRef } from "@assistant-ui/tap/react-shim";
5
+ import { useEffect, useRef } from "@assistant-ui/tap/react-shim";
5
6
  //#region src/primitives/composer/ComposerInput.tsx
6
7
  const adjustWebTextareaHeight = (ref) => {
7
8
  if (Platform.OS !== "web") return;
@@ -12,21 +13,58 @@ const adjustWebTextareaHeight = (ref) => {
12
13
  el.style.height = "auto";
13
14
  el.style.height = `${el.scrollHeight}px`;
14
15
  };
15
- const ComposerInput = ({ submitMode = "enter", onKeyPress: onKeyPressProp, numberOfLines, style, ...props }) => {
16
+ const ComposerInput = (t0) => {
17
+ const $ = c(22);
18
+ let numberOfLines;
19
+ let onKeyPressProp;
20
+ let props;
21
+ let style;
22
+ let t1;
23
+ if ($[0] !== t0) {
24
+ ({submitMode: t1, onKeyPress: onKeyPressProp, numberOfLines, style, ...props} = t0);
25
+ $[0] = t0;
26
+ $[1] = numberOfLines;
27
+ $[2] = onKeyPressProp;
28
+ $[3] = props;
29
+ $[4] = style;
30
+ $[5] = t1;
31
+ } else {
32
+ numberOfLines = $[1];
33
+ onKeyPressProp = $[2];
34
+ props = $[3];
35
+ style = $[4];
36
+ t1 = $[5];
37
+ }
38
+ const submitMode = t1 === void 0 ? "enter" : t1;
16
39
  const aui = useAui();
17
- const text = useAuiState((s) => s.composer.text);
40
+ const text = useAuiState(_temp);
18
41
  const inputRef = useRef(null);
19
- const onChangeText = useCallback((value) => {
20
- aui.composer().setText(value);
21
- }, [aui]);
22
- useEffect(() => {
23
- adjustWebTextareaHeight(inputRef);
24
- }, [text]);
25
- return /* @__PURE__ */ jsx(TextInput, {
26
- ref: inputRef,
27
- value: text,
28
- onChangeText,
29
- onKeyPress: useCallback((e) => {
42
+ let t2;
43
+ if ($[6] !== aui) {
44
+ t2 = (value) => {
45
+ aui.composer().setText(value);
46
+ };
47
+ $[6] = aui;
48
+ $[7] = t2;
49
+ } else t2 = $[7];
50
+ const onChangeText = t2;
51
+ let t3;
52
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
53
+ t3 = () => {
54
+ adjustWebTextareaHeight(inputRef);
55
+ };
56
+ $[8] = t3;
57
+ } else t3 = $[8];
58
+ let t4;
59
+ if ($[9] !== text) {
60
+ t4 = [text];
61
+ $[9] = text;
62
+ $[10] = t4;
63
+ } else t4 = $[10];
64
+ useEffect(t3, t4);
65
+ let t5;
66
+ if ($[11] !== aui || $[12] !== onKeyPressProp || $[13] !== submitMode) {
67
+ t5 = (e) => {
30
68
  onKeyPressProp?.(e);
31
69
  if (Platform.OS !== "web") return;
32
70
  if (submitMode !== "enter") return;
@@ -35,16 +73,38 @@ const ComposerInput = ({ submitMode = "enter", onKeyPress: onKeyPressProp, numbe
35
73
  e.preventDefault?.();
36
74
  aui.composer().send();
37
75
  }
38
- }, [
39
- aui,
40
- submitMode,
41
- onKeyPressProp
42
- ]),
43
- numberOfLines: numberOfLines ?? (Platform.OS === "web" ? 1 : void 0),
44
- style,
45
- ...props
46
- });
76
+ };
77
+ $[11] = aui;
78
+ $[12] = onKeyPressProp;
79
+ $[13] = submitMode;
80
+ $[14] = t5;
81
+ } else t5 = $[14];
82
+ const onKeyPress = t5;
83
+ const t6 = numberOfLines ?? (Platform.OS === "web" ? 1 : void 0);
84
+ let t7;
85
+ if ($[15] !== onChangeText || $[16] !== onKeyPress || $[17] !== props || $[18] !== style || $[19] !== t6 || $[20] !== text) {
86
+ t7 = /* @__PURE__ */ jsx(TextInput, {
87
+ ref: inputRef,
88
+ value: text,
89
+ onChangeText,
90
+ onKeyPress,
91
+ numberOfLines: t6,
92
+ style,
93
+ ...props
94
+ });
95
+ $[15] = onChangeText;
96
+ $[16] = onKeyPress;
97
+ $[17] = props;
98
+ $[18] = style;
99
+ $[19] = t6;
100
+ $[20] = text;
101
+ $[21] = t7;
102
+ } else t7 = $[21];
103
+ return t7;
47
104
  };
105
+ function _temp(s) {
106
+ return s.composer.text;
107
+ }
48
108
  //#endregion
49
109
  export { ComposerInput };
50
110
 
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.js","names":[],"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\";\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 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 };\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":";;;;;AAuBA,MAAM,2BAA2B,QAA2C;CAC1E,IAAI,SAAS,OAAO,OAAO;CAE3B,MAAM,KAAK,IAAI;CACf,IAAI,CAAC,IAAI;CAET,IAAI,GAAG,SAAS,GAAG,GAAG,OAAO;CAC7B,GAAG,MAAM,WAAW;CACpB,GAAG,MAAM,SAAS;CAClB,GAAG,MAAM,SAAS,GAAG,GAAG,aAAa;AACvC;AAEA,MAAa,iBAAiB,EAC5B,aAAa,SACb,YAAY,gBACZ,eACA,OACA,GAAG,YACqB;CACxB,MAAM,MAAM,OAAO;CACnB,MAAM,OAAO,aAAa,MAAM,EAAE,SAAS,IAAI;CAC/C,MAAM,WAAW,OAAkB,IAAI;CAEvC,MAAM,eAAe,aAClB,UAAkB;EACjB,IAAI,SAAS,CAAC,CAAC,QAAQ,KAAK;CAC9B,GACA,CAAC,GAAG,CACN;CAGA,gBAAgB;EAEd,wBAAwB,QAAQ;CAClC,GAAG,CAAC,IAAI,CAAC;CAoBT,OACE,oBAAC,WAAD;EACE,KAAK;EACL,OAAO;EACO;EACd,YAvBe,aAChB,MAAwD;GACvD,iBAAiB,CAAC;GAElB,IAAI,SAAS,OAAO,OAAO;GAC3B,IAAI,eAAe,SAAS;GAE5B,MAAM,cAAc,EAAE;GAGtB,IAAI,YAAY,QAAQ,WAAW,CAAC,YAAY,UAAU;IACxD,EAAwB,iBAAiB;IACzC,IAAI,SAAS,CAAC,CAAC,KAAK;GACtB;EACF,GACA;GAAC;GAAK;GAAY;EAAc,CAQT;EACrB,eAAe,kBAAkB,SAAS,OAAO,QAAQ,IAAI,KAAA;EACtD;EACP,GAAI;CACL,CAAA;AAEL"}
1
+ {"version":3,"file":"ComposerInput.js","names":["useCallback","useEffect","useRef","Platform","TextInput","NativeSyntheticEvent","TextInputKeyPressEventData","TextInputProps","useAui","useAuiState","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","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\";\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 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 };\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":";;;;;;AAuBA,MAAMa,2BAA2BC,QAA2C;CAC1E,IAAIX,SAASc,OAAO,OAAO;CAE3B,MAAMC,KAAKJ,IAAIK;CACf,IAAI,CAACD,IAAI;CAET,IAAIA,GAAGG,SAAS,GAAGH,GAAGG,OAAO;CAC7BH,GAAGI,MAAMC,WAAW;CACpBL,GAAGI,MAAME,SAAS;CAClBN,GAAGI,MAAME,SAAS,GAAGN,GAAGO,aAAY;AACtC;AAEA,MAAaC,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAV;CAAA,IAAAW;CAAA,IAAAL,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAf,YAAAqB,IAAAC,YAAAH,gBAAAD,eAAAR,UAAAU,SAAAL;EAMTC,EAAA,KAAAD;EAAAC,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAN;EAAAM,EAAA,KAAAK;CAAA,OAAA;EAAAH,gBAAAF,EAAA;EAAAG,iBAAAH,EAAA;EAAAI,QAAAJ,EAAA;EAAAN,QAAAM,EAAA;EAAAK,KAAAL,EAAA;CAAA;CALnB,MAAAhB,aAAAqB,OAAAE,KAAAA,IAAA,UAAAF;CAMA,MAAAG,MAAY5B,OAAO;CACnB,MAAA6B,OAAa5B,YAAY6B,KAAsB;CAC/C,MAAAC,WAAiBrC,OAAkB,IAAI;CAAE,IAAAsC;CAAA,IAAAZ,EAAA,OAAAQ,KAAA;EAGvCI,MAAAC,UAAA;GACEL,IAAGM,SAAU,CAAC,CAAAC,QAASF,KAAK;EAAC;EAC9Bb,EAAA,KAAAQ;EAAAR,EAAA,KAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAHH,MAAAgB,eAAqBJ;CAKnB,IAAAK;CAAA,IAAAjB,EAAA,OAAAkB,OAAAC,IAAA,2BAAA,GAAA;EAGQF,WAAA;GAERhC,wBAAwB0B,QAAQ;EAAC;EAClCX,EAAA,KAAAiB;CAAA,OAAAA,KAAAjB,EAAA;CAAA,IAAAoB;CAAA,IAAApB,EAAA,OAAAS,MAAA;EAAEW,KAAA,CAACX,IAAI;EAACT,EAAA,KAAAS;EAAAT,EAAA,MAAAoB;CAAA,OAAAA,KAAApB,EAAA;CAHT3B,UAAU4C,IAGPG,EAAM;CAAC,IAAAC;CAAA,IAAArB,EAAA,QAAAQ,OAAAR,EAAA,QAAAG,kBAAAH,EAAA,QAAAhB,YAAA;EAGRqC,MAAAC,MAAA;GACEnB,iBAAiBmB,CAAC;GAElB,IAAI/C,SAAQc,OAAQ,OAAK;GACzB,IAAIL,eAAe,SAAO;GAE1B,MAAAuC,cAAoBD,EAACC;GAGrB,IAAIA,YAAWE,QAAS,WAApB,CAAgCF,YAAWC,UAAS;IACtD,EAAsBG,iBAAmB;IACzCnB,IAAGM,SAAU,CAAC,CAAAc,KAAM;GAAC;EACtB;EACF5B,EAAA,MAAAQ;EAAAR,EAAA,MAAAG;EAAAH,EAAA,MAAAhB;EAAAgB,EAAA,MAAAqB;CAAA,OAAAA,KAAArB,EAAA;CAdH,MAAAM,aAAmBe;CAwBA,MAAAQ,KAAA3B,kBAAkB3B,SAAQc,OAAQ,QAAhB,IAAAkB,KAAAA;CAAsC,IAAAuB;CAAA,IAAA9B,EAAA,QAAAgB,gBAAAhB,EAAA,QAAAM,cAAAN,EAAA,QAAAI,SAAAJ,EAAA,QAAAN,SAAAM,EAAA,QAAA6B,MAAA7B,EAAA,QAAAS,MAAA;EALzEqB,KAAA,oBAAC,WAAD;GACOnB,KAAAA;GACEF,OAAAA;GACOO;GACFV;GACG,eAAAuB;GACRnC;GAAK,GACRU;EAAK,CAAA;EACTJ,EAAA,MAAAgB;EAAAhB,EAAA,MAAAM;EAAAN,EAAA,MAAAI;EAAAJ,EAAA,MAAAN;EAAAM,EAAA,MAAA6B;EAAA7B,EAAA,MAAAS;EAAAT,EAAA,MAAA8B;CAAA,OAAAA,KAAA9B,EAAA;CAAA,OARF8B;AAQE;AAnDuB,SAAApB,MAAAqB,GAAA;CAAA,OAQKA,EAACjB,SAASL;AAAK"}
@@ -1,11 +1,31 @@
1
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
1
2
  import { View } from "react-native";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  //#region src/primitives/composer/ComposerRoot.tsx
4
- const ComposerRoot = ({ children, ...viewProps }) => {
5
- return /* @__PURE__ */ jsx(View, {
6
- ...viewProps,
7
- children
8
- });
5
+ const ComposerRoot = (t0) => {
6
+ const $ = c(6);
7
+ let children;
8
+ let viewProps;
9
+ if ($[0] !== t0) {
10
+ ({children, ...viewProps} = t0);
11
+ $[0] = t0;
12
+ $[1] = children;
13
+ $[2] = viewProps;
14
+ } else {
15
+ children = $[1];
16
+ viewProps = $[2];
17
+ }
18
+ let t1;
19
+ if ($[3] !== children || $[4] !== viewProps) {
20
+ t1 = /* @__PURE__ */ jsx(View, {
21
+ ...viewProps,
22
+ children
23
+ });
24
+ $[3] = children;
25
+ $[4] = viewProps;
26
+ $[5] = t1;
27
+ } else t1 = $[5];
28
+ return t1;
9
29
  };
10
30
  //#endregion
11
31
  export { ComposerRoot };