@builder.io/sdk-solid 1.0.32 → 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";
@@ -998,7 +997,7 @@ var getSizesForBreakpoints = ({
998
997
 
999
998
  // src/components/inlined-styles.tsx
1000
999
  function InlinedStyles(props) {
1001
- return <style innerHTML={props.styles} data-id={props.id} />;
1000
+ return <><style innerHTML={props.styles} data-id={props.id} /></>;
1002
1001
  }
1003
1002
  var Inlined_styles_default = InlinedStyles;
1004
1003
 
@@ -1021,7 +1020,7 @@ function BlockStyles(props) {
1021
1020
  }
1022
1021
  return true;
1023
1022
  });
1024
- const css5 = createMemo(() => {
1023
+ const css = createMemo(() => {
1025
1024
  const processedBlock = getProcessedBlock({
1026
1025
  block: props.block,
1027
1026
  localState: props.context.localState,
@@ -1084,7 +1083,7 @@ function BlockStyles(props) {
1084
1083
  hoverStylesClass
1085
1084
  ].join(" ");
1086
1085
  });
1087
- return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css5()} /></Show2>;
1086
+ return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css()} /></Show2></>;
1088
1087
  }
1089
1088
  var Block_styles_default = BlockStyles;
1090
1089
 
@@ -1167,7 +1166,7 @@ function getBlockProperties({
1167
1166
 
1168
1167
  // src/components/block/components/block-wrapper.tsx
1169
1168
  function BlockWrapper(props) {
1170
- return <Dynamic_renderer_default
1169
+ return <><Dynamic_renderer_default
1171
1170
  TagName={props.Wrapper}
1172
1171
  attributes={getBlockProperties({
1173
1172
  block: props.block,
@@ -1181,7 +1180,7 @@ function BlockWrapper(props) {
1181
1180
  context: props.context.context,
1182
1181
  stripPrefix: true
1183
1182
  })}
1184
- >{props.children}</Dynamic_renderer_default>;
1183
+ >{props.children}</Dynamic_renderer_default></>;
1185
1184
  }
1186
1185
  var Block_wrapper_default = BlockWrapper;
1187
1186
 
@@ -1208,11 +1207,11 @@ function InteractiveElement(props) {
1208
1207
  })
1209
1208
  } : {};
1210
1209
  });
1211
- return <Dynamic2
1210
+ return <><Dynamic2
1212
1211
  {...props.wrapperProps}
1213
1212
  attributes={attributes()}
1214
1213
  component={props.Wrapper}
1215
- >{props.children}</Dynamic2>;
1214
+ >{props.children}</Dynamic2></>;
1216
1215
  }
1217
1216
  var interactive_element_default = InteractiveElement;
1218
1217
 
@@ -1254,7 +1253,7 @@ function ComponentRef(props) {
1254
1253
  const [Wrapper, setWrapper] = createSignal3(
1255
1254
  props.isInteractive ? interactive_element_default : props.componentRef
1256
1255
  );
1257
- return <Show3 when={props.componentRef}><Dynamic3
1256
+ return <><Show3 when={props.componentRef}><Dynamic3
1258
1257
  {...getWrapperProps({
1259
1258
  componentOptions: props.componentOptions,
1260
1259
  builderBlock: props.builderBlock,
@@ -1275,7 +1274,7 @@ function ComponentRef(props) {
1275
1274
  registeredComponents={props.registeredComponents}
1276
1275
  linkComponent={props.linkComponent}
1277
1276
  />;
1278
- }}</For></Dynamic3></Show3>;
1277
+ }}</For></Dynamic3></Show3></>;
1279
1278
  }
1280
1279
  var Component_ref_default = ComponentRef;
1281
1280
 
@@ -1283,12 +1282,12 @@ var Component_ref_default = ComponentRef;
1283
1282
  import { createSignal as createSignal4 } from "solid-js";
