@makeswift/runtime 0.10.15 → 0.11.0
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 -0
- package/dist/Box.cjs.js.map +1 -1
- package/dist/Box.es.js +2 -1
- package/dist/Box.es.js.map +1 -1
- package/dist/Button.cjs.js +1 -0
- package/dist/Button.cjs.js.map +1 -1
- package/dist/Button.es.js +2 -1
- package/dist/Button.es.js.map +1 -1
- package/dist/Carousel.cjs.js +1 -0
- package/dist/Carousel.cjs.js.map +1 -1
- package/dist/Carousel.es.js +2 -1
- package/dist/Carousel.es.js.map +1 -1
- package/dist/Countdown.cjs.js +1 -0
- package/dist/Countdown.cjs.js.map +1 -1
- package/dist/Countdown.es.js +2 -1
- package/dist/Countdown.es.js.map +1 -1
- package/dist/Divider.cjs.js +1 -0
- package/dist/Divider.cjs.js.map +1 -1
- package/dist/Divider.es.js +2 -1
- 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 +1 -0
- package/dist/Form.cjs.js.map +1 -1
- package/dist/Form.es.js +2 -1
- package/dist/Form.es.js.map +1 -1
- package/dist/Image.cjs.js +1 -0
- package/dist/Image.cjs.js.map +1 -1
- package/dist/Image.es.js +2 -1
- package/dist/Image.es.js.map +1 -1
- package/dist/LiveProvider.cjs.js +1 -0
- package/dist/LiveProvider.cjs.js.map +1 -1
- package/dist/LiveProvider.es.js +2 -1
- package/dist/LiveProvider.es.js.map +1 -1
- package/dist/Navigation.cjs.js +1 -0
- package/dist/Navigation.cjs.js.map +1 -1
- package/dist/Navigation.es.js +2 -1
- package/dist/Navigation.es.js.map +1 -1
- package/dist/PreviewProvider.cjs.js +9 -11
- package/dist/PreviewProvider.cjs.js.map +1 -1
- package/dist/PreviewProvider.es.js +11 -13
- package/dist/PreviewProvider.es.js.map +1 -1
- package/dist/ReadOnlyText.cjs.js +1 -0
- package/dist/ReadOnlyText.cjs.js.map +1 -1
- package/dist/ReadOnlyText.es.js +2 -1
- package/dist/ReadOnlyText.es.js.map +1 -1
- package/dist/ReadOnlyTextV2.cjs.js +1 -0
- package/dist/ReadOnlyTextV2.cjs.js.map +1 -1
- package/dist/ReadOnlyTextV2.es.js +2 -1
- package/dist/ReadOnlyTextV2.es.js.map +1 -1
- package/dist/Root.cjs.js +1 -0
- package/dist/Root.cjs.js.map +1 -1
- package/dist/Root.es.js +2 -1
- package/dist/Root.es.js.map +1 -1
- package/dist/SocialLinks.cjs.js +1 -0
- package/dist/SocialLinks.cjs.js.map +1 -1
- package/dist/SocialLinks.es.js +2 -1
- 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/actions.cjs.js +8 -14
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +8 -12
- package/dist/actions.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 +1 -0
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +1 -0
- 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 +1 -0
- package/dist/controls.cjs.js.map +1 -1
- package/dist/controls.es.js +2 -1
- package/dist/controls.es.js.map +1 -1
- package/dist/index.cjs.js +19 -19
- 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 +1 -0
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs9.js +1 -0
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.es.js +21 -21
- 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 +2 -1
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es9.js +2 -1
- package/dist/index.es9.js.map +1 -1
- package/dist/main.cjs.js +2 -1
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +2 -1
- package/dist/main.es.js.map +1 -1
- package/dist/next.cjs.js +1 -0
- package/dist/next.cjs.js.map +1 -1
- package/dist/next.es.js +1 -0
- package/dist/next.es.js.map +1 -1
- package/dist/prop-controllers.cjs.js +1 -0
- package/dist/prop-controllers.cjs.js.map +1 -1
- package/dist/prop-controllers.es.js +1 -0
- package/dist/prop-controllers.es.js.map +1 -1
- package/dist/react-page.cjs.js +77 -92
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +69 -81
- package/dist/react-page.es.js.map +1 -1
- package/dist/react.cjs.js +1 -0
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.es.js +1 -0
- package/dist/react.es.js.map +1 -1
- package/dist/slate.cjs.js +1 -0
- package/dist/slate.cjs.js.map +1 -1
- package/dist/slate.es.js +2 -1
- 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/api/react.d.ts +4 -1
- package/dist/types/src/api/react.d.ts.map +1 -1
- package/dist/types/src/controls/control.d.ts.map +1 -1
- package/dist/types/src/controls/rich-text-v2/translatableData.d.ts +3 -0
- package/dist/types/src/controls/rich-text-v2/translatableData.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/next/client.d.ts +3 -2
- package/dist/types/src/next/client.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/index.d.ts +1 -3
- package/dist/types/src/runtimes/react/index.d.ts.map +1 -1
- package/dist/types/src/state/actions.d.ts +10 -14
- package/dist/types/src/state/actions.d.ts.map +1 -1
- package/dist/types/src/state/react-builder-preview.d.ts +1 -3
- package/dist/types/src/state/react-builder-preview.d.ts.map +1 -1
- package/dist/types/src/state/react-page.d.ts +1 -7
- package/dist/types/src/state/react-page.d.ts.map +1 -1
- package/dist/types/types/locale.d.ts +1 -1
- package/package.json +3 -1
- package/dist/types/src/state/modules/locales.d.ts +0 -15
- package/dist/types/src/state/modules/locales.d.ts.map +0 -1
package/dist/react-page.es.js
CHANGED
|
@@ -37,12 +37,13 @@ const import_meta = {};
|
|
|
37
37
|
var _c;
|
|
38
38
|
import { combineReducers, createStore, applyMiddleware } from "redux";
|
|
39
39
|
import thunk from "redux-thunk";
|
|
40
|
-
import { A as ActionTypes
|
|
41
|
-
import { findBreakpointOverride, reducer as reducer$
|
|
40
|
+
import { A as ActionTypes } from "./actions.es.js";
|
|
41
|
+
import { findBreakpointOverride, reducer as reducer$9, getInitialState as getInitialState$8 } from "./state/breakpoints.es.js";
|
|
42
42
|
import { match, P } from "ts-pattern";
|
|
43
43
|
import ipsum from "corporate-ipsum";
|
|
44
44
|
import { Element, Range, Editor, Text, Path, Transforms, Node, Point } from "slate";
|
|
45
45
|
import { v4 } from "uuid";
|
|
46
|
+
import escapeHtml from "escape-html";
|
|
46
47
|
import React__default from "react";
|
|
47
48
|
import { cache, cx } from "@emotion/css";
|
|
48
49
|
import { serializeStyles } from "@emotion/serialize";
|
|
@@ -73,7 +74,7 @@ const ComponentIcon = {
|
|
|
73
74
|
Users: "users",
|
|
74
75
|
Video: "video"
|
|
75
76
|
};
|
|
76
|
-
function getInitialState$
|
|
77
|
+
function getInitialState$7({
|
|
77
78
|
componentsMeta = /* @__PURE__ */ new Map()
|
|
78
79
|
} = {}) {
|
|
79
80
|
return componentsMeta;
|
|
@@ -81,7 +82,7 @@ function getInitialState$8({
|
|
|
81
82
|
function getComponentsMeta(state) {
|
|
82
83
|
return state;
|
|
83
84
|
}
|
|
84
|
-
function reducer$
|
|
85
|
+
function reducer$8(state = getInitialState$7(), action) {
|
|
85
86
|
switch (action.type) {
|
|
86
87
|
case ActionTypes.REGISTER_COMPONENT:
|
|
87
88
|
return new Map(state).set(action.payload.type, action.payload.meta);
|
|
@@ -103,7 +104,7 @@ function createDocumentReference(key) {
|
|
|
103
104
|
function createDocument(key, rootElement) {
|
|
104
105
|
return { key, rootElement };
|
|
105
106
|
}
|
|
106
|
-
function getInitialState$
|
|
107
|
+
function getInitialState$6({
|
|
107
108
|
rootElements = /* @__PURE__ */ new Map()
|
|
108
109
|
} = {}) {
|
|
109
110
|
const initialState = /* @__PURE__ */ new Map();
|
|
@@ -119,7 +120,7 @@ function getDocument$1(state, documentKey) {
|
|
|
119
120
|
var _a;
|
|
120
121
|
return (_a = getDocuments(state).get(documentKey)) != null ? _a : null;
|
|
121
122
|
}
|
|
122
|
-
function reducer$
|
|
123
|
+
function reducer$7(state = getInitialState$6(), action) {
|
|
123
124
|
switch (action.type) {
|
|
124
125
|
case ActionTypes.REGISTER_DOCUMENT:
|
|
125
126
|
return new Map(state).set(action.payload.documentKey, action.payload.document);
|
|
@@ -132,7 +133,7 @@ function reducer$8(state = getInitialState$7(), action) {
|
|
|
132
133
|
return state;
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
|
-
function getInitialState$
|
|
136
|
+
function getInitialState$5({
|
|
136
137
|
reactComponents = /* @__PURE__ */ new Map()
|
|
137
138
|
} = {}) {
|
|
138
139
|
return reactComponents;
|
|
@@ -144,7 +145,7 @@ function getReactComponent$1(state, type) {
|
|
|
144
145
|
var _a;
|
|
145
146
|
return (_a = getReactComponents(state).get(type)) != null ? _a : null;
|
|
146
147
|
}
|
|
147
|
-
function reducer$
|
|
148
|
+
function reducer$6(state = getInitialState$5(), action) {
|
|
148
149
|
switch (action.type) {
|
|
149
150
|
case ActionTypes.REGISTER_REACT_COMPONENT:
|
|
150
151
|
return new Map(state).set(action.payload.type, action.payload.component);
|
|
@@ -157,7 +158,7 @@ function reducer$7(state = getInitialState$6(), action) {
|
|
|
157
158
|
return state;
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
|
-
function getInitialState$
|
|
161
|
+
function getInitialState$4({
|
|
161
162
|
propControllerDescriptors = /* @__PURE__ */ new Map()
|
|
162
163
|
} = {}) {
|
|
163
164
|
return propControllerDescriptors;
|
|
@@ -169,7 +170,7 @@ function getComponentPropControllerDescriptors$1(state, componentType) {
|
|
|
169
170
|
var _a;
|
|
170
171
|
return (_a = getPropControllerDescriptors$1(state).get(componentType)) != null ? _a : null;
|
|
171
172
|
}
|
|
172
|
-
function reducer$
|
|
173
|
+
function reducer$5(state = getInitialState$4(), action) {
|
|
173
174
|
switch (action.type) {
|
|
174
175
|
case ActionTypes.REGISTER_COMPONENT:
|
|
175
176
|
return new Map(state).set(action.payload.type, action.payload.propControllerDescriptors);
|
|
@@ -188,7 +189,7 @@ function isPropControllersHandle(value) {
|
|
|
188
189
|
}
|
|
189
190
|
return false;
|
|
190
191
|
}
|
|
191
|
-
function getInitialState$
|
|
192
|
+
function getInitialState$3() {
|
|
192
193
|
return { handles: /* @__PURE__ */ new Map(), instances: /* @__PURE__ */ new Map() };
|
|
193
194
|
}
|
|
194
195
|
function getPropControllersHandle(state, documentKey, elementKey) {
|
|
@@ -203,7 +204,7 @@ function getPropController(state, documentKey, elementKey, propName) {
|
|
|
203
204
|
var _a, _b;
|
|
204
205
|
return (_b = (_a = getPropControllers$1(state, documentKey, elementKey)) == null ? void 0 : _a[propName]) != null ? _b : null;
|
|
205
206
|
}
|
|
206
|
-
function reducer$
|
|
207
|
+
function reducer$4(state = getInitialState$3(), action) {
|
|
207
208
|
var _a, _b, _c2, _d;
|
|
208
209
|
switch (action.type) {
|
|
209
210
|
case ActionTypes.REGISTER_PROP_CONTROLLERS_HANDLE: {
|
|
@@ -234,10 +235,10 @@ function reducer$5(state = getInitialState$4(), action) {
|
|
|
234
235
|
return state;
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
|
-
function getInitialState$
|
|
238
|
+
function getInitialState$2() {
|
|
238
239
|
return false;
|
|
239
240
|
}
|
|
240
|
-
function reducer$
|
|
241
|
+
function reducer$3(state = getInitialState$2(), action) {
|
|
241
242
|
switch (action.type) {
|
|
242
243
|
case ActionTypes.SET_IS_IN_BUILDER:
|
|
243
244
|
return action.payload;
|
|
@@ -245,13 +246,13 @@ function reducer$4(state = getInitialState$3(), action) {
|
|
|
245
246
|
return state;
|
|
246
247
|
}
|
|
247
248
|
}
|
|
248
|
-
function getInitialState$
|
|
249
|
+
function getInitialState$1(isPreview = false) {
|
|
249
250
|
return isPreview;
|
|
250
251
|
}
|
|
251
252
|
function getIsPreview$1(state) {
|
|
252
253
|
return state;
|
|
253
254
|
}
|
|
254
|
-
function reducer$
|
|
255
|
+
function reducer$2(state = getInitialState$1(), action) {
|
|
255
256
|
switch (action.type) {
|
|
256
257
|
default:
|
|
257
258
|
return state;
|
|
@@ -262,10 +263,10 @@ const BuilderEditMode = {
|
|
|
262
263
|
CONTENT: "content",
|
|
263
264
|
INTERACT: "interact"
|
|
264
265
|
};
|
|
265
|
-
function getInitialState
|
|
266
|
+
function getInitialState() {
|
|
266
267
|
return null;
|
|
267
268
|
}
|
|
268
|
-
function reducer$
|
|
269
|
+
function reducer$1(state = getInitialState(), action) {
|
|
269
270
|
switch (action.type) {
|
|
270
271
|
case ActionTypes.SET_BUILDER_EDIT_MODE:
|
|
271
272
|
return action.payload.editMode;
|
|
@@ -273,47 +274,6 @@ function reducer$2(state = getInitialState$1(), action) {
|
|
|
273
274
|
return state;
|
|
274
275
|
}
|
|
275
276
|
}
|
|
276
|
-
function getInitialState(initialState) {
|
|
277
|
-
var _a, _b, _c2;
|
|
278
|
-
return {
|
|
279
|
-
locales: (_a = initialState == null ? void 0 : initialState.locales) != null ? _a : [],
|
|
280
|
-
locale: (_b = initialState == null ? void 0 : initialState.locale) != null ? _b : null,
|
|
281
|
-
defaultLocale: (_c2 = initialState == null ? void 0 : initialState.defaultLocale) != null ? _c2 : null
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
function reducer$1(state = getInitialState(), action) {
|
|
285
|
-
switch (action.type) {
|
|
286
|
-
case ActionTypes.SET_LOCALES: {
|
|
287
|
-
const locales = action.payload.locales;
|
|
288
|
-
return __spreadProps(__spreadValues({}, state), { locales });
|
|
289
|
-
}
|
|
290
|
-
case ActionTypes.SET_LOCALE: {
|
|
291
|
-
if (action.payload.locale === state.locale)
|
|
292
|
-
return state;
|
|
293
|
-
return __spreadProps(__spreadValues({}, state), { locale: action.payload.locale });
|
|
294
|
-
}
|
|
295
|
-
case ActionTypes.SET_DEFAULT_LOCALE: {
|
|
296
|
-
if (action.payload.defaultLocale === state.defaultLocale)
|
|
297
|
-
return state;
|
|
298
|
-
return __spreadProps(__spreadValues({}, state), { defaultLocale: action.payload.defaultLocale });
|
|
299
|
-
}
|
|
300
|
-
default:
|
|
301
|
-
return state;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
function parseLocalesInput(input) {
|
|
305
|
-
if (input.locales == null) {
|
|
306
|
-
throw new Error(`Locales cannot be null or undefined. Please provide the locales array.`);
|
|
307
|
-
}
|
|
308
|
-
if (input.locales.includes(input.defaultLocale) === false) {
|
|
309
|
-
throw new Error(`Default locale "${input.defaultLocale}" is not included in locales: ${input.locales}. Please add the default locale to the locales array.`);
|
|
310
|
-
}
|
|
311
|
-
return {
|
|
312
|
-
locales: input.locales.map((locale) => localeStringSchema.parse(locale)),
|
|
313
|
-
defaultLocale: localeStringSchema.parse(input.defaultLocale),
|
|
314
|
-
locale: null
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
277
|
const ColorControlType = "makeswift::controls::color";
|
|
318
278
|
function Color(config = {}) {
|
|
319
279
|
return { type: ColorControlType, config };
|
|
@@ -3979,6 +3939,41 @@ function copyRichTextV2Data(data, context) {
|
|
|
3979
3939
|
});
|
|
3980
3940
|
}
|
|
3981
3941
|
}
|
|
3942
|
+
function hashTranslationString(s) {
|
|
3943
|
+
let hash = 0;
|
|
3944
|
+
for (let i = 0, len = s.length; i < len; i++) {
|
|
3945
|
+
let chr = s.charCodeAt(i);
|
|
3946
|
+
hash = (hash << 5) - hash + chr;
|
|
3947
|
+
hash |= 0;
|
|
3948
|
+
}
|
|
3949
|
+
return hash.toString();
|
|
3950
|
+
}
|
|
3951
|
+
function getRichTextV2TranslatableDescendant(definition2, descendant) {
|
|
3952
|
+
if (Text.isText(descendant)) {
|
|
3953
|
+
let string = escapeHtml(descendant.text);
|
|
3954
|
+
return string;
|
|
3955
|
+
}
|
|
3956
|
+
const children = descendant.children.map((child) => getRichTextV2TranslatableDescendant(definition2, child)).join("");
|
|
3957
|
+
switch (descendant.type) {
|
|
3958
|
+
case InlineType.Link:
|
|
3959
|
+
return `<a>${children}</a>`;
|
|
3960
|
+
case InlineType.Link:
|
|
3961
|
+
return `<sup>${children}</sup>`;
|
|
3962
|
+
case InlineType.Link:
|
|
3963
|
+
return `<sub>${children}</sub>`;
|
|
3964
|
+
case InlineType.Link:
|
|
3965
|
+
return `<code>${children}</code>`;
|
|
3966
|
+
default:
|
|
3967
|
+
return children;
|
|
3968
|
+
}
|
|
3969
|
+
}
|
|
3970
|
+
function getRichTextV2TranslatableData(definition2, data) {
|
|
3971
|
+
return data.descendants.reduce((acc, descendant) => {
|
|
3972
|
+
const value = getRichTextV2TranslatableDescendant(definition2, descendant);
|
|
3973
|
+
const key = hashTranslationString(value);
|
|
3974
|
+
return __spreadProps(__spreadValues({}, acc), { [key]: value });
|
|
3975
|
+
}, {});
|
|
3976
|
+
}
|
|
3982
3977
|
function copy(definition2, value, context) {
|
|
3983
3978
|
switch (definition2.type) {
|
|
3984
3979
|
case Types.Backgrounds:
|
|
@@ -4032,6 +4027,8 @@ function getTranslatableData(definition2, data) {
|
|
|
4032
4027
|
case TextInputControlType:
|
|
4033
4028
|
case TextAreaControlType:
|
|
4034
4029
|
return data;
|
|
4030
|
+
case RichTextV2ControlType:
|
|
4031
|
+
return getRichTextV2TranslatableData(definition2, data);
|
|
4035
4032
|
case ListControlType:
|
|
4036
4033
|
return getListTranslatableData(definition2, data);
|
|
4037
4034
|
case ShapeControlType:
|
|
@@ -4543,16 +4540,15 @@ var introspection = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4543
4540
|
getPageIds
|
|
4544
4541
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4545
4542
|
const reducer = combineReducers({
|
|
4546
|
-
documents: reducer$
|
|
4547
|
-
reactComponents: reducer$
|
|
4548
|
-
componentsMeta: reducer$
|
|
4549
|
-
propControllers: reducer$
|
|
4550
|
-
propControllerHandles: reducer$
|
|
4551
|
-
isInBuilder: reducer$
|
|
4552
|
-
isPreview: reducer$
|
|
4553
|
-
builderEditMode: reducer$
|
|
4554
|
-
breakpoints: reducer$
|
|
4555
|
-
locales: reducer$1
|
|
4543
|
+
documents: reducer$7,
|
|
4544
|
+
reactComponents: reducer$6,
|
|
4545
|
+
componentsMeta: reducer$8,
|
|
4546
|
+
propControllers: reducer$5,
|
|
4547
|
+
propControllerHandles: reducer$4,
|
|
4548
|
+
isInBuilder: reducer$3,
|
|
4549
|
+
isPreview: reducer$2,
|
|
4550
|
+
builderEditMode: reducer$1,
|
|
4551
|
+
breakpoints: reducer$9
|
|
4556
4552
|
});
|
|
4557
4553
|
function getDocumentsStateSlice(state) {
|
|
4558
4554
|
return state.documents;
|
|
@@ -4728,23 +4724,15 @@ function getBuilderEditMode(state) {
|
|
|
4728
4724
|
function getBreakpoints(state) {
|
|
4729
4725
|
return state.breakpoints;
|
|
4730
4726
|
}
|
|
4731
|
-
function getLocales(state) {
|
|
4732
|
-
return state.locales.locales.map((locale) => new Intl.Locale(locale));
|
|
4733
|
-
}
|
|
4734
|
-
function getDefaultLocale(state) {
|
|
4735
|
-
return state.locales.defaultLocale ? new Intl.Locale(state.locales.defaultLocale) : null;
|
|
4736
|
-
}
|
|
4737
4727
|
function configureStore({
|
|
4738
4728
|
rootElements,
|
|
4739
4729
|
preloadedState,
|
|
4740
|
-
breakpoints
|
|
4741
|
-
locales
|
|
4730
|
+
breakpoints
|
|
4742
4731
|
} = {}) {
|
|
4743
4732
|
return createStore(reducer, __spreadProps(__spreadValues({}, preloadedState), {
|
|
4744
|
-
documents: getInitialState$
|
|
4745
|
-
breakpoints: getInitialState$
|
|
4746
|
-
locales: getInitialState(locales != null ? locales : preloadedState == null ? void 0 : preloadedState.locales)
|
|
4733
|
+
documents: getInitialState$6({ rootElements }),
|
|
4734
|
+
breakpoints: getInitialState$8(breakpoints != null ? breakpoints : preloadedState == null ? void 0 : preloadedState.breakpoints)
|
|
4747
4735
|
}), applyMiddleware(thunk));
|
|
4748
4736
|
}
|
|
4749
|
-
export {
|
|
4737
|
+
export { getBorderSwatchIds as $, TextStyle as A, Backgrounds as B, ComponentIcon as C, Date as D, ElementID as E, Font as F, GapY as G, ResponsiveLength as H, Images as I, TextArea$1 as J, Table as K, Link$1 as L, Margin as M, Number as N, TableFormFields as O, Padding as P, Image$1 as Q, RichTextPropControllerMessageType as R, Shadows as S, TableFormFieldsMessageType as T, ResponsiveOpacity as U, NavigationLinks as V, Width as W, SocialLinks as X, RichText as Y, Video as Z, useStyle as _, copy$9 as a, getListTranslatableData as a$, getBoxShadowsSwatchIds as a0, getResponsiveColorSwatchIds as a1, StyleControlProperty as a2, ImageControlValueFormat as a3, isPropControllersHandle as a4, isRichTextV1Data as a5, isNonNullable as a6, TypographyControlType as a7, StyleControlType as a8, RichTextV2ControlType as a9, getElementId as aA, getIsInBuilder as aB, getReactComponent as aC, getBuilderEditMode as aD, getIsPreview as aE, getBackgroundsFileIds as aF, getBackgroundsSwatchIds as aG, Color as aH, copyColorData as aI, copy as aJ, merge as aK, getTranslatableData as aL, unstable_IconRadioGroupIcon as aM, unstable_IconRadioGroup as aN, Image as aO, copyImageData as aP, Link as aQ, copyLinkData as aR, List as aS, ListControlMessageType as aT, ListControl as aU, copyListData as aV, getListElementChildren as aW, getListSwatchIds as aX, getListFileIds as aY, getListTypographyIds as aZ, getListPageIds as a_, RichTextControlType as aa, SlotControlType as ab, StyleV2ControlType as ac, ListControlType as ad, ShapeControlType as ae, LinkControlType as af, ImageControlType as ag, IconRadioGroupControlType as ah, ColorControlType as ai, SelectControlType as aj, TextAreaControlType as ak, TextInputControlType as al, getComponentPropControllerDescriptors as am, getPropControllers as an, Types as ao, BorderPropControllerFormat as ap, ShadowsPropControllerFormat as aq, BorderRadiusPropControllerFormat as ar, MarginPropControllerFormat as as, PaddingPropControllerFormat as at, WidthPropControllerFormat as au, configureStore as av, copyElementTree as aw, getBreakpoints as ax, getElementTreeTranslatableData as ay, getDocument as az, copy$8 as b, onChange$1 as b$, Select as b0, Shape as b1, ShapeControlMessageType as b2, ShapeControl as b3, copyShapeData as b4, getShapeElementChildren as b5, getShapeSwatchIds as b6, getShapeTypographyIds as b7, getShapePageIds as b8, getShapeFileIds as b9, RichTextV2Control as bA, richTextV2DataToDescendents as bB, richTextV2DescendentsToData as bC, createRichTextV2Plugin as bD, unstable_Typography as bE, getTypographySwatchIds as bF, getTypographyTypographyIds as bG, TypographyActions as bH, TYPOGRAPHY_KEY as bI, withTypography as bJ, TypographyPlugin as bK, BlockActions as bL, ListActions as bM, onKeyDown as bN, withBlock as bO, BlockPlugin as bP, withInlineMode as bQ, InlineModePlugin as bR, withTextAlign as bS, TextAlignPlugin as bT, RootBlockType as bU, BlockType as bV, InlineType as bW, BlockTextAlignment as bX, withInline as bY, InlinePlugin as bZ, ElementUtils as b_, getShapeTranslatableData as ba, Slot as bb, SlotControlMessageType as bc, SlotControl as bd, copySlotData as be, mergeSlotData as bf, Style as bg, StyleControlMessageType as bh, StyleControl as bi, copyStyleData as bj, unstable_useStyleV2ClassName as bk, unstable_StyleV2 as bl, StyleV2ControlMessageType as bm, StyleV2Control as bn, TextArea as bo, TextInput as bp, copyRichTextData as bq, ObjectType as br, RichTextControlMessageType as bs, RichTextControl as bt, richTextDTOtoSelection as bu, richTextDTOtoDAO as bv, toSelectionDTO as bw, richTextDAOToDTO as bx, RichTextV2Mode as by, RichTextV2ControlMessageType as bz, createDocument as c, getValue$3 as c0, isLinkElement as c1, getInitialState$6 as c2, reducer$7 as c3, getDocument$1 as c4, getComponentsMeta as c5, getComponentPropControllerDescriptors$1 as c6, BuilderEditMode as c7, getDocumentKeysSortedByDepth as c8, getPropController as c9, getPropControllersHandle as ca, getElement as cb, getElementPropControllerDescriptors as cc, createPropController as cd, reducer$6 as ce, reducer$8 as cf, reducer$5 as cg, reducer$4 as ch, reducer$3 as ci, reducer$2 as cj, reducer$1 as ck, getInitialState$1 as cl, descriptors as d, copy$e as e, deepEqual as f, createDocumentReference as g, getPropControllerDescriptors as h, introspection as i, isElementReference as j, getSwatchIds as k, getFileIds as l, getTypographyIds as m, getTableIds as n, getPageIds as o, getElementChildren as p, ResponsiveIconRadioGroup as q, Border as r, BorderRadius as s, GapX as t, ResponsiveSelect as u, ResponsiveNumber as v, Checkbox as w, Grid as x, TextInput$1 as y, ResponsiveColor as z };
|
|
4750
4738
|
//# sourceMappingURL=react-page.es.js.map
|