@makeswift/runtime 0.8.9 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Box.cjs.js +6 -6
- package/dist/Box.es.js +6 -6
- package/dist/Button.cjs.js +5 -6
- package/dist/Button.cjs.js.map +1 -1
- package/dist/Button.es.js +5 -6
- package/dist/Button.es.js.map +1 -1
- package/dist/Carousel.cjs.js +7 -8
- package/dist/Carousel.cjs.js.map +1 -1
- package/dist/Carousel.es.js +7 -8
- package/dist/Carousel.es.js.map +1 -1
- package/dist/Countdown.cjs.js +5 -6
- package/dist/Countdown.cjs.js.map +1 -1
- package/dist/Countdown.es.js +5 -6
- package/dist/Countdown.es.js.map +1 -1
- package/dist/Divider.cjs.js +5 -6
- package/dist/Divider.cjs.js.map +1 -1
- package/dist/Divider.es.js +5 -6
- package/dist/Divider.es.js.map +1 -1
- package/dist/Embed.cjs.js +7 -7
- package/dist/Embed.cjs.js.map +1 -1
- package/dist/Embed.es.js +7 -7
- package/dist/Form.cjs.js +5 -6
- package/dist/Form.cjs.js.map +1 -1
- package/dist/Form.es.js +6 -7
- package/dist/Form.es.js.map +1 -1
- package/dist/Image.cjs.js +4 -5
- package/dist/Image.cjs.js.map +1 -1
- package/dist/Image.es.js +5 -6
- package/dist/Image.es.js.map +1 -1
- package/dist/LiveProvider.cjs.js +8 -9
- package/dist/LiveProvider.cjs.js.map +1 -1
- package/dist/LiveProvider.es.js +8 -9
- package/dist/LiveProvider.es.js.map +1 -1
- package/dist/Navigation.cjs.js +7 -7
- package/dist/Navigation.cjs.js.map +1 -1
- package/dist/Navigation.es.js +7 -7
- package/dist/PreviewProvider.cjs.js +34 -35
- package/dist/PreviewProvider.cjs.js.map +1 -1
- package/dist/PreviewProvider.es.js +6 -7
- package/dist/PreviewProvider.es.js.map +1 -1
- package/dist/ReadOnlyText.cjs.js +72 -66
- package/dist/ReadOnlyText.cjs.js.map +1 -1
- package/dist/ReadOnlyText.es.js +18 -12
- package/dist/ReadOnlyText.es.js.map +1 -1
- package/dist/ReadOnlyTextV2.cjs.js +362 -0
- package/dist/ReadOnlyTextV2.cjs.js.map +1 -0
- package/dist/ReadOnlyTextV2.es.js +358 -0
- package/dist/ReadOnlyTextV2.es.js.map +1 -0
- package/dist/Root.cjs.js +6 -6
- package/dist/Root.es.js +6 -6
- package/dist/SocialLinks.cjs.js +5 -6
- package/dist/SocialLinks.cjs.js.map +1 -1
- package/dist/SocialLinks.es.js +5 -6
- package/dist/SocialLinks.es.js.map +1 -1
- package/dist/Text.cjs.js +6 -7
- package/dist/Text.cjs.js.map +1 -1
- package/dist/Text.es.js +7 -8
- package/dist/Text.es.js.map +1 -1
- package/dist/Video.cjs.js +5 -6
- package/dist/Video.cjs.js.map +1 -1
- package/dist/Video.es.js +5 -6
- package/dist/Video.es.js.map +1 -1
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js.map +1 -1
- package/dist/builder.cjs.js +6 -2
- package/dist/builder.cjs.js.map +1 -1
- package/dist/builder.es.js +6 -2
- package/dist/builder.es.js.map +1 -1
- package/dist/components.cjs.js +9 -9
- package/dist/components.es.js +9 -9
- package/dist/constants.cjs.js +0 -408
- package/dist/constants.cjs.js.map +1 -1
- package/dist/constants.es.js +1 -372
- package/dist/constants.es.js.map +1 -1
- package/dist/control-serialization.cjs.js +82 -41
- package/dist/control-serialization.cjs.js.map +1 -1
- package/dist/control-serialization.es.js +42 -1
- package/dist/control-serialization.es.js.map +1 -1
- package/dist/controls.cjs.js +58 -53
- package/dist/controls.cjs.js.map +1 -1
- package/dist/controls.es.js +8 -3
- package/dist/controls.es.js.map +1 -1
- package/dist/index.cjs.js +315 -394
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs10.js +371 -0
- package/dist/index.cjs10.js.map +1 -0
- package/dist/index.cjs2.js +11 -10
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs5.js +108 -98
- package/dist/index.cjs5.js.map +1 -1
- package/dist/index.cjs6.js +41 -42
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs7.js +65 -362
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs8.js +43 -0
- package/dist/index.cjs8.js.map +1 -0
- package/dist/index.cjs9.js +257 -0
- package/dist/index.cjs9.js.map +1 -0
- package/dist/index.es.js +77 -158
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +364 -0
- package/dist/index.es10.js.map +1 -0
- package/dist/index.es2.js +5 -4
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es3.js +1 -1
- package/dist/index.es5.js +72 -63
- package/dist/index.es5.js.map +1 -1
- package/dist/index.es6.js +36 -40
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es7.js +66 -358
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es8.js +40 -0
- package/dist/index.es8.js.map +1 -0
- package/dist/index.es9.js +250 -0
- package/dist/index.es9.js.map +1 -0
- package/dist/leaf.cjs.js +4 -4
- package/dist/leaf.cjs.js.map +1 -1
- package/dist/leaf.es.js +2 -2
- package/dist/leaf.es.js.map +1 -1
- package/dist/main.cjs.js +4 -4
- package/dist/main.es.js +4 -4
- package/dist/next.cjs.js +5 -6
- package/dist/next.cjs.js.map +1 -1
- package/dist/next.es.js +6 -7
- package/dist/next.es.js.map +1 -1
- package/dist/prop-controllers.cjs.js +10 -7
- package/dist/prop-controllers.cjs.js.map +1 -1
- package/dist/prop-controllers.es.js +6 -3
- package/dist/prop-controllers.es.js.map +1 -1
- package/dist/{descriptors.cjs.js → react-page.cjs.js} +865 -93
- package/dist/react-page.cjs.js.map +1 -0
- package/dist/{descriptors.es.js → react-page.es.js} +811 -92
- package/dist/react-page.es.js.map +1 -0
- package/dist/react.cjs.js +5 -6
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.es.js +5 -6
- package/dist/react.es.js.map +1 -1
- package/dist/select.cjs.js +8 -0
- package/dist/select.cjs.js.map +1 -0
- package/dist/select.es.js +6 -0
- package/dist/select.es.js.map +1 -0
- package/dist/slate.cjs.js +19 -6
- package/dist/slate.cjs.js.map +1 -1
- package/dist/slate.es.js +9 -4
- package/dist/slate.es.js.map +1 -1
- package/dist/state/breakpoints.cjs.js.map +1 -1
- package/dist/state/breakpoints.es.js.map +1 -1
- package/dist/text-input.cjs.js +0 -6
- package/dist/text-input.cjs.js.map +1 -1
- package/dist/text-input.es.js +1 -5
- package/dist/text-input.es.js.map +1 -1
- package/dist/types/src/api/graphql/generated/types.d.ts +36 -36
- package/dist/types/src/api/graphql/generated/types.d.ts.map +1 -1
- package/dist/types/src/api/graphql/types.d.ts +2 -2
- package/dist/types/src/api/graphql/types.d.ts.map +1 -1
- package/dist/types/src/api/react.d.ts +3 -3
- package/dist/types/src/api/react.d.ts.map +1 -1
- package/dist/types/src/builder/serialization/control-serialization.d.ts +66 -66
- package/dist/types/src/builder/serialization/control-serialization.d.ts.map +1 -1
- package/dist/types/src/builder/serialization/controls/rich-text-v2.d.ts +5 -0
- package/dist/types/src/builder/serialization/controls/rich-text-v2.d.ts.map +1 -0
- package/dist/types/src/builder/serialization/controls/types.d.ts +3 -3
- package/dist/types/src/builder/serialization/controls/types.d.ts.map +1 -1
- package/dist/types/src/builder/serialization/function-serialization.d.ts +4 -4
- package/dist/types/src/builder/serialization/function-serialization.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Box/animations.d.ts +1 -1
- package/dist/types/src/components/builtin/Box/animations.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Box/components/Placeholder/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Box/components/Placeholder/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Box/constants.d.ts +1 -1
- package/dist/types/src/components/builtin/Box/constants.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Button/Button.d.ts +3 -3
- package/dist/types/src/components/builtin/Button/Button.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Button/contants.d.ts +1 -1
- package/dist/types/src/components/builtin/Button/contants.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Carousel/Carousel.d.ts +1 -1
- package/dist/types/src/components/builtin/Carousel/Carousel.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Countdown/Countdown.d.ts +1 -1
- package/dist/types/src/components/builtin/Countdown/Countdown.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Divider/Divider.d.ts +2 -2
- package/dist/types/src/components/builtin/Divider/Divider.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Embed/Embed.d.ts +1 -1
- package/dist/types/src/components/builtin/Embed/Embed.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/Form.d.ts +2 -2
- package/dist/types/src/components/builtin/Form/Form.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/Checkbox/index.d.ts +2 -2
- package/dist/types/src/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/Input/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/Label/index.d.ts +2 -2
- package/dist/types/src/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/RadioButton/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/TextArea/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/URLTableField/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/URLTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/index.d.ts +2 -2
- package/dist/types/src/components/builtin/Form/components/Field/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Placeholder/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/context/FormContext.d.ts +5 -5
- package/dist/types/src/components/builtin/Form/context/FormContext.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/types.d.ts +13 -13
- package/dist/types/src/components/builtin/Form/types.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Image/Image.d.ts +1 -1
- package/dist/types/src/components/builtin/Image/Image.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/Navigation.d.ts +1 -1
- package/dist/types/src/components/builtin/Navigation/Navigation.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/components/DropDownButton/index.d.ts +3 -3
- package/dist/types/src/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts +3 -3
- package/dist/types/src/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/components/MobileMenu/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Root/Root.d.ts +1 -1
- package/dist/types/src/components/builtin/Root/Root.d.ts.map +1 -1
- package/dist/types/src/components/builtin/SocialLinks/SocialLinks.d.ts +1 -1
- package/dist/types/src/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
- package/dist/types/src/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts +1 -1
- package/dist/types/src/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/EditableText/editable-text.d.ts +1 -1
- package/dist/types/src/components/builtin/Text/EditableText/editable-text.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/ReadOnlyText.d.ts +4 -3
- package/dist/types/src/components/builtin/Text/ReadOnlyText.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/Text.d.ts +1 -1
- package/dist/types/src/components/builtin/Text/Text.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/components/Element/block.d.ts +2 -2
- package/dist/types/src/components/builtin/Text/components/Element/block.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/components/Element/inline.d.ts +1 -1
- package/dist/types/src/components/builtin/Text/components/Element/inline.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/components/Leaf/leaf.d.ts +5 -5
- package/dist/types/src/components/builtin/Text/components/Leaf/leaf.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Video/Video.d.ts +1 -1
- package/dist/types/src/components/builtin/Video/Video.d.ts.map +1 -1
- package/dist/types/src/components/hooks/useBackgrounds.d.ts +8 -8
- package/dist/types/src/components/hooks/useBackgrounds.d.ts.map +1 -1
- package/dist/types/src/components/hooks/useBorder.d.ts +3 -3
- package/dist/types/src/components/hooks/useBorder.d.ts.map +1 -1
- package/dist/types/src/components/hooks/useBoxShadow.d.ts +3 -3
- package/dist/types/src/components/hooks/useBoxShadow.d.ts.map +1 -1
- package/dist/types/src/components/page/BodySnippet.d.ts +1 -1
- package/dist/types/src/components/page/BodySnippet.d.ts.map +1 -1
- package/dist/types/src/components/page/Page.d.ts +1 -1
- package/dist/types/src/components/page/Page.d.ts.map +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/components/Parallax/index.d.ts +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/index.d.ts +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/FallbackComponent/FallbackComponent.d.ts +1 -1
- package/dist/types/src/components/shared/FallbackComponent/FallbackComponent.d.ts.map +1 -1
- package/dist/types/src/components/shared/GutterContainer/index.d.ts +2 -2
- package/dist/types/src/components/shared/GutterContainer/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/Link/index.d.ts +1 -1
- package/dist/types/src/components/shared/Link/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/grid-item.d.ts +2 -2
- package/dist/types/src/components/shared/grid-item.d.ts.map +1 -1
- package/dist/types/src/components/utils/drop-first.d.ts +1 -1
- package/dist/types/src/components/utils/drop-first.d.ts.map +1 -1
- package/dist/types/src/components/utils/types.d.ts +2 -2
- package/dist/types/src/components/utils/types.d.ts.map +1 -1
- package/dist/types/src/controls/checkbox.d.ts +3 -3
- package/dist/types/src/controls/checkbox.d.ts.map +1 -1
- package/dist/types/src/controls/color.d.ts +3 -3
- package/dist/types/src/controls/color.d.ts.map +1 -1
- package/dist/types/src/controls/combobox.d.ts +5 -5
- package/dist/types/src/controls/combobox.d.ts.map +1 -1
- package/dist/types/src/controls/control.d.ts +6 -4
- package/dist/types/src/controls/control.d.ts.map +1 -1
- package/dist/types/src/controls/image.d.ts +4 -4
- package/dist/types/src/controls/image.d.ts.map +1 -1
- package/dist/types/src/controls/link.d.ts +8 -8
- package/dist/types/src/controls/link.d.ts.map +1 -1
- package/dist/types/src/controls/list.d.ts +8 -7
- package/dist/types/src/controls/list.d.ts.map +1 -1
- package/dist/types/src/controls/number.d.ts +3 -3
- package/dist/types/src/controls/number.d.ts.map +1 -1
- package/dist/types/src/controls/rich-text/dto-types.d.ts +4 -4
- package/dist/types/src/controls/rich-text/dto-types.d.ts.map +1 -1
- package/dist/types/src/controls/rich-text/index.d.ts +0 -1
- package/dist/types/src/controls/rich-text/index.d.ts.map +1 -1
- package/dist/types/src/controls/rich-text/rich-text.d.ts +12 -12
- package/dist/types/src/controls/rich-text/rich-text.d.ts.map +1 -1
- package/dist/types/src/controls/rich-text/translation.d.ts +1 -1
- package/dist/types/src/controls/rich-text/translation.d.ts.map +1 -1
- package/dist/types/src/controls/rich-text-v2/rich-text-v2.d.ts +55 -13
- package/dist/types/src/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -1
- package/dist/types/src/controls/select.d.ts +5 -5
- package/dist/types/src/controls/select.d.ts.map +1 -1
- package/dist/types/src/controls/shape.d.ts +7 -6
- package/dist/types/src/controls/shape.d.ts.map +1 -1
- package/dist/types/src/controls/slot.d.ts +18 -9
- package/dist/types/src/controls/slot.d.ts.map +1 -1
- package/dist/types/src/controls/style.d.ts +20 -19
- package/dist/types/src/controls/style.d.ts.map +1 -1
- package/dist/types/src/controls/text-area.d.ts +3 -3
- package/dist/types/src/controls/text-area.d.ts.map +1 -1
- package/dist/types/src/controls/text-input.d.ts +3 -3
- package/dist/types/src/controls/text-input.d.ts.map +1 -1
- package/dist/types/src/controls/types.d.ts +5 -5
- package/dist/types/src/controls/types.d.ts.map +1 -1
- package/dist/types/src/css/border-radius.d.ts +2 -2
- package/dist/types/src/css/border-radius.d.ts.map +1 -1
- package/dist/types/src/css/border.d.ts +2 -2
- package/dist/types/src/css/border.d.ts.map +1 -1
- package/dist/types/src/css/length-percentage.d.ts +2 -2
- package/dist/types/src/css/length-percentage.d.ts.map +1 -1
- package/dist/types/src/css/length.d.ts +1 -1
- package/dist/types/src/css/length.d.ts.map +1 -1
- package/dist/types/src/css/margin.d.ts +2 -2
- package/dist/types/src/css/margin.d.ts.map +1 -1
- package/dist/types/src/css/padding.d.ts +2 -2
- package/dist/types/src/css/padding.d.ts.map +1 -1
- package/dist/types/src/next/api-handler/handlers/element-tree.d.ts +3 -3
- package/dist/types/src/next/api-handler/handlers/element-tree.d.ts.map +1 -1
- package/dist/types/src/next/api-handler/handlers/fonts.d.ts +5 -5
- package/dist/types/src/next/api-handler/handlers/fonts.d.ts.map +1 -1
- package/dist/types/src/next/api-handler/handlers/manifest.d.ts +3 -3
- package/dist/types/src/next/api-handler/handlers/manifest.d.ts.map +1 -1
- package/dist/types/src/next/api-handler/handlers/proxy-preview-mode.d.ts +2 -2
- package/dist/types/src/next/api-handler/handlers/proxy-preview-mode.d.ts.map +1 -1
- package/dist/types/src/next/api-handler/handlers/revalidate.d.ts +3 -3
- package/dist/types/src/next/api-handler/handlers/revalidate.d.ts.map +1 -1
- package/dist/types/src/next/api-handler/index.d.ts +3 -3
- package/dist/types/src/next/api-handler/index.d.ts.map +1 -1
- package/dist/types/src/next/client.d.ts +8 -8
- package/dist/types/src/next/client.d.ts.map +1 -1
- package/dist/types/src/next/dynamic.d.ts +4 -4
- package/dist/types/src/next/dynamic.d.ts.map +1 -1
- package/dist/types/src/next/index.d.ts +2 -2
- package/dist/types/src/next/index.d.ts.map +1 -1
- package/dist/types/src/next/preview-mode.d.ts +2 -2
- package/dist/types/src/next/preview-mode.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/base.d.ts +7 -0
- package/dist/types/src/prop-controllers/base.d.ts.map +1 -0
- package/dist/types/src/prop-controllers/descriptors.d.ts +179 -179
- package/dist/types/src/prop-controllers/descriptors.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/instances.d.ts +18 -22
- package/dist/types/src/prop-controllers/instances.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/components/LiveProvider.d.ts +1 -1
- package/dist/types/src/runtimes/react/components/LiveProvider.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/components/PreviewProvider.d.ts +1 -1
- package/dist/types/src/runtimes/react/components/PreviewProvider.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/components/render-hook.d.ts +1 -1
- package/dist/types/src/runtimes/react/components/render-hook.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/checkbox.d.ts +1 -1
- package/dist/types/src/runtimes/react/controls/checkbox.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/color.d.ts +1 -1
- package/dist/types/src/runtimes/react/controls/color.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/combobox.d.ts +1 -1
- package/dist/types/src/runtimes/react/controls/combobox.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/control.d.ts +2 -2
- package/dist/types/src/runtimes/react/controls/control.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/image.d.ts +3 -3
- package/dist/types/src/runtimes/react/controls/image.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/link.d.ts +2 -2
- package/dist/types/src/runtimes/react/controls/link.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/list.d.ts +3 -3
- package/dist/types/src/runtimes/react/controls/list.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/number.d.ts +1 -1
- package/dist/types/src/runtimes/react/controls/number.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.d.ts +13 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.d.ts.map +1 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/EditableTextV2/index.d.ts +4 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/EditableTextV2/index.d.ts.map +1 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/EditableTextV2/useSyncDOMSelection.d.ts +9 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/EditableTextV2/useSyncDOMSelection.d.ts.map +1 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.d.ts +24 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.d.ts.map +1 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/index.d.ts +2 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/index.d.ts.map +1 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/rich-text-v2.d.ts +8 -0
- package/dist/types/src/runtimes/react/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -0
- package/dist/types/src/runtimes/react/controls/rich-text.d.ts +2 -2
- package/dist/types/src/runtimes/react/controls/rich-text.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/select.d.ts +1 -1
- package/dist/types/src/runtimes/react/controls/select.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/shape.d.ts +2 -2
- package/dist/types/src/runtimes/react/controls/shape.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/slot.d.ts +4 -4
- package/dist/types/src/runtimes/react/controls/slot.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/style.d.ts +1 -1
- package/dist/types/src/runtimes/react/controls/style.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/text-area.d.ts +1 -1
- package/dist/types/src/runtimes/react/controls/text-area.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/text-input.d.ts +1 -1
- package/dist/types/src/runtimes/react/controls/text-input.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls.d.ts +8 -8
- package/dist/types/src/runtimes/react/controls.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/element-imperative-handle.d.ts +1 -1
- package/dist/types/src/runtimes/react/element-imperative-handle.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/find-dom-node.d.ts +1 -1
- package/dist/types/src/runtimes/react/find-dom-node.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/index.d.ts +7 -7
- package/dist/types/src/runtimes/react/index.d.ts.map +1 -1
- package/dist/types/src/slate/BlockPlugin/index.d.ts +33 -2
- package/dist/types/src/slate/BlockPlugin/index.d.ts.map +1 -1
- package/dist/types/src/slate/BlockPlugin/setBlockKeyForDevice.d.ts +1 -1
- package/dist/types/src/slate/BlockPlugin/setBlockKeyForDevice.d.ts.map +1 -1
- package/dist/types/src/slate/BlockPlugin/types.d.ts +3 -3
- package/dist/types/src/slate/BlockPlugin/types.d.ts.map +1 -1
- package/dist/types/src/slate/BlockPlugin/unwrapInline.d.ts +1 -1
- package/dist/types/src/slate/BlockPlugin/unwrapInline.d.ts.map +1 -1
- package/dist/types/src/slate/BlockPlugin/wrapInline.d.ts +1 -1
- package/dist/types/src/slate/BlockPlugin/wrapInline.d.ts.map +1 -1
- package/dist/types/src/slate/BuilderPlugin/index.d.ts +7 -0
- package/dist/types/src/slate/BuilderPlugin/index.d.ts.map +1 -0
- package/dist/types/src/slate/InlineModePlugin/index.d.ts +9 -0
- package/dist/types/src/slate/InlineModePlugin/index.d.ts.map +1 -0
- package/dist/types/src/slate/ListPlugin/index.d.ts +2 -2
- package/dist/types/src/slate/ListPlugin/index.d.ts.map +1 -1
- package/dist/types/src/slate/ListPlugin/toggleList.d.ts +2 -2
- package/dist/types/src/slate/ListPlugin/toggleList.d.ts.map +1 -1
- package/dist/types/src/slate/ListPlugin/unwrapList.d.ts +1 -1
- package/dist/types/src/slate/ListPlugin/unwrapList.d.ts.map +1 -1
- package/dist/types/src/slate/ListPlugin/wrapList.d.ts +2 -2
- package/dist/types/src/slate/ListPlugin/wrapList.d.ts.map +1 -1
- package/dist/types/src/slate/TypographyPlugin/clearActiveTypographyStyle.d.ts +1 -1
- package/dist/types/src/slate/TypographyPlugin/clearActiveTypographyStyle.d.ts.map +1 -1
- package/dist/types/src/slate/TypographyPlugin/clearDeviceActiveTypography.d.ts +1 -1
- package/dist/types/src/slate/TypographyPlugin/clearDeviceActiveTypography.d.ts.map +1 -1
- package/dist/types/src/slate/TypographyPlugin/detachActiveTypography.d.ts +2 -2
- package/dist/types/src/slate/TypographyPlugin/detachActiveTypography.d.ts.map +1 -1
- package/dist/types/src/slate/TypographyPlugin/index.d.ts +2 -2
- package/dist/types/src/slate/TypographyPlugin/index.d.ts.map +1 -1
- package/dist/types/src/slate/TypographyPlugin/setActiveTypographyId.d.ts +1 -1
- package/dist/types/src/slate/TypographyPlugin/setActiveTypographyId.d.ts.map +1 -1
- package/dist/types/src/slate/TypographyPlugin/setActiveTypographyStyle.d.ts +1 -1
- package/dist/types/src/slate/TypographyPlugin/setActiveTypographyStyle.d.ts.map +1 -1
- package/dist/types/src/slate/index.d.ts +3 -0
- package/dist/types/src/slate/index.d.ts.map +1 -1
- package/dist/types/src/slate/selectors.d.ts +1 -1
- package/dist/types/src/slate/selectors.d.ts.map +1 -1
- package/dist/types/src/{controls/rich-text → slate}/types.d.ts +56 -46
- package/dist/types/src/slate/types.d.ts.map +1 -0
- package/dist/types/src/slate/utils/editor.d.ts +1 -1
- package/dist/types/src/slate/utils/editor.d.ts.map +1 -1
- package/dist/types/src/slate/utils/element.d.ts +1 -1
- package/dist/types/src/slate/utils/element.d.ts.map +1 -1
- package/dist/types/src/state/actions.d.ts +43 -42
- package/dist/types/src/state/actions.d.ts.map +1 -1
- package/dist/types/src/state/makeswift-api-client.d.ts +5 -5
- package/dist/types/src/state/makeswift-api-client.d.ts.map +1 -1
- package/dist/types/src/state/modules/api-resources.d.ts +2 -2
- package/dist/types/src/state/modules/api-resources.d.ts.map +1 -1
- package/dist/types/src/state/modules/box-models.d.ts +2 -2
- package/dist/types/src/state/modules/box-models.d.ts.map +1 -1
- package/dist/types/src/state/modules/breakpoints.d.ts +9 -9
- package/dist/types/src/state/modules/breakpoints.d.ts.map +1 -1
- package/dist/types/src/state/modules/builder-edit-mode.d.ts +2 -2
- package/dist/types/src/state/modules/builder-edit-mode.d.ts.map +1 -1
- package/dist/types/src/state/modules/components-meta.d.ts +3 -3
- package/dist/types/src/state/modules/components-meta.d.ts.map +1 -1
- package/dist/types/src/state/modules/element-imperative-handles.d.ts +1 -1
- package/dist/types/src/state/modules/element-imperative-handles.d.ts.map +1 -1
- package/dist/types/src/state/modules/is-in-builder.d.ts +1 -1
- package/dist/types/src/state/modules/is-in-builder.d.ts.map +1 -1
- package/dist/types/src/state/modules/is-preview.d.ts +1 -1
- package/dist/types/src/state/modules/is-preview.d.ts.map +1 -1
- package/dist/types/src/state/modules/pointer.d.ts +2 -2
- package/dist/types/src/state/modules/pointer.d.ts.map +1 -1
- package/dist/types/src/state/modules/prop-controller-handles.d.ts +3 -2
- package/dist/types/src/state/modules/prop-controller-handles.d.ts.map +1 -1
- package/dist/types/src/state/modules/prop-controllers.d.ts +1 -1
- package/dist/types/src/state/modules/prop-controllers.d.ts.map +1 -1
- package/dist/types/src/state/modules/react-components.d.ts +2 -2
- package/dist/types/src/state/modules/react-components.d.ts.map +1 -1
- package/dist/types/src/state/modules/read-only-documents.d.ts +7 -7
- package/dist/types/src/state/modules/read-only-documents.d.ts.map +1 -1
- package/dist/types/src/state/modules/read-write-documents.d.ts +1 -1
- package/dist/types/src/state/modules/read-write-documents.d.ts.map +1 -1
- package/dist/types/src/state/react-builder-preview.d.ts +5 -6
- package/dist/types/src/state/react-builder-preview.d.ts.map +1 -1
- package/dist/types/src/state/react-page.d.ts +11 -7
- package/dist/types/src/state/react-page.d.ts.map +1 -1
- package/dist/types/src/state/react-page.test.d.ts +3 -0
- package/dist/types/src/state/react-page.test.d.ts.map +1 -0
- package/dist/types/src/utils/isErrorWithMessage.d.ts +1 -1
- package/dist/types/src/utils/isErrorWithMessage.d.ts.map +1 -1
- package/dist/useIsomorphicLayoutEffect.cjs.js +6 -0
- package/dist/useIsomorphicLayoutEffect.cjs.js.map +1 -0
- package/dist/useIsomorphicLayoutEffect.es.js +5 -0
- package/dist/useIsomorphicLayoutEffect.es.js.map +1 -0
- package/package.json +4 -3
- package/dist/descriptors.cjs.js.map +0 -1
- package/dist/descriptors.es.js.map +0 -1
- package/dist/introspection.cjs.js +0 -331
- package/dist/introspection.cjs.js.map +0 -1
- package/dist/introspection.es.js +0 -317
- package/dist/introspection.es.js.map +0 -1
- package/dist/types/src/controls/rich-text/types.d.ts.map +0 -1
- package/dist/types/src/runtimes/react/controls/rich-text-v2.d.ts +0 -15
- package/dist/types/src/runtimes/react/controls/rich-text-v2.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slate/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slate/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Editor, NodeEntry, Range } from 'slate';
|
|
2
2
|
import { EditableBlockKey } from './BlockPlugin/types';
|
|
3
|
-
import { RootBlock, Inline, RootBlockType, ResponsiveBlockTextAlignment, BlockTextAlignment, RichTextTypography } from '../controls';
|
|
4
3
|
import { Breakpoints, BreakpointId } from '../state/modules/breakpoints';
|
|
4
|
+
import { RootBlock, Inline, RootBlockType, ResponsiveBlockTextAlignment, BlockTextAlignment, RichTextTypography } from './types';
|
|
5
5
|
export declare function getSelection(editor: Editor): Range;
|
|
6
6
|
export declare function getBlocksInSelection(editor: Editor): NodeEntry<RootBlock>[];
|
|
7
7
|
export declare function getInlinesInSelection(editor: Editor): NodeEntry<Inline>[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/slate/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAQ,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAOtD,OAAO,EACL,SAAS,EACT,MAAM,EACN,aAAa,EACb,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/slate/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,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,WAAW,GACvB,kBAAkB,CAcpB"}
|
|
@@ -1,39 +1,42 @@
|
|
|
1
1
|
import { BaseEditor, Descendant } from 'slate';
|
|
2
2
|
import { ReactEditor } from 'slate-react';
|
|
3
|
-
import { LinkControlData } from '../
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { LinkControlData } from '../controls';
|
|
4
|
+
import { HistoryEditor } from 'slate-history';
|
|
5
|
+
import { BuilderEditor } from '.';
|
|
6
|
+
import { ResponsiveValue } from '../prop-controllers';
|
|
7
|
+
export type RichTextTypography = {
|
|
6
8
|
id?: string;
|
|
7
9
|
style: Array<{
|
|
8
10
|
deviceId: string;
|
|
9
11
|
value: {
|
|
10
|
-
fontFamily?: string;
|
|
11
|
-
lineHeight?: number;
|
|
12
|
-
letterSpacing?: number;
|
|
13
|
-
fontWeight?: number;
|
|
14
|
-
textAlign?: string;
|
|
15
|
-
uppercase?: boolean;
|
|
16
|
-
underline?: boolean;
|
|
17
|
-
strikethrough?: boolean;
|
|
18
|
-
italic?: boolean;
|
|
12
|
+
fontFamily?: string | null;
|
|
13
|
+
lineHeight?: number | null;
|
|
14
|
+
letterSpacing?: number | null;
|
|
15
|
+
fontWeight?: number | null;
|
|
16
|
+
textAlign?: string | null;
|
|
17
|
+
uppercase?: boolean | null;
|
|
18
|
+
underline?: boolean | null;
|
|
19
|
+
strikethrough?: boolean | null;
|
|
20
|
+
italic?: boolean | null;
|
|
19
21
|
fontSize?: {
|
|
20
22
|
value: number | null;
|
|
21
23
|
unit: string | null;
|
|
22
|
-
};
|
|
24
|
+
} | null;
|
|
23
25
|
color?: {
|
|
24
26
|
swatchId: string | null;
|
|
25
27
|
alpha: number | null;
|
|
26
|
-
};
|
|
28
|
+
} | null;
|
|
27
29
|
};
|
|
28
30
|
}>;
|
|
29
31
|
};
|
|
30
|
-
export
|
|
32
|
+
export type Text = {
|
|
31
33
|
text: string;
|
|
32
34
|
typography?: RichTextTypography;
|
|
33
35
|
slice?: boolean;
|
|
34
36
|
};
|
|
35
37
|
export declare const RootBlockType: {
|
|
36
|
-
readonly
|
|
38
|
+
readonly Default: "default";
|
|
39
|
+
readonly Text: "text-block";
|
|
37
40
|
readonly Paragraph: "paragraph";
|
|
38
41
|
readonly Heading1: "heading-one";
|
|
39
42
|
readonly Heading2: "heading-two";
|
|
@@ -45,11 +48,12 @@ export declare const RootBlockType: {
|
|
|
45
48
|
readonly UnorderedList: "unordered-list";
|
|
46
49
|
readonly OrderedList: "ordered-list";
|
|
47
50
|
};
|
|
48
|
-
export
|
|
51
|
+
export type RootBlockType = typeof RootBlockType[keyof typeof RootBlockType];
|
|
49
52
|
export declare const BlockType: {
|
|
50
53
|
readonly ListItem: "list-item";
|
|
51
54
|
readonly ListItemChild: "list-item-child";
|
|
52
|
-
readonly
|
|
55
|
+
readonly Default: "default";
|
|
56
|
+
readonly Text: "text-block";
|
|
53
57
|
readonly Paragraph: "paragraph";
|
|
54
58
|
readonly Heading1: "heading-one";
|
|
55
59
|
readonly Heading2: "heading-two";
|
|
@@ -61,69 +65,74 @@ export declare const BlockType: {
|
|
|
61
65
|
readonly UnorderedList: "unordered-list";
|
|
62
66
|
readonly OrderedList: "ordered-list";
|
|
63
67
|
};
|
|
64
|
-
export
|
|
65
|
-
export
|
|
68
|
+
export type BlockType = typeof BlockType[keyof typeof BlockType];
|
|
69
|
+
export type DefaultElement = {
|
|
70
|
+
textAlign?: ResponsiveBlockTextAlignment;
|
|
71
|
+
children: Array<Element | Text>;
|
|
72
|
+
type: typeof BlockType.Default;
|
|
73
|
+
};
|
|
74
|
+
export type TextElement = {
|
|
66
75
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
67
76
|
children: Array<Element | Text>;
|
|
68
77
|
type: typeof BlockType.Text;
|
|
69
78
|
};
|
|
70
|
-
export
|
|
79
|
+
export type ParagraphElement = {
|
|
71
80
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
72
81
|
children: Array<Element | Text>;
|
|
73
82
|
type: typeof BlockType.Paragraph;
|
|
74
83
|
};
|
|
75
|
-
export
|
|
84
|
+
export type Heading1Element = {
|
|
76
85
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
77
86
|
children: Array<Element | Text>;
|
|
78
87
|
type: typeof BlockType.Heading1;
|
|
79
88
|
};
|
|
80
|
-
export
|
|
89
|
+
export type Heading2Element = {
|
|
81
90
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
82
91
|
children: Array<Element | Text>;
|
|
83
92
|
type: typeof BlockType.Heading2;
|
|
84
93
|
};
|
|
85
|
-
export
|
|
94
|
+
export type Heading3Element = {
|
|
86
95
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
87
96
|
children: Array<Element | Text>;
|
|
88
97
|
type: typeof BlockType.Heading3;
|
|
89
98
|
};
|
|
90
|
-
export
|
|
99
|
+
export type Heading4Element = {
|
|
91
100
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
92
101
|
children: Array<Element | Text>;
|
|
93
102
|
type: typeof BlockType.Heading4;
|
|
94
103
|
};
|
|
95
|
-
export
|
|
104
|
+
export type Heading5Element = {
|
|
96
105
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
97
106
|
children: Array<Element | Text>;
|
|
98
107
|
type: typeof BlockType.Heading5;
|
|
99
108
|
};
|
|
100
|
-
export
|
|
109
|
+
export type Heading6Element = {
|
|
101
110
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
102
111
|
children: Array<Element | Text>;
|
|
103
112
|
type: typeof BlockType.Heading6;
|
|
104
113
|
};
|
|
105
|
-
export
|
|
114
|
+
export type BlockQuoteElement = {
|
|
106
115
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
107
116
|
children: Array<Element | Text>;
|
|
108
117
|
type: typeof BlockType.BlockQuote;
|
|
109
118
|
};
|
|
110
|
-
export
|
|
119
|
+
export type UnorderedListElement = {
|
|
111
120
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
112
121
|
children: Array<Element | Text>;
|
|
113
122
|
type: typeof BlockType.UnorderedList;
|
|
114
123
|
};
|
|
115
|
-
export
|
|
124
|
+
export type OrderedListElement = {
|
|
116
125
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
117
126
|
children: Array<Element | Text>;
|
|
118
127
|
type: typeof BlockType.OrderedList;
|
|
119
128
|
};
|
|
120
|
-
export
|
|
121
|
-
export
|
|
129
|
+
export type ListElement = OrderedListElement | UnorderedListElement;
|
|
130
|
+
export type ListItemElement = {
|
|
122
131
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
123
132
|
children: Array<Element | Text>;
|
|
124
133
|
type: typeof BlockType.ListItem;
|
|
125
134
|
};
|
|
126
|
-
export
|
|
135
|
+
export type ListItemChildElement = {
|
|
127
136
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
128
137
|
children: Array<Element | Text>;
|
|
129
138
|
type: typeof BlockType.ListItemChild;
|
|
@@ -134,40 +143,41 @@ export declare const InlineType: {
|
|
|
134
143
|
readonly SubScript: "subscript";
|
|
135
144
|
readonly Link: "link";
|
|
136
145
|
};
|
|
137
|
-
export
|
|
146
|
+
export type InlineType = typeof InlineType[keyof typeof InlineType];
|
|
138
147
|
export declare const BlockTextAlignment: {
|
|
139
148
|
readonly Left: "left";
|
|
140
149
|
readonly Center: "center";
|
|
141
150
|
readonly Right: "right";
|
|
142
151
|
readonly Justify: "justify";
|
|
143
152
|
};
|
|
144
|
-
export
|
|
145
|
-
export
|
|
146
|
-
export
|
|
153
|
+
export type BlockTextAlignment = typeof BlockTextAlignment[keyof typeof BlockTextAlignment];
|
|
154
|
+
export type ResponsiveBlockTextAlignment = ResponsiveValue<BlockTextAlignment>;
|
|
155
|
+
export type CodeElement = {
|
|
147
156
|
children: Array<Text | Inline>;
|
|
148
157
|
type: typeof InlineType.Code;
|
|
149
158
|
};
|
|
150
|
-
export
|
|
159
|
+
export type SuperElement = {
|
|
151
160
|
children: Array<Text | Inline>;
|
|
152
161
|
type: typeof InlineType.SuperScript;
|
|
153
162
|
};
|
|
154
|
-
export
|
|
163
|
+
export type SubElement = {
|
|
155
164
|
children: Array<Text | Inline>;
|
|
156
165
|
type: typeof InlineType.SubScript;
|
|
157
166
|
};
|
|
158
|
-
export
|
|
167
|
+
export type LinkElement = {
|
|
159
168
|
children: Array<Text | Inline>;
|
|
160
169
|
type: typeof InlineType.Link;
|
|
161
170
|
link: LinkControlData;
|
|
162
171
|
};
|
|
163
|
-
export
|
|
164
|
-
export
|
|
165
|
-
export
|
|
166
|
-
export
|
|
167
|
-
export
|
|
172
|
+
export type RootBlock = DefaultElement | TextElement | ParagraphElement | Heading1Element | Heading2Element | Heading3Element | Heading4Element | Heading5Element | Heading6Element | BlockQuoteElement | ListElement;
|
|
173
|
+
export type Block = RootBlock | ListItemElement | ListItemChildElement;
|
|
174
|
+
export type Inline = CodeElement | SuperElement | SubElement | LinkElement;
|
|
175
|
+
export type Element = Block | Inline;
|
|
176
|
+
export type RichTextDAO = Descendant[];
|
|
177
|
+
export type MakeswiftEditor = BaseEditor & ReactEditor & HistoryEditor & BuilderEditor;
|
|
168
178
|
declare module 'slate' {
|
|
169
179
|
interface CustomTypes {
|
|
170
|
-
Editor:
|
|
180
|
+
Editor: MakeswiftEditor;
|
|
171
181
|
Element: Element;
|
|
172
182
|
Text: Text;
|
|
173
183
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/slate/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,E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IAAI,CAAA;IAC5B,IAAI,EAAE,eAAe,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,WAAW,GACX,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,eAAe,GACf,eAAe,GACf,eAAe,GACf,eAAe,GACf,iBAAiB,GACjB,WAAW,CAAA;AAEf,MAAM,MAAM,KAAK,GAAG,SAAS,GAAG,eAAe,GAAG,oBAAoB,CAAA;AAEtE,MAAM,MAAM,MAAM,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,CAAA;AAE1E,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,MAAM,CAAA;AAEpC,MAAM,MAAM,WAAW,GAAG,UAAU,EAAE,CAAA;AAEtC,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,aAAa,CAAA;AAEtF,OAAO,QAAQ,OAAO,CAAC;IACrB,UAAU,WAAW;QACnB,MAAM,EAAE,eAAe,CAAA;QACvB,OAAO,EAAE,OAAO,CAAA;QAChB,IAAI,EAAE,IAAI,CAAA;KACX;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Path, Editor, NodeEntry } from 'slate';
|
|
2
|
-
import { ListElement, ListItemElement } from '
|
|
2
|
+
import { ListElement, ListItemElement } from '../types';
|
|
3
3
|
export declare const EditorUtils: {
|
|
4
4
|
getFirstAncestorList(editor: Editor, path: Path): NodeEntry<ListElement> | null;
|
|
5
5
|
getFirstAncestorListItem(editor: Editor, path: Path): NodeEntry<ListItemElement> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../../src/slate/utils/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG/C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../../src/slate/utils/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG/C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAEvD,eAAO,MAAM,WAAW;iCACO,MAAM,eAAe,UAAU,WAAW,CAAC,GAAG,IAAI;qCAW9C,MAAM,eAAe,UAAU,eAAe,CAAC,GAAG,IAAI;CAYxF,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Node } from 'slate';
|
|
2
|
-
import { RootBlock, BlockType, Block, Inline, ParagraphElement, OrderedListElement, UnorderedListElement, ListItemElement, ListItemChildElement } from '
|
|
2
|
+
import { RootBlock, BlockType, Block, Inline, ParagraphElement, OrderedListElement, UnorderedListElement, ListItemElement, ListItemChildElement } from '../types';
|
|
3
3
|
export declare const ElementUtils: {
|
|
4
4
|
isRootBlock(node: Node): node is RootBlock;
|
|
5
5
|
isBlock(node: Node): node is Block;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../../../src/slate/utils/element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,OAAO,CAAA;AACrC,OAAO,EACL,SAAS,EACT,SAAS,EACT,KAAK,EACL,MAAM,EAEN,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../../../src/slate/utils/element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,OAAO,CAAA;AACrC,OAAO,EACL,SAAS,EACT,SAAS,EACT,KAAK,EACL,MAAM,EAEN,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACrB,MAAM,UAAU,CAAA;AAEjB,eAAO,MAAM,YAAY;sBACL,IAAI;kBAkBR,IAAI;mBAQH,IAAI;sCAQe,IAAI;sBAGpB,IAAI;iBAGT,IAAI;qBAMA,IAAI;0BAGC,IAAI;;;;;;;;;;sBAYT,SAAS,GAA6B,KAAK;sBAG1C,KAAK;2BAMA,KAAK;CAM7B,CAAA"}
|
|
@@ -7,7 +7,8 @@ import { ComponentMeta } from './modules/components-meta';
|
|
|
7
7
|
import { PropControllerDescriptor } from '../prop-controllers';
|
|
8
8
|
import type { Size } from './react-builder-preview';
|
|
9
9
|
import type { PropControllersHandle } from './modules/prop-controller-handles';
|
|
10
|
-
import type {
|
|
10
|
+
import type { PropControllerMessage } from '../prop-controllers/instances';
|
|
11
|
+
import type { PropController } from '../prop-controllers/base';
|
|
11
12
|
import type { APIResource, APIResourceType } from '../api/graphql/types';
|
|
12
13
|
import type { SerializedControl } from '../builder';
|
|
13
14
|
import { ElementImperativeHandle } from '../runtimes/react/element-imperative-handle';
|
|
@@ -58,33 +59,33 @@ export declare const ActionTypes: {
|
|
|
58
59
|
readonly ELEMENT_FROM_POINT_CHANGE: "ELEMENT_FROM_POINT_CHANGE";
|
|
59
60
|
readonly SET_BREAKPOINTS: "SET_BREAKPOINTS";
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
+
type InitAction = {
|
|
62
63
|
type: typeof ActionTypes.INIT;
|
|
63
64
|
};
|
|
64
|
-
|
|
65
|
+
type CleanUpAction = {
|
|
65
66
|
type: typeof ActionTypes.CLEAN_UP;
|
|
66
67
|
};
|
|
67
|
-
|
|
68
|
+
type RegisterDocumentAction = {
|
|
68
69
|
type: typeof ActionTypes.REGISTER_DOCUMENT;
|
|
69
70
|
payload: {
|
|
70
71
|
documentKey: string;
|
|
71
72
|
document: Document;
|
|
72
73
|
};
|
|
73
74
|
};
|
|
74
|
-
|
|
75
|
+
type UnregisterDocumentAction = {
|
|
75
76
|
type: typeof ActionTypes.UNREGISTER_DOCUMENT;
|
|
76
77
|
payload: {
|
|
77
78
|
documentKey: string;
|
|
78
79
|
};
|
|
79
80
|
};
|
|
80
|
-
|
|
81
|
+
type ChangeDocumentAction = {
|
|
81
82
|
type: typeof ActionTypes.CHANGE_DOCUMENT;
|
|
82
83
|
payload: {
|
|
83
84
|
documentKey: string;
|
|
84
85
|
operation: Operation;
|
|
85
86
|
};
|
|
86
87
|
};
|
|
87
|
-
|
|
88
|
+
type RegisterComponentAction = {
|
|
88
89
|
type: typeof ActionTypes.REGISTER_COMPONENT;
|
|
89
90
|
payload: {
|
|
90
91
|
type: string;
|
|
@@ -92,13 +93,13 @@ declare type RegisterComponentAction = {
|
|
|
92
93
|
propControllerDescriptors: Record<string, PropControllerDescriptor>;
|
|
93
94
|
};
|
|
94
95
|
};
|
|
95
|
-
|
|
96
|
+
type UnregisterComponentAction = {
|
|
96
97
|
type: typeof ActionTypes.UNREGISTER_COMPONENT;
|
|
97
98
|
payload: {
|
|
98
99
|
type: string;
|
|
99
100
|
};
|
|
100
101
|
};
|
|
101
|
-
|
|
102
|
+
type RegisterBuilderComponentAction = {
|
|
102
103
|
type: typeof ActionTypes.REGISTER_BUILDER_COMPONENT;
|
|
103
104
|
payload: {
|
|
104
105
|
type: string;
|
|
@@ -106,40 +107,40 @@ declare type RegisterBuilderComponentAction = {
|
|
|
106
107
|
serializedControls: Record<string, SerializedControl>;
|
|
107
108
|
};
|
|
108
109
|
};
|
|
109
|
-
|
|
110
|
+
type UnregisterBuilderComponentAction = {
|
|
110
111
|
type: typeof ActionTypes.UNREGISTER_BUILDER_COMPONENT;
|
|
111
112
|
payload: {
|
|
112
113
|
type: string;
|
|
113
114
|
};
|
|
114
115
|
};
|
|
115
|
-
|
|
116
|
+
type RegisterReactComponentAction = {
|
|
116
117
|
type: typeof ActionTypes.REGISTER_REACT_COMPONENT;
|
|
117
118
|
payload: {
|
|
118
119
|
type: string;
|
|
119
120
|
component: ComponentType;
|
|
120
121
|
};
|
|
121
122
|
};
|
|
122
|
-
|
|
123
|
+
type UnregisterReactComponentAction = {
|
|
123
124
|
type: typeof ActionTypes.UNREGISTER_REACT_COMPONENT;
|
|
124
125
|
payload: {
|
|
125
126
|
type: string;
|
|
126
127
|
};
|
|
127
128
|
};
|
|
128
|
-
|
|
129
|
+
type MountComponentAction = {
|
|
129
130
|
type: typeof ActionTypes.MOUNT_COMPONENT;
|
|
130
131
|
payload: {
|
|
131
132
|
documentKey: string;
|
|
132
133
|
elementKey: string;
|
|
133
134
|
};
|
|
134
135
|
};
|
|
135
|
-
|
|
136
|
+
type UnmountComponentAction = {
|
|
136
137
|
type: typeof ActionTypes.UNMOUNT_COMPONENT;
|
|
137
138
|
payload: {
|
|
138
139
|
documentKey: string;
|
|
139
140
|
elementKey: string;
|
|
140
141
|
};
|
|
141
142
|
};
|
|
142
|
-
|
|
143
|
+
type RegisterComponentHandleAction = {
|
|
143
144
|
type: typeof ActionTypes.REGISTER_COMPONENT_HANDLE;
|
|
144
145
|
payload: {
|
|
145
146
|
documentKey: string;
|
|
@@ -147,14 +148,14 @@ declare type RegisterComponentHandleAction = {
|
|
|
147
148
|
componentHandle: ElementImperativeHandle;
|
|
148
149
|
};
|
|
149
150
|
};
|
|
150
|
-
|
|
151
|
+
type UnregisterComponentHandleAction = {
|
|
151
152
|
type: typeof ActionTypes.UNREGISTER_COMPONENT_HANDLE;
|
|
152
153
|
payload: {
|
|
153
154
|
documentKey: string;
|
|
154
155
|
elementKey: string;
|
|
155
156
|
};
|
|
156
157
|
};
|
|
157
|
-
|
|
158
|
+
type RegisterMeasurableAction = {
|
|
158
159
|
type: typeof ActionTypes.REGISTER_MEASURABLE;
|
|
159
160
|
payload: {
|
|
160
161
|
documentKey: string;
|
|
@@ -162,38 +163,38 @@ declare type RegisterMeasurableAction = {
|
|
|
162
163
|
measurable: Measurable;
|
|
163
164
|
};
|
|
164
165
|
};
|
|
165
|
-
|
|
166
|
+
type UnregisterMeasurableAction = {
|
|
166
167
|
type: typeof ActionTypes.UNREGISTER_MEASURABLE;
|
|
167
168
|
payload: {
|
|
168
169
|
documentKey: string;
|
|
169
170
|
elementKey: string;
|
|
170
171
|
};
|
|
171
172
|
};
|
|
172
|
-
|
|
173
|
+
type ChangeElementBoxModelsAction = {
|
|
173
174
|
type: typeof ActionTypes.CHANGE_ELEMENT_BOX_MODELS;
|
|
174
175
|
payload: {
|
|
175
176
|
changedElementBoxModels: Map<string, Map<string, BoxModel | null>>;
|
|
176
177
|
};
|
|
177
178
|
};
|
|
178
|
-
|
|
179
|
+
type ChangeDocumentElementSizeAction = {
|
|
179
180
|
type: typeof ActionTypes.CHANGE_DOCUMENT_ELEMENT_SIZE;
|
|
180
181
|
payload: {
|
|
181
182
|
size: Size;
|
|
182
183
|
};
|
|
183
184
|
};
|
|
184
|
-
|
|
185
|
+
type ChangeDocumentElementScrollTopAction = {
|
|
185
186
|
type: typeof ActionTypes.CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP;
|
|
186
187
|
payload: {
|
|
187
188
|
scrollTop: number;
|
|
188
189
|
};
|
|
189
190
|
};
|
|
190
|
-
|
|
191
|
+
type ScrollDocumentElementAction = {
|
|
191
192
|
type: typeof ActionTypes.SCROLL_DOCUMENT_ELEMENT;
|
|
192
193
|
payload: {
|
|
193
194
|
scrollTopDelta: number;
|
|
194
195
|
};
|
|
195
196
|
};
|
|
196
|
-
|
|
197
|
+
type RegisterPropControllersHandleAction = {
|
|
197
198
|
type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS_HANDLE;
|
|
198
199
|
payload: {
|
|
199
200
|
documentKey: string;
|
|
@@ -201,14 +202,14 @@ declare type RegisterPropControllersHandleAction = {
|
|
|
201
202
|
handle: PropControllersHandle;
|
|
202
203
|
};
|
|
203
204
|
};
|
|
204
|
-
|
|
205
|
+
type UnregisterPropControllersHandleAction = {
|
|
205
206
|
type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS_HANDLE;
|
|
206
207
|
payload: {
|
|
207
208
|
documentKey: string;
|
|
208
209
|
elementKey: string;
|
|
209
210
|
};
|
|
210
211
|
};
|
|
211
|
-
|
|
212
|
+
type RegisterPropControllersAction = {
|
|
212
213
|
type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS;
|
|
213
214
|
payload: {
|
|
214
215
|
documentKey: string;
|
|
@@ -216,14 +217,14 @@ declare type RegisterPropControllersAction = {
|
|
|
216
217
|
propControllers: Record<string, PropController>;
|
|
217
218
|
};
|
|
218
219
|
};
|
|
219
|
-
|
|
220
|
+
type UnregisterPropControllersAction = {
|
|
220
221
|
type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS;
|
|
221
222
|
payload: {
|
|
222
223
|
documentKey: string;
|
|
223
224
|
elementKey: string;
|
|
224
225
|
};
|
|
225
226
|
};
|
|
226
|
-
|
|
227
|
+
type MessageHostPropControllerAction<T = PropControllerMessage> = {
|
|
227
228
|
type: typeof ActionTypes.MESSAGE_HOST_PROP_CONTROLLER;
|
|
228
229
|
payload: {
|
|
229
230
|
documentKey: string;
|
|
@@ -232,7 +233,7 @@ declare type MessageHostPropControllerAction<T = PropControllerMessage> = {
|
|
|
232
233
|
message: T;
|
|
233
234
|
};
|
|
234
235
|
};
|
|
235
|
-
|
|
236
|
+
type MessageBuilderPropControllerAction<T = PropControllerMessage> = {
|
|
236
237
|
type: typeof ActionTypes.MESSAGE_BUILDER_PROP_CONTROLLER;
|
|
237
238
|
payload: {
|
|
238
239
|
documentKey: string;
|
|
@@ -241,37 +242,37 @@ declare type MessageBuilderPropControllerAction<T = PropControllerMessage> = {
|
|
|
241
242
|
message: T;
|
|
242
243
|
};
|
|
243
244
|
};
|
|
244
|
-
|
|
245
|
+
type ChangeAPIResourceAction = {
|
|
245
246
|
type: typeof ActionTypes.CHANGE_API_RESOURCE;
|
|
246
247
|
payload: {
|
|
247
248
|
resource: APIResource;
|
|
248
249
|
};
|
|
249
250
|
};
|
|
250
|
-
|
|
251
|
+
type EvictAPIResourceAction = {
|
|
251
252
|
type: typeof ActionTypes.EVICT_API_RESOURCE;
|
|
252
253
|
payload: {
|
|
253
254
|
id: string;
|
|
254
255
|
};
|
|
255
256
|
};
|
|
256
|
-
|
|
257
|
+
type SetIsInBuilderAction = {
|
|
257
258
|
type: typeof ActionTypes.SET_IS_IN_BUILDER;
|
|
258
259
|
payload: boolean;
|
|
259
260
|
};
|
|
260
|
-
|
|
261
|
+
type HandleWheelAction = {
|
|
261
262
|
type: typeof ActionTypes.HANDLE_WHEEL;
|
|
262
263
|
payload: {
|
|
263
264
|
deltaX: number;
|
|
264
265
|
deltaY: number;
|
|
265
266
|
};
|
|
266
267
|
};
|
|
267
|
-
|
|
268
|
+
type HandlePointerMoveAction = {
|
|
268
269
|
type: typeof ActionTypes.HANDLE_POINTER_MOVE;
|
|
269
270
|
payload: {
|
|
270
271
|
clientX: number;
|
|
271
272
|
clientY: number;
|
|
272
273
|
};
|
|
273
274
|
};
|
|
274
|
-
|
|
275
|
+
type APIResourceFulfilledAction = {
|
|
275
276
|
type: typeof ActionTypes.API_RESOURCE_FULFILLED;
|
|
276
277
|
payload: {
|
|
277
278
|
resourceType: APIResourceType;
|
|
@@ -279,31 +280,31 @@ declare type APIResourceFulfilledAction = {
|
|
|
279
280
|
resource: APIResource | null;
|
|
280
281
|
};
|
|
281
282
|
};
|
|
282
|
-
|
|
283
|
+
type SetBuilderEditModeAction = {
|
|
283
284
|
type: typeof ActionTypes.SET_BUILDER_EDIT_MODE;
|
|
284
285
|
payload: {
|
|
285
286
|
editMode: BuilderEditMode;
|
|
286
287
|
};
|
|
287
288
|
};
|
|
288
|
-
|
|
289
|
+
type ChangePathnameAction = {
|
|
289
290
|
type: typeof ActionTypes.CHANGE_PATHNAME;
|
|
290
291
|
payload: {
|
|
291
292
|
pathname: string;
|
|
292
293
|
};
|
|
293
294
|
};
|
|
294
|
-
|
|
295
|
+
type ChangePathnameStartAction = {
|
|
295
296
|
type: typeof ActionTypes.CHANGE_PATHNAME_START;
|
|
296
297
|
};
|
|
297
|
-
|
|
298
|
+
type ChangePathnameCompleteAction = {
|
|
298
299
|
type: typeof ActionTypes.CHANGE_PATHNAME_COMPLETE;
|
|
299
300
|
};
|
|
300
|
-
|
|
301
|
+
type BuilderPointerMoveAction = {
|
|
301
302
|
type: typeof ActionTypes.BUILDER_POINTER_MOVE;
|
|
302
303
|
payload: {
|
|
303
304
|
pointer: Point | null;
|
|
304
305
|
};
|
|
305
306
|
};
|
|
306
|
-
|
|
307
|
+
type ElementFromPointChangeAction = {
|
|
307
308
|
type: typeof ActionTypes.ELEMENT_FROM_POINT_CHANGE;
|
|
308
309
|
payload: {
|
|
309
310
|
keys: {
|
|
@@ -312,13 +313,13 @@ declare type ElementFromPointChangeAction = {
|
|
|
312
313
|
} | null;
|
|
313
314
|
};
|
|
314
315
|
};
|
|
315
|
-
export
|
|
316
|
+
export type SetBreakpointsAction = {
|
|
316
317
|
type: typeof ActionTypes.SET_BREAKPOINTS;
|
|
317
318
|
payload: {
|
|
318
319
|
breakpoints: Breakpoints;
|
|
319
320
|
};
|
|
320
321
|
};
|
|
321
|
-
export
|
|
322
|
+
export type Action = InitAction | CleanUpAction | ChangeDocumentAction | RegisterDocumentAction | UnregisterDocumentAction | RegisterComponentAction | UnregisterComponentAction | RegisterBuilderComponentAction | UnregisterBuilderComponentAction | RegisterReactComponentAction | UnregisterReactComponentAction | MountComponentAction | UnmountComponentAction | RegisterComponentHandleAction | UnregisterComponentHandleAction | RegisterMeasurableAction | UnregisterMeasurableAction | ChangeElementBoxModelsAction | ChangeDocumentElementSizeAction | ChangeDocumentElementScrollTopAction | ScrollDocumentElementAction | RegisterPropControllersHandleAction | UnregisterPropControllersHandleAction | RegisterPropControllersAction | UnregisterPropControllersAction | MessageHostPropControllerAction | MessageBuilderPropControllerAction | ChangeAPIResourceAction | EvictAPIResourceAction | SetIsInBuilderAction | HandleWheelAction | HandlePointerMoveAction | APIResourceFulfilledAction | SetBuilderEditModeAction | ChangePathnameAction | ChangePathnameStartAction | ChangePathnameCompleteAction | BuilderPointerMoveAction | ElementFromPointChangeAction | SetBreakpointsAction;
|
|
322
323
|
export declare function init(): InitAction;
|
|
323
324
|
export declare function cleanUp(): CleanUpAction;
|
|
324
325
|
export declare function registerDocument(document: Document): RegisterDocumentAction;
|