@assistant-ui/react-native 0.1.23 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/primitives/actionBar/ActionBarCopy.js +57 -11
  3. package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
  4. package/dist/primitives/actionBar/ActionBarEdit.js +33 -7
  5. package/dist/primitives/actionBar/ActionBarEdit.js.map +1 -1
  6. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +34 -6
  7. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
  8. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +34 -6
  9. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
  10. package/dist/primitives/actionBar/ActionBarReload.js +33 -7
  11. package/dist/primitives/actionBar/ActionBarReload.js.map +1 -1
  12. package/dist/primitives/actionBar.js.map +1 -1
  13. package/dist/primitives/attachment/AttachmentName.js +17 -5
  14. package/dist/primitives/attachment/AttachmentName.js.map +1 -1
  15. package/dist/primitives/attachment/AttachmentRemove.js +35 -8
  16. package/dist/primitives/attachment/AttachmentRemove.js.map +1 -1
  17. package/dist/primitives/attachment/AttachmentRoot.js +25 -5
  18. package/dist/primitives/attachment/AttachmentRoot.js.map +1 -1
  19. package/dist/primitives/attachment/AttachmentThumb.js +18 -8
  20. package/dist/primitives/attachment/AttachmentThumb.js.map +1 -1
  21. package/dist/primitives/attachment.js.map +1 -1
  22. package/dist/primitives/branchPicker/BranchPickerCount.js +17 -5
  23. package/dist/primitives/branchPicker/BranchPickerCount.js.map +1 -1
  24. package/dist/primitives/branchPicker/BranchPickerNext.js +33 -7
  25. package/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -1
  26. package/dist/primitives/branchPicker/BranchPickerNumber.js +17 -5
  27. package/dist/primitives/branchPicker/BranchPickerNumber.js.map +1 -1
  28. package/dist/primitives/branchPicker/BranchPickerPrevious.js +33 -7
  29. package/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -1
  30. package/dist/primitives/branchPicker.js.map +1 -1
  31. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +40 -9
  32. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js.map +1 -1
  33. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js +25 -5
  34. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js.map +1 -1
  35. package/dist/primitives/chainOfThought.js.map +1 -1
  36. package/dist/primitives/composer/ComposerAddAttachment.js +31 -6
  37. package/dist/primitives/composer/ComposerAddAttachment.js.map +1 -1
  38. package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
  39. package/dist/primitives/composer/ComposerCancel.js +33 -7
  40. package/dist/primitives/composer/ComposerCancel.js.map +1 -1
  41. package/dist/primitives/composer/ComposerInput.js +83 -23
  42. package/dist/primitives/composer/ComposerInput.js.map +1 -1
  43. package/dist/primitives/composer/ComposerRoot.js +25 -5
  44. package/dist/primitives/composer/ComposerRoot.js.map +1 -1
  45. package/dist/primitives/composer/ComposerSend.js +39 -7
  46. package/dist/primitives/composer/ComposerSend.js.map +1 -1
  47. package/dist/primitives/composer.js.map +1 -1
  48. package/dist/primitives/error/ErrorMessage.js +26 -5
  49. package/dist/primitives/error/ErrorMessage.js.map +1 -1
  50. package/dist/primitives/error/ErrorRoot.js +25 -5
  51. package/dist/primitives/error/ErrorRoot.js.map +1 -1
  52. package/dist/primitives/error/index.js.map +1 -1
  53. package/dist/primitives/message/MessageAttachments.js.map +1 -1
  54. package/dist/primitives/message/MessageContent.js +188 -76
  55. package/dist/primitives/message/MessageContent.js.map +1 -1
  56. package/dist/primitives/message/MessageIf.js +15 -3
  57. package/dist/primitives/message/MessageIf.js.map +1 -1
  58. package/dist/primitives/message/MessageParts.js +41 -7
  59. package/dist/primitives/message/MessageParts.js.map +1 -1
  60. package/dist/primitives/message/MessageRoot.js +25 -5
  61. package/dist/primitives/message/MessageRoot.js.map +1 -1
  62. package/dist/primitives/message.js.map +1 -1
  63. package/dist/primitives/suggestion/SuggestionDescription.js +30 -6
  64. package/dist/primitives/suggestion/SuggestionDescription.js.map +1 -1
  65. package/dist/primitives/suggestion/SuggestionTitle.js +30 -6
  66. package/dist/primitives/suggestion/SuggestionTitle.js.map +1 -1
  67. package/dist/primitives/suggestion/SuggestionTrigger.js +57 -12
  68. package/dist/primitives/suggestion/SuggestionTrigger.js.map +1 -1
  69. package/dist/primitives/suggestion.js.map +1 -1
  70. package/dist/primitives/thread/ThreadEmpty.js +11 -2
  71. package/dist/primitives/thread/ThreadEmpty.js.map +1 -1
  72. package/dist/primitives/thread/ThreadIf.js +15 -3
  73. package/dist/primitives/thread/ThreadIf.js.map +1 -1
  74. package/dist/primitives/thread/ThreadMessages.js +98 -16
  75. package/dist/primitives/thread/ThreadMessages.js.map +1 -1
  76. package/dist/primitives/thread/ThreadRoot.js +25 -5
  77. package/dist/primitives/thread/ThreadRoot.js.map +1 -1
  78. package/dist/primitives/thread/ThreadSuggestion.js +56 -12
  79. package/dist/primitives/thread/ThreadSuggestion.js.map +1 -1
  80. package/dist/primitives/thread.js.map +1 -1
  81. package/dist/primitives/threadList/ThreadListItems.js +46 -9
  82. package/dist/primitives/threadList/ThreadListItems.js.map +1 -1
  83. package/dist/primitives/threadList/ThreadListNew.js +27 -6
  84. package/dist/primitives/threadList/ThreadListNew.js.map +1 -1
  85. package/dist/primitives/threadList/ThreadListRoot.js +25 -5
  86. package/dist/primitives/threadList/ThreadListRoot.js.map +1 -1
  87. package/dist/primitives/threadList.js.map +1 -1
  88. package/dist/primitives/threadListItem/ThreadListItemArchive.js +27 -6
  89. package/dist/primitives/threadListItem/ThreadListItemArchive.js.map +1 -1
  90. package/dist/primitives/threadListItem/ThreadListItemDelete.js +27 -6
  91. package/dist/primitives/threadListItem/ThreadListItemDelete.js.map +1 -1
  92. package/dist/primitives/threadListItem/ThreadListItemRoot.js +25 -5
  93. package/dist/primitives/threadListItem/ThreadListItemRoot.js.map +1 -1
  94. package/dist/primitives/threadListItem/ThreadListItemTrigger.js +27 -6
  95. package/dist/primitives/threadListItem/ThreadListItemTrigger.js.map +1 -1
  96. package/dist/primitives/threadListItem/ThreadListItemUnarchive.js +27 -6
  97. package/dist/primitives/threadListItem/ThreadListItemUnarchive.js.map +1 -1
  98. package/dist/primitives/threadListItem.js.map +1 -1
  99. package/package.json +6 -6
  100. package/src/index.ts +5 -0