1284
1283
  function RepeatedBlock(props) {
1285
1284
  const [store, setStore] = createSignal4(props.repeatContext);
1286
- return <builder_context_default.Provider value={store()}><Block_default
1285
+ return <><builder_context_default.Provider value={store()}><Block_default
1287
1286
  block={props.block}
1288
1287
  context={store()}
1289
1288
  registeredComponents={props.registeredComponents}
1290
1289
  linkComponent={props.linkComponent}
1291
- /></builder_context_default.Provider>;
1290
+ /></builder_context_default.Provider></>;
1292
1291
  }
1293
1292
  var Repeated_block_default = RepeatedBlock;
1294
1293
 
@@ -1372,7 +1371,7 @@ function Block(props) {
1372
1371
  );
1373
1372
  }
1374
1373
  });
1375
- return <Show4 when={canShowBlock()}>
1374
+ return <><Show4 when={canShowBlock()}>
1376
1375
  <Block_styles_default block={props.block} context={props.context} />
1377
1376
  <Show4
1378
1377
  fallback={<Component_ref_default
@@ -1426,14 +1425,13 @@ function Block(props) {
1426
1425
  />;
1427
1426
  }}</For2>
1428
1427
  </Block_wrapper_default></Show4></Show4>
1429
- </Show4>;
1428
+ </Show4></>;
1430
1429
  }
1431
1430
  var Block_default = Block;
1432
1431
 
1433
1432
  // src/components/blocks/blocks-wrapper.tsx
1434
1433
  import { createMemo as createMemo6 } from "solid-js";
1435
1434
  import { Dynamic as Dynamic4 } from "solid-js/web";
1436
- import { css } from "solid-styled-components";
1437
1435
  function BlocksWrapper(props) {
1438
1436
  const className = createMemo6(() => {
1439
1437
  return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
@@ -1466,22 +1464,25 @@ function BlocksWrapper(props) {
1466
1464
  );
1467
1465
  }
1468
1466
  }
1469
- return <Dynamic4
1470
- class={className() + " " + css({
1471
- display: "flex",
1472
- flexDirection: "column",
1473
- alignItems: "stretch"
1474
- })}
1475
- builder-path={props.path}
1476
- builder-parent-id={props.parent}
1477
- {...{}}
1478
- style={props.styleProp}
1479
- onClick={(event) => onClick()}
1480
- onMouseEnter={(event) => onMouseEnter()}
1481
- onKeyPress={(event) => onClick()}
1482
- {...props.BlocksWrapperProps}
1483
- component={props.BlocksWrapper}
1484
- >{props.children}</Dynamic4>;
1467
+ return <>
1468
+ <Dynamic4
1469
+ class={className() + " dynamic-1bb6a3a2"}
1470
+ builder-path={props.path}
1471
+ builder-parent-id={props.parent}
1472
+ {...{}}
1473
+ style={props.styleProp}
1474
+ onClick={(event) => onClick()}
1475
+ onMouseEnter={(event) => onMouseEnter()}
1476
+ onKeyPress={(event) => onClick()}
1477
+ {...props.BlocksWrapperProps}
1478
+ component={props.BlocksWrapper}
1479
+ >{props.children}</Dynamic4>
1480
+ <style>{`.dynamic-1bb6a3a2 {
1481
+ display: flex;
1482
+ flex-direction: column;
1483
+ align-items: stretch;
1484
+ }`}</style>
1485
+ </>;
1485
1486
  }
1486
1487
  var Blocks_wrapper_default = BlocksWrapper;
1487
1488
 
@@ -1489,7 +1490,7 @@ var Blocks_wrapper_default = BlocksWrapper;
1489
1490
  function Blocks(props) {
1490
1491
  const builderContext = useContext(builder_context_default);
1491
1492
  const componentsContext = useContext(components_context_default);
1492
- return <Blocks_wrapper_default
1493
+ return <><Blocks_wrapper_default
1493
1494
  blocks={props.blocks}
1494
1495
  parent={props.parent}
1495
1496
  path={props.path}
@@ -1505,7 +1506,7 @@ function Blocks(props) {
1505
1506
  context={props.context || builderContext}
1506
1507
  registeredComponents={props.registeredComponents || componentsContext.registeredComponents}
1507
1508
  />;
1508
- }}</For3></Show5></Blocks_wrapper_default>;
1509
+ }}</For3></Show5></Blocks_wrapper_default></>;
1509
1510
  }
