@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.
@@ -18,7 +18,7 @@ var isEmptyElement = (tagName) => {
18
18
 
19
19
  // src/components/dynamic-renderer/dynamic-renderer.tsx
20
20
  function DynamicRenderer(props) {
21
- return <Show
21
+ return <><Show
22
22
  fallback={<Dynamic
23
23
  {...props.attributes}
24
24
  {...props.actionAttributes}
@@ -36,7 +36,7 @@ function DynamicRenderer(props) {
36
36
  {...props.attributes}
37
37
  {...props.actionAttributes}
38
38
  component={props.TagName}
39
- >{props.children}</Dynamic></Show></Show>;
39
+ >{props.children}</Dynamic></Show></Show></>;
40
40
  }
41
41
  var Dynamic_renderer_default = DynamicRenderer;
42
42
 
@@ -74,17 +74,16 @@ function Button(props) {
74
74
  }
75
75
  };
76
76
  }
77
- return <Dynamic_renderer_default
77
+ return <><Dynamic_renderer_default
78
78
  attributes={attrs()}
79
79
  TagName={props.link ? props.builderLinkComponent || "a" : "button"}
80
80
  actionAttributes={{}}
81
- >{props.text}</Dynamic_renderer_default>;
81
+ >{props.text}</Dynamic_renderer_default></>;
82
82
  }
83
83
  var button_default = Button;
84
84
 
85
85
  // src/blocks/columns/columns.tsx
86
86
  import { Show as Show6, For as For4, createSignal as createSignal7 } from "solid-js";
87
- import { css as css2 } from "solid-styled-components";
88
87
 
89
88
  // src/components/blocks/blocks.tsx
90
89
  import { useContext, Show as Show5, For as For3 } from "solid-js";
@@ -3989,7 +3988,7 @@ var getSizesForBreakpoints = ({
3989
3988
 
3990
3989
  // src/components/inlined-styles.tsx
3991
3990
  function InlinedStyles(props) {
3992
- return <style innerHTML={props.styles} data-id={props.id} />;
3991
+ return <><style innerHTML={props.styles} data-id={props.id} /></>;
3993
3992
  }
3994
3993
  var Inlined_styles_default = InlinedStyles;
3995
3994
 
@@ -4012,7 +4011,7 @@ function BlockStyles(props) {
4012
4011
  }
4013
4012
  return true;
4014
4013
  });
