@draftbit/core 46.2.1-f4deff.4 → 46.2.2-49d821.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/CardContainerShortImage.js +5 -18
- package/lib/commonjs/components/CardContainerShortImage.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalManager.js +11 -19
- package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
- package/lib/commonjs/hooks.js.map +1 -1
- package/lib/commonjs/mappings/ActivityIndicator.js +1 -0
- package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -1
- package/lib/commonjs/mappings/AvatarEdit.js +1 -0
- package/lib/commonjs/mappings/AvatarEdit.js.map +1 -1
- package/lib/commonjs/mappings/BlurView.js +1 -0
- package/lib/commonjs/mappings/BlurView.js.map +1 -1
- package/lib/commonjs/mappings/Button.js +2 -0
- package/lib/commonjs/mappings/Button.js.map +1 -1
- package/lib/commonjs/mappings/CardBlock.js +1 -0
- package/lib/commonjs/mappings/CardBlock.js.map +1 -1
- package/lib/commonjs/mappings/CardContainer.js +2 -0
- package/lib/commonjs/mappings/CardContainer.js.map +1 -1
- package/lib/commonjs/mappings/CardContainerRating.js +2 -0
- package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
- package/lib/commonjs/mappings/CardContainerShortImage.js +2 -0
- package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -1
- package/lib/commonjs/mappings/CardInline.js +1 -0
- package/lib/commonjs/mappings/CardInline.js.map +1 -1
- package/lib/commonjs/mappings/Carousel.js +1 -0
- package/lib/commonjs/mappings/Carousel.js.map +1 -1
- package/lib/commonjs/mappings/Checkbox.js +1 -0
- package/lib/commonjs/mappings/Checkbox.js.map +1 -1
- package/lib/commonjs/mappings/CheckboxGroup.js +1 -0
- package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -1
- package/lib/commonjs/mappings/CheckboxRow.js +1 -0
- package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
- package/lib/commonjs/mappings/CircleImage.js +1 -0
- package/lib/commonjs/mappings/CircleImage.js.map +1 -1
- package/lib/commonjs/mappings/Container.js +1 -0
- package/lib/commonjs/mappings/Container.js.map +1 -1
- package/lib/commonjs/mappings/Divider.js +1 -0
- package/lib/commonjs/mappings/Divider.js.map +1 -1
- package/lib/commonjs/mappings/FAB.js +1 -0
- package/lib/commonjs/mappings/FAB.js.map +1 -1
- package/lib/commonjs/mappings/Fetch.js +1 -0
- package/lib/commonjs/mappings/Fetch.js.map +1 -1
- package/lib/commonjs/mappings/FieldSearchBarFull.js +1 -0
- package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -1
- package/lib/commonjs/mappings/FlatList.js +1 -0
- package/lib/commonjs/mappings/FlatList.js.map +1 -1
- package/lib/commonjs/mappings/HeaderLarge.js +1 -0
- package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
- package/lib/commonjs/mappings/HeaderMedium.js +1 -0
- package/lib/commonjs/mappings/HeaderMedium.js.map +1 -1
- package/lib/commonjs/mappings/HeaderOverline.js +1 -0
- package/lib/commonjs/mappings/HeaderOverline.js.map +1 -1
- package/lib/commonjs/mappings/Icon.js +1 -0
- package/lib/commonjs/mappings/Icon.js.map +1 -1
- package/lib/commonjs/mappings/IconButton.js +1 -0
- package/lib/commonjs/mappings/IconButton.js.map +1 -1
- package/lib/commonjs/mappings/Image.js +1 -0
- package/lib/commonjs/mappings/Image.js.map +1 -1
- package/lib/commonjs/mappings/ImageBackground.js +1 -0
- package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +1 -0
- package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +1 -0
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
- package/lib/commonjs/mappings/Layout.js +5 -0
- package/lib/commonjs/mappings/Layout.js.map +1 -1
- package/lib/commonjs/mappings/Modal.js +1 -0
- package/lib/commonjs/mappings/Modal.js.map +1 -1
- package/lib/commonjs/mappings/NumberInput.js +1 -0
- package/lib/commonjs/mappings/NumberInput.js.map +1 -1
- package/lib/commonjs/mappings/Picker.js +1 -0
- package/lib/commonjs/mappings/Picker.js.map +1 -1
- package/lib/commonjs/mappings/ProgressBar.js +1 -0
- package/lib/commonjs/mappings/ProgressBar.js.map +1 -1
- package/lib/commonjs/mappings/ProgressCircle.js +1 -0
- package/lib/commonjs/mappings/ProgressCircle.js.map +1 -1
- package/lib/commonjs/mappings/ProgressIndicator.js +1 -0
- package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -1
- package/lib/commonjs/mappings/RadioButton.js +1 -0
- package/lib/commonjs/mappings/RadioButton.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonGroup.js +1 -0
- package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonRow.js +1 -0
- package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
- package/lib/commonjs/mappings/ScrollView.js +1 -0
- package/lib/commonjs/mappings/ScrollView.js.map +1 -1
- package/lib/commonjs/mappings/Slider.js +1 -0
- package/lib/commonjs/mappings/Slider.js.map +1 -1
- package/lib/commonjs/mappings/StarRating.js +1 -0
- package/lib/commonjs/mappings/StarRating.js.map +1 -1
- package/lib/commonjs/mappings/Stepper.js +1 -0
- package/lib/commonjs/mappings/Stepper.js.map +1 -1
- package/lib/commonjs/mappings/Surface.js +1 -0
- package/lib/commonjs/mappings/Surface.js.map +1 -1
- package/lib/commonjs/mappings/SwiperItem.js.map +1 -1
- package/lib/commonjs/mappings/Switch.js +2 -0
- package/lib/commonjs/mappings/Switch.js.map +1 -1
- package/lib/commonjs/mappings/Text.js +2 -0
- package/lib/commonjs/mappings/Text.js.map +1 -1
- package/lib/commonjs/mappings/TextField.js +1 -0
- package/lib/commonjs/mappings/TextField.js.map +1 -1
- package/lib/commonjs/mappings/TextInput.js +1 -0
- package/lib/commonjs/mappings/TextInput.js.map +1 -1
- package/lib/commonjs/mappings/ToggleButton.js +1 -0
- package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
- package/lib/commonjs/mappings/Touchable.js +1 -0
- package/lib/commonjs/mappings/Touchable.js.map +1 -1
- package/lib/commonjs/mappings/Video.js +1 -0
- package/lib/commonjs/mappings/Video.js.map +1 -1
- package/lib/commonjs/mappings/View.js +1 -0
- package/lib/commonjs/mappings/View.js.map +1 -1
- package/lib/commonjs/mappings/WebView.js +66 -0
- package/lib/commonjs/mappings/WebView.js.map +1 -1
- package/lib/commonjs/styles/shadow.js.map +1 -1
- package/lib/module/components/Checkbox/CheckboxRow.js +23 -6
- package/lib/module/mappings/ActivityIndicator.js +2 -1
- package/lib/module/mappings/ActivityIndicator.js.map +1 -1
- package/lib/module/mappings/AvatarEdit.js +2 -1
- package/lib/module/mappings/AvatarEdit.js.map +1 -1
- package/lib/module/mappings/BlurView.js +2 -1
- package/lib/module/mappings/BlurView.js.map +1 -1
- package/lib/module/mappings/Button.js +3 -1
- package/lib/module/mappings/Button.js.map +1 -1
- package/lib/module/mappings/CardBlock.js +2 -1
- package/lib/module/mappings/CardBlock.js.map +1 -1
- package/lib/module/mappings/CardContainer.js +3 -1
- package/lib/module/mappings/CardContainer.js.map +1 -1
- package/lib/module/mappings/CardContainerRating.js +3 -1
- package/lib/module/mappings/CardContainerRating.js.map +1 -1
- package/lib/module/mappings/CardContainerShortImage.js +3 -1
- package/lib/module/mappings/CardContainerShortImage.js.map +1 -1
- package/lib/module/mappings/CardInline.js +2 -1
- package/lib/module/mappings/CardInline.js.map +1 -1
- package/lib/module/mappings/Carousel.js +2 -1
- package/lib/module/mappings/Carousel.js.map +1 -1
- package/lib/module/mappings/Checkbox.js +2 -1
- package/lib/module/mappings/Checkbox.js.map +1 -1
- package/lib/module/mappings/CheckboxGroup.js +2 -1
- package/lib/module/mappings/CheckboxGroup.js.map +1 -1
- package/lib/module/mappings/CheckboxRow.js +2 -1
- package/lib/module/mappings/CheckboxRow.js.map +1 -1
- package/lib/module/mappings/CircleImage.js +2 -1
- package/lib/module/mappings/CircleImage.js.map +1 -1
- package/lib/module/mappings/Container.js +2 -1
- package/lib/module/mappings/Container.js.map +1 -1
- package/lib/module/mappings/Divider.js +2 -1
- package/lib/module/mappings/Divider.js.map +1 -1
- package/lib/module/mappings/FAB.js +2 -1
- package/lib/module/mappings/FAB.js.map +1 -1
- package/lib/module/mappings/Fetch.js +2 -1
- package/lib/module/mappings/Fetch.js.map +1 -1
- package/lib/module/mappings/FieldSearchBarFull.js +2 -1
- package/lib/module/mappings/FieldSearchBarFull.js.map +1 -1
- package/lib/module/mappings/FlatList.js +2 -1
- package/lib/module/mappings/FlatList.js.map +1 -1
- package/lib/module/mappings/HeaderLarge.js +2 -1
- package/lib/module/mappings/HeaderLarge.js.map +1 -1
- package/lib/module/mappings/HeaderMedium.js +2 -1
- package/lib/module/mappings/HeaderMedium.js.map +1 -1
- package/lib/module/mappings/HeaderOverline.js +2 -1
- package/lib/module/mappings/HeaderOverline.js.map +1 -1
- package/lib/module/mappings/Icon.js +2 -1
- package/lib/module/mappings/Icon.js.map +1 -1
- package/lib/module/mappings/IconButton.js +2 -1
- package/lib/module/mappings/IconButton.js.map +1 -1
- package/lib/module/mappings/Image.js +2 -1
- package/lib/module/mappings/Image.js.map +1 -1
- package/lib/module/mappings/ImageBackground.js +2 -1
- package/lib/module/mappings/ImageBackground.js.map +1 -1
- package/lib/module/mappings/KeyboardAvoidingView.js +2 -1
- package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js +2 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
- package/lib/module/mappings/Layout.js +6 -1
- package/lib/module/mappings/Layout.js.map +1 -1
- package/lib/module/mappings/Modal.js +2 -1
- package/lib/module/mappings/Modal.js.map +1 -1
- package/lib/module/mappings/NumberInput.js +2 -1
- package/lib/module/mappings/NumberInput.js.map +1 -1
- package/lib/module/mappings/Picker.js +2 -1
- package/lib/module/mappings/Picker.js.map +1 -1
- package/lib/module/mappings/ProgressBar.js +2 -1
- package/lib/module/mappings/ProgressBar.js.map +1 -1
- package/lib/module/mappings/ProgressCircle.js +2 -1
- package/lib/module/mappings/ProgressCircle.js.map +1 -1
- package/lib/module/mappings/ProgressIndicator.js +2 -1
- package/lib/module/mappings/ProgressIndicator.js.map +1 -1
- package/lib/module/mappings/RadioButton.js +2 -1
- package/lib/module/mappings/RadioButton.js.map +1 -1
- package/lib/module/mappings/RadioButtonGroup.js +2 -1
- package/lib/module/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/module/mappings/RadioButtonRow.js +2 -1
- package/lib/module/mappings/RadioButtonRow.js.map +1 -1
- package/lib/module/mappings/ScrollView.js +2 -1
- package/lib/module/mappings/ScrollView.js.map +1 -1
- package/lib/module/mappings/Slider.js +2 -1
- package/lib/module/mappings/Slider.js.map +1 -1
- package/lib/module/mappings/StarRating.js +2 -1
- package/lib/module/mappings/StarRating.js.map +1 -1
- package/lib/module/mappings/Stepper.js +2 -1
- package/lib/module/mappings/Stepper.js.map +1 -1
- package/lib/module/mappings/Surface.js +2 -1
- package/lib/module/mappings/Surface.js.map +1 -1
- package/lib/module/mappings/Switch.js +3 -1
- package/lib/module/mappings/Switch.js.map +1 -1
- package/lib/module/mappings/Text.js +3 -1
- package/lib/module/mappings/Text.js.map +1 -1
- package/lib/module/mappings/TextField.js +2 -1
- package/lib/module/mappings/TextField.js.map +1 -1
- package/lib/module/mappings/TextInput.js +2 -1
- package/lib/module/mappings/TextInput.js.map +1 -1
- package/lib/module/mappings/ToggleButton.js +2 -1
- package/lib/module/mappings/ToggleButton.js.map +1 -1
- package/lib/module/mappings/Touchable.js +2 -1
- package/lib/module/mappings/Touchable.js.map +1 -1
- package/lib/module/mappings/Video.js +2 -1
- package/lib/module/mappings/Video.js.map +1 -1
- package/lib/module/mappings/View.js +2 -1
- package/lib/module/mappings/View.js.map +1 -1
- package/lib/module/mappings/WebView.js +67 -1
- package/lib/module/mappings/WebView.js.map +1 -1
- package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
- package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
- package/lib/typescript/src/mappings/Button.d.ts +2 -0
- package/lib/typescript/src/mappings/CardBlock.d.ts +101 -0
- package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
- package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +2 -0
- package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
- package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
- package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
- package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
- package/lib/typescript/src/mappings/Container.d.ts +1 -0
- package/lib/typescript/src/mappings/Divider.d.ts +1 -0
- package/lib/typescript/src/mappings/FAB.d.ts +1 -0
- package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
- package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
- package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
- package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
- package/lib/typescript/src/mappings/Icon.d.ts +1 -0
- package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
- package/lib/typescript/src/mappings/Image.d.ts +1 -0
- package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/Layout.d.ts +4 -0
- package/lib/typescript/src/mappings/Modal.d.ts +1 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
- package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
- package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
- package/lib/typescript/src/mappings/Slider.d.ts +1 -0
- package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
- package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
- package/lib/typescript/src/mappings/Surface.d.ts +1 -0
- package/lib/typescript/src/mappings/Switch.d.ts +2 -0
- package/lib/typescript/src/mappings/Text.d.ts +2 -0
- package/lib/typescript/src/mappings/TextField.d.ts +2 -0
- package/lib/typescript/src/mappings/TextInput.d.ts +1 -0
- package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
- package/lib/typescript/src/mappings/Video.d.ts +1 -0
- package/lib/typescript/src/mappings/View.d.ts +1 -0
- package/lib/typescript/src/mappings/WebView.d.ts +103 -0
- package/package.json +3 -3
- package/src/mappings/ActivityIndicator.js +6 -1
- package/src/mappings/ActivityIndicator.ts +6 -0
- package/src/mappings/AvatarEdit.js +2 -1
- package/src/mappings/AvatarEdit.ts +2 -0
- package/src/mappings/BlurView.js +2 -1
- package/src/mappings/BlurView.ts +2 -0
- package/src/mappings/Button.js +19 -1
- package/src/mappings/Button.ts +19 -0
- package/src/mappings/CardBlock.js +2 -1
- package/src/mappings/CardBlock.ts +2 -0
- package/src/mappings/CardContainer.js +3 -1
- package/src/mappings/CardContainer.ts +3 -0
- package/src/mappings/CardContainerRating.js +3 -1
- package/src/mappings/CardContainerRating.ts +3 -0
- package/src/mappings/CardContainerShortImage.js +3 -1
- package/src/mappings/CardContainerShortImage.ts +3 -0
- package/src/mappings/CardInline.js +2 -1
- package/src/mappings/CardInline.ts +2 -0
- package/src/mappings/Carousel.js +2 -1
- package/src/mappings/Carousel.ts +2 -0
- package/src/mappings/Checkbox.js +2 -1
- package/src/mappings/Checkbox.ts +2 -0
- package/src/mappings/CheckboxGroup.js +2 -1
- package/src/mappings/CheckboxGroup.ts +2 -0
- package/src/mappings/CheckboxRow.js +6 -1
- package/src/mappings/CheckboxRow.ts +6 -0
- package/src/mappings/CircleImage.js +2 -1
- package/src/mappings/CircleImage.ts +2 -0
- package/src/mappings/Container.js +2 -1
- package/src/mappings/Container.ts +2 -0
- package/src/mappings/Divider.js +2 -1
- package/src/mappings/Divider.ts +2 -0
- package/src/mappings/FAB.js +2 -1
- package/src/mappings/FAB.ts +2 -0
- package/src/mappings/Fetch.js +2 -1
- package/src/mappings/Fetch.ts +2 -1
- package/src/mappings/FieldSearchBarFull.js +2 -1
- package/src/mappings/FieldSearchBarFull.ts +2 -0
- package/src/mappings/FlatList.js +2 -1
- package/src/mappings/FlatList.ts +2 -0
- package/src/mappings/HeaderLarge.js +2 -1
- package/src/mappings/HeaderLarge.ts +2 -0
- package/src/mappings/HeaderMedium.js +2 -1
- package/src/mappings/HeaderMedium.ts +2 -0
- package/src/mappings/HeaderOverline.js +2 -1
- package/src/mappings/HeaderOverline.ts +2 -0
- package/src/mappings/Icon.js +8 -1
- package/src/mappings/Icon.ts +8 -0
- package/src/mappings/IconButton.js +6 -1
- package/src/mappings/IconButton.ts +6 -0
- package/src/mappings/Image.js +7 -1
- package/src/mappings/Image.ts +7 -0
- package/src/mappings/ImageBackground.js +2 -1
- package/src/mappings/ImageBackground.ts +2 -0
- package/src/mappings/KeyboardAvoidingView.js +2 -1
- package/src/mappings/KeyboardAvoidingView.ts +2 -0
- package/src/mappings/KeyboardAwareScrollView.js +2 -1
- package/src/mappings/KeyboardAwareScrollView.ts +2 -0
- package/src/mappings/Layout.js +6 -1
- package/src/mappings/Layout.ts +6 -0
- package/src/mappings/Modal.js +2 -1
- package/src/mappings/Modal.ts +2 -0
- package/src/mappings/NumberInput.js +10 -1
- package/src/mappings/NumberInput.ts +10 -0
- package/src/mappings/Picker.js +10 -1
- package/src/mappings/Picker.ts +10 -0
- package/src/mappings/ProgressBar.js +2 -1
- package/src/mappings/ProgressBar.ts +2 -0
- package/src/mappings/ProgressCircle.js +2 -1
- package/src/mappings/ProgressCircle.ts +2 -0
- package/src/mappings/ProgressIndicator.js +2 -1
- package/src/mappings/ProgressIndicator.ts +2 -0
- package/src/mappings/RadioButton.js +2 -1
- package/src/mappings/RadioButton.ts +2 -0
- package/src/mappings/RadioButtonGroup.js +2 -1
- package/src/mappings/RadioButtonGroup.ts +2 -0
- package/src/mappings/RadioButtonRow.js +6 -1
- package/src/mappings/RadioButtonRow.ts +6 -0
- package/src/mappings/ScrollView.js +2 -1
- package/src/mappings/ScrollView.ts +6 -1
- package/src/mappings/Slider.js +2 -1
- package/src/mappings/Slider.ts +2 -0
- package/src/mappings/StarRating.js +2 -1
- package/src/mappings/StarRating.ts +2 -0
- package/src/mappings/Stepper.js +2 -1
- package/src/mappings/Stepper.ts +2 -0
- package/src/mappings/Surface.js +2 -1
- package/src/mappings/Surface.ts +6 -1
- package/src/mappings/Switch.js +7 -1
- package/src/mappings/Switch.ts +8 -0
- package/src/mappings/Text.js +13 -1
- package/src/mappings/Text.ts +13 -0
- package/src/mappings/TextField.js +10 -1
- package/src/mappings/TextField.ts +10 -0
- package/src/mappings/TextInput.js +10 -1
- package/src/mappings/TextInput.ts +10 -0
- package/src/mappings/ToggleButton.js +6 -1
- package/src/mappings/ToggleButton.ts +6 -0
- package/src/mappings/Touchable.js +6 -1
- package/src/mappings/Touchable.ts +11 -1
- package/src/mappings/Video.js +8 -1
- package/src/mappings/Video.ts +8 -0
- package/src/mappings/View.js +2 -1
- package/src/mappings/View.ts +2 -0
- package/src/mappings/WebView.js +71 -1
- package/src/mappings/WebView.ts +83 -0
package/src/mappings/Stepper.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = [
|
|
3
3
|
{
|
|
4
4
|
name: "Stepper",
|
|
5
5
|
tag: "Stepper",
|
|
6
6
|
description: "A component used to control the quantity of something",
|
|
7
7
|
category: COMPONENT_TYPES.input,
|
|
8
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
9
|
layout: {},
|
|
9
10
|
triggers: [Triggers.OnChange],
|
|
10
11
|
props: {
|
package/src/mappings/Stepper.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
createFieldNameProp,
|
|
6
6
|
createStaticNumberProp,
|
|
7
7
|
Triggers,
|
|
8
|
+
BLOCK_STYLES_SECTIONS,
|
|
8
9
|
} from "@draftbit/types";
|
|
9
10
|
|
|
10
11
|
export const SEED_DATA = [
|
|
@@ -13,6 +14,7 @@ export const SEED_DATA = [
|
|
|
13
14
|
tag: "Stepper",
|
|
14
15
|
description: "A component used to control the quantity of something",
|
|
15
16
|
category: COMPONENT_TYPES.input,
|
|
17
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
16
18
|
layout: {},
|
|
17
19
|
triggers: [Triggers.OnChange],
|
|
18
20
|
props: {
|
package/src/mappings/Surface.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createElevationType } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createElevationType, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Surface",
|
|
4
4
|
tag: "Surface",
|
|
5
5
|
description: "An elevated container",
|
|
6
6
|
category: COMPONENT_TYPES.layout,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
7
8
|
layout: {
|
|
8
9
|
minHeight: 40,
|
|
9
10
|
},
|
package/src/mappings/Surface.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createElevationType,
|
|
4
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
5
|
+
} from "@draftbit/types";
|
|
2
6
|
|
|
3
7
|
export const SEED_DATA = {
|
|
4
8
|
name: "Surface",
|
|
5
9
|
tag: "Surface",
|
|
6
10
|
description: "An elevated container",
|
|
7
11
|
category: COMPONENT_TYPES.layout,
|
|
12
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
13
|
layout: {
|
|
9
14
|
minHeight: 40,
|
|
10
15
|
},
|
package/src/mappings/Switch.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, GROUPS, createBoolProp, createColorProp, createFieldNameProp, createTextProp, createRowDirectionProp, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, GROUPS, createBoolProp, createColorProp, createFieldNameProp, createTextProp, createRowDirectionProp, Triggers, StylesPanelSections, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
|
|
3
3
|
export const SEED_DATA = [
|
|
4
4
|
{
|
|
5
5
|
name: "Switch",
|
|
6
6
|
tag: "Switch",
|
|
7
7
|
category: COMPONENT_TYPES.input,
|
|
8
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
9
|
layout: {},
|
|
9
10
|
triggers: SEED_DATA_TRIGGERS,
|
|
10
11
|
props: {
|
|
@@ -35,6 +36,11 @@ export const SEED_DATA = [
|
|
|
35
36
|
name: "Switch Row",
|
|
36
37
|
tag: "SwitchRow",
|
|
37
38
|
category: COMPONENT_TYPES.input,
|
|
39
|
+
stylesPanelSections: [
|
|
40
|
+
StylesPanelSections.Typography,
|
|
41
|
+
StylesPanelSections.Margins,
|
|
42
|
+
StylesPanelSections.Effects,
|
|
43
|
+
],
|
|
38
44
|
layout: {
|
|
39
45
|
marginLeft: 0,
|
|
40
46
|
marginRight: 0,
|
package/src/mappings/Switch.ts
CHANGED
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
createTextProp,
|
|
8
8
|
createRowDirectionProp,
|
|
9
9
|
Triggers,
|
|
10
|
+
StylesPanelSections,
|
|
11
|
+
BLOCK_STYLES_SECTIONS,
|
|
10
12
|
} from "@draftbit/types";
|
|
11
13
|
const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
|
|
12
14
|
export const SEED_DATA = [
|
|
@@ -14,6 +16,7 @@ export const SEED_DATA = [
|
|
|
14
16
|
name: "Switch",
|
|
15
17
|
tag: "Switch",
|
|
16
18
|
category: COMPONENT_TYPES.input,
|
|
19
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
17
20
|
layout: {},
|
|
18
21
|
triggers: SEED_DATA_TRIGGERS,
|
|
19
22
|
props: {
|
|
@@ -44,6 +47,11 @@ export const SEED_DATA = [
|
|
|
44
47
|
name: "Switch Row",
|
|
45
48
|
tag: "SwitchRow",
|
|
46
49
|
category: COMPONENT_TYPES.input,
|
|
50
|
+
stylesPanelSections: [
|
|
51
|
+
StylesPanelSections.Typography,
|
|
52
|
+
StylesPanelSections.Margins,
|
|
53
|
+
StylesPanelSections.Effects,
|
|
54
|
+
],
|
|
47
55
|
layout: {
|
|
48
56
|
marginLeft: 0,
|
|
49
57
|
marginRight: 0,
|
package/src/mappings/Text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, Triggers, createActionProp, createTextProp, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, Triggers, createActionProp, createTextProp, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_PROPS = {
|
|
3
3
|
accessibilityLabel: {
|
|
4
4
|
group: GROUPS.accessibility,
|
|
@@ -201,6 +201,12 @@ export const SEED_DATA = [
|
|
|
201
201
|
tag: "Text",
|
|
202
202
|
description: "A basic Text component",
|
|
203
203
|
category: COMPONENT_TYPES.basic,
|
|
204
|
+
stylesPanelSections: [
|
|
205
|
+
StylesPanelSections.Typography,
|
|
206
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
207
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
208
|
+
StylesPanelSections.Effects,
|
|
209
|
+
],
|
|
204
210
|
layout: {
|
|
205
211
|
color: "strong", // This is translated on collector script run by the extractValueAndType function
|
|
206
212
|
},
|
|
@@ -222,6 +228,12 @@ export const SEED_DATA = [
|
|
|
222
228
|
name: "Link",
|
|
223
229
|
tag: "Link",
|
|
224
230
|
category: COMPONENT_TYPES.button,
|
|
231
|
+
stylesPanelSections: [
|
|
232
|
+
StylesPanelSections.Typography,
|
|
233
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
234
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
235
|
+
StylesPanelSections.Effects,
|
|
236
|
+
],
|
|
225
237
|
layout: {
|
|
226
238
|
color: "primary",
|
|
227
239
|
},
|
package/src/mappings/Text.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
Triggers,
|
|
7
7
|
createActionProp,
|
|
8
8
|
createTextProp,
|
|
9
|
+
StylesPanelSections,
|
|
9
10
|
} from "@draftbit/types";
|
|
10
11
|
|
|
11
12
|
const SEED_DATA_PROPS = {
|
|
@@ -225,6 +226,12 @@ export const SEED_DATA = [
|
|
|
225
226
|
tag: "Text",
|
|
226
227
|
description: "A basic Text component",
|
|
227
228
|
category: COMPONENT_TYPES.basic,
|
|
229
|
+
stylesPanelSections: [
|
|
230
|
+
StylesPanelSections.Typography,
|
|
231
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
232
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
233
|
+
StylesPanelSections.Effects,
|
|
234
|
+
],
|
|
228
235
|
layout: {
|
|
229
236
|
color: "strong", // This is translated on collector script run by the extractValueAndType function
|
|
230
237
|
},
|
|
@@ -246,6 +253,12 @@ export const SEED_DATA = [
|
|
|
246
253
|
name: "Link",
|
|
247
254
|
tag: "Link",
|
|
248
255
|
category: COMPONENT_TYPES.button,
|
|
256
|
+
stylesPanelSections: [
|
|
257
|
+
StylesPanelSections.Typography,
|
|
258
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
259
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
260
|
+
StylesPanelSections.Effects,
|
|
261
|
+
],
|
|
249
262
|
layout: {
|
|
250
263
|
color: "primary",
|
|
251
264
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createColorProp, createNumberProp, createFieldNameProp, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createColorProp, createNumberProp, createFieldNameProp, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
const TEXT_FIELD_PROPS = {
|
|
3
3
|
allowFontScaling: {
|
|
4
4
|
group: GROUPS.advanced,
|
|
@@ -330,6 +330,15 @@ export const SEED_DATA = [
|
|
|
330
330
|
tag: "TextField",
|
|
331
331
|
description: "A text area with a solid border or underline",
|
|
332
332
|
category: COMPONENT_TYPES.input,
|
|
333
|
+
stylesPanelSections: [
|
|
334
|
+
StylesPanelSections.Typography,
|
|
335
|
+
StylesPanelSections.Background,
|
|
336
|
+
StylesPanelSections.Size,
|
|
337
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
338
|
+
StylesPanelSections.Position,
|
|
339
|
+
StylesPanelSections.Borders,
|
|
340
|
+
StylesPanelSections.Effects,
|
|
341
|
+
],
|
|
333
342
|
preview_image_url: "{CLOUDINARY_URL}/TextArea.png",
|
|
334
343
|
supports_list_render: false,
|
|
335
344
|
triggers: SEED_DATA_TRIGGERS,
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
createColorProp,
|
|
9
9
|
createNumberProp,
|
|
10
10
|
createFieldNameProp,
|
|
11
|
+
StylesPanelSections,
|
|
11
12
|
} from "@draftbit/types";
|
|
12
13
|
|
|
13
14
|
const TEXT_FIELD_PROPS = {
|
|
@@ -352,6 +353,15 @@ export const SEED_DATA = [
|
|
|
352
353
|
tag: "TextField",
|
|
353
354
|
description: "A text area with a solid border or underline",
|
|
354
355
|
category: COMPONENT_TYPES.input,
|
|
356
|
+
stylesPanelSections: [
|
|
357
|
+
StylesPanelSections.Typography,
|
|
358
|
+
StylesPanelSections.Background,
|
|
359
|
+
StylesPanelSections.Size,
|
|
360
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
361
|
+
StylesPanelSections.Position,
|
|
362
|
+
StylesPanelSections.Borders,
|
|
363
|
+
StylesPanelSections.Effects,
|
|
364
|
+
],
|
|
355
365
|
preview_image_url: "{CLOUDINARY_URL}/TextArea.png",
|
|
356
366
|
supports_list_render: false,
|
|
357
367
|
triggers: SEED_DATA_TRIGGERS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
const TEXT_INPUT_PROPS = {
|
|
3
3
|
allowFontScaling: {
|
|
4
4
|
group: GROUPS.advanced,
|
|
@@ -270,6 +270,15 @@ export const SEED_DATA = [
|
|
|
270
270
|
tag: "TextInput",
|
|
271
271
|
description: "An input field that allows users to type in data.",
|
|
272
272
|
category: COMPONENT_TYPES.input,
|
|
273
|
+
stylesPanelSections: [
|
|
274
|
+
StylesPanelSections.Typography,
|
|
275
|
+
StylesPanelSections.Background,
|
|
276
|
+
StylesPanelSections.Size,
|
|
277
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
278
|
+
StylesPanelSections.Position,
|
|
279
|
+
StylesPanelSections.Borders,
|
|
280
|
+
StylesPanelSections.Effects,
|
|
281
|
+
],
|
|
273
282
|
preview_image_url: "https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png",
|
|
274
283
|
supports_list_render: false,
|
|
275
284
|
layout: {
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
PROP_TYPES,
|
|
6
6
|
FIELD_NAME,
|
|
7
7
|
Triggers,
|
|
8
|
+
StylesPanelSections,
|
|
8
9
|
} from "@draftbit/types";
|
|
9
10
|
|
|
10
11
|
const TEXT_INPUT_PROPS = {
|
|
@@ -290,6 +291,15 @@ export const SEED_DATA = [
|
|
|
290
291
|
tag: "TextInput",
|
|
291
292
|
description: "An input field that allows users to type in data.",
|
|
292
293
|
category: COMPONENT_TYPES.input,
|
|
294
|
+
stylesPanelSections: [
|
|
295
|
+
StylesPanelSections.Typography,
|
|
296
|
+
StylesPanelSections.Background,
|
|
297
|
+
StylesPanelSections.Size,
|
|
298
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
299
|
+
StylesPanelSections.Position,
|
|
300
|
+
StylesPanelSections.Borders,
|
|
301
|
+
StylesPanelSections.Effects,
|
|
302
|
+
],
|
|
293
303
|
preview_image_url:
|
|
294
304
|
"https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png",
|
|
295
305
|
supports_list_render: false,
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, createIconProp, createBoolProp, createColorProp, createStaticNumberProp, createFieldNameProp, createIconSizeProp, createActionProp, Triggers, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, createIconProp, createBoolProp, createColorProp, createStaticNumberProp, createFieldNameProp, createIconSizeProp, createActionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Toggle Button",
|
|
4
4
|
tag: "ToggleButton",
|
|
5
5
|
category: COMPONENT_TYPES.deprecated,
|
|
6
|
+
stylesPanelSections: [
|
|
7
|
+
StylesPanelSections.Margins,
|
|
8
|
+
StylesPanelSections.Effects,
|
|
9
|
+
StylesPanelSections.Position,
|
|
10
|
+
],
|
|
6
11
|
layout: {},
|
|
7
12
|
triggers: [Triggers.OnPress],
|
|
8
13
|
props: {
|
|
@@ -9,12 +9,18 @@ import {
|
|
|
9
9
|
createIconSizeProp,
|
|
10
10
|
createActionProp,
|
|
11
11
|
Triggers,
|
|
12
|
+
StylesPanelSections,
|
|
12
13
|
} from "@draftbit/types";
|
|
13
14
|
|
|
14
15
|
export const SEED_DATA = {
|
|
15
16
|
name: "Toggle Button",
|
|
16
17
|
tag: "ToggleButton",
|
|
17
18
|
category: COMPONENT_TYPES.deprecated,
|
|
19
|
+
stylesPanelSections: [
|
|
20
|
+
StylesPanelSections.Margins,
|
|
21
|
+
StylesPanelSections.Effects,
|
|
22
|
+
StylesPanelSections.Position,
|
|
23
|
+
],
|
|
18
24
|
layout: {},
|
|
19
25
|
triggers: [Triggers.OnPress],
|
|
20
26
|
props: {
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createActionProp, Triggers } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createActionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Touchable",
|
|
4
4
|
tag: "Touchable",
|
|
5
5
|
description: "Simple button with no styles",
|
|
6
6
|
category: COMPONENT_TYPES.button,
|
|
7
|
+
stylesPanelSections: [
|
|
8
|
+
StylesPanelSections.Size,
|
|
9
|
+
StylesPanelSections.Margins,
|
|
10
|
+
StylesPanelSections.Borders,
|
|
11
|
+
],
|
|
7
12
|
layout: {},
|
|
8
13
|
triggers: [Triggers.OnPress],
|
|
9
14
|
props: {
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createActionProp,
|
|
4
|
+
Triggers,
|
|
5
|
+
StylesPanelSections,
|
|
6
|
+
} from "@draftbit/types";
|
|
2
7
|
|
|
3
8
|
export const SEED_DATA = {
|
|
4
9
|
name: "Touchable",
|
|
5
10
|
tag: "Touchable",
|
|
6
11
|
description: "Simple button with no styles",
|
|
7
12
|
category: COMPONENT_TYPES.button,
|
|
13
|
+
stylesPanelSections: [
|
|
14
|
+
StylesPanelSections.Size,
|
|
15
|
+
StylesPanelSections.Margins,
|
|
16
|
+
StylesPanelSections.Borders,
|
|
17
|
+
],
|
|
8
18
|
layout: {},
|
|
9
19
|
triggers: [Triggers.OnPress],
|
|
10
20
|
props: {
|
package/src/mappings/Video.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createStaticBoolProp, createSourceProp, createResizeModeProp, createNumberProp, GROUPS, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createStaticBoolProp, createSourceProp, createResizeModeProp, createNumberProp, GROUPS, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Video",
|
|
4
4
|
tag: "Video",
|
|
@@ -6,6 +6,13 @@ export const SEED_DATA = {
|
|
|
6
6
|
doc_link: "https://docs.expo.io/versions/latest/sdk/video/",
|
|
7
7
|
code_link: "https://github.com/expo/expo/blob/master/packages/expo-av/src/Video.tsx",
|
|
8
8
|
category: COMPONENT_TYPES.media,
|
|
9
|
+
stylesPanelSections: [
|
|
10
|
+
StylesPanelSections.Size,
|
|
11
|
+
StylesPanelSections.Margins,
|
|
12
|
+
StylesPanelSections.Background,
|
|
13
|
+
StylesPanelSections.Position,
|
|
14
|
+
StylesPanelSections.Effects,
|
|
15
|
+
],
|
|
9
16
|
layout: {
|
|
10
17
|
height: 215,
|
|
11
18
|
},
|
package/src/mappings/Video.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
createResizeModeProp,
|
|
6
6
|
createNumberProp,
|
|
7
7
|
GROUPS,
|
|
8
|
+
StylesPanelSections,
|
|
8
9
|
} from "@draftbit/types";
|
|
9
10
|
|
|
10
11
|
export const SEED_DATA = {
|
|
@@ -15,6 +16,13 @@ export const SEED_DATA = {
|
|
|
15
16
|
code_link:
|
|
16
17
|
"https://github.com/expo/expo/blob/master/packages/expo-av/src/Video.tsx",
|
|
17
18
|
category: COMPONENT_TYPES.media,
|
|
19
|
+
stylesPanelSections: [
|
|
20
|
+
StylesPanelSections.Size,
|
|
21
|
+
StylesPanelSections.Margins,
|
|
22
|
+
StylesPanelSections.Background,
|
|
23
|
+
StylesPanelSections.Position,
|
|
24
|
+
StylesPanelSections.Effects,
|
|
25
|
+
],
|
|
18
26
|
layout: {
|
|
19
27
|
height: 215,
|
|
20
28
|
},
|
package/src/mappings/View.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, } from "@draftbit/types";
|
|
1
|
+
import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "View",
|
|
4
4
|
tag: "View",
|
|
5
5
|
description: "A basic View component",
|
|
6
6
|
category: COMPONENT_TYPES.basic,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
7
8
|
props: {
|
|
8
9
|
accessible: {
|
|
9
10
|
group: GROUPS.accessibility,
|
package/src/mappings/View.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
COMPONENT_TYPES,
|
|
4
4
|
FORM_TYPES,
|
|
5
5
|
PROP_TYPES,
|
|
6
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
6
7
|
} from "@draftbit/types";
|
|
7
8
|
|
|
8
9
|
export const SEED_DATA = {
|
|
@@ -10,6 +11,7 @@ export const SEED_DATA = {
|
|
|
10
11
|
tag: "View",
|
|
11
12
|
description: "A basic View component",
|
|
12
13
|
category: COMPONENT_TYPES.basic,
|
|
14
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
13
15
|
props: {
|
|
14
16
|
accessible: {
|
|
15
17
|
group: GROUPS.accessibility,
|
package/src/mappings/WebView.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createSourceProp, createStaticBoolProp, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createSourceProp, createStaticBoolProp, createTextProp, GROUPS, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Web View",
|
|
4
4
|
tag: "WebView",
|
|
5
5
|
description: "Render web content inside a view",
|
|
6
6
|
category: COMPONENT_TYPES.media,
|
|
7
|
+
stylesPanelSections: [
|
|
8
|
+
StylesPanelSections.Size,
|
|
9
|
+
StylesPanelSections.Margins,
|
|
10
|
+
StylesPanelSections.Borders,
|
|
11
|
+
],
|
|
7
12
|
layout: { flex: 1 },
|
|
8
13
|
props: {
|
|
9
14
|
source: createSourceProp({
|
|
@@ -14,5 +19,70 @@ export const SEED_DATA = {
|
|
|
14
19
|
label: "Optimize Video Chat",
|
|
15
20
|
description: "Allows for a better experience from web hosted video chat services",
|
|
16
21
|
}),
|
|
22
|
+
javaScriptEnabled: createStaticBoolProp({
|
|
23
|
+
defaultValue: true,
|
|
24
|
+
group: GROUPS.advanced,
|
|
25
|
+
label: "Enable Javascript",
|
|
26
|
+
description: "Boolean value to enable JavaScript in the WebView. The default value is true.",
|
|
27
|
+
}),
|
|
28
|
+
javaScriptCanOpenWindowsAutomatically: createStaticBoolProp({
|
|
29
|
+
defaultValue: false,
|
|
30
|
+
group: GROUPS.advanced,
|
|
31
|
+
label: "Allow New Windows",
|
|
32
|
+
description: "A Boolean value indicating whether JavaScript can open windows without user interaction. The default value is false.",
|
|
33
|
+
}),
|
|
34
|
+
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
35
|
+
defaultValue: true,
|
|
36
|
+
group: GROUPS.advanced,
|
|
37
|
+
label: "Horizontal Scollbars",
|
|
38
|
+
description: "Boolean value that determines whether a horizontal scroll indicator is shown in the WebView. The default value is true.",
|
|
39
|
+
}),
|
|
40
|
+
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
41
|
+
defaultValue: true,
|
|
42
|
+
group: GROUPS.advanced,
|
|
43
|
+
label: "Vertical Scollbars",
|
|
44
|
+
description: "Boolean value that determines whether a vertical scroll indicator is shown in the WebView. The default value is true.",
|
|
45
|
+
}),
|
|
46
|
+
mediaPlaybackRequiresUserAction: createStaticBoolProp({
|
|
47
|
+
label: "Media Playback Requires User Action",
|
|
48
|
+
group: GROUPS.advanced,
|
|
49
|
+
description: "Boolean that determines whether HTML5 audio and video requires the user to tap them before they start playing. The default value is true. (Android API minimum version 17).",
|
|
50
|
+
}),
|
|
51
|
+
startInLoadingState: createStaticBoolProp({
|
|
52
|
+
label: "Start In Loading State",
|
|
53
|
+
group: GROUPS.advanced,
|
|
54
|
+
description: "Boolean value that forces the WebView to show the loading view on the first load. This prop must be set to true in order for the renderLoading prop to work.",
|
|
55
|
+
}),
|
|
56
|
+
allowFileAccessFromFileURLs: createStaticBoolProp({
|
|
57
|
+
label: "Allow File Access From File URLs",
|
|
58
|
+
group: GROUPS.advanced,
|
|
59
|
+
description: "Boolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs. The default value is false.",
|
|
60
|
+
}),
|
|
61
|
+
allowUniversalAccessFromFileURLs: createStaticBoolProp({
|
|
62
|
+
label: "Allow Universal Access From File URLs",
|
|
63
|
+
group: GROUPS.advanced,
|
|
64
|
+
description: "Boolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. Including accessing content from other file scheme URLs. The default value is false.",
|
|
65
|
+
}),
|
|
66
|
+
cacheEnabled: createStaticBoolProp({
|
|
67
|
+
label: "Enable Cache",
|
|
68
|
+
defaultValue: true,
|
|
69
|
+
description: "Sets whether WebView should use browser caching.",
|
|
70
|
+
}),
|
|
71
|
+
incognito: createStaticBoolProp({
|
|
72
|
+
label: "Use Incognito Mode",
|
|
73
|
+
description: "Does not store any data within the lifetime of the WebView.",
|
|
74
|
+
}),
|
|
75
|
+
userAgent: createTextProp({
|
|
76
|
+
group: GROUPS.advanced,
|
|
77
|
+
defaultValue: null,
|
|
78
|
+
label: "User Agent",
|
|
79
|
+
description: "Sets the user-agent for the WebView.",
|
|
80
|
+
}),
|
|
81
|
+
applicationNameForUserAgent: createTextProp({
|
|
82
|
+
group: GROUPS.advanced,
|
|
83
|
+
defaultValue: null,
|
|
84
|
+
label: "User Agent App Name",
|
|
85
|
+
description: "Append to the existing user-agent. Setting userAgent will override this.",
|
|
86
|
+
}),
|
|
17
87
|
},
|
|
18
88
|
};
|
package/src/mappings/WebView.ts
CHANGED
|
@@ -2,6 +2,9 @@ import {
|
|
|
2
2
|
COMPONENT_TYPES,
|
|
3
3
|
createSourceProp,
|
|
4
4
|
createStaticBoolProp,
|
|
5
|
+
createTextProp,
|
|
6
|
+
GROUPS,
|
|
7
|
+
StylesPanelSections,
|
|
5
8
|
} from "@draftbit/types";
|
|
6
9
|
|
|
7
10
|
export const SEED_DATA = {
|
|
@@ -9,6 +12,11 @@ export const SEED_DATA = {
|
|
|
9
12
|
tag: "WebView",
|
|
10
13
|
description: "Render web content inside a view",
|
|
11
14
|
category: COMPONENT_TYPES.media,
|
|
15
|
+
stylesPanelSections: [
|
|
16
|
+
StylesPanelSections.Size,
|
|
17
|
+
StylesPanelSections.Margins,
|
|
18
|
+
StylesPanelSections.Borders,
|
|
19
|
+
],
|
|
12
20
|
layout: { flex: 1 },
|
|
13
21
|
props: {
|
|
14
22
|
source: createSourceProp({
|
|
@@ -20,5 +28,80 @@ export const SEED_DATA = {
|
|
|
20
28
|
description:
|
|
21
29
|
"Allows for a better experience from web hosted video chat services",
|
|
22
30
|
}),
|
|
31
|
+
javaScriptEnabled: createStaticBoolProp({
|
|
32
|
+
defaultValue: true,
|
|
33
|
+
group: GROUPS.advanced,
|
|
34
|
+
label: "Enable Javascript",
|
|
35
|
+
description:
|
|
36
|
+
"Boolean value to enable JavaScript in the WebView. The default value is true.",
|
|
37
|
+
}),
|
|
38
|
+
javaScriptCanOpenWindowsAutomatically: createStaticBoolProp({
|
|
39
|
+
defaultValue: false,
|
|
40
|
+
group: GROUPS.advanced,
|
|
41
|
+
label: "Allow New Windows",
|
|
42
|
+
description:
|
|
43
|
+
"A Boolean value indicating whether JavaScript can open windows without user interaction. The default value is false.",
|
|
44
|
+
}),
|
|
45
|
+
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
46
|
+
defaultValue: true,
|
|
47
|
+
group: GROUPS.advanced,
|
|
48
|
+
label: "Horizontal Scollbars",
|
|
49
|
+
description:
|
|
50
|
+
"Boolean value that determines whether a horizontal scroll indicator is shown in the WebView. The default value is true.",
|
|
51
|
+
}),
|
|
52
|
+
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
53
|
+
defaultValue: true,
|
|
54
|
+
group: GROUPS.advanced,
|
|
55
|
+
label: "Vertical Scollbars",
|
|
56
|
+
description:
|
|
57
|
+
"Boolean value that determines whether a vertical scroll indicator is shown in the WebView. The default value is true.",
|
|
58
|
+
}),
|
|
59
|
+
mediaPlaybackRequiresUserAction: createStaticBoolProp({
|
|
60
|
+
label: "Media Playback Requires User Action",
|
|
61
|
+
group: GROUPS.advanced,
|
|
62
|
+
description:
|
|
63
|
+
"Boolean that determines whether HTML5 audio and video requires the user to tap them before they start playing. The default value is true. (Android API minimum version 17).",
|
|
64
|
+
}),
|
|
65
|
+
startInLoadingState: createStaticBoolProp({
|
|
66
|
+
label: "Start In Loading State",
|
|
67
|
+
group: GROUPS.advanced,
|
|
68
|
+
description:
|
|
69
|
+
"Boolean value that forces the WebView to show the loading view on the first load. This prop must be set to true in order for the renderLoading prop to work.",
|
|
70
|
+
}),
|
|
71
|
+
allowFileAccessFromFileURLs: createStaticBoolProp({
|
|
72
|
+
label: "Allow File Access From File URLs",
|
|
73
|
+
group: GROUPS.advanced,
|
|
74
|
+
description:
|
|
75
|
+
"Boolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs. The default value is false.",
|
|
76
|
+
}),
|
|
77
|
+
allowUniversalAccessFromFileURLs: createStaticBoolProp({
|
|
78
|
+
label: "Allow Universal Access From File URLs",
|
|
79
|
+
group: GROUPS.advanced,
|
|
80
|
+
description:
|
|
81
|
+
"Boolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. Including accessing content from other file scheme URLs. The default value is false.",
|
|
82
|
+
}),
|
|
83
|
+
cacheEnabled: createStaticBoolProp({
|
|
84
|
+
label: "Enable Cache",
|
|
85
|
+
defaultValue: true,
|
|
86
|
+
description: "Sets whether WebView should use browser caching.",
|
|
87
|
+
}),
|
|
88
|
+
incognito: createStaticBoolProp({
|
|
89
|
+
label: "Use Incognito Mode",
|
|
90
|
+
description:
|
|
91
|
+
"Does not store any data within the lifetime of the WebView.",
|
|
92
|
+
}),
|
|
93
|
+
userAgent: createTextProp({
|
|
94
|
+
group: GROUPS.advanced,
|
|
95
|
+
defaultValue: null,
|
|
96
|
+
label: "User Agent",
|
|
97
|
+
description: "Sets the user-agent for the WebView.",
|
|
98
|
+
}),
|
|
99
|
+
applicationNameForUserAgent: createTextProp({
|
|
100
|
+
group: GROUPS.advanced,
|
|
101
|
+
defaultValue: null,
|
|
102
|
+
label: "User Agent App Name",
|
|
103
|
+
description:
|
|
104
|
+
"Append to the existing user-agent. Setting userAgent will override this.",
|
|
105
|
+
}),
|
|
23
106
|
},
|
|
24
107
|
};
|