@assistant-ui/react-native 0.1.41 → 0.1.43
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/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +3 -3
- 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 -5
- 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 +3 -3
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +26 -16
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +3 -3
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +26 -16
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.d.ts +7 -5
- 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 +14 -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 +14 -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 +4 -2
- package/dist/primitives/actionBar.js +6 -2
- package/dist/primitives/actionBar.js.map +1 -1
- package/dist/primitives/attachment/AttachmentName.d.ts +2 -3
- package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.d.ts +2 -3
- package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRoot.d.ts +2 -3
- package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.d.ts +2 -3
- package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts +2 -3
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +7 -5
- 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 +2 -3
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +7 -5
- 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/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +2 -3
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +2 -3
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.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/ComposerAddAttachment.js +2 -4
- package/dist/primitives/composer/ComposerAddAttachment.js.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +4 -5
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerCancel.d.ts +2 -3
- package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.d.ts +2 -3
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuote.d.ts +2 -3
- package/dist/primitives/composer/ComposerQuote.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuoteDismiss.d.ts +2 -3
- package/dist/primitives/composer/ComposerQuoteDismiss.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuoteText.d.ts +2 -3
- package/dist/primitives/composer/ComposerQuoteText.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerRoot.d.ts +2 -3
- package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerSend.d.ts +2 -3
- package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
- package/dist/primitives/error/ErrorMessage.d.ts +2 -3
- package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
- package/dist/primitives/error/ErrorRoot.d.ts +2 -3
- package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.d.ts +4 -5
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/primitives/message/MessageContent.d.ts +2 -3
- package/dist/primitives/message/MessageContent.d.ts.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +2 -3
- package/dist/primitives/message/MessageIf.d.ts.map +1 -1
- package/dist/primitives/message/MessageParts.d.ts +3 -3
- package/dist/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/primitives/message/MessageRoot.d.ts +2 -3
- package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
- package/dist/primitives/messagePart/MessagePartImage.d.ts +11 -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.js +2 -0
- package/dist/primitives/messagePart/MessagePartText.d.ts +11 -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 +10 -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 +2 -3
- package/dist/primitives/queueItem/QueueItemRemove.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemSteer.d.ts +2 -3
- package/dist/primitives/queueItem/QueueItemSteer.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemText.d.ts +2 -3
- package/dist/primitives/queueItem/QueueItemText.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.d.ts +2 -3
- package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.d.ts +2 -3
- package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts +2 -3
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.d.ts +2 -3
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +2 -3
- package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +9 -5
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.js +244 -171
- package/dist/primitives/thread/ThreadMessages.js.map +1 -1
- package/dist/primitives/thread/ThreadRoot.d.ts +2 -3
- package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.d.ts +2 -3
- package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.d.ts +2 -3
- package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.d.ts +2 -3
- package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListRoot.d.ts +2 -3
- package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
- package/package.json +13 -11
- package/src/index.ts +30 -0
- package/src/primitives/accessibilityRole.test.tsx +20 -0
- package/src/primitives/actionBar/ActionBar.test.tsx +299 -0
- package/src/primitives/actionBar/ActionBarCopy.tsx +8 -3
- package/src/primitives/actionBar/ActionBarEdit.tsx +16 -4
- package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +14 -3
- package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +14 -3
- 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/ComposerAddAttachment.tsx +3 -8
- 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 +335 -54
- package/src/primitives/thread/ThreadMessages.tsx +104 -26
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PressableProps, PressableStateCallbackType } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
//#region src/primitives/actionBar/ActionBarSpeak.d.ts
|
|
4
|
+
export type ActionBarSpeakProps = Omit<PressableProps, "children" | "onPress"> & {
|
|
5
|
+
children: ReactNode | ((state: PressableStateCallbackType & {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}) => ReactNode);
|
|
8
|
+
};
|
|
9
|
+
export declare const ActionBarSpeak: {
|
|
10
|
+
({ children, disabled: disabledProp, ...pressableProps }: ActionBarSpeakProps): import("react").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
//# sourceMappingURL=ActionBarSpeak.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionBarSpeak.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarSpeak.tsx"],"mappings":";;;YAQY,sBAAsB,KAChC;EAGA,UACI,cAEE,OAAO;IAA+B;QACnC;;qBAGE;KAIV,UAAA,UAAA,iBAAA,kBAAA,sCAAmB,IAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useActionBarSpeak } from "@assistant-ui/core/react";
|
|
2
|
+
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
3
|
+
import { Pressable } from "react-native";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/primitives/actionBar/ActionBarSpeak.tsx
|
|
6
|
+
const ActionBarSpeak = (t0) => {
|
|
7
|
+
const $ = c(14);
|
|
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
|
+
}
|
|
22
|
+
const { speak, disabled } = useActionBarSpeak();
|
|
23
|
+
const isDisabled = disabledProp ?? disabled;
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[4] !== speak) {
|
|
26
|
+
t1 = () => void speak();
|
|
27
|
+
$[4] = speak;
|
|
28
|
+
$[5] = t1;
|
|
29
|
+
} else t1 = $[5];
|
|
30
|
+
let t2;
|
|
31
|
+
if ($[6] !== children || $[7] !== isDisabled) {
|
|
32
|
+
t2 = typeof children === "function" ? (state) => children({
|
|
33
|
+
...state,
|
|
34
|
+
disabled: isDisabled
|
|
35
|
+
}) : children;
|
|
36
|
+
$[6] = children;
|
|
37
|
+
$[7] = isDisabled;
|
|
38
|
+
$[8] = t2;
|
|
39
|
+
} else t2 = $[8];
|
|
40
|
+
let t3;
|
|
41
|
+
if ($[9] !== isDisabled || $[10] !== pressableProps || $[11] !== t1 || $[12] !== t2) {
|
|
42
|
+
t3 = /* @__PURE__ */ jsx(Pressable, {
|
|
43
|
+
onPress: t1,
|
|
44
|
+
disabled: isDisabled,
|
|
45
|
+
accessibilityRole: "button",
|
|
46
|
+
...pressableProps,
|
|
47
|
+
children: t2
|
|
48
|
+
});
|
|
49
|
+
$[9] = isDisabled;
|
|
50
|
+
$[10] = pressableProps;
|
|
51
|
+
$[11] = t1;
|
|
52
|
+
$[12] = t2;
|
|
53
|
+
$[13] = t3;
|
|
54
|
+
} else t3 = $[13];
|
|
55
|
+
return t3;
|
|
56
|
+
};
|
|
57
|
+
ActionBarSpeak.displayName = "ActionBarPrimitive.Speak";
|
|
58
|
+
//#endregion
|
|
59
|
+
export { ActionBarSpeak };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=ActionBarSpeak.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionBarSpeak.js","names":["ReactNode","Pressable","PressableProps","PressableStateCallbackType","useActionBarSpeak","ActionBarSpeakProps","Omit","children","state","disabled","ActionBarSpeak","t0","$","_c","disabledProp","pressableProps","speak","isDisabled","t1","t2","t3","displayName"],"sources":["../../../src/primitives/actionBar/ActionBarSpeak.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport {\n Pressable,\n type PressableProps,\n type PressableStateCallbackType,\n} from \"react-native\";\nimport { useActionBarSpeak } from \"@assistant-ui/core/react\";\n\nexport type ActionBarSpeakProps = Omit<\n PressableProps,\n \"children\" | \"onPress\"\n> & {\n children:\n | ReactNode\n | ((\n state: PressableStateCallbackType & { disabled: boolean },\n ) => ReactNode);\n};\n\nexport const ActionBarSpeak = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarSpeakProps) => {\n const { speak, disabled } = useActionBarSpeak();\n const isDisabled = disabledProp ?? disabled;\n\n return (\n <Pressable\n onPress={() => void speak()}\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\nActionBarSpeak.displayName = \"ActionBarPrimitive.Speak\";\n"],"mappings":";;;;;AAmBA,MAAaU,kBAAiBC,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;CACpB,MAAA,EAAAI,OAAAP,aAA4BL,kBAAkB;CAC9C,MAAAa,aAAmBH,gBAAAL;CAAyB,IAAAS;CAAA,IAAAN,EAAA,OAAAI,OAAA;EAI/BE,WAAM,KAAKF,MAAM;EAACJ,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAL,YAAAK,EAAA,OAAAK,YAAA;EAK1BE,KAAA,OAAOZ,aAAa,cAApBC,UACcD,SAAS;GAAA,GAAKC;GAAKC,UAAYQ;EAAW,CAAC,IADzDV;EAEWK,EAAA,KAAAL;EAAAK,EAAA,KAAAK;EAAAL,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,IAAAQ;CAAA,IAAAR,EAAA,OAAAK,cAAAL,EAAA,QAAAG,kBAAAH,EAAA,QAAAM,MAAAN,EAAA,QAAAO,IAAA;EARdC,KAAA,oBAAC,WAAD;GACW,SAAAF;GACCD,UAAAA;GACQ,mBAAA;GAAQ,GACtBF;GAEHI,UAAAA;EANO,CAAA;EASEP,EAAA,KAAAK;EAAAL,EAAA,MAAAG;EAAAH,EAAA,MAAAM;EAAAN,EAAA,MAAAO;EAAAP,EAAA,MAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,OATZQ;AASY;AAIhBV,eAAeW,cAAc"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PressableProps, PressableStateCallbackType } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
//#region src/primitives/actionBar/ActionBarStopSpeaking.d.ts
|
|
4
|
+
export type ActionBarStopSpeakingProps = Omit<PressableProps, "children" | "onPress"> & {
|
|
5
|
+
children: ReactNode | ((state: PressableStateCallbackType & {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}) => ReactNode);
|
|
8
|
+
};
|
|
9
|
+
export declare const ActionBarStopSpeaking: {
|
|
10
|
+
({ children, disabled: disabledProp, ...pressableProps }: ActionBarStopSpeakingProps): import("react").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
//# sourceMappingURL=ActionBarStopSpeaking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionBarStopSpeaking.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarStopSpeaking.tsx"],"mappings":";;;YAQY,6BAA6B,KACvC;EAGA,UACI,cAEE,OAAO;IAA+B;QACnC;;qBAGE;KAIV,UAAA,UAAA,iBAAA,kBAAA,6CAA0B,IAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useActionBarStopSpeaking } from "@assistant-ui/core/react";
|
|
2
|
+
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
3
|
+
import { Pressable } from "react-native";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/primitives/actionBar/ActionBarStopSpeaking.tsx
|
|
6
|
+
const ActionBarStopSpeaking = (t0) => {
|
|
7
|
+
const $ = c(14);
|
|
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
|
+
}
|
|
22
|
+
const { stopSpeaking, disabled } = useActionBarStopSpeaking();
|
|
23
|
+
const isDisabled = disabledProp ?? disabled;
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[4] !== stopSpeaking) {
|
|
26
|
+
t1 = () => stopSpeaking();
|
|
27
|
+
$[4] = stopSpeaking;
|
|
28
|
+
$[5] = t1;
|
|
29
|
+
} else t1 = $[5];
|
|
30
|
+
let t2;
|
|
31
|
+
if ($[6] !== children || $[7] !== isDisabled) {
|
|
32
|
+
t2 = typeof children === "function" ? (state) => children({
|
|
33
|
+
...state,
|
|
34
|
+
disabled: isDisabled
|
|
35
|
+
}) : children;
|
|
36
|
+
$[6] = children;
|
|
37
|
+
$[7] = isDisabled;
|
|
38
|
+
$[8] = t2;
|
|
39
|
+
} else t2 = $[8];
|
|
40
|
+
let t3;
|
|
41
|
+
if ($[9] !== isDisabled || $[10] !== pressableProps || $[11] !== t1 || $[12] !== t2) {
|
|
42
|
+
t3 = /* @__PURE__ */ jsx(Pressable, {
|
|
43
|
+
onPress: t1,
|
|
44
|
+
disabled: isDisabled,
|
|
45
|
+
accessibilityRole: "button",
|
|
46
|
+
...pressableProps,
|
|
47
|
+
children: t2
|
|
48
|
+
});
|
|
49
|
+
$[9] = isDisabled;
|
|
50
|
+
$[10] = pressableProps;
|
|
51
|
+
$[11] = t1;
|
|
52
|
+
$[12] = t2;
|
|
53
|
+
$[13] = t3;
|
|
54
|
+
} else t3 = $[13];
|
|
55
|
+
return t3;
|
|
56
|
+
};
|
|
57
|
+
ActionBarStopSpeaking.displayName = "ActionBarPrimitive.StopSpeaking";
|
|
58
|
+
//#endregion
|
|
59
|
+
export { ActionBarStopSpeaking };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=ActionBarStopSpeaking.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionBarStopSpeaking.js","names":["ReactNode","Pressable","PressableProps","PressableStateCallbackType","useActionBarStopSpeaking","ActionBarStopSpeakingProps","Omit","children","state","disabled","ActionBarStopSpeaking","t0","$","_c","disabledProp","pressableProps","stopSpeaking","isDisabled","t1","t2","t3","displayName"],"sources":["../../../src/primitives/actionBar/ActionBarStopSpeaking.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport {\n Pressable,\n type PressableProps,\n type PressableStateCallbackType,\n} from \"react-native\";\nimport { useActionBarStopSpeaking } from \"@assistant-ui/core/react\";\n\nexport type ActionBarStopSpeakingProps = Omit<\n PressableProps,\n \"children\" | \"onPress\"\n> & {\n children:\n | ReactNode\n | ((\n state: PressableStateCallbackType & { disabled: boolean },\n ) => ReactNode);\n};\n\nexport const ActionBarStopSpeaking = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarStopSpeakingProps) => {\n const { stopSpeaking, disabled } = useActionBarStopSpeaking();\n const isDisabled = disabledProp ?? disabled;\n\n return (\n <Pressable\n onPress={() => stopSpeaking()}\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\nActionBarStopSpeaking.displayName = \"ActionBarPrimitive.StopSpeaking\";\n"],"mappings":";;;;;AAmBA,MAAaU,yBAAwBC,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;CAC3B,MAAA,EAAAI,cAAAP,aAAmCL,yBAAyB;CAC5D,MAAAa,aAAmBH,gBAAAL;CAAyB,IAAAS;CAAA,IAAAN,EAAA,OAAAI,cAAA;EAI/BE,WAAMF,aAAa;EAACJ,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAL,YAAAK,EAAA,OAAAK,YAAA;EAK5BE,KAAA,OAAOZ,aAAa,cAApBC,UACcD,SAAS;GAAA,GAAKC;GAAKC,UAAYQ;EAAW,CAAC,IADzDV;EAEWK,EAAA,KAAAL;EAAAK,EAAA,KAAAK;EAAAL,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,IAAAQ;CAAA,IAAAR,EAAA,OAAAK,cAAAL,EAAA,QAAAG,kBAAAH,EAAA,QAAAM,MAAAN,EAAA,QAAAO,IAAA;EARdC,KAAA,oBAAC,WAAD;GACW,SAAAF;GACCD,UAAAA;GACQ,mBAAA;GAAQ,GACtBF;GAEHI,UAAAA;EANO,CAAA;EASEP,EAAA,KAAAK;EAAAL,EAAA,MAAAG;EAAAH,EAAA,MAAAM;EAAAN,EAAA,MAAAO;EAAAP,EAAA,MAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,OATZQ;AASY;AAIhBV,sBAAsBW,cAAc"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ActionBarCopy, ActionBarCopyProps } from "./actionBar/ActionBarCopy.js";
|
|
2
2
|
import { ActionBarEdit, ActionBarEditProps } from "./actionBar/ActionBarEdit.js";
|
|
3
3
|
import { ActionBarReload, ActionBarReloadProps } from "./actionBar/ActionBarReload.js";
|
|
4
|
+
import { ActionBarSpeak, ActionBarSpeakProps } from "./actionBar/ActionBarSpeak.js";
|
|
5
|
+
import { ActionBarStopSpeaking, ActionBarStopSpeakingProps } from "./actionBar/ActionBarStopSpeaking.js";
|
|
4
6
|
import { ActionBarFeedbackPositive, ActionBarFeedbackPositiveProps } from "./actionBar/ActionBarFeedbackPositive.js";
|
|
5
7
|
import { ActionBarFeedbackNegative, ActionBarFeedbackNegativeProps } from "./actionBar/ActionBarFeedbackNegative.js";
|
|
6
8
|
declare namespace actionBar_d_exports {
|
|
7
|
-
export { ActionBarCopy as Copy, ActionBarCopyProps as CopyProps, ActionBarEdit as Edit, ActionBarEditProps as EditProps, ActionBarFeedbackNegative as FeedbackNegative, ActionBarFeedbackNegativeProps as FeedbackNegativeProps, ActionBarFeedbackPositive as FeedbackPositive, ActionBarFeedbackPositiveProps as FeedbackPositiveProps, ActionBarReload as Reload, ActionBarReloadProps as ReloadProps };
|
|
9
|
+
export { ActionBarCopy as Copy, ActionBarCopyProps as CopyProps, ActionBarEdit as Edit, ActionBarEditProps as EditProps, ActionBarFeedbackNegative as FeedbackNegative, ActionBarFeedbackNegativeProps as FeedbackNegativeProps, ActionBarFeedbackPositive as FeedbackPositive, ActionBarFeedbackPositiveProps as FeedbackPositiveProps, ActionBarReload as Reload, ActionBarReloadProps as ReloadProps, ActionBarSpeak as Speak, ActionBarSpeakProps as SpeakProps, ActionBarStopSpeaking as StopSpeaking, ActionBarStopSpeakingProps as StopSpeakingProps };
|
|
8
10
|
}
|
|
9
11
|
//#endregion
|
|
10
|
-
export { ActionBarCopy as Copy, type ActionBarCopyProps as CopyProps, ActionBarEdit as Edit, type ActionBarEditProps as EditProps, ActionBarFeedbackNegative as FeedbackNegative, type ActionBarFeedbackNegativeProps as FeedbackNegativeProps, ActionBarFeedbackPositive as FeedbackPositive, type ActionBarFeedbackPositiveProps as FeedbackPositiveProps, ActionBarReload as Reload, type ActionBarReloadProps as ReloadProps, actionBar_d_exports };
|
|
12
|
+
export { ActionBarCopy as Copy, type ActionBarCopyProps as CopyProps, ActionBarEdit as Edit, type ActionBarEditProps as EditProps, ActionBarFeedbackNegative as FeedbackNegative, type ActionBarFeedbackNegativeProps as FeedbackNegativeProps, ActionBarFeedbackPositive as FeedbackPositive, type ActionBarFeedbackPositiveProps as FeedbackPositiveProps, ActionBarReload as Reload, type ActionBarReloadProps as ReloadProps, ActionBarSpeak as Speak, type ActionBarSpeakProps as SpeakProps, ActionBarStopSpeaking as StopSpeaking, type ActionBarStopSpeakingProps as StopSpeakingProps, actionBar_d_exports };
|
|
11
13
|
//# sourceMappingURL=actionBar.d.ts.map
|
|
@@ -2,6 +2,8 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { ActionBarCopy } from "./actionBar/ActionBarCopy.js";
|
|
3
3
|
import { ActionBarEdit } from "./actionBar/ActionBarEdit.js";
|
|
4
4
|
import { ActionBarReload } from "./actionBar/ActionBarReload.js";
|
|
5
|
+
import { ActionBarSpeak } from "./actionBar/ActionBarSpeak.js";
|
|
6
|
+
import { ActionBarStopSpeaking } from "./actionBar/ActionBarStopSpeaking.js";
|
|
5
7
|
import { ActionBarFeedbackPositive } from "./actionBar/ActionBarFeedbackPositive.js";
|
|
6
8
|
import { ActionBarFeedbackNegative } from "./actionBar/ActionBarFeedbackNegative.js";
|
|
7
9
|
//#region src/primitives/actionBar.ts
|
|
@@ -10,9 +12,11 @@ var actionBar_exports = /* @__PURE__ */ __exportAll({
|
|
|
10
12
|
Edit: () => ActionBarEdit,
|
|
11
13
|
FeedbackNegative: () => ActionBarFeedbackNegative,
|
|
12
14
|
FeedbackPositive: () => ActionBarFeedbackPositive,
|
|
13
|
-
Reload: () => ActionBarReload
|
|
15
|
+
Reload: () => ActionBarReload,
|
|
16
|
+
Speak: () => ActionBarSpeak,
|
|
17
|
+
StopSpeaking: () => ActionBarStopSpeaking
|
|
14
18
|
});
|
|
15
19
|
//#endregion
|
|
16
|
-
export { ActionBarCopy as Copy, ActionBarEdit as Edit, ActionBarFeedbackNegative as FeedbackNegative, ActionBarFeedbackPositive as FeedbackPositive, ActionBarReload as Reload, actionBar_exports };
|
|
20
|
+
export { ActionBarCopy as Copy, ActionBarEdit as Edit, ActionBarFeedbackNegative as FeedbackNegative, ActionBarFeedbackPositive as FeedbackPositive, ActionBarReload as Reload, ActionBarSpeak as Speak, ActionBarStopSpeaking as StopSpeaking, actionBar_exports };
|
|
17
21
|
|
|
18
22
|
//# sourceMappingURL=actionBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionBar.js","names":["ActionBarCopy","Copy","ActionBarCopyProps","CopyProps","ActionBarEdit","Edit","ActionBarEditProps","EditProps","ActionBarReload","Reload","ActionBarReloadProps","ReloadProps","ActionBarFeedbackPositive","FeedbackPositive","ActionBarFeedbackPositiveProps","FeedbackPositiveProps","ActionBarFeedbackNegative","FeedbackNegative","ActionBarFeedbackNegativeProps","FeedbackNegativeProps"],"sources":["../../src/primitives/actionBar.ts"],"sourcesContent":["export {\n ActionBarCopy as Copy,\n type ActionBarCopyProps as CopyProps,\n} from \"./actionBar/ActionBarCopy\";\nexport {\n ActionBarEdit as Edit,\n type ActionBarEditProps as EditProps,\n} from \"./actionBar/ActionBarEdit\";\nexport {\n ActionBarReload as Reload,\n type ActionBarReloadProps as ReloadProps,\n} from \"./actionBar/ActionBarReload\";\nexport {\n ActionBarFeedbackPositive as FeedbackPositive,\n type ActionBarFeedbackPositiveProps as FeedbackPositiveProps,\n} from \"./actionBar/ActionBarFeedbackPositive\";\nexport {\n ActionBarFeedbackNegative as FeedbackNegative,\n type ActionBarFeedbackNegativeProps as FeedbackNegativeProps,\n} from \"./actionBar/ActionBarFeedbackNegative\";\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"actionBar.js","names":["ActionBarCopy","Copy","ActionBarCopyProps","CopyProps","ActionBarEdit","Edit","ActionBarEditProps","EditProps","ActionBarReload","Reload","ActionBarReloadProps","ReloadProps","ActionBarSpeak","Speak","ActionBarSpeakProps","SpeakProps","ActionBarStopSpeaking","StopSpeaking","ActionBarStopSpeakingProps","StopSpeakingProps","ActionBarFeedbackPositive","FeedbackPositive","ActionBarFeedbackPositiveProps","FeedbackPositiveProps","ActionBarFeedbackNegative","FeedbackNegative","ActionBarFeedbackNegativeProps","FeedbackNegativeProps"],"sources":["../../src/primitives/actionBar.ts"],"sourcesContent":["export {\n ActionBarCopy as Copy,\n type ActionBarCopyProps as CopyProps,\n} from \"./actionBar/ActionBarCopy\";\nexport {\n ActionBarEdit as Edit,\n type ActionBarEditProps as EditProps,\n} from \"./actionBar/ActionBarEdit\";\nexport {\n ActionBarReload as Reload,\n type ActionBarReloadProps as ReloadProps,\n} from \"./actionBar/ActionBarReload\";\nexport {\n ActionBarSpeak as Speak,\n type ActionBarSpeakProps as SpeakProps,\n} from \"./actionBar/ActionBarSpeak\";\nexport {\n ActionBarStopSpeaking as StopSpeaking,\n type ActionBarStopSpeakingProps as StopSpeakingProps,\n} from \"./actionBar/ActionBarStopSpeaking\";\nexport {\n ActionBarFeedbackPositive as FeedbackPositive,\n type ActionBarFeedbackPositiveProps as FeedbackPositiveProps,\n} from \"./actionBar/ActionBarFeedbackPositive\";\nexport {\n ActionBarFeedbackNegative as FeedbackNegative,\n type ActionBarFeedbackNegativeProps as FeedbackNegativeProps,\n} from \"./actionBar/ActionBarFeedbackNegative\";\n"],"mappings":""}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { TextProps } from "react-native";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
//#region src/primitives/attachment/AttachmentName.d.ts
|
|
4
|
-
type AttachmentNameProps = TextProps;
|
|
5
|
-
declare const AttachmentName: FC<AttachmentNameProps>;
|
|
4
|
+
export type AttachmentNameProps = TextProps;
|
|
5
|
+
export declare const AttachmentName: FC<AttachmentNameProps>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { AttachmentName, AttachmentNameProps };
|
|
8
7
|
//# sourceMappingURL=AttachmentName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentName.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentName.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AttachmentName.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentName.tsx"],"mappings":";;;YAIY,sBAAsB;qBAErB,gBAAgB,GAAG"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PressableProps } from "react-native";
|
|
2
2
|
//#region src/primitives/attachment/AttachmentRemove.d.ts
|
|
3
|
-
type AttachmentRemoveProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
3
|
+
export type AttachmentRemoveProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
4
|
children: PressableProps["children"];
|
|
5
5
|
};
|
|
6
|
-
declare const AttachmentRemove: ({ children, ...pressableProps }: AttachmentRemoveProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const AttachmentRemove: ({ children, ...pressableProps }: AttachmentRemoveProps) => import("react").JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { AttachmentRemove, AttachmentRemoveProps };
|
|
9
8
|
//# sourceMappingURL=AttachmentRemove.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentRemove.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"AttachmentRemove.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"mappings":";;YAKY,wBAAwB,KAClC;EAGA,UAAU;;qBAGC,qBAAoB,aAAA,kBAG9B,0CAAqB,IAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ViewProps } from "react-native";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
//#region src/primitives/attachment/AttachmentRoot.d.ts
|
|
4
|
-
type AttachmentRootProps = ViewProps & {
|
|
4
|
+
export type AttachmentRootProps = ViewProps & {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
declare const AttachmentRoot: ({ children, ...viewProps }: AttachmentRootProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const AttachmentRoot: ({ children, ...viewProps }: AttachmentRootProps) => import("react").JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { AttachmentRoot, AttachmentRootProps };
|
|
10
9
|
//# sourceMappingURL=AttachmentRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentRoot.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AttachmentRoot.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"mappings":";;;YAGY,sBAAsB;EAChC,UAAU;;qBAGC,mBAAkB,aAAA,aAG5B,wCAAmB,IAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { TextProps } from "react-native";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
//#region src/primitives/attachment/AttachmentThumb.d.ts
|
|
4
|
-
type AttachmentThumbProps = TextProps;
|
|
5
|
-
declare const AttachmentThumb: FC<AttachmentThumbProps>;
|
|
4
|
+
export type AttachmentThumbProps = TextProps;
|
|
5
|
+
export declare const AttachmentThumb: FC<AttachmentThumbProps>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { AttachmentThumb, AttachmentThumbProps };
|
|
8
7
|
//# sourceMappingURL=AttachmentThumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentThumb.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AttachmentThumb.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"mappings":";;;YAIY,uBAAuB;qBAEtB,iBAAiB,GAAG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TextProps } from "react-native";
|
|
2
2
|
//#region src/primitives/branchPicker/BranchPickerCount.d.ts
|
|
3
|
-
type BranchPickerCountProps = TextProps;
|
|
4
|
-
declare const BranchPickerCount: (props: BranchPickerCountProps) => import("react").JSX.Element;
|
|
3
|
+
export type BranchPickerCountProps = TextProps;
|
|
4
|
+
export declare const BranchPickerCount: (props: BranchPickerCountProps) => import("react").JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { BranchPickerCount, BranchPickerCountProps };
|
|
7
6
|
//# sourceMappingURL=BranchPickerCount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerCount.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerCount.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"BranchPickerCount.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerCount.tsx"],"mappings":";;YAGY,yBAAyB;qBAExB,oBAAqB,OAAO,2CAAsB,IAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
1
|
+
import { PressableProps, PressableStateCallbackType } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
2
3
|
//#region src/primitives/branchPicker/BranchPickerNext.d.ts
|
|
3
|
-
type BranchPickerNextProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
|
-
children:
|
|
4
|
+
export type BranchPickerNextProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
5
|
+
children: ReactNode | ((state: PressableStateCallbackType & {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}) => ReactNode);
|
|
5
8
|
};
|
|
6
|
-
declare const BranchPickerNext: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerNextProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const BranchPickerNext: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerNextProps) => import("react").JSX.Element;
|
|
7
10
|
//#endregion
|
|
8
|
-
export { BranchPickerNext, BranchPickerNextProps };
|
|
9
11
|
//# sourceMappingURL=BranchPickerNext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerNext.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BranchPickerNext.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"mappings":";;;YAQY,wBAAwB,KAClC;EAGA,UACI,cAEE,OAAO;IAA+B;QACnC;;qBAGE,qBAAoB,UAAA,UAAA,iBAAA,kBAI9B,0CAAqB,IAAA"}
|
|
@@ -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,6 @@
|
|
|
1
1
|
import { TextProps } from "react-native";
|
|
2
2
|
//#region src/primitives/branchPicker/BranchPickerNumber.d.ts
|
|
3
|
-
type BranchPickerNumberProps = TextProps;
|
|
4
|
-
declare const BranchPickerNumber: (props: BranchPickerNumberProps) => import("react").JSX.Element;
|
|
3
|
+
export type BranchPickerNumberProps = TextProps;
|
|
4
|
+
export declare const BranchPickerNumber: (props: BranchPickerNumberProps) => import("react").JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { BranchPickerNumber, BranchPickerNumberProps };
|
|
7
6
|
//# sourceMappingURL=BranchPickerNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerNumber.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"BranchPickerNumber.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"mappings":";;YAGY,0BAA0B;qBAEzB,qBAAsB,OAAO,4CAAuB,IAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
1
|
+
import { PressableProps, PressableStateCallbackType } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
2
3
|
//#region src/primitives/branchPicker/BranchPickerPrevious.d.ts
|
|
3
|
-
type BranchPickerPreviousProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
|
-
children:
|
|
4
|
+
export type BranchPickerPreviousProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
5
|
+
children: ReactNode | ((state: PressableStateCallbackType & {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}) => ReactNode);
|
|
5
8
|
};
|
|
6
|
-
declare const BranchPickerPrevious: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerPreviousProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const BranchPickerPrevious: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerPreviousProps) => import("react").JSX.Element;
|
|
7
10
|
//#endregion
|
|
8
|
-
export { BranchPickerPrevious, BranchPickerPreviousProps };
|
|
9
11
|
//# sourceMappingURL=BranchPickerPrevious.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerPrevious.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BranchPickerPrevious.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"mappings":";;;YAQY,4BAA4B,KACtC;EAGA,UACI,cAEE,OAAO;IAA+B;QACnC;;qBAGE,yBAAwB,UAAA,UAAA,iBAAA,kBAIlC,8CAAyB,IAAA"}
|
|
@@ -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,9 +1,8 @@
|
|
|
1
1
|
import { PressableProps } from "react-native";
|
|
2
2
|
//#region src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts
|
|
3
|
-
type ChainOfThoughtAccordionTriggerProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
3
|
+
export type ChainOfThoughtAccordionTriggerProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
4
|
children: PressableProps["children"];
|
|
5
5
|
};
|
|
6
|
-
declare const ChainOfThoughtAccordionTrigger: ({ children, ...pressableProps }: ChainOfThoughtAccordionTriggerProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const ChainOfThoughtAccordionTrigger: ({ children, ...pressableProps }: ChainOfThoughtAccordionTriggerProps) => import("react").JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { ChainOfThoughtAccordionTrigger, ChainOfThoughtAccordionTriggerProps };
|
|
9
8
|
//# sourceMappingURL=ChainOfThoughtAccordionTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"mappings":";;YAIY,sCAAsC,KAChD;EAGA,UAAU;;qBAGC,mCAAkC,aAAA,kBAG5C,wDAAmC,IAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ViewProps } from "react-native";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
//#region src/primitives/chainOfThought/ChainOfThoughtRoot.d.ts
|
|
4
|
-
type ChainOfThoughtRootProps = ViewProps & {
|
|
4
|
+
export type ChainOfThoughtRootProps = ViewProps & {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
declare const ChainOfThoughtRoot: ({ children, ...viewProps }: ChainOfThoughtRootProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const ChainOfThoughtRoot: ({ children, ...viewProps }: ChainOfThoughtRootProps) => import("react").JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { ChainOfThoughtRoot, ChainOfThoughtRootProps };
|
|
10
9
|
//# sourceMappingURL=ChainOfThoughtRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainOfThoughtRoot.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ChainOfThoughtRoot.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"mappings":";;;YAGY,0BAA0B;EACpC,UAAU;;qBAGC,uBAAsB,aAAA,aAGhC,4CAAuB,IAAA"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { PressableProps } from "react-native";
|
|
2
2
|
//#region src/primitives/composer/ComposerAddAttachment.d.ts
|
|
3
|
-
type ComposerAddAttachmentProps = Omit<PressableProps, "
|
|
3
|
+
export type ComposerAddAttachmentProps = Omit<PressableProps, "children"> & {
|
|
4
4
|
children: PressableProps["children"];
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
|
-
* A button
|
|
7
|
+
* A button for adding attachments. It is disabled while the composer cannot accept attachments.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.
|
|
11
|
-
* You must handle the file selection in your own component using the returned `addAttachment` callback.
|
|
9
|
+
* 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`.
|
|
12
10
|
*/
|
|
13
|
-
declare const ComposerAddAttachment: ({ children, disabled: disabledProp, ...pressableProps }: ComposerAddAttachmentProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const ComposerAddAttachment: ({ children, disabled: disabledProp, ...pressableProps }: ComposerAddAttachmentProps) => import("react").JSX.Element;
|
|
14
12
|
//#endregion
|
|
15
|
-
export { ComposerAddAttachment, ComposerAddAttachmentProps };
|
|
16
13
|
//# sourceMappingURL=ComposerAddAttachment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerAddAttachment.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ComposerAddAttachment.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"mappings":";;YAGY,6BAA6B,KAAK;EAC5C,UAAU;;;;;;;qBAQC,0BAAyB,UAAA,UAAA,iBAAA,kBAInC,+CAA0B,IAAA"}
|
|
@@ -4,11 +4,9 @@ import { Pressable } from "react-native";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/primitives/composer/ComposerAddAttachment.tsx
|
|
6
6
|
/**
|
|
7
|
-
* A button
|
|
7
|
+
* A button for adding attachments. It is disabled while the composer cannot accept attachments.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.
|
|
11
|
-
* You must handle the file selection in your own component using the returned `addAttachment` callback.
|
|
9
|
+
* 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`.
|
|
12
10
|
*/
|
|
13
11
|
const ComposerAddAttachment = (t0) => {
|
|
14
12
|
const $ = c(8);
|