1510
1511
  var Blocks_default = Blocks;
1511
1512
 
@@ -1632,50 +1633,52 @@ function Columns(props) {
1632
1633
  style: mapStyleObjToStrIfNeeded(columnCssVars(index))
1633
1634
  };
1634
1635
  }
1635
- return <div
1636
- class={getColumnsClass(props.builderBlock?.id) + " " + css2({
1637
- display: "flex",
1638
- lineHeight: "normal"
1639
- })}
1640
- style={columnsCssVars()}
1641
- {...{}}
1642
- >
1643
- <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
1644
- id="builderio-columns"
1645
- styles={columnsStyles()}
1646
- /></Show6>
1647
- <For4 each={props.columns}>{(column, _index) => {
1648
- const index = _index();
1649
- return <Dynamic_renderer_default
1650
- key={index}
1651
- TagName={getTagName(column)}
1652
- actionAttributes={{}}
1653
- attributes={getAttributes(column, index)}
1654
- ><Blocks_default
1655
- path={`component.options.columns.${index}.blocks`}
1656
- parent={props.builderBlock.id}
1657
- styleProp={{
1658
- flexGrow: "1"
1659
- }}
1660
- context={props.builderContext}
1661
- registeredComponents={props.builderComponents}
1662
- linkComponent={props.builderLinkComponent}
1663
- blocks={column.blocks}
1664
- /></Dynamic_renderer_default>;
1665
- }}</For4>
1666
- </div>;
1636
+ return <>
1637
+ <div
1638
+ class={getColumnsClass(props.builderBlock?.id) + " div-f2f53158"}
1639
+ style={columnsCssVars()}
1640
+ {...{}}
1641
+ >
1642
+ <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
1643
+ id="builderio-columns"
1644
+ styles={columnsStyles()}
1645
+ /></Show6>
1646
+ <For4 each={props.columns}>{(column, _index) => {
1647
+ const index = _index();
1648
+ return <Dynamic_renderer_default
1649
+ key={index}
1650
+ TagName={getTagName(column)}
1651
+ actionAttributes={{}}
1652
+ attributes={getAttributes(column, index)}
1653
+ ><Blocks_default
1654
+ path={`component.options.columns.${index}.blocks`}
1655
+ parent={props.builderBlock.id}
1656
+ styleProp={{
1657
+ flexGrow: "1"
1658
+ }}
1659
+ context={props.builderContext}
1660
+ registeredComponents={props.builderComponents}
1661
+ linkComponent={props.builderLinkComponent}
1662
+ blocks={column.blocks}
1663
+ /></Dynamic_renderer_default>;
1664
+ }}</For4>
1665
+ </div>
1666
+ <style>{`.div-f2f53158 {
1667
+ display: flex;
1668
+ line-height: normal;
1669
+ }`}</style>
1670
+ </>;
1667
1671
  }
1668
1672
  var columns_default = Columns;
1669
1673
 
1670
1674
  // src/blocks/fragment/fragment.tsx
1671
1675
  function FragmentComponent(props) {
1672
- return <span>{props.children}</span>;
1676
+ return <><span>{props.children}</span></>;
1673
1677
  }
1674
1678
  var fragment_default = FragmentComponent;
1675
1679
 
1676
1680
  // src/blocks/image/image.tsx
1677
1681
  import { Show as Show7, createMemo as createMemo8 } from "solid-js";
1678
- import { css as css3 } from "solid-styled-components";
1679
1682
 
1680
1683
  // src/blocks/image/image.helpers.ts
1681
1684
  function removeProtocol(path) {
@@ -1762,59 +1765,60 @@ function Image(props) {
1762
1765
  return out;
1763
1766
  });
1764
1767
  return <>