4015
- const css5 = createMemo(() => {
4014
+ const css = createMemo(() => {
4016
4015
  const processedBlock = getProcessedBlock({
4017
4016
  block: props.block,
4018
4017
  localState: props.context.localState,
@@ -4075,7 +4074,7 @@ function BlockStyles(props) {
4075
4074
  hoverStylesClass
4076
4075
  ].join(" ");
4077
4076
  });
4078
- return <Show2 when={TARGET !== "reactNative" && css5() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css5()} /></Show2>;
4077
+ return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default id="builderio-block" styles={css()} /></Show2></>;
4079
4078
  }
4080
4079
  var Block_styles_default = BlockStyles;
4081
4080
 
@@ -4158,7 +4157,7 @@ function getBlockProperties({
4158
4157
 
4159
4158
  // src/components/block/components/block-wrapper.tsx
4160
4159
  function BlockWrapper(props) {
4161
- return <Dynamic_renderer_default
4160
+ return <><Dynamic_renderer_default
4162
4161
  TagName={props.Wrapper}
4163
4162
  attributes={getBlockProperties({
4164
4163
  block: props.block,
@@ -4172,7 +4171,7 @@ function BlockWrapper(props) {
4172
4171
  context: props.context.context,
4173
4172
  stripPrefix: true
4174
4173
  })}
4175
- >{props.children}</Dynamic_renderer_default>;
4174
+ >{props.children}</Dynamic_renderer_default></>;
4176
4175
  }
4177
4176
  var Block_wrapper_default = BlockWrapper;
4178
4177
 
@@ -4199,11 +4198,11 @@ function InteractiveElement(props) {
4199
4198
  })
4200
4199
  } : {};
4201
4200
  });
4202
- return <Dynamic2
4201
+ return <><Dynamic2
4203
4202
  {...props.wrapperProps}
4204
4203
  attributes={attributes()}
4205
4204
  component={props.Wrapper}
4206
- >{props.children}</Dynamic2>;
4205
+ >{props.children}</Dynamic2></>;
4207
4206
  }
4208
4207
  var interactive_element_default = InteractiveElement;
4209
4208
 
@@ -4245,7 +4244,7 @@ function ComponentRef(props) {
4245
4244
  const [Wrapper, setWrapper] = createSignal3(
4246
4245
  props.isInteractive ? interactive_element_default : props.componentRef
4247
4246
  );
4248
- return <Show3 when={props.componentRef}><Dynamic3
4247
+ return <><Show3 when={props.componentRef}><Dynamic3
4249
4248
  {...getWrapperProps({
4250
4249
  componentOptions: props.componentOptions,
4251
4250
  builderBlock: props.builderBlock,
@@ -4266,7 +4265,7 @@ function ComponentRef(props) {
4266
4265
  registeredComponents={props.registeredComponents}
4267
4266
  linkComponent={props.linkComponent}
4268
4267
  />;
4269
- }}</For></Dynamic3></Show3>;
4268
+ }}</For></Dynamic3></Show3></>;
4270
4269
  }
4271
4270
  var Component_ref_default = ComponentRef;
4272
4271
 
@@ -4274,12 +4273,12 @@ var Component_ref_default = ComponentRef;
4274
4273
  import { createSignal as createSignal4 } from "solid-js";
4275
4274
  function RepeatedBlock(props) {
4276
4275
  const [store, setStore] = createSignal4(props.repeatContext);
4277
- return <builder_context_default.Provider value={store()}><Block_default
4276
+ return <><builder_context_default.Provider value={store()}><Block_default
4278
4277
  block={props.block}
4279
4278
  context={store()}
4280
4279
  registeredComponents={props.registeredComponents}
4281
4280
  linkComponent={props.linkComponent}
4282
- /></builder_context_default.Provider>;
4281
+ /></builder_context_default.Provider></>;
4283
4282
  }
4284
4283
  var Repeated_block_default = RepeatedBlock;
4285
4284
 
@@ -4363,7 +4362,7 @@ function Block(props) {
4363
4362
  );
4364
4363
  }
4365
4364
  });
4366
- return <Show4 when={canShowBlock()}>
4365
+ return <><Show4 when={canShowBlock()}>
4367
4366
  <Block_styles_default block={props.block} context={props.context} />
4368
4367
  <Show4
4369
4368
  fallback={<Component_ref_default
@@ -4417,14 +4416,13 @@ function Block(props) {
4417
4416
  />;
4418
4417
  }}</For2>
4419
4418
  </Block_wrapper_default></Show4></Show4>
4420
- </Show4>;
4419
+ </Show4></>;
4421
4420
  }
4422
4421
  var Block_default = Block;
4423
4422
 
4424
4423
  // src/components/blocks/blocks-wrapper.tsx
4425
4424
  import { createMemo as createMemo6 } from "solid-js";
4426
4425
  import { Dynamic as Dynamic4 } from "solid-js/web";
4427
- import { css } from "solid-styled-components";
4428
4426
  function BlocksWrapper(props) {
4429
4427
  const className = createMemo6(() => {
4430
4428
  return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
@@ -4457,22 +4455,25 @@ function BlocksWrapper(props) {
4457
4455
  );
4458
4456
  }
4459
4457
  }
4460
- return <Dynamic4
4461
- class={className() + " " + css({
4462
- display: "flex",
4463
- flexDirection: "column",
4464
- alignItems: "stretch"
4465
- })}
4466
- builder-path={props.path}
4467
- builder-parent-id={props.parent}
4468
- {...{}}
4469
- style={props.styleProp}
4470
- onClick={(event) => onClick()}
4471
- onMouseEnter={(event) => onMouseEnter()}
4472
- onKeyPress={(event) => onClick()}
4473
- {...props.BlocksWrapperProps}
4474
- component={props.BlocksWrapper}
4475
- >{props.children}</Dynamic4>;
4458
+ return <>
4459
+ <Dynamic4
4460
+ class={className() + " dynamic-1bb6a3a2"}
4461
+ builder-path={props.path}
4462
+ builder-parent-id={props.parent}
4463
+ {...{}}
4464
+ style={props.styleProp}
4465
+ onClick={(event) => onClick()}
4466
+ onMouseEnter={(event) => onMouseEnter()}
4467
+ onKeyPress={(event) => onClick()}
4468
+ {...props.BlocksWrapperProps}
4469
+ component={props.BlocksWrapper}
4470
+ >{props.children}</Dynamic4>
4471
+ <style>{`.dynamic-1bb6a3a2 {
4472
+ display: flex;
4473
+ flex-direction: column;
4474
+ align-items: stretch;
4475
+ }`}</style>
4476
+ </>;
4476
4477
  }