package/dist/index.d.ts CHANGED
@@ -13,9 +13,9 @@ import { threadListItem_d_exports } from "./primitives/threadListItem.js";
13
13
  import { chainOfThought_d_exports } from "./primitives/chainOfThought.js";
14
14
  import { suggestion_d_exports } from "./primitives/suggestion.js";
15
15
  import { index_d_exports } from "./primitives/error/index.js";
16
- import { AppendMessage, AssistantRuntime, Attachment, AttachmentAdapter, AttachmentRuntime, ChatModelAdapter, ChatModelRunOptions, ChatModelRunResult, CompleteAttachment, ComposerRuntime, CompositeAttachmentAdapter, CreateAttachment, DataMessagePart, EditComposerRuntime, ExportedMessageRepository, ExportedMessageRepositoryItem, FeedbackAdapter, FileMessagePart, ImageMessagePart, InMemoryThreadListAdapter, LanguageModelConfig, LanguageModelV1CallSettings, MessageRole, MessageRuntime, MessageStatus, ModelContext, ModelContextProvider, ModelContextRegistry, ModelContextRegistryInstructionHandle, ModelContextRegistryProviderHandle, ModelContextRegistryToolHandle, PendingAttachment, RealtimeVoiceAdapter, ReasoningMessagePart, RemoteThreadListAdapter, RemoteThreadListOptions, RunConfig, RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SourceMessagePart, SuggestionAdapter, TextMessagePart, ThreadAssistantMessage, ThreadAssistantMessagePart, ThreadComposerRuntime, ThreadHistoryAdapter, ThreadListItemRuntime, ThreadListRuntime, ThreadMessage, ThreadMessageLike, ThreadRuntime, ThreadSystemMessage, ThreadUserMessage, ThreadUserMessagePart, ToolCallMessagePart, ToolModelContentPart, Unstable_AudioMessagePart, Unsubscribe, VoiceSessionControls, VoiceSessionHelpers, createVoiceSession, mergeModelContexts, tool } from "@assistant-ui/core";
16
+ import { AppendMessage, AssistantRuntime, Attachment, AttachmentAdapter, AttachmentRuntime, ChatModelAdapter, ChatModelRunOptions, ChatModelRunResult, CompleteAttachment, ComposerRuntime, CompositeAttachmentAdapter, CreateAttachment, DataMessagePart, EditComposerRuntime, ExportedMessageRepository, ExportedMessageRepositoryItem, FeedbackAdapter, FileMessagePart, ImageMessagePart, InMemoryThreadListAdapter, LanguageModelConfig, LanguageModelV1CallSettings, MessageRole, MessageRuntime, MessageStatus, ModelContext, ModelContextProvider, ModelContextRegistry, ModelContextRegistryInstructionHandle, ModelContextRegistryProviderHandle, ModelContextRegistryToolHandle, PendingAttachment, RealtimeVoiceAdapter, ReasoningMessagePart, RemoteThreadListAdapter, RemoteThreadListOptions, RespondToToolApprovalOptions, RunConfig, RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SourceMessagePart, SuggestionAdapter, TextMessagePart, ThreadAssistantMessage, ThreadAssistantMessagePart, ThreadComposerRuntime, ThreadHistoryAdapter, ThreadListItemRuntime, ThreadListRuntime, ThreadMessage, ThreadMessageLike, ThreadRuntime, ThreadSystemMessage, ThreadUserMessage, ThreadUserMessagePart, ToolApprovalOption, ToolApprovalOptionKind, ToolApprovalResponse, ToolCallMessagePart, ToolCallTiming, ToolModelContentPart, Unstable_AudioMessagePart, Unsubscribe, VoiceSessionControls, VoiceSessionHelpers, createVoiceSession, mergeModelContexts, tool } from "@assistant-ui/core";
17
17
  import { AssistantClient, AssistantEventCallback, AssistantEventName, AssistantEventPayload, AssistantEventScope, AssistantEventSelector, AssistantState, AuiIf, AuiProvider, useAui, useAuiEvent, useAuiState } from "@assistant-ui/store";
18
18
  import { AssistantContextConfig, AssistantDataUI, AssistantDataUIProps, AssistantInteractableProps, AssistantTool, AssistantToolProps, AssistantToolUI, AssistantToolUIProps, ChainOfThoughtByIndicesProvider, ChainOfThoughtPartByIndexProvider, DataMessagePartComponent, DataMessagePartProps, DataRenderers, EmptyMessagePartComponent, EmptyMessagePartProps, FileMessagePartComponent, FileMessagePartProps, GroupByContext, ImageMessagePartComponent, ImageMessagePartProps, Interactables, McpToolkitDefinition, MessageByIndexProvider, PartByIndexProvider, ProviderToolConfig, ReasoningGroupComponent, ReasoningGroupProps, ReasoningMessagePartComponent, ReasoningMessagePartProps, RuntimeAdapterProvider, RuntimeAdapters, SourceMessagePartComponent, SourceMessagePartProps, SuggestionByIndexProvider, TextMessagePartComponent, TextMessagePartProps, TextMessagePartProvider, ThreadListItemByIndexProvider, ToolArgsStatus, ToolCallMessagePartComponent, ToolCallMessagePartProps, ToolCallText, ToolDefinition, Toolkit, ToolkitDefinition, ToolkitDefinitionEntry, Tools, Unstable_AudioMessagePartComponent, Unstable_AudioMessagePartProps, defineMcpToolkit, defineToolkit, externalTool, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, providerTool, stubTool, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAuiToolOverrides, useInlineRender, useInteractableState, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume } from "@assistant-ui/core/react";
19
19
  import { AttachmentState, ChainOfThoughtClient, ComposerState, MessageState, ModelContext as ModelContextClient, SuggestionConfig, Suggestions, ThreadListItemState, ThreadState, ThreadsState } from "@assistant-ui/core/store";
20
20
  import { Tool } from "assistant-stream";
