@builder.io/sdk-solid 1.0.33 → 1.0.35

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.
@@ -10,7 +10,7 @@ var isEmptyElement = (tagName) => {
10
10
 
11
11
  // src/components/dynamic-renderer/dynamic-renderer.tsx
12
12
  function DynamicRenderer(props) {
13
- return <Show
13
+ return <><Show
14
14
  fallback={<Dynamic
15
15
  {...props.attributes}
16
16
  {...props.actionAttributes}
@@ -28,7 +28,7 @@ function DynamicRenderer(props) {
28
28
  {...props.attributes}
29
29
  {...props.actionAttributes}
30
30
  component={props.TagName}
31
- >{props.children}</Dynamic></Show></Show>;
31
+ >{props.children}</Dynamic></Show></Show></>;
32
32
  }
33
33
  var Dynamic_renderer_default = DynamicRenderer;
34
34
 
@@ -66,17 +66,16 @@ function Button(props) {
66
66
  }
67
67
  };
68
68
  }
69
- return <Dynamic_renderer_default
69
+ return <><Dynamic_renderer_default
70
70
  attributes={attrs()}
71
71
  TagName={props.link ? props.builderLinkComponent || "a" : "button"}
72
72
  actionAttributes={{}}
73
- >{props.text}</Dynamic_renderer_default>;
73
+ >{props.text}</Dynamic_renderer_default></>;
74
74
  }
75
75
  var button_default = Button;
76
76
 
77
77
  // src/blocks/columns/columns.tsx
78
78
  import { Show as Show6, For as For4, createSignal as createSignal7 } from "solid-js";
79
- import { css as css2 } from "solid-styled-components";
80
79
 
81
80
  // src/components/blocks/blocks.tsx
82
81
  import { useContext, Show as Show5, For as For3 } from "solid-js";
@@ -847,7 +846,7 @@ var getSizesForBreakpoints = ({
847
846
 
848
847
  // src/components/inlined-styles.tsx
849
848
  function InlinedStyles(props) {
850
- return <style innerHTML={props.styles} data-id={props.id} />;
849
+ return <><style innerHTML={props.styles} data-id={props.id} /></>;
851
850
  }
852
851
  var Inlined_styles_default = InlinedStyles;
853
852
 
@@ -870,7 +869,7 @@ function BlockStyles(props) {
870
869
  }
871
870
  return true;
872
871
  });
873
- const css5 = createMemo(() => {
872
+ const css = createMemo(() => {
874
873
  const processedBlock = getProcessedBlock({
875
874
  block: props.block,
876
875
  localState: props.context.localState,
@@ -933,7 +932,7 @@ function BlockStyles(props) {
933
932
  hoverStylesClass
934
933
  ].join(" ");
935
934
  });
936
- return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css5()} /></Show2>;
935
+ return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css()} /></Show2></>;
937
936
  }
938
937
  var Block_styles_default = BlockStyles;
939
938
 
@@ -1016,7 +1015,7 @@ function getBlockProperties({
1016
1015
 
1017
1016
  // src/components/block/components/block-wrapper.tsx
1018
1017
  function BlockWrapper(props) {
1019
- return <Dynamic_renderer_default
1018
+ return <><Dynamic_renderer_default
1020
1019
  TagName={props.Wrapper}
1021
1020
  attributes={getBlockProperties({
1022
1021
  block: props.block,
@@ -1030,7 +1029,7 @@ function BlockWrapper(props) {
1030
1029
  context: props.context.context,
1031
1030
  stripPrefix: true
1032
1031
  })}
1033
- >{props.children}</Dynamic_renderer_default>;
1032
+ >{props.children}</Dynamic_renderer_default></>;
1034
1033
  }
1035
1034
  var Block_wrapper_default = BlockWrapper;
1036
1035
 
@@ -1057,11 +1056,11 @@ function InteractiveElement(props) {
1057
1056
  })
1058
1057
  } : {};
1059
1058
  });
1060
- return <Dynamic2
1059
+ return <><Dynamic2
1061
1060
  {...props.wrapperProps}
1062
1061
  attributes={attributes()}
1063
1062
  component={props.Wrapper}
1064
- >{props.children}</Dynamic2>;
1063
+ >{props.children}</Dynamic2></>;
1065
1064
  }
