@makeswift/runtime 0.10.13 → 0.10.14

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.
Files changed (57) hide show
  1. package/dist/Box.cjs.js +1 -1
  2. package/dist/Box.es.js +2 -2
  3. package/dist/Button.cjs.js +1 -1
  4. package/dist/Button.es.js +2 -2
  5. package/dist/Carousel.cjs.js +1 -1
  6. package/dist/Carousel.es.js +2 -2
  7. package/dist/Countdown.es.js +1 -1
  8. package/dist/Divider.cjs.js +1 -1
  9. package/dist/Divider.es.js +2 -2
  10. package/dist/Embed.es.js +1 -1
  11. package/dist/Form.es.js +1 -1
  12. package/dist/Image.es.js +1 -1
  13. package/dist/LiveProvider.cjs.js +1 -1
  14. package/dist/LiveProvider.es.js +2 -2
  15. package/dist/Navigation.cjs.js +1 -1
  16. package/dist/Navigation.es.js +2 -2
  17. package/dist/PreviewProvider.cjs.js +1 -1
  18. package/dist/PreviewProvider.es.js +2 -2
  19. package/dist/ReadOnlyText.es.js +1 -1
  20. package/dist/ReadOnlyTextV2.es.js +1 -1
  21. package/dist/Root.es.js +1 -1
  22. package/dist/SocialLinks.cjs.js +1 -1
  23. package/dist/SocialLinks.es.js +2 -2
  24. package/dist/Video.es.js +1 -1
  25. package/dist/control-serialization.cjs.js +1 -1
  26. package/dist/control-serialization.es.js +2 -2
  27. package/dist/controls.cjs.js +1 -1
  28. package/dist/controls.es.js +1 -1
  29. package/dist/index.cjs.js +2 -2
  30. package/dist/index.cjs2.js +37 -6
  31. package/dist/index.cjs2.js.map +1 -1
  32. package/dist/index.es.js +3 -3
  33. package/dist/index.es2.js +38 -7
  34. package/dist/index.es2.js.map +1 -1
  35. package/dist/index.es4.js +1 -1
  36. package/dist/index.es5.js +1 -1
  37. package/dist/index.es6.js +1 -1
  38. package/dist/index.es8.js +1 -1
  39. package/dist/index.es9.js +1 -1
  40. package/dist/prop-controllers.cjs.js +1 -0
  41. package/dist/prop-controllers.cjs.js.map +1 -1
  42. package/dist/prop-controllers.es.js +1 -1
  43. package/dist/react-page.cjs.js +46 -38
  44. package/dist/react-page.cjs.js.map +1 -1
  45. package/dist/react-page.es.js +45 -38
  46. package/dist/react-page.es.js.map +1 -1
  47. package/dist/slate.es.js +1 -1
  48. package/dist/toText.es.js +1 -1
  49. package/dist/types/src/components/hooks/useBackgrounds.d.ts.map +1 -1
  50. package/dist/types/src/prop-controllers/copy/backgrounds.d.ts +2 -2
  51. package/dist/types/src/prop-controllers/copy/backgrounds.d.ts.map +1 -1
  52. package/dist/types/src/prop-controllers/descriptors.d.ts +22 -5
  53. package/dist/types/src/prop-controllers/descriptors.d.ts.map +1 -1
  54. package/dist/types/src/prop-controllers/index.d.ts +2 -1
  55. package/dist/types/src/prop-controllers/index.d.ts.map +1 -1
  56. package/dist/types/src/prop-controllers/introspection.d.ts.map +1 -1
  57. 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 { $ as useStyle } from "./react-page.es.js";
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";
@@ -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 { $ as useStyle } from "./react-page.es.js";
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";
@@ -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");
@@ -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 { $ as useStyle } from "./react-page.es.js";
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";
@@ -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 { $ as useStyle } from "./react-page.es.js";
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";
@@ -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");
@@ -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 { $ as useStyle } from "./react-page.es.js";
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 { $ as useStyle } from "./react-page.es.js";
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 { $ as useStyle } from "./react-page.es.js";
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 { $ as useStyle } from "./react-page.es.js";
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";
@@ -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");
@@ -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 { aw as configureStore } from "./react-page.es.js";
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";
@@ -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");
@@ -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 { $ as useStyle } from "./react-page.es.js";
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 { c4 as getInitialState$3, c5 as reducer$4, c6 as getDocument$1, c as createDocument, c7 as getComponentsMeta$1, c8 as getComponentPropControllerDescriptors$1, ay as getBreakpoints, k as getLocales, j as getDefaultLocale, e as deepEqual, aF as getBuilderEditMode, c9 as BuilderEditMode, ca as getDocumentKeysSortedByDepth, cb as getPropController, cc as getPropControllersHandle, cd as getElement, ce as getElementPropControllerDescriptors, cf as createPropController, h as isElementReference, a5 as isPropControllersHandle, cg as reducer$5, ch as reducer$7, ci as reducer$8, cj as reducer$9, ck as reducer$a, cl as reducer$b, cm as reducer$c, cn as reducer$e, co as getInitialState$4 } from "./react-page.es.js";
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";
@@ -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 { bx as richTextDTOtoDAO, $ as useStyle, bX as BlockType, bY as InlineType } from "./react-page.es.js";
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 { bA as RichTextV2Mode, bT as InlineModePlugin, bR as BlockPlugin, bM as TypographyPlugin, bV as TextAlignPlugin, b$ as InlinePlugin, $ as useStyle } from "./react-page.es.js";
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 { $ as useStyle } from "./react-page.es.js";
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";
@@ -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");
@@ -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 { $ as useStyle } from "./react-page.es.js";
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 { $ as useStyle } from "./react-page.es.js";
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 { ae as ListControlType, af as ShapeControlType, ad as StyleV2ControlType, aa as RichTextV2ControlType, ap as Types } from "./react-page.es.js";
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
  }
