@makeswift/runtime 0.0.0-a8dd080 → 0.0.0-b87dd43
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/api.js +1 -0
- package/box-model.js +1 -0
- package/builder.js +1 -0
- package/components.js +1 -0
- package/dist/Page.cjs.js +215 -0
- package/dist/Page.cjs.js.map +1 -0
- package/dist/Page.es.js +209 -0
- package/dist/Page.es.js.map +1 -0
- package/dist/actions.cjs.js +121 -17
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +106 -16
- package/dist/actions.es.js.map +1 -1
- package/dist/api.cjs.js +5 -0
- package/dist/api.cjs.js.map +1 -0
- package/dist/api.es.js +2 -0
- package/dist/api.es.js.map +1 -0
- package/dist/box-model.cjs.js +2 -2
- package/dist/box-model.es.js +1 -0
- package/dist/box-model.es.js.map +1 -1
- package/dist/box-models.cjs.js +28 -156
- package/dist/box-models.cjs.js.map +1 -1
- package/dist/box-models.es.js +31 -159
- package/dist/box-models.es.js.map +1 -1
- package/dist/builder.cjs.js +10 -0
- package/dist/builder.cjs.js.map +1 -0
- package/dist/builder.es.js +3 -0
- package/dist/builder.es.js.map +1 -0
- package/dist/components.cjs.js +71 -6900
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +32 -6866
- package/dist/components.es.js.map +1 -1
- package/dist/constants.cjs.js +241 -0
- package/dist/constants.cjs.js.map +1 -0
- package/dist/constants.es.js +240 -0
- package/dist/constants.es.js.map +1 -0
- package/dist/control-serialization.cjs.js +223 -0
- package/dist/control-serialization.cjs.js.map +1 -0
- package/dist/control-serialization.es.js +218 -0
- package/dist/control-serialization.es.js.map +1 -0
- package/dist/descriptors.cjs.js +223 -0
- package/dist/descriptors.cjs.js.map +1 -0
- package/dist/descriptors.es.js +188 -0
- package/dist/descriptors.es.js.map +1 -0
- package/dist/instances.cjs.js +106 -0
- package/dist/instances.cjs.js.map +1 -0
- package/dist/instances.es.js +103 -0
- package/dist/instances.es.js.map +1 -0
- package/dist/main.cjs.js +14 -2
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +5 -1
- package/dist/main.es.js.map +1 -1
- package/dist/next.cjs.js +190 -0
- package/dist/next.cjs.js.map +1 -0
- package/dist/next.es.js +180 -0
- package/dist/next.es.js.map +1 -0
- package/dist/prop-controllers.cjs.js +6 -175
- package/dist/prop-controllers.cjs.js.map +1 -1
- package/dist/prop-controllers.es.js +2 -173
- package/dist/prop-controllers.es.js.map +1 -1
- package/dist/react-builder-preview.cjs.js +274 -4130
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +267 -4127
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/react-page.cjs.js +262 -0
- package/dist/react-page.cjs.js.map +1 -0
- package/dist/react-page.es.js +241 -0
- package/dist/react-page.es.js.map +1 -0
- package/dist/react.cjs.js +34 -3
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.cjs2.js +7831 -687
- package/dist/react.cjs2.js.map +1 -1
- package/dist/react.es.js +30 -1
- package/dist/react.es.js.map +1 -1
- package/dist/react.es2.js +7752 -664
- package/dist/react.es2.js.map +1 -1
- package/dist/types/api/constants.d.ts +4 -0
- package/dist/types/api/constants.d.ts.map +1 -0
- package/dist/types/api/generated/graphql.d.ts +120 -0
- package/dist/types/api/generated/graphql.d.ts.map +1 -0
- package/dist/types/api/index.d.ts +3 -0
- package/dist/types/api/index.d.ts.map +1 -0
- package/dist/types/api/react.d.ts +27 -0
- package/dist/types/api/react.d.ts.map +1 -0
- package/dist/types/api/types.d.ts +4 -0
- package/dist/types/api/types.d.ts.map +1 -0
- package/dist/types/builder/index.d.ts +2 -0
- package/dist/types/builder/index.d.ts.map +1 -0
- package/dist/types/builder/serialization/control-serialization.d.ts +144 -0
- package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -0
- package/dist/types/builder/serialization/function-serialization.d.ts +12 -0
- package/dist/types/builder/serialization/function-serialization.d.ts.map +1 -0
- package/dist/types/builder/serialization/index.d.ts +3 -0
- package/dist/types/builder/serialization/index.d.ts.map +1 -0
- package/dist/types/components/{Box → builtin/Box}/Box.d.ts +10 -4
- package/dist/types/components/builtin/Box/Box.d.ts.map +1 -0
- package/dist/types/components/{Box → builtin/Box}/animations.d.ts +2 -2
- package/dist/types/components/builtin/Box/animations.d.ts.map +1 -0
- package/dist/types/components/{Box → builtin/Box}/components/Placeholder/index.d.ts +0 -0
- package/dist/types/components/builtin/Box/components/Placeholder/index.d.ts.map +1 -0
- package/dist/types/components/{Box → builtin/Box}/index.d.ts +1 -1
- package/dist/types/components/builtin/Box/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Button/Button.d.ts +118 -0
- package/dist/types/components/builtin/Button/Button.d.ts.map +1 -0
- package/dist/types/components/builtin/Button/index.d.ts +2 -0
- package/dist/types/components/builtin/Button/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Carousel/Carousel.d.ts +28 -0
- package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -0
- package/dist/types/components/builtin/Carousel/index.d.ts +2 -0
- package/dist/types/components/builtin/Carousel/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Countdown/Countdown.d.ts +27 -0
- package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -0
- package/dist/types/components/builtin/Countdown/index.d.ts +2 -0
- package/dist/types/components/builtin/Countdown/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Divider/Divider.d.ts +17 -0
- package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -0
- package/dist/types/components/builtin/Divider/index.d.ts +2 -0
- package/dist/types/components/builtin/Divider/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Embed/Embed.d.ts +14 -0
- package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -0
- package/dist/types/components/builtin/Embed/index.d.ts +2 -0
- package/dist/types/components/builtin/Embed/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/Form.d.ts +41 -0
- package/dist/types/components/builtin/Form/Form.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts +15 -0
- package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts +15 -0
- package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts +14 -0
- package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts +16 -0
- package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts +10 -0
- package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts +23 -0
- package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts +3 -0
- package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts +17 -0
- package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts +23 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts +19 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts +24 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts +13 -0
- package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/index.d.ts +19 -0
- package/dist/types/components/builtin/Form/components/Field/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts +9 -0
- package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Spinner/index.d.ts +3 -0
- package/dist/types/components/builtin/Form/components/Spinner/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/context/FormContext.d.ts +32 -0
- package/dist/types/components/builtin/Form/context/FormContext.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/index.d.ts +2 -0
- package/dist/types/components/builtin/Form/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Image/Image.d.ts +29 -0
- package/dist/types/components/builtin/Image/Image.d.ts.map +1 -0
- package/dist/types/components/builtin/Image/index.d.ts +2 -0
- package/dist/types/components/builtin/Image/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/Navigation.d.ts +26 -0
- package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts +100 -0
- package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts +8 -0
- package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts +101 -0
- package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts +13 -0
- package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/index.d.ts +2 -0
- package/dist/types/components/builtin/Navigation/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Root/Root.d.ts +14 -0
- package/dist/types/components/builtin/Root/Root.d.ts.map +1 -0
- package/dist/types/components/{Root → builtin/Root}/components/Placeholder/index.d.ts +0 -0
- package/dist/types/components/builtin/Root/components/Placeholder/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Root/index.d.ts +2 -0
- package/dist/types/components/builtin/Root/index.d.ts.map +1 -0
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +21 -0
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -0
- package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts +8 -0
- package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts.map +1 -0
- package/dist/types/components/builtin/SocialLinks/index.d.ts +2 -0
- package/dist/types/components/builtin/SocialLinks/index.d.ts.map +1 -0
- package/dist/types/components/builtin/SocialLinks/options.d.ts +113 -0
- package/dist/types/components/builtin/SocialLinks/options.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/Text.d.ts +19 -0
- package/dist/types/components/builtin/Text/Text.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts +24 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts +25 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts +13 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts +5 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts +3 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts +3 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts +3 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts +3 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/index.d.ts +2 -0
- package/dist/types/components/builtin/Text/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Video/Video.d.ts +15 -0
- package/dist/types/components/builtin/Video/Video.d.ts.map +1 -0
- package/dist/types/components/builtin/Video/index.d.ts +2 -0
- package/dist/types/components/builtin/Video/index.d.ts.map +1 -0
- package/dist/types/components/builtin/index.d.ts +16 -0
- package/dist/types/components/builtin/index.d.ts.map +1 -0
- package/dist/types/components/hooks/index.d.ts +7 -0
- package/dist/types/components/hooks/index.d.ts.map +1 -1
- package/dist/types/components/hooks/useBackgrounds.d.ts +59 -0
- package/dist/types/components/hooks/useBackgrounds.d.ts.map +1 -0
- package/dist/types/components/hooks/useBorder.d.ts +19 -0
- package/dist/types/components/hooks/useBorder.d.ts.map +1 -0
- package/dist/types/components/hooks/useBoxShadow.d.ts +19 -0
- package/dist/types/components/hooks/useBoxShadow.d.ts.map +1 -0
- package/dist/types/components/hooks/useColor.d.ts +7 -0
- package/dist/types/components/hooks/useColor.d.ts.map +1 -0
- package/dist/types/components/hooks/useFile.d.ts +13 -0
- package/dist/types/components/hooks/useFile.d.ts.map +1 -0
- package/dist/types/components/hooks/usePage.d.ts +7 -0
- package/dist/types/components/hooks/usePage.d.ts.map +1 -0
- package/dist/types/components/hooks/useTable.d.ts +66 -0
- package/dist/types/components/hooks/useTable.d.ts.map +1 -0
- package/dist/types/components/hooks/useTableFormFieldRefs.d.ts +8 -0
- package/dist/types/components/hooks/useTableFormFieldRefs.d.ts.map +1 -0
- package/dist/types/components/hooks/useTypography.d.ts +24 -0
- package/dist/types/components/hooks/useTypography.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +4 -3
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/page/BodySnippet.d.ts +7 -0
- package/dist/types/components/page/BodySnippet.d.ts.map +1 -0
- package/dist/types/components/page/Page.d.ts +45 -0
- package/dist/types/components/page/Page.d.ts.map +1 -0
- package/dist/types/components/page/index.d.ts +2 -0
- package/dist/types/components/page/index.d.ts.map +1 -0
- package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts +11 -0
- package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -0
- package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts +8 -0
- package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -0
- package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts +11 -0
- package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -0
- package/dist/types/components/shared/BackgroundsContainer/index.d.ts +11 -0
- package/dist/types/components/shared/BackgroundsContainer/index.d.ts.map +1 -0
- package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts +7 -0
- package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts.map +1 -0
- package/dist/types/components/shared/FallbackComponent/index.d.ts +2 -0
- package/dist/types/components/shared/FallbackComponent/index.d.ts.map +1 -0
- package/dist/types/components/shared/GutterContainer/index.d.ts +8 -0
- package/dist/types/components/shared/GutterContainer/index.d.ts.map +1 -0
- package/dist/types/components/shared/Link/index.d.ts +9 -0
- package/dist/types/components/shared/Link/index.d.ts.map +1 -0
- package/dist/types/components/utils/colorToString.d.ts +3 -0
- package/dist/types/components/utils/colorToString.d.ts.map +1 -0
- package/dist/types/components/utils/cssMediaRules.d.ts +23 -1
- package/dist/types/components/utils/cssMediaRules.d.ts.map +1 -1
- package/dist/types/components/utils/devices.d.ts +1 -0
- package/dist/types/components/utils/devices.d.ts.map +1 -1
- package/dist/types/components/utils/isNonNullable.d.ts +2 -0
- package/dist/types/components/utils/isNonNullable.d.ts.map +1 -0
- package/dist/types/components/utils/placeholders.d.ts +17 -0
- package/dist/types/components/utils/placeholders.d.ts.map +1 -0
- package/dist/types/components/utils/queries.d.ts +8 -0
- package/dist/types/components/utils/queries.d.ts.map +1 -0
- package/dist/types/components/utils/types.d.ts +10 -0
- package/dist/types/components/utils/types.d.ts.map +1 -0
- package/dist/types/controls.d.ts +4 -0
- package/dist/types/controls.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/next.d.ts +22 -0
- package/dist/types/next.d.ts.map +1 -0
- package/dist/types/prop-controllers/descriptors.d.ts +69 -14
- package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
- package/dist/types/prop-controllers/index.d.ts +3 -1
- package/dist/types/prop-controllers/index.d.ts.map +1 -1
- package/dist/types/prop-controllers/instances.d.ts +101 -0
- package/dist/types/prop-controllers/instances.d.ts.map +1 -0
- package/dist/types/prop-controllers/introspection.d.ts +5 -0
- package/dist/types/prop-controllers/introspection.d.ts.map +1 -0
- package/dist/types/react.d.ts +1 -1
- package/dist/types/react.d.ts.map +1 -1
- package/dist/types/runtimes/react.d.ts +27 -12
- package/dist/types/runtimes/react.d.ts.map +1 -1
- package/dist/types/state/actions.d.ts +161 -13
- package/dist/types/state/actions.d.ts.map +1 -1
- package/dist/types/state/modules/box-models.d.ts +5 -5
- package/dist/types/state/modules/box-models.d.ts.map +1 -1
- package/dist/types/state/modules/prop-controller-handles.d.ts +16 -0
- package/dist/types/state/modules/prop-controller-handles.d.ts.map +1 -0
- package/dist/types/state/modules/prop-controllers.d.ts +1 -0
- package/dist/types/state/modules/prop-controllers.d.ts.map +1 -1
- package/dist/types/state/modules/read-only-documents.d.ts +8 -4
- package/dist/types/state/modules/read-only-documents.d.ts.map +1 -1
- package/dist/types/state/modules/read-write-documents.d.ts +1 -1
- package/dist/types/state/modules/read-write-documents.d.ts.map +1 -1
- package/dist/types/state/react-builder-preview.d.ts +16 -11
- package/dist/types/state/react-builder-preview.d.ts.map +1 -1
- package/dist/types/state/react-page.d.ts +8 -3
- package/dist/types/state/react-page.d.ts.map +1 -1
- package/dist/types/utils/clamp.d.ts +3 -0
- package/dist/types/utils/clamp.d.ts.map +1 -0
- package/dist/types/utils/coalesce.d.ts +3 -0
- package/dist/types/utils/coalesce.d.ts.map +1 -0
- package/dist/types/utils/constants.d.ts +6 -0
- package/dist/types/utils/constants.d.ts.map +1 -0
- package/dist/types/utils/deepEqual.d.ts.map +1 -1
- package/dist/types/utils/intersection.d.ts +4 -0
- package/dist/types/utils/intersection.d.ts.map +1 -0
- package/dist/types/utils/keys.d.ts +5 -0
- package/dist/types/utils/keys.d.ts.map +1 -0
- package/dist/types/utils/shallowEqual.d.ts.map +1 -1
- package/dist/types/utils/shallowMerge.d.ts +2 -0
- package/dist/types/utils/shallowMerge.d.ts.map +1 -0
- package/next.js +1 -0
- package/package.json +73 -15
- package/prop-controllers.js +1 -0
- package/react.js +1 -0
- package/dist/types/components/Box/Box.d.ts.map +0 -1
- package/dist/types/components/Box/animations.d.ts.map +0 -1
- package/dist/types/components/Box/components/Placeholder/index.d.ts.map +0 -1
- package/dist/types/components/Box/index.d.ts.map +0 -1
- package/dist/types/components/Root/Root.d.ts +0 -11
- package/dist/types/components/Root/Root.d.ts.map +0 -1
- package/dist/types/components/Root/components/Placeholder/index.d.ts.map +0 -1
- package/dist/types/components/Root/index.d.ts +0 -2
- package/dist/types/components/Root/index.d.ts.map +0 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Editor } from 'slate-react';
|
|
2
|
+
import { ValueJSON } from 'slate';
|
|
3
|
+
import { OnChangeParam } from 'slate-react';
|
|
4
|
+
import { Descriptor, RichTextDescriptor, TableFormFieldsDescriptor, Types } from './descriptors';
|
|
5
|
+
import { BuilderEditMode } from '../utils/constants';
|
|
6
|
+
import { BoxModel } from '../state/modules/box-models';
|
|
7
|
+
export declare const RichTextPropControllerMessageType: {
|
|
8
|
+
readonly CHANGE_BUILDER_EDIT_MODE: "CHANGE_BUILDER_EDIT_MODE";
|
|
9
|
+
readonly INITIALIZE_EDITOR: "INITIALIZE_EDITOR";
|
|
10
|
+
readonly CHANGE_EDITOR_VALUE: "CHANGE_EDITOR_VALUE";
|
|
11
|
+
readonly FOCUS: "FOCUS";
|
|
12
|
+
readonly BLUR: "BLUR";
|
|
13
|
+
readonly UNDO: "UNDO";
|
|
14
|
+
readonly REDO: "REDO";
|
|
15
|
+
};
|
|
16
|
+
declare type ChangeBuilderEditModeRichTextPropControllerMessage = {
|
|
17
|
+
type: typeof RichTextPropControllerMessageType.CHANGE_BUILDER_EDIT_MODE;
|
|
18
|
+
editMode: BuilderEditMode;
|
|
19
|
+
};
|
|
20
|
+
declare type InitializeEditorRichTextPropControllerMessage = {
|
|
21
|
+
type: typeof RichTextPropControllerMessageType.INITIALIZE_EDITOR;
|
|
22
|
+
value: ValueJSON;
|
|
23
|
+
};
|
|
24
|
+
declare type ChangeEditorValueRichTextPropControllerMessage = {
|
|
25
|
+
type: typeof RichTextPropControllerMessageType.CHANGE_EDITOR_VALUE;
|
|
26
|
+
value: ValueJSON;
|
|
27
|
+
};
|
|
28
|
+
declare type FocusRichTextPropControllerMessage = {
|
|
29
|
+
type: typeof RichTextPropControllerMessageType.FOCUS;
|
|
30
|
+
};
|
|
31
|
+
declare type BlurRichTextPropControllerMessage = {
|
|
32
|
+
type: typeof RichTextPropControllerMessageType.BLUR;
|
|
33
|
+
};
|
|
34
|
+
declare type UndoRichTextPropControllerMessage = {
|
|
35
|
+
type: typeof RichTextPropControllerMessageType.UNDO;
|
|
36
|
+
};
|
|
37
|
+
declare type RedoRichTextPropControllerMessage = {
|
|
38
|
+
type: typeof RichTextPropControllerMessageType.REDO;
|
|
39
|
+
};
|
|
40
|
+
export declare type RichTextPropControllerMessage = ChangeBuilderEditModeRichTextPropControllerMessage | InitializeEditorRichTextPropControllerMessage | ChangeEditorValueRichTextPropControllerMessage | FocusRichTextPropControllerMessage | BlurRichTextPropControllerMessage | UndoRichTextPropControllerMessage | RedoRichTextPropControllerMessage;
|
|
41
|
+
export declare type PropControllerMessage = RichTextPropControllerMessage | TableFormFieldsMessage;
|
|
42
|
+
declare type Send<T = PropControllerMessage> = (message: T) => void;
|
|
43
|
+
export declare abstract class PropController<T = PropControllerMessage> {
|
|
44
|
+
protected send: Send<T>;
|
|
45
|
+
constructor(send: Send<T>);
|
|
46
|
+
abstract recv(message: T): void;
|
|
47
|
+
}
|
|
48
|
+
declare class DefaultPropController extends PropController {
|
|
49
|
+
recv(_message: PropControllerMessage): void;
|
|
50
|
+
}
|
|
51
|
+
declare class RichTextPropController extends PropController<RichTextPropControllerMessage> {
|
|
52
|
+
private editor;
|
|
53
|
+
recv(message: RichTextPropControllerMessage): void;
|
|
54
|
+
setSlateEditor(editor: Editor): void;
|
|
55
|
+
onChange(change: OnChangeParam): void;
|
|
56
|
+
focus(): void;
|
|
57
|
+
blur(): void;
|
|
58
|
+
undo(): void;
|
|
59
|
+
redo(): void;
|
|
60
|
+
}
|
|
61
|
+
export declare const TableFormFieldsMessageType: {
|
|
62
|
+
readonly TABLE_FORM_LAYOUT_CHANGE: "TABLE_FORM_LAYOUT_CHANGE";
|
|
63
|
+
readonly TABLE_FORM_FIELD_LAYOUT_CHANGE: "TABLE_FORM_FIELD_LAYOUT_CHANGE";
|
|
64
|
+
};
|
|
65
|
+
declare type TableLayoutTableFormFieldsMessage = {
|
|
66
|
+
type: typeof TableFormFieldsMessageType.TABLE_FORM_LAYOUT_CHANGE;
|
|
67
|
+
payload: {
|
|
68
|
+
layout: BoxModel;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
declare type TableFieldLayoutTableFormFieldsMessage = {
|
|
72
|
+
type: typeof TableFormFieldsMessageType.TABLE_FORM_FIELD_LAYOUT_CHANGE;
|
|
73
|
+
payload: {
|
|
74
|
+
layout: BoxModel;
|
|
75
|
+
index: number;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare type TableFormFieldsMessage = TableLayoutTableFormFieldsMessage | TableFieldLayoutTableFormFieldsMessage;
|
|
79
|
+
export declare class TableFormFieldsPropController extends PropController<TableFormFieldsMessage> {
|
|
80
|
+
recv(): void;
|
|
81
|
+
tableFormLayoutChange(payload: {
|
|
82
|
+
layout: BoxModel;
|
|
83
|
+
}): void;
|
|
84
|
+
tableFormFieldLayoutChange(payload: {
|
|
85
|
+
layout: BoxModel;
|
|
86
|
+
index: number;
|
|
87
|
+
}): void;
|
|
88
|
+
}
|
|
89
|
+
declare type DescriptorPropController<T extends Descriptor> = T extends {
|
|
90
|
+
type: typeof Types.RichText;
|
|
91
|
+
} ? RichTextPropController : T extends {
|
|
92
|
+
type: typeof Types.TableFormFields;
|
|
93
|
+
} ? TableFormFieldsPropController : DefaultPropController;
|
|
94
|
+
export declare type DescriptorsPropControllers<T extends Record<string, Descriptor>> = {
|
|
95
|
+
[K in keyof T]: undefined extends T[K] ? DescriptorPropController<Exclude<T[K], undefined>> : DescriptorPropController<T[K]>;
|
|
96
|
+
};
|
|
97
|
+
export declare function createPropController(descriptor: RichTextDescriptor, send: Send<RichTextPropControllerMessage>): RichTextPropController;
|
|
98
|
+
export declare function createPropController(descriptor: TableFormFieldsDescriptor, send: Send<TableFormFieldsMessage>): TableFormFieldsPropController;
|
|
99
|
+
export declare function createPropController(descriptor: Descriptor, send: Send): DefaultPropController;
|
|
100
|
+
export {};
|
|
101
|
+
//# sourceMappingURL=instances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instances.d.ts","sourceRoot":"","sources":["../../../src/prop-controllers/instances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAEtD,eAAO,MAAM,iCAAiC;;;;;;;;CAQpC,CAAA;AAEV,aAAK,kDAAkD,GAAG;IACxD,IAAI,EAAE,OAAO,iCAAiC,CAAC,wBAAwB,CAAA;IACvE,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAA;A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AAU,CAAC,IAAI;KAC5E,CAAC,IAAI,MAAM,CAAC,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,CAAC,GAClC,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,GAClD,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,CAAA;AAOD,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,kBAAkB,EAC9B,IAAI,EAAE,IAAI,CAAC,6BAA6B,CAAC,GACxC,sBAAsB,CAAA;AACzB,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,yBAAyB,EACrC,IAAI,EAAE,IAAI,CAAC,sBAAsB,CAAC,GACjC,6BAA6B,CAAA;AAChC,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAAG,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Descriptor } from './descriptors';
|
|
2
|
+
import { Data, Element } from '../state/react-page';
|
|
3
|
+
export declare function getElementChildren<T extends Data>(descriptor: Descriptor<T>, prop: T | undefined): Element[];
|
|
4
|
+
export declare function getElementId<T extends Data>(descriptor: Descriptor<T>, prop: T | undefined): string | null;
|
|
5
|
+
//# sourceMappingURL=introspection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspection.d.ts","sourceRoot":"","sources":["../../../src/prop-controllers/introspection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAoC,MAAM,eAAe,CAAA;AAC5E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAEnD,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,IAAI,EAC/C,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,EACzB,IAAI,EAAE,CAAC,GAAG,SAAS,GAClB,OAAO,EAAE,CAUX;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,IAAI,EACzC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,EACzB,IAAI,EAAE,CAAC,GAAG,SAAS,GAClB,MAAM,GAAG,IAAI,CAUf"}
|
package/dist/types/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { Action } from './state/actions';
|
|
2
2
|
export { ActionTypes, changeDocument } from './state/actions';
|
|
3
|
-
export {
|
|
3
|
+
export { Element, RuntimeProvider, ReactRuntime, useIsInBuilder, DocumentReference, PageProvider, usePageId, } from './runtimes/react';
|
|
4
4
|
//# sourceMappingURL=react.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,EACL,OAAO,EACP,eAAe,EACf,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,SAAS,GACV,MAAM,kBAAkB,CAAA"}
|
|
@@ -1,28 +1,43 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import * as ReactPage from '../state/react-page';
|
|
3
3
|
import type { PropControllerDescriptor, PropControllerDescriptorValueType } from '../prop-controllers';
|
|
4
4
|
import { ComponentIcon } from '../state/modules/components-meta';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { MakeswiftClient } from '../api/react';
|
|
6
|
+
export interface ReactRuntime {
|
|
7
|
+
registerComponent<P extends Record<string, PropControllerDescriptor>, C extends ReactPage.ComponentType<{
|
|
8
|
+
[K in keyof P]?: PropControllerDescriptorValueType<P[K]>;
|
|
9
|
+
}>>(component: C, meta: {
|
|
7
10
|
type: string;
|
|
8
11
|
label: string;
|
|
9
|
-
icon?: ComponentIcon
|
|
10
|
-
hidden?: boolean
|
|
11
|
-
props?: P
|
|
12
|
+
icon?: ComponentIcon;
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
props?: P;
|
|
12
15
|
}): () => void;
|
|
13
|
-
}
|
|
16
|
+
}
|
|
17
|
+
export declare function createReactRuntime(store: ReactPage.Store): ReactRuntime;
|
|
18
|
+
export declare const ReactRuntime: ReactRuntime;
|
|
14
19
|
declare type RuntimeProviderProps = {
|
|
20
|
+
client: MakeswiftClient;
|
|
15
21
|
defaultRootElements?: Map<string, ReactPage.Element>;
|
|
16
22
|
children?: ReactNode;
|
|
17
23
|
};
|
|
18
|
-
export declare function RuntimeProvider({ children, defaultRootElements, }: RuntimeProviderProps): JSX.Element;
|
|
24
|
+
export declare function RuntimeProvider({ client, children, defaultRootElements, }: RuntimeProviderProps): JSX.Element;
|
|
25
|
+
declare const PageContext: import("react").Context<string | null>;
|
|
26
|
+
export declare function usePageId(): string;
|
|
27
|
+
declare type PageProviderProps = {
|
|
28
|
+
id: string;
|
|
29
|
+
children: ComponentPropsWithoutRef<typeof PageContext['Provider']>['children'];
|
|
30
|
+
};
|
|
31
|
+
export declare function PageProvider({ id, children }: PageProviderProps): JSX.Element;
|
|
32
|
+
export declare function useElementId(elementKey: string | null | undefined): string | null;
|
|
33
|
+
export declare function useIsInBuilder(): boolean;
|
|
19
34
|
declare type ElementProps = {
|
|
20
35
|
element: ReactPage.Element;
|
|
21
36
|
};
|
|
22
|
-
export declare const Element: import("react").
|
|
23
|
-
declare type
|
|
24
|
-
|
|
37
|
+
export declare const Element: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ElementProps & import("react").RefAttributes<unknown>>>;
|
|
38
|
+
declare type DocumentReferenceProps = {
|
|
39
|
+
documentReference: ReactPage.DocumentReference;
|
|
25
40
|
};
|
|
26
|
-
export declare const
|
|
41
|
+
export declare const DocumentReference: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<DocumentReferenceProps & import("react").RefAttributes<unknown>>>;
|
|
27
42
|
export {};
|
|
28
43
|
//# sourceMappingURL=react.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/runtimes/react.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/runtimes/react.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAIxB,SAAS,EAMV,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAA;AAQhD,OAAO,KAAK,EACV,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,OAAO,EAAqB,eAAe,EAAY,MAAM,cAAc,CAAA;AAK3E,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CACf,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,EAClD,CAAC,SAAS,SAAS,CAAC,aAAa,CAAC;SAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,iCAAiC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAC,EAE/F,SAAS,EAAE,CAAC,EACZ,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,CAAC,CAAA;KAAE,GACvF,MAAM,IAAI,CAAA;CACd;AAED,w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entType } from './modules/react-components';
|
|
3
4
|
import type { Measurable, BoxModel } from './modules/box-models';
|
|
4
5
|
import type { ThunkAction } from 'redux-thunk';
|
|
5
6
|
import { ComponentMeta } from './modules/components-meta';
|
|
6
7
|
import { PropControllerDescriptor } from '../prop-controllers';
|
|
7
8
|
import type { Size } from './react-builder-preview';
|
|
9
|
+
import type { PropControllersHandle } from './modules/prop-controller-handles';
|
|
10
|
+
import type { PropController, PropControllerMessage } from '../prop-controllers/instances';
|
|
11
|
+
import type { APIResource } from '../api/types';
|
|
12
|
+
import type { SerializedControl } from '../builder';
|
|
8
13
|
export declare const ActionTypes: {
|
|
14
|
+
readonly INIT: "INIT";
|
|
15
|
+
readonly CLEAN_UP: "CLEAN_UP";
|
|
16
|
+
readonly REGISTER_DOCUMENT: "REGISTER_DOCUMENT";
|
|
17
|
+
readonly UNREGISTER_DOCUMENT: "UNREGISTER_DOCUMENT";
|
|
9
18
|
readonly CHANGE_DOCUMENT: "CHANGE_DOCUMENT";
|
|
10
19
|
readonly REGISTER_COMPONENT: "REGISTER_COMPONENT";
|
|
11
20
|
readonly UNREGISTER_COMPONENT: "UNREGISTER_COMPONENT";
|
|
21
|
+
readonly REGISTER_BUILDER_COMPONENT: "REGISTER_BUILDER_COMPONENT";
|
|
22
|
+
readonly UNREGISTER_BUILDER_COMPONENT: "UNREGISTER_BUILDER_COMPONENT";
|
|
12
23
|
readonly REGISTER_REACT_COMPONENT: "REGISTER_REACT_COMPONENT";
|
|
13
24
|
readonly UNREGISTER_REACT_COMPONENT: "UNREGISTER_REACT_COMPONENT";
|
|
14
25
|
readonly MOUNT_COMPONENT: "MOUNT_COMPONENT";
|
|
15
26
|
readonly UNMOUNT_COMPONENT: "UNMOUNT_COMPONENT";
|
|
16
|
-
readonly
|
|
27
|
+
readonly REGISTER_COMPONENT_HANDLE: "REGISTER_COMPONENT_HANDLE";
|
|
28
|
+
readonly UNREGISTER_COMPONENT_HANDLE: "UNREGISTER_COMPONENT_HANDLE";
|
|
17
29
|
readonly REGISTER_MEASURABLE: "REGISTER_MEASURABLE";
|
|
18
30
|
readonly UNREGISTER_MEASURABLE: "UNREGISTER_MEASURABLE";
|
|
19
31
|
readonly CHANGE_ELEMENT_BOX_MODELS: "CHANGE_ELEMENT_BOX_MODELS";
|
|
20
32
|
readonly CHANGE_DOCUMENT_ELEMENT_SIZE: "CHANGE_DOCUMENT_ELEMENT_SIZE";
|
|
21
33
|
readonly CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP: "CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP";
|
|
34
|
+
readonly SCROLL_DOCUMENT_ELEMENT: "SCROLL_DOCUMENT_ELEMENT";
|
|
35
|
+
readonly REGISTER_PROP_CONTROLLERS_HANDLE: "REGISTER_PROP_CONTROLLERS_HANDLE";
|
|
36
|
+
readonly UNREGISTER_PROP_CONTROLLERS_HANDLE: "UNREGISTER_PROP_CONTROLLERS_HANDLE";
|
|
37
|
+
readonly REGISTER_PROP_CONTROLLERS: "REGISTER_PROP_CONTROLLERS";
|
|
38
|
+
readonly UNREGISTER_PROP_CONTROLLERS: "UNREGISTER_PROP_CONTROLLERS";
|
|
39
|
+
readonly MESSAGE_HOST_PROP_CONTROLLER: "MESSAGE_HOST_PROP_CONTROLLER";
|
|
40
|
+
readonly MESSAGE_BUILDER_PROP_CONTROLLER: "MESSAGE_BUILDER_PROP_CONTROLLER";
|
|
41
|
+
readonly CHANGE_API_RESOURCE: "CHANGE_API_RESOURCE";
|
|
42
|
+
readonly EVICT_API_RESOURCE: "EVICT_API_RESOURCE";
|
|
43
|
+
};
|
|
44
|
+
declare type InitAction = {
|
|
45
|
+
type: typeof ActionTypes.INIT;
|
|
46
|
+
};
|
|
47
|
+
declare type CleanUpAction = {
|
|
48
|
+
type: typeof ActionTypes.CLEAN_UP;
|
|
49
|
+
};
|
|
50
|
+
declare type RegisterDocumentAction = {
|
|
51
|
+
type: typeof ActionTypes.REGISTER_DOCUMENT;
|
|
52
|
+
payload: {
|
|
53
|
+
documentKey: string;
|
|
54
|
+
document: Document;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
declare type UnregisterDocumentAction = {
|
|
58
|
+
type: typeof ActionTypes.UNREGISTER_DOCUMENT;
|
|
59
|
+
payload: {
|
|
60
|
+
documentKey: string;
|
|
61
|
+
};
|
|
22
62
|
};
|
|
23
63
|
declare type ChangeDocumentAction = {
|
|
24
64
|
type: typeof ActionTypes.CHANGE_DOCUMENT;
|
|
@@ -41,6 +81,20 @@ declare type UnregisterComponentAction = {
|
|
|
41
81
|
type: string;
|
|
42
82
|
};
|
|
43
83
|
};
|
|
84
|
+
declare type RegisterBuilderComponentAction = {
|
|
85
|
+
type: typeof ActionTypes.REGISTER_BUILDER_COMPONENT;
|
|
86
|
+
payload: {
|
|
87
|
+
type: string;
|
|
88
|
+
meta: ComponentMeta;
|
|
89
|
+
serializedControls: Record<string, SerializedControl>;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
declare type UnregisterBuilderComponentAction = {
|
|
93
|
+
type: typeof ActionTypes.UNREGISTER_BUILDER_COMPONENT;
|
|
94
|
+
payload: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
44
98
|
declare type RegisterReactComponentAction = {
|
|
45
99
|
type: typeof ActionTypes.REGISTER_REACT_COMPONENT;
|
|
46
100
|
payload: {
|
|
@@ -57,25 +111,36 @@ declare type UnregisterReactComponentAction = {
|
|
|
57
111
|
declare type MountComponentAction = {
|
|
58
112
|
type: typeof ActionTypes.MOUNT_COMPONENT;
|
|
59
113
|
payload: {
|
|
114
|
+
documentKey: string;
|
|
60
115
|
elementKey: string;
|
|
61
116
|
};
|
|
62
117
|
};
|
|
63
118
|
declare type UnmountComponentAction = {
|
|
64
119
|
type: typeof ActionTypes.UNMOUNT_COMPONENT;
|
|
65
120
|
payload: {
|
|
121
|
+
documentKey: string;
|
|
66
122
|
elementKey: string;
|
|
67
123
|
};
|
|
68
124
|
};
|
|
69
|
-
declare type
|
|
70
|
-
type: typeof ActionTypes.
|
|
125
|
+
declare type RegisterComponentHandleAction = {
|
|
126
|
+
type: typeof ActionTypes.REGISTER_COMPONENT_HANDLE;
|
|
71
127
|
payload: {
|
|
128
|
+
documentKey: string;
|
|
72
129
|
elementKey: string;
|
|
73
130
|
componentHandle: unknown;
|
|
74
131
|
};
|
|
75
132
|
};
|
|
133
|
+
declare type UnregisterComponentHandleAction = {
|
|
134
|
+
type: typeof ActionTypes.UNREGISTER_COMPONENT_HANDLE;
|
|
135
|
+
payload: {
|
|
136
|
+
documentKey: string;
|
|
137
|
+
elementKey: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
76
140
|
declare type RegisterMeasurableAction = {
|
|
77
141
|
type: typeof ActionTypes.REGISTER_MEASURABLE;
|
|
78
142
|
payload: {
|
|
143
|
+
documentKey: string;
|
|
79
144
|
elementKey: string;
|
|
80
145
|
measurable: Measurable;
|
|
81
146
|
};
|
|
@@ -83,13 +148,14 @@ declare type RegisterMeasurableAction = {
|
|
|
83
148
|
declare type UnregisterMeasurableAction = {
|
|
84
149
|
type: typeof ActionTypes.UNREGISTER_MEASURABLE;
|
|
85
150
|
payload: {
|
|
151
|
+
documentKey: string;
|
|
86
152
|
elementKey: string;
|
|
87
153
|
};
|
|
88
154
|
};
|
|
89
155
|
declare type ChangeElementBoxModelsAction = {
|
|
90
156
|
type: typeof ActionTypes.CHANGE_ELEMENT_BOX_MODELS;
|
|
91
157
|
payload: {
|
|
92
|
-
changedElementBoxModels: Map<string, BoxModel | null
|
|
158
|
+
changedElementBoxModels: Map<string, Map<string, BoxModel | null>>;
|
|
93
159
|
};
|
|
94
160
|
};
|
|
95
161
|
declare type ChangeDocumentElementSizeAction = {
|
|
@@ -104,21 +170,103 @@ declare type ChangeDocumentElementScrollTopAction = {
|
|
|
104
170
|
scrollTop: number;
|
|
105
171
|
};
|
|
106
172
|
};
|
|
107
|
-
|
|
173
|
+
declare type ScrollDocumentElementAction = {
|
|
174
|
+
type: typeof ActionTypes.SCROLL_DOCUMENT_ELEMENT;
|
|
175
|
+
payload: {
|
|
176
|
+
scrollTopDelta: number;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
declare type RegisterPropControllersHandleAction = {
|
|
180
|
+
type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS_HANDLE;
|
|
181
|
+
payload: {
|
|
182
|
+
documentKey: string;
|
|
183
|
+
elementKey: string;
|
|
184
|
+
handle: PropControllersHandle;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
declare type UnregisterPropControllersHandleAction = {
|
|
188
|
+
type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS_HANDLE;
|
|
189
|
+
payload: {
|
|
190
|
+
documentKey: string;
|
|
191
|
+
elementKey: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
declare type RegisterPropControllersAction = {
|
|
195
|
+
type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS;
|
|
196
|
+
payload: {
|
|
197
|
+
documentKey: string;
|
|
198
|
+
elementKey: string;
|
|
199
|
+
propControllers: Record<string, PropController>;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
declare type UnregisterPropControllersAction = {
|
|
203
|
+
type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS;
|
|
204
|
+
payload: {
|
|
205
|
+
documentKey: string;
|
|
206
|
+
elementKey: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
declare type MessageHostPropControllerAction<T = PropControllerMessage> = {
|
|
210
|
+
type: typeof ActionTypes.MESSAGE_HOST_PROP_CONTROLLER;
|
|
211
|
+
payload: {
|
|
212
|
+
documentKey: string;
|
|
213
|
+
elementKey: string;
|
|
214
|
+
propName: string;
|
|
215
|
+
message: T;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
declare type MessageBuilderPropControllerAction<T = PropControllerMessage> = {
|
|
219
|
+
type: typeof ActionTypes.MESSAGE_BUILDER_PROP_CONTROLLER;
|
|
220
|
+
payload: {
|
|
221
|
+
documentKey: string;
|
|
222
|
+
elementKey: string;
|
|
223
|
+
propName: string;
|
|
224
|
+
message: T;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
declare type ChangeAPIResourceAction = {
|
|
228
|
+
type: typeof ActionTypes.CHANGE_API_RESOURCE;
|
|
229
|
+
payload: {
|
|
230
|
+
resource: APIResource;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
declare type EvictAPIResourceAction = {
|
|
234
|
+
type: typeof ActionTypes.EVICT_API_RESOURCE;
|
|
235
|
+
payload: {
|
|
236
|
+
id: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
export declare 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;
|
|
240
|
+
export declare function init(): InitAction;
|
|
241
|
+
export declare function cleanUp(): CleanUpAction;
|
|
242
|
+
export declare function registerDocument(document: Document): RegisterDocumentAction;
|
|
243
|
+
export declare function unregisterDocument(documentKey: string): UnregisterDocumentAction;
|
|
244
|
+
export declare function registerDocumentEffect(document: Document): ThunkAction<() => void, unknown, unknown, Action>;
|
|
108
245
|
export declare function changeDocument(documentKey: string, operation: Operation): ChangeDocumentAction;
|
|
109
246
|
export declare function registerComponent(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): RegisterComponentAction;
|
|
110
247
|
export declare function unregisterComponent(type: string): UnregisterComponentAction;
|
|
111
248
|
export declare function registerComponentEffect(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): ThunkAction<() => void, unknown, unknown, Action>;
|
|
249
|
+
export declare function registerBuilderComponent(type: string, meta: ComponentMeta, serializedControls: Record<string, SerializedControl>): RegisterBuilderComponentAction;
|
|
250
|
+
export declare function unregisterBuilderComponent(type: string): UnregisterBuilderComponentAction;
|
|
112
251
|
export declare function registerReactComponentEffect(type: string, component: ComponentType): ThunkAction<() => void, unknown, unknown, Action>;
|
|
113
|
-
export declare function mountComponent(elementKey: string): MountComponentAction;
|
|
114
|
-
export declare function unmountComponent(elementKey: string): UnmountComponentAction;
|
|
115
|
-
export declare function mountComponentEffect(elementKey: string): ThunkAction<() => void, unknown, unknown, Action>;
|
|
116
|
-
export declare function
|
|
117
|
-
export declare function registerMeasurable(elementKey: string, measurable: Measurable): RegisterMeasurableAction;
|
|
118
|
-
export declare function unregisterMeasurable(elementKey: string): UnregisterMeasurableAction;
|
|
119
|
-
export declare function registerMeasurableEffect(elementKey: string, measurable: Measurable): ThunkAction<() => void, unknown, unknown, Action>;
|
|
120
|
-
export declare function changeElementBoxModels(changedElementBoxModels: Map<string, BoxModel | null
|
|
252
|
+
export declare function mountComponent(documentKey: string, elementKey: string): MountComponentAction;
|
|
253
|
+
export declare function unmountComponent(documentKey: string, elementKey: string): UnmountComponentAction;
|
|
254
|
+
export declare function mountComponentEffect(documentKey: string, elementKey: string): ThunkAction<() => void, unknown, unknown, Action>;
|
|
255
|
+
export declare function registerComponentHandleEffect(documentKey: string, elementKey: string, componentHandle: unknown): ThunkAction<() => void, unknown, unknown, Action>;
|
|
256
|
+
export declare function registerMeasurable(documentKey: string, elementKey: string, measurable: Measurable): RegisterMeasurableAction;
|
|
257
|
+
export declare function unregisterMeasurable(documentKey: string, elementKey: string): UnregisterMeasurableAction;
|
|
258
|
+
export declare function registerMeasurableEffect(documentKey: string, elementKey: string, measurable: Measurable): ThunkAction<() => void, unknown, unknown, Action>;
|
|
259
|
+
export declare function changeElementBoxModels(changedElementBoxModels: Map<string, Map<string, BoxModel | null>>): ChangeElementBoxModelsAction;
|
|
121
260
|
export declare function changeDocumentElementSize(size: Size): ChangeDocumentElementSizeAction;
|
|
122
261
|
export declare function changeDocumentElementScrollTop(scrollTop: number): ChangeDocumentElementScrollTopAction;
|
|
262
|
+
export declare function scrollDocumentElement(scrollTopDelta: number): ScrollDocumentElementAction;
|
|
263
|
+
export declare function registerPropControllersHandle(documentKey: string, elementKey: string, handle: PropControllersHandle): RegisterPropControllersHandleAction;
|
|
264
|
+
export declare function unregisterPropControllersHandle(documentKey: string, elementKey: string): UnregisterPropControllersHandleAction;
|
|
265
|
+
export declare function registerPropControllers(documentKey: string, elementKey: string, propControllers: Record<string, PropController>): RegisterPropControllersAction;
|
|
266
|
+
export declare function unregisterPropControllers(documentKey: string, elementKey: string): UnregisterPropControllersAction;
|
|
267
|
+
export declare function messageHostPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageHostPropControllerAction<T>;
|
|
268
|
+
export declare function messageBuilderPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageBuilderPropControllerAction<T>;
|
|
269
|
+
export declare function changeApiResource(resource: APIResource): ChangeAPIResourceAction;
|
|
270
|
+
export declare function evictApiResource(id: string): EvictAPIResourceAction;
|
|
123
271
|
export {};
|
|
124
272
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/state/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,KA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AAED,wBAAgB,4BAA4B,CAAC,CAAC,EAC5C,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,CAAC,GACT,kCAAkC,CAAC,CAAC,CAAC,CAKvC;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,WAAW,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,sBAAsB,CAEnE"}
|
|
@@ -11,12 +11,12 @@ export declare type Measurable = Element | BoxModelHandle;
|
|
|
11
11
|
export declare function isMeasurable(value: unknown): value is Measurable;
|
|
12
12
|
export declare function measure(measurable: Measurable): BoxModel | null;
|
|
13
13
|
export declare type State = {
|
|
14
|
-
measurables: Map<string, Measurable
|
|
15
|
-
boxModels: Map<string, BoxModel
|
|
14
|
+
measurables: Map<string, Map<string, Measurable>>;
|
|
15
|
+
boxModels: Map<string, Map<string, BoxModel>>;
|
|
16
16
|
};
|
|
17
17
|
export declare function getInitialState(): State;
|
|
18
|
-
export declare function getMeasurables(state: State): Map<string, Measurable
|
|
19
|
-
export declare function getBoxModels(state: State): Map<string, BoxModel
|
|
20
|
-
export declare function getBoxModel(state: State, elementKey: string): BoxModel | null;
|
|
18
|
+
export declare function getMeasurables(state: State): Map<string, Map<string, Measurable>>;
|
|
19
|
+
export declare function getBoxModels(state: State): Map<string, Map<string, BoxModel>>;
|
|
20
|
+
export declare function getBoxModel(state: State, documentKey: string, elementKey: string): BoxModel | null;
|
|
21
21
|
export declare function reducer(state: State | undefined, action: Action): State;
|
|
22
22
|
//# sourceMappingURL=box-models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box-models.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/box-models.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,aAAa,EAGd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,MAAM,EAAe,MAAM,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AAgB,OAAO,CAAC,UAAU,EAAE,UAAU,GAAG,QAAQ,GAAG,IAAI,CAI/D;AAED,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAA;IACjD,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAA;CAC9C,CAAA;AAED,wBAAgB,eAAe,IAAI,KAAK,CAEvC;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAEjF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAE7E;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,QAAQ,GAAG,IAAI,CAEjB;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,SAkDvE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Action } from '../actions';
|
|
2
|
+
import type { DescriptorsPropControllers, PropController } from '../../prop-controllers/instances';
|
|
3
|
+
import type { Descriptor } from '../../prop-controllers/descriptors';
|
|
4
|
+
export interface PropControllersHandle<T extends Record<string, Descriptor> = Record<string, Descriptor>> {
|
|
5
|
+
setPropControllers(propControllers: DescriptorsPropControllers<T> | null): void;
|
|
6
|
+
}
|
|
7
|
+
export declare function isPropControllersHandle(value: unknown): value is PropControllersHandle;
|
|
8
|
+
export declare type State = {
|
|
9
|
+
handles: Map<string, Map<string, PropControllersHandle>>;
|
|
10
|
+
instances: Map<string, Map<string, Record<string, PropController>>>;
|
|
11
|
+
};
|
|
12
|
+
export declare function getInitialState(): State;
|
|
13
|
+
export declare function getPropControllersHandle(state: State, documentKey: string, elementKey: string): PropControllersHandle | null;
|
|
14
|
+
export declare function getPropController(state: State, documentKey: string, elementKey: string, propName: string): PropController | null;
|
|
15
|
+
export declare function reducer(state: State | undefined, action: Action): State;
|
|
16
|
+
//# sourceMappingURL=prop-controller-handles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-controller-handles.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/prop-controller-handles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAClG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAA;AAEpE,MAAM,WAAW,qBAAqB,CACpC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAEjE,kBAAkB,CAAC,eAAe,EAAE,0BAA0B,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAA;CAChF;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAWtF;AAED,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAA;IACxD,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CACpE,CAAA;AAED,wBAAgB,eAAe,IAAI,KAAK,CAEvC;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,qBAAqB,GAAG,IAAI,CAE9B;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,cAAc,GAAG,IAAI,CAEvB;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAmD/E"}
|
|
@@ -5,6 +5,7 @@ export declare type State = Map<string, Record<string, PropControllerDescriptor>
|
|
|
5
5
|
export declare function getInitialState({ propControllerDescriptors, }?: {
|
|
6
6
|
propControllerDescriptors?: Map<string, Record<string, PropControllerDescriptor>>;
|
|
7
7
|
}): State;
|
|
8
|
+
export declare function getPropControllerDescriptors(state: State): Map<string, Record<string, PropControllerDescriptor>>;
|
|
8
9
|
export declare function getComponentPropControllerDescriptors(state: State, componentType: string): Record<string, PropControllerDescriptor> | null;
|
|
9
10
|
export declare function reducer(state: State | undefined, action: Action): State;
|
|
10
11
|
//# sourceMappingURL=prop-controllers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-controllers.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/prop-controllers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,YAAY,EAAE,wBAAwB,EAAE,CAAA;AAExC,oBAAY,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAA;AAEzE,wBAAgB,eAAe,CAAC,EAC9B,yBAAqC,GACtC,GAAE;IACD,yBAAyB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAA;CAC7E,GAAG,KAAK,CAEb;
|
|
1
|
+
{"version":3,"file":"prop-controllers.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/prop-controllers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,YAAY,EAAE,wBAAwB,EAAE,CAAA;AAExC,oBAAY,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAA;AAEzE,wBAAgB,eAAe,CAAC,EAC9B,yBAAqC,GACtC,GAAE;IACD,yBAAyB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAA;CAC7E,GAAG,KAAK,CAEb;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,KAAK,GACX,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAEvD;AAED,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,MAAM,GACpB,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,GAAG,IAAI,CAEjD;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAgB/E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Action } from '../actions';
|
|
2
2
|
export declare type Data = undefined | null | boolean | number | string | Data[] | {
|
|
3
3
|
[key: string]: Data;
|
|
4
4
|
};
|
|
@@ -14,15 +14,19 @@ export declare type ElementReference = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare type Element = ElementData | ElementReference;
|
|
16
16
|
export declare function isElementReference(element: Element): element is ElementReference;
|
|
17
|
+
export declare type DocumentReference = {
|
|
18
|
+
key: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function createDocumentReference(key: string): DocumentReference;
|
|
17
21
|
export declare type Document = {
|
|
22
|
+
key: string;
|
|
18
23
|
rootElement: Element;
|
|
19
24
|
};
|
|
20
|
-
export declare function createDocument(rootElement: Element): Document;
|
|
25
|
+
export declare function createDocument(key: string, rootElement: Element): Document;
|
|
21
26
|
export declare type State = Map<string, Document>;
|
|
22
27
|
export declare function getInitialState({ rootElements, }?: {
|
|
23
28
|
rootElements?: Map<string, Element>;
|
|
24
29
|
}): State;
|
|
25
30
|
export declare function getDocument(state: State, documentKey: string): Document | null;
|
|
26
|
-
export declare function
|
|
27
|
-
export declare function reducer(state: State | undefined, _action: Action): State;
|
|
31
|
+
export declare function reducer(state: State | undefined, action: Action): State;
|
|
28
32
|
//# sourceMappingURL=read-only-documents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-only-documents.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/read-only-documents.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"read-only-documents.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/read-only-documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAEhD,oBAAY,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAElG,oBAAY,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;CAAE,CAAA;AAEpF,oBAAY,gBAAgB,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhF,oBAAY,OAAO,GAAG,WAAW,GAAG,gBAAgB,CAAA;AAEpD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,gBAAgB,CAEhF;AAED,oBAAY,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAEtE;AAED,oBAAY,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,QAAQ,CAE1E;AAED,oBAAY,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AAEzC,wBAAgB,eAAe,CAAC,EAC9B,YAAwB,GACzB,GAAE;IAAE,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAO,GAAG,KAAK,CAQtD;AAMD,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAE9E;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAgB/E"}
|
|
@@ -8,6 +8,6 @@ export declare type State = ReadOnlyDocuments.State;
|
|
|
8
8
|
export declare function getInitialState({ rootElements, }?: {
|
|
9
9
|
rootElements?: Map<string, ReadOnlyDocuments.Element>;
|
|
10
10
|
}): State;
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function getDocument(state: State, documentKey: string): ReadOnlyDocuments.Document | null;
|
|
12
12
|
export declare function reducer(state: ReadOnlyDocuments.State | undefined, action: Action): State;
|
|
13
13
|
//# sourceMappingURL=read-write-documents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-write-documents.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/read-write-documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAA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