@assistant-ui/react-ag-ui 0.0.2
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/LICENSE +21 -0
- package/dist/assistant-stream/src/core/AssistantStream.d.ts +12 -0
- package/dist/assistant-stream/src/core/AssistantStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/AssistantStreamChunk.d.ts +71 -0
- package/dist/assistant-stream/src/core/AssistantStreamChunk.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/accumulators/AssistantMessageStream.d.ts +13 -0
- package/dist/assistant-stream/src/core/accumulators/AssistantMessageStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/accumulators/assistant-message-accumulator.d.ts +14 -0
- package/dist/assistant-stream/src/core/accumulators/assistant-message-accumulator.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/index.d.ts +17 -0
- package/dist/assistant-stream/src/core/index.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/modules/assistant-stream.d.ts +32 -0
- package/dist/assistant-stream/src/core/modules/assistant-stream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/modules/text.d.ts +9 -0
- package/dist/assistant-stream/src/core/modules/text.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/modules/tool-call.d.ts +13 -0
- package/dist/assistant-stream/src/core/modules/tool-call.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/object/ObjectStreamAccumulator.d.ts +11 -0
- package/dist/assistant-stream/src/core/object/ObjectStreamAccumulator.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/object/ObjectStreamResponse.d.ts +13 -0
- package/dist/assistant-stream/src/core/object/ObjectStreamResponse.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/object/createObjectStream.d.ts +13 -0
- package/dist/assistant-stream/src/core/object/createObjectStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/object/types.d.ts +15 -0
- package/dist/assistant-stream/src/core/object/types.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/serialization/PlainText.d.ts +11 -0
- package/dist/assistant-stream/src/core/serialization/PlainText.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/serialization/assistant-transport/AssistantTransport.d.ts +19 -0
- package/dist/assistant-stream/src/core/serialization/assistant-transport/AssistantTransport.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/serialization/data-stream/DataStream.d.ts +11 -0
- package/dist/assistant-stream/src/core/serialization/data-stream/DataStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/serialization/data-stream/chunk-types.d.ts +101 -0
- package/dist/assistant-stream/src/core/serialization/data-stream/chunk-types.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/serialization/data-stream/serialization.d.ts +8 -0
- package/dist/assistant-stream/src/core/serialization/data-stream/serialization.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/tool/ToolCallReader.d.ts +34 -0
- package/dist/assistant-stream/src/core/tool/ToolCallReader.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/tool/ToolExecutionStream.d.ts +24 -0
- package/dist/assistant-stream/src/core/tool/ToolExecutionStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/tool/ToolResponse.d.ts +18 -0
- package/dist/assistant-stream/src/core/tool/ToolResponse.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/tool/index.d.ts +6 -0
- package/dist/assistant-stream/src/core/tool/index.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/tool/tool-types.d.ts +97 -0
- package/dist/assistant-stream/src/core/tool/tool-types.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/tool/toolResultStream.d.ts +6 -0
- package/dist/assistant-stream/src/core/tool/toolResultStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/tool/type-path-utils.d.ts +23 -0
- package/dist/assistant-stream/src/core/tool/type-path-utils.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/Counter.d.ts +5 -0
- package/dist/assistant-stream/src/core/utils/Counter.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/generateId.d.ts +2 -0
- package/dist/assistant-stream/src/core/utils/generateId.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/stream/AssistantMetaTransformStream.d.ts +20 -0
- package/dist/assistant-stream/src/core/utils/stream/AssistantMetaTransformStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/stream/AssistantTransformStream.d.ts +15 -0
- package/dist/assistant-stream/src/core/utils/stream/AssistantTransformStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/stream/LineDecoderStream.d.ts +5 -0
- package/dist/assistant-stream/src/core/utils/stream/LineDecoderStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/stream/PipeableTransformStream.d.ts +4 -0
- package/dist/assistant-stream/src/core/utils/stream/PipeableTransformStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/stream/SSE.d.ts +10 -0
- package/dist/assistant-stream/src/core/utils/stream/SSE.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/stream/UnderlyingReadable.d.ts +6 -0
- package/dist/assistant-stream/src/core/utils/stream/UnderlyingReadable.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/stream/merge.d.ts +9 -0
- package/dist/assistant-stream/src/core/utils/stream/merge.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/stream/path-utils.d.ts +12 -0
- package/dist/assistant-stream/src/core/utils/stream/path-utils.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/types.d.ts +117 -0
- package/dist/assistant-stream/src/core/utils/types.d.ts.map +1 -0
- package/dist/assistant-stream/src/core/utils/withPromiseOrValue.d.ts +2 -0
- package/dist/assistant-stream/src/core/utils/withPromiseOrValue.d.ts.map +1 -0
- package/dist/assistant-stream/src/index.d.ts +2 -0
- package/dist/assistant-stream/src/index.d.ts.map +1 -0
- package/dist/assistant-stream/src/utils/AsyncIterableStream.d.ts +3 -0
- package/dist/assistant-stream/src/utils/AsyncIterableStream.d.ts.map +1 -0
- package/dist/assistant-stream/src/utils/json/fix-json.d.ts +2 -0
- package/dist/assistant-stream/src/utils/json/fix-json.d.ts.map +1 -0
- package/dist/assistant-stream/src/utils/json/json-value.d.ts +6 -0
- package/dist/assistant-stream/src/utils/json/json-value.d.ts.map +1 -0
- package/dist/assistant-stream/src/utils/json/parse-partial-json-object.d.ts +14 -0
- package/dist/assistant-stream/src/utils/json/parse-partial-json-object.d.ts.map +1 -0
- package/dist/assistant-stream/src/utils/promiseWithResolvers.d.ts +6 -0
- package/dist/assistant-stream/src/utils/promiseWithResolvers.d.ts.map +1 -0
- package/dist/assistant-stream/src/utils.d.ts +6 -0
- package/dist/assistant-stream/src/utils.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/react/src/augmentations.d.ts +32 -0
- package/dist/react/src/augmentations.d.ts.map +1 -0
- package/dist/react/src/client/AssistantClient.d.ts +21 -0
- package/dist/react/src/client/AssistantClient.d.ts.map +1 -0
- package/dist/react/src/client/EventContext.d.ts +4 -0
- package/dist/react/src/client/EventContext.d.ts.map +1 -0
- package/dist/react/src/client/ModelContext.d.ts +8 -0
- package/dist/react/src/client/ModelContext.d.ts.map +1 -0
- package/dist/react/src/client/ModelContextClient.d.ts +7 -0
- package/dist/react/src/client/ModelContextClient.d.ts.map +1 -0
- package/dist/react/src/client/NoOpComposerClient.d.ts +9 -0
- package/dist/react/src/client/NoOpComposerClient.d.ts.map +1 -0
- package/dist/react/src/client/ThreadMessageClient.d.ts +14 -0
- package/dist/react/src/client/ThreadMessageClient.d.ts.map +1 -0
- package/dist/react/src/client/Tools.d.ts +10 -0
- package/dist/react/src/client/Tools.d.ts.map +1 -0
- package/dist/react/src/client/types/Attachment.d.ts +7 -0
- package/dist/react/src/client/types/Attachment.d.ts.map +1 -0
- package/dist/react/src/client/types/Composer.d.ts +32 -0
- package/dist/react/src/client/types/Composer.d.ts.map +1 -0
- package/dist/react/src/client/types/Message.d.ts +63 -0
- package/dist/react/src/client/types/Message.d.ts.map +1 -0
- package/dist/react/src/client/types/ModelContext.d.ts +12 -0
- package/dist/react/src/client/types/ModelContext.d.ts.map +1 -0
- package/dist/react/src/client/types/Part.d.ts +22 -0
- package/dist/react/src/client/types/Part.d.ts.map +1 -0
- package/dist/react/src/client/types/Thread.d.ts +114 -0
- package/dist/react/src/client/types/Thread.d.ts.map +1 -0
- package/dist/react/src/client/types/ThreadList.d.ts +24 -0
- package/dist/react/src/client/types/ThreadList.d.ts.map +1 -0
- package/dist/react/src/client/types/ThreadListItem.d.ts +23 -0
- package/dist/react/src/client/types/ThreadListItem.d.ts.map +1 -0
- package/dist/react/src/client/types/Tools.d.ts +14 -0
- package/dist/react/src/client/types/Tools.d.ts.map +1 -0
- package/dist/react/src/client/util-hooks/tapLookupResources.d.ts +15 -0
- package/dist/react/src/client/util-hooks/tapLookupResources.d.ts.map +1 -0
- package/dist/react/src/context/ReadonlyStore.d.ts +4 -0
- package/dist/react/src/context/ReadonlyStore.d.ts.map +1 -0
- package/dist/react/src/context/index.d.ts +4 -0
- package/dist/react/src/context/index.d.ts.map +1 -0
- package/dist/react/src/context/providers/AttachmentByIndexProvider.d.ts +8 -0
- package/dist/react/src/context/providers/AttachmentByIndexProvider.d.ts.map +1 -0
- package/dist/react/src/context/providers/MessageByIndexProvider.d.ts +5 -0
- package/dist/react/src/context/providers/MessageByIndexProvider.d.ts.map +1 -0
- package/dist/react/src/context/providers/MessageProvider.d.ts +4 -0
- package/dist/react/src/context/providers/MessageProvider.d.ts.map +1 -0
- package/dist/react/src/context/providers/PartByIndexProvider.d.ts +5 -0
- package/dist/react/src/context/providers/PartByIndexProvider.d.ts.map +1 -0
- package/dist/react/src/context/providers/TextMessagePartProvider.d.ts +6 -0
- package/dist/react/src/context/providers/TextMessagePartProvider.d.ts.map +1 -0
- package/dist/react/src/context/providers/ThreadListItemProvider.d.ts +9 -0
- package/dist/react/src/context/providers/ThreadListItemProvider.d.ts.map +1 -0
- package/dist/react/src/context/providers/ThreadViewportProvider.d.ts +3 -0
- package/dist/react/src/context/providers/ThreadViewportProvider.d.ts.map +1 -0
- package/dist/react/src/context/providers/index.d.ts +8 -0
- package/dist/react/src/context/providers/index.d.ts.map +1 -0
- package/dist/react/src/context/react/AssistantApiContext.d.ts +139 -0
- package/dist/react/src/context/react/AssistantApiContext.d.ts.map +1 -0
- package/dist/react/src/context/react/ThreadViewportContext.d.ts +24 -0
- package/dist/react/src/context/react/ThreadViewportContext.d.ts.map +1 -0
- package/dist/react/src/context/react/hooks/useAssistantEvent.d.ts +3 -0
- package/dist/react/src/context/react/hooks/useAssistantEvent.d.ts.map +1 -0
- package/dist/react/src/context/react/hooks/useAssistantState.d.ts +3 -0
- package/dist/react/src/context/react/hooks/useAssistantState.d.ts.map +1 -0
- package/dist/react/src/context/react/index.d.ts +13 -0
- package/dist/react/src/context/react/index.d.ts.map +1 -0
- package/dist/react/src/context/react/utils/createContextHook.d.ts +11 -0
- package/dist/react/src/context/react/utils/createContextHook.d.ts.map +1 -0
- package/dist/react/src/context/react/utils/createContextStoreHook.d.ts +26 -0
- package/dist/react/src/context/react/utils/createContextStoreHook.d.ts.map +1 -0
- package/dist/react/src/context/react/utils/createStateHookForRuntime.d.ts +31 -0
- package/dist/react/src/context/react/utils/createStateHookForRuntime.d.ts.map +1 -0
- package/dist/react/src/context/react/utils/ensureBinding.d.ts +2 -0
- package/dist/react/src/context/react/utils/ensureBinding.d.ts.map +1 -0
- package/dist/react/src/context/react/utils/useRuntimeState.d.ts +10 -0
- package/dist/react/src/context/react/utils/useRuntimeState.d.ts.map +1 -0
- package/dist/react/src/context/stores/ThreadViewport.d.ts +8 -0
- package/dist/react/src/context/stores/ThreadViewport.d.ts.map +1 -0
- package/dist/react/src/context/stores/index.d.ts +2 -0
- package/dist/react/src/context/stores/index.d.ts.map +1 -0
- package/dist/react/src/devtools/DevToolsHooks.d.ts +34 -0
- package/dist/react/src/devtools/DevToolsHooks.d.ts.map +1 -0
- package/dist/react/src/devtools/index.d.ts +2 -0
- package/dist/react/src/devtools/index.d.ts.map +1 -0
- package/dist/react/src/index.d.ts +12 -0
- package/dist/react/src/index.d.ts.map +1 -0
- package/dist/react/src/internal.d.ts +15 -0
- package/dist/react/src/internal.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/AssistantRuntimeProvider.d.ts +13 -0
- package/dist/react/src/legacy-runtime/AssistantRuntimeProvider.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/RuntimeAdapter.d.ts +7 -0
- package/dist/react/src/legacy-runtime/RuntimeAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/client/AttachmentRuntimeClient.d.ts +10 -0
- package/dist/react/src/legacy-runtime/client/AttachmentRuntimeClient.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/client/ComposerRuntimeClient.d.ts +13 -0
- package/dist/react/src/legacy-runtime/client/ComposerRuntimeClient.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/client/EventManagerRuntimeClient.d.ts +11 -0
- package/dist/react/src/legacy-runtime/client/EventManagerRuntimeClient.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/client/MessagePartRuntimeClient.d.ts +10 -0
- package/dist/react/src/legacy-runtime/client/MessagePartRuntimeClient.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/client/MessageRuntimeClient.d.ts +12 -0
- package/dist/react/src/legacy-runtime/client/MessageRuntimeClient.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/client/ThreadListItemRuntimeClient.d.ts +10 -0
- package/dist/react/src/legacy-runtime/client/ThreadListItemRuntimeClient.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/client/ThreadListRuntimeClient.d.ts +12 -0
- package/dist/react/src/legacy-runtime/client/ThreadListRuntimeClient.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/client/ThreadRuntimeClient.d.ts +10 -0
- package/dist/react/src/legacy-runtime/client/ThreadRuntimeClient.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts +5 -0
- package/dist/react/src/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/cloud/auiV0.d.ts +55 -0
- package/dist/react/src/legacy-runtime/cloud/auiV0.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/cloud/index.d.ts +3 -0
- package/dist/react/src/legacy-runtime/cloud/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/cloud/useCloudThreadListRuntime.d.ts +14 -0
- package/dist/react/src/legacy-runtime/cloud/useCloudThreadListRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/hooks/AssistantContext.d.ts +71 -0
- package/dist/react/src/legacy-runtime/hooks/AssistantContext.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/hooks/AttachmentContext.d.ts +836 -0
- package/dist/react/src/legacy-runtime/hooks/AttachmentContext.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/hooks/ComposerContext.d.ts +138 -0
- package/dist/react/src/legacy-runtime/hooks/ComposerContext.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/hooks/MessageContext.d.ts +152 -0
- package/dist/react/src/legacy-runtime/hooks/MessageContext.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/hooks/MessagePartContext.d.ts +41 -0
- package/dist/react/src/legacy-runtime/hooks/MessagePartContext.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/hooks/ThreadContext.d.ts +136 -0
- package/dist/react/src/legacy-runtime/hooks/ThreadContext.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/hooks/ThreadListItemContext.d.ts +41 -0
- package/dist/react/src/legacy-runtime/hooks/ThreadListItemContext.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/AssistantRuntime.d.ts +64 -0
- package/dist/react/src/legacy-runtime/runtime/AssistantRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/AttachmentRuntime.d.ts +63 -0
- package/dist/react/src/legacy-runtime/runtime/AttachmentRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/ComposerRuntime.d.ts +156 -0
- package/dist/react/src/legacy-runtime/runtime/ComposerRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/MessagePartRuntime.d.ts +40 -0
- package/dist/react/src/legacy-runtime/runtime/MessagePartRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/MessageRuntime.d.ts +89 -0
- package/dist/react/src/legacy-runtime/runtime/MessageRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/RuntimeBindings.d.ts +39 -0
- package/dist/react/src/legacy-runtime/runtime/RuntimeBindings.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/RuntimePathTypes.d.ts +64 -0
- package/dist/react/src/legacy-runtime/runtime/RuntimePathTypes.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/ThreadListItemRuntime.d.ts +50 -0
- package/dist/react/src/legacy-runtime/runtime/ThreadListItemRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/ThreadListRuntime.d.ts +44 -0
- package/dist/react/src/legacy-runtime/runtime/ThreadListRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/ThreadRuntime.d.ts +248 -0
- package/dist/react/src/legacy-runtime/runtime/ThreadRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/index.d.ts +9 -0
- package/dist/react/src/legacy-runtime/runtime/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/BaseSubject.d.ts +11 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/BaseSubject.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.d.ts +13 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.d.ts +13 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.d.ts +12 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/SKIP_UPDATE.d.ts +3 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/SKIP_UPDATE.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.d.ts +13 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/Subscribable.d.ts +16 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/Subscribable.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/shallowEqual.d.ts +2 -0
- package/dist/react/src/legacy-runtime/runtime/subscribable/shallowEqual.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts +19 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/AttachmentAdapter.d.ts +64 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/AttachmentAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts +15 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/CompositeAttachmentAdapter.d.ts +13 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/CompositeAttachmentAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/SimpleImageAttachmentAdapter.d.ts +11 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/SimpleImageAttachmentAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/SimpleTextAttachmentAdapter.d.ts +11 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/SimpleTextAttachmentAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/index.d.ts +6 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/attachment/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/feedback/FeedbackAdapter.d.ts +43 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/feedback/FeedbackAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/feedback/index.d.ts +2 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/feedback/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/index.d.ts +7 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/speech/SpeechAdapterTypes.d.ts +88 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/speech/SpeechAdapterTypes.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/speech/WebSpeechSynthesisAdapter.d.ts +5 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/speech/WebSpeechSynthesisAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/speech/index.d.ts +3 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/speech/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/suggestion/SuggestionAdapter.d.ts +10 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/suggestion/SuggestionAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/suggestion/index.d.ts +2 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/suggestion/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/thread-history/MessageFormatAdapter.d.ts +21 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/thread-history/MessageFormatAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/thread-history/ThreadHistoryAdapter.d.ts +16 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/thread-history/ThreadHistoryAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/thread-history/index.d.ts +3 -0
- package/dist/react/src/legacy-runtime/runtime-cores/adapters/thread-history/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/commandQueue.d.ts +12 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/commandQueue.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/index.d.ts +3 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/runManager.d.ts +12 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/runManager.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/types.d.ts +84 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/types.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.d.ts +11 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/useConvertedState.d.ts +4 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/useConvertedState.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/useLatestRef.d.ts +4 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/useLatestRef.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.d.ts +24 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/utils.d.ts +13 -0
- package/dist/react/src/legacy-runtime/runtime-cores/assistant-transport/utils.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts +39 -0
- package/dist/react/src/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts +25 -0
- package/dist/react/src/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts +21 -0
- package/dist/react/src/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts +17 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts +12 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts +64 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts +28 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts +37 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts +92 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/index.d.ts +2 -0
- package/dist/react/src/legacy-runtime/runtime-cores/core/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts +79 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts +9 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts +42 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts +44 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts +7 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts +34 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/auto-status.d.ts +5 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/auto-status.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts +17 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts +33 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.d.ts +9 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/index.d.ts +7 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts +4 -0
- package/dist/react/src/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/index.d.ts +8 -0
- package/dist/react/src/legacy-runtime/runtime-cores/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts +37 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts +11 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts +46 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts +46 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts +51 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/index.d.ts +4 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/shouldContinue.d.ts +3 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/shouldContinue.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts +6 -0
- package/dist/react/src/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts +8 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts +3 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts +23 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts +89 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts +133 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts +13 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts +13 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/index.d.ts +5 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/index.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts +33 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts +4 -0
- package/dist/react/src/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts +163 -0
- package/dist/react/src/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts.map +1 -0
- package/dist/react/src/legacy-runtime/util-hooks/tapSubscribable.d.ts +3 -0
- package/dist/react/src/legacy-runtime/util-hooks/tapSubscribable.d.ts.map +1 -0
- package/dist/react/src/model-context/ModelContextTypes.d.ts +29 -0
- package/dist/react/src/model-context/ModelContextTypes.d.ts.map +1 -0
- package/dist/react/src/model-context/frame/AssistantFrameHost.d.ts +37 -0
- package/dist/react/src/model-context/frame/AssistantFrameHost.d.ts.map +1 -0
- package/dist/react/src/model-context/frame/AssistantFrameProvider.d.ts +41 -0
- package/dist/react/src/model-context/frame/AssistantFrameProvider.d.ts.map +1 -0
- package/dist/react/src/model-context/frame/AssistantFrameTypes.d.ts +29 -0
- package/dist/react/src/model-context/frame/AssistantFrameTypes.d.ts.map +1 -0
- package/dist/react/src/model-context/frame/index.d.ts +5 -0
- package/dist/react/src/model-context/frame/index.d.ts.map +1 -0
- package/dist/react/src/model-context/frame/useAssistantFrameHost.d.ts +28 -0
- package/dist/react/src/model-context/frame/useAssistantFrameHost.d.ts.map +1 -0
- package/dist/react/src/model-context/index.d.ts +15 -0
- package/dist/react/src/model-context/index.d.ts.map +1 -0
- package/dist/react/src/model-context/makeAssistantTool.d.ts +7 -0
- package/dist/react/src/model-context/makeAssistantTool.d.ts.map +1 -0
- package/dist/react/src/model-context/makeAssistantToolUI.d.ts +7 -0
- package/dist/react/src/model-context/makeAssistantToolUI.d.ts.map +1 -0
- package/dist/react/src/model-context/makeAssistantVisible.d.ts +7 -0
- package/dist/react/src/model-context/makeAssistantVisible.d.ts.map +1 -0
- package/dist/react/src/model-context/registry/ModelContextRegistry.d.ts +19 -0
- package/dist/react/src/model-context/registry/ModelContextRegistry.d.ts.map +1 -0
- package/dist/react/src/model-context/registry/ModelContextRegistryHandles.d.ts +14 -0
- package/dist/react/src/model-context/registry/ModelContextRegistryHandles.d.ts.map +1 -0
- package/dist/react/src/model-context/registry/index.d.ts +3 -0
- package/dist/react/src/model-context/registry/index.d.ts.map +1 -0
- package/dist/react/src/model-context/tool.d.ts +3 -0
- package/dist/react/src/model-context/tool.d.ts.map +1 -0
- package/dist/react/src/model-context/toolbox.d.ts +10 -0
- package/dist/react/src/model-context/toolbox.d.ts.map +1 -0
- package/dist/react/src/model-context/useAssistantInstructions.d.ts +6 -0
- package/dist/react/src/model-context/useAssistantInstructions.d.ts.map +1 -0
- package/dist/react/src/model-context/useAssistantTool.d.ts +8 -0
- package/dist/react/src/model-context/useAssistantTool.d.ts.map +1 -0
- package/dist/react/src/model-context/useAssistantToolUI.d.ts +7 -0
- package/dist/react/src/model-context/useAssistantToolUI.d.ts.map +1 -0
- package/dist/react/src/model-context/useInlineRender.d.ts +4 -0
- package/dist/react/src/model-context/useInlineRender.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/ActionBarCopy.d.ts +57 -0
- package/dist/react/src/primitives/actionBar/ActionBarCopy.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/ActionBarEdit.d.ts +49 -0
- package/dist/react/src/primitives/actionBar/ActionBarEdit.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/ActionBarFeedbackNegative.d.ts +11 -0
- package/dist/react/src/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/ActionBarFeedbackPositive.d.ts +11 -0
- package/dist/react/src/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/ActionBarReload.d.ts +50 -0
- package/dist/react/src/primitives/actionBar/ActionBarReload.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/ActionBarRoot.d.ts +76 -0
- package/dist/react/src/primitives/actionBar/ActionBarRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/ActionBarSpeak.d.ts +11 -0
- package/dist/react/src/primitives/actionBar/ActionBarSpeak.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/ActionBarStopSpeaking.d.ts +11 -0
- package/dist/react/src/primitives/actionBar/ActionBarStopSpeaking.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/index.d.ts +9 -0
- package/dist/react/src/primitives/actionBar/index.d.ts.map +1 -0
- package/dist/react/src/primitives/actionBar/useActionBarFloatStatus.d.ts +12 -0
- package/dist/react/src/primitives/actionBar/useActionBarFloatStatus.d.ts.map +1 -0
- package/dist/react/src/primitives/assistantModal/AssistantModalAnchor.d.ts +8 -0
- package/dist/react/src/primitives/assistantModal/AssistantModalAnchor.d.ts.map +1 -0
- package/dist/react/src/primitives/assistantModal/AssistantModalContent.d.ts +14 -0
- package/dist/react/src/primitives/assistantModal/AssistantModalContent.d.ts.map +1 -0
- package/dist/react/src/primitives/assistantModal/AssistantModalRoot.d.ts +9 -0
- package/dist/react/src/primitives/assistantModal/AssistantModalRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/assistantModal/AssistantModalTrigger.d.ts +8 -0
- package/dist/react/src/primitives/assistantModal/AssistantModalTrigger.d.ts.map +1 -0
- package/dist/react/src/primitives/assistantModal/index.d.ts +5 -0
- package/dist/react/src/primitives/assistantModal/index.d.ts.map +1 -0
- package/dist/react/src/primitives/assistantModal/scope.d.ts +7 -0
- package/dist/react/src/primitives/assistantModal/scope.d.ts.map +1 -0
- package/dist/react/src/primitives/attachment/AttachmentName.d.ts +6 -0
- package/dist/react/src/primitives/attachment/AttachmentName.d.ts.map +1 -0
- package/dist/react/src/primitives/attachment/AttachmentRemove.d.ts +11 -0
- package/dist/react/src/primitives/attachment/AttachmentRemove.d.ts.map +1 -0
- package/dist/react/src/primitives/attachment/AttachmentRoot.d.ts +30 -0
- package/dist/react/src/primitives/attachment/AttachmentRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/attachment/AttachmentThumb.d.ts +12 -0
- package/dist/react/src/primitives/attachment/AttachmentThumb.d.ts.map +1 -0
- package/dist/react/src/primitives/attachment/index.d.ts +5 -0
- package/dist/react/src/primitives/attachment/index.d.ts.map +1 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerCount.d.ts +23 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerNext.d.ts +28 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerNumber.d.ts +6 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerPrevious.d.ts +49 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerRoot.d.ts +41 -0
- package/dist/react/src/primitives/branchPicker/BranchPickerRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/branchPicker/index.d.ts +6 -0
- package/dist/react/src/primitives/branchPicker/index.d.ts.map +1 -0
- package/dist/react/src/primitives/composer/ComposerAddAttachment.d.ts +17 -0
- package/dist/react/src/primitives/composer/ComposerAddAttachment.d.ts.map +1 -0
- package/dist/react/src/primitives/composer/ComposerAttachments.d.ts +37 -0
- package/dist/react/src/primitives/composer/ComposerAttachments.d.ts.map +1 -0
- package/dist/react/src/primitives/composer/ComposerCancel.d.ts +28 -0
- package/dist/react/src/primitives/composer/ComposerCancel.d.ts.map +1 -0
- package/dist/react/src/primitives/composer/ComposerIf.d.ts +12 -0
- package/dist/react/src/primitives/composer/ComposerIf.d.ts.map +1 -0
- package/dist/react/src/primitives/composer/ComposerInput.d.ts +95 -0
- package/dist/react/src/primitives/composer/ComposerInput.d.ts.map +1 -0
- package/dist/react/src/primitives/composer/ComposerRoot.d.ts +29 -0
- package/dist/react/src/primitives/composer/ComposerRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/composer/ComposerSend.d.ts +28 -0
- package/dist/react/src/primitives/composer/ComposerSend.d.ts.map +1 -0
- package/dist/react/src/primitives/composer/index.d.ts +9 -0
- package/dist/react/src/primitives/composer/index.d.ts.map +1 -0
- package/dist/react/src/primitives/error/ErrorMessage.d.ts +10 -0
- package/dist/react/src/primitives/error/ErrorMessage.d.ts.map +1 -0
- package/dist/react/src/primitives/error/ErrorRoot.d.ts +10 -0
- package/dist/react/src/primitives/error/ErrorRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/error/index.d.ts +3 -0
- package/dist/react/src/primitives/error/index.d.ts.map +1 -0
- package/dist/react/src/primitives/index.d.ts +20 -0
- package/dist/react/src/primitives/index.d.ts.map +1 -0
- package/dist/react/src/primitives/message/MessageAttachments.d.ts +37 -0
- package/dist/react/src/primitives/message/MessageAttachments.d.ts.map +1 -0
- package/dist/react/src/primitives/message/MessageError.d.ts +3 -0
- package/dist/react/src/primitives/message/MessageError.d.ts.map +1 -0
- package/dist/react/src/primitives/message/MessageIf.d.ts +22 -0
- package/dist/react/src/primitives/message/MessageIf.d.ts.map +1 -0
- package/dist/react/src/primitives/message/MessageParts.d.ts +170 -0
- package/dist/react/src/primitives/message/MessageParts.d.ts.map +1 -0
- package/dist/react/src/primitives/message/MessagePartsGrouped.d.ts +182 -0
- package/dist/react/src/primitives/message/MessagePartsGrouped.d.ts.map +1 -0
- package/dist/react/src/primitives/message/MessageRoot.d.ts +32 -0
- package/dist/react/src/primitives/message/MessageRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/message/index.d.ts +10 -0
- package/dist/react/src/primitives/message/index.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/MessagePartImage.d.ts +29 -0
- package/dist/react/src/primitives/messagePart/MessagePartImage.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/MessagePartInProgress.d.ts +6 -0
- package/dist/react/src/primitives/messagePart/MessagePartInProgress.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/MessagePartText.d.ts +50 -0
- package/dist/react/src/primitives/messagePart/MessagePartText.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/index.d.ts +4 -0
- package/dist/react/src/primitives/messagePart/index.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/useMessagePartData.d.ts +3 -0
- package/dist/react/src/primitives/messagePart/useMessagePartData.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/useMessagePartFile.d.ts +5 -0
- package/dist/react/src/primitives/messagePart/useMessagePartFile.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/useMessagePartImage.d.ts +5 -0
- package/dist/react/src/primitives/messagePart/useMessagePartImage.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/useMessagePartReasoning.d.ts +5 -0
- package/dist/react/src/primitives/messagePart/useMessagePartReasoning.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/useMessagePartSource.d.ts +5 -0
- package/dist/react/src/primitives/messagePart/useMessagePartSource.d.ts.map +1 -0
- package/dist/react/src/primitives/messagePart/useMessagePartText.d.ts +7 -0
- package/dist/react/src/primitives/messagePart/useMessagePartText.d.ts.map +1 -0
- package/dist/react/src/primitives/reasoning/index.d.ts +2 -0
- package/dist/react/src/primitives/reasoning/index.d.ts.map +1 -0
- package/dist/react/src/primitives/reasoning/useScrollLock.d.ts +29 -0
- package/dist/react/src/primitives/reasoning/useScrollLock.d.ts.map +1 -0
- package/dist/react/src/primitives/thread/ThreadEmpty.d.ts +6 -0
- package/dist/react/src/primitives/thread/ThreadEmpty.d.ts.map +1 -0
- package/dist/react/src/primitives/thread/ThreadIf.d.ts +14 -0
- package/dist/react/src/primitives/thread/ThreadIf.d.ts.map +1 -0
- package/dist/react/src/primitives/thread/ThreadMessages.d.ts +95 -0
- package/dist/react/src/primitives/thread/ThreadMessages.d.ts.map +1 -0
- package/dist/react/src/primitives/thread/ThreadRoot.d.ts +29 -0
- package/dist/react/src/primitives/thread/ThreadRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/thread/ThreadScrollToBottom.d.ts +11 -0
- package/dist/react/src/primitives/thread/ThreadScrollToBottom.d.ts.map +1 -0
- package/dist/react/src/primitives/thread/ThreadSuggestion.d.ts +51 -0
- package/dist/react/src/primitives/thread/ThreadSuggestion.d.ts.map +1 -0
- package/dist/react/src/primitives/thread/ThreadViewport.d.ts +38 -0
- package/dist/react/src/primitives/thread/ThreadViewport.d.ts.map +1 -0
- package/dist/react/src/primitives/thread/index.d.ts +9 -0
- package/dist/react/src/primitives/thread/index.d.ts.map +1 -0
- package/dist/react/src/primitives/thread/useThreadViewportAutoScroll.d.ts +8 -0
- package/dist/react/src/primitives/thread/useThreadViewportAutoScroll.d.ts.map +1 -0
- package/dist/react/src/primitives/threadList/ThreadListItems.d.ts +35 -0
- package/dist/react/src/primitives/threadList/ThreadListItems.d.ts.map +1 -0
- package/dist/react/src/primitives/threadList/ThreadListNew.d.ts +9 -0
- package/dist/react/src/primitives/threadList/ThreadListNew.d.ts.map +1 -0
- package/dist/react/src/primitives/threadList/ThreadListRoot.d.ts +12 -0
- package/dist/react/src/primitives/threadList/ThreadListRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/threadList/index.d.ts +5 -0
- package/dist/react/src/primitives/threadList/index.d.ts.map +1 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemArchive.d.ts +11 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemDelete.d.ts +11 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemRoot.d.ts +12 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemTitle.d.ts +8 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemTitle.d.ts.map +1 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemTrigger.d.ts +11 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemUnarchive.d.ts +11 -0
- package/dist/react/src/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -0
- package/dist/react/src/primitives/threadListItem/index.d.ts +7 -0
- package/dist/react/src/primitives/threadListItem/index.d.ts.map +1 -0
- package/dist/react/src/types/AssistantTypes.d.ts +108 -0
- package/dist/react/src/types/AssistantTypes.d.ts.map +1 -0
- package/dist/react/src/types/AttachmentTypes.d.ts +35 -0
- package/dist/react/src/types/AttachmentTypes.d.ts.map +1 -0
- package/dist/react/src/types/EventTypes.d.ts +57 -0
- package/dist/react/src/types/EventTypes.d.ts.map +1 -0
- package/dist/react/src/types/MessagePartComponentTypes.d.ts +31 -0
- package/dist/react/src/types/MessagePartComponentTypes.d.ts.map +1 -0
- package/dist/react/src/types/MessagePartTypes.d.ts +62 -0
- package/dist/react/src/types/MessagePartTypes.d.ts.map +1 -0
- package/dist/react/src/types/Unsubscribe.d.ts +2 -0
- package/dist/react/src/types/Unsubscribe.d.ts.map +1 -0
- package/dist/react/src/types/index.d.ts +7 -0
- package/dist/react/src/types/index.d.ts.map +1 -0
- package/dist/react/src/utils/CompositeContextProvider.d.ts +10 -0
- package/dist/react/src/utils/CompositeContextProvider.d.ts.map +1 -0
- package/dist/react/src/utils/RequireAtLeastOne.d.ts +4 -0
- package/dist/react/src/utils/RequireAtLeastOne.d.ts.map +1 -0
- package/dist/react/src/utils/createActionButton.d.ts +11 -0
- package/dist/react/src/utils/createActionButton.d.ts.map +1 -0
- package/dist/react/src/utils/getThreadMessageText.d.ts +3 -0
- package/dist/react/src/utils/getThreadMessageText.d.ts.map +1 -0
- package/dist/react/src/utils/hooks/useManagedRef.d.ts +2 -0
- package/dist/react/src/utils/hooks/useManagedRef.d.ts.map +1 -0
- package/dist/react/src/utils/hooks/useOnResizeContent.d.ts +2 -0
- package/dist/react/src/utils/hooks/useOnResizeContent.d.ts.map +1 -0
- package/dist/react/src/utils/hooks/useOnScrollToBottom.d.ts +2 -0
- package/dist/react/src/utils/hooks/useOnScrollToBottom.d.ts.map +1 -0
- package/dist/react/src/utils/idUtils.d.ts +4 -0
- package/dist/react/src/utils/idUtils.d.ts.map +1 -0
- package/dist/react/src/utils/json/is-json.d.ts +5 -0
- package/dist/react/src/utils/json/is-json.d.ts.map +1 -0
- package/dist/react/src/utils/smooth/SmoothContext.d.ts +87 -0
- package/dist/react/src/utils/smooth/SmoothContext.d.ts.map +1 -0
- package/dist/react/src/utils/smooth/index.d.ts +3 -0
- package/dist/react/src/utils/smooth/index.d.ts.map +1 -0
- package/dist/react/src/utils/smooth/useSmooth.d.ts +4 -0
- package/dist/react/src/utils/smooth/useSmooth.d.ts.map +1 -0
- package/dist/react/src/utils/tap-store/derived-scopes.d.ts +81 -0
- package/dist/react/src/utils/tap-store/derived-scopes.d.ts.map +1 -0
- package/dist/react/src/utils/tap-store/index.d.ts +4 -0
- package/dist/react/src/utils/tap-store/index.d.ts.map +1 -0
- package/dist/react/src/utils/tap-store/store.d.ts +19 -0
- package/dist/react/src/utils/tap-store/store.d.ts.map +1 -0
- package/dist/react/src/utils/tap-store/tap-api.d.ts +13 -0
- package/dist/react/src/utils/tap-store/tap-api.d.ts.map +1 -0
- package/dist/react-ag-ui/src/index.d.ts +3 -0
- package/dist/react-ag-ui/src/index.d.ts.map +1 -0
- package/dist/react-ag-ui/src/runtime/AgUiThreadRuntimeCore.d.ts +73 -0
- package/dist/react-ag-ui/src/runtime/AgUiThreadRuntimeCore.d.ts.map +1 -0
- package/dist/react-ag-ui/src/runtime/adapter/conversions.d.ts +35 -0
- package/dist/react-ag-ui/src/runtime/adapter/conversions.d.ts.map +1 -0
- package/dist/react-ag-ui/src/runtime/adapter/run-aggregator.d.ts +46 -0
- package/dist/react-ag-ui/src/runtime/adapter/run-aggregator.d.ts.map +1 -0
- package/dist/react-ag-ui/src/runtime/adapter/subscriber.d.ts +77 -0
- package/dist/react-ag-ui/src/runtime/adapter/subscriber.d.ts.map +1 -0
- package/dist/react-ag-ui/src/runtime/event-parser.d.ts +3 -0
- package/dist/react-ag-ui/src/runtime/event-parser.d.ts.map +1 -0
- package/dist/react-ag-ui/src/runtime/logger.d.ts +6 -0
- package/dist/react-ag-ui/src/runtime/logger.d.ts.map +1 -0
- package/dist/react-ag-ui/src/runtime/types.d.ts +98 -0
- package/dist/react-ag-ui/src/runtime/types.d.ts.map +1 -0
- package/dist/react-ag-ui/src/useAgUiRuntime.d.ts +4 -0
- package/dist/react-ag-ui/src/useAgUiRuntime.d.ts.map +1 -0
- package/dist/runtime/AgUiThreadRuntimeCore.js +376 -0
- package/dist/runtime/AgUiThreadRuntimeCore.js.map +1 -0
- package/dist/runtime/adapter/conversions.js +92 -0
- package/dist/runtime/adapter/conversions.js.map +1 -0
- package/dist/runtime/adapter/run-aggregator.js +302 -0
- package/dist/runtime/adapter/run-aggregator.js.map +1 -0
- package/dist/runtime/adapter/subscriber.js +66 -0
- package/dist/runtime/adapter/subscriber.js.map +1 -0
- package/dist/runtime/event-parser.js +158 -0
- package/dist/runtime/event-parser.js.map +1 -0
- package/dist/runtime/logger.js +9 -0
- package/dist/runtime/logger.js.map +1 -0
- package/dist/runtime/types.js +1 -0
- package/dist/runtime/types.js.map +1 -0
- package/dist/useAgUiRuntime.js +80 -0
- package/dist/useAgUiRuntime.js.map +1 -0
- package/package.json +63 -0
- package/src/index.ts +2 -0
- package/src/runtime/AgUiThreadRuntimeCore.ts +484 -0
- package/src/runtime/adapter/conversions.ts +165 -0
- package/src/runtime/adapter/run-aggregator.ts +376 -0
- package/src/runtime/adapter/subscriber.ts +134 -0
- package/src/runtime/event-parser.ts +172 -0
- package/src/runtime/logger.ts +9 -0
- package/src/runtime/types.ts +66 -0
- package/src/useAgUiRuntime.ts +101 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton";
|
|
2
|
+
/**
|
|
3
|
+
* Hook that provides navigation to the previous branch functionality.
|
|
4
|
+
*
|
|
5
|
+
* This hook returns a callback function that switches to the previous branch
|
|
6
|
+
* in the message branch tree, or null if there is no previous branch available.
|
|
7
|
+
*
|
|
8
|
+
* @returns A previous branch callback function, or null if navigation is disabled
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* function CustomPreviousButton() {
|
|
13
|
+
* const previous = useBranchPickerPrevious();
|
|
14
|
+
*
|
|
15
|
+
* return (
|
|
16
|
+
* <button onClick={previous} disabled={!previous}>
|
|
17
|
+
* {previous ? "Previous Branch" : "No Previous Branch"}
|
|
18
|
+
* </button>
|
|
19
|
+
* );
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const useBranchPickerPrevious: () => (() => void) | null;
|
|
24
|
+
export declare namespace BranchPickerPrimitivePrevious {
|
|
25
|
+
type Element = ActionButtonElement;
|
|
26
|
+
/**
|
|
27
|
+
* Props for the BranchPickerPrimitive.Previous component.
|
|
28
|
+
* Inherits all button element props and action button functionality.
|
|
29
|
+
*/
|
|
30
|
+
type Props = ActionButtonProps<typeof useBranchPickerPrevious>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A button component that navigates to the previous branch in the message tree.
|
|
34
|
+
*
|
|
35
|
+
* This component automatically handles switching to the previous available branch
|
|
36
|
+
* and is disabled when there are no previous branches to navigate to.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <BranchPickerPrimitive.Previous>
|
|
41
|
+
* ← Previous
|
|
42
|
+
* </BranchPickerPrimitive.Previous>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare const BranchPickerPrimitivePrevious: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
46
|
+
asChild?: boolean;
|
|
47
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=BranchPickerPrevious.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BranchPickerPrevious.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/branchPicker/BranchPickerPrevious.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,MAAM,gCAAgC,CAAC;AAIxC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,uBAAuB,2BAoB5B,CAAC;AAEF,yBAAiB,6BAA6B,CAAC;IAC7C,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,uBAAuB,CAAC,CAAC;CACvE;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,6BAA6B;;6DAGzC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Primitive } from "@radix-ui/react-primitive";
|
|
2
|
+
import { type ComponentRef, ComponentPropsWithoutRef } from "react";
|
|
3
|
+
export declare namespace BranchPickerPrimitiveRoot {
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.div>;
|
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.div> & {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to hide the branch picker when there's only one branch available.
|
|
8
|
+
* When true, the component will only render when multiple branches exist.
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
hideWhenSingleBranch?: boolean | undefined;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The root container for branch picker components.
|
|
16
|
+
*
|
|
17
|
+
* This component provides a container for branch navigation controls,
|
|
18
|
+
* with optional conditional rendering based on the number of available branches.
|
|
19
|
+
* It integrates with the message branching system to allow users to navigate
|
|
20
|
+
* between different response variations.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <BranchPickerPrimitive.Root hideWhenSingleBranch={true}>
|
|
25
|
+
* <BranchPickerPrimitive.Previous />
|
|
26
|
+
* <BranchPickerPrimitive.Count />
|
|
27
|
+
* <BranchPickerPrimitive.Next />
|
|
28
|
+
* </BranchPickerPrimitive.Root>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const BranchPickerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}, "ref"> & {
|
|
34
|
+
/**
|
|
35
|
+
* Whether to hide the branch picker when there's only one branch available.
|
|
36
|
+
* When true, the component will only render when multiple branches exist.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
hideWhenSingleBranch?: boolean | undefined;
|
|
40
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
41
|
+
//# sourceMappingURL=BranchPickerRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BranchPickerRoot.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/branchPicker/BranchPickerRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGhF,yBAAiB,yBAAyB,CAAC;IACzC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,GAAG;QACnE;;;;WAIG;QACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC5C,CAAC;CACH;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,yBAAyB;;;IA1BlC;;;;OAIG;2BACoB,OAAO,GAAG,SAAS;kDA8B5C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BranchPickerPrimitiveNext as Next } from "./BranchPickerNext";
|
|
2
|
+
export { BranchPickerPrimitivePrevious as Previous } from "./BranchPickerPrevious";
|
|
3
|
+
export { BranchPickerPrimitiveCount as Count } from "./BranchPickerCount";
|
|
4
|
+
export { BranchPickerPrimitiveNumber as Number } from "./BranchPickerNumber";
|
|
5
|
+
export { BranchPickerPrimitiveRoot as Root } from "./BranchPickerRoot";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/branchPicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,IAAI,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,6BAA6B,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,0BAA0B,IAAI,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,2BAA2B,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,yBAAyB,IAAI,IAAI,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton";
|
|
2
|
+
declare const useComposerAddAttachment: ({ multiple, }?: {
|
|
3
|
+
/** allow selecting multiple files */
|
|
4
|
+
multiple?: boolean | undefined;
|
|
5
|
+
}) => (() => void) | null;
|
|
6
|
+
export declare namespace ComposerPrimitiveAddAttachment {
|
|
7
|
+
type Element = ActionButtonElement;
|
|
8
|
+
type Props = ActionButtonProps<typeof useComposerAddAttachment>;
|
|
9
|
+
}
|
|
10
|
+
export declare const ComposerPrimitiveAddAttachment: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
11
|
+
asChild?: boolean;
|
|
12
|
+
}, "ref"> & {
|
|
13
|
+
/** allow selecting multiple files */
|
|
14
|
+
multiple?: boolean | undefined;
|
|
15
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ComposerAddAttachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerAddAttachment.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/composer/ComposerAddAttachment.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,MAAM,gCAAgC,CAAC;AAIxC,QAAA,MAAM,wBAAwB,GAAI,gBAE/B;IACD,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3B,wBAsCL,CAAC;AAEF,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,wBAAwB,CAAC,CAAC;CACxE;AAED,eAAO,MAAM,8BAA8B;;;IA/CzC,qCAAqC;eAC1B,OAAO,GAAG,SAAS;qDAkD/B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentType, type FC } from "react";
|
|
2
|
+
export declare namespace ComposerPrimitiveAttachments {
|
|
3
|
+
type Props = {
|
|
4
|
+
components: {
|
|
5
|
+
Image?: ComponentType | undefined;
|
|
6
|
+
Document?: ComponentType | undefined;
|
|
7
|
+
File?: ComponentType | undefined;
|
|
8
|
+
Attachment?: ComponentType | undefined;
|
|
9
|
+
} | undefined;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare namespace ComposerPrimitiveAttachmentByIndex {
|
|
13
|
+
type Props = {
|
|
14
|
+
index: number;
|
|
15
|
+
components?: ComposerPrimitiveAttachments.Props["components"];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders a single attachment at the specified index within the composer.
|
|
20
|
+
*
|
|
21
|
+
* This component provides direct access to render a specific attachment
|
|
22
|
+
* from the composer's attachment list using the provided component configuration.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <ComposerPrimitive.AttachmentByIndex
|
|
27
|
+
* index={0}
|
|
28
|
+
* components={{
|
|
29
|
+
* Image: MyImageAttachment,
|
|
30
|
+
* Document: MyDocumentAttachment
|
|
31
|
+
* }}
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const ComposerPrimitiveAttachmentByIndex: FC<ComposerPrimitiveAttachmentByIndex.Props>;
|
|
36
|
+
export declare const ComposerPrimitiveAttachments: FC<ComposerPrimitiveAttachments.Props>;
|
|
37
|
+
//# sourceMappingURL=ComposerAttachments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerAttachments.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/composer/ComposerAttachments.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,EAAiB,MAAM,OAAO,CAAC;AAO9D,yBAAiB,4BAA4B,CAAC;IAC5C,KAAY,KAAK,GAAG;QAClB,UAAU,EACN;YACE,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;YAClC,QAAQ,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;YACrC,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;YACjC,UAAU,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;SACxC,GACD,SAAS,CAAC;KACf,CAAC;CACH;AA+BD,yBAAiB,kCAAkC,CAAC;IAClD,KAAY,KAAK,GAAG;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,4BAA4B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;KAC/D,CAAC;CACH;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,kCAAkC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAezF,CAAC;AAKJ,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAC3C,4BAA4B,CAAC,KAAK,CAiBnC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton";
|
|
2
|
+
declare const useComposerCancel: () => (() => void) | null;
|
|
3
|
+
export declare namespace ComposerPrimitiveCancel {
|
|
4
|
+
type Element = ActionButtonElement;
|
|
5
|
+
/**
|
|
6
|
+
* Props for the ComposerPrimitive.Cancel component.
|
|
7
|
+
* Inherits all button element props and action button functionality.
|
|
8
|
+
*/
|
|
9
|
+
type Props = ActionButtonProps<typeof useComposerCancel>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A button component that cancels the current message composition.
|
|
13
|
+
*
|
|
14
|
+
* This component automatically handles the cancel functionality and is disabled
|
|
15
|
+
* when canceling is not available.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <ComposerPrimitive.Cancel>
|
|
20
|
+
* Cancel
|
|
21
|
+
* </ComposerPrimitive.Cancel>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const ComposerPrimitiveCancel: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=ComposerCancel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerCancel.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/composer/ComposerCancel.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,MAAM,gCAAgC,CAAC;AAIxC,QAAA,MAAM,iBAAiB,2BAUtB,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,CAAC;CACjE;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;6DAGnC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC, PropsWithChildren } from "react";
|
|
2
|
+
import type { RequireAtLeastOne } from "../../utils/RequireAtLeastOne";
|
|
3
|
+
type ComposerIfFilters = {
|
|
4
|
+
editing: boolean | undefined;
|
|
5
|
+
};
|
|
6
|
+
export type UseComposerIfProps = RequireAtLeastOne<ComposerIfFilters>;
|
|
7
|
+
export declare namespace ComposerPrimitiveIf {
|
|
8
|
+
type Props = PropsWithChildren<UseComposerIfProps>;
|
|
9
|
+
}
|
|
10
|
+
export declare const ComposerPrimitiveIf: FC<ComposerPrimitiveIf.Props>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=ComposerIf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerIf.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/composer/ComposerIf.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;AAWtE,yBAAiB,mBAAmB,CAAC;IACnC,KAAY,KAAK,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAM7D,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { type TextareaAutosizeProps } from "react-textarea-autosize";
|
|
2
|
+
export declare namespace ComposerPrimitiveInput {
|
|
3
|
+
type Element = HTMLTextAreaElement;
|
|
4
|
+
type Props = TextareaAutosizeProps & {
|
|
5
|
+
/**
|
|
6
|
+
* Whether to render as a child component using Slot.
|
|
7
|
+
* When true, the component will merge its props with its child.
|
|
8
|
+
*/
|
|
9
|
+
asChild?: boolean | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to submit the message when Enter is pressed (without Shift).
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
submitOnEnter?: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to cancel message composition when Escape is pressed.
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
cancelOnEscape?: boolean | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to automatically focus the input when a new run starts.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Whether to automatically focus the input when scrolling to bottom.
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to automatically focus the input when switching threads.
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to automatically add pasted files as attachments.
|
|
37
|
+
* @default true
|
|
38
|
+
*/
|
|
39
|
+
addAttachmentOnPaste?: boolean | undefined;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A text input component for composing messages.
|
|
44
|
+
*
|
|
45
|
+
* This component provides a rich text input experience with automatic resizing,
|
|
46
|
+
* keyboard shortcuts, file paste support, and intelligent focus management.
|
|
47
|
+
* It integrates with the composer context to manage message state and submission.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <ComposerPrimitive.Input
|
|
52
|
+
* placeholder="Type your message..."
|
|
53
|
+
* submitOnEnter={true}
|
|
54
|
+
* addAttachmentOnPaste={true}
|
|
55
|
+
* />
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare const ComposerPrimitiveInput: import("react").ForwardRefExoticComponent<TextareaAutosizeProps & {
|
|
59
|
+
/**
|
|
60
|
+
* Whether to render as a child component using Slot.
|
|
61
|
+
* When true, the component will merge its props with its child.
|
|
62
|
+
*/
|
|
63
|
+
asChild?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Whether to submit the message when Enter is pressed (without Shift).
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
submitOnEnter?: boolean | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Whether to cancel message composition when Escape is pressed.
|
|
71
|
+
* @default true
|
|
72
|
+
*/
|
|
73
|
+
cancelOnEscape?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Whether to automatically focus the input when a new run starts.
|
|
76
|
+
* @default true
|
|
77
|
+
*/
|
|
78
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Whether to automatically focus the input when scrolling to bottom.
|
|
81
|
+
* @default true
|
|
82
|
+
*/
|
|
83
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Whether to automatically focus the input when switching threads.
|
|
86
|
+
* @default true
|
|
87
|
+
*/
|
|
88
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Whether to automatically add pasted files as attachments.
|
|
91
|
+
* @default true
|
|
92
|
+
*/
|
|
93
|
+
addAttachmentOnPaste?: boolean | undefined;
|
|
94
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
95
|
+
//# sourceMappingURL=ComposerInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerInput.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/composer/ComposerInput.tsx"],"names":[],"mappings":"AAaA,OAAyB,EACvB,KAAK,qBAAqB,EAC3B,MAAM,yBAAyB,CAAC;AAKjC,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,qBAAqB,GAAG;QAC1C;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B;;;WAGG;QACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACpC;;;WAGG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrC;;;WAGG;QACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC/C;;;WAGG;QACH,8BAA8B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrD;;;WAGG;QACH,8BAA8B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrD;;;WAGG;QACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC5C,CAAC;CACH;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB;IAtD/B;;;OAGG;cACO,OAAO,GAAG,SAAS;IAC7B;;;OAGG;oBACa,OAAO,GAAG,SAAS;IACnC;;;OAGG;qBACc,OAAO,GAAG,SAAS;IACpC;;;OAGG;+BACwB,OAAO,GAAG,SAAS;IAC9C;;;OAGG;qCAC8B,OAAO,GAAG,SAAS;IACpD;;;OAGG;qCAC8B,OAAO,GAAG,SAAS;IACpD;;;OAGG;2BACoB,OAAO,GAAG,SAAS;uDA6J7C,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Primitive } from "@radix-ui/react-primitive";
|
|
2
|
+
import { type ComponentRef, ComponentPropsWithoutRef } from "react";
|
|
3
|
+
export declare namespace ComposerPrimitiveRoot {
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.form>;
|
|
5
|
+
/**
|
|
6
|
+
* Props for the ComposerPrimitive.Root component.
|
|
7
|
+
* Accepts all standard form element props.
|
|
8
|
+
*/
|
|
9
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.form>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The root form container for message composition.
|
|
13
|
+
*
|
|
14
|
+
* This component provides a form wrapper that handles message submission when the form
|
|
15
|
+
* is submitted (e.g., via Enter key or submit button). It automatically prevents the
|
|
16
|
+
* default form submission and triggers the composer's send functionality.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <ComposerPrimitive.Root>
|
|
21
|
+
* <ComposerPrimitive.Input placeholder="Type your message..." />
|
|
22
|
+
* <ComposerPrimitive.Send>Send</ComposerPrimitive.Send>
|
|
23
|
+
* </ComposerPrimitive.Root>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const ComposerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLFormElement> & import("react").FormHTMLAttributes<HTMLFormElement> & {
|
|
27
|
+
asChild?: boolean;
|
|
28
|
+
}, "ref"> & import("react").RefAttributes<HTMLFormElement>>;
|
|
29
|
+
//# sourceMappingURL=ComposerRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerRoot.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/composer/ComposerRoot.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EACL,KAAK,YAAY,EAGjB,wBAAwB,EACzB,MAAM,OAAO,CAAC;AAGf,yBAAiB,qBAAqB,CAAC;IACrC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D;;;OAGG;IACH,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB;;2DAoBhC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton";
|
|
2
|
+
export declare const useComposerSend: () => (() => void) | null;
|
|
3
|
+
export declare namespace ComposerPrimitiveSend {
|
|
4
|
+
type Element = ActionButtonElement;
|
|
5
|
+
/**
|
|
6
|
+
* Props for the ComposerPrimitive.Send component.
|
|
7
|
+
* Inherits all button element props and action button functionality.
|
|
8
|
+
*/
|
|
9
|
+
type Props = ActionButtonProps<typeof useComposerSend>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A button component that sends the current message in the composer.
|
|
13
|
+
*
|
|
14
|
+
* This component automatically handles the send functionality and is disabled
|
|
15
|
+
* when sending is not available (e.g., when the thread is running, the composer
|
|
16
|
+
* is empty, or not in editing mode).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <ComposerPrimitive.Send>
|
|
21
|
+
* Send Message
|
|
22
|
+
* </ComposerPrimitive.Send>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const ComposerPrimitiveSend: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
26
|
+
asChild?: boolean;
|
|
27
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
//# sourceMappingURL=ComposerSend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerSend.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/composer/ComposerSend.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,MAAM,gCAAgC,CAAC;AAIxC,eAAO,MAAM,eAAe,2BAa3B,CAAC;AAEF,yBAAiB,qBAAqB,CAAC;IACrC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,eAAe,CAAC,CAAC;CAC/D;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB;;6DAGjC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { ComposerPrimitiveRoot as Root } from "./ComposerRoot";
|
|
2
|
+
export { ComposerPrimitiveInput as Input } from "./ComposerInput";
|
|
3
|
+
export { ComposerPrimitiveSend as Send } from "./ComposerSend";
|
|
4
|
+
export { ComposerPrimitiveCancel as Cancel } from "./ComposerCancel";
|
|
5
|
+
export { ComposerPrimitiveAddAttachment as AddAttachment } from "./ComposerAddAttachment";
|
|
6
|
+
export { ComposerPrimitiveAttachments as Attachments } from "./ComposerAttachments";
|
|
7
|
+
export { ComposerPrimitiveAttachmentByIndex as AttachmentByIndex } from "./ComposerAttachments";
|
|
8
|
+
export { ComposerPrimitiveIf as If } from "./ComposerIf";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/composer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,IAAI,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,8BAA8B,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,4BAA4B,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,kCAAkC,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,mBAAmB,IAAI,EAAE,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Primitive } from "@radix-ui/react-primitive";
|
|
2
|
+
import { type ComponentRef, ComponentPropsWithoutRef } from "react";
|
|
3
|
+
export declare namespace ErrorPrimitiveMessage {
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.span>;
|
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
6
|
+
}
|
|
7
|
+
export declare const ErrorPrimitiveMessage: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
//# sourceMappingURL=ErrorMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/error/ErrorMessage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGhF,yBAAiB,qBAAqB,CAAC;IACrC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,qBAAqB;;2DAkBhC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Primitive } from "@radix-ui/react-primitive";
|
|
2
|
+
import { type ComponentRef, ComponentPropsWithoutRef } from "react";
|
|
3
|
+
export declare namespace ErrorPrimitiveRoot {
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.div>;
|
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
6
|
+
}
|
|
7
|
+
export declare const ErrorPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
//# sourceMappingURL=ErrorRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorRoot.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/error/ErrorRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEhF,yBAAiB,kBAAkB,CAAC;IAClC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,kBAAkB;;0DAK7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,IAAI,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,qBAAqB,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * as ActionBarPrimitive from "./actionBar";
|
|
2
|
+
export * as AssistantModalPrimitive from "./assistantModal";
|
|
3
|
+
export * as AttachmentPrimitive from "./attachment";
|
|
4
|
+
export * as BranchPickerPrimitive from "./branchPicker";
|
|
5
|
+
export * as ComposerPrimitive from "./composer";
|
|
6
|
+
export * as MessagePartPrimitive from "./messagePart";
|
|
7
|
+
export * as ErrorPrimitive from "./error";
|
|
8
|
+
export * as MessagePrimitive from "./message";
|
|
9
|
+
export * as ThreadPrimitive from "./thread";
|
|
10
|
+
export * as ThreadListPrimitive from "./threadList";
|
|
11
|
+
export * as ThreadListItemPrimitive from "./threadListItem";
|
|
12
|
+
export { useMessagePartText } from "./messagePart/useMessagePartText";
|
|
13
|
+
export { useMessagePartReasoning } from "./messagePart/useMessagePartReasoning";
|
|
14
|
+
export { useMessagePartSource } from "./messagePart/useMessagePartSource";
|
|
15
|
+
export { useMessagePartFile } from "./messagePart/useMessagePartFile";
|
|
16
|
+
export { useMessagePartImage } from "./messagePart/useMessagePartImage";
|
|
17
|
+
export { useMessagePartData } from "./messagePart/useMessagePartData";
|
|
18
|
+
export { useThreadViewportAutoScroll } from "./thread/useThreadViewportAutoScroll";
|
|
19
|
+
export { useScrollLock } from "./reasoning";
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../react/src/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,uBAAuB,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,mBAAmB,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,qBAAqB,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,iBAAiB,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,oBAAoB,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,cAAc,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,gBAAgB,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,eAAe,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,mBAAmB,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,uBAAuB,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentType, type FC } from "react";
|
|
2
|
+
export declare namespace MessagePrimitiveAttachments {
|
|
3
|
+
type Props = {
|
|
4
|
+
components: {
|
|
5
|
+
Image?: ComponentType | undefined;
|
|
6
|
+
Document?: ComponentType | undefined;
|
|
7
|
+
File?: ComponentType | undefined;
|
|
8
|
+
Attachment?: ComponentType | undefined;
|
|
9
|
+
} | undefined;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare namespace MessagePrimitiveAttachmentByIndex {
|
|
13
|
+
type Props = {
|
|
14
|
+
index: number;
|
|
15
|
+
components?: MessagePrimitiveAttachments.Props["components"];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders a single attachment at the specified index within the current message.
|
|
20
|
+
*
|
|
21
|
+
* This component provides direct access to render a specific attachment
|
|
22
|
+
* from the message's attachment list using the provided component configuration.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <MessagePrimitive.AttachmentByIndex
|
|
27
|
+
* index={0}
|
|
28
|
+
* components={{
|
|
29
|
+
* Image: MyImageAttachment,
|
|
30
|
+
* Document: MyDocumentAttachment
|
|
31
|
+
* }}
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const MessagePrimitiveAttachmentByIndex: FC<MessagePrimitiveAttachmentByIndex.Props>;
|
|
36
|
+
export declare const MessagePrimitiveAttachments: FC<MessagePrimitiveAttachments.Props>;
|
|
37
|
+
//# sourceMappingURL=MessageAttachments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageAttachments.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/message/MessageAttachments.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,EAAiB,MAAM,OAAO,CAAC;AAO9D,yBAAiB,2BAA2B,CAAC;IAC3C,KAAY,KAAK,GAAG;QAClB,UAAU,EACN;YACE,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;YAClC,QAAQ,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;YACrC,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;YACjC,UAAU,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;SACxC,GACD,SAAS,CAAC;KACf,CAAC;CACH;AA+BD,yBAAiB,iCAAiC,CAAC;IACjD,KAAY,KAAK,GAAG;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,2BAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;KAC9D,CAAC;CACH;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iCAAiC,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAevF,CAAC;AAKJ,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAC1C,2BAA2B,CAAC,KAAK,CAkBlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageError.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/message/MessageError.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG9C,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,iBAAiB,CAOvD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { FC, PropsWithChildren } from "react";
|
|
2
|
+
import type { RequireAtLeastOne } from "../../utils/RequireAtLeastOne";
|
|
3
|
+
type MessageIfFilters = {
|
|
4
|
+
user: boolean | undefined;
|
|
5
|
+
assistant: boolean | undefined;
|
|
6
|
+
system: boolean | undefined;
|
|
7
|
+
hasBranches: boolean | undefined;
|
|
8
|
+
copied: boolean | undefined;
|
|
9
|
+
lastOrHover: boolean | undefined;
|
|
10
|
+
last: boolean | undefined;
|
|
11
|
+
speaking: boolean | undefined;
|
|
12
|
+
hasAttachments: boolean | undefined;
|
|
13
|
+
hasContent: boolean | undefined;
|
|
14
|
+
submittedFeedback: "positive" | "negative" | null | undefined;
|
|
15
|
+
};
|
|
16
|
+
type UseMessageIfProps = RequireAtLeastOne<MessageIfFilters>;
|
|
17
|
+
export declare namespace MessagePrimitiveIf {
|
|
18
|
+
type Props = PropsWithChildren<UseMessageIfProps>;
|
|
19
|
+
}
|
|
20
|
+
export declare const MessagePrimitiveIf: FC<MessagePrimitiveIf.Props>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=MessageIf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageIf.d.ts","sourceRoot":"","sources":["../../../../../../react/src/primitives/message/MessageIf.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,cAAc,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,iBAAiB,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/D,CAAC;AACF,KAAK,iBAAiB,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAwD7D,yBAAiB,kBAAkB,CAAC;IAClC,KAAY,KAAK,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAC1D;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAM3D,CAAC"}
|