1066
1065
  var interactive_element_default = InteractiveElement;
1067
1066
 
@@ -1103,7 +1102,7 @@ function ComponentRef(props) {
1103
1102
  const [Wrapper, setWrapper] = createSignal3(
1104
1103
  props.isInteractive ? interactive_element_default : props.componentRef
1105
1104
  );
1106
- return <Show3 when={props.componentRef}><Dynamic3
1105
+ return <><Show3 when={props.componentRef}><Dynamic3
1107
1106
  {...getWrapperProps({
1108
1107
  componentOptions: props.componentOptions,
1109
1108
  builderBlock: props.builderBlock,
@@ -1124,7 +1123,7 @@ function ComponentRef(props) {
1124
1123
  registeredComponents={props.registeredComponents}
1125
1124
  linkComponent={props.linkComponent}
1126
1125
  />;
1127
- }}</For></Dynamic3></Show3>;
1126
+ }}</For></Dynamic3></Show3></>;
1128
1127
  }
1129
1128
  var Component_ref_default = ComponentRef;
1130
1129
 
@@ -1132,12 +1131,12 @@ var Component_ref_default = ComponentRef;
1132
1131
  import { createSignal as createSignal4 } from "solid-js";
1133
1132
  function RepeatedBlock(props) {
1134
1133
  const [store, setStore] = createSignal4(props.repeatContext);
1135
- return <builder_context_default.Provider value={store()}><Block_default
1134
+ return <><builder_context_default.Provider value={store()}><Block_default
1136
1135
  block={props.block}
1137
1136
  context={store()}
1138
1137
  registeredComponents={props.registeredComponents}
1139
1138
  linkComponent={props.linkComponent}
1140
- /></builder_context_default.Provider>;
1139
+ /></builder_context_default.Provider></>;
1141
1140
  }
1142
1141
  var Repeated_block_default = RepeatedBlock;
1143
1142
 
@@ -1221,7 +1220,7 @@ function Block(props) {
1221
1220
  );
1222
1221
  }
1223
1222
  });
1224
- return <Show4 when={canShowBlock()}>
1223
+ return <><Show4 when={canShowBlock()}>
1225
1224
  <Block_styles_default block={props.block} context={props.context} />
1226
1225
  <Show4
1227
1226
  fallback={<Component_ref_default
@@ -1275,14 +1274,13 @@ function Block(props) {
1275
1274
  />;
1276
1275
  }}</For2>
1277
1276
  </Block_wrapper_default></Show4></Show4>
1278
- </Show4>;
1277
+ </Show4></>;
1279
1278
  }
1280
1279
  var Block_default = Block;
1281
1280
 
1282
1281
  // src/components/blocks/blocks-wrapper.tsx
1283
1282
  import { createMemo as createMemo6 } from "solid-js";
1284
1283
  import { Dynamic as Dynamic4 } from "solid-js/web";
1285
- import { css } from "solid-styled-components";
1286
1284
  function BlocksWrapper(props) {
1287
1285
  const className = createMemo6(() => {
1288
1286
  return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
@@ -1315,22 +1313,25 @@ function BlocksWrapper(props) {
1315
1313
  );
1316
1314
  }
1317
1315
  }
1318
- return <Dynamic4
1319
- class={className() + " " + css({
1320
- display: "flex",
1321
- flexDirection: "column",
1322
- alignItems: "stretch"
1323
- })}
1324
- builder-path={props.path}
1325
- builder-parent-id={props.parent}
1326
- {...{}}
1327
- style={props.styleProp}
1328
- onClick={(event) => onClick()}
1329
- onMouseEnter={(event) => onMouseEnter()}
1330
- onKeyPress={(event) => onClick()}
1331
- {...props.BlocksWrapperProps}
1332
- component={props.BlocksWrapper}
1333
- >{props.children}</Dynamic4>;
1316
+ return <>
1317
+ <Dynamic4
1318
+ class={className() + " dynamic-1bb6a3a2"}
1319
+ builder-path={props.path}
1320
+ builder-parent-id={props.parent}
1321
+ {...{}}
1322
+ style={props.styleProp}
1323
+ onClick={(event) => onClick()}
1324
+ onMouseEnter={(event) => onMouseEnter()}
1325
+ onKeyPress={(event) => onClick()}
1326
+ {...props.BlocksWrapperProps}
1327
+ component={props.BlocksWrapper}
1328
+ >{props.children}</Dynamic4>
1329
+ <style>{`.dynamic-1bb6a3a2 {
1330
+ display: flex;
1331
+ flex-direction: column;
1332
+ align-items: stretch;
1333
+ }`}</style>
1334
+ </>;
1334
1335
  }
