@makeswift/runtime 0.0.0-f750971 → 0.0.2
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/controls.js +1 -0
- package/dist/Page.cjs.js +222 -0
- package/dist/Page.cjs.js.map +1 -0
- package/dist/Page.es.js +216 -0
- package/dist/Page.es.js.map +1 -0
- package/dist/actions.cjs.js +14 -0
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +13 -1
- package/dist/actions.es.js.map +1 -1
- package/dist/builder.cjs.js +2 -0
- package/dist/builder.cjs.js.map +1 -1
- package/dist/builder.es.js +2 -1
- package/dist/builder.es.js.map +1 -1
- package/dist/components.cjs.js +52 -37
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +13 -7
- package/dist/components.es.js.map +1 -1
- package/dist/control-serialization.cjs.js +274 -0
- package/dist/control-serialization.cjs.js.map +1 -1
- package/dist/control-serialization.es.js +274 -1
- package/dist/control-serialization.es.js.map +1 -1
- package/dist/controls.cjs.js +7 -0
- package/dist/controls.cjs.js.map +1 -0
- package/dist/controls.es.js +2 -0
- package/dist/controls.es.js.map +1 -0
- package/dist/descriptors.cjs.js +11 -1
- package/dist/descriptors.cjs.js.map +1 -1
- package/dist/descriptors.es.js +10 -2
- package/dist/descriptors.es.js.map +1 -1
- package/dist/{react.cjs2.js → index.cjs.js} +936 -460
- package/dist/index.cjs.js.map +1 -0
- package/dist/{react.es2.js → index.es.js} +921 -454
- package/dist/index.es.js.map +1 -0
- package/dist/main.cjs.js +2 -0
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +2 -1
- package/dist/main.es.js.map +1 -1
- package/dist/next.cjs.js +65 -25
- package/dist/next.cjs.js.map +1 -1
- package/dist/next.es.js +63 -24
- package/dist/next.es.js.map +1 -1
- package/dist/prop-controllers.cjs.js +1 -0
- package/dist/prop-controllers.cjs.js.map +1 -1
- package/dist/prop-controllers.es.js +1 -0
- package/dist/prop-controllers.es.js.map +1 -1
- package/dist/react-builder-preview.cjs.js +5 -1
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +6 -2
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/react-page.cjs.js +2 -1
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +1 -1
- package/dist/react-page.es.js.map +1 -1
- package/dist/react.cjs.js +19 -14
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.es.js +12 -7
- package/dist/react.es.js.map +1 -1
- package/dist/style.cjs.js +38 -0
- package/dist/style.cjs.js.map +1 -0
- package/dist/style.es.js +35 -0
- package/dist/style.es.js.map +1 -0
- package/dist/types/api/react.d.ts +24 -4
- package/dist/types/api/react.d.ts.map +1 -1
- package/dist/types/builder/serialization/control-serialization.d.ts +223 -4
- package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -1
- package/dist/types/builder/serialization/function-serialization.d.ts +1 -0
- package/dist/types/builder/serialization/function-serialization.d.ts.map +1 -1
- package/dist/types/components/builtin/Box/Box.d.ts +2 -2
- package/dist/types/components/builtin/Box/Box.d.ts.map +1 -1
- package/dist/types/components/builtin/Button/Button.d.ts +7 -6
- package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
- package/dist/types/components/builtin/Carousel/Carousel.d.ts +6 -5
- package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
- package/dist/types/components/builtin/Countdown/Countdown.d.ts +6 -5
- package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -1
- package/dist/types/components/builtin/Divider/Divider.d.ts +4 -3
- package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -1
- package/dist/types/components/builtin/Embed/Embed.d.ts +2 -2
- package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/Form.d.ts +6 -5
- package/dist/types/components/builtin/Form/Form.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts +2 -2
- package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/context/FormContext.d.ts +3 -2
- package/dist/types/components/builtin/Form/context/FormContext.d.ts.map +1 -1
- package/dist/types/components/builtin/Image/Image.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/Navigation.d.ts +6 -5
- package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts +4 -3
- package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -1
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +5 -4
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
- package/dist/types/components/builtin/Text/Text.d.ts +2 -2
- package/dist/types/components/builtin/Text/Text.d.ts.map +1 -1
- package/dist/types/components/builtin/Video/Video.d.ts +15 -0
- package/dist/types/components/builtin/Video/Video.d.ts.map +1 -0
- package/dist/types/components/builtin/Video/index.d.ts +2 -0
- package/dist/types/components/builtin/Video/index.d.ts.map +1 -0
- package/dist/types/components/builtin/index.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/page/BodySnippet.d.ts +7 -0
- package/dist/types/components/page/BodySnippet.d.ts.map +1 -0
- package/dist/types/components/page/Page.d.ts +47 -0
- package/dist/types/components/page/Page.d.ts.map +1 -0
- package/dist/types/components/page/index.d.ts +2 -0
- package/dist/types/components/page/index.d.ts.map +1 -0
- package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -1
- package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts +7 -0
- package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts.map +1 -0
- package/dist/types/components/shared/FallbackComponent/index.d.ts +2 -0
- package/dist/types/components/shared/FallbackComponent/index.d.ts.map +1 -0
- package/dist/types/components/utils/placeholders.d.ts +7 -0
- package/dist/types/components/utils/placeholders.d.ts.map +1 -1
- package/dist/types/components/utils/responsive-style.d.ts +9 -0
- package/dist/types/components/utils/responsive-style.d.ts.map +1 -0
- package/dist/types/controls/index.d.ts +2 -0
- package/dist/types/controls/index.d.ts.map +1 -0
- package/dist/types/controls/style.d.ts +141 -0
- package/dist/types/controls/style.d.ts.map +1 -0
- package/dist/types/controls/types.d.ts +11 -0
- package/dist/types/controls/types.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/next.d.ts +7 -4
- package/dist/types/next.d.ts.map +1 -1
- package/dist/types/prop-controllers/descriptors.d.ts +59 -41
- package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
- package/dist/types/prop-controllers/index.d.ts +1 -1
- package/dist/types/prop-controllers/index.d.ts.map +1 -1
- package/dist/types/runtimes/react/controls/style.d.ts +4 -0
- package/dist/types/runtimes/react/controls/style.d.ts.map +1 -0
- package/dist/types/runtimes/react/controls.d.ts +7 -0
- package/dist/types/runtimes/react/controls.d.ts.map +1 -0
- package/dist/types/runtimes/{react.d.ts → react/index.d.ts} +9 -8
- package/dist/types/runtimes/react/index.d.ts.map +1 -0
- package/dist/types/state/actions.d.ts +9 -1
- package/dist/types/state/actions.d.ts.map +1 -1
- package/dist/types/state/react-builder-preview.d.ts.map +1 -1
- package/dist/types/state/react-page.d.ts +1 -0
- package/dist/types/state/react-page.d.ts.map +1 -1
- package/package.json +15 -5
- package/dist/react.cjs2.js.map +0 -1
- package/dist/react.es2.js.map +0 -1
- package/dist/types/runtimes/react.d.ts.map +0 -1
package/dist/react.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
var actions = require("./actions.cjs.js");
|
|
4
|
-
var
|
|
4
|
+
var index = require("./index.cjs.js");
|
|
5
5
|
require("react");
|
|
6
6
|
require("use-sync-external-store/shim/with-selector");
|
|
7
7
|
require("@apollo/client");
|
|
@@ -9,33 +9,38 @@ require("./react-page.cjs.js");
|
|
|
9
9
|
require("redux");
|
|
10
10
|
require("redux-thunk");
|
|
11
11
|
require("./descriptors.cjs.js");
|
|
12
|
+
require("./style.cjs.js");
|
|
12
13
|
require("styled-components");
|
|
13
14
|
require("framer-motion");
|
|
15
|
+
require("@emotion/css");
|
|
16
|
+
require("@apollo/client/react/ssr");
|
|
17
|
+
require("slate");
|
|
18
|
+
require("uuid/v4");
|
|
14
19
|
require("react/jsx-runtime");
|
|
15
|
-
require("
|
|
16
|
-
require("
|
|
17
|
-
require("next/image");
|
|
18
|
-
require("react-player");
|
|
20
|
+
require("html-react-parser");
|
|
21
|
+
require("next/head");
|
|
19
22
|
require("color");
|
|
20
23
|
require("scroll-into-view-if-needed");
|
|
21
24
|
require("next/link");
|
|
22
25
|
require("react-use-gesture");
|
|
23
26
|
require("@popmotion/popcorn");
|
|
24
|
-
require("
|
|
27
|
+
require("next/image");
|
|
25
28
|
require("formik");
|
|
29
|
+
require("./box-models.cjs.js");
|
|
30
|
+
require("css-box-model");
|
|
26
31
|
require("polished");
|
|
27
|
-
require("
|
|
32
|
+
require("react-player");
|
|
28
33
|
require("slate-hotkeys");
|
|
29
34
|
require("corporate-ipsum");
|
|
30
35
|
require("slate-react");
|
|
31
36
|
require("@convertkit/slate-lists");
|
|
32
37
|
exports.ActionTypes = actions.ActionTypes;
|
|
33
38
|
exports.changeDocument = actions.changeDocument;
|
|
34
|
-
exports.DocumentReference =
|
|
35
|
-
exports.Element =
|
|
36
|
-
exports.PageProvider =
|
|
37
|
-
exports.ReactRuntime =
|
|
38
|
-
exports.RuntimeProvider =
|
|
39
|
-
exports.useIsInBuilder =
|
|
40
|
-
exports.usePageId =
|
|
39
|
+
exports.DocumentReference = index.DocumentReference;
|
|
40
|
+
exports.Element = index.Element;
|
|
41
|
+
exports.PageProvider = index.PageProvider;
|
|
42
|
+
exports.ReactRuntime = index.ReactRuntime;
|
|
43
|
+
exports.RuntimeProvider = index.RuntimeProvider;
|
|
44
|
+
exports.useIsInBuilder = index.useIsInBuilder;
|
|
45
|
+
exports.usePageId = index.usePageId;
|
|
41
46
|
//# sourceMappingURL=react.cjs.js.map
|
package/dist/react.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as ActionTypes, c as changeDocument } from "./actions.es.js";
|
|
2
|
-
export { D as DocumentReference, E as Element, P as PageProvider, a as ReactRuntime, R as RuntimeProvider, u as useIsInBuilder, b as usePageId } from "./
|
|
2
|
+
export { D as DocumentReference, E as Element, P as PageProvider, a as ReactRuntime, R as RuntimeProvider, u as useIsInBuilder, b as usePageId } from "./index.es.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "use-sync-external-store/shim/with-selector";
|
|
5
5
|
import "@apollo/client";
|
|
@@ -7,22 +7,27 @@ import "./react-page.es.js";
|
|
|
7
7
|
import "redux";
|
|
8
8
|
import "redux-thunk";
|
|
9
9
|
import "./descriptors.es.js";
|
|
10
|
+
import "./style.es.js";
|
|
10
11
|
import "styled-components";
|
|
11
12
|
import "framer-motion";
|
|
13
|
+
import "@emotion/css";
|
|
14
|
+
import "@apollo/client/react/ssr";
|
|
15
|
+
import "slate";
|
|
16
|
+
import "uuid/v4";
|
|
12
17
|
import "react/jsx-runtime";
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "next/image";
|
|
16
|
-
import "react-player";
|
|
18
|
+
import "html-react-parser";
|
|
19
|
+
import "next/head";
|
|
17
20
|
import "color";
|
|
18
21
|
import "scroll-into-view-if-needed";
|
|
19
22
|
import "next/link";
|
|
20
23
|
import "react-use-gesture";
|
|
21
24
|
import "@popmotion/popcorn";
|
|
22
|
-
import "
|
|
25
|
+
import "next/image";
|
|
23
26
|
import "formik";
|
|
27
|
+
import "./box-models.es.js";
|
|
28
|
+
import "css-box-model";
|
|
24
29
|
import "polished";
|
|
25
|
-
import "
|
|
30
|
+
import "react-player";
|
|
26
31
|
import "slate-hotkeys";
|
|
27
32
|
import "corporate-ipsum";
|
|
28
33
|
import "slate-react";
|
package/dist/react.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const StyleControlType = "makeswift::controls::style";
|
|
3
|
+
const StyleControlProperty = {
|
|
4
|
+
Width: "makeswift::controls::style::property::width",
|
|
5
|
+
Margin: "makeswift::controls::style::property::margin",
|
|
6
|
+
Padding: "makeswift::controls::style::property::padding",
|
|
7
|
+
Border: "makeswift::controls::style::property::border",
|
|
8
|
+
BorderRadius: "makeswift::controls::style::property::border-radius"
|
|
9
|
+
};
|
|
10
|
+
const StyleControlDefaultProperties = [
|
|
11
|
+
StyleControlProperty.Width,
|
|
12
|
+
StyleControlProperty.Margin
|
|
13
|
+
];
|
|
14
|
+
const AllStyleControlProperties = [
|
|
15
|
+
StyleControlProperty.Width,
|
|
16
|
+
StyleControlProperty.Margin,
|
|
17
|
+
StyleControlProperty.Padding,
|
|
18
|
+
StyleControlProperty.Border,
|
|
19
|
+
StyleControlProperty.BorderRadius
|
|
20
|
+
];
|
|
21
|
+
function Style(params) {
|
|
22
|
+
var _a;
|
|
23
|
+
return {
|
|
24
|
+
type: StyleControlType,
|
|
25
|
+
config: { properties: (_a = params == null ? void 0 : params.properties) != null ? _a : StyleControlDefaultProperties }
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
Style.Default = StyleControlDefaultProperties;
|
|
29
|
+
Style.All = AllStyleControlProperties;
|
|
30
|
+
Style.Width = StyleControlProperty.Width;
|
|
31
|
+
Style.Margin = StyleControlProperty.Margin;
|
|
32
|
+
Style.Padding = StyleControlProperty.Padding;
|
|
33
|
+
Style.Border = StyleControlProperty.Border;
|
|
34
|
+
Style.BorderRadius = StyleControlProperty.BorderRadius;
|
|
35
|
+
exports.Style = Style;
|
|
36
|
+
exports.StyleControlProperty = StyleControlProperty;
|
|
37
|
+
exports.StyleControlType = StyleControlType;
|
|
38
|
+
//# sourceMappingURL=style.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.cjs.js","sources":["../src/controls/style.ts"],"sourcesContent":["import { ColorData, ResponsiveValue } from './types'\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/length\n *\n * @todos\n * - Add additional units\n * - Rename `value` field to `amount` or a more descriptive name representative of the \"distance\"\n * represented by a CSS length\n */\nexport type LengthData = { value: number; unit: 'px' }\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/percentage */\nexport type PercentageData = { value: number; unit: '%' }\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/length-percentage */\nexport type LengthPercentageData = LengthData | PercentageData\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/width */\nexport type WidthPropertyData = LengthPercentageData\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/margin#constituent_properties */\nexport type MarginLonghandPropertyData = LengthData | 'auto'\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n *\n * @todos\n * - Remove `null` from possible values\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type MarginPropertyData = {\n marginTop: MarginLonghandPropertyData | null | undefined\n marginRight: MarginLonghandPropertyData | null | undefined\n marginBottom: MarginLonghandPropertyData | null | undefined\n marginLeft: MarginLonghandPropertyData | null | undefined\n}\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/padding#constituent_properties */\nexport type PaddingLonghandPropertyData = LengthData\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/padding\n *\n * @todos\n * - Remove `null` from possible values\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type PaddingPropertyData = {\n paddingTop: PaddingLonghandPropertyData | null | undefined\n paddingRight: PaddingLonghandPropertyData | null | undefined\n paddingBottom: PaddingLonghandPropertyData | null | undefined\n paddingLeft: PaddingLonghandPropertyData | null | undefined\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-style\n */\ntype BorderStyle = 'dotted' | 'dashed' | 'solid'\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-top#constituent_properties\n *\n * @todos\n * - Change `width` to be a `Length`\n * - Remove `null` from possible values\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type BorderSideShorthandPropertyData = {\n width: number | null | undefined\n style: BorderStyle\n color?: ColorData | null\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border\n *\n * @todos\n * - Remove `null` from possible values\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type BorderPropertyData = {\n borderTop: BorderSideShorthandPropertyData | null | undefined\n borderRight: BorderSideShorthandPropertyData | null | undefined\n borderBottom: BorderSideShorthandPropertyData | null | undefined\n borderLeft: BorderSideShorthandPropertyData | null | undefined\n}\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#constituent_properties */\nexport type BorderRadiusLonghandPropertyData = LengthPercentageData\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius\n *\n * @todos\n * - Remove `null` from possible values of longhand properties\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type BorderRadiusPropertyData = {\n borderTopLeftRadius: LengthPercentageData | null | undefined\n borderTopRightRadius: LengthPercentageData | null | undefined\n borderBottomRightRadius: LengthPercentageData | null | undefined\n borderBottomLeftRadius: LengthPercentageData | null | undefined\n}\n\nexport type StyleControlData = {\n width?: ResponsiveValue<WidthPropertyData>\n margin?: ResponsiveValue<MarginPropertyData>\n padding?: ResponsiveValue<PaddingPropertyData>\n border?: ResponsiveValue<BorderPropertyData>\n borderRadius?: ResponsiveValue<BorderRadiusPropertyData>\n}\n\nexport const StyleControlType = 'makeswift::controls::style'\n\nexport const StyleControlProperty = {\n Width: 'makeswift::controls::style::property::width',\n Margin: 'makeswift::controls::style::property::margin',\n Padding: 'makeswift::controls::style::property::padding',\n Border: 'makeswift::controls::style::property::border',\n BorderRadius: 'makeswift::controls::style::property::border-radius',\n} as const\n\nexport type StyleControlProperty = typeof StyleControlProperty[keyof typeof StyleControlProperty]\n\ntype StyleControlParams = { properties?: StyleControlProperty[] }\n\nexport type StyleControlConfig = { properties: StyleControlProperty[] }\n\nconst StyleControlDefaultProperties: StyleControlProperty[] = [\n StyleControlProperty.Width,\n StyleControlProperty.Margin,\n]\n\nconst AllStyleControlProperties: StyleControlProperty[] = [\n StyleControlProperty.Width,\n StyleControlProperty.Margin,\n StyleControlProperty.Padding,\n StyleControlProperty.Border,\n StyleControlProperty.BorderRadius,\n]\n\nexport type StyleControlDefinition = {\n type: typeof StyleControlType\n config: StyleControlConfig\n}\n\n/**\n * @todos\n * - Add support for custom panel labels.\n * - Add support for default values. Internally, default values must be represented with the same\n * format as the underlying data so that controls can show these values.\n */\nexport function Style(params?: StyleControlParams): StyleControlDefinition {\n return {\n type: StyleControlType,\n config: { properties: params?.properties ?? StyleControlDefaultProperties },\n }\n}\n\nStyle.Default = StyleControlDefaultProperties\nStyle.All = AllStyleControlProperties\n\nStyle.Width = StyleControlProperty.Width\nStyle.Margin = StyleControlProperty.Margin\nStyle.Padding = StyleControlProperty.Padding\nStyle.Border = StyleControlProperty.Border\nStyle.BorderRadius = StyleControlProperty.BorderRadius\n"],"names":[],"mappings":";AAiHO,MAAM,mBAAmB;AAEzB,MAAM,uBAAuB;AAAA,EAClC,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,cAAc;AAChB;AAQA,MAAM,gCAAwD;AAAA,EAC5D,qBAAqB;AAAA,EACrB,qBAAqB;AACvB;AAEA,MAAM,4BAAoD;AAAA,EACxD,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,qBAAqB;AACvB;AAaO,eAAe,QAAqD;;AAClE,SAAA;AAAA,IACL,MAAM;AAAA,IACN,QAAQ,EAAE,YAAY,uCAAQ,eAAR,YAAsB,8BAA8B;AAAA,EAAA;AAE9E;AAEA,MAAM,UAAU;AAChB,MAAM,MAAM;AAEZ,MAAM,QAAQ,qBAAqB;AACnC,MAAM,SAAS,qBAAqB;AACpC,MAAM,UAAU,qBAAqB;AACrC,MAAM,SAAS,qBAAqB;AACpC,MAAM,eAAe,qBAAqB;;;;"}
|
package/dist/style.es.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const StyleControlType = "makeswift::controls::style";
|
|
2
|
+
const StyleControlProperty = {
|
|
3
|
+
Width: "makeswift::controls::style::property::width",
|
|
4
|
+
Margin: "makeswift::controls::style::property::margin",
|
|
5
|
+
Padding: "makeswift::controls::style::property::padding",
|
|
6
|
+
Border: "makeswift::controls::style::property::border",
|
|
7
|
+
BorderRadius: "makeswift::controls::style::property::border-radius"
|
|
8
|
+
};
|
|
9
|
+
const StyleControlDefaultProperties = [
|
|
10
|
+
StyleControlProperty.Width,
|
|
11
|
+
StyleControlProperty.Margin
|
|
12
|
+
];
|
|
13
|
+
const AllStyleControlProperties = [
|
|
14
|
+
StyleControlProperty.Width,
|
|
15
|
+
StyleControlProperty.Margin,
|
|
16
|
+
StyleControlProperty.Padding,
|
|
17
|
+
StyleControlProperty.Border,
|
|
18
|
+
StyleControlProperty.BorderRadius
|
|
19
|
+
];
|
|
20
|
+
function Style(params) {
|
|
21
|
+
var _a;
|
|
22
|
+
return {
|
|
23
|
+
type: StyleControlType,
|
|
24
|
+
config: { properties: (_a = params == null ? void 0 : params.properties) != null ? _a : StyleControlDefaultProperties }
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
Style.Default = StyleControlDefaultProperties;
|
|
28
|
+
Style.All = AllStyleControlProperties;
|
|
29
|
+
Style.Width = StyleControlProperty.Width;
|
|
30
|
+
Style.Margin = StyleControlProperty.Margin;
|
|
31
|
+
Style.Padding = StyleControlProperty.Padding;
|
|
32
|
+
Style.Border = StyleControlProperty.Border;
|
|
33
|
+
Style.BorderRadius = StyleControlProperty.BorderRadius;
|
|
34
|
+
export { StyleControlType as S, StyleControlProperty as a, Style as b };
|
|
35
|
+
//# sourceMappingURL=style.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.es.js","sources":["../src/controls/style.ts"],"sourcesContent":["import { ColorData, ResponsiveValue } from './types'\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/length\n *\n * @todos\n * - Add additional units\n * - Rename `value` field to `amount` or a more descriptive name representative of the \"distance\"\n * represented by a CSS length\n */\nexport type LengthData = { value: number; unit: 'px' }\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/percentage */\nexport type PercentageData = { value: number; unit: '%' }\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/length-percentage */\nexport type LengthPercentageData = LengthData | PercentageData\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/width */\nexport type WidthPropertyData = LengthPercentageData\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/margin#constituent_properties */\nexport type MarginLonghandPropertyData = LengthData | 'auto'\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n *\n * @todos\n * - Remove `null` from possible values\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type MarginPropertyData = {\n marginTop: MarginLonghandPropertyData | null | undefined\n marginRight: MarginLonghandPropertyData | null | undefined\n marginBottom: MarginLonghandPropertyData | null | undefined\n marginLeft: MarginLonghandPropertyData | null | undefined\n}\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/padding#constituent_properties */\nexport type PaddingLonghandPropertyData = LengthData\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/padding\n *\n * @todos\n * - Remove `null` from possible values\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type PaddingPropertyData = {\n paddingTop: PaddingLonghandPropertyData | null | undefined\n paddingRight: PaddingLonghandPropertyData | null | undefined\n paddingBottom: PaddingLonghandPropertyData | null | undefined\n paddingLeft: PaddingLonghandPropertyData | null | undefined\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-style\n */\ntype BorderStyle = 'dotted' | 'dashed' | 'solid'\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-top#constituent_properties\n *\n * @todos\n * - Change `width` to be a `Length`\n * - Remove `null` from possible values\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type BorderSideShorthandPropertyData = {\n width: number | null | undefined\n style: BorderStyle\n color?: ColorData | null\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border\n *\n * @todos\n * - Remove `null` from possible values\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type BorderPropertyData = {\n borderTop: BorderSideShorthandPropertyData | null | undefined\n borderRight: BorderSideShorthandPropertyData | null | undefined\n borderBottom: BorderSideShorthandPropertyData | null | undefined\n borderLeft: BorderSideShorthandPropertyData | null | undefined\n}\n\n/** @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#constituent_properties */\nexport type BorderRadiusLonghandPropertyData = LengthPercentageData\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius\n *\n * @todos\n * - Remove `null` from possible values of longhand properties\n * - Remove `undefined` from possible values and make fields optional\n */\nexport type BorderRadiusPropertyData = {\n borderTopLeftRadius: LengthPercentageData | null | undefined\n borderTopRightRadius: LengthPercentageData | null | undefined\n borderBottomRightRadius: LengthPercentageData | null | undefined\n borderBottomLeftRadius: LengthPercentageData | null | undefined\n}\n\nexport type StyleControlData = {\n width?: ResponsiveValue<WidthPropertyData>\n margin?: ResponsiveValue<MarginPropertyData>\n padding?: ResponsiveValue<PaddingPropertyData>\n border?: ResponsiveValue<BorderPropertyData>\n borderRadius?: ResponsiveValue<BorderRadiusPropertyData>\n}\n\nexport const StyleControlType = 'makeswift::controls::style'\n\nexport const StyleControlProperty = {\n Width: 'makeswift::controls::style::property::width',\n Margin: 'makeswift::controls::style::property::margin',\n Padding: 'makeswift::controls::style::property::padding',\n Border: 'makeswift::controls::style::property::border',\n BorderRadius: 'makeswift::controls::style::property::border-radius',\n} as const\n\nexport type StyleControlProperty = typeof StyleControlProperty[keyof typeof StyleControlProperty]\n\ntype StyleControlParams = { properties?: StyleControlProperty[] }\n\nexport type StyleControlConfig = { properties: StyleControlProperty[] }\n\nconst StyleControlDefaultProperties: StyleControlProperty[] = [\n StyleControlProperty.Width,\n StyleControlProperty.Margin,\n]\n\nconst AllStyleControlProperties: StyleControlProperty[] = [\n StyleControlProperty.Width,\n StyleControlProperty.Margin,\n StyleControlProperty.Padding,\n StyleControlProperty.Border,\n StyleControlProperty.BorderRadius,\n]\n\nexport type StyleControlDefinition = {\n type: typeof StyleControlType\n config: StyleControlConfig\n}\n\n/**\n * @todos\n * - Add support for custom panel labels.\n * - Add support for default values. Internally, default values must be represented with the same\n * format as the underlying data so that controls can show these values.\n */\nexport function Style(params?: StyleControlParams): StyleControlDefinition {\n return {\n type: StyleControlType,\n config: { properties: params?.properties ?? StyleControlDefaultProperties },\n }\n}\n\nStyle.Default = StyleControlDefaultProperties\nStyle.All = AllStyleControlProperties\n\nStyle.Width = StyleControlProperty.Width\nStyle.Margin = StyleControlProperty.Margin\nStyle.Padding = StyleControlProperty.Padding\nStyle.Border = StyleControlProperty.Border\nStyle.BorderRadius = StyleControlProperty.BorderRadius\n"],"names":[],"mappings":"AAiHO,MAAM,mBAAmB;AAEzB,MAAM,uBAAuB;AAAA,EAClC,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,cAAc;AAChB;AAQA,MAAM,gCAAwD;AAAA,EAC5D,qBAAqB;AAAA,EACrB,qBAAqB;AACvB;AAEA,MAAM,4BAAoD;AAAA,EACxD,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,qBAAqB;AACvB;AAaO,eAAe,QAAqD;AAxCpE;AAyCE,SAAA;AAAA,IACL,MAAM;AAAA,IACN,QAAQ,EAAE,YAAY,uCAAQ,eAAR,YAAsB,8BAA8B;AAAA,EAAA;AAE9E;AAEA,MAAM,UAAU;AAChB,MAAM,MAAM;AAEZ,MAAM,QAAQ,qBAAqB;AACnC,MAAM,SAAS,qBAAqB;AACpC,MAAM,UAAU,qBAAqB;AACrC,MAAM,SAAS,qBAAqB;AACpC,MAAM,eAAe,qBAAqB;;"}
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import { DocumentNode, NormalizedCacheObject, OperationVariables, QueryHookOptions, QueryResult, TypedDocumentNode, DefaultContext, ApolloCache, MutationHookOptions, MutationTuple } from '@apollo/client';
|
|
1
|
+
import { ApolloClient, DocumentNode, NormalizedCacheObject, OperationVariables, QueryHookOptions, QueryResult, TypedDocumentNode, DefaultContext, ApolloCache, MutationHookOptions, MutationTuple } from '@apollo/client';
|
|
3
2
|
export { gql } from '@apollo/client';
|
|
4
|
-
import {
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { Element } from '../state/react-page';
|
|
5
|
+
export declare function useIsPrefetching(): boolean;
|
|
6
|
+
declare type CreateApolloClientParams = {
|
|
7
|
+
uri?: string;
|
|
8
|
+
cacheData?: NormalizedCacheObject;
|
|
9
|
+
};
|
|
10
|
+
export declare function createApolloClient({ uri, cacheData }: CreateApolloClientParams): ApolloClient<NormalizedCacheObject>;
|
|
11
|
+
export declare type MakeswiftClientOptions = {
|
|
12
|
+
uri?: string;
|
|
13
|
+
cacheData?: NormalizedCacheObject;
|
|
14
|
+
};
|
|
15
|
+
export declare class MakeswiftClient {
|
|
16
|
+
apolloClient: ApolloClient<NormalizedCacheObject>;
|
|
17
|
+
constructor({ uri, cacheData }: MakeswiftClientOptions);
|
|
18
|
+
prefetch(element: Element): Promise<NormalizedCacheObject>;
|
|
19
|
+
updateCacheData(cacheData: NormalizedCacheObject): void;
|
|
20
|
+
}
|
|
5
21
|
export declare function useQuery<TData = any, TVariables = OperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: QueryHookOptions<TData, TVariables>): QueryResult<TData, TVariables>;
|
|
6
22
|
export declare function useMutation<TData = any, TVariables = OperationVariables, TContext = DefaultContext, TCache extends ApolloCache<any> = ApolloCache<any>>(mutation: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: MutationHookOptions<TData, TVariables, TContext>): MutationTuple<TData, TVariables, TContext, TCache>;
|
|
7
|
-
|
|
23
|
+
declare type MakeswiftProviderProps = {
|
|
24
|
+
client: MakeswiftClient;
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
};
|
|
27
|
+
export declare function MakeswiftProvider({ client, children }: MakeswiftProviderProps): JSX.Element;
|
|
8
28
|
//# sourceMappingURL=react.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/api/react.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/api/react.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EAGjB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,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AAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC7D,OAAO,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,GACzD,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAC,CAIpD;AAED,aAAK,sBAAsB,GAAG;IAC5B,MAAM,EAAE,eAAe,CAAA;IACvB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,sBAAsB,eAE7E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Data, ListDescriptor as ListControl, ListOptions as ListControlConfig, ListValue as ListControlValue, ShapeDescriptor as ShapeControl, ShapeValue as ShapeControlValue, TypeaheadDescriptor as TypeaheadControl, TypeaheadOptions as TypeaheadControlConfig, TypeaheadValue as TypeaheadControlValue, PanelDescriptorType as PanelControlType, PropControllerDescriptor as Control, Props as Controls } from '../../prop-controllers';
|
|
1
|
+
import { CheckboxDescriptor as CheckboxControl, CheckboxValue as CheckboxControlValue, Data, Device, DateDescriptor as DateControl, DateValue as DateControlValue, Gap, GapXDescriptor as GapXControl, GapXValue as GapXControlValue, GapYDescriptor as GapYControl, GapYValue as GapYControlValue, ImageDescriptor as ImageControl, ImageValue as ImageControlValue, LinkDescriptor as LinkControl, LinkValue as LinkControlValue, ListDescriptor as ListControl, ListOptions as ListControlConfig, ListValue as ListControlValue, NumberDescriptor as NumberControl, NumberValue as NumberControlValue, ResponsiveColorDescriptor as ResponsiveColorControl, ResponsiveColorValue as ResponsiveColorControlValue, ResponsiveNumberDescriptor as ResponsiveNumberControl, ResponsiveNumberValue as ResponsiveNumberControlValue, ResponsiveIconRadioGroupDescriptor as ResponsiveIconRadioGroupControl, ResponsiveIconRadioGroupValue as ResponsiveIconRadioGroupControlValue, ResponsiveSelectDescriptor as ResponsiveSelectControl, ResponsiveSelectValue as ResponsiveSelectControlValue, ResponsiveLengthDescriptor as ResponsiveLengthControl, ResponsiveLengthValue as ResponsiveLengthControlValue, RichTextDescriptor as RichTextControl, RichTextValue as RichTextControlValue, ShapeDescriptor as ShapeControl, ShapeValue as ShapeControlValue, TextInputDescriptor as TextInputControl, TextInputValue as TextInputControlValue, TextStyleDescriptor as TextStyleControl, TextStyleValue as TextStyleControlValue, TypeaheadDescriptor as TypeaheadControl, TypeaheadOptions as TypeaheadControlConfig, TypeaheadValue as TypeaheadControlValue, PanelDescriptorType as PanelControlType, PropControllerDescriptor as Control, Props as Controls } from '../../prop-controllers';
|
|
2
|
+
import { IconRadioGroupOption, LengthOption, SelectLabelOrientation, SelectOption, Length } from '../../prop-controllers/descriptors';
|
|
2
3
|
import { DeserializedFunction, SerializedFunction } from './function-serialization';
|
|
3
4
|
declare type SerializedShapeControlConfig<T extends Record<string, SerializedPanelControl>> = {
|
|
4
5
|
type: T;
|
|
@@ -62,13 +63,231 @@ declare type DeserializedTypeaheadControl<T extends TypeaheadControlValue = Type
|
|
|
62
63
|
type: typeof Controls.Types.Typeahead;
|
|
63
64
|
options: DeserializedTypeaheadControlConfig<T['value']>;
|
|
64
65
|
};
|
|
65
|
-
|
|
66
|
+
declare type SerializedConfig<T> = T | SerializedFunction<(props: Record<string, unknown>, deviceMode: Device) => T>;
|
|
67
|
+
declare type DeserializedConfig<T> = T | DeserializedFunction<(props: Record<string, unknown>, deviceMode: Device) => T>;
|
|
68
|
+
declare type GapXControlConfig = {
|
|
69
|
+
preset?: GapXControlValue;
|
|
70
|
+
label?: string;
|
|
71
|
+
defaultValue?: Gap;
|
|
72
|
+
min?: number;
|
|
73
|
+
max?: number;
|
|
74
|
+
step?: number;
|
|
75
|
+
hidden?: boolean;
|
|
76
|
+
};
|
|
77
|
+
declare type SerializedGapXControl<_T = GapXControlValue> = {
|
|
78
|
+
type: typeof Controls.Types.GapX;
|
|
79
|
+
options: SerializedConfig<GapXControlConfig>;
|
|
80
|
+
};
|
|
81
|
+
declare type DeserializedGapXControl<_T = GapXControlValue> = {
|
|
82
|
+
type: typeof Controls.Types.GapX;
|
|
83
|
+
options: DeserializedConfig<GapXControlConfig>;
|
|
84
|
+
};
|
|
85
|
+
declare type GapYControlConfig = {
|
|
86
|
+
preset?: GapYControlValue;
|
|
87
|
+
label?: string;
|
|
88
|
+
defaultValue?: Gap;
|
|
89
|
+
min?: number;
|
|
90
|
+
max?: number;
|
|
91
|
+
step?: number;
|
|
92
|
+
hidden?: boolean;
|
|
93
|
+
};
|
|
94
|
+
declare type SerializedGapYControl<_T = GapYControlValue> = {
|
|
95
|
+
type: typeof Controls.Types.GapY;
|
|
96
|
+
options: SerializedConfig<GapYControlConfig>;
|
|
97
|
+
};
|
|
98
|
+
declare type DeserializedGapYControl<_T = GapYControlValue> = {
|
|
99
|
+
type: typeof Controls.Types.GapY;
|
|
100
|
+
options: DeserializedConfig<GapYControlConfig>;
|
|
101
|
+
};
|
|
102
|
+
declare type ResponsiveNumberControlConfig = {
|
|
103
|
+
preset?: ResponsiveNumberControlValue;
|
|
104
|
+
label?: string;
|
|
105
|
+
defaultValue?: number;
|
|
106
|
+
min?: number;
|
|
107
|
+
max?: number;
|
|
108
|
+
step?: number;
|
|
109
|
+
hidden?: boolean;
|
|
110
|
+
};
|
|
111
|
+
declare type SerializedResponsiveNumberControl<_T = ResponsiveNumberControlValue> = {
|
|
112
|
+
type: typeof Controls.Types.ResponsiveNumber;
|
|
113
|
+
options: SerializedConfig<ResponsiveNumberControlConfig>;
|
|
114
|
+
};
|
|
115
|
+
declare type DeserializedResponsiveNumberControl<_T = ResponsiveNumberControlValue> = {
|
|
116
|
+
type: typeof Controls.Types.ResponsiveNumber;
|
|
117
|
+
options: DeserializedConfig<ResponsiveNumberControlConfig>;
|
|
118
|
+
};
|
|
119
|
+
declare type CheckboxControlConfig = {
|
|
120
|
+
preset?: CheckboxControlValue;
|
|
121
|
+
label: string;
|
|
122
|
+
hidden?: boolean;
|
|
123
|
+
};
|
|
124
|
+
declare type SerializedCheckboxControl<_T = CheckboxControlValue> = {
|
|
125
|
+
type: typeof Controls.Types.Checkbox;
|
|
126
|
+
options: SerializedConfig<CheckboxControlConfig>;
|
|
127
|
+
};
|
|
128
|
+
declare type DeserializedCheckboxControl<_T = CheckboxControlValue> = {
|
|
129
|
+
type: typeof Controls.Types.Checkbox;
|
|
130
|
+
options: DeserializedConfig<CheckboxControlConfig>;
|
|
131
|
+
};
|
|
132
|
+
declare type ResponsiveColorControlConfig = {
|
|
133
|
+
label?: string;
|
|
134
|
+
placeholder?: string;
|
|
135
|
+
hidden?: boolean;
|
|
136
|
+
};
|
|
137
|
+
declare type SerializedResponsiveColorControl<_T = ResponsiveColorControlValue> = {
|
|
138
|
+
type: typeof Controls.Types.ResponsiveColor;
|
|
139
|
+
options: SerializedConfig<ResponsiveColorControlConfig>;
|
|
140
|
+
};
|
|
141
|
+
declare type DeserializedResponsiveColorControl<_T = ResponsiveColorControlValue> = {
|
|
142
|
+
type: typeof Controls.Types.ResponsiveColor;
|
|
143
|
+
options: DeserializedConfig<ResponsiveColorControlConfig>;
|
|
144
|
+
};
|
|
145
|
+
declare type NumberControlConfig = {
|
|
146
|
+
preset?: NumberControlValue;
|
|
147
|
+
label?: string;
|
|
148
|
+
defaultValue?: number;
|
|
149
|
+
min?: number;
|
|
150
|
+
max?: number;
|
|
151
|
+
step?: number;
|
|
152
|
+
suffix?: string;
|
|
153
|
+
hidden?: boolean;
|
|
154
|
+
};
|
|
155
|
+
declare type SerializedNumberControl<_T = NumberControlValue> = {
|
|
156
|
+
type: typeof Controls.Types.Number;
|
|
157
|
+
options: SerializedConfig<NumberControlConfig>;
|
|
158
|
+
};
|
|
159
|
+
declare type DeserializedNumberControl<_T = NumberControlValue> = {
|
|
160
|
+
type: typeof Controls.Types.Number;
|
|
161
|
+
options: DeserializedConfig<NumberControlConfig>;
|
|
162
|
+
};
|
|
163
|
+
declare type ResponsiveIconRadioGroupControlConfig<T extends string = string, U extends T = T> = {
|
|
164
|
+
label?: string;
|
|
165
|
+
options: IconRadioGroupOption<T>[];
|
|
166
|
+
defaultValue?: U;
|
|
167
|
+
hidden?: boolean;
|
|
168
|
+
};
|
|
169
|
+
declare type SerializedResponsiveIconRadioGroupControl<_T = ResponsiveIconRadioGroupControlValue> = {
|
|
170
|
+
type: typeof Controls.Types.ResponsiveIconRadioGroup;
|
|
171
|
+
options: SerializedConfig<ResponsiveIconRadioGroupControlConfig>;
|
|
172
|
+
};
|
|
173
|
+
declare type DeserializedResponsiveIconRadioGroupControl<_T = ResponsiveIconRadioGroupControlValue> = {
|
|
174
|
+
type: typeof Controls.Types.ResponsiveIconRadioGroup;
|
|
175
|
+
options: DeserializedConfig<ResponsiveIconRadioGroupControlConfig>;
|
|
176
|
+
};
|
|
177
|
+
declare type DateControlConfig = {
|
|
178
|
+
preset?: DateControlValue;
|
|
179
|
+
};
|
|
180
|
+
declare type SerializedDateControl<_T = DateControlValue> = {
|
|
181
|
+
type: typeof Controls.Types.Date;
|
|
182
|
+
options: SerializedConfig<DateControlConfig>;
|
|
183
|
+
};
|
|
184
|
+
declare type DeserializedDateControl<_T = DateControlValue> = {
|
|
185
|
+
type: typeof Controls.Types.Date;
|
|
186
|
+
options: DeserializedConfig<DateControlConfig>;
|
|
187
|
+
};
|
|
188
|
+
declare type LinkControlConfig = {
|
|
189
|
+
preset?: LinkControlValue;
|
|
190
|
+
label?: string;
|
|
191
|
+
defaultValue?: LinkControlValue;
|
|
192
|
+
options?: {
|
|
193
|
+
value: LinkControlValue['type'];
|
|
194
|
+
label: string;
|
|
195
|
+
}[];
|
|
196
|
+
hidden?: boolean;
|
|
197
|
+
};
|
|
198
|
+
declare type SerializedLinkControl<_T = LinkControlValue> = {
|
|
199
|
+
type: typeof Controls.Types.Link;
|
|
200
|
+
options: SerializedConfig<LinkControlConfig>;
|
|
201
|
+
};
|
|
202
|
+
declare type DeserializedLinkControl<_T = LinkControlValue> = {
|
|
203
|
+
type: typeof Controls.Types.Link;
|
|
204
|
+
options: DeserializedConfig<LinkControlConfig>;
|
|
205
|
+
};
|
|
206
|
+
declare type TextInputControlConfig = {
|
|
207
|
+
label?: string;
|
|
208
|
+
placeholder?: string;
|
|
209
|
+
hidden?: boolean;
|
|
210
|
+
};
|
|
211
|
+
declare type SerializedTextInputControl<_T = TextInputControlValue> = {
|
|
212
|
+
type: typeof Controls.Types.TextInput;
|
|
213
|
+
options: SerializedConfig<TextInputControlConfig>;
|
|
214
|
+
};
|
|
215
|
+
declare type DeserializedTextInputControl<_T = TextInputControlValue> = {
|
|
216
|
+
type: typeof Controls.Types.TextInput;
|
|
217
|
+
options: DeserializedConfig<TextInputControlConfig>;
|
|
218
|
+
};
|
|
219
|
+
declare type SerializedResponsiveSelectControl<_T = ResponsiveSelectControlValue> = {
|
|
220
|
+
type: typeof Controls.Types.ResponsiveSelect;
|
|
221
|
+
options: SerializedConfig<ResponsiveSelectControlConfig>;
|
|
222
|
+
};
|
|
223
|
+
declare type ResponsiveSelectControlConfig<T extends string = string, U extends T = T> = {
|
|
224
|
+
label?: string;
|
|
225
|
+
labelOrientation?: SelectLabelOrientation;
|
|
226
|
+
options: SelectOption<T>[];
|
|
227
|
+
defaultValue?: U;
|
|
228
|
+
hidden?: boolean;
|
|
229
|
+
};
|
|
230
|
+
declare type DeserializedResponsiveSelectControl<_T = ResponsiveSelectControlValue> = {
|
|
231
|
+
type: typeof Controls.Types.ResponsiveSelect;
|
|
232
|
+
options: DeserializedConfig<ResponsiveSelectControlConfig>;
|
|
233
|
+
};
|
|
234
|
+
declare type ResponsiveLengthControlConfig = {
|
|
235
|
+
label?: string;
|
|
236
|
+
options?: LengthOption[];
|
|
237
|
+
defaultValue?: Length;
|
|
238
|
+
hidden?: boolean;
|
|
239
|
+
};
|
|
240
|
+
declare type SerializedResponsiveLengthControl<_T = ResponsiveLengthControlValue> = {
|
|
241
|
+
type: typeof Controls.Types.ResponsiveLength;
|
|
242
|
+
options: SerializedConfig<ResponsiveLengthControlConfig>;
|
|
243
|
+
};
|
|
244
|
+
declare type DeserializedResponsiveLengthControl<_T = ResponsiveLengthControlValue> = {
|
|
245
|
+
type: typeof Controls.Types.ResponsiveLength;
|
|
246
|
+
options: DeserializedConfig<ResponsiveLengthControlConfig>;
|
|
247
|
+
};
|
|
248
|
+
declare type SerializedTextStyleControl<_T = TextStyleControlValue> = {
|
|
249
|
+
type: typeof Controls.Types.TextStyle;
|
|
250
|
+
options: SerializedConfig<TextStyleControlConfig>;
|
|
251
|
+
};
|
|
252
|
+
declare type TextStyleControlConfig = {
|
|
253
|
+
preset?: TextStyleControlValue;
|
|
254
|
+
label?: string;
|
|
255
|
+
hidden?: boolean;
|
|
256
|
+
};
|
|
257
|
+
declare type DeserializedTextStyleControl<_T = TextStyleControlValue> = {
|
|
258
|
+
type: typeof Controls.Types.TextStyle;
|
|
259
|
+
options: DeserializedConfig<TextStyleControlConfig>;
|
|
260
|
+
};
|
|
261
|
+
declare type ImageControlConfig = {
|
|
262
|
+
label?: string;
|
|
263
|
+
hidden?: boolean;
|
|
264
|
+
};
|
|
265
|
+
declare type SerializedImageControl<_T = ImageControlValue> = {
|
|
266
|
+
type: typeof Controls.Types.Image;
|
|
267
|
+
options: SerializedConfig<ImageControlConfig>;
|
|
268
|
+
};
|
|
269
|
+
declare type DeserializedImageControl<_T = ImageControlValue> = {
|
|
270
|
+
type: typeof Controls.Types.Image;
|
|
271
|
+
options: DeserializedConfig<ImageControlConfig>;
|
|
272
|
+
};
|
|
273
|
+
declare type RichTextControlConfig = {
|
|
274
|
+
preset?: RichTextControlValue;
|
|
275
|
+
};
|
|
276
|
+
declare type SerializedRichTextControl<_T = RichTextControlValue> = {
|
|
277
|
+
type: typeof Controls.Types.RichText;
|
|
278
|
+
options: SerializedConfig<RichTextControlConfig>;
|
|
279
|
+
};
|
|
280
|
+
declare type DeserializedRichTextControl<_T = RichTextControlValue> = {
|
|
281
|
+
type: typeof Controls.Types.RichText;
|
|
282
|
+
options: DeserializedConfig<RichTextControlConfig>;
|
|
283
|
+
};
|
|
284
|
+
export declare type SerializedControl<T extends Data = Data> = Exclude<Control<T>, ListControl<T extends ListControlValue ? T : ListControlValue> | ShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | TypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue> | GapXControl<T> | GapYControl<T> | ResponsiveNumberControl<T> | CheckboxControl<T> | ResponsiveColorControl<T> | NumberControl<T> | ResponsiveIconRadioGroupControl<T extends ResponsiveIconRadioGroupControlValue ? T : ResponsiveIconRadioGroupControlValue> | ResponsiveSelectControl<T extends ResponsiveSelectControlValue ? T : ResponsiveSelectControlValue> | ResponsiveLengthControl<T> | DateControl<T> | LinkControl<T> | TextInputControl<T> | TextStyleControl<T> | ImageControl<T> | RichTextControl<T>> | SerializedListControl<T extends ListControlValue ? T : ListControlValue> | SerializedShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | SerializedTypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue> | SerializedGapXControl<T> | SerializedGapYControl<T> | SerializedResponsiveNumberControl<T> | SerializedCheckboxControl<T> | SerializedResponsiveColorControl<T> | SerializedNumberControl<T> | SerializedResponsiveIconRadioGroupControl<T> | SerializedResponsiveSelectControl<T> | SerializedResponsiveLengthControl<T> | SerializedDateControl<T> | SerializedLinkControl<T> | SerializedTextInputControl<T> | SerializedTextStyleControl<T> | SerializedImageControl<T> | SerializedRichTextControl<T>;
|
|
66
285
|
declare type SerializedPanelControl<T extends Data = Data> = Extract<SerializedControl<T>, {
|
|
67
286
|
type: PanelControlType;
|
|
68
287
|
}>;
|
|
69
288
|
declare type SerializedPanelControlValueType<T extends SerializedPanelControl> = T extends SerializedPanelControl<infer U> ? U : never;
|
|
70
|
-
export declare type DeserializedControl<T extends Data = Data> = Exclude<Control<T>, ListControl<T extends ListControlValue ? T : ListControlValue> | ShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | TypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue>> | DeserializedListControl<T extends ListControlValue ? T : ListControlValue> | DeserializedShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | DeserializedTypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue>;
|
|
71
|
-
declare type DeserializedPanelControl<T extends Data = Data> = Extract<DeserializedControl<T>, {
|
|
289
|
+
export declare type DeserializedControl<T extends Data = Data> = Exclude<Control<T>, ListControl<T extends ListControlValue ? T : ListControlValue> | ShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | TypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue> | GapXControl<T> | GapYControl<T> | ResponsiveNumberControl<T> | CheckboxControl<T> | ResponsiveColorControl<T> | NumberControl<T> | ResponsiveIconRadioGroupControl<T extends ResponsiveIconRadioGroupControlValue ? T : ResponsiveIconRadioGroupControlValue> | ResponsiveSelectControl<T extends ResponsiveSelectControlValue ? T : ResponsiveSelectControlValue> | ResponsiveLengthControl<T> | DateControl<T> | LinkControl<T> | TextInputControl<T> | TextStyleControl<T> | ImageControl<T> | RichTextControl<T>> | DeserializedListControl<T extends ListControlValue ? T : ListControlValue> | DeserializedShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | DeserializedTypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue> | DeserializedGapXControl<T> | DeserializedGapYControl<T> | DeserializedResponsiveNumberControl<T> | DeserializedCheckboxControl<T> | DeserializedResponsiveColorControl<T> | DeserializedNumberControl<T> | DeserializedResponsiveIconRadioGroupControl<T> | DeserializedResponsiveSelectControl<T> | DeserializedResponsiveLengthControl<T> | DeserializedDateControl<T> | DeserializedLinkControl<T> | DeserializedTextInputControl<T> | DeserializedTextStyleControl<T> | DeserializedImageControl<T> | DeserializedRichTextControl<T>;
|
|
290
|
+
export declare type DeserializedPanelControl<T extends Data = Data> = Extract<DeserializedControl<T>, {
|
|
72
291
|
type: PanelControlType;
|
|
73
292
|
}>;
|
|
74
293
|
declare type DeserializedPanelControlValueType<T extends DeserializedPanelControl> = T extends DeserializedPanelControl<infer U> ? U : never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-serialization.d.ts","sourceRoot":"","sources":["../../../../src/builder/serialization/control-serialization.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,cAAc,IAAI,WAAW,EAC7B,WAAW,IAAI,iBAAiB,EAChC,SAAS,IAAI,gBAAgB,EAC7B,eAAe,IAAI,YAAY,EAC/B,UAAU,IAAI,iBAAiB,EAC/B,mBAAmB,IAAI,gBAAgB,EACvC,gBAAgB,IAAI,sBAAsB,EAC1C,cAAc,IAAI,qBAAqB,EAEvC,mBAAmB,IAAI,gBAAgB,EAEvC,wBAAwB,IAAI,OAAO,EACnC,KAAK,IAAI,QAAQ,EAClB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,oBAAoB,EAEpB,kBAAkB,EAEnB,MAAM,0BAA0B,CAAA;AAEjC,aAAK,4BAA4B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,IAAI;IACpF,IAAI,EAAE,CAAC,CAAA;IACP,MAAM,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAA;CACpE,CAAA;AAED,aAAK,sBAAsB,CACzB,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAC/B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,IAC9C;IACF,IAAI,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAA;IACjC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,CAAA;CACzC,CAAA;AA+BD,aAAK,8BAA8B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,IAAI;IACxF,IAAI,EAAE,CAAC,CAAA;IACP,MAAM,CA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G,CAAC,GAAG,gBAAgB,CAAC,GAC9D,YAAY,CAAC,CAAC,SAAS,iBAAiB,GAAG,CAAC,GAAG,iBAAiB,EAAE,GAAG,CAAC,GACtE,gBAAgB,CAAC,CAAC,SAAS,qBAAqB,GAAG,CAAC,GAAG,qBAAqB,CAAC,CAChF,GACD,uBAAuB,CAAC,CAAC,SAAS,gBAAgB,GAAG,CAAC,GAAG,gBAAgB,CAAC,GAC1E,wBAAwB,CAAC,CAAC,SAAS,iBAAiB,GAAG,CAAC,GAAG,iBAAiB,EAAE,GAAG,CAAC,GAClF,4BAA4B,CAAC,CAAC,SAAS,qBAAqB,GAAG,CAAC,GAAG,qBAAqB,CAAC,CAAA;AAE7F,aAAK,wBAAwB,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI,OAAO,CAC5D,mBAAmB,CAAC,CAAC,CAAC,EACtB;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAC3B,CAAA;AAED,aAAK,iCAAiC,CAAC,CAAC,SAAS,wBAAwB,IACvE,CAAC,SAAS,wBAAwB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AAsCzD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAAE,YAAY,EAAE,CAAC,CASrD;AAED,wBAAgB,mBAAmB,CACjC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GACpD,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAOrC"}
|
|
1
|
+
{"version":3,"file":"control-serialization.d.ts","sourceRoot":"","sources":["../../../../src/builder/serialization/control-serialization.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,eAAe,EACrC,aAAa,IAAI,oBAAoB,EACrC,IAAI,EACJ,MAAM,EACN,cAAc,IAAI,WAAW,EAC7B,SAAS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AAwB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AAgIzD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAAE,YAAY,EAAE,CAAC,CASrD;AAED,wBAAgB,mBAAmB,CACjC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GACpD,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAOrC"}
|
|
@@ -5,6 +5,7 @@ export declare type SerializedFunction<T extends AnyFunction> = MessagePort & {
|
|
|
5
5
|
};
|
|
6
6
|
declare type SerializedFunctionReturnType<T extends AnyFunction> = Awaited<ReturnType<T>>;
|
|
7
7
|
export declare type DeserializedFunction<T extends AnyFunction> = (...args: Parameters<T>) => Promise<SerializedFunctionReturnType<T>>;
|
|
8
|
+
export declare function isSerializedFunction(value: any): value is SerializedFunction<AnyFunction>;
|
|
8
9
|
export declare function serializeFunction<T extends AnyFunction>(func: T): SerializedFunction<T>;
|
|
9
10
|
export declare function deserializeFunction<T extends AnyFunction>(serializedFunction: SerializedFunction<T>): DeserializedFunction<T>;
|
|
10
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-serialization.d.ts","sourceRoot":"","sources":["../../../../src/builder/serialization/function-serialization.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,qBAAqB,EAAE,OAAO,MAAM,CAAA;AAElD,aAAK,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,CAAA;AAExC,oBAAY,kBAAkB,CAAC,CAAC,SAAS,WAAW,IAAI,WAAW,GAAG;IACpE,QAAQ,CAAC,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAA;CACpC,CAAA;AAED,aAAK,4BAA4B,CAAC,CAAC,SAAS,WAAW,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjF,oBAAY,oBAAoB,CAAC,CAAC,SAAS,WAAW,IAAI,CACxD,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KACnB,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"function-serialization.d.ts","sourceRoot":"","sources":["../../../../src/builder/serialization/function-serialization.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,qBAAqB,EAAE,OAAO,MAAM,CAAA;AAElD,aAAK,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,CAAA;AAExC,oBAAY,kBAAkB,CAAC,CAAC,SAAS,WAAW,IAAI,WAAW,GAAG;IACpE,QAAQ,CAAC,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAA;CACpC,CAAA;AAED,aAAK,4BAA4B,CAAC,CAAC,SAAS,WAAW,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjF,oBAAY,oBAAoB,CAAC,CAAC,SAAS,WAAW,IAAI,CACxD,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KACnB,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAA;AAE7C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,kBAAkB,CAAC,WAAW,CAAC,CAEzF;AAID,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAYvF;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EACvD,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CAAC,GACxC,oBAAoB,CAAC,CAAC,CAAC,CAuBzB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ReactRuntime } from '../../../react';
|
|
3
3
|
import { BoxAnimateIn } from './animations';
|
|
4
|
-
import { BorderRadiusValue, ElementIDValue,
|
|
4
|
+
import { BorderRadiusValue, ElementIDValue, MarginValue, PaddingValue, ResponsiveIconRadioGroupValue, GridValue, GapYValue, GapXValue, CheckboxValue, ResponsiveSelectValue, ResponsiveNumberValue, BackgroundsValue, BorderValue, ShadowsValue } from '../../../prop-controllers/descriptors';
|
|
5
5
|
import { BoxModelHandle } from '../../../box-model';
|
|
6
6
|
import { Props } from '../../../prop-controllers';
|
|
7
7
|
declare type Props = {
|
|
8
8
|
id?: ElementIDValue;
|
|
9
9
|
backgrounds?: BackgroundsValue;
|
|
10
|
-
width?:
|
|
10
|
+
width?: string;
|
|
11
11
|
height?: ResponsiveIconRadioGroupValue<'auto' | 'stretch'>;
|
|
12
12
|
verticalAlign?: ResponsiveIconRadioGroupValue<'flex-start' | 'center' | 'flex-end' | 'space-between'>;
|
|
13
13
|
margin?: MarginValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Box/Box.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Box/Box.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAW,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EACL,YAAY,EAMb,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,6BAA6B,EAC7B,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,YAAY,EAEb,MAAM,uCAAuC,CAAA;AAU9C,OAAO,EAAE,cAAc,EAAoB,MAAM,oBAAoB,CAAA;AAQrE,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAGjD,aAAK,KAA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