4477
4478
  var Blocks_wrapper_default = BlocksWrapper;
4478
4479
 
@@ -4480,7 +4481,7 @@ var Blocks_wrapper_default = BlocksWrapper;
4480
4481
  function Blocks(props) {
4481
4482
  const builderContext = useContext(builder_context_default);
4482
4483
  const componentsContext = useContext(components_context_default);
4483
- return <Blocks_wrapper_default
4484
+ return <><Blocks_wrapper_default
4484
4485
  blocks={props.blocks}
4485
4486
  parent={props.parent}
4486
4487
  path={props.path}
@@ -4496,7 +4497,7 @@ function Blocks(props) {
4496
4497
  context={props.context || builderContext}
4497
4498
  registeredComponents={props.registeredComponents || componentsContext.registeredComponents}
4498
4499
  />;
4499
- }}</For3></Show5></Blocks_wrapper_default>;
4500
+ }}</For3></Show5></Blocks_wrapper_default></>;
4500
4501
  }
4501
4502
  var Blocks_default = Blocks;
4502
4503
 
@@ -4623,50 +4624,52 @@ function Columns(props) {
4623
4624
  style: mapStyleObjToStrIfNeeded(columnCssVars(index))
4624
4625
  };
4625
4626
  }
4626
- return <div
4627
- class={getColumnsClass(props.builderBlock?.id) + " " + css2({
4628
- display: "flex",
4629
- lineHeight: "normal"
4630
- })}
4631
- style={columnsCssVars()}
4632
- {...{}}
4633
- >
4634
- <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
4635
- id="builderio-columns"
4636
- styles={columnsStyles()}
4637
- /></Show6>
4638
- <For4 each={props.columns}>{(column, _index) => {
4639
- const index = _index();
4640
- return <Dynamic_renderer_default
4641
- key={index}
4642
- TagName={getTagName(column)}
4643
- actionAttributes={{}}
4644
- attributes={getAttributes(column, index)}
4645
- ><Blocks_default
4646
- path={`component.options.columns.${index}.blocks`}
4647
- parent={props.builderBlock.id}
4648
- styleProp={{
4649
- flexGrow: "1"
4650
- }}
4651
- context={props.builderContext}
4652
- registeredComponents={props.builderComponents}
4653
- linkComponent={props.builderLinkComponent}
4654
- blocks={column.blocks}
4655
- /></Dynamic_renderer_default>;
4656
- }}</For4>
4657
- </div>;
4627
+ return <>
4628
+ <div
4629
+ class={getColumnsClass(props.builderBlock?.id) + " div-f2f53158"}
4630
+ style={columnsCssVars()}
4631
+ {...{}}
4632
+ >
4633
+ <Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
4634
+ id="builderio-columns"
4635
+ styles={columnsStyles()}
4636
+ /></Show6>
4637
+ <For4 each={props.columns}>{(column, _index) => {
4638
+ const index = _index();
4639
+ return <Dynamic_renderer_default
4640
+ key={index}
4641
+ TagName={getTagName(column)}
4642
+ actionAttributes={{}}
4643
+ attributes={getAttributes(column, index)}
4644
+ ><Blocks_default
4645
+ path={`component.options.columns.${index}.blocks`}
4646
+ parent={props.builderBlock.id}
4647
+ styleProp={{
4648
+ flexGrow: "1"
4649
+ }}
4650
+ context={props.builderContext}
4651
+ registeredComponents={props.builderComponents}
4652
+ linkComponent={props.builderLinkComponent}
4653
+ blocks={column.blocks}
4654
+ /></Dynamic_renderer_default>;
4655
+ }}</For4>
4656
+ </div>
4657
+ <style>{`.div-f2f53158 {
4658
+ display: flex;
4659
+ line-height: normal;
4660
+ }`}</style>
4661
+ </>;
4658
4662
  }
4659
4663
  var columns_default = Columns;
4660
4664
 
