@makeswift/runtime 0.8.10 → 0.9.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/dist/Box.cjs.js +6 -4
- package/dist/Box.cjs.js.map +1 -1
- package/dist/Box.es.js +6 -4
- package/dist/Box.es.js.map +1 -1
- package/dist/Button.cjs.js +6 -4
- package/dist/Button.cjs.js.map +1 -1
- package/dist/Button.es.js +6 -4
- package/dist/Button.es.js.map +1 -1
- package/dist/Carousel.cjs.js +9 -7
- package/dist/Carousel.cjs.js.map +1 -1
- package/dist/Carousel.es.js +9 -7
- package/dist/Carousel.es.js.map +1 -1
- package/dist/Countdown.cjs.js +6 -4
- package/dist/Countdown.cjs.js.map +1 -1
- package/dist/Countdown.es.js +6 -4
- package/dist/Countdown.es.js.map +1 -1
- package/dist/Divider.cjs.js +6 -4
- package/dist/Divider.cjs.js.map +1 -1
- package/dist/Divider.es.js +6 -4
- package/dist/Divider.es.js.map +1 -1
- package/dist/Embed.cjs.js +6 -4
- package/dist/Embed.cjs.js.map +1 -1
- package/dist/Embed.es.js +6 -4
- package/dist/Embed.es.js.map +1 -1
- package/dist/Form.cjs.js +6 -4
- package/dist/Form.cjs.js.map +1 -1
- package/dist/Form.es.js +6 -4
- package/dist/Form.es.js.map +1 -1
- package/dist/Image.cjs.js +6 -4
- package/dist/Image.cjs.js.map +1 -1
- package/dist/Image.es.js +6 -4
- package/dist/Image.es.js.map +1 -1
- package/dist/LiveProvider.cjs.js +8 -6
- package/dist/LiveProvider.cjs.js.map +1 -1
- package/dist/LiveProvider.es.js +7 -5
- package/dist/LiveProvider.es.js.map +1 -1
- package/dist/Navigation.cjs.js +6 -4
- package/dist/Navigation.cjs.js.map +1 -1
- package/dist/Navigation.es.js +6 -4
- package/dist/Navigation.es.js.map +1 -1
- package/dist/PreviewProvider.cjs.js +51 -34
- package/dist/PreviewProvider.cjs.js.map +1 -1
- package/dist/PreviewProvider.es.js +23 -6
- package/dist/PreviewProvider.es.js.map +1 -1
- package/dist/ReadOnlyText.cjs.js +72 -67
- package/dist/ReadOnlyText.cjs.js.map +1 -1
- package/dist/ReadOnlyText.es.js +18 -13
- package/dist/ReadOnlyText.es.js.map +1 -1
- package/dist/ReadOnlyTextV2.cjs.js +136 -91
- package/dist/ReadOnlyTextV2.cjs.js.map +1 -1
- package/dist/ReadOnlyTextV2.es.js +82 -37
- package/dist/ReadOnlyTextV2.es.js.map +1 -1
- package/dist/Root.cjs.js +6 -4
- package/dist/Root.cjs.js.map +1 -1
- package/dist/Root.es.js +6 -4
- package/dist/Root.es.js.map +1 -1
- package/dist/SocialLinks.cjs.js +6 -4
- package/dist/SocialLinks.cjs.js.map +1 -1
- package/dist/SocialLinks.es.js +6 -4
- package/dist/SocialLinks.es.js.map +1 -1
- package/dist/Text.cjs.js +7 -5
- package/dist/Text.cjs.js.map +1 -1
- package/dist/Text.es.js +7 -5
- package/dist/Text.es.js.map +1 -1
- package/dist/Video.cjs.js +6 -4
- package/dist/Video.cjs.js.map +1 -1
- package/dist/Video.es.js +6 -4
- package/dist/Video.es.js.map +1 -1
- package/dist/actions.cjs.js +16 -1
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +14 -2
- package/dist/actions.es.js.map +1 -1
- package/dist/builder.cjs.js +7 -2
- package/dist/builder.cjs.js.map +1 -1
- package/dist/builder.es.js +7 -2
- package/dist/builder.es.js.map +1 -1
- package/dist/components.cjs.js +8 -6
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +8 -6
- package/dist/components.es.js.map +1 -1
- 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 +84 -41
- package/dist/control-serialization.cjs.js.map +1 -1
- package/dist/control-serialization.es.js +44 -1
- package/dist/control-serialization.es.js.map +1 -1
- package/dist/controls.cjs.js +58 -50
- 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 +534 -495
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs10.js +372 -0
- package/dist/index.cjs10.js.map +1 -0
- package/dist/index.cjs2.js +10 -8
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs5.js +2 -480
- package/dist/index.cjs5.js.map +1 -1
- package/dist/index.cjs6.js +6 -7
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs7.js +17 -39
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs8.js +14 -180
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs9.js +191 -265
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.es.js +299 -260
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +365 -0
- package/dist/index.es10.js.map +1 -0
- package/dist/index.es2.js +5 -3
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es5.js +3 -471
- package/dist/index.es5.js.map +1 -1
- package/dist/index.es6.js +4 -5
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es7.js +17 -37
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es8.js +13 -175
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es9.js +188 -262
- package/dist/index.es9.js.map +1 -1
- package/dist/leaf.cjs.js +4 -4
- package/dist/leaf.cjs.js.map +1 -1
- package/dist/leaf.es.js +1 -1
- package/dist/leaf.es.js.map +1 -1
- package/dist/main.cjs.js +8 -4
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +6 -5
- package/dist/main.es.js.map +1 -1
- package/dist/next.cjs.js +6 -4
- package/dist/next.cjs.js.map +1 -1
- package/dist/next.es.js +6 -4
- package/dist/next.es.js.map +1 -1
- package/dist/prop-controllers.cjs.js +11 -7
- package/dist/prop-controllers.cjs.js.map +1 -1
- package/dist/prop-controllers.es.js +7 -3
- package/dist/prop-controllers.es.js.map +1 -1
- package/dist/{descriptors.cjs.js → react-page.cjs.js} +1559 -102
- package/dist/react-page.cjs.js.map +1 -0
- package/dist/{descriptors.es.js → react-page.es.js} +1469 -80
- package/dist/react-page.es.js.map +1 -0
- package/dist/react.cjs.js +6 -4
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.es.js +6 -4
- package/dist/react.es.js.map +1 -1
- package/dist/slate.cjs.js +17 -11
- package/dist/slate.cjs.js.map +1 -1
- package/dist/slate.es.js +7 -5
- 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/documents/queries.d.ts.map +1 -1
- package/dist/types/src/api/graphql/generated/types.d.ts +36 -44
- 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/Carousel/register.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/Countdown/register.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/Divider/register.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/Embed/register.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/register.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/Navigation/register.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/SocialLinks/register.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 +3 -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/builtin/Video/register.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 +6 -6
- 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/rich-text.d.ts +11 -11
- 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 +39 -18
- 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 +5 -5
- package/dist/types/src/controls/shape.d.ts.map +1 -1
- package/dist/types/src/controls/slot.d.ts +17 -8
- package/dist/types/src/controls/slot.d.ts.map +1 -1
- package/dist/types/src/controls/style.d.ts +18 -18
- 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/index.d.ts +2 -1
- package/dist/types/src/index.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 +6 -4
- 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 +5 -4
- package/dist/types/src/next/api-handler/index.d.ts.map +1 -1
- package/dist/types/src/next/client.d.ts +15 -15
- 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 +10 -7
- package/dist/types/src/next/index.d.ts.map +1 -1
- package/dist/types/src/next/preview-mode.d.ts +18 -4
- package/dist/types/src/next/preview-mode.d.ts.map +1 -1
- 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 +17 -17
- 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 +3 -3
- package/dist/types/src/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.d.ts +7 -4
- package/dist/types/src/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/rich-text-v2/rich-text-v2.d.ts +2 -2
- package/dist/types/src/runtimes/react/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -1
- 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 +10 -8
- package/dist/types/src/runtimes/react/index.d.ts.map +1 -1
- package/dist/types/src/slate/BlockPlugin/constants.d.ts.map +1 -0
- package/dist/types/src/slate/BlockPlugin/dedent.d.ts.map +1 -0
- package/dist/types/src/slate/BlockPlugin/indent.d.ts.map +1 -0
- package/dist/types/src/slate/BlockPlugin/index.d.ts +56 -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/{ListPlugin → BlockPlugin}/toggleList.d.ts +2 -2
- package/dist/types/src/slate/BlockPlugin/toggleList.d.ts.map +1 -0
- 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/{ListPlugin → BlockPlugin}/unwrapList.d.ts +1 -1
- package/dist/types/src/slate/BlockPlugin/unwrapList.d.ts.map +1 -0
- package/dist/types/src/slate/BlockPlugin/utils/filterForSubtreeRoots.d.ts.map +1 -0
- package/dist/types/src/slate/BlockPlugin/utils/getSelectedListItems.d.ts.map +1 -0
- package/dist/types/src/slate/BlockPlugin/utils/location.d.ts.map +1 -0
- 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/{ListPlugin → BlockPlugin}/wrapList.d.ts +2 -2
- package/dist/types/src/slate/BlockPlugin/wrapList.d.ts.map +1 -0
- package/dist/types/src/slate/BuilderPlugin/index.d.ts +1 -1
- package/dist/types/src/slate/BuilderPlugin/index.d.ts.map +1 -1
- package/dist/types/src/slate/InlineModePlugin/index.d.ts +6 -2
- package/dist/types/src/slate/InlineModePlugin/index.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 +1 -1
- 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/{types/slate.d.ts → src/slate/types.d.ts} +42 -35
- 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 -2
- package/dist/types/src/slate/utils/element.d.ts.map +1 -1
- package/dist/types/src/state/actions.d.ts +66 -41
- 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 +27 -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/locales.d.ts +16 -0
- package/dist/types/src/state/modules/locales.d.ts.map +1 -0
- 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 +1 -1
- 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 +7 -6
- package/dist/types/src/state/react-builder-preview.d.ts.map +1 -1
- package/dist/types/src/state/react-page.d.ts +15 -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/package.json +8 -4
- package/dist/descriptors.cjs.js.map +0 -1
- package/dist/descriptors.es.js.map +0 -1
- package/dist/element.cjs.js +0 -55
- package/dist/element.cjs.js.map +0 -1
- package/dist/element.es.js +0 -54
- package/dist/element.es.js.map +0 -1
- package/dist/introspection.cjs.js +0 -329
- package/dist/introspection.cjs.js.map +0 -1
- package/dist/introspection.es.js +0 -315
- package/dist/introspection.es.js.map +0 -1
- package/dist/slate.cjs2.js +0 -46
- package/dist/slate.cjs2.js.map +0 -1
- package/dist/slate.es2.js +0 -44
- package/dist/slate.es2.js.map +0 -1
- package/dist/types/src/slate/ListPlugin/constants.d.ts.map +0 -1
- package/dist/types/src/slate/ListPlugin/dedent.d.ts.map +0 -1
- package/dist/types/src/slate/ListPlugin/indent.d.ts.map +0 -1
- package/dist/types/src/slate/ListPlugin/index.d.ts +0 -17
- package/dist/types/src/slate/ListPlugin/index.d.ts.map +0 -1
- package/dist/types/src/slate/ListPlugin/toggleList.d.ts.map +0 -1
- package/dist/types/src/slate/ListPlugin/unwrapList.d.ts.map +0 -1
- package/dist/types/src/slate/ListPlugin/utils/filterForSubtreeRoots.d.ts.map +0 -1
- package/dist/types/src/slate/ListPlugin/utils/getSelectedListItems.d.ts.map +0 -1
- package/dist/types/src/slate/ListPlugin/utils/location.d.ts.map +0 -1
- package/dist/types/src/slate/ListPlugin/wrapList.d.ts.map +0 -1
- package/dist/types/types/slate.d.ts.map +0 -1
- /package/dist/types/src/slate/{ListPlugin → BlockPlugin}/constants.d.ts +0 -0
- /package/dist/types/src/slate/{ListPlugin → BlockPlugin}/dedent.d.ts +0 -0
- /package/dist/types/src/slate/{ListPlugin → BlockPlugin}/indent.d.ts +0 -0
- /package/dist/types/src/slate/{ListPlugin → BlockPlugin}/utils/filterForSubtreeRoots.d.ts +0 -0
- /package/dist/types/src/slate/{ListPlugin → BlockPlugin}/utils/getSelectedListItems.d.ts +0 -0
- /package/dist/types/src/slate/{ListPlugin → BlockPlugin}/utils/location.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slate/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slate/index.ts"],"names":[],"mappings":"AAAA,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
3
|
import { Breakpoints, BreakpointId } from '../state/modules/breakpoints';
|
|
4
|
-
import { RootBlock, Inline, RootBlockType, ResponsiveBlockTextAlignment, BlockTextAlignment, RichTextTypography } from '
|
|
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,EAAE,WAAW,EAAE,YAAY,EAA0B,MAAM,8BAA8B,CAAA;AAGhG,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,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAQ,MAAM,OAA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@
|
|
|
1
1
|
import { BaseEditor, Descendant } from 'slate';
|
|
2
2
|
import { ReactEditor } from 'slate-react';
|
|
3
|
-
import { LinkControlData } from '../
|
|
3
|
+
import { LinkControlData } from '../controls';
|
|
4
4
|
import { HistoryEditor } from 'slate-history';
|
|
5
|
-
import { BuilderEditor } from '
|
|
6
|
-
import { ResponsiveValue } from '../
|
|
7
|
-
export
|
|
5
|
+
import { BuilderEditor } from '.';
|
|
6
|
+
import { ResponsiveValue } from '../prop-controllers';
|
|
7
|
+
export type RichTextTypography = {
|
|
8
8
|
id?: string;
|
|
9
9
|
style: Array<{
|
|
10
10
|
deviceId: string;
|
|
@@ -29,12 +29,13 @@ export declare type RichTextTypography = {
|
|
|
29
29
|
};
|
|
30
30
|
}>;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type Text = {
|
|
33
33
|
text: string;
|
|
34
34
|
typography?: RichTextTypography;
|
|
35
35
|
slice?: boolean;
|
|
36
36
|
};
|
|
37
37
|
export declare const RootBlockType: {
|
|
38
|
+
readonly Default: "default";
|
|
38
39
|
readonly Text: "text-block";
|
|
39
40
|
readonly Paragraph: "paragraph";
|
|
40
41
|
readonly Heading1: "heading-one";
|
|
@@ -47,10 +48,11 @@ export declare const RootBlockType: {
|
|
|
47
48
|
readonly UnorderedList: "unordered-list";
|
|
48
49
|
readonly OrderedList: "ordered-list";
|
|
49
50
|
};
|
|
50
|
-
export
|
|
51
|
+
export type RootBlockType = typeof RootBlockType[keyof typeof RootBlockType];
|
|
51
52
|
export declare const BlockType: {
|
|
52
53
|
readonly ListItem: "list-item";
|
|
53
54
|
readonly ListItemChild: "list-item-child";
|
|
55
|
+
readonly Default: "default";
|
|
54
56
|
readonly Text: "text-block";
|
|
55
57
|
readonly Paragraph: "paragraph";
|
|
56
58
|
readonly Heading1: "heading-one";
|
|
@@ -63,69 +65,74 @@ export declare const BlockType: {
|
|
|
63
65
|
readonly UnorderedList: "unordered-list";
|
|
64
66
|
readonly OrderedList: "ordered-list";
|
|
65
67
|
};
|
|
66
|
-
export
|
|
67
|
-
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 = {
|
|
68
75
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
69
76
|
children: Array<Element | Text>;
|
|
70
77
|
type: typeof BlockType.Text;
|
|
71
78
|
};
|
|
72
|
-
export
|
|
79
|
+
export type ParagraphElement = {
|
|
73
80
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
74
81
|
children: Array<Element | Text>;
|
|
75
82
|
type: typeof BlockType.Paragraph;
|
|
76
83
|
};
|
|
77
|
-
export
|
|
84
|
+
export type Heading1Element = {
|
|
78
85
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
79
86
|
children: Array<Element | Text>;
|
|
80
87
|
type: typeof BlockType.Heading1;
|
|
81
88
|
};
|
|
82
|
-
export
|
|
89
|
+
export type Heading2Element = {
|
|
83
90
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
84
91
|
children: Array<Element | Text>;
|
|
85
92
|
type: typeof BlockType.Heading2;
|
|
86
93
|
};
|
|
87
|
-
export
|
|
94
|
+
export type Heading3Element = {
|
|
88
95
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
89
96
|
children: Array<Element | Text>;
|
|
90
97
|
type: typeof BlockType.Heading3;
|
|
91
98
|
};
|
|
92
|
-
export
|
|
99
|
+
export type Heading4Element = {
|
|
93
100
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
94
101
|
children: Array<Element | Text>;
|
|
95
102
|
type: typeof BlockType.Heading4;
|
|
96
103
|
};
|
|
97
|
-
export
|
|
104
|
+
export type Heading5Element = {
|
|
98
105
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
99
106
|
children: Array<Element | Text>;
|
|
100
107
|
type: typeof BlockType.Heading5;
|
|
101
108
|
};
|
|
102
|
-
export
|
|
109
|
+
export type Heading6Element = {
|
|
103
110
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
104
111
|
children: Array<Element | Text>;
|
|
105
112
|
type: typeof BlockType.Heading6;
|
|
106
113
|
};
|
|
107
|
-
export
|
|
114
|
+
export type BlockQuoteElement = {
|
|
108
115
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
109
116
|
children: Array<Element | Text>;
|
|
110
117
|
type: typeof BlockType.BlockQuote;
|
|
111
118
|
};
|
|
112
|
-
export
|
|
119
|
+
export type UnorderedListElement = {
|
|
113
120
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
114
121
|
children: Array<Element | Text>;
|
|
115
122
|
type: typeof BlockType.UnorderedList;
|
|
116
123
|
};
|
|
117
|
-
export
|
|
124
|
+
export type OrderedListElement = {
|
|
118
125
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
119
126
|
children: Array<Element | Text>;
|
|
120
127
|
type: typeof BlockType.OrderedList;
|
|
121
128
|
};
|
|
122
|
-
export
|
|
123
|
-
export
|
|
129
|
+
export type ListElement = OrderedListElement | UnorderedListElement;
|
|
130
|
+
export type ListItemElement = {
|
|
124
131
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
125
132
|
children: Array<Element | Text>;
|
|
126
133
|
type: typeof BlockType.ListItem;
|
|
127
134
|
};
|
|
128
|
-
export
|
|
135
|
+
export type ListItemChildElement = {
|
|
129
136
|
textAlign?: ResponsiveBlockTextAlignment;
|
|
130
137
|
children: Array<Element | Text>;
|
|
131
138
|
type: typeof BlockType.ListItemChild;
|
|
@@ -136,38 +143,38 @@ export declare const InlineType: {
|
|
|
136
143
|
readonly SubScript: "subscript";
|
|
137
144
|
readonly Link: "link";
|
|
138
145
|
};
|
|
139
|
-
export
|
|
146
|
+
export type InlineType = typeof InlineType[keyof typeof InlineType];
|
|
140
147
|
export declare const BlockTextAlignment: {
|
|
141
148
|
readonly Left: "left";
|
|
142
149
|
readonly Center: "center";
|
|
143
150
|
readonly Right: "right";
|
|
144
151
|
readonly Justify: "justify";
|
|
145
152
|
};
|
|
146
|
-
export
|
|
147
|
-
export
|
|
148
|
-
export
|
|
153
|
+
export type BlockTextAlignment = typeof BlockTextAlignment[keyof typeof BlockTextAlignment];
|
|
154
|
+
export type ResponsiveBlockTextAlignment = ResponsiveValue<BlockTextAlignment>;
|
|
155
|
+
export type CodeElement = {
|
|
149
156
|
children: Array<Text | Inline>;
|
|
150
157
|
type: typeof InlineType.Code;
|
|
151
158
|
};
|
|
152
|
-
export
|
|
159
|
+
export type SuperElement = {
|
|
153
160
|
children: Array<Text | Inline>;
|
|
154
161
|
type: typeof InlineType.SuperScript;
|
|
155
162
|
};
|
|
156
|
-
export
|
|
163
|
+
export type SubElement = {
|
|
157
164
|
children: Array<Text | Inline>;
|
|
158
165
|
type: typeof InlineType.SubScript;
|
|
159
166
|
};
|
|
160
|
-
export
|
|
167
|
+
export type LinkElement = {
|
|
161
168
|
children: Array<Text | Inline>;
|
|
162
169
|
type: typeof InlineType.Link;
|
|
163
170
|
link: LinkControlData;
|
|
164
171
|
};
|
|
165
|
-
export
|
|
166
|
-
export
|
|
167
|
-
export
|
|
168
|
-
export
|
|
169
|
-
export
|
|
170
|
-
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;
|
|
171
178
|
declare module 'slate' {
|
|
172
179
|
interface CustomTypes {
|
|
173
180
|
Editor: MakeswiftEditor;
|
|
@@ -175,4 +182,4 @@ declare module 'slate' {
|
|
|
175
182
|
Text: Text;
|
|
176
183
|
}
|
|
177
184
|
}
|
|
178
|
-
//# sourceMappingURL=
|
|
185
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -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,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,KAAK,CAAC;QACX,QAAQ,EAAE,MAAM,CAAA;QAChB,KAAK,EAAE;YACL,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;YAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;YAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;YAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;YAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;YACzB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;YAC1B,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;YAC1B,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;YAC9B,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;YACvB,QAAQ,CAAC,EAAE;gBAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;gBAAC,IAAI,EAAE,M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,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,11 +1,10 @@
|
|
|
1
1
|
import { Node } from 'slate';
|
|
2
|
-
import { RootBlock, BlockType, Block, Inline,
|
|
2
|
+
import { RootBlock, BlockType, Block, Inline, 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;
|
|
6
6
|
isInline(node: Node): node is Inline;
|
|
7
7
|
isConvertibleToListTextNode(node: Node): boolean;
|
|
8
|
-
isParagraph(node: Node): node is ParagraphElement;
|
|
9
8
|
isList(node: Node): node is OrderedListElement | UnorderedListElement;
|
|
10
9
|
isListItem(node: Node): node is ListItemElement;
|
|
11
10
|
isListItemChild(node: Node): node is ListItemChildElement;
|
|
@@ -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,
|
|
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,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACrB,MAAM,UAAU,CAAA;AAEjB,eAAO,MAAM,YAAY;sBACL,IAAI;kBAkBR,IAAI;mBAQH,IAAI;sCAQe,IAAI;iBAGzB,IAAI;qBAMA,IAAI;0BAGC,IAAI;;;;;;;;;;sBAYT,SAAS,GAA6B,KAAK;sBAG1C,KAAK;2BAMA,KAAK;CAM7B,CAAA"}
|
|
@@ -15,6 +15,7 @@ import { ElementImperativeHandle } from '../runtimes/react/element-imperative-ha
|
|
|
15
15
|
import { BuilderEditMode } from './modules/builder-edit-mode';
|
|
16
16
|
import type { Point } from './modules/pointer';
|
|
17
17
|
import { Breakpoints } from './modules/breakpoints';
|
|
18
|
+
import { Locale, Locales } from './modules/locales';
|
|
18
19
|
export declare const ActionTypes: {
|
|
19
20
|
readonly INIT: "INIT";
|
|
20
21
|
readonly CLEAN_UP: "CLEAN_UP";
|
|
@@ -58,34 +59,37 @@ export declare const ActionTypes: {
|
|
|
58
59
|
readonly BUILDER_POINTER_MOVE: "BUILDER_POINTER_MOVE";
|
|
59
60
|
readonly ELEMENT_FROM_POINT_CHANGE: "ELEMENT_FROM_POINT_CHANGE";
|
|
60
61
|
readonly SET_BREAKPOINTS: "SET_BREAKPOINTS";
|
|
62
|
+
readonly SET_LOCALES: "SET_LOCALES";
|
|
63
|
+
readonly SET_LOCALE: "SET_LOCALE";
|
|
64
|
+
readonly SET_DEFAULT_LOCALE: "SET_DEFAULT_LOCALE";
|
|
61
65
|
};
|
|
62
|
-
|
|
66
|
+
type InitAction = {
|
|
63
67
|
type: typeof ActionTypes.INIT;
|
|
64
68
|
};
|
|
65
|
-
|
|
69
|
+
type CleanUpAction = {
|
|
66
70
|
type: typeof ActionTypes.CLEAN_UP;
|
|
67
71
|
};
|
|
68
|
-
|
|
72
|
+
type RegisterDocumentAction = {
|
|
69
73
|
type: typeof ActionTypes.REGISTER_DOCUMENT;
|
|
70
74
|
payload: {
|
|
71
75
|
documentKey: string;
|
|
72
76
|
document: Document;
|
|
73
77
|
};
|
|
74
78
|
};
|
|
75
|
-
|
|
79
|
+
type UnregisterDocumentAction = {
|
|
76
80
|
type: typeof ActionTypes.UNREGISTER_DOCUMENT;
|
|
77
81
|
payload: {
|
|
78
82
|
documentKey: string;
|
|
79
83
|
};
|
|
80
84
|
};
|
|
81
|
-
|
|
85
|
+
type ChangeDocumentAction = {
|
|
82
86
|
type: typeof ActionTypes.CHANGE_DOCUMENT;
|
|
83
87
|
payload: {
|
|
84
88
|
documentKey: string;
|
|
85
89
|
operation: Operation;
|
|
86
90
|
};
|
|
87
91
|
};
|
|
88
|
-
|
|
92
|
+
type RegisterComponentAction = {
|
|
89
93
|
type: typeof ActionTypes.REGISTER_COMPONENT;
|
|
90
94
|
payload: {
|
|
91
95
|
type: string;
|
|
@@ -93,13 +97,13 @@ declare type RegisterComponentAction = {
|
|
|
93
97
|
propControllerDescriptors: Record<string, PropControllerDescriptor>;
|
|
94
98
|
};
|
|
95
99
|
};
|
|
96
|
-
|
|
100
|
+
type UnregisterComponentAction = {
|
|
97
101
|
type: typeof ActionTypes.UNREGISTER_COMPONENT;
|
|
98
102
|
payload: {
|
|
99
103
|
type: string;
|
|
100
104
|
};
|
|
101
105
|
};
|
|
102
|
-
|
|
106
|
+
type RegisterBuilderComponentAction = {
|
|
103
107
|
type: typeof ActionTypes.REGISTER_BUILDER_COMPONENT;
|
|
104
108
|
payload: {
|
|
105
109
|
type: string;
|
|
@@ -107,40 +111,40 @@ declare type RegisterBuilderComponentAction = {
|
|
|
107
111
|
serializedControls: Record<string, SerializedControl>;
|
|
108
112
|
};
|
|
109
113
|
};
|
|
110
|
-
|
|
114
|
+
type UnregisterBuilderComponentAction = {
|
|
111
115
|
type: typeof ActionTypes.UNREGISTER_BUILDER_COMPONENT;
|
|
112
116
|
payload: {
|
|
113
117
|
type: string;
|
|
114
118
|
};
|
|
115
119
|
};
|
|
116
|
-
|
|
120
|
+
type RegisterReactComponentAction = {
|
|
117
121
|
type: typeof ActionTypes.REGISTER_REACT_COMPONENT;
|
|
118
122
|
payload: {
|
|
119
123
|
type: string;
|
|
120
124
|
component: ComponentType;
|
|
121
125
|
};
|
|
122
126
|
};
|
|
123
|
-
|
|
127
|
+
type UnregisterReactComponentAction = {
|
|
124
128
|
type: typeof ActionTypes.UNREGISTER_REACT_COMPONENT;
|
|
125
129
|
payload: {
|
|
126
130
|
type: string;
|
|
127
131
|
};
|
|
128
132
|
};
|
|
129
|
-
|
|
133
|
+
type MountComponentAction = {
|
|
130
134
|
type: typeof ActionTypes.MOUNT_COMPONENT;
|
|
131
135
|
payload: {
|
|
132
136
|
documentKey: string;
|
|
133
137
|
elementKey: string;
|
|
134
138
|
};
|
|
135
139
|
};
|
|
136
|
-
|
|
140
|
+
type UnmountComponentAction = {
|
|
137
141
|
type: typeof ActionTypes.UNMOUNT_COMPONENT;
|
|
138
142
|
payload: {
|
|
139
143
|
documentKey: string;
|
|
140
144
|
elementKey: string;
|
|
141
145
|
};
|
|
142
146
|
};
|
|
143
|
-
|
|
147
|
+
type RegisterComponentHandleAction = {
|
|
144
148
|
type: typeof ActionTypes.REGISTER_COMPONENT_HANDLE;
|
|
145
149
|
payload: {
|
|
146
150
|
documentKey: string;
|
|
@@ -148,14 +152,14 @@ declare type RegisterComponentHandleAction = {
|
|
|
148
152
|
componentHandle: ElementImperativeHandle;
|
|
149
153
|
};
|
|
150
154
|
};
|
|
151
|
-
|
|
155
|
+
type UnregisterComponentHandleAction = {
|
|
152
156
|
type: typeof ActionTypes.UNREGISTER_COMPONENT_HANDLE;
|
|
153
157
|
payload: {
|
|
154
158
|
documentKey: string;
|
|
155
159
|
elementKey: string;
|
|
156
160
|
};
|
|
157
161
|
};
|
|
158
|
-
|
|
162
|
+
type RegisterMeasurableAction = {
|
|
159
163
|
type: typeof ActionTypes.REGISTER_MEASURABLE;
|
|
160
164
|
payload: {
|
|
161
165
|
documentKey: string;
|
|
@@ -163,38 +167,38 @@ declare type RegisterMeasurableAction = {
|
|
|
163
167
|
measurable: Measurable;
|
|
164
168
|
};
|
|
165
169
|
};
|
|
166
|
-
|
|
170
|
+
type UnregisterMeasurableAction = {
|
|
167
171
|
type: typeof ActionTypes.UNREGISTER_MEASURABLE;
|
|
168
172
|
payload: {
|
|
169
173
|
documentKey: string;
|
|
170
174
|
elementKey: string;
|
|
171
175
|
};
|
|
172
176
|
};
|
|
173
|
-
|
|
177
|
+
type ChangeElementBoxModelsAction = {
|
|
174
178
|
type: typeof ActionTypes.CHANGE_ELEMENT_BOX_MODELS;
|
|
175
179
|
payload: {
|
|
176
180
|
changedElementBoxModels: Map<string, Map<string, BoxModel | null>>;
|
|
177
181
|
};
|
|
178
182
|
};
|
|
179
|
-
|
|
183
|
+
type ChangeDocumentElementSizeAction = {
|
|
180
184
|
type: typeof ActionTypes.CHANGE_DOCUMENT_ELEMENT_SIZE;
|
|
181
185
|
payload: {
|
|
182
186
|
size: Size;
|
|
183
187
|
};
|
|
184
188
|
};
|
|
185
|
-
|
|
189
|
+
type ChangeDocumentElementScrollTopAction = {
|
|
186
190
|
type: typeof ActionTypes.CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP;
|
|
187
191
|
payload: {
|
|
188
192
|
scrollTop: number;
|
|
189
193
|
};
|
|
190
194
|
};
|
|
191
|
-
|
|
195
|
+
type ScrollDocumentElementAction = {
|
|
192
196
|
type: typeof ActionTypes.SCROLL_DOCUMENT_ELEMENT;
|
|
193
197
|
payload: {
|
|
194
198
|
scrollTopDelta: number;
|
|
195
199
|
};
|
|
196
200
|
};
|
|
197
|
-
|
|
201
|
+
type RegisterPropControllersHandleAction = {
|
|
198
202
|
type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS_HANDLE;
|
|
199
203
|
payload: {
|
|
200
204
|
documentKey: string;
|
|
@@ -202,14 +206,14 @@ declare type RegisterPropControllersHandleAction = {
|
|
|
202
206
|
handle: PropControllersHandle;
|
|
203
207
|
};
|
|
204
208
|
};
|
|
205
|
-
|
|
209
|
+
type UnregisterPropControllersHandleAction = {
|
|
206
210
|
type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS_HANDLE;
|
|
207
211
|
payload: {
|
|
208
212
|
documentKey: string;
|
|
209
213
|
elementKey: string;
|
|
210
214
|
};
|
|
211
215
|
};
|
|
212
|
-
|
|
216
|
+
type RegisterPropControllersAction = {
|
|
213
217
|
type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS;
|
|
214
218
|
payload: {
|
|
215
219
|
documentKey: string;
|
|
@@ -217,14 +221,14 @@ declare type RegisterPropControllersAction = {
|
|
|
217
221
|
propControllers: Record<string, PropController>;
|
|
218
222
|
};
|
|
219
223
|
};
|
|
220
|
-
|
|
224
|
+
type UnregisterPropControllersAction = {
|
|
221
225
|
type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS;
|
|
222
226
|
payload: {
|
|
223
227
|
documentKey: string;
|
|
224
228
|
elementKey: string;
|
|
225
229
|
};
|
|
226
230
|
};
|
|
227
|
-
|
|
231
|
+
type MessageHostPropControllerAction<T = PropControllerMessage> = {
|
|
228
232
|
type: typeof ActionTypes.MESSAGE_HOST_PROP_CONTROLLER;
|
|
229
233
|
payload: {
|
|
230
234
|
documentKey: string;
|
|
@@ -233,7 +237,7 @@ declare type MessageHostPropControllerAction<T = PropControllerMessage> = {
|
|
|
233
237
|
message: T;
|
|
234
238
|
};
|
|
235
239
|
};
|
|
236
|
-
|
|
240
|
+
type MessageBuilderPropControllerAction<T = PropControllerMessage> = {
|
|
237
241
|
type: typeof ActionTypes.MESSAGE_BUILDER_PROP_CONTROLLER;
|
|
238
242
|
payload: {
|
|
239
243
|
documentKey: string;
|
|
@@ -242,37 +246,37 @@ declare type MessageBuilderPropControllerAction<T = PropControllerMessage> = {
|
|
|
242
246
|
message: T;
|
|
243
247
|
};
|
|
244
248
|
};
|
|
245
|
-
|
|
249
|
+
type ChangeAPIResourceAction = {
|
|
246
250
|
type: typeof ActionTypes.CHANGE_API_RESOURCE;
|
|
247
251
|
payload: {
|
|
248
252
|
resource: APIResource;
|
|
249
253
|
};
|
|
250
254
|
};
|
|
251
|
-
|
|
255
|
+
type EvictAPIResourceAction = {
|
|
252
256
|
type: typeof ActionTypes.EVICT_API_RESOURCE;
|
|
253
257
|
payload: {
|
|
254
258
|
id: string;
|
|
255
259
|
};
|
|
256
260
|
};
|
|
257
|
-
|
|
261
|
+
type SetIsInBuilderAction = {
|
|
258
262
|
type: typeof ActionTypes.SET_IS_IN_BUILDER;
|
|
259
263
|
payload: boolean;
|
|
260
264
|
};
|
|
261
|
-
|
|
265
|
+
type HandleWheelAction = {
|
|
262
266
|
type: typeof ActionTypes.HANDLE_WHEEL;
|
|
263
267
|
payload: {
|
|
264
268
|
deltaX: number;
|
|
265
269
|
deltaY: number;
|
|
266
270
|
};
|
|
267
271
|
};
|
|
268
|
-
|
|
272
|
+
type HandlePointerMoveAction = {
|
|
269
273
|
type: typeof ActionTypes.HANDLE_POINTER_MOVE;
|
|
270
274
|
payload: {
|
|
271
275
|
clientX: number;
|
|
272
276
|
clientY: number;
|
|
273
277
|
};
|
|
274
278
|
};
|
|
275
|
-
|
|
279
|
+
type APIResourceFulfilledAction = {
|
|
276
280
|
type: typeof ActionTypes.API_RESOURCE_FULFILLED;
|
|
277
281
|
payload: {
|
|
278
282
|
resourceType: APIResourceType;
|
|
@@ -280,31 +284,31 @@ declare type APIResourceFulfilledAction = {
|
|
|
280
284
|
resource: APIResource | null;
|
|
281
285
|
};
|
|
282
286
|
};
|
|
283
|
-
|
|
287
|
+
type SetBuilderEditModeAction = {
|
|
284
288
|
type: typeof ActionTypes.SET_BUILDER_EDIT_MODE;
|
|
285
289
|
payload: {
|
|
286
290
|
editMode: BuilderEditMode;
|
|
287
291
|
};
|
|
288
292
|
};
|
|
289
|
-
|
|
293
|
+
type ChangePathnameAction = {
|
|
290
294
|
type: typeof ActionTypes.CHANGE_PATHNAME;
|
|
291
295
|
payload: {
|
|
292
296
|
pathname: string;
|
|
293
297
|
};
|
|
294
298
|
};
|
|
295
|
-
|
|
299
|
+
type ChangePathnameStartAction = {
|
|
296
300
|
type: typeof ActionTypes.CHANGE_PATHNAME_START;
|
|
297
301
|
};
|
|
298
|
-
|
|
302
|
+
type ChangePathnameCompleteAction = {
|
|
299
303
|
type: typeof ActionTypes.CHANGE_PATHNAME_COMPLETE;
|
|
300
304
|
};
|
|
301
|
-
|
|
305
|
+
type BuilderPointerMoveAction = {
|
|
302
306
|
type: typeof ActionTypes.BUILDER_POINTER_MOVE;
|
|
303
307
|
payload: {
|
|
304
308
|
pointer: Point | null;
|
|
305
309
|
};
|
|
306
310
|
};
|
|
307
|
-
|
|
311
|
+
type ElementFromPointChangeAction = {
|
|
308
312
|
type: typeof ActionTypes.ELEMENT_FROM_POINT_CHANGE;
|
|
309
313
|
payload: {
|
|
310
314
|
keys: {
|
|
@@ -313,13 +317,31 @@ declare type ElementFromPointChangeAction = {
|
|
|
313
317
|
} | null;
|
|
314
318
|
};
|
|
315
319
|
};
|
|
316
|
-
export
|
|
320
|
+
export type SetBreakpointsAction = {
|
|
317
321
|
type: typeof ActionTypes.SET_BREAKPOINTS;
|
|
318
322
|
payload: {
|
|
319
323
|
breakpoints: Breakpoints;
|
|
320
324
|
};
|
|
321
325
|
};
|
|
322
|
-
|
|
326
|
+
type SetLocalesAction = {
|
|
327
|
+
type: typeof ActionTypes.SET_LOCALES;
|
|
328
|
+
payload: {
|
|
329
|
+
locales: Locales;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
type SetLocaleAction = {
|
|
333
|
+
type: typeof ActionTypes.SET_LOCALE;
|
|
334
|
+
payload: {
|
|
335
|
+
locale: Locale;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
type SetDefaultLocaleAction = {
|
|
339
|
+
type: typeof ActionTypes.SET_DEFAULT_LOCALE;
|
|
340
|
+
payload: {
|
|
341
|
+
defaultLocale: Locale;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
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 | SetLocalesAction | SetLocaleAction | SetDefaultLocaleAction;
|
|
323
345
|
export declare function init(): InitAction;
|
|
324
346
|
export declare function cleanUp(): CleanUpAction;
|
|
325
347
|
export declare function registerDocument(document: Document): RegisterDocumentAction;
|
|
@@ -372,5 +394,8 @@ export declare function elementFromPointChange(keys: {
|
|
|
372
394
|
elementKey: string;
|
|
373
395
|
} | null): ElementFromPointChangeAction;
|
|
374
396
|
export declare function setBreakpoints(breakpoints: Breakpoints): SetBreakpointsAction;
|
|
397
|
+
export declare function setLocales(locales: Locales): SetLocalesAction;
|
|
398
|
+
export declare function setLocale(locale: Locale): SetLocaleAction;
|
|
399
|
+
export declare function setDefaultLocale(defaultLocale: Locale): SetDefaultLocaleAction;
|
|
375
400
|
export {};
|
|
376
401
|
//# sourceMappingURL=actions.d.ts.map
|