@makeswift/runtime 0.10.13 → 0.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Box.cjs.js +1 -1
- package/dist/Box.es.js +2 -2
- package/dist/Button.cjs.js +1 -1
- package/dist/Button.es.js +2 -2
- package/dist/Carousel.cjs.js +1 -1
- package/dist/Carousel.es.js +2 -2
- package/dist/Countdown.es.js +1 -1
- package/dist/Divider.cjs.js +1 -1
- package/dist/Divider.es.js +2 -2
- package/dist/Embed.es.js +1 -1
- package/dist/Form.es.js +1 -1
- package/dist/Image.es.js +1 -1
- package/dist/LiveProvider.cjs.js +1 -1
- package/dist/LiveProvider.es.js +2 -2
- package/dist/Navigation.cjs.js +1 -1
- package/dist/Navigation.es.js +2 -2
- package/dist/PreviewProvider.cjs.js +1 -1
- package/dist/PreviewProvider.es.js +2 -2
- package/dist/ReadOnlyText.es.js +1 -1
- package/dist/ReadOnlyTextV2.es.js +1 -1
- package/dist/Root.es.js +1 -1
- package/dist/SocialLinks.cjs.js +1 -1
- package/dist/SocialLinks.es.js +2 -2
- package/dist/Video.es.js +1 -1
- package/dist/control-serialization.cjs.js +1 -1
- package/dist/control-serialization.es.js +2 -2
- package/dist/controls.cjs.js +1 -1
- package/dist/controls.es.js +1 -1
- package/dist/index.cjs.js +18 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs2.js +37 -6
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.es.js +19 -13
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +38 -7
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es9.js +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 -1
- package/dist/react-page.cjs.js +55 -42
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +54 -42
- package/dist/react-page.es.js.map +1 -1
- package/dist/slate.es.js +1 -1
- package/dist/toText.es.js +1 -1
- package/dist/types/src/components/hooks/useBackgrounds.d.ts.map +1 -1
- package/dist/types/src/controls/image.d.ts +16 -1
- package/dist/types/src/controls/image.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/copy/backgrounds.d.ts +2 -2
- package/dist/types/src/prop-controllers/copy/backgrounds.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/descriptors.d.ts +22 -5
- package/dist/types/src/prop-controllers/descriptors.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/index.d.ts +2 -1
- package/dist/types/src/prop-controllers/index.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/introspection.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/image.d.ts.map +1 -1
- package/dist/types/types/locale.d.ts +1 -1
- package/package.json +1 -1
package/dist/Box.cjs.js
CHANGED
|
@@ -45,8 +45,8 @@ require("./actions.cjs.js");
|
|
|
45
45
|
require("zod");
|
|
46
46
|
require("./number.cjs.js");
|
|
47
47
|
require("./combobox.cjs.js");
|
|
48
|
-
require("slate");
|
|
49
48
|
require("ts-pattern");
|
|
49
|
+
require("slate");
|
|
50
50
|
require("use-sync-external-store/shim");
|
|
51
51
|
require("redux");
|
|
52
52
|
require("redux-thunk");
|
package/dist/Box.es.js
CHANGED
|
@@ -33,7 +33,7 @@ import { forwardRef, useRef, useCallback, useImperativeHandle, useState, useEffe
|
|
|
33
33
|
import { cx } from "@emotion/css";
|
|
34
34
|
import { v4 } from "uuid";
|
|
35
35
|
import { n as useResponsiveStyle, E as Element } from "./index.es.js";
|
|
36
|
-
import {
|
|
36
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
37
37
|
import { jsx } from "react/jsx-runtime";
|
|
38
38
|
import { a as useBoxAnimation, b as areBoxAnimationPropsEqual, B as BackgroundsContainer, G as GridItem } from "./index.es2.js";
|
|
39
39
|
import { p as parse, c as createBox } from "./box-models.es.js";
|
|
@@ -43,8 +43,8 @@ import "./actions.es.js";
|
|
|
43
43
|
import "zod";
|
|
44
44
|
import "./number.es.js";
|
|
45
45
|
import "./combobox.es.js";
|
|
46
|
-
import "slate";
|
|
47
46
|
import "ts-pattern";
|
|
47
|
+
import "slate";
|
|
48
48
|
import "use-sync-external-store/shim";
|
|
49
49
|
import "redux";
|
|
50
50
|
import "redux-thunk";
|
package/dist/Button.cjs.js
CHANGED
|
@@ -44,9 +44,9 @@ require("./actions.cjs.js");
|
|
|
44
44
|
require("zod");
|
|
45
45
|
require("./number.cjs.js");
|
|
46
46
|
require("./combobox.cjs.js");
|
|
47
|
+
require("ts-pattern");
|
|
47
48
|
require("uuid");
|
|
48
49
|
require("slate");
|
|
49
|
-
require("ts-pattern");
|
|
50
50
|
require("use-sync-external-store/shim");
|
|
51
51
|
require("redux");
|
|
52
52
|
require("redux-thunk");
|
package/dist/Button.es.js
CHANGED
|
@@ -33,7 +33,7 @@ import { forwardRef } from "react";
|
|
|
33
33
|
import ColorHelper from "color";
|
|
34
34
|
import { o as useResponsiveWidth, n as useResponsiveStyle, p as useResponsiveTextStyle, q as colorToString } from "./index.es.js";
|
|
35
35
|
import { L as Link } from "./index.es3.js";
|
|
36
|
-
import {
|
|
36
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
37
37
|
import { cx } from "@emotion/css";
|
|
38
38
|
import { jsx } from "react/jsx-runtime";
|
|
39
39
|
import "use-sync-external-store/shim/with-selector";
|
|
@@ -42,9 +42,9 @@ import "./actions.es.js";
|
|
|
42
42
|
import "zod";
|
|
43
43
|
import "./number.es.js";
|
|
44
44
|
import "./combobox.es.js";
|
|
45
|
+
import "ts-pattern";
|
|
45
46
|
import "uuid";
|
|
46
47
|
import "slate";
|
|
47
|
-
import "ts-pattern";
|
|
48
48
|
import "use-sync-external-store/shim";
|
|
49
49
|
import "redux";
|
|
50
50
|
import "redux-thunk";
|
package/dist/Carousel.cjs.js
CHANGED
|
@@ -39,9 +39,9 @@ var next = require("./index.cjs.js");
|
|
|
39
39
|
require("use-sync-external-store/shim");
|
|
40
40
|
var reactPage = require("./react-page.cjs.js");
|
|
41
41
|
require("./actions.cjs.js");
|
|
42
|
+
require("ts-pattern");
|
|
42
43
|
require("uuid");
|
|
43
44
|
require("slate");
|
|
44
|
-
require("ts-pattern");
|
|
45
45
|
var useMediaQuery = require("./useMediaQuery.cjs.js");
|
|
46
46
|
var Image = require("./Image.cjs.js");
|
|
47
47
|
var css = require("@emotion/css");
|
package/dist/Carousel.es.js
CHANGED
|
@@ -35,11 +35,11 @@ import { useGesture } from "@use-gesture/react";
|
|
|
35
35
|
import { wrap } from "@popmotion/popcorn";
|
|
36
36
|
import { r as useBreakpoints, n as useResponsiveStyle, q as colorToString } from "./index.es.js";
|
|
37
37
|
import "use-sync-external-store/shim";
|
|
38
|
-
import {
|
|
38
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
39
39
|
import "./actions.es.js";
|
|
40
|
+
import "ts-pattern";
|
|
40
41
|
import "uuid";
|
|
41
42
|
import "slate";
|
|
42
|
-
import "ts-pattern";
|
|
43
43
|
import { u as useMediaQuery } from "./useMediaQuery.es.js";
|
|
44
44
|
import ImageComponent from "./Image.es.js";
|
|
45
45
|
import { cx } from "@emotion/css";
|
package/dist/Countdown.es.js
CHANGED
|
@@ -31,7 +31,7 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import { cx } from "@emotion/css";
|
|
33
33
|
import { forwardRef, useState, useEffect } from "react";
|
|
34
|
-
import {
|
|
34
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
35
35
|
import { n as useResponsiveStyle, q as colorToString } from "./index.es.js";
|
|
36
36
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
37
37
|
import "redux";
|
package/dist/Divider.cjs.js
CHANGED
|
@@ -11,9 +11,9 @@ require("./actions.cjs.js");
|
|
|
11
11
|
require("zod");
|
|
12
12
|
require("./number.cjs.js");
|
|
13
13
|
require("./combobox.cjs.js");
|
|
14
|
+
require("ts-pattern");
|
|
14
15
|
require("uuid");
|
|
15
16
|
require("slate");
|
|
16
|
-
require("ts-pattern");
|
|
17
17
|
require("use-sync-external-store/shim");
|
|
18
18
|
require("redux");
|
|
19
19
|
require("redux-thunk");
|
package/dist/Divider.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef } from "react";
|
|
2
2
|
import { n as useResponsiveStyle, q as colorToString } from "./index.es.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
4
4
|
import { cx } from "@emotion/css";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import "use-sync-external-store/shim/with-selector";
|
|
@@ -9,9 +9,9 @@ import "./actions.es.js";
|
|
|
9
9
|
import "zod";
|
|
10
10
|
import "./number.es.js";
|
|
11
11
|
import "./combobox.es.js";
|
|
12
|
+
import "ts-pattern";
|
|
12
13
|
import "uuid";
|
|
13
14
|
import "slate";
|
|
14
|
-
import "ts-pattern";
|
|
15
15
|
import "use-sync-external-store/shim";
|
|
16
16
|
import "redux";
|
|
17
17
|
import "redux-thunk";
|
package/dist/Embed.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef, useState, useImperativeHandle, useEffect } from "react";
|
|
2
2
|
import { u as useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect.es.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
4
4
|
import { cx } from "@emotion/css";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import "redux";
|
package/dist/Form.es.js
CHANGED
|
@@ -33,7 +33,7 @@ import * as React from "react";
|
|
|
33
33
|
import { forwardRef, useRef, useImperativeHandle, useState, useEffect, useMemo } from "react";
|
|
34
34
|
import { Field as Field$1, getIn, Formik } from "formik";
|
|
35
35
|
import { cx, keyframes } from "@emotion/css";
|
|
36
|
-
import {
|
|
36
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
37
37
|
import { n as useResponsiveStyle, S as Shapes, s as Sizes, C as Contrasts, q as colorToString, t as useFormContext, p as useResponsiveTextStyle, u as useIsInBuilder, v as useResponsiveGridItem, w as useTable, x as useMakeswiftClient, y as Provider, A as Alignments } from "./index.es.js";
|
|
38
38
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
39
39
|
import ColorHelper from "color";
|
package/dist/Image.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import { findBreakpointOverride } from "./state/breakpoints.es.js";
|
|
|
4
4
|
import { p as placeholders } from "./placeholders.es.js";
|
|
5
5
|
import { L as Link } from "./index.es3.js";
|
|
6
6
|
import { cx } from "@emotion/css";
|
|
7
|
-
import {
|
|
7
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
8
8
|
import { z as useFile, r as useBreakpoints, o as useResponsiveWidth, n as useResponsiveStyle } from "./index.es.js";
|
|
9
9
|
import { m as major } from "./next-version.es.js";
|
|
10
10
|
import { match, P } from "ts-pattern";
|
package/dist/LiveProvider.cjs.js
CHANGED
|
@@ -10,9 +10,9 @@ require("./actions.cjs.js");
|
|
|
10
10
|
require("zod");
|
|
11
11
|
require("./number.cjs.js");
|
|
12
12
|
require("./combobox.cjs.js");
|
|
13
|
+
require("ts-pattern");
|
|
13
14
|
require("uuid");
|
|
14
15
|
require("slate");
|
|
15
|
-
require("ts-pattern");
|
|
16
16
|
require("use-sync-external-store/shim");
|
|
17
17
|
require("redux");
|
|
18
18
|
require("redux-thunk");
|
package/dist/LiveProvider.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { a as ReactRuntime, K as StoreContext, M as MakeswiftProvider } from "./index.es.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ax as configureStore } from "./react-page.es.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import "use-sync-external-store/shim/with-selector";
|
|
6
6
|
import "next/dynamic";
|
|
@@ -8,9 +8,9 @@ import "./actions.es.js";
|
|
|
8
8
|
import "zod";
|
|
9
9
|
import "./number.es.js";
|
|
10
10
|
import "./combobox.es.js";
|
|
11
|
+
import "ts-pattern";
|
|
11
12
|
import "uuid";
|
|
12
13
|
import "slate";
|
|
13
|
-
import "ts-pattern";
|
|
14
14
|
import "use-sync-external-store/shim";
|
|
15
15
|
import "redux";
|
|
16
16
|
import "redux-thunk";
|
package/dist/Navigation.cjs.js
CHANGED
|
@@ -40,9 +40,9 @@ var jsxRuntime = require("react/jsx-runtime");
|
|
|
40
40
|
var next = require("./index.cjs.js");
|
|
41
41
|
require("use-sync-external-store/shim");
|
|
42
42
|
require("./actions.cjs.js");
|
|
43
|
+
require("ts-pattern");
|
|
43
44
|
require("uuid");
|
|
44
45
|
require("slate");
|
|
45
|
-
require("ts-pattern");
|
|
46
46
|
require("./state/breakpoints.cjs.js");
|
|
47
47
|
var index$1 = require("./index.cjs3.js");
|
|
48
48
|
var useIsomorphicLayoutEffect = require("./useIsomorphicLayoutEffect.cjs.js");
|
package/dist/Navigation.es.js
CHANGED
|
@@ -34,14 +34,14 @@ import { forwardRef, useRef, useState, createElement, Fragment as Fragment$1 } f
|
|
|
34
34
|
import { G as GutterContainer } from "./index.es4.js";
|
|
35
35
|
import ImageComponent from "./Image.es.js";
|
|
36
36
|
import Button from "./Button.es.js";
|
|
37
|
-
import {
|
|
37
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
38
38
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
39
39
|
import { l as useResponsiveColor, p as useResponsiveTextStyle, n as useResponsiveStyle, q as colorToString } from "./index.es.js";
|
|
40
40
|
import "use-sync-external-store/shim";
|
|
41
41
|
import "./actions.es.js";
|
|
42
|
+
import "ts-pattern";
|
|
42
43
|
import "uuid";
|
|
43
44
|
import "slate";
|
|
44
|
-
import "ts-pattern";
|
|
45
45
|
import "./state/breakpoints.es.js";
|
|
46
46
|
import { L as Link } from "./index.es3.js";
|
|
47
47
|
import { u as useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect.es.js";
|
|
@@ -35,9 +35,9 @@ require("use-sync-external-store/shim/with-selector");
|
|
|
35
35
|
require("next/dynamic");
|
|
36
36
|
require("./number.cjs.js");
|
|
37
37
|
require("./combobox.cjs.js");
|
|
38
|
+
require("ts-pattern");
|
|
38
39
|
require("uuid");
|
|
39
40
|
require("slate");
|
|
40
|
-
require("ts-pattern");
|
|
41
41
|
require("use-sync-external-store/shim");
|
|
42
42
|
require("./types.cjs.js");
|
|
43
43
|
require("color");
|
|
@@ -23,7 +23,7 @@ import { J as ElementImperativeHandle, a as ReactRuntime, K as StoreContext, M a
|
|
|
23
23
|
import { createStore, applyMiddleware, combineReducers } from "redux";
|
|
24
24
|
import thunk from "redux-thunk";
|
|
25
25
|
import Router from "next/router";
|
|
26
|
-
import {
|
|
26
|
+
import { c5 as getInitialState$3, c6 as reducer$4, c7 as getDocument$1, c as createDocument, c8 as getComponentsMeta$1, c9 as getComponentPropControllerDescriptors$1, az as getBreakpoints, l as getLocales, k as getDefaultLocale, f as deepEqual, aG as getBuilderEditMode, ca as BuilderEditMode, cb as getDocumentKeysSortedByDepth, cc as getPropController, cd as getPropControllersHandle, ce as getElement, cf as getElementPropControllerDescriptors, cg as createPropController, j as isElementReference, a6 as isPropControllersHandle, ch as reducer$5, ci as reducer$7, cj as reducer$8, ck as reducer$9, cl as reducer$a, cm as reducer$b, cn as reducer$c, co as reducer$e, cp as getInitialState$4 } from "./react-page.es.js";
|
|
27
27
|
import { removeIn, setIn } from "immutable";
|
|
28
28
|
import { A as ActionTypes, w as unregisterMeasurable, x as registerMeasurable, y as registerBuilderComponent, j as setBreakpoints, l as setLocales, z as setDefaultLocale, k as setLocale, B as changePathnameStart, C as changePathnameComplete, D as changeElementBoxModels, E as changeDocumentElementSize, F as handleWheel, G as handlePointerMove, H as elementFromPointChange, I as setIsInBuilder, J as unregisterBuilderComponent, K as unregisterPropControllers, L as registerPropControllers, M as registerPropControllersHandle, r as registerDocument, N as registerComponentHandle, O as messageBuilderPropController, P as registerDocumentEffect } from "./actions.es.js";
|
|
29
29
|
import { i as isMeasurable, a as getMeasurables$1, b as getBoxModels$1, m as measure, d as getBoxModel$1, r as reducer$6 } from "./box-models.es.js";
|
|
@@ -34,9 +34,9 @@ import "use-sync-external-store/shim/with-selector";
|
|
|
34
34
|
import "next/dynamic";
|
|
35
35
|
import "./number.es.js";
|
|
36
36
|
import "./combobox.es.js";
|
|
37
|
+
import "ts-pattern";
|
|
37
38
|
import "uuid";
|
|
38
39
|
import "slate";
|
|
39
|
-
import "ts-pattern";
|
|
40
40
|
import "use-sync-external-store/shim";
|
|
41
41
|
import "./types.es.js";
|
|
42
42
|
import "color";
|
package/dist/ReadOnlyText.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cx } from "@emotion/css";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { L as useEnhancedTypography, N as useTypographyClassName, n as useResponsiveStyle } from "./index.es.js";
|
|
4
|
-
import {
|
|
4
|
+
import { by as richTextDTOtoDAO, a0 as useStyle, bY as BlockType, bZ as InlineType } from "./react-page.es.js";
|
|
5
5
|
import "./actions.es.js";
|
|
6
6
|
import "slate";
|
|
7
7
|
import "ts-pattern";
|
|
@@ -14,7 +14,7 @@ var __objRest = (source, exclude) => {
|
|
|
14
14
|
return target;
|
|
15
15
|
};
|
|
16
16
|
import { forwardRef } from "react";
|
|
17
|
-
import {
|
|
17
|
+
import { bB as RichTextV2Mode, bU as InlineModePlugin, bS as BlockPlugin, bN as TypographyPlugin, bW as TextAlignPlugin, c0 as InlinePlugin, a0 as useStyle } from "./react-page.es.js";
|
|
18
18
|
import "./actions.es.js";
|
|
19
19
|
import "slate";
|
|
20
20
|
import "ts-pattern";
|
package/dist/Root.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var _a;
|
|
|
2
2
|
import { normalize } from "polished";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { forwardRef, useRef } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { E as Element } from "./index.es.js";
|
|
8
8
|
import { B as BackgroundsContainer, G as GridItem } from "./index.es2.js";
|
package/dist/SocialLinks.cjs.js
CHANGED
|
@@ -46,9 +46,9 @@ require("./actions.cjs.js");
|
|
|
46
46
|
require("zod");
|
|
47
47
|
require("./number.cjs.js");
|
|
48
48
|
require("./combobox.cjs.js");
|
|
49
|
+
require("ts-pattern");
|
|
49
50
|
require("uuid");
|
|
50
51
|
require("slate");
|
|
51
|
-
require("ts-pattern");
|
|
52
52
|
require("use-sync-external-store/shim");
|
|
53
53
|
require("redux");
|
|
54
54
|
require("redux-thunk");
|
package/dist/SocialLinks.es.js
CHANGED
|
@@ -35,7 +35,7 @@ import { L as Link } from "./index.es3.js";
|
|
|
35
35
|
import { n as useResponsiveStyle, q as colorToString } from "./index.es.js";
|
|
36
36
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
37
37
|
import { G as GutterContainer } from "./index.es4.js";
|
|
38
|
-
import {
|
|
38
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
39
39
|
import { cx } from "@emotion/css";
|
|
40
40
|
import "scroll-into-view-if-needed";
|
|
41
41
|
import "next/link";
|
|
@@ -45,9 +45,9 @@ import "./actions.es.js";
|
|
|
45
45
|
import "zod";
|
|
46
46
|
import "./number.es.js";
|
|
47
47
|
import "./combobox.es.js";
|
|
48
|
+
import "ts-pattern";
|
|
48
49
|
import "uuid";
|
|
49
50
|
import "slate";
|
|
50
|
-
import "ts-pattern";
|
|
51
51
|
import "use-sync-external-store/shim";
|
|
52
52
|
import "redux";
|
|
53
53
|
import "redux-thunk";
|
package/dist/Video.es.js
CHANGED
|
@@ -20,7 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import { cx } from "@emotion/css";
|
|
21
21
|
import { forwardRef, useState, useEffect } from "react";
|
|
22
22
|
import ReactPlayer from "react-player";
|
|
23
|
-
import {
|
|
23
|
+
import { a0 as useStyle } from "./react-page.es.js";
|
|
24
24
|
import { p as placeholders } from "./placeholders.es.js";
|
|
25
25
|
import { jsx } from "react/jsx-runtime";
|
|
26
26
|
import "redux";
|
|
@@ -32,10 +32,10 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
var combobox = require("./combobox.cjs.js");
|
|
34
34
|
var reactPage = require("./react-page.cjs.js");
|
|
35
|
+
require("ts-pattern");
|
|
35
36
|
require("./actions.cjs.js");
|
|
36
37
|
require("uuid");
|
|
37
38
|
require("slate");
|
|
38
|
-
require("ts-pattern");
|
|
39
39
|
function isSerializedFunction(value) {
|
|
40
40
|
return value instanceof MessagePort;
|
|
41
41
|
}
|
|
@@ -31,11 +31,11 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
const import_meta = {};
|
|
33
33
|
import { C as ComboboxControlType } from "./combobox.es.js";
|
|
34
|
-
import {
|
|
34
|
+
import { af as ListControlType, ag as ShapeControlType, ae as StyleV2ControlType, ab as RichTextV2ControlType, aq as Types } from "./react-page.es.js";
|
|
35
|
+
import "ts-pattern";
|
|
35
36
|
import "./actions.es.js";
|
|
36
37
|
import "uuid";
|
|
37
38
|
import "slate";
|
|
38
|
-
import "ts-pattern";
|
|
39
39
|
function isSerializedFunction(value) {
|
|
40
40
|
return value instanceof MessagePort;
|
|
41
41
|
}
|
package/dist/controls.cjs.js
CHANGED
|
@@ -66,7 +66,7 @@ exports.TextAreaControlType = reactPage.TextAreaControlType;
|
|
|
66
66
|
exports.TextInput = reactPage.TextInput$1;
|
|
67
67
|
exports.TextInputControlType = reactPage.TextInputControlType;
|
|
68
68
|
exports.TypographyControlType = reactPage.TypographyControlType;
|
|
69
|
-
exports.copy = reactPage.copy$
|
|
69
|
+
exports.copy = reactPage.copy$3;
|
|
70
70
|
exports.copyColorData = reactPage.copyColorData;
|
|
71
71
|
exports.copyImageData = reactPage.copyImageData;
|
|
72
72
|
exports.copyLinkData = reactPage.copyLinkData;
|
package/dist/controls.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as Checkbox, C as CheckboxControlType, b as Number, N as NumberControlType } from "./number.es.js";
|
|
2
|
-
export {
|
|
2
|
+
export { aK as Color, ak as ColorControlType, aj as IconRadioGroupControlType, aR as Image, ai as ImageControlType, a5 as ImageControlValueFormat, aT as Link, ah as LinkControlType, aV as List, aX as ListControl, aW as ListControlMessageType, af as ListControlType, bu as ObjectType, _ as RichText, bw as RichTextControl, bv as RichTextControlMessageType, ac as RichTextControlType, bD as RichTextV2Control, bC as RichTextV2ControlMessageType, ab as RichTextV2ControlType, bB as RichTextV2Mode, b3 as Select, al as SelectControlType, b4 as Shape, b6 as ShapeControl, b5 as ShapeControlMessageType, ag as ShapeControlType, be as Slot, bg as SlotControl, bf as SlotControlMessageType, ad as SlotControlType, bj as Style, bl as StyleControl, bk as StyleControlMessageType, a4 as StyleControlProperty, aa as StyleControlType, bq as StyleV2Control, bp as StyleV2ControlMessageType, ae as StyleV2ControlType, br as TextArea, am as TextAreaControlType, bs as TextInput, an as TextInputControlType, a9 as TypographyControlType, aM as copy, aL as copyColorData, aS as copyImageData, aU as copyLinkData, aY as copyListData, bt as copyRichTextData, b7 as copyShapeData, bh as copySlotData, bm as copyStyleData, bG as createRichTextV2Plugin, aZ as getListElementChildren, a$ as getListFileIds, b1 as getListPageIds, a_ as getListSwatchIds, b2 as getListTranslatableData, b0 as getListTypographyIds, b8 as getShapeElementChildren, bc as getShapeFileIds, bb as getShapePageIds, b9 as getShapeSwatchIds, bd as getShapeTranslatableData, ba as getShapeTypographyIds, aO as getTranslatableData, bI as getTypographySwatchIds, bJ as getTypographyTypographyIds, a7 as isRichTextV1Data, aN as merge, bi as mergeSlotData, bA as richTextDAOToDTO, by as richTextDTOtoDAO, bx as richTextDTOtoSelection, bE as richTextV2DataToDescendents, bF as richTextV2DescendentsToData, bz as toSelectionDTO, aQ as unstable_IconRadioGroup, aP as unstable_IconRadioGroupIcon, bo as unstable_StyleV2, bH as unstable_Typography, bn as unstable_useStyleV2ClassName } from "./react-page.es.js";
|
|
3
3
|
export { a as Combobox, C as ComboboxControlType } from "./combobox.es.js";
|
|
4
4
|
import "redux";
|
|
5
5
|
import "redux-thunk";
|
package/dist/index.cjs.js
CHANGED
|
@@ -43,9 +43,9 @@ var actions = require("./actions.cjs.js");
|
|
|
43
43
|
var jsxRuntime = require("react/jsx-runtime");
|
|
44
44
|
var number = require("./number.cjs.js");
|
|
45
45
|
var combobox = require("./combobox.cjs.js");
|
|
46
|
+
var tsPattern = require("ts-pattern");
|
|
46
47
|
var uuid = require("uuid");
|
|
47
48
|
require("slate");
|
|
48
|
-
require("ts-pattern");
|
|
49
49
|
var shim = require("use-sync-external-store/shim");
|
|
50
50
|
var redux = require("redux");
|
|
51
51
|
var thunk = require("redux-thunk");
|
|
@@ -1192,7 +1192,7 @@ async function fonts(_req, res, { getFonts } = {}) {
|
|
|
1192
1192
|
const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
|
|
1193
1193
|
return res.json(fonts2);
|
|
1194
1194
|
}
|
|
1195
|
-
const version = "0.10.
|
|
1195
|
+
const version = "0.10.15";
|
|
1196
1196
|
async function handler(req, res, { apiKey, siteVersions }) {
|
|
1197
1197
|
if (req.query.secret !== apiKey) {
|
|
1198
1198
|
return res.status(401).json({ message: "Unauthorized" });
|
|
@@ -3068,17 +3068,23 @@ function useIconRadioGroupValue(iconRadioGroupControlData, controlDefinition) {
|
|
|
3068
3068
|
function useImageControlValue(data, definition) {
|
|
3069
3069
|
var _a;
|
|
3070
3070
|
const format = (_a = definition.config.format) != null ? _a : reactPage.ImageControlValueFormat.URL;
|
|
3071
|
-
const fileId = data
|
|
3071
|
+
const fileId = tsPattern.match(data).with(tsPattern.P.string, (id) => id).with({ type: "makeswift-file" }, ({ id }) => id).otherwise(() => null);
|
|
3072
3072
|
const file = useFile(fileId);
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3073
|
+
return tsPattern.match([file, data, format]).with([{ __typename: "File" }, tsPattern.P.any, reactPage.ImageControlValueFormat.URL], ([file2]) => file2.publicUrl).with([
|
|
3074
|
+
{ __typename: "File", dimensions: tsPattern.P.not(tsPattern.P.nullish) },
|
|
3075
|
+
tsPattern.P.any,
|
|
3076
|
+
reactPage.ImageControlValueFormat.WithDimensions
|
|
3077
|
+
], ([file2]) => ({
|
|
3078
|
+
url: file2.publicUrl,
|
|
3079
|
+
dimensions: file2.dimensions
|
|
3080
|
+
})).with([tsPattern.P.any, { type: "external-file" }, reactPage.ImageControlValueFormat.URL], ([, d]) => d.url).with([
|
|
3081
|
+
tsPattern.P.any,
|
|
3082
|
+
{ type: "external-file", width: tsPattern.P.number, height: tsPattern.P.number },
|
|
3083
|
+
reactPage.ImageControlValueFormat.WithDimensions
|
|
3084
|
+
], ([, d]) => ({
|
|
3085
|
+
url: d.url,
|
|
3086
|
+
dimensions: { width: d.width, height: d.height }
|
|
3087
|
+
})).otherwise(() => void 0);
|
|
3082
3088
|
}
|
|
3083
3089
|
function useLinkControlValue(link, _definition) {
|
|
3084
3090
|
var _a;
|