@app-studio/components 0.11.5 → 0.11.7
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/files/media/BlockEditor-drag-and-drop.md +61 -0
- package/dist/files/media/BlockEditor.mdx +84 -0
- package/dist/files/media/Button.mdx +1 -1
- package/dist/files/media/Checkbox.mdx +1 -1
- package/dist/files/media/ColorInput.mdx +1 -1
- package/dist/files/media/ColorPicker.mdx +1 -1
- package/dist/files/media/CountryPicker.mdx +1 -1
- package/dist/files/media/DatePicker.mdx +1 -1
- package/dist/files/media/EmojiPicker.mdx +22 -1
- package/dist/files/media/Markdown.mdx +99 -0
- package/dist/files/media/OTPInput.mdx +2 -2
- package/dist/files/media/Select.mdx +1 -1
- package/dist/files/media/Switch.mdx +2 -2
- package/dist/files/media/TextArea.mdx +8 -8
- package/dist/files/media/TextField.mdx +9 -9
- package/dist/index.d.ts +649 -511
- 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 +16 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.js +193 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.d.ts +13 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.js +117 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.dom.d.ts +8 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.dom.js +224 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.dom.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.d.ts +16 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.js +298 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.d.ts +46 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.js +496 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.d.ts +74 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.js +51 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.d.ts +13 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.js +23 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.d.ts +114 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.js +349 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.d.ts +6 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.js +492 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.d.ts +6 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.js +119 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor.d.ts +3 -0
- package/dist/native/components/BlockEditor/BlockEditor.js +8 -0
- package/dist/native/components/BlockEditor/BlockEditor.js.map +1 -0
- 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 +2 -2
- package/dist/native/components/ChatInput/MessageInput.js.map +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 +2 -2
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.js.map +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.data.d.ts +3 -0
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.data.js +3011 -0
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.data.js.map +1 -0
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.props.d.ts +30 -2
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.props.js +18 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.props.js.map +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.d.ts +24 -3
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.js +147 -113
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.js.map +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.style.d.ts +2 -2
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.style.js +1 -2211
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.style.js.map +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.d.ts +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.js +160 -90
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.js.map +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 +61 -85
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.js.map +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 +3 -5
- package/dist/native/components/Form/Password/example/ErrorInput.js.map +1 -1
- package/dist/native/components/Form/Password/example/HelperText.d.ts +1 -1
- package/dist/native/components/Form/Password/example/HelperText.js +2 -4
- package/dist/native/components/Form/Password/example/HelperText.js.map +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 +3 -3
- package/dist/native/components/Form/TextArea/TextArea/TextArea.view.native.js.map +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 +2 -3
- package/dist/native/components/Formik/Formik.EmojiPicker.js.map +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 +6 -0
- package/dist/native/components/Markdown/Markdown/Markdown.content.js +29 -0
- package/dist/native/components/Markdown/Markdown/Markdown.content.js.map +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.props.d.ts +16 -0
- package/dist/native/components/Markdown/Markdown/Markdown.props.js +2 -0
- package/dist/native/components/Markdown/Markdown/Markdown.props.js.map +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.view.d.ts +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.view.js +2 -0
- package/dist/native/components/Markdown/Markdown/Markdown.view.js.map +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.view.native.d.ts +3 -0
- package/dist/native/components/Markdown/Markdown/Markdown.view.native.js +8 -0
- package/dist/native/components/Markdown/Markdown/Markdown.view.native.js.map +1 -0
- package/dist/native/components/Markdown/Markdown.d.ts +3 -0
- package/dist/native/components/Markdown/Markdown.js +4 -0
- package/dist/native/components/Markdown/Markdown.js.map +1 -0
- 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 +1 -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 +7 -0
- package/dist/native/components/index.js +5 -0
- package/dist/native/components/index.js.map +1 -1
- package/dist/native/design-system/DesignSystemProvider.d.ts +1 -1
- package/dist/native/design-system/DesignSystemProvider.js +1 -1
- package/dist/native/pages/designSystem.page.d.ts +1 -1
- package/dist/native/pages/designSystem.page.js +1 -1
- package/dist/web.cjs.js +43 -11
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.esm.js +13797 -10688
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.js +43 -11
- package/dist/web.umd.js.map +1 -1
- package/docs/app-studio/README.md +1 -1
- package/docs/components/BlockEditor-drag-and-drop.md +61 -0
- package/docs/components/BlockEditor.mdx +84 -0
- package/docs/components/ColorInput.mdx +1 -1
- package/docs/components/EmojiPicker.mdx +20 -0
- package/docs/components/Form.mdx +5 -5
- package/docs/components/Formik.mdx +23 -23
- package/docs/components/Markdown.mdx +99 -0
- package/docs/components/OTPInput.mdx +1 -1
- package/docs/components/TagInput.mdx +1 -1
- package/docs/components/TextArea.mdx +2 -2
- package/docs/components/TextField.mdx +3 -3
- package/docs/getting-started/component-usage.md +2 -2
- package/docs/getting-started/react-native.md +13 -2
- package/docs/tutorials/basic/creating-a-simple-form.md +4 -4
- package/package.json +1 -2
|
@@ -288,7 +288,7 @@ function MyForm() {
|
|
|
288
288
|
<Form onSubmit={handleSubmit} display="flex" flexDirection="column" gap={12}>
|
|
289
289
|
<Input name="username" placeholder="Username" padding={8} borderRadius={4} border="1px solid color-gray-300" />
|
|
290
290
|
<Input name="password" type="password" placeholder="Password" padding={8} borderRadius={4} border="1px solid color-gray-300" />
|
|
291
|
-
<Button
|
|
291
|
+
<Button backgroundColor="color-blue-500" color="color-white" padding={10} borderRadius={4} cursor="pointer">
|
|
292
292
|
Log In
|
|
293
293
|
</Button>
|
|
294
294
|
</Form>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Glisser-déposer des blocs
|
|
2
|
+
|
|
3
|
+
`BlockEditor` réserve la place du bloc déplacé pendant le glisser-déposer sur le web. Les autres blocs se décalent dès que la position cible change, avant le relâchement de la souris.
|
|
4
|
+
|
|
5
|
+
## Utilisation
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
import React, { useState } from 'react';
|
|
9
|
+
import { BlockEditor } from '@app-studio/components';
|
|
10
|
+
|
|
11
|
+
export function Document() {
|
|
12
|
+
const [markdown, setMarkdown] = useState(
|
|
13
|
+
'# Projet\n\nUn paragraphe à déplacer.\n\n## Étapes\n\n- Préparer\n- Livrer\n\n```ts\nconst ready = true;\n```'
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<BlockEditor
|
|
18
|
+
label="Document du projet"
|
|
19
|
+
value={markdown}
|
|
20
|
+
onChange={setMarkdown}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Aucune propriété supplémentaire ni dépendance n'est nécessaire pour activer ce comportement.
|
|
27
|
+
|
|
28
|
+
## Déplacement
|
|
29
|
+
|
|
30
|
+
1. Saisir la poignée `⠿` du bloc. La saisie et la sélection du texte restent disponibles dans le contenu du bloc.
|
|
31
|
+
2. Déplacer la souris vers la position souhaitée. Un aperçu du bloc entier accompagne le curseur.
|
|
32
|
+
3. Les blocs voisins se décalent avec une transition de 180 ms. Un espace teinté et délimité réserve la hauteur réelle du bloc déplacé, y compris pour un tableau ou un bloc de code.
|
|
33
|
+
4. Tant que le curseur reste dans cet espace, la position cible reste stable. Passer au-delà du milieu d'un bloc voisin fait avancer ou reculer l'espace réservé.
|
|
34
|
+
5. Relâcher la souris dans l'éditeur pour appliquer le nouvel ordre. Le focus revient dans le bloc déplacé.
|
|
35
|
+
|
|
36
|
+
Le bloc en déplacement et l'espace réservé n'ajoutent aucun contenu au Markdown. Le document garde sa hauteur pendant l'aperçu.
|
|
37
|
+
|
|
38
|
+
## Valeur contrôlée et historique
|
|
39
|
+
|
|
40
|
+
Le glisser-déposer ne modifie pas `value` et n'appelle pas `onChange` pendant le survol. Une dépose qui change l'ordre produit un seul appel `onChange(markdown)` et une seule étape dans l'historique. Annuler/rétablir utilise les mêmes boutons et raccourcis que la saisie.
|
|
41
|
+
|
|
42
|
+
Déposer à la position initiale n'émet aucun changement. Échap, une fin de geste sans dépose dans l'éditeur, un redimensionnement de la fenêtre, une nouvelle valeur externe ou le passage en lecture seule/désactivée annulent l'aperçu sans modifier le document. Chaque éditeur conserve son propre déplacement ; un bloc ne peut pas être déposé dans un autre éditeur.
|
|
43
|
+
|
|
44
|
+
## Accessibilité et plateformes
|
|
45
|
+
|
|
46
|
+
La préférence système de réduction des animations supprime les transitions ; les blocs se repositionnent immédiatement et l'espace réservé reste visible.
|
|
47
|
+
|
|
48
|
+
Le menu de la poignée propose aussi **Move up** et **Move down**, accessibles au clavier. Les libellés se personnalisent avec `labels`. Sur React Native, les déplacements utilisent les boutons haut/bas ; l'aperçu avec espace réservé concerne la surface web.
|
|
49
|
+
|
|
50
|
+
## Vérification
|
|
51
|
+
|
|
52
|
+
Les tests ciblés couvrent le décalage avant la dépose, les déplacements vers le haut et le bas, les blocs de hauteurs différentes, la stabilité du curseur dans l'espace réservé, l'annulation, l'historique, les valeurs contrôlées, l'isolation entre éditeurs et la réduction des animations.
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
npm run test:unwatch -- src/__tests__/blockEditor-drag.test.tsx
|
|
56
|
+
npm run build:package
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
La démo est disponible dans le catalogue, à la page `/blockeditor`. Le rendu du mouvement doit aussi être vérifié dans les navigateurs ciblés ; les tests DOM ne reproduisent pas le rendu d'un navigateur réel.
|
|
60
|
+
|
|
61
|
+
Le dernier contrôle du geste réel a été interrompu par le verrouillage du Mac. La validation de ce comportement dans Chrome, Firefox et Safari reste donc à terminer.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# BlockEditor
|
|
2
|
+
|
|
3
|
+
A Markdown block editor built from App Studio primitives, without an external editor engine.
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import React, { useState } from 'react';
|
|
7
|
+
import { BlockEditor } from '@app-studio/components';
|
|
8
|
+
|
|
9
|
+
export const DocumentEditor = () => {
|
|
10
|
+
const [markdown, setMarkdown] = useState('# My document\n\nStart writing here.');
|
|
11
|
+
return <BlockEditor label="My document" value={markdown} onChange={setMarkdown} />;
|
|
12
|
+
};
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Use `defaultValue` for an uncontrolled editor. `onChange` receives the Markdown string. Loading a different controlled `value` clears undo history and invalidates pending AI proposals; echoing the emitted value keeps the cursor and history.
|
|
16
|
+
|
|
17
|
+
To display this value without editing controls and with activatable links, use `<Markdown value={markdown} />`. See [Markdown](./Markdown.mdx) for the shared syntax, native navigation and source fallback.
|
|
18
|
+
|
|
19
|
+
## Blocks and editing
|
|
20
|
+
|
|
21
|
+
The block menu supports paragraphs, headings 1–3, bulleted and numbered lists, quotes, fenced code, and pipe tables. Type `/` in an empty block to open it. The block handle offers insertion, transformation, duplication, deletion and movement. Web dragging starts only from the handle, with a full-block preview. Neighboring blocks shift during dragging and a reserved gap matches the dragged block height. The preview leaves Markdown unchanged until drop, which creates one undoable transaction. Motion is disabled when reduced motion is preferred. Native provides move-up and move-down buttons.
|
|
22
|
+
|
|
23
|
+
Select text to apply bold, italic, underline, strikethrough, inline code or a link. Underline is serialized as the inert Markdown extension `<u>…</u>`. Code blocks use a monospace input and never execute code. Only http, https, mailto, tel and relative links are accepted by the link action.
|
|
24
|
+
|
|
25
|
+
The source is unchanged until an edit occurs, and editing a block leaves other blocks' source intact. Unsupported constructs, including images, MDX components, frontmatter, HTML, reference links, footnotes, task lists and nested block constructs, open in source mode. This is a bounded Markdown editor, not a full CommonMark or MDX implementation.
|
|
26
|
+
|
|
27
|
+
Select text to open the floating formatting toolbar. Its opaque surface, border and shadow separate it from the document; its position is clamped to the viewport using its actual size. It stays open while you use its controls or search for an emoji, preserving the selected text. The emoji trigger is a centered icon. Block handles are larger and remain visible. Blocks themselves have no blue focus border.
|
|
28
|
+
|
|
29
|
+
## Clipboard, selection and keyboard on web
|
|
30
|
+
|
|
31
|
+
| Shortcut | Behavior |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| Ctrl/Cmd+A | Select the whole document from a visual text block, including code and tables. In source/code textareas, use the platform's field selection. |
|
|
34
|
+
| Ctrl/Cmd+C | Copy the selection as Markdown, preserving block syntax when the whole document is selected. |
|
|
35
|
+
| Ctrl/Cmd+X | Cut the selection in one undoable transaction. Empty inline formatting markers are removed with their selected text. |
|
|
36
|
+
| Ctrl/Cmd+V | Paste plain-text Markdown over the selection. HTML is never imported or executed. |
|
|
37
|
+
| Ctrl/Cmd+Z | Undo typing or a command, with cursor/selection restoration. |
|
|
38
|
+
| Ctrl/Cmd+Shift+Z or Ctrl+Y | Redo. |
|
|
39
|
+
| Ctrl/Cmd+B, I, U | Bold, italic or underline. Multi-block formatting preserves headings, list markers, code fences and table separators. |
|
|
40
|
+
| Ctrl/Cmd+K | Open the link panel for the current selection. |
|
|
41
|
+
| Ctrl/Cmd+S | Call the optional `onSave` callback. |
|
|
42
|
+
| Ctrl/Cmd+Shift+A | Open selection AI when `generate` is provided. |
|
|
43
|
+
| Escape | Close the current panel or selection toolbar. |
|
|
44
|
+
|
|
45
|
+
Use Ctrl on Windows/Linux and Cmd on macOS. Copy, cut and paste use the browser's clipboard events, so context-menu actions work too. Typing, deletion, paste or IME input can replace a multi-block selection without modifying another editor on the page. An HTML-only clipboard does not erase the selected text.
|
|
46
|
+
|
|
47
|
+
Source and code fields share the editor's undo history. Link fields, AI prompts, emoji search and command search retain their own native text-editing shortcuts. Undo history holds the last 100 transactions; consecutive typing is grouped over 750 ms, and moving the cursor starts a new group.
|
|
48
|
+
|
|
49
|
+
## Optional AI
|
|
50
|
+
|
|
51
|
+
```tsx
|
|
52
|
+
import React from 'react';
|
|
53
|
+
import { BlockEditor } from '@app-studio/components';
|
|
54
|
+
|
|
55
|
+
export const SimulatedAIEditor = () => (
|
|
56
|
+
<BlockEditor
|
|
57
|
+
label="AI demo"
|
|
58
|
+
defaultValue="Select a sentence to change."
|
|
59
|
+
generate={async (prompt, fragment, scope) => `${fragment}\n\nSuggestion: ${prompt}`}
|
|
60
|
+
/>
|
|
61
|
+
);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The example is simulated and sends no network request. Your application supplies `generate(prompt, fragment, scope)`, returning `Promise<string>`; scope is `selection` or `section` (the whole editor). The library previews the result and requires Apply before changing the document. Errors, cancellation, empty responses and stale proposals preserve the current text. Without `generate`, AI actions are hidden.
|
|
65
|
+
|
|
66
|
+
## React Native
|
|
67
|
+
|
|
68
|
+
The same component and Markdown contract work on React Native. Inactive blocks render visually; the active block uses a native multiline input showing its Markdown markers. Menus and AI proposals open in an ActionSheet. Selection formatting operates inside the active input. No DOM, browser editor or WebView is required.
|
|
69
|
+
|
|
70
|
+
## Other props
|
|
71
|
+
|
|
72
|
+
`isReadOnly` renders a non-editable document. `isDisabled` disables every mutation, including toolbar commands and AI application. `label` names the document for accessibility. `onSave` is an optional application callback; `status` displays application-owned save status. The editor performs no persistence or automatic network requests.
|
|
73
|
+
|
|
74
|
+
Override strings with `labels` and styles with `views.container`, `toolbar`, `block`, `content`, `source`, `notice` and `panel`. On web, `content` styles the editable block; on native it styles the active field and inactive block container.
|
|
75
|
+
|
|
76
|
+
## Validation
|
|
77
|
+
|
|
78
|
+
The targeted suite covers the shared Markdown engine, web DOM adapter, clipboard/keyboard commands, multi-block selection, formatting, native adapter, Markdown rendering, EmojiPicker and Formik integration. Native adapter and IME tests use host mocks; they do not validate a device keyboard. Web and native TypeScript checks and package builds pass.
|
|
79
|
+
|
|
80
|
+
The updated Cmd+A/C/X/V/Z/Shift+Z flow, formatting across blocks, floating toolbar surface and emoji insertion were verified in the Codex in-app browser. The emoji icon's horizontal and vertical center match the button's center. These updates still need verification in Chrome, Firefox, Safari and on iOS/Android, including real IME and hardware keyboards.
|
|
81
|
+
|
|
82
|
+
Chrome interactions were checked for typing, accents, formatting, history, block dragging, keyboard commands, AI preview/application and quick reactions. Firefox, Safari, iOS and Android were not verified in real browsers or devices. Real IME and native cursor/keyboard behavior still need platform validation.
|
|
83
|
+
|
|
84
|
+
The live-gap behavior has DOM regression tests, including variable block heights and drag-image capture timing. Its latest real drag validation was interrupted when the host Mac locked; Chrome, Firefox and Safari gesture validation remains pending for this behavior.
|
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
A user-friendly tool for selecting and inserting emojis into text inputs or forms.
|
|
4
4
|
|
|
5
|
+
## Shared catalogue and reactions
|
|
6
|
+
|
|
7
|
+
`DefaultEmojiData`, `QuickReactionEmojis`, `Emoji` and `EmojiCategory` are exported from the package. The catalogue combines the library, document editor and conversation palettes, preserving complete Unicode sequences. Search includes French and English keywords, ignores accents and searches all enabled categories. A custom emoji with the same exact Unicode string replaces its built-in record.
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import React, { useState } from 'react';
|
|
11
|
+
import { EmojiPicker } from '@app-studio/components';
|
|
12
|
+
|
|
13
|
+
export const Reactions = () => {
|
|
14
|
+
const [selected, setSelected] = useState(['👍']);
|
|
15
|
+
return <EmojiPicker mode="reaction" selectedEmojis={selected} onChange={emoji =>
|
|
16
|
+
setSelected(previous => previous.includes(emoji) ? previous.filter(item => item !== emoji) : [...previous, emoji])
|
|
17
|
+
} />;
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`mode` defaults to `picker`. Reaction mode opens a compact row with 👍 ❤️ 🙌 😂 😢 😮 and a More button. Set `quickEmojis` to customize the row, `selectedEmojis` to indicate your active reactions, and `trigger` to supply trigger content. Counts, requests and pending state belong to the application; use `isDisabled` while a request is pending. Recent selections are disabled by default in reaction mode.
|
|
22
|
+
|
|
23
|
+
Use `labels` to translate the search, trigger, category and empty-state text. Web panels render in a portal, stay within the viewport and support keyboard navigation and Escape. Native panels use ActionSheet. Existing `value`, `onChange`, `onEmojiSelect`, controlled opening and Formik usage remain supported.
|
|
24
|
+
|
|
5
25
|
### **Import**
|
|
6
26
|
```tsx
|
|
7
27
|
import { EmojiPicker } from '@app-studio/components';
|
package/docs/components/Form.mdx
CHANGED
|
@@ -119,7 +119,7 @@ export const BasicForm = () => {
|
|
|
119
119
|
label="I agree to the terms and conditions"
|
|
120
120
|
/>
|
|
121
121
|
<Button
|
|
122
|
-
|
|
122
|
+
|
|
123
123
|
onClick={handleSubmit}
|
|
124
124
|
isLoading={isSubmitting}
|
|
125
125
|
disabled={isSubmitting}
|
|
@@ -254,7 +254,7 @@ export const AdvancedForm = () => {
|
|
|
254
254
|
label="Publish immediately"
|
|
255
255
|
/>
|
|
256
256
|
|
|
257
|
-
<Button
|
|
257
|
+
<Button onClick={handleSubmit}>
|
|
258
258
|
Create Article
|
|
259
259
|
</Button>
|
|
260
260
|
</Vertical>
|
|
@@ -342,7 +342,7 @@ export const ValidationForm = () => {
|
|
|
342
342
|
error={touched.confirmPassword && errors.confirmPassword}
|
|
343
343
|
/>
|
|
344
344
|
|
|
345
|
-
<Button
|
|
345
|
+
<Button onClick={handleSubmit}>
|
|
346
346
|
Register
|
|
347
347
|
</Button>
|
|
348
348
|
</Vertical>
|
|
@@ -456,7 +456,7 @@ export const DynamicForm = () => {
|
|
|
456
456
|
)}
|
|
457
457
|
</FieldArray>
|
|
458
458
|
|
|
459
|
-
<Button
|
|
459
|
+
<Button onClick={handleSubmit}>
|
|
460
460
|
Create Project
|
|
461
461
|
</Button>
|
|
462
462
|
</Vertical>
|
|
@@ -695,7 +695,7 @@ const FormWithUpload = () => {
|
|
|
695
695
|
<FormikForm>
|
|
696
696
|
<FormikTextField name="name" label="Name" />
|
|
697
697
|
<Uploader onFileSelect={setUploadedFile} />
|
|
698
|
-
<Button
|
|
698
|
+
<Button onClick={handleSubmit}>Submit</Button>
|
|
699
699
|
</FormikForm>
|
|
700
700
|
)}
|
|
701
701
|
</Formik>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Formik integration components for form state management and validation.
|
|
4
4
|
|
|
5
5
|
> **React Native:** `FormikForm` renders through the native `Form` primitive,
|
|
6
|
-
> which is a `View`, not a browser form. Keep
|
|
6
|
+
> which is a `View`, not a browser form. Keep ``/`type="reset"` for
|
|
7
7
|
> web semantics and also wire `onClick={handleSubmit}` or
|
|
8
8
|
> `onClick={handleReset}` explicitly. With `autoFocus`, single-line
|
|
9
9
|
> fields use `returnKeyType`/`onSubmitEditing` to advance and submit; labels,
|
|
@@ -79,7 +79,7 @@ export const BasicFormExample = () => {
|
|
|
79
79
|
name="agreeToTerms"
|
|
80
80
|
label="I agree to the terms and conditions"
|
|
81
81
|
/>
|
|
82
|
-
<Button
|
|
82
|
+
<Button onClick={handleSubmit}>
|
|
83
83
|
Submit
|
|
84
84
|
</Button>
|
|
85
85
|
</Vertical>
|
|
@@ -118,7 +118,7 @@ export const FormikTextFieldExample = () => {
|
|
|
118
118
|
placeholder="Enter username"
|
|
119
119
|
helperText="Your unique username"
|
|
120
120
|
/>
|
|
121
|
-
<Button
|
|
121
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
122
122
|
Submit
|
|
123
123
|
</Button>
|
|
124
124
|
</FormikForm>
|
|
@@ -156,7 +156,7 @@ export const FormikTextAreaExample = () => {
|
|
|
156
156
|
placeholder="Enter your comments"
|
|
157
157
|
rows={4}
|
|
158
158
|
/>
|
|
159
|
-
<Button
|
|
159
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
160
160
|
Submit
|
|
161
161
|
</Button>
|
|
162
162
|
</FormikForm>
|
|
@@ -192,7 +192,7 @@ export const FormikCheckboxExample = () => {
|
|
|
192
192
|
name="subscribe"
|
|
193
193
|
label="Subscribe to newsletter"
|
|
194
194
|
/>
|
|
195
|
-
<Button
|
|
195
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
196
196
|
Submit
|
|
197
197
|
</Button>
|
|
198
198
|
</FormikForm>
|
|
@@ -275,7 +275,7 @@ export const FormikChatInputExample = () => {
|
|
|
275
275
|
/>
|
|
276
276
|
|
|
277
277
|
<Button
|
|
278
|
-
|
|
278
|
+
|
|
279
279
|
onClick={handleSubmit}
|
|
280
280
|
disabled={!values.message?.trim()}
|
|
281
281
|
>
|
|
@@ -339,7 +339,7 @@ export const FormikColorInputExample = () => {
|
|
|
339
339
|
Preview: This is how your colors will look
|
|
340
340
|
</div>
|
|
341
341
|
|
|
342
|
-
<Button
|
|
342
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
343
343
|
Submit
|
|
344
344
|
</Button>
|
|
345
345
|
</FormikForm>
|
|
@@ -383,7 +383,7 @@ export const FormikSelectExample = () => {
|
|
|
383
383
|
options={options}
|
|
384
384
|
placeholder="Select a fruit"
|
|
385
385
|
/>
|
|
386
|
-
<Button
|
|
386
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
387
387
|
Submit
|
|
388
388
|
</Button>
|
|
389
389
|
</FormikForm>
|
|
@@ -415,7 +415,7 @@ export const FormikSwitchExample = () => {
|
|
|
415
415
|
name="darkMode"
|
|
416
416
|
label="Dark Mode"
|
|
417
417
|
/>
|
|
418
|
-
<Button
|
|
418
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
419
419
|
Submit
|
|
420
420
|
</Button>
|
|
421
421
|
</FormikForm>
|
|
@@ -452,7 +452,7 @@ export const FormikDatePickerExample = () => {
|
|
|
452
452
|
label="Birthdate"
|
|
453
453
|
placeholder="Select your birthdate"
|
|
454
454
|
/>
|
|
455
|
-
<Button
|
|
455
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
456
456
|
Submit
|
|
457
457
|
</Button>
|
|
458
458
|
</FormikForm>
|
|
@@ -489,7 +489,7 @@ export const FormikCountryPickerExample = () => {
|
|
|
489
489
|
label="Country"
|
|
490
490
|
placeholder="Select your country"
|
|
491
491
|
/>
|
|
492
|
-
<Button
|
|
492
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
493
493
|
Submit
|
|
494
494
|
</Button>
|
|
495
495
|
</FormikForm>
|
|
@@ -528,7 +528,7 @@ export const FormikPasswordExample = () => {
|
|
|
528
528
|
label="Password"
|
|
529
529
|
placeholder="Enter your password"
|
|
530
530
|
/>
|
|
531
|
-
<Button
|
|
531
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
532
532
|
Submit
|
|
533
533
|
</Button>
|
|
534
534
|
</FormikForm>
|
|
@@ -573,7 +573,7 @@ export const FormikComboBoxExample = () => {
|
|
|
573
573
|
placeholder="Select or search for a framework"
|
|
574
574
|
items={items}
|
|
575
575
|
/>
|
|
576
|
-
<Button
|
|
576
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
577
577
|
Submit
|
|
578
578
|
</Button>
|
|
579
579
|
</FormikForm>
|
|
@@ -617,7 +617,7 @@ export const FormikSliderExample = () => {
|
|
|
617
617
|
showValue
|
|
618
618
|
helperText="Adjust the volume level"
|
|
619
619
|
/>
|
|
620
|
-
<Button
|
|
620
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
621
621
|
Submit
|
|
622
622
|
</Button>
|
|
623
623
|
</FormikForm>
|
|
@@ -646,7 +646,7 @@ export const FormikIconPickerExample = () => (
|
|
|
646
646
|
name="icon"
|
|
647
647
|
label="Select Icon"
|
|
648
648
|
/>
|
|
649
|
-
<Button
|
|
649
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
650
650
|
Submit
|
|
651
651
|
</Button>
|
|
652
652
|
</FormikForm>
|
|
@@ -674,7 +674,7 @@ export const FormikEmojiPickerExample = () => (
|
|
|
674
674
|
name="emoji"
|
|
675
675
|
label="Select Emoji"
|
|
676
676
|
/>
|
|
677
|
-
<Button
|
|
677
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
678
678
|
Submit
|
|
679
679
|
</Button>
|
|
680
680
|
</FormikForm>
|
|
@@ -703,7 +703,7 @@ export const FormikOTPInputExample = () => (
|
|
|
703
703
|
label="Verification Code"
|
|
704
704
|
length={6}
|
|
705
705
|
/>
|
|
706
|
-
<Button
|
|
706
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
707
707
|
Verify
|
|
708
708
|
</Button>
|
|
709
709
|
</FormikForm>
|
|
@@ -736,7 +736,7 @@ export const FormikRadioExample = () => (
|
|
|
736
736
|
{ label: 'Other', value: 'other' },
|
|
737
737
|
]}
|
|
738
738
|
/>
|
|
739
|
-
<Button
|
|
739
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
740
740
|
Submit
|
|
741
741
|
</Button>
|
|
742
742
|
</FormikForm>
|
|
@@ -768,7 +768,7 @@ export const FormikSelectorExample = () => (
|
|
|
768
768
|
{ label: 'Pro', value: 'pro', description: 'Pro plan description' },
|
|
769
769
|
]}
|
|
770
770
|
/>
|
|
771
|
-
<Button
|
|
771
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
772
772
|
Submit
|
|
773
773
|
</Button>
|
|
774
774
|
</FormikForm>
|
|
@@ -797,7 +797,7 @@ export const FormikTagInputExample = () => (
|
|
|
797
797
|
label="Tags"
|
|
798
798
|
placeholder="Type and press enter..."
|
|
799
799
|
/>
|
|
800
|
-
<Button
|
|
800
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
801
801
|
Submit
|
|
802
802
|
</Button>
|
|
803
803
|
</FormikForm>
|
|
@@ -825,7 +825,7 @@ export const FormikToggleExample = () => (
|
|
|
825
825
|
name="notifications"
|
|
826
826
|
label="Enable Notifications"
|
|
827
827
|
/>
|
|
828
|
-
<Button
|
|
828
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
829
829
|
Submit
|
|
830
830
|
</Button>
|
|
831
831
|
</FormikForm>
|
|
@@ -858,7 +858,7 @@ export const FormikToggleGroupExample = () => (
|
|
|
858
858
|
{ label: 'Right', value: 'right' },
|
|
859
859
|
]}
|
|
860
860
|
/>
|
|
861
|
-
<Button
|
|
861
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
862
862
|
Submit
|
|
863
863
|
</Button>
|
|
864
864
|
</FormikForm>
|
|
@@ -887,7 +887,7 @@ export const FormikUploaderExample = () => (
|
|
|
887
887
|
label="Upload Files"
|
|
888
888
|
multiple
|
|
889
889
|
/>
|
|
890
|
-
<Button
|
|
890
|
+
<Button onClick={handleSubmit} marginTop={16}>
|
|
891
891
|
Submit
|
|
892
892
|
</Button>
|
|
893
893
|
</FormikForm>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Markdown
|
|
2
|
+
|
|
3
|
+
`Markdown` affiche un document sur le web et React Native avec les primitives App Studio. Il partage le moteur de rendu de `BlockEditor`, sans ajouter de dépendance ni de surface d'édition.
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { Markdown } from '@app-studio/components';
|
|
8
|
+
|
|
9
|
+
export const Document = () => (
|
|
10
|
+
<Markdown
|
|
11
|
+
label="Notes du projet"
|
|
12
|
+
value={'# Mon document\n\nUn texte **en gras**, avec un [lien](https://example.com).'}
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Affichage et édition
|
|
18
|
+
|
|
19
|
+
`value` est la chaîne Markdown à afficher. Les changements de cette prop actualisent le rendu. Le composant ne modifie pas la chaîne et n'affiche aucun bouton, menu ou champ d'édition. Pour éditer le même document, utilisez `BlockEditor` avec le même état.
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import React, { useState } from 'react';
|
|
23
|
+
import { Vertical } from 'app-studio';
|
|
24
|
+
import { BlockEditor, Markdown } from '@app-studio/components';
|
|
25
|
+
|
|
26
|
+
export const EditorWithPreview = () => {
|
|
27
|
+
const [value, setValue] = useState('# Notes\n\nCommencez ici.');
|
|
28
|
+
return (
|
|
29
|
+
<Vertical gap={24}>
|
|
30
|
+
<BlockEditor label="Édition" value={value} onChange={setValue} />
|
|
31
|
+
<Markdown label="Aperçu" value={value} />
|
|
32
|
+
</Vertical>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
L'exemple du catalogue est accessible sur `/markdown` et relie l'éditeur à son aperçu. Il contient aussi les neuf types de blocs, les accents, les emojis composés, les liens et un document affiché en source.
|
|
38
|
+
|
|
39
|
+
## Syntaxe prise en charge
|
|
40
|
+
|
|
41
|
+
Le rendu couvre les paragraphes, titres de niveaux 1 à 3, listes à puces et numérotées avec indentation, citations, blocs de code délimités et tableaux à séparateurs `|`. Les tableaux conservent l'alignement de leurs colonnes et défilent horizontalement lorsqu'ils dépassent la largeur disponible.
|
|
42
|
+
|
|
43
|
+
Le formatage en ligne comprend gras, italique, barré, code, liens et les extensions de l'éditeur : souligné avec `<u>…</u>` et saut de ligne avec `<br>`. Ces deux extensions sont interprétées comme du formatage connu ; aucun HTML fourni n'est injecté dans le DOM. Le code utilise une police monospace, sans exécution ni moteur de coloration.
|
|
44
|
+
|
|
45
|
+
Ce composant couvre le même sous-ensemble que `BlockEditor`. Il n'implémente pas tout CommonMark ou MDX. Les images, titres de niveaux 4 à 6, listes de tâches, frontmatter, liens par référence, notes de bas de page, HTML/MDX et constructions de blocs imbriquées non prises en charge provoquent un affichage du **document entier en texte source**. Le message visible explique ce choix. La chaîne originale, y compris ses retours à la ligne, est conservée dans cet affichage ; aucune expression MDX, balise HTML ni URL dangereuse n'est exécutée.
|
|
46
|
+
|
|
47
|
+
Personnalisez le message avec `labels.sourceFallback` :
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
import React from 'react';
|
|
51
|
+
import { Markdown } from '@app-studio/components';
|
|
52
|
+
|
|
53
|
+
export const PreservedSource = () => (
|
|
54
|
+
<Markdown
|
|
55
|
+
value={'<CustomComponent value={42} />'}
|
|
56
|
+
labels={{ sourceFallback: 'Syntaxe non prise en charge : affichage du texte source.' }}
|
|
57
|
+
/>
|
|
58
|
+
);
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Liens
|
|
62
|
+
|
|
63
|
+
Seuls les liens `http:`, `https:`, `mailto:`, `tel:` et les adresses relatives sont acceptés. Sur le web, ils sont des liens normaux, accessibles au clavier avec un focus visible. Sur React Native, les liens sont des textes pressables et s'ouvrent avec `Linking.openURL`. Si la plateforme refuse l'ouverture, le document reste affiché.
|
|
64
|
+
|
|
65
|
+
`onLinkPress(url)` remplace la navigation par défaut. Utilisez-le notamment pour relier les adresses relatives à la navigation de votre application native, ou pour gérer vous-même les erreurs d'ouverture. Le callback n'est appelé qu'à l'activation du lien, une fois par activation.
|
|
66
|
+
|
|
67
|
+
```tsx
|
|
68
|
+
import React from 'react';
|
|
69
|
+
import { Markdown } from '@app-studio/components';
|
|
70
|
+
|
|
71
|
+
export const RoutedDocument = () => (
|
|
72
|
+
<Markdown
|
|
73
|
+
value={'[Ouvrir les notes](/notes)'}
|
|
74
|
+
onLinkPress={(url) => console.log('Navigation gérée par l’application', url)}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Props et styles
|
|
80
|
+
|
|
81
|
+
| Prop | Description |
|
|
82
|
+
| --- | --- |
|
|
83
|
+
| `value: string` | Document Markdown à afficher. |
|
|
84
|
+
| `label?: string` | Nom accessible du document. |
|
|
85
|
+
| `onLinkPress?: (url: string) => void` | Navigation fournie par l'application. |
|
|
86
|
+
| `labels?: { sourceFallback?: string }` | Message de repli en texte source. |
|
|
87
|
+
| `views` | Styles `container`, `block`, `source` et `notice`. |
|
|
88
|
+
|
|
89
|
+
Les props de vue App Studio s'appliquent au conteneur. `MarkdownProps` est exporté depuis `@app-studio/components`. Le modèle de blocs reste interne.
|
|
90
|
+
|
|
91
|
+
Sur React Native, le rendu utilise les primitives App Studio, sans WebView. Le code et la source utilisent Menlo sur iOS et monospace sur Android. L'affichage source est sélectionnable. Les liens en ligne restent dans les primitives de texte pour respecter la mise en page native.
|
|
92
|
+
|
|
93
|
+
## Validation
|
|
94
|
+
|
|
95
|
+
Les tests ciblés couvrent le rendu web sans édition, les mises à jour de props, l'isolation entre composants, le code inerte, les tableaux, l'indentation, les liens sûrs, le repli en source et les accents/emojis. Les tests de l'adaptateur natif utilisent des hôtes simulés et vérifient les textes en ligne, la police et les callbacks de navigation ; ils ne remplacent pas une vérification sur appareil.
|
|
96
|
+
|
|
97
|
+
Les 74 tests ciblés du rendu Markdown et de l'éditeur passent, ainsi que les vérifications TypeScript et les builds du package web/native. L'aperçu en direct, les accents/emojis, le callback de lien et le code inerte ont été vérifiés dans le navigateur intégré de Codex.
|
|
98
|
+
|
|
99
|
+
Les interactions réelles dans Chrome, Firefox, Safari, iOS et Android restent à vérifier pour ce composant. Le rendu des liens et des tableaux sur appareils constitue la principale limite de validation.
|
|
@@ -28,7 +28,7 @@ export const DefaultOTPInput = () => {
|
|
|
28
28
|
<Vertical gap={20}>
|
|
29
29
|
<Text>Enter verification code:</Text>
|
|
30
30
|
<OTPInput name="otp" value={otp} onChange={setOtp} isAutoFocus />
|
|
31
|
-
<Button
|
|
31
|
+
<Button isAuto>
|
|
32
32
|
Verify
|
|
33
33
|
</Button>
|
|
34
34
|
</Vertical>
|
|
@@ -96,7 +96,7 @@ export const HelperTextArea = () => {
|
|
|
96
96
|
error={!!formErrors.guess}
|
|
97
97
|
onChange={handleChange('guess')}
|
|
98
98
|
/>
|
|
99
|
-
<Button
|
|
99
|
+
<Button height="40px" isAuto>
|
|
100
100
|
Submit
|
|
101
101
|
</Button>
|
|
102
102
|
</Vertical>
|
|
@@ -127,7 +127,7 @@ export const PlaceholderArea = () => {
|
|
|
127
127
|
<form onSubmit={handleSubmit}>
|
|
128
128
|
<Horizontal gap={10} alignItems="center" flexWrap="nowrap">
|
|
129
129
|
<TextArea name="comment" placeholder="Type your comment here..." />
|
|
130
|
-
<Button
|
|
130
|
+
<Button height="40px" isAuto>
|
|
131
131
|
Submit
|
|
132
132
|
</Button>
|
|
133
133
|
</Horizontal>
|
|
@@ -26,7 +26,7 @@ export const DefaultInput = () => {
|
|
|
26
26
|
<form onSubmit={handleSubmit}>
|
|
27
27
|
<Horizontal gap={10} alignItems="center" flexWrap="nowrap">
|
|
28
28
|
<TextField name="surname" />
|
|
29
|
-
<Button
|
|
29
|
+
<Button height="40px" isAuto>
|
|
30
30
|
Submit
|
|
31
31
|
</Button>
|
|
32
32
|
</Horizontal>
|
|
@@ -98,7 +98,7 @@ export const HelperTextInput = () => {
|
|
|
98
98
|
error={!!formErrors.lastName}
|
|
99
99
|
onChange={handleChange('lastName')}
|
|
100
100
|
/>
|
|
101
|
-
<Button
|
|
101
|
+
<Button height="40px" isAuto>
|
|
102
102
|
Submit
|
|
103
103
|
</Button>
|
|
104
104
|
</Vertical>
|
|
@@ -196,7 +196,7 @@ export const Placeholder = () => {
|
|
|
196
196
|
<form onSubmit={handleSubmit}>
|
|
197
197
|
<Horizontal gap={10} alignItems="center" flexWrap="nowrap">
|
|
198
198
|
<TextField name="surname" placeholder="Surname" />
|
|
199
|
-
<Button
|
|
199
|
+
<Button height="40px" isAuto>
|
|
200
200
|
Submit
|
|
201
201
|
</Button>
|
|
202
202
|
</Horizontal>
|
|
@@ -127,7 +127,7 @@ function MyForm() {
|
|
|
127
127
|
returnKeyType="done"
|
|
128
128
|
onSubmitEditing={handleSubmit}
|
|
129
129
|
/>
|
|
130
|
-
<Button
|
|
130
|
+
<Button onClick={handleSubmit}>Submit</Button>
|
|
131
131
|
</Form>
|
|
132
132
|
);
|
|
133
133
|
}
|
|
@@ -149,7 +149,7 @@ function MyFormikForm() {
|
|
|
149
149
|
{({ handleSubmit }) => (
|
|
150
150
|
<FormikForm autoFocus>
|
|
151
151
|
<FormikTextField name="name" label="Name" />
|
|
152
|
-
<Button
|
|
152
|
+
<Button onClick={handleSubmit}>Submit</Button>
|
|
153
153
|
</FormikForm>
|
|
154
154
|
)}
|
|
155
155
|
</Formik>
|