@builder.io/sdk-react-native 0.1.3 → 0.1.5
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/blocks/columns/columns.js +4 -4
- package/dist/blocks/form/form.js +6 -6
- package/dist/blocks/symbol/symbol.js +2 -2
- package/dist/components/render-block/block-styles.js +2 -2
- package/dist/components/render-block/render-block.js +25 -7
- package/dist/components/render-block/render-component.js +4 -4
- package/dist/components/render-block/render-repeated-block.js +3 -2
- package/dist/components/render-blocks.js +4 -4
- package/dist/components/render-content/components/render-styles.helpers.js +55 -0
- package/dist/components/render-content/components/render-styles.js +14 -58
- package/dist/components/render-content/index.js +2 -2
- package/dist/components/render-content/render-content.helpers.js +42 -0
- package/dist/components/render-content/render-content.js +72 -73
- package/dist/components/render-content/render-content.types.js +1 -0
- package/dist/components/render-inlined-styles.js +2 -2
- package/dist/constants/builder-registered-components.js +14 -14
- package/dist/context/builder.context.js +2 -0
- package/dist/index-helpers/blocks-exports.js +16 -16
- package/dist/types/input.js +1 -0
- package/package.json +1 -1
- package/src/blocks/columns/columns.jsx +2 -2
- package/src/blocks/form/form.jsx +2 -2
- package/src/blocks/symbol/symbol.jsx +1 -1
- package/src/components/render-block/block-styles.jsx +1 -1
- package/src/components/render-block/render-block.jsx +25 -4
- package/src/components/render-block/render-component.jsx +2 -2
- package/src/components/render-block/render-repeated-block.jsx +2 -1
- package/src/components/render-blocks.jsx +2 -2
- package/src/components/render-content/components/render-styles.helpers.js +57 -0
- package/src/components/render-content/components/render-styles.jsx +14 -57
- package/src/components/render-content/index.js +1 -1
- package/src/components/render-content/render-content.helpers.js +48 -0
- package/src/components/render-content/render-content.jsx +78 -69
- package/src/components/render-content/render-content.types.js +0 -0
- package/src/components/render-inlined-styles.jsx +2 -2
- package/src/constants/builder-registered-components.js +7 -7
- package/src/context/builder.context.js +2 -0
- package/src/index-helpers/blocks-exports.js +8 -8
- package/src/types/input.js +0 -0
|
@@ -1,65 +1,22 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import RenderInlinedStyles from "../../render-inlined-styles";
|
|
5
|
+
import { getCss } from "./render-styles.helpers";
|
|
6
|
+
import { getFontCss } from "./render-styles.helpers";
|
|
4
7
|
|
|
5
8
|
export default function RenderContentStyles(props) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const url = font.fileUrl ?? font?.files?.regular;
|
|
13
|
-
let str = "";
|
|
14
|
-
if (url && family && name) {
|
|
15
|
-
str += `
|
|
16
|
-
@font-face {
|
|
17
|
-
font-family: "${family}";
|
|
18
|
-
src: local("${name}"), url('${url}') format('woff2');
|
|
19
|
-
font-display: fallback;
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
}
|
|
22
|
-
`.trim();
|
|
23
|
-
}
|
|
24
|
-
if (font.files) {
|
|
25
|
-
for (const weight in font.files) {
|
|
26
|
-
const isNumber = String(Number(weight)) === weight;
|
|
27
|
-
if (!isNumber) {
|
|
28
|
-
continue;
|
|
29
|
-
}
|
|
30
|
-
// TODO: maybe limit number loaded
|
|
31
|
-
const weightUrl = font.files[weight];
|
|
32
|
-
if (weightUrl && weightUrl !== url) {
|
|
33
|
-
str += `
|
|
34
|
-
@font-face {
|
|
35
|
-
font-family: "${family}";
|
|
36
|
-
src: url('${weightUrl}') format('woff2');
|
|
37
|
-
font-display: fallback;
|
|
38
|
-
font-weight: ${weight};
|
|
39
|
-
}
|
|
40
|
-
`.trim();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return str;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function getFontCss({ customFonts }) {
|
|
48
|
-
// TODO: flag for this
|
|
49
|
-
// if (!builder.allowCustomFonts) {
|
|
50
|
-
// return '';
|
|
51
|
-
// }
|
|
52
|
-
// TODO: separate internal data from external
|
|
53
|
-
return customFonts?.map((font) => getCssFromFont(font))?.join(" ") || "";
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function injectedStyles() {
|
|
57
|
-
return `
|
|
58
|
-
${props.cssCode || ""}
|
|
9
|
+
const [injectedStyles, setInjectedStyles] = useState(
|
|
10
|
+
() => `
|
|
11
|
+
${getCss({
|
|
12
|
+
cssCode: props.cssCode,
|
|
13
|
+
contentId: props.contentId,
|
|
14
|
+
})}
|
|
59
15
|
${getFontCss({
|
|
60
16
|
customFonts: props.customFonts,
|
|
61
|
-
})}
|
|
62
|
-
|
|
17
|
+
})}
|
|
18
|
+
`
|
|
19
|
+
);
|
|
63
20
|
|
|
64
|
-
return <RenderInlinedStyles styles={injectedStyles
|
|
21
|
+
return <RenderInlinedStyles styles={injectedStyles} />;
|
|
65
22
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
const getContextStateInitialValue = ({
|
|
21
|
+
content,
|
|
22
|
+
data,
|
|
23
|
+
locale
|
|
24
|
+
}) => {
|
|
25
|
+
var _a, _b, _c;
|
|
26
|
+
const defaultValues = {};
|
|
27
|
+
(_b = (_a = content == null ? void 0 : content.data) == null ? void 0 : _a.inputs) == null ? void 0 : _b.forEach((input) => {
|
|
28
|
+
var _a2;
|
|
29
|
+
if (input.name && input.defaultValue !== void 0 && ((_a2 = content == null ? void 0 : content.data) == null ? void 0 : _a2.state) && content.data.state[input.name] === void 0) {
|
|
30
|
+
defaultValues[input.name] = input.defaultValue;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const stateToUse = __spreadValues(__spreadValues(__spreadValues({}, (_c = content == null ? void 0 : content.data) == null ? void 0 : _c.state), data), locale ? { locale } : {});
|
|
34
|
+
return __spreadValues(__spreadValues({}, defaultValues), stateToUse);
|
|
35
|
+
};
|
|
36
|
+
const getContentInitialValue = ({
|
|
37
|
+
content,
|
|
38
|
+
data
|
|
39
|
+
}) => {
|
|
40
|
+
return !content ? void 0 : __spreadProps(__spreadValues({}, content), {
|
|
41
|
+
data: __spreadValues(__spreadValues({}, content == null ? void 0 : content.data), data),
|
|
42
|
+
meta: content == null ? void 0 : content.meta
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
getContentInitialValue,
|
|
47
|
+
getContextStateInitialValue
|
|
48
|
+
};
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
createRegisterComponentMessage,
|
|
15
15
|
} from "../../functions/register-component.js";
|
|
16
16
|
import { _track } from "../../functions/track/index.js";
|
|
17
|
-
import RenderBlocks from "../render-blocks
|
|
18
|
-
import RenderContentStyles from "./components/render-styles
|
|
17
|
+
import RenderBlocks from "../render-blocks";
|
|
18
|
+
import RenderContentStyles from "./components/render-styles";
|
|
19
19
|
import builderContext from "../../context/builder.context.js";
|
|
20
20
|
import {
|
|
21
21
|
registerInsertMenu,
|
|
@@ -23,6 +23,10 @@ import {
|
|
|
23
23
|
} from "../../scripts/init-editing.js";
|
|
24
24
|
import { checkIsDefined } from "../../helpers/nullable.js";
|
|
25
25
|
import { getInteractionPropertiesForEvent } from "../../functions/track/interaction.js";
|
|
26
|
+
import {
|
|
27
|
+
getContentInitialValue,
|
|
28
|
+
getContextStateInitialValue,
|
|
29
|
+
} from "./render-content.helpers.js";
|
|
26
30
|
|
|
27
31
|
export default function RenderContent(props) {
|
|
28
32
|
const elementRef = useRef(null);
|
|
@@ -30,56 +34,58 @@ export default function RenderContent(props) {
|
|
|
30
34
|
|
|
31
35
|
const [overrideContent, setOverrideContent] = useState(() => null);
|
|
32
36
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
const [useContent, setUseContent] = useState(() =>
|
|
38
|
+
getContentInitialValue({
|
|
39
|
+
content: props.content,
|
|
40
|
+
data: props.data,
|
|
41
|
+
})
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
function mergeNewContent(newContent) {
|
|
45
|
+
setUseContent({
|
|
46
|
+
...useContent,
|
|
47
|
+
...newContent,
|
|
40
48
|
data: {
|
|
41
|
-
...
|
|
42
|
-
...
|
|
43
|
-
...overrideContent?.data,
|
|
49
|
+
...useContent?.data,
|
|
50
|
+
...newContent?.data,
|
|
44
51
|
},
|
|
45
52
|
meta: {
|
|
46
|
-
...
|
|
47
|
-
...
|
|
53
|
+
...useContent?.meta,
|
|
54
|
+
...newContent?.meta,
|
|
48
55
|
breakpoints:
|
|
49
|
-
|
|
50
|
-
overrideContent?.meta?.breakpoints ||
|
|
51
|
-
props.content?.meta?.breakpoints,
|
|
56
|
+
newContent?.meta?.breakpoints || useContent?.meta?.breakpoints,
|
|
52
57
|
},
|
|
53
|
-
};
|
|
58
|
+
});
|
|
54
59
|
}
|
|
55
60
|
|
|
56
|
-
|
|
61
|
+
function setBreakpoints(breakpoints) {
|
|
62
|
+
setUseContent({
|
|
63
|
+
...useContent,
|
|
64
|
+
meta: {
|
|
65
|
+
...useContent?.meta,
|
|
66
|
+
breakpoints,
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
}
|
|
57
70
|
|
|
58
|
-
const [
|
|
71
|
+
const [update, setUpdate] = useState(() => 0);
|
|
59
72
|
|
|
60
73
|
const [canTrackToUse, setCanTrackToUse] = useState(() =>
|
|
61
74
|
checkIsDefined(props.canTrack) ? props.canTrack : true
|
|
62
75
|
);
|
|
63
76
|
|
|
64
|
-
const [
|
|
77
|
+
const [contentState, setContentState] = useState(() =>
|
|
78
|
+
getContextStateInitialValue({
|
|
79
|
+
content: props.content,
|
|
80
|
+
data: props.data,
|
|
81
|
+
locale: props.locale,
|
|
82
|
+
})
|
|
83
|
+
);
|
|
65
84
|
|
|
66
|
-
function
|
|
67
|
-
|
|
68
|
-
...props.content?.data?.state,
|
|
69
|
-
...props.data,
|
|
70
|
-
...(props.locale
|
|
71
|
-
? {
|
|
72
|
-
locale: props.locale,
|
|
73
|
-
}
|
|
74
|
-
: {}),
|
|
75
|
-
...overrideState,
|
|
76
|
-
};
|
|
85
|
+
function setContextState(newState) {
|
|
86
|
+
setContentState(newState);
|
|
77
87
|
}
|
|
78
88
|
|
|
79
|
-
const [contextContext, setContextContext] = useState(
|
|
80
|
-
() => props.context || {}
|
|
81
|
-
);
|
|
82
|
-
|
|
83
89
|
const [allRegisteredComponents, setAllRegisteredComponents] = useState(() =>
|
|
84
90
|
[
|
|
85
91
|
...getDefaultRegisteredComponents(),
|
|
@@ -106,10 +112,12 @@ export default function RenderContent(props) {
|
|
|
106
112
|
case "builder.configureSdk": {
|
|
107
113
|
const messageContent = data.data;
|
|
108
114
|
const { breakpoints, contentId } = messageContent;
|
|
109
|
-
if (!contentId || contentId !== useContent?.
|
|
115
|
+
if (!contentId || contentId !== useContent?.id) {
|
|
110
116
|
return;
|
|
111
117
|
}
|
|
112
|
-
|
|
118
|
+
if (breakpoints) {
|
|
119
|
+
setBreakpoints(breakpoints);
|
|
120
|
+
}
|
|
113
121
|
setForceReRenderCount(forceReRenderCount + 1); // This is a hack to force Qwik to re-render.
|
|
114
122
|
break;
|
|
115
123
|
}
|
|
@@ -122,7 +130,7 @@ export default function RenderContent(props) {
|
|
|
122
130
|
messageContent.modelName;
|
|
123
131
|
const contentData = messageContent.data;
|
|
124
132
|
if (key === props.model) {
|
|
125
|
-
|
|
133
|
+
mergeNewContent(contentData);
|
|
126
134
|
setForceReRenderCount(forceReRenderCount + 1); // This is a hack to force Qwik to re-render.
|
|
127
135
|
}
|
|
128
136
|
|
|
@@ -138,12 +146,12 @@ export default function RenderContent(props) {
|
|
|
138
146
|
|
|
139
147
|
function evaluateJsCode() {
|
|
140
148
|
// run any dynamic JS code attached to content
|
|
141
|
-
const jsCode = useContent?.
|
|
149
|
+
const jsCode = useContent?.data?.jsCode;
|
|
142
150
|
if (jsCode) {
|
|
143
151
|
evaluate({
|
|
144
152
|
code: jsCode,
|
|
145
|
-
context:
|
|
146
|
-
state: contentState
|
|
153
|
+
context: props.context || {},
|
|
154
|
+
state: contentState,
|
|
147
155
|
});
|
|
148
156
|
}
|
|
149
157
|
}
|
|
@@ -153,9 +161,9 @@ export default function RenderContent(props) {
|
|
|
153
161
|
const [clicked, setClicked] = useState(() => false);
|
|
154
162
|
|
|
155
163
|
function onClick(event) {
|
|
156
|
-
if (useContent
|
|
157
|
-
const variationId = useContent?.
|
|
158
|
-
const contentId = useContent?.
|
|
164
|
+
if (useContent) {
|
|
165
|
+
const variationId = useContent?.testVariationId;
|
|
166
|
+
const contentId = useContent?.id;
|
|
159
167
|
_track({
|
|
160
168
|
type: "click",
|
|
161
169
|
canTrack: canTrackToUse,
|
|
@@ -175,8 +183,8 @@ export default function RenderContent(props) {
|
|
|
175
183
|
return expression.replace(/{{([^}]+)}}/g, (_match, group) =>
|
|
176
184
|
evaluate({
|
|
177
185
|
code: group,
|
|
178
|
-
context:
|
|
179
|
-
state: contentState
|
|
186
|
+
context: props.context || {},
|
|
187
|
+
state: contentState,
|
|
180
188
|
})
|
|
181
189
|
);
|
|
182
190
|
}
|
|
@@ -185,11 +193,11 @@ export default function RenderContent(props) {
|
|
|
185
193
|
fetch(url)
|
|
186
194
|
.then((response) => response.json())
|
|
187
195
|
.then((json) => {
|
|
188
|
-
const
|
|
189
|
-
...
|
|
196
|
+
const newState = {
|
|
197
|
+
...contentState,
|
|
190
198
|
[key]: json,
|
|
191
199
|
};
|
|
192
|
-
|
|
200
|
+
setContextState(newState);
|
|
193
201
|
})
|
|
194
202
|
.catch((err) => {
|
|
195
203
|
console.log("error fetching dynamic data", url, err);
|
|
@@ -197,7 +205,7 @@ export default function RenderContent(props) {
|
|
|
197
205
|
}
|
|
198
206
|
|
|
199
207
|
function runHttpRequests() {
|
|
200
|
-
const requests = useContent?.
|
|
208
|
+
const requests = useContent?.data?.httpRequests ?? {};
|
|
201
209
|
Object.entries(requests).forEach(([key, url]) => {
|
|
202
210
|
if (url && (!httpReqsData[key] || isEditing())) {
|
|
203
211
|
const evaluatedUrl = evalExpression(url);
|
|
@@ -214,7 +222,7 @@ export default function RenderContent(props) {
|
|
|
214
222
|
window.dispatchEvent(
|
|
215
223
|
new CustomEvent("builder:component:stateChange", {
|
|
216
224
|
detail: {
|
|
217
|
-
state: contentState
|
|
225
|
+
state: contentState,
|
|
218
226
|
ref: {
|
|
219
227
|
name: props.model,
|
|
220
228
|
},
|
|
@@ -226,8 +234,7 @@ export default function RenderContent(props) {
|
|
|
226
234
|
|
|
227
235
|
function shouldRenderContentStyles() {
|
|
228
236
|
return Boolean(
|
|
229
|
-
(useContent?.
|
|
230
|
-
useContent?.()?.data?.customFonts?.length) &&
|
|
237
|
+
(useContent?.data?.cssCode || useContent?.data?.customFonts?.length) &&
|
|
231
238
|
TARGET !== "reactNative"
|
|
232
239
|
);
|
|
233
240
|
}
|
|
@@ -266,9 +273,9 @@ export default function RenderContent(props) {
|
|
|
266
273
|
emitStateUpdate
|
|
267
274
|
);
|
|
268
275
|
}
|
|
269
|
-
if (useContent
|
|
270
|
-
const variationId = useContent?.
|
|
271
|
-
const contentId = useContent?.
|
|
276
|
+
if (useContent) {
|
|
277
|
+
const variationId = useContent?.testVariationId;
|
|
278
|
+
const contentId = useContent?.id;
|
|
272
279
|
_track({
|
|
273
280
|
type: "impression",
|
|
274
281
|
canTrack: canTrackToUse,
|
|
@@ -303,7 +310,7 @@ export default function RenderContent(props) {
|
|
|
303
310
|
apiKey: props.apiKey,
|
|
304
311
|
}).then((content) => {
|
|
305
312
|
if (content) {
|
|
306
|
-
|
|
313
|
+
mergeNewContent(content);
|
|
307
314
|
}
|
|
308
315
|
});
|
|
309
316
|
}
|
|
@@ -316,13 +323,13 @@ export default function RenderContent(props) {
|
|
|
316
323
|
|
|
317
324
|
useEffect(() => {
|
|
318
325
|
evaluateJsCode();
|
|
319
|
-
}, [useContent?.
|
|
326
|
+
}, [useContent?.data?.jsCode, contentState]);
|
|
320
327
|
useEffect(() => {
|
|
321
328
|
runHttpRequests();
|
|
322
|
-
}, [useContent?.
|
|
329
|
+
}, [useContent?.data?.httpRequests]);
|
|
323
330
|
useEffect(() => {
|
|
324
331
|
emitStateUpdate();
|
|
325
|
-
}, [contentState
|
|
332
|
+
}, [contentState]);
|
|
326
333
|
|
|
327
334
|
useEffect(() => {
|
|
328
335
|
return () => {
|
|
@@ -339,30 +346,32 @@ export default function RenderContent(props) {
|
|
|
339
346
|
return (
|
|
340
347
|
<builderContext.Provider
|
|
341
348
|
value={{
|
|
342
|
-
content: useContent
|
|
343
|
-
state: contentState
|
|
344
|
-
|
|
349
|
+
content: useContent,
|
|
350
|
+
state: contentState,
|
|
351
|
+
setState: setContextState,
|
|
352
|
+
context: props.context || {},
|
|
345
353
|
apiKey: props.apiKey,
|
|
346
354
|
registeredComponents: allRegisteredComponents,
|
|
347
355
|
}}
|
|
348
356
|
>
|
|
349
|
-
{useContent
|
|
357
|
+
{useContent ? (
|
|
350
358
|
<>
|
|
351
359
|
<View
|
|
352
360
|
ref={elementRef}
|
|
353
361
|
onClick={(event) => onClick(event)}
|
|
354
|
-
builder-content-id={useContent?.
|
|
362
|
+
builder-content-id={useContent?.id}
|
|
355
363
|
builder-model={props.model}
|
|
356
364
|
>
|
|
357
365
|
{shouldRenderContentStyles() ? (
|
|
358
366
|
<RenderContentStyles
|
|
359
|
-
|
|
360
|
-
|
|
367
|
+
contentId={useContent?.id}
|
|
368
|
+
cssCode={useContent?.data?.cssCode}
|
|
369
|
+
customFonts={useContent?.data?.customFonts}
|
|
361
370
|
/>
|
|
362
371
|
) : null}
|
|
363
372
|
|
|
364
373
|
<RenderBlocks
|
|
365
|
-
blocks={useContent?.
|
|
374
|
+
blocks={useContent?.data?.blocks}
|
|
366
375
|
key={forceReRenderCount}
|
|
367
376
|
/>
|
|
368
377
|
</View>
|
|
File without changes
|
|
@@ -15,9 +15,9 @@ export default function RenderInlinedStyles(props) {
|
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<>
|
|
18
|
-
{TARGET === "svelte" ? (
|
|
18
|
+
{TARGET === "svelte" || TARGET === "qwik" ? (
|
|
19
19
|
<>
|
|
20
|
-
<View dangerouslySetInnerHTML={{ __html:
|
|
20
|
+
<View dangerouslySetInnerHTML={{ __html: props.styles }} />
|
|
21
21
|
</>
|
|
22
22
|
) : (
|
|
23
23
|
<View>
|
|
@@ -14,20 +14,20 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { default as Button } from "../blocks/button/button
|
|
17
|
+
import { default as Button } from "../blocks/button/button";
|
|
18
18
|
import { componentInfo as buttonComponentInfo } from "../blocks/button/component-info";
|
|
19
|
-
import { default as Columns } from "../blocks/columns/columns
|
|
19
|
+
import { default as Columns } from "../blocks/columns/columns";
|
|
20
20
|
import { componentInfo as columnsComponentInfo } from "../blocks/columns/component-info";
|
|
21
21
|
import { componentInfo as fragmentComponentInfo } from "../blocks/fragment/component-info";
|
|
22
|
-
import { default as Fragment } from "../blocks/fragment/fragment
|
|
22
|
+
import { default as Fragment } from "../blocks/fragment/fragment";
|
|
23
23
|
import { componentInfo as imageComponentInfo } from "../blocks/image/component-info";
|
|
24
|
-
import { default as Image } from "../blocks/image/image
|
|
24
|
+
import { default as Image } from "../blocks/image/image";
|
|
25
25
|
import { componentInfo as sectionComponentInfo } from "../blocks/section/component-info";
|
|
26
|
-
import { default as Section } from "../blocks/section/section
|
|
26
|
+
import { default as Section } from "../blocks/section/section";
|
|
27
27
|
import { componentInfo as symbolComponentInfo } from "../blocks/symbol/component-info";
|
|
28
|
-
import { default as Symbol } from "../blocks/symbol/symbol
|
|
28
|
+
import { default as Symbol } from "../blocks/symbol/symbol";
|
|
29
29
|
import { componentInfo as textComponentInfo } from "../blocks/text/component-info";
|
|
30
|
-
import { default as Text } from "../blocks/text/text
|
|
30
|
+
import { default as Text } from "../blocks/text/text";
|
|
31
31
|
const getDefaultRegisteredComponents = () => [
|
|
32
32
|
__spreadValues({ component: Columns }, columnsComponentInfo),
|
|
33
33
|
__spreadValues({ component: Image }, imageComponentInfo),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { default as default2 } from "../blocks/columns/columns
|
|
2
|
-
import { default as default3 } from "../blocks/image/image
|
|
3
|
-
import { default as default4 } from "../blocks/text/text
|
|
4
|
-
import { default as default5 } from "../blocks/symbol/symbol
|
|
5
|
-
import { default as default6 } from "../blocks/button/button
|
|
6
|
-
import { default as default7 } from "../blocks/section/section
|
|
7
|
-
import { default as default8 } from "../blocks/fragment/fragment
|
|
8
|
-
import { default as default9 } from "../components/render-content/render-content
|
|
1
|
+
import { default as default2 } from "../blocks/columns/columns";
|
|
2
|
+
import { default as default3 } from "../blocks/image/image";
|
|
3
|
+
import { default as default4 } from "../blocks/text/text";
|
|
4
|
+
import { default as default5 } from "../blocks/symbol/symbol";
|
|
5
|
+
import { default as default6 } from "../blocks/button/button";
|
|
6
|
+
import { default as default7 } from "../blocks/section/section";
|
|
7
|
+
import { default as default8 } from "../blocks/fragment/fragment";
|
|
8
|
+
import { default as default9 } from "../components/render-content/render-content";
|
|
9
9
|
export {
|
|
10
10
|
default6 as Button,
|
|
11
11
|
default2 as Columns,
|
|
File without changes
|