@makeswift/runtime 0.0.0-891612a → 0.0.0-8b2188f
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/actions.cjs.js +116 -17
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +102 -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 +9 -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 +56 -6900
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +27 -6866
- package/dist/components.es.js.map +1 -1
- package/dist/constants.cjs.js +165 -0
- package/dist/constants.cjs.js.map +1 -0
- package/dist/constants.es.js +164 -0
- package/dist/constants.es.js.map +1 -0
- package/dist/control-serialization.cjs.js +91 -0
- package/dist/control-serialization.cjs.js.map +1 -0
- package/dist/control-serialization.es.js +87 -0
- package/dist/control-serialization.es.js.map +1 -0
- package/dist/descriptors.cjs.js +215 -0
- package/dist/descriptors.cjs.js.map +1 -0
- package/dist/descriptors.es.js +183 -0
- package/dist/descriptors.es.js.map +1 -0
- package/dist/graphql.cjs.js +162 -0
- package/dist/graphql.cjs.js.map +1 -0
- package/dist/graphql.es.js +157 -0
- package/dist/graphql.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 +13 -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 +170 -0
- package/dist/next.cjs.js.map +1 -0
- package/dist/next.es.js +160 -0
- package/dist/next.es.js.map +1 -0
- package/dist/prop-controllers.cjs.js +5 -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 +271 -4130
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +264 -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 +30 -3
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.cjs2.js +5756 -681
- package/dist/react.cjs2.js.map +1 -1
- package/dist/react.es.js +26 -1
- package/dist/react.es.js.map +1 -1
- package/dist/react.es2.js +5677 -648
- 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 +67 -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 +6 -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 +30 -0
- package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -0
- package/dist/types/builder/serialization/function-serialization.d.ts +11 -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/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/index.d.ts +15 -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/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/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 +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 +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/next.d.ts +21 -0
- package/dist/types/next.d.ts.map +1 -0
- package/dist/types/prop-controllers/descriptors.d.ts +40 -3
- 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 +27 -12
- package/dist/types/runtimes/react.d.ts.map +1 -1
- package/dist/types/state/actions.d.ts +153 -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 +75 -37
- 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,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const SwatchFragmentDoc = {
|
|
3
|
+
kind: "Document",
|
|
4
|
+
definitions: [
|
|
5
|
+
{
|
|
6
|
+
kind: "FragmentDefinition",
|
|
7
|
+
name: { kind: "Name", value: "Swatch" },
|
|
8
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Swatch" } },
|
|
9
|
+
selectionSet: {
|
|
10
|
+
kind: "SelectionSet",
|
|
11
|
+
selections: [
|
|
12
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
13
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
14
|
+
{ kind: "Field", name: { kind: "Name", value: "hue" } },
|
|
15
|
+
{ kind: "Field", name: { kind: "Name", value: "saturation" } },
|
|
16
|
+
{ kind: "Field", name: { kind: "Name", value: "lightness" } }
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
};
|
|
22
|
+
const FileFragmentDoc = {
|
|
23
|
+
kind: "Document",
|
|
24
|
+
definitions: [
|
|
25
|
+
{
|
|
26
|
+
kind: "FragmentDefinition",
|
|
27
|
+
name: { kind: "Name", value: "File" },
|
|
28
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "File" } },
|
|
29
|
+
selectionSet: {
|
|
30
|
+
kind: "SelectionSet",
|
|
31
|
+
selections: [
|
|
32
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
33
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
34
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
35
|
+
{ kind: "Field", name: { kind: "Name", value: "publicUrl" } },
|
|
36
|
+
{ kind: "Field", name: { kind: "Name", value: "extension" } },
|
|
37
|
+
{
|
|
38
|
+
kind: "Field",
|
|
39
|
+
name: { kind: "Name", value: "dimensions" },
|
|
40
|
+
selectionSet: {
|
|
41
|
+
kind: "SelectionSet",
|
|
42
|
+
selections: [
|
|
43
|
+
{ kind: "Field", name: { kind: "Name", value: "width" } },
|
|
44
|
+
{ kind: "Field", name: { kind: "Name", value: "height" } }
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
};
|
|
53
|
+
const TypographyFragmentDoc = {
|
|
54
|
+
kind: "Document",
|
|
55
|
+
definitions: [
|
|
56
|
+
{
|
|
57
|
+
kind: "FragmentDefinition",
|
|
58
|
+
name: { kind: "Name", value: "Typography" },
|
|
59
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Typography" } },
|
|
60
|
+
selectionSet: {
|
|
61
|
+
kind: "SelectionSet",
|
|
62
|
+
selections: [
|
|
63
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
64
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
65
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
66
|
+
{
|
|
67
|
+
kind: "Field",
|
|
68
|
+
name: { kind: "Name", value: "style" },
|
|
69
|
+
selectionSet: {
|
|
70
|
+
kind: "SelectionSet",
|
|
71
|
+
selections: [
|
|
72
|
+
{ kind: "Field", name: { kind: "Name", value: "deviceId" } },
|
|
73
|
+
{
|
|
74
|
+
kind: "Field",
|
|
75
|
+
name: { kind: "Name", value: "value" },
|
|
76
|
+
selectionSet: {
|
|
77
|
+
kind: "SelectionSet",
|
|
78
|
+
selections: [
|
|
79
|
+
{ kind: "Field", name: { kind: "Name", value: "fontFamily" } },
|
|
80
|
+
{
|
|
81
|
+
kind: "Field",
|
|
82
|
+
name: { kind: "Name", value: "fontSize" },
|
|
83
|
+
selectionSet: {
|
|
84
|
+
kind: "SelectionSet",
|
|
85
|
+
selections: [
|
|
86
|
+
{ kind: "Field", name: { kind: "Name", value: "value" } },
|
|
87
|
+
{ kind: "Field", name: { kind: "Name", value: "unit" } }
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
kind: "Field",
|
|
93
|
+
name: { kind: "Name", value: "color" },
|
|
94
|
+
selectionSet: {
|
|
95
|
+
kind: "SelectionSet",
|
|
96
|
+
selections: [
|
|
97
|
+
{ kind: "Field", name: { kind: "Name", value: "swatchId" } },
|
|
98
|
+
{ kind: "Field", name: { kind: "Name", value: "alpha" } }
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{ kind: "Field", name: { kind: "Name", value: "lineHeight" } },
|
|
103
|
+
{ kind: "Field", name: { kind: "Name", value: "letterSpacing" } },
|
|
104
|
+
{ kind: "Field", name: { kind: "Name", value: "fontWeight" } },
|
|
105
|
+
{ kind: "Field", name: { kind: "Name", value: "textAlign" } },
|
|
106
|
+
{ kind: "Field", name: { kind: "Name", value: "uppercase" } },
|
|
107
|
+
{ kind: "Field", name: { kind: "Name", value: "underline" } },
|
|
108
|
+
{ kind: "Field", name: { kind: "Name", value: "strikethrough" } },
|
|
109
|
+
{ kind: "Field", name: { kind: "Name", value: "italic" } }
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
};
|
|
121
|
+
const PagePathnameSliceFragmentDoc = {
|
|
122
|
+
kind: "Document",
|
|
123
|
+
definitions: [
|
|
124
|
+
{
|
|
125
|
+
kind: "FragmentDefinition",
|
|
126
|
+
name: { kind: "Name", value: "PagePathnameSlice" },
|
|
127
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PagePathnameSlice" } },
|
|
128
|
+
selectionSet: {
|
|
129
|
+
kind: "SelectionSet",
|
|
130
|
+
selections: [
|
|
131
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
132
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
133
|
+
{ kind: "Field", name: { kind: "Name", value: "pathname" } }
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
};
|
|
139
|
+
const GlobalElementFragmentDoc = {
|
|
140
|
+
kind: "Document",
|
|
141
|
+
definitions: [
|
|
142
|
+
{
|
|
143
|
+
kind: "FragmentDefinition",
|
|
144
|
+
name: { kind: "Name", value: "GlobalElement" },
|
|
145
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "GlobalElement" } },
|
|
146
|
+
selectionSet: {
|
|
147
|
+
kind: "SelectionSet",
|
|
148
|
+
selections: [
|
|
149
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
150
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
151
|
+
{ kind: "Field", name: { kind: "Name", value: "data" } }
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
};
|
|
157
|
+
exports.FileFragmentDoc = FileFragmentDoc;
|
|
158
|
+
exports.GlobalElementFragmentDoc = GlobalElementFragmentDoc;
|
|
159
|
+
exports.PagePathnameSliceFragmentDoc = PagePathnameSliceFragmentDoc;
|
|
160
|
+
exports.SwatchFragmentDoc = SwatchFragmentDoc;
|
|
161
|
+
exports.TypographyFragmentDoc = TypographyFragmentDoc;
|
|
162
|
+
//# sourceMappingURL=graphql.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.cjs.js","sources":["../src/api/generated/graphql.ts"],"sourcesContent":["import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'\nexport type SwatchFragment = {\n __typename: 'Swatch'\n id: string\n hue: number\n saturation: number\n lightness: number\n}\n\nexport type FileFragment = {\n __typename: 'File'\n id: string\n name: string\n publicUrl: any\n extension?: string | null\n dimensions?: { __typename?: 'ImageDimensions'; width: number; height: number } | null\n}\n\nexport type TypographyFragment = {\n __typename: 'Typography'\n id: string\n name: string\n style: Array<{\n __typename?: 'TypographyStyle'\n deviceId: string\n value: {\n __typename?: 'TypographyStyleValue'\n fontFamily?: string | null\n lineHeight?: number | null\n letterSpacing?: number | null\n fontWeight?: number | null\n textAlign?: string | null\n uppercase?: boolean | null\n underline?: boolean | null\n strikethrough?: boolean | null\n italic?: boolean | null\n fontSize?: { __typename?: 'Length'; value?: number | null; unit?: string | null } | null\n color?: { __typename?: 'Color'; swatchId?: string | null; alpha?: number | null } | null\n }\n }>\n}\n\nexport type PagePathnameSliceFragment = {\n __typename: 'PagePathnameSlice'\n id: string\n pathname: any\n}\n\nexport type GlobalElementFragment = { __typename: 'GlobalElement'; id: string; data: any }\n\nexport const SwatchFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'Swatch' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Swatch' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'hue' } },\n { kind: 'Field', name: { kind: 'Name', value: 'saturation' } },\n { kind: 'Field', name: { kind: 'Name', value: 'lightness' } },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<SwatchFragment, unknown>\nexport const FileFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'File' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'File' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'name' } },\n { kind: 'Field', name: { kind: 'Name', value: 'publicUrl' } },\n { kind: 'Field', name: { kind: 'Name', value: 'extension' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'dimensions' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'width' } },\n { kind: 'Field', name: { kind: 'Name', value: 'height' } },\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<FileFragment, unknown>\nexport const TypographyFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'Typography' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Typography' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'name' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'style' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'deviceId' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'value' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'fontFamily' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'fontSize' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'value' } },\n { kind: 'Field', name: { kind: 'Name', value: 'unit' } },\n ],\n },\n },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'color' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'swatchId' } },\n { kind: 'Field', name: { kind: 'Name', value: 'alpha' } },\n ],\n },\n },\n { kind: 'Field', name: { kind: 'Name', value: 'lineHeight' } },\n { kind: 'Field', name: { kind: 'Name', value: 'letterSpacing' } },\n { kind: 'Field', name: { kind: 'Name', value: 'fontWeight' } },\n { kind: 'Field', name: { kind: 'Name', value: 'textAlign' } },\n { kind: 'Field', name: { kind: 'Name', value: 'uppercase' } },\n { kind: 'Field', name: { kind: 'Name', value: 'underline' } },\n { kind: 'Field', name: { kind: 'Name', value: 'strikethrough' } },\n { kind: 'Field', name: { kind: 'Name', value: 'italic' } },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<TypographyFragment, unknown>\nexport const PagePathnameSliceFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'PagePathnameSlice' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'PagePathnameSlice' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'pathname' } },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<PagePathnameSliceFragment, unknown>\nexport const GlobalElementFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'GlobalElement' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'GlobalElement' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'data' } },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<GlobalElementFragment, unknown>\n"],"names":[],"mappings":";AAkDO,MAAM,oBAAoB;AAAA,EAC/B,MAAM;AAAA,EACN,aAAa;AAAA,IACX;AAAA,MACE,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,QAAQ,OAAO,SAAS;AAAA,MACtC,eAAe,EAAE,MAAM,aAAa,MAAM,EAAE,MAAM,QAAQ,OAAO,WAAW;AAAA,MAC5E,cAAc;AAAA,QACZ,MAAM;AAAA,QACN,YAAY;AAAA,UACV,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,eAAe;AAAA,UAC7D,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,OAAO;AAAA,UACrD,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,QAAQ;AAAA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AA,UACrD,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,aAAa;AAAA,QAC7D;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AACO,MAAM,2BAA2B;AAAA,EACtC,MAAM;AAAA,EACN,aAAa;AAAA,IACX;AAAA,MACE,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,QAAQ,OAAO,gBAAgB;AAAA,MAC7C,eAAe,EAAE,MAAM,aAAa,MAAM,EAAE,MAAM,QAAQ,OAAO,kBAAkB;AAAA,MACnF,cAAc;AAAA,QACZ,MAAM;AAAA,QACN,YAAY;AAAA,UACV,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,eAAe;AAAA,UAC7D,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,OAAO;AAAA,UACrD,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,SAAS;AAAA,QACzD;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;;;;"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
const SwatchFragmentDoc = {
|
|
2
|
+
kind: "Document",
|
|
3
|
+
definitions: [
|
|
4
|
+
{
|
|
5
|
+
kind: "FragmentDefinition",
|
|
6
|
+
name: { kind: "Name", value: "Swatch" },
|
|
7
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Swatch" } },
|
|
8
|
+
selectionSet: {
|
|
9
|
+
kind: "SelectionSet",
|
|
10
|
+
selections: [
|
|
11
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
12
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
13
|
+
{ kind: "Field", name: { kind: "Name", value: "hue" } },
|
|
14
|
+
{ kind: "Field", name: { kind: "Name", value: "saturation" } },
|
|
15
|
+
{ kind: "Field", name: { kind: "Name", value: "lightness" } }
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
};
|
|
21
|
+
const FileFragmentDoc = {
|
|
22
|
+
kind: "Document",
|
|
23
|
+
definitions: [
|
|
24
|
+
{
|
|
25
|
+
kind: "FragmentDefinition",
|
|
26
|
+
name: { kind: "Name", value: "File" },
|
|
27
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "File" } },
|
|
28
|
+
selectionSet: {
|
|
29
|
+
kind: "SelectionSet",
|
|
30
|
+
selections: [
|
|
31
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
32
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
33
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
34
|
+
{ kind: "Field", name: { kind: "Name", value: "publicUrl" } },
|
|
35
|
+
{ kind: "Field", name: { kind: "Name", value: "extension" } },
|
|
36
|
+
{
|
|
37
|
+
kind: "Field",
|
|
38
|
+
name: { kind: "Name", value: "dimensions" },
|
|
39
|
+
selectionSet: {
|
|
40
|
+
kind: "SelectionSet",
|
|
41
|
+
selections: [
|
|
42
|
+
{ kind: "Field", name: { kind: "Name", value: "width" } },
|
|
43
|
+
{ kind: "Field", name: { kind: "Name", value: "height" } }
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
};
|
|
52
|
+
const TypographyFragmentDoc = {
|
|
53
|
+
kind: "Document",
|
|
54
|
+
definitions: [
|
|
55
|
+
{
|
|
56
|
+
kind: "FragmentDefinition",
|
|
57
|
+
name: { kind: "Name", value: "Typography" },
|
|
58
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Typography" } },
|
|
59
|
+
selectionSet: {
|
|
60
|
+
kind: "SelectionSet",
|
|
61
|
+
selections: [
|
|
62
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
63
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
64
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
65
|
+
{
|
|
66
|
+
kind: "Field",
|
|
67
|
+
name: { kind: "Name", value: "style" },
|
|
68
|
+
selectionSet: {
|
|
69
|
+
kind: "SelectionSet",
|
|
70
|
+
selections: [
|
|
71
|
+
{ kind: "Field", name: { kind: "Name", value: "deviceId" } },
|
|
72
|
+
{
|
|
73
|
+
kind: "Field",
|
|
74
|
+
name: { kind: "Name", value: "value" },
|
|
75
|
+
selectionSet: {
|
|
76
|
+
kind: "SelectionSet",
|
|
77
|
+
selections: [
|
|
78
|
+
{ kind: "Field", name: { kind: "Name", value: "fontFamily" } },
|
|
79
|
+
{
|
|
80
|
+
kind: "Field",
|
|
81
|
+
name: { kind: "Name", value: "fontSize" },
|
|
82
|
+
selectionSet: {
|
|
83
|
+
kind: "SelectionSet",
|
|
84
|
+
selections: [
|
|
85
|
+
{ kind: "Field", name: { kind: "Name", value: "value" } },
|
|
86
|
+
{ kind: "Field", name: { kind: "Name", value: "unit" } }
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
kind: "Field",
|
|
92
|
+
name: { kind: "Name", value: "color" },
|
|
93
|
+
selectionSet: {
|
|
94
|
+
kind: "SelectionSet",
|
|
95
|
+
selections: [
|
|
96
|
+
{ kind: "Field", name: { kind: "Name", value: "swatchId" } },
|
|
97
|
+
{ kind: "Field", name: { kind: "Name", value: "alpha" } }
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{ kind: "Field", name: { kind: "Name", value: "lineHeight" } },
|
|
102
|
+
{ kind: "Field", name: { kind: "Name", value: "letterSpacing" } },
|
|
103
|
+
{ kind: "Field", name: { kind: "Name", value: "fontWeight" } },
|
|
104
|
+
{ kind: "Field", name: { kind: "Name", value: "textAlign" } },
|
|
105
|
+
{ kind: "Field", name: { kind: "Name", value: "uppercase" } },
|
|
106
|
+
{ kind: "Field", name: { kind: "Name", value: "underline" } },
|
|
107
|
+
{ kind: "Field", name: { kind: "Name", value: "strikethrough" } },
|
|
108
|
+
{ kind: "Field", name: { kind: "Name", value: "italic" } }
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
};
|
|
120
|
+
const PagePathnameSliceFragmentDoc = {
|
|
121
|
+
kind: "Document",
|
|
122
|
+
definitions: [
|
|
123
|
+
{
|
|
124
|
+
kind: "FragmentDefinition",
|
|
125
|
+
name: { kind: "Name", value: "PagePathnameSlice" },
|
|
126
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PagePathnameSlice" } },
|
|
127
|
+
selectionSet: {
|
|
128
|
+
kind: "SelectionSet",
|
|
129
|
+
selections: [
|
|
130
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
131
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
132
|
+
{ kind: "Field", name: { kind: "Name", value: "pathname" } }
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
};
|
|
138
|
+
const GlobalElementFragmentDoc = {
|
|
139
|
+
kind: "Document",
|
|
140
|
+
definitions: [
|
|
141
|
+
{
|
|
142
|
+
kind: "FragmentDefinition",
|
|
143
|
+
name: { kind: "Name", value: "GlobalElement" },
|
|
144
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "GlobalElement" } },
|
|
145
|
+
selectionSet: {
|
|
146
|
+
kind: "SelectionSet",
|
|
147
|
+
selections: [
|
|
148
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
149
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
|
150
|
+
{ kind: "Field", name: { kind: "Name", value: "data" } }
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
};
|
|
156
|
+
export { FileFragmentDoc as F, GlobalElementFragmentDoc as G, PagePathnameSliceFragmentDoc as P, SwatchFragmentDoc as S, TypographyFragmentDoc as T };
|
|
157
|
+
//# sourceMappingURL=graphql.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.es.js","sources":["../src/api/generated/graphql.ts"],"sourcesContent":["import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'\nexport type SwatchFragment = {\n __typename: 'Swatch'\n id: string\n hue: number\n saturation: number\n lightness: number\n}\n\nexport type FileFragment = {\n __typename: 'File'\n id: string\n name: string\n publicUrl: any\n extension?: string | null\n dimensions?: { __typename?: 'ImageDimensions'; width: number; height: number } | null\n}\n\nexport type TypographyFragment = {\n __typename: 'Typography'\n id: string\n name: string\n style: Array<{\n __typename?: 'TypographyStyle'\n deviceId: string\n value: {\n __typename?: 'TypographyStyleValue'\n fontFamily?: string | null\n lineHeight?: number | null\n letterSpacing?: number | null\n fontWeight?: number | null\n textAlign?: string | null\n uppercase?: boolean | null\n underline?: boolean | null\n strikethrough?: boolean | null\n italic?: boolean | null\n fontSize?: { __typename?: 'Length'; value?: number | null; unit?: string | null } | null\n color?: { __typename?: 'Color'; swatchId?: string | null; alpha?: number | null } | null\n }\n }>\n}\n\nexport type PagePathnameSliceFragment = {\n __typename: 'PagePathnameSlice'\n id: string\n pathname: any\n}\n\nexport type GlobalElementFragment = { __typename: 'GlobalElement'; id: string; data: any }\n\nexport const SwatchFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'Swatch' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Swatch' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'hue' } },\n { kind: 'Field', name: { kind: 'Name', value: 'saturation' } },\n { kind: 'Field', name: { kind: 'Name', value: 'lightness' } },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<SwatchFragment, unknown>\nexport const FileFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'File' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'File' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'name' } },\n { kind: 'Field', name: { kind: 'Name', value: 'publicUrl' } },\n { kind: 'Field', name: { kind: 'Name', value: 'extension' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'dimensions' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'width' } },\n { kind: 'Field', name: { kind: 'Name', value: 'height' } },\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<FileFragment, unknown>\nexport const TypographyFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'Typography' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Typography' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'name' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'style' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'deviceId' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'value' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'fontFamily' } },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'fontSize' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'value' } },\n { kind: 'Field', name: { kind: 'Name', value: 'unit' } },\n ],\n },\n },\n {\n kind: 'Field',\n name: { kind: 'Name', value: 'color' },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: 'swatchId' } },\n { kind: 'Field', name: { kind: 'Name', value: 'alpha' } },\n ],\n },\n },\n { kind: 'Field', name: { kind: 'Name', value: 'lineHeight' } },\n { kind: 'Field', name: { kind: 'Name', value: 'letterSpacing' } },\n { kind: 'Field', name: { kind: 'Name', value: 'fontWeight' } },\n { kind: 'Field', name: { kind: 'Name', value: 'textAlign' } },\n { kind: 'Field', name: { kind: 'Name', value: 'uppercase' } },\n { kind: 'Field', name: { kind: 'Name', value: 'underline' } },\n { kind: 'Field', name: { kind: 'Name', value: 'strikethrough' } },\n { kind: 'Field', name: { kind: 'Name', value: 'italic' } },\n ],\n },\n },\n ],\n },\n },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<TypographyFragment, unknown>\nexport const PagePathnameSliceFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'PagePathnameSlice' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'PagePathnameSlice' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'pathname' } },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<PagePathnameSliceFragment, unknown>\nexport const GlobalElementFragmentDoc = {\n kind: 'Document',\n definitions: [\n {\n kind: 'FragmentDefinition',\n name: { kind: 'Name', value: 'GlobalElement' },\n typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'GlobalElement' } },\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n { kind: 'Field', name: { kind: 'Name', value: '__typename' } },\n { kind: 'Field', name: { kind: 'Name', value: 'id' } },\n { kind: 'Field', name: { kind: 'Name', value: 'data' } },\n ],\n },\n },\n ],\n} as unknown as DocumentNode<GlobalElementFragment, unknown>\n"],"names":[],"mappings":"AAkDO,MAAM,oBAAoB;AAAA,EAC/B,MAAM;AAAA,EACN,aAAa;AAAA,IACX;AAAA,MACE,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,QAAQ,OAAO,SAAS;AAAA,MACtC,eAAe,EAAE,MAAM,aAAa,MAAM,EAAE,MAAM,QAAQ,OAAO,WAAW;AAAA,MAC5E,cAAc;AAAA,QACZ,MAAM;AAAA,QACN,YAAY;AAAA,UACV,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,eAAe;AAAA,UAC7D,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,OAAO;AAAA,UACrD,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,QAAQ;AAAA,UACtD,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,eAAe;AAAA,UAC7D,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,cAAc;AAAA,QAC9D;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AACO,MAAM,kBAAkB;AAAA,EAC7B,MAAM;AAAA,EACN,aAAa;AAAA,IACX;AAAA,MACE,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,QAAQ,OAAO,OAAO;AAAA,MACpC,eAAe,EAAE,MAAM,aAAa,MAAM,EAAE,MAAM,QAAQ,OAAO,SAAS;AAAA,MAC1E,cAAc;AAAA,QACZ,MAAM;AAAA,QACN,YAAY;AAAA,UACV,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,eAAe;AAAA,UAC7D,EAAE,MAAM,SAAS,MAAM,EAAE,MAAM,QAAQ,OAAO,OAAO;AAAA,UACrD,EAAE,MAAM,S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F;AAAA,IACF;AAAA,EACF;AACF;;"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => {
|
|
5
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
+
return value;
|
|
7
|
+
};
|
|
8
|
+
var descriptors = require("./descriptors.cjs.js");
|
|
9
|
+
const BuilderEditMode = {
|
|
10
|
+
BUILD: "build",
|
|
11
|
+
CONTENT: "content"
|
|
12
|
+
};
|
|
13
|
+
const RichTextPropControllerMessageType = {
|
|
14
|
+
CHANGE_BUILDER_EDIT_MODE: "CHANGE_BUILDER_EDIT_MODE",
|
|
15
|
+
INITIALIZE_EDITOR: "INITIALIZE_EDITOR",
|
|
16
|
+
CHANGE_EDITOR_VALUE: "CHANGE_EDITOR_VALUE",
|
|
17
|
+
FOCUS: "FOCUS",
|
|
18
|
+
BLUR: "BLUR",
|
|
19
|
+
UNDO: "UNDO",
|
|
20
|
+
REDO: "REDO"
|
|
21
|
+
};
|
|
22
|
+
class PropController {
|
|
23
|
+
constructor(send) {
|
|
24
|
+
__publicField(this, "send");
|
|
25
|
+
this.send = send;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
class DefaultPropController extends PropController {
|
|
29
|
+
recv(_message) {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
class RichTextPropController extends PropController {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
__publicField(this, "editor", null);
|
|
36
|
+
}
|
|
37
|
+
recv(message) {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
switch (message.type) {
|
|
40
|
+
case RichTextPropControllerMessageType.CHANGE_BUILDER_EDIT_MODE: {
|
|
41
|
+
switch (message.editMode) {
|
|
42
|
+
case BuilderEditMode.BUILD:
|
|
43
|
+
(_a = this.editor) == null ? void 0 : _a.deselect().blur();
|
|
44
|
+
break;
|
|
45
|
+
case BuilderEditMode.CONTENT:
|
|
46
|
+
(_b = this.editor) == null ? void 0 : _b.focus().moveToRangeOfDocument();
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
setSlateEditor(editor) {
|
|
54
|
+
this.editor = editor;
|
|
55
|
+
this.send({
|
|
56
|
+
type: RichTextPropControllerMessageType.INITIALIZE_EDITOR,
|
|
57
|
+
value: editor.value.toJSON({ preserveSelection: false })
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
onChange(change) {
|
|
61
|
+
this.send({
|
|
62
|
+
type: RichTextPropControllerMessageType.CHANGE_EDITOR_VALUE,
|
|
63
|
+
value: change.value.toJSON({ preserveSelection: true })
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
focus() {
|
|
67
|
+
this.send({ type: RichTextPropControllerMessageType.FOCUS });
|
|
68
|
+
}
|
|
69
|
+
blur() {
|
|
70
|
+
this.send({ type: RichTextPropControllerMessageType.BLUR });
|
|
71
|
+
}
|
|
72
|
+
undo() {
|
|
73
|
+
this.send({ type: RichTextPropControllerMessageType.UNDO });
|
|
74
|
+
}
|
|
75
|
+
redo() {
|
|
76
|
+
this.send({ type: RichTextPropControllerMessageType.REDO });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function createPropController(descriptor, send) {
|
|
80
|
+
switch (descriptor.type) {
|
|
81
|
+
case descriptors.Types.RichText:
|
|
82
|
+
return new RichTextPropController(send);
|
|
83
|
+
default:
|
|
84
|
+
return new DefaultPropController(send);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.RichTextPropControllerMessageType = RichTextPropControllerMessageType;
|
|
88
|
+
exports.createPropController = createPropController;
|
|
89
|
+
//# sourceMappingURL=instances.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instances.cjs.js","sources":["../src/utils/constants.ts","../src/prop-controllers/instances.ts"],"sourcesContent":["export const BuilderEditMode = {\n BUILD: 'build',\n CONTENT: 'content',\n} as const\n\nexport type BuilderEditMode = typeof BuilderEditMode[keyof typeof BuilderEditMode]\n","import { Editor } from 'slate-react'\nimport { ValueJSON } from 'slate'\nimport { OnChangeParam } from 'slate-react'\nimport { Descriptor, RichTextDescriptor, Types } from './descriptors'\nimport { BuilderEditMode } from '../utils/constants'\n\nexport const RichTextPropControllerMessageType = {\n CHANGE_BUILDER_EDIT_MODE: 'CHANGE_BUILDER_EDIT_MODE',\n INITIALIZE_EDITOR: 'INITIALIZE_EDITOR',\n CHANGE_EDITOR_VALUE: 'CHANGE_EDITOR_VALUE',\n FOCUS: 'FOCUS',\n BLUR: 'BLUR',\n UNDO: 'UNDO',\n REDO: 'REDO',\n} as const\n\ntype ChangeBuilderEditModeRichTextPropControllerMessage = {\n type: typeof RichTextPropControllerMessageType.CHANGE_BUILDER_EDIT_MODE\n editMode: BuilderEditMode\n}\n\ntype InitializeEditorRichTextPropControllerMessage = {\n type: typeof RichTextPropControllerMessageType.INITIALIZE_EDITOR\n value: ValueJSON\n}\n\ntype ChangeEditorValueRichTextPropControllerMessage = {\n type: typeof RichTextPropControllerMessageType.CHANGE_EDITOR_VALUE\n value: ValueJSON\n}\n\ntype FocusRichTextPropControllerMessage = { type: typeof RichTextPropControllerMessageType.FOCUS }\n\ntype BlurRichTextPropControllerMessage = { type: typeof RichTextPropControllerMessageType.BLUR }\n\ntype UndoRichTextPropControllerMessage = { type: typeof RichTextPropControllerMessageType.UNDO }\n\ntype RedoRichTextPropControllerMessage = { type: typeof RichTextPropControllerMessageType.REDO }\n\nexport type RichTextPropControllerMessage =\n | ChangeBuilderEditModeRichTextPropControllerMessage\n | InitializeEditorRichTextPropControllerMessage\n | ChangeEditorValueRichTextPropControllerMessage\n | FocusRichTextPropControllerMessage\n | BlurRichTextPropControllerMessage\n | UndoRichTextPropControllerMessage\n | RedoRichTextPropControllerMessage\n\nexport type PropControllerMessage = RichTextPropControllerMessage\n\ntype Send<T = PropControllerMessage> = (message: T) => void\n\nexport abstract class PropController<T = PropControllerMessage> {\n protected send: Send<T>\n\n constructor(send: Send<T>) {\n this.send = send\n }\n\n abstract recv(message: T): void\n}\n\nclass DefaultPropController extends PropController {\n recv(_message: PropControllerMessage): void {\n // Do nothing.\n }\n}\n\nclass RichTextPropController extends PropController<RichTextPropControllerMessage> {\n private editor: Editor | null = null\n\n recv(message: RichTextPropControllerMessage): void {\n switch (message.type) {\n case RichTextPropControllerMessageType.CHANGE_BUILDER_EDIT_MODE: {\n switch (message.editMode) {\n case BuilderEditMode.BUILD:\n this.editor?.deselect().blur()\n break\n\n case BuilderEditMode.CONTENT:\n this.editor?.focus().moveToRangeOfDocument()\n break\n }\n\n break\n }\n }\n }\n\n setSlateEditor(editor: Editor) {\n this.editor = editor\n\n this.send({\n type: RichTextPropControllerMessageType.INITIALIZE_EDITOR,\n value: editor.value.toJSON({ preserveSelection: false }),\n })\n }\n\n onChange(change: OnChangeParam) {\n this.send({\n type: RichTextPropControllerMessageType.CHANGE_EDITOR_VALUE,\n value: change.value.toJSON({ preserveSelection: true }),\n })\n }\n\n focus() {\n this.send({ type: RichTextPropControllerMessageType.FOCUS })\n }\n\n blur() {\n this.send({ type: RichTextPropControllerMessageType.BLUR })\n }\n\n undo() {\n this.send({ type: RichTextPropControllerMessageType.UNDO })\n }\n\n redo() {\n this.send({ type: RichTextPropControllerMessageType.REDO })\n }\n}\n\ntype DescriptorPropController<T extends Descriptor> = T extends { type: typeof Types.RichText }\n ? RichTextPropController\n : DefaultPropController\n\nexport type DescriptorsPropControllers<T extends Record<string, Descriptor>> = {\n [K in keyof T]: undefined extends T[K]\n ? DescriptorPropController<Exclude<T[K], undefined>>\n : DescriptorPropController<T[K]>\n}\n\nexport function createPropController(\n descriptor: RichTextDescriptor,\n send: Send<RichTextPropControllerMessage>,\n): RichTextPropController\nexport function createPropController(descriptor: Descriptor, send: Send): PropController\nexport function createPropController(descriptor: Descriptor, send: Send): PropController {\n switch (descriptor.type) {\n case Types.RichText:\n return new RichTextPropController(send)\n\n default:\n return new DefaultPropController(send)\n }\n}\n"],"names":["Types"],"mappings":";;;;;;;;AAAO,MAAM,kBAAkB;AAAA,EAC7B,OAAO;AAAA,EACP,SAAS;AACX;ACGO,MAAM,oCAAoC;AAAA,EAC/C,0BAA0B;AAAA,EAC1B,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AACR;AAsCO,MAAe,eAA0C;AAAA,EAG9D,YAAY,MAAe;AAFjB;AAGR,SAAK,OAAO;AAAA,EACd;AAGF;AAEA,MAAM,8BAA8B,eAAe;AAAA,EACjD,KAAK,UAAuC;AAAA,EAE5C;AACF;AAEA,MAAM,+BAA+B,eAA8C;AAAA,EAAnF;AAAA;AACU,kCAAwB;AAAA;AAAA,EAEhC,KAAK,SAA8C;;AACjD,YAAQ,QAAQ;AAAA,WACT,kCAAkC,0BAA0B;AAC/D,gBAAQ,QAAQ;AAAA,eACT,gBAAgB;AACd,uBAAA,WAAA,mBAAQ,WAAW;AACxB;AAAA,eAEG,gBAAgB;AACd,uBAAA,WAAA,mBAAQ,QAAQ;AACrB;AAAA;AAGJ;AAAA,MACF;AAAA;AAAA,EAEJ;AAAA,EAEA,eAAe,QAAgB;AAC7B,SAAK,SAAS;AAEd,SAAK,KAAK;AAAA,MACR,MAAM,kCAAkC;AAAA,MACxC,OAAO,OAAO,MAAM,OAAO,EAAE,mBAAmB,OAAO;AAAA,IAAA,CACxD;AAAA,EACH;AAAA,EAEA,SAAS,QAAuB;AAC9B,SAAK,KAAK;AAAA,MACR,MAAM,kCAAkC;AAAA,MACxC,OAAO,OAAO,MAAM,OAAO,EAAE,mBAAmB,MAAM;AAAA,IAAA,CACvD;AAAA,EACH;AAAA,EAEA,QAAQ;AACN,SAAK,KAAK,EAAE,MAAM,kCAAkC,MAAO,CAAA;AAAA,EAC7D;AAAA,EAEA,OAAO;AACL,SAAK,KAAK,EAAE,MAAM,kCAAkC,KAAM,CAAA;AAAA,EAC5D;AAAA,EAEA,OAAO;AACL,SAAK,KAAK,EAAE,MAAM,kCAAkC,KAAM,CAAA;AAAA,EAC5D;AAAA,EAEA,OAAO;AACL,SAAK,KAAK,EAAE,MAAM,kCAAkC,KAAM,CAAA;AAAA,EAC5D;AACF;AAiBO,8BAA8B,YAAwB,MAA4B;AACvF,UAAQ,WAAW;AAAA,SACZA,YAAM,MAAA;AACF,aAAA,IAAI,uBAAuB,IAAI;AAAA;AAG/B,aAAA,IAAI,sBAAsB,IAAI;AAAA;AAE3C;;;"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { T as Types } from "./descriptors.es.js";
|
|
8
|
+
const BuilderEditMode = {
|
|
9
|
+
BUILD: "build",
|
|
10
|
+
CONTENT: "content"
|
|
11
|
+
};
|
|
12
|
+
const RichTextPropControllerMessageType = {
|
|
13
|
+
CHANGE_BUILDER_EDIT_MODE: "CHANGE_BUILDER_EDIT_MODE",
|
|
14
|
+
INITIALIZE_EDITOR: "INITIALIZE_EDITOR",
|
|
15
|
+
CHANGE_EDITOR_VALUE: "CHANGE_EDITOR_VALUE",
|
|
16
|
+
FOCUS: "FOCUS",
|
|
17
|
+
BLUR: "BLUR",
|
|
18
|
+
UNDO: "UNDO",
|
|
19
|
+
REDO: "REDO"
|
|
20
|
+
};
|
|
21
|
+
class PropController {
|
|
22
|
+
constructor(send) {
|
|
23
|
+
__publicField(this, "send");
|
|
24
|
+
this.send = send;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class DefaultPropController extends PropController {
|
|
28
|
+
recv(_message) {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
class RichTextPropController extends PropController {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
__publicField(this, "editor", null);
|
|
35
|
+
}
|
|
36
|
+
recv(message) {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
switch (message.type) {
|
|
39
|
+
case RichTextPropControllerMessageType.CHANGE_BUILDER_EDIT_MODE: {
|
|
40
|
+
switch (message.editMode) {
|
|
41
|
+
case BuilderEditMode.BUILD:
|
|
42
|
+
(_a = this.editor) == null ? void 0 : _a.deselect().blur();
|
|
43
|
+
break;
|
|
44
|
+
case BuilderEditMode.CONTENT:
|
|
45
|
+
(_b = this.editor) == null ? void 0 : _b.focus().moveToRangeOfDocument();
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
setSlateEditor(editor) {
|
|
53
|
+
this.editor = editor;
|
|
54
|
+
this.send({
|
|
55
|
+
type: RichTextPropControllerMessageType.INITIALIZE_EDITOR,
|
|
56
|
+
value: editor.value.toJSON({ preserveSelection: false })
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
onChange(change) {
|
|
60
|
+
this.send({
|
|
61
|
+
type: RichTextPropControllerMessageType.CHANGE_EDITOR_VALUE,
|
|
62
|
+
value: change.value.toJSON({ preserveSelection: true })
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
focus() {
|
|
66
|
+
this.send({ type: RichTextPropControllerMessageType.FOCUS });
|
|
67
|
+
}
|
|
68
|
+
blur() {
|
|
69
|
+
this.send({ type: RichTextPropControllerMessageType.BLUR });
|
|
70
|
+
}
|
|
71
|
+
undo() {
|
|
72
|
+
this.send({ type: RichTextPropControllerMessageType.UNDO });
|
|
73
|
+
}
|
|
74
|
+
redo() {
|
|
75
|
+
this.send({ type: RichTextPropControllerMessageType.REDO });
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function createPropController(descriptor, send) {
|
|
79
|
+
switch (descriptor.type) {
|
|
80
|
+
case Types.RichText:
|
|
81
|
+
return new RichTextPropController(send);
|
|
82
|
+
default:
|
|
83
|
+
return new DefaultPropController(send);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export { RichTextPropControllerMessageType as R, createPropController as c };
|
|
87
|
+
//# sourceMappingURL=instances.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instances.es.js","sources":["../src/utils/constants.ts","../src/prop-controllers/instances.ts"],"sourcesContent":["export const BuilderEditMode = {\n BUILD: 'build',\n CONTENT: 'content',\n} as const\n\nexport type BuilderEditMode = typeof BuilderEditMode[keyof typeof BuilderEditMode]\n","import { Editor } from 'slate-react'\nimport { ValueJSON } from 'slate'\nimport { OnChangeParam } from 'slate-react'\nimport { Descriptor, RichTextDescriptor, Types } from './descriptors'\nimport { BuilderEditMode } from '../utils/constants'\n\nexport const RichTextPropControllerMessageType = {\n CHANGE_BUILDER_EDIT_MODE: 'CHANGE_BUILDER_EDIT_MODE',\n INITIALIZE_EDITOR: 'INITIALIZE_EDITOR',\n CHANGE_EDITOR_VALUE: 'CHANGE_EDITOR_VALUE',\n FOCUS: 'FOCUS',\n BLUR: 'BLUR',\n UNDO: 'UNDO',\n REDO: 'REDO',\n} as const\n\ntype ChangeBuilderEditModeRichTextPropControllerMessage = {\n type: typeof RichTextPropControllerMessageType.CHANGE_BUILDER_EDIT_MODE\n editMode: BuilderEditMode\n}\n\ntype InitializeEditorRichTextPropControllerMessage = {\n type: typeof RichTextPropControllerMessageType.INITIALIZE_EDITOR\n value: ValueJSON\n}\n\ntype ChangeEditorValueRichTextPropControllerMessage = {\n type: typeof RichTextPropControllerMessageType.CHANGE_EDITOR_VALUE\n value: ValueJSON\n}\n\ntype FocusRichTextPropControllerMessage = { type: typeof RichTextPropControllerMessageType.FOCUS }\n\ntype BlurRichTextPropControllerMessage = { type: typeof RichTextPropControllerMessageType.BLUR }\n\ntype UndoRichTextPropControllerMessage = { type: typeof RichTextPropControllerMessageType.UNDO }\n\ntype RedoRichTextPropControllerMessage = { type: typeof RichTextPropControllerMessageType.REDO }\n\nexport type RichTextPropControllerMessage =\n | ChangeBuilderEditModeRichTextPropControllerMessage\n | InitializeEditorRichTextPropControllerMessage\n | ChangeEditorValueRichTextPropControllerMessage\n | FocusRichTextPropControllerMessage\n | BlurRichTextPropControllerMessage\n | UndoRichTextPropControllerMessage\n | RedoRichTextPropControllerMessage\n\nexport type PropControllerMessage = RichTextPropControllerMessage\n\ntype Send<T = PropControllerMessage> = (message: T) => void\n\nexport abstract class PropController<T = PropControllerMessage> {\n protected send: Send<T>\n\n constructor(send: Send<T>) {\n this.send = send\n }\n\n abstract recv(message: T): void\n}\n\nclass DefaultPropController extends PropController {\n recv(_message: PropControllerMessage): void {\n // Do nothing.\n }\n}\n\nclass RichTextPropController extends PropController<RichTextPropControllerMessage> {\n private editor: Editor | null = null\n\n recv(message: RichTextPropControllerMessage): void {\n switch (message.type) {\n case RichTextPropControllerMessageType.CHANGE_BUILDER_EDIT_MODE: {\n switch (message.editMode) {\n case BuilderEditMode.BUILD:\n this.editor?.deselect().blur()\n break\n\n case BuilderEditMode.CONTENT:\n this.editor?.focus().moveToRangeOfDocument()\n break\n }\n\n break\n }\n }\n }\n\n setSlateEditor(editor: Editor) {\n this.editor = editor\n\n this.send({\n type: RichTextPropControllerMessageType.INITIALIZE_EDITOR,\n value: editor.value.toJSON({ preserveSelection: false }),\n })\n }\n\n onChange(change: OnChangeParam) {\n this.send({\n type: RichTextPropControllerMessageType.CHANGE_EDITOR_VALUE,\n value: change.value.toJSON({ preserveSelection: true }),\n })\n }\n\n focus() {\n this.send({ type: RichTextPropControllerMessageType.FOCUS })\n }\n\n blur() {\n this.send({ type: RichTextPropControllerMessageType.BLUR })\n }\n\n undo() {\n this.send({ type: RichTextPropControllerMessageType.UNDO })\n }\n\n redo() {\n this.send({ type: RichTextPropControllerMessageType.REDO })\n }\n}\n\ntype DescriptorPropController<T extends Descriptor> = T extends { type: typeof Types.RichText }\n ? RichTextPropController\n : DefaultPropController\n\nexport type DescriptorsPropControllers<T extends Record<string, Descriptor>> = {\n [K in keyof T]: undefined extends T[K]\n ? DescriptorPropController<Exclude<T[K], undefined>>\n : DescriptorPropController<T[K]>\n}\n\nexport function createPropController(\n descriptor: RichTextDescriptor,\n send: Send<RichTextPropControllerMessage>,\n): RichTextPropController\nexport function createPropController(descriptor: Descriptor, send: Send): PropController\nexport function createPropController(descriptor: Descriptor, send: Send): PropController {\n switch (descriptor.type) {\n case Types.RichText:\n return new RichTextPropController(send)\n\n default:\n return new DefaultPropController(send)\n }\n}\n"],"names":[],"mappings":";;;;;;;AAAO,MAAM,kBAAkB;AAAA,EAC7B,OAAO;AAAA,EACP,SAAS;AACX;ACGO,MAAM,oCAAoC;AAAA,EAC/C,0BAA0B;AAAA,EAC1B,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AACR;AAsCO,MAAe,eAA0C;AAAA,EAG9D,YAAY,MAAe;AAFjB;AAGR,SAAK,OAAO;AAAA,EACd;AAGF;AAEA,MAAM,8BAA8B,eAAe;AAAA,EACjD,KAAK,UAAuC;AAAA,EAE5C;AACF;AAEA,MAAM,+BAA+B,eAA8C;AAAA,EAAnF;AAAA;AACU,kCAAwB;AAAA;AAAA,EAEhC,KAAK,SAA8C;;AACjD,YAAQ,QAAQ;AAAA,WACT,kCAAkC,0BAA0B;AAC/D,gBAAQ,QAAQ;AAAA,eACT,gBAAgB;AACd,uBAAA,WAAA,mBAAQ,WAAW;AACxB;AAAA,eAEG,gBAAgB;AACd,uBAAA,WAAA,mBAAQ,QAAQ;AACrB;AAAA;AAGJ;AAAA,MACF;AAAA;AAAA,EAEJ;AAAA,EAEA,eAAe,QAAgB;AAC7B,SAAK,SAAS;AAEd,SAAK,KAAK;AAAA,MACR,MAAM,kCAAkC;AAAA,MACxC,OAAO,OAAO,MAAM,OAAO,EAAE,mBAAmB,OAAO;AAAA,IAAA,CACxD;AAAA,EACH;AAAA,EAEA,SAAS,QAAuB;AAC9B,SAAK,KAAK;AAAA,MACR,MAAM,kCAAkC;AAAA,MACxC,OAAO,OAAO,MAAM,OAAO,EAAE,mBAAmB,MAAM;AAAA,IAAA,CACvD;AAAA,EACH;AAAA,EAEA,QAAQ;AACN,SAAK,KAAK,EAAE,MAAM,kCAAkC,MAAO,CAAA;AAAA,EAC7D;AAAA,EAEA,OAAO;AACL,SAAK,KAAK,EAAE,MAAM,kCAAkC,KAAM,CAAA;AAAA,EAC5D;AAAA,EAEA,OAAO;AACL,SAAK,KAAK,EAAE,MAAM,kCAAkC,KAAM,CAAA;AAAA,EAC5D;AAAA,EAEA,OAAO;AACL,SAAK,KAAK,EAAE,MAAM,kCAAkC,KAAM,CAAA;AAAA,EAC5D;AACF;AAiBO,8BAA8B,YAAwB,MAA4B;AACvF,UAAQ,WAAW;AAAA,SACZ,MAAM;AACF,aAAA,IAAI,uBAAuB,IAAI;AAAA;AAG/B,aAAA,IAAI,sBAAsB,IAAI;AAAA;AAE3C;;"}
|
package/dist/main.cjs.js
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
exports[Symbol.toStringTag] = "Module";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
3
|
var actions = require("./actions.cjs.js");
|
|
4
|
+
var reactPage = require("./react-page.cjs.js");
|
|
5
|
+
require("redux");
|
|
6
|
+
require("redux-thunk");
|
|
7
|
+
require("./descriptors.cjs.js");
|
|
5
8
|
exports.ActionTypes = actions.ActionTypes;
|
|
9
|
+
exports.changeApiResource = actions.changeApiResource;
|
|
6
10
|
exports.changeDocument = actions.changeDocument;
|
|
7
11
|
exports.changeDocumentElementScrollTop = actions.changeDocumentElementScrollTop;
|
|
12
|
+
exports.cleanUp = actions.cleanUp;
|
|
13
|
+
exports.evictApiResource = actions.evictApiResource;
|
|
14
|
+
exports.init = actions.init;
|
|
15
|
+
exports.messageHostPropController = actions.messageHostPropController;
|
|
16
|
+
exports.registerDocument = actions.registerDocument;
|
|
17
|
+
exports.unregisterDocument = actions.unregisterDocument;
|
|
18
|
+
exports.createDocument = reactPage.createDocument;
|
|
8
19
|
//# sourceMappingURL=main.cjs.js.map
|
package/dist/main.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
package/dist/main.es.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export { A as ActionTypes, c as changeDocument, a as changeDocumentElementScrollTop } from "./actions.es.js";
|
|
1
|
+
export { A as ActionTypes, d as changeApiResource, c as changeDocument, a as changeDocumentElementScrollTop, b as cleanUp, e as evictApiResource, i as init, m as messageHostPropController, r as registerDocument, u as unregisterDocument } from "./actions.es.js";
|
|
2
|
+
export { c as createDocument } from "./react-page.es.js";
|
|
3
|
+
import "redux";
|
|
4
|
+
import "redux-thunk";
|
|
5
|
+
import "./descriptors.es.js";
|
|
2
6
|
//# sourceMappingURL=main.es.js.map
|
package/dist/main.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|