@assistant-ui/react-native 0.1.42 → 0.1.44
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.
- package/dist/context/AssistantContext.d.ts +2 -2
- package/dist/context/AssistantContext.d.ts.map +1 -0
- package/dist/context/providers/AttachmentByIndexProvider.d.ts +2 -2
- package/dist/context/providers/AttachmentByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/RuntimeAdapterProvider.d.ts +2 -2
- package/dist/context/providers/RuntimeAdapterProvider.d.ts.map +1 -0
- package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts +2 -2
- package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts.map +1 -0
- package/dist/index.d.ts +54 -22
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -4
- package/dist/internal.d.ts +4 -3
- package/dist/internal.d.ts.map +1 -0
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +9 -11
- package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.js +23 -19
- package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.d.ts +7 -7
- package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.js +21 -11
- package/dist/primitives/actionBar/ActionBarEdit.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +8 -10
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +35 -17
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +8 -10
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +35 -17
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.d.ts +7 -7
- package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.js +21 -11
- package/dist/primitives/actionBar/ActionBarReload.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts +12 -0
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts.map +1 -0
- package/dist/primitives/actionBar/ActionBarSpeak.js +61 -0
- package/dist/primitives/actionBar/ActionBarSpeak.js.map +1 -0
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts +12 -0
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts.map +1 -0
- package/dist/primitives/actionBar/ActionBarStopSpeaking.js +61 -0
- package/dist/primitives/actionBar/ActionBarStopSpeaking.js.map +1 -0
- package/dist/primitives/actionBar.d.ts +7 -10
- package/dist/primitives/actionBar.d.ts.map +1 -1
- package/dist/primitives/actionBar.js +6 -2
- package/dist/primitives/actionBar.js.map +1 -1
- package/dist/primitives/attachment/AttachmentName.d.ts +4 -7
- package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.d.ts +4 -7
- package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRoot.d.ts +5 -8
- package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.d.ts +4 -7
- package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
- package/dist/primitives/attachment.d.ts +4 -9
- package/dist/primitives/attachment.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts +3 -6
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +7 -7
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.js +21 -11
- package/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +3 -6
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +7 -7
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.js +21 -11
- package/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -1
- package/dist/primitives/branchPicker.d.ts +4 -9
- package/dist/primitives/branchPicker.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +4 -7
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +5 -8
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
- package/dist/primitives/chainOfThought.d.ts +3 -8
- package/dist/primitives/chainOfThought.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.d.ts +4 -7
- package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +5 -8
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerCancel.d.ts +4 -7
- package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerIf.d.ts +2 -2
- package/dist/primitives/composer/ComposerIf.d.ts.map +1 -0
- package/dist/primitives/composer/ComposerInput.d.ts +10 -13
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.js +1 -1
- package/dist/primitives/composer/ComposerInput.js.map +1 -1
- package/dist/primitives/composer/ComposerQueue.d.ts +2 -2
- package/dist/primitives/composer/ComposerQueue.d.ts.map +1 -0
- package/dist/primitives/composer/ComposerQuote.d.ts +5 -8
- package/dist/primitives/composer/ComposerQuote.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuoteDismiss.d.ts +4 -7
- package/dist/primitives/composer/ComposerQuoteDismiss.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuoteText.d.ts +5 -8
- package/dist/primitives/composer/ComposerQuoteText.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerRoot.d.ts +5 -8
- package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerSend.d.ts +4 -7
- package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
- package/dist/primitives/composer.d.ts +11 -16
- package/dist/primitives/composer.d.ts.map +1 -1
- package/dist/primitives/error/ErrorMessage.d.ts +7 -10
- package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
- package/dist/primitives/error/ErrorRoot.d.ts +7 -10
- package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
- package/dist/primitives/error/index.d.ts +2 -7
- package/dist/primitives/error/index.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.d.ts +5 -8
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/primitives/message/MessageContent.d.ts +47 -49
- package/dist/primitives/message/MessageContent.d.ts.map +1 -1
- package/dist/primitives/message/MessageContent.js +27 -21
- package/dist/primitives/message/MessageContent.js.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +8 -11
- package/dist/primitives/message/MessageIf.d.ts.map +1 -1
- package/dist/primitives/message/MessageParts.d.ts +6 -8
- package/dist/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/primitives/message/MessageRoot.d.ts +5 -8
- package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
- package/dist/primitives/message.d.ts +6 -11
- package/dist/primitives/message.d.ts.map +1 -1
- package/dist/primitives/messagePart/MessagePartImage.d.ts +9 -0
- package/dist/primitives/messagePart/MessagePartImage.d.ts.map +1 -0
- package/dist/primitives/messagePart/MessagePartImage.js +39 -0
- package/dist/primitives/messagePart/MessagePartImage.js.map +1 -0
- package/dist/primitives/messagePart/MessagePartInProgress.d.ts +2 -0
- package/dist/primitives/messagePart/MessagePartInProgress.d.ts.map +1 -0
- package/dist/primitives/messagePart/MessagePartInProgress.js +2 -0
- package/dist/primitives/messagePart/MessagePartText.d.ts +9 -0
- package/dist/primitives/messagePart/MessagePartText.d.ts.map +1 -0
- package/dist/primitives/messagePart/MessagePartText.js +32 -0
- package/dist/primitives/messagePart/MessagePartText.js.map +1 -0
- package/dist/primitives/messagePart.d.ts +5 -0
- package/dist/primitives/messagePart.d.ts.map +1 -0
- package/dist/primitives/messagePart.js +16 -0
- package/dist/primitives/messagePart.js.map +1 -0
- package/dist/primitives/queueItem/QueueItemRemove.d.ts +4 -7
- package/dist/primitives/queueItem/QueueItemRemove.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemSteer.d.ts +4 -7
- package/dist/primitives/queueItem/QueueItemSteer.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemText.d.ts +5 -8
- package/dist/primitives/queueItem/QueueItemText.d.ts.map +1 -1
- package/dist/primitives/queueItem.d.ts +3 -8
- package/dist/primitives/queueItem.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.d.ts +5 -8
- package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.d.ts +5 -8
- package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts +15 -18
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.js +1 -1
- package/dist/primitives/suggestion.d.ts +3 -8
- package/dist/primitives/suggestion.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.d.ts +4 -7
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +6 -9
- package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +41 -37
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.js +123 -72
- package/dist/primitives/thread/ThreadMessages.js.map +1 -1
- package/dist/primitives/thread/ThreadRoot.d.ts +5 -8
- package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.d.ts +17 -20
- package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
- package/dist/primitives/thread.d.ts +8 -11
- package/dist/primitives/thread.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.d.ts +8 -11
- package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.js +1 -1
- package/dist/primitives/threadList/ThreadListNew.d.ts +7 -10
- package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.js +21 -17
- package/dist/primitives/threadList/ThreadListNew.js.map +1 -1
- package/dist/primitives/threadList/ThreadListRoot.d.ts +5 -8
- package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
- package/dist/primitives/threadList.d.ts +3 -8
- package/dist/primitives/threadList.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +4 -7
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +4 -7
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +5 -8
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +7 -10
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTrigger.js +21 -17
- package/dist/primitives/threadListItem/ThreadListItemTrigger.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +4 -7
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem.d.ts +6 -11
- package/dist/primitives/threadListItem.d.ts.map +1 -1
- package/dist/runtimes/useLocalRuntime.d.ts +2 -2
- package/dist/runtimes/useLocalRuntime.d.ts.map +1 -0
- package/dist/runtimes/useRemoteThreadListRuntime.d.ts +2 -2
- package/dist/runtimes/useRemoteThreadListRuntime.d.ts.map +1 -0
- package/package.json +13 -12
- package/src/index.ts +91 -1
- package/src/primitives/accessibilityRole.test.tsx +20 -0
- package/src/primitives/actionBar/ActionBar.test.tsx +375 -0
- package/src/primitives/actionBar/ActionBarCopy.tsx +8 -3
- package/src/primitives/actionBar/ActionBarEdit.tsx +16 -4
- package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +18 -4
- package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +18 -4
- package/src/primitives/actionBar/ActionBarReload.tsx +16 -4
- package/src/primitives/actionBar/ActionBarSpeak.tsx +42 -0
- package/src/primitives/actionBar/ActionBarStopSpeaking.tsx +42 -0
- package/src/primitives/actionBar.ts +8 -0
- package/src/primitives/branchPicker/BranchPickerNext.test.tsx +52 -3
- package/src/primitives/branchPicker/BranchPickerNext.tsx +16 -4
- package/src/primitives/branchPicker/BranchPickerPrevious.test.tsx +52 -6
- package/src/primitives/branchPicker/BranchPickerPrevious.tsx +16 -4
- package/src/primitives/composer/ComposerInput.test.tsx +17 -1
- package/src/primitives/composer/ComposerInput.tsx +6 -1
- package/src/primitives/message/MessageContent.test.tsx +64 -3
- package/src/primitives/message/MessageContent.tsx +5 -3
- package/src/primitives/messagePart/MessagePartImage.test.tsx +91 -0
- package/src/primitives/messagePart/MessagePartImage.tsx +33 -0
- package/src/primitives/messagePart/MessagePartInProgress.ts +1 -0
- package/src/primitives/messagePart/MessagePartText.test.tsx +80 -0
- package/src/primitives/messagePart/MessagePartText.tsx +36 -0
- package/src/primitives/messagePart.ts +10 -0
- package/src/primitives/thread/ThreadMessages.test.tsx +190 -6
- package/src/primitives/thread/ThreadMessages.tsx +68 -1
- package/src/primitives/threadList/ThreadListNew.test.tsx +35 -8
- package/src/primitives/threadList/ThreadListNew.tsx +4 -1
- package/src/primitives/threadListItem/ThreadListItemTrigger.test.tsx +32 -6
- package/src/primitives/threadListItem/ThreadListItemTrigger.tsx +4 -1
|
@@ -4,7 +4,7 @@ import { Pressable } from "react-native";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/primitives/branchPicker/BranchPickerNext.tsx
|
|
6
6
|
const BranchPickerNext = (t0) => {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(12);
|
|
8
8
|
let children;
|
|
9
9
|
let disabledProp;
|
|
10
10
|
let pressableProps;
|
|
@@ -20,22 +20,32 @@ const BranchPickerNext = (t0) => {
|
|
|
20
20
|
pressableProps = $[3];
|
|
21
21
|
}
|
|
22
22
|
const { next, disabled } = useBranchPickerNext();
|
|
23
|
-
const
|
|
23
|
+
const isDisabled = disabledProp ?? disabled;
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[4] !== children || $[5] !== isDisabled) {
|
|
26
|
+
t1 = typeof children === "function" ? (state) => children({
|
|
27
|
+
...state,
|
|
28
|
+
disabled: isDisabled
|
|
29
|
+
}) : children;
|
|
30
|
+
$[4] = children;
|
|
31
|
+
$[5] = isDisabled;
|
|
32
|
+
$[6] = t1;
|
|
33
|
+
} else t1 = $[6];
|
|
24
34
|
let t2;
|
|
25
|
-
if ($[
|
|
35
|
+
if ($[7] !== isDisabled || $[8] !== next || $[9] !== pressableProps || $[10] !== t1) {
|
|
26
36
|
t2 = /* @__PURE__ */ jsx(Pressable, {
|
|
27
37
|
onPress: next,
|
|
28
|
-
disabled:
|
|
38
|
+
disabled: isDisabled,
|
|
29
39
|
accessibilityRole: "button",
|
|
30
40
|
...pressableProps,
|
|
31
|
-
children
|
|
41
|
+
children: t1
|
|
32
42
|
});
|
|
33
|
-
$[
|
|
34
|
-
$[
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
} else t2 = $[
|
|
43
|
+
$[7] = isDisabled;
|
|
44
|
+
$[8] = next;
|
|
45
|
+
$[9] = pressableProps;
|
|
46
|
+
$[10] = t1;
|
|
47
|
+
$[11] = t2;
|
|
48
|
+
} else t2 = $[11];
|
|
39
49
|
return t2;
|
|
40
50
|
};
|
|
41
51
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerNext.js","names":["Pressable","PressableProps","useBranchPickerNext","BranchPickerNextProps","Omit","children","BranchPickerNext","t0","$","_c","disabledProp","pressableProps","
|
|
1
|
+
{"version":3,"file":"BranchPickerNext.js","names":["ReactNode","Pressable","PressableProps","PressableStateCallbackType","useBranchPickerNext","BranchPickerNextProps","Omit","children","state","disabled","BranchPickerNext","t0","$","_c","disabledProp","pressableProps","next","isDisabled","t1","t2"],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport {\n Pressable,\n type PressableProps,\n type PressableStateCallbackType,\n} from \"react-native\";\nimport { useBranchPickerNext } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerNextProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children:\n | ReactNode\n | ((\n state: PressableStateCallbackType & { disabled: boolean },\n ) => ReactNode);\n};\n\nexport const BranchPickerNext = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerNextProps) => {\n const { next, disabled } = useBranchPickerNext();\n const isDisabled = disabledProp ?? disabled;\n\n return (\n <Pressable\n onPress={next}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {typeof children === \"function\"\n ? (state) => children({ ...state, disabled: isDisabled })\n : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAmBA,MAAaU,oBAAmBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,UAAAE,UAAAK,cAAA,GAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAR,WAAAK,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACtB,MAAA,EAAAI,MAAAP,aAA2BL,oBAAoB;CAC/C,MAAAa,aAAmBH,gBAAAL;CAAyB,IAAAS;CAAA,IAAAN,EAAA,OAAAL,YAAAK,EAAA,OAAAK,YAAA;EASvCC,KAAA,OAAOX,aAAa,cAApBC,UACcD,SAAS;GAAA,GAAKC;GAAKC,UAAYQ;EAAW,CAAC,IADzDV;EAEWK,EAAA,KAAAL;EAAAK,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAK,cAAAL,EAAA,OAAAI,QAAAJ,EAAA,OAAAG,kBAAAH,EAAA,QAAAM,IAAA;EARdC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACCC,UAAAA;GACQ,mBAAA;GAAQ,GACtBF;GAEHG,UAAAA;EANO,CAAA;EASEN,EAAA,KAAAK;EAAAL,EAAA,KAAAI;EAAAJ,EAAA,KAAAG;EAAAH,EAAA,MAAAM;EAAAN,EAAA,MAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OATZO;AASY"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { TextProps } from "react-native";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const BranchPickerNumber: (props: BranchPickerNumberProps) => import("react").JSX.Element;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { BranchPickerNumber, BranchPickerNumberProps };
|
|
1
|
+
import { type TextProps } from "react-native";
|
|
2
|
+
export type BranchPickerNumberProps = TextProps;
|
|
3
|
+
export declare const BranchPickerNumber: (props: BranchPickerNumberProps) => import("react").JSX.Element;
|
|
7
4
|
//# sourceMappingURL=BranchPickerNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerNumber.d.ts","
|
|
1
|
+
{"version":3,"file":"BranchPickerNumber.d.ts","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC;AAEhD,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,gCAGhE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type BranchPickerPreviousProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type PressableProps, type PressableStateCallbackType } from "react-native";
|
|
3
|
+
export type BranchPickerPreviousProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
|
+
children: ReactNode | ((state: PressableStateCallbackType & {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
}) => ReactNode);
|
|
5
7
|
};
|
|
6
|
-
declare const BranchPickerPrevious: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerPreviousProps) => import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { BranchPickerPrevious, BranchPickerPreviousProps };
|
|
8
|
+
export declare const BranchPickerPrevious: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerPreviousProps) => import("react").JSX.Element;
|
|
9
9
|
//# sourceMappingURL=BranchPickerPrevious.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerPrevious.d.ts","
|
|
1
|
+
{"version":3,"file":"BranchPickerPrevious.d.ts","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAChC,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,cAAc,EACd,SAAS,GAAG,UAAU,CACvB,GAAG;IACF,QAAQ,EACJ,SAAS,GACT,CAAC,CACC,KAAK,EAAE,0BAA0B,GAAG;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,KACtD,SAAS,CAAC,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,yDAIlC,yBAAyB,gCAgB3B,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { Pressable } from "react-native";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/primitives/branchPicker/BranchPickerPrevious.tsx
|
|
6
6
|
const BranchPickerPrevious = (t0) => {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(12);
|
|
8
8
|
let children;
|
|
9
9
|
let disabledProp;
|
|
10
10
|
let pressableProps;
|
|
@@ -20,22 +20,32 @@ const BranchPickerPrevious = (t0) => {
|
|
|
20
20
|
pressableProps = $[3];
|
|
21
21
|
}
|
|
22
22
|
const { previous, disabled } = useBranchPickerPrevious();
|
|
23
|
-
const
|
|
23
|
+
const isDisabled = disabledProp ?? disabled;
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[4] !== children || $[5] !== isDisabled) {
|
|
26
|
+
t1 = typeof children === "function" ? (state) => children({
|
|
27
|
+
...state,
|
|
28
|
+
disabled: isDisabled
|
|
29
|
+
}) : children;
|
|
30
|
+
$[4] = children;
|
|
31
|
+
$[5] = isDisabled;
|
|
32
|
+
$[6] = t1;
|
|
33
|
+
} else t1 = $[6];
|
|
24
34
|
let t2;
|
|
25
|
-
if ($[
|
|
35
|
+
if ($[7] !== isDisabled || $[8] !== pressableProps || $[9] !== previous || $[10] !== t1) {
|
|
26
36
|
t2 = /* @__PURE__ */ jsx(Pressable, {
|
|
27
37
|
onPress: previous,
|
|
28
|
-
disabled:
|
|
38
|
+
disabled: isDisabled,
|
|
29
39
|
accessibilityRole: "button",
|
|
30
40
|
...pressableProps,
|
|
31
|
-
children
|
|
41
|
+
children: t1
|
|
32
42
|
});
|
|
33
|
-
$[
|
|
34
|
-
$[
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
} else t2 = $[
|
|
43
|
+
$[7] = isDisabled;
|
|
44
|
+
$[8] = pressableProps;
|
|
45
|
+
$[9] = previous;
|
|
46
|
+
$[10] = t1;
|
|
47
|
+
$[11] = t2;
|
|
48
|
+
} else t2 = $[11];
|
|
39
49
|
return t2;
|
|
40
50
|
};
|
|
41
51
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerPrevious.js","names":["Pressable","PressableProps","useBranchPickerPrevious","BranchPickerPreviousProps","Omit","children","BranchPickerPrevious","t0","$","_c","disabledProp","pressableProps","
|
|
1
|
+
{"version":3,"file":"BranchPickerPrevious.js","names":["ReactNode","Pressable","PressableProps","PressableStateCallbackType","useBranchPickerPrevious","BranchPickerPreviousProps","Omit","children","state","disabled","BranchPickerPrevious","t0","$","_c","disabledProp","pressableProps","previous","isDisabled","t1","t2"],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport {\n Pressable,\n type PressableProps,\n type PressableStateCallbackType,\n} from \"react-native\";\nimport { useBranchPickerPrevious } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerPreviousProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children:\n | ReactNode\n | ((\n state: PressableStateCallbackType & { disabled: boolean },\n ) => ReactNode);\n};\n\nexport const BranchPickerPrevious = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerPreviousProps) => {\n const { previous, disabled } = useBranchPickerPrevious();\n const isDisabled = disabledProp ?? disabled;\n\n return (\n <Pressable\n onPress={previous}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {typeof children === \"function\"\n ? (state) => children({ ...state, disabled: isDisabled })\n : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAmBA,MAAaU,wBAAuBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,UAAAE,UAAAK,cAAA,GAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAR,WAAAK,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CAC1B,MAAA,EAAAI,UAAAP,aAA+BL,wBAAwB;CACvD,MAAAa,aAAmBH,gBAAAL;CAAyB,IAAAS;CAAA,IAAAN,EAAA,OAAAL,YAAAK,EAAA,OAAAK,YAAA;EASvCC,KAAA,OAAOX,aAAa,cAApBC,UACcD,SAAS;GAAA,GAAKC;GAAKC,UAAYQ;EAAW,CAAC,IADzDV;EAEWK,EAAA,KAAAL;EAAAK,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAK,cAAAL,EAAA,OAAAG,kBAAAH,EAAA,OAAAI,YAAAJ,EAAA,QAAAM,IAAA;EARdC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACCC,UAAAA;GACQ,mBAAA;GAAQ,GACtBF;GAEHG,UAAAA;EANO,CAAA;EASEN,EAAA,KAAAK;EAAAL,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,MAAAM;EAAAN,EAAA,MAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OATZO;AASY"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare namespace branchPicker_d_exports {
|
|
6
|
-
export { BranchPickerCount as Count, BranchPickerCountProps as CountProps, BranchPickerNext as Next, BranchPickerNextProps as NextProps, BranchPickerNumber as Number, BranchPickerNumberProps as NumberProps, BranchPickerPrevious as Previous, BranchPickerPreviousProps as PreviousProps };
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { BranchPickerCount as Count, type BranchPickerCountProps as CountProps, BranchPickerNext as Next, type BranchPickerNextProps as NextProps, BranchPickerNumber as Number, type BranchPickerNumberProps as NumberProps, BranchPickerPrevious as Previous, type BranchPickerPreviousProps as PreviousProps, branchPicker_d_exports };
|
|
1
|
+
export { BranchPickerPrevious as Previous, type BranchPickerPreviousProps as PreviousProps, } from "./branchPicker/BranchPickerPrevious.js";
|
|
2
|
+
export { BranchPickerNext as Next, type BranchPickerNextProps as NextProps, } from "./branchPicker/BranchPickerNext.js";
|
|
3
|
+
export { BranchPickerNumber as Number, type BranchPickerNumberProps as NumberProps, } from "./branchPicker/BranchPickerNumber.js";
|
|
4
|
+
export { BranchPickerCount as Count, type BranchPickerCountProps as CountProps, } from "./branchPicker/BranchPickerCount.js";
|
|
10
5
|
//# sourceMappingURL=branchPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchPicker.d.ts","
|
|
1
|
+
{"version":3,"file":"branchPicker.d.ts","sourceRoot":"","sources":["../../src/primitives/branchPicker.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,IAAI,QAAQ,EAChC,KAAK,yBAAyB,IAAI,aAAa,GAChD,+CAA4C;AAC7C,OAAO,EACL,gBAAgB,IAAI,IAAI,EACxB,KAAK,qBAAqB,IAAI,SAAS,GACxC,2CAAwC;AACzC,OAAO,EACL,kBAAkB,IAAI,MAAM,EAC5B,KAAK,uBAAuB,IAAI,WAAW,GAC5C,6CAA0C;AAC3C,OAAO,EACL,iBAAiB,IAAI,KAAK,EAC1B,KAAK,sBAAsB,IAAI,UAAU,GAC1C,4CAAyC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children: PressableProps["children"];
|
|
1
|
+
import { type PressableProps } from "react-native";
|
|
2
|
+
export type ChainOfThoughtAccordionTriggerProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
3
|
+
children: PressableProps["children"];
|
|
5
4
|
};
|
|
6
|
-
declare const ChainOfThoughtAccordionTrigger: ({ children, ...pressableProps }: ChainOfThoughtAccordionTriggerProps) => import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ChainOfThoughtAccordionTrigger, ChainOfThoughtAccordionTriggerProps };
|
|
5
|
+
export declare const ChainOfThoughtAccordionTrigger: ({ children, ...pressableProps }: ChainOfThoughtAccordionTriggerProps) => import("react").JSX.Element;
|
|
9
6
|
//# sourceMappingURL=ChainOfThoughtAccordionTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","
|
|
1
|
+
{"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,MAAM,mCAAmC,GAAG,IAAI,CACpD,cAAc,EACd,SAAS,GAAG,UAAU,CACvB,GAAG;IACF,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,iCAG5C,mCAAmC,gCAarC,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
children: ReactNode;
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type ViewProps } from "react-native";
|
|
3
|
+
export type ChainOfThoughtRootProps = ViewProps & {
|
|
4
|
+
children: ReactNode;
|
|
6
5
|
};
|
|
7
|
-
declare const ChainOfThoughtRoot: ({ children, ...viewProps }: ChainOfThoughtRootProps) => import("react").JSX.Element;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { ChainOfThoughtRoot, ChainOfThoughtRootProps };
|
|
6
|
+
export declare const ChainOfThoughtRoot: ({ children, ...viewProps }: ChainOfThoughtRootProps) => import("react").JSX.Element;
|
|
10
7
|
//# sourceMappingURL=ChainOfThoughtRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainOfThoughtRoot.d.ts","
|
|
1
|
+
{"version":3,"file":"ChainOfThoughtRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG;IAChD,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,4BAGhC,uBAAuB,gCAEzB,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare namespace chainOfThought_d_exports {
|
|
5
|
-
export { ChainOfThoughtAccordionTrigger as AccordionTrigger, ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps, Parts, ChainOfThoughtRoot as Root, ChainOfThoughtRootProps as RootProps };
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ChainOfThoughtAccordionTrigger as AccordionTrigger, type ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps, Parts, ChainOfThoughtRoot as Root, type ChainOfThoughtRootProps as RootProps, chainOfThought_d_exports };
|
|
1
|
+
export { ChainOfThoughtRoot as Root, type ChainOfThoughtRootProps as RootProps, } from "./chainOfThought/ChainOfThoughtRoot.js";
|
|
2
|
+
export { ChainOfThoughtAccordionTrigger as AccordionTrigger, type ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps, } from "./chainOfThought/ChainOfThoughtAccordionTrigger.js";
|
|
3
|
+
export { ChainOfThoughtPrimitiveParts as Parts } from "@assistant-ui/core/react";
|
|
9
4
|
//# sourceMappingURL=chainOfThought.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainOfThought.d.ts","
|
|
1
|
+
{"version":3,"file":"chainOfThought.d.ts","sourceRoot":"","sources":["../../src/primitives/chainOfThought.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,IAAI,EAC1B,KAAK,uBAAuB,IAAI,SAAS,GAC1C,+CAA4C;AAC7C,OAAO,EACL,8BAA8B,IAAI,gBAAgB,EAClD,KAAK,mCAAmC,IAAI,qBAAqB,GAClE,2DAAwD;AACzD,OAAO,EAAE,4BAA4B,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children: PressableProps["children"];
|
|
1
|
+
import { type PressableProps } from "react-native";
|
|
2
|
+
export type ComposerAddAttachmentProps = Omit<PressableProps, "children"> & {
|
|
3
|
+
children: PressableProps["children"];
|
|
5
4
|
};
|
|
6
5
|
/**
|
|
7
6
|
* A button for adding attachments. It is disabled while the composer cannot accept attachments.
|
|
8
7
|
*
|
|
9
8
|
* React Native has no file input, so the caller opens the platform picker (for example `expo-image-picker`) in `onPress` and passes the selection to `aui.composer.addAttachment`.
|
|
10
9
|
*/
|
|
11
|
-
declare const ComposerAddAttachment: ({ children, disabled: disabledProp, ...pressableProps }: ComposerAddAttachmentProps) => import("react").JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { ComposerAddAttachment, ComposerAddAttachmentProps };
|
|
10
|
+
export declare const ComposerAddAttachment: ({ children, disabled: disabledProp, ...pressableProps }: ComposerAddAttachmentProps) => import("react").JSX.Element;
|
|
14
11
|
//# sourceMappingURL=ComposerAddAttachment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerAddAttachment.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerAddAttachment.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAAG;IAC1E,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACtC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,yDAInC,0BAA0B,gCAY5B,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
declare const
|
|
6
|
-
declare const ComposerAttachments: import("react").FC<ComposerPrimitiveAttachments.Props>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ComposerAttachmentByIndex, ComposerAttachmentByIndexProps, ComposerAttachments, ComposerAttachmentsProps };
|
|
1
|
+
import { ComposerPrimitiveAttachments, ComposerPrimitiveAttachmentByIndex } from "@assistant-ui/core/react";
|
|
2
|
+
export type ComposerAttachmentsProps = ComposerPrimitiveAttachments.Props;
|
|
3
|
+
export type ComposerAttachmentByIndexProps = ComposerPrimitiveAttachmentByIndex.Props;
|
|
4
|
+
export declare const ComposerAttachmentByIndex: import("react").FC<ComposerPrimitiveAttachmentByIndex.Props>;
|
|
5
|
+
export declare const ComposerAttachments: import("react").FC<ComposerPrimitiveAttachments.Props>;
|
|
9
6
|
//# sourceMappingURL=ComposerAttachments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerAttachments.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerAttachments.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,kCAAkC,EACnC,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,CAAC,KAAK,CAAC;AAE1E,MAAM,MAAM,8BAA8B,GACxC,kCAAkC,CAAC,KAAK,CAAC;AAE3C,eAAO,MAAM,yBAAyB,8DAAqC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,wDAA+B,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children: PressableProps["children"];
|
|
1
|
+
import { type PressableProps } from "react-native";
|
|
2
|
+
export type ComposerCancelProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
3
|
+
children: PressableProps["children"];
|
|
5
4
|
};
|
|
6
|
-
declare const ComposerCancel: ({ children, disabled, ...pressableProps }: ComposerCancelProps) => import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ComposerCancel, ComposerCancelProps };
|
|
5
|
+
export declare const ComposerCancel: ({ children, disabled, ...pressableProps }: ComposerCancelProps) => import("react").JSX.Element;
|
|
9
6
|
//# sourceMappingURL=ComposerCancel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerCancel.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerCancel.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,cAAc,EACd,SAAS,GAAG,UAAU,CACvB,GAAG;IACF,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,2CAI5B,mBAAmB,gCAarB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { ComposerPrimitiveIf as ComposerIf } from "@assistant-ui/core/react";
|
|
2
|
+
//# sourceMappingURL=ComposerIf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerIf.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerIf.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { TextInputProps } from "react-native";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
submitMode?: "enter" | "none";
|
|
1
|
+
import { type TextInputProps } from "react-native";
|
|
2
|
+
export type ComposerInputProps = Omit<TextInputProps, "value" | "onChangeText"> & {
|
|
3
|
+
/**
|
|
4
|
+
* Controls how the Enter key submits messages (web only).
|
|
5
|
+
* - "enter": Plain Enter submits (Shift+Enter for newline)
|
|
6
|
+
* - "none": Enter inserts newline (no keyboard submission)
|
|
7
|
+
* @default "enter"
|
|
8
|
+
*/
|
|
9
|
+
submitMode?: "enter" | "none";
|
|
11
10
|
};
|
|
12
|
-
declare const ComposerInput: ({ submitMode, onKeyPress: onKeyPressProp, numberOfLines, style, ...props }: ComposerInputProps) => import("react").JSX.Element;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { ComposerInput, ComposerInputProps };
|
|
11
|
+
export declare const ComposerInput: ({ submitMode, onKeyPress: onKeyPressProp, numberOfLines, style, ...props }: ComposerInputProps) => import("react").JSX.Element;
|
|
15
12
|
//# sourceMappingURL=ComposerInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerInput.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerInput.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AASxE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,cAAc,EACd,OAAO,GAAG,cAAc,CACzB,GAAG;IACF;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC/B,CAAC;AAmCF,eAAO,MAAM,aAAa,GAAI,4EAM3B,kBAAkB,gCAmEpB,CAAC"}
|
|
@@ -93,7 +93,7 @@ const ComposerInput = (t0) => {
|
|
|
93
93
|
if (nativeEvent.isComposing || nativeEvent.keyCode === 229) return;
|
|
94
94
|
if (nativeEvent.key === "Enter" && !nativeEvent.shiftKey) {
|
|
95
95
|
const threadState = aui.thread.getState();
|
|
96
|
-
if (threadState.isRunning && !threadState.capabilities.queue) return;
|
|
96
|
+
if (threadState.isRunning && !threadState.capabilities.queue && threadState.voice === void 0) return;
|
|
97
97
|
e.preventDefault?.();
|
|
98
98
|
aui.composer.send();
|
|
99
99
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerInput.js","names":["useCallback","useEffect","useRef","Platform","TextInput","TextInputProps","useAui","useAuiState","flushTapSync","TextInputInstance","React","ComponentRef","TextInputKeyPressEvent","Parameters","NonNullable","ComposerInputProps","Omit","submitMode","getWebTextareaMaxHeight","el","HTMLTextAreaElement","computedMaxHeight","globalThis","getComputedStyle","maxHeight","parsedComputedMaxHeight","Number","parseFloat","isFinite","inlineMaxHeight","style","adjustWebTextareaHeight","ref","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","isDefaultPrevented","nativeEvent","shiftKey","isComposing","keyCode","key","threadState","thread","getState","isRunning","capabilities","queue","Event","preventDefault","send","t6","t7","s"],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport { Platform, TextInput, type TextInputProps } from \"react-native\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\nimport { flushTapSync } from \"@assistant-ui/tap\";\n\ntype TextInputInstance = React.ComponentRef<typeof TextInput>;\ntype TextInputKeyPressEvent = Parameters<\n NonNullable<TextInputProps[\"onKeyPress\"]>\n>[0];\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 = (\n ref: React.RefObject<TextInputInstance | null>,\n) => {\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<TextInputInstance>(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: TextInputKeyPressEvent) => {\n onKeyPressProp?.(e);\n if (e.isDefaultPrevented()) return;\n\n if (Platform.OS !== \"web\") return;\n if (submitMode !== \"enter\") return;\n\n const nativeEvent =\n e.nativeEvent as TextInputKeyPressEvent[\"nativeEvent\"] & {\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 const threadState = aui.thread.getState();\n if (threadState.isRunning
|
|
1
|
+
{"version":3,"file":"ComposerInput.js","names":["useCallback","useEffect","useRef","Platform","TextInput","TextInputProps","useAui","useAuiState","flushTapSync","TextInputInstance","React","ComponentRef","TextInputKeyPressEvent","Parameters","NonNullable","ComposerInputProps","Omit","submitMode","getWebTextareaMaxHeight","el","HTMLTextAreaElement","computedMaxHeight","globalThis","getComputedStyle","maxHeight","parsedComputedMaxHeight","Number","parseFloat","isFinite","inlineMaxHeight","style","adjustWebTextareaHeight","ref","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","isDefaultPrevented","nativeEvent","shiftKey","isComposing","keyCode","key","threadState","thread","getState","isRunning","capabilities","queue","voice","Event","preventDefault","send","t6","t7","s"],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport { Platform, TextInput, type TextInputProps } from \"react-native\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\nimport { flushTapSync } from \"@assistant-ui/tap\";\n\ntype TextInputInstance = React.ComponentRef<typeof TextInput>;\ntype TextInputKeyPressEvent = Parameters<\n NonNullable<TextInputProps[\"onKeyPress\"]>\n>[0];\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 = (\n ref: React.RefObject<TextInputInstance | null>,\n) => {\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<TextInputInstance>(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: TextInputKeyPressEvent) => {\n onKeyPressProp?.(e);\n if (e.isDefaultPrevented()) return;\n\n if (Platform.OS !== \"web\") return;\n if (submitMode !== \"enter\") return;\n\n const nativeEvent =\n e.nativeEvent as TextInputKeyPressEvent[\"nativeEvent\"] & {\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 const threadState = aui.thread.getState();\n if (\n threadState.isRunning &&\n !threadState.capabilities.queue &&\n threadState.voice === undefined\n )\n return;\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,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { ComposerPrimitiveQueue as ComposerQueue } from "@assistant-ui/core/react";
|
|
2
|
+
//# sourceMappingURL=ComposerQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerQueue.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerQueue.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
children: ReactNode;
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type ViewProps } from "react-native";
|
|
3
|
+
export type ComposerQuoteProps = ViewProps & {
|
|
4
|
+
children: ReactNode;
|
|
6
5
|
};
|
|
7
|
-
declare const ComposerQuote: ({ children, ...viewProps }: ComposerQuoteProps) => import("react").JSX.Element | null;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { ComposerQuote, ComposerQuoteProps };
|
|
6
|
+
export declare const ComposerQuote: ({ children, ...viewProps }: ComposerQuoteProps) => import("react").JSX.Element | null;
|
|
10
7
|
//# sourceMappingURL=ComposerQuote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerQuote.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerQuote.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerQuote.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG;IAC3C,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,4BAG3B,kBAAkB,uCAKpB,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children: PressableProps["children"];
|
|
1
|
+
import { type PressableProps } from "react-native";
|
|
2
|
+
export type ComposerQuoteDismissProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
3
|
+
children: PressableProps["children"];
|
|
5
4
|
};
|
|
6
|
-
declare const ComposerQuoteDismiss: ({ children, ...pressableProps }: ComposerQuoteDismissProps) => import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ComposerQuoteDismiss, ComposerQuoteDismissProps };
|
|
5
|
+
export declare const ComposerQuoteDismiss: ({ children, ...pressableProps }: ComposerQuoteDismissProps) => import("react").JSX.Element;
|
|
9
6
|
//# sourceMappingURL=ComposerQuoteDismiss.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerQuoteDismiss.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerQuoteDismiss.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerQuoteDismiss.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,cAAc,EACd,SAAS,GAAG,UAAU,CACvB,GAAG;IACF,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,iCAGlC,yBAAyB,gCAgB3B,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
children?: ReactNode;
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type TextProps } from "react-native";
|
|
3
|
+
export type ComposerQuoteTextProps = TextProps & {
|
|
4
|
+
children?: ReactNode;
|
|
6
5
|
};
|
|
7
|
-
declare const ComposerQuoteText: ({ children, ...textProps }: ComposerQuoteTextProps) => import("react").JSX.Element | null;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { ComposerQuoteText, ComposerQuoteTextProps };
|
|
6
|
+
export declare const ComposerQuoteText: ({ children, ...textProps }: ComposerQuoteTextProps) => import("react").JSX.Element | null;
|
|
10
7
|
//# sourceMappingURL=ComposerQuoteText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerQuoteText.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerQuoteText.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerQuoteText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,4BAG/B,sBAAsB,uCAKxB,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
children: ReactNode;
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type ViewProps } from "react-native";
|
|
3
|
+
export type ComposerRootProps = ViewProps & {
|
|
4
|
+
children: ReactNode;
|
|
6
5
|
};
|
|
7
|
-
declare const ComposerRoot: ({ children, ...viewProps }: ComposerRootProps) => import("react").JSX.Element;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { ComposerRoot, ComposerRootProps };
|
|
6
|
+
export declare const ComposerRoot: ({ children, ...viewProps }: ComposerRootProps) => import("react").JSX.Element;
|
|
10
7
|
//# sourceMappingURL=ComposerRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerRoot.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG;IAC1C,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,4BAA4B,iBAAiB,gCAEzE,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children: PressableProps["children"];
|
|
1
|
+
import { type PressableProps } from "react-native";
|
|
2
|
+
export type ComposerSendProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
3
|
+
children: PressableProps["children"];
|
|
5
4
|
};
|
|
6
|
-
declare const ComposerSend: ({ children, disabled, ...pressableProps }: ComposerSendProps) => import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ComposerSend, ComposerSendProps };
|
|
5
|
+
export declare const ComposerSend: ({ children, disabled, ...pressableProps }: ComposerSendProps) => import("react").JSX.Element;
|
|
9
6
|
//# sourceMappingURL=ComposerSend.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerSend.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerSend.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerSend.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,CAAC,GAAG;IAC7E,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,2CAI1B,iBAAiB,gCAanB,CAAC"}
|