@makeswift/runtime 0.10.11 → 0.10.13

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 (163) hide show
  1. package/dist/Box.cjs.js +2 -1
  2. package/dist/Box.cjs.js.map +1 -1
  3. package/dist/Box.es.js +3 -2
  4. package/dist/Box.es.js.map +1 -1
  5. package/dist/Button.cjs.js +2 -1
  6. package/dist/Button.cjs.js.map +1 -1
  7. package/dist/Button.es.js +3 -2
  8. package/dist/Button.es.js.map +1 -1
  9. package/dist/Carousel.cjs.js +2 -1
  10. package/dist/Carousel.cjs.js.map +1 -1
  11. package/dist/Carousel.es.js +3 -2
  12. package/dist/Carousel.es.js.map +1 -1
  13. package/dist/Countdown.cjs.js +2 -1
  14. package/dist/Countdown.cjs.js.map +1 -1
  15. package/dist/Countdown.es.js +3 -2
  16. package/dist/Countdown.es.js.map +1 -1
  17. package/dist/Divider.cjs.js +2 -1
  18. package/dist/Divider.cjs.js.map +1 -1
  19. package/dist/Divider.es.js +3 -2
  20. package/dist/Divider.es.js.map +1 -1
  21. package/dist/Embed.cjs.js +1 -0
  22. package/dist/Embed.cjs.js.map +1 -1
  23. package/dist/Embed.es.js +2 -1
  24. package/dist/Embed.es.js.map +1 -1
  25. package/dist/Form.cjs.js +2 -1
  26. package/dist/Form.cjs.js.map +1 -1
  27. package/dist/Form.es.js +3 -2
  28. package/dist/Form.es.js.map +1 -1
  29. package/dist/Image.cjs.js +20 -4
  30. package/dist/Image.cjs.js.map +1 -1
  31. package/dist/Image.es.js +21 -5
  32. package/dist/Image.es.js.map +1 -1
  33. package/dist/LiveProvider.cjs.js +2 -1
  34. package/dist/LiveProvider.cjs.js.map +1 -1
  35. package/dist/LiveProvider.es.js +3 -2
  36. package/dist/LiveProvider.es.js.map +1 -1
  37. package/dist/Navigation.cjs.js +2 -1
  38. package/dist/Navigation.cjs.js.map +1 -1
  39. package/dist/Navigation.es.js +3 -2
  40. package/dist/Navigation.es.js.map +1 -1
  41. package/dist/PreviewProvider.cjs.js +2 -1
  42. package/dist/PreviewProvider.cjs.js.map +1 -1
  43. package/dist/PreviewProvider.es.js +3 -2
  44. package/dist/PreviewProvider.es.js.map +1 -1
  45. package/dist/ReadOnlyText.cjs.js +2 -1
  46. package/dist/ReadOnlyText.cjs.js.map +1 -1
  47. package/dist/ReadOnlyText.es.js +3 -2
  48. package/dist/ReadOnlyText.es.js.map +1 -1
  49. package/dist/ReadOnlyTextV2.cjs.js +2 -1
  50. package/dist/ReadOnlyTextV2.cjs.js.map +1 -1
  51. package/dist/ReadOnlyTextV2.es.js +3 -2
  52. package/dist/ReadOnlyTextV2.es.js.map +1 -1
  53. package/dist/Root.cjs.js +2 -1
  54. package/dist/Root.cjs.js.map +1 -1
  55. package/dist/Root.es.js +3 -2
  56. package/dist/Root.es.js.map +1 -1
  57. package/dist/SocialLinks.cjs.js +2 -1
  58. package/dist/SocialLinks.cjs.js.map +1 -1
  59. package/dist/SocialLinks.es.js +3 -2
  60. package/dist/SocialLinks.es.js.map +1 -1
  61. package/dist/Video.cjs.js +1 -0
  62. package/dist/Video.cjs.js.map +1 -1
  63. package/dist/Video.es.js +2 -1
  64. package/dist/Video.es.js.map +1 -1
  65. package/dist/builder.cjs.js +1 -0
  66. package/dist/builder.cjs.js.map +1 -1
  67. package/dist/builder.es.js +1 -0
  68. package/dist/builder.es.js.map +1 -1
  69. package/dist/components.cjs.js +2 -1
  70. package/dist/components.cjs.js.map +1 -1
  71. package/dist/components.es.js +2 -1
  72. package/dist/components.es.js.map +1 -1
  73. package/dist/control-serialization.cjs.js +1 -0
  74. package/dist/control-serialization.cjs.js.map +1 -1
  75. package/dist/control-serialization.es.js +2 -1
  76. package/dist/control-serialization.es.js.map +1 -1
  77. package/dist/controls.cjs.js +14 -10
  78. package/dist/controls.cjs.js.map +1 -1
  79. package/dist/controls.es.js +3 -2
  80. package/dist/controls.es.js.map +1 -1
  81. package/dist/index.cjs.js +30 -10
  82. package/dist/index.cjs.js.map +1 -1
  83. package/dist/index.cjs2.js +1 -0
  84. package/dist/index.cjs2.js.map +1 -1
  85. package/dist/index.cjs8.js +2 -1
  86. package/dist/index.cjs8.js.map +1 -1
  87. package/dist/index.cjs9.js +2 -1
  88. package/dist/index.cjs9.js.map +1 -1
  89. package/dist/index.es.js +23 -3
  90. package/dist/index.es.js.map +1 -1
  91. package/dist/index.es2.js +2 -1
  92. package/dist/index.es2.js.map +1 -1
  93. package/dist/index.es4.js +1 -1
  94. package/dist/index.es5.js +1 -1
  95. package/dist/index.es6.js +1 -1
  96. package/dist/index.es8.js +3 -2
  97. package/dist/index.es8.js.map +1 -1
  98. package/dist/index.es9.js +3 -2
  99. package/dist/index.es9.js.map +1 -1
  100. package/dist/main.cjs.js +1 -0
  101. package/dist/main.cjs.js.map +1 -1
  102. package/dist/main.es.js +1 -0
  103. package/dist/main.es.js.map +1 -1
  104. package/dist/next.cjs.js +2 -1
  105. package/dist/next.cjs.js.map +1 -1
  106. package/dist/next.es.js +2 -1
  107. package/dist/next.es.js.map +1 -1
  108. package/dist/number.cjs.js +14 -0
  109. package/dist/number.cjs.js.map +1 -0
  110. package/dist/number.es.js +10 -0
  111. package/dist/number.es.js.map +1 -0
  112. package/dist/prop-controllers.cjs.js +3 -0
  113. package/dist/prop-controllers.cjs.js.map +1 -1
  114. package/dist/prop-controllers.es.js +2 -1
  115. package/dist/prop-controllers.es.js.map +1 -1
  116. package/dist/react-page.cjs.js +109 -28
  117. package/dist/react-page.cjs.js.map +1 -1
  118. package/dist/react-page.es.js +101 -30
  119. package/dist/react-page.es.js.map +1 -1
  120. package/dist/react.cjs.js +2 -1
  121. package/dist/react.cjs.js.map +1 -1
  122. package/dist/react.es.js +2 -1
  123. package/dist/react.es.js.map +1 -1
  124. package/dist/slate.cjs.js +2 -1
  125. package/dist/slate.cjs.js.map +1 -1
  126. package/dist/slate.es.js +3 -2
  127. package/dist/slate.es.js.map +1 -1
  128. package/dist/toText.cjs.js +1 -0
  129. package/dist/toText.cjs.js.map +1 -1
  130. package/dist/toText.es.js +2 -1
  131. package/dist/toText.es.js.map +1 -1
  132. package/dist/types/src/components/builtin/Image/Image.d.ts.map +1 -1
  133. package/dist/types/src/controls/control.d.ts +1 -0
  134. package/dist/types/src/controls/control.d.ts.map +1 -1
  135. package/dist/types/src/controls/list.d.ts +3 -0
  136. package/dist/types/src/controls/list.d.ts.map +1 -1
  137. package/dist/types/src/controls/shape.d.ts +3 -0
  138. package/dist/types/src/controls/shape.d.ts.map +1 -1
  139. package/dist/types/src/next/api-handler/handlers/translatable-data.d.ts +13 -0
  140. package/dist/types/src/next/api-handler/handlers/translatable-data.d.ts.map +1 -0
  141. package/dist/types/src/next/api-handler/index.d.ts +2 -1
  142. package/dist/types/src/next/api-handler/index.d.ts.map +1 -1
  143. package/dist/types/src/next/client.d.ts +2 -1
  144. package/dist/types/src/next/client.d.ts.map +1 -1
  145. package/dist/types/src/prop-controllers/copy/image.d.ts +2 -2
  146. package/dist/types/src/prop-controllers/copy/image.d.ts.map +1 -1
  147. package/dist/types/src/prop-controllers/copy/images.d.ts +2 -2
  148. package/dist/types/src/prop-controllers/copy/images.d.ts.map +1 -1
  149. package/dist/types/src/prop-controllers/descriptors.d.ts +32 -5
  150. package/dist/types/src/prop-controllers/descriptors.d.ts.map +1 -1
  151. package/dist/types/src/prop-controllers/index.d.ts +3 -1
  152. package/dist/types/src/prop-controllers/index.d.ts.map +1 -1
  153. package/dist/types/src/prop-controllers/introspection.d.ts.map +1 -1
  154. package/dist/types/src/runtimes/react/index.d.ts +2 -0
  155. package/dist/types/src/runtimes/react/index.d.ts.map +1 -1
  156. package/dist/types/src/state/react-page.d.ts +1 -0
  157. package/dist/types/src/state/react-page.d.ts.map +1 -1
  158. package/dist/types/types/locale.d.ts +1 -1
  159. package/package.json +2 -1
  160. package/dist/text-input.cjs.js +0 -26
  161. package/dist/text-input.cjs.js.map +0 -1
  162. package/dist/text-input.es.js +0 -18
  163. package/dist/text-input.es.js.map +0 -1
