@app-studio/components 0.11.8 → 0.11.11
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/dist/apple-touch-icon.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +4 -0
- package/dist/icon-512.png +0 -0
- package/dist/index.d.ts +474 -416
- package/dist/indexnow-key.txt +1 -0
- package/dist/manifest.json +9 -9
- package/dist/native/components/Accordion/Accordion/Accordion.props.d.ts +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.state.js +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.d.ts +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.js +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.native.d.ts +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.native.js +1 -1
- package/dist/native/components/Accordion/Accordion.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.props.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.state.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.type.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet.js +1 -1
- package/dist/native/components/Alert/Alert/Alert.props.d.ts +1 -1
- package/dist/native/components/Alert/Alert/Alert.state.d.ts +1 -1
- package/dist/native/components/Alert/Alert/Alert.state.js +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.d.ts +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.js +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.native.d.ts +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.native.js +1 -1
- package/dist/native/components/Alert/Alert.d.ts +1 -1
- package/dist/native/components/Alert/Alert.js +1 -1
- package/dist/native/components/AppRoot/AppRoot.d.ts +1 -1
- package/dist/native/components/AppRoot/AppRoot.js +1 -1
- package/dist/native/components/AppRoot/AppRoot.native.d.ts +1 -1
- package/dist/native/components/AppRoot/AppRoot.native.js +1 -1
- package/dist/native/components/AppRoot/AppRoot.types.d.ts +1 -1
- package/dist/native/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +1 -1
- package/dist/native/components/AspectRatio/AspectRatio/AspectRatio.view.js +1 -1
- package/dist/native/components/AspectRatio/AspectRatio.d.ts +1 -1
- package/dist/native/components/AspectRatio/AspectRatio.js +1 -1
- package/dist/native/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.d.ts +1 -1
- package/dist/native/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.js +1 -1
- package/dist/native/components/AudioInput/AudioInput/AudioInput.state.js +1 -1
- package/dist/native/components/AudioInput/AudioInput/AudioInput.view.d.ts +1 -1
- package/dist/native/components/AudioInput/AudioInput/AudioInput.view.js +1 -1
- package/dist/native/components/AudioInput/AudioInput.d.ts +1 -1
- package/dist/native/components/AudioInput/AudioInput.js +1 -1
- package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.d.ts +1 -1
- package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.js +1 -1
- package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.view.d.ts +1 -1
- package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.view.js +1 -1
- package/dist/native/components/AudioInput/useAudioRecording.js +1 -1
- package/dist/native/components/AudioInput/useAudioRecording.native.js +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.props.d.ts +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.state.d.ts +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.state.js +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.view.js +1 -1
- package/dist/native/components/Avatar/Avatar.d.ts +1 -1
- package/dist/native/components/Avatar/Avatar.js +1 -1
- package/dist/native/components/Background/Background/Background.props.d.ts +1 -1
- package/dist/native/components/Background/Background/Background.view.d.ts +1 -1
- package/dist/native/components/Background/Background/Background.view.js +1 -1
- package/dist/native/components/Background/Background/Background.view.native.d.ts +1 -1
- package/dist/native/components/Background/Background/Background.view.native.js +1 -1
- package/dist/native/components/Background/Background.d.ts +1 -1
- package/dist/native/components/Background/Background.js +1 -1
- package/dist/native/components/Badge/Badge/Badge.view.d.ts +1 -1
- package/dist/native/components/Badge/Badge/Badge.view.js +1 -1
- package/dist/native/components/Badge/Badge.d.ts +1 -1
- package/dist/native/components/Badge/Badge.js +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.d.ts +10 -7
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.js +98 -13
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.d.ts +3 -2
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.js +48 -4
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.js +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.d.ts +14 -3
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.js +100 -13
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.d.ts +32 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.js +13 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.js +58 -17
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.d.ts +42 -10
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.js +214 -6
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.d.ts +6 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.js +17 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.native.d.ts +6 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.native.js +8 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.native.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.js +10 -10
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.js +6 -4
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor.js +1 -1
- package/dist/native/components/Button/Button/Button.props.d.ts +1 -1
- package/dist/native/components/Button/Button/Button.state.d.ts +1 -1
- package/dist/native/components/Button/Button/Button.state.js +1 -1
- package/dist/native/components/Button/Button/Button.view.d.ts +1 -1
- package/dist/native/components/Button/Button/Button.view.js +1 -1
- package/dist/native/components/Button/Button/Button.view.native.d.ts +1 -1
- package/dist/native/components/Button/Button/Button.view.native.js +1 -1
- package/dist/native/components/Button/Button.d.ts +1 -1
- package/dist/native/components/Button/Button.js +1 -1
- package/dist/native/components/Card/Card/Card.context.d.ts +1 -1
- package/dist/native/components/Card/Card/Card.context.js +1 -1
- package/dist/native/components/Card/Card/Card.state.d.ts +1 -1
- package/dist/native/components/Card/Card/Card.state.js +1 -1
- package/dist/native/components/Card/Card/Card.view.d.ts +1 -1
- package/dist/native/components/Card/Card/Card.view.js +1 -1
- package/dist/native/components/Card/Card.js +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.context.d.ts +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.context.js +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.state.js +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.view.d.ts +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.view.js +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.view.native.d.ts +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.view.native.js +1 -1
- package/dist/native/components/Carousel/Carousel.js +1 -1
- package/dist/native/components/Chart/Chart/BarChart.d.ts +1 -1
- package/dist/native/components/Chart/Chart/BarChart.js +1 -1
- package/dist/native/components/Chart/Chart/BarChart.native.d.ts +1 -1
- package/dist/native/components/Chart/Chart/BarChart.native.js +1 -1
- package/dist/native/components/Chart/Chart/Chart.state.d.ts +2 -2
- package/dist/native/components/Chart/Chart/Chart.state.js +1 -1
- package/dist/native/components/Chart/Chart/Chart.view.d.ts +1 -1
- package/dist/native/components/Chart/Chart/Chart.view.js +1 -1
- package/dist/native/components/Chart/Chart/ChartTooltip.d.ts +1 -1
- package/dist/native/components/Chart/Chart/ChartTooltip.js +1 -1
- package/dist/native/components/Chart/Chart/LineChart.d.ts +1 -1
- package/dist/native/components/Chart/Chart/LineChart.js +1 -1
- package/dist/native/components/Chart/Chart/LineChart.native.d.ts +1 -1
- package/dist/native/components/Chart/Chart/LineChart.native.js +1 -1
- package/dist/native/components/Chart/Chart/PieChart.d.ts +1 -1
- package/dist/native/components/Chart/Chart/PieChart.js +1 -1
- package/dist/native/components/Chart/Chart/PieChart.native.d.ts +1 -1
- package/dist/native/components/Chart/Chart/PieChart.native.js +1 -1
- package/dist/native/components/Chart/Chart.d.ts +1 -1
- package/dist/native/components/Chart/Chart.js +1 -1
- package/dist/native/components/ChatInput/AttachmentGroup.d.ts +1 -1
- package/dist/native/components/ChatInput/AttachmentGroup.js +1 -1
- package/dist/native/components/ChatInput/AudioRecorder.d.ts +1 -1
- package/dist/native/components/ChatInput/AudioRecorder.js +1 -1
- package/dist/native/components/ChatInput/ChatInput/ChatInput.state.d.ts +7 -7
- package/dist/native/components/ChatInput/ChatInput/ChatInput.state.js +1 -1
- package/dist/native/components/ChatInput/ChatInput/ChatInput.view.d.ts +1 -1
- package/dist/native/components/ChatInput/ChatInput/ChatInput.view.js +1 -1
- package/dist/native/components/ChatInput/ChatInput.d.ts +1 -1
- package/dist/native/components/ChatInput/ChatInput.js +1 -1
- package/dist/native/components/ChatInput/ChatUploader.d.ts +1 -1
- package/dist/native/components/ChatInput/ChatUploader.js +1 -1
- package/dist/native/components/ChatInput/EditableInput.d.ts +1 -1
- package/dist/native/components/ChatInput/EditableInput.js +1 -1
- package/dist/native/components/ChatInput/EditableInput.native.d.ts +1 -1
- package/dist/native/components/ChatInput/EditableInput.native.js +1 -1
- package/dist/native/components/ChatInput/GuideTip.d.ts +1 -1
- package/dist/native/components/ChatInput/GuideTip.js +1 -1
- package/dist/native/components/ChatInput/MessageInput.d.ts +1 -1
- package/dist/native/components/ChatInput/MessageInput.js +1 -1
- package/dist/native/components/ChatInput/MessageInput.native.d.ts +1 -1
- package/dist/native/components/ChatInput/MessageInput.native.js +1 -1
- package/dist/native/components/ChatInput/PromptExamples.d.ts +1 -1
- package/dist/native/components/ChatInput/PromptExamples.js +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.state.d.ts +2 -2
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.state.js +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.style.d.ts +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.d.ts +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.js +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.native.d.ts +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.native.js +1 -1
- package/dist/native/components/ChatWidget/ChatWidget.d.ts +1 -1
- package/dist/native/components/ChatWidget/ChatWidget.js +1 -1
- package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.d.ts +1 -1
- package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.js +1 -1
- package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.native.d.ts +1 -1
- package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.native.js +1 -1
- package/dist/native/components/ChatWidget/Widget/useContextSelector.d.ts +1 -1
- package/dist/native/components/ChatWidget/Widget/useContextSelector.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.state.d.ts +2 -2
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.state.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.d.ts +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.d.ts +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/native/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/native/components/Command/Command/Command.props.d.ts +1 -1
- package/dist/native/components/Command/Command/Command.state.d.ts +3 -3
- package/dist/native/components/Command/Command/Command.state.js +1 -1
- package/dist/native/components/Command/Command/Command.type.d.ts +1 -1
- package/dist/native/components/Command/Command/Command.view.d.ts +1 -1
- package/dist/native/components/Command/Command/Command.view.js +1 -1
- package/dist/native/components/Command/Command/Command.view.native.d.ts +1 -1
- package/dist/native/components/Command/Command/Command.view.native.js +1 -1
- package/dist/native/components/Command/Command/CommandOverlay.d.ts +1 -1
- package/dist/native/components/Command/Command/CommandOverlay.js +1 -1
- package/dist/native/components/Command/Command/CommandOverlay.native.d.ts +1 -1
- package/dist/native/components/Command/Command/CommandOverlay.native.js +1 -1
- package/dist/native/components/Command/Command/CommandTextInput.d.ts +1 -1
- package/dist/native/components/Command/Command/CommandTextInput.js +1 -1
- package/dist/native/components/Command/Command/CommandTextInput.native.d.ts +1 -1
- package/dist/native/components/Command/Command/CommandTextInput.native.js +1 -1
- package/dist/native/components/Command/Command.js +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.state.js +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.js +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.native.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.native.js +1 -1
- package/dist/native/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.state.d.ts +1 -1
- package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.state.js +1 -1
- package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.view.d.ts +1 -1
- package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.view.js +1 -1
- package/dist/native/components/CookieConsent/CookieConsent.d.ts +1 -1
- package/dist/native/components/CookieConsent/CookieConsent.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.native.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.native.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.native.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.native.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop.js +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.layout.d.ts +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.layout.js +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.props.d.ts +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.view.d.ts +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.view.js +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.view.native.d.ts +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.view.native.js +1 -1
- package/dist/native/components/Drawer/Drawer.js +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.state.js +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.view.d.ts +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.view.js +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.view.native.d.ts +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.view.native.js +1 -1
- package/dist/native/components/DropZone/DropZone.d.ts +1 -1
- package/dist/native/components/DropZone/DropZone.js +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +2 -2
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.state.js +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.js +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.native.d.ts +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.native.js +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/native/components/EditComponent/EditComponent.d.ts +1 -1
- package/dist/native/components/EditComponent/EditComponent.js +1 -1
- package/dist/native/components/EditComponent/EditPanel.d.ts +1 -1
- package/dist/native/components/EditComponent/EditPanel.js +1 -1
- package/dist/native/components/EditComponent/EditToolbar.d.ts +1 -1
- package/dist/native/components/EditComponent/EditToolbar.js +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.d.ts +4 -4
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.js +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.d.ts +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.js +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.d.ts +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.js +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker.d.ts +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker.js +1 -1
- package/dist/native/components/File/File.d.ts +1 -1
- package/dist/native/components/File/File.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.state.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox.js +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.props.d.ts +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.state.d.ts +4 -4
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.state.js +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.d.ts +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.js +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.d.ts +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.js +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput.d.ts +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.context.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.context.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.provider.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.provider.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.state.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.native.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.native.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox.js +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.state.d.ts +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.state.js +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.js +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.d.ts +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.js +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker.d.ts +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker.js +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.state.d.ts +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.state.js +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.view.d.ts +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.view.js +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker.d.ts +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker.js +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.d.ts +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.js +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.native.d.ts +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.native.js +1 -1
- package/dist/native/components/Form/Label/Label.d.ts +1 -1
- package/dist/native/components/Form/Label/Label.js +1 -1
- package/dist/native/components/Form/Password/Password/Password.props.d.ts +1 -1
- package/dist/native/components/Form/Password/Password/Password.state.d.ts +1 -1
- package/dist/native/components/Form/Password/Password/Password.state.js +1 -1
- package/dist/native/components/Form/Password/Password/Password.type.d.ts +1 -1
- package/dist/native/components/Form/Password/Password.d.ts +1 -1
- package/dist/native/components/Form/Password/Password.js +1 -1
- package/dist/native/components/Form/Password/example/Default.d.ts +1 -1
- package/dist/native/components/Form/Password/example/Default.js +1 -1
- package/dist/native/components/Form/Password/example/DisabledInput.d.ts +1 -1
- package/dist/native/components/Form/Password/example/DisabledInput.js +1 -1
- package/dist/native/components/Form/Password/example/ErrorInput.d.ts +1 -1
- package/dist/native/components/Form/Password/example/ErrorInput.js +2 -2
- package/dist/native/components/Form/Password/example/HelperText.d.ts +1 -1
- package/dist/native/components/Form/Password/example/HelperText.js +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.props.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.state.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.state.js +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.js +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.native.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.native.js +1 -1
- package/dist/native/components/Form/Radio/Radio.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio.js +1 -1
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.props.d.ts +1 -1
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.state.js +1 -1
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.view.d.ts +1 -1
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.view.js +1 -1
- package/dist/native/components/Form/Radio/RadioGroup.d.ts +1 -1
- package/dist/native/components/Form/Radio/RadioGroup.js +1 -1
- package/dist/native/components/Form/Select/Select/Select.state.d.ts +1 -1
- package/dist/native/components/Form/Select/Select/Select.state.js +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.d.ts +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.js +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.native.d.ts +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.native.js +1 -1
- package/dist/native/components/Form/Select/Select.d.ts +1 -1
- package/dist/native/components/Form/Select/Select.js +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.state.d.ts +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.state.js +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.d.ts +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.js +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.native.d.ts +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.native.js +1 -1
- package/dist/native/components/Form/Selector/Selector.d.ts +1 -1
- package/dist/native/components/Form/Selector/Selector.js +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.state.d.ts +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.state.js +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.view.d.ts +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.view.js +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.view.native.d.ts +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.view.native.js +1 -1
- package/dist/native/components/Form/Switch/Switch.d.ts +1 -1
- package/dist/native/components/Form/Switch/Switch.js +1 -1
- package/dist/native/components/Form/TagInput/TagInput/TagInput.props.d.ts +1 -1
- package/dist/native/components/Form/TagInput/TagInput/TagInput.state.d.ts +4 -4
- package/dist/native/components/Form/TagInput/TagInput/TagInput.state.js +1 -1
- package/dist/native/components/Form/TagInput/TagInput/TagInput.view.d.ts +1 -1
- package/dist/native/components/Form/TagInput/TagInput/TagInput.view.js +1 -1
- package/dist/native/components/Form/TagInput/TagInput.d.ts +1 -1
- package/dist/native/components/Form/TagInput/TagInput.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.state.d.ts +4 -4
- package/dist/native/components/Form/TextArea/TextArea/TextArea.state.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.view.d.ts +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.view.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.view.native.d.ts +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.view.native.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea.d.ts +1 -1
- package/dist/native/components/Form/TextArea/TextArea.js +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.props.d.ts +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.state.d.ts +4 -4
- package/dist/native/components/Form/TextField/TextField/TextField.state.js +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.d.ts +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.js +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.d.ts +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.js +1 -1
- package/dist/native/components/Form/TextField/TextField.d.ts +1 -1
- package/dist/native/components/Form/TextField/TextField.js +1 -1
- package/dist/native/components/Formik/AttachmentPreview.d.ts +1 -1
- package/dist/native/components/Formik/AttachmentPreview.js +1 -1
- package/dist/native/components/Formik/Formik.ChatInput.d.ts +1 -1
- package/dist/native/components/Formik/Formik.ChatInput.js +1 -1
- package/dist/native/components/Formik/Formik.Checkbox.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Checkbox.js +1 -1
- package/dist/native/components/Formik/Formik.ColorInput.d.ts +1 -1
- package/dist/native/components/Formik/Formik.ColorInput.js +1 -1
- package/dist/native/components/Formik/Formik.ComboBox.d.ts +1 -1
- package/dist/native/components/Formik/Formik.ComboBox.js +1 -1
- package/dist/native/components/Formik/Formik.CountryPicker.d.ts +1 -1
- package/dist/native/components/Formik/Formik.CountryPicker.js +1 -1
- package/dist/native/components/Formik/Formik.DatePicker.d.ts +1 -1
- package/dist/native/components/Formik/Formik.DatePicker.js +1 -1
- package/dist/native/components/Formik/Formik.EmojiPicker.d.ts +1 -1
- package/dist/native/components/Formik/Formik.EmojiPicker.js +1 -1
- package/dist/native/components/Formik/Formik.Form.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Form.js +1 -1
- package/dist/native/components/Formik/Formik.IconPicker.d.ts +1 -1
- package/dist/native/components/Formik/Formik.IconPicker.js +1 -1
- package/dist/native/components/Formik/Formik.OTPInput.d.ts +1 -1
- package/dist/native/components/Formik/Formik.OTPInput.js +1 -1
- package/dist/native/components/Formik/Formik.Password.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Password.js +1 -1
- package/dist/native/components/Formik/Formik.Radio.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Radio.js +1 -1
- package/dist/native/components/Formik/Formik.Select.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Select.js +1 -1
- package/dist/native/components/Formik/Formik.Selector.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Selector.js +1 -1
- package/dist/native/components/Formik/Formik.Slider.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Slider.js +1 -1
- package/dist/native/components/Formik/Formik.Switch.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Switch.js +1 -1
- package/dist/native/components/Formik/Formik.TagInput.d.ts +1 -1
- package/dist/native/components/Formik/Formik.TagInput.js +1 -1
- package/dist/native/components/Formik/Formik.TextArea.d.ts +1 -1
- package/dist/native/components/Formik/Formik.TextArea.js +1 -1
- package/dist/native/components/Formik/Formik.TextField.d.ts +1 -1
- package/dist/native/components/Formik/Formik.TextField.js +1 -1
- package/dist/native/components/Formik/Formik.Toggle.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Toggle.js +1 -1
- package/dist/native/components/Formik/Formik.ToggleGroup.d.ts +1 -1
- package/dist/native/components/Formik/Formik.ToggleGroup.js +1 -1
- package/dist/native/components/Formik/Formik.Uploader.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Uploader.js +1 -1
- package/dist/native/components/Gradient/Gradient/Gradient.view.d.ts +1 -1
- package/dist/native/components/Gradient/Gradient/Gradient.view.js +1 -1
- package/dist/native/components/Gradient/Gradient/Gradient.view.native.d.ts +1 -1
- package/dist/native/components/Gradient/Gradient/Gradient.view.native.js +1 -1
- package/dist/native/components/Gradient/Gradient.d.ts +1 -1
- package/dist/native/components/Gradient/Gradient.js +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.props.d.ts +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.state.d.ts +2 -2
- package/dist/native/components/HoverCard/HoverCard/HoverCard.state.js +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.style.d.ts +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.view.d.ts +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.view.js +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.view.native.d.ts +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.view.native.js +1 -1
- package/dist/native/components/HoverCard/HoverCard.js +1 -1
- package/dist/native/components/Icon/Icon.d.ts +1 -1
- package/dist/native/components/Icon/Icon.js +1 -1
- package/dist/native/components/Icon/Icon.native.d.ts +1 -1
- package/dist/native/components/Icon/Icon.native.js +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.state.d.ts +2 -2
- package/dist/native/components/IconPicker/IconPicker/IconPicker.state.js +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.d.ts +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.js +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.d.ts +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.js +1 -1
- package/dist/native/components/IconPicker/IconPicker.d.ts +1 -1
- package/dist/native/components/IconPicker/IconPicker.js +1 -1
- package/dist/native/components/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
- package/dist/native/components/Input/FieldContainer/FieldContainer.d.ts +1 -1
- package/dist/native/components/Input/FieldContainer/FieldContainer.js +1 -1
- package/dist/native/components/Input/FieldContent/FieldContent/FieldContent.props.d.ts +1 -1
- package/dist/native/components/Input/FieldContent/FieldContent.d.ts +1 -1
- package/dist/native/components/Input/FieldContent/FieldContent.js +1 -1
- package/dist/native/components/Input/FieldIcons/FieldIcons.d.ts +1 -1
- package/dist/native/components/Input/FieldIcons/FieldIcons.js +1 -1
- package/dist/native/components/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
- package/dist/native/components/Input/FieldLabel/FieldLabel.d.ts +1 -1
- package/dist/native/components/Input/FieldLabel/FieldLabel.js +1 -1
- package/dist/native/components/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
- package/dist/native/components/Input/FieldLayout/FieldLayout.d.ts +1 -1
- package/dist/native/components/Input/FieldLayout/FieldLayout.js +1 -1
- package/dist/native/components/Input/FieldWrapper/FieldWrapper.d.ts +1 -1
- package/dist/native/components/Input/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/native/components/Input/HelperText/HelperText.d.ts +1 -1
- package/dist/native/components/Input/HelperText/HelperText.js +1 -1
- package/dist/native/components/Input/HelperText/HelperText.props.d.ts +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.js +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.native.js +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.types.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.props.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.state.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.state.js +1 -1
- package/dist/native/components/Link/Link/Link.view.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.view.js +1 -1
- package/dist/native/components/Link/Link/Link.view.native.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.view.native.js +1 -1
- package/dist/native/components/Link/Link.d.ts +1 -1
- package/dist/native/components/Link/Link.js +1 -1
- package/dist/native/components/Loader/Loader/Loader.props.d.ts +1 -1
- package/dist/native/components/Loader/Loader/Loader.view.d.ts +1 -1
- package/dist/native/components/Loader/Loader/Loader.view.js +1 -1
- package/dist/native/components/Loader/Loader/Loader.view.native.d.ts +1 -1
- package/dist/native/components/Loader/Loader/Loader.view.native.js +1 -1
- package/dist/native/components/Loader/Loader.d.ts +1 -1
- package/dist/native/components/Loader/Loader.js +1 -1
- package/dist/native/components/Markdown/Markdown/Markdown.content.d.ts +2 -2
- package/dist/native/components/Markdown/Markdown/Markdown.content.js +26 -7
- package/dist/native/components/Markdown/Markdown/Markdown.content.js.map +1 -1
- package/dist/native/components/Markdown/Markdown/Markdown.motion.d.ts +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.js +16 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.js.map +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.native.d.ts +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.native.js +21 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.native.js.map +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.props.d.ts +19 -1
- package/dist/native/components/Markdown/Markdown/Markdown.view.native.d.ts +1 -1
- package/dist/native/components/Markdown/Markdown/Markdown.view.native.js +1 -1
- package/dist/native/components/Markdown/Markdown/useMarkdownTyping.d.ts +6 -0
- package/dist/native/components/Markdown/Markdown/useMarkdownTyping.js +81 -0
- package/dist/native/components/Markdown/Markdown/useMarkdownTyping.js.map +1 -0
- package/dist/native/components/Markdown/Markdown.d.ts +1 -1
- package/dist/native/components/Markdown/Markdown.js +1 -1
- package/dist/native/components/MediaPreview.d.ts +1 -1
- package/dist/native/components/MediaPreview.js +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.props.d.ts +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.state.d.ts +2 -2
- package/dist/native/components/Menubar/Menubar/Menubar.state.js +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.type.d.ts +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.view.d.ts +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.view.js +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.view.native.d.ts +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.view.native.js +1 -1
- package/dist/native/components/Menubar/Menubar.js +1 -1
- package/dist/native/components/Message/Message/Message.layout.d.ts +1 -1
- package/dist/native/components/Message/Message/Message.layout.js +1 -1
- package/dist/native/components/Message/Message/Message.layout.native.d.ts +1 -1
- package/dist/native/components/Message/Message/Message.layout.native.js +1 -1
- package/dist/native/components/Message/Message/Message.view.d.ts +1 -1
- package/dist/native/components/Message/Message/Message.view.js +1 -1
- package/dist/native/components/Modal/Modal/Modal.layout.d.ts +1 -1
- package/dist/native/components/Modal/Modal/Modal.layout.js +1 -1
- package/dist/native/components/Modal/Modal/Modal.props.d.ts +3 -1
- package/dist/native/components/Modal/Modal/Modal.view.d.ts +1 -1
- package/dist/native/components/Modal/Modal/Modal.view.js +1 -1
- package/dist/native/components/Modal/Modal/Modal.view.native.d.ts +1 -1
- package/dist/native/components/Modal/Modal/Modal.view.native.js +1 -1
- package/dist/native/components/Modal/Modal.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +2 -2
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.state.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.native.d.ts +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.native.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu.js +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.state.d.ts +7 -7
- package/dist/native/components/OTPInput/OTPInput/OTPInput.state.js +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.view.d.ts +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.view.js +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.view.native.d.ts +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.view.native.js +1 -1
- package/dist/native/components/OTPInput/OTPInput.d.ts +1 -1
- package/dist/native/components/OTPInput/OTPInput.js +1 -1
- package/dist/native/components/PageLayout/PageLayout.d.ts +1 -1
- package/dist/native/components/PageLayout/PageLayout.js +1 -1
- package/dist/native/components/PageLayout/PageLayout.types.d.ts +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.state.js +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.view.d.ts +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.view.js +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.view.native.d.ts +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.view.native.js +1 -1
- package/dist/native/components/Pagination/Pagination.d.ts +1 -1
- package/dist/native/components/Pagination/Pagination.js +1 -1
- package/dist/native/components/Portal/Portal.d.ts +1 -1
- package/dist/native/components/Portal/Portal.js +1 -1
- package/dist/native/components/Portal/Portal.native.d.ts +1 -1
- package/dist/native/components/Portal/Portal.native.js +1 -1
- package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.d.ts +1 -1
- package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.js +1 -1
- package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.native.d.ts +1 -1
- package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.native.js +1 -1
- package/dist/native/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/native/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.props.d.ts +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.state.d.ts +2 -2
- package/dist/native/components/Resizable/Resizable/Resizable.state.js +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.view.d.ts +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.view.js +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.view.native.d.ts +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.view.native.js +1 -1
- package/dist/native/components/Resizable/Resizable.js +1 -1
- package/dist/native/components/Router/Router.d.ts +1 -1
- package/dist/native/components/Router/Router.js +1 -1
- package/dist/native/components/Router/Router.match.d.ts +1 -1
- package/dist/native/components/Router/Router.match.js +1 -1
- package/dist/native/components/Router/Router.native.d.ts +1 -1
- package/dist/native/components/Router/Router.native.js +1 -1
- package/dist/native/components/Router/Router.types.d.ts +1 -1
- package/dist/native/components/Separator/Separator/Separator.view.d.ts +1 -1
- package/dist/native/components/Separator/Separator/Separator.view.js +1 -1
- package/dist/native/components/Separator/Separator/Separator.view.native.d.ts +1 -1
- package/dist/native/components/Separator/Separator/Separator.view.native.js +1 -1
- package/dist/native/components/Separator/Separator.d.ts +1 -1
- package/dist/native/components/Separator/Separator.js +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.props.d.ts +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.state.js +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.state.native.js +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.view.d.ts +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.view.js +1 -1
- package/dist/native/components/ShareButton/ShareButton.d.ts +1 -1
- package/dist/native/components/ShareButton/ShareButton.js +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.props.d.ts +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.state.js +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.d.ts +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.js +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.native.d.ts +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.native.js +1 -1
- package/dist/native/components/Sidebar/Sidebar.js +1 -1
- package/dist/native/components/Slider/Slider/Slider.state.d.ts +1 -1
- package/dist/native/components/Slider/Slider/Slider.state.js +1 -1
- package/dist/native/components/Slider/Slider/Slider.view.d.ts +1 -1
- package/dist/native/components/Slider/Slider/Slider.view.js +1 -1
- package/dist/native/components/Slider/Slider/Slider.view.native.d.ts +1 -1
- package/dist/native/components/Slider/Slider/Slider.view.native.js +1 -1
- package/dist/native/components/Slider/Slider.d.ts +1 -1
- package/dist/native/components/Slider/Slider.js +1 -1
- package/dist/native/components/SplashScreen/SplashScreen.d.ts +1 -1
- package/dist/native/components/SplashScreen/SplashScreen.js +1 -1
- package/dist/native/components/SplashScreen/SplashScreen.types.d.ts +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator/StatusIndicator.view.d.ts +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator/StatusIndicator.view.js +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator.js +1 -1
- package/dist/native/components/Table/Table/Table.context.d.ts +1 -1
- package/dist/native/components/Table/Table/Table.context.js +1 -1
- package/dist/native/components/Table/Table/Table.props.d.ts +1 -1
- package/dist/native/components/Table/Table/Table.state.d.ts +1 -1
- package/dist/native/components/Table/Table/Table.state.js +1 -1
- package/dist/native/components/Table/Table/Table.view.d.ts +1 -1
- package/dist/native/components/Table/Table/Table.view.js +1 -1
- package/dist/native/components/Table/Table/TableScroll.d.ts +1 -1
- package/dist/native/components/Table/Table/TableScroll.js +1 -1
- package/dist/native/components/Table/Table/TableScroll.native.d.ts +1 -1
- package/dist/native/components/Table/Table/TableScroll.native.js +1 -1
- package/dist/native/components/Table/Table.d.ts +1 -1
- package/dist/native/components/Table/Table.js +1 -1
- package/dist/native/components/Tabs/Tabs/TabHeader.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/TabHeader.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.props.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.state.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.type.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.native.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.native.js +1 -1
- package/dist/native/components/Tabs/Tabs.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs.js +1 -1
- package/dist/native/components/TextArea/TextArea.d.ts +1 -1
- package/dist/native/components/TextArea/TextArea.js +1 -1
- package/dist/native/components/TextArea/TextArea.native.d.ts +1 -1
- package/dist/native/components/TextArea/TextArea.native.js +1 -1
- package/dist/native/components/Title/Title/SlideEffect.d.ts +1 -1
- package/dist/native/components/Title/Title/SlideEffect.js +1 -1
- package/dist/native/components/Title/Title/SlideEffect.native.d.ts +1 -1
- package/dist/native/components/Title/Title/SlideEffect.native.js +1 -1
- package/dist/native/components/Title/Title/Title.state.d.ts +1 -1
- package/dist/native/components/Title/Title/Title.state.js +1 -1
- package/dist/native/components/Title/Title/Title.view.d.ts +1 -1
- package/dist/native/components/Title/Title/Title.view.js +1 -1
- package/dist/native/components/Title/Title/Title.view.native.d.ts +1 -1
- package/dist/native/components/Title/Title/Title.view.native.js +1 -1
- package/dist/native/components/Title/Title/TypewriterEffect.d.ts +1 -1
- package/dist/native/components/Title/Title/TypewriterEffect.js +1 -1
- package/dist/native/components/Title/Title/TypewriterEffect.native.d.ts +1 -1
- package/dist/native/components/Title/Title/TypewriterEffect.native.js +1 -1
- package/dist/native/components/Title/Title.d.ts +1 -1
- package/dist/native/components/Title/Title.js +1 -1
- package/dist/native/components/Toast/Toast/Toast.view.d.ts +1 -1
- package/dist/native/components/Toast/Toast/Toast.view.js +1 -1
- package/dist/native/components/Toast/Toast/Toast.view.native.d.ts +1 -1
- package/dist/native/components/Toast/Toast/Toast.view.native.js +1 -1
- package/dist/native/components/Toast/Toast.d.ts +1 -1
- package/dist/native/components/Toast/Toast.js +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.state.d.ts +2 -2
- package/dist/native/components/Toggle/Toggle/Toggle.state.js +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.view.d.ts +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.view.js +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.view.native.d.ts +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.view.native.js +1 -1
- package/dist/native/components/Toggle/Toggle.d.ts +1 -1
- package/dist/native/components/Toggle/Toggle.js +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.state.d.ts +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.state.js +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.view.js +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.props.d.ts +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.state.d.ts +2 -2
- package/dist/native/components/Tooltip/Tooltip/Tooltip.state.js +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.view.d.ts +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.view.js +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.view.native.d.ts +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.view.native.js +1 -1
- package/dist/native/components/Tooltip/Tooltip.js +1 -1
- package/dist/native/components/Uploader/Uploader/Uploader.state.d.ts +1 -1
- package/dist/native/components/Uploader/Uploader/Uploader.state.js +1 -1
- package/dist/native/components/Uploader/Uploader/Uploader.view.d.ts +1 -1
- package/dist/native/components/Uploader/Uploader/Uploader.view.js +1 -1
- package/dist/native/components/Uploader/Uploader.d.ts +1 -1
- package/dist/native/components/Uploader/Uploader.js +1 -1
- package/dist/native/components/index.d.ts +1 -0
- package/dist/native/components/index.js +1 -0
- package/dist/native/components/index.js.map +1 -1
- package/dist/native/design-system/DesignSystemProvider.d.ts +3 -1
- package/dist/native/design-system/DesignSystemProvider.js +3 -3
- package/dist/native/design-system/DesignSystemProvider.js.map +1 -1
- package/dist/native/pages/designSystem.page.d.ts +1 -1
- package/dist/native/pages/designSystem.page.js +1 -1
- package/dist/robots.txt +7 -2
- package/dist/web.cjs.js +52 -40
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.esm.js +10653 -10005
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.js +45 -33
- package/dist/web.umd.js.map +1 -1
- package/docs/README.md +81 -3
- package/docs/components/BlockEditor.mdx +32 -1
- package/docs/components/Markdown.mdx +77 -16
- package/docs/guides/accessibility.mdx +51 -0
- package/docs/guides/ai-assistants.mdx +43 -0
- package/docs/guides/animation.mdx +58 -0
- package/docs/guides/core.mdx +68 -0
- package/docs/guides/forms.mdx +79 -0
- package/docs/guides/hooks.mdx +92 -0
- package/docs/guides/installation.mdx +96 -0
- package/docs/guides/overview.mdx +53 -0
- package/docs/guides/providers.mdx +51 -0
- package/docs/guides/quick-start.mdx +71 -0
- package/docs/guides/react-native.mdx +53 -0
- package/docs/guides/responsive.mdx +65 -0
- package/docs/guides/styling.mdx +115 -0
- package/docs/guides/theming.mdx +70 -0
- package/docs/guides/troubleshooting.mdx +45 -0
- package/docs/seo-geo.md +53 -0
- package/package.json +8 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { MarkdownProps } from './Markdown.props';
|
|
3
|
-
export declare function MarkdownContent({ value, label, onLinkPress, labels, views, native, codeFontFamily, ...props }: MarkdownProps & {
|
|
3
|
+
export declare function MarkdownContent({ value, label, onLinkPress, renderLink, allowImages, allowVideos, renderVideo, typing, isStreaming, onTypingComplete, labels, views, native, codeFontFamily, ...props }: MarkdownProps & {
|
|
4
4
|
native?: boolean;
|
|
5
5
|
codeFontFamily?: string;
|
|
6
6
|
}): React.JSX.Element;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import React, { useMemo } from '
|
|
2
|
-
import { Text, Vertical, View } from 'app-studio';
|
|
1
|
+
import React, { useMemo, useRef } from 'react';
|
|
2
|
+
import { Animation, Text, Vertical, View } from 'app-studio';
|
|
3
3
|
import { BlockContent } from '../../BlockEditor/BlockEditor/BlockEditor.content';
|
|
4
|
-
import { parseDocument } from '../../BlockEditor/BlockEditor/BlockEditor.model';
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { parseDocument, } from '../../BlockEditor/BlockEditor/BlockEditor.model';
|
|
5
|
+
import { useMarkdownTyping } from './useMarkdownTyping';
|
|
6
|
+
export function MarkdownContent({ value, label, onLinkPress, renderLink, allowImages = true, allowVideos = true, renderVideo, typing, isStreaming, onTypingComplete, labels, views = {}, native = false, codeFontFamily = 'monospace', ...props }) {
|
|
7
|
+
const { displayedText, isTyping } = useMarkdownTyping(value, {
|
|
8
|
+
typing,
|
|
9
|
+
isStreaming,
|
|
10
|
+
onTypingComplete,
|
|
11
|
+
});
|
|
12
|
+
const previous = useRef([]);
|
|
13
|
+
const document = useMemo(() => {
|
|
14
|
+
const parsed = parseDocument(displayedText, previous.current, undefined, {
|
|
15
|
+
display: true,
|
|
16
|
+
});
|
|
17
|
+
previous.current = parsed.blocks;
|
|
18
|
+
return parsed;
|
|
19
|
+
}, [displayedText]);
|
|
7
20
|
return (<Vertical gap={12} minWidth={0} {...(native
|
|
8
21
|
? { accessibilityLabel: label }
|
|
9
22
|
: { role: label ? 'region' : undefined, 'aria-label': label })} {...props} {...views.container}>
|
|
@@ -17,13 +30,19 @@ export function MarkdownContent({ value, label, onLinkPress, labels, views = {},
|
|
|
17
30
|
: {
|
|
18
31
|
style: { whiteSpace: 'pre-wrap', overflowWrap: 'anywhere' },
|
|
19
32
|
})} {...views.source}>
|
|
20
|
-
{
|
|
33
|
+
{displayedText}
|
|
21
34
|
</Text>
|
|
22
35
|
</>) : (document.blocks
|
|
23
36
|
.filter((block) => block.raw)
|
|
24
37
|
.map((block) => (<View key={block.id} minWidth={0} {...views.block}>
|
|
25
|
-
<BlockContent block={block} native={native} codeFontFamily={codeFontFamily} isDisplay onLinkPress={onLinkPress}/>
|
|
38
|
+
<BlockContent block={block} native={native} codeFontFamily={codeFontFamily} isDisplay onLinkPress={onLinkPress} renderLink={renderLink} allowImages={allowImages} allowVideos={allowVideos} renderVideo={renderVideo}/>
|
|
26
39
|
</View>)))}
|
|
40
|
+
{isTyping && (<View as="span" width={2} height={16} backgroundColor="color-gray-700" {...(native
|
|
41
|
+
? { accessibilityElementsHidden: true }
|
|
42
|
+
: { 'aria-hidden': true })} animate={Animation.flash({
|
|
43
|
+
duration: '0.8s',
|
|
44
|
+
iterationCount: 'infinite',
|
|
45
|
+
})}/>)}
|
|
27
46
|
</Vertical>);
|
|
28
47
|
}
|
|
29
48
|
//# sourceMappingURL=Markdown.content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.content.js","sourceRoot":"","sources":["../../../../../src/components/Markdown/Markdown/Markdown.content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Markdown.content.js","sourceRoot":"","sources":["../../../../../src/components/Markdown/Markdown/Markdown.content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAEL,aAAa,GACd,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,UAAU,eAAe,CAAC,EAC9B,KAAK,EACL,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B,CAChC,IAAI,CAAC,MAAM;YACT,CAAC,CAAC,EAAE,2BAA2B,EAAE,IAAI,EAAE;YACvC,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAC7B,OAAO,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC;gBACvB,QAAQ,EAAE,MAAM;gBAChB,cAAc,EAAE,UAAU;aAC3B,CAAC,CAAC,EACH,CACH,CACH;IAAA,EAAE,QAAQ,CAAC,CACZ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useMarkdownReducedMotion(): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
export function useMarkdownReducedMotion() {
|
|
3
|
+
const [reduced, setReduced] = useState(() => typeof window !== 'undefined' &&
|
|
4
|
+
!!window.matchMedia?.('(prefers-reduced-motion: reduce)').matches);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
const query = window.matchMedia?.('(prefers-reduced-motion: reduce)');
|
|
7
|
+
if (!query)
|
|
8
|
+
return;
|
|
9
|
+
const change = () => setReduced(query.matches);
|
|
10
|
+
change();
|
|
11
|
+
query.addEventListener?.('change', change);
|
|
12
|
+
return () => query.removeEventListener?.('change', change);
|
|
13
|
+
}, []);
|
|
14
|
+
return reduced;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Markdown.motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Markdown.motion.js","sourceRoot":"","sources":["../../../../../src/components/Markdown/Markdown/Markdown.motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,UAAU,wBAAwB;IACtC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CACpC,GAAG,EAAE,CACH,OAAO,MAAM,KAAK,WAAW;QAC7B,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,kCAAkC,CAAC,CAAC,OAAO,CACpE,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC,kCAAkC,CAAC,CAAC;QACtE,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC/C,MAAM,EAAE,CAAC;QACT,KAAK,CAAC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC3C,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useMarkdownReducedMotion(): boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { AccessibilityInfo } from 'react-native';
|
|
3
|
+
export function useMarkdownReducedMotion() {
|
|
4
|
+
const [reduced, setReduced] = useState(false);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
let active = true;
|
|
7
|
+
void AccessibilityInfo.isReduceMotionEnabled()
|
|
8
|
+
.then((value) => {
|
|
9
|
+
if (active)
|
|
10
|
+
setReduced(value);
|
|
11
|
+
})
|
|
12
|
+
.catch(() => { });
|
|
13
|
+
const subscription = AccessibilityInfo.addEventListener('reduceMotionChanged', setReduced);
|
|
14
|
+
return () => {
|
|
15
|
+
active = false;
|
|
16
|
+
subscription.remove();
|
|
17
|
+
};
|
|
18
|
+
}, []);
|
|
19
|
+
return reduced;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=Markdown.motion.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Markdown.motion.native.js","sourceRoot":"","sources":["../../../../../src/components/Markdown/Markdown/Markdown.motion.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,UAAU,wBAAwB;IACtC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,KAAK,iBAAiB,CAAC,qBAAqB,EAAE;aAC3C,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;YACd,IAAI,MAAM;gBAAE,UAAU,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC,CAAC;aACD,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QACnB,MAAM,YAAY,GAAG,iBAAiB,CAAC,gBAAgB,CACrD,qBAAqB,EACrB,UAAU,CACX,CAAC;QACF,OAAO,GAAG,EAAE;YACV,MAAM,GAAG,KAAK,CAAC;YACf,YAAY,CAAC,MAAM,EAAE,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
|
-
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export interface MarkdownTypingOptions {
|
|
4
|
+
typing?: boolean | {
|
|
5
|
+
charsPerTick?: number;
|
|
6
|
+
intervalMs?: number;
|
|
7
|
+
};
|
|
8
|
+
/** Keep the cursor active while waiting for more content; completion waits for false. */
|
|
9
|
+
isStreaming?: boolean;
|
|
10
|
+
onTypingComplete?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface MarkdownProps extends Omit<ViewProps, 'value' | 'children'>, MarkdownTypingOptions {
|
|
3
13
|
value: string;
|
|
4
14
|
label?: string;
|
|
5
15
|
/** Override link navigation, for example to use the application's native router. */
|
|
6
16
|
onLinkPress?: (url: string) => void;
|
|
17
|
+
/** Return undefined to keep the safe default, or replace a link with application content. */
|
|
18
|
+
renderLink?: (url: string, children: ReactNode) => ReactNode | undefined;
|
|
19
|
+
/** Disable external image loading while retaining readable alternative text. */
|
|
20
|
+
allowImages?: boolean;
|
|
21
|
+
/** Disable video loading and navigation while retaining its caption. */
|
|
22
|
+
allowVideos?: boolean;
|
|
23
|
+
/** Optional application player, especially on native. Called only for safe, allowed URLs. */
|
|
24
|
+
renderVideo?: (url: string, caption: string) => ReactNode | undefined;
|
|
7
25
|
labels?: {
|
|
8
26
|
sourceFallback?: string;
|
|
9
27
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MarkdownTypingOptions } from './Markdown.props';
|
|
2
|
+
export type MarkdownTypingResult = {
|
|
3
|
+
displayedText: string;
|
|
4
|
+
isTyping: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function useMarkdownTyping(value: string, { typing, isStreaming, onTypingComplete, }?: MarkdownTypingOptions): MarkdownTypingResult;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import { useMarkdownReducedMotion } from './Markdown.motion';
|
|
3
|
+
const segmenter = typeof Intl.Segmenter === 'function'
|
|
4
|
+
? new Intl.Segmenter(undefined, { granularity: 'grapheme' })
|
|
5
|
+
: undefined;
|
|
6
|
+
export function useMarkdownTyping(value, { typing = false, isStreaming = false, onTypingComplete, } = {}) {
|
|
7
|
+
const reducedMotion = useMarkdownReducedMotion();
|
|
8
|
+
// Engines without grapheme segmentation show the full text instead of splitting a composed character.
|
|
9
|
+
const enabled = !!typing && !reducedMotion && !!segmenter;
|
|
10
|
+
const config = typeof typing === 'object' ? typing : undefined;
|
|
11
|
+
const step = Math.max(1, Math.floor(Number.isFinite(config?.charsPerTick) ? config.charsPerTick : 3));
|
|
12
|
+
const interval = Math.max(1, Number.isFinite(config?.intervalMs) ? config.intervalMs : 16);
|
|
13
|
+
const [frame, setFrame] = useState(() => ({
|
|
14
|
+
value,
|
|
15
|
+
length: enabled ? 0 : value.length,
|
|
16
|
+
}));
|
|
17
|
+
const previous = useRef(value);
|
|
18
|
+
const completed = useRef(null);
|
|
19
|
+
const callback = useRef(onTypingComplete);
|
|
20
|
+
callback.current = onTypingComplete;
|
|
21
|
+
const ends = useMemo(() => [
|
|
22
|
+
0,
|
|
23
|
+
...Array.from(segmenter?.segment(value) ?? [], (part) => part.index + part.segment.length),
|
|
24
|
+
], [value]);
|
|
25
|
+
// The final streamed grapheme may still receive a combining mark or another emoji joiner.
|
|
26
|
+
const targetIndex = Math.max(0, ends.length - (isStreaming ? 2 : 1));
|
|
27
|
+
const targetLength = ends[targetIndex];
|
|
28
|
+
const limit = value.startsWith(frame.value)
|
|
29
|
+
? Math.min(frame.length, targetLength)
|
|
30
|
+
: 0;
|
|
31
|
+
let index = 0;
|
|
32
|
+
while (index + 1 < ends.length && ends[index + 1] <= limit)
|
|
33
|
+
index++;
|
|
34
|
+
const length = enabled ? ends[index] : value.length;
|
|
35
|
+
const displayedText = value.slice(0, length);
|
|
36
|
+
const latest = useRef({ value, ends, index, targetIndex });
|
|
37
|
+
latest.current = { value, ends, index, targetIndex };
|
|
38
|
+
const advancing = enabled && length < targetLength;
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
if (!value.startsWith(previous.current))
|
|
41
|
+
completed.current = null;
|
|
42
|
+
previous.current = value;
|
|
43
|
+
}, [value]);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (isStreaming)
|
|
46
|
+
completed.current = null;
|
|
47
|
+
}, [isStreaming]);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (!enabled)
|
|
50
|
+
setFrame((current) => current.value === value && current.length === value.length
|
|
51
|
+
? current
|
|
52
|
+
: { value, length: value.length });
|
|
53
|
+
}, [enabled, value]);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (!advancing)
|
|
56
|
+
return;
|
|
57
|
+
const timer = setInterval(() => {
|
|
58
|
+
const current = latest.current;
|
|
59
|
+
setFrame({
|
|
60
|
+
value: current.value,
|
|
61
|
+
length: current.ends[Math.min(current.index + step, current.targetIndex)],
|
|
62
|
+
});
|
|
63
|
+
}, interval);
|
|
64
|
+
return () => clearInterval(timer);
|
|
65
|
+
}, [advancing, step, interval]);
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
if (typing &&
|
|
68
|
+
value &&
|
|
69
|
+
!isStreaming &&
|
|
70
|
+
length === value.length &&
|
|
71
|
+
completed.current !== value) {
|
|
72
|
+
completed.current = value;
|
|
73
|
+
callback.current?.();
|
|
74
|
+
}
|
|
75
|
+
}, [value, typing, isStreaming, length]);
|
|
76
|
+
return {
|
|
77
|
+
displayedText,
|
|
78
|
+
isTyping: enabled && (length < value.length || isStreaming),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=useMarkdownTyping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMarkdownTyping.js","sourceRoot":"","sources":["../../../../../src/components/Markdown/Markdown/useMarkdownTyping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,MAAM,SAAS,GACb,OAAO,IAAI,CAAC,SAAS,KAAK,UAAU;IAClC,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IAC5D,CAAC,CAAC,SAAS,CAAC;AAEhB,MAAM,UAAU,iBAAiB,CAC/B,KAAa,EACb,EACE,MAAM,GAAG,KAAK,EACd,WAAW,GAAG,KAAK,EACnB,gBAAgB,MAC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AAK;YACL,CAAC,WAAW;YACZ,MAAM,KAAK,KAAK,CAAC,MAAM;YACvB,SAAS,CAAC,OAAO,KAAK,KAAK,EAC3B,CAAC;YACD,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC;YAC1B,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC;QACvB,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,OAAO;QACL,aAAa;QACb,QAAQ,EAAE,OAAO,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,WAAW,CAAC;KAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const useMenubarState: (defaultActiveMenuId?: string | null, defaultOpenMenuId?: string | null) => {
|
|
2
2
|
activeMenuId: string | null;
|
|
3
|
-
setActiveMenuId: import("
|
|
3
|
+
setActiveMenuId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
4
4
|
openMenuId: string | null;
|
|
5
|
-
setOpenMenuId: import("
|
|
5
|
+
setOpenMenuId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
6
6
|
isMenuOpen: (menuId: string) => boolean;
|
|
7
7
|
toggleMenu: (menuId: string) => void;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState, useEffect } from '
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
2
|
// This file defines the `useMenubarState` custom hook, which encapsulates the entire state management and interaction logic for the Menubar component. It manages the active menu item and the currently open sub-menu, while also handling global events like outside clicks and escape key presses to close menus, providing a centralized and reusable state solution.
|
|
3
3
|
export const useMenubarState = (defaultActiveMenuId = null, defaultOpenMenuId = null) => {
|
|
4
4
|
const [activeMenuId, setActiveMenuId] = useState(defaultActiveMenuId);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
|
-
import React from '
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export type Size = 'sm' | 'md' | 'lg';
|
|
4
4
|
export type Variant = 'default' | 'filled' | 'outline';
|
|
5
5
|
export type Orientation = 'horizontal' | 'vertical';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
3
|
import { MenubarContextType, MenubarItem as MenubarItemType, Orientation, Size, Variant } from './Menubar.type';
|
|
4
4
|
import { MenubarRootProps, MenubarMenuProps, MenubarTriggerProps, MenubarContentProps, MenubarItemProps, MenubarSeparatorProps } from './Menubar.props';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { createContext, useContext, useRef, useState, useEffect, } from '
|
|
1
|
+
import React, { createContext, useContext, useRef, useState, useEffect, } from 'react';
|
|
2
2
|
import { View } from 'app-studio';
|
|
3
3
|
import { Horizontal } from 'app-studio';
|
|
4
4
|
import { Vertical } from 'app-studio';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
3
|
import { MenubarContextType, MenubarItem as MenubarItemType, Orientation, Size, Variant } from './Menubar.type';
|
|
4
4
|
import { MenubarRootProps, MenubarMenuProps, MenubarTriggerProps, MenubarContentProps, MenubarItemProps, MenubarSeparatorProps } from './Menubar.props';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { createContext, useContext } from '
|
|
1
|
+
import React, { createContext, useContext } from 'react';
|
|
2
2
|
import { View, Horizontal, Vertical, Text } from 'app-studio';
|
|
3
3
|
import { ActionSheet } from '../../ActionSheet/ActionSheet';
|
|
4
4
|
import { MenubarSizes, MenubarVariants, MenubarOrientations, MenubarItemStates, } from './Menubar.style';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useRef } from '
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
2
|
import { useMenubarState } from './Menubar/Menubar.state';
|
|
3
3
|
import { MenubarProvider, MenubarRoot, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarView, } from './Menubar/Menubar.view';
|
|
4
4
|
// This file defines the main Menubar component, which orchestrates the menubar's state management (active/open menus) using `useMenubarState`, provides this state and essential props via `MenubarProvider`, and renders the actual UI structure through `MenubarView`. It also attaches various sub-components (Root, Menu, Trigger, etc.) to the main Menubar object for easy composition and usage, facilitating a compound component pattern.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { MessageProps } from './Message.props';
|
|
3
3
|
export declare const MessageView: ({ variant, hide, title, subtitle, theme, action, actionText, showIcon, isClosable, timeout, views, }: MessageProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { Fragment, useEffect } from '
|
|
1
|
+
import React, { Fragment, useEffect } from 'react';
|
|
2
2
|
import { hideModal, useModalStore } from './Modal.store';
|
|
3
3
|
import { ModalOverlay } from './Modal.view';
|
|
4
4
|
// Defines the `ModalLayout` functional component, which is responsible for orchestrating and rendering multiple active modals based on their state.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Elevation } from '../../../utils/elevation';
|
|
3
3
|
import { Shadow, ViewProps } from 'app-studio';
|
|
4
4
|
import { CloseButtonPosition, Position, Shape, Size } from './Modal.type';
|
|
@@ -72,6 +72,7 @@ export interface ContainerProps extends Omit<ViewProps, 'size' | 'position' | 's
|
|
|
72
72
|
shadow?: Shadow | Elevation | ViewProps;
|
|
73
73
|
}
|
|
74
74
|
export interface BodyProps extends ViewProps {
|
|
75
|
+
children?: React.ReactNode;
|
|
75
76
|
views?: {
|
|
76
77
|
view?: ViewProps;
|
|
77
78
|
};
|
|
@@ -79,6 +80,7 @@ export interface BodyProps extends ViewProps {
|
|
|
79
80
|
variant?: string;
|
|
80
81
|
}
|
|
81
82
|
export interface FooterProps extends ViewProps {
|
|
83
|
+
children?: React.ReactNode;
|
|
82
84
|
views?: {
|
|
83
85
|
container?: ViewProps;
|
|
84
86
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useCallback } from '
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
2
|
import { View, Horizontal, Vertical, Center } from 'app-studio';
|
|
3
3
|
import { CloseIcon } from '../../Icon/Icon';
|
|
4
4
|
import { hideModal } from './Modal.store';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Same public API as the web variant: ModalOverlay / ModalContainer /
|
|
7
7
|
* ModalHeader / ModalBody / ModalFooter.
|
|
8
8
|
*/
|
|
9
|
-
import React from '
|
|
9
|
+
import React from 'react';
|
|
10
10
|
import { ViewProps } from 'app-studio';
|
|
11
11
|
import { BodyProps, ContainerProps, FooterProps, HeaderProps } from '../Modal/Modal.props';
|
|
12
12
|
import { Position } from './Modal.type';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Same public API as the web variant: ModalOverlay / ModalContainer /
|
|
7
7
|
* ModalHeader / ModalBody / ModalFooter.
|
|
8
8
|
*/
|
|
9
|
-
import React, { useCallback } from '
|
|
9
|
+
import React, { useCallback } from 'react';
|
|
10
10
|
import { Modal as RNModal } from 'react-native';
|
|
11
11
|
import { View, Horizontal, Vertical, Center } from 'app-studio';
|
|
12
12
|
import { CloseIcon } from '../../Icon/Icon';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ModalBody, ModalContainer, ModalFooter, ModalHeader, ModalOverlay, } from './Modal/Modal.view';
|
|
3
3
|
import { ModalLayout } from './Modal/Modal.layout';
|
|
4
4
|
// This file defines the main Modal component, which acts as a compound component. It groups and exports various sub-components (Overlay, Container, Header, Body, Footer, and Layout) as static properties, providing a flexible and structured way to compose modal dialogs.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
3
|
import { LinkProps } from '../../Link/Link/Link.props';
|
|
4
4
|
import { NavigationItem, NavigationMenuStyles, Orientation, Size, Variant } from './NavigationMenu.type';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const useNavigationMenuState: (defaultActiveItemId?: string | null, defaultExpandedItemIds?: string[]) => {
|
|
2
2
|
activeItemId: string | null;
|
|
3
|
-
setActiveItemId: import("
|
|
3
|
+
setActiveItemId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
4
4
|
expandedItemIds: string[];
|
|
5
5
|
toggleExpandedItem: (itemId: string) => void;
|
|
6
6
|
isItemExpanded: (itemId: string) => boolean;
|
|
7
|
-
triggerRefs: import("
|
|
7
|
+
triggerRefs: import("react").RefObject<Record<string, HTMLDivElement>>;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState, useRef } from '
|
|
1
|
+
import { useState, useRef } from 'react';
|
|
2
2
|
// This file defines a custom React hook, `useNavigationMenuState`, which encapsulates and manages the entire local state and logic for the Navigation Menu component, including active item tracking, expanded sub-menus, and element references.
|
|
3
3
|
export const useNavigationMenuState = (defaultActiveItemId = null, defaultExpandedItemIds = []) => {
|
|
4
4
|
const [activeItemId, setActiveItemId] = useState(defaultActiveItemId);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
|
-
import React from '
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export type Orientation = 'horizontal' | 'vertical';
|
|
4
4
|
export type Size = 'sm' | 'md' | 'lg';
|
|
5
5
|
export type Variant = 'default' | 'filled' | 'outline';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
3
|
import { NavigationMenuContextType, NavigationItem, Orientation, Size, Variant } from './NavigationMenu.type';
|
|
4
4
|
import { NavigationMenuItemProps, NavigationMenuListProps, NavigationMenuTriggerProps, NavigationMenuContentProps } from './NavigationMenu.props';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { createContext, useContext, useRef, useState, useEffect, } from '
|
|
1
|
+
import React, { createContext, useContext, useRef, useState, useEffect, } from 'react';
|
|
2
2
|
import { View, Horizontal, Vertical } from 'app-studio';
|
|
3
3
|
import { NavigationMenuSizes, NavigationMenuVariants, NavigationMenuOrientations, NavigationMenuItemStates, } from './NavigationMenu.style';
|
|
4
4
|
import { ChevronIcon } from '../../Icon/Icon';
|
package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.native.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
3
|
import { NavigationMenuContextType, NavigationItem, Orientation, Size, Variant } from './NavigationMenu.type';
|
|
4
4
|
import { NavigationMenuItemProps, NavigationMenuListProps, NavigationMenuTriggerProps, NavigationMenuContentProps } from './NavigationMenu.props';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { createContext, useContext } from '
|
|
1
|
+
import React, { createContext, useContext } from 'react';
|
|
2
2
|
import { View, Horizontal, Vertical, Text } from 'app-studio';
|
|
3
3
|
import { NavigationMenuSizes, NavigationMenuVariants, NavigationMenuOrientations, NavigationMenuItemStates, } from './NavigationMenu.style';
|
|
4
4
|
const NavigationMenuContext = createContext({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from '
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { useNavigationMenuState } from './NavigationMenu/NavigationMenu.state';
|
|
3
3
|
import { NavigationMenuProvider, NavigationMenuList, NavigationMenuItem, NavigationMenuTrigger, NavigationMenuContent, NavigationMenuView, NavigationMenuLink, } from './NavigationMenu/NavigationMenu.view';
|
|
4
4
|
import { useMergedDesignSystemComponentProps } from '../../design-system';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ClipboardEvent, KeyboardEvent } from '
|
|
1
|
+
import { ClipboardEvent, KeyboardEvent } from 'react';
|
|
2
2
|
import { OTPInputProps } from './OTPInput.props';
|
|
3
3
|
export declare const useOTPInputState: ({ value: controlledValue, defaultValue, length, onChange, onChangeText, onComplete, onKeyDown, onKeyPress, onBlur, onFocus, isReadOnly, isDisabled, pattern, stepValues, pasteTransformer, }: OTPInputProps) => {
|
|
4
4
|
value: string;
|
|
5
5
|
setValue: (newValue: string) => void;
|
|
6
6
|
isFocused: boolean;
|
|
7
|
-
setIsFocused: import("
|
|
7
|
+
setIsFocused: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
8
|
isHovered: boolean;
|
|
9
|
-
setIsHovered: import("
|
|
10
|
-
inputRef: import("
|
|
11
|
-
containerRef: import("
|
|
9
|
+
setIsHovered: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
+
inputRef: import("react").RefObject<HTMLInputElement | null>;
|
|
11
|
+
containerRef: import("react").RefObject<HTMLDivElement | null>;
|
|
12
12
|
mirrorSelectionStart: number | null;
|
|
13
13
|
mirrorSelectionEnd: number | null;
|
|
14
|
-
setMirrorSelectionStart: import("
|
|
15
|
-
setMirrorSelectionEnd: import("
|
|
14
|
+
setMirrorSelectionStart: import("react").Dispatch<import("react").SetStateAction<number | null>>;
|
|
15
|
+
setMirrorSelectionEnd: import("react").Dispatch<import("react").SetStateAction<number | null>>;
|
|
16
16
|
setInputRef: (ref: HTMLInputElement | null) => void;
|
|
17
17
|
handleChange: (e: any) => void;
|
|
18
18
|
handleFocus: () => void;
|