4661
4665
  // src/blocks/fragment/fragment.tsx
4662
4666
  function FragmentComponent(props) {
4663
- return <span>{props.children}</span>;
4667
+ return <><span>{props.children}</span></>;
4664
4668
  }
4665
4669
  var fragment_default = FragmentComponent;
4666
4670
 
4667
4671
  // src/blocks/image/image.tsx
4668
4672
  import { Show as Show7, createMemo as createMemo8 } from "solid-js";
4669
- import { css as css3 } from "solid-styled-components";
4670
4673
 
4671
4674
  // src/blocks/image/image.helpers.ts
4672
4675
  function removeProtocol(path) {
@@ -4753,59 +4756,60 @@ function Image(props) {
4753
4756
  return out;
4754
4757
  });
4755
4758
  return <>
4756
- <picture>
4757
- <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
4758
- <img
4759
- class={"builder-image" + (props.className ? " " + props.className : "") + " " + css3({
4760
- opacity: "1",
4761
- transition: "opacity 0.2s ease-in-out"
4762
- })}
4763
- loading={props.highPriority ? "eager" : "lazy"}
4764
- fetchpriority={props.highPriority ? "high" : "auto"}
4765
- alt={props.altText}
4766
- role={props.altText ? void 0 : "presentation"}
4759
+ <>
4760
+ <picture>
4761
+ <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
4762
+ <img
4763
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-54b38751"}
4764
+ loading={props.highPriority ? "eager" : "lazy"}
4765
+ fetchpriority={props.highPriority ? "high" : "auto"}
4766
+ alt={props.altText}
4767
+ role={props.altText ? void 0 : "presentation"}
4768
+ style={{
4769
+ "object-position": props.backgroundPosition || "center",
4770
+ "object-fit": props.backgroundSize || "cover",
4771
+ ...aspectRatioCss()
4772
+ }}
4773
+ src={props.image}
4774
+ srcset={srcSetToUse()}
4775
+ sizes={props.sizes}
4776
+ />
4777
+ </picture>
4778
+ <Show7
4779
+ when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
4780
+ ><div
4781
+ class="builder-image-sizer div-54b38751"
4767
4782
  style={{
4768
- "object-position": props.backgroundPosition || "center",
4769
- "object-fit": props.backgroundSize || "cover",
4770
- ...aspectRatioCss()
4783
+ "padding-top": props.aspectRatio * 100 + "%"
4771
4784
  }}
4772
- src={props.image}
4773
- srcset={srcSetToUse()}
4774
- sizes={props.sizes}
4775
- />
4776
- </picture>
4777
- <Show7
4778
- when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
4779
- ><div
4780
- class={"builder-image-sizer " + css3({
4781
- width: "100%",
4782
- pointerEvents: "none",
4783
- fontSize: "0"
4784
- })}
4785
- style={{
4786
- "padding-top": props.aspectRatio * 100 + "%"
4787
- }}
4788
- /></Show7>
4789
- <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
4790
- <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div
4791
- class={css3({
4792
- display: "flex",
4793
- flexDirection: "column",
4794
- alignItems: "stretch",
4795
- position: "absolute",
4796
- top: "0",
4797
- left: "0",
4798
- width: "100%",
4799
- height: "100%"
4800
- })}
4801
- >{props.children}</div></Show7>
4785
+ /></Show7>
4786
+ <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
4787
+ <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-54b38751-2">{props.children}</div></Show7>
4788
+ </>
4789
+ <style>{`.img-54b38751 {
4790
+ opacity: 1;
4791
+ transition: opacity 0.2s ease-in-out;
4792
+ }.div-54b38751 {
4793
+ width: 100%;
4794
+ pointer-events: none;
4795
+ font-size: 0;
4796
+ }.div-54b38751-2 {
4797
+ display: flex;
4798
+ flex-direction: column;
4799
+ align-items: stretch;
4800
+ position: absolute;
4801
+ top: 0;
4802
+ left: 0;
4803
+ width: 100%;
4804
+ height: 100%;
4805
+ }`}</style>
4802
4806
  </>;
4803
4807
  }
4804
4808
  var image_default = Image;
4805
4809
 
4806
4810
  // src/blocks/section/section.tsx