1765
- <picture>
1766
- <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
1767
- <img
1768
- class={"builder-image" + (props.className ? " " + props.className : "") + " " + css3({
1769
- opacity: "1",
1770
- transition: "opacity 0.2s ease-in-out"
1771
- })}
1772
- loading={props.highPriority ? "eager" : "lazy"}
1773
- fetchpriority={props.highPriority ? "high" : "auto"}
1774
- alt={props.altText}
1775
- role={props.altText ? void 0 : "presentation"}
1768
+ <>
1769
+ <picture>
1770
+ <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
1771
+ <img
1772
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-54b38751"}
1773
+ loading={props.highPriority ? "eager" : "lazy"}
1774
+ fetchpriority={props.highPriority ? "high" : "auto"}
1775
+ alt={props.altText}
1776
+ role={props.altText ? void 0 : "presentation"}
1777
+ style={{
1778
+ "object-position": props.backgroundPosition || "center",
1779
+ "object-fit": props.backgroundSize || "cover",
1780
+ ...aspectRatioCss()
1781
+ }}
1782
+ src={props.image}
1783
+ srcset={srcSetToUse()}
1784
+ sizes={props.sizes}
1785
+ />
1786
+ </picture>
1787
+ <Show7
1788
+ when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
1789
+ ><div
1790
+ class="builder-image-sizer div-54b38751"
1776
1791
  style={{
1777
- "object-position": props.backgroundPosition || "center",
1778
- "object-fit": props.backgroundSize || "cover",
1779
- ...aspectRatioCss()
1792
+ "padding-top": props.aspectRatio * 100 + "%"
1780
1793
  }}
1781
- src={props.image}
1782
- srcset={srcSetToUse()}
1783
- sizes={props.sizes}
1784
- />
1785
- </picture>
1786
- <Show7
1787
- when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
1788
- ><div
1789
- class={"builder-image-sizer " + css3({
1790
- width: "100%",
1791
- pointerEvents: "none",
1792
- fontSize: "0"
1793
- })}
1794
- style={{
1795
- "padding-top": props.aspectRatio * 100 + "%"
1796
- }}
1797
- /></Show7>
1798
- <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
1799
- <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div
1800
- class={css3({
1801
- display: "flex",
1802
- flexDirection: "column",
1803
- alignItems: "stretch",
1804
- position: "absolute",
1805
- top: "0",
1806
- left: "0",
1807
- width: "100%",
1808
- height: "100%"
1809
- })}
1810
- >{props.children}</div></Show7>
1794
+ /></Show7>
1795
+ <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
1796
+ <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-54b38751-2">{props.children}</div></Show7>
1797
+ </>
1798
+ <style>{`.img-54b38751 {
1799
+ opacity: 1;
1800
+ transition: opacity 0.2s ease-in-out;
1801
+ }.div-54b38751 {
1802
+ width: 100%;
1803
+ pointer-events: none;
1804
+ font-size: 0;
1805
+ }.div-54b38751-2 {
1806
+ display: flex;
1807
+ flex-direction: column;
1808
+ align-items: stretch;
1809
+ position: absolute;
1810
+ top: 0;
1811
+ left: 0;
1812
+ width: 100%;
1813
+ height: 100%;
1814
+ }`}</style>
1811
1815
  </>;
1812
1816
  }
1813
1817
  var image_default = Image;
1814
1818
 
1815
1819
  // src/blocks/section/section.tsx
1816
1820
  function SectionComponent(props) {
1817
- return <section
1821
+ return <><section
1818
1822
  {...{}}
1819
1823
  {...props.attributes}
1820
1824
  style={{
@@ -1829,7 +1833,7 @@ function SectionComponent(props) {
1829
1833
  "margin-left": "auto",
1830
1834
  "margin-right": "auto"
1831
1835
  }}
1832
- >{props.children}</section>;
1836
+ >{props.children}</section></>;
1833
1837
  }
1834
1838
  var section_default = SectionComponent;
1835
1839
 
@@ -2271,7 +2275,7 @@ function Accordion(props) {
2271
2275
  setOpen(onlyOneAtATime() ? [index] : open().concat(index));
2272
2276
  }
2273
2277
  }
