@builder.io/sdk-qwik 0.0.8 → 0.0.9

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 (106) hide show
  1. package/README.md +65 -2
  2. package/lib/index.qwik.cjs +104 -7
  3. package/lib/index.qwik.mjs +104 -7
  4. package/package.json +1 -1
  5. package/src/blocks/button/button.jsx +197 -0
  6. package/src/blocks/button/component-info.js +41 -0
  7. package/src/blocks/columns/columns.jsx +267 -0
  8. package/src/blocks/columns/component-info.js +242 -0
  9. package/src/blocks/custom-code/component-info.js +31 -0
  10. package/src/blocks/custom-code/custom-code.jsx +130 -0
  11. package/src/blocks/embed/component-info.js +44 -0
  12. package/src/blocks/embed/embed.jsx +130 -0
  13. package/src/blocks/embed/helpers.js +9 -0
  14. package/src/blocks/form/builder-blocks.jsx +86 -0
  15. package/src/blocks/form/component-info.js +262 -0
  16. package/src/blocks/form/form.jsx +782 -0
  17. package/src/blocks/fragment/component-info.js +11 -0
  18. package/src/blocks/fragment/fragment.jsx +59 -0
  19. package/src/blocks/image/component-info.js +151 -0
  20. package/src/blocks/image/image.helpers.js +48 -0
  21. package/src/blocks/image/image.jsx +554 -0
  22. package/src/blocks/img/component-info.js +20 -0
  23. package/src/blocks/img/img.jsx +76 -0
  24. package/src/blocks/input/component-info.js +74 -0
  25. package/src/blocks/input/input.jsx +87 -0
  26. package/src/blocks/raw-text/component-info.js +16 -0
  27. package/src/blocks/raw-text/raw-text.jsx +53 -0
  28. package/src/blocks/section/component-info.js +49 -0
  29. package/src/blocks/section/section.jsx +97 -0
  30. package/src/blocks/select/component-info.js +59 -0
  31. package/src/blocks/select/select.jsx +149 -0
  32. package/src/blocks/submit-button/component-info.js +28 -0
  33. package/src/blocks/submit-button/submit-button.jsx +87 -0
  34. package/src/blocks/symbol/component-info.js +43 -0
  35. package/src/blocks/symbol/symbol.jsx +211 -0
  36. package/src/blocks/text/component-info.js +24 -0
  37. package/src/blocks/text/text.jsx +46 -0
  38. package/src/blocks/textarea/component-info.js +47 -0
  39. package/src/blocks/textarea/textarea.jsx +65 -0
  40. package/src/blocks/util.js +7 -0
  41. package/src/blocks/video/component-info.js +106 -0
  42. package/src/blocks/video/video.jsx +103 -0
  43. package/src/components/render-block/block-styles.jsx +174 -0
  44. package/src/components/render-block/render-block.helpers.js +23 -0
  45. package/src/components/render-block/render-block.jsx +733 -0
  46. package/src/components/render-block/render-component.jsx +245 -0
  47. package/src/components/render-block/render-repeated-block.jsx +104 -0
  48. package/src/components/render-block/types.js +0 -0
  49. package/src/components/render-blocks.jsx +387 -0
  50. package/src/components/render-content/components/render-styles.jsx +126 -0
  51. package/src/components/render-content/index.js +4 -0
  52. package/src/components/render-content/render-content.jsx +650 -0
  53. package/src/components/render-inlined-styles.jsx +141 -0
  54. package/src/constants/builder-registered-components.js +48 -0
  55. package/src/constants/device-sizes.js +21 -0
  56. package/src/constants/target.js +4 -0
  57. package/src/context/builder.context.js +5 -0
  58. package/src/functions/camel-to-kebab-case.js +4 -0
  59. package/src/functions/convert-style-object.js +6 -0
  60. package/src/functions/evaluate.js +28 -0
  61. package/src/functions/event-handler-name.js +7 -0
  62. package/src/functions/get-block-actions.js +23 -0
  63. package/src/functions/get-block-component-options.js +28 -0
  64. package/src/functions/get-block-properties.js +29 -0
  65. package/src/functions/get-block-styles.js +34 -0
  66. package/src/functions/get-block-tag.js +6 -0
  67. package/src/functions/get-builder-search-params/fn.test.js +13 -0
  68. package/src/functions/get-builder-search-params/index.js +33 -0
  69. package/src/functions/get-content/ab-testing.js +38 -0
  70. package/src/functions/get-content/fn.test.js +31 -0
  71. package/src/functions/get-content/index.js +96 -0
  72. package/src/functions/get-content/types.js +0 -0
  73. package/src/functions/get-fetch.js +34 -0
  74. package/src/functions/get-global-this.js +18 -0
  75. package/src/functions/get-processed-block.js +53 -0
  76. package/src/functions/get-processed-block.test.js +32 -0
  77. package/src/functions/if-target.js +15 -0
  78. package/src/functions/is-browser.js +6 -0
  79. package/src/functions/is-editing.js +7 -0
  80. package/src/functions/is-iframe.js +7 -0
  81. package/src/functions/is-previewing.js +14 -0
  82. package/src/functions/on-change.js +27 -0
  83. package/src/functions/on-change.test.js +19 -0
  84. package/src/functions/register-component.js +72 -0
  85. package/src/functions/register.js +29 -0
  86. package/src/functions/sanitize-styles.js +5 -0
  87. package/src/functions/set-editor-settings.js +15 -0
  88. package/src/functions/set.js +11 -0
  89. package/src/functions/set.test.js +16 -0
  90. package/src/functions/track.js +22 -0
  91. package/src/functions/transform-block.js +6 -0
  92. package/src/helpers/css.js +12 -0
  93. package/src/helpers/flatten.js +34 -0
  94. package/src/index-helpers/blocks-exports.js +22 -0
  95. package/src/index-helpers/top-of-file.js +4 -0
  96. package/src/index.js +10 -0
  97. package/src/scripts/init-editing.js +79 -0
  98. package/src/types/builder-block.js +0 -0
  99. package/src/types/builder-content.js +0 -0
  100. package/src/types/components.js +0 -0
  101. package/src/types/deep-partial.js +0 -0
  102. package/src/types/element.js +0 -0
  103. package/src/types/targets.js +0 -0
  104. package/src/types/typescript.js +0 -0
  105. package/types.d.ts +7 -12
  106. package/root.json +0 -1176