21
- export { actionBar_d_exports as ActionBarPrimitive, type AppendMessage, type AssistantClient, type AssistantContextConfig, type AssistantDataUI, type AssistantDataUIProps, type AssistantEventCallback, type AssistantEventName, type AssistantEventPayload, type AssistantEventScope, type AssistantEventSelector, type AssistantInteractableProps, type AssistantRuntime, AssistantRuntimeProvider, type AssistantState, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type Attachment, type AttachmentAdapter, attachment_d_exports as AttachmentPrimitive, type AttachmentRuntime, type AttachmentState, AuiIf, AuiProvider, branchPicker_d_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_d_exports as ChainOfThoughtPrimitive, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type CompleteAttachment, composer_d_exports as ComposerPrimitive, type ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, type CreateAttachment, type DataMessagePart, type DataMessagePartComponent, type DataMessagePartProps, DataRenderers, type EditComposerRuntime, type EmptyMessagePartComponent, type EmptyMessagePartProps, index_d_exports as ErrorPrimitive, ExportedMessageRepository, type ExportedMessageRepositoryItem, type FeedbackAdapter, type FileMessagePart, type FileMessagePartComponent, type FileMessagePartProps, type GroupByContext, type ImageMessagePart, type ImageMessagePartComponent, type ImageMessagePartProps, InMemoryThreadListAdapter, Interactables, type LanguageModelConfig, type LanguageModelV1CallSettings, type LocalRuntimeOptions, type McpToolkitDefinition, MessageByIndexProvider, message_d_exports as MessagePrimitive, type MessageRole, type MessageRuntime, type MessageState, type MessageStatus, type ModelContext, ModelContextClient, type ModelContextProvider, ModelContextRegistry, type ModelContextRegistryInstructionHandle, type ModelContextRegistryProviderHandle, type ModelContextRegistryToolHandle, PartByIndexProvider, type PendingAttachment, type ProviderToolConfig, type RealtimeVoiceAdapter, type ReasoningGroupComponent, type ReasoningGroupProps, type ReasoningMessagePart, type ReasoningMessagePartComponent, type ReasoningMessagePartProps, type RemoteThreadListAdapter, type RemoteThreadListOptions, type RunConfig, RuntimeAdapterProvider, type RuntimeAdapters, type RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, type SourceMessagePart, type SourceMessagePartComponent, type SourceMessagePartProps, type SuggestionAdapter, SuggestionByIndexProvider, type SuggestionConfig, suggestion_d_exports as SuggestionPrimitive, Suggestions, type TextMessagePart, type TextMessagePartComponent, type TextMessagePartProps, TextMessagePartProvider, type ThreadAssistantMessage, type ThreadAssistantMessagePart, type ThreadComposerRuntime, type ThreadHistoryAdapter, ThreadListItemByIndexProvider, threadListItem_d_exports as ThreadListItemPrimitive, type ThreadListItemRuntime, type ThreadListItemState, threadList_d_exports as ThreadListPrimitive, type ThreadListRuntime, type ThreadMessage, type ThreadMessageLike, thread_d_exports as ThreadPrimitive, type ThreadRuntime, type ThreadState, type ThreadSystemMessage, type ThreadUserMessage, type ThreadUserMessagePart, type ThreadsState, type Tool, type ToolArgsStatus, type ToolCallMessagePart, type ToolCallMessagePartComponent, type ToolCallMessagePartProps, type ToolCallText, type ToolDefinition, type ToolModelContentPart, type Toolkit, type ToolkitDefinition, type ToolkitDefinitionEntry, Tools, type Unstable_AudioMessagePart, type Unstable_AudioMessagePartComponent, type Unstable_AudioMessagePartProps, type Unsubscribe, type VoiceSessionControls, type VoiceSessionHelpers, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, providerTool, stubTool, tool, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAui, useAuiEvent, useAuiState, useAuiToolOverrides, useInlineRender, useInteractableState, useLocalRuntime, useRemoteThreadListRuntime, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume };
21
+ export { actionBar_d_exports as ActionBarPrimitive, type AppendMessage, type AssistantClient, type AssistantContextConfig, type AssistantDataUI, type AssistantDataUIProps, type AssistantEventCallback, type AssistantEventName, type AssistantEventPayload, type AssistantEventScope, type AssistantEventSelector, type AssistantInteractableProps, type AssistantRuntime, AssistantRuntimeProvider, type AssistantState, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type Attachment, type AttachmentAdapter, attachment_d_exports as AttachmentPrimitive, type AttachmentRuntime, type AttachmentState, AuiIf, AuiProvider, branchPicker_d_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_d_exports as ChainOfThoughtPrimitive, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type CompleteAttachment, composer_d_exports as ComposerPrimitive, type ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, type CreateAttachment, type DataMessagePart, type DataMessagePartComponent, type DataMessagePartProps, DataRenderers, type EditComposerRuntime, type EmptyMessagePartComponent, type EmptyMessagePartProps, index_d_exports as ErrorPrimitive, ExportedMessageRepository, type ExportedMessageRepositoryItem, type FeedbackAdapter, type FileMessagePart, type FileMessagePartComponent, type FileMessagePartProps, type GroupByContext, type ImageMessagePart, type ImageMessagePartComponent, type ImageMessagePartProps, InMemoryThreadListAdapter, Interactables, type LanguageModelConfig, type LanguageModelV1CallSettings, type LocalRuntimeOptions, type McpToolkitDefinition, MessageByIndexProvider, message_d_exports as MessagePrimitive, type MessageRole, type MessageRuntime, type MessageState, type MessageStatus, type ModelContext, ModelContextClient, type ModelContextProvider, ModelContextRegistry, type ModelContextRegistryInstructionHandle, type ModelContextRegistryProviderHandle, type ModelContextRegistryToolHandle, PartByIndexProvider, type PendingAttachment, type ProviderToolConfig, type RealtimeVoiceAdapter, type ReasoningGroupComponent, type ReasoningGroupProps, type ReasoningMessagePart, type ReasoningMessagePartComponent, type ReasoningMessagePartProps, type RemoteThreadListAdapter, type RemoteThreadListOptions, type RespondToToolApprovalOptions, type RunConfig, RuntimeAdapterProvider, type RuntimeAdapters, type RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, type SourceMessagePart, type SourceMessagePartComponent, type SourceMessagePartProps, type SuggestionAdapter, SuggestionByIndexProvider, type SuggestionConfig, suggestion_d_exports as SuggestionPrimitive, Suggestions, type TextMessagePart, type TextMessagePartComponent, type TextMessagePartProps, TextMessagePartProvider, type ThreadAssistantMessage, type ThreadAssistantMessagePart, type ThreadComposerRuntime, type ThreadHistoryAdapter, ThreadListItemByIndexProvider, threadListItem_d_exports as ThreadListItemPrimitive, type ThreadListItemRuntime, type ThreadListItemState, threadList_d_exports as ThreadListPrimitive, type ThreadListRuntime, type ThreadMessage, type ThreadMessageLike, thread_d_exports as ThreadPrimitive, type ThreadRuntime, type ThreadState, type ThreadSystemMessage, type ThreadUserMessage, type ThreadUserMessagePart, type ThreadsState, type Tool, type ToolApprovalOption, type ToolApprovalOptionKind, type ToolApprovalResponse, type ToolArgsStatus, type ToolCallMessagePart, type ToolCallMessagePartComponent, type ToolCallMessagePartProps, type ToolCallText, type ToolCallTiming, type ToolDefinition, type ToolModelContentPart, type Toolkit, type ToolkitDefinition, type ToolkitDefinitionEntry, Tools, type Unstable_AudioMessagePart, type Unstable_AudioMessagePartComponent, type Unstable_AudioMessagePartProps, type Unsubscribe, type VoiceSessionControls, type VoiceSessionHelpers, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, providerTool, stubTool, tool, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAui, useAuiEvent, useAuiState, useAuiToolOverrides, useInlineRender, useInteractableState, useLocalRuntime, useRemoteThreadListRuntime, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume };
@@ -1,18 +1,64 @@
1
1
  import { useActionBarCopy } from "@assistant-ui/core/react";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/actionBar/ActionBarCopy.tsx
