@builder.io/sdk-solid 4.0.3 → 4.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.
@@ -1189,7 +1189,14 @@ function BlockWrapper(props) {
1189
1189
  var Block_wrapper_default = BlockWrapper;
1190
1190
 
1191
1191
  // src/components/block/components/component-ref/component-ref.tsx
1192
- import { Show as Show4, For, createSignal as createSignal3 } from "solid-js";
1192
+ import {
1193
+ Show as Show4,
1194
+ For,
1195
+ on,
1196
+ createEffect,
1197
+ createMemo as createMemo3,
1198
+ createSignal as createSignal3
1199
+ } from "solid-js";
1193
1200
  import { Dynamic as Dynamic3 } from "solid-js/web";
1194
1201
 
1195
1202
  // src/components/block/components/interactive-element.tsx
@@ -1273,9 +1280,27 @@ var getWrapperProps = ({
1273
1280
 
1274
1281
  // src/components/block/components/component-ref/component-ref.tsx
1275
1282
  function ComponentRef(props) {
1283
+ const [shouldUpdate, setShouldUpdate] = createSignal3(false);
1276
1284
  const [Wrapper, setWrapper] = createSignal3(
1277
1285
  props.isInteractive ? interactive_element_default : props.componentRef
1278
1286
  );
1287
+ const onUpdateFn_0_props_componentOptions = createMemo3(
1288
+ () => props.componentOptions
1289
+ );
1290
+ const onUpdateFn_0_props_blockChildren = createMemo3(
1291
+ () => props.blockChildren
1292
+ );
1293
+ function onUpdateFn_0() {
1294
+ }
1295
+ createEffect(
1296
+ on(
1297
+ () => [
1298
+ onUpdateFn_0_props_componentOptions(),
1299
+ onUpdateFn_0_props_blockChildren()
1300
+ ],
1301
+ onUpdateFn_0
1302
+ )
1303
+ );
1279
1304
  return <><Show4 when={props.componentRef}><Dynamic3
1280
1305
  {...getWrapperProps({
1281
1306
  componentOptions: props.componentOptions,
@@ -1473,9 +1498,10 @@ function Block(props) {
1473
1498
  var Block_default = Block;
1474
1499
 
1475
1500
  // src/components/blocks/blocks-wrapper.tsx
1476
- import { onMount as onMount3, createMemo as createMemo6 } from "solid-js";
1501
+ import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
1477
1502
  import { Dynamic as Dynamic4 } from "solid-js/web";
1478
1503
  function BlocksWrapper(props) {
1504
+ const [shouldUpdate, setShouldUpdate] = createSignal6(false);
1479
1505
  const className = createMemo6(() => {
1480
1506
  return [
1481
1507
  "builder-blocks",
@@ -1522,9 +1548,13 @@ function BlocksWrapper(props) {
1522
1548
  let blocksWrapperRef;
1523
1549
  onMount3(() => {
1524
1550
  });
1551
+ const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
1552
+ function onUpdateFn_0() {
1553
+ }
1554
+ createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
1525
1555
  return <>
1526
1556
  <Dynamic4
1527
- class={className() + " dynamic-3d7ff108"}
1557
+ class={className() + " dynamic-023c60f2"}
1528
1558
  ref={blocksWrapperRef}
1529
1559
  builder-path={dataPath()}
1530
1560
  builder-parent-id={props.parent}
@@ -1536,7 +1566,7 @@ function BlocksWrapper(props) {
1536
1566
  {...props.BlocksWrapperProps}
1537
1567
  component={props.BlocksWrapper}
1538
1568
  >{props.children}</Dynamic4>
1539
- <style>{`.dynamic-3d7ff108 {
1569
+ <style>{`.dynamic-023c60f2 {
1540
1570
  display: flex;
1541
1571
  flex-direction: column;
1542
1572
  align-items: stretch;
@@ -1701,7 +1731,7 @@ function Columns(props) {
1701
1731
  }
1702
1732
  return <>
1703
1733
  <div
1704
- class={getColumnsClass(props.builderBlock?.id) + " div-6331dfc5"}
1734
+ class={getColumnsClass(props.builderBlock?.id) + " div-7612d942"}
1705
1735
  style={columnsCssVars()}
1706
1736
  {...{}}
1707
1737
  >
@@ -1730,9 +1760,10 @@ function Columns(props) {
1730
1760
  /></Dynamic_renderer_default>;
1731
1761
  }}</For4>
1732
1762
  </div>
1733
- <style>{`.div-6331dfc5 {
1763
+ <style>{`.div-7612d942 {
1734
1764
  display: flex;
1735
1765
  line-height: normal;
1766
+ height: 100%;
1736
1767
  }`}</style>
1737
1768
  </>;
1738
1769
  }
@@ -1839,10 +1870,11 @@ function Image(props) {
1839
1870
  <picture>
1840
1871
  <Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
1841
1872
  <img
1842
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-dc6700b4"}
1873
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-040e729e"}
1843
1874
  loading={props.highPriority ? "eager" : "lazy"}
1844
1875
  fetchpriority={props.highPriority ? "high" : "auto"}
1845
1876
  alt={props.altText}
1877
+ title={props.title}
1846
1878
  role={props.altText ? void 0 : "presentation"}
1847
1879
  style={{
1848
1880
  "object-position": props.backgroundPosition || "center",
@@ -1857,22 +1889,22 @@ function Image(props) {
1857
1889
  <Show8
1858
1890
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
1859
1891
  ><div
1860
- class="builder-image-sizer div-dc6700b4"
1892
+ class="builder-image-sizer div-040e729e"
1861
1893
  style={{
1862
1894
  "padding-top": props.aspectRatio * 100 + "%"
1863
1895
  }}
1864
1896
  /></Show8>
1865
1897
  <Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
1866
- <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-dc6700b4-2">{props.children}</div></Show8>
1898
+ <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-040e729e-2">{props.children}</div></Show8>
1867
1899
  </>
1868
- <style>{`.img-dc6700b4 {
1900
+ <style>{`.img-040e729e {
1869
1901
  opacity: 1;
1870
1902
  transition: opacity 0.2s ease-in-out;
1871
- }.div-dc6700b4 {
1903
+ }.div-040e729e {
1872
1904
  width: 100%;
1873
1905
  pointer-events: none;
1874
1906
  font-size: 0;
1875
- }.div-dc6700b4-2 {
1907
+ }.div-040e729e-2 {
1876
1908
  display: flex;
1877
1909
  flex-direction: column;
1878
1910
  align-items: stretch;
@@ -1908,7 +1940,7 @@ function SectionComponent(props) {
1908
1940
  var section_default = SectionComponent;
1909
1941
 
1910
1942
  // src/blocks/symbol/symbol.tsx
1911
- import { onMount as onMount9, on as on5, createEffect as createEffect5, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
1943
+ import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
1912
1944
 
1913
1945
  // src/components/content-variants/content-variants.tsx
1914
1946
  import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
@@ -2806,6 +2838,10 @@ var componentInfo5 = {
2806
2838
  name: "altText",
2807
2839
  type: "string",
2808
2840
  helperText: "Text to display when the user has images off"
2841
+ }, {
2842
+ name: "title",
2843
+ type: "string",
2844
+ helperText: "Text to display when hovering over the asset"
2809
2845
  }, {
2810
2846
  name: "height",
2811
2847
  type: "number",
@@ -3616,7 +3652,7 @@ var componentInfo12 = {
3616
3652
  };
3617
3653
 
3618
3654
  // src/blocks/custom-code/custom-code.tsx
3619
- import { onMount as onMount5, on as on2, createEffect as createEffect2, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
3655
+ import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
3620
3656
  function CustomCode(props) {
3621
3657
  const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3622
3658
  const [scriptsRun, setScriptsRun] = createSignal12([]);
@@ -3666,7 +3702,7 @@ function CustomCode(props) {
3666
3702
  runScripts();
3667
3703
  }
3668
3704
  }
3669
- createEffect2(on2(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
3705
+ createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
3670
3706
  return <><div
3671
3707
  class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
3672
3708
  ref={elementRef}
@@ -3694,7 +3730,7 @@ var componentInfo13 = {
3694
3730
  };
3695
3731
 
3696
3732
  // src/blocks/embed/embed.tsx
3697
- import { on as on3, createEffect as createEffect3, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
3733
+ import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
3698
3734
 
3699
3735
  // src/blocks/embed/helpers.ts
3700
3736
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -3736,8 +3772,8 @@ function Embed(props) {
3736
3772
  findAndRunScripts();
3737
3773
  }
3738
3774
  }
3739
- createEffect3(
3740
- on3(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
3775
+ createEffect5(
3776
+ on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
3741
3777
  );
3742
3778
  return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
3743
3779
  }
@@ -4828,8 +4864,8 @@ var getUpdateVariantVisibilityScript = ({
4828
4864
  import {
4829
4865
  Show as Show14,
4830
4866
  onMount as onMount7,
4831
- on as on4,
4832
- createEffect as createEffect4,
4867
+ on as on6,
4868
+ createEffect as createEffect6,
4833
4869
  createMemo as createMemo16,
4834
4870
  createSignal as createSignal16
4835
4871
  } from "solid-js";
@@ -4841,7 +4877,7 @@ function getPreviewContent(_searchParams) {
4841
4877
  }
4842
4878
 
4843
4879
  // src/constants/sdk-version.ts
4844
- var SDK_VERSION = "4.0.3";
4880
+ var SDK_VERSION = "4.0.5";
4845
4881
 
4846
4882
  // src/helpers/sdk-headers.ts
4847
4883
  var getSdkHeaders = () => ({
@@ -5926,15 +5962,15 @@ function EnableEditor(props) {
5926
5962
  mergeNewContent(props.content);
5927
5963
  }
5928
5964
  }
5929
- createEffect4(on4(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
5965
+ createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
5930
5966
  const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
5931
5967
  () => props.builderContextSignal.rootState
5932
5968
  );
5933
5969
  function onUpdateFn_1() {
5934
5970
  emitStateUpdate();
5935
5971
  }
5936
- createEffect4(
5937
- on4(
5972
+ createEffect6(
5973
+ on6(
5938
5974
  () => [onUpdateFn_1_props_builderContextSignal_rootState()],
5939
5975
  onUpdateFn_1
5940
5976
  )
@@ -5945,7 +5981,7 @@ function EnableEditor(props) {
5945
5981
  mergeNewRootState(props.data);
5946
5982
  }
5947
5983
  }
5948
- createEffect4(on4(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
5984
+ createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
5949
5985
  const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
5950
5986
  function onUpdateFn_3() {
5951
5987
  if (props.locale) {
@@ -5954,7 +5990,7 @@ function EnableEditor(props) {
5954
5990
  });
5955
5991
  }
5956
5992
  }
5957
- createEffect4(on4(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
5993
+ createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
5958
5994
  return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
5959
5995
  when={props.builderContextSignal.content || needsElementRefDivForEditing()}
5960
5996
  ><Dynamic5
@@ -6332,7 +6368,7 @@ function Symbol(props) {
6332
6368
  function onUpdateFn_0() {
6333
6369
  setContent();
6334
6370
  }
6335
- createEffect5(on5(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
6371
+ createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
6336
6372
  return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
6337
6373
  nonce={props.builderContext.nonce}
6338
6374
  isNestedRender={true}
package/lib/edge/dev.js CHANGED
@@ -4486,7 +4486,13 @@ var getWrapperProps = ({
4486
4486
 
4487
4487
  // src/components/block/components/component-ref/component-ref.tsx
4488
4488
  function ComponentRef(props) {
4489
+ createSignal(false);
4489
4490
  const [Wrapper, setWrapper] = createSignal(props.isInteractive ? interactive_element_default : props.componentRef);
4491
+ const onUpdateFn_0_props_componentOptions = createMemo(() => props.componentOptions);
4492
+ const onUpdateFn_0_props_blockChildren = createMemo(() => props.blockChildren);
4493
+ function onUpdateFn_0() {
4494
+ }
4495
+ createEffect(on(() => [onUpdateFn_0_props_componentOptions(), onUpdateFn_0_props_blockChildren()], onUpdateFn_0));
4490
4496
  return createComponent(Show, {
4491
4497
  get when() {
4492
4498
  return props.componentRef;
@@ -4822,12 +4828,13 @@ function Block(props) {
4822
4828
  });
4823
4829
  }
4824
4830
  var block_default = Block;
4825
- var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-3d7ff108 {
4831
+ var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-023c60f2 {
4826
4832
  display: flex;
4827
4833
  flex-direction: column;
4828
4834
  align-items: stretch;
4829
4835
  }`);
4830
4836
  function BlocksWrapper(props) {
4837
+ createSignal(false);
4831
4838
  const className = createMemo(() => {
4832
4839
  return ["builder-blocks", !props.blocks?.length ? "no-blocks" : "", props.classNameProp].filter(Boolean).join(" ");
4833
4840
  });
@@ -4864,9 +4871,13 @@ function BlocksWrapper(props) {
4864
4871
  let blocksWrapperRef;
4865
4872
  onMount(() => {
4866
4873
  });
4874
+ const onUpdateFn_0_props_blocks = createMemo(() => props.blocks);
4875
+ function onUpdateFn_0() {
4876
+ }
4877
+ createEffect(on(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
4867
4878
  return [createComponent(Dynamic, mergeProps({
4868
4879
  get ["class"]() {
4869
- return className() + " dynamic-3d7ff108";
4880
+ return className() + " dynamic-023c60f2";
4870
4881
  },
4871
4882
  ref(r$) {
4872
4883
  const _ref$ = blocksWrapperRef;
@@ -4965,9 +4976,10 @@ var getColumnsClass = (id2) => {
4965
4976
 
4966
4977
  // src/blocks/columns/columns.tsx
4967
4978
  var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
4968
- var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-6331dfc5 {
4979
+ var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-7612d942 {
4969
4980
  display: flex;
4970
4981
  line-height: normal;
4982
+ height: 100%;
4971
4983
  }`);
4972
4984
  function Columns(props) {
4973
4985
  const gutterSize = createMemo(() => {
@@ -5094,7 +5106,7 @@ function Columns(props) {
5094
5106
  const _el$ = _tmpl$3();
5095
5107
  spread(_el$, mergeProps({
5096
5108
  get ["class"]() {
5097
- return getColumnsClass(props.builderBlock?.id) + " div-6331dfc5";
5109
+ return getColumnsClass(props.builderBlock?.id) + " div-7612d942";
5098
5110
  },
5099
5111
  get style() {
5100
5112
  return columnsCssVars();
@@ -5219,16 +5231,16 @@ function getSrcSet(url) {
5219
5231
  // src/blocks/image/image.tsx
5220
5232
  var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
5221
5233
  var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
5222
- var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-dc6700b4">`);
5223
- var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-dc6700b4-2>`);
5224
- var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-dc6700b4 {
5234
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-040e729e">`);
5235
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-040e729e-2>`);
5236
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-040e729e {
5225
5237
  opacity: 1;
5226
5238
  transition: opacity 0.2s ease-in-out;
5227
- }.div-dc6700b4 {
5239
+ }.div-040e729e {
5228
5240
  width: 100%;
5229
5241
  pointer-events: none;
5230
5242
  font-size: 0;
5231
- }.div-dc6700b4-2 {
5243
+ }.div-040e729e-2 {
5232
5244
  display: flex;
5233
5245
  flex-direction: column;
5234
5246
  align-items: stretch;
@@ -5291,20 +5303,21 @@ function Image(props) {
5291
5303
  }
5292
5304
  }), _el$3);
5293
5305
  effect((_p$) => {
5294
- 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 = {
5306
+ const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-040e729e", _v$2 = props.highPriority ? "eager" : "lazy", _v$3 = props.highPriority ? "high" : "auto", _v$4 = props.altText, _v$5 = props.title, _v$6 = props.altText ? void 0 : "presentation", _v$7 = {
5295
5307
  "object-position": props.backgroundPosition || "center",
5296
5308
  "object-fit": props.backgroundSize || "cover",
5297
5309
  ...aspectRatioCss()
5298
- }, _v$7 = props.image, _v$8 = srcSetToUse(), _v$9 = props.sizes;
5310
+ }, _v$8 = props.image, _v$9 = srcSetToUse(), _v$10 = props.sizes;
5299
5311
  _v$ !== _p$._v$ && className(_el$3, _p$._v$ = _v$);
5300
5312
  _v$2 !== _p$._v$2 && setAttribute(_el$3, "loading", _p$._v$2 = _v$2);
5301
5313
  _v$3 !== _p$._v$3 && setAttribute(_el$3, "fetchpriority", _p$._v$3 = _v$3);
5302
5314
  _v$4 !== _p$._v$4 && setAttribute(_el$3, "alt", _p$._v$4 = _v$4);
5303
- _v$5 !== _p$._v$5 && setAttribute(_el$3, "role", _p$._v$5 = _v$5);
5304
- _p$._v$6 = style(_el$3, _v$6, _p$._v$6);
5305
- _v$7 !== _p$._v$7 && setAttribute(_el$3, "src", _p$._v$7 = _v$7);
5306
- _v$8 !== _p$._v$8 && setAttribute(_el$3, "srcset", _p$._v$8 = _v$8);
5307
- _v$9 !== _p$._v$9 && setAttribute(_el$3, "sizes", _p$._v$9 = _v$9);
5315
+ _v$5 !== _p$._v$5 && setAttribute(_el$3, "title", _p$._v$5 = _v$5);
5316
+ _v$6 !== _p$._v$6 && setAttribute(_el$3, "role", _p$._v$6 = _v$6);
5317
+ _p$._v$7 = style(_el$3, _v$7, _p$._v$7);
5318
+ _v$8 !== _p$._v$8 && setAttribute(_el$3, "src", _p$._v$8 = _v$8);
5319
+ _v$9 !== _p$._v$9 && setAttribute(_el$3, "srcset", _p$._v$9 = _v$9);
5320
+ _v$10 !== _p$._v$10 && setAttribute(_el$3, "sizes", _p$._v$10 = _v$10);
5308
5321
  return _p$;
5309
5322
  }, {
5310
5323
  _v$: void 0,
@@ -5315,7 +5328,8 @@ function Image(props) {
5315
5328
  _v$6: void 0,
5316
5329
  _v$7: void 0,
5317
5330
  _v$8: void 0,
5318
- _v$9: void 0
5331
+ _v$9: void 0,
5332
+ _v$10: void 0
5319
5333
  });
5320
5334
  return _el$;
5321
5335
  })(), createComponent(Show, {
@@ -6299,6 +6313,10 @@ var componentInfo5 = {
6299
6313
  name: "altText",
6300
6314
  type: "string",
6301
6315
  helperText: "Text to display when the user has images off"
6316
+ }, {
6317
+ name: "title",
6318
+ type: "string",
6319
+ helperText: "Text to display when hovering over the asset"
6302
6320
  }, {
6303
6321
  name: "height",
6304
6322
  type: "number",
@@ -8522,7 +8540,7 @@ function getPreviewContent(_searchParams) {
8522
8540
  }
8523
8541
 
8524
8542
  // src/constants/sdk-version.ts
8525
- var SDK_VERSION = "4.0.3";
8543
+ var SDK_VERSION = "4.0.5";
8526
8544
 
8527
8545
  // src/helpers/sdk-headers.ts
8528
8546
  var getSdkHeaders = () => ({
package/lib/edge/dev.jsx CHANGED
@@ -4379,7 +4379,14 @@ function BlockWrapper(props) {
4379
4379
  var Block_wrapper_default = BlockWrapper;
4380
4380
 
4381
4381
  // src/components/block/components/component-ref/component-ref.tsx
4382
- import { Show as Show4, For, createSignal as createSignal3 } from "solid-js";
4382
+ import {
4383
+ Show as Show4,
4384
+ For,
4385
+ on,
4386
+ createEffect,
4387
+ createMemo as createMemo3,
4388
+ createSignal as createSignal3
4389
+ } from "solid-js";
4383
4390
  import { Dynamic as Dynamic3 } from "solid-js/web";
4384
4391
 
4385
4392
  // src/components/block/components/interactive-element.tsx
@@ -4463,9 +4470,27 @@ var getWrapperProps = ({
4463
4470
 
4464
4471
  // src/components/block/components/component-ref/component-ref.tsx
4465
4472
  function ComponentRef(props) {
4473
+ const [shouldUpdate, setShouldUpdate] = createSignal3(false);
4466
4474
  const [Wrapper, setWrapper] = createSignal3(
4467
4475
  props.isInteractive ? interactive_element_default : props.componentRef
4468
4476
  );
4477
+ const onUpdateFn_0_props_componentOptions = createMemo3(
4478
+ () => props.componentOptions
4479
+ );
4480
+ const onUpdateFn_0_props_blockChildren = createMemo3(
4481
+ () => props.blockChildren
4482
+ );
4483
+ function onUpdateFn_0() {
4484
+ }
4485
+ createEffect(
4486
+ on(
4487
+ () => [
4488
+ onUpdateFn_0_props_componentOptions(),
4489
+ onUpdateFn_0_props_blockChildren()
4490
+ ],
4491
+ onUpdateFn_0
4492
+ )
4493
+ );
4469
4494
  return <><Show4 when={props.componentRef}><Dynamic3
4470
4495
  {...getWrapperProps({
4471
4496
  componentOptions: props.componentOptions,
@@ -4663,9 +4688,10 @@ function Block(props) {
4663
4688
  var Block_default = Block;
4664
4689
 
4665
4690
  // src/components/blocks/blocks-wrapper.tsx
4666
- import { onMount as onMount3, createMemo as createMemo6 } from "solid-js";
4691
+ import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
4667
4692
  import { Dynamic as Dynamic4 } from "solid-js/web";
4668
4693
  function BlocksWrapper(props) {
4694
+ const [shouldUpdate, setShouldUpdate] = createSignal6(false);
4669
4695
  const className = createMemo6(() => {
4670
4696
  return [
4671
4697
  "builder-blocks",
@@ -4712,9 +4738,13 @@ function BlocksWrapper(props) {
4712
4738
  let blocksWrapperRef;
4713
4739
  onMount3(() => {
4714
4740
  });
4741
+ const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
4742
+ function onUpdateFn_0() {
4743
+ }
4744
+ createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
4715
4745
  return <>
4716
4746
  <Dynamic4
4717
- class={className() + " dynamic-3d7ff108"}
4747
+ class={className() + " dynamic-023c60f2"}
4718
4748
  ref={blocksWrapperRef}
4719
4749
  builder-path={dataPath()}
4720
4750
  builder-parent-id={props.parent}
@@ -4726,7 +4756,7 @@ function BlocksWrapper(props) {
4726
4756
  {...props.BlocksWrapperProps}
4727
4757
  component={props.BlocksWrapper}
4728
4758
  >{props.children}</Dynamic4>
4729
- <style>{`.dynamic-3d7ff108 {
4759
+ <style>{`.dynamic-023c60f2 {
4730
4760
  display: flex;
4731
4761
  flex-direction: column;
4732
4762
  align-items: stretch;
@@ -4891,7 +4921,7 @@ function Columns(props) {
4891
4921
  }
4892
4922
  return <>
4893
4923
  <div
4894
- class={getColumnsClass(props.builderBlock?.id) + " div-6331dfc5"}
4924
+ class={getColumnsClass(props.builderBlock?.id) + " div-7612d942"}
4895
4925
  style={columnsCssVars()}
4896
4926
  {...{}}
4897
4927
  >
@@ -4920,9 +4950,10 @@ function Columns(props) {
4920
4950
  /></Dynamic_renderer_default>;
4921
4951
  }}</For4>
4922
4952
  </div>
4923
- <style>{`.div-6331dfc5 {
4953
+ <style>{`.div-7612d942 {
4924
4954
  display: flex;
4925
4955
  line-height: normal;
4956
+ height: 100%;
4926
4957
  }`}</style>
4927
4958
  </>;
4928
4959
  }
@@ -5030,10 +5061,11 @@ function Image(props) {
5030
5061
  <picture>
5031
5062
  <Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
5032
5063
  <img
5033
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-dc6700b4"}
5064
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-040e729e"}
5034
5065
  loading={props.highPriority ? "eager" : "lazy"}
5035
5066
  fetchpriority={props.highPriority ? "high" : "auto"}
5036
5067
  alt={props.altText}
5068
+ title={props.title}
5037
5069
  role={props.altText ? void 0 : "presentation"}
5038
5070
  style={{
5039
5071
  "object-position": props.backgroundPosition || "center",
@@ -5048,22 +5080,22 @@ function Image(props) {
5048
5080
  <Show8
5049
5081
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
5050
5082
  ><div
5051
- class="builder-image-sizer div-dc6700b4"
5083
+ class="builder-image-sizer div-040e729e"
5052
5084
  style={{
5053
5085
  "padding-top": props.aspectRatio * 100 + "%"
5054
5086
  }}
5055
5087
  /></Show8>
5056
5088
  <Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
5057
- <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-dc6700b4-2">{props.children}</div></Show8>
5089
+ <Show8 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-040e729e-2">{props.children}</div></Show8>
5058
5090
  </>
5059
- <style>{`.img-dc6700b4 {
5091
+ <style>{`.img-040e729e {
5060
5092
  opacity: 1;
5061
5093
  transition: opacity 0.2s ease-in-out;
5062
- }.div-dc6700b4 {
5094
+ }.div-040e729e {
5063
5095
  width: 100%;
5064
5096
  pointer-events: none;
5065
5097
  font-size: 0;
5066
- }.div-dc6700b4-2 {
5098
+ }.div-040e729e-2 {
5067
5099
  display: flex;
5068
5100
  flex-direction: column;
5069
5101
  align-items: stretch;
@@ -5099,7 +5131,7 @@ function SectionComponent(props) {
5099
5131
  var section_default = SectionComponent;
5100
5132
 
5101
5133
  // src/blocks/symbol/symbol.tsx
5102
- import { onMount as onMount9, on as on5, createEffect as createEffect5, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
5134
+ import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
5103
5135
 
5104
5136
  // src/components/content-variants/content-variants.tsx
5105
5137
  import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
@@ -5998,6 +6030,10 @@ var componentInfo5 = {
5998
6030
  name: "altText",
5999
6031
  type: "string",
6000
6032
  helperText: "Text to display when the user has images off"
6033
+ }, {
6034
+ name: "title",
6035
+ type: "string",
6036
+ helperText: "Text to display when hovering over the asset"
6001
6037
  }, {
6002
6038
  name: "height",
6003
6039
  type: "number",
@@ -6808,7 +6844,7 @@ var componentInfo12 = {
6808
6844
  };
6809
6845
 
6810
6846
  // src/blocks/custom-code/custom-code.tsx
6811
- import { onMount as onMount5, on as on2, createEffect as createEffect2, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
6847
+ import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
6812
6848
  function CustomCode(props) {
6813
6849
  const [scriptsInserted, setScriptsInserted] = createSignal12([]);
6814
6850
  const [scriptsRun, setScriptsRun] = createSignal12([]);
@@ -6858,7 +6894,7 @@ function CustomCode(props) {
6858
6894
  runScripts();
6859
6895
  }
6860
6896
  }
6861
- createEffect2(on2(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
6897
+ createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
6862
6898
  return <><div
6863
6899
  class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
6864
6900
  ref={elementRef}
@@ -6886,7 +6922,7 @@ var componentInfo13 = {
6886
6922
  };
6887
6923
 
6888
6924
  // src/blocks/embed/embed.tsx
6889
- import { on as on3, createEffect as createEffect3, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
6925
+ import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
6890
6926
 
6891
6927
  // src/blocks/embed/helpers.ts
6892
6928
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -6928,8 +6964,8 @@ function Embed(props) {
6928
6964
  findAndRunScripts();
6929
6965
  }
6930
6966
  }
6931
- createEffect3(
6932
- on3(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
6967
+ createEffect5(
6968
+ on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
6933
6969
  );
6934
6970
  return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
6935
6971
  }
@@ -8021,8 +8057,8 @@ var getUpdateVariantVisibilityScript = ({
8021
8057
  import {
8022
8058
  Show as Show14,
8023
8059
  onMount as onMount7,
8024
- on as on4,
8025
- createEffect as createEffect4,
8060
+ on as on6,
8061
+ createEffect as createEffect6,
8026
8062
  createMemo as createMemo16,
8027
8063
  createSignal as createSignal16
8028
8064
  } from "solid-js";
@@ -8034,7 +8070,7 @@ function getPreviewContent(_searchParams) {
8034
8070
  }
8035
8071
 
8036
8072
  // src/constants/sdk-version.ts
8037
- var SDK_VERSION = "4.0.3";
8073
+ var SDK_VERSION = "4.0.5";
8038
8074
 
8039
8075
  // src/helpers/sdk-headers.ts
8040
8076
  var getSdkHeaders = () => ({
@@ -9126,15 +9162,15 @@ function EnableEditor(props) {
9126
9162
  mergeNewContent(props.content);
9127
9163
  }
9128
9164
  }
9129
- createEffect4(on4(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
9165
+ createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
9130
9166
  const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
9131
9167
  () => props.builderContextSignal.rootState
9132
9168
  );
9133
9169
  function onUpdateFn_1() {
9134
9170
  emitStateUpdate();
9135
9171
  }
9136
- createEffect4(
9137
- on4(
9172
+ createEffect6(
9173
+ on6(
9138
9174
  () => [onUpdateFn_1_props_builderContextSignal_rootState()],
9139
9175
  onUpdateFn_1
9140
9176
  )
@@ -9145,7 +9181,7 @@ function EnableEditor(props) {
9145
9181
  mergeNewRootState(props.data);
9146
9182
  }
9147
9183
  }
9148
- createEffect4(on4(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
9184
+ createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
9149
9185
  const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
9150
9186
  function onUpdateFn_3() {
9151
9187
  if (props.locale) {
@@ -9154,7 +9190,7 @@ function EnableEditor(props) {
9154
9190
  });
9155
9191
  }
9156
9192
  }
9157
- createEffect4(on4(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
9193
+ createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
9158
9194
  return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
9159
9195
  when={props.builderContextSignal.content || needsElementRefDivForEditing()}
9160
9196
  ><Dynamic5
@@ -9532,7 +9568,7 @@ function Symbol2(props) {
9532
9568
  function onUpdateFn_0() {
9533
9569
  setContent();
9534
9570
  }
9535
- createEffect5(on5(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
9571
+ createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
9536
9572
  return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
9537
9573
  nonce={props.builderContext.nonce}
9538
9574
  isNestedRender={true}