@@ -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$2;
69
+ exports.copy = reactPage.copy$3;
70
70
  exports.copyColorData = reactPage.copyColorData;
71
71
  exports.copyImageData = reactPage.copyImageData;
72
72
  exports.copyLinkData = reactPage.copyLinkData;
@@ -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 { aJ as Color, aj as ColorControlType, ai as IconRadioGroupControlType, aQ as Image, ah as ImageControlType, a4 as ImageControlValueFormat, aS as Link, ag as LinkControlType, aU as List, aW as ListControl, aV as ListControlMessageType, ae as ListControlType, bt as ObjectType, Z as RichText, bv as RichTextControl, bu as RichTextControlMessageType, ab as RichTextControlType, bC as RichTextV2Control, bB as RichTextV2ControlMessageType, aa as RichTextV2ControlType, bA as RichTextV2Mode, b2 as Select, ak as SelectControlType, b3 as Shape, b5 as ShapeControl, b4 as ShapeControlMessageType, af as ShapeControlType, bd as Slot, bf as SlotControl, be as SlotControlMessageType, ac as SlotControlType, bi as Style, bk as StyleControl, bj as StyleControlMessageType, a3 as StyleControlProperty, a9 as StyleControlType, bp as StyleV2Control, bo as StyleV2ControlMessageType, ad as StyleV2ControlType, bq as TextArea, al as TextAreaControlType, br as TextInput, am as TextInputControlType, a8 as TypographyControlType, aL as copy, aK as copyColorData, aR as copyImageData, aT as copyLinkData, aX as copyListData, bs as copyRichTextData, b6 as copyShapeData, bg as copySlotData, bl as copyStyleData, bF as createRichTextV2Plugin, aY as getListElementChildren, a_ as getListFileIds, b0 as getListPageIds, aZ as getListSwatchIds, b1 as getListTranslatableData, a$ as getListTypographyIds, b7 as getShapeElementChildren, bb as getShapeFileIds, ba as getShapePageIds, b8 as getShapeSwatchIds, bc as getShapeTranslatableData, b9 as getShapeTypographyIds, aN as getTranslatableData, bH as getTypographySwatchIds, bI as getTypographyTypographyIds, a6 as isRichTextV1Data, aM as merge, bh as mergeSlotData, bz as richTextDAOToDTO, bx as richTextDTOtoDAO, bw as richTextDTOtoSelection, bD as richTextV2DataToDescendents, bE as richTextV2DescendentsToData, by as toSelectionDTO, aP as unstable_IconRadioGroup, aO as unstable_IconRadioGroupIcon, bn as unstable_StyleV2, bG as unstable_Typography, bm as unstable_useStyleV2ClassName } from "./react-page.es.js";
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
+ 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.13";
1195
+ const version = "0.10.14";
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" });
@@ -35,9 +35,9 @@ var reactPage = require("./react-page.cjs.js");
35
35
  require("use-sync-external-store/shim");