4807
4811
  function SectionComponent(props) {
4808
- return <section
4812
+ return <><section
4809
4813
  {...{}}
4810
4814
  {...props.attributes}
4811
4815
  style={{
@@ -4820,7 +4824,7 @@ function SectionComponent(props) {
4820
4824
  "margin-left": "auto",
4821
4825
  "margin-right": "auto"
4822
4826
  }}
4823
- >{props.children}</section>;
4827
+ >{props.children}</section></>;
4824
4828
  }
4825
4829
  var section_default = SectionComponent;
4826
4830
 
@@ -5262,7 +5266,7 @@ function Accordion(props) {
5262
5266
  setOpen(onlyOneAtATime() ? [index] : open().concat(index));
5263
5267
  }
5264
5268
  }
5265
- return <div class="builder-accordion" style={accordionStyles()}><For5 each={props.items}>{(item, _index) => {
5269
+ return <><div class="builder-accordion" style={accordionStyles()}><For5 each={props.items}>{(item, _index) => {
5266
5270
  const index = _index();
5267
5271
  return <>
5268
5272
  <div
@@ -5296,7 +5300,7 @@ function Accordion(props) {
5296
5300
  linkComponent={props.builderLinkComponent}
5297
5301
  /></div></Show8>
5298
5302
  </>;
5299
- }}</For5></div>;
5303
+ }}</For5></div></>;
5300
5304
  }
5301
5305
  var accordion_default = Accordion;
5302
5306
 