@@ -0,0 +1,733 @@
1
+ // GENERATED BY MITOSIS
2
+
3
+ import { evaluate } from "../../functions/evaluate.js";
4
+ import { getBlockActions } from "../../functions/get-block-actions.js";
5
+ import { getBlockComponentOptions } from "../../functions/get-block-component-options.js";
6
+ import { getBlockProperties } from "../../functions/get-block-properties.js";
7
+ import { getBlockStyles } from "../../functions/get-block-styles.js";
8
+ import { getBlockTag } from "../../functions/get-block-tag.js";
9
+ import { getProcessedBlock } from "../../functions/get-processed-block.js";
10
+ import BlockStyles from "./block-styles";
11
+ import { isEmptyHtmlElement } from "./render-block.helpers.js";
12
+ import RenderComponent from "./render-component";
13
+ import RenderRepeatedBlock from "./render-repeated-block";
14
+ import { Fragment, h } from "@builder.io/qwik";
15
+ export const component = function component(props, state) {
16
+ const componentName = getProcessedBlock({
17
+ block: props.block,
18
+ state: props.context.state,
19
+ context: props.context.context,
20
+ evaluateBindings: false,
21
+ }).component?.name;
22
+
23
+ if (!componentName) {
24
+ return null;
25
+ }
26
+
27
+ const ref = props.context.registeredComponents[componentName];
28
+
29
+ if (!ref) {
30
+ // TODO: Public doc page with more info about this message
31
+ console.warn(`
32
+ Could not find a registered component named "${componentName}".
33
+ If you registered it, is the file that registered it imported by the file that needs to render it?`);
34
+ return undefined;
35
+ } else {
36
+ return ref;
37
+ }
38
+ };
39
+ export const componentInfo = function componentInfo(props, state) {
40
+ if (component(props, state)) {
41
+ const { component: _, ...info } = component(props, state);
42
+ return info;
43
+ } else {
44
+ return undefined;
45
+ }
46
+ };
47
+ export const componentRef = function componentRef(props, state) {
48
+ return component(props, state)?.component;
49
+ };
50
+ export const tagName = function tagName(props, state) {
51
+ return getBlockTag(useBlock(props, state));
52
+ };
53
+ export const useBlock = function useBlock(props, state) {
54
+ return repeatItemData(props, state)
55
+ ? props.block
56
+ : getProcessedBlock({
57
+ block: props.block,
58
+ state: props.context.state,
59
+ context: props.context.context,
60
+ evaluateBindings: true,
61
+ });
62
+ };
63
+ export const attributes = function attributes(props, state) {
64
+ return {
65
+ ...getBlockProperties(useBlock(props, state)),
66
+ ...getBlockActions({
67
+ block: useBlock(props, state),
68
+ state: props.context.state,
69
+ context: props.context.context,
70
+ }),
71
+ style: getBlockStyles(useBlock(props, state)),
72
+ };
73
+ };
74
+ export const shouldWrap = function shouldWrap(props, state) {
75
+ return !componentInfo(props, state)?.noWrap;
76
+ };
77
+ export const componentOptions = function componentOptions(props, state) {
78
+ return {
79
+ ...getBlockComponentOptions(useBlock(props, state)),
80
+
81
+ /**
82
+ * These attributes are passed to the wrapper element when there is one. If `noWrap` is set to true, then
83
+ * they are provided to the component itself directly.
84
+ */
85
+ ...(shouldWrap(props, state)
86
+ ? {}
87
+ : {
88
+ attributes: attributes(props, state),
89
+ }),
90
+ };
91
+ };
92
+ export const renderComponentProps = function renderComponentProps(
93
+ props,
94
+ state
95
+ ) {
96
+ return {
97
+ blockChildren: children(props, state),
98
+ componentRef: componentRef(props, state),
99
+ componentOptions: componentOptions(props, state),
100
+ };
101
+ };
102
+ export const children = function children(props, state) {
103
+ // TO-DO: When should `canHaveChildren` dictate rendering?
104
+ // This is currently commented out because some Builder components (e.g. Box) do not have `canHaveChildren: true`,
105
+ // but still receive and need to render children.
106
+ // return state.componentInfo?.canHaveChildren ? state.useBlock.children : [];
107
+ return useBlock(props, state).children ?? [];
108
+ };
109
+ export const childrenWithoutParentComponent =
110
+ function childrenWithoutParentComponent(props, state) {
111
+ /**
112
+ * When there is no `componentRef`, there might still be children that need to be rendered. In this case,
113
+ * we render them outside of `componentRef`.
114
+ * NOTE: We make sure not to render this if `repeatItemData` is non-null, because that means we are rendering an array of
115
+ * blocks, and the children will be repeated within those blocks.
116
+ */
117
+ const shouldRenderChildrenOutsideRef =
118
+ !componentRef(props, state) && !repeatItemData(props, state);
119
+ return shouldRenderChildrenOutsideRef ? children(props, state) : [];
120
+ };
121
+ export const repeatItemData = function repeatItemData(props, state) {
122
+ /**
123
+ * we don't use `state.useBlock` here because the processing done within its logic includes evaluating the block's bindings,
124
+ * which will not work if there is a repeat.
125
+ */
126
+ const { repeat, ...blockWithoutRepeat } = props.block;
127
+
128
+ if (!repeat?.collection) {
129
+ return undefined;
130
+ }
131
+
132
+ const itemsArray = evaluate({
133
+ code: repeat.collection,
134
+ state: props.context.state,
135
+ context: props.context.context,
136
+ });
137
+
138
+ if (!Array.isArray(itemsArray)) {
139
+ return undefined;
140
+ }
141
+
142
+ const collectionName = repeat.collection.split(".").pop();
143
+ const itemNameToUse =
144
+ repeat.itemName || (collectionName ? collectionName + "Item" : "item");
145
+ const repeatArray = itemsArray.map((item, index) => ({
146
+ context: {
147
+ ...props.context,
148
+ state: {
149
+ ...props.context.state,
150
+ $index: index,
151
+ $item: item,
152
+ [itemNameToUse]: item,
153
+ [`$${itemNameToUse}Index`]: index,
154
+ },
155
+ },
156
+ block: blockWithoutRepeat,
157
+ }));
158
+ return repeatArray;
159
+ };
160
+ export const RenderBlock = (props) => {
161
+ const state = {};
162
+ state.tagName = tagName(props, state);
163
+ return (
164
+ <>
165
+ {shouldWrap(props, state) ? (
166
+ !isEmptyHtmlElement(tagName(props, state)) ? (
167
+ <state.tagName {...attributes(props, state)}>
168
+ {repeatItemData(props, state)
169
+ ? (repeatItemData(props, state) || []).map((data, index) => {
170
+ return (
171
+ <RenderRepeatedBlock
172
+ key={index}
173
+ repeatContext={data.context}
174
+ block={data.block}
175
+ ></RenderRepeatedBlock>
176
+ );
177
+ })
178
+ : null}
179
+ {!repeatItemData(props, state) ? (
180
+ <RenderComponent
181
+ {...renderComponentProps(props, state)}
182
+ ></RenderComponent>
183
+ ) : null}
184
+ {(childrenWithoutParentComponent(props, state) || []).map(
185
+ (child) => {
186
+ return (
187
+ <RenderBlock
188
+ key={"render-block-" + child.id}
189
+ block={child}
190
+ context={props.context}
191
+ ></RenderBlock>
192
+ );
193
+ }
194
+ )}
195
+ {(childrenWithoutParentComponent(props, state) || []).map(
196
+ (child) => {
197
+ return (
198
+ <BlockStyles
199
+ key={"block-style-" + child.id}
200
+ block={child}
201
+ context={props.context}
202
+ ></BlockStyles>
203
+ );
204
+ }
205
+ )}
206
+ </state.tagName>
207
+ ) : (
208
+ <state.tagName {...attributes(props, state)}></state.tagName>
209
+ )
210
+ ) : (
211
+ <RenderComponent
212
+ {...renderComponentProps(props, state)}
213
+ context={props.context}
214
+ ></RenderComponent>
215
+ )}
216
+ </>
217
+ );
218
+ };
219
+ export default RenderBlock;
220
+ export const COMPONENT = {
221
+ "@type": "@builder.io/mitosis/component",
222
+ imports: [
223
+ {
224
+ imports: {
225
+ getBlockActions: "getBlockActions",
226
+ },
227
+ path: "../../functions/get-block-actions.js",
228
+ },
229
+ {
230
+ imports: {
231
+ getBlockComponentOptions: "getBlockComponentOptions",
232
+ },
233
+ path: "../../functions/get-block-component-options.js",
234
+ },
235
+ {
236
+ imports: {
237
+ getBlockProperties: "getBlockProperties",
238
+ },
239
+ path: "../../functions/get-block-properties.js",
240
+ },
241
+ {
242
+ imports: {
243
+ getBlockStyles: "getBlockStyles",
244
+ },
245
+ path: "../../functions/get-block-styles.js",
246
+ },
247
+ {
248
+ imports: {
249
+ getBlockTag: "getBlockTag",
250
+ },
251
+ path: "../../functions/get-block-tag.js",
252
+ },
253
+ {
254
+ imports: {
255
+ getProcessedBlock: "getProcessedBlock",
256
+ },
257
+ path: "../../functions/get-processed-block.js",
258
+ },
259
+ {
260
+ imports: {
261
+ evaluate: "evaluate",
262
+ },
263
+ path: "../../functions/evaluate.js",
264
+ },
265
+ {
266
+ imports: {
267
+ BlockStyles: "default",
268
+ },
269
+ path: "./block-styles.lite",
270
+ },
271
+ {
272
+ imports: {
273
+ isEmptyHtmlElement: "isEmptyHtmlElement",
274
+ },
275
+ path: "./render-block.helpers.js",
276
+ },
277
+ {
278
+ imports: {
279
+ RenderComponent: "default",
280
+ },
281
+ path: "./render-component.lite",
282
+ },
283
+ {
284
+ imports: {
285
+ RenderRepeatedBlock: "default",
286
+ },
287
+ path: "./render-repeated-block.lite",
288
+ },
289
+ ],
290
+ exports: {},
291
+ inputs: [],
292
+ meta: {
293
+ useMetadata: {
294
+ qwik: {
295
+ component: {
296
+ isLight: true,
297
+ },
298
+ },
299
+ elementTag: "state.tagName",
300
+ },
301
+ },
302
+ refs: {},
303
+ state: {
304
+ component:
305
+ '@builder.io/mitosis/method:get component() {\n const componentName = getProcessedBlock({\n block: props.block,\n state: props.context.state,\n context: props.context.context,\n evaluateBindings: false\n }).component?.name;\n\n if (!componentName) {\n return null;\n }\n\n const ref = props.context.registeredComponents[componentName];\n\n if (!ref) {\n // TODO: Public doc page with more info about this message\n console.warn(`\n Could not find a registered component named "${componentName}". \n If you registered it, is the file that registered it imported by the file that needs to render it?`);\n return undefined;\n } else {\n return ref;\n }\n}',
306
+ componentInfo:
307
+ "@builder.io/mitosis/method:get componentInfo() {\n if (component(props,state)) {\n const {\n component: _,\n ...info\n } = component(props,state);\n return info;\n } else {\n return undefined;\n }\n}",
308
+ componentRef:
309
+ "@builder.io/mitosis/method:get componentRef() {\n return component(props,state)?.component;\n}",
310
+ tagName:
311
+ "@builder.io/mitosis/method:get tagName() {\n return getBlockTag(useBlock(props,state));\n}",
312
+ useBlock:
313
+ "@builder.io/mitosis/method:get useBlock() {\n return repeatItemData(props,state) ? props.block : getProcessedBlock({\n block: props.block,\n state: props.context.state,\n context: props.context.context,\n evaluateBindings: true\n });\n}",
314
+ attributes:
315
+ "@builder.io/mitosis/method:get attributes() {\n return { ...getBlockProperties(useBlock(props,state)),\n ...getBlockActions({\n block: useBlock(props,state),\n state: props.context.state,\n context: props.context.context\n }),\n style: getBlockStyles(useBlock(props,state))\n };\n}",
316
+ shouldWrap:
317
+ "@builder.io/mitosis/method:get shouldWrap() {\n return !componentInfo(props,state)?.noWrap;\n}",
318
+ componentOptions:
319
+ "@builder.io/mitosis/method:get componentOptions() {\n return { ...getBlockComponentOptions(useBlock(props,state)),\n\n /**\n * These attributes are passed to the wrapper element when there is one. If `noWrap` is set to true, then\n * they are provided to the component itself directly.\n */\n ...(shouldWrap(props,state) ? {} : {\n attributes: attributes(props,state)\n })\n };\n}",
320
+ renderComponentProps:
321
+ "@builder.io/mitosis/method:get renderComponentProps() {\n return {\n blockChildren: children(props,state),\n componentRef: componentRef(props,state),\n componentOptions: componentOptions(props,state)\n };\n}",
322
+ children:
323
+ "@builder.io/mitosis/method:get children() {\n // TO-DO: When should `canHaveChildren` dictate rendering?\n // This is currently commented out because some Builder components (e.g. Box) do not have `canHaveChildren: true`,\n // but still receive and need to render children.\n // return state.componentInfo?.canHaveChildren ? state.useBlock.children : [];\n return useBlock(props,state).children ?? [];\n}",
324
+ childrenWithoutParentComponent:
325
+ "@builder.io/mitosis/method:get childrenWithoutParentComponent() {\n /**\n * When there is no `componentRef`, there might still be children that need to be rendered. In this case,\n * we render them outside of `componentRef`.\n * NOTE: We make sure not to render this if `repeatItemData` is non-null, because that means we are rendering an array of\n * blocks, and the children will be repeated within those blocks.\n */\n const shouldRenderChildrenOutsideRef = !componentRef(props,state) && !repeatItemData(props,state);\n return shouldRenderChildrenOutsideRef ? children(props,state) : [];\n}",
326
+ repeatItemData:
327
+ "@builder.io/mitosis/method:get repeatItemData() {\n /**\n * we don't use `state.useBlock` here because the processing done within its logic includes evaluating the block's bindings,\n * which will not work if there is a repeat.\n */\n const {\n repeat,\n ...blockWithoutRepeat\n } = props.block;\n\n if (!repeat?.collection) {\n return undefined;\n }\n\n const itemsArray = evaluate({\n code: repeat.collection,\n state: props.context.state,\n context: props.context.context\n });\n\n if (!Array.isArray(itemsArray)) {\n return undefined;\n }\n\n const collectionName = repeat.collection.split('.').pop();\n const itemNameToUse = repeat.itemName || (collectionName ? collectionName + 'Item' : 'item');\n const repeatArray = itemsArray.map<RepeatData>((item, index) => ({\n context: { ...props.context,\n state: { ...props.context.state,\n $index: index,\n $item: item,\n [itemNameToUse]: item,\n [`$${itemNameToUse}Index`]: index\n }\n },\n block: blockWithoutRepeat\n }));\n return repeatArray;\n}",
328
+ },
329
+ children: [
330
+ {
331
+ "@type": "@builder.io/mitosis/node",
332
+ name: "Show",
333
+ meta: {
334
+ else: {
335
+ "@type": "@builder.io/mitosis/node",
336
+ name: "RenderComponent",
337
+ meta: {},
338
+ scope: {},
339
+ properties: {},
340
+ bindings: {
341
+ _spread: {
342
+ code: "renderComponentProps(props,state)",
343
+ },
344
+ context: {
345
+ code: "props.context",
346
+ },
347
+ },
348
+ children: [],
349
+ },
350
+ },
351
+ scope: {},
352
+ properties: {},
353
+ bindings: {
354
+ when: {
355
+ code: "shouldWrap(props,state)",
356
+ },
357
+ },
358
+ children: [
359
+ {
360
+ "@type": "@builder.io/mitosis/node",
361
+ name: "div",
362
+ meta: {},
363
+ scope: {},
364
+ properties: {
365
+ _text: "\n ",
366
+ },
367
+ bindings: {},
368
+ children: [],
369
+ },
370
+ {
371
+ "@type": "@builder.io/mitosis/node",
372
+ name: "Show",
373
+ meta: {
374
+ else: {
375
+ "@type": "@builder.io/mitosis/node",
376
+ name: "state.tagName",
377
+ meta: {},
378
+ scope: {},
379
+ properties: {},
380
+ bindings: {
381
+ _spread: {
382
+ code: "attributes(props,state)",
383
+ },
384
+ },
385
+ children: [],
386
+ },
387
+ },
388
+ scope: {},
389
+ properties: {},
390
+ bindings: {
391
+ when: {
392
+ code: "!isEmptyHtmlElement(tagName(props,state))",
393
+ },
394
+ },
395
+ children: [
396
+ {
397
+ "@type": "@builder.io/mitosis/node",
398
+ name: "div",
399
+ meta: {},
400
+ scope: {},
401
+ properties: {
402
+ _text: "\n ",
403
+ },
404
+ bindings: {},
405
+ children: [],
406
+ },
407
+ {
408
+ "@type": "@builder.io/mitosis/node",
409
+ name: "state.tagName",
410
+ meta: {},
411
+ scope: {},
412
+ properties: {},
413
+ bindings: {
414
+ _spread: {
415
+ code: "attributes(props,state)",
416
+ },
417
+ },
418
+ children: [
419
+ {
420
+ "@type": "@builder.io/mitosis/node",
421
+ name: "div",
422
+ meta: {},
423
+ scope: {},
424
+ properties: {
425
+ _text: "\n ",
426
+ },
427
+ bindings: {},
428
+ children: [],
429
+ },
430
+ {
431
+ "@type": "@builder.io/mitosis/node",
432
+ name: "div",
433
+ meta: {},
434
+ scope: {},
435
+ properties: {
436
+ _text: "\n ",
437
+ },
438
+ bindings: {},
439
+ children: [],
440
+ },
441
+ {
442
+ "@type": "@builder.io/mitosis/node",
443
+ name: "Show",
444
+ meta: {},
445
+ scope: {},
446
+ properties: {},
447
+ bindings: {
448
+ when: {
449
+ code: "repeatItemData(props,state)",
450
+ },
451
+ },
452
+ children: [
453
+ {
454
+ "@type": "@builder.io/mitosis/node",
455
+ name: "div",
456
+ meta: {},
457
+ scope: {},
458
+ properties: {
459
+ _text: "\n ",
460
+ },
461
+ bindings: {},
462
+ children: [],
463
+ },
464
+ {
465
+ "@type": "@builder.io/mitosis/node",
466
+ name: "For",
467
+ meta: {},
468
+ scope: {
469
+ For: ["data", "index"],
470
+ },
471
+ properties: {
472
+ _forName: "data",
473
+ _indexName: "index",
474
+ },
475
+ bindings: {
476
+ each: {
477
+ code: "repeatItemData(props,state)",
478
+ },
479
+ },
480
+ children: [
481
+ {
482
+ "@type": "@builder.io/mitosis/node",
483
+ name: "RenderRepeatedBlock",
484
+ meta: {},
485
+ scope: {},
486
+ properties: {},
487
+ bindings: {
488
+ key: {
489
+ code: "index",
490
+ },
491
+ repeatContext: {
492
+ code: "data.context",
493
+ },
494
+ block: {
495
+ code: "data.block",
496
+ },
497
+ },
498
+ children: [],
499
+ },
500
+ ],
501
+ },
502
+ {
503
+ "@type": "@builder.io/mitosis/node",
504
+ name: "div",
505
+ meta: {},
506
+ scope: {},
507
+ properties: {
508
+ _text: "\n ",
509
+ },
510
+ bindings: {},
511
+ children: [],
512
+ },
513
+ ],
514
+ },
515
+ {
516
+ "@type": "@builder.io/mitosis/node",
517
+ name: "div",
518
+ meta: {},
519
+ scope: {},
520
+ properties: {
521
+ _text: "\n ",
522
+ },
523
+ bindings: {},
524
+ children: [],
525
+ },
526
+ {
527
+ "@type": "@builder.io/mitosis/node",
528
+ name: "Show",
529
+ meta: {},
530
+ scope: {},
531
+ properties: {},
532
+ bindings: {
533
+ when: {
534
+ code: "!repeatItemData(props,state)",
535
+ },
536
+ },
537
+ children: [
538
+ {
539
+ "@type": "@builder.io/mitosis/node",
540
+ name: "div",
541
+ meta: {},
542
+ scope: {},
543
+ properties: {
544
+ _text: "\n ",
545
+ },
546
+ bindings: {},
547
+ children: [],
548
+ },
549
+ {
550
+ "@type": "@builder.io/mitosis/node",
551
+ name: "RenderComponent",
552
+ meta: {},
553
+ scope: {},
554
+ properties: {},
555
+ bindings: {
556
+ _spread: {
557
+ code: "renderComponentProps(props,state)",
558
+ },
559
+ },
560
+ children: [],
561
+ },
562
+ {
563
+ "@type": "@builder.io/mitosis/node",
564
+ name: "div",
565
+ meta: {},
566
+ scope: {},
567
+ properties: {
568
+ _text: "\n ",
569
+ },
570
+ bindings: {},
571
+ children: [],
572
+ },
573
+ ],
574
+ },
575
+ {
576
+ "@type": "@builder.io/mitosis/node",
577
+ name: "div",
578
+ meta: {},
579
+ scope: {},
580
+ properties: {
581
+ _text: "\n ",
582
+ },
583
+ bindings: {},
584
+ children: [],
585
+ },
586
+ {
587
+ "@type": "@builder.io/mitosis/node",
588
+ name: "div",
589
+ meta: {},
590
+ scope: {},
591
+ properties: {
592
+ _text: "\n ",
593
+ },
594
+ bindings: {},
595
+ children: [],
596
+ },
597
+ {
598
+ "@type": "@builder.io/mitosis/node",
599
+ name: "For",
600
+ meta: {},
601
+ scope: {
602
+ For: ["child"],
603
+ },
604
+ properties: {
605
+ _forName: "child",
606
+ },
607
+ bindings: {
608
+ each: {
609
+ code: "childrenWithoutParentComponent(props,state)",
610
+ },
611
+ },
612
+ children: [
613
+ {
614
+ "@type": "@builder.io/mitosis/node",
615
+ name: "RenderBlock",
616
+ meta: {},
617
+ scope: {},
618
+ properties: {},
619
+ bindings: {
620
+ key: {
621
+ code: "'render-block-' + child.id",
622
+ },
623
+ block: {
624
+ code: "child",
625
+ },
626
+ context: {
627
+ code: "props.context",
628
+ },
629
+ },
630
+ children: [],
631
+ },
632
+ ],
633
+ },
634
+ {
635
+ "@type": "@builder.io/mitosis/node",
636
+ name: "div",
637
+ meta: {},
638
+ scope: {},
639
+ properties: {
640
+ _text: "\n ",
641
+ },
642
+ bindings: {},
643
+ children: [],
644
+ },
645
+ {
646
+ "@type": "@builder.io/mitosis/node",
647
+ name: "For",
648
+ meta: {},
649
+ scope: {
650
+ For: ["child"],
651
+ },
652
+ properties: {
653
+ _forName: "child",
654
+ },
655
+ bindings: {
656
+ each: {
657
+ code: "childrenWithoutParentComponent(props,state)",
658
+ },
659
+ },
660
+ children: [
661
+ {
662
+ "@type": "@builder.io/mitosis/node",
663
+ name: "BlockStyles",
664
+ meta: {},
665
+ scope: {},
666
+ properties: {},
667
+ bindings: {
668
+ key: {
669
+ code: "'block-style-' + child.id",
670
+ },
671
+ block: {
672
+ code: "child",
673
+ },
674
+ context: {
675
+ code: "props.context",
676
+ },
677
+ },
678
+ children: [],
679
+ },
680
+ ],
681
+ },
682
+ {
683
+ "@type": "@builder.io/mitosis/node",
684
+ name: "div",
685
+ meta: {},
686
+ scope: {},
687
+ properties: {
688
+ _text: "\n ",
689
+ },
690
+ bindings: {},
691
+ children: [],
692
+ },
693
+ ],
694
+ },
695
+ {
696
+ "@type": "@builder.io/mitosis/node",
697
+ name: "div",
698
+ meta: {},
699
+ scope: {},
700
+ properties: {
701
+ _text: "\n ",
702
+ },
703
+ bindings: {},
704
+ children: [],
705
+ },
706
+ ],
707
+ },
708
+ {
709
+ "@type": "@builder.io/mitosis/node",
710
+ name: "div",
711
+ meta: {},
712
+ scope: {},
713
+ properties: {
714
+ _text: "\n ",
715
+ },
716
+ bindings: {},
717
+ children: [],
718
+ },
719
+ ],
720
+ },
721
+ ],
722
+ hooks: {},
723
+ context: {
724
+ get: {},
725
+ set: {},
726
+ },
727
+ name: "RenderBlock",
728
+ subComponents: [],
729
+ types: [
730
+ "export type RenderBlockProps = {\n block: BuilderBlock;\n context: BuilderContextInterface;\n}; // eslint-disable-next-line @builder.io/mitosis/only-default-function-and-imports",
731
+ ],
732
+ propsTypeRef: "RenderBlockProps",
733
+ };