@assistant-ui/react-native 0.1.15 → 0.1.17
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/README.md +35 -12
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/context/AssistantContext.d.ts +2 -2
- package/dist/context/AssistantContext.js +2 -2
- package/dist/context/providers/AttachmentByIndexProvider.d.ts +2 -2
- package/dist/context/providers/AttachmentByIndexProvider.js +2 -2
- package/dist/context/providers/RuntimeAdapterProvider.d.ts +2 -2
- package/dist/context/providers/RuntimeAdapterProvider.js +2 -2
- package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts +2 -2
- package/dist/context/providers/ThreadListItemRuntimeProvider.js +2 -2
- package/dist/index.d.ts +20 -38
- package/dist/index.js +19 -39
- package/dist/internal.d.ts +3 -4
- package/dist/internal.js +2 -3
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +18 -8
- package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.js +17 -8
- package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.d.ts +13 -5
- package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.js +14 -5
- package/dist/primitives/actionBar/ActionBarEdit.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +14 -7
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +13 -5
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +14 -7
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +13 -5
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.d.ts +13 -5
- package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.js +14 -5
- package/dist/primitives/actionBar/ActionBarReload.js.map +1 -1
- package/dist/primitives/actionBar.d.ts +12 -5
- package/dist/primitives/actionBar.d.ts.map +1 -1
- package/dist/primitives/actionBar.js +17 -5
- package/dist/primitives/actionBar.js.map +1 -1
- package/dist/primitives/attachment/AttachmentName.d.ts +8 -4
- package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentName.js +12 -5
- package/dist/primitives/attachment/AttachmentName.js.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.d.ts +12 -5
- package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.js +15 -8
- package/dist/primitives/attachment/AttachmentRemove.js.map +1 -1
- package/dist/primitives/attachment/AttachmentRoot.d.ts +12 -5
- package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRoot.js +10 -3
- package/dist/primitives/attachment/AttachmentRoot.js.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.d.ts +8 -4
- package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.js +15 -8
- package/dist/primitives/attachment/AttachmentThumb.js.map +1 -1
- package/dist/primitives/attachment.d.ts +11 -4
- package/dist/primitives/attachment.d.ts.map +1 -1
- package/dist/primitives/attachment.js +15 -4
- package/dist/primitives/attachment.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts +7 -3
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.js +12 -5
- package/dist/primitives/branchPicker/BranchPickerCount.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +13 -5
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.js +14 -5
- package/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +7 -3
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.js +12 -5
- package/dist/primitives/branchPicker/BranchPickerNumber.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +13 -5
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.js +14 -5
- package/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -1
- package/dist/primitives/branchPicker.d.ts +11 -4
- package/dist/primitives/branchPicker.d.ts.map +1 -1
- package/dist/primitives/branchPicker.js +15 -4
- package/dist/primitives/branchPicker.js.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +12 -5
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +17 -10
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +12 -5
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js +10 -3
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js.map +1 -1
- package/dist/primitives/chainOfThought.d.ts +10 -3
- package/dist/primitives/chainOfThought.d.ts.map +1 -1
- package/dist/primitives/chainOfThought.js +13 -3
- package/dist/primitives/chainOfThought.js.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.d.ts +13 -5
- package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.js +19 -11
- package/dist/primitives/composer/ComposerAddAttachment.js.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +18 -14
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.js +7 -3
- package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
- package/dist/primitives/composer/ComposerCancel.d.ts +13 -5
- package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerCancel.js +14 -5
- package/dist/primitives/composer/ComposerCancel.js.map +1 -1
- package/dist/primitives/composer/ComposerIf.d.ts +2 -2
- package/dist/primitives/composer/ComposerIf.js +2 -2
- package/dist/primitives/composer/ComposerInput.d.ts +20 -10
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.js +46 -40
- package/dist/primitives/composer/ComposerInput.js.map +1 -1
- package/dist/primitives/composer/ComposerRoot.d.ts +12 -5
- package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerRoot.js +10 -3
- package/dist/primitives/composer/ComposerRoot.js.map +1 -1
- package/dist/primitives/composer/ComposerSend.d.ts +13 -5
- package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerSend.js +14 -5
- package/dist/primitives/composer/ComposerSend.js.map +1 -1
- package/dist/primitives/composer.d.ts +14 -7
- package/dist/primitives/composer.d.ts.map +1 -1
- package/dist/primitives/composer.js +22 -7
- package/dist/primitives/composer.js.map +1 -1
- package/dist/primitives/error/ErrorMessage.d.ts +14 -7
- package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
- package/dist/primitives/error/ErrorMessage.js +13 -7
- package/dist/primitives/error/ErrorMessage.js.map +1 -1
- package/dist/primitives/error/ErrorRoot.d.ts +14 -7
- package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
- package/dist/primitives/error/ErrorRoot.js +12 -7
- package/dist/primitives/error/ErrorRoot.js.map +1 -1
- package/dist/primitives/error/index.d.ts +9 -2
- package/dist/primitives/error/index.d.ts.map +1 -1
- package/dist/primitives/error/index.js +11 -2
- package/dist/primitives/error/index.js.map +1 -1
- package/dist/primitives/message/MessageAttachments.d.ts +13 -9
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.js +7 -3
- package/dist/primitives/message/MessageAttachments.js.map +1 -1
- package/dist/primitives/message/MessageContent.d.ts +58 -47
- package/dist/primitives/message/MessageContent.d.ts.map +1 -1
- package/dist/primitives/message/MessageContent.js +84 -63
- package/dist/primitives/message/MessageContent.js.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +18 -8
- package/dist/primitives/message/MessageIf.d.ts.map +1 -1
- package/dist/primitives/message/MessageIf.js +20 -21
- package/dist/primitives/message/MessageIf.js.map +1 -1
- package/dist/primitives/message/MessageParts.d.ts +9 -6
- package/dist/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/primitives/message/MessageParts.js +32 -35
- package/dist/primitives/message/MessageParts.js.map +1 -1
- package/dist/primitives/message/MessageRoot.d.ts +12 -5
- package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
- package/dist/primitives/message/MessageRoot.js +10 -3
- package/dist/primitives/message/MessageRoot.js.map +1 -1
- package/dist/primitives/message.d.ts +13 -6
- package/dist/primitives/message.d.ts.map +1 -1
- package/dist/primitives/message.js +21 -6
- package/dist/primitives/message.js.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.d.ts +12 -5
- package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.js +12 -5
- package/dist/primitives/suggestion/SuggestionDescription.js.map +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.d.ts +12 -5
- package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.js +12 -5
- package/dist/primitives/suggestion/SuggestionTitle.js.map +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts +26 -16
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.js +18 -10
- package/dist/primitives/suggestion/SuggestionTrigger.js.map +1 -1
- package/dist/primitives/suggestion.d.ts +10 -3
- package/dist/primitives/suggestion.d.ts.map +1 -1
- package/dist/primitives/suggestion.js +13 -3
- package/dist/primitives/suggestion.js.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.d.ts +10 -4
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.js +8 -6
- package/dist/primitives/thread/ThreadEmpty.js.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +14 -6
- package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadIf.js +14 -13
- package/dist/primitives/thread/ThreadIf.js.map +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +40 -23
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.js +53 -55
- package/dist/primitives/thread/ThreadMessages.js.map +1 -1
- package/dist/primitives/thread/ThreadRoot.d.ts +12 -5
- package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadRoot.js +10 -3
- package/dist/primitives/thread/ThreadRoot.js.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.d.ts +28 -18
- package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.js +18 -9
- package/dist/primitives/thread/ThreadSuggestion.js.map +1 -1
- package/dist/primitives/thread.d.ts +13 -7
- package/dist/primitives/thread.d.ts.map +1 -1
- package/dist/primitives/thread.js +21 -7
- package/dist/primitives/thread.js.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.d.ts +15 -8
- package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.js +19 -10
- package/dist/primitives/threadList/ThreadListItems.js.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.d.ts +12 -5
- package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.js +13 -5
- package/dist/primitives/threadList/ThreadListNew.js.map +1 -1
- package/dist/primitives/threadList/ThreadListRoot.d.ts +12 -5
- package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListRoot.js +10 -3
- package/dist/primitives/threadList/ThreadListRoot.js.map +1 -1
- package/dist/primitives/threadList.d.ts +10 -3
- package/dist/primitives/threadList.d.ts.map +1 -1
- package/dist/primitives/threadList.js +13 -3
- package/dist/primitives/threadList.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +12 -5
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.js +13 -5
- package/dist/primitives/threadListItem/ThreadListItemArchive.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +12 -5
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemDelete.js +13 -5
- package/dist/primitives/threadListItem/ThreadListItemDelete.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +12 -5
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.js +10 -3
- package/dist/primitives/threadListItem/ThreadListItemRoot.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +12 -5
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTrigger.js +13 -5
- package/dist/primitives/threadListItem/ThreadListItemTrigger.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +12 -5
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.js +13 -5
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.js.map +1 -1
- package/dist/primitives/threadListItem.d.ts +13 -6
- package/dist/primitives/threadListItem.d.ts.map +1 -1
- package/dist/primitives/threadListItem.js +19 -6
- package/dist/primitives/threadListItem.js.map +1 -1
- package/dist/runtimes/RemoteThreadListHookInstanceManager.d.ts +2 -2
- package/dist/runtimes/RemoteThreadListHookInstanceManager.js +2 -2
- package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts +2 -2
- package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.js +2 -2
- package/dist/runtimes/useLocalRuntime.d.ts +2 -2
- package/dist/runtimes/useLocalRuntime.js +2 -2
- package/dist/runtimes/useRemoteThreadListRuntime.d.ts +2 -2
- package/dist/runtimes/useRemoteThreadListRuntime.js +2 -2
- package/package.json +9 -9
- package/src/index.ts +1 -0
- package/src/primitives/thread/ThreadMessages.tsx +63 -9
- package/dist/context/AssistantContext.d.ts.map +0 -1
- package/dist/context/AssistantContext.js.map +0 -1
- package/dist/context/providers/AttachmentByIndexProvider.d.ts.map +0 -1
- package/dist/context/providers/AttachmentByIndexProvider.js.map +0 -1
- package/dist/context/providers/RuntimeAdapterProvider.d.ts.map +0 -1
- package/dist/context/providers/RuntimeAdapterProvider.js.map +0 -1
- package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts.map +0 -1
- package/dist/context/providers/ThreadListItemRuntimeProvider.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/internal.d.ts.map +0 -1
- package/dist/internal.js.map +0 -1
- package/dist/primitives/composer/ComposerIf.d.ts.map +0 -1
- package/dist/primitives/composer/ComposerIf.js.map +0 -1
- package/dist/runtimes/RemoteThreadListHookInstanceManager.d.ts.map +0 -1
- package/dist/runtimes/RemoteThreadListHookInstanceManager.js.map +0 -1
- package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts.map +0 -1
- package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.js.map +0 -1
- package/dist/runtimes/useLocalRuntime.d.ts.map +0 -1
- package/dist/runtimes/useLocalRuntime.js.map +0 -1
- package/dist/runtimes/useRemoteThreadListRuntime.d.ts.map +0 -1
- package/dist/runtimes/useRemoteThreadListRuntime.js.map +0 -1
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Pressable } from "react-native";
|
|
3
1
|
import { useActionBarReload } from "@assistant-ui/core/react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Pressable } from "react-native";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/actionBar/ActionBarReload.tsx
|
|
5
|
+
const ActionBarReload = ({ children, disabled: disabledProp, ...pressableProps }) => {
|
|
6
|
+
const { reload, disabled } = useActionBarReload();
|
|
7
|
+
return /* @__PURE__ */ jsx(Pressable, {
|
|
8
|
+
onPress: reload,
|
|
9
|
+
disabled: disabledProp ?? disabled,
|
|
10
|
+
...pressableProps,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
7
13
|
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ActionBarReload };
|
|
16
|
+
|
|
8
17
|
//# sourceMappingURL=ActionBarReload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarReload.js","
|
|
1
|
+
{"version":3,"file":"ActionBarReload.js","names":[],"sources":["../../../src/primitives/actionBar/ActionBarReload.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarReload } from \"@assistant-ui/core/react\";\n\nexport type ActionBarReloadProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const ActionBarReload = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarReloadProps) => {\n const { reload, disabled } = useActionBarReload();\n\n return (\n <Pressable\n onPress={reload}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAQA,MAAa,mBAAmB,EAC9B,UACA,UAAU,cACV,GAAG,qBACuB;CAC1B,MAAM,EAAE,QAAQ,aAAa,mBAAmB;CAEhD,OACE,oBAAC,WAAD;EACE,SAAS;EACT,UAAU,gBAAgB;EAC1B,GAAI;EAEH;CACQ,CAAA;AAEf"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ActionBarCopy, ActionBarCopyProps } from "./actionBar/ActionBarCopy.js";
|
|
2
|
+
import { ActionBarEdit, ActionBarEditProps } from "./actionBar/ActionBarEdit.js";
|
|
3
|
+
import { ActionBarReload, ActionBarReloadProps } from "./actionBar/ActionBarReload.js";
|
|
4
|
+
import { ActionBarFeedbackPositive, ActionBarFeedbackPositiveProps } from "./actionBar/ActionBarFeedbackPositive.js";
|
|
5
|
+
import { ActionBarFeedbackNegative, ActionBarFeedbackNegativeProps } from "./actionBar/ActionBarFeedbackNegative.js";
|
|
6
|
+
|
|
7
|
+
//#region src/primitives/actionBar.d.ts
|
|
8
|
+
declare namespace actionBar_d_exports {
|
|
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 };
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
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, actionBar_d_exports };
|
|
6
13
|
//# sourceMappingURL=actionBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionBar.d.ts","
|
|
1
|
+
{"version":3,"file":"actionBar.d.ts","names":[],"sources":["../../src/primitives/actionBar.ts"],"mappings":""}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { ActionBarCopy } from "./actionBar/ActionBarCopy.js";
|
|
3
|
+
import { ActionBarEdit } from "./actionBar/ActionBarEdit.js";
|
|
4
|
+
import { ActionBarReload } from "./actionBar/ActionBarReload.js";
|
|
5
|
+
import { ActionBarFeedbackPositive } from "./actionBar/ActionBarFeedbackPositive.js";
|
|
6
|
+
import { ActionBarFeedbackNegative } from "./actionBar/ActionBarFeedbackNegative.js";
|
|
7
|
+
//#region src/primitives/actionBar.ts
|
|
8
|
+
var actionBar_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
+
Copy: () => ActionBarCopy,
|
|
10
|
+
Edit: () => ActionBarEdit,
|
|
11
|
+
FeedbackNegative: () => ActionBarFeedbackNegative,
|
|
12
|
+
FeedbackPositive: () => ActionBarFeedbackPositive,
|
|
13
|
+
Reload: () => ActionBarReload
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ActionBarCopy as Copy, ActionBarEdit as Edit, ActionBarFeedbackNegative as FeedbackNegative, ActionBarFeedbackPositive as FeedbackPositive, ActionBarReload as Reload, actionBar_exports };
|
|
17
|
+
|
|
6
18
|
//# sourceMappingURL=actionBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionBar.js","
|
|
1
|
+
{"version":3,"file":"actionBar.js","names":[],"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,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TextProps } from "react-native";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/primitives/attachment/AttachmentName.d.ts
|
|
5
|
+
type AttachmentNameProps = TextProps;
|
|
6
|
+
declare const AttachmentName: FC<AttachmentNameProps>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { AttachmentName, AttachmentNameProps };
|
|
5
9
|
//# sourceMappingURL=AttachmentName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentName.d.ts","
|
|
1
|
+
{"version":3,"file":"AttachmentName.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentName.tsx"],"mappings":";;;;KAIY,mBAAA,GAAsB,SAAS;AAAA,cAE9B,cAAA,EAAgB,EAAE,CAAC,mBAAA"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from "react-native";
|
|
3
1
|
import { useAuiState } from "@assistant-ui/store";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Text } from "react-native";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/attachment/AttachmentName.tsx
|
|
5
|
+
const AttachmentName = (props) => {
|
|
6
|
+
const name = useAuiState((s) => s.attachment.name);
|
|
7
|
+
return /* @__PURE__ */ jsx(Text, {
|
|
8
|
+
...props,
|
|
9
|
+
children: name
|
|
10
|
+
});
|
|
7
11
|
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { AttachmentName };
|
|
14
|
+
|
|
8
15
|
//# sourceMappingURL=AttachmentName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentName.js","
|
|
1
|
+
{"version":3,"file":"AttachmentName.js","names":[],"sources":["../../../src/primitives/attachment/AttachmentName.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport { Text, type TextProps } from \"react-native\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport type AttachmentNameProps = TextProps;\n\nexport const AttachmentName: FC<AttachmentNameProps> = (props) => {\n const name = useAuiState((s) => s.attachment.name);\n return <Text {...props}>{name}</Text>;\n};\n"],"mappings":";;;;AAMA,MAAa,kBAA2C,UAAU;CAChE,MAAM,OAAO,aAAa,MAAM,EAAE,WAAW,IAAI;CACjD,OAAO,oBAAC,MAAD;EAAM,GAAI;YAAQ;CAAW,CAAA;AACtC"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PressableProps } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/primitives/attachment/AttachmentRemove.d.ts
|
|
5
|
+
type AttachmentRemoveProps = Omit<PressableProps, "onPress"> & {
|
|
6
|
+
children: ReactNode;
|
|
5
7
|
};
|
|
6
|
-
|
|
8
|
+
declare const AttachmentRemove: ({
|
|
9
|
+
children,
|
|
10
|
+
...pressableProps
|
|
11
|
+
}: AttachmentRemoveProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { AttachmentRemove, AttachmentRemoveProps };
|
|
7
14
|
//# sourceMappingURL=AttachmentRemove.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentRemove.d.ts","
|
|
1
|
+
{"version":3,"file":"AttachmentRemove.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"mappings":";;;;KAKY,qBAAA,GAAwB,IAAA,CAAK,cAAA;EACvC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,gBAAA;EAAoB,QAAA;EAAA,GAAA;AAAA,GAG9B,qBAAqB,iCAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useAui } from "@assistant-ui/store";
|
|
2
2
|
import { Pressable } from "react-native";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { useCallback } from "react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
//#region src/primitives/attachment/AttachmentRemove.tsx
|
|
6
|
+
const AttachmentRemove = ({ children, ...pressableProps }) => {
|
|
7
|
+
const aui = useAui();
|
|
8
|
+
return /* @__PURE__ */ jsx(Pressable, {
|
|
9
|
+
onPress: useCallback(() => {
|
|
10
|
+
aui.attachment().remove();
|
|
11
|
+
}, [aui]),
|
|
12
|
+
...pressableProps,
|
|
13
|
+
children
|
|
14
|
+
});
|
|
11
15
|
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { AttachmentRemove };
|
|
18
|
+
|
|
12
19
|
//# sourceMappingURL=AttachmentRemove.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentRemove.js","
|
|
1
|
+
{"version":3,"file":"AttachmentRemove.js","names":[],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useCallback } from \"react\";\nimport { useAui } from \"@assistant-ui/store\";\n\nexport type AttachmentRemoveProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const AttachmentRemove = ({\n children,\n ...pressableProps\n}: AttachmentRemoveProps) => {\n const aui = useAui();\n\n const handleRemove = useCallback(() => {\n aui.attachment().remove();\n }, [aui]);\n\n return (\n <Pressable onPress={handleRemove} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AASA,MAAa,oBAAoB,EAC/B,UACA,GAAG,qBACwB;CAC3B,MAAM,MAAM,OAAO;CAMnB,OACE,oBAAC,WAAD;EAAW,SALQ,kBAAkB;GACrC,IAAI,WAAW,EAAE,OAAO;EAC1B,GAAG,CAAC,GAAG,CAG0B;EAAG,GAAI;EACnC;CACQ,CAAA;AAEf"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ViewProps } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/primitives/attachment/AttachmentRoot.d.ts
|
|
5
|
+
type AttachmentRootProps = ViewProps & {
|
|
6
|
+
children: ReactNode;
|
|
5
7
|
};
|
|
6
|
-
|
|
8
|
+
declare const AttachmentRoot: ({
|
|
9
|
+
children,
|
|
10
|
+
...viewProps
|
|
11
|
+
}: AttachmentRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { AttachmentRoot, AttachmentRootProps };
|
|
7
14
|
//# sourceMappingURL=AttachmentRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentRoot.d.ts","
|
|
1
|
+
{"version":3,"file":"AttachmentRoot.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"mappings":";;;;KAGY,mBAAA,GAAsB,SAAA;EAChC,QAAA,EAAU,SAAS;AAAA;AAAA,cAGR,cAAA;EAAkB,QAAA;EAAA,GAAA;AAAA,GAG5B,mBAAmB,iCAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
import { View } from "react-native";
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/primitives/attachment/AttachmentRoot.tsx
|
|
4
|
+
const AttachmentRoot = ({ children, ...viewProps }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(View, {
|
|
6
|
+
...viewProps,
|
|
7
|
+
children
|
|
8
|
+
});
|
|
5
9
|
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AttachmentRoot };
|
|
12
|
+
|
|
6
13
|
//# sourceMappingURL=AttachmentRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentRoot.js","
|
|
1
|
+
{"version":3,"file":"AttachmentRoot.js","names":[],"sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { View, type ViewProps } from \"react-native\";\n\nexport type AttachmentRootProps = ViewProps & {\n children: ReactNode;\n};\n\nexport const AttachmentRoot = ({\n children,\n ...viewProps\n}: AttachmentRootProps) => {\n return <View {...viewProps}>{children}</View>;\n};\n"],"mappings":";;;AAOA,MAAa,kBAAkB,EAC7B,UACA,GAAG,gBACsB;CACzB,OAAO,oBAAC,MAAD;EAAM,GAAI;EAAY;CAAe,CAAA;AAC9C"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TextProps } from "react-native";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/primitives/attachment/AttachmentThumb.d.ts
|
|
5
|
+
type AttachmentThumbProps = TextProps;
|
|
6
|
+
declare const AttachmentThumb: FC<AttachmentThumbProps>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { AttachmentThumb, AttachmentThumbProps };
|
|
5
9
|
//# sourceMappingURL=AttachmentThumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentThumb.d.ts","
|
|
1
|
+
{"version":3,"file":"AttachmentThumb.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"mappings":";;;;KAIY,oBAAA,GAAuB,SAAS;AAAA,cAE/B,eAAA,EAAiB,EAAE,CAAC,oBAAA"}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from "react-native";
|
|
3
1
|
import { useAuiState } from "@assistant-ui/store";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { Text } from "react-native";
|
|
3
|
+
import { jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/attachment/AttachmentThumb.tsx
|
|
5
|
+
const AttachmentThumb = (props) => {
|
|
6
|
+
const ext = useAuiState((s) => {
|
|
7
|
+
const parts = s.attachment.name.split(".");
|
|
8
|
+
return parts.length > 1 ? parts.pop() : "";
|
|
9
|
+
});
|
|
10
|
+
return /* @__PURE__ */ jsxs(Text, {
|
|
11
|
+
...props,
|
|
12
|
+
children: [".", ext]
|
|
13
|
+
});
|
|
10
14
|
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AttachmentThumb };
|
|
17
|
+
|
|
11
18
|
//# sourceMappingURL=AttachmentThumb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentThumb.js","
|
|
1
|
+
{"version":3,"file":"AttachmentThumb.js","names":[],"sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport { Text, type TextProps } from \"react-native\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport type AttachmentThumbProps = TextProps;\n\nexport const AttachmentThumb: FC<AttachmentThumbProps> = (props) => {\n const ext = useAuiState((s) => {\n const parts = s.attachment.name.split(\".\");\n return parts.length > 1 ? parts.pop()! : \"\";\n });\n return <Text {...props}>.{ext}</Text>;\n};\n"],"mappings":";;;;AAMA,MAAa,mBAA6C,UAAU;CAClE,MAAM,MAAM,aAAa,MAAM;EAC7B,MAAM,QAAQ,EAAE,WAAW,KAAK,MAAM,GAAG;EACzC,OAAO,MAAM,SAAS,IAAI,MAAM,IAAI,IAAK;CAC3C,CAAC;CACD,OAAO,qBAAC,MAAD;EAAM,GAAI;YAAV,CAAiB,KAAE,GAAU;;AACtC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { AttachmentRoot, AttachmentRootProps } from "./attachment/AttachmentRoot.js";
|
|
2
|
+
import { AttachmentName, AttachmentNameProps } from "./attachment/AttachmentName.js";
|
|
3
|
+
import { AttachmentThumb, AttachmentThumbProps } from "./attachment/AttachmentThumb.js";
|
|
4
|
+
import { AttachmentRemove, AttachmentRemoveProps } from "./attachment/AttachmentRemove.js";
|
|
5
|
+
|
|
6
|
+
//#region src/primitives/attachment.d.ts
|
|
7
|
+
declare namespace attachment_d_exports {
|
|
8
|
+
export { AttachmentName as Name, AttachmentNameProps as NameProps, AttachmentRemove as Remove, AttachmentRemoveProps as RemoveProps, AttachmentRoot as Root, AttachmentRootProps as RootProps, AttachmentThumb as Thumb, AttachmentThumbProps as ThumbProps };
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AttachmentName as Name, type AttachmentNameProps as NameProps, AttachmentRemove as Remove, type AttachmentRemoveProps as RemoveProps, AttachmentRoot as Root, type AttachmentRootProps as RootProps, AttachmentThumb as Thumb, type AttachmentThumbProps as ThumbProps, attachment_d_exports };
|
|
5
12
|
//# sourceMappingURL=attachment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.d.ts","
|
|
1
|
+
{"version":3,"file":"attachment.d.ts","names":[],"sources":["../../src/primitives/attachment.ts"],"mappings":""}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { AttachmentRoot } from "./attachment/AttachmentRoot.js";
|
|
3
|
+
import { AttachmentName } from "./attachment/AttachmentName.js";
|
|
4
|
+
import { AttachmentThumb } from "./attachment/AttachmentThumb.js";
|
|
5
|
+
import { AttachmentRemove } from "./attachment/AttachmentRemove.js";
|
|
6
|
+
//#region src/primitives/attachment.ts
|
|
7
|
+
var attachment_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
Name: () => AttachmentName,
|
|
9
|
+
Remove: () => AttachmentRemove,
|
|
10
|
+
Root: () => AttachmentRoot,
|
|
11
|
+
Thumb: () => AttachmentThumb
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AttachmentName as Name, AttachmentRemove as Remove, AttachmentRoot as Root, AttachmentThumb as Thumb, attachment_exports };
|
|
15
|
+
|
|
5
16
|
//# sourceMappingURL=attachment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.js","
|
|
1
|
+
{"version":3,"file":"attachment.js","names":[],"sources":["../../src/primitives/attachment.ts"],"sourcesContent":["export {\n AttachmentRoot as Root,\n type AttachmentRootProps as RootProps,\n} from \"./attachment/AttachmentRoot\";\nexport {\n AttachmentName as Name,\n type AttachmentNameProps as NameProps,\n} from \"./attachment/AttachmentName\";\nexport {\n AttachmentThumb as Thumb,\n type AttachmentThumbProps as ThumbProps,\n} from \"./attachment/AttachmentThumb\";\nexport {\n AttachmentRemove as Remove,\n type AttachmentRemoveProps as RemoveProps,\n} from \"./attachment/AttachmentRemove\";\n"],"mappings":""}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { TextProps } from "react-native";
|
|
2
|
+
|
|
3
|
+
//#region src/primitives/branchPicker/BranchPickerCount.d.ts
|
|
4
|
+
type BranchPickerCountProps = TextProps;
|
|
5
|
+
declare const BranchPickerCount: (props: BranchPickerCountProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { BranchPickerCount, BranchPickerCountProps };
|
|
4
8
|
//# sourceMappingURL=BranchPickerCount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerCount.d.ts","
|
|
1
|
+
{"version":3,"file":"BranchPickerCount.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerCount.tsx"],"mappings":";;;KAGY,sBAAA,GAAyB,SAAS;AAAA,cAEjC,iBAAA,GAAqB,KAAA,EAAO,sBAAsB,iCAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from "react-native";
|
|
3
1
|
import { useAuiState } from "@assistant-ui/store";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Text } from "react-native";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/branchPicker/BranchPickerCount.tsx
|
|
5
|
+
const BranchPickerCount = (props) => {
|
|
6
|
+
const branchCount = useAuiState((s) => s.message.branchCount);
|
|
7
|
+
return /* @__PURE__ */ jsx(Text, {
|
|
8
|
+
...props,
|
|
9
|
+
children: branchCount
|
|
10
|
+
});
|
|
7
11
|
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BranchPickerCount };
|
|
14
|
+
|
|
8
15
|
//# sourceMappingURL=BranchPickerCount.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerCount.js","
|
|
1
|
+
{"version":3,"file":"BranchPickerCount.js","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerCount.tsx"],"sourcesContent":["import { Text, type TextProps } from \"react-native\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport type BranchPickerCountProps = TextProps;\n\nexport const BranchPickerCount = (props: BranchPickerCountProps) => {\n const branchCount = useAuiState((s) => s.message.branchCount);\n return <Text {...props}>{branchCount}</Text>;\n};\n"],"mappings":";;;;AAKA,MAAa,qBAAqB,UAAkC;CAClE,MAAM,cAAc,aAAa,MAAM,EAAE,QAAQ,WAAW;CAC5D,OAAO,oBAAC,MAAD;EAAM,GAAI;YAAQ;CAAkB,CAAA;AAC7C"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PressableProps } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/primitives/branchPicker/BranchPickerNext.d.ts
|
|
5
|
+
type BranchPickerNextProps = Omit<PressableProps, "onPress"> & {
|
|
6
|
+
children: ReactNode;
|
|
5
7
|
};
|
|
6
|
-
|
|
8
|
+
declare const BranchPickerNext: ({
|
|
9
|
+
children,
|
|
10
|
+
disabled: disabledProp,
|
|
11
|
+
...pressableProps
|
|
12
|
+
}: BranchPickerNextProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { BranchPickerNext, BranchPickerNextProps };
|
|
7
15
|
//# sourceMappingURL=BranchPickerNext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerNext.d.ts","
|
|
1
|
+
{"version":3,"file":"BranchPickerNext.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"mappings":";;;;KAIY,qBAAA,GAAwB,IAAA,CAAK,cAAA;EACvC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,gBAAA;EAAoB,QAAA;EAAA,QAAA,EAAA,YAAA;EAAA,GAAA;AAAA,GAI9B,qBAAA,iCAAqB,GAAA,CAAA,OAAA"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Pressable } from "react-native";
|
|
3
1
|
import { useBranchPickerNext } from "@assistant-ui/core/react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Pressable } from "react-native";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/branchPicker/BranchPickerNext.tsx
|
|
5
|
+
const BranchPickerNext = ({ children, disabled: disabledProp, ...pressableProps }) => {
|
|
6
|
+
const { next, disabled } = useBranchPickerNext();
|
|
7
|
+
return /* @__PURE__ */ jsx(Pressable, {
|
|
8
|
+
onPress: next,
|
|
9
|
+
disabled: disabledProp ?? disabled,
|
|
10
|
+
...pressableProps,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
7
13
|
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { BranchPickerNext };
|
|
16
|
+
|
|
8
17
|
//# sourceMappingURL=BranchPickerNext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerNext.js","
|
|
1
|
+
{"version":3,"file":"BranchPickerNext.js","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerNext } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerNextProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const BranchPickerNext = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerNextProps) => {\n const { next, disabled } = useBranchPickerNext();\n\n return (\n <Pressable\n onPress={next}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAQA,MAAa,oBAAoB,EAC/B,UACA,UAAU,cACV,GAAG,qBACwB;CAC3B,MAAM,EAAE,MAAM,aAAa,oBAAoB;CAE/C,OACE,oBAAC,WAAD;EACE,SAAS;EACT,UAAU,gBAAgB;EAC1B,GAAI;EAEH;CACQ,CAAA;AAEf"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { TextProps } from "react-native";
|
|
2
|
+
|
|
3
|
+
//#region src/primitives/branchPicker/BranchPickerNumber.d.ts
|
|
4
|
+
type BranchPickerNumberProps = TextProps;
|
|
5
|
+
declare const BranchPickerNumber: (props: BranchPickerNumberProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { BranchPickerNumber, BranchPickerNumberProps };
|
|
4
8
|
//# sourceMappingURL=BranchPickerNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerNumber.d.ts","
|
|
1
|
+
{"version":3,"file":"BranchPickerNumber.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"mappings":";;;KAGY,uBAAA,GAA0B,SAAS;AAAA,cAElC,kBAAA,GAAsB,KAAA,EAAO,uBAAuB,iCAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from "react-native";
|
|
3
1
|
import { useAuiState } from "@assistant-ui/store";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Text } from "react-native";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/branchPicker/BranchPickerNumber.tsx
|
|
5
|
+
const BranchPickerNumber = (props) => {
|
|
6
|
+
const branchNumber = useAuiState((s) => s.message.branchNumber);
|
|
7
|
+
return /* @__PURE__ */ jsx(Text, {
|
|
8
|
+
...props,
|
|
9
|
+
children: branchNumber
|
|
10
|
+
});
|
|
7
11
|
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BranchPickerNumber };
|
|
14
|
+
|
|
8
15
|
//# sourceMappingURL=BranchPickerNumber.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerNumber.js","
|
|
1
|
+
{"version":3,"file":"BranchPickerNumber.js","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"sourcesContent":["import { Text, type TextProps } from \"react-native\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport type BranchPickerNumberProps = TextProps;\n\nexport const BranchPickerNumber = (props: BranchPickerNumberProps) => {\n const branchNumber = useAuiState((s) => s.message.branchNumber);\n return <Text {...props}>{branchNumber}</Text>;\n};\n"],"mappings":";;;;AAKA,MAAa,sBAAsB,UAAmC;CACpE,MAAM,eAAe,aAAa,MAAM,EAAE,QAAQ,YAAY;CAC9D,OAAO,oBAAC,MAAD;EAAM,GAAI;YAAQ;CAAmB,CAAA;AAC9C"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PressableProps } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/primitives/branchPicker/BranchPickerPrevious.d.ts
|
|
5
|
+
type BranchPickerPreviousProps = Omit<PressableProps, "onPress"> & {
|
|
6
|
+
children: ReactNode;
|
|
5
7
|
};
|
|
6
|
-
|
|
8
|
+
declare const BranchPickerPrevious: ({
|
|
9
|
+
children,
|
|
10
|
+
disabled: disabledProp,
|
|
11
|
+
...pressableProps
|
|
12
|
+
}: BranchPickerPreviousProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { BranchPickerPrevious, BranchPickerPreviousProps };
|
|
7
15
|
//# sourceMappingURL=BranchPickerPrevious.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerPrevious.d.ts","
|
|
1
|
+
{"version":3,"file":"BranchPickerPrevious.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"mappings":";;;;KAIY,yBAAA,GAA4B,IAAA,CAAK,cAAA;EAC3C,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,oBAAA;EAAwB,QAAA;EAAA,QAAA,EAAA,YAAA;EAAA,GAAA;AAAA,GAIlC,yBAAA,iCAAyB,GAAA,CAAA,OAAA"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Pressable } from "react-native";
|
|
3
1
|
import { useBranchPickerPrevious } from "@assistant-ui/core/react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Pressable } from "react-native";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/branchPicker/BranchPickerPrevious.tsx
|
|
5
|
+
const BranchPickerPrevious = ({ children, disabled: disabledProp, ...pressableProps }) => {
|
|
6
|
+
const { previous, disabled } = useBranchPickerPrevious();
|
|
7
|
+
return /* @__PURE__ */ jsx(Pressable, {
|
|
8
|
+
onPress: previous,
|
|
9
|
+
disabled: disabledProp ?? disabled,
|
|
10
|
+
...pressableProps,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
7
13
|
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { BranchPickerPrevious };
|
|
16
|
+
|
|
8
17
|
//# sourceMappingURL=BranchPickerPrevious.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerPrevious.js","
|
|
1
|
+
{"version":3,"file":"BranchPickerPrevious.js","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerPrevious } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerPreviousProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const BranchPickerPrevious = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerPreviousProps) => {\n const { previous, disabled } = useBranchPickerPrevious();\n\n return (\n <Pressable\n onPress={previous}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAQA,MAAa,wBAAwB,EACnC,UACA,UAAU,cACV,GAAG,qBAC4B;CAC/B,MAAM,EAAE,UAAU,aAAa,wBAAwB;CAEvD,OACE,oBAAC,WAAD;EACE,SAAS;EACT,UAAU,gBAAgB;EAC1B,GAAI;EAEH;CACQ,CAAA;AAEf"}
|