@@ -5581,7 +5585,7 @@ var componentInfo5 = {
5581
5585
  name: "image",
5582
5586
  type: "file",
5583
5587
  bubble: true,
5584
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
5588
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
5585
5589
  required: true,
5586
5590
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
5587
5591
  onChange: (options) => {
@@ -5752,7 +5756,7 @@ var componentInfo7 = {
5752
5756
 
5753
5757
  // src/blocks/slot/slot.tsx
5754
5758
  function Slot(props) {
5755
- return <div
5759
+ return <><div
5756
5760
  style={{
5757
5761
  "pointer-events": "auto"
5758
5762
  }}
@@ -5764,7 +5768,7 @@ function Slot(props) {
5764
5768
  path={`symbol.data.${props.name}`}
5765
5769
  context={props.builderContext}
5766
5770
  blocks={props.builderContext.rootState?.[props.name]}
5767
- /></div>;
5771
+ /></div></>;
5768
5772
  }
5769
5773
  var slot_default = Slot;
5770
5774
 
@@ -5960,7 +5964,7 @@ function Tabs(props) {
5960
5964
  setActiveTab(index);
5961
5965
  }
5962
5966
  }
5963
- return <div>
5967
+ return <><div>
5964
5968
  <div
5965
5969
  class="builder-tabs-wrap"
5966
5970
  style={{
@@ -5995,7 +5999,7 @@ function Tabs(props) {
5995
5999
  registeredComponents={props.builderComponents}
5996
6000
  linkComponent={props.builderLinkComponent}
5997
6001
  /></div></Show9>
5998
- </div>;
6002
+ </div></>;
5999
6003
  }
6000
6004
  var tabs_default = Tabs;
6001
6005
 
@@ -6022,13 +6026,13 @@ var componentInfo10 = {
6022
6026
 
6023
6027
  // src/blocks/text/text.tsx
6024
6028
  function Text(props) {
6025
- return <div
6029
+ return <><div
6026
6030
  class="builder-text"
6027
6031
  innerHTML={props.text?.toString() || ""}
6028
6032
  style={{
6029
6033
  outline: "none"
6030
6034
  }}
6031
- />;
6035
+ /></>;
6032
6036
  }
6033
6037
  var text_default = Text;
6034
6038
 
@@ -6095,11 +6099,11 @@ function CustomCode(props) {
6095
6099
  }
6096
6100
  }
6097
6101
  });
6098
- return <div
6102
+ return <><div
6099
6103
  class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
6100
6104
  ref={elementRef}
6101
6105
  innerHTML={props.code}
6102
- />;
6106
+ /></>;
6103
6107
  }
6104
6108
  var custom_code_default = CustomCode;
6105
6109
 
@@ -6117,7 +6121,7 @@ var componentInfo12 = {
6117
6121
  const url = options.get("url");
6118
6122
  if (url) {
6119
6123
  options.set("content", "Loading...");
6120
- const apiKey = "ae0e60e78201a3f2b0de4b";
6124
+ const apiKey = _iframelyApiKey;
6121
6125
  return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
6122
6126
  if (options.get("url") === url) {
6123
6127
  if (data.html) {
@@ -6186,7 +6190,7 @@ function Embed(props) {
6186
6190
  createEffect(
6187
6191
  on(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
6188
6192
  );
6189
- return <div class="builder-embed" ref={elem} innerHTML={props.content} />;
6193
+ return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
6190
6194
  }
6191
6195
  var embed_default = Embed;
6192
6196
 
@@ -6426,7 +6430,6 @@ var componentInfo13 = {
6426
6430
 
6427
6431
  // src/blocks/form/form/form.tsx
6428
6432
  import { Show as Show10, For as For7, createSignal as createSignal13 } from "solid-js";
6429
- import { css as css4 } from "solid-styled-components";
6430
6433
 
6431
6434
  // src/functions/get-env.ts
6432
6435
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -6629,50 +6632,51 @@ function FormComponent(props) {
6629
6632
  }
6630
6633
  }
6631
6634
  let formRef;
6632
- return <form
6633
- validate={props.validate}
6634
- ref={formRef}
6635
- action={!props.sendWithJs && props.action}
6636
- method={props.method}
6637
- name={props.name}
6638
- onSubmit={(event) => onSubmit(event)}
6639
- {...{}}
6640
- {...{}}
6641
- {...props.attributes}
6642
- >
6643
- <Show10 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
6644
- const idx = _index();
6645
- return <Block_default
6646
- key={`form-block-${idx}`}
6647
- block={block}
6635
+ return <>
6636
+ <form
6637
+ validate={props.validate}
6638
+ ref={formRef}
6639
+ action={!props.sendWithJs && props.action}
6640
+ method={props.method}
6641
+ name={props.name}
6642
+ onSubmit={(event) => onSubmit(event)}
6643
+ {...{}}
6644
+ {...{}}
6645
+ {...props.attributes}
6646
+ >
6647
+ <Show10 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
6648
+ const idx = _index();
6649
+ return <Block_default
6650
+ key={`form-block-${idx}`}
6651
+ block={block}
6652
+ context={props.builderContext}
6653
+ registeredComponents={props.builderComponents}
6654
+ linkComponent={props.builderLinkComponent}
6655
+ />;
6656
+ }}</For7></Show10>
6657
+ <Show10 when={submissionState() === "error"}><Blocks_default
6658
+ path="errorMessage"
6659
+ blocks={props.errorMessage}
6648
6660
  context={props.builderContext}
6649
- registeredComponents={props.builderComponents}
6650
- linkComponent={props.builderLinkComponent}
6651
- />;
6652
- }}</For7></Show10>
6653
- <Show10 when={submissionState() === "error"}><Blocks_default
6654
- path="errorMessage"
6655
- blocks={props.errorMessage}
6656
- context={props.builderContext}
6657
- /></Show10>
6658
- <Show10 when={submissionState() === "sending"}><Blocks_default
6659
- path="sendingMessage"
6660
- blocks={props.sendingMessage}
6661
- context={props.builderContext}
6662
- /></Show10>
6663
- <Show10 when={submissionState() === "error" && responseData()}><pre
6664
- class={"builder-form-error-text " + css4({
6665
- padding: "10px",
6666
- color: "red",
6667
- textAlign: "center"
6668
- })}
6669
- >{JSON.stringify(responseData(), null, 2)}</pre></Show10>
6670
- <Show10 when={submissionState() === "success"}><Blocks_default
6671
- path="successMessage"
6672
- blocks={props.successMessage}
6673
- context={props.builderContext}
6674
- /></Show10>
6675
- </form>;
6661
+ /></Show10>
6662
+ <Show10 when={submissionState() === "sending"}><Blocks_default
6663
+ path="sendingMessage"
6664
+ blocks={props.sendingMessage}
6665
+ context={props.builderContext}
6666
+ /></Show10>
6667
+ <Show10 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-2e825338">{JSON.stringify(responseData(), null, 2)}</pre></Show10>
6668
+ <Show10 when={submissionState() === "success"}><Blocks_default
6669
+ path="successMessage"
6670
+ blocks={props.successMessage}
6671
+ context={props.builderContext}
6672
+ /></Show10>
6673
+ </form>
6674
+ <style>{`.pre-2e825338 {
6675
+ padding: 10px;
6676
+ color: red;
6677
+ text-align: center;
6678
+ }`}</style>
6679
+ </>;
6676
6680
  }
6677
6681
  var form_default = FormComponent;
6678
6682
 
@@ -6732,7 +6736,7 @@ var componentInfo14 = {
6732
6736
 
6733
6737
  // src/blocks/form/input/input.tsx
6734
6738
  function FormInputComponent(props) {
6735
- return <input
6739
+ return <><input
6736
6740
  {...{}}
6737
6741
  {...props.attributes}
6738
6742
  key={isEditing() && props.defaultValue ? props.defaultValue : "default-key"}
@@ -6742,7 +6746,7 @@ function FormInputComponent(props) {
6742
6746
  value={props.value}
6743
6747
  defaultValue={props.defaultValue}
6744
6748
  required={props.required}
6745
- />;
6749
+ /></>;
6746
6750
  }
6747
6751
  var input_default = FormInputComponent;
6748
6752
 
@@ -6794,7 +6798,7 @@ var componentInfo15 = {
6794
6798
  // src/blocks/form/select/select.tsx
6795
6799
  import { For as For8 } from "solid-js";
6796
6800
  function SelectComponent(props) {
6797
- return <select
6801
+ return <><select
6798
6802
  {...{}}
6799
6803
  {...props.attributes}
6800
6804
  value={props.value}
@@ -6804,7 +6808,7 @@ function SelectComponent(props) {
6804
6808
  ><For8 each={props.options}>{(option, _index) => {
6805
6809
  const index = _index();
6806
6810
  return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
6807
- }}</For8></select>;
6811
+ }}</For8></select></>;
6808
6812
  }
6809
6813
  var select_default = SelectComponent;
6810
6814
 
@@ -6838,7 +6842,7 @@ var componentInfo16 = {
6838
6842
 
6839
6843
  // src/blocks/form/submit-button/submit-button.tsx
6840
6844
  function SubmitButton(props) {
6841
- return <button type="submit" {...{}} {...props.attributes}>{props.text}</button>;
6845
+ return <><button type="submit" {...{}} {...props.attributes}>{props.text}</button></>;
6842
6846
  }
6843
6847
  var submit_button_default = SubmitButton;
6844
6848
 
@@ -6861,7 +6865,7 @@ var componentInfo17 = {
6861
6865
 
6862
6866
  // src/blocks/img/img.tsx
6863
6867
  function ImgComponent(props) {
6864
- return <img
6868
+ return <><img
6865
6869
  style={{
6866
6870
  "object-fit": props.backgroundSize || "cover",
6867
6871
  "object-position": props.backgroundPosition || "center"
@@ -6871,7 +6875,7 @@ function ImgComponent(props) {
6871
6875
  src={props.imgSrc || props.image}
6872
6876
  {...{}}
6873
6877
  {...props.attributes}
6874
- />;
6878
+ /></>;
6875
6879
  }
6876
6880
  var img_default = ImgComponent;
6877
6881
 
@@ -6986,7 +6990,7 @@ function Video(props) {
6986
6990
  ...videoProps()
6987
6991
  };
6988
6992
  });
6989
- return <div
6993
+ return <><div
6990
6994
  style={{
6991
6995
  position: "relative"
6992
6996
  }}
@@ -7042,7 +7046,7 @@ function Video(props) {
7042
7046
  height: "100%"
7043
7047
  }}
7044
7048
  >{props.children}</div></Show11>
7045
- </div>;
7049
+ </div></>;
7046
7050
  }
7047
7051
  var video_default = Video;
7048
7052
 
@@ -7176,7 +7180,7 @@ var getUpdateVariantVisibilityScript = ({
7176
7180
 
7177
7181
  // src/components/inlined-script.tsx
7178
7182
  function InlinedScript(props) {
7179
- return <script innerHTML={props.scriptStr} data-id={props.id} />;
7183
+ return <><script innerHTML={props.scriptStr} data-id={props.id} /></>;
7180
7184
  }
7181
7185
  var Inlined_script_default = InlinedScript;
7182
7186
 
@@ -7677,12 +7681,15 @@ var getInteractionPropertiesForEvent = (event) => {
7677
7681
  // src/functions/is-from-trusted-host.ts
7678
7682
  var DEFAULT_TRUSTED_HOSTS = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
7679
7683
  function isFromTrustedHost(trustedHosts, e) {
7684
+ if (!e.origin.startsWith("http") && !e.origin.startsWith("https")) {
7685
+ return false;
7686
+ }
7680
7687
  const url = new URL(e.origin), hostname = url.hostname;
7681
7688
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
7682
7689
  }
7683
7690
 
7684
7691
  // src/constants/sdk-version.ts
7685
- var SDK_VERSION = "1.0.32";
7692
+ var SDK_VERSION = "1.0.35";
7686
7693
 
7687
7694
  // src/functions/register.ts
7688
7695
  var registry = {};
@@ -8245,7 +8252,7 @@ function EnableEditor(props) {
8245
8252
  }
8246
8253
  }
8247
8254
  createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
8248
- return <builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
8255
+ return <><builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
8249
8256
  class={getWrapperClassName(
8250
8257
  props.content?.testVariationId || props.content?.id
8251
8258
  )}
@@ -8258,7 +8265,7 @@ function EnableEditor(props) {
8258
8265
  {...showContentProps()}
8259
8266
  {...props.contentWrapperProps}
8260
8267
  component={ContentWrapper()}
8261
- >{props.children}</Dynamic5></Show12></builder_context_default.Provider>;
8268
+ >{props.children}</Dynamic5></Show12></builder_context_default.Provider></>;
8262
8269
  }
8263
8270
  var Enable_editor_default = EnableEditor;
8264
8271
 
@@ -8277,10 +8284,10 @@ ${getFontCss({
8277
8284
  ${getDefaultStyles(props.isNestedRender)}
8278
8285
  `.trim()
8279
8286
  );
8280
- return <Inlined_styles_default
8287
+ return <><Inlined_styles_default
8281
8288
  id="builderio-content"
8282
8289
  styles={injectedStyles()}
8283
- />;
8290
+ /></>;
8284
8291
  }
8285
8292
  var Styles_default = ContentStyles;
8286
8293
 
@@ -8381,7 +8388,7 @@ function ContentComponent(props) {
8381
8388
  rootState: newRootState
8382
8389
  }));
8383
8390
  }
8384
- return <components_context_default.Provider
8391
+ return <><components_context_default.Provider
8385
8392
  value={{
8386
8393
  registeredComponents: registeredComponents()
8387
8394
  }}
@@ -8419,7 +8426,7 @@ function ContentComponent(props) {
8419
8426
  registeredComponents={registeredComponents()}
8420
8427
  linkComponent={props.linkComponent}
8421
8428
  />
8422
- </Enable_editor_default></components_context_default.Provider>;
8429
+ </Enable_editor_default></components_context_default.Provider></>;
8423
8430
  }
8424
8431
  var Content_default = ContentComponent;
8425
8432
 
@@ -8455,7 +8462,7 @@ function ContentVariants(props) {
8455
8462
  onMount4(() => {
8456
8463
  setShouldRenderVariants(false);
8457
8464
  });
8458
- return <>
8465
+ return <><>
8459
8466
  <Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
8460
8467
  id="builderio-init-variants-fns"
8461
8468
  scriptStr={getInitVariantsFnsScriptString()}
@@ -8517,7 +8524,7 @@ function ContentVariants(props) {
8517
8524
  contentWrapperProps={props.contentWrapperProps}
8518
8525
  trustedHosts={props.trustedHosts}
8519
8526
  />
8520
- </>;
8527
+ </></>;
8521
8528
  }
8522
8529
  var Content_variants_default = ContentVariants;
8523
8530
 
@@ -8581,7 +8588,7 @@ function Symbol2(props) {
8581
8588
  setContent();
8582
8589
  }
8583
8590
  createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
8584
- return <div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
8591
+ return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
8585
8592
  isNestedRender={true}
8586
8593
  apiVersion={props.builderContext.apiVersion}
8587
8594
  apiKey={props.builderContext.apiKey}
@@ -8601,7 +8608,7 @@ function Symbol2(props) {
8601
8608
  linkComponent={props.builderLinkComponent}
8602
8609
  blocksWrapper={blocksWrapper()}
8603
8610
  contentWrapper={contentWrapper()}
8604
- /></div>;
8611
+ /></div></>;
8605
8612
  }
8606
8613
  var symbol_default = Symbol2;
8607
8614