1335
1336
  var Blocks_wrapper_default = BlocksWrapper;
1336
1337
 
@@ -1338,7 +1339,7 @@ var Blocks_wrapper_default = BlocksWrapper;
1338
1339
  function Blocks(props) {
1339
1340
  const builderContext = useContext(builder_context_default);
1340
1341
  const componentsContext = useContext(components_context_default);
1341
- return <Blocks_wrapper_default
1342
+ return <><Blocks_wrapper_default
1342
1343
  blocks={props.blocks}
1343
1344
  parent={props.parent}
1344
1345
  path={props.path}
@@ -1354,7 +1355,7 @@ function Blocks(props) {
1354
1355
  context={props.context || builderContext}
1355
1356
  registeredComponents={props.registeredComponents || componentsContext.registeredComponents}
1356
1357
  />;
1357
- }}</For3></Show5></Blocks_wrapper_default>;
1358
+ }}</For3></Show5></Blocks_wrapper_default></>;
1358
1359
  }
1359
1360
  var Blocks_default = Blocks;
1360
1361
 
@@ -1481,50 +1482,52 @@ function Columns(props) {
1481
1482
  style: mapStyleObjToStrIfNeeded(columnCssVars(index))
1482
1483
  };
1483
1484
  }
1484
- return <div
1485
- class={getColumnsClass(props.builderBlock?.id) + " " + css2({
1486
- display: "flex",
1487
- lineHeight: "normal"
1488
- })}
1489
- style={columnsCssVars()}
1490
- {...{}}
1491
- >
1492
- <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
1493
- id="builderio-columns"
1494
- styles={columnsStyles()}
1495
- /></Show6>
1496
- <For4 each={props.columns}>{(column, _index) => {
1497
- const index = _index();
1498
- return <Dynamic_renderer_default
1499
- key={index}
1500
- TagName={getTagName(column)}
1501
- actionAttributes={{}}
1502
- attributes={getAttributes(column, index)}
1503
- ><Blocks_default
1504
- path={`component.options.columns.${index}.blocks`}
1505
- parent={props.builderBlock.id}
1506
- styleProp={{
1507
- flexGrow: "1"
1508
- }}
1509
- context={props.builderContext}
1510
- registeredComponents={props.builderComponents}
1511
- linkComponent={props.builderLinkComponent}
1512
- blocks={column.blocks}
1513
- /></Dynamic_renderer_default>;
1514
- }}</For4>
1515
- </div>;
1485
+ return <>
1486
+ <div
1487
+ class={getColumnsClass(props.builderBlock?.id) + " div-f2f53158"}
1488
+ style={columnsCssVars()}
1489
+ {...{}}
1490
+ >
1491
+ <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
1492
+ id="builderio-columns"
1493
+ styles={columnsStyles()}
1494
+ /></Show6>
1495
+ <For4 each={props.columns}>{(column, _index) => {
1496
+ const index = _index();
1497
+ return <Dynamic_renderer_default
1498
+ key={index}
1499
+ TagName={getTagName(column)}
1500
+ actionAttributes={{}}
1501
+ attributes={getAttributes(column, index)}
1502
+ ><Blocks_default
1503
+ path={`component.options.columns.${index}.blocks`}
1504
+ parent={props.builderBlock.id}
1505
+ styleProp={{
1506
+ flexGrow: "1"
1507
+ }}
1508
+ context={props.builderContext}
1509
+ registeredComponents={props.builderComponents}
1510
+ linkComponent={props.builderLinkComponent}
1511
+ blocks={column.blocks}
1512
+ /></Dynamic_renderer_default>;
1513
+ }}</For4>
1514
+ </div>
1515
+ <style>{`.div-f2f53158 {
1516
+ display: flex;
1517
+ line-height: normal;
1518
+ }`}</style>
1519
+ </>;
1516
1520
  }
