@makeswift/runtime 0.0.0-a8dd080 → 0.0.0-e76fc43
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/box-model.js +1 -0
- package/components.js +1 -0
- package/dist/actions.cjs.js +73 -16
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +67 -16
- package/dist/actions.es.js.map +1 -1
- package/dist/box-models.cjs.js +24 -14
- package/dist/box-models.cjs.js.map +1 -1
- package/dist/box-models.es.js +24 -14
- package/dist/box-models.es.js.map +1 -1
- package/dist/components.cjs.js +16093 -1358
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +19606 -4891
- package/dist/components.es.js.map +1 -1
- package/dist/deepEqual.cjs.js +40 -0
- package/dist/deepEqual.cjs.js.map +1 -0
- package/dist/deepEqual.es.js +39 -0
- package/dist/deepEqual.es.js.map +1 -0
- package/dist/descriptors.cjs.js +186 -0
- package/dist/descriptors.cjs.js.map +1 -0
- package/dist/descriptors.es.js +184 -0
- package/dist/descriptors.es.js.map +1 -0
- package/dist/immutable.es.cjs.js +4459 -0
- package/dist/immutable.es.cjs.js.map +1 -0
- package/dist/immutable.es.es.js +4450 -0
- package/dist/immutable.es.es.js.map +1 -0
- package/dist/instances.cjs.js +89 -0
- package/dist/instances.cjs.js.map +1 -0
- package/dist/instances.es.js +87 -0
- package/dist/instances.es.js.map +1 -0
- package/dist/main.cjs.js +1 -0
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +1 -1
- package/dist/prop-controllers.cjs.js +4 -173
- 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 +173 -33
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +180 -40
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/react.cjs.js +3 -0
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.cjs2.js +186 -164
- package/dist/react.cjs2.js.map +1 -1
- package/dist/react.es.js +3 -1
- package/dist/react.es.js.map +1 -1
- package/dist/react.es2.js +170 -148
- package/dist/react.es2.js.map +1 -1
- package/dist/shallowEqual.cjs.js +24 -0
- package/dist/shallowEqual.cjs.js.map +1 -0
- package/dist/shallowEqual.es.js +23 -0
- package/dist/shallowEqual.es.js.map +1 -0
- package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts +11 -0
- package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -0
- package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts +8 -0
- package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -0
- package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts +11 -0
- package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -0
- package/dist/types/components/BackgroundsContainer/index.d.ts +11 -0
- package/dist/types/components/BackgroundsContainer/index.d.ts.map +1 -0
- package/dist/types/components/Box/Box.d.ts +4 -1
- package/dist/types/components/Box/Box.d.ts.map +1 -1
- package/dist/types/components/Carousel/Carousel.d.ts +25 -0
- package/dist/types/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/types/components/Carousel/index.d.ts +2 -0
- package/dist/types/components/Carousel/index.d.ts.map +1 -0
- package/dist/types/components/Countdown/Countdown.d.ts +24 -0
- package/dist/types/components/Countdown/Countdown.d.ts.map +1 -0
- package/dist/types/components/Countdown/index.d.ts +2 -0
- package/dist/types/components/Countdown/index.d.ts.map +1 -0
- package/dist/types/components/Divider/Divider.d.ts +14 -0
- package/dist/types/components/Divider/Divider.d.ts.map +1 -0
- package/dist/types/components/Divider/index.d.ts +2 -0
- package/dist/types/components/Divider/index.d.ts.map +1 -0
- package/dist/types/components/Embed/Embed.d.ts +11 -0
- package/dist/types/components/Embed/Embed.d.ts.map +1 -0
- package/dist/types/components/Embed/index.d.ts +2 -0
- package/dist/types/components/Embed/index.d.ts.map +1 -0
- package/dist/types/components/Image/Image.d.ts +26 -0
- package/dist/types/components/Image/Image.d.ts.map +1 -0
- package/dist/types/components/Image/index.d.ts +2 -0
- package/dist/types/components/Image/index.d.ts.map +1 -0
- package/dist/types/components/Link/index.d.ts +9 -0
- package/dist/types/components/Link/index.d.ts.map +1 -0
- package/dist/types/components/RichText/index.d.ts +5 -0
- package/dist/types/components/RichText/index.d.ts.map +1 -0
- package/dist/types/components/Root/Root.d.ts.map +1 -1
- package/dist/types/components/builtin/Box/Box.d.ts +30 -0
- package/dist/types/components/builtin/Box/Box.d.ts.map +1 -0
- package/dist/types/components/builtin/Box/animations.d.ts +69 -0
- package/dist/types/components/builtin/Box/animations.d.ts.map +1 -0
- package/dist/types/components/builtin/Box/components/Placeholder/index.d.ts +7 -0
- package/dist/types/components/builtin/Box/components/Placeholder/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Box/index.d.ts +3 -0
- package/dist/types/components/builtin/Box/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Button/Button.d.ts +115 -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 +25 -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 +24 -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 +14 -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 +11 -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/Image/Image.d.ts +26 -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 +23 -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 +11 -0
- package/dist/types/components/builtin/Root/Root.d.ts.map +1 -0
- package/dist/types/components/builtin/Root/components/Placeholder/index.d.ts +5 -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 +18 -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 +16 -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/Link/index.d.ts +9 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Link/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/hooks/useRichText.d.ts +1 -0
- package/dist/types/components/builtin/Text/hooks/useRichText.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/Text/prop-controllers.d.ts +286 -0
- package/dist/types/components/builtin/Text/prop-controllers.d.ts.map +1 -0
- package/dist/types/components/builtin/index.d.ts +13 -0
- package/dist/types/components/builtin/index.d.ts.map +1 -0
- package/dist/types/components/hooks/index.d.ts +6 -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/useRichText.d.ts +18 -0
- package/dist/types/components/hooks/useRichText.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 +2 -3
- package/dist/types/components/index.d.ts.map +1 -1
- 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/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/shared/RichTextEditor/components/Block/index.d.ts +24 -0
- package/dist/types/components/shared/RichTextEditor/components/Block/index.d.ts.map +1 -0
- package/dist/types/components/shared/RichTextEditor/components/Link/index.d.ts +9 -0
- package/dist/types/components/shared/RichTextEditor/components/Link/index.d.ts.map +1 -0
- package/dist/types/components/shared/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts +23 -0
- package/dist/types/components/shared/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts.map +1 -0
- package/dist/types/components/shared/RichTextEditor/components/Mark/index.d.ts +13 -0
- package/dist/types/components/shared/RichTextEditor/components/Mark/index.d.ts.map +1 -0
- package/dist/types/components/shared/RichTextEditor/index.d.ts +5 -0
- package/dist/types/components/shared/RichTextEditor/index.d.ts.map +1 -0
- package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts +3 -0
- package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts.map +1 -0
- package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesMarks.d.ts +3 -0
- package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesMarks.d.ts.map +1 -0
- package/dist/types/components/shared/RichTextEditor/plugins/Inlines.d.ts +3 -0
- package/dist/types/components/shared/RichTextEditor/plugins/Inlines.d.ts.map +1 -0
- package/dist/types/components/shared/RichTextEditor/plugins/Link.d.ts +3 -0
- package/dist/types/components/shared/RichTextEditor/plugins/Link.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/contants.d.ts +5 -0
- package/dist/types/components/utils/contants.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/intersection.d.ts +4 -0
- package/dist/types/components/utils/intersection.d.ts.map +1 -0
- 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/keys.d.ts +5 -0
- package/dist/types/components/utils/keys.d.ts.map +1 -0
- package/dist/types/components/utils/placeholders.d.ts +10 -0
- package/dist/types/components/utils/placeholders.d.ts.map +1 -0
- package/dist/types/components/utils/queries.d.ts +7 -0
- package/dist/types/components/utils/queries.d.ts.map +1 -0
- package/dist/types/components/utils/types.d.ts +11 -0
- package/dist/types/components/utils/types.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/prop-controllers/descriptors.d.ts +38 -2
- 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 +69 -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 +2 -0
- package/dist/types/runtimes/react.d.ts.map +1 -1
- package/dist/types/state/actions.d.ts +88 -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/react-builder-preview.d.ts +13 -10
- package/dist/types/state/react-builder-preview.d.ts.map +1 -1
- package/dist/types/state/react-page.d.ts +5 -0
- 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/package.json +56 -5
- package/prop-controllers.js +1 -0
- package/react.js +1 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Editor } from 'slate-react';
|
|
2
|
+
import { ValueJSON } from 'slate';
|
|
3
|
+
import { OnChangeParam } from 'slate-react';
|
|
4
|
+
import { Descriptor, RichTextDescriptor, Types } from './descriptors';
|
|
5
|
+
import { BuilderEditMode } from '../utils/constants';
|
|
6
|
+
export declare const RichTextPropControllerMessageType: {
|
|
7
|
+
readonly CHANGE_BUILDER_EDIT_MODE: "CHANGE_BUILDER_EDIT_MODE";
|
|
8
|
+
readonly INITIALIZE_EDITOR: "INITIALIZE_EDITOR";
|
|
9
|
+
readonly CHANGE_EDITOR_VALUE: "CHANGE_EDITOR_VALUE";
|
|
10
|
+
readonly FOCUS: "FOCUS";
|
|
11
|
+
readonly BLUR: "BLUR";
|
|
12
|
+
readonly UNDO: "UNDO";
|
|
13
|
+
readonly REDO: "REDO";
|
|
14
|
+
};
|
|
15
|
+
declare type ChangeBuilderEditModeRichTextPropControllerMessage = {
|
|
16
|
+
type: typeof RichTextPropControllerMessageType.CHANGE_BUILDER_EDIT_MODE;
|
|
17
|
+
editMode: BuilderEditMode;
|
|
18
|
+
};
|
|
19
|
+
declare type InitializeEditorRichTextPropControllerMessage = {
|
|
20
|
+
type: typeof RichTextPropControllerMessageType.INITIALIZE_EDITOR;
|
|
21
|
+
value: ValueJSON;
|
|
22
|
+
};
|
|
23
|
+
declare type ChangeEditorValueRichTextPropControllerMessage = {
|
|
24
|
+
type: typeof RichTextPropControllerMessageType.CHANGE_EDITOR_VALUE;
|
|
25
|
+
value: ValueJSON;
|
|
26
|
+
};
|
|
27
|
+
declare type FocusRichTextPropControllerMessage = {
|
|
28
|
+
type: typeof RichTextPropControllerMessageType.FOCUS;
|
|
29
|
+
};
|
|
30
|
+
declare type BlurRichTextPropControllerMessage = {
|
|
31
|
+
type: typeof RichTextPropControllerMessageType.BLUR;
|
|
32
|
+
};
|
|
33
|
+
declare type UndoRichTextPropControllerMessage = {
|
|
34
|
+
type: typeof RichTextPropControllerMessageType.UNDO;
|
|
35
|
+
};
|
|
36
|
+
declare type RedoRichTextPropControllerMessage = {
|
|
37
|
+
type: typeof RichTextPropControllerMessageType.REDO;
|
|
38
|
+
};
|
|
39
|
+
export declare type RichTextPropControllerMessage = ChangeBuilderEditModeRichTextPropControllerMessage | InitializeEditorRichTextPropControllerMessage | ChangeEditorValueRichTextPropControllerMessage | FocusRichTextPropControllerMessage | BlurRichTextPropControllerMessage | UndoRichTextPropControllerMessage | RedoRichTextPropControllerMessage;
|
|
40
|
+
export declare type PropControllerMessage = RichTextPropControllerMessage;
|
|
41
|
+
declare type Send<T = PropControllerMessage> = (message: T) => void;
|
|
42
|
+
export declare abstract class PropController<T = PropControllerMessage> {
|
|
43
|
+
protected send: Send<T>;
|
|
44
|
+
constructor(send: Send<T>);
|
|
45
|
+
abstract recv(message: T): void;
|
|
46
|
+
}
|
|
47
|
+
declare class DefaultPropController extends PropController {
|
|
48
|
+
recv(_message: PropControllerMessage): void;
|
|
49
|
+
}
|
|
50
|
+
declare class RichTextPropController extends PropController<RichTextPropControllerMessage> {
|
|
51
|
+
private editor;
|
|
52
|
+
recv(message: RichTextPropControllerMessage): void;
|
|
53
|
+
setSlateEditor(editor: Editor): void;
|
|
54
|
+
onChange(change: OnChangeParam): void;
|
|
55
|
+
focus(): void;
|
|
56
|
+
blur(): void;
|
|
57
|
+
undo(): void;
|
|
58
|
+
redo(): void;
|
|
59
|
+
}
|
|
60
|
+
declare type DescriptorPropController<T extends Descriptor> = T extends {
|
|
61
|
+
type: typeof Types.RichText;
|
|
62
|
+
} ? RichTextPropController : DefaultPropController;
|
|
63
|
+
export declare type DescriptorsPropControllers<T extends Record<string, Descriptor>> = {
|
|
64
|
+
[K in keyof T]: undefined extends T[K] ? DescriptorPropController<Exclude<T[K], undefined>> : DescriptorPropController<T[K]>;
|
|
65
|
+
};
|
|
66
|
+
export declare function createPropController(descriptor: RichTextDescriptor, send: Send<RichTextPropControllerMessage>): RichTextPropController;
|
|
67
|
+
export declare function createPropController(descriptor: Descriptor, send: Send): PropController;
|
|
68
|
+
export {};
|
|
69
|
+
//# 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,EA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AAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAAG,cAAc,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 { Document, Element, RuntimeProvider, ReactRuntime } from './runtimes/react';
|
|
3
|
+
export { Document, Element, RuntimeProvider, ReactRuntime, useIsInBuilder } 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,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA"}
|
|
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,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -16,6 +16,8 @@ declare type RuntimeProviderProps = {
|
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
};
|
|
18
18
|
export declare function RuntimeProvider({ children, defaultRootElements, }: RuntimeProviderProps): JSX.Element;
|
|
19
|
+
export declare function useElementId(elementKey: string | null | undefined): string | null;
|
|
20
|
+
export declare function useIsInBuilder(): boolean;
|
|
19
21
|
declare type ElementProps = {
|
|
20
22
|
element: ReactPage.Element;
|
|
21
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/runtimes/react.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/runtimes/react.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAKV,MAAM,OAAO,CAAA;AAGd,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;AAIhE,eAAO,MAAM,YAAY;;cAYV,MAAM;eAAS,MAAM;;;;QAC/B,MAAM,IAAI;CAcd,CAAA;AAID,aAAK,oBAAoB,GAAG;IAC1B,mBAAmB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,mBAAmB,GACpB,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CAsEpC;AAoBD,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAQjF;AAMD,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAwDD,aAAK,YAAY,GAAG;IAClB,OAAO,EAAE,SAAS,CAAC,OAAO,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,OAAO,oDAuBlB,CAAA;AAEF,aAAK,aAAa,GAAG;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,QAAQ,qDAmBnB,CAAA"}
|
|
@@ -5,6 +5,8 @@ import type { ThunkAction } from 'redux-thunk';
|
|
|
5
5
|
import { ComponentMeta } from './modules/components-meta';
|
|
6
6
|
import { PropControllerDescriptor } from '../prop-controllers';
|
|
7
7
|
import type { Size } from './react-builder-preview';
|
|
8
|
+
import type { PropControllersHandle } from './modules/prop-controller-handles';
|
|
9
|
+
import type { PropController, PropControllerMessage } from '../prop-controllers/instances';
|
|
8
10
|
export declare const ActionTypes: {
|
|
9
11
|
readonly CHANGE_DOCUMENT: "CHANGE_DOCUMENT";
|
|
10
12
|
readonly REGISTER_COMPONENT: "REGISTER_COMPONENT";
|
|
@@ -13,12 +15,19 @@ export declare const ActionTypes: {
|
|
|
13
15
|
readonly UNREGISTER_REACT_COMPONENT: "UNREGISTER_REACT_COMPONENT";
|
|
14
16
|
readonly MOUNT_COMPONENT: "MOUNT_COMPONENT";
|
|
15
17
|
readonly UNMOUNT_COMPONENT: "UNMOUNT_COMPONENT";
|
|
16
|
-
readonly
|
|
18
|
+
readonly REGISTER_COMPONENT_HANDLE: "REGISTER_COMPONENT_HANDLE";
|
|
19
|
+
readonly UNREGISTER_COMPONENT_HANDLE: "UNREGISTER_COMPONENT_HANDLE";
|
|
17
20
|
readonly REGISTER_MEASURABLE: "REGISTER_MEASURABLE";
|
|
18
21
|
readonly UNREGISTER_MEASURABLE: "UNREGISTER_MEASURABLE";
|
|
19
22
|
readonly CHANGE_ELEMENT_BOX_MODELS: "CHANGE_ELEMENT_BOX_MODELS";
|
|
20
23
|
readonly CHANGE_DOCUMENT_ELEMENT_SIZE: "CHANGE_DOCUMENT_ELEMENT_SIZE";
|
|
21
24
|
readonly CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP: "CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP";
|
|
25
|
+
readonly REGISTER_PROP_CONTROLLERS_HANDLE: "REGISTER_PROP_CONTROLLERS_HANDLE";
|
|
26
|
+
readonly UNREGISTER_PROP_CONTROLLERS_HANDLE: "UNREGISTER_PROP_CONTROLLERS_HANDLE";
|
|
27
|
+
readonly REGISTER_PROP_CONTROLLERS: "REGISTER_PROP_CONTROLLERS";
|
|
28
|
+
readonly UNREGISTER_PROP_CONTROLLERS: "UNREGISTER_PROP_CONTROLLERS";
|
|
29
|
+
readonly MESSAGE_HOST_PROP_CONTROLLER: "MESSAGE_HOST_PROP_CONTROLLER";
|
|
30
|
+
readonly MESSAGE_BUILDER_PROP_CONTROLLER: "MESSAGE_BUILDER_PROP_CONTROLLER";
|
|
22
31
|
};
|
|
23
32
|
declare type ChangeDocumentAction = {
|
|
24
33
|
type: typeof ActionTypes.CHANGE_DOCUMENT;
|
|
@@ -57,25 +66,36 @@ declare type UnregisterReactComponentAction = {
|
|
|
57
66
|
declare type MountComponentAction = {
|
|
58
67
|
type: typeof ActionTypes.MOUNT_COMPONENT;
|
|
59
68
|
payload: {
|
|
69
|
+
documentKey: string;
|
|
60
70
|
elementKey: string;
|
|
61
71
|
};
|
|
62
72
|
};
|
|
63
73
|
declare type UnmountComponentAction = {
|
|
64
74
|
type: typeof ActionTypes.UNMOUNT_COMPONENT;
|
|
65
75
|
payload: {
|
|
76
|
+
documentKey: string;
|
|
66
77
|
elementKey: string;
|
|
67
78
|
};
|
|
68
79
|
};
|
|
69
|
-
declare type
|
|
70
|
-
type: typeof ActionTypes.
|
|
80
|
+
declare type RegisterComponentHandleAction = {
|
|
81
|
+
type: typeof ActionTypes.REGISTER_COMPONENT_HANDLE;
|
|
71
82
|
payload: {
|
|
83
|
+
documentKey: string;
|
|
72
84
|
elementKey: string;
|
|
73
85
|
componentHandle: unknown;
|
|
74
86
|
};
|
|
75
87
|
};
|
|
88
|
+
declare type UnregisterComponentHandleAction = {
|
|
89
|
+
type: typeof ActionTypes.UNREGISTER_COMPONENT_HANDLE;
|
|
90
|
+
payload: {
|
|
91
|
+
documentKey: string;
|
|
92
|
+
elementKey: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
76
95
|
declare type RegisterMeasurableAction = {
|
|
77
96
|
type: typeof ActionTypes.REGISTER_MEASURABLE;
|
|
78
97
|
payload: {
|
|
98
|
+
documentKey: string;
|
|
79
99
|
elementKey: string;
|
|
80
100
|
measurable: Measurable;
|
|
81
101
|
};
|
|
@@ -83,13 +103,14 @@ declare type RegisterMeasurableAction = {
|
|
|
83
103
|
declare type UnregisterMeasurableAction = {
|
|
84
104
|
type: typeof ActionTypes.UNREGISTER_MEASURABLE;
|
|
85
105
|
payload: {
|
|
106
|
+
documentKey: string;
|
|
86
107
|
elementKey: string;
|
|
87
108
|
};
|
|
88
109
|
};
|
|
89
110
|
declare type ChangeElementBoxModelsAction = {
|
|
90
111
|
type: typeof ActionTypes.CHANGE_ELEMENT_BOX_MODELS;
|
|
91
112
|
payload: {
|
|
92
|
-
changedElementBoxModels: Map<string, BoxModel | null
|
|
113
|
+
changedElementBoxModels: Map<string, Map<string, BoxModel | null>>;
|
|
93
114
|
};
|
|
94
115
|
};
|
|
95
116
|
declare type ChangeDocumentElementSizeAction = {
|
|
@@ -104,21 +125,75 @@ declare type ChangeDocumentElementScrollTopAction = {
|
|
|
104
125
|
scrollTop: number;
|
|
105
126
|
};
|
|
106
127
|
};
|
|
107
|
-
|
|
128
|
+
declare type RegisterPropControllersHandleAction = {
|
|
129
|
+
type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS_HANDLE;
|
|
130
|
+
payload: {
|
|
131
|
+
documentKey: string;
|
|
132
|
+
elementKey: string;
|
|
133
|
+
handle: PropControllersHandle;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
declare type UnregisterPropControllersHandleAction = {
|
|
137
|
+
type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS_HANDLE;
|
|
138
|
+
payload: {
|
|
139
|
+
documentKey: string;
|
|
140
|
+
elementKey: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
declare type RegisterPropControllersAction = {
|
|
144
|
+
type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS;
|
|
145
|
+
payload: {
|
|
146
|
+
documentKey: string;
|
|
147
|
+
elementKey: string;
|
|
148
|
+
propControllers: Record<string, PropController>;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
declare type UnregisterPropControllersAction = {
|
|
152
|
+
type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS;
|
|
153
|
+
payload: {
|
|
154
|
+
documentKey: string;
|
|
155
|
+
elementKey: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
declare type MessageHostPropControllerAction<T = PropControllerMessage> = {
|
|
159
|
+
type: typeof ActionTypes.MESSAGE_HOST_PROP_CONTROLLER;
|
|
160
|
+
payload: {
|
|
161
|
+
documentKey: string;
|
|
162
|
+
elementKey: string;
|
|
163
|
+
propName: string;
|
|
164
|
+
message: T;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
declare type MessageBuilderPropControllerAction<T = PropControllerMessage> = {
|
|
168
|
+
type: typeof ActionTypes.MESSAGE_BUILDER_PROP_CONTROLLER;
|
|
169
|
+
payload: {
|
|
170
|
+
documentKey: string;
|
|
171
|
+
elementKey: string;
|
|
172
|
+
propName: string;
|
|
173
|
+
message: T;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
export declare type Action = ChangeDocumentAction | RegisterComponentAction | UnregisterComponentAction | RegisterReactComponentAction | UnregisterReactComponentAction | MountComponentAction | UnmountComponentAction | RegisterComponentHandleAction | UnregisterComponentHandleAction | RegisterMeasurableAction | UnregisterMeasurableAction | ChangeElementBoxModelsAction | ChangeDocumentElementSizeAction | ChangeDocumentElementScrollTopAction | RegisterPropControllersHandleAction | UnregisterPropControllersHandleAction | RegisterPropControllersAction | UnregisterPropControllersAction | MessageHostPropControllerAction | MessageBuilderPropControllerAction;
|
|
108
177
|
export declare function changeDocument(documentKey: string, operation: Operation): ChangeDocumentAction;
|
|
109
178
|
export declare function registerComponent(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): RegisterComponentAction;
|
|
110
179
|
export declare function unregisterComponent(type: string): UnregisterComponentAction;
|
|
111
180
|
export declare function registerComponentEffect(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): ThunkAction<() => void, unknown, unknown, Action>;
|
|
112
181
|
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
|
|
182
|
+
export declare function mountComponent(documentKey: string, elementKey: string): MountComponentAction;
|
|
183
|
+
export declare function unmountComponent(documentKey: string, elementKey: string): UnmountComponentAction;
|
|
184
|
+
export declare function mountComponentEffect(documentKey: string, elementKey: string): ThunkAction<() => void, unknown, unknown, Action>;
|
|
185
|
+
export declare function registerComponentHandleEffect(documentKey: string, elementKey: string, componentHandle: unknown): ThunkAction<() => void, unknown, unknown, Action>;
|
|
186
|
+
export declare function registerMeasurable(documentKey: string, elementKey: string, measurable: Measurable): RegisterMeasurableAction;
|
|
187
|
+
export declare function unregisterMeasurable(documentKey: string, elementKey: string): UnregisterMeasurableAction;
|
|
188
|
+
export declare function registerMeasurableEffect(documentKey: string, elementKey: string, measurable: Measurable): ThunkAction<() => void, unknown, unknown, Action>;
|
|
189
|
+
export declare function changeElementBoxModels(changedElementBoxModels: Map<string, Map<string, BoxModel | null>>): ChangeElementBoxModelsAction;
|
|
121
190
|
export declare function changeDocumentElementSize(size: Size): ChangeDocumentElementSizeAction;
|
|
122
191
|
export declare function changeDocumentElementScrollTop(scrollTop: number): ChangeDocumentElementScrollTopAction;
|
|
192
|
+
export declare function registerPropControllersHandle(documentKey: string, elementKey: string, handle: PropControllersHandle): RegisterPropControllersHandleAction;
|
|
193
|
+
export declare function unregisterPropControllersHandle(documentKey: string, elementKey: string): UnregisterPropControllersHandleAction;
|
|
194
|
+
export declare function registerPropControllers(documentKey: string, elementKey: string, propControllers: Record<string, PropController>): RegisterPropControllersAction;
|
|
195
|
+
export declare function unregisterPropControllers(documentKey: string, elementKey: string): UnregisterPropControllersAction;
|
|
196
|
+
export declare function messageHostPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageHostPropControllerAction<T>;
|
|
197
|
+
export declare function messageBuilderPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageBuilderPropControllerAction<T>;
|
|
123
198
|
export {};
|
|
124
199
|
//# 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,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;
|
|
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,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAE1F,eAAO,MAAM,WAAW;;;;;;;;;;;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AM,EAAE,qBAAqB,GAC5B,mCAAmC,CAKrC;AAED,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,qCAAqC,CAKvC;AAED,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAC9C,6BAA6B,CAK/B;AAED,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,+BAA+B,CAEjC;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EACzC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,CAAC,GACT,+BAA+B,CAAC,CAAC,CAAC,CAKpC;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"}
|
|
@@ -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,YAAY,CAAA;AAEhD,YAAY,EAAE,QAAQ,EAAE,CAAA;AAExB,wBAAgB,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAI/C;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,QAAQ,CAE1D;AAED,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,CAEjD;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,IAAI,QAAQ,GAAG,IAAI,CAAA;CAC/B;AAED,oBAAY,UAAU,GAAG,OAAO,GAAG,cAAc,CAAA;AAEjD,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAahE;AAED,wBAAgB,OAAO,CAAC,UAAU,EAAE,UAAU,GAAG,QAAQ,GAAG,IAAI,CAI/D;AAED,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;
|
|
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,YAAY,CAAA;AAEhD,YAAY,EAAE,QAAQ,EAA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|
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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@@
|
|
|
1
|
-
import { Middleware, PreloadedState, Store as ReduxStore } from
|
|
2
|
-
import { ThunkAction, ThunkDispatch } from
|
|
3
|
-
import * as ReactComponents from
|
|
4
|
-
import * as BoxModels from
|
|
5
|
-
import * as ComponentsMeta from
|
|
6
|
-
import * as PropControllers from
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
export type {
|
|
10
|
-
export {
|
|
1
|
+
import { Middleware, PreloadedState, Store as ReduxStore } from 'redux';
|
|
2
|
+
import { ThunkAction, ThunkDispatch } from 'redux-thunk';
|
|
3
|
+
import * as ReactComponents from './modules/react-components';
|
|
4
|
+
import * as BoxModels from './modules/box-models';
|
|
5
|
+
import * as ComponentsMeta from './modules/components-meta';
|
|
6
|
+
import * as PropControllers from './modules/prop-controllers';
|
|
7
|
+
import * as PropControllerHandles from './modules/prop-controller-handles';
|
|
8
|
+
import { Action } from './actions';
|
|
9
|
+
export type { Operation } from './modules/read-write-documents';
|
|
10
|
+
export type { BoxModelHandle } from './modules/box-models';
|
|
11
|
+
export { createBox, getBox, parse } from './modules/box-models';
|
|
11
12
|
declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
12
13
|
documents: import("./modules/read-only-documents").State;
|
|
13
14
|
reactComponents: ReactComponents.State;
|
|
14
15
|
boxModels: BoxModels.State;
|
|
15
16
|
componentsMeta: ComponentsMeta.State;
|
|
16
17
|
propControllers: PropControllers.State;
|
|
18
|
+
propControllerHandles: PropControllerHandles.State;
|
|
19
|
+
isInBuilder: boolean;
|
|
17
20
|
}>, Action>;
|
|
18
21
|
export declare type State = ReturnType<typeof reducer>;
|
|
19
22
|
export declare function startMeasuringElements(): ThunkAction<() => void, State, unknown, Action>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-builder-preview.d.ts","sourceRoot":"","sources":["../../../src/state/react-builder-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EAEV,cAAc,EACd,KAAK,IAAI,UAAU,EACpB,M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AAM,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAU5E;AAED,oBAAY,QAAQ,GAAG,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;AA+B5D,wBAAgB,wBAAwB,IAAI,UAAU,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CA6ChF;AAyGD,oBAAY,KAAK,GAAG,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtE,wBAAgB,cAAc,CAAC,EAC7B,cAAc,GACf,GAAE;IAAE,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAA;CAAO,GAAG,KAAK,CAWzD"}
|
|
@@ -13,10 +13,15 @@ declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
13
13
|
reactComponents: ReactComponents.State;
|
|
14
14
|
componentsMeta: ComponentsMeta.State;
|
|
15
15
|
propControllers: PropControllers.State;
|
|
16
|
+
isInBuilder: boolean;
|
|
16
17
|
}>, Action>;
|
|
17
18
|
export declare type State = ReturnType<typeof reducer>;
|
|
18
19
|
export declare function getDocumentRootElement(state: State, documentKey: string): Documents.Element | null;
|
|
19
20
|
export declare function getReactComponent(state: State, type: string): ReactComponents.ComponentType | null;
|
|
21
|
+
export declare function getElement(state: State, documentKey: string, elementKey: string): Documents.Element | null;
|
|
22
|
+
export declare function getElementPropControllerDescriptors(state: State, documentKey: string, elementKey: string): Record<string, PropControllers.PropControllerDescriptor> | null;
|
|
23
|
+
export declare function getElementId(state: State, documentKey: string, elementKey: string): string | null;
|
|
24
|
+
export declare function getIsInBuilder(state: State): boolean;
|
|
20
25
|
export declare type Dispatch = ThunkDispatch<State, unknown, Action>;
|
|
21
26
|
export declare type Store = ReduxStore<State, Action> & {
|
|
22
27
|
dispatch: Dispatch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-page.d.ts","sourceRoot":"","sources":["../../../src/state/react-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,cAAc,EACd,KAAK,IAAI,UAAU,EACpB,MAAM,OAAO,CAAA;AACd,OAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAA;AAC1D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"react-page.d.ts","sourceRoot":"","sources":["../../../src/state/react-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,cAAc,EACd,KAAK,IAAI,UAAU,EACpB,MAAM,OAAO,CAAA;AACd,OAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAA;AAC1D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,WAAW,EACX,gBAAgB,GACjB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,QAAA,MAAM,OAAO;;;;;;WAMX,CAAA;AAEF,oBAAY,KAAK,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAM9C,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,GAClB,SAAS,CAAC,OAAO,GAAG,IAAI,CAE1B;AAMD,wBAAgB,iBAAiB,CAC/B,KAAK,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
+
{"version":3,"file":"coalesce.d.ts","sourceRoot":"","sources":["../../../src/utils/coalesce.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ,wBAQb,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;CAGlB,CAAA;AAEV,oBAAY,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/deepEqual.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,SAAS,MAAO,OAAO,KAAK,OAAO,KAAG,
|
|
1
|
+
{"version":3,"file":"deepEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/deepEqual.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,SAAS,MAAO,OAAO,KAAK,OAAO,KAAG,OAoB3C,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intersection.d.ts","sourceRoot":"","sources":["../../../src/utils/intersection.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,CAAC,EACjF,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,EACJ,OAAO,GAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,KAAK,OAAmB,GACvD;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;CAAE,CASjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/utils/keys.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI;;uBAA8E,CAAA;AAExF,eAAe,IAAI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shallowEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/shallowEqual.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,YAAY,MAAO,OAAO,KAAK,OAAO,KAAG,
|
|
1
|
+
{"version":3,"file":"shallowEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/shallowEqual.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,YAAY,MAAO,OAAO,KAAK,OAAO,KAAG,OAgB9C,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shallowMerge.d.ts","sourceRoot":"","sources":["../../../src/utils/shallowMerge.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAUnB"}
|