@@ -39,6 +39,7 @@ import { combineReducers, createStore, applyMiddleware } from "redux";
39
39
  import thunk from "redux-thunk";
40
40
  import { A as ActionTypes, n as localeStringSchema } from "./actions.es.js";
41
41
  import { findBreakpointOverride, reducer as reducer$a, getInitialState as getInitialState$9 } from "./state/breakpoints.es.js";
42
+ import { match, P } from "ts-pattern";
42
43
  import ipsum from "corporate-ipsum";
43
44
  import { Element, Range, Editor, Text, Path, Transforms, Node, Point } from "slate";
44
45
  import { v4 } from "uuid";
@@ -605,10 +606,10 @@ function Grid(options = {}) {
605
606
  return { type: Types.Grid, options };
606
607
  }
607
608
  function Image$1(options = {}) {
608
- return { type: Types.Image, options };
609
+ return { type: Types.Image, version: 1, options };
609
610
  }
610
611
  function Images(options = {}) {
611
- return { type: Types.Images, options };
612
+ return { type: Types.Images, version: 1, options };
612
613
  }
613
614
  function Link$1(options = {}) {
614
615
  return { type: Types.Link, options };
@@ -722,10 +723,10 @@ function TableFormFields(options = {}) {
722
723
  function Typeahead(options) {
723
724
  return { type: Types.Typeahead, options };
724
725
  }
725
- function TextArea(options = {}) {
726
+ function TextArea$1(options = {}) {
726
727
  return { type: Types.TextArea, options };
727
728
  }
728
- function TextInput(options = {}) {
729
+ function TextInput$1(options = {}) {
729
730
  return { type: Types.TextInput, options };
730
731
  }
731
732
  function TextStyle(options = {}) {
@@ -793,8 +794,8 @@ var descriptors = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
793
794
  Table,
794
795
  TableFormFields,
795
796
  Typeahead,
796
- TextArea,
797
- TextInput,
797
+ TextArea: TextArea$1,
798
+ TextInput: TextInput$1,
798
799
  TextStyle,
799
800
  Video,
800
801
  WidthPropControllerFormat,
@@ -1086,6 +1087,9 @@ function getListTypographyIds(definition2, value) {
1086
1087
  function getListPageIds(definition2, value) {
1087
1088
  return introspectListData(definition2, value, getPageIds);
1088
1089
  }
1090
+ function getListTranslatableData(definition2, data) {
1091
+ return Object.fromEntries(data.map((item) => [item.id, getTranslatableData(definition2.config.type, item.value)]));
1092
+ }
1089
1093
  const ShapeControlType = "makeswift::controls::shape";
1090
1094
  function Shape(config) {
1091
1095
  return { type: ShapeControlType, config };
@@ -1159,6 +1163,20 @@ function getShapePageIds(definition2, data) {
1159
1163
  function getShapeFileIds(definition2, data) {
1160
1164
  return introspectShapeData(definition2, data, getFileIds);
1161
1165
  }
1166
+ function getShapeTranslatableData(definition2, data) {
1167
+ return Object.fromEntries(Object.entries(definition2.config.type).map(([key, definition22]) => [
1168
+ key,
1169
+ getTranslatableData(definition22, data[key])
1170
+ ]));
1171
+ }
1172
+ const TextAreaControlType = "makeswift::controls::text-area";
1173
+ function TextArea(config = {}) {
1174
+ return { type: TextAreaControlType, config };
1175
+ }
1176
+ const TextInputControlType = "makeswift::controls::text-input";
1177
+ function TextInput(config = {}) {
1178
+ return { type: TextInputControlType, config };
1179
+ }
1162
1180
  const SlotControlType = "makeswift::controls::slot";
1163
1181
  function Slot() {
1164
1182
  return { type: SlotControlType };
@@ -1413,11 +1431,14 @@ if (import_meta.vitest) {
1413
1431
  });
1414
1432
  });
1415
1433
  }
1416
- function copy$9(value, context) {
1417
- var _a;
1418
- if (value == null)
1419
- return value;
1420
- return (_a = context.replacementContext.fileIds.get(value)) != null ? _a : value;
1434
+ function copy$9(descriptor, value, context) {
1435
+ return match([descriptor, value]).with([P.any, P.string], ([, v]) => {
1436
+ var _a;
1437
+ return (_a = context.replacementContext.fileIds.get(v)) != null ? _a : v;
1438
+ }).with([{ version: 1 }, { type: "makeswift-file", version: 1 }], ([, v]) => {
1439
+ var _a;
1440
+ return (_a = context.replacementContext.fileIds.get(v.id)) != null ? _a : v.id;
1441
+ }).otherwise(([, v]) => v);
1421
1442
  }
1422
1443
  if (import_meta.vitest) {
1423
1444
  const { describe, test, expect } = import_meta.vitest;
@@ -1437,26 +1458,30 @@ if (import_meta.vitest) {
1437
1458
  globalElementIds: /* @__PURE__ */ new Map(),
1438
1459
  globalElementData: /* @__PURE__ */ new Map()
1439
1460
  };
1440
- const result = copy$9(data, {
1441
- replacementContext,
1442
- copyElement: (node) => node
1461
+ const result = copy$9({ type: "Image", options: {} }, data, {
1462
+ replacementContext
1443
1463
  });
1444
1464
  expect(result).toMatchObject(expected);
1445
1465
  });
1446
1466
  });
1447
1467
  }
1448
- function copy$8(value, context) {
1468
+ function copy$8(descriptor, value, context) {
1449
1469
  if (value == null)
1450
1470
  return value;
1451
1471
  return value.map(copyImagesPanelItem);
1452
1472
  function copyImagesPanelItem(imagesPanelItem) {
1453
- var _a;
1454
1473
  const { file } = imagesPanelItem.props;
1455
1474
  if (file == null)
1456
1475
  return imagesPanelItem;
1457
1476
  return __spreadProps(__spreadValues({}, imagesPanelItem), {
1458
1477
  props: __spreadProps(__spreadValues({}, imagesPanelItem.props), {
1459
- file: (_a = context.replacementContext.fileIds.get(file)) != null ? _a : file
1478
+ file: match([descriptor, file]).with([P.any, P.string], ([, f]) => {
1479
+ var _a;
1480
+ return (_a = context.replacementContext.fileIds.get(f)) != null ? _a : f;
1481
+ }).with([{ version: 1 }, { type: "makeswift-file", version: 1 }], ([, f]) => {
1482
+ var _a;
1483
+ return (_a = context.replacementContext.fileIds.get(f.id)) != null ? _a : f.id;
1484
+ }).otherwise(([, f]) => f)
1460
1485
  })
1461
1486
  });
1462
1487
  }
@@ -1492,9 +1517,8 @@ if (import_meta.vitest) {
1492
1517
  globalElementIds: /* @__PURE__ */ new Map(),
1493
1518
  globalElementData: /* @__PURE__ */ new Map()
1494
1519
  };
1495
- const result = copy$8(data, {
1496
- replacementContext,
1497
- copyElement: (node) => node
1520
+ const result = copy$8({ type: "Images", options: {} }, data, {
1521
+ replacementContext
1498
1522
  });
1499
1523
  expect(result).toMatchObject(expected);
1500
1524
  });
@@ -1933,9 +1957,9 @@ function copy$1(descriptor, value, context) {
1933
1957
  case "Shadows":
1934
1958
  return copy$a(value, context);
1935
1959
  case "Image":
1936
- return copy$9(value, context);
1960
+ return copy$9(descriptor, value, context);
1937
1961
  case "Images":
1938
- return copy$8(value, context);
1962
+ return copy$8(descriptor, value, context);
1939
1963
  case "ResponsiveColor":
1940
1964
  return copy$7(value, context);
1941
1965
  case "TableFormFields":
@@ -2528,8 +2552,8 @@ const getValue$3 = (editor) => {
2528
2552
  if (!areAllRootsLinks)
2529
2553
  return void 0;
2530
2554
  const matchingValues = roots.map(([node]) => node).filter(isLinkElement);
2531
- const match = matchingValues.reduce((a, b) => deepEqual(a == null ? void 0 : a.link, b == null ? void 0 : b.link) ? b : null, (_a = matchingValues.at(0)) != null ? _a : void 0);
2532
- return match == null ? match : match.link;
2555
+ const match2 = matchingValues.reduce((a, b) => deepEqual(a == null ? void 0 : a.link, b == null ? void 0 : b.link) ? b : null, (_a = matchingValues.at(0)) != null ? _a : void 0);
2556
+ return match2 == null ? match2 : match2.link;
2533
2557
  };
2534
2558
  const onChange$1 = (editor, value) => {
2535
2559
  if (value == null)
@@ -2609,8 +2633,8 @@ const getValue$2 = (editor) => {
2609
2633
  if (!areAllRootsSupportedInlineTypesOrText)
2610
2634
  return void 0;
2611
2635
  const matchingValues = roots.filter(isSupportedInlineEntry).map(([node]) => node);
2612
- const match = matchingValues.reduce((a, b) => (a == null ? void 0 : a.type) === (b == null ? void 0 : b.type) ? b : null, (_a = matchingValues.at(0)) != null ? _a : void 0);
2613
- return match == null ? match : match.type;
2636
+ const match2 = matchingValues.reduce((a, b) => (a == null ? void 0 : a.type) === (b == null ? void 0 : b.type) ? b : null, (_a = matchingValues.at(0)) != null ? _a : void 0);
2637
+ return match2 == null ? match2 : match2.type;
2614
2638
  };
2615
2639
  const onChange = (editor, value) => {
2616
2640
  function unwrapAllSupportedTypes() {
@@ -3986,6 +4010,21 @@ function merge(definition2, a, b = a, context) {
3986
4010
  return b;
3987
4011
  }
3988
4012
  }
4013
+ function getTranslatableData(definition2, data) {
4014
+ switch (definition2.type) {
4015
+ case Types.TextInput:
4016
+ case Types.TextArea:
4017
+ case TextInputControlType:
4018
+ case TextAreaControlType:
4019
+ return data;
4020
+ case ListControlType:
4021
+ return getListTranslatableData(definition2, data);
4022
+ case ShapeControlType:
4023
+ return getShapeTranslatableData(definition2, data);
4024
+ default:
4025
+ return null;
4026
+ }
4027
+ }
3989
4028
  const StyleV2ControlType = "makeswift::controls::style-v2";
3990
4029
  const unstable_useStyleV2ClassName = useStyle;
3991
4030
  function unstable_StyleV2(config) {
@@ -4320,12 +4359,11 @@ function getFileIds(descriptor, prop) {
4320
4359
  case Types.Backgrounds:
4321
4360
  return getBackgroundsFileIds(prop);
4322
4361
  case Types.Image: {
4323
- const value = prop;
4324
- return value == null ? [] : [value];
4362
+ return match(prop).with(P.string, (v) => [v]).with({ type: "makeswift-file", version: 1 }, (v) => [v.id]).with({ type: "external-file", version: 1 }, () => []).exhaustive();
4325
4363
  }
4326
4364
  case Types.Images: {
4327
4365
  const value = prop;
4328
- return (_a = value == null ? void 0 : value.flatMap((item) => item.props.file == null ? [] : [item.props.file])) != null ? _a : [];
4366
+ return (_a = value == null ? void 0 : value.flatMap((item) => match(item.props.file).with(P.string, (f) => [f]).with({ type: "makeswift-file", version: 1 }, (f) => [f.id]).with({ type: "external-file", version: 1 }, () => []).with(P.nullish, () => []).otherwise(() => []))) != null ? _a : [];
4329
4367
  }
4330
4368
  case ImageControlType: {
4331
4369
  const value = prop;
@@ -4633,6 +4671,39 @@ function copyElementTree(state, elementTree, replacementContext) {
4633
4671
  const copy$12 = JSON.parse(JSON.stringify(elementTree));
4634
4672
  return copyElementTreeNode(state, createReplacementContext(replacementContext))(copy$12);
4635
4673
  }
4674
+ function* traverseElementTree(state, elementTree) {
4675
+ yield elementTree;
4676
+ if (isElementReference(elementTree))
4677
+ return;
4678
+ const descriptors2 = getComponentPropControllerDescriptors(state, elementTree.type);
4679
+ if (descriptors2 == null)
4680
+ return;
4681
+ for (const [propKey, descriptor] of Object.entries(descriptors2)) {
4682
+ const children = getElementChildren(descriptor, elementTree.props[propKey]);
4683
+ for (const child of children) {
4684
+ if (!isElementReference(child))
4685
+ yield* traverseElementTree(state, child);
4686
+ yield child;
4687
+ }
4688
+ }
4689
+ }
4690
+ function getElementTreeTranslatableData(state, elementTree) {
4691
+ const translatableData = {};
4692
+ for (const element of traverseElementTree(state, elementTree)) {
4693
+ if (isElementReference(element))
4694
+ continue;
4695
+ const descriptors2 = getComponentPropControllerDescriptors(state, element.type);
4696
+ if (descriptors2 == null)
4697
+ continue;
4698
+ Object.entries(descriptors2).forEach(([propName, descriptor]) => {
4699
+ const translatablePropData = getTranslatableData(descriptor, element.props[propName]);
4700
+ if (translatablePropData != null) {
4701
+ translatableData[`${element.key}:${propName}`] = translatablePropData;
4702
+ }
4703
+ });
4704
+ }
4705
+ return translatableData;
4706
+ }
4636
4707
  function getIsInBuilder(state) {
4637
4708
  return state.isInBuilder;
4638
4709
  }
@@ -4663,5 +4734,5 @@ function configureStore({
4663
4734
  locales: getInitialState(locales != null ? locales : preloadedState == null ? void 0 : preloadedState.locales)
4664
4735
  }), applyMiddleware(thunk));
4665
4736
  }
4666
- export { getBoxShadowsSwatchIds as $, ResponsiveLength as A, Backgrounds as B, ComponentIcon as C, Date as D, ElementID as E, Font as F, GapY as G, TextArea as H, Images as I, Table as J, TableFormFields as K, Link$1 as L, Margin as M, Number as N, Image$1 as O, Padding as P, ResponsiveOpacity as Q, RichTextPropControllerMessageType as R, Shadows as S, TableFormFieldsMessageType as T, NavigationLinks as U, SocialLinks as V, Width as W, RichText as X, Video as Y, useStyle as Z, getBorderSwatchIds as _, deepEqual as a, copyShapeData as a$, getResponsiveColorSwatchIds as a0, StyleControlProperty as a1, ImageControlValueFormat as a2, isPropControllersHandle as a3, isRichTextV1Data as a4, isNonNullable as a5, TypographyControlType as a6, StyleControlType as a7, RichTextV2ControlType as a8, RichTextControlType as a9, getBuilderEditMode as aA, getIsPreview as aB, getBackgroundsFileIds as aC, getBackgroundsSwatchIds as aD, Color as aE, copyColorData as aF, copy as aG, merge as aH, unstable_IconRadioGroupIcon as aI, unstable_IconRadioGroup as aJ, Image as aK, copyImageData as aL, Link as aM, copyLinkData as aN, List as aO, ListControlMessageType as aP, ListControl as aQ, copyListData as aR, getListElementChildren as aS, getListSwatchIds as aT, getListFileIds as aU, getListTypographyIds as aV, getListPageIds as aW, Select as aX, Shape as aY, ShapeControlMessageType as aZ, ShapeControl as a_, SlotControlType as aa, StyleV2ControlType as ab, ListControlType as ac, ShapeControlType as ad, LinkControlType as ae, ImageControlType as af, IconRadioGroupControlType as ag, ColorControlType as ah, SelectControlType as ai, getComponentPropControllerDescriptors as aj, getPropControllers as ak, Types as al, BorderPropControllerFormat as am, ShadowsPropControllerFormat as an, BorderRadiusPropControllerFormat as ao, MarginPropControllerFormat as ap, PaddingPropControllerFormat as aq, WidthPropControllerFormat as ar, configureStore as as, copyElementTree as at, getBreakpoints as au, parseLocalesInput as av, getDocument as aw, getElementId as ax, getIsInBuilder as ay, getReactComponent as az, createDocumentReference as b, BuilderEditMode as b$, getShapeElementChildren as b0, getShapeSwatchIds as b1, getShapeTypographyIds as b2, getShapePageIds as b3, getShapeFileIds as b4, Slot as b5, SlotControlMessageType as b6, SlotControl as b7, copySlotData as b8, mergeSlotData as b9, TYPOGRAPHY_KEY as bA, withTypography as bB, TypographyPlugin as bC, BlockActions as bD, ListActions as bE, onKeyDown as bF, withBlock as bG, BlockPlugin as bH, withInlineMode as bI, InlineModePlugin as bJ, withTextAlign as bK, TextAlignPlugin as bL, RootBlockType as bM, BlockType as bN, InlineType as bO, BlockTextAlignment as bP, withInline as bQ, InlinePlugin as bR, ElementUtils as bS, onChange$1 as bT, getValue$3 as bU, isLinkElement as bV, getInitialState$7 as bW, reducer$8 as bX, getDocument$1 as bY, getComponentsMeta as bZ, getComponentPropControllerDescriptors$1 as b_, Style as ba, StyleControlMessageType as bb, StyleControl as bc, copyStyleData as bd, unstable_useStyleV2ClassName as be, unstable_StyleV2 as bf, StyleV2ControlMessageType as bg, StyleV2Control as bh, copyRichTextData as bi, ObjectType as bj, RichTextControlMessageType as bk, RichTextControl as bl, richTextDTOtoSelection as bm, richTextDTOtoDAO as bn, toSelectionDTO as bo, richTextDAOToDTO as bp, RichTextV2Mode as bq, RichTextV2ControlMessageType as br, RichTextV2Control as bs, richTextV2DataToDescendents as bt, richTextV2DescendentsToData as bu, createRichTextV2Plugin as bv, unstable_Typography as bw, getTypographySwatchIds as bx, getTypographyTypographyIds as by, TypographyActions as bz, createDocument as c, getDocumentKeysSortedByDepth as c0, getPropController as c1, getPropControllersHandle as c2, getElement as c3, getElementPropControllerDescriptors as c4, createPropController as c5, reducer$7 as c6, reducer$9 as c7, reducer$6 as c8, reducer$5 as c9, reducer$4 as ca, reducer$3 as cb, reducer$2 as cc, reducer$1 as cd, getInitialState$2 as ce, descriptors as d, isElementReference as e, getDefaultLocale as f, getPropControllerDescriptors as g, getLocales as h, introspection as i, getSwatchIds as j, getFileIds as k, getTypographyIds as l, getTableIds as m, getPageIds as n, getElementChildren as o, ResponsiveIconRadioGroup as p, Border as q, BorderRadius as r, GapX as s, ResponsiveSelect as t, ResponsiveNumber as u, Checkbox as v, Grid as w, TextInput as x, ResponsiveColor as y, TextStyle as z };
4737
+ export { useStyle as $, ResponsiveColor as A, Backgrounds as B, ComponentIcon as C, TextStyle as D, ElementID as E, Date as F, GapY as G, Font as H, Images as I, ResponsiveLength as J, TextArea$1 as K, Link$1 as L, Margin as M, Number as N, Table as O, Padding as P, TableFormFields as Q, RichTextPropControllerMessageType as R, Shadows as S, TableFormFieldsMessageType as T, Image$1 as U, ResponsiveOpacity as V, Width as W, NavigationLinks as X, SocialLinks as Y, RichText as Z, Video as _, copy$9 as a, getListTypographyIds as a$, getBorderSwatchIds as a0, getBoxShadowsSwatchIds as a1, getResponsiveColorSwatchIds as a2, StyleControlProperty as a3, ImageControlValueFormat as a4, isPropControllersHandle as a5, isRichTextV1Data as a6, isNonNullable as a7, TypographyControlType as a8, StyleControlType as a9, parseLocalesInput as aA, getDocument as aB, getElementId as aC, getIsInBuilder as aD, getReactComponent as aE, getBuilderEditMode as aF, getIsPreview as aG, getBackgroundsFileIds as aH, getBackgroundsSwatchIds as aI, Color as aJ, copyColorData as aK, copy as aL, merge as aM, getTranslatableData as aN, unstable_IconRadioGroupIcon as aO, unstable_IconRadioGroup as aP, Image as aQ, copyImageData as aR, Link as aS, copyLinkData as aT, List as aU, ListControlMessageType as aV, ListControl as aW, copyListData as aX, getListElementChildren as aY, getListSwatchIds as aZ, getListFileIds as a_, RichTextV2ControlType as aa, RichTextControlType as ab, SlotControlType as ac, StyleV2ControlType as ad, ListControlType as ae, ShapeControlType as af, LinkControlType as ag, ImageControlType as ah, IconRadioGroupControlType as ai, ColorControlType as aj, SelectControlType as ak, TextAreaControlType as al, TextInputControlType as am, getComponentPropControllerDescriptors as an, getPropControllers as ao, Types as ap, BorderPropControllerFormat as aq, ShadowsPropControllerFormat as ar, BorderRadiusPropControllerFormat as as, MarginPropControllerFormat as at, PaddingPropControllerFormat as au, WidthPropControllerFormat as av, configureStore as aw, copyElementTree as ax, getBreakpoints as ay, getElementTreeTranslatableData as az, copy$8 as b, InlinePlugin as b$, getListPageIds as b0, getListTranslatableData as b1, Select as b2, Shape as b3, ShapeControlMessageType as b4, ShapeControl as b5, copyShapeData as b6, getShapeElementChildren as b7, getShapeSwatchIds as b8, getShapeTypographyIds as b9, RichTextV2Mode as bA, RichTextV2ControlMessageType as bB, RichTextV2Control as bC, richTextV2DataToDescendents as bD, richTextV2DescendentsToData as bE, createRichTextV2Plugin as bF, unstable_Typography as bG, getTypographySwatchIds as bH, getTypographyTypographyIds as bI, TypographyActions as bJ, TYPOGRAPHY_KEY as bK, withTypography as bL, TypographyPlugin as bM, BlockActions as bN, ListActions as bO, onKeyDown as bP, withBlock as bQ, BlockPlugin as bR, withInlineMode as bS, InlineModePlugin as bT, withTextAlign as bU, TextAlignPlugin as bV, RootBlockType as bW, BlockType as bX, InlineType as bY, BlockTextAlignment as bZ, withInline as b_, getShapePageIds as ba, getShapeFileIds as bb, getShapeTranslatableData as bc, Slot as bd, SlotControlMessageType as be, SlotControl as bf, copySlotData as bg, mergeSlotData as bh, Style as bi, StyleControlMessageType as bj, StyleControl as bk, copyStyleData as bl, unstable_useStyleV2ClassName as bm, unstable_StyleV2 as bn, StyleV2ControlMessageType as bo, StyleV2Control as bp, TextArea as bq, TextInput as br, copyRichTextData as bs, ObjectType as bt, RichTextControlMessageType as bu, RichTextControl as bv, richTextDTOtoSelection as bw, richTextDTOtoDAO as bx, toSelectionDTO as by, richTextDAOToDTO as bz, createDocument as c, ElementUtils as c0, onChange$1 as c1, getValue$3 as c2, isLinkElement as c3, getInitialState$7 as c4, reducer$8 as c5, getDocument$1 as c6, getComponentsMeta as c7, getComponentPropControllerDescriptors$1 as c8, BuilderEditMode as c9, getDocumentKeysSortedByDepth as ca, getPropController as cb, getPropControllersHandle as cc, getElement as cd, getElementPropControllerDescriptors as ce, createPropController as cf, reducer$7 as cg, reducer$9 as ch, reducer$6 as ci, reducer$5 as cj, reducer$4 as ck, reducer$3 as cl, reducer$2 as cm, reducer$1 as cn, getInitialState$2 as co, descriptors as d, deepEqual as e, createDocumentReference as f, getPropControllerDescriptors as g, isElementReference as h, introspection as i, getDefaultLocale as j, getLocales as k, getSwatchIds as l, getFileIds as m, getTypographyIds as n, getTableIds as o, getPageIds as p, getElementChildren as q, ResponsiveIconRadioGroup as r, Border as s, BorderRadius as t, GapX as u, ResponsiveSelect as v, ResponsiveNumber as w, Checkbox as x, Grid as y, TextInput$1 as z };
4667
4738
  //# sourceMappingURL=react-page.es.js.map