@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.
- package/dist/Box.cjs.js +2 -1
- package/dist/Box.cjs.js.map +1 -1
- package/dist/Box.es.js +3 -2
- package/dist/Box.es.js.map +1 -1
- package/dist/Button.cjs.js +2 -1
- package/dist/Button.cjs.js.map +1 -1
- package/dist/Button.es.js +3 -2
- package/dist/Button.es.js.map +1 -1
- package/dist/Carousel.cjs.js +2 -1
- package/dist/Carousel.cjs.js.map +1 -1
- package/dist/Carousel.es.js +3 -2
- package/dist/Carousel.es.js.map +1 -1
- package/dist/Countdown.cjs.js +2 -1
- package/dist/Countdown.cjs.js.map +1 -1
- package/dist/Countdown.es.js +3 -2
- package/dist/Countdown.es.js.map +1 -1
- package/dist/Divider.cjs.js +2 -1
- package/dist/Divider.cjs.js.map +1 -1
- package/dist/Divider.es.js +3 -2
- package/dist/Divider.es.js.map +1 -1
- package/dist/Embed.cjs.js +1 -0
- package/dist/Embed.cjs.js.map +1 -1
- package/dist/Embed.es.js +2 -1
- package/dist/Embed.es.js.map +1 -1
- package/dist/Form.cjs.js +2 -1
- package/dist/Form.cjs.js.map +1 -1
- package/dist/Form.es.js +3 -2
- package/dist/Form.es.js.map +1 -1
- package/dist/Image.cjs.js +20 -4
- package/dist/Image.cjs.js.map +1 -1
- package/dist/Image.es.js +21 -5
- package/dist/Image.es.js.map +1 -1
- package/dist/LiveProvider.cjs.js +2 -1
- package/dist/LiveProvider.cjs.js.map +1 -1
- package/dist/LiveProvider.es.js +3 -2
- package/dist/LiveProvider.es.js.map +1 -1
- package/dist/Navigation.cjs.js +2 -1
- package/dist/Navigation.cjs.js.map +1 -1
- package/dist/Navigation.es.js +3 -2
- package/dist/Navigation.es.js.map +1 -1
- package/dist/PreviewProvider.cjs.js +2 -1
- package/dist/PreviewProvider.cjs.js.map +1 -1
- package/dist/PreviewProvider.es.js +3 -2
- package/dist/PreviewProvider.es.js.map +1 -1
- package/dist/ReadOnlyText.cjs.js +2 -1
- package/dist/ReadOnlyText.cjs.js.map +1 -1
- package/dist/ReadOnlyText.es.js +3 -2
- package/dist/ReadOnlyText.es.js.map +1 -1
- package/dist/ReadOnlyTextV2.cjs.js +2 -1
- package/dist/ReadOnlyTextV2.cjs.js.map +1 -1
- package/dist/ReadOnlyTextV2.es.js +3 -2
- package/dist/ReadOnlyTextV2.es.js.map +1 -1
- package/dist/Root.cjs.js +2 -1
- package/dist/Root.cjs.js.map +1 -1
- package/dist/Root.es.js +3 -2
- package/dist/Root.es.js.map +1 -1
- package/dist/SocialLinks.cjs.js +2 -1
- package/dist/SocialLinks.cjs.js.map +1 -1
- package/dist/SocialLinks.es.js +3 -2
- package/dist/SocialLinks.es.js.map +1 -1
- package/dist/Video.cjs.js +1 -0
- package/dist/Video.cjs.js.map +1 -1
- package/dist/Video.es.js +2 -1
- package/dist/Video.es.js.map +1 -1
- package/dist/builder.cjs.js +1 -0
- package/dist/builder.cjs.js.map +1 -1
- package/dist/builder.es.js +1 -0
- package/dist/builder.es.js.map +1 -1
- package/dist/components.cjs.js +2 -1
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +2 -1
- package/dist/components.es.js.map +1 -1
- package/dist/control-serialization.cjs.js +1 -0
- package/dist/control-serialization.cjs.js.map +1 -1
- package/dist/control-serialization.es.js +2 -1
- package/dist/control-serialization.es.js.map +1 -1
- package/dist/controls.cjs.js +14 -10
- package/dist/controls.cjs.js.map +1 -1
- package/dist/controls.es.js +3 -2
- package/dist/controls.es.js.map +1 -1
- package/dist/index.cjs.js +30 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs2.js +1 -0
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs8.js +2 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs9.js +2 -1
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.es.js +23 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +2 -1
- 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 +3 -2
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es9.js +3 -2
- package/dist/index.es9.js.map +1 -1
- package/dist/main.cjs.js +1 -0
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +1 -0
- package/dist/main.es.js.map +1 -1
- package/dist/next.cjs.js +2 -1
- package/dist/next.cjs.js.map +1 -1
- package/dist/next.es.js +2 -1
- package/dist/next.es.js.map +1 -1
- package/dist/number.cjs.js +14 -0
- package/dist/number.cjs.js.map +1 -0
- package/dist/number.es.js +10 -0
- package/dist/number.es.js.map +1 -0
- package/dist/prop-controllers.cjs.js +3 -0
- package/dist/prop-controllers.cjs.js.map +1 -1
- package/dist/prop-controllers.es.js +2 -1
- package/dist/prop-controllers.es.js.map +1 -1
- package/dist/react-page.cjs.js +109 -28
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +101 -30
- package/dist/react-page.es.js.map +1 -1
- package/dist/react.cjs.js +2 -1
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.es.js +2 -1
- package/dist/react.es.js.map +1 -1
- package/dist/slate.cjs.js +2 -1
- package/dist/slate.cjs.js.map +1 -1
- package/dist/slate.es.js +3 -2
- package/dist/slate.es.js.map +1 -1
- package/dist/toText.cjs.js +1 -0
- package/dist/toText.cjs.js.map +1 -1
- package/dist/toText.es.js +2 -1
- package/dist/toText.es.js.map +1 -1
- package/dist/types/src/components/builtin/Image/Image.d.ts.map +1 -1
- package/dist/types/src/controls/control.d.ts +1 -0
- package/dist/types/src/controls/control.d.ts.map +1 -1
- package/dist/types/src/controls/list.d.ts +3 -0
- package/dist/types/src/controls/list.d.ts.map +1 -1
- package/dist/types/src/controls/shape.d.ts +3 -0
- package/dist/types/src/controls/shape.d.ts.map +1 -1
- package/dist/types/src/next/api-handler/handlers/translatable-data.d.ts +13 -0
- package/dist/types/src/next/api-handler/handlers/translatable-data.d.ts.map +1 -0
- package/dist/types/src/next/api-handler/index.d.ts +2 -1
- package/dist/types/src/next/api-handler/index.d.ts.map +1 -1
- package/dist/types/src/next/client.d.ts +2 -1
- package/dist/types/src/next/client.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/copy/image.d.ts +2 -2
- package/dist/types/src/prop-controllers/copy/image.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/copy/images.d.ts +2 -2
- package/dist/types/src/prop-controllers/copy/images.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/descriptors.d.ts +32 -5
- package/dist/types/src/prop-controllers/descriptors.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/index.d.ts +3 -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/index.d.ts +2 -0
- package/dist/types/src/runtimes/react/index.d.ts.map +1 -1
- package/dist/types/src/state/react-page.d.ts +1 -0
- package/dist/types/src/state/react-page.d.ts.map +1 -1
- package/dist/types/types/locale.d.ts +1 -1
- package/package.json +2 -1
- package/dist/text-input.cjs.js +0 -26
- package/dist/text-input.cjs.js.map +0 -1
- package/dist/text-input.es.js +0 -18
- package/dist/text-input.es.js.map +0 -1
package/dist/react-page.es.js
CHANGED
|
@@ -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
|
-
|
|
1418
|
-
|
|
1419
|
-
return
|
|
1420
|
-
|
|
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: (
|
|
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
|
|
2532
|
-
return
|
|
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
|
|
2613
|
-
return
|
|
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
|
-
|
|
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
|
|
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 {
|
|
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
|