2274
- return <div class="builder-accordion" style={accordionStyles()}><For5 each={props.items}>{(item, _index) => {
2278
+ return <><div class="builder-accordion" style={accordionStyles()}><For5 each={props.items}>{(item, _index) => {
2275
2279
  const index = _index();
2276
2280
  return <>
2277
2281
  <div
@@ -2305,7 +2309,7 @@ function Accordion(props) {
2305
2309
  linkComponent={props.builderLinkComponent}
2306
2310
  /></div></Show8>
2307
2311
  </>;
2308
- }}</For5></div>;
2312
+ }}</For5></div></>;
2309
2313
  }
2310
2314
  var accordion_default = Accordion;
2311
2315
 
@@ -2590,7 +2594,7 @@ var componentInfo5 = {
2590
2594
  name: "image",
2591
2595
  type: "file",
2592
2596
  bubble: true,
2593
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
2597
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
2594
2598
  required: true,
2595
2599
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2596
2600
  onChange: (options) => {
@@ -2761,7 +2765,7 @@ var componentInfo7 = {
2761
2765
 
2762
2766
  // src/blocks/slot/slot.tsx
2763
2767
  function Slot(props) {
2764
- return <div
2768
+ return <><div
2765
2769
  style={{
2766
2770
  "pointer-events": "auto"
2767
2771
  }}
@@ -2773,7 +2777,7 @@ function Slot(props) {
2773
2777
  path={`symbol.data.${props.name}`}
2774
2778
  context={props.builderContext}
2775
2779
  blocks={props.builderContext.rootState?.[props.name]}
2776
- /></div>;
2780
+ /></div></>;
2777
2781
  }
2778
2782
  var slot_default = Slot;
2779
2783
 
@@ -2969,7 +2973,7 @@ function Tabs(props) {
2969
2973
  setActiveTab(index);
2970
2974
  }
2971
2975
  }
2972
- return <div>
2976
+ return <><div>
2973
2977
  <div
2974
2978
  class="builder-tabs-wrap"
2975
2979
  style={{
@@ -3004,7 +3008,7 @@ function Tabs(props) {
3004
3008
  registeredComponents={props.builderComponents}
3005
3009
  linkComponent={props.builderLinkComponent}
3006
3010
  /></div></Show9>
3007
- </div>;
3011
+ </div></>;
3008
3012
  }
3009
3013
  var tabs_default = Tabs;
3010
3014
 
@@ -3031,13 +3035,13 @@ var componentInfo10 = {
3031
3035
 
3032
3036
  // src/blocks/text/text.tsx
3033
3037
  function Text(props) {
3034
- return <div
3038
+ return <><div
3035
3039
  class="builder-text"
3036
3040
  innerHTML={props.text?.toString() || ""}
3037
3041
  style={{
3038
3042
  outline: "none"
3039
3043
  }}
3040
- />;
3044
+ /></>;
3041
3045
  }
3042
3046
  var text_default = Text;
3043
3047
 
@@ -3104,11 +3108,11 @@ function CustomCode(props) {
3104
3108
  }
3105
3109
  }
3106
3110
  });
3107
- return <div
3111
+ return <><div
3108
3112
  class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
3109
3113
  ref={elementRef}
3110
3114
  innerHTML={props.code}
3111
- />;
3115
+ /></>;
3112
3116
  }
3113
3117
  var custom_code_default = CustomCode;
3114
3118
 
@@ -3126,7 +3130,7 @@ var componentInfo12 = {
3126
3130
  const url = options.get("url");
3127
3131
  if (url) {
3128
3132
  options.set("content", "Loading...");
3129
- const apiKey = "ae0e60e78201a3f2b0de4b";
3133
+ const apiKey = _iframelyApiKey;
3130
3134
  return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
3131
3135
  if (options.get("url") === url) {
3132
3136
  if (data.html) {
@@ -3195,7 +3199,7 @@ function Embed(props) {
3195
3199
  createEffect(
3196
3200
  on(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
3197
3201
  );
3198
- return <div class="builder-embed" ref={elem} innerHTML={props.content} />;
3202
+ return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
3199
3203
  }
3200
3204
  var embed_default = Embed;
3201
3205
 
@@ -3435,7 +3439,6 @@ var componentInfo13 = {
3435
3439
 
3436
3440
  // src/blocks/form/form/form.tsx
3437
3441
  import { Show as Show10, For as For7, createSignal as createSignal13 } from "solid-js";
3438
- import { css as css4 } from "solid-styled-components";
3439
3442
 
3440
3443
  // src/functions/get-env.ts
3441
3444
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -3638,50 +3641,51 @@ function FormComponent(props) {
3638
3641
  }
3639
3642
  }
3640
3643
  let formRef;
3641
- return <form
3642
- validate={props.validate}
3643
- ref={formRef}
3644
- action={!props.sendWithJs && props.action}
3645
- method={props.method}
3646
- name={props.name}
3647
- onSubmit={(event) => onSubmit(event)}
3648
- {...{}}
3649
- {...{}}
3650
- {...props.attributes}
3651
- >
3652
- <Show10 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
3653
- const idx = _index();
3654
- return <Block_default
3655
- key={`form-block-${idx}`}
3656
- block={block}
3644
+ return <>
3645
+ <form
3646
+ validate={props.validate}
3647
+ ref={formRef}
3648
+ action={!props.sendWithJs && props.action}
3649
+ method={props.method}
3650
+ name={props.name}
3651
+ onSubmit={(event) => onSubmit(event)}
3652
+ {...{}}
3653
+ {...{}}
3654
+ {...props.attributes}
3655
+ >
3656
+ <Show10 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
3657
+ const idx = _index();
3658
+ return <Block_default
3659
+ key={`form-block-${idx}`}
3660
+ block={block}
3661
+ context={props.builderContext}
3662
+ registeredComponents={props.builderComponents}
3663
+ linkComponent={props.builderLinkComponent}
3664
+ />;
3665
+ }}</For7></Show10>
3666
+ <Show10 when={submissionState() === "error"}><Blocks_default
3667
+ path="errorMessage"
3668
+ blocks={props.errorMessage}
3657
3669
  context={props.builderContext}
3658
- registeredComponents={props.builderComponents}
3659
- linkComponent={props.builderLinkComponent}
3660
- />;
3661
- }}</For7></Show10>
3662
- <Show10 when={submissionState() === "error"}><Blocks_default
3663
- path="errorMessage"
3664
- blocks={props.errorMessage}
3665
- context={props.builderContext}
3666
- /></Show10>
3667
- <Show10 when={submissionState() === "sending"}><Blocks_default
3668
- path="sendingMessage"
3669
- blocks={props.sendingMessage}
3670
- context={props.builderContext}
3671
- /></Show10>
3672
- <Show10 when={submissionState() === "error" && responseData()}><pre
3673
- class={"builder-form-error-text " + css4({
3674
- padding: "10px",
3675
- color: "red",
3676
- textAlign: "center"
3677
- })}
3678
- >{JSON.stringify(responseData(), null, 2)}</pre></Show10>
3679
- <Show10 when={submissionState() === "success"}><Blocks_default
3680
- path="successMessage"
3681
- blocks={props.successMessage}
3682
- context={props.builderContext}
3683
- /></Show10>
3684
- </form>;
3670
+ /></Show10>
3671
+ <Show10 when={submissionState() === "sending"}><Blocks_default
3672
+ path="sendingMessage"
3673
+ blocks={props.sendingMessage}
3674
+ context={props.builderContext}
3675
+ /></Show10>
3676
+ <Show10 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-2e825338">{JSON.stringify(responseData(), null, 2)}</pre></Show10>
3677
+ <Show10 when={submissionState() === "success"}><Blocks_default
3678
+ path="successMessage"
3679
+ blocks={props.successMessage}
3680
+ context={props.builderContext}
3681
+ /></Show10>
3682
+ </form>
3683
+ <style>{`.pre-2e825338 {
3684
+ padding: 10px;
3685
+ color: red;
3686
+ text-align: center;
3687
+ }`}</style>
3688
+ </>;
3685
3689
  }
3686
3690
  var form_default = FormComponent;
3687
3691
 
@@ -3741,7 +3745,7 @@ var componentInfo14 = {
3741
3745
 
3742
3746
  // src/blocks/form/input/input.tsx
3743
3747
  function FormInputComponent(props) {
3744
- return <input
3748
+ return <><input
3745
3749
  {...{}}
3746
3750
  {...props.attributes}
3747
3751
  key={isEditing() && props.defaultValue ? props.defaultValue : "default-key"}
@@ -3751,7 +3755,7 @@ function FormInputComponent(props) {
3751
3755
  value={props.value}
3752
3756
  defaultValue={props.defaultValue}
3753
3757
  required={props.required}
3754
- />;
3758
+ /></>;
3755
3759
  }
3756
3760
  var input_default = FormInputComponent;
3757
3761
 
@@ -3803,7 +3807,7 @@ var componentInfo15 = {
3803
3807
  // src/blocks/form/select/select.tsx
3804
3808
  import { For as For8 } from "solid-js";
3805
3809
  function SelectComponent(props) {
3806
- return <select
3810
+ return <><select
3807
3811
  {...{}}
3808
3812
  {...props.attributes}
3809
3813
  value={props.value}
@@ -3813,7 +3817,7 @@ function SelectComponent(props) {
3813
3817
  ><For8 each={props.options}>{(option, _index) => {
3814
3818
  const index = _index();
3815
3819
  return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
3816
- }}</For8></select>;
3820
+ }}</For8></select></>;
3817
3821
  }
3818
3822
  var select_default = SelectComponent;
3819
3823
 
@@ -3847,7 +3851,7 @@ var componentInfo16 = {
3847
3851
 
3848
3852
  // src/blocks/form/submit-button/submit-button.tsx
3849
3853
  function SubmitButton(props) {
3850
- return <button type="submit" {...{}} {...props.attributes}>{props.text}</button>;
3854
+ return <><button type="submit" {...{}} {...props.attributes}>{props.text}</button></>;
3851
3855
  }
3852
3856
  var submit_button_default = SubmitButton;
3853
3857
 
@@ -3870,7 +3874,7 @@ var componentInfo17 = {
3870
3874
 
3871
3875
  // src/blocks/img/img.tsx
3872
3876
  function ImgComponent(props) {
3873
- return <img
3877
+ return <><img
3874
3878
  style={{
3875
3879
  "object-fit": props.backgroundSize || "cover",
3876
3880
  "object-position": props.backgroundPosition || "center"
@@ -3880,7 +3884,7 @@ function ImgComponent(props) {
3880
3884
  src={props.imgSrc || props.image}
3881
3885
  {...{}}
3882
3886
  {...props.attributes}
3883
- />;
3887
+ /></>;
3884
3888
  }
3885
3889
  var img_default = ImgComponent;
3886
3890
 
@@ -3995,7 +3999,7 @@ function Video(props) {
3995
3999
  ...videoProps()
3996
4000
  };
3997
4001
  });
3998
- return <div
4002
+ return <><div
3999
4003
  style={{
4000
4004
  position: "relative"
4001
4005
  }}
@@ -4051,7 +4055,7 @@ function Video(props) {
4051
4055
  height: "100%"
4052
4056
  }}
4053
4057
  >{props.children}</div></Show11>
4054
- </div>;
4058
+ </div></>;
4055
4059
  }
4056
4060
  var video_default = Video;
4057
4061
 
@@ -4185,7 +4189,7 @@ var getUpdateVariantVisibilityScript = ({
4185
4189
 
4186
4190
  // src/components/inlined-script.tsx
4187
4191
  function InlinedScript(props) {
4188
- return <script innerHTML={props.scriptStr} data-id={props.id} />;
4192
+ return <><script innerHTML={props.scriptStr} data-id={props.id} /></>;
4189
4193
  }
4190
4194
  var Inlined_script_default = InlinedScript;
4191
4195
 
@@ -4686,12 +4690,15 @@ var getInteractionPropertiesForEvent = (event) => {
4686
4690
  // src/functions/is-from-trusted-host.ts
4687
4691
  var DEFAULT_TRUSTED_HOSTS = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4688
4692
  function isFromTrustedHost(trustedHosts, e) {
4693
+ if (!e.origin.startsWith("http") && !e.origin.startsWith("https")) {
4694
+ return false;
4695
+ }
4689
4696
  const url = new URL(e.origin), hostname = url.hostname;
4690
4697
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4691
4698
  }
4692
4699
 
4693
4700
  // src/constants/sdk-version.ts
4694
- var SDK_VERSION = "1.0.32";
4701
+ var SDK_VERSION = "1.0.35";
4695
4702
 
4696
4703
  // src/functions/register.ts
4697
4704
  var registry = {};
@@ -5254,7 +5261,7 @@ function EnableEditor(props) {
5254
5261
  }
5255
5262
  }
5256
5263
  createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
5257
- return <builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
5264
+ return <><builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
5258
5265
  class={getWrapperClassName(
5259
5266
  props.content?.testVariationId || props.content?.id
5260
5267
  )}
@@ -5267,7 +5274,7 @@ function EnableEditor(props) {
5267
5274
  {...showContentProps()}
5268
5275
  {...props.contentWrapperProps}
5269
5276
  component={ContentWrapper()}
5270
- >{props.children}</Dynamic5></Show12></builder_context_default.Provider>;
5277
+ >{props.children}</Dynamic5></Show12></builder_context_default.Provider></>;
5271
5278
  }
5272
5279
  var Enable_editor_default = EnableEditor;
5273
5280
 
@@ -5286,10 +5293,10 @@ ${getFontCss({
5286
5293
  ${getDefaultStyles(props.isNestedRender)}
5287
5294
  `.trim()
5288
5295
  );
5289
- return <Inlined_styles_default
5296
+ return <><Inlined_styles_default
5290
5297
  id="builderio-content"
5291
5298
  styles={injectedStyles()}
5292
- />;
5299
+ /></>;
5293
5300
  }
5294
5301
  var Styles_default = ContentStyles;
5295
5302
 
@@ -5390,7 +5397,7 @@ function ContentComponent(props) {
5390
5397
  rootState: newRootState
5391
5398
  }));
5392
5399
  }
5393
- return <components_context_default.Provider
5400
+ return <><components_context_default.Provider
5394
5401
  value={{
5395
5402
  registeredComponents: registeredComponents()
5396
5403
  }}
@@ -5428,7 +5435,7 @@ function ContentComponent(props) {
5428
5435
  registeredComponents={registeredComponents()}
5429
5436
  linkComponent={props.linkComponent}
5430
5437
  />
5431
- </Enable_editor_default></components_context_default.Provider>;
5438
+ </Enable_editor_default></components_context_default.Provider></>;
5432
5439
  }
5433
5440
  var Content_default = ContentComponent;
5434
5441
 
@@ -5464,7 +5471,7 @@ function ContentVariants(props) {
5464
5471
  onMount4(() => {
5465
5472
  setShouldRenderVariants(false);
5466
5473
  });
5467
- return <>
5474
+ return <><>
5468
5475
  <Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
5469
5476
  id="builderio-init-variants-fns"
5470
5477
  scriptStr={getInitVariantsFnsScriptString()}
@@ -5526,7 +5533,7 @@ function ContentVariants(props) {
5526
5533
  contentWrapperProps={props.contentWrapperProps}
5527
5534
  trustedHosts={props.trustedHosts}
5528
5535
  />
5529
- </>;
5536
+ </></>;
5530
5537
  }
5531
5538
  var Content_variants_default = ContentVariants;
5532
5539
 
@@ -5590,7 +5597,7 @@ function Symbol(props) {
5590
5597
  setContent();
5591
5598
  }
5592
5599
  createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
5593
- return <div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
5600
+ return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
5594
5601
  isNestedRender={true}
5595
5602
  apiVersion={props.builderContext.apiVersion}
5596
5603
  apiKey={props.builderContext.apiKey}
@@ -5610,7 +5617,7 @@ function Symbol(props) {
5610
5617
  linkComponent={props.builderLinkComponent}
5611
5618
  blocksWrapper={blocksWrapper()}
5612
5619
  contentWrapper={contentWrapper()}
5613
- /></div>;
5620
+ /></div></>;
5614
5621
  }
5615
5622
  var symbol_default = Symbol;
5616
5623