@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/dist/index.d.ts CHANGED
@@ -465,7 +465,7 @@ interface ComponentInfo {
465
465
  /**
466
466
  * Whether or not the component should receive the `builderBlock` prop, containing the current Builder block being rendered.
467
467
  *
468
- * Defaults to `true`.
468
+ * Defaults to `false`.
469
469
  */
470
470
  builderBlock?: boolean;
471
471
  /**
@@ -473,7 +473,7 @@ interface ComponentInfo {
473
473
  * The Builder Context contains a lot of data relevant to the current `Content` render.
474
474
  * You can see more information [here](https://github.com/BuilderIO/builder/blob/main/packages/sdks/src/context/types.ts).
475
475
  *
476
- * Defaults to `true`.
476
+ * Defaults to `false`.
477
477
  */
478
478
  builderContext?: boolean;
479
479
  /**
@@ -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
 
4
4
  // src/blocks/button/button.tsx
5
5
 
@@ -1758,7 +1758,7 @@ var getColumnsClass = (id) => {
1758
1758
 
1759
1759
  // src/blocks/columns/columns.tsx
1760
1760
  var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
1761
- var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-3e5f33a4 {
1761
+ var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-6331dfc5 {
1762
1762
  display: flex;
1763
1763
  line-height: normal;
1764
1764
  }`);
@@ -1887,7 +1887,7 @@ function Columns(props) {
1887
1887
  const _el$ = _tmpl$3();
1888
1888
  spread(_el$, mergeProps({
1889
1889
  get ["class"]() {
1890
- return getColumnsClass(props.builderBlock?.id) + " div-3e5f33a4";
1890
+ return getColumnsClass(props.builderBlock?.id) + " div-6331dfc5";
1891
1891
  },
1892
1892
  get style() {
1893
1893
  return columnsCssVars();
@@ -1928,9 +1928,6 @@ function Columns(props) {
1928
1928
  get parent() {
1929
1929
  return props.builderBlock.id;
1930
1930
  },
1931
- styleProp: {
1932
- flexGrow: "1"
1933
- },
1934
1931
  get context() {
1935
1932
  return props.builderContext;
1936
1933
  },
@@ -1942,6 +1939,9 @@ function Columns(props) {
1942
1939
  },
1943
1940
  get blocks() {
1944
1941
  return column.blocks;
1942
+ },
1943
+ styleProp: {
1944
+ "flex-grow": "1"
1945
1945
  }
1946
1946
  });
1947
1947
  }
@@ -2012,16 +2012,16 @@ function getSrcSet(url) {
2012
2012
  // src/blocks/image/image.tsx
2013
2013
  var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
2014
2014
  var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
2015
- var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-56e07140">`);
2016
- var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-56e07140-2>`);
2017
- var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-56e07140 {
2015
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-dc6700b4">`);
2016
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-dc6700b4-2>`);
2017
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-dc6700b4 {
2018
2018
  opacity: 1;
2019
2019
  transition: opacity 0.2s ease-in-out;
2020
- }.div-56e07140 {
2020
+ }.div-dc6700b4 {
2021
2021
  width: 100%;
2022
2022
  pointer-events: none;
2023
2023
  font-size: 0;
2024
- }.div-56e07140-2 {
2024
+ }.div-dc6700b4-2 {
2025
2025
  display: flex;
2026
2026
  flex-direction: column;
2027
2027
  align-items: stretch;
@@ -2071,8 +2071,6 @@ function Image(props) {
2071
2071
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
2072
2072
  return out;
2073
2073
  });
2074
- onMount(() => {
2075
- });
2076
2074
  return [[(() => {
2077
2075
  const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
2078
2076
  insert(_el$, createComponent(Show, {
@@ -2086,7 +2084,7 @@ function Image(props) {
2086
2084
  }
2087
2085
  }), _el$3);
2088
2086
  effect((_p$) => {
2089
- 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 = {
2087
+ 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 = {
2090
2088
  "object-position": props.backgroundPosition || "center",
2091
2089
  "object-fit": props.backgroundSize || "cover",
2092
2090
  ...aspectRatioCss()
@@ -3902,9 +3900,9 @@ function logFetch(url) {
3902
3900
  }
3903
3901
 
3904
3902
  // src/blocks/form/form/form.tsx
3905
- var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-27d18614">`);
3903
+ var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
3906
3904
  var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
3907
- var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-27d18614 {
3905
+ var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
3908
3906
  padding: 10px;
3909
3907
  color: red;
3910
3908
  text-align: center;
@@ -4114,34 +4112,7 @@ function FormComponent(props) {
4114
4112
  return props.name;
4115
4113
  }
4116
4114
  }, {}, {}, () => props.attributes), false, true);
4117
- insert(_el$, createComponent(Show, {
4118
- get when() {
4119
- return props.builderBlock && props.builderBlock.children;
4120
- },
4121
- get children() {
4122
- return createComponent(For, {
4123
- get each() {
4124
- return props.builderBlock?.children;
4125
- },
4126
- children: (block, _index) => {
4127
- const idx = _index();
4128
- return createComponent(block_default, {
4129
- key: `form-block-${idx}`,
4130
- block,
4131
- get context() {
4132
- return props.builderContext;
4133
- },
4134
- get registeredComponents() {
4135
- return props.builderComponents;
4136
- },
4137
- get linkComponent() {
4138
- return props.builderLinkComponent;
4139
- }
4140
- });
4141
- }
4142
- });
4143
- }
4144
- }), null);
4115
+ insert(_el$, () => props.children, null);
4145
4116
  insert(_el$, createComponent(Show, {
4146
4117
  get when() {
4147
4118
  return submissionState() === "error";
@@ -4650,7 +4621,6 @@ function Video(props) {
4650
4621
  "object-position": props.position,
4651
4622
  // Hack to get object fit to work as expected and
4652
4623
  // not have the video overflow
4653
- "z-index": 2,
4654
4624
  "border-radius": "1px",
4655
4625
  ...props.aspectRatio ? {
4656
4626
  position: "absolute"
@@ -4878,7 +4848,7 @@ function getPreviewContent(_searchParams) {
4878
4848
  }
4879
4849
 
4880
4850
  // src/constants/sdk-version.ts
4881
- var SDK_VERSION = "3.0.3";
4851
+ var SDK_VERSION = "3.0.5";
4882
4852
 
4883
4853
  // src/helpers/sdk-headers.ts
4884
4854
  var getSdkHeaders = () => ({
@@ -1676,7 +1676,7 @@ function Columns(props) {
1676
1676
  }
1677
1677
  return <>
1678
1678
  <div
1679
- class={getColumnsClass(props.builderBlock?.id) + " div-3e5f33a4"}
1679
+ class={getColumnsClass(props.builderBlock?.id) + " div-6331dfc5"}
1680
1680
  style={columnsCssVars()}
1681
1681
  {...{}}
1682
1682
  >
@@ -1695,17 +1695,17 @@ function Columns(props) {
1695
1695
  ><Blocks_default
1696
1696
  path={`columns.${index}.blocks`}
1697
1697
  parent={props.builderBlock.id}
1698
- styleProp={{
1699
- flexGrow: "1"
1700
- }}
1701
1698
  context={props.builderContext}
1702
1699
  registeredComponents={props.builderComponents}
1703
1700
  linkComponent={props.builderLinkComponent}
1704
1701
  blocks={column.blocks}
1702
+ styleProp={{
1703
+ "flex-grow": "1"
1704
+ }}
1705
1705
  /></Dynamic_renderer_default>;
1706
1706
  }}</For4>
1707
1707
  </div>
1708
- <style>{`.div-3e5f33a4 {
1708
+ <style>{`.div-6331dfc5 {
1709
1709
  display: flex;
1710
1710
  line-height: normal;
1711
1711
  }`}</style>
@@ -1720,7 +1720,7 @@ function FragmentComponent(props) {
1720
1720
  var fragment_default = FragmentComponent;
1721
1721
 
1722
1722
  // src/blocks/image/image.tsx
1723
- import { Show as Show8, onMount as onMount4, createMemo as createMemo8 } from "solid-js";
1723
+ import { Show as Show8, createMemo as createMemo8 } from "solid-js";
1724
1724
 
1725
1725
  // src/blocks/image/image.helpers.ts
1726
1726
  function removeProtocol(path) {
@@ -1810,14 +1810,12 @@ function Image(props) {
1810
1810
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
1811
1811
  return out;
1812
1812
  });
1813
- onMount4(() => {
1814
- });
1815
1813
  return <>
1816
1814
  <>
1817
1815
  <picture>
1818
1816
  <Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
1819
1817
  <img
1820
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-56e07140"}
1818
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-dc6700b4"}
1821
1819
  loading={props.highPriority ? "eager" : "lazy"}
1822
1820
  fetchpriority={props.highPriority ? "high" : "auto"}
1823
1821
  alt={props.altText}
@@ -1835,22 +1833,22 @@ function Image(props) {
1835
1833
  <Show8
1836
1834
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
1837
1835
  ><div
1838
- class="builder-image-sizer div-56e07140"
1836
+ class="builder-image-sizer div-dc6700b4"
1839
1837
  style={{
1840
1838
  "padding-top": props.aspectRatio * 100 + "%"
1841
1839
  }}
1842
1840
  /></Show8>
1843
1841
  <Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
1844
- <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-56e07140-2">{props.children}</div></Show8>
1842
+ <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-dc6700b4-2">{props.children}</div></Show8>
1845
1843
  </>
1846
- <style>{`.img-56e07140 {
1844
+ <style>{`.img-dc6700b4 {
1847
1845
  opacity: 1;
1848
1846
  transition: opacity 0.2s ease-in-out;
1849
- }.div-56e07140 {
1847
+ }.div-dc6700b4 {
1850
1848
  width: 100%;
1851
1849
  pointer-events: none;
1852
1850
  font-size: 0;
1853
- }.div-56e07140-2 {
1851
+ }.div-dc6700b4-2 {
1854
1852
  display: flex;
1855
1853
  flex-direction: column;
1856
1854
  align-items: stretch;
@@ -1886,10 +1884,10 @@ function SectionComponent(props) {
1886
1884
  var section_default = SectionComponent;
1887
1885
 
1888
1886
  // src/blocks/symbol/symbol.tsx
1889
- import { onMount as onMount8, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
1887
+ import { onMount as onMount7, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
1890
1888
 
1891
1889
  // src/components/content-variants/content-variants.tsx
1892
- import { Show as Show15, For as For9, onMount as onMount7, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
1890
+ import { Show as Show15, For as For8, onMount as onMount6, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
1893
1891
 
1894
1892
  // src/helpers/url.ts
1895
1893
  var getTopLevelDomain = (host) => {
@@ -3165,12 +3163,12 @@ var componentInfo11 = {
3165
3163
  };
3166
3164
 
3167
3165
  // src/blocks/custom-code/custom-code.tsx
3168
- import { onMount as onMount5, createSignal as createSignal11 } from "solid-js";
3166
+ import { onMount as onMount4, createSignal as createSignal11 } from "solid-js";
3169
3167
  function CustomCode(props) {
3170
3168
  const [scriptsInserted, setScriptsInserted] = createSignal11([]);
3171
3169
  const [scriptsRun, setScriptsRun] = createSignal11([]);
3172
3170
  let elementRef;
3173
- onMount5(() => {
3171
+ onMount4(() => {
3174
3172
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
3175
3173
  return;
3176
3174
  }
@@ -3520,7 +3518,7 @@ var componentInfo13 = {
3520
3518
  };
3521
3519
 
3522
3520
  // src/blocks/form/form/form.tsx
3523
- import { Show as Show11, For as For7, createSignal as createSignal13 } from "solid-js";
3521
+ import { Show as Show11, createSignal as createSignal13 } from "solid-js";
3524
3522
 
3525
3523
  // src/functions/get-env.ts
3526
3524
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -3737,16 +3735,7 @@ function FormComponent(props) {
3737
3735
  {...{}}
3738
3736
  {...props.attributes}
3739
3737
  >
3740
- <Show11 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
3741
- const idx = _index();
3742
- return <Block_default
3743
- key={`form-block-${idx}`}
3744
- block={block}
3745
- context={props.builderContext}
3746
- registeredComponents={props.builderComponents}
3747
- linkComponent={props.builderLinkComponent}
3748
- />;
3749
- }}</For7></Show11>
3738
+ {props.children}
3750
3739
  <Show11 when={submissionState() === "error"}><Blocks_default
3751
3740
  path="errorMessage"
3752
3741
  blocks={props.errorMessage}
@@ -3757,14 +3746,14 @@ function FormComponent(props) {
3757
3746
  blocks={props.sendingMessage}
3758
3747
  context={props.builderContext}
3759
3748
  /></Show11>
3760
- <Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-27d18614">{JSON.stringify(responseData(), null, 2)}</pre></Show11>
3749
+ <Show11 when={submissionState() === "error" && responseData()}><pre class="builder-form-error-text pre-04a43b72">{JSON.stringify(responseData(), null, 2)}</pre></Show11>
3761
3750
  <Show11 when={submissionState() === "success"}><Blocks_default
3762
3751
  path="successMessage"
3763
3752
  blocks={props.successMessage}
3764
3753
  context={props.builderContext}
3765
3754
  /></Show11>
3766
3755
  </form>
3767
- <style>{`.pre-27d18614 {
3756
+ <style>{`.pre-04a43b72 {
3768
3757
  padding: 10px;
3769
3758
  color: red;
3770
3759
  text-align: center;
@@ -3889,7 +3878,7 @@ var componentInfo15 = {
3889
3878
  };
3890
3879
 
3891
3880
  // src/blocks/form/select/select.tsx
3892
- import { For as For8 } from "solid-js";
3881
+ import { For as For7 } from "solid-js";
3893
3882
  function SelectComponent(props) {
3894
3883
  return <><select
3895
3884
  {...{}}
@@ -3899,10 +3888,10 @@ function SelectComponent(props) {
3899
3888
  defaultValue={props.defaultValue}
3900
3889
  name={props.name}
3901
3890
  required={props.required}
3902
- ><For8 each={props.options}>{(option, _index) => {
3891
+ ><For7 each={props.options}>{(option, _index) => {
3903
3892
  const index = _index();
3904
3893
  return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
3905
- }}</For8></select></>;
3894
+ }}</For7></select></>;
3906
3895
  }
3907
3896
  var select_default = SelectComponent;
3908
3897
 
@@ -4157,7 +4146,6 @@ function Video(props) {
4157
4146
  "object-position": props.position,
4158
4147
  // Hack to get object fit to work as expected and
4159
4148
  // not have the video overflow
4160
- "z-index": 2,
4161
4149
  "border-radius": "1px",
4162
4150
  ...props.aspectRatio ? {
4163
4151
  position: "absolute"
@@ -4342,7 +4330,7 @@ var Inlined_script_default = InlinedScript;
4342
4330
  // src/components/content/components/enable-editor.tsx
4343
4331
  import {
4344
4332
  Show as Show13,
4345
- onMount as onMount6,
4333
+ onMount as onMount5,
4346
4334
  on as on3,
4347
4335
  createEffect as createEffect3,
4348
4336
  createMemo as createMemo15,
@@ -4356,7 +4344,7 @@ function getPreviewContent(_searchParams) {
4356
4344
  }
4357
4345
 
4358
4346
  // src/constants/sdk-version.ts
4359
- var SDK_VERSION = "3.0.3";
4347
+ var SDK_VERSION = "3.0.5";
4360
4348
 
4361
4349
  // src/helpers/sdk-headers.ts
4362
4350
  var getSdkHeaders = () => ({
@@ -5350,7 +5338,7 @@ function EnableEditor(props) {
5350
5338
  let elementRef;
5351
5339
  runHttpRequests();
5352
5340
  emitStateUpdate();
5353
- onMount6(() => {
5341
+ onMount5(() => {
5354
5342
  if (isBrowser()) {
5355
5343
  if (isEditing() && !props.isNestedRender) {
5356
5344
  window.addEventListener("message", processMessage);
@@ -5695,7 +5683,7 @@ function ContentVariants(props) {
5695
5683
  canTrack: getDefaultCanTrack(props.canTrack)
5696
5684
  });
5697
5685
  });
5698
- onMount7(() => {
5686
+ onMount6(() => {
5699
5687
  setShouldRenderVariants(false);
5700
5688
  });
5701
5689
  return <><>
@@ -5715,7 +5703,7 @@ function ContentVariants(props) {
5715
5703
  scriptStr={updateCookieAndStylesScriptStr()}
5716
5704
  nonce={props.nonce || ""}
5717
5705
  />
5718
- <For9 each={getVariants(props.content)}>{(variant, _index) => {
5706
+ <For8 each={getVariants(props.content)}>{(variant, _index) => {
5719
5707
  const index = _index();
5720
5708
  return <Content_default
5721
5709
  apiHost={props.apiHost}
@@ -5742,7 +5730,7 @@ function ContentVariants(props) {
5742
5730
  trustedHosts={props.trustedHosts}
5743
5731
  {...{}}
5744
5732
  />;
5745
- }}</For9>
5733
+ }}</For8>
5746
5734
  </Show15>
5747
5735
  <Content_default
5748
5736
  apiHost={props.apiHost}
@@ -5825,7 +5813,7 @@ function Symbol(props) {
5825
5813
  }
5826
5814
  });
5827
5815
  }
5828
- onMount8(() => {
5816
+ onMount7(() => {
5829
5817
  });
5830
5818
  const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
5831
5819
  function onUpdateFn_0() {
@@ -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
 
4
4
  // src/blocks/button/button.tsx
5
5
 
@@ -1749,7 +1749,7 @@ var getColumnsClass = (id) => {
1749
1749
 
1750
1750
  // src/blocks/columns/columns.tsx
1751
1751
  var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
1752
- var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-3e5f33a4 {
1752
+ var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-6331dfc5 {
1753
1753
  display: flex;
1754
1754
  line-height: normal;
1755
1755
  }`);
@@ -1878,7 +1878,7 @@ function Columns(props) {
1878
1878
  const _el$ = _tmpl$3();
1879
1879
  spread(_el$, mergeProps({
1880
1880
  get ["class"]() {
1881
- return getColumnsClass(props.builderBlock?.id) + " div-3e5f33a4";
1881
+ return getColumnsClass(props.builderBlock?.id) + " div-6331dfc5";
1882
1882
  },
1883
1883
  get style() {
1884
1884
  return columnsCssVars();
@@ -1919,9 +1919,6 @@ function Columns(props) {
1919
1919
  get parent() {
1920
1920
  return props.builderBlock.id;
1921
1921
  },
1922
- styleProp: {
1923
- flexGrow: "1"
1924
- },
1925
1922
  get context() {
1926
1923
  return props.builderContext;
1927
1924
  },
@@ -1933,6 +1930,9 @@ function Columns(props) {
1933
1930
  },
1934
1931
  get blocks() {
1935
1932
  return column.blocks;
1933
+ },
1934
+ styleProp: {
1935
+ "flex-grow": "1"
1936
1936
  }
1937
1937
  });
1938
1938
  }
@@ -2003,16 +2003,16 @@ function getSrcSet(url) {
2003
2003
  // src/blocks/image/image.tsx
2004
2004
  var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
2005
2005
  var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
2006
- var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-56e07140">`);
2007
- var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-56e07140-2>`);
2008
- var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-56e07140 {
2006
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-dc6700b4">`);
2007
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-dc6700b4-2>`);
2008
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-dc6700b4 {
2009
2009
  opacity: 1;
2010
2010
  transition: opacity 0.2s ease-in-out;
2011
- }.div-56e07140 {
2011
+ }.div-dc6700b4 {
2012
2012
  width: 100%;
2013
2013
  pointer-events: none;
2014
2014
  font-size: 0;
2015
- }.div-56e07140-2 {
2015
+ }.div-dc6700b4-2 {
2016
2016
  display: flex;
2017
2017
  flex-direction: column;
2018
2018
  align-items: stretch;
@@ -2061,8 +2061,6 @@ function Image(props) {
2061
2061
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
2062
2062
  return out;
2063
2063
  });
2064
- onMount(() => {
2065
- });
2066
2064
  return [[(() => {
2067
2065
  const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
2068
2066
  insert(_el$, createComponent(Show, {
@@ -2076,7 +2074,7 @@ function Image(props) {
2076
2074
  }
2077
2075
  }), _el$3);
2078
2076
  effect((_p$) => {
2079
- 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 = {
2077
+ 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 = {
2080
2078
  "object-position": props.backgroundPosition || "center",
2081
2079
  "object-fit": props.backgroundSize || "cover",
2082
2080
  ...aspectRatioCss()
@@ -3889,9 +3887,9 @@ function logFetch(url) {
3889
3887
  }
3890
3888
 
3891
3889
  // src/blocks/form/form/form.tsx
3892
- var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-27d18614">`);
3890
+ var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
3893
3891
  var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
3894
- var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-27d18614 {
3892
+ var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
3895
3893
  padding: 10px;
3896
3894
  color: red;
3897
3895
  text-align: center;
@@ -4101,34 +4099,7 @@ function FormComponent(props) {
4101
4099
  return props.name;
4102
4100
  }
4103
4101
  }, {}, {}, () => props.attributes), false, true);
4104
- insert(_el$, createComponent(Show, {
4105
- get when() {
4106
- return props.builderBlock && props.builderBlock.children;
4107
- },
4108
- get children() {
4109
- return createComponent(For, {
4110
- get each() {
4111
- return props.builderBlock?.children;
4112
- },
4113
- children: (block, _index) => {
4114
- const idx = _index();
4115
- return createComponent(block_default, {
4116
- key: `form-block-${idx}`,
4117
- block,
4118
- get context() {
4119
- return props.builderContext;
4120
- },
4121
- get registeredComponents() {
4122
- return props.builderComponents;
4123
- },
4124
- get linkComponent() {
4125
- return props.builderLinkComponent;
4126
- }
4127
- });
4128
- }
4129
- });
4130
- }
4131
- }), null);
4102
+ insert(_el$, () => props.children, null);
4132
4103
  insert(_el$, createComponent(Show, {
4133
4104
  get when() {
4134
4105
  return submissionState() === "error";
@@ -4637,7 +4608,6 @@ function Video(props) {
4637
4608
  "object-position": props.position,
4638
4609
  // Hack to get object fit to work as expected and
4639
4610
  // not have the video overflow
4640
- "z-index": 2,
4641
4611
  "border-radius": "1px",
4642
4612
  ...props.aspectRatio ? {
4643
4613
  position: "absolute"
@@ -4865,7 +4835,7 @@ function getPreviewContent(_searchParams) {
4865
4835
  }
4866
4836
 
4867
4837
  // src/constants/sdk-version.ts
4868
- var SDK_VERSION = "3.0.3";
4838
+ var SDK_VERSION = "3.0.5";
4869
4839
 
4870
4840
  // src/helpers/sdk-headers.ts
4871
4841
  var getSdkHeaders = () => ({