5
- const ActionBarCopy = ({ children, disabled: disabledProp, copiedDuration, copyToClipboard, ...pressableProps }) => {
6
- const { copy, disabled, isCopied } = useActionBarCopy({
7
- copiedDuration,
8
- copyToClipboard
9
- });
10
- return /* @__PURE__ */ jsx(Pressable, {
11
- onPress: copy,
12
- disabled: disabledProp ?? disabled,
13
- ...pressableProps,
14
- children: typeof children === "function" ? children({ isCopied }) : children
15
- });
6
+ const ActionBarCopy = (t0) => {
7
+ const $ = c(17);
8
+ let children;
9
+ let copiedDuration;
10
+ let copyToClipboard;
11
+ let disabledProp;
12
+ let pressableProps;
13
+ if ($[0] !== t0) {
14
+ ({children, disabled: disabledProp, copiedDuration, copyToClipboard, ...pressableProps} = t0);
15
+ $[0] = t0;
16
+ $[1] = children;
17
+ $[2] = copiedDuration;
18
+ $[3] = copyToClipboard;
19
+ $[4] = disabledProp;
20
+ $[5] = pressableProps;
21
+ } else {
22
+ children = $[1];
23
+ copiedDuration = $[2];
24
+ copyToClipboard = $[3];
25
+ disabledProp = $[4];
26
+ pressableProps = $[5];
27
+ }
28
+ let t1;
29
+ if ($[6] !== copiedDuration || $[7] !== copyToClipboard) {
30
+ t1 = {
31
+ copiedDuration,
32
+ copyToClipboard
33
+ };
34
+ $[6] = copiedDuration;
35
+ $[7] = copyToClipboard;
36
+ $[8] = t1;
37
+ } else t1 = $[8];
38
+ const { copy, disabled, isCopied } = useActionBarCopy(t1);
39
+ const t2 = disabledProp ?? disabled;
40
+ let t3;
41
+ if ($[9] !== children || $[10] !== isCopied) {
42
+ t3 = typeof children === "function" ? children({ isCopied }) : children;
43
+ $[9] = children;
44
+ $[10] = isCopied;
45
+ $[11] = t3;
46
+ } else t3 = $[11];
47
+ let t4;
48
+ if ($[12] !== copy || $[13] !== pressableProps || $[14] !== t2 || $[15] !== t3) {
49
+ t4 = /* @__PURE__ */ jsx(Pressable, {
50
+ onPress: copy,
51
+ disabled: t2,
52
+ ...pressableProps,
53
+ children: t3
54
+ });
55
+ $[12] = copy;
56
+ $[13] = pressableProps;
57
+ $[14] = t2;
58
+ $[15] = t3;
59
+ $[16] = t4;
60
+ } else t4 = $[16];
61
+ return t4;
16
62
  };
17
63
  //#endregion
18
64
  export { ActionBarCopy };
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarCopy.js","names":[],"sources":["../../../src/primitives/actionBar/ActionBarCopy.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport {\n useActionBarCopy,\n type UseActionBarCopyOptions,\n} from \"@assistant-ui/core/react\";\n\nexport type ActionBarCopyProps = Omit<PressableProps, \"onPress\" | \"children\"> &\n UseActionBarCopyOptions & {\n children: ReactNode | ((props: { isCopied: boolean }) => ReactNode);\n };\n\nexport const ActionBarCopy = ({\n children,\n disabled: disabledProp,\n copiedDuration,\n copyToClipboard,\n ...pressableProps\n}: ActionBarCopyProps) => {\n const { copy, disabled, isCopied } = useActionBarCopy({\n copiedDuration,\n copyToClipboard,\n });\n\n return (\n <Pressable\n onPress={copy}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {typeof children === \"function\" ? children({ isCopied }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAYA,MAAa,iBAAiB,EAC5B,UACA,UAAU,cACV,gBACA,iBACA,GAAG,qBACqB;CACxB,MAAM,EAAE,MAAM,UAAU,aAAa,iBAAiB;EACpD;EACA;CACF,CAAC;CAED,OACE,oBAAC,WAAD;EACE,SAAS;EACT,UAAU,gBAAgB;EAC1B,GAAI;YAEH,OAAO,aAAa,aAAa,SAAS,EAAE,SAAS,CAAC,IAAI;CAClD,CAAA;AAEf"}
1
+ {"version":3,"file":"ActionBarCopy.js","names":["ReactNode","Pressable","PressableProps","useActionBarCopy","UseActionBarCopyOptions","ActionBarCopyProps","Omit","children","props","isCopied","ActionBarCopy","t0","$","_c","copiedDuration","copyToClipboard","disabledProp","pressableProps","disabled","t1","copy","t2","t3","t4"],"sources":["../../../src/primitives/actionBar/ActionBarCopy.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport {\n useActionBarCopy,\n type UseActionBarCopyOptions,\n} from \"@assistant-ui/core/react\";\n\nexport type ActionBarCopyProps = Omit<PressableProps, \"onPress\" | \"children\"> &\n UseActionBarCopyOptions & {\n children: ReactNode | ((props: { isCopied: boolean }) => ReactNode);\n };\n\nexport const ActionBarCopy = ({\n children,\n disabled: disabledProp,\n copiedDuration,\n copyToClipboard,\n ...pressableProps\n}: ActionBarCopyProps) => {\n const { copy, disabled, isCopied } = useActionBarCopy({\n copiedDuration,\n copyToClipboard,\n });\n\n return (\n <Pressable\n onPress={copy}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {typeof children === \"function\" ? children({ isCopied }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAYA,MAAaU,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAL,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,UAAAW,UAAAF,cAAAF,gBAAAC,oBAAAE,kBAAAN;EAMTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAA;EAAAV,WAAAK,EAAA;EAAAE,iBAAAF,EAAA;EAAAG,kBAAAH,EAAA;EAAAI,eAAAJ,EAAA;EAAAK,iBAAAL,EAAA;CAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,iBAAA;EACmCI,KAAA;GAAAL;GAAAC;EAGtD;EAACH,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAHD,MAAA,EAAAQ,MAAAF,UAAAT,aAAqCN,iBAAiBgB,EAGrD;CAKa,MAAAE,KAAAL,gBAAAE;CAAwB,IAAAI;CAAA,IAAAV,EAAA,OAAAL,YAAAK,EAAA,QAAAH,UAAA;EAGjCa,KAAA,OAAOf,aAAa,aAAaA,SAAS,EAAAE,SAAW,CAAY,IAAjEF;EAAkEK,EAAA,KAAAL;EAAAK,EAAA,MAAAH;EAAAG,EAAA,MAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,IAAAW;CAAA,IAAAX,EAAA,QAAAQ,QAAAR,EAAA,QAAAK,kBAAAL,EAAA,QAAAS,MAAAT,EAAA,QAAAU,IAAA;EALrEC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACC,UAAAC;GAAwB,GAC9BJ;aAEHK;EALO,CAAA;EAMEV,EAAA,MAAAQ;EAAAR,EAAA,MAAAK;EAAAL,EAAA,MAAAS;EAAAT,EAAA,MAAAU;EAAAV,EAAA,MAAAW;CAAA,OAAAA,KAAAX,EAAA;CAAA,OANZW;AAMY"}
@@ -1,15 +1,41 @@
1
1
  import { useActionBarEdit } from "@assistant-ui/core/react";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/actionBar/ActionBarEdit.tsx
5
- const ActionBarEdit = ({ children, disabled: disabledProp, ...pressableProps }) => {
6
+ const ActionBarEdit = (t0) => {
7
+ const $ = c(9);
8
+ let children;
9
+ let disabledProp;
10
+ let pressableProps;
11
+ if ($[0] !== t0) {
12
+ ({children, disabled: disabledProp, ...pressableProps} = t0);
13
+ $[0] = t0;
14
+ $[1] = children;
15
+ $[2] = disabledProp;
16
+ $[3] = pressableProps;
17
+ } else {
18
+ children = $[1];
19
+ disabledProp = $[2];
20
+ pressableProps = $[3];
21
+ }
6
22
  const { edit, disabled } = useActionBarEdit();
7
- return /* @__PURE__ */ jsx(Pressable, {
8
- onPress: edit,
9
- disabled: disabledProp ?? disabled,
10
- ...pressableProps,
11
- children
12
- });
23
+ const t1 = disabledProp ?? disabled;
24
+ let t2;
25
+ if ($[4] !== children || $[5] !== edit || $[6] !== pressableProps || $[7] !== t1) {
26
+ t2 = /* @__PURE__ */ jsx(Pressable, {
27
+ onPress: edit,
28
+ disabled: t1,
29
+ ...pressableProps,
30
+ children
31
+ });
32
+ $[4] = children;
33
+ $[5] = edit;
34
+ $[6] = pressableProps;
35
+ $[7] = t1;
36
+ $[8] = t2;
37
+ } else t2 = $[8];
38
+ return t2;
13
39
  };
14
40
  //#endregion
15
41
  export { ActionBarEdit };
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarEdit.js","names":[],"sources":["../../../src/primitives/actionBar/ActionBarEdit.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarEdit } from \"@assistant-ui/core/react\";\n\nexport type ActionBarEditProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const ActionBarEdit = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarEditProps) => {\n const { edit, disabled } = useActionBarEdit();\n\n return (\n <Pressable\n onPress={edit}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAQA,MAAa,iBAAiB,EAC5B,UACA,UAAU,cACV,GAAG,qBACqB;CACxB,MAAM,EAAE,MAAM,aAAa,iBAAiB;CAE5C,OACE,oBAAC,WAAD;EACE,SAAS;EACT,UAAU,gBAAgB;EAC1B,GAAI;EAEH;CACQ,CAAA;AAEf"}
1
+ {"version":3,"file":"ActionBarEdit.js","names":["ReactNode","Pressable","PressableProps","useActionBarEdit","ActionBarEditProps","Omit","children","ActionBarEdit","t0","$","_c","disabledProp","pressableProps","disabled","edit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarEdit.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarEdit } from \"@assistant-ui/core/react\";\n\nexport type ActionBarEditProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const ActionBarEdit = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarEditProps) => {\n const { edit, disabled } = useActionBarEdit();\n\n return (\n <Pressable\n onPress={edit}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAQA,MAAaO,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACnB,MAAA,EAAAK,MAAAD,aAA2BV,iBAAiB;CAK9B,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAK,QAAAL,EAAA,OAAAG,kBAAAH,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAK;EAAAL,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
@@ -1,14 +1,42 @@
1
1
  import { useActionBarFeedbackNegative } from "@assistant-ui/core/react";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/actionBar/ActionBarFeedbackNegative.tsx
5
- const ActionBarFeedbackNegative = ({ children, ...pressableProps }) => {
6
+ const ActionBarFeedbackNegative = (t0) => {
7
+ const $ = c(10);
8
+ let children;
9
+ let pressableProps;
10
+ if ($[0] !== t0) {
11
+ ({children, ...pressableProps} = t0);
12
+ $[0] = t0;
13
+ $[1] = children;
14
+ $[2] = pressableProps;
15
+ } else {
16
+ children = $[1];
17
+ pressableProps = $[2];
18
+ }
6
19
  const { submit, isSubmitted } = useActionBarFeedbackNegative();
7
- return /* @__PURE__ */ jsx(Pressable, {
8
- onPress: submit,
9
- ...pressableProps,
10
- children: typeof children === "function" ? children({ isSubmitted }) : children
11
- });
20
+ let t1;
21
+ if ($[3] !== children || $[4] !== isSubmitted) {
22
+ t1 = typeof children === "function" ? children({ isSubmitted }) : children;
23
+ $[3] = children;
24
+ $[4] = isSubmitted;
25
+ $[5] = t1;
26
+ } else t1 = $[5];
27
+ let t2;
28
+ if ($[6] !== pressableProps || $[7] !== submit || $[8] !== t1) {
29
+ t2 = /* @__PURE__ */ jsx(Pressable, {
30
+ onPress: submit,
31
+ ...pressableProps,
32
+ children: t1
33
+ });
34
+ $[6] = pressableProps;
35
+ $[7] = submit;
36
+ $[8] = t1;
37
+ $[9] = t2;
38
+ } else t2 = $[9];
39
+ return t2;
12
40
  };
13
41
  //#endregion
14
42
  export { ActionBarFeedbackNegative };
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarFeedbackNegative.js","names":[],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackNegative.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackNegative } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackNegativeProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: ReactNode | ((props: { isSubmitted: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackNegative = ({\n children,\n ...pressableProps\n}: ActionBarFeedbackNegativeProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackNegative();\n\n return (\n <Pressable onPress={submit} {...pressableProps}>\n {typeof children === \"function\" ? children({ isSubmitted }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAWA,MAAa,6BAA6B,EACxC,UACA,GAAG,qBACiC;CACpC,MAAM,EAAE,QAAQ,gBAAgB,6BAA6B;CAE7D,OACE,oBAAC,WAAD;EAAW,SAAS;EAAQ,GAAI;YAC7B,OAAO,aAAa,aAAa,SAAS,EAAE,YAAY,CAAC,IAAI;CACrD,CAAA;AAEf"}
1
+ {"version":3,"file":"ActionBarFeedbackNegative.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackNegative","ActionBarFeedbackNegativeProps","Omit","children","props","isSubmitted","ActionBarFeedbackNegative","t0","$","_c","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackNegative.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackNegative } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackNegativeProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: ReactNode | ((props: { isSubmitted: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackNegative = ({\n children,\n ...pressableProps\n}: ActionBarFeedbackNegativeProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackNegative();\n\n return (\n <Pressable onPress={submit} {...pressableProps}>\n {typeof children === \"function\" ? children({ isSubmitted }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAWA,MAAaS,6BAA4BC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,aAAAO,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;CAAA,OAAA;EAAAP,WAAAK,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CAC/B,MAAA,EAAAG,QAAAN,gBAAgCL,6BAA6B;CAAE,IAAAY;CAAA,IAAAJ,EAAA,OAAAL,YAAAK,EAAA,OAAAH,aAAA;EAI1DO,KAAA,OAAOT,aAAa,aAAaA,SAAS,EAAAE,YAAc,CAAY,IAApEF;EAAqEK,EAAA,KAAAL;EAAAK,EAAA,KAAAH;EAAAG,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,UAAAH,EAAA,OAAAI,IAAA;EADxEC,KAAA,oBAAC,WAAD;GAAoBF,SAAAA;GAAM,GAAMD;aAC7BE;EADO,CAAA;EAEEJ,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFZK;AAEY"}
@@ -1,14 +1,42 @@
1
1
  import { useActionBarFeedbackPositive } from "@assistant-ui/core/react";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/actionBar/ActionBarFeedbackPositive.tsx
5
- const ActionBarFeedbackPositive = ({ children, ...pressableProps }) => {
6
+ const ActionBarFeedbackPositive = (t0) => {
7
+ const $ = c(10);
8
+ let children;
9
+ let pressableProps;
10
+ if ($[0] !== t0) {
11
+ ({children, ...pressableProps} = t0);
12
+ $[0] = t0;
13
+ $[1] = children;
14
+ $[2] = pressableProps;
15
+ } else {
16
+ children = $[1];
17
+ pressableProps = $[2];
18
+ }
6
19
  const { submit, isSubmitted } = useActionBarFeedbackPositive();
7
- return /* @__PURE__ */ jsx(Pressable, {
8
- onPress: submit,
9
- ...pressableProps,
10
- children: typeof children === "function" ? children({ isSubmitted }) : children
11
- });
20
+ let t1;
21
+ if ($[3] !== children || $[4] !== isSubmitted) {
22
+ t1 = typeof children === "function" ? children({ isSubmitted }) : children;
23
+ $[3] = children;
24
+ $[4] = isSubmitted;
25
+ $[5] = t1;
26
+ } else t1 = $[5];
27
+ let t2;
28
+ if ($[6] !== pressableProps || $[7] !== submit || $[8] !== t1) {
29
+ t2 = /* @__PURE__ */ jsx(Pressable, {
30
+ onPress: submit,
31
+ ...pressableProps,
32
+ children: t1
33
+ });
34
+ $[6] = pressableProps;
35
+ $[7] = submit;
36
+ $[8] = t1;
37
+ $[9] = t2;
38
+ } else t2 = $[9];
39
+ return t2;
12
40
  };
13
41
  //#endregion
14
42
  export { ActionBarFeedbackPositive };
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarFeedbackPositive.js","names":[],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackPositive.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackPositive } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackPositiveProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: ReactNode | ((props: { isSubmitted: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackPositive = ({\n children,\n ...pressableProps\n}: ActionBarFeedbackPositiveProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackPositive();\n\n return (\n <Pressable onPress={submit} {...pressableProps}>\n {typeof children === \"function\" ? children({ isSubmitted }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAWA,MAAa,6BAA6B,EACxC,UACA,GAAG,qBACiC;CACpC,MAAM,EAAE,QAAQ,gBAAgB,6BAA6B;CAE7D,OACE,oBAAC,WAAD;EAAW,SAAS;EAAQ,GAAI;YAC7B,OAAO,aAAa,aAAa,SAAS,EAAE,YAAY,CAAC,IAAI;CACrD,CAAA;AAEf"}
1
+ {"version":3,"file":"ActionBarFeedbackPositive.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackPositive","ActionBarFeedbackPositiveProps","Omit","children","props","isSubmitted","ActionBarFeedbackPositive","t0","$","_c","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackPositive.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackPositive } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackPositiveProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: ReactNode | ((props: { isSubmitted: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackPositive = ({\n children,\n ...pressableProps\n}: ActionBarFeedbackPositiveProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackPositive();\n\n return (\n <Pressable onPress={submit} {...pressableProps}>\n {typeof children === \"function\" ? children({ isSubmitted }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAWA,MAAaS,6BAA4BC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,aAAAO,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;CAAA,OAAA;EAAAP,WAAAK,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CAC/B,MAAA,EAAAG,QAAAN,gBAAgCL,6BAA6B;CAAE,IAAAY;CAAA,IAAAJ,EAAA,OAAAL,YAAAK,EAAA,OAAAH,aAAA;EAI1DO,KAAA,OAAOT,aAAa,aAAaA,SAAS,EAAAE,YAAc,CAAY,IAApEF;EAAqEK,EAAA,KAAAL;EAAAK,EAAA,KAAAH;EAAAG,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,UAAAH,EAAA,OAAAI,IAAA;EADxEC,KAAA,oBAAC,WAAD;GAAoBF,SAAAA;GAAM,GAAMD;aAC7BE;EADO,CAAA;EAEEJ,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFZK;AAEY"}
@@ -1,15 +1,41 @@
1
1
  import { useActionBarReload } from "@assistant-ui/core/react";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/actionBar/ActionBarReload.tsx
5
- const ActionBarReload = ({ children, disabled: disabledProp, ...pressableProps }) => {
6
+ const ActionBarReload = (t0) => {
7
+ const $ = c(9);
8
+ let children;
9
+ let disabledProp;
10
+ let pressableProps;
11
+ if ($[0] !== t0) {
12
+ ({children, disabled: disabledProp, ...pressableProps} = t0);
13
+ $[0] = t0;
14
+ $[1] = children;
15
+ $[2] = disabledProp;
16
+ $[3] = pressableProps;
17
+ } else {
18
+ children = $[1];
19
+ disabledProp = $[2];
20
+ pressableProps = $[3];
21
+ }
6
22
  const { reload, disabled } = useActionBarReload();
7
- return /* @__PURE__ */ jsx(Pressable, {
8
- onPress: reload,
9
- disabled: disabledProp ?? disabled,
10
- ...pressableProps,
11
- children
12
- });
23
+ const t1 = disabledProp ?? disabled;
24
+ let t2;
25
+ if ($[4] !== children || $[5] !== pressableProps || $[6] !== reload || $[7] !== t1) {
26
+ t2 = /* @__PURE__ */ jsx(Pressable, {
27
+ onPress: reload,
28
+ disabled: t1,
29
+ ...pressableProps,
30
+ children
31
+ });
32
+ $[4] = children;
33
+ $[5] = pressableProps;
34
+ $[6] = reload;
35
+ $[7] = t1;
36
+ $[8] = t2;
37
+ } else t2 = $[8];
38
+ return t2;
13
39
  };
14
40
  //#endregion
15
41
  export { ActionBarReload };
@@ -1 +1 @@
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
+ {"version":3,"file":"ActionBarReload.js","names":["ReactNode","Pressable","PressableProps","useActionBarReload","ActionBarReloadProps","Omit","children","ActionBarReload","t0","$","_c","disabledProp","pressableProps","disabled","reload","t1","t2"],"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,MAAaO,mBAAkBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACrB,MAAA,EAAAK,QAAAD,aAA6BV,mBAAmB;CAKlC,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAK,UAAAL,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAK;EAAAL,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
@@ -1 +1 @@
1
- {"version":3,"file":"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
+ {"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,14 +1,26 @@
1
1
  import { useAuiState } from "@assistant-ui/store";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Text } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/attachment/AttachmentName.tsx
5
6
  const AttachmentName = (props) => {
6
- const name = useAuiState((s) => s.attachment.name);
7
- return /* @__PURE__ */ jsx(Text, {
8
- ...props,
9
- children: name
10
- });
7
+ const $ = c(3);
8
+ const name = useAuiState(_temp);
9
+ let t0;
10
+ if ($[0] !== name || $[1] !== props) {
11
+ t0 = /* @__PURE__ */ jsx(Text, {
12
+ ...props,
13
+ children: name
14
+ });
15
+ $[0] = name;
16
+ $[1] = props;
17
+ $[2] = t0;
18
+ } else t0 = $[2];
19
+ return t0;
11
20
  };
21
+ function _temp(s) {
22
+ return s.attachment.name;
23
+ }
12
24
  //#endregion
13
25
  export { AttachmentName };
14
26
 
@@ -1 +1 @@
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
+ {"version":3,"file":"AttachmentName.js","names":["FC","Text","TextProps","useAuiState","AttachmentNameProps","AttachmentName","props","$","_c","name","_temp","t0","s","attachment"],"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,MAAaK,kBAA0CC,UAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACrD,MAAAC,OAAaN,YAAYO,KAAwB;CAAE,IAAAC;CAAA,IAAAJ,EAAA,OAAAE,QAAAF,EAAA,OAAAD,OAAA;EAC5CK,KAAA,oBAAC,MAAD;GAAK,GAAKL;aAAQG;EAAb,CAAA;EAAyBF,EAAA,KAAAE;EAAAF,EAAA,KAAAD;EAAAC,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,OAA9BI;AAA8B;AAFgB,SAAAD,MAAAE,GAAA;CAAA,OACrBA,EAACC,WAAWJ;AAAK"}
@@ -1,17 +1,44 @@
1
1
  import { useAui } from "@assistant-ui/store";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Pressable } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
- import { useCallback } from "@assistant-ui/tap/react-shim";
5
5
  //#region src/primitives/attachment/AttachmentRemove.tsx
6
- const AttachmentRemove = ({ children, ...pressableProps }) => {
6
+ const AttachmentRemove = (t0) => {
7
+ const $ = c(9);
8
+ let children;
9
+ let pressableProps;
10
+ if ($[0] !== t0) {
11
+ ({children, ...pressableProps} = t0);
12
+ $[0] = t0;
13
+ $[1] = children;
14
+ $[2] = pressableProps;
15
+ } else {
16
+ children = $[1];
17
+ pressableProps = $[2];
18
+ }
7
19
  const aui = useAui();
8
- return /* @__PURE__ */ jsx(Pressable, {
9
- onPress: useCallback(() => {
20
+ let t1;
21
+ if ($[3] !== aui) {
22
+ t1 = () => {
10
23
  aui.attachment().remove();
11
- }, [aui]),
12
- ...pressableProps,
13
- children
14
- });
24
+ };
25
+ $[3] = aui;
26
+ $[4] = t1;
27
+ } else t1 = $[4];
28
+ const handleRemove = t1;
29
+ let t2;
30
+ if ($[5] !== children || $[6] !== handleRemove || $[7] !== pressableProps) {
31
+ t2 = /* @__PURE__ */ jsx(Pressable, {
32
+ onPress: handleRemove,
33
+ ...pressableProps,
34
+ children
35
+ });
36
+ $[5] = children;
37
+ $[6] = handleRemove;
38
+ $[7] = pressableProps;
39
+ $[8] = t2;
40
+ } else t2 = $[8];
41
+ return t2;
15
42
  };
16
43
  //#endregion
17
44
  export { AttachmentRemove };
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentRemove.js","names":[],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"sourcesContent":["import { type ReactNode, useCallback } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\n\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,CAAC,CAAC,OAAO;EAC1B,GAAG,CAAC,GAAG,CAG0B;EAAG,GAAI;EACnC;CACQ,CAAA;AAEf"}
1
+ {"version":3,"file":"AttachmentRemove.js","names":["ReactNode","useCallback","Pressable","PressableProps","useAui","AttachmentRemoveProps","Omit","children","AttachmentRemove","t0","$","_c","pressableProps","aui","t1","attachment","remove","handleRemove","t2"],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"sourcesContent":["import { type ReactNode, useCallback } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\n\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,MAAaQ,oBAAmBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,aAAAK,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,WAAAG,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CACtB,MAAAG,MAAYT,OAAO;CAAE,IAAAU;CAAA,IAAAJ,EAAA,OAAAG,KAAA;EAEYC,WAAA;GAC/BD,IAAGE,WAAY,CAAC,CAAAC,OAAQ;EAAC;EAC1BN,EAAA,KAAAG;EAAAH,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAFD,MAAAO,eAAqBH;CAEX,IAAAI;CAAA,IAAAR,EAAA,OAAAH,YAAAG,EAAA,OAAAO,gBAAAP,EAAA,OAAAE,gBAAA;EAGRM,KAAA,oBAAC,WAAD;GAAoBD,SAAAA;GAAY,GAAML;GACnCL;EADO,CAAA;EAEEG,EAAA,KAAAH;EAAAG,EAAA,KAAAO;EAAAP,EAAA,KAAAE;EAAAF,EAAA,KAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,OAFZQ;AAEY"}
@@ -1,11 +1,31 @@
1
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
1
2
  import { View } from "react-native";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  //#region src/primitives/attachment/AttachmentRoot.tsx
4
- const AttachmentRoot = ({ children, ...viewProps }) => {
5
- return /* @__PURE__ */ jsx(View, {
6
- ...viewProps,
7
- children
8
- });
5
+ const AttachmentRoot = (t0) => {
6
+ const $ = c(6);
7
+ let children;
8
+ let viewProps;
9
+ if ($[0] !== t0) {
10
+ ({children, ...viewProps} = t0);
11
+ $[0] = t0;
12
+ $[1] = children;
13
+ $[2] = viewProps;
14
+ } else {
15
+ children = $[1];
16
+ viewProps = $[2];
17
+ }
18
+ let t1;
19
+ if ($[3] !== children || $[4] !== viewProps) {
20
+ t1 = /* @__PURE__ */ jsx(View, {
21
+ ...viewProps,
22
+ children
23
+ });
24
+ $[3] = children;
25
+ $[4] = viewProps;
26
+ $[5] = t1;
27
+ } else t1 = $[5];
28
+ return t1;
9
29
  };
10
30
  //#endregion
11
31
  export { AttachmentRoot };
@@ -1 +1 @@
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
+ {"version":3,"file":"AttachmentRoot.js","names":["ReactNode","View","ViewProps","AttachmentRootProps","children","AttachmentRoot","t0","$","_c","viewProps","t1"],"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,MAAaK,kBAAiBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,aAAAK,aAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,WAAAG,EAAA;EAAAE,YAAAF,EAAA;CAAA;CAAA,IAAAG;CAAA,IAAAH,EAAA,OAAAH,YAAAG,EAAA,OAAAE,WAAA;EACbC,KAAA,oBAAC,MAAD;GAAK,GAAKD;GAAYL;EAAjB,CAAA;EAAiCG,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAAA,KAAAH,EAAA;CAAA,OAAtCG;AAAsC"}
@@ -1,17 +1,27 @@
1
1
  import { useAuiState } from "@assistant-ui/store";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Text } from "react-native";
3
4
  import { jsxs } from "react/jsx-runtime";
4
5
  //#region src/primitives/attachment/AttachmentThumb.tsx
5
6
  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
- });
7
+ const $ = c(3);
8
+ const ext = useAuiState(_temp);
9
+ let t0;
10
+ if ($[0] !== ext || $[1] !== props) {
11
+ t0 = /* @__PURE__ */ jsxs(Text, {
12
+ ...props,
13
+ children: [".", ext]
14
+ });
15
+ $[0] = ext;
16
+ $[1] = props;
17
+ $[2] = t0;
18
+ } else t0 = $[2];
19
+ return t0;
14
20
  };
21
+ function _temp(s) {
22
+ const parts = s.attachment.name.split(".");
23
+ return parts.length > 1 ? parts.pop() : "";
24
+ }
15
25
  //#endregion
16
26
  export { AttachmentThumb };
17
27
 
@@ -1 +1 @@
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
+ {"version":3,"file":"AttachmentThumb.js","names":["FC","Text","TextProps","useAuiState","AttachmentThumbProps","AttachmentThumb","props","$","_c","ext","_temp","t0","s","parts","attachment","name","split","length","pop"],"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,MAAaK,mBAA4CC,UAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACvD,MAAAC,MAAYN,YAAYO,KAGvB;CAAE,IAAAC;CAAA,IAAAJ,EAAA,OAAAE,OAAAF,EAAA,OAAAD,OAAA;EACIK,KAAA,qBAAC,MAAD;GAAK,GAAKL;aAAV,CAAiB,KAAEG,GAAd;;EAAyBF,EAAA,KAAAE;EAAAF,EAAA,KAAAD;EAAAC,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,OAA9BI;AAA8B;AALkB,SAAAD,MAAAE,GAAA;CAErD,MAAAC,QAAcD,EAACE,WAAWC,KAAKC,MAAO,GAAG;CAAE,OACpCH,MAAKI,SAAU,IAAIJ,MAAKK,IAAW,IAAnC;AAAoC"}
@@ -1 +1 @@
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
+ {"version":3,"file":"attachment.js","names":["AttachmentRoot","Root","AttachmentRootProps","RootProps","AttachmentName","Name","AttachmentNameProps","NameProps","AttachmentThumb","Thumb","AttachmentThumbProps","ThumbProps","AttachmentRemove","Remove","AttachmentRemoveProps","RemoveProps"],"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,14 +1,26 @@
1
1
  import { useAuiState } from "@assistant-ui/store";
2
+ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
3
  import { Text } from "react-native";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/primitives/branchPicker/BranchPickerCount.tsx
5
6
  const BranchPickerCount = (props) => {
6
- const branchCount = useAuiState((s) => s.message.branchCount);
7
- return /* @__PURE__ */ jsx(Text, {
8
- ...props,
9
- children: branchCount
10
- });
7
+ const $ = c(3);
8
+ const branchCount = useAuiState(_temp);
9
+ let t0;
10
+ if ($[0] !== branchCount || $[1] !== props) {
11
+ t0 = /* @__PURE__ */ jsx(Text, {
12
+ ...props,
13
+ children: branchCount
14
+ });
15
+ $[0] = branchCount;
16
+ $[1] = props;
17
+ $[2] = t0;
18
+ } else t0 = $[2];
19
+ return t0;
11
20
  };
21
+ function _temp(s) {
22
+ return s.message.branchCount;
23
+ }
12
24
  //#endregion
13
25
  export { BranchPickerCount };
14
26