1517
1521
  var columns_default = Columns;
1518
1522
 
1519
1523
  // src/blocks/fragment/fragment.tsx
1520
1524
  function FragmentComponent(props) {
1521
- return <span>{props.children}</span>;
1525
+ return <><span>{props.children}</span></>;
1522
1526
  }
1523
1527
  var fragment_default = FragmentComponent;
1524
1528
 
1525
1529
  // src/blocks/image/image.tsx
1526
1530
  import { Show as Show7, createMemo as createMemo8 } from "solid-js";
1527
- import { css as css3 } from "solid-styled-components";
1528
1531
 
1529
1532
  // src/blocks/image/image.helpers.ts
1530
1533
  function removeProtocol(path) {
@@ -1612,59 +1615,60 @@ function Image(props) {
1612
1615
  return out;
1613
1616
  });
1614
1617
  return <>
1615
- <picture>
1616
- <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
1617
- <img
1618
- class={"builder-image" + (props.className ? " " + props.className : "") + " " + css3({
1619
- opacity: "1",
1620
- transition: "opacity 0.2s ease-in-out"
1621
- })}
1622
- loading={props.highPriority ? "eager" : "lazy"}
1623
- fetchpriority={props.highPriority ? "high" : "auto"}
1624
- alt={props.altText}
1625
- role={props.altText ? void 0 : "presentation"}
1618
+ <>
1619
+ <picture>
1620
+ <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
1621
+ <img
1622
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-54b38751"}
1623
+ loading={props.highPriority ? "eager" : "lazy"}
1624
+ fetchpriority={props.highPriority ? "high" : "auto"}
1625
+ alt={props.altText}
1626
+ role={props.altText ? void 0 : "presentation"}
1627
+ style={{
1628
+ "object-position": props.backgroundPosition || "center",
1629
+ "object-fit": props.backgroundSize || "cover",
1630
+ ...aspectRatioCss()
1631
+ }}
1632
+ src={props.image}
1633
+ srcset={srcSetToUse()}
1634
+ sizes={props.sizes}
1635
+ />
1636
+ </picture>
1637
+ <Show7
1638
+ when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
1639
+ ><div
1640
+ class="builder-image-sizer div-54b38751"
1626
1641
  style={{
1627
- "object-position": props.backgroundPosition || "center",
1628
- "object-fit": props.backgroundSize || "cover",
1629
- ...aspectRatioCss()
1642
+ "padding-top": props.aspectRatio * 100 + "%"
1630
1643
  }}
1631
- src={props.image}
1632
- srcset={srcSetToUse()}
1633
- sizes={props.sizes}
1634
- />
1635
- </picture>
1636
- <Show7
1637
- when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
1638
- ><div
1639
- class={"builder-image-sizer " + css3({
1640
- width: "100%",
1641
- pointerEvents: "none",
1642
- fontSize: "0"
1643
- })}
1644
- style={{
1645
- "padding-top": props.aspectRatio * 100 + "%"
1646
- }}
1647
- /></Show7>
1648
- <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
1649
- <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div
1650
- class={css3({
1651
- display: "flex",
1652
- flexDirection: "column",
1653
- alignItems: "stretch",
1654
- position: "absolute",
1655
- top: "0",
1656
- left: "0",
1657
- width: "100%",
1658
- height: "100%"
1659
- })}
1660
- >{props.children}</div></Show7>
1644
+ /></Show7>
1645
+ <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
1646
+ <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-54b38751-2">{props.children}</div></Show7>
1647
+ </>
1648
+ <style>{`.img-54b38751 {
1649
+ opacity: 1;
1650
+ transition: opacity 0.2s ease-in-out;
1651
+ }.div-54b38751 {
1652
+ width: 100%;
1653
+ pointer-events: none;
1654
+ font-size: 0;
1655
+ }.div-54b38751-2 {
1656
+ display: flex;
1657
+ flex-direction: column;
1658
+ align-items: stretch;
1659
+ position: absolute;
1660
+ top: 0;
1661
+ left: 0;
1662
+ width: 100%;
1663
+ height: 100%;
1664
+ }`}</style>
1661
1665
  </>;
1662
1666
  }
1663
1667
  var image_default = Image;
1664
1668
 
1665
1669
  // src/blocks/section/section.tsx
