stream-chat-react-native-core 9.12.1 → 9.13.0
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/a2ui/package.json +6 -0
- package/lib/commonjs/a11y/a11yUtils.js.map +1 -1
- package/lib/commonjs/a11y/hooks/useResolvedModalAccessibilityProps.js.map +1 -1
- package/lib/commonjs/a2ui/A2UIContexts.js +8 -0
- package/lib/commonjs/a2ui/A2UIContexts.js.map +1 -0
- package/lib/commonjs/a2ui/A2UIInstructions.js +49 -0
- package/lib/commonjs/a2ui/A2UIInstructions.js.map +1 -0
- package/lib/commonjs/a2ui/A2UIPlaceholder.js +37 -0
- package/lib/commonjs/a2ui/A2UIPlaceholder.js.map +1 -0
- package/lib/commonjs/a2ui/A2UIRenderer.js +363 -0
- package/lib/commonjs/a2ui/A2UIRenderer.js.map +1 -0
- package/lib/commonjs/a2ui/A2UIStream.js +91 -0
- package/lib/commonjs/a2ui/A2UIStream.js.map +1 -0
- package/lib/commonjs/a2ui/A2UISurface.js +212 -0
- package/lib/commonjs/a2ui/A2UISurface.js.map +1 -0
- package/lib/commonjs/a2ui/basicCatalog.json +1206 -0
- package/lib/commonjs/a2ui/basicFunctions.js +398 -0
- package/lib/commonjs/a2ui/basicFunctions.js.map +1 -0
- package/lib/commonjs/a2ui/catalogDocument.js +80 -0
- package/lib/commonjs/a2ui/catalogDocument.js.map +1 -0
- package/lib/commonjs/a2ui/catalogs.js +105 -0
- package/lib/commonjs/a2ui/catalogs.js.map +1 -0
- package/lib/commonjs/a2ui/components/DateTimeInput.js +445 -0
- package/lib/commonjs/a2ui/components/DateTimeInput.js.map +1 -0
- package/lib/commonjs/a2ui/components/Media.js +316 -0
- package/lib/commonjs/a2ui/components/Media.js.map +1 -0
- package/lib/commonjs/a2ui/components/basicComponents.js +975 -0
- package/lib/commonjs/a2ui/components/basicComponents.js.map +1 -0
- package/lib/commonjs/a2ui/components/iconPaths.js +66 -0
- package/lib/commonjs/a2ui/components/iconPaths.js.map +1 -0
- package/lib/commonjs/a2ui/components/types.js +4 -0
- package/lib/commonjs/a2ui/components/types.js.map +1 -0
- package/lib/commonjs/a2ui/index.js +70 -0
- package/lib/commonjs/a2ui/index.js.map +1 -0
- package/lib/commonjs/a2ui/instructions.js +268 -0
- package/lib/commonjs/a2ui/instructions.js.map +1 -0
- package/lib/commonjs/a2ui/secrets.js +169 -0
- package/lib/commonjs/a2ui/secrets.js.map +1 -0
- package/lib/commonjs/a2ui/useReplyState.js +35 -0
- package/lib/commonjs/a2ui/useReplyState.js.map +1 -0
- package/lib/commonjs/ai-components/AITypingIndicatorView.js +8 -18
- package/lib/commonjs/ai-components/AITypingIndicatorView.js.map +1 -1
- package/lib/commonjs/ai-components/README.md +55 -3
- package/lib/commonjs/ai-components/StreamingMessageView.js +26 -0
- package/lib/commonjs/ai-components/StreamingMessageView.js.map +1 -1
- package/lib/commonjs/ai-components/charts/components/PieLegend.js +2 -1
- package/lib/commonjs/ai-components/charts/components/PieLegend.js.map +1 -1
- package/lib/commonjs/ai-components/charts/components/VictoryChart.js +7 -2
- package/lib/commonjs/ai-components/charts/components/VictoryChart.js.map +1 -1
- package/lib/commonjs/ai-components/charts/utils/format-time-label.js +15 -0
- package/lib/commonjs/ai-components/charts/utils/format-time-label.js.map +1 -0
- package/lib/commonjs/ai-components/charts/vega-lite/schema.js +17 -2
- package/lib/commonjs/ai-components/charts/vega-lite/schema.js.map +1 -1
- package/lib/commonjs/ai-components/contexts/composer-context.js +13 -6
- package/lib/commonjs/ai-components/contexts/composer-context.js.map +1 -1
- package/lib/commonjs/ai-components/contexts/index.js +11 -0
- package/lib/commonjs/ai-components/contexts/index.js.map +1 -1
- package/lib/commonjs/ai-components/contexts/theme-context.js +33 -2
- package/lib/commonjs/ai-components/contexts/theme-context.js.map +1 -1
- package/lib/commonjs/ai-components/contexts/translation-context.js +29 -0
- package/lib/commonjs/ai-components/contexts/translation-context.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/AIConversation.js +366 -0
- package/lib/commonjs/ai-components/conversation/AIConversation.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/controller/AIAgentError.js +13 -0
- package/lib/commonjs/ai-components/conversation/controller/AIAgentError.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/controller/AIConversationController.js +425 -0
- package/lib/commonjs/ai-components/conversation/controller/AIConversationController.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/controller/AIConversationExchange.js +89 -0
- package/lib/commonjs/ai-components/conversation/controller/AIConversationExchange.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/controller/index.js +48 -0
- package/lib/commonjs/ai-components/conversation/controller/index.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/controller/offers.js +29 -0
- package/lib/commonjs/ai-components/conversation/controller/offers.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/controller/types.js +13 -0
- package/lib/commonjs/ai-components/conversation/controller/types.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/controller/useAIConversationState.js +8 -0
- package/lib/commonjs/ai-components/conversation/controller/useAIConversationState.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/entries.js +98 -0
- package/lib/commonjs/ai-components/conversation/entries.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/fromStreamMessage.js +66 -0
- package/lib/commonjs/ai-components/conversation/fromStreamMessage.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/index.js +48 -0
- package/lib/commonjs/ai-components/conversation/index.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/list/AIChatList.js +224 -0
- package/lib/commonjs/ai-components/conversation/list/AIChatList.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/list/useChatListController.js +78 -0
- package/lib/commonjs/ai-components/conversation/list/useChatListController.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/list/useEndInView.js +51 -0
- package/lib/commonjs/ai-components/conversation/list/useEndInView.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/list/useKeyboardOverlap.js +54 -0
- package/lib/commonjs/ai-components/conversation/list/useKeyboardOverlap.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/list/useLoadOlder.js +73 -0
- package/lib/commonjs/ai-components/conversation/list/useLoadOlder.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/list/usePinnedAnchor.js +84 -0
- package/lib/commonjs/ai-components/conversation/list/usePinnedAnchor.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/types.js +4 -0
- package/lib/commonjs/ai-components/conversation/types.js.map +1 -0
- package/lib/commonjs/ai-components/conversation/useConversationRows.js +117 -0
- package/lib/commonjs/ai-components/conversation/useConversationRows.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIAction.js +30 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIAction.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIArguments.js +128 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIArguments.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIComponent.js +50 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIComponent.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIComponentDefinition.js +134 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIComponentDefinition.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIDocument.js +32 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIDocument.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIEntrance.js +193 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIEntrance.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIErrorBoundary.js +30 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIErrorBoundary.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIHelpers.js +54 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIHelpers.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIHost.js +259 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIHost.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIMedia.js +24 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIMedia.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIRenderer.js +10 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIRenderer.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIView.js +57 -0
- package/lib/commonjs/ai-components/generative-ui/AIUIView.js.map +1 -0
- package/lib/commonjs/ai-components/generative-ui/index.js +181 -0
- package/lib/commonjs/ai-components/generative-ui/index.js.map +1 -0
- package/lib/commonjs/ai-components/icons.js +44 -0
- package/lib/commonjs/ai-components/icons.js.map +1 -0
- package/lib/commonjs/ai-components/index.js +96 -0
- package/lib/commonjs/ai-components/index.js.map +1 -1
- package/lib/commonjs/ai-components/internal/Shimmer.js +36 -0
- package/lib/commonjs/ai-components/internal/Shimmer.js.map +1 -0
- package/lib/commonjs/ai-components/internal/format.js +66 -0
- package/lib/commonjs/ai-components/internal/format.js.map +1 -0
- package/lib/commonjs/ai-components/internal/hooks/useBottomSafeArea.js +12 -0
- package/lib/commonjs/ai-components/internal/hooks/useBottomSafeArea.js.map +1 -0
- package/lib/commonjs/ai-components/internal/icons/AgentIcons.js +74 -0
- package/lib/commonjs/ai-components/internal/icons/AgentIcons.js.map +1 -0
- package/lib/commonjs/ai-components/internal/tokens.js +11 -0
- package/lib/commonjs/ai-components/internal/tokens.js.map +1 -0
- package/lib/commonjs/ai-components/internal/uuid.js +21 -0
- package/lib/commonjs/ai-components/internal/uuid.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/CodeBlock.js +4 -2
- package/lib/commonjs/ai-components/markdown/components/CodeBlock.js.map +1 -1
- package/lib/commonjs/ai-components/markdown/components/InlineCode.js +1 -0
- package/lib/commonjs/ai-components/markdown/components/InlineCode.js.map +1 -1
- package/lib/commonjs/ai-components/markdown/components/Text.js +11 -2
- package/lib/commonjs/ai-components/markdown/components/Text.js.map +1 -1
- package/lib/commonjs/ai-components/markdown/styles.js +27 -29
- package/lib/commonjs/ai-components/markdown/styles.js.map +1 -1
- package/lib/commonjs/ai-components/message/AIAssistantMessage.js +63 -0
- package/lib/commonjs/ai-components/message/AIAssistantMessage.js.map +1 -0
- package/lib/commonjs/ai-components/message/AIMessageAttachment.js +189 -0
- package/lib/commonjs/ai-components/message/AIMessageAttachment.js.map +1 -0
- package/lib/commonjs/ai-components/message/AIReplyActions.js +132 -0
- package/lib/commonjs/ai-components/message/AIReplyActions.js.map +1 -0
- package/lib/commonjs/ai-components/message/AIUserMessage.js +104 -0
- package/lib/commonjs/ai-components/message/AIUserMessage.js.map +1 -0
- package/lib/commonjs/ai-components/message/UserMessageMenu.js +150 -0
- package/lib/commonjs/ai-components/message/UserMessageMenu.js.map +1 -0
- package/lib/commonjs/ai-components/message/index.js +48 -0
- package/lib/commonjs/ai-components/message/index.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/ActionButton.js +2 -1
- package/lib/commonjs/ai-components/message-composer/ActionButton.js.map +1 -1
- package/lib/commonjs/ai-components/message-composer/ActionSheet.js +22 -6
- package/lib/commonjs/ai-components/message-composer/ActionSheet.js.map +1 -1
- package/lib/commonjs/ai-components/message-composer/AttachmentButton.js +5 -1
- package/lib/commonjs/ai-components/message-composer/AttachmentButton.js.map +1 -1
- package/lib/commonjs/ai-components/message-composer/ChatOptions.js +147 -0
- package/lib/commonjs/ai-components/message-composer/ChatOptions.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/ComposerView.js +136 -20
- package/lib/commonjs/ai-components/message-composer/ComposerView.js.map +1 -1
- package/lib/commonjs/ai-components/message-composer/EditingMessageChip.js +80 -0
- package/lib/commonjs/ai-components/message-composer/EditingMessageChip.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/MediaPreviewList.js +26 -1
- package/lib/commonjs/ai-components/message-composer/MediaPreviewList.js.map +1 -1
- package/lib/commonjs/ai-components/message-composer/index.js +11 -0
- package/lib/commonjs/ai-components/message-composer/index.js.map +1 -1
- package/lib/commonjs/ai-components/message-parts/AIMessageParts.js +110 -0
- package/lib/commonjs/ai-components/message-parts/AIMessageParts.js.map +1 -0
- package/lib/commonjs/ai-components/message-parts/AIToolApproval.js +197 -0
- package/lib/commonjs/ai-components/message-parts/AIToolApproval.js.map +1 -0
- package/lib/commonjs/ai-components/message-parts/AIToolAuthorization.js +250 -0
- package/lib/commonjs/ai-components/message-parts/AIToolAuthorization.js.map +1 -0
- package/lib/commonjs/ai-components/message-parts/AIToolCall.js +159 -0
- package/lib/commonjs/ai-components/message-parts/AIToolCall.js.map +1 -0
- package/lib/commonjs/ai-components/message-parts/callStates.js +54 -0
- package/lib/commonjs/ai-components/message-parts/callStates.js.map +1 -0
- package/lib/commonjs/ai-components/message-parts/index.js +70 -0
- package/lib/commonjs/ai-components/message-parts/index.js.map +1 -0
- package/lib/commonjs/ai-components/message-parts/parseMessageParts.js +126 -0
- package/lib/commonjs/ai-components/message-parts/parseMessageParts.js.map +1 -0
- package/lib/commonjs/ai-components/message-parts/types.js +2 -0
- package/lib/commonjs/ai-components/message-parts/types.js.map +1 -0
- package/lib/commonjs/ai-components/native-specs/NativeAIAgent.js +7 -0
- package/lib/commonjs/ai-components/native-specs/NativeAIAgent.js.map +1 -0
- package/lib/commonjs/ai-components/reasoning/AIReasoning.js +401 -0
- package/lib/commonjs/ai-components/reasoning/AIReasoning.js.map +1 -0
- package/lib/commonjs/ai-components/reasoning/index.js +26 -0
- package/lib/commonjs/ai-components/reasoning/index.js.map +1 -0
- package/lib/commonjs/ai-components/reasoning/thinkingClock.js +63 -0
- package/lib/commonjs/ai-components/reasoning/thinkingClock.js.map +1 -0
- package/lib/commonjs/ai-components/services/clipboard-service/expo.js +7 -2
- package/lib/commonjs/ai-components/services/clipboard-service/expo.js.map +1 -1
- package/lib/commonjs/ai-components/store/composer/store.js.map +1 -1
- package/lib/commonjs/ai-components/store/composer/useComposerChatOption.js +18 -0
- package/lib/commonjs/ai-components/store/composer/useComposerChatOption.js.map +1 -0
- package/lib/commonjs/ai-components/store/composer/useComposerIsEditing.js +18 -0
- package/lib/commonjs/ai-components/store/composer/useComposerIsEditing.js.map +1 -0
- package/lib/commonjs/ai-components/store/index.js +22 -0
- package/lib/commonjs/ai-components/store/index.js.map +1 -1
- package/lib/commonjs/ai-components/suggestions/AISuggestions.js +66 -0
- package/lib/commonjs/ai-components/suggestions/AISuggestions.js.map +1 -0
- package/lib/commonjs/ai-components/suggestions/index.js +15 -0
- package/lib/commonjs/ai-components/suggestions/index.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/utils/flatten-nodes.js +2 -1
- package/lib/commonjs/ai-components/syntax-highlighting/utils/flatten-nodes.js.map +1 -1
- package/lib/commonjs/ai-components/syntax-highlighting/utils/renderer.js +3 -2
- package/lib/commonjs/ai-components/syntax-highlighting/utils/renderer.js.map +1 -1
- package/lib/commonjs/ai-components/theme.js +137 -1
- package/lib/commonjs/ai-components/theme.js.map +1 -1
- package/lib/commonjs/ai-components/tool-calls/AIClientIdentity.js +22 -0
- package/lib/commonjs/ai-components/tool-calls/AIClientIdentity.js.map +1 -0
- package/lib/commonjs/ai-components/tool-calls/AIClientToolRunner.js +109 -0
- package/lib/commonjs/ai-components/tool-calls/AIClientToolRunner.js.map +1 -0
- package/lib/commonjs/ai-components/tool-calls/AIToolApprover.js +23 -0
- package/lib/commonjs/ai-components/tool-calls/AIToolApprover.js.map +1 -0
- package/lib/commonjs/ai-components/tool-calls/authSessionAuthorizer.js +88 -0
- package/lib/commonjs/ai-components/tool-calls/authSessionAuthorizer.js.map +1 -0
- package/lib/commonjs/ai-components/tool-calls/index.js +48 -0
- package/lib/commonjs/ai-components/tool-calls/index.js.map +1 -0
- package/lib/commonjs/ai-components/voice-visualization/glowShader.js.map +1 -1
- package/lib/commonjs/components/Accessibility/useAccessibilityAnnouncer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/utils/renderText.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js +2 -2
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/i18n/ar.json +39 -1
- package/lib/commonjs/i18n/en.json +39 -1
- package/lib/commonjs/i18n/es.json +39 -1
- package/lib/commonjs/i18n/fr.json +39 -1
- package/lib/commonjs/i18n/he.json +39 -1
- package/lib/commonjs/i18n/hi.json +39 -1
- package/lib/commonjs/i18n/it.json +39 -1
- package/lib/commonjs/i18n/ja.json +39 -1
- package/lib/commonjs/i18n/ko.json +39 -1
- package/lib/commonjs/i18n/nl.json +39 -1
- package/lib/commonjs/i18n/pt-br.json +39 -1
- package/lib/commonjs/i18n/ru.json +39 -1
- package/lib/commonjs/i18n/tr.json +39 -1
- package/lib/commonjs/mock-builders/a2ui/ohrid.js +84 -0
- package/lib/commonjs/mock-builders/a2ui/ohrid.js.map +1 -0
- package/lib/commonjs/utils/i18n/Streami18n.js +9 -4
- package/lib/commonjs/utils/i18n/Streami18n.js.map +1 -1
- package/lib/commonjs/utils/i18n/utils.js +7 -0
- package/lib/commonjs/utils/i18n/utils.js.map +1 -0
- package/lib/commonjs/version.json +1 -1
- package/lib/module/a11y/a11yUtils.js.map +1 -1
- package/lib/module/a11y/hooks/useResolvedModalAccessibilityProps.js.map +1 -1
- package/lib/module/a2ui/A2UIContexts.js +8 -0
- package/lib/module/a2ui/A2UIContexts.js.map +1 -0
- package/lib/module/a2ui/A2UIInstructions.js +49 -0
- package/lib/module/a2ui/A2UIInstructions.js.map +1 -0
- package/lib/module/a2ui/A2UIPlaceholder.js +37 -0
- package/lib/module/a2ui/A2UIPlaceholder.js.map +1 -0
- package/lib/module/a2ui/A2UIRenderer.js +363 -0
- package/lib/module/a2ui/A2UIRenderer.js.map +1 -0
- package/lib/module/a2ui/A2UIStream.js +91 -0
- package/lib/module/a2ui/A2UIStream.js.map +1 -0
- package/lib/module/a2ui/A2UISurface.js +212 -0
- package/lib/module/a2ui/A2UISurface.js.map +1 -0
- package/lib/module/a2ui/basicCatalog.json +1206 -0
- package/lib/module/a2ui/basicFunctions.js +398 -0
- package/lib/module/a2ui/basicFunctions.js.map +1 -0
- package/lib/module/a2ui/catalogDocument.js +80 -0
- package/lib/module/a2ui/catalogDocument.js.map +1 -0
- package/lib/module/a2ui/catalogs.js +105 -0
- package/lib/module/a2ui/catalogs.js.map +1 -0
- package/lib/module/a2ui/components/DateTimeInput.js +445 -0
- package/lib/module/a2ui/components/DateTimeInput.js.map +1 -0
- package/lib/module/a2ui/components/Media.js +316 -0
- package/lib/module/a2ui/components/Media.js.map +1 -0
- package/lib/module/a2ui/components/basicComponents.js +975 -0
- package/lib/module/a2ui/components/basicComponents.js.map +1 -0
- package/lib/module/a2ui/components/iconPaths.js +66 -0
- package/lib/module/a2ui/components/iconPaths.js.map +1 -0
- package/lib/module/a2ui/components/types.js +4 -0
- package/lib/module/a2ui/components/types.js.map +1 -0
- package/lib/module/a2ui/index.js +70 -0
- package/lib/module/a2ui/index.js.map +1 -0
- package/lib/module/a2ui/instructions.js +268 -0
- package/lib/module/a2ui/instructions.js.map +1 -0
- package/lib/module/a2ui/secrets.js +169 -0
- package/lib/module/a2ui/secrets.js.map +1 -0
- package/lib/module/a2ui/useReplyState.js +35 -0
- package/lib/module/a2ui/useReplyState.js.map +1 -0
- package/lib/module/ai-components/AITypingIndicatorView.js +8 -18
- package/lib/module/ai-components/AITypingIndicatorView.js.map +1 -1
- package/lib/module/ai-components/README.md +55 -3
- package/lib/module/ai-components/StreamingMessageView.js +26 -0
- package/lib/module/ai-components/StreamingMessageView.js.map +1 -1
- package/lib/module/ai-components/charts/components/PieLegend.js +2 -1
- package/lib/module/ai-components/charts/components/PieLegend.js.map +1 -1
- package/lib/module/ai-components/charts/components/VictoryChart.js +7 -2
- package/lib/module/ai-components/charts/components/VictoryChart.js.map +1 -1
- package/lib/module/ai-components/charts/utils/format-time-label.js +15 -0
- package/lib/module/ai-components/charts/utils/format-time-label.js.map +1 -0
- package/lib/module/ai-components/charts/vega-lite/schema.js +17 -2
- package/lib/module/ai-components/charts/vega-lite/schema.js.map +1 -1
- package/lib/module/ai-components/contexts/composer-context.js +13 -6
- package/lib/module/ai-components/contexts/composer-context.js.map +1 -1
- package/lib/module/ai-components/contexts/index.js +11 -0
- package/lib/module/ai-components/contexts/index.js.map +1 -1
- package/lib/module/ai-components/contexts/theme-context.js +33 -2
- package/lib/module/ai-components/contexts/theme-context.js.map +1 -1
- package/lib/module/ai-components/contexts/translation-context.js +29 -0
- package/lib/module/ai-components/contexts/translation-context.js.map +1 -0
- package/lib/module/ai-components/conversation/AIConversation.js +366 -0
- package/lib/module/ai-components/conversation/AIConversation.js.map +1 -0
- package/lib/module/ai-components/conversation/controller/AIAgentError.js +13 -0
- package/lib/module/ai-components/conversation/controller/AIAgentError.js.map +1 -0
- package/lib/module/ai-components/conversation/controller/AIConversationController.js +425 -0
- package/lib/module/ai-components/conversation/controller/AIConversationController.js.map +1 -0
- package/lib/module/ai-components/conversation/controller/AIConversationExchange.js +89 -0
- package/lib/module/ai-components/conversation/controller/AIConversationExchange.js.map +1 -0
- package/lib/module/ai-components/conversation/controller/index.js +48 -0
- package/lib/module/ai-components/conversation/controller/index.js.map +1 -0
- package/lib/module/ai-components/conversation/controller/offers.js +29 -0
- package/lib/module/ai-components/conversation/controller/offers.js.map +1 -0
- package/lib/module/ai-components/conversation/controller/types.js +13 -0
- package/lib/module/ai-components/conversation/controller/types.js.map +1 -0
- package/lib/module/ai-components/conversation/controller/useAIConversationState.js +8 -0
- package/lib/module/ai-components/conversation/controller/useAIConversationState.js.map +1 -0
- package/lib/module/ai-components/conversation/entries.js +98 -0
- package/lib/module/ai-components/conversation/entries.js.map +1 -0
- package/lib/module/ai-components/conversation/fromStreamMessage.js +66 -0
- package/lib/module/ai-components/conversation/fromStreamMessage.js.map +1 -0
- package/lib/module/ai-components/conversation/index.js +48 -0
- package/lib/module/ai-components/conversation/index.js.map +1 -0
- package/lib/module/ai-components/conversation/list/AIChatList.js +224 -0
- package/lib/module/ai-components/conversation/list/AIChatList.js.map +1 -0
- package/lib/module/ai-components/conversation/list/useChatListController.js +78 -0
- package/lib/module/ai-components/conversation/list/useChatListController.js.map +1 -0
- package/lib/module/ai-components/conversation/list/useEndInView.js +51 -0
- package/lib/module/ai-components/conversation/list/useEndInView.js.map +1 -0
- package/lib/module/ai-components/conversation/list/useKeyboardOverlap.js +54 -0
- package/lib/module/ai-components/conversation/list/useKeyboardOverlap.js.map +1 -0
- package/lib/module/ai-components/conversation/list/useLoadOlder.js +73 -0
- package/lib/module/ai-components/conversation/list/useLoadOlder.js.map +1 -0
- package/lib/module/ai-components/conversation/list/usePinnedAnchor.js +84 -0
- package/lib/module/ai-components/conversation/list/usePinnedAnchor.js.map +1 -0
- package/lib/module/ai-components/conversation/types.js +4 -0
- package/lib/module/ai-components/conversation/types.js.map +1 -0
- package/lib/module/ai-components/conversation/useConversationRows.js +117 -0
- package/lib/module/ai-components/conversation/useConversationRows.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIAction.js +30 -0
- package/lib/module/ai-components/generative-ui/AIUIAction.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIArguments.js +128 -0
- package/lib/module/ai-components/generative-ui/AIUIArguments.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIComponent.js +50 -0
- package/lib/module/ai-components/generative-ui/AIUIComponent.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIComponentDefinition.js +134 -0
- package/lib/module/ai-components/generative-ui/AIUIComponentDefinition.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIDocument.js +32 -0
- package/lib/module/ai-components/generative-ui/AIUIDocument.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIEntrance.js +193 -0
- package/lib/module/ai-components/generative-ui/AIUIEntrance.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIErrorBoundary.js +30 -0
- package/lib/module/ai-components/generative-ui/AIUIErrorBoundary.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIHelpers.js +54 -0
- package/lib/module/ai-components/generative-ui/AIUIHelpers.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIHost.js +259 -0
- package/lib/module/ai-components/generative-ui/AIUIHost.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIMedia.js +24 -0
- package/lib/module/ai-components/generative-ui/AIUIMedia.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIRenderer.js +10 -0
- package/lib/module/ai-components/generative-ui/AIUIRenderer.js.map +1 -0
- package/lib/module/ai-components/generative-ui/AIUIView.js +57 -0
- package/lib/module/ai-components/generative-ui/AIUIView.js.map +1 -0
- package/lib/module/ai-components/generative-ui/index.js +181 -0
- package/lib/module/ai-components/generative-ui/index.js.map +1 -0
- package/lib/module/ai-components/icons.js +44 -0
- package/lib/module/ai-components/icons.js.map +1 -0
- package/lib/module/ai-components/index.js +96 -0
- package/lib/module/ai-components/index.js.map +1 -1
- package/lib/module/ai-components/internal/Shimmer.js +36 -0
- package/lib/module/ai-components/internal/Shimmer.js.map +1 -0
- package/lib/module/ai-components/internal/format.js +66 -0
- package/lib/module/ai-components/internal/format.js.map +1 -0
- package/lib/module/ai-components/internal/hooks/useBottomSafeArea.js +12 -0
- package/lib/module/ai-components/internal/hooks/useBottomSafeArea.js.map +1 -0
- package/lib/module/ai-components/internal/icons/AgentIcons.js +74 -0
- package/lib/module/ai-components/internal/icons/AgentIcons.js.map +1 -0
- package/lib/module/ai-components/internal/tokens.js +11 -0
- package/lib/module/ai-components/internal/tokens.js.map +1 -0
- package/lib/module/ai-components/internal/uuid.js +21 -0
- package/lib/module/ai-components/internal/uuid.js.map +1 -0
- package/lib/module/ai-components/markdown/components/CodeBlock.js +4 -2
- package/lib/module/ai-components/markdown/components/CodeBlock.js.map +1 -1
- package/lib/module/ai-components/markdown/components/InlineCode.js +1 -0
- package/lib/module/ai-components/markdown/components/InlineCode.js.map +1 -1
- package/lib/module/ai-components/markdown/components/Text.js +11 -2
- package/lib/module/ai-components/markdown/components/Text.js.map +1 -1
- package/lib/module/ai-components/markdown/styles.js +27 -29
- package/lib/module/ai-components/markdown/styles.js.map +1 -1
- package/lib/module/ai-components/message/AIAssistantMessage.js +63 -0
- package/lib/module/ai-components/message/AIAssistantMessage.js.map +1 -0
- package/lib/module/ai-components/message/AIMessageAttachment.js +189 -0
- package/lib/module/ai-components/message/AIMessageAttachment.js.map +1 -0
- package/lib/module/ai-components/message/AIReplyActions.js +132 -0
- package/lib/module/ai-components/message/AIReplyActions.js.map +1 -0
- package/lib/module/ai-components/message/AIUserMessage.js +104 -0
- package/lib/module/ai-components/message/AIUserMessage.js.map +1 -0
- package/lib/module/ai-components/message/UserMessageMenu.js +150 -0
- package/lib/module/ai-components/message/UserMessageMenu.js.map +1 -0
- package/lib/module/ai-components/message/index.js +48 -0
- package/lib/module/ai-components/message/index.js.map +1 -0
- package/lib/module/ai-components/message-composer/ActionButton.js +2 -1
- package/lib/module/ai-components/message-composer/ActionButton.js.map +1 -1
- package/lib/module/ai-components/message-composer/ActionSheet.js +22 -6
- package/lib/module/ai-components/message-composer/ActionSheet.js.map +1 -1
- package/lib/module/ai-components/message-composer/AttachmentButton.js +5 -1
- package/lib/module/ai-components/message-composer/AttachmentButton.js.map +1 -1
- package/lib/module/ai-components/message-composer/ChatOptions.js +147 -0
- package/lib/module/ai-components/message-composer/ChatOptions.js.map +1 -0
- package/lib/module/ai-components/message-composer/ComposerView.js +136 -20
- package/lib/module/ai-components/message-composer/ComposerView.js.map +1 -1
- package/lib/module/ai-components/message-composer/EditingMessageChip.js +80 -0
- package/lib/module/ai-components/message-composer/EditingMessageChip.js.map +1 -0
- package/lib/module/ai-components/message-composer/MediaPreviewList.js +26 -1
- package/lib/module/ai-components/message-composer/MediaPreviewList.js.map +1 -1
- package/lib/module/ai-components/message-composer/index.js +11 -0
- package/lib/module/ai-components/message-composer/index.js.map +1 -1
- package/lib/module/ai-components/message-parts/AIMessageParts.js +110 -0
- package/lib/module/ai-components/message-parts/AIMessageParts.js.map +1 -0
- package/lib/module/ai-components/message-parts/AIToolApproval.js +197 -0
- package/lib/module/ai-components/message-parts/AIToolApproval.js.map +1 -0
- package/lib/module/ai-components/message-parts/AIToolAuthorization.js +250 -0
- package/lib/module/ai-components/message-parts/AIToolAuthorization.js.map +1 -0
- package/lib/module/ai-components/message-parts/AIToolCall.js +159 -0
- package/lib/module/ai-components/message-parts/AIToolCall.js.map +1 -0
- package/lib/module/ai-components/message-parts/callStates.js +54 -0
- package/lib/module/ai-components/message-parts/callStates.js.map +1 -0
- package/lib/module/ai-components/message-parts/index.js +70 -0
- package/lib/module/ai-components/message-parts/index.js.map +1 -0
- package/lib/module/ai-components/message-parts/parseMessageParts.js +126 -0
- package/lib/module/ai-components/message-parts/parseMessageParts.js.map +1 -0
- package/lib/module/ai-components/message-parts/types.js +2 -0
- package/lib/module/ai-components/message-parts/types.js.map +1 -0
- package/lib/module/ai-components/native-specs/NativeAIAgent.js +7 -0
- package/lib/module/ai-components/native-specs/NativeAIAgent.js.map +1 -0
- package/lib/module/ai-components/reasoning/AIReasoning.js +401 -0
- package/lib/module/ai-components/reasoning/AIReasoning.js.map +1 -0
- package/lib/module/ai-components/reasoning/index.js +26 -0
- package/lib/module/ai-components/reasoning/index.js.map +1 -0
- package/lib/module/ai-components/reasoning/thinkingClock.js +63 -0
- package/lib/module/ai-components/reasoning/thinkingClock.js.map +1 -0
- package/lib/module/ai-components/services/clipboard-service/expo.js +7 -2
- package/lib/module/ai-components/services/clipboard-service/expo.js.map +1 -1
- package/lib/module/ai-components/store/composer/store.js.map +1 -1
- package/lib/module/ai-components/store/composer/useComposerChatOption.js +18 -0
- package/lib/module/ai-components/store/composer/useComposerChatOption.js.map +1 -0
- package/lib/module/ai-components/store/composer/useComposerIsEditing.js +18 -0
- package/lib/module/ai-components/store/composer/useComposerIsEditing.js.map +1 -0
- package/lib/module/ai-components/store/index.js +22 -0
- package/lib/module/ai-components/store/index.js.map +1 -1
- package/lib/module/ai-components/suggestions/AISuggestions.js +66 -0
- package/lib/module/ai-components/suggestions/AISuggestions.js.map +1 -0
- package/lib/module/ai-components/suggestions/index.js +15 -0
- package/lib/module/ai-components/suggestions/index.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/utils/flatten-nodes.js +2 -1
- package/lib/module/ai-components/syntax-highlighting/utils/flatten-nodes.js.map +1 -1
- package/lib/module/ai-components/syntax-highlighting/utils/renderer.js +3 -2
- package/lib/module/ai-components/syntax-highlighting/utils/renderer.js.map +1 -1
- package/lib/module/ai-components/theme.js +137 -1
- package/lib/module/ai-components/theme.js.map +1 -1
- package/lib/module/ai-components/tool-calls/AIClientIdentity.js +22 -0
- package/lib/module/ai-components/tool-calls/AIClientIdentity.js.map +1 -0
- package/lib/module/ai-components/tool-calls/AIClientToolRunner.js +109 -0
- package/lib/module/ai-components/tool-calls/AIClientToolRunner.js.map +1 -0
- package/lib/module/ai-components/tool-calls/AIToolApprover.js +23 -0
- package/lib/module/ai-components/tool-calls/AIToolApprover.js.map +1 -0
- package/lib/module/ai-components/tool-calls/authSessionAuthorizer.js +88 -0
- package/lib/module/ai-components/tool-calls/authSessionAuthorizer.js.map +1 -0
- package/lib/module/ai-components/tool-calls/index.js +48 -0
- package/lib/module/ai-components/tool-calls/index.js.map +1 -0
- package/lib/module/ai-components/voice-visualization/glowShader.js.map +1 -1
- package/lib/module/components/Accessibility/useAccessibilityAnnouncer.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/utils/renderText.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js +2 -2
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/i18n/ar.json +39 -1
- package/lib/module/i18n/en.json +39 -1
- package/lib/module/i18n/es.json +39 -1
- package/lib/module/i18n/fr.json +39 -1
- package/lib/module/i18n/he.json +39 -1
- package/lib/module/i18n/hi.json +39 -1
- package/lib/module/i18n/it.json +39 -1
- package/lib/module/i18n/ja.json +39 -1
- package/lib/module/i18n/ko.json +39 -1
- package/lib/module/i18n/nl.json +39 -1
- package/lib/module/i18n/pt-br.json +39 -1
- package/lib/module/i18n/ru.json +39 -1
- package/lib/module/i18n/tr.json +39 -1
- package/lib/module/mock-builders/a2ui/ohrid.js +84 -0
- package/lib/module/mock-builders/a2ui/ohrid.js.map +1 -0
- package/lib/module/utils/i18n/Streami18n.js +9 -4
- package/lib/module/utils/i18n/Streami18n.js.map +1 -1
- package/lib/module/utils/i18n/utils.js +7 -0
- package/lib/module/utils/i18n/utils.js.map +1 -0
- package/lib/module/version.json +1 -1
- package/lib/typescript/a11y/a11yUtils.d.ts +0 -1
- package/lib/typescript/a11y/a11yUtils.d.ts.map +1 -1
- package/lib/typescript/a11y/hooks/useResolvedModalAccessibilityProps.d.ts +2 -3
- package/lib/typescript/a11y/hooks/useResolvedModalAccessibilityProps.d.ts.map +1 -1
- package/lib/typescript/a2ui/A2UIContexts.d.ts +9 -0
- package/lib/typescript/a2ui/A2UIContexts.d.ts.map +1 -0
- package/lib/typescript/a2ui/A2UIInstructions.d.ts +47 -0
- package/lib/typescript/a2ui/A2UIInstructions.d.ts.map +1 -0
- package/lib/typescript/a2ui/A2UIPlaceholder.d.ts +4 -0
- package/lib/typescript/a2ui/A2UIPlaceholder.d.ts.map +1 -0
- package/lib/typescript/a2ui/A2UIRenderer.d.ts +130 -0
- package/lib/typescript/a2ui/A2UIRenderer.d.ts.map +1 -0
- package/lib/typescript/a2ui/A2UIStream.d.ts +23 -0
- package/lib/typescript/a2ui/A2UIStream.d.ts.map +1 -0
- package/lib/typescript/a2ui/A2UISurface.d.ts +19 -0
- package/lib/typescript/a2ui/A2UISurface.d.ts.map +1 -0
- package/lib/typescript/a2ui/basicFunctions.d.ts +10 -0
- package/lib/typescript/a2ui/basicFunctions.d.ts.map +1 -0
- package/lib/typescript/a2ui/catalogDocument.d.ts +56 -0
- package/lib/typescript/a2ui/catalogDocument.d.ts.map +1 -0
- package/lib/typescript/a2ui/catalogs.d.ts +42 -0
- package/lib/typescript/a2ui/catalogs.d.ts.map +1 -0
- package/lib/typescript/a2ui/components/DateTimeInput.d.ts +44 -0
- package/lib/typescript/a2ui/components/DateTimeInput.d.ts.map +1 -0
- package/lib/typescript/a2ui/components/Media.d.ts +27 -0
- package/lib/typescript/a2ui/components/Media.d.ts.map +1 -0
- package/lib/typescript/a2ui/components/basicComponents.d.ts +4 -0
- package/lib/typescript/a2ui/components/basicComponents.d.ts.map +1 -0
- package/lib/typescript/a2ui/components/iconPaths.d.ts +2 -0
- package/lib/typescript/a2ui/components/iconPaths.d.ts.map +1 -0
- package/lib/typescript/a2ui/components/types.d.ts +23 -0
- package/lib/typescript/a2ui/components/types.d.ts.map +1 -0
- package/lib/typescript/a2ui/index.d.ts +8 -0
- package/lib/typescript/a2ui/index.d.ts.map +1 -0
- package/lib/typescript/a2ui/instructions.d.ts +39 -0
- package/lib/typescript/a2ui/instructions.d.ts.map +1 -0
- package/lib/typescript/a2ui/secrets.d.ts +20 -0
- package/lib/typescript/a2ui/secrets.d.ts.map +1 -0
- package/lib/typescript/a2ui/useReplyState.d.ts +4 -0
- package/lib/typescript/a2ui/useReplyState.d.ts.map +1 -0
- package/lib/typescript/ai-components/AITypingIndicatorView.d.ts.map +1 -1
- package/lib/typescript/ai-components/StreamingMessageView.d.ts +4 -1
- package/lib/typescript/ai-components/StreamingMessageView.d.ts.map +1 -1
- package/lib/typescript/ai-components/charts/components/PieLegend.d.ts.map +1 -1
- package/lib/typescript/ai-components/charts/components/VictoryChart.d.ts.map +1 -1
- package/lib/typescript/ai-components/charts/utils/format-time-label.d.ts +7 -0
- package/lib/typescript/ai-components/charts/utils/format-time-label.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/vega-lite/schema.d.ts +8 -8
- package/lib/typescript/ai-components/charts/vega-lite/schema.d.ts.map +1 -1
- package/lib/typescript/ai-components/contexts/composer-context.d.ts +3 -0
- package/lib/typescript/ai-components/contexts/composer-context.d.ts.map +1 -1
- package/lib/typescript/ai-components/contexts/index.d.ts +1 -0
- package/lib/typescript/ai-components/contexts/index.d.ts.map +1 -1
- package/lib/typescript/ai-components/contexts/theme-context.d.ts.map +1 -1
- package/lib/typescript/ai-components/contexts/translation-context.d.ts +19 -0
- package/lib/typescript/ai-components/contexts/translation-context.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/AIConversation.d.ts +130 -0
- package/lib/typescript/ai-components/conversation/AIConversation.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/controller/AIAgentError.d.ts +10 -0
- package/lib/typescript/ai-components/conversation/controller/AIAgentError.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/controller/AIConversationController.d.ts +173 -0
- package/lib/typescript/ai-components/conversation/controller/AIConversationController.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/controller/AIConversationExchange.d.ts +23 -0
- package/lib/typescript/ai-components/conversation/controller/AIConversationExchange.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/controller/index.d.ts +5 -0
- package/lib/typescript/ai-components/conversation/controller/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/controller/offers.d.ts +23 -0
- package/lib/typescript/ai-components/conversation/controller/offers.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/controller/types.d.ts +142 -0
- package/lib/typescript/ai-components/conversation/controller/types.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/controller/useAIConversationState.d.ts +9 -0
- package/lib/typescript/ai-components/conversation/controller/useAIConversationState.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/entries.d.ts +47 -0
- package/lib/typescript/ai-components/conversation/entries.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/fromStreamMessage.d.ts +25 -0
- package/lib/typescript/ai-components/conversation/fromStreamMessage.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/index.d.ts +6 -0
- package/lib/typescript/ai-components/conversation/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/list/AIChatList.d.ts +30 -0
- package/lib/typescript/ai-components/conversation/list/AIChatList.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/list/useChatListController.d.ts +45 -0
- package/lib/typescript/ai-components/conversation/list/useChatListController.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/list/useEndInView.d.ts +26 -0
- package/lib/typescript/ai-components/conversation/list/useEndInView.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/list/useKeyboardOverlap.d.ts +17 -0
- package/lib/typescript/ai-components/conversation/list/useKeyboardOverlap.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/list/useLoadOlder.d.ts +24 -0
- package/lib/typescript/ai-components/conversation/list/useLoadOlder.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/list/usePinnedAnchor.d.ts +26 -0
- package/lib/typescript/ai-components/conversation/list/usePinnedAnchor.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/types.d.ts +55 -0
- package/lib/typescript/ai-components/conversation/types.d.ts.map +1 -0
- package/lib/typescript/ai-components/conversation/useConversationRows.d.ts +66 -0
- package/lib/typescript/ai-components/conversation/useConversationRows.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIAction.d.ts +48 -0
- package/lib/typescript/ai-components/generative-ui/AIUIAction.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIArguments.d.ts +15 -0
- package/lib/typescript/ai-components/generative-ui/AIUIArguments.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIComponent.d.ts +51 -0
- package/lib/typescript/ai-components/generative-ui/AIUIComponent.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIComponentDefinition.d.ts +84 -0
- package/lib/typescript/ai-components/generative-ui/AIUIComponentDefinition.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIDocument.d.ts +50 -0
- package/lib/typescript/ai-components/generative-ui/AIUIDocument.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIEntrance.d.ts +75 -0
- package/lib/typescript/ai-components/generative-ui/AIUIEntrance.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIErrorBoundary.d.ts +26 -0
- package/lib/typescript/ai-components/generative-ui/AIUIErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIHelpers.d.ts +23 -0
- package/lib/typescript/ai-components/generative-ui/AIUIHelpers.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIHost.d.ts +160 -0
- package/lib/typescript/ai-components/generative-ui/AIUIHost.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIMedia.d.ts +22 -0
- package/lib/typescript/ai-components/generative-ui/AIUIMedia.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIRenderer.d.ts +53 -0
- package/lib/typescript/ai-components/generative-ui/AIUIRenderer.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/AIUIView.d.ts +35 -0
- package/lib/typescript/ai-components/generative-ui/AIUIView.d.ts.map +1 -0
- package/lib/typescript/ai-components/generative-ui/index.d.ts +11 -0
- package/lib/typescript/ai-components/generative-ui/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/icons.d.ts +66 -0
- package/lib/typescript/ai-components/icons.d.ts.map +1 -0
- package/lib/typescript/ai-components/index.d.ts +8 -0
- package/lib/typescript/ai-components/index.d.ts.map +1 -1
- package/lib/typescript/ai-components/internal/Shimmer.d.ts +14 -0
- package/lib/typescript/ai-components/internal/Shimmer.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/format.d.ts +7 -0
- package/lib/typescript/ai-components/internal/format.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/hooks/useBottomSafeArea.d.ts +3 -0
- package/lib/typescript/ai-components/internal/hooks/useBottomSafeArea.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/icons/AgentIcons.d.ts +31 -0
- package/lib/typescript/ai-components/internal/icons/AgentIcons.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/tokens.d.ts +2 -0
- package/lib/typescript/ai-components/internal/tokens.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/uuid.d.ts +2 -0
- package/lib/typescript/ai-components/internal/uuid.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/CodeBlock.d.ts.map +1 -1
- package/lib/typescript/ai-components/markdown/components/InlineCode.d.ts.map +1 -1
- package/lib/typescript/ai-components/markdown/components/Text.d.ts.map +1 -1
- package/lib/typescript/ai-components/markdown/styles.d.ts +23 -4
- package/lib/typescript/ai-components/markdown/styles.d.ts.map +1 -1
- package/lib/typescript/ai-components/markdown/types.d.ts +1 -0
- package/lib/typescript/ai-components/markdown/types.d.ts.map +1 -1
- package/lib/typescript/ai-components/message/AIAssistantMessage.d.ts +40 -0
- package/lib/typescript/ai-components/message/AIAssistantMessage.d.ts.map +1 -0
- package/lib/typescript/ai-components/message/AIMessageAttachment.d.ts +33 -0
- package/lib/typescript/ai-components/message/AIMessageAttachment.d.ts.map +1 -0
- package/lib/typescript/ai-components/message/AIReplyActions.d.ts +19 -0
- package/lib/typescript/ai-components/message/AIReplyActions.d.ts.map +1 -0
- package/lib/typescript/ai-components/message/AIUserMessage.d.ts +17 -0
- package/lib/typescript/ai-components/message/AIUserMessage.d.ts.map +1 -0
- package/lib/typescript/ai-components/message/UserMessageMenu.d.ts +31 -0
- package/lib/typescript/ai-components/message/UserMessageMenu.d.ts.map +1 -0
- package/lib/typescript/ai-components/message/index.d.ts +5 -0
- package/lib/typescript/ai-components/message/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/ActionButton.d.ts.map +1 -1
- package/lib/typescript/ai-components/message-composer/ActionSheet.d.ts +2 -2
- package/lib/typescript/ai-components/message-composer/ActionSheet.d.ts.map +1 -1
- package/lib/typescript/ai-components/message-composer/AttachmentButton.d.ts.map +1 -1
- package/lib/typescript/ai-components/message-composer/ChatOptions.d.ts +35 -0
- package/lib/typescript/ai-components/message-composer/ChatOptions.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/ComposerView.d.ts +34 -3
- package/lib/typescript/ai-components/message-composer/ComposerView.d.ts.map +1 -1
- package/lib/typescript/ai-components/message-composer/EditingMessageChip.d.ts +7 -0
- package/lib/typescript/ai-components/message-composer/EditingMessageChip.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/MediaPreviewList.d.ts.map +1 -1
- package/lib/typescript/ai-components/message-composer/index.d.ts +1 -0
- package/lib/typescript/ai-components/message-composer/index.d.ts.map +1 -1
- package/lib/typescript/ai-components/message-parts/AIMessageParts.d.ts +38 -0
- package/lib/typescript/ai-components/message-parts/AIMessageParts.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-parts/AIToolApproval.d.ts +38 -0
- package/lib/typescript/ai-components/message-parts/AIToolApproval.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-parts/AIToolAuthorization.d.ts +48 -0
- package/lib/typescript/ai-components/message-parts/AIToolAuthorization.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-parts/AIToolCall.d.ts +11 -0
- package/lib/typescript/ai-components/message-parts/AIToolCall.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-parts/callStates.d.ts +9 -0
- package/lib/typescript/ai-components/message-parts/callStates.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-parts/index.d.ts +7 -0
- package/lib/typescript/ai-components/message-parts/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-parts/parseMessageParts.d.ts +47 -0
- package/lib/typescript/ai-components/message-parts/parseMessageParts.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-parts/types.d.ts +137 -0
- package/lib/typescript/ai-components/message-parts/types.d.ts.map +1 -0
- package/lib/typescript/ai-components/native-specs/NativeAIAgent.d.ts +22 -0
- package/lib/typescript/ai-components/native-specs/NativeAIAgent.d.ts.map +1 -0
- package/lib/typescript/ai-components/reasoning/AIReasoning.d.ts +63 -0
- package/lib/typescript/ai-components/reasoning/AIReasoning.d.ts.map +1 -0
- package/lib/typescript/ai-components/reasoning/index.d.ts +3 -0
- package/lib/typescript/ai-components/reasoning/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/reasoning/thinkingClock.d.ts +29 -0
- package/lib/typescript/ai-components/reasoning/thinkingClock.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/clipboard-service/expo.d.ts.map +1 -1
- package/lib/typescript/ai-components/store/composer/store.d.ts +8 -0
- package/lib/typescript/ai-components/store/composer/store.d.ts.map +1 -1
- package/lib/typescript/ai-components/store/composer/useComposerChatOption.d.ts +5 -0
- package/lib/typescript/ai-components/store/composer/useComposerChatOption.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/composer/useComposerIsEditing.d.ts +5 -0
- package/lib/typescript/ai-components/store/composer/useComposerIsEditing.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/index.d.ts +2 -0
- package/lib/typescript/ai-components/store/index.d.ts.map +1 -1
- package/lib/typescript/ai-components/suggestions/AISuggestions.d.ts +13 -0
- package/lib/typescript/ai-components/suggestions/AISuggestions.d.ts.map +1 -0
- package/lib/typescript/ai-components/suggestions/index.d.ts +2 -0
- package/lib/typescript/ai-components/suggestions/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/utils/flatten-nodes.d.ts.map +1 -1
- package/lib/typescript/ai-components/syntax-highlighting/utils/renderer.d.ts +1 -1
- package/lib/typescript/ai-components/syntax-highlighting/utils/renderer.d.ts.map +1 -1
- package/lib/typescript/ai-components/theme.d.ts +200 -0
- package/lib/typescript/ai-components/theme.d.ts.map +1 -1
- package/lib/typescript/ai-components/tool-calls/AIClientIdentity.d.ts +14 -0
- package/lib/typescript/ai-components/tool-calls/AIClientIdentity.d.ts.map +1 -0
- package/lib/typescript/ai-components/tool-calls/AIClientToolRunner.d.ts +109 -0
- package/lib/typescript/ai-components/tool-calls/AIClientToolRunner.d.ts.map +1 -0
- package/lib/typescript/ai-components/tool-calls/AIToolApprover.d.ts +48 -0
- package/lib/typescript/ai-components/tool-calls/AIToolApprover.d.ts.map +1 -0
- package/lib/typescript/ai-components/tool-calls/authSessionAuthorizer.d.ts +57 -0
- package/lib/typescript/ai-components/tool-calls/authSessionAuthorizer.d.ts.map +1 -0
- package/lib/typescript/ai-components/tool-calls/index.d.ts +5 -0
- package/lib/typescript/ai-components/tool-calls/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/voice-visualization/glowShader.d.ts.map +1 -1
- package/lib/typescript/ai-components/voice-visualization/simplex.d.ts +1 -1
- package/lib/typescript/components/Accessibility/NotificationAnnouncer.d.ts +5 -5
- package/lib/typescript/components/Accessibility/hooks/useIncomingMessageAnnouncements.d.ts +1 -1
- package/lib/typescript/components/Accessibility/useAccessibilityAnnouncer.d.ts +0 -2
- package/lib/typescript/components/Accessibility/useAccessibilityAnnouncer.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/utils/renderText.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +1 -1
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -1
- package/lib/typescript/i18n/ar.json +39 -1
- package/lib/typescript/i18n/en.json +39 -1
- package/lib/typescript/i18n/es.json +39 -1
- package/lib/typescript/i18n/fr.json +39 -1
- package/lib/typescript/i18n/he.json +39 -1
- package/lib/typescript/i18n/hi.json +39 -1
- package/lib/typescript/i18n/it.json +39 -1
- package/lib/typescript/i18n/ja.json +39 -1
- package/lib/typescript/i18n/ko.json +39 -1
- package/lib/typescript/i18n/nl.json +39 -1
- package/lib/typescript/i18n/pt-br.json +39 -1
- package/lib/typescript/i18n/ru.json +39 -1
- package/lib/typescript/i18n/tr.json +39 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +40 -2
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/utils.d.ts +3 -0
- package/lib/typescript/utils/i18n/utils.d.ts.map +1 -0
- package/package.json +10 -2
- package/src/a11y/a11yUtils.ts +0 -1
- package/src/a11y/hooks/useResolvedModalAccessibilityProps.ts +2 -3
- package/src/a2ui/A2UIContexts.ts +15 -0
- package/src/a2ui/A2UIInstructions.ts +102 -0
- package/src/a2ui/A2UIPlaceholder.tsx +24 -0
- package/src/a2ui/A2UIRenderer.tsx +504 -0
- package/src/a2ui/A2UIStream.ts +105 -0
- package/src/a2ui/A2UISurface.tsx +241 -0
- package/src/a2ui/__tests__/A2UIInstructions.test.ts +233 -0
- package/src/a2ui/__tests__/A2UIRenderer.test.tsx +1514 -0
- package/src/a2ui/__tests__/conformance.test.ts +579 -0
- package/src/a2ui/basicCatalog.json +1206 -0
- package/src/a2ui/basicFunctions.ts +429 -0
- package/src/a2ui/catalogDocument.ts +119 -0
- package/src/a2ui/catalogs.ts +185 -0
- package/src/a2ui/components/DateTimeInput.tsx +381 -0
- package/src/a2ui/components/Media.tsx +278 -0
- package/src/a2ui/components/basicComponents.tsx +832 -0
- package/src/a2ui/components/iconPaths.ts +116 -0
- package/src/a2ui/components/types.ts +24 -0
- package/src/a2ui/index.ts +18 -0
- package/src/a2ui/instructions.ts +341 -0
- package/src/a2ui/secrets.ts +154 -0
- package/src/a2ui/useReplyState.ts +26 -0
- package/src/ai-components/AITypingIndicatorView.tsx +6 -22
- package/src/ai-components/README.md +55 -3
- package/src/ai-components/StreamingMessageView.tsx +27 -3
- package/src/ai-components/__tests__/ComposerView.test.tsx +227 -2
- package/src/ai-components/__tests__/Markdown.test.tsx +13 -0
- package/src/ai-components/__tests__/StreamingMessageView.test.tsx +69 -0
- package/src/ai-components/__tests__/charts.test.ts +75 -0
- package/src/ai-components/__tests__/clientToolRunner.test.ts +239 -0
- package/src/ai-components/__tests__/conversation.test.tsx +705 -0
- package/src/ai-components/__tests__/conversationController.test.ts +1561 -0
- package/src/ai-components/__tests__/conversationExchange.test.ts +187 -0
- package/src/ai-components/__tests__/conversationRows.test.ts +207 -0
- package/src/ai-components/__tests__/conversationUI.test.tsx +586 -0
- package/src/ai-components/__tests__/format.test.ts +32 -0
- package/src/ai-components/__tests__/generativeUI.test.ts +634 -0
- package/src/ai-components/__tests__/keyboard.test.ts +14 -0
- package/src/ai-components/__tests__/messagePartViews.test.tsx +343 -0
- package/src/ai-components/__tests__/messageParts.test.ts +336 -0
- package/src/ai-components/__tests__/messageViews.test.tsx +321 -0
- package/src/ai-components/__tests__/signIn.test.tsx +324 -0
- package/src/ai-components/__tests__/theme.test.tsx +18 -0
- package/src/ai-components/__tests__/translation.test.tsx +85 -0
- package/src/ai-components/__tests__/voiceDriver.test.ts +0 -3
- package/src/ai-components/__tests__/voicePalette.test.ts +1 -1
- package/src/ai-components/charts/components/PieLegend.tsx +2 -1
- package/src/ai-components/charts/components/VictoryChart.tsx +10 -2
- package/src/ai-components/charts/utils/format-time-label.ts +18 -0
- package/src/ai-components/charts/vega-lite/schema.ts +19 -2
- package/src/ai-components/contexts/composer-context.tsx +13 -5
- package/src/ai-components/contexts/index.ts +1 -0
- package/src/ai-components/contexts/theme-context.tsx +19 -4
- package/src/ai-components/contexts/translation-context.tsx +44 -0
- package/src/ai-components/conversation/AIConversation.tsx +590 -0
- package/src/ai-components/conversation/controller/AIAgentError.ts +14 -0
- package/src/ai-components/conversation/controller/AIConversationController.ts +623 -0
- package/src/ai-components/conversation/controller/AIConversationExchange.ts +132 -0
- package/src/ai-components/conversation/controller/index.ts +4 -0
- package/src/ai-components/conversation/controller/offers.ts +43 -0
- package/src/ai-components/conversation/controller/types.ts +154 -0
- package/src/ai-components/conversation/controller/useAIConversationState.ts +21 -0
- package/src/ai-components/conversation/entries.ts +177 -0
- package/src/ai-components/conversation/fromStreamMessage.ts +87 -0
- package/src/ai-components/conversation/index.ts +5 -0
- package/src/ai-components/conversation/list/AIChatList.tsx +227 -0
- package/src/ai-components/conversation/list/useChatListController.ts +91 -0
- package/src/ai-components/conversation/list/useEndInView.ts +61 -0
- package/src/ai-components/conversation/list/useKeyboardOverlap.ts +51 -0
- package/src/ai-components/conversation/list/useLoadOlder.ts +97 -0
- package/src/ai-components/conversation/list/usePinnedAnchor.ts +113 -0
- package/src/ai-components/conversation/types.ts +57 -0
- package/src/ai-components/conversation/useConversationRows.ts +230 -0
- package/src/ai-components/generative-ui/AIUIAction.ts +73 -0
- package/src/ai-components/generative-ui/AIUIArguments.ts +117 -0
- package/src/ai-components/generative-ui/AIUIComponent.tsx +106 -0
- package/src/ai-components/generative-ui/AIUIComponentDefinition.ts +163 -0
- package/src/ai-components/generative-ui/AIUIDocument.ts +77 -0
- package/src/ai-components/generative-ui/AIUIEntrance.tsx +223 -0
- package/src/ai-components/generative-ui/AIUIErrorBoundary.tsx +39 -0
- package/src/ai-components/generative-ui/AIUIHelpers.ts +86 -0
- package/src/ai-components/generative-ui/AIUIHost.ts +358 -0
- package/src/ai-components/generative-ui/AIUIMedia.ts +45 -0
- package/src/ai-components/generative-ui/AIUIRenderer.ts +60 -0
- package/src/ai-components/generative-ui/AIUIView.tsx +87 -0
- package/src/ai-components/generative-ui/index.ts +48 -0
- package/src/ai-components/icons.ts +101 -0
- package/src/ai-components/index.ts +10 -0
- package/src/ai-components/internal/Shimmer.tsx +40 -0
- package/src/ai-components/internal/format.ts +69 -0
- package/src/ai-components/internal/hooks/useBottomSafeArea.ts +6 -0
- package/src/ai-components/internal/icons/AgentIcons.tsx +138 -0
- package/src/ai-components/internal/tokens.ts +4 -0
- package/src/ai-components/internal/uuid.ts +17 -0
- package/src/ai-components/markdown/components/CodeBlock.tsx +13 -2
- package/src/ai-components/markdown/components/InlineCode.tsx +1 -0
- package/src/ai-components/markdown/components/Text.tsx +7 -2
- package/src/ai-components/markdown/styles.ts +29 -27
- package/src/ai-components/markdown/types.ts +1 -0
- package/src/ai-components/message/AIAssistantMessage.tsx +99 -0
- package/src/ai-components/message/AIMessageAttachment.tsx +245 -0
- package/src/ai-components/message/AIReplyActions.tsx +139 -0
- package/src/ai-components/message/AIUserMessage.tsx +121 -0
- package/src/ai-components/message/UserMessageMenu.tsx +149 -0
- package/src/ai-components/message/index.ts +4 -0
- package/src/ai-components/message-composer/ActionButton.tsx +5 -1
- package/src/ai-components/message-composer/ActionSheet.tsx +28 -6
- package/src/ai-components/message-composer/AttachmentButton.tsx +9 -1
- package/src/ai-components/message-composer/ChatOptions.tsx +144 -0
- package/src/ai-components/message-composer/ComposerView.tsx +179 -29
- package/src/ai-components/message-composer/EditingMessageChip.tsx +61 -0
- package/src/ai-components/message-composer/MediaPreviewList.tsx +34 -8
- package/src/ai-components/message-composer/index.ts +1 -0
- package/src/ai-components/message-parts/AIMessageParts.tsx +120 -0
- package/src/ai-components/message-parts/AIToolApproval.tsx +196 -0
- package/src/ai-components/message-parts/AIToolAuthorization.tsx +279 -0
- package/src/ai-components/message-parts/AIToolCall.tsx +117 -0
- package/src/ai-components/message-parts/callStates.ts +44 -0
- package/src/ai-components/message-parts/index.ts +6 -0
- package/src/ai-components/message-parts/parseMessageParts.ts +195 -0
- package/src/ai-components/message-parts/types.ts +157 -0
- package/src/ai-components/native-specs/NativeAIAgent.ts +25 -0
- package/src/ai-components/reasoning/AIReasoning.tsx +509 -0
- package/src/ai-components/reasoning/index.ts +2 -0
- package/src/ai-components/reasoning/thinkingClock.ts +109 -0
- package/src/ai-components/services/clipboard-service/expo.ts +18 -4
- package/src/ai-components/store/composer/store.ts +9 -0
- package/src/ai-components/store/composer/useComposerChatOption.ts +15 -0
- package/src/ai-components/store/composer/useComposerIsEditing.ts +15 -0
- package/src/ai-components/store/index.ts +2 -0
- package/src/ai-components/suggestions/AISuggestions.tsx +73 -0
- package/src/ai-components/suggestions/index.ts +1 -0
- package/src/ai-components/syntax-highlighting/utils/flatten-nodes.ts +2 -1
- package/src/ai-components/syntax-highlighting/utils/renderer.tsx +4 -2
- package/src/ai-components/theme.ts +334 -0
- package/src/ai-components/tool-calls/AIClientIdentity.ts +33 -0
- package/src/ai-components/tool-calls/AIClientToolRunner.ts +200 -0
- package/src/ai-components/tool-calls/AIToolApprover.tsx +60 -0
- package/src/ai-components/tool-calls/authSessionAuthorizer.ts +137 -0
- package/src/ai-components/tool-calls/index.ts +4 -0
- package/src/ai-components/voice-visualization/glowShader.ts +1 -3
- package/src/ai-components/voice-visualization/simplex.ts +1 -1
- package/src/components/Accessibility/NotificationAnnouncer.tsx +5 -5
- package/src/components/Accessibility/hooks/useIncomingMessageAnnouncements.ts +1 -1
- package/src/components/Accessibility/useAccessibilityAnnouncer.ts +0 -2
- package/src/components/Message/MessageItemView/utils/renderText.tsx +1 -2
- package/src/contexts/translationContext/TranslationContext.tsx +2 -2
- package/src/i18n/ar.json +39 -1
- package/src/i18n/en.json +39 -1
- package/src/i18n/es.json +39 -1
- package/src/i18n/fr.json +39 -1
- package/src/i18n/he.json +39 -1
- package/src/i18n/hi.json +39 -1
- package/src/i18n/it.json +39 -1
- package/src/i18n/ja.json +39 -1
- package/src/i18n/ko.json +39 -1
- package/src/i18n/nl.json +39 -1
- package/src/i18n/pt-br.json +39 -1
- package/src/i18n/ru.json +39 -1
- package/src/i18n/tr.json +39 -1
- package/src/mock-builders/a2ui/ohrid.ts +106 -0
- package/src/utils/i18n/Streami18n.ts +4 -1
- package/src/utils/i18n/utils.ts +3 -0
- package/src/version.json +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2
|
+
value: true
|
|
3
|
+
});
|
|
4
|
+
exports.uiComponents = exports.ohridLines = void 0;
|
|
5
|
+
var ohridLines = exports.ohridLines = ['{"version":"1.0","createSurface":{"surfaceId":"ohrid-weekend","catalogId":"getstream.io:app-catalog","dataModel":{"pace":["relaxed"],"interests":[]}}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"root","component":"Column","children":["title","intro","map","calendar","days","tip","refine","next"]},{"id":"title","component":"Text","text":"## A weekend in Ohrid"},{"id":"intro","component":"Text","text":"Two easy days by the lake: the old town on Saturday, a boat to St. Naum on Sunday."}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"map","component":"TripMap","places":[{"name":"Church of St. John at Kaneo","latitude":41.1112,"longitude":20.7881},{"name":"Plaošnik","latitude":41.1131,"longitude":20.7903},{"name":"Samuel\'s Fortress, Ohrid","latitude":41.1162,"longitude":20.7928},{"name":"Monastery of Saint Naum","latitude":40.9139,"longitude":20.7406},{"name":"Bay of Bones","latitude":41.0118,"longitude":20.7988}]},{"id":"calendar","component":"CalendarCheck","start":"2026-11-14","end":"2026-11-15"}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"days","component":"Tabs","tabs":[{"title":"Saturday","child":"saturday"},{"title":"Sunday","child":"sunday"}]},{"id":"saturday","component":"Column","children":["saturday_plan","plaosnik","fortress","kaneo"]},{"id":"saturday_plan","component":"Text","text":"**Morning:** coffee by the harbour, then up through the old town to Plaošnik.\\n\\n**Afternoon:** Samuel\'s Fortress for the view over the lake.\\n\\n**Sunset:** St. John at Kaneo, on the cliff above the water."},{"id":"plaosnik","component":"PlaceCard","title":"Plaošnik","note":"1 hour"},{"id":"fortress","component":"PlaceCard","title":"Samuel\'s Fortress, Ohrid","note":"2 hours"},{"id":"kaneo","component":"PlaceCard","title":"Church of St. John at Kaneo","note":"Best at sunset"}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"sunday","component":"Column","children":["sunday_plan","naum","bones"]},{"id":"sunday_plan","component":"Text","text":"**Morning:** the boat from the harbour to St. Naum.\\n\\n**Afternoon:** the Bay of Bones on the way back."},{"id":"naum","component":"PlaceCard","title":"Monastery of Saint Naum","note":"Take the 10:00 boat"},{"id":"bones","component":"PlaceCard","title":"Bay of Bones","note":"1 hour"}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"tip","component":"Text","text":"> **Good to know:** book the St. Naum boat the day before. It fills up at weekends."},{"id":"refine","component":"Card","child":"refine_form"},{"id":"refine_form","component":"Column","children":["pace","interests","update"]},{"id":"pace","component":"ChoicePicker","label":"Pace","variant":"mutuallyExclusive","displayStyle":"chips","options":[{"label":"Relaxed","value":"relaxed"},{"label":"Packed","value":"packed"}],"value":{"@path":"/pace"}},{"id":"interests","component":"ChoicePicker","label":"More of","variant":"multipleSelection","displayStyle":"chips","options":[{"label":"History","value":"history"},{"label":"Food","value":"food"},{"label":"Nature","value":"nature"},{"label":"Swimming","value":"swimming"}],"value":{"@path":"/interests"}},{"id":"update","component":"Button","variant":"primary","child":"update_label","action":{"event":{"name":"update_plan","userMessage":"Update the plan","context":{"pace":{"@path":"/pace"},"interests":{"@path":"/interests"}}}}},{"id":"update_label","component":"Text","text":"Update the plan"}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"next","component":"Column","children":["hotel","eat","longer"]},{"id":"hotel","component":"Button","variant":"borderless","child":"hotel_label","action":{"event":{"name":"ask","userMessage":"Find a hotel by the lake"}}},{"id":"hotel_label","component":"Text","text":"Find a hotel by the lake"},{"id":"eat","component":"Button","variant":"borderless","child":"eat_label","action":{"event":{"name":"ask","userMessage":"Where should we eat?"}}},{"id":"eat_label","component":"Text","text":"Where should we eat?"},{"id":"longer","component":"Button","variant":"borderless","child":"longer_label","action":{"event":{"name":"ask","userMessage":"Make it three days"}}},{"id":"longer_label","component":"Text","text":"Make it three days"}]}}'];
|
|
6
|
+
var uiComponents = exports.uiComponents = [{
|
|
7
|
+
name: 'place_card',
|
|
8
|
+
description: 'One place of a plan, with its photo and a short summary, which the phone loads from Wikipedia, so it needs no image URL. Use one per sight, beach, monastery, village or day trip.',
|
|
9
|
+
parameters: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
title: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The place\'s exact English Wikipedia article title, such as "Church of St. John at Kaneo"'
|
|
15
|
+
},
|
|
16
|
+
note: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'One short line about it for this plan, such as "Best at sunset" or "2 hours"'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
required: ['title'],
|
|
22
|
+
'x-order': ['title', 'note']
|
|
23
|
+
},
|
|
24
|
+
events: [{
|
|
25
|
+
name: 'ask_about',
|
|
26
|
+
description: 'Tapping the card asks you about the place.'
|
|
27
|
+
}]
|
|
28
|
+
}, {
|
|
29
|
+
name: 'trip_map',
|
|
30
|
+
description: 'A map of a plan with a pin for each place, drawn on the phone. Use one near the top of every trip plan.',
|
|
31
|
+
parameters: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
properties: {
|
|
34
|
+
places: {
|
|
35
|
+
type: 'array',
|
|
36
|
+
description: 'Every place of the plan, with its coordinates',
|
|
37
|
+
items: {
|
|
38
|
+
type: 'object',
|
|
39
|
+
properties: {
|
|
40
|
+
name: {
|
|
41
|
+
type: 'string'
|
|
42
|
+
},
|
|
43
|
+
latitude: {
|
|
44
|
+
type: 'number'
|
|
45
|
+
},
|
|
46
|
+
longitude: {
|
|
47
|
+
type: 'number'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
required: ['name', 'latitude', 'longitude'],
|
|
51
|
+
'x-order': ['name', 'latitude', 'longitude']
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
required: ['places'],
|
|
56
|
+
'x-order': ['places']
|
|
57
|
+
},
|
|
58
|
+
events: [{
|
|
59
|
+
name: 'select_place',
|
|
60
|
+
description: 'Tapping a pin asks you about that place.'
|
|
61
|
+
}]
|
|
62
|
+
}, {
|
|
63
|
+
name: 'calendar_check',
|
|
64
|
+
description: "The person's own calendar for the days of a plan, read on the phone. You never see it: use it whenever a plan has dates, so they can see what the trip would clash with.",
|
|
65
|
+
parameters: {
|
|
66
|
+
type: 'object',
|
|
67
|
+
properties: {
|
|
68
|
+
start: {
|
|
69
|
+
type: 'string',
|
|
70
|
+
format: 'date',
|
|
71
|
+
description: 'The first day, as YYYY-MM-DD'
|
|
72
|
+
},
|
|
73
|
+
end: {
|
|
74
|
+
type: 'string',
|
|
75
|
+
format: 'date',
|
|
76
|
+
description: 'The last day, as YYYY-MM-DD'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
required: ['start', 'end'],
|
|
80
|
+
'x-order': ['start', 'end']
|
|
81
|
+
},
|
|
82
|
+
events: []
|
|
83
|
+
}];
|
|
84
|
+
//# sourceMappingURL=ohrid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ohridLines","exports","uiComponents","name","description","parameters","type","properties","title","note","required","events","places","items","latitude","longitude","start","format","end"],"sourceRoot":"../../../../src","sources":["mock-builders/a2ui/ohrid.ts"],"mappings":";;;;AAKO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,CACxB,wJAAwJ,EACxJ,gYAAgY,EAChY,qjBAAqjB,EACrjB,k0BAAk0B,EACl0B,gfAAgf,EAChf,+oCAA+oC,EAC/oC,qzBAAqzB,CACtzB;AAEM,IAAME,YAAY,GAAAD,OAAA,CAAAC,YAAA,GAAG,CAC1B;EACEC,IAAI,EAAE,YAAY;EAClBC,WAAW,EACT,oLAAoL;EACtLC,UAAU,EAAE;IACVC,IAAI,EAAE,QAAQ;IACdC,UAAU,EAAE;MACVC,KAAK,EAAE;QACLF,IAAI,EAAE,QAAQ;QACdF,WAAW,EACT;MACJ,CAAC;MACDK,IAAI,EAAE;QACJH,IAAI,EAAE,QAAQ;QACdF,WAAW,EACT;MACJ;IACF,CAAC;IACDM,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM;EAC7B,CAAC;EACDC,MAAM,EAAE,CACN;IACER,IAAI,EAAE,WAAW;IACjBC,WAAW,EAAE;EACf,CAAC;AAEL,CAAC,EACD;EACED,IAAI,EAAE,UAAU;EAChBC,WAAW,EACT,yGAAyG;EAC3GC,UAAU,EAAE;IACVC,IAAI,EAAE,QAAQ;IACdC,UAAU,EAAE;MACVK,MAAM,EAAE;QACNN,IAAI,EAAE,OAAO;QACbF,WAAW,EAAE,+CAA+C;QAC5DS,KAAK,EAAE;UACLP,IAAI,EAAE,QAAQ;UACdC,UAAU,EAAE;YACVJ,IAAI,EAAE;cACJG,IAAI,EAAE;YACR,CAAC;YACDQ,QAAQ,EAAE;cACRR,IAAI,EAAE;YACR,CAAC;YACDS,SAAS,EAAE;cACTT,IAAI,EAAE;YACR;UACF,CAAC;UACDI,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC;UAC3C,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW;QAC7C;MACF;IACF,CAAC;IACDA,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,SAAS,EAAE,CAAC,QAAQ;EACtB,CAAC;EACDC,MAAM,EAAE,CACN;IACER,IAAI,EAAE,cAAc;IACpBC,WAAW,EAAE;EACf,CAAC;AAEL,CAAC,EACD;EACED,IAAI,EAAE,gBAAgB;EACtBC,WAAW,EACT,0KAA0K;EAC5KC,UAAU,EAAE;IACVC,IAAI,EAAE,QAAQ;IACdC,UAAU,EAAE;MACVS,KAAK,EAAE;QACLV,IAAI,EAAE,QAAQ;QACdW,MAAM,EAAE,MAAM;QACdb,WAAW,EAAE;MACf,CAAC;MACDc,GAAG,EAAE;QACHZ,IAAI,EAAE,QAAQ;QACdW,MAAM,EAAE,MAAM;QACdb,WAAW,EAAE;MACf;IACF,CAAC;IACDM,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;IAC1B,SAAS,EAAE,CAAC,OAAO,EAAE,KAAK;EAC5B,CAAC;EACDC,MAAM,EAAE;AACV,CAAC,CACF","ignoreList":[]}
|
|
@@ -2,7 +2,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
exports.
|
|
5
|
+
exports.Streami18n = void 0;
|
|
6
|
+
Object.defineProperty(exports, "defaultTranslatorFunction", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _utils.defaultTranslatorFunction;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
7
13
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
8
14
|
var _calendar = _interopRequireDefault(require("dayjs/plugin/calendar"));
|
|
@@ -15,6 +21,7 @@ var _utc = _interopRequireDefault(require("dayjs/plugin/utc"));
|
|
|
15
21
|
var _i18next = _interopRequireDefault(require("i18next"));
|
|
16
22
|
var _calendarFormats = require("./calendarFormats");
|
|
17
23
|
var _predefinedFormatters = require("./predefinedFormatters");
|
|
24
|
+
var _utils = require("./utils");
|
|
18
25
|
var _ar = _interopRequireDefault(require("../../i18n/ar.json"));
|
|
19
26
|
var _en = _interopRequireDefault(require("../../i18n/en.json"));
|
|
20
27
|
var _es = _interopRequireDefault(require("../../i18n/es.json"));
|
|
@@ -142,15 +149,13 @@ var defaultStreami18nOptions = {
|
|
|
142
149
|
language: 'en',
|
|
143
150
|
logger: msg => console.warn(msg)
|
|
144
151
|
};
|
|
145
|
-
var defaultTranslatorFunction = key => key;
|
|
146
|
-
exports.defaultTranslatorFunction = defaultTranslatorFunction;
|
|
147
152
|
class Streami18n {
|
|
148
153
|
i18nInstance = _i18next.default.createInstance();
|
|
149
154
|
Dayjs = null;
|
|
150
155
|
initialized = false;
|
|
151
156
|
onLanguageChangeListeners = [];
|
|
152
157
|
onTFunctionOverrideListeners = [];
|
|
153
|
-
t = defaultTranslatorFunction;
|
|
158
|
+
t = _utils.defaultTranslatorFunction;
|
|
154
159
|
translations = {
|
|
155
160
|
ar: {
|
|
156
161
|
[defaultNS]: _ar.default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_dayjs","_interopRequireDefault","require","_calendar","_duration","_localeData","_localizedFormat","_relativeTime","_updateLocale","_utc","_i18next","_calendarFormats","_predefinedFormatters","_ar","_en","_es","_fr","_he","_hi","_it","_ja","_ko","_nl","_ptBr","_ru","_tr","defaultNS","defaultLng","Dayjs","extend","updateLocale","utc","calendar","calendarFormats","en","format","L","LL","LLL","LLLL","LT","LTS","ar","es","fr","he","hi","meridiem","hour","meridiemHour","meridiemParse","it","ja","ko","nl","ru","tr","en_locale","formats","months","relativeTime","weekdays","isDayJs","dateTimeParser","undefined","supportsTz","tz","defaultStreami18nOptions","DateTimeParser","dayjsLocaleConfigForLanguage","debug","disableDateTimeTranslations","language","logger","msg","console","warn","defaultTranslatorFunction","key","exports","Streami18n","i18nInstance","i18n","createInstance","initialized","onLanguageChangeListeners","onTFunctionOverrideListeners","t","translations","arTranslations","enTranslations","esTranslations","frTranslations","heTranslations","hiTranslations","itTranslations","jaTranslations","koTranslations","nlTranslations","ptBRTranslations","ruTranslations","trTranslations","dayjsLocales","formatters","predefinedFormatters","constructor","options","i18nextConfig","finalOptions","currentLanguage","timezone","duration","LocalizedFormat","localeData","error","Error","JSON","stringify","isCustomDateTimeParser","translationsForLanguage","fallbackLng","interpolation","escapeValue","formatSeparator","keySeparator","lng","nsSeparator","parseMissingKeyHandler","validateCurrentLanguage","addOrUpdateLocale","localeExists","tDateTimeParser","timestamp","locale","init","_this","_asyncToGenerator2","default","resources","queuedTFunctionOverride","forEach","listener","Object","entries","name","formatterFactory","_this$i18nInstance$se","services","formatter","add","waitForInitializing","keys","Ls","indexOf","availableLanguages","getAvailableLanguages","geti18Instance","getTranslations","getTranslators","_this2","initPromise","registerTranslation","translation","customDayjsLocale","addResources","config","setLanguage","_this3","changeLanguage","addOnLanguageChangeListener","callback","push","unsubscribe","filter","addOnTFunctionOverrideListener","overrideTFunction","tFunction"],"sourceRoot":"../../../../src","sources":["utils/i18n/Streami18n.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,gBAAA,GAA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;QACjB,IAAI,CAACvF,yBAAyB,GAAG,IAAI,CAACA,yBAAyB,CAACwF,MAAM,CACnEhC,QAAQ,IAAKA,QAAQ,KAAK6B,QAC7B,CAAC;MACH;IACF,CAAC;EACH;EAEAI,8BAA8BA,CAACJ,QAAgC,EAAE;IAC/D,IAAI,CAACpF,4BAA4B,CAACqF,IAAI,CAACD,QAAQ,CAAC;IAChD,OAAO;MACLE,WAAW,EAAEA,CAAA,KAAM;QACjB,IAAI,CAACtF,4BAA4B,GAAG,IAAI,CAACA,4BAA4B,CAACuF,MAAM,CACzEhC,QAAQ,IAAKA,QAAQ,KAAK6B,QAC7B,CAAC;MACH;IACF,CAAC;EACH;EAEAK,iBAAiBA,CAACC,SAAoB,EAAE;IACtC,IAAI,CAAC,IAAI,CAAC5F,WAAW,EAAE;MACrB,IAAI,CAACuD,uBAAuB,GAAGqC,SAAS;IAC1C,CAAC,MAAM;MACL,IAAI,CAACzF,CAAC,GAAGyF,SAAS;MAClB,IAAI,CAAC1F,4BAA4B,CAACsD,OAAO,CAAEC,QAAQ,IAAKA,QAAQ,CAACmC,SAAS,CAAC,CAAC;IAC9E;EACF;AACF;AAACjG,OAAA,CAAAC,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_dayjs","_interopRequireDefault","require","_calendar","_duration","_localeData","_localizedFormat","_relativeTime","_updateLocale","_utc","_i18next","_calendarFormats","_predefinedFormatters","_utils","_ar","_en","_es","_fr","_he","_hi","_it","_ja","_ko","_nl","_ptBr","_ru","_tr","defaultNS","defaultLng","Dayjs","extend","updateLocale","utc","calendar","calendarFormats","en","format","L","LL","LLL","LLLL","LT","LTS","ar","es","fr","he","hi","meridiem","hour","meridiemHour","meridiemParse","it","ja","ko","nl","ru","tr","en_locale","formats","months","relativeTime","weekdays","isDayJs","dateTimeParser","undefined","supportsTz","tz","defaultStreami18nOptions","DateTimeParser","dayjsLocaleConfigForLanguage","debug","disableDateTimeTranslations","language","logger","msg","console","warn","Streami18n","i18nInstance","i18n","createInstance","initialized","onLanguageChangeListeners","onTFunctionOverrideListeners","t","defaultTranslatorFunction","translations","arTranslations","enTranslations","esTranslations","frTranslations","heTranslations","hiTranslations","itTranslations","jaTranslations","koTranslations","nlTranslations","ptBRTranslations","ruTranslations","trTranslations","dayjsLocales","formatters","predefinedFormatters","constructor","options","i18nextConfig","finalOptions","currentLanguage","timezone","duration","LocalizedFormat","localeData","error","Error","JSON","stringify","isCustomDateTimeParser","translationsForLanguage","fallbackLng","interpolation","escapeValue","formatSeparator","keySeparator","lng","nsSeparator","parseMissingKeyHandler","key","validateCurrentLanguage","addOrUpdateLocale","localeExists","tDateTimeParser","timestamp","locale","init","_this","_asyncToGenerator2","default","resources","queuedTFunctionOverride","forEach","listener","Object","entries","name","formatterFactory","_this$i18nInstance$se","services","formatter","add","waitForInitializing","keys","Ls","indexOf","availableLanguages","getAvailableLanguages","geti18Instance","getTranslations","getTranslators","_this2","initPromise","registerTranslation","translation","customDayjsLocale","addResources","config","setLanguage","_this3","changeLanguage","addOnLanguageChangeListener","callback","push","unsubscribe","filter","addOnTFunctionOverrideListener","overrideTFunction","tFunction","exports"],"sourceRoot":"../../../../src","sources":["utils/i18n/Streami18n.ts"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,gBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,aAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,IAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,QAAA,GAAAT,sBAAA,CAAAC,OAAA;AAIA,IAAAS,gBAAA,GAAAT,OAAA;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F,4BAA4B,GAAG,IAAI,CAACA,4BAA4B,CAACyF,MAAM,CACzEhC,QAAQ,IAAKA,QAAQ,KAAK6B,QAC7B,CAAC;MACH;IACF,CAAC;EACH;EAEAK,iBAAiBA,CAACC,SAAoB,EAAE;IACtC,IAAI,CAAC,IAAI,CAAC9F,WAAW,EAAE;MACrB,IAAI,CAACyD,uBAAuB,GAAGqC,SAAS;IAC1C,CAAC,MAAM;MACL,IAAI,CAAC3F,CAAC,GAAG2F,SAAS;MAClB,IAAI,CAAC5F,4BAA4B,CAACwD,OAAO,CAAEC,QAAQ,IAAKA,QAAQ,CAACmC,SAAS,CAAC,CAAC;IAC9E;EACF;AACF;AAACC,OAAA,CAAAnG,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defaultTranslatorFunction","key","exports"],"sourceRoot":"../../../../src","sources":["utils/i18n/utils.ts"],"mappings":";;;;AAEO,IAAMA,yBAAyB,GAAKC,GAAW,IAAKA,GAAiB;AAACC,OAAA,CAAAF,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
package/lib/module/version.json
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
export declare const composeAccessibilityLabel: (...parts: Array<string | null | undefined | false>) => string;
|
|
7
7
|
/**
|
|
8
8
|
* Build the value object passed to `accessibilityValue` for progress/seek surfaces.
|
|
9
|
-
* Mirrors the React SDK's `progressBarA11y.ts` shape.
|
|
10
9
|
*/
|
|
11
10
|
export declare const formatAccessibilityValue: ({ max, min, now, text, }: {
|
|
12
11
|
max: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11yUtils.d.ts","sourceRoot":"","sources":["../../../src/a11y/a11yUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GACpC,GAAG,OAAO,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC,KACjD,MAA4F,CAAC;AAEhG
|
|
1
|
+
{"version":3,"file":"a11yUtils.d.ts","sourceRoot":"","sources":["../../../src/a11y/a11yUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GACpC,GAAG,OAAO,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC,KACjD,MAA4F,CAAC;AAEhG;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,0BAKtC;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,KAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAQzD,CAAC;AAEF;;GAEG;AACH,KAAK,UAAU,GAAG,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE7D,eAAO,MAAM,yBAAyB,GACpC,GAAG,aAAa,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,KAC3D,UAAU,EASZ,CAAC"}
|
|
@@ -4,9 +4,8 @@ export type ResolvedModalAccessibilityProps = {
|
|
|
4
4
|
accessibilityRole?: 'none' | 'button' | 'image' | 'text' | 'alert' | 'menu' | 'menuitem';
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
|
-
* Returns the platform-appropriate set of a11y props for a modal/sheet root
|
|
8
|
-
*
|
|
9
|
-
* RN's iOS-vs-Android split:
|
|
7
|
+
* Returns the platform-appropriate set of a11y props for a modal/sheet root,
|
|
8
|
+
* aware of RN's iOS-vs-Android split:
|
|
10
9
|
* - iOS uses `accessibilityViewIsModal` to trap focus.
|
|
11
10
|
* - Android uses `importantForAccessibility="yes"` on the modal root and
|
|
12
11
|
* `"no-hide-descendants"` on background siblings (caller's responsibility).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResolvedModalAccessibilityProps.d.ts","sourceRoot":"","sources":["../../../../src/a11y/hooks/useResolvedModalAccessibilityProps.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,+BAA+B,GAAG;IAC5C,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,yBAAyB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,qBAAqB,CAAC;IAC1E,iBAAiB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;CAC1F,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"useResolvedModalAccessibilityProps.d.ts","sourceRoot":"","sources":["../../../../src/a11y/hooks/useResolvedModalAccessibilityProps.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,+BAA+B,GAAG;IAC5C,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,yBAAyB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,qBAAqB,CAAC;IAC1E,iBAAiB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;CAC1F,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,kCAAkC,QAAO,+BAQrD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { A2UIEngine } from './A2UIRenderer';
|
|
2
|
+
/** The engine of the surfaces below, for what in them reaches the host, such as links. */
|
|
3
|
+
export declare const A2UIEngineContext: import("react").Context<A2UIEngine | undefined>;
|
|
4
|
+
/** The reply the surfaces below belong to, and whether the agent is still writing it. */
|
|
5
|
+
export declare const A2UIReplyContext: import("react").Context<{
|
|
6
|
+
isStreaming: boolean;
|
|
7
|
+
messageId: string;
|
|
8
|
+
} | undefined>;
|
|
9
|
+
//# sourceMappingURL=A2UIContexts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A2UIContexts.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIContexts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,iDAAmD,CAAC;AAElF,yFAAyF;AACzF,eAAO,MAAM,gBAAgB;iBAEV,OAAO;eACT,MAAM;cAGX,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { AIUIComponent } from '../ai-components/generative-ui/AIUIComponent';
|
|
2
|
+
import type { AIUIComponentDefinition } from '../ai-components/generative-ui/AIUIComponentDefinition';
|
|
3
|
+
import type { AIClientToolDefinition } from '../ai-components/tool-calls/AIClientToolRunner';
|
|
4
|
+
/**
|
|
5
|
+
* What an agent is told to write replies' UI in A2UI with: the basic catalog, or the part of it
|
|
6
|
+
* `keep` names, with the app's components, and what the app adds.
|
|
7
|
+
*/
|
|
8
|
+
export type A2UIInstructionsConfig = {
|
|
9
|
+
/** The id of the catalog with the app's components, as the renderer names it. */
|
|
10
|
+
catalogId?: string;
|
|
11
|
+
/** The app's components, or their portable definitions, such as a `UIComponents.json`. */
|
|
12
|
+
components?: (AIUIComponent | AIUIComponentDefinition)[];
|
|
13
|
+
/**
|
|
14
|
+
* Replies with their UI, as the agent should write them. Each block must render with the
|
|
15
|
+
* catalog, or no instructions are written: a broken example teaches the model broken UI.
|
|
16
|
+
*/
|
|
17
|
+
examples?: string[];
|
|
18
|
+
/** The info string of a reply's UI block, as the agents router reads it. */
|
|
19
|
+
fence?: string;
|
|
20
|
+
/** The basic catalog's components and functions to describe; all of them when absent. */
|
|
21
|
+
keep?: string[];
|
|
22
|
+
/**
|
|
23
|
+
* The basic catalog's components and functions to leave out, such as those the app's renderer
|
|
24
|
+
* leaves out with its own `removing`, after `keep`.
|
|
25
|
+
*/
|
|
26
|
+
removing?: string[];
|
|
27
|
+
/** Guidance on using the app's components. */
|
|
28
|
+
notes?: string[];
|
|
29
|
+
/** What the model is told first, such as which answers to write as UI. */
|
|
30
|
+
preamble?: string;
|
|
31
|
+
/** Rules added after the protocol's. */
|
|
32
|
+
rules?: string[];
|
|
33
|
+
/** The app's tools the agent can call from the UI it writes, as functions of the catalog. */
|
|
34
|
+
tools?: AIClientToolDefinition[];
|
|
35
|
+
};
|
|
36
|
+
/** The A2UI an example holds that would not render, and why. */
|
|
37
|
+
export declare class A2UIInstructionsError extends Error {
|
|
38
|
+
readonly problems: string[];
|
|
39
|
+
constructor(problems: string[]);
|
|
40
|
+
}
|
|
41
|
+
/** A description of the A2UI v1.0 messages and the rules that keep what they make valid. */
|
|
42
|
+
export declare const A2UI_PROTOCOL_OVERVIEW = "# Generating user interfaces with A2UI v1.0\n\nYou render user interfaces by emitting A2UI messages. Every message is a JSON object with a `\"version\": \"1.0\"` field plus exactly one of these keys:\n\n- `createSurface`: creates a surface. Requires `surfaceId`, and accepts `catalogId`, `sendDataModel`, `components` and `dataModel` so a complete UI can be sent in one message.\n- `updateComponents`: adds or replaces components of an existing surface. Requires `surfaceId` and `components`.\n- `updateDataModel`: writes to the surface data model. Requires `surfaceId` and `value`, and accepts a JSON Pointer `path`. Setting `value` to `null` deletes the entry at `path`.\n- `deleteSurface`: removes a surface. Requires `surfaceId`.\n- `callRendererFunction`: asks the renderer to run one of its functions.\n- `agentFunctionResponse`: answers a `callAgentFunction` request from the renderer.\n\nRules:\n\n1. Components are a flat adjacency list. Each component has a unique `id`, a `component` type, and its properties inline. Exactly one component must have the id `root`. An id is an identifier: letters, digits and underscores, not starting with a digit, such as `saturday_plan` (never `saturday-plan`).\n2. Children are referenced by id, never nested inline. Use an array of ids, or `{\"componentId\": \"...\", \"path\": \"/items\"}` to repeat a template for every item of a data model list.\n3. Any property may be a literal, a data binding `{\"@path\": \"/a/b\"}` or a function call `{\"@call\": \"name\", \"args\": {...}}`. Inside a list template, paths without a leading slash resolve relative to the current item, and `{\"@call\": \"@index\"}` returns the item's position. A literal object key that starts with `@` is written with `@@`, so `\"@@type\"` means `\"@type\"`.\n4. Put content that changes in the data model and bind to it, so you can update values with `updateDataModel` instead of resending components.\n5. Interactive components declare an `action`, which either dispatches an event to you (`{\"event\": {\"name\": \"...\", \"context\": {...}}}`) or runs a renderer function (`{\"functionCall\": {\"@call\": \"openUrl\", \"args\": {\"url\": \"...\"}}}`).\n6. Surface ids must be unique for the lifetime of the renderer. Creating a surface that already exists is an error: delete it first, or send `updateComponents` and `updateDataModel` to change it.";
|
|
43
|
+
export declare const writing: (fence: string, catalogId: string) => string;
|
|
44
|
+
export declare const sorted: (value: unknown) => unknown;
|
|
45
|
+
export declare const fenceOf: (fence?: string) => string;
|
|
46
|
+
export declare const blocksIn: (example: string, fence: string) => string[];
|
|
47
|
+
//# sourceMappingURL=A2UIInstructions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A2UIInstructions.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIInstructions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AAEtG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,CAAC,aAAa,GAAG,uBAAuB,CAAC,EAAE,CAAC;IACzD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,6FAA6F;IAC7F,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAC;CAClC,CAAC;AAEF,gEAAgE;AAChE,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;gBAEhB,QAAQ,EAAE,MAAM,EAAE;CAK/B;AAED,4FAA4F;AAC5F,eAAO,MAAM,sBAAsB,40EAkBqK,CAAC;AAEzM,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,EAAE,WAAW,MAAM,WAO2Z,CAAC;AAGpd,eAAO,MAAM,MAAM,GAAI,OAAO,OAAO,KAAG,OAS3B,CAAC;AAEd,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,WAAuC,CAAC;AAG9E,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM,EAAE,OAAO,MAAM,aAIX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A2UIPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,iEAAiE;AACjE,eAAO,MAAM,eAAe,yBAW3B,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Catalog, type ComponentApi, type SurfaceModel } from '@a2ui/web_core';
|
|
3
|
+
import { A2UI_DEFAULT_CATALOG_ID } from './catalogDocument';
|
|
4
|
+
import type { A2UIComponents, A2UIIcons } from './components/types';
|
|
5
|
+
import type { AIUIDocument } from '../ai-components/generative-ui/AIUIDocument';
|
|
6
|
+
import type { AIUIHost } from '../ai-components/generative-ui/AIUIHost';
|
|
7
|
+
import { type AIUIMediaURL } from '../ai-components/generative-ui/AIUIMedia';
|
|
8
|
+
import type { AIUIEngine, AIUIRenderer } from '../ai-components/generative-ui/AIUIRenderer';
|
|
9
|
+
export { A2UI_DEFAULT_CATALOG_ID };
|
|
10
|
+
/** What went wrong in a reply's A2UI, as the A2UI specification reports it to an agent. */
|
|
11
|
+
export type A2UIError = {
|
|
12
|
+
/** A code such as `VALIDATION_FAILED` or `EXPRESSION_ERROR`. */
|
|
13
|
+
code: string;
|
|
14
|
+
message: string;
|
|
15
|
+
/** Where in the message it went wrong, as a JSON pointer. */
|
|
16
|
+
path?: string;
|
|
17
|
+
surfaceId?: string;
|
|
18
|
+
};
|
|
19
|
+
export type A2UIRendererOptions = {
|
|
20
|
+
/**
|
|
21
|
+
* The id the agent names the catalog with the app's components by. A surface naming the
|
|
22
|
+
* basic catalog shows them too, and a surface naming none is made with this one.
|
|
23
|
+
*/
|
|
24
|
+
catalogId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The views of the basic catalog's components to use instead of the default ones, by their
|
|
27
|
+
* A2UI type, such as `{ Card: MyCard }`. Each gets what the agent wrote for it, resolved.
|
|
28
|
+
*/
|
|
29
|
+
components?: A2UIComponents;
|
|
30
|
+
/**
|
|
31
|
+
* The app's icons for the names A2UI's Icon takes, such as `{ shoppingCart: MyCartIcon }`, over
|
|
32
|
+
* the Material icons it draws by default. An app's own names work too, when its agent is told
|
|
33
|
+
* them.
|
|
34
|
+
*/
|
|
35
|
+
icons?: A2UIIcons;
|
|
36
|
+
/**
|
|
37
|
+
* What the app tells the model before A2UI's own instructions in `capabilities`, such as which
|
|
38
|
+
* answers to write as UI.
|
|
39
|
+
*/
|
|
40
|
+
instructions?: string;
|
|
41
|
+
/** The locale numbers and dates are formatted in. `en-US` by default. */
|
|
42
|
+
locale?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Decides what an Image, Video or AudioPlayer loads for the link the agent wrote: the address
|
|
45
|
+
* to load, or `null` not to load it. By default only public web links load, never addresses on
|
|
46
|
+
* the person's network, such as `192.168.1.1` or `localhost`.
|
|
47
|
+
*/
|
|
48
|
+
mediaUrl?: AIUIMediaURL;
|
|
49
|
+
/**
|
|
50
|
+
* The basic catalog's components and functions this renderer leaves out, such as `['Video']`.
|
|
51
|
+
* The agent's instructions leave them out too, and a reply that places one shows the rest.
|
|
52
|
+
*/
|
|
53
|
+
removing?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Tells the app what went wrong in a reply's A2UI, such as a message that isn't JSON or a
|
|
56
|
+
* component the catalog doesn't have, with the reply's id. The rest of the reply's UI still
|
|
57
|
+
* shows. What is wrong with the renderer rather than a reply, such as an app's component that
|
|
58
|
+
* can't join the catalog, comes without an id. Logged by default.
|
|
59
|
+
*/
|
|
60
|
+
onError?: (error: A2UIError, messageId?: string) => void;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* The surfaces of one reply: its own processor, fed the messages of its document as they
|
|
64
|
+
* complete. Messages that changed, rather than grew, start its surfaces again.
|
|
65
|
+
*/
|
|
66
|
+
export declare class A2UIReplyState {
|
|
67
|
+
isStreaming: boolean;
|
|
68
|
+
private applied;
|
|
69
|
+
private readonly engine;
|
|
70
|
+
private listeners;
|
|
71
|
+
private readonly messageId;
|
|
72
|
+
private processor;
|
|
73
|
+
private reported;
|
|
74
|
+
private shown;
|
|
75
|
+
private showedNothing;
|
|
76
|
+
private stopWatching;
|
|
77
|
+
constructor(engine: A2UIEngine, messageId: string);
|
|
78
|
+
/** The reply's surfaces, in the order the agent made them. */
|
|
79
|
+
surfaces: () => SurfaceModel<ComponentApi>[];
|
|
80
|
+
subscribe: (listener: () => void) => () => void;
|
|
81
|
+
/** Applies the messages of `source` not applied yet. */
|
|
82
|
+
update(source: string, isStreaming: boolean): void;
|
|
83
|
+
dispose(): void;
|
|
84
|
+
private feed;
|
|
85
|
+
private oneAtATime;
|
|
86
|
+
private makeProcessor;
|
|
87
|
+
private act;
|
|
88
|
+
private buttonText;
|
|
89
|
+
private watch;
|
|
90
|
+
private refresh;
|
|
91
|
+
private report;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Shows the A2UI of one conversation. Each reply's surfaces are its own, kept for as long as
|
|
95
|
+
* the host keeps the engine, so what the person entered survives scrolling.
|
|
96
|
+
*/
|
|
97
|
+
export declare class A2UIEngine implements AIUIEngine {
|
|
98
|
+
readonly catalogId: string;
|
|
99
|
+
readonly components: A2UIComponents;
|
|
100
|
+
readonly host: AIUIHost;
|
|
101
|
+
readonly icons: A2UIIcons;
|
|
102
|
+
readonly mediaUrl: AIUIMediaURL;
|
|
103
|
+
/** Each reply's surfaces, by the reply's id. */
|
|
104
|
+
readonly replies: Map<string, A2UIReplyState>;
|
|
105
|
+
private made?;
|
|
106
|
+
private readonly options;
|
|
107
|
+
constructor(host: AIUIHost, options: A2UIRendererOptions);
|
|
108
|
+
/** The address an Image, Video or AudioPlayer loads for a link the agent wrote, if any. */
|
|
109
|
+
mediaSource(value: unknown): string | undefined;
|
|
110
|
+
/** The catalogs a reply's surfaces are made with, made once. */
|
|
111
|
+
catalogs(): Catalog<ComponentApi>[];
|
|
112
|
+
/** The app's component the agent places by its A2UI type, such as `PlaceCard`. */
|
|
113
|
+
appComponent(type: string): import("../ai-components").AIUIComponent | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Tells the app what went wrong, after the current render: a reply's messages are applied
|
|
116
|
+
* as it first shows, and an app may set state when told.
|
|
117
|
+
*/
|
|
118
|
+
report(error: A2UIError, messageId?: string): void;
|
|
119
|
+
/** The surfaces of a reply, made with its messages so far the first time they are asked for. */
|
|
120
|
+
replyOf(document: AIUIDocument, messageId: string): A2UIReplyState;
|
|
121
|
+
remove(messageId: string): void;
|
|
122
|
+
view(document: AIUIDocument, messageId: string): React.JSX.Element | null;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The renderer of [A2UI](https://a2ui.org) 1.0 for `AIUIHost`, on the A2UI core
|
|
126
|
+
* (`@a2ui/web_core`), with the basic catalog's components drawn natively. The app's components
|
|
127
|
+
* join its catalog, so the agent places them like the basic catalog's own.
|
|
128
|
+
*/
|
|
129
|
+
export declare const createA2UIRenderer: (options?: A2UIRendererOptions) => AIUIRenderer;
|
|
130
|
+
//# sourceMappingURL=A2UIRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A2UIRenderer.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAG9E,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,YAAY,EAEjB,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AAYxB,OAAO,EAAE,uBAAuB,EAAgB,MAAM,mBAAmB,CAAC;AAG1E,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAWpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAEhF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAG5F,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,2FAA2F;AAC3F,MAAM,MAAM,SAAS,GAAG;IACtB,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG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AAK;IAWb,OAAO,CAAC,OAAO;IAcf,OAAO,CAAC,MAAM;CAMf;AAmCD;;;GAGG;AACH,qBAAa,UAAW,YAAW,UAAU;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC,gDAAgD;IAChD,QAAQ,CAAC,OAAO,8BAAqC;IAErD,OAAO,CAAC,IAAI,CAAC,CAA0B;IACvC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsB;gBAElC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB;IAUxD,2FAA2F;IAC3F,WAAW,CAAC,KAAK,EAAE,OAAO;IAI1B,gEAAgE;IAChE,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,EAAE;IAuBnC,kFAAkF;IAClF,YAAY,CAAC,IAAI,EAAE,MAAM;IAMzB;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,MAAM;IAI3C,gGAAgG;IAChG,OAAO,CAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM;IAUjD,MAAM,CAAC,SAAS,EAAE,MAAM;IAKxB,IAAI,CAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM;CAQ/C;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAS,mBAAwB,KAAG,YAkCtE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AIUIDocument } from '../ai-components/generative-ui/AIUIDocument';
|
|
2
|
+
/** The version of A2UI this renderer reads. */
|
|
3
|
+
export declare const A2UI_VERSION = "1.0";
|
|
4
|
+
/** Whether a reply's A2UI of `version`, or of no version, is one this renderer reads. */
|
|
5
|
+
export declare const supportsA2UIVersion: (version: string | undefined) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The complete A2UI messages in `text`, as written: every top-level JSON object, in order.
|
|
8
|
+
* One object per line, a pretty-printed one or a JSON array of them all read the same, and
|
|
9
|
+
* words around them are skipped. An object still being written is left out until it closes, so
|
|
10
|
+
* a reply's UI shows each message as it completes.
|
|
11
|
+
*/
|
|
12
|
+
export declare const a2uiMessagesIn: (text: string) => string[];
|
|
13
|
+
/**
|
|
14
|
+
* The messages of a document as text: as the agent wrote them, or written out when a backend
|
|
15
|
+
* sent them as JSON. `undefined` for content that holds no messages.
|
|
16
|
+
*/
|
|
17
|
+
export declare const a2uiSourceOf: (document: AIUIDocument) => string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* A message as the processor reads it: 1.0 in its own spelling, and a surface the agent made
|
|
20
|
+
* without naming a catalog made with `catalogId`, the catalog with the app's components.
|
|
21
|
+
*/
|
|
22
|
+
export declare const normalizeA2UIMessage: (message: Record<string, unknown>, catalogId: string) => Record<string, unknown>;
|
|
23
|
+
//# sourceMappingURL=A2UIStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A2UIStream.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAGhF,+CAA+C;AAC/C,eAAO,MAAM,YAAY,QAAQ,CAAC;AAMlC,yFAAyF;AACzF,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,GAAG,SAAS,YACN,CAAC;AAK1D;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAAM,EA6CnD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,UAAU,YAAY,KAAG,MAAM,GAAG,SAW9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,WAAW,MAAM,KAChB,MAAM,CAAC,MAAM,EAAE,OAAO,CAUxB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ComponentApi, type Signal, type SurfaceModel } from '@a2ui/web_core';
|
|
3
|
+
/** The value of an A2UI signal, following it. */
|
|
4
|
+
export declare const useSignalValue: <T>(signal: Signal<T>) => T;
|
|
5
|
+
/** The axis the parent of a part lays its children out on, which a part's weight grows along. */
|
|
6
|
+
export declare const A2UIAxisContext: React.Context<"row" | "column">;
|
|
7
|
+
/** A child of a part, as its view gets it: a node, or nothing while it is on its way. */
|
|
8
|
+
export declare const A2UIChild: ({ node }: {
|
|
9
|
+
node: unknown;
|
|
10
|
+
}) => React.JSX.Element | null;
|
|
11
|
+
/** The children of a part, as its view gets them. */
|
|
12
|
+
export declare const A2UIChildren: ({ nodes }: {
|
|
13
|
+
nodes: unknown;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
/** A surface of a reply: its tree of parts, from its root, as the agent writes them. */
|
|
16
|
+
export declare const A2UISurfaceView: ({ surface }: {
|
|
17
|
+
surface: SurfaceModel<ComponentApi>;
|
|
18
|
+
}) => React.JSX.Element | null;
|
|
19
|
+
//# sourceMappingURL=A2UISurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A2UISurface.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UISurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AAIf,OAAO,EACL,KAAK,YAAY,EASjB,KAAK,MAAM,EACX,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AASxB,iDAAiD;AACjD,eAAO,MAAM,cAAc,GAAI,CAAC,EAAG,QAAQ,MAAM,CAAC,CAAC,CAAC,MAWnD,CAAC;AAiCF,iGAAiG;AACjG,eAAO,MAAM,eAAe,iCAA4C,CAAC;AAkIzE,yFAAyF;AACzF,eAAO,MAAM,SAAS,GAAI,UAAU;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,6BACI,CAAC;AAE1D,qDAAqD;AACrD,eAAO,MAAM,YAAY,GAAI,WAAW;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,sBAQzD,CAAC;AAaF,wFAAwF;AACxF,eAAO,MAAM,eAAe,GAAI,aAAa;IAAE,OAAO,EAAE,YAAY,CAAC,YAAY,CAAC,CAAA;CAAE,6BAGnF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FunctionApi, type FunctionImplementation } from '@a2ui/web_core';
|
|
2
|
+
/**
|
|
3
|
+
* The basic catalog's functions, for the function definitions `apis` of its document, with
|
|
4
|
+
* `openUrl` run by `openUrl`. Formatting follows `locale`, or `en-US`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const basicFunctionsOf: (apis: Map<string, FunctionApi>, { locale, openUrl }: {
|
|
7
|
+
openUrl: (url: string) => void;
|
|
8
|
+
locale?: string;
|
|
9
|
+
}) => FunctionImplementation[];
|
|
10
|
+
//# sourceMappingURL=basicFunctions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicFunctions.d.ts","sourceRoot":"","sources":["../../../src/a2ui/basicFunctions.ts"],"names":[],"mappings":"AAqBA,OAAO,EAML,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAK5B,MAAM,gBAAgB,CAAC;AAmVxB;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9B,qBAAqB;IAAE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KACvE,sBAAsB,EAiDxB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { AIUIComponent } from '../ai-components/generative-ui/AIUIComponent';
|
|
2
|
+
import type { AIUIComponentDefinition, AIUIJSONSchema } from '../ai-components/generative-ui/AIUIComponentDefinition';
|
|
3
|
+
import type { AIClientToolDefinition } from '../ai-components/tool-calls/AIClientToolRunner';
|
|
4
|
+
/** The id of the catalog with the app's components, unless the renderer is given another. */
|
|
5
|
+
export declare const A2UI_DEFAULT_CATALOG_ID = "getstream.io:app-catalog";
|
|
6
|
+
/** The A2UI type of one of the app's components, named as the basic catalog names its own. */
|
|
7
|
+
export declare const a2uiTypeName: (name: string) => string;
|
|
8
|
+
/**
|
|
9
|
+
* The app's components as an A2UI catalog document: each under its A2UI type, its parameters
|
|
10
|
+
* as its properties and what its events do in its description, since it reports them itself
|
|
11
|
+
* rather than through an A2UI action the agent writes. With `bindings`, as the renderer reads
|
|
12
|
+
* them, a parameter may also be bound to the data model or worked out by a function; without,
|
|
13
|
+
* as an agent is told them, it is the value its schema describes.
|
|
14
|
+
*/
|
|
15
|
+
export declare const a2uiAppCatalogDocument: (catalogId: string, components: (AIUIComponent | AIUIComponentDefinition)[], { bindings, tools }?: {
|
|
16
|
+
bindings?: boolean;
|
|
17
|
+
tools?: AIClientToolDefinition[];
|
|
18
|
+
}) => {
|
|
19
|
+
protocolVersion: string;
|
|
20
|
+
functions?: {
|
|
21
|
+
[k: string]: {
|
|
22
|
+
properties: {
|
|
23
|
+
'@call': {
|
|
24
|
+
const: string;
|
|
25
|
+
};
|
|
26
|
+
args: {
|
|
27
|
+
properties: {
|
|
28
|
+
[k: string]: AIUIJSONSchema | {
|
|
29
|
+
anyOf: AIUIJSONSchema[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
required: any[];
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
required: string[];
|
|
37
|
+
returnType: string;
|
|
38
|
+
type: string;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
} | undefined;
|
|
42
|
+
catalogId: string;
|
|
43
|
+
components: {
|
|
44
|
+
[k: string]: {
|
|
45
|
+
properties: {
|
|
46
|
+
component: {
|
|
47
|
+
const: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
required: string[];
|
|
51
|
+
type: string;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=catalogDocument.d.ts.map
|