@builder.io/sdk-solid 4.0.7 → 4.0.8

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/edge/dev.jsx CHANGED
@@ -4385,15 +4385,15 @@ var Block_wrapper_default = BlockWrapper;
4385
4385
  import {
4386
4386
  Show as Show4,
4387
4387
  For,
4388
- on,
4389
- createEffect,
4388
+ on as on2,
4389
+ createEffect as createEffect2,
4390
4390
  createMemo as createMemo3,
4391
4391
  createSignal as createSignal3
4392
4392
  } from "solid-js";
4393
4393
  import { Dynamic as Dynamic3 } from "solid-js/web";
4394
4394
 
4395
4395
  // src/components/block/components/interactive-element.tsx
4396
- import { Show as Show3, createMemo as createMemo2 } from "solid-js";
4396
+ import { Show as Show3, on, createEffect, createMemo as createMemo2, createSignal as createSignal2 } from "solid-js";
4397
4397
  import { Dynamic as Dynamic2 } from "solid-js/web";
4398
4398
 
4399
4399
  // src/components/awaiter.tsx
@@ -4407,6 +4407,7 @@ var Awaiter_default = Awaiter;
4407
4407
 
4408
4408
  // src/components/block/components/interactive-element.tsx
4409
4409
  function InteractiveElement(props) {
4410
+ const [forceRenderCount, setForceRenderCount] = createSignal2(0);
4410
4411
  const attributes = createMemo2(() => {
4411
4412
  return props.includeBlockProps ? {
4412
4413
  ...getBlockProperties({
@@ -4425,6 +4426,21 @@ function InteractiveElement(props) {
4425
4426
  const targetWrapperProps = createMemo2(() => {
4426
4427
  return props.wrapperProps;
4427
4428
  });
4429
+ const onUpdateFn_0_props_wrapperProps = createMemo2(() => props.wrapperProps);
4430
+ const onUpdateFn_0_props_block__component__options = createMemo2(
4431
+ () => props.block?.component?.options
4432
+ );
4433
+ function onUpdateFn_0() {
4434
+ }
4435
+ createEffect(
4436
+ on(
4437
+ () => [
4438
+ onUpdateFn_0_props_wrapperProps(),
4439
+ onUpdateFn_0_props_block__component__options()
4440
+ ],
4441
+ onUpdateFn_0
4442
+ )
4443
+ );
4428
4444
  return <><Show3
4429
4445
  fallback={<Dynamic2
4430
4446
  {...targetWrapperProps()}
@@ -4488,8 +4504,8 @@ function ComponentRef(props) {
4488
4504
  );
4489
4505
  function onUpdateFn_0() {
4490
4506
  }
4491
- createEffect(
4492
- on(
4507
+ createEffect2(
4508
+ on2(
4493
4509
  () => [
4494
4510
  onUpdateFn_0_props_componentOptions(),
4495
4511
  onUpdateFn_0_props_blockChildren()
@@ -4523,7 +4539,7 @@ function ComponentRef(props) {
4523
4539
  var Component_ref_default = ComponentRef;
4524
4540
 
4525
4541
  // src/components/block/components/repeated-block.tsx
4526
- import { on as on2, createEffect as createEffect2, createMemo as createMemo4, createSignal as createSignal4 } from "solid-js";
4542
+ import { on as on3, createEffect as createEffect3, createMemo as createMemo4, createSignal as createSignal4 } from "solid-js";
4527
4543
  function RepeatedBlock(props) {
4528
4544
  const [store, setStore] = createSignal4(props.repeatContext);
4529
4545
  const onUpdateFn_0_props_repeatContext = createMemo4(
@@ -4532,7 +4548,7 @@ function RepeatedBlock(props) {
4532
4548
  function onUpdateFn_0() {
4533
4549
  setStore(props.repeatContext);
4534
4550
  }
4535
- createEffect2(on2(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
4551
+ createEffect3(on3(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
4536
4552
  return <><builder_context_default.Provider value={store()}><Block_default
4537
4553
  block={props.block}
4538
4554
  context={store()}
@@ -4701,7 +4717,7 @@ function Block(props) {
4701
4717
  var Block_default = Block;
4702
4718
 
4703
4719
  // src/components/blocks/blocks-wrapper.tsx
4704
- import { onMount as onMount3, on as on4, createEffect as createEffect4, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
4720
+ import { onMount as onMount3, on as on5, createEffect as createEffect5, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
4705
4721
  import { Dynamic as Dynamic4 } from "solid-js/web";
4706
4722
  function BlocksWrapper(props) {
4707
4723
  const [shouldUpdate, setShouldUpdate] = createSignal6(false);
@@ -4754,7 +4770,7 @@ function BlocksWrapper(props) {
4754
4770
  const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
4755
4771
  function onUpdateFn_0() {
4756
4772
  }
4757
- createEffect4(on4(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
4773
+ createEffect5(on5(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
4758
4774
  return <>
4759
4775
  <Dynamic4
4760
4776
  class={className() + " dynamic-023c60f2"}
@@ -5146,7 +5162,7 @@ function SectionComponent(props) {
5146
5162
  var section_default = SectionComponent;
5147
5163
 
5148
5164
  // src/blocks/symbol/symbol.tsx
5149
- import { onMount as onMount10, on as on8, createEffect as createEffect8, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
5165
+ import { onMount as onMount10, on as on9, createEffect as createEffect9, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
5150
5166
 
5151
5167
  // src/components/content-variants/content-variants.tsx
5152
5168
  import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
@@ -6859,7 +6875,7 @@ var componentInfo12 = {
6859
6875
  };
6860
6876
 
6861
6877
  // src/blocks/custom-code/custom-code.tsx
6862
- import { onMount as onMount6, on as on5, createEffect as createEffect5, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
6878
+ import { onMount as onMount6, on as on6, createEffect as createEffect6, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
6863
6879
  function CustomCode(props) {
6864
6880
  const [scriptsInserted, setScriptsInserted] = createSignal12([]);
6865
6881
  const [scriptsRun, setScriptsRun] = createSignal12([]);
@@ -6909,7 +6925,7 @@ function CustomCode(props) {
6909
6925
  runScripts();
6910
6926
  }
6911
6927
  }
6912
- createEffect5(on5(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
6928
+ createEffect6(on6(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
6913
6929
  return <><div
6914
6930
  class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
6915
6931
  ref={elementRef}
@@ -6937,7 +6953,7 @@ var componentInfo13 = {
6937
6953
  };
6938
6954
 
6939
6955
  // src/blocks/embed/embed.tsx
6940
- import { on as on6, createEffect as createEffect6, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
6956
+ import { on as on7, createEffect as createEffect7, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
6941
6957
 
6942
6958
  // src/blocks/embed/helpers.ts
6943
6959
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -6979,8 +6995,8 @@ function Embed(props) {
6979
6995
  findAndRunScripts();
6980
6996
  }
6981
6997
  }
6982
- createEffect6(
6983
- on6(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
6998
+ createEffect7(
6999
+ on7(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
6984
7000
  );
6985
7001
  return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
6986
7002
  }
@@ -8072,8 +8088,8 @@ var getUpdateVariantVisibilityScript = ({
8072
8088
  import {
8073
8089
  Show as Show14,
8074
8090
  onMount as onMount8,
8075
- on as on7,
8076
- createEffect as createEffect7,
8091
+ on as on8,
8092
+ createEffect as createEffect8,
8077
8093
  createMemo as createMemo16,
8078
8094
  createSignal as createSignal16
8079
8095
  } from "solid-js";
@@ -8085,7 +8101,7 @@ function getPreviewContent(_searchParams) {
8085
8101
  }
8086
8102
 
8087
8103
  // src/constants/sdk-version.ts
8088
- var SDK_VERSION = "4.0.7";
8104
+ var SDK_VERSION = "4.0.8";
8089
8105
 
8090
8106
  // src/helpers/sdk-headers.ts
8091
8107
  var getSdkHeaders = () => ({
@@ -9177,15 +9193,15 @@ function EnableEditor(props) {
9177
9193
  mergeNewContent(props.content);
9178
9194
  }
9179
9195
  }
9180
- createEffect7(on7(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
9196
+ createEffect8(on8(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
9181
9197
  const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
9182
9198
  () => props.builderContextSignal.rootState
9183
9199
  );
9184
9200
  function onUpdateFn_1() {
9185
9201
  emitStateUpdate();
9186
9202
  }
9187
- createEffect7(
9188
- on7(
9203
+ createEffect8(
9204
+ on8(
9189
9205
  () => [onUpdateFn_1_props_builderContextSignal_rootState()],
9190
9206
  onUpdateFn_1
9191
9207
  )
@@ -9196,7 +9212,7 @@ function EnableEditor(props) {
9196
9212
  mergeNewRootState(props.data);
9197
9213
  }
9198
9214
  }
9199
- createEffect7(on7(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
9215
+ createEffect8(on8(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
9200
9216
  const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
9201
9217
  function onUpdateFn_3() {
9202
9218
  if (props.locale) {
@@ -9205,7 +9221,7 @@ function EnableEditor(props) {
9205
9221
  });
9206
9222
  }
9207
9223
  }
9208
- createEffect7(on7(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
9224
+ createEffect8(on8(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
9209
9225
  return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
9210
9226
  when={props.builderContextSignal.content || needsElementRefDivForEditing()}
9211
9227
  ><Dynamic5
@@ -9551,6 +9567,7 @@ var fetchSymbolContent = async ({
9551
9567
  // src/blocks/symbol/symbol.tsx
9552
9568
  function Symbol2(props) {
9553
9569
  const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
9570
+ const [symbolEntry, setSymbolEntry] = createSignal20(props.symbol?.entry);
9554
9571
  const blocksWrapper = createMemo20(() => {
9555
9572
  return "div";
9556
9573
  });
@@ -9566,7 +9583,7 @@ function Symbol2(props) {
9566
9583
  ].filter(Boolean).join(" ");
9567
9584
  });
9568
9585
  function setContent() {
9569
- if (contentToUse())
9586
+ if (contentToUse() && symbolEntry() === props.symbol?.entry)
9570
9587
  return;
9571
9588
  fetchSymbolContent({
9572
9589
  symbol: props.symbol,
@@ -9574,6 +9591,7 @@ function Symbol2(props) {
9574
9591
  }).then((newContent) => {
9575
9592
  if (newContent) {
9576
9593
  setContentToUse(newContent);
9594
+ setSymbolEntry(props.symbol?.entry);
9577
9595
  }
9578
9596
  });
9579
9597
  }
@@ -9583,7 +9601,7 @@ function Symbol2(props) {
9583
9601
  function onUpdateFn_0() {
9584
9602
  setContent();
9585
9603
  }
9586
- createEffect8(on8(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
9604
+ createEffect9(on9(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
9587
9605
  return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
9588
9606
  nonce={props.builderContext.nonce}
9589
9607
  isNestedRender={true}
package/lib/edge/index.js CHANGED
@@ -4390,6 +4390,7 @@ var awaiter_default = Awaiter;
4390
4390
 
4391
4391
  // src/components/block/components/interactive-element.tsx
4392
4392
  function InteractiveElement(props) {
4393
+ createSignal(0);
4393
4394
  const attributes = createMemo(() => {
4394
4395
  return props.includeBlockProps ? {
4395
4396
  ...getBlockProperties({
@@ -4408,6 +4409,11 @@ function InteractiveElement(props) {
4408
4409
  const targetWrapperProps = createMemo(() => {
4409
4410
  return props.wrapperProps;
4410
4411
  });
4412
+ const onUpdateFn_0_props_wrapperProps = createMemo(() => props.wrapperProps);
4413
+ const onUpdateFn_0_props_block__component__options = createMemo(() => props.block?.component?.options);
4414
+ function onUpdateFn_0() {
4415
+ }
4416
+ createEffect(on(() => [onUpdateFn_0_props_wrapperProps(), onUpdateFn_0_props_block__component__options()], onUpdateFn_0));
4411
4417
  return createComponent(Show, {
4412
4418
  get fallback() {
4413
4419
  return createComponent(Dynamic, mergeProps(targetWrapperProps, {
@@ -8545,7 +8551,7 @@ function getPreviewContent(_searchParams) {
8545
8551
  }
8546
8552
 
8547
8553
  // src/constants/sdk-version.ts
8548
- var SDK_VERSION = "4.0.7";
8554
+ var SDK_VERSION = "4.0.8";
8549
8555
 
8550
8556
  // src/helpers/sdk-headers.ts
8551
8557
  var getSdkHeaders = () => ({
@@ -10160,6 +10166,7 @@ var fetchSymbolContent = async ({
10160
10166
  var _tmpl$30 = /* @__PURE__ */ template(`<div>`);
10161
10167
  function Symbol2(props) {
10162
10168
  const [contentToUse, setContentToUse] = createSignal(props.symbol?.content);
10169
+ const [symbolEntry, setSymbolEntry] = createSignal(props.symbol?.entry);
10163
10170
  const blocksWrapper = createMemo(() => {
10164
10171
  return "div";
10165
10172
  });
@@ -10170,7 +10177,7 @@ function Symbol2(props) {
10170
10177
  return [...[props.attributes[getClassPropName()]], "builder-symbol", props.symbol?.inline ? "builder-inline-symbol" : void 0, props.symbol?.dynamic || props.dynamic ? "builder-dynamic-symbol" : void 0].filter(Boolean).join(" ");
10171
10178
  });
10172
10179
  function setContent() {
10173
- if (contentToUse())
10180
+ if (contentToUse() && symbolEntry() === props.symbol?.entry)
10174
10181
  return;
10175
10182
  fetchSymbolContent({
10176
10183
  symbol: props.symbol,
@@ -10178,6 +10185,7 @@ function Symbol2(props) {
10178
10185
  }).then((newContent) => {
10179
10186
  if (newContent) {
10180
10187
  setContentToUse(newContent);
10188
+ setSymbolEntry(props.symbol?.entry);
10181
10189
  }
10182
10190
  });
10183
10191
  }
@@ -4378,15 +4378,15 @@ var Block_wrapper_default = BlockWrapper;
4378
4378
  import {
4379
4379
  Show as Show4,
4380
4380
  For,
4381
- on,
4382
- createEffect,
4381
+ on as on2,
4382
+ createEffect as createEffect2,
4383
4383
  createMemo as createMemo3,
4384
4384
  createSignal as createSignal3
4385
4385
  } from "solid-js";
4386
4386
  import { Dynamic as Dynamic3 } from "solid-js/web";
4387
4387
 
4388
4388
  // src/components/block/components/interactive-element.tsx
4389
- import { Show as Show3, createMemo as createMemo2 } from "solid-js";
4389
+ import { Show as Show3, on, createEffect, createMemo as createMemo2, createSignal as createSignal2 } from "solid-js";
4390
4390
  import { Dynamic as Dynamic2 } from "solid-js/web";
4391
4391
 
4392
4392
  // src/components/awaiter.tsx
@@ -4400,6 +4400,7 @@ var Awaiter_default = Awaiter;
4400
4400
 
4401
4401
  // src/components/block/components/interactive-element.tsx
4402
4402
  function InteractiveElement(props) {
4403
+ const [forceRenderCount, setForceRenderCount] = createSignal2(0);
4403
4404
  const attributes = createMemo2(() => {
4404
4405
  return props.includeBlockProps ? {
4405
4406
  ...getBlockProperties({
@@ -4418,6 +4419,21 @@ function InteractiveElement(props) {
4418
4419
  const targetWrapperProps = createMemo2(() => {
4419
4420
  return props.wrapperProps;
4420
4421
  });
4422
+ const onUpdateFn_0_props_wrapperProps = createMemo2(() => props.wrapperProps);
4423
+ const onUpdateFn_0_props_block__component__options = createMemo2(
4424
+ () => props.block?.component?.options
4425
+ );
4426
+ function onUpdateFn_0() {
4427
+ }
4428
+ createEffect(
4429
+ on(
4430
+ () => [
4431
+ onUpdateFn_0_props_wrapperProps(),
4432
+ onUpdateFn_0_props_block__component__options()
4433
+ ],
4434
+ onUpdateFn_0
4435
+ )
4436
+ );
4421
4437
  return <><Show3
4422
4438
  fallback={<Dynamic2
4423
4439
  {...targetWrapperProps()}
@@ -4481,8 +4497,8 @@ function ComponentRef(props) {
4481
4497
  );
4482
4498
  function onUpdateFn_0() {
4483
4499
  }
4484
- createEffect(
4485
- on(
4500
+ createEffect2(
4501
+ on2(
4486
4502
  () => [
4487
4503
  onUpdateFn_0_props_componentOptions(),
4488
4504
  onUpdateFn_0_props_blockChildren()
@@ -4516,7 +4532,7 @@ function ComponentRef(props) {
4516
4532
  var Component_ref_default = ComponentRef;
4517
4533
 
4518
4534
  // src/components/block/components/repeated-block.tsx
4519
- import { on as on2, createEffect as createEffect2, createMemo as createMemo4, createSignal as createSignal4 } from "solid-js";
4535
+ import { on as on3, createEffect as createEffect3, createMemo as createMemo4, createSignal as createSignal4 } from "solid-js";
4520
4536
  function RepeatedBlock(props) {
4521
4537
  const [store, setStore] = createSignal4(props.repeatContext);
4522
4538
  const onUpdateFn_0_props_repeatContext = createMemo4(
@@ -4525,7 +4541,7 @@ function RepeatedBlock(props) {
4525
4541
  function onUpdateFn_0() {
4526
4542
  setStore(props.repeatContext);
4527
4543
  }
4528
- createEffect2(on2(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
4544
+ createEffect3(on3(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
4529
4545
  return <><builder_context_default.Provider value={store()}><Block_default
4530
4546
  block={props.block}
4531
4547
  context={store()}
@@ -4694,7 +4710,7 @@ function Block(props) {
4694
4710
  var Block_default = Block;
4695
4711
 
4696
4712
  // src/components/blocks/blocks-wrapper.tsx
4697
- import { onMount as onMount3, on as on4, createEffect as createEffect4, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
4713
+ import { onMount as onMount3, on as on5, createEffect as createEffect5, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
4698
4714
  import { Dynamic as Dynamic4 } from "solid-js/web";
4699
4715
  function BlocksWrapper(props) {
4700
4716
  const [shouldUpdate, setShouldUpdate] = createSignal6(false);
@@ -4747,7 +4763,7 @@ function BlocksWrapper(props) {
4747
4763
  const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
4748
4764
  function onUpdateFn_0() {
4749
4765
  }
4750
- createEffect4(on4(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
4766
+ createEffect5(on5(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
4751
4767
  return <>
4752
4768
  <Dynamic4
4753
4769
  class={className() + " dynamic-023c60f2"}
@@ -5138,7 +5154,7 @@ function SectionComponent(props) {
5138
5154
  var section_default = SectionComponent;
5139
5155
 
5140
5156
  // src/blocks/symbol/symbol.tsx
5141
- import { onMount as onMount10, on as on8, createEffect as createEffect8, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
5157
+ import { onMount as onMount10, on as on9, createEffect as createEffect9, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
5142
5158
 
5143
5159
  // src/components/content-variants/content-variants.tsx
5144
5160
  import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
@@ -6850,7 +6866,7 @@ var componentInfo12 = {
6850
6866
  };
6851
6867
 
6852
6868
  // src/blocks/custom-code/custom-code.tsx
6853
- import { onMount as onMount6, on as on5, createEffect as createEffect5, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
6869
+ import { onMount as onMount6, on as on6, createEffect as createEffect6, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
6854
6870
  function CustomCode(props) {
6855
6871
  const [scriptsInserted, setScriptsInserted] = createSignal12([]);
6856
6872
  const [scriptsRun, setScriptsRun] = createSignal12([]);
@@ -6900,7 +6916,7 @@ function CustomCode(props) {
6900
6916
  runScripts();
6901
6917
  }
6902
6918
  }
6903
- createEffect5(on5(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
6919
+ createEffect6(on6(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
6904
6920
  return <><div
6905
6921
  class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
6906
6922
  ref={elementRef}
@@ -6928,7 +6944,7 @@ var componentInfo13 = {
6928
6944
  };
6929
6945
 
6930
6946
  // src/blocks/embed/embed.tsx
6931
- import { on as on6, createEffect as createEffect6, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
6947
+ import { on as on7, createEffect as createEffect7, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
6932
6948
 
6933
6949
  // src/blocks/embed/helpers.ts
6934
6950
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -6970,8 +6986,8 @@ function Embed(props) {
6970
6986
  findAndRunScripts();
6971
6987
  }
6972
6988
  }
6973
- createEffect6(
6974
- on6(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
6989
+ createEffect7(
6990
+ on7(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
6975
6991
  );
6976
6992
  return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
6977
6993
  }
@@ -8062,8 +8078,8 @@ var getUpdateVariantVisibilityScript = ({
8062
8078
  import {
8063
8079
  Show as Show14,
8064
8080
  onMount as onMount8,
8065
- on as on7,
8066
- createEffect as createEffect7,
8081
+ on as on8,
8082
+ createEffect as createEffect8,
8067
8083
  createMemo as createMemo16,
8068
8084
  createSignal as createSignal16
8069
8085
  } from "solid-js";
@@ -8075,7 +8091,7 @@ function getPreviewContent(_searchParams) {
8075
8091
  }
8076
8092
 
8077
8093
  // src/constants/sdk-version.ts
8078
- var SDK_VERSION = "4.0.7";
8094
+ var SDK_VERSION = "4.0.8";
8079
8095
 
8080
8096
  // src/helpers/sdk-headers.ts
8081
8097
  var getSdkHeaders = () => ({
@@ -9160,15 +9176,15 @@ function EnableEditor(props) {
9160
9176
  mergeNewContent(props.content);
9161
9177
  }
9162
9178
  }
9163
- createEffect7(on7(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
9179
+ createEffect8(on8(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
9164
9180
  const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
9165
9181
  () => props.builderContextSignal.rootState
9166
9182
  );
9167
9183
  function onUpdateFn_1() {
9168
9184
  emitStateUpdate();
9169
9185
  }
9170
- createEffect7(
9171
- on7(
9186
+ createEffect8(
9187
+ on8(
9172
9188
  () => [onUpdateFn_1_props_builderContextSignal_rootState()],
9173
9189
  onUpdateFn_1
9174
9190
  )
@@ -9179,7 +9195,7 @@ function EnableEditor(props) {
9179
9195
  mergeNewRootState(props.data);
9180
9196
  }
9181
9197
  }
9182
- createEffect7(on7(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
9198
+ createEffect8(on8(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
9183
9199
  const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
9184
9200
  function onUpdateFn_3() {
9185
9201
  if (props.locale) {
@@ -9188,7 +9204,7 @@ function EnableEditor(props) {
9188
9204
  });
9189
9205
  }
9190
9206
  }
9191
- createEffect7(on7(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
9207
+ createEffect8(on8(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
9192
9208
  return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
9193
9209
  when={props.builderContextSignal.content || needsElementRefDivForEditing()}
9194
9210
  ><Dynamic5
@@ -9534,6 +9550,7 @@ var fetchSymbolContent = async ({
9534
9550
  // src/blocks/symbol/symbol.tsx
9535
9551
  function Symbol2(props) {
9536
9552
  const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
9553
+ const [symbolEntry, setSymbolEntry] = createSignal20(props.symbol?.entry);
9537
9554
  const blocksWrapper = createMemo20(() => {
9538
9555
  return "div";
9539
9556
  });
@@ -9549,7 +9566,7 @@ function Symbol2(props) {
9549
9566
  ].filter(Boolean).join(" ");
9550
9567
  });
9551
9568
  function setContent() {
9552
- if (contentToUse())
9569
+ if (contentToUse() && symbolEntry() === props.symbol?.entry)
9553
9570
  return;
9554
9571
  fetchSymbolContent({
9555
9572
  symbol: props.symbol,
@@ -9557,6 +9574,7 @@ function Symbol2(props) {
9557
9574
  }).then((newContent) => {
9558
9575
  if (newContent) {
9559
9576
  setContentToUse(newContent);
9577
+ setSymbolEntry(props.symbol?.entry);
9560
9578
  }
9561
9579
  });
9562
9580
  }
@@ -9566,7 +9584,7 @@ function Symbol2(props) {
9566
9584
  function onUpdateFn_0() {
9567
9585
  setContent();
9568
9586
  }
9569
- createEffect8(on8(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
9587
+ createEffect9(on9(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
9570
9588
  return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
9571
9589
  nonce={props.builderContext.nonce}
9572
9590
  isNestedRender={true}
package/lib/node/dev.js CHANGED
@@ -1387,6 +1387,7 @@ var awaiter_default = Awaiter;
1387
1387
 
1388
1388
  // src/components/block/components/interactive-element.tsx
1389
1389
  function InteractiveElement(props) {
1390
+ createSignal(0);
1390
1391
  const attributes = createMemo(() => {
1391
1392
  return props.includeBlockProps ? {
1392
1393
  ...getBlockProperties({
@@ -1405,6 +1406,11 @@ function InteractiveElement(props) {
1405
1406
  const targetWrapperProps = createMemo(() => {
1406
1407
  return props.wrapperProps;
1407
1408
  });
1409
+ const onUpdateFn_0_props_wrapperProps = createMemo(() => props.wrapperProps);
1410
+ const onUpdateFn_0_props_block__component__options = createMemo(() => props.block?.component?.options);
1411
+ function onUpdateFn_0() {
1412
+ }
1413
+ createEffect(on(() => [onUpdateFn_0_props_wrapperProps(), onUpdateFn_0_props_block__component__options()], onUpdateFn_0));
1408
1414
  return createComponent(Show, {
1409
1415
  get fallback() {
1410
1416
  return createComponent(Dynamic, mergeProps(targetWrapperProps, {
@@ -5545,7 +5551,7 @@ function getPreviewContent(_searchParams) {
5545
5551
  }
5546
5552
 
5547
5553
  // src/constants/sdk-version.ts
5548
- var SDK_VERSION = "4.0.7";
5554
+ var SDK_VERSION = "4.0.8";
5549
5555
 
5550
5556
  // src/helpers/sdk-headers.ts
5551
5557
  var getSdkHeaders = () => ({
@@ -7167,6 +7173,7 @@ var fetchSymbolContent = async ({
7167
7173
  var _tmpl$30 = /* @__PURE__ */ template(`<div>`);
7168
7174
  function Symbol(props) {
7169
7175
  const [contentToUse, setContentToUse] = createSignal(props.symbol?.content);
7176
+ const [symbolEntry, setSymbolEntry] = createSignal(props.symbol?.entry);
7170
7177
  const blocksWrapper = createMemo(() => {
7171
7178
  return "div";
7172
7179
  });
@@ -7177,7 +7184,7 @@ function Symbol(props) {
7177
7184
  return [...[props.attributes[getClassPropName()]], "builder-symbol", props.symbol?.inline ? "builder-inline-symbol" : void 0, props.symbol?.dynamic || props.dynamic ? "builder-dynamic-symbol" : void 0].filter(Boolean).join(" ");
7178
7185
  });
7179
7186
  function setContent() {
7180
- if (contentToUse())
7187
+ if (contentToUse() && symbolEntry() === props.symbol?.entry)
7181
7188
  return;
7182
7189
  fetchSymbolContent({
7183
7190
  symbol: props.symbol,
@@ -7185,6 +7192,7 @@ function Symbol(props) {
7185
7192
  }).then((newContent) => {
7186
7193
  if (newContent) {
7187
7194
  setContentToUse(newContent);
7195
+ setSymbolEntry(props.symbol?.entry);
7188
7196
  }
7189
7197
  });
7190
7198
  }