1666
1670
  function SectionComponent(props) {
1667
- return <section
1671
+ return <><section
1668
1672
  {...{}}
1669
1673
  {...props.attributes}
1670
1674
  style={{
@@ -1679,7 +1683,7 @@ function SectionComponent(props) {
1679
1683
  "margin-left": "auto",
1680
1684
  "margin-right": "auto"
1681
1685
  }}
1682
- >{props.children}</section>;
1686
+ >{props.children}</section></>;
1683
1687
  }
1684
1688
  var section_default = SectionComponent;
1685
1689
 
@@ -2121,7 +2125,7 @@ function Accordion(props) {
2121
2125
  setOpen(onlyOneAtATime() ? [index] : open().concat(index));
2122
2126
  }
2123
2127
  }
2124
- return <div class="builder-accordion" style={accordionStyles()}><For5 each={props.items}>{(item, _index) => {
2128
+ return <><div class="builder-accordion" style={accordionStyles()}><For5 each={props.items}>{(item, _index) => {
2125
2129
  const index = _index();
2126
2130
  return <>
2127
2131
  <div
@@ -2155,7 +2159,7 @@ function Accordion(props) {
2155
2159
  linkComponent={props.builderLinkComponent}
2156
2160
  /></div></Show8>
2157
2161
  </>;
2158
- }}</For5></div>;
2162
+ }}</For5></div></>;
2159
2163
  }
2160
2164
  var accordion_default = Accordion;
2161
2165
 
