stream-chat-react-native-core 9.9.4 → 9.10.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/ai-components/package.json +6 -0
- package/lib/commonjs/ai-components/AITypingIndicatorView.js +49 -0
- package/lib/commonjs/ai-components/AITypingIndicatorView.js.map +1 -0
- package/lib/commonjs/ai-components/README.md +279 -0
- package/lib/commonjs/ai-components/StreamingMessageView.js +75 -0
- package/lib/commonjs/ai-components/StreamingMessageView.js.map +1 -0
- package/lib/commonjs/ai-components/charts/Chart.js +25 -0
- package/lib/commonjs/ai-components/charts/Chart.js.map +1 -0
- package/lib/commonjs/ai-components/charts/components/PieLegend.js +54 -0
- package/lib/commonjs/ai-components/charts/components/PieLegend.js.map +1 -0
- package/lib/commonjs/ai-components/charts/components/VictoryChart.js +183 -0
- package/lib/commonjs/ai-components/charts/components/VictoryChart.js.map +1 -0
- package/lib/commonjs/ai-components/charts/components/index.js +26 -0
- package/lib/commonjs/ai-components/charts/components/index.js.map +1 -0
- package/lib/commonjs/ai-components/charts/index.js +70 -0
- package/lib/commonjs/ai-components/charts/index.js.map +1 -0
- package/lib/commonjs/ai-components/charts/mermaid/index.js +15 -0
- package/lib/commonjs/ai-components/charts/mermaid/index.js.map +1 -0
- package/lib/commonjs/ai-components/charts/mermaid/parser.js +45 -0
- package/lib/commonjs/ai-components/charts/mermaid/parser.js.map +1 -0
- package/lib/commonjs/ai-components/charts/types.js +2 -0
- package/lib/commonjs/ai-components/charts/types.js.map +1 -0
- package/lib/commonjs/ai-components/charts/utils/generate-pie-colors.js +68 -0
- package/lib/commonjs/ai-components/charts/utils/generate-pie-colors.js.map +1 -0
- package/lib/commonjs/ai-components/charts/utils/index.js +26 -0
- package/lib/commonjs/ai-components/charts/utils/index.js.map +1 -0
- package/lib/commonjs/ai-components/charts/utils/parse-json-chart.js +15 -0
- package/lib/commonjs/ai-components/charts/utils/parse-json-chart.js.map +1 -0
- package/lib/commonjs/ai-components/charts/vega-lite/index.js +26 -0
- package/lib/commonjs/ai-components/charts/vega-lite/index.js.map +1 -0
- package/lib/commonjs/ai-components/charts/vega-lite/parser.js +54 -0
- package/lib/commonjs/ai-components/charts/vega-lite/parser.js.map +1 -0
- package/lib/commonjs/ai-components/charts/vega-lite/schema.js +82 -0
- package/lib/commonjs/ai-components/charts/vega-lite/schema.js.map +1 -0
- package/lib/commonjs/ai-components/components/BottomSheet.js +182 -0
- package/lib/commonjs/ai-components/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/ai-components/components/MarkdownReactiveScrollView.js +81 -0
- package/lib/commonjs/ai-components/components/MarkdownReactiveScrollView.js.map +1 -0
- package/lib/commonjs/ai-components/components/index.js +26 -0
- package/lib/commonjs/ai-components/components/index.js.map +1 -0
- package/lib/commonjs/ai-components/contexts/composer-context.js +68 -0
- package/lib/commonjs/ai-components/contexts/composer-context.js.map +1 -0
- package/lib/commonjs/ai-components/contexts/index.js +26 -0
- package/lib/commonjs/ai-components/contexts/index.js.map +1 -0
- package/lib/commonjs/ai-components/contexts/theme-context.js +53 -0
- package/lib/commonjs/ai-components/contexts/theme-context.js.map +1 -0
- package/lib/commonjs/ai-components/index.js +166 -0
- package/lib/commonjs/ai-components/index.js.map +1 -0
- package/lib/commonjs/ai-components/internal/hooks/useStableCallback.js +14 -0
- package/lib/commonjs/ai-components/internal/hooks/useStableCallback.js.map +1 -0
- package/lib/commonjs/ai-components/internal/icons/Camera.js +18 -0
- package/lib/commonjs/ai-components/internal/icons/Camera.js.map +1 -0
- package/lib/commonjs/ai-components/internal/icons/CircleStop.js +24 -0
- package/lib/commonjs/ai-components/internal/icons/CircleStop.js.map +1 -0
- package/lib/commonjs/ai-components/internal/icons/Close.js +18 -0
- package/lib/commonjs/ai-components/internal/icons/Close.js.map +1 -0
- package/lib/commonjs/ai-components/internal/icons/Mic.js +27 -0
- package/lib/commonjs/ai-components/internal/icons/Mic.js.map +1 -0
- package/lib/commonjs/ai-components/internal/icons/Picture.js +21 -0
- package/lib/commonjs/ai-components/internal/icons/Picture.js.map +1 -0
- package/lib/commonjs/ai-components/internal/icons/SendUp.js +28 -0
- package/lib/commonjs/ai-components/internal/icons/SendUp.js.map +1 -0
- package/lib/commonjs/ai-components/internal/icons/utils/base.js +42 -0
- package/lib/commonjs/ai-components/internal/icons/utils/base.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Autolink.js +37 -0
- package/lib/commonjs/ai-components/markdown/components/Autolink.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/BlockQuote.js +37 -0
- package/lib/commonjs/ai-components/markdown/components/BlockQuote.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Bold.js +32 -0
- package/lib/commonjs/ai-components/markdown/components/Bold.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/CodeBlock.js +114 -0
- package/lib/commonjs/ai-components/markdown/components/CodeBlock.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Emphasis.js +32 -0
- package/lib/commonjs/ai-components/markdown/components/Emphasis.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Heading.js +41 -0
- package/lib/commonjs/ai-components/markdown/components/Heading.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/HorizontalRule.js +26 -0
- package/lib/commonjs/ai-components/markdown/components/HorizontalRule.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/InlineCode.js +32 -0
- package/lib/commonjs/ai-components/markdown/components/InlineCode.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/LineBreak.js +27 -0
- package/lib/commonjs/ai-components/markdown/components/LineBreak.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Link.js +41 -0
- package/lib/commonjs/ai-components/markdown/components/Link.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/List.js +85 -0
- package/lib/commonjs/ai-components/markdown/components/List.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Mailto.js +37 -0
- package/lib/commonjs/ai-components/markdown/components/Mailto.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Markdown.js +49 -0
- package/lib/commonjs/ai-components/markdown/components/Markdown.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/NewLine.js +27 -0
- package/lib/commonjs/ai-components/markdown/components/NewLine.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Paragraph.js +72 -0
- package/lib/commonjs/ai-components/markdown/components/Paragraph.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Strikethrough.js +32 -0
- package/lib/commonjs/ai-components/markdown/components/Strikethrough.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Table.js +105 -0
- package/lib/commonjs/ai-components/markdown/components/Table.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Text.js +45 -0
- package/lib/commonjs/ai-components/markdown/components/Text.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/Url.js +37 -0
- package/lib/commonjs/ai-components/markdown/components/Url.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/components/index.js +213 -0
- package/lib/commonjs/ai-components/markdown/components/index.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/index.js +59 -0
- package/lib/commonjs/ai-components/markdown/index.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/rules.js +152 -0
- package/lib/commonjs/ai-components/markdown/rules.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/styles.js +240 -0
- package/lib/commonjs/ai-components/markdown/styles.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/types.js +4 -0
- package/lib/commonjs/ai-components/markdown/types.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/utils/generate-markdown-text.js +73 -0
- package/lib/commonjs/ai-components/markdown/utils/generate-markdown-text.js.map +1 -0
- package/lib/commonjs/ai-components/markdown/utils/index.js +15 -0
- package/lib/commonjs/ai-components/markdown/utils/index.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/ActionButton.js +104 -0
- package/lib/commonjs/ai-components/message-composer/ActionButton.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/ActionSheet.js +197 -0
- package/lib/commonjs/ai-components/message-composer/ActionSheet.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/AttachmentButton.js +55 -0
- package/lib/commonjs/ai-components/message-composer/AttachmentButton.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/ComposerView.js +151 -0
- package/lib/commonjs/ai-components/message-composer/ComposerView.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/MediaPreviewList.js +84 -0
- package/lib/commonjs/ai-components/message-composer/MediaPreviewList.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/SpeechToTextButton.js +82 -0
- package/lib/commonjs/ai-components/message-composer/SpeechToTextButton.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/index.js +59 -0
- package/lib/commonjs/ai-components/message-composer/index.js.map +1 -0
- package/lib/commonjs/ai-components/message-composer/utils/withCloseSheet.js +16 -0
- package/lib/commonjs/ai-components/message-composer/utils/withCloseSheet.js.map +1 -0
- package/lib/commonjs/ai-components/native/AIDictation.js +60 -0
- package/lib/commonjs/ai-components/native/AIDictation.js.map +1 -0
- package/lib/commonjs/ai-components/native/PerfText.js +31 -0
- package/lib/commonjs/ai-components/native/PerfText.js.map +1 -0
- package/lib/commonjs/ai-components/native-specs/NativeAIDictation.js +7 -0
- package/lib/commonjs/ai-components/native-specs/NativeAIDictation.js.map +1 -0
- package/lib/commonjs/ai-components/services/clipboard-service/expo.js +13 -0
- package/lib/commonjs/ai-components/services/clipboard-service/expo.js.map +1 -0
- package/lib/commonjs/ai-components/services/clipboard-service/index.js +8 -0
- package/lib/commonjs/ai-components/services/clipboard-service/index.js.map +1 -0
- package/lib/commonjs/ai-components/services/clipboard-service/rncli.js +10 -0
- package/lib/commonjs/ai-components/services/clipboard-service/rncli.js.map +1 -0
- package/lib/commonjs/ai-components/services/index.js +26 -0
- package/lib/commonjs/ai-components/services/index.js.map +1 -0
- package/lib/commonjs/ai-components/services/media-picker-service/AbstractMediaPickerService.js +31 -0
- package/lib/commonjs/ai-components/services/media-picker-service/AbstractMediaPickerService.js.map +1 -0
- package/lib/commonjs/ai-components/services/media-picker-service/expo.js +169 -0
- package/lib/commonjs/ai-components/services/media-picker-service/expo.js.map +1 -0
- package/lib/commonjs/ai-components/services/media-picker-service/hooks/useMediaPickerState.js +14 -0
- package/lib/commonjs/ai-components/services/media-picker-service/hooks/useMediaPickerState.js.map +1 -0
- package/lib/commonjs/ai-components/services/media-picker-service/index.js +8 -0
- package/lib/commonjs/ai-components/services/media-picker-service/index.js.map +1 -0
- package/lib/commonjs/ai-components/services/media-picker-service/optional-modules.d.js +2 -0
- package/lib/commonjs/ai-components/services/media-picker-service/optional-modules.d.js.map +1 -0
- package/lib/commonjs/ai-components/services/media-picker-service/rncli.js +162 -0
- package/lib/commonjs/ai-components/services/media-picker-service/rncli.js.map +1 -0
- package/lib/commonjs/ai-components/store/bottom-sheet/store.js +27 -0
- package/lib/commonjs/ai-components/store/bottom-sheet/store.js.map +1 -0
- package/lib/commonjs/ai-components/store/bottom-sheet/useBottomSheetState.js +16 -0
- package/lib/commonjs/ai-components/store/bottom-sheet/useBottomSheetState.js.map +1 -0
- package/lib/commonjs/ai-components/store/composer/store.js +11 -0
- package/lib/commonjs/ai-components/store/composer/store.js.map +1 -0
- package/lib/commonjs/ai-components/store/composer/useComposerHasText.js +18 -0
- package/lib/commonjs/ai-components/store/composer/useComposerHasText.js.map +1 -0
- package/lib/commonjs/ai-components/store/composer/useComposerText.js +18 -0
- package/lib/commonjs/ai-components/store/composer/useComposerText.js.map +1 -0
- package/lib/commonjs/ai-components/store/dictation/store.js +17 -0
- package/lib/commonjs/ai-components/store/dictation/store.js.map +1 -0
- package/lib/commonjs/ai-components/store/dictation/useDictationState.js +18 -0
- package/lib/commonjs/ai-components/store/dictation/useDictationState.js.map +1 -0
- package/lib/commonjs/ai-components/store/dictation/useDictationTranscript.js +14 -0
- package/lib/commonjs/ai-components/store/dictation/useDictationTranscript.js.map +1 -0
- package/lib/commonjs/ai-components/store/index.js +70 -0
- package/lib/commonjs/ai-components/store/index.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/SyntaxHighlighter.js +51 -0
- package/lib/commonjs/ai-components/syntax-highlighting/SyntaxHighlighter.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/components/AndroidNativeRenderer.js +35 -0
- package/lib/commonjs/ai-components/syntax-highlighting/components/AndroidNativeRenderer.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/components/index.js +15 -0
- package/lib/commonjs/ai-components/syntax-highlighting/components/index.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/index.js +48 -0
- package/lib/commonjs/ai-components/syntax-highlighting/index.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/prism-config.js +7 -0
- package/lib/commonjs/ai-components/syntax-highlighting/prism-config.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/types.js +4 -0
- package/lib/commonjs/ai-components/syntax-highlighting/types.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/utils/converter.js +107 -0
- package/lib/commonjs/ai-components/syntax-highlighting/utils/converter.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/utils/flatten-nodes.js +139 -0
- package/lib/commonjs/ai-components/syntax-highlighting/utils/flatten-nodes.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/utils/index.js +37 -0
- package/lib/commonjs/ai-components/syntax-highlighting/utils/index.js.map +1 -0
- package/lib/commonjs/ai-components/syntax-highlighting/utils/renderer.js +117 -0
- package/lib/commonjs/ai-components/syntax-highlighting/utils/renderer.js.map +1 -0
- package/lib/commonjs/ai-components/theme.js +99 -0
- package/lib/commonjs/ai-components/theme.js.map +1 -0
- package/lib/commonjs/ai-components/transcription/useDictation.js +114 -0
- package/lib/commonjs/ai-components/transcription/useDictation.js.map +1 -0
- package/lib/commonjs/native.js +4 -0
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/ai-components/AITypingIndicatorView.js +49 -0
- package/lib/module/ai-components/AITypingIndicatorView.js.map +1 -0
- package/lib/module/ai-components/README.md +279 -0
- package/lib/module/ai-components/StreamingMessageView.js +75 -0
- package/lib/module/ai-components/StreamingMessageView.js.map +1 -0
- package/lib/module/ai-components/charts/Chart.js +25 -0
- package/lib/module/ai-components/charts/Chart.js.map +1 -0
- package/lib/module/ai-components/charts/components/PieLegend.js +54 -0
- package/lib/module/ai-components/charts/components/PieLegend.js.map +1 -0
- package/lib/module/ai-components/charts/components/VictoryChart.js +183 -0
- package/lib/module/ai-components/charts/components/VictoryChart.js.map +1 -0
- package/lib/module/ai-components/charts/components/index.js +26 -0
- package/lib/module/ai-components/charts/components/index.js.map +1 -0
- package/lib/module/ai-components/charts/index.js +70 -0
- package/lib/module/ai-components/charts/index.js.map +1 -0
- package/lib/module/ai-components/charts/mermaid/index.js +15 -0
- package/lib/module/ai-components/charts/mermaid/index.js.map +1 -0
- package/lib/module/ai-components/charts/mermaid/parser.js +45 -0
- package/lib/module/ai-components/charts/mermaid/parser.js.map +1 -0
- package/lib/module/ai-components/charts/types.js +2 -0
- package/lib/module/ai-components/charts/types.js.map +1 -0
- package/lib/module/ai-components/charts/utils/generate-pie-colors.js +68 -0
- package/lib/module/ai-components/charts/utils/generate-pie-colors.js.map +1 -0
- package/lib/module/ai-components/charts/utils/index.js +26 -0
- package/lib/module/ai-components/charts/utils/index.js.map +1 -0
- package/lib/module/ai-components/charts/utils/parse-json-chart.js +15 -0
- package/lib/module/ai-components/charts/utils/parse-json-chart.js.map +1 -0
- package/lib/module/ai-components/charts/vega-lite/index.js +26 -0
- package/lib/module/ai-components/charts/vega-lite/index.js.map +1 -0
- package/lib/module/ai-components/charts/vega-lite/parser.js +54 -0
- package/lib/module/ai-components/charts/vega-lite/parser.js.map +1 -0
- package/lib/module/ai-components/charts/vega-lite/schema.js +82 -0
- package/lib/module/ai-components/charts/vega-lite/schema.js.map +1 -0
- package/lib/module/ai-components/components/BottomSheet.js +182 -0
- package/lib/module/ai-components/components/BottomSheet.js.map +1 -0
- package/lib/module/ai-components/components/MarkdownReactiveScrollView.js +81 -0
- package/lib/module/ai-components/components/MarkdownReactiveScrollView.js.map +1 -0
- package/lib/module/ai-components/components/index.js +26 -0
- package/lib/module/ai-components/components/index.js.map +1 -0
- package/lib/module/ai-components/contexts/composer-context.js +68 -0
- package/lib/module/ai-components/contexts/composer-context.js.map +1 -0
- package/lib/module/ai-components/contexts/index.js +26 -0
- package/lib/module/ai-components/contexts/index.js.map +1 -0
- package/lib/module/ai-components/contexts/theme-context.js +53 -0
- package/lib/module/ai-components/contexts/theme-context.js.map +1 -0
- package/lib/module/ai-components/index.js +166 -0
- package/lib/module/ai-components/index.js.map +1 -0
- package/lib/module/ai-components/internal/hooks/useStableCallback.js +14 -0
- package/lib/module/ai-components/internal/hooks/useStableCallback.js.map +1 -0
- package/lib/module/ai-components/internal/icons/Camera.js +18 -0
- package/lib/module/ai-components/internal/icons/Camera.js.map +1 -0
- package/lib/module/ai-components/internal/icons/CircleStop.js +24 -0
- package/lib/module/ai-components/internal/icons/CircleStop.js.map +1 -0
- package/lib/module/ai-components/internal/icons/Close.js +18 -0
- package/lib/module/ai-components/internal/icons/Close.js.map +1 -0
- package/lib/module/ai-components/internal/icons/Mic.js +27 -0
- package/lib/module/ai-components/internal/icons/Mic.js.map +1 -0
- package/lib/module/ai-components/internal/icons/Picture.js +21 -0
- package/lib/module/ai-components/internal/icons/Picture.js.map +1 -0
- package/lib/module/ai-components/internal/icons/SendUp.js +28 -0
- package/lib/module/ai-components/internal/icons/SendUp.js.map +1 -0
- package/lib/module/ai-components/internal/icons/utils/base.js +42 -0
- package/lib/module/ai-components/internal/icons/utils/base.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Autolink.js +37 -0
- package/lib/module/ai-components/markdown/components/Autolink.js.map +1 -0
- package/lib/module/ai-components/markdown/components/BlockQuote.js +37 -0
- package/lib/module/ai-components/markdown/components/BlockQuote.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Bold.js +32 -0
- package/lib/module/ai-components/markdown/components/Bold.js.map +1 -0
- package/lib/module/ai-components/markdown/components/CodeBlock.js +114 -0
- package/lib/module/ai-components/markdown/components/CodeBlock.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Emphasis.js +32 -0
- package/lib/module/ai-components/markdown/components/Emphasis.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Heading.js +41 -0
- package/lib/module/ai-components/markdown/components/Heading.js.map +1 -0
- package/lib/module/ai-components/markdown/components/HorizontalRule.js +26 -0
- package/lib/module/ai-components/markdown/components/HorizontalRule.js.map +1 -0
- package/lib/module/ai-components/markdown/components/InlineCode.js +32 -0
- package/lib/module/ai-components/markdown/components/InlineCode.js.map +1 -0
- package/lib/module/ai-components/markdown/components/LineBreak.js +27 -0
- package/lib/module/ai-components/markdown/components/LineBreak.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Link.js +41 -0
- package/lib/module/ai-components/markdown/components/Link.js.map +1 -0
- package/lib/module/ai-components/markdown/components/List.js +85 -0
- package/lib/module/ai-components/markdown/components/List.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Mailto.js +37 -0
- package/lib/module/ai-components/markdown/components/Mailto.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Markdown.js +49 -0
- package/lib/module/ai-components/markdown/components/Markdown.js.map +1 -0
- package/lib/module/ai-components/markdown/components/NewLine.js +27 -0
- package/lib/module/ai-components/markdown/components/NewLine.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Paragraph.js +72 -0
- package/lib/module/ai-components/markdown/components/Paragraph.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Strikethrough.js +32 -0
- package/lib/module/ai-components/markdown/components/Strikethrough.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Table.js +105 -0
- package/lib/module/ai-components/markdown/components/Table.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Text.js +45 -0
- package/lib/module/ai-components/markdown/components/Text.js.map +1 -0
- package/lib/module/ai-components/markdown/components/Url.js +37 -0
- package/lib/module/ai-components/markdown/components/Url.js.map +1 -0
- package/lib/module/ai-components/markdown/components/index.js +213 -0
- package/lib/module/ai-components/markdown/components/index.js.map +1 -0
- package/lib/module/ai-components/markdown/index.js +59 -0
- package/lib/module/ai-components/markdown/index.js.map +1 -0
- package/lib/module/ai-components/markdown/rules.js +152 -0
- package/lib/module/ai-components/markdown/rules.js.map +1 -0
- package/lib/module/ai-components/markdown/styles.js +240 -0
- package/lib/module/ai-components/markdown/styles.js.map +1 -0
- package/lib/module/ai-components/markdown/types.js +4 -0
- package/lib/module/ai-components/markdown/types.js.map +1 -0
- package/lib/module/ai-components/markdown/utils/generate-markdown-text.js +73 -0
- package/lib/module/ai-components/markdown/utils/generate-markdown-text.js.map +1 -0
- package/lib/module/ai-components/markdown/utils/index.js +15 -0
- package/lib/module/ai-components/markdown/utils/index.js.map +1 -0
- package/lib/module/ai-components/message-composer/ActionButton.js +104 -0
- package/lib/module/ai-components/message-composer/ActionButton.js.map +1 -0
- package/lib/module/ai-components/message-composer/ActionSheet.js +197 -0
- package/lib/module/ai-components/message-composer/ActionSheet.js.map +1 -0
- package/lib/module/ai-components/message-composer/AttachmentButton.js +55 -0
- package/lib/module/ai-components/message-composer/AttachmentButton.js.map +1 -0
- package/lib/module/ai-components/message-composer/ComposerView.js +151 -0
- package/lib/module/ai-components/message-composer/ComposerView.js.map +1 -0
- package/lib/module/ai-components/message-composer/MediaPreviewList.js +84 -0
- package/lib/module/ai-components/message-composer/MediaPreviewList.js.map +1 -0
- package/lib/module/ai-components/message-composer/SpeechToTextButton.js +82 -0
- package/lib/module/ai-components/message-composer/SpeechToTextButton.js.map +1 -0
- package/lib/module/ai-components/message-composer/index.js +59 -0
- package/lib/module/ai-components/message-composer/index.js.map +1 -0
- package/lib/module/ai-components/message-composer/utils/withCloseSheet.js +16 -0
- package/lib/module/ai-components/message-composer/utils/withCloseSheet.js.map +1 -0
- package/lib/module/ai-components/native/AIDictation.js +60 -0
- package/lib/module/ai-components/native/AIDictation.js.map +1 -0
- package/lib/module/ai-components/native/PerfText.js +31 -0
- package/lib/module/ai-components/native/PerfText.js.map +1 -0
- package/lib/module/ai-components/native-specs/NativeAIDictation.js +7 -0
- package/lib/module/ai-components/native-specs/NativeAIDictation.js.map +1 -0
- package/lib/module/ai-components/services/clipboard-service/expo.js +13 -0
- package/lib/module/ai-components/services/clipboard-service/expo.js.map +1 -0
- package/lib/module/ai-components/services/clipboard-service/index.js +8 -0
- package/lib/module/ai-components/services/clipboard-service/index.js.map +1 -0
- package/lib/module/ai-components/services/clipboard-service/rncli.js +10 -0
- package/lib/module/ai-components/services/clipboard-service/rncli.js.map +1 -0
- package/lib/module/ai-components/services/index.js +26 -0
- package/lib/module/ai-components/services/index.js.map +1 -0
- package/lib/module/ai-components/services/media-picker-service/AbstractMediaPickerService.js +31 -0
- package/lib/module/ai-components/services/media-picker-service/AbstractMediaPickerService.js.map +1 -0
- package/lib/module/ai-components/services/media-picker-service/expo.js +169 -0
- package/lib/module/ai-components/services/media-picker-service/expo.js.map +1 -0
- package/lib/module/ai-components/services/media-picker-service/hooks/useMediaPickerState.js +14 -0
- package/lib/module/ai-components/services/media-picker-service/hooks/useMediaPickerState.js.map +1 -0
- package/lib/module/ai-components/services/media-picker-service/index.js +8 -0
- package/lib/module/ai-components/services/media-picker-service/index.js.map +1 -0
- package/lib/module/ai-components/services/media-picker-service/optional-modules.d.js +2 -0
- package/lib/module/ai-components/services/media-picker-service/optional-modules.d.js.map +1 -0
- package/lib/module/ai-components/services/media-picker-service/rncli.js +162 -0
- package/lib/module/ai-components/services/media-picker-service/rncli.js.map +1 -0
- package/lib/module/ai-components/store/bottom-sheet/store.js +27 -0
- package/lib/module/ai-components/store/bottom-sheet/store.js.map +1 -0
- package/lib/module/ai-components/store/bottom-sheet/useBottomSheetState.js +16 -0
- package/lib/module/ai-components/store/bottom-sheet/useBottomSheetState.js.map +1 -0
- package/lib/module/ai-components/store/composer/store.js +11 -0
- package/lib/module/ai-components/store/composer/store.js.map +1 -0
- package/lib/module/ai-components/store/composer/useComposerHasText.js +18 -0
- package/lib/module/ai-components/store/composer/useComposerHasText.js.map +1 -0
- package/lib/module/ai-components/store/composer/useComposerText.js +18 -0
- package/lib/module/ai-components/store/composer/useComposerText.js.map +1 -0
- package/lib/module/ai-components/store/dictation/store.js +17 -0
- package/lib/module/ai-components/store/dictation/store.js.map +1 -0
- package/lib/module/ai-components/store/dictation/useDictationState.js +18 -0
- package/lib/module/ai-components/store/dictation/useDictationState.js.map +1 -0
- package/lib/module/ai-components/store/dictation/useDictationTranscript.js +14 -0
- package/lib/module/ai-components/store/dictation/useDictationTranscript.js.map +1 -0
- package/lib/module/ai-components/store/index.js +70 -0
- package/lib/module/ai-components/store/index.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/SyntaxHighlighter.js +51 -0
- package/lib/module/ai-components/syntax-highlighting/SyntaxHighlighter.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/components/AndroidNativeRenderer.js +35 -0
- package/lib/module/ai-components/syntax-highlighting/components/AndroidNativeRenderer.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/components/index.js +15 -0
- package/lib/module/ai-components/syntax-highlighting/components/index.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/index.js +48 -0
- package/lib/module/ai-components/syntax-highlighting/index.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/prism-config.js +7 -0
- package/lib/module/ai-components/syntax-highlighting/prism-config.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/types.js +4 -0
- package/lib/module/ai-components/syntax-highlighting/types.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/utils/converter.js +107 -0
- package/lib/module/ai-components/syntax-highlighting/utils/converter.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/utils/flatten-nodes.js +139 -0
- package/lib/module/ai-components/syntax-highlighting/utils/flatten-nodes.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/utils/index.js +37 -0
- package/lib/module/ai-components/syntax-highlighting/utils/index.js.map +1 -0
- package/lib/module/ai-components/syntax-highlighting/utils/renderer.js +117 -0
- package/lib/module/ai-components/syntax-highlighting/utils/renderer.js.map +1 -0
- package/lib/module/ai-components/theme.js +99 -0
- package/lib/module/ai-components/theme.js.map +1 -0
- package/lib/module/ai-components/transcription/useDictation.js +114 -0
- package/lib/module/ai-components/transcription/useDictation.js.map +1 -0
- package/lib/module/native.js +4 -0
- package/lib/module/native.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/ai-components/AITypingIndicatorView.d.ts +4 -0
- package/lib/typescript/ai-components/AITypingIndicatorView.d.ts.map +1 -0
- package/lib/typescript/ai-components/StreamingMessageView.d.ts +19 -0
- package/lib/typescript/ai-components/StreamingMessageView.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/Chart.d.ts +10 -0
- package/lib/typescript/ai-components/charts/Chart.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/components/PieLegend.d.ts +7 -0
- package/lib/typescript/ai-components/charts/components/PieLegend.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/components/VictoryChart.d.ts +9 -0
- package/lib/typescript/ai-components/charts/components/VictoryChart.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/components/index.d.ts +3 -0
- package/lib/typescript/ai-components/charts/components/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/index.d.ts +7 -0
- package/lib/typescript/ai-components/charts/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/mermaid/index.d.ts +2 -0
- package/lib/typescript/ai-components/charts/mermaid/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/mermaid/parser.d.ts +4 -0
- package/lib/typescript/ai-components/charts/mermaid/parser.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/types.d.ts +23 -0
- package/lib/typescript/ai-components/charts/types.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/utils/generate-pie-colors.d.ts +9 -0
- package/lib/typescript/ai-components/charts/utils/generate-pie-colors.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/utils/index.d.ts +3 -0
- package/lib/typescript/ai-components/charts/utils/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/utils/parse-json-chart.d.ts +3 -0
- package/lib/typescript/ai-components/charts/utils/parse-json-chart.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/vega-lite/index.d.ts +3 -0
- package/lib/typescript/ai-components/charts/vega-lite/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/vega-lite/parser.d.ts +4 -0
- package/lib/typescript/ai-components/charts/vega-lite/parser.d.ts.map +1 -0
- package/lib/typescript/ai-components/charts/vega-lite/schema.d.ts +305 -0
- package/lib/typescript/ai-components/charts/vega-lite/schema.d.ts.map +1 -0
- package/lib/typescript/ai-components/components/BottomSheet.d.ts +5 -0
- package/lib/typescript/ai-components/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/ai-components/components/MarkdownReactiveScrollView.d.ts +3 -0
- package/lib/typescript/ai-components/components/MarkdownReactiveScrollView.d.ts.map +1 -0
- package/lib/typescript/ai-components/components/index.d.ts +3 -0
- package/lib/typescript/ai-components/components/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/contexts/composer-context.d.ts +16 -0
- package/lib/typescript/ai-components/contexts/composer-context.d.ts.map +1 -0
- package/lib/typescript/ai-components/contexts/index.d.ts +3 -0
- package/lib/typescript/ai-components/contexts/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/contexts/theme-context.d.ts +23 -0
- package/lib/typescript/ai-components/contexts/theme-context.d.ts.map +1 -0
- package/lib/typescript/ai-components/index.d.ts +15 -0
- package/lib/typescript/ai-components/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/hooks/useStableCallback.d.ts +26 -0
- package/lib/typescript/ai-components/internal/hooks/useStableCallback.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/icons/Camera.d.ts +4 -0
- package/lib/typescript/ai-components/internal/icons/Camera.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/icons/CircleStop.d.ts +8 -0
- package/lib/typescript/ai-components/internal/icons/CircleStop.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/icons/Close.d.ts +4 -0
- package/lib/typescript/ai-components/internal/icons/Close.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/icons/Mic.d.ts +8 -0
- package/lib/typescript/ai-components/internal/icons/Mic.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/icons/Picture.d.ts +4 -0
- package/lib/typescript/ai-components/internal/icons/Picture.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/icons/SendUp.d.ts +8 -0
- package/lib/typescript/ai-components/internal/icons/SendUp.d.ts.map +1 -0
- package/lib/typescript/ai-components/internal/icons/utils/base.d.ts +13 -0
- package/lib/typescript/ai-components/internal/icons/utils/base.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Autolink.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Autolink.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/BlockQuote.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/BlockQuote.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Bold.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Bold.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/CodeBlock.d.ts +9 -0
- package/lib/typescript/ai-components/markdown/components/CodeBlock.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Emphasis.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Emphasis.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Heading.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Heading.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/HorizontalRule.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/HorizontalRule.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/InlineCode.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/InlineCode.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/LineBreak.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/LineBreak.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Link.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Link.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/List.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/List.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Mailto.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Mailto.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Markdown.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Markdown.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/NewLine.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/NewLine.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Paragraph.d.ts +5 -0
- package/lib/typescript/ai-components/markdown/components/Paragraph.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Strikethrough.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Strikethrough.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Table.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Table.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Text.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Text.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/Url.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/components/Url.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/components/index.d.ts +20 -0
- package/lib/typescript/ai-components/markdown/components/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/index.d.ts +6 -0
- package/lib/typescript/ai-components/markdown/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/rules.d.ts +4 -0
- package/lib/typescript/ai-components/markdown/rules.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/styles.d.ts +232 -0
- package/lib/typescript/ai-components/markdown/styles.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/types.d.ts +137 -0
- package/lib/typescript/ai-components/markdown/types.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/utils/generate-markdown-text.d.ts +5 -0
- package/lib/typescript/ai-components/markdown/utils/generate-markdown-text.d.ts.map +1 -0
- package/lib/typescript/ai-components/markdown/utils/index.d.ts +2 -0
- package/lib/typescript/ai-components/markdown/utils/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/ActionButton.d.ts +4 -0
- package/lib/typescript/ai-components/message-composer/ActionButton.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/ActionSheet.d.ts +16 -0
- package/lib/typescript/ai-components/message-composer/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/AttachmentButton.d.ts +3 -0
- package/lib/typescript/ai-components/message-composer/AttachmentButton.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/ComposerView.d.ts +33 -0
- package/lib/typescript/ai-components/message-composer/ComposerView.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/MediaPreviewList.d.ts +3 -0
- package/lib/typescript/ai-components/message-composer/MediaPreviewList.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/SpeechToTextButton.d.ts +12 -0
- package/lib/typescript/ai-components/message-composer/SpeechToTextButton.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/index.d.ts +6 -0
- package/lib/typescript/ai-components/message-composer/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/message-composer/utils/withCloseSheet.d.ts +2 -0
- package/lib/typescript/ai-components/message-composer/utils/withCloseSheet.d.ts.map +1 -0
- package/lib/typescript/ai-components/native/AIDictation.d.ts +18 -0
- package/lib/typescript/ai-components/native/AIDictation.d.ts.map +1 -0
- package/lib/typescript/ai-components/native/PerfText.d.ts +13 -0
- package/lib/typescript/ai-components/native/PerfText.d.ts.map +1 -0
- package/lib/typescript/ai-components/native-specs/NativeAIDictation.d.ts +40 -0
- package/lib/typescript/ai-components/native-specs/NativeAIDictation.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/clipboard-service/expo.d.ts +2 -0
- package/lib/typescript/ai-components/services/clipboard-service/expo.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/clipboard-service/index.d.ts +2 -0
- package/lib/typescript/ai-components/services/clipboard-service/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/clipboard-service/rncli.d.ts +2 -0
- package/lib/typescript/ai-components/services/clipboard-service/rncli.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/index.d.ts +3 -0
- package/lib/typescript/ai-components/services/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/media-picker-service/AbstractMediaPickerService.d.ts +40 -0
- package/lib/typescript/ai-components/services/media-picker-service/AbstractMediaPickerService.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/media-picker-service/expo.d.ts +34 -0
- package/lib/typescript/ai-components/services/media-picker-service/expo.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/media-picker-service/hooks/useMediaPickerState.d.ts +11 -0
- package/lib/typescript/ai-components/services/media-picker-service/hooks/useMediaPickerState.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/media-picker-service/index.d.ts +37 -0
- package/lib/typescript/ai-components/services/media-picker-service/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/services/media-picker-service/rncli.d.ts +34 -0
- package/lib/typescript/ai-components/services/media-picker-service/rncli.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/bottom-sheet/store.d.ts +12 -0
- package/lib/typescript/ai-components/store/bottom-sheet/store.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/bottom-sheet/useBottomSheetState.d.ts +5 -0
- package/lib/typescript/ai-components/store/bottom-sheet/useBottomSheetState.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/composer/store.d.ts +7 -0
- package/lib/typescript/ai-components/store/composer/store.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/composer/useComposerHasText.d.ts +4 -0
- package/lib/typescript/ai-components/store/composer/useComposerHasText.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/composer/useComposerText.d.ts +4 -0
- package/lib/typescript/ai-components/store/composer/useComposerText.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/dictation/store.d.ts +13 -0
- package/lib/typescript/ai-components/store/dictation/store.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/dictation/useDictationState.d.ts +6 -0
- package/lib/typescript/ai-components/store/dictation/useDictationState.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/dictation/useDictationTranscript.d.ts +4 -0
- package/lib/typescript/ai-components/store/dictation/useDictationTranscript.d.ts.map +1 -0
- package/lib/typescript/ai-components/store/index.d.ts +7 -0
- package/lib/typescript/ai-components/store/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/SyntaxHighlighter.d.ts +11 -0
- package/lib/typescript/ai-components/syntax-highlighting/SyntaxHighlighter.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/components/AndroidNativeRenderer.d.ts +10 -0
- package/lib/typescript/ai-components/syntax-highlighting/components/AndroidNativeRenderer.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/components/index.d.ts +2 -0
- package/lib/typescript/ai-components/syntax-highlighting/components/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/index.d.ts +10 -0
- package/lib/typescript/ai-components/syntax-highlighting/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/prism-config.d.ts +2 -0
- package/lib/typescript/ai-components/syntax-highlighting/prism-config.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/types.d.ts +21 -0
- package/lib/typescript/ai-components/syntax-highlighting/types.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/utils/converter.d.ts +5 -0
- package/lib/typescript/ai-components/syntax-highlighting/utils/converter.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/utils/flatten-nodes.d.ts +19 -0
- package/lib/typescript/ai-components/syntax-highlighting/utils/flatten-nodes.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/utils/index.d.ts +4 -0
- package/lib/typescript/ai-components/syntax-highlighting/utils/index.d.ts.map +1 -0
- package/lib/typescript/ai-components/syntax-highlighting/utils/renderer.d.ts +30 -0
- package/lib/typescript/ai-components/syntax-highlighting/utils/renderer.d.ts.map +1 -0
- package/lib/typescript/ai-components/theme.d.ts +58 -0
- package/lib/typescript/ai-components/theme.d.ts.map +1 -0
- package/lib/typescript/ai-components/transcription/useDictation.d.ts +8 -0
- package/lib/typescript/ai-components/transcription/useDictation.d.ts.map +1 -0
- package/lib/typescript/native.d.ts +17 -1
- package/lib/typescript/native.d.ts.map +1 -1
- package/package.json +23 -5
- package/src/ai-components/AITypingIndicatorView.tsx +51 -0
- package/src/ai-components/README.md +279 -0
- package/src/ai-components/StreamingMessageView.tsx +85 -0
- package/src/ai-components/__tests__/ComposerView.test.tsx +113 -0
- package/src/ai-components/__tests__/Markdown.test.tsx +94 -0
- package/src/ai-components/__tests__/StreamingMessageView.test.tsx +126 -0
- package/src/ai-components/__tests__/SyntaxHighlighter.test.tsx +136 -0
- package/src/ai-components/__tests__/charts.test.ts +131 -0
- package/src/ai-components/__tests__/dictation.test.tsx +166 -0
- package/src/ai-components/__tests__/generateMarkdownText.test.ts +54 -0
- package/src/ai-components/__tests__/theme.test.tsx +41 -0
- package/src/ai-components/charts/Chart.tsx +20 -0
- package/src/ai-components/charts/components/PieLegend.tsx +50 -0
- package/src/ai-components/charts/components/VictoryChart.tsx +193 -0
- package/src/ai-components/charts/components/index.ts +2 -0
- package/src/ai-components/charts/index.ts +13 -0
- package/src/ai-components/charts/mermaid/index.ts +1 -0
- package/src/ai-components/charts/mermaid/parser.ts +33 -0
- package/src/ai-components/charts/types.ts +25 -0
- package/src/ai-components/charts/utils/generate-pie-colors.ts +82 -0
- package/src/ai-components/charts/utils/index.ts +2 -0
- package/src/ai-components/charts/utils/parse-json-chart.ts +15 -0
- package/src/ai-components/charts/vega-lite/index.ts +2 -0
- package/src/ai-components/charts/vega-lite/parser.ts +49 -0
- package/src/ai-components/charts/vega-lite/schema.ts +112 -0
- package/src/ai-components/components/BottomSheet.tsx +158 -0
- package/src/ai-components/components/MarkdownReactiveScrollView.tsx +92 -0
- package/src/ai-components/components/index.ts +2 -0
- package/src/ai-components/contexts/composer-context.tsx +73 -0
- package/src/ai-components/contexts/index.ts +2 -0
- package/src/ai-components/contexts/theme-context.tsx +68 -0
- package/src/ai-components/index.ts +29 -0
- package/src/ai-components/internal/hooks/useStableCallback.ts +37 -0
- package/src/ai-components/internal/icons/Camera.tsx +12 -0
- package/src/ai-components/internal/icons/CircleStop.tsx +18 -0
- package/src/ai-components/internal/icons/Close.tsx +12 -0
- package/src/ai-components/internal/icons/Mic.tsx +20 -0
- package/src/ai-components/internal/icons/Picture.tsx +16 -0
- package/src/ai-components/internal/icons/SendUp.tsx +21 -0
- package/src/ai-components/internal/icons/utils/base.tsx +44 -0
- package/src/ai-components/markdown/components/Autolink.tsx +26 -0
- package/src/ai-components/markdown/components/BlockQuote.tsx +19 -0
- package/src/ai-components/markdown/components/Bold.tsx +16 -0
- package/src/ai-components/markdown/components/CodeBlock.tsx +96 -0
- package/src/ai-components/markdown/components/Emphasis.tsx +16 -0
- package/src/ai-components/markdown/components/Heading.tsx +30 -0
- package/src/ai-components/markdown/components/HorizontalRule.tsx +9 -0
- package/src/ai-components/markdown/components/InlineCode.tsx +16 -0
- package/src/ai-components/markdown/components/LineBreak.tsx +11 -0
- package/src/ai-components/markdown/components/Link.tsx +28 -0
- package/src/ai-components/markdown/components/List.tsx +65 -0
- package/src/ai-components/markdown/components/Mailto.tsx +26 -0
- package/src/ai-components/markdown/components/Markdown.tsx +59 -0
- package/src/ai-components/markdown/components/NewLine.tsx +11 -0
- package/src/ai-components/markdown/components/Paragraph.tsx +69 -0
- package/src/ai-components/markdown/components/Strikethrough.tsx +16 -0
- package/src/ai-components/markdown/components/Table.tsx +81 -0
- package/src/ai-components/markdown/components/Text.tsx +37 -0
- package/src/ai-components/markdown/components/Url.tsx +26 -0
- package/src/ai-components/markdown/components/index.ts +20 -0
- package/src/ai-components/markdown/index.tsx +5 -0
- package/src/ai-components/markdown/rules.ts +216 -0
- package/src/ai-components/markdown/styles.ts +236 -0
- package/src/ai-components/markdown/types.ts +163 -0
- package/src/ai-components/markdown/utils/generate-markdown-text.ts +117 -0
- package/src/ai-components/markdown/utils/index.ts +1 -0
- package/src/ai-components/message-composer/ActionButton.tsx +99 -0
- package/src/ai-components/message-composer/ActionSheet.tsx +205 -0
- package/src/ai-components/message-composer/AttachmentButton.tsx +49 -0
- package/src/ai-components/message-composer/ComposerView.tsx +187 -0
- package/src/ai-components/message-composer/MediaPreviewList.tsx +84 -0
- package/src/ai-components/message-composer/SpeechToTextButton.tsx +79 -0
- package/src/ai-components/message-composer/index.ts +5 -0
- package/src/ai-components/message-composer/utils/withCloseSheet.ts +11 -0
- package/src/ai-components/native/AIDictation.ts +77 -0
- package/src/ai-components/native/PerfText.tsx +32 -0
- package/src/ai-components/native-specs/NativeAIDictation.ts +48 -0
- package/src/ai-components/services/clipboard-service/expo.ts +11 -0
- package/src/ai-components/services/clipboard-service/index.ts +4 -0
- package/src/ai-components/services/clipboard-service/rncli.ts +11 -0
- package/src/ai-components/services/index.ts +2 -0
- package/src/ai-components/services/media-picker-service/AbstractMediaPickerService.ts +62 -0
- package/src/ai-components/services/media-picker-service/expo.ts +148 -0
- package/src/ai-components/services/media-picker-service/hooks/useMediaPickerState.ts +14 -0
- package/src/ai-components/services/media-picker-service/index.ts +4 -0
- package/src/ai-components/services/media-picker-service/optional-modules.d.ts +25 -0
- package/src/ai-components/services/media-picker-service/rncli.ts +142 -0
- package/src/ai-components/store/bottom-sheet/store.ts +30 -0
- package/src/ai-components/store/bottom-sheet/useBottomSheetState.ts +10 -0
- package/src/ai-components/store/composer/store.ts +12 -0
- package/src/ai-components/store/composer/useComposerHasText.ts +14 -0
- package/src/ai-components/store/composer/useComposerText.ts +14 -0
- package/src/ai-components/store/dictation/store.ts +23 -0
- package/src/ai-components/store/dictation/useDictationState.ts +11 -0
- package/src/ai-components/store/dictation/useDictationTranscript.ts +9 -0
- package/src/ai-components/store/index.ts +11 -0
- package/src/ai-components/syntax-highlighting/SyntaxHighlighter.tsx +66 -0
- package/src/ai-components/syntax-highlighting/components/AndroidNativeRenderer.tsx +29 -0
- package/src/ai-components/syntax-highlighting/components/index.ts +1 -0
- package/src/ai-components/syntax-highlighting/index.ts +11 -0
- package/src/ai-components/syntax-highlighting/prism-config.ts +4 -0
- package/src/ai-components/syntax-highlighting/types.ts +26 -0
- package/src/ai-components/syntax-highlighting/utils/converter.ts +145 -0
- package/src/ai-components/syntax-highlighting/utils/flatten-nodes.ts +150 -0
- package/src/ai-components/syntax-highlighting/utils/index.ts +3 -0
- package/src/ai-components/syntax-highlighting/utils/renderer.tsx +151 -0
- package/src/ai-components/theme.ts +138 -0
- package/src/ai-components/transcription/useDictation.ts +106 -0
- package/src/native.ts +19 -1
- package/src/version.json +1 -1
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2
|
+
value: true
|
|
3
|
+
});
|
|
4
|
+
exports.QuickActionButton = exports.ListItem = exports.BottomSheetContent = void 0;
|
|
5
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _reactNative = require("react-native");
|
|
7
|
+
var _withCloseSheet = require("./utils/withCloseSheet");
|
|
8
|
+
var _contexts = require("../contexts");
|
|
9
|
+
var _Camera = require("../internal/icons/Camera");
|
|
10
|
+
var _Picture = require("../internal/icons/Picture");
|
|
11
|
+
var _store = require("../store");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/ai-components/message-composer/ActionSheet.tsx";
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
|
+
var BottomSheetContent = ({
|
|
16
|
+
bottomSheetOptions,
|
|
17
|
+
bottomSheetInsets
|
|
18
|
+
}) => {
|
|
19
|
+
var _useTheme = (0, _contexts.useTheme)(),
|
|
20
|
+
_useTheme$theme$sheet = _useTheme.theme.sheet,
|
|
21
|
+
contentContainer = _useTheme$theme$sheet.contentContainer,
|
|
22
|
+
quickActionsCard = _useTheme$theme$sheet.quickActionsCard,
|
|
23
|
+
divider = _useTheme$theme$sheet.divider,
|
|
24
|
+
listSection = _useTheme$theme$sheet.listSection;
|
|
25
|
+
var styles = useStyles();
|
|
26
|
+
var _useMessageComposerCo = (0, _contexts.useMessageComposerContext)(),
|
|
27
|
+
mediaPickerService = _useMessageComposerCo.mediaPickerService;
|
|
28
|
+
var onContentSizeChange = (0, _react.useCallback)((_, height) => _store.sheetStoreApi.setHeight(height), []);
|
|
29
|
+
var insetStyle = (0, _react.useMemo)(() => {
|
|
30
|
+
var _bottomSheetInsets$bo;
|
|
31
|
+
return {
|
|
32
|
+
paddingBottom: 16 + ((_bottomSheetInsets$bo = bottomSheetInsets == null ? void 0 : bottomSheetInsets.bottom) != null ? _bottomSheetInsets$bo : 0)
|
|
33
|
+
};
|
|
34
|
+
}, [bottomSheetInsets]);
|
|
35
|
+
return (0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
36
|
+
contentContainerStyle: [styles.contentContainer, insetStyle, contentContainer],
|
|
37
|
+
showsVerticalScrollIndicator: false,
|
|
38
|
+
onContentSizeChange: onContentSizeChange,
|
|
39
|
+
children: [(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
40
|
+
style: [styles.quickActionsCard, quickActionsCard],
|
|
41
|
+
children: [(0, _jsxRuntime.jsx)(QuickActionButton, {
|
|
42
|
+
label: 'Camera',
|
|
43
|
+
Icon: _Camera.Camera,
|
|
44
|
+
onPress: (0, _withCloseSheet.withCloseSheet)(() => mediaPickerService == null ? void 0 : mediaPickerService.takeMedia({}))
|
|
45
|
+
}), (0, _jsxRuntime.jsx)(QuickActionButton, {
|
|
46
|
+
label: 'Photos',
|
|
47
|
+
Icon: _Picture.Picture,
|
|
48
|
+
onPress: (0, _withCloseSheet.withCloseSheet)(() => mediaPickerService == null ? void 0 : mediaPickerService.pickMedia({}))
|
|
49
|
+
})]
|
|
50
|
+
}), bottomSheetOptions && bottomSheetOptions.length > 0 ? (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
51
|
+
children: [(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
52
|
+
style: [styles.divider, divider]
|
|
53
|
+
}), (0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
54
|
+
style: [styles.listSection, listSection],
|
|
55
|
+
children: bottomSheetOptions.map((option, index) => (0, _jsxRuntime.jsx)(ListItem, {
|
|
56
|
+
option: option
|
|
57
|
+
}, index))
|
|
58
|
+
})]
|
|
59
|
+
}) : null]
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
exports.BottomSheetContent = BottomSheetContent;
|
|
63
|
+
var QuickActionButton = ({
|
|
64
|
+
label,
|
|
65
|
+
Icon,
|
|
66
|
+
onPress
|
|
67
|
+
}) => {
|
|
68
|
+
var _useTheme2 = (0, _contexts.useTheme)(),
|
|
69
|
+
_useTheme2$theme$shee = _useTheme2.theme.sheet,
|
|
70
|
+
quickAction = _useTheme2$theme$shee.quickAction,
|
|
71
|
+
quickActionLabel = _useTheme2$theme$shee.quickActionLabel;
|
|
72
|
+
var styles = useStyles();
|
|
73
|
+
return (0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
74
|
+
onPress: onPress,
|
|
75
|
+
style: ({
|
|
76
|
+
pressed
|
|
77
|
+
}) => [styles.quickAction, quickAction, pressed && styles.pressedView],
|
|
78
|
+
children: [(0, _jsxRuntime.jsx)(Icon, {}), (0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
79
|
+
style: [styles.quickActionLabel, quickActionLabel],
|
|
80
|
+
children: label
|
|
81
|
+
})]
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
exports.QuickActionButton = QuickActionButton;
|
|
85
|
+
var ListItem = ({
|
|
86
|
+
option
|
|
87
|
+
}) => {
|
|
88
|
+
var _useTheme3 = (0, _contexts.useTheme)(),
|
|
89
|
+
_useTheme3$theme$shee = _useTheme3.theme.sheet,
|
|
90
|
+
listItem = _useTheme3$theme$shee.listItem,
|
|
91
|
+
listIcon = _useTheme3$theme$shee.listIcon,
|
|
92
|
+
listTextContainer = _useTheme3$theme$shee.listTextContainer,
|
|
93
|
+
listTitle = _useTheme3$theme$shee.listTitle,
|
|
94
|
+
listSubtitle = _useTheme3$theme$shee.listSubtitle;
|
|
95
|
+
var styles = useStyles();
|
|
96
|
+
var title = option.title,
|
|
97
|
+
subtitle = option.subtitle,
|
|
98
|
+
action = option.action,
|
|
99
|
+
Icon = option.Icon;
|
|
100
|
+
return (0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
101
|
+
onPress: (0, _withCloseSheet.withCloseSheet)(action),
|
|
102
|
+
style: ({
|
|
103
|
+
pressed
|
|
104
|
+
}) => [styles.listItem, listItem, pressed && styles.pressedView],
|
|
105
|
+
children: [Icon ? (0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
106
|
+
style: [styles.listIcon, listIcon],
|
|
107
|
+
children: (0, _jsxRuntime.jsx)(Icon, {})
|
|
108
|
+
}) : null, (0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
109
|
+
style: [styles.listTextContainer, listTextContainer],
|
|
110
|
+
children: [(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
111
|
+
style: [styles.listTitle, listTitle],
|
|
112
|
+
children: title
|
|
113
|
+
}), (0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
114
|
+
style: [styles.listSubtitle, listSubtitle],
|
|
115
|
+
children: subtitle
|
|
116
|
+
})]
|
|
117
|
+
})]
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
exports.ListItem = ListItem;
|
|
121
|
+
var useStyles = () => {
|
|
122
|
+
var _useTheme4 = (0, _contexts.useTheme)(),
|
|
123
|
+
theme = _useTheme4.theme;
|
|
124
|
+
return (0, _react.useMemo)(() => {
|
|
125
|
+
var colors = theme.colors;
|
|
126
|
+
return _reactNative.StyleSheet.create({
|
|
127
|
+
container: {
|
|
128
|
+
flex: 1
|
|
129
|
+
},
|
|
130
|
+
contentContainer: {
|
|
131
|
+
paddingHorizontal: 16,
|
|
132
|
+
paddingTop: 12
|
|
133
|
+
},
|
|
134
|
+
quickActionsCard: {
|
|
135
|
+
flexDirection: 'row',
|
|
136
|
+
justifyContent: 'center',
|
|
137
|
+
gap: 12,
|
|
138
|
+
borderRadius: 18,
|
|
139
|
+
marginBottom: 16
|
|
140
|
+
},
|
|
141
|
+
quickAction: {
|
|
142
|
+
flex: 1,
|
|
143
|
+
alignItems: 'center',
|
|
144
|
+
padding: 16,
|
|
145
|
+
borderRadius: 14,
|
|
146
|
+
marginHorizontal: 4,
|
|
147
|
+
backgroundColor: colors.white_smoke
|
|
148
|
+
},
|
|
149
|
+
pressedView: {
|
|
150
|
+
opacity: 0.7
|
|
151
|
+
},
|
|
152
|
+
quickActionLabel: {
|
|
153
|
+
fontSize: 13,
|
|
154
|
+
fontWeight: '500',
|
|
155
|
+
color: colors.black,
|
|
156
|
+
marginTop: 4
|
|
157
|
+
},
|
|
158
|
+
listSection: {
|
|
159
|
+
marginTop: 4,
|
|
160
|
+
borderRadius: 18,
|
|
161
|
+
backgroundColor: colors.white,
|
|
162
|
+
paddingHorizontal: 12,
|
|
163
|
+
paddingVertical: 4
|
|
164
|
+
},
|
|
165
|
+
listItem: {
|
|
166
|
+
flexDirection: 'row',
|
|
167
|
+
alignItems: 'flex-start',
|
|
168
|
+
paddingVertical: 10
|
|
169
|
+
},
|
|
170
|
+
listIcon: {
|
|
171
|
+
width: 24,
|
|
172
|
+
height: 24,
|
|
173
|
+
marginRight: 12,
|
|
174
|
+
marginTop: 2
|
|
175
|
+
},
|
|
176
|
+
listTextContainer: {
|
|
177
|
+
flex: 1
|
|
178
|
+
},
|
|
179
|
+
listTitle: {
|
|
180
|
+
fontSize: 15,
|
|
181
|
+
fontWeight: '500',
|
|
182
|
+
color: colors.black
|
|
183
|
+
},
|
|
184
|
+
listSubtitle: {
|
|
185
|
+
marginTop: 2,
|
|
186
|
+
fontSize: 13,
|
|
187
|
+
color: colors.grey_dark
|
|
188
|
+
},
|
|
189
|
+
divider: {
|
|
190
|
+
height: _reactNative.StyleSheet.hairlineWidth,
|
|
191
|
+
backgroundColor: colors.grey_whisper,
|
|
192
|
+
marginTop: 10
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}, [theme]);
|
|
196
|
+
};
|
|
197
|
+
//# sourceMappingURL=ActionSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_withCloseSheet","_contexts","_Camera","_Picture","_store","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BottomSheetContent","bottomSheetOptions","bottomSheetInsets","_useTheme","useTheme","_useTheme$theme$sheet","theme","sheet","contentContainer","quickActionsCard","divider","listSection","styles","useStyles","_useMessageComposerCo","useMessageComposerContext","mediaPickerService","onContentSizeChange","useCallback","_","height","sheetStoreApi","setHeight","insetStyle","useMemo","_bottomSheetInsets$bo","paddingBottom","bottom","jsxs","ScrollView","contentContainerStyle","showsVerticalScrollIndicator","children","View","style","jsx","QuickActionButton","label","Icon","Camera","onPress","withCloseSheet","takeMedia","Picture","pickMedia","length","Fragment","map","option","index","ListItem","exports","_useTheme2","_useTheme2$theme$shee","quickAction","quickActionLabel","Pressable","pressed","pressedView","Text","_useTheme3","_useTheme3$theme$shee","listItem","listIcon","listTextContainer","listTitle","listSubtitle","title","subtitle","action","_useTheme4","colors","StyleSheet","create","container","flex","paddingHorizontal","paddingTop","flexDirection","justifyContent","gap","borderRadius","marginBottom","alignItems","padding","marginHorizontal","backgroundColor","white_smoke","opacity","fontSize","fontWeight","color","black","marginTop","white","paddingVertical","width","marginRight","grey_dark","hairlineWidth","grey_whisper"],"sourceRoot":"../../../../src","sources":["ai-components/message-composer/ActionSheet.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,eAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAAyC,IAAAO,WAAA,GAAAP,OAAA;AAAA,IAAAQ,YAAA;AAAA,SAAAT,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ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b;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACvF,KAAK,CAAC,CAAC;AACb,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2
|
+
value: true
|
|
3
|
+
});
|
|
4
|
+
exports.AttachmentButton = void 0;
|
|
5
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _reactNative = require("react-native");
|
|
7
|
+
var _contexts = require("../contexts");
|
|
8
|
+
var _store = require("../store");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
var _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/ai-components/message-composer/AttachmentButton.tsx";
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
var AttachmentButton = () => {
|
|
13
|
+
var _useTheme = (0, _contexts.useTheme)(),
|
|
14
|
+
_useTheme$theme$compo = _useTheme.theme.composer,
|
|
15
|
+
roundButton = _useTheme$theme$compo.roundButton,
|
|
16
|
+
attachIcon = _useTheme$theme$compo.attachIcon;
|
|
17
|
+
var styles = useStyles();
|
|
18
|
+
return (0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
19
|
+
style: [styles.roundButton, roundButton],
|
|
20
|
+
onPress: _store.sheetStoreApi.openSheet,
|
|
21
|
+
children: (0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
22
|
+
style: [styles.attachIcon, attachIcon],
|
|
23
|
+
children: "+"
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
exports.AttachmentButton = AttachmentButton;
|
|
28
|
+
var useStyles = () => {
|
|
29
|
+
var _useTheme2 = (0, _contexts.useTheme)(),
|
|
30
|
+
theme = _useTheme2.theme;
|
|
31
|
+
return (0, _react.useMemo)(() => {
|
|
32
|
+
var colors = theme.colors,
|
|
33
|
+
composer = theme.composer;
|
|
34
|
+
var pillHeight = composer.inputPillHeight;
|
|
35
|
+
return _reactNative.StyleSheet.create({
|
|
36
|
+
attachIcon: {
|
|
37
|
+
fontSize: 32,
|
|
38
|
+
textAlign: 'center',
|
|
39
|
+
alignSelf: 'center',
|
|
40
|
+
lineHeight: 32,
|
|
41
|
+
color: colors.grey
|
|
42
|
+
},
|
|
43
|
+
roundButton: {
|
|
44
|
+
width: pillHeight,
|
|
45
|
+
height: pillHeight,
|
|
46
|
+
borderRadius: pillHeight / 2,
|
|
47
|
+
backgroundColor: colors.white_smoke,
|
|
48
|
+
justifyContent: 'center',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
marginRight: 8
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}, [theme]);
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=AttachmentButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_store","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AttachmentButton","_useTheme","useTheme","_useTheme$theme$compo","theme","composer","roundButton","attachIcon","styles","useStyles","jsx","Pressable","style","onPress","sheetStoreApi","openSheet","children","Text","exports","_useTheme2","useMemo","colors","pillHeight","inputPillHeight","StyleSheet","create","fontSize","textAlign","alignSelf","lineHeight","color","grey","width","height","borderRadius","backgroundColor","white_smoke","justify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,EAAEV,UAAU;QACjBW,MAAM,EAAEX,UAAU;QAClBY,YAAY,EAAEZ,UAAU,GAAG,CAAC;QAC5Ba,eAAe,EAAEd,MAAM,CAACe,WAAW;QACnCC,cAAc,EAAE,QAAQ;QACxBC,UAAU,EAAE,QAAQ;QACpBC,WAAW,EAAE;MACf;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACnC,KAAK,CAAC,CAAC;AACb,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2
|
+
value: true
|
|
3
|
+
});
|
|
4
|
+
exports.ComposerViewUI = exports.ComposerView = exports.AIMessageInput = void 0;
|
|
5
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _reactNative = require("react-native");
|
|
7
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
8
|
+
var _ActionButton = require("./ActionButton");
|
|
9
|
+
var _ActionSheet = require("./ActionSheet");
|
|
10
|
+
var _AttachmentButton = require("./AttachmentButton");
|
|
11
|
+
var _MediaPreviewList = require("./MediaPreviewList");
|
|
12
|
+
var _BottomSheet = require("../components/BottomSheet");
|
|
13
|
+
var _contexts = require("../contexts");
|
|
14
|
+
var _store = require("../store");
|
|
15
|
+
var _useDictationState2 = require("../store/dictation/useDictationState");
|
|
16
|
+
var _useDictationTranscript = require("../store/dictation/useDictationTranscript");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
var _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/ai-components/message-composer/ComposerView.tsx";
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
|
+
var ComposerViewUI = ({
|
|
21
|
+
bottomSheetOptions = [],
|
|
22
|
+
bottomSheetInsets,
|
|
23
|
+
isGenerating,
|
|
24
|
+
stopGenerating
|
|
25
|
+
}) => {
|
|
26
|
+
var _useTheme = (0, _contexts.useTheme)(),
|
|
27
|
+
_useTheme$theme$compo = _useTheme.theme.composer,
|
|
28
|
+
container = _useTheme$theme$compo.container,
|
|
29
|
+
containerRow = _useTheme$theme$compo.containerRow,
|
|
30
|
+
inputPillContainer = _useTheme$theme$compo.inputPillContainer,
|
|
31
|
+
inputPill = _useTheme$theme$compo.inputPill;
|
|
32
|
+
var styles = useStyles();
|
|
33
|
+
return (0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
34
|
+
pointerEvents: 'box-none',
|
|
35
|
+
style: [styles.container, container],
|
|
36
|
+
children: [(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
37
|
+
style: [styles.row, containerRow],
|
|
38
|
+
children: [(0, _jsxRuntime.jsx)(_AttachmentButton.AttachmentButton, {}), (0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
39
|
+
style: [styles.inputPillContainer, inputPillContainer],
|
|
40
|
+
layout: _reactNativeReanimated.LinearTransition.duration(150),
|
|
41
|
+
children: [(0, _jsxRuntime.jsx)(_MediaPreviewList.MediaPreviewList, {}), (0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
42
|
+
style: [styles.inputPill, inputPill],
|
|
43
|
+
children: [(0, _jsxRuntime.jsx)(AIMessageInput, {}), (0, _jsxRuntime.jsx)(_ActionButton.ActionButton, {
|
|
44
|
+
isGenerating: isGenerating,
|
|
45
|
+
stopGenerating: stopGenerating
|
|
46
|
+
})]
|
|
47
|
+
})]
|
|
48
|
+
})]
|
|
49
|
+
}), (0, _jsxRuntime.jsx)(_BottomSheet.BottomSheet, {
|
|
50
|
+
children: (0, _jsxRuntime.jsx)(_ActionSheet.BottomSheetContent, {
|
|
51
|
+
bottomSheetOptions: bottomSheetOptions,
|
|
52
|
+
bottomSheetInsets: bottomSheetInsets
|
|
53
|
+
})
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
exports.ComposerViewUI = ComposerViewUI;
|
|
58
|
+
var AIMessageInput = () => {
|
|
59
|
+
var _useTheme2 = (0, _contexts.useTheme)(),
|
|
60
|
+
_useTheme2$theme = _useTheme2.theme,
|
|
61
|
+
grey_neutral = _useTheme2$theme.colors.grey_neutral,
|
|
62
|
+
textInput = _useTheme2$theme.composer.textInput;
|
|
63
|
+
var styles = useStyles();
|
|
64
|
+
var _useDictationState = (0, _useDictationState2.useDictationState)(),
|
|
65
|
+
error = _useDictationState.error,
|
|
66
|
+
isRecording = _useDictationState.isRecording;
|
|
67
|
+
var _useComposerText = (0, _store.useComposerText)(),
|
|
68
|
+
text = _useComposerText.text;
|
|
69
|
+
var _useDictationTranscri = (0, _useDictationTranscript.useDictationTranscript)(),
|
|
70
|
+
transcript = _useDictationTranscri.transcript;
|
|
71
|
+
var _useMessageComposerCo = (0, _contexts.useMessageComposerContext)(),
|
|
72
|
+
setText = _useMessageComposerCo.setText;
|
|
73
|
+
var previousTranscript = (0, _react.useRef)(transcript);
|
|
74
|
+
(0, _react.useEffect)(() => {
|
|
75
|
+
var transcriptChanged = transcript !== previousTranscript.current;
|
|
76
|
+
previousTranscript.current = transcript;
|
|
77
|
+
if (!error && (isRecording || transcriptChanged)) {
|
|
78
|
+
setText(transcript);
|
|
79
|
+
}
|
|
80
|
+
}, [isRecording, transcript, error, setText]);
|
|
81
|
+
return (0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
82
|
+
value: text,
|
|
83
|
+
onChangeText: setText,
|
|
84
|
+
placeholder: 'Ask anything',
|
|
85
|
+
placeholderTextColor: grey_neutral,
|
|
86
|
+
style: [styles.textInput, textInput],
|
|
87
|
+
multiline: true,
|
|
88
|
+
underlineColorAndroid: 'transparent'
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
exports.AIMessageInput = AIMessageInput;
|
|
92
|
+
var ComposerView = props => (0, _jsxRuntime.jsx)(_contexts.ComposerProvider, {
|
|
93
|
+
onSendMessage: props.onSendMessage,
|
|
94
|
+
mediaPickerService: props.mediaPickerService,
|
|
95
|
+
state: props.state,
|
|
96
|
+
children: (0, _jsxRuntime.jsx)(ComposerViewUI, {
|
|
97
|
+
...props
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
exports.ComposerView = ComposerView;
|
|
101
|
+
var useStyles = () => {
|
|
102
|
+
var _useTheme3 = (0, _contexts.useTheme)(),
|
|
103
|
+
theme = _useTheme3.theme;
|
|
104
|
+
return (0, _react.useMemo)(() => {
|
|
105
|
+
var colors = theme.colors,
|
|
106
|
+
composer = theme.composer;
|
|
107
|
+
var pillHeight = composer.inputPillHeight;
|
|
108
|
+
return _reactNative.StyleSheet.create({
|
|
109
|
+
container: {
|
|
110
|
+
paddingHorizontal: 12,
|
|
111
|
+
paddingVertical: 8
|
|
112
|
+
},
|
|
113
|
+
row: {
|
|
114
|
+
flexDirection: 'row',
|
|
115
|
+
alignItems: 'flex-end'
|
|
116
|
+
},
|
|
117
|
+
inputPill: {
|
|
118
|
+
alignItems: 'center',
|
|
119
|
+
flexDirection: 'row',
|
|
120
|
+
maxHeight: pillHeight * 3
|
|
121
|
+
},
|
|
122
|
+
inputPillContainer: {
|
|
123
|
+
flex: 1,
|
|
124
|
+
minHeight: pillHeight,
|
|
125
|
+
alignItems: 'center',
|
|
126
|
+
justifyContent: 'center',
|
|
127
|
+
borderRadius: pillHeight / 2,
|
|
128
|
+
backgroundColor: colors.white_smoke,
|
|
129
|
+
paddingHorizontal: 14,
|
|
130
|
+
paddingVertical: _reactNative.Platform.OS === 'ios' ? 10 : 6,
|
|
131
|
+
shadowColor: colors.black,
|
|
132
|
+
shadowOpacity: 0.08,
|
|
133
|
+
shadowOffset: {
|
|
134
|
+
width: 0,
|
|
135
|
+
height: 1
|
|
136
|
+
},
|
|
137
|
+
shadowRadius: 4,
|
|
138
|
+
elevation: 2
|
|
139
|
+
},
|
|
140
|
+
textInput: {
|
|
141
|
+
flex: 1,
|
|
142
|
+
fontSize: 16,
|
|
143
|
+
color: colors.black,
|
|
144
|
+
paddingVertical: 0,
|
|
145
|
+
paddingHorizontal: 0,
|
|
146
|
+
marginRight: 24
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}, [theme]);
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=ComposerView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_ActionButton","_ActionSheet","_AttachmentButton","_MediaPreviewList","_BottomSheet","_contexts","_store","_useDictationState2","_useDictationTranscript","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ComposerViewUI","bottomSheetOptions","bottomSheetInsets","isGenerating","stopGenerating","_useTheme","useTheme","_useTheme$theme$compo","theme","composer","container","containerRow","inputPillContainer","inputPill","styles","useStyles","jsxs","View","pointerEvents","style","children","row","jsx","AttachmentButton","layout","LinearTransition","duration","MediaPreviewList","AIMessageInput","ActionButton","BottomSheet","BottomSheetContent","exports","_useTheme2","_useTheme2$theme","grey_neutral","colors","textInput","_useDictationState","useDictationState","error","isRecording","_useComposerText","useComposerText","text","_useDictationTranscri","useDictationTranscript","transcript","_useMessageComposerCo","useMessageComposerContext","setText","previousTranscript","useRef","useEffect","transcriptChanged","current","TextInput","value","onChangeText","placeholder","placeholderTextColor","multiline","underlineColorAndroid","ComposerView","props","ComposerProvider","onSendMessage","mediaPickerService","state","_useTheme3","useMemo","pillHeight","inputPillHeight","StyleSheet","create","paddingHorizontal","paddingVertical","flexDirection","alignItems","maxHeight","flex","minHeight","justifyContent","borderRadius","backgroundColor","white_smoke","Platform","OS","shadowColor","black","shadowOpacity","shadowOffset","width","height","shadowRadius","elevation","fontSize","color","marginRight"],"sourceRoot":"../../../../src","sources":["ai-components/message-composer/ComposerView.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAIA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,iBAAA,GAAAL,OAAA;AAEA,IAAAM,iBAAA,GAAAN,OAAA;AAEA,IAAAO,YAAA,GAAAP,OAAA;AAEA,IAAAQ,SAAA,GAAAR,OAAA;AAKA,IAAAS,MAAA,GAAAT,OAAA;AAEA,IAAAU,mBAAA,GAAAV,OAAA;AACA,IAAAW,uBAAA,GAAAX,OAAA;AAAmF,IAAAY,WAAA,GAAAZ,OAAA;AAAA,IAAAa,YAAA;AAAA,SAAAd,wBAAAe,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAjB,uBAAA,YAAAA,CAAAe,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAA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AAEU,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,EAAE,GAAG,CAAC;QAC/CC,WAAW,EAAEpD,MAAM,CAACqD,KAAK;QACzBC,aAAa,EAAE,IAAI;QACnBC,YAAY,EAAE;UAAEC,KAAK,EAAE,CAAC;UAAEC,MAAM,EAAE;QAAE,CAAC;QACrCC,YAAY,EAAE,CAAC;QACfC,SAAS,EAAE;MACb,CAAC;MACD1D,SAAS,EAAE;QACT2C,IAAI,EAAE,CAAC;QACPgB,QAAQ,EAAE,EAAE;QACZC,KAAK,EAAE7D,MAAM,CAACqD,KAAK;QACnBb,eAAe,EAAE,CAAC;QAClBD,iBAAiB,EAAE,CAAC;QACpBuB,WAAW,EAAE;MACf;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAAC1F,KAAK,CAAC,CAAC;AACb,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2
|
+
value: true
|
|
3
|
+
});
|
|
4
|
+
exports.MediaPreviewList = void 0;
|
|
5
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _reactNative = require("react-native");
|
|
7
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
8
|
+
var _contexts = require("../contexts");
|
|
9
|
+
var _Close = require("../internal/icons/Close");
|
|
10
|
+
var _useMediaPickerState2 = require("../services/media-picker-service/hooks/useMediaPickerState");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
var _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/ai-components/message-composer/MediaPreviewList.tsx";
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
|
+
var MediaPreviewList = () => {
|
|
15
|
+
var _useMediaPickerState;
|
|
16
|
+
var _useMessageComposerCo = (0, _contexts.useMessageComposerContext)(),
|
|
17
|
+
mediaPickerService = _useMessageComposerCo.mediaPickerService;
|
|
18
|
+
var _ref = (_useMediaPickerState = (0, _useMediaPickerState2.useMediaPickerState)({
|
|
19
|
+
service: mediaPickerService
|
|
20
|
+
})) != null ? _useMediaPickerState : {},
|
|
21
|
+
attachments = _ref.attachments;
|
|
22
|
+
var _useTheme = (0, _contexts.useTheme)(),
|
|
23
|
+
_useTheme$theme = _useTheme.theme,
|
|
24
|
+
white = _useTheme$theme.colors.white,
|
|
25
|
+
_useTheme$theme$compo = _useTheme$theme.composer,
|
|
26
|
+
mediaPreviewStyle = _useTheme$theme$compo.mediaPreviewStyle,
|
|
27
|
+
mediaPreviewContentContainerStyle = _useTheme$theme$compo.mediaPreviewContentContainerStyle,
|
|
28
|
+
mediaPreviewImage = _useTheme$theme$compo.mediaPreviewImage,
|
|
29
|
+
mediaPreviewRemoveButton = _useTheme$theme$compo.mediaPreviewRemoveButton;
|
|
30
|
+
var styles = useStyles();
|
|
31
|
+
if (!(attachments != null && attachments.length)) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return (0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
35
|
+
style: [styles.mediaPreviewStyle, mediaPreviewStyle],
|
|
36
|
+
contentContainerStyle: [styles.mediaPreviewContentContainerStyle, mediaPreviewContentContainerStyle],
|
|
37
|
+
horizontal: true,
|
|
38
|
+
children: (attachments != null ? attachments : []).map((attachment, index) => (0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
39
|
+
entering: _reactNativeReanimated.FadeIn.duration(150),
|
|
40
|
+
exiting: _reactNativeReanimated.FadeOut.duration(150),
|
|
41
|
+
layout: _reactNativeReanimated.LinearTransition.duration(150),
|
|
42
|
+
children: [(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
43
|
+
style: [styles.mediaPreviewImage, mediaPreviewImage],
|
|
44
|
+
source: {
|
|
45
|
+
uri: attachment.uri
|
|
46
|
+
},
|
|
47
|
+
width: 100,
|
|
48
|
+
height: 100
|
|
49
|
+
}), (0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
50
|
+
style: [styles.mediaPreviewRemoveButton, mediaPreviewRemoveButton],
|
|
51
|
+
onPress: () => mediaPickerService == null ? void 0 : mediaPickerService.removeAsset(index),
|
|
52
|
+
children: (0, _jsxRuntime.jsx)(_Close.Close, {
|
|
53
|
+
pathFill: white
|
|
54
|
+
})
|
|
55
|
+
})]
|
|
56
|
+
}, attachment.uri))
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
exports.MediaPreviewList = MediaPreviewList;
|
|
60
|
+
var useStyles = () => {
|
|
61
|
+
var _useTheme2 = (0, _contexts.useTheme)(),
|
|
62
|
+
theme = _useTheme2.theme;
|
|
63
|
+
return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
|
|
64
|
+
mediaPreviewStyle: {
|
|
65
|
+
width: '100%'
|
|
66
|
+
},
|
|
67
|
+
mediaPreviewContentContainerStyle: {
|
|
68
|
+
flexGrow: 1,
|
|
69
|
+
paddingBottom: 8
|
|
70
|
+
},
|
|
71
|
+
mediaPreviewImage: {
|
|
72
|
+
borderRadius: 12,
|
|
73
|
+
marginRight: 8
|
|
74
|
+
},
|
|
75
|
+
mediaPreviewRemoveButton: {
|
|
76
|
+
position: 'absolute',
|
|
77
|
+
top: 8,
|
|
78
|
+
right: 12,
|
|
79
|
+
backgroundColor: theme.colors.overlay,
|
|
80
|
+
borderRadius: 24
|
|
81
|
+
}
|
|
82
|
+
}), [theme]);
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=MediaPreviewList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_contexts","_Close","_useMediaPickerState2","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MediaPreviewList","_useMediaPickerState","_useMessageComposerCo","useMessageComposerContext","mediaPickerService","_ref","useMediaPickerState","service","attachments","_useTheme","useTheme","_useTheme$theme","theme","white","colors","_useTheme$theme$compo","composer","mediaPreviewStyle","mediaPreviewContentContainerStyle","mediaPreviewImage","mediaPreviewRemoveButton","styles","useStyles","length","jsx","ScrollView","style","contentContainerStyle","horizontal","children","map","attachment","index","jsxs","View","entering","FadeIn","duration","exiting","FadeOut","layout","LinearTransition","Image","source","uri","width","height","Pressable","onPress","removeAsset","Close","pathFill","exports","_useTheme2","useMemo","StyleSheet","create","flexGrow","paddingBottom","borderRadius","marginRight","position","top","right","backgroundColor","overlay"],"sourceRoot":"../../../../src","sources":["ai-components/message-composer/MediaPreviewList.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AAAiG,IAAAM,WAAA,GAAAN,OAAA;AAAA,IAAAO,YAAA;AAAA,SAAAR,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,U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peechToTextButton = void 0;
|
|
5
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _reactNative = require("react-native");
|
|
7
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
8
|
+
var _reactBindings = require("@stream-io/state-store/react-bindings");
|
|
9
|
+
var _contexts = require("../contexts");
|
|
10
|
+
var _Mic = require("../internal/icons/Mic");
|
|
11
|
+
var _AIDictation = require("../native/AIDictation");
|
|
12
|
+
var _store = require("../store");
|
|
13
|
+
var _useDictation2 = require("../transcription/useDictation");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
var _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/ai-components/message-composer/SpeechToTextButton.tsx";
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
|
+
var selector = ({
|
|
18
|
+
isRecording
|
|
19
|
+
}) => ({
|
|
20
|
+
isRecording
|
|
21
|
+
});
|
|
22
|
+
var SpeechToTextButton = props => {
|
|
23
|
+
if (!(0, _AIDictation.isDictationAvailable)()) {
|
|
24
|
+
(0, _AIDictation.warnIfDictationUnavailable)();
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return (0, _jsxRuntime.jsx)(AvailableSpeechToTextButton, {
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
exports.SpeechToTextButton = SpeechToTextButton;
|
|
32
|
+
var AvailableSpeechToTextButton = ({
|
|
33
|
+
options
|
|
34
|
+
}) => {
|
|
35
|
+
var _useTheme = (0, _contexts.useTheme)(),
|
|
36
|
+
_useTheme$theme = _useTheme.theme,
|
|
37
|
+
_useTheme$theme$color = _useTheme$theme.colors,
|
|
38
|
+
grey = _useTheme$theme$color.grey,
|
|
39
|
+
accent_blue = _useTheme$theme$color.accent_blue,
|
|
40
|
+
_useTheme$theme$compo = _useTheme$theme.composer,
|
|
41
|
+
iconButton = _useTheme$theme$compo.iconButton,
|
|
42
|
+
micIcon = _useTheme$theme$compo.micIcon;
|
|
43
|
+
var _useDictation = (0, _useDictation2.useDictation)(options),
|
|
44
|
+
cancel = _useDictation.cancel,
|
|
45
|
+
toggle = _useDictation.toggle;
|
|
46
|
+
var _useStateStore = (0, _reactBindings.useStateStore)(_store.dictationStore, selector),
|
|
47
|
+
isRecording = _useStateStore.isRecording;
|
|
48
|
+
(0, _react.useEffect)(() => {
|
|
49
|
+
return () => {
|
|
50
|
+
cancel();
|
|
51
|
+
};
|
|
52
|
+
}, [cancel]);
|
|
53
|
+
return (0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
54
|
+
entering: _reactNativeReanimated.ZoomIn.duration(250),
|
|
55
|
+
exiting: _reactNativeReanimated.ZoomOut.duration(250),
|
|
56
|
+
children: (0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
57
|
+
style: [styles.iconButton, iconButton],
|
|
58
|
+
onPress: toggle,
|
|
59
|
+
children: (0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
60
|
+
style: [styles.micIcon, micIcon],
|
|
61
|
+
children: (0, _jsxRuntime.jsx)(_Mic.Mic, {
|
|
62
|
+
size: 32,
|
|
63
|
+
viewBox: `0 0 ${32} ${28}`,
|
|
64
|
+
fill: isRecording ? accent_blue : grey
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
}, 'mic-button');
|
|
69
|
+
};
|
|
70
|
+
var styles = _reactNative.StyleSheet.create({
|
|
71
|
+
micIcon: {
|
|
72
|
+
width: 32,
|
|
73
|
+
height: 32,
|
|
74
|
+
justifyContent: 'center',
|
|
75
|
+
alignItems: 'center'
|
|
76
|
+
},
|
|
77
|
+
iconButton: {
|
|
78
|
+
justifyContent: 'center',
|
|
79
|
+
alignItems: 'center'
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=SpeechToTextButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactBindings","_contexts","_Mic","_AIDictation","_store","_useDictation2","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","selector","isRecording","SpeechToTextButton","props","isDictationAvailable","warnIfDictationUnavailable","jsx","AvailableSpeechToTextButton","exports","options","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","grey","accent_blue","_useTheme$theme$compo","composer","iconButton","micIcon","_useDictation","useDictation","cancel","toggle","_useStateStore","useStateStore","dictationStore","useEffect","View","entering","ZoomIn","duration","exiting","ZoomOut","children","Pressable","style","styles","onPress","Mic","size","viewBox","fill","StyleSheet","create","width","height","justifyContent","alignItems"],"sourceRoot":"../../../../src","sources":["ai-components/message-composer/SpeechToTextButton.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAEA,IAAAM,YAAA,GAAAN,OAAA;AAEA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AAA6D,IAAA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