36
36
  var next = require("./index.cjs.js");
37
37
  require("./actions.cjs.js");
38
+ var tsPattern = require("ts-pattern");
38
39
  require("uuid");
39
40
  require("slate");
40
- require("ts-pattern");
41
41
  var useMediaQuery = require("./useMediaQuery.cjs.js");
42
42
  var css = require("@emotion/css");
43
43
  var jsxRuntime = require("react/jsx-runtime");
@@ -63,17 +63,48 @@ function useBackgrounds(value) {
63
63
  var _b = _a, { value: backgrounds } = _b, restOfValue = __objRest(_b, ["value"]);
64
64
  return __spreadProps(__spreadValues({}, restOfValue), {
65
65
  value: backgrounds.map((bg) => {
66
- if (bg.type === "image" && bg.payload != null && bg.payload.imageId != null) {
66
+ if (bg.type === "image" && bg.payload != null) {
67
67
  const _a2 = bg.payload, { imageId } = _a2, restOfPayload = __objRest(_a2, ["imageId"]);
68
68
  const file = files.find((f) => f && f.id === imageId);
69
- return file && {
70
- id: bg.id,
71
- type: "image",
69
+ return file && __spreadProps(__spreadValues({}, bg), {
72
70
  payload: __spreadProps(__spreadValues({}, restOfPayload), {
73
71
  publicUrl: file.publicUrl,
74
72
  dimensions: file.dimensions
75
73
  })
76
- };
74
+ });
75
+ }
76
+ if (bg.type === "image-v1" && bg.payload != null) {
77
+ return tsPattern.match(bg).with({
78
+ payload: { image: { type: "external-file", width: tsPattern.P.number, height: tsPattern.P.number } }
79
+ }, (val) => {
80
+ const _a3 = val.payload, { image, version } = _a3, restOfPayload = __objRest(_a3, ["image", "version"]);
81
+ return __spreadProps(__spreadValues({}, val), {
82
+ type: "image",
83
+ payload: __spreadProps(__spreadValues({}, restOfPayload), {
84
+ publicUrl: image.url,
85
+ dimensions: { width: image.width, height: image.height }
86
+ })
87
+ });
88
+ }).with({ payload: { image: { type: "external-file" } } }, (val) => {
89
+ const _a3 = val.payload, { image, version } = _a3, restOfPayload = __objRest(_a3, ["image", "version"]);
90
+ return __spreadProps(__spreadValues({}, val), {
91
+ type: "image",
92
+ payload: __spreadProps(__spreadValues({}, restOfPayload), {
93
+ publicUrl: image.url,
94
+ dimensions: null
95
+ })
96
+ });
97
+ }).with({ payload: { image: { type: "makeswift-file" } } }, (val) => {
98
+ const _a3 = val.payload, { image, version } = _a3, restOfPayload = __objRest(_a3, ["image", "version"]);
99
+ const file = files.find((f) => f && f.id === image.id);
100
+ return file && __spreadProps(__spreadValues({}, val), {
101
+ type: "image",
102
+ payload: __spreadProps(__spreadValues({}, restOfPayload), {
103
+ publicUrl: file.publicUrl,
104
+ dimensions: file.dimensions
105
+ })
106
+ });
107
+ }).otherwise(() => null);
77
108
  }
78
109
  if (bg.type === "color" && bg.payload != null) {
79
110
  const { swatchId, alpha } = bg.payload;