@builder.io/sdk-solid 3.0.3 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/node/dev.jsx CHANGED
@@ -1847,7 +1847,7 @@ function Columns(props) {
1847
1847
  }
1848
1848
  return <>
1849
1849
  <div
1850
- class={getColumnsClass(props.builderBlock?.id) + " div-3e5f33a4"}
1850
+ class={getColumnsClass(props.builderBlock?.id) + " div-6331dfc5"}
1851
1851
  style={columnsCssVars()}
1852
1852
  {...{}}
1853
1853
  >
@@ -1866,17 +1866,17 @@ function Columns(props) {
1866
1866
  ><Blocks_default
1867
1867
  path={`columns.${index}.blocks`}
1868
1868
  parent={props.builderBlock.id}
1869
- styleProp={{
1870
- flexGrow: "1"
1871
- }}
1872
1869
  context={props.builderContext}
1873
1870
  registeredComponents={props.builderComponents}
1874
1871
  linkComponent={props.builderLinkComponent}
1875
1872
  blocks={column.blocks}
1873
+ styleProp={{
1874
+ "flex-grow": "1"
1875
+ }}
1876
1876
  /></Dynamic_renderer_default>;
1877
1877
  }}</For4>
1878
1878
  </div>
1879
- <style>{`.div-3e5f33a4 {
1879
+ <style>{`.div-6331dfc5 {
1880
1880
  display: flex;
1881
1881
  line-height: normal;
1882
1882
  }`}</style>
@@ -1891,7 +1891,7 @@ function FragmentComponent(props) {
1891
1891
  var fragment_default = FragmentComponent;
1892
1892
 
1893
1893
  // src/blocks/image/image.tsx
1894
- import { Show as Show8, onMount as onMount4, createMemo as createMemo8 } from "solid-js";
1894
+ import { Show as Show8, createMemo as createMemo8 } from "solid-js";
1895
1895
 
1896
1896
  // src/blocks/image/image.helpers.ts
1897
1897
  function removeProtocol(path) {
@@ -1981,14 +1981,12 @@ function Image(props) {
1981
1981
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
1982
1982
  return out;
1983
1983
  });
1984
- onMount4(() => {
1985
- });
1986
1984
  return <>
1987
1985
  <>
1988
1986
  <picture>
1989
1987
  <Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
1990
1988
  <img
1991
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-56e07140"}
1989
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-dc6700b4"}
1992
1990
  loading={props.highPriority ? "eager" : "lazy"}
1993
1991
  fetchpriority={props.highPriority ? "high" : "auto"}
1994
1992
  alt={props.altText}
@@ -2006,22 +2004,22 @@ function Image(props) {
2006
2004
  <Show8
2007
2005
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
2008
2006
  ><div
2009
- class="builder-image-sizer div-56e07140"
2007
+ class="builder-image-sizer div-dc6700b4"
2010
2008
  style={{
2011
2009
  "padding-top": props.aspectRatio * 100 + "%"
2012
2010
  }}
2013
2011
  /></Show8>
2014
2012
  <Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
2015
- <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-56e07140-2">{props.children}</div></Show8>
2013
+ <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-dc6700b4-2">{props.children}</div></Show8>
2016
2014
  </>
2017
- <style>{`.img-56e07140 {
2015
+ <style>{`.img-dc6700b4 {
2018
2016
  opacity: 1;
2019
2017
  transition: opacity 0.2s ease-in-out;
2020
- }.div-56e07140 {
2018
+ }.div-dc6700b4 {
2021
2019
  width: 100%;
2022
2020
  pointer-events: none;
2023
2021
  font-size: 0;
2024
- }.div-56e07140-2 {
2022
+ }.div-dc6700b4-2 {
2025
2023
  display: flex;
2026
2024
  flex-direction: column;
2027
2025
  align-items: stretch;
@@ -2057,10 +2055,10 @@ function SectionComponent(props) {
2057
2055
  var section_default = SectionComponent;
2058
2056
 
2059
2057
  // src/blocks/symbol/symbol.tsx
2060
- import { onMount as onMount8, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
2058
+ import { onMount as onMount7, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
2061
2059
 
2062
2060
  // src/components/content-variants/content-variants.tsx
2063
- import { Show as Show15, For as For9, onMount as onMount7, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
2061
+ import { Show as Show15, For as For8, onMount as onMount6, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
2064
2062
 
2065
2063
  // src/helpers/url.ts
2066
2064
  var getTopLevelDomain = (host) => {
@@ -3336,12 +3334,12 @@ var componentInfo11 = {
3336
3334
  };
3337
3335
 
3338
3336
  // src/blocks/custom-code/custom-code.tsx
3339
- import { onMount as onMount5, createSignal as createSignal11 } from "solid-js";
3337
+ import { onMount as onMount4, createSignal as createSignal11 } from "solid-js";
3340
3338
  function CustomCode(props) {
3341
3339
  const [scriptsInserted, setScriptsInserted] = createSignal11([]);
3342
3340
  const [scriptsRun, setScriptsRun] = createSignal11([]);
3343
3341
  let elementRef;
3344
- onMount5(() => {
3342
+ onMount4(() => {
3345
3343
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
3346
3344
  return;
3347
3345
  }
@@ -3691,7 +3689,7 @@ var componentInfo13 = {
3691
3689
  };
3692
3690
 
3693
3691
  // src/blocks/form/form/form.tsx
3694
- import { Show as Show11, For as For7, createSignal as createSignal13 } from "solid-js";
3692
+ import { Show as Show11, createSignal as createSignal13 } from "solid-js";
3695
3693
 
3696
3694
  // src/functions/get-env.ts
3697
3695
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -3908,16 +3906,7 @@ function FormComponent(props) {
3908
3906
  {...{}}
3909
3907
  {...props.attributes}
3910
3908
  >
3911
- <Show11 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
3912
- const idx = _index();
3913
- return <Block_default
3914
- key={`form-block-${idx}`}
3915
- block={block}
3916
- context={props.builderContext}
3917
- registeredComponents={props.builderComponents}
3918
- linkComponent={props.builderLinkComponent}
3919
- />;
3920
- }}</For7></Show11>
3909
+ {props.children}
3921
3910
  <Show11 when={submissionState() === "error"}><Blocks_default
3922
3911
  path="errorMessage"
3923
3912
  blocks={props.errorMessage}
@@ -3928,14 +3917,14 @@ function FormComponent(props) {
3928
3917
  blocks={props.sendingMessage}
3929
3918
  context={props.builderContext}
3930
3919
  /></Show11>
3931
- <Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-27d18614">{JSON.stringify(responseData(), null, 2)}</pre></Show11>
3920
+ <Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-04a43b72">{JSON.stringify(responseData(), null, 2)}</pre></Show11>
3932
3921
  <Show11 when={submissionState() === "success"}><Blocks_default
3933
3922
  path="successMessage"
3934
3923
  blocks={props.successMessage}
3935
3924
  context={props.builderContext}
3936
3925
  /></Show11>
3937
3926
  </form>
3938
- <style>{`.pre-27d18614 {
3927
+ <style>{`.pre-04a43b72 {
3939
3928
  padding: 10px;
3940
3929
  color: red;
3941
3930
  text-align: center;
@@ -4060,7 +4049,7 @@ var componentInfo15 = {
4060
4049
  };
4061
4050
 
4062
4051
  // src/blocks/form/select/select.tsx
4063
- import { For as For8 } from "solid-js";
4052
+ import { For as For7 } from "solid-js";
4064
4053
  function SelectComponent(props) {
4065
4054
  return <><select
4066
4055
  {...{}}
@@ -4070,10 +4059,10 @@ function SelectComponent(props) {
4070
4059
  defaultValue={props.defaultValue}
4071
4060
  name={props.name}
4072
4061
  required={props.required}
4073
- ><For8 each={props.options}>{(option, _index) => {
4062
+ ><For7 each={props.options}>{(option, _index) => {
4074
4063
  const index = _index();
4075
4064
  return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
4076
- }}</For8></select></>;
4065
+ }}</For7></select></>;
4077
4066
  }
4078
4067
  var select_default = SelectComponent;
4079
4068
 
@@ -4328,7 +4317,6 @@ function Video(props) {
4328
4317
  "object-position": props.position,
4329
4318
  // Hack to get object fit to work as expected and
4330
4319
  // not have the video overflow
4331
- "z-index": 2,
4332
4320
  "border-radius": "1px",
4333
4321
  ...props.aspectRatio ? {
4334
4322
  position: "absolute"
@@ -4513,7 +4501,7 @@ var Inlined_script_default = InlinedScript;
4513
4501
  // src/components/content/components/enable-editor.tsx
4514
4502
  import {
4515
4503
  Show as Show13,
4516
- onMount as onMount6,
4504
+ onMount as onMount5,
4517
4505
  on as on3,
4518
4506
  createEffect as createEffect3,
4519
4507
  createMemo as createMemo15,
@@ -4527,7 +4515,7 @@ function getPreviewContent(_searchParams) {
4527
4515
  }
4528
4516
 
4529
4517
  // src/constants/sdk-version.ts
4530
- var SDK_VERSION = "3.0.3";
4518
+ var SDK_VERSION = "3.0.5";
4531
4519
 
4532
4520
  // src/helpers/sdk-headers.ts
4533
4521
  var getSdkHeaders = () => ({
@@ -5521,7 +5509,7 @@ function EnableEditor(props) {
5521
5509
  let elementRef;
5522
5510
  runHttpRequests();
5523
5511
  emitStateUpdate();
5524
- onMount6(() => {
5512
+ onMount5(() => {
5525
5513
  if (isBrowser()) {
5526
5514
  if (isEditing() && !props.isNestedRender) {
5527
5515
  window.addEventListener("message", processMessage);
@@ -5866,7 +5854,7 @@ function ContentVariants(props) {
5866
5854
  canTrack: getDefaultCanTrack(props.canTrack)
5867
5855
  });
5868
5856
  });
5869
- onMount7(() => {
5857
+ onMount6(() => {
5870
5858
  setShouldRenderVariants(false);
5871
5859
  });
5872
5860
  return <><>
@@ -5886,7 +5874,7 @@ function ContentVariants(props) {
5886
5874
  scriptStr={updateCookieAndStylesScriptStr()}
5887
5875
  nonce={props.nonce || ""}
5888
5876
  />
5889
- <For9 each={getVariants(props.content)}>{(variant, _index) => {
5877
+ <For8 each={getVariants(props.content)}>{(variant, _index) => {
5890
5878
  const index = _index();
5891
5879
  return <Content_default
5892
5880
  apiHost={props.apiHost}
@@ -5913,7 +5901,7 @@ function ContentVariants(props) {
5913
5901
  trustedHosts={props.trustedHosts}
5914
5902
  {...{}}
5915
5903
  />;
5916
- }}</For9>
5904
+ }}</For8>
5917
5905
  </Show15>
5918
5906
  <Content_default
5919
5907
  apiHost={props.apiHost}
@@ -5996,7 +5984,7 @@ function Symbol(props) {
5996
5984
  }
5997
5985
  });
5998
5986
  }
5999
- onMount8(() => {
5987
+ onMount7(() => {
6000
5988
  });
6001
5989
  const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
6002
5990
  function onUpdateFn_0() {
package/lib/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { delegateEvents, createComponent, spread, mergeProps, insert, effect, setAttribute, className, style, template, Dynamic, memo, use } from 'solid-js/web';
2
- import { createContext, useContext, Show, For, createMemo, onMount, createSignal, createEffect, on } from 'solid-js';
2
+ import { createContext, useContext, Show, For, createMemo, createSignal, onMount, createEffect, on } from 'solid-js';
3
3
  import { createRequire } from 'node:module';
4
4
 
5
5
  // src/blocks/button/button.tsx
@@ -1918,7 +1918,7 @@ var getColumnsClass = (id) => {
1918
1918
 
1919
1919
  // src/blocks/columns/columns.tsx
1920
1920
  var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
1921
- var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-3e5f33a4 {
1921
+ var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-6331dfc5 {
1922
1922
  display: flex;
1923
1923
  line-height: normal;
1924
1924
  }`);
@@ -2047,7 +2047,7 @@ function Columns(props) {
2047
2047
  const _el$ = _tmpl$3();
2048
2048
  spread(_el$, mergeProps({
2049
2049
  get ["class"]() {
2050
- return getColumnsClass(props.builderBlock?.id) + " div-3e5f33a4";
2050
+ return getColumnsClass(props.builderBlock?.id) + " div-6331dfc5";
2051
2051
  },
2052
2052
  get style() {
2053
2053
  return columnsCssVars();
@@ -2088,9 +2088,6 @@ function Columns(props) {
2088
2088
  get parent() {
2089
2089
  return props.builderBlock.id;
2090
2090
  },
2091
- styleProp: {
2092
- flexGrow: "1"
2093
- },
2094
2091
  get context() {
2095
2092
  return props.builderContext;
2096
2093
  },
@@ -2102,6 +2099,9 @@ function Columns(props) {
2102
2099
  },
2103
2100
  get blocks() {
2104
2101
  return column.blocks;
2102
+ },
2103
+ styleProp: {
2104
+ "flex-grow": "1"
2105
2105
  }
2106
2106
  });
2107
2107
  }
@@ -2172,16 +2172,16 @@ function getSrcSet(url) {
2172
2172
  // src/blocks/image/image.tsx
2173
2173
  var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
2174
2174
  var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
2175
- var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-56e07140">`);
2176
- var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-56e07140-2>`);
2177
- var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-56e07140 {
2175
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-dc6700b4">`);
2176
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-dc6700b4-2>`);
2177
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-dc6700b4 {
2178
2178
  opacity: 1;
2179
2179
  transition: opacity 0.2s ease-in-out;
2180
- }.div-56e07140 {
2180
+ }.div-dc6700b4 {
2181
2181
  width: 100%;
2182
2182
  pointer-events: none;
2183
2183
  font-size: 0;
2184
- }.div-56e07140-2 {
2184
+ }.div-dc6700b4-2 {
2185
2185
  display: flex;
2186
2186
  flex-direction: column;
2187
2187
  align-items: stretch;
@@ -2230,8 +2230,6 @@ function Image(props) {
2230
2230
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
2231
2231
  return out;
2232
2232
  });
2233
- onMount(() => {
2234
- });
2235
2233
  return [[(() => {
2236
2234
  const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
2237
2235
  insert(_el$, createComponent(Show, {
@@ -2245,7 +2243,7 @@ function Image(props) {
2245
2243
  }
2246
2244
  }), _el$3);
2247
2245
  effect((_p$) => {
2248
- const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-56e07140", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.altText ? void 0 : "presentation", _v$6 = {
2246
+ const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-dc6700b4", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.altText ? void 0 : "presentation", _v$6 = {
2249
2247
  "object-position": props.backgroundPosition || "center",
2250
2248
  "object-fit": props.backgroundSize || "cover",
2251
2249
  ...aspectRatioCss()
@@ -4058,9 +4056,9 @@ function logFetch(url) {
4058
4056
  }
4059
4057
 
4060
4058
  // src/blocks/form/form/form.tsx
4061
- var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-27d18614">`);
4059
+ var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
4062
4060
  var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
4063
- var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-27d18614 {
4061
+ var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
4064
4062
  padding: 10px;
4065
4063
  color: red;
4066
4064
  text-align: center;
@@ -4270,34 +4268,7 @@ function FormComponent(props) {
4270
4268
  return props.name;
4271
4269
  }
4272
4270
  }, {}, {}, () => props.attributes), false, true);
4273
- insert(_el$, createComponent(Show, {
4274
- get when() {
4275
- return props.builderBlock && props.builderBlock.children;
4276
- },
4277
- get children() {
4278
- return createComponent(For, {
4279
- get each() {
4280
- return props.builderBlock?.children;
4281
- },
4282
- children: (block, _index) => {
4283
- const idx = _index();
4284
- return createComponent(block_default, {
4285
- key: `form-block-${idx}`,
4286
- block,
4287
- get context() {
4288
- return props.builderContext;
4289
- },
4290
- get registeredComponents() {
4291
- return props.builderComponents;
4292
- },
4293
- get linkComponent() {
4294
- return props.builderLinkComponent;
4295
- }
4296
- });
4297
- }
4298
- });
4299
- }
4300
- }), null);
4271
+ insert(_el$, () => props.children, null);
4301
4272
  insert(_el$, createComponent(Show, {
4302
4273
  get when() {
4303
4274
  return submissionState() === "error";
@@ -4806,7 +4777,6 @@ function Video(props) {
4806
4777
  "object-position": props.position,
4807
4778
  // Hack to get object fit to work as expected and
4808
4779
  // not have the video overflow
4809
- "z-index": 2,
4810
4780
  "border-radius": "1px",
4811
4781
  ...props.aspectRatio ? {
4812
4782
  position: "absolute"
@@ -5034,7 +5004,7 @@ function getPreviewContent(_searchParams) {
5034
5004
  }
5035
5005
 
5036
5006
  // src/constants/sdk-version.ts
5037
- var SDK_VERSION = "3.0.3";
5007
+ var SDK_VERSION = "3.0.5";
5038
5008
 
5039
5009
  // src/helpers/sdk-headers.ts
5040
5010
  var getSdkHeaders = () => ({
@@ -1840,7 +1840,7 @@ function Columns(props) {
1840
1840
  }
1841
1841
  return <>
1842
1842
  <div
1843
- class={getColumnsClass(props.builderBlock?.id) + " div-3e5f33a4"}
1843
+ class={getColumnsClass(props.builderBlock?.id) + " div-6331dfc5"}
1844
1844
  style={columnsCssVars()}
1845
1845
  {...{}}
1846
1846
  >
@@ -1859,17 +1859,17 @@ function Columns(props) {
1859
1859
  ><Blocks_default
1860
1860
  path={`columns.${index}.blocks`}
1861
1861
  parent={props.builderBlock.id}
1862
- styleProp={{
1863
- flexGrow: "1"
1864
- }}
1865
1862
  context={props.builderContext}
1866
1863
  registeredComponents={props.builderComponents}
1867
1864
  linkComponent={props.builderLinkComponent}
1868
1865
  blocks={column.blocks}
1866
+ styleProp={{
1867
+ "flex-grow": "1"
1868
+ }}
1869
1869
  /></Dynamic_renderer_default>;
1870
1870
  }}</For4>
1871
1871
  </div>
1872
- <style>{`.div-3e5f33a4 {
1872
+ <style>{`.div-6331dfc5 {
1873
1873
  display: flex;
1874
1874
  line-height: normal;
1875
1875
  }`}</style>
@@ -1884,7 +1884,7 @@ function FragmentComponent(props) {
1884
1884
  var fragment_default = FragmentComponent;
1885
1885
 
1886
1886
  // src/blocks/image/image.tsx
1887
- import { Show as Show8, onMount as onMount4, createMemo as createMemo8 } from "solid-js";
1887
+ import { Show as Show8, createMemo as createMemo8 } from "solid-js";
1888
1888
 
1889
1889
  // src/blocks/image/image.helpers.ts
1890
1890
  function removeProtocol(path) {
@@ -1973,14 +1973,12 @@ function Image(props) {
1973
1973
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
1974
1974
  return out;
1975
1975
  });
1976
- onMount4(() => {
1977
- });
1978
1976
  return <>
1979
1977
  <>
1980
1978
  <picture>
1981
1979
  <Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
1982
1980
  <img
1983
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-56e07140"}
1981
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-dc6700b4"}
1984
1982
  loading={props.highPriority ? "eager" : "lazy"}
1985
1983
  fetchpriority={props.highPriority ? "high" : "auto"}
1986
1984
  alt={props.altText}
@@ -1998,22 +1996,22 @@ function Image(props) {
1998
1996
  <Show8
1999
1997
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
2000
1998
  ><div
2001
- class="builder-image-sizer div-56e07140"
1999
+ class="builder-image-sizer div-dc6700b4"
2002
2000
  style={{
2003
2001
  "padding-top": props.aspectRatio * 100 + "%"
2004
2002
  }}
2005
2003
  /></Show8>
2006
2004
  <Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
2007
- <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-56e07140-2">{props.children}</div></Show8>
2005
+ <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-dc6700b4-2">{props.children}</div></Show8>
2008
2006
  </>
2009
- <style>{`.img-56e07140 {
2007
+ <style>{`.img-dc6700b4 {
2010
2008
  opacity: 1;
2011
2009
  transition: opacity 0.2s ease-in-out;
2012
- }.div-56e07140 {
2010
+ }.div-dc6700b4 {
2013
2011
  width: 100%;
2014
2012
  pointer-events: none;
2015
2013
  font-size: 0;
2016
- }.div-56e07140-2 {
2014
+ }.div-dc6700b4-2 {
2017
2015
  display: flex;
2018
2016
  flex-direction: column;
2019
2017
  align-items: stretch;
@@ -2049,10 +2047,10 @@ function SectionComponent(props) {
2049
2047
  var section_default = SectionComponent;
2050
2048
 
2051
2049
  // src/blocks/symbol/symbol.tsx
2052
- import { onMount as onMount8, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
2050
+ import { onMount as onMount7, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
2053
2051
 
2054
2052
  // src/components/content-variants/content-variants.tsx
2055
- import { Show as Show15, For as For9, onMount as onMount7, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
2053
+ import { Show as Show15, For as For8, onMount as onMount6, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
2056
2054
 
2057
2055
  // src/helpers/url.ts
2058
2056
  var getTopLevelDomain = (host) => {
@@ -3327,12 +3325,12 @@ var componentInfo11 = {
3327
3325
  };
3328
3326
 
3329
3327
  // src/blocks/custom-code/custom-code.tsx
3330
- import { onMount as onMount5, createSignal as createSignal11 } from "solid-js";
3328
+ import { onMount as onMount4, createSignal as createSignal11 } from "solid-js";
3331
3329
  function CustomCode(props) {
3332
3330
  const [scriptsInserted, setScriptsInserted] = createSignal11([]);
3333
3331
  const [scriptsRun, setScriptsRun] = createSignal11([]);
3334
3332
  let elementRef;
3335
- onMount5(() => {
3333
+ onMount4(() => {
3336
3334
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
3337
3335
  return;
3338
3336
  }
@@ -3680,7 +3678,7 @@ var componentInfo13 = {
3680
3678
  };
3681
3679
 
3682
3680
  // src/blocks/form/form/form.tsx
3683
- import { Show as Show11, For as For7, createSignal as createSignal13 } from "solid-js";
3681
+ import { Show as Show11, createSignal as createSignal13 } from "solid-js";
3684
3682
 
3685
3683
  // src/functions/get-env.ts
3686
3684
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -3897,16 +3895,7 @@ function FormComponent(props) {
3897
3895
  {...{}}
3898
3896
  {...props.attributes}
3899
3897
  >
3900
- <Show11 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
3901
- const idx = _index();
3902
- return <Block_default
3903
- key={`form-block-${idx}`}
3904
- block={block}
3905
- context={props.builderContext}
3906
- registeredComponents={props.builderComponents}
3907
- linkComponent={props.builderLinkComponent}
3908
- />;
3909
- }}</For7></Show11>
3898
+ {props.children}
3910
3899
  <Show11 when={submissionState() === "error"}><Blocks_default
3911
3900
  path="errorMessage"
3912
3901
  blocks={props.errorMessage}
@@ -3917,14 +3906,14 @@ function FormComponent(props) {
3917
3906
  blocks={props.sendingMessage}
3918
3907
  context={props.builderContext}
3919
3908
  /></Show11>
3920
- <Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-27d18614">{JSON.stringify(responseData(), null, 2)}</pre></Show11>
3909
+ <Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-04a43b72">{JSON.stringify(responseData(), null, 2)}</pre></Show11>
3921
3910
  <Show11 when={submissionState() === "success"}><Blocks_default
3922
3911
  path="successMessage"
3923
3912
  blocks={props.successMessage}
3924
3913
  context={props.builderContext}
3925
3914
  /></Show11>
3926
3915
  </form>
3927
- <style>{`.pre-27d18614 {
3916
+ <style>{`.pre-04a43b72 {
3928
3917
  padding: 10px;
3929
3918
  color: red;
3930
3919
  text-align: center;
@@ -4049,7 +4038,7 @@ var componentInfo15 = {
4049
4038
  };
4050
4039
 
4051
4040
  // src/blocks/form/select/select.tsx
4052
- import { For as For8 } from "solid-js";
4041
+ import { For as For7 } from "solid-js";
4053
4042
  function SelectComponent(props) {
4054
4043
  return <><select
4055
4044
  {...{}}
@@ -4059,10 +4048,10 @@ function SelectComponent(props) {
4059
4048
  defaultValue={props.defaultValue}
4060
4049
  name={props.name}
4061
4050
  required={props.required}
4062
- ><For8 each={props.options}>{(option, _index) => {
4051
+ ><For7 each={props.options}>{(option, _index) => {
4063
4052
  const index = _index();
4064
4053
  return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
4065
- }}</For8></select></>;
4054
+ }}</For7></select></>;
4066
4055
  }
4067
4056
  var select_default = SelectComponent;
4068
4057
 
@@ -4317,7 +4306,6 @@ function Video(props) {
4317
4306
  "object-position": props.position,
4318
4307
  // Hack to get object fit to work as expected and
4319
4308
  // not have the video overflow
4320
- "z-index": 2,
4321
4309
  "border-radius": "1px",
4322
4310
  ...props.aspectRatio ? {
4323
4311
  position: "absolute"
@@ -4502,7 +4490,7 @@ var Inlined_script_default = InlinedScript;
4502
4490
  // src/components/content/components/enable-editor.tsx
4503
4491
  import {
4504
4492
  Show as Show13,
4505
- onMount as onMount6,
4493
+ onMount as onMount5,
4506
4494
  on as on3,
4507
4495
  createEffect as createEffect3,
4508
4496
  createMemo as createMemo15,
@@ -4516,7 +4504,7 @@ function getPreviewContent(_searchParams) {
4516
4504
  }
4517
4505
 
4518
4506
  // src/constants/sdk-version.ts
4519
- var SDK_VERSION = "3.0.3";
4507
+ var SDK_VERSION = "3.0.5";
4520
4508
 
4521
4509
  // src/helpers/sdk-headers.ts
4522
4510
  var getSdkHeaders = () => ({
@@ -5503,7 +5491,7 @@ function EnableEditor(props) {
5503
5491
  let elementRef;
5504
5492
  runHttpRequests();
5505
5493
  emitStateUpdate();
5506
- onMount6(() => {
5494
+ onMount5(() => {
5507
5495
  if (isBrowser()) {
5508
5496
  if (isEditing() && !props.isNestedRender) {
5509
5497
  window.addEventListener("message", processMessage);
@@ -5848,7 +5836,7 @@ function ContentVariants(props) {
5848
5836
  canTrack: getDefaultCanTrack(props.canTrack)
5849
5837
  });
5850
5838
  });
5851
- onMount7(() => {
5839
+ onMount6(() => {
5852
5840
  setShouldRenderVariants(false);
5853
5841
  });
5854
5842
  return <><>
@@ -5868,7 +5856,7 @@ function ContentVariants(props) {
5868
5856
  scriptStr={updateCookieAndStylesScriptStr()}
5869
5857
  nonce={props.nonce || ""}
5870
5858
  />
5871
- <For9 each={getVariants(props.content)}>{(variant, _index) => {
5859
+ <For8 each={getVariants(props.content)}>{(variant, _index) => {
5872
5860
  const index = _index();
5873
5861
  return <Content_default
5874
5862
  apiHost={props.apiHost}
@@ -5895,7 +5883,7 @@ function ContentVariants(props) {
5895
5883
  trustedHosts={props.trustedHosts}
5896
5884
  {...{}}
5897
5885
  />;
5898
- }}</For9>
5886
+ }}</For8>
5899
5887
  </Show15>
5900
5888
  <Content_default
5901
5889
  apiHost={props.apiHost}
@@ -5978,7 +5966,7 @@ function Symbol(props) {
5978
5966
  }
5979
5967
  });
5980
5968
  }
5981
- onMount8(() => {
5969
+ onMount7(() => {
5982
5970
  });
5983
5971
  const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
5984
5972
  function onUpdateFn_0() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",