@@ -2440,7 +2444,7 @@ var componentInfo5 = {
2440
2444
  name: "image",
2441
2445
  type: "file",
2442
2446
  bubble: true,
2443
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
2447
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
2444
2448
  required: true,
2445
2449
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2446
2450
  onChange: (options) => {
@@ -2612,7 +2616,7 @@ var componentInfo7 = {
2612
2616
 
2613
2617
  // src/blocks/slot/slot.tsx
2614
2618
  function Slot(props) {
2615
- return <div
2619
+ return <><div
2616
2620
  style={{
2617
2621
  "pointer-events": "auto"
2618
2622
  }}
@@ -2624,7 +2628,7 @@ function Slot(props) {
2624
2628
  path={`symbol.data.${props.name}`}
2625
2629
  context={props.builderContext}
2626
2630
  blocks={props.builderContext.rootState?.[props.name]}
2627
- /></div>;
2631
+ /></div></>;
2628
2632
  }
2629
2633
  var slot_default = Slot;
2630
2634
 
@@ -2820,7 +2824,7 @@ function Tabs(props) {
2820
2824
  setActiveTab(index);
2821
2825
  }
2822
2826
  }
2823
- return <div>
2827
+ return <><div>
2824
2828
  <div
2825
2829
  class="builder-tabs-wrap"
2826
2830
  style={{
@@ -2855,7 +2859,7 @@ function Tabs(props) {
2855
2859
  registeredComponents={props.builderComponents}
2856
2860
  linkComponent={props.builderLinkComponent}
2857
2861
  /></div></Show9>
2858
- </div>;
2862
+ </div></>;
2859
2863
  }
2860
2864
  var tabs_default = Tabs;
2861
2865
 
@@ -2882,13 +2886,13 @@ var componentInfo10 = {
2882
2886
 
2883
2887
  // src/blocks/text/text.tsx
2884
2888
  function Text(props) {
2885
- return <div
2889
+ return <><div
2886
2890
  class="builder-text"
2887
2891
  innerHTML={props.text?.toString() || ""}
2888
2892
  style={{
2889
2893
  outline: "none"
2890
2894
  }}
2891
- />;
2895
+ /></>;
2892
2896
  }
2893
2897
  var text_default = Text;
2894
2898
 
@@ -2956,11 +2960,11 @@ function CustomCode(props) {
2956
2960
  }
2957
2961
  }
2958
2962
  });
2959
- return <div
2963
+ return <><div
2960
2964
  class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
2961
2965
  ref={elementRef}
2962
2966
  innerHTML={props.code}
2963
- />;
2967
+ /></>;
2964
2968
  }
2965
2969
  var custom_code_default = CustomCode;
2966
2970
 
@@ -2978,7 +2982,7 @@ var componentInfo12 = {
2978
2982
  const url = options.get("url");
2979
2983
  if (url) {
2980
2984
  options.set("content", "Loading...");
2981
- const apiKey = "ae0e60e78201a3f2b0de4b";
2985
+ const apiKey = _iframelyApiKey;
2982
2986
  return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
2983
2987
  if (options.get("url") === url) {
2984
2988
  if (data.html) {
@@ -3048,7 +3052,7 @@ function Embed(props) {
3048
3052
  createEffect(
3049
3053
  on(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
3050
3054
  );
3051
- return <div class="builder-embed" ref={elem} innerHTML={props.content} />;
3055
+ return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
3052
3056
  }
3053
3057
  var embed_default = Embed;
3054
3058
 
@@ -3288,7 +3292,6 @@ var componentInfo13 = {
3288
3292
 
3289
3293
  // src/blocks/form/form/form.tsx
3290
3294
  import { Show as Show10, For as For7, createSignal as createSignal13 } from "solid-js";
3291
- import { css as css4 } from "solid-styled-components";
3292
3295
 
3293
3296
  // src/functions/get-env.ts
3294
3297
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -3491,50 +3494,51 @@ function FormComponent(props) {
3491
3494
  }
3492
3495
  }
3493
3496
  let formRef;
3494
- return <form
3495
- validate={props.validate}
3496
- ref={formRef}
3497
- action={!props.sendWithJs && props.action}
3498
- method={props.method}
3499
- name={props.name}
3500
- onSubmit={(event) => onSubmit(event)}
3501
- {...{}}
3502
- {...{}}
3503
- {...props.attributes}
3504
- >
3505
- <Show10 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
3506
- const idx = _index();
3507
- return <Block_default
3508
- key={`form-block-${idx}`}
3509
- block={block}
3497
+ return <>
3498
+ <form
3499
+ validate={props.validate}
3500
+ ref={formRef}
3501
+ action={!props.sendWithJs && props.action}
3502
+ method={props.method}
3503
+ name={props.name}
3504
+ onSubmit={(event) => onSubmit(event)}
3505
+ {...{}}
3506
+ {...{}}
3507
+ {...props.attributes}
3508
+ >
3509
+ <Show10 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
3510
+ const idx = _index();
3511
+ return <Block_default
3512
+ key={`form-block-${idx}`}
3513
+ block={block}
3514
+ context={props.builderContext}
3515
+ registeredComponents={props.builderComponents}
3516
+ linkComponent={props.builderLinkComponent}
3517
+ />;
3518
+ }}</For7></Show10>
3519
+ <Show10 when={submissionState() === "error"}><Blocks_default
3520
+ path="errorMessage"
3521
+ blocks={props.errorMessage}
3510
3522
  context={props.builderContext}
3511
- registeredComponents={props.builderComponents}
3512
- linkComponent={props.builderLinkComponent}
3513
- />;
3514
- }}</For7></Show10>
3515
- <Show10 when={submissionState() === "error"}><Blocks_default
3516
- path="errorMessage"
3517
- blocks={props.errorMessage}
3518
- context={props.builderContext}
3519
- /></Show10>
3520
- <Show10 when={submissionState() === "sending"}><Blocks_default
3521
- path="sendingMessage"
3522
- blocks={props.sendingMessage}
3523
- context={props.builderContext}
3524
- /></Show10>
3525
- <Show10 when={submissionState() === "error" && responseData()}><pre
3526
- class={"builder-form-error-text " + css4({
3527
- padding: "10px",
3528
- color: "red",
3529
- textAlign: "center"
3530
- })}
3531
- >{JSON.stringify(responseData(), null, 2)}</pre></Show10>
3532
- <Show10 when={submissionState() === "success"}><Blocks_default
3533
- path="successMessage"
3534
- blocks={props.successMessage}
3535
- context={props.builderContext}
3536
- /></Show10>
3537
- </form>;
3523
+ /></Show10>
3524
+ <Show10 when={submissionState() === "sending"}><Blocks_default
3525
+ path="sendingMessage"
3526
+ blocks={props.sendingMessage}
3527
+ context={props.builderContext}
3528
+ /></Show10>
3529
+ <Show10 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-2e825338">{JSON.stringify(responseData(), null, 2)}</pre></Show10>
3530
+ <Show10 when={submissionState() === "success"}><Blocks_default
3531
+ path="successMessage"
3532
+ blocks={props.successMessage}
3533
+ context={props.builderContext}
3534
+ /></Show10>
3535
+ </form>
3536
+ <style>{`.pre-2e825338 {
3537
+ padding: 10px;
3538
+ color: red;
3539
+ text-align: center;
3540
+ }`}</style>
3541
+ </>;
3538
3542
  }
3539
3543
  var form_default = FormComponent;
3540
3544
 
@@ -3594,7 +3598,7 @@ var componentInfo14 = {
3594
3598
 
3595
3599
  // src/blocks/form/input/input.tsx
3596
3600
  function FormInputComponent(props) {
3597
- return <input
3601
+ return <><input
3598
3602
  {...{}}
3599
3603
  {...props.attributes}
3600
3604
  key={isEditing() && props.defaultValue ? props.defaultValue : "default-key"}
@@ -3604,7 +3608,7 @@ function FormInputComponent(props) {
3604
3608
  value={props.value}
3605
3609
  defaultValue={props.defaultValue}
3606
3610
  required={props.required}
3607
- />;
3611
+ /></>;
3608
3612
  }
3609
3613
  var input_default = FormInputComponent;
3610
3614
 
@@ -3656,7 +3660,7 @@ var componentInfo15 = {
3656
3660
  // src/blocks/form/select/select.tsx
3657
3661
  import { For as For8 } from "solid-js";
3658
3662
  function SelectComponent(props) {
3659
- return <select
3663
+ return <><select
3660
3664
  {...{}}
3661
3665
  {...props.attributes}
3662
3666
  value={props.value}
@@ -3666,7 +3670,7 @@ function SelectComponent(props) {
3666
3670
  ><For8 each={props.options}>{(option, _index) => {
3667
3671
  const index = _index();
3668
3672
  return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
3669
- }}</For8></select>;
3673
+ }}</For8></select></>;
3670
3674
  }
3671
3675
  var select_default = SelectComponent;
3672
3676
 
@@ -3700,7 +3704,7 @@ var componentInfo16 = {
3700
3704
 
3701
3705
  // src/blocks/form/submit-button/submit-button.tsx
3702
3706
  function SubmitButton(props) {
3703
- return <button type="submit" {...{}} {...props.attributes}>{props.text}</button>;
3707
+ return <><button type="submit" {...{}} {...props.attributes}>{props.text}</button></>;
3704
3708
  }
3705
3709
  var submit_button_default = SubmitButton;
3706
3710
 
@@ -3723,7 +3727,7 @@ var componentInfo17 = {
3723
3727
 
3724
3728
  // src/blocks/img/img.tsx
3725
3729
  function ImgComponent(props) {
3726
- return <img
3730
+ return <><img
3727
3731
  style={{
3728
3732
  "object-fit": props.backgroundSize || "cover",
3729
3733
  "object-position": props.backgroundPosition || "center"
@@ -3733,7 +3737,7 @@ function ImgComponent(props) {
3733
3737
  src={props.imgSrc || props.image}
3734
3738
  {...{}}
3735
3739
  {...props.attributes}
3736
- />;
3740
+ /></>;
3737
3741
  }
3738
3742
  var img_default = ImgComponent;
3739
3743
 
@@ -3848,7 +3852,7 @@ function Video(props) {
3848
3852
  ...videoProps()
3849
3853
  };
3850
3854
  });
3851
- return <div
3855
+ return <><div
3852
3856
  style={{
3853
3857
  position: "relative"
3854
3858
  }}
@@ -3904,7 +3908,7 @@ function Video(props) {
3904
3908
  height: "100%"
3905
3909
  }}
3906
3910
  >{props.children}</div></Show11>
3907
- </div>;
3911
+ </div></>;
3908
3912
  }
3909
3913
  var video_default = Video;
3910
3914
 
@@ -4038,7 +4042,7 @@ var getUpdateVariantVisibilityScript = ({
4038
4042
 
4039
4043
  // src/components/inlined-script.tsx
4040
4044
  function InlinedScript(props) {
4041
- return <script innerHTML={props.scriptStr} data-id={props.id} />;
4045
+ return <><script innerHTML={props.scriptStr} data-id={props.id} /></>;
4042
4046
  }
4043
4047
  var Inlined_script_default = InlinedScript;
4044
4048
 
@@ -4552,7 +4556,7 @@ function isFromTrustedHost(trustedHosts, e) {
4552
4556
  }
4553
4557
 
4554
4558
  // src/constants/sdk-version.ts
4555
- var SDK_VERSION = "1.0.33";
4559
+ var SDK_VERSION = "1.0.35";
4556
4560
 
4557
4561
  // src/functions/register.ts
4558
4562
  var registry = {};
@@ -5117,7 +5121,7 @@ function EnableEditor(props) {
5117
5121
  }
5118
5122
  }
5119
5123
  createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
5120
- return <builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
5124
+ return <><builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
5121
5125
  class={getWrapperClassName(
5122
5126
  props.content?.testVariationId || props.content?.id
5123
5127
  )}
@@ -5130,7 +5134,7 @@ function EnableEditor(props) {
5130
5134
  {...showContentProps()}
5131
5135
  {...props.contentWrapperProps}
5132
5136
  component={ContentWrapper()}
5133
- >{props.children}</Dynamic5></Show12></builder_context_default.Provider>;
5137
+ >{props.children}</Dynamic5></Show12></builder_context_default.Provider></>;
5134
5138
  }
5135
5139
  var Enable_editor_default = EnableEditor;
5136
5140
 
@@ -5149,10 +5153,10 @@ ${getFontCss({
5149
5153
  ${getDefaultStyles(props.isNestedRender)}
5150
5154
  `.trim()
5151
5155
  );
5152
- return <Inlined_styles_default
5156
+ return <><Inlined_styles_default
5153
5157
  id="builderio-content"
5154
5158
  styles={injectedStyles()}
5155
- />;
5159
+ /></>;
5156
5160
  }
5157
5161
  var Styles_default = ContentStyles;
5158
5162
 
@@ -5253,7 +5257,7 @@ function ContentComponent(props) {
5253
5257
  rootState: newRootState
5254
5258
  }));
5255
5259
  }
5256
- return <components_context_default.Provider
5260
+ return <><components_context_default.Provider
5257
5261
  value={{
5258
5262
  registeredComponents: registeredComponents()
5259
5263
  }}
@@ -5291,7 +5295,7 @@ function ContentComponent(props) {
5291
5295
  registeredComponents={registeredComponents()}
5292
5296
  linkComponent={props.linkComponent}
5293
5297
  />
5294
- </Enable_editor_default></components_context_default.Provider>;
5298
+ </Enable_editor_default></components_context_default.Provider></>;
5295
5299
  }
5296
5300
  var Content_default = ContentComponent;
5297
5301
 
@@ -5327,7 +5331,7 @@ function ContentVariants(props) {
5327
5331
  onMount4(() => {
5328
5332
  setShouldRenderVariants(false);
5329
5333
  });
5330
- return <>
5334
+ return <><>
5331
5335
  <Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
5332
5336
  id="builderio-init-variants-fns"
5333
5337
  scriptStr={getInitVariantsFnsScriptString()}
@@ -5389,7 +5393,7 @@ function ContentVariants(props) {
5389
5393
  contentWrapperProps={props.contentWrapperProps}
5390
5394
  trustedHosts={props.trustedHosts}
5391
5395
  />
5392
- </>;
5396
+ </></>;
5393
5397
  }
5394
5398
  var Content_variants_default = ContentVariants;
5395
5399
 
@@ -5453,7 +5457,7 @@ function Symbol(props) {
5453
5457
  setContent();
5454
5458
  }
5455
5459
  createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
5456
- return <div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
5460
+ return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
5457
5461
  isNestedRender={true}
5458
5462
  apiVersion={props.builderContext.apiVersion}
5459
5463
  apiKey={props.builderContext.apiKey}
@@ -5473,7 +5477,7 @@ function Symbol(props) {
5473
5477
  linkComponent={props.builderLinkComponent}
5474
5478
  blocksWrapper={blocksWrapper()}
5475
5479
  contentWrapper={contentWrapper()}
5476
- /></div>;
5480
+ /></div></>;
5477
5481
  }
5478
5482
  var symbol_default = Symbol;
5479
5483