@builder.io/sdk-solid 2.0.3 → 2.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.
@@ -531,6 +531,9 @@ function assign(target, ..._args) {
531
531
  return to;
532
532
  }
533
533
  function bindAnimations(animations) {
534
+ if (TARGET === "reactNative") {
535
+ return;
536
+ }
534
537
  for (const animation of animations) {
535
538
  switch (animation.trigger) {
536
539
  case "pageLoad":
@@ -1269,7 +1272,7 @@ function Block(props) {
1269
1272
  registeredComponents: props.registeredComponents,
1270
1273
  builderBlock: processedBlock(),
1271
1274
  includeBlockProps: blockComponent()?.noWrap === true,
1272
- isInteractive: !blockComponent()?.isRSC
1275
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1273
1276
  };
1274
1277
  });
1275
1278
  onMount(() => {
@@ -1803,16 +1806,16 @@ function getSrcSet(url) {
1803
1806
  // src/blocks/image/image.tsx
1804
1807
  var _tmpl$5 = /* @__PURE__ */ template(`<source type=image/webp>`);
1805
1808
  var _tmpl$23 = /* @__PURE__ */ template(`<picture><img>`);
1806
- var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-e3b1053e">`);
1807
- var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-e3b1053e-2>`);
1808
- var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-e3b1053e {
1809
+ var _tmpl$32 = /* @__PURE__ */ template(`<div class="builder-image-sizer div-4512e110">`);
1810
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class=div-4512e110-2>`);
1811
+ var _tmpl$52 = /* @__PURE__ */ template(`<style>.img-4512e110 {
1809
1812
  opacity: 1;
1810
1813
  transition: opacity 0.2s ease-in-out;
1811
- }.div-e3b1053e {
1814
+ }.div-4512e110 {
1812
1815
  width: 100%;
1813
1816
  pointer-events: none;
1814
1817
  font-size: 0;
1815
- }.div-e3b1053e-2 {
1818
+ }.div-4512e110-2 {
1816
1819
  display: flex;
1817
1820
  flex-direction: column;
1818
1821
  align-items: stretch;
@@ -1861,6 +1864,8 @@ function Image(props) {
1861
1864
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
1862
1865
  return out;
1863
1866
  });
1867
+ onMount(() => {
1868
+ });
1864
1869
  return [[(() => {
1865
1870
  const _el$ = _tmpl$23(), _el$3 = _el$.firstChild;
1866
1871
  insert(_el$, createComponent(Show, {
@@ -1874,7 +1879,7 @@ function Image(props) {
1874
1879
  }
1875
1880
  }), _el$3);
1876
1881
  effect((_p$) => {
1877
- const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-e3b1053e", _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 = {
1882
+ const _v$ = "builder-image" + (props.className ? " " + props.className : "") + " img-4512e110", _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 = {
1878
1883
  "object-position": props.backgroundPosition || "center",
1879
1884
  "object-fit": props.backgroundSize || "cover",
1880
1885
  ...aspectRatioCss()
@@ -3244,7 +3249,8 @@ delegateEvents(["click"]);
3244
3249
  // src/blocks/text/component-info.ts
3245
3250
  var componentInfo10 = {
3246
3251
  shouldReceiveBuilderProps: {
3247
- builderBlock: TARGET === "reactNative" ? true : false
3252
+ builderBlock: TARGET === "reactNative" ? true : false,
3253
+ builderContext: true
3248
3254
  },
3249
3255
  name: "Text",
3250
3256
  static: true,
@@ -3266,10 +3272,27 @@ var componentInfo10 = {
3266
3272
  };
3267
3273
  var _tmpl$10 = /* @__PURE__ */ template(`<div class=builder-text>`);
3268
3274
  function Text(props) {
3275
+ const processedText = createMemo(() => {
3276
+ const context = props.builderContext;
3277
+ const {
3278
+ context: contextContext,
3279
+ localState,
3280
+ rootState,
3281
+ rootSetState
3282
+ } = context;
3283
+ return String(props.text?.toString() || "").replace(/{{([^}]+)}}/g, (match, group) => evaluate({
3284
+ code: group,
3285
+ context: contextContext,
3286
+ localState,
3287
+ rootState,
3288
+ rootSetState,
3289
+ enableCache: false
3290
+ }));
3291
+ });
3269
3292
  return (() => {
3270
3293
  const _el$ = _tmpl$10();
3271
3294
  _el$.style.setProperty("outline", "none");
3272
- effect(() => _el$.innerHTML = props.text?.toString() || "");
3295
+ effect(() => _el$.innerHTML = processedText());
3273
3296
  return _el$;
3274
3297
  })();
3275
3298
  }
@@ -5134,7 +5157,7 @@ function isFromTrustedHost(trustedHosts, e) {
5134
5157
  }
5135
5158
 
5136
5159
  // src/constants/sdk-version.ts
5137
- var SDK_VERSION = "2.0.3";
5160
+ var SDK_VERSION = "2.0.8";
5138
5161
 
5139
5162
  // src/functions/register.ts
5140
5163
  var registry = {};
@@ -6007,7 +6030,7 @@ function ContentVariants(props) {
6007
6030
  },
6008
6031
  children: (variant, _index) => {
6009
6032
  _index();
6010
- return createComponent(content_default, {
6033
+ return createComponent(content_default, mergeProps({
6011
6034
  get isNestedRender() {
6012
6035
  return props.isNestedRender;
6013
6036
  },
@@ -6067,7 +6090,7 @@ function ContentVariants(props) {
6067
6090
  get trustedHosts() {
6068
6091
  return props.trustedHosts;
6069
6092
  }
6070
- });
6093
+ }, {}));
6071
6094
  }
6072
6095
  })];
6073
6096
  }
@@ -518,6 +518,9 @@ function assign(target, ..._args) {
518
518
  return to;
519
519
  }
520
520
  function bindAnimations(animations) {
521
+ if (TARGET === "reactNative") {
522
+ return;
523
+ }
521
524
  for (const animation of animations) {
522
525
  switch (animation.trigger) {
523
526
  case "pageLoad":
@@ -1216,7 +1219,7 @@ function Block(props) {
1216
1219
  registeredComponents: props.registeredComponents,
1217
1220
  builderBlock: processedBlock(),
1218
1221
  includeBlockProps: blockComponent()?.noWrap === true,
1219
- isInteractive: !blockComponent()?.isRSC
1222
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1220
1223
  };
1221
1224
  });
1222
1225
  onMount(() => {
@@ -1541,7 +1544,7 @@ function FragmentComponent(props) {
1541
1544
  var fragment_default = FragmentComponent;
1542
1545
 
1543
1546
  // src/blocks/image/image.tsx
1544
- import { Show as Show7, createMemo as createMemo8 } from "solid-js";
1547
+ import { Show as Show7, onMount as onMount2, createMemo as createMemo8 } from "solid-js";
1545
1548
 
1546
1549
  // src/blocks/image/image.helpers.ts
1547
1550
  function removeProtocol(path) {
@@ -1630,12 +1633,14 @@ function Image(props) {
1630
1633
  const out = props.aspectRatio ? aspectRatioStyles : void 0;
1631
1634
  return out;
1632
1635
  });
1636
+ onMount2(() => {
1637
+ });
1633
1638
  return <>
1634
1639
  <>
1635
1640
  <picture>
1636
1641
  <Show7 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show7>
1637
1642
  <img
1638
- class={"builder-image" + (props.className ? " " + props.className : "") + " img-e3b1053e"}
1643
+ class={"builder-image" + (props.className ? " " + props.className : "") + " img-4512e110"}
1639
1644
  loading={props.highPriority ? "eager" : "lazy"}
1640
1645
  fetchpriority={props.highPriority ? "high" : "auto"}
1641
1646
  alt={props.altText}
@@ -1653,22 +1658,22 @@ function Image(props) {
1653
1658
  <Show7
1654
1659
  when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
1655
1660
  ><div
1656
- class="builder-image-sizer div-e3b1053e"
1661
+ class="builder-image-sizer div-4512e110"
1657
1662
  style={{
1658
1663
  "padding-top": props.aspectRatio * 100 + "%"
1659
1664
  }}
1660
1665
  /></Show7>
1661
1666
  <Show7 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show7>
1662
- <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-e3b1053e-2">{props.children}</div></Show7>
1667
+ <Show7 when={!props.fitContent && props.builderBlock?.children?.length}><div class="div-4512e110-2">{props.children}</div></Show7>
1663
1668
  </>
1664
- <style>{`.img-e3b1053e {
1669
+ <style>{`.img-4512e110 {
1665
1670
  opacity: 1;
1666
1671
  transition: opacity 0.2s ease-in-out;
1667
- }.div-e3b1053e {
1672
+ }.div-4512e110 {
1668
1673
  width: 100%;
1669
1674
  pointer-events: none;
1670
1675
  font-size: 0;
1671
- }.div-e3b1053e-2 {
1676
+ }.div-4512e110-2 {
1672
1677
  display: flex;
1673
1678
  flex-direction: column;
1674
1679
  align-items: stretch;
@@ -1704,10 +1709,10 @@ function SectionComponent(props) {
1704
1709
  var section_default = SectionComponent;
1705
1710
 
1706
1711
  // src/blocks/symbol/symbol.tsx
1707
- import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
1712
+ import { onMount as onMount6, on as on3, createEffect as createEffect3, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
1708
1713
 
1709
1714
  // src/components/content-variants/content-variants.tsx
1710
- import { Show as Show14, For as For9, onMount as onMount4, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
1715
+ import { Show as Show14, For as For9, onMount as onMount5, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
1711
1716
 
1712
1717
  // src/helpers/url.ts
1713
1718
  var getTopLevelDomain = (host) => {
@@ -1901,7 +1906,7 @@ var handleABTesting = async ({
1901
1906
  var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
1902
1907
 
1903
1908
  // src/components/content/content.tsx
1904
- import { Show as Show13, createSignal as createSignal17 } from "solid-js";
1909
+ import { Show as Show13, createSignal as createSignal18 } from "solid-js";
1905
1910
 
1906
1911
  // src/blocks/accordion/component-info.ts
1907
1912
  var defaultTitle = {
@@ -2914,7 +2919,8 @@ var tabs_default = Tabs;
2914
2919
  // src/blocks/text/component-info.ts
2915
2920
  var componentInfo10 = {
2916
2921
  shouldReceiveBuilderProps: {
2917
- builderBlock: TARGET === "reactNative" ? true : false
2922
+ builderBlock: TARGET === "reactNative" ? true : false,
2923
+ builderContext: true
2918
2924
  },
2919
2925
  name: "Text",
2920
2926
  static: true,
@@ -2936,10 +2942,31 @@ var componentInfo10 = {
2936
2942
  };
2937
2943
 
2938
2944
  // src/blocks/text/text.tsx
2945
+ import { createMemo as createMemo11 } from "solid-js";
2939
2946
  function Text(props) {
2947
+ const processedText = createMemo11(() => {
2948
+ const context = props.builderContext;
2949
+ const {
2950
+ context: contextContext,
2951
+ localState,
2952
+ rootState,
2953
+ rootSetState
2954
+ } = context;
2955
+ return String(props.text?.toString() || "").replace(
2956
+ /{{([^}]+)}}/g,
2957
+ (match, group) => evaluate({
2958
+ code: group,
2959
+ context: contextContext,
2960
+ localState,
2961
+ rootState,
2962
+ rootSetState,
2963
+ enableCache: false
2964
+ })
2965
+ );
2966
+ });
2940
2967
  return <><div
2941
2968
  class="builder-text"
2942
- innerHTML={props.text?.toString() || ""}
2969
+ innerHTML={processedText()}
2943
2970
  style={{
2944
2971
  outline: "none"
2945
2972
  }}
@@ -2973,12 +3000,12 @@ var componentInfo11 = {
2973
3000
  };
2974
3001
 
2975
3002
  // src/blocks/custom-code/custom-code.tsx
2976
- import { onMount as onMount2, createSignal as createSignal11 } from "solid-js";
3003
+ import { onMount as onMount3, createSignal as createSignal12 } from "solid-js";
2977
3004
  function CustomCode(props) {
2978
- const [scriptsInserted, setScriptsInserted] = createSignal11([]);
2979
- const [scriptsRun, setScriptsRun] = createSignal11([]);
3005
+ const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3006
+ const [scriptsRun, setScriptsRun] = createSignal12([]);
2980
3007
  let elementRef;
2981
- onMount2(() => {
3008
+ onMount3(() => {
2982
3009
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
2983
3010
  return;
2984
3011
  }
@@ -3037,7 +3064,7 @@ var componentInfo12 = {
3037
3064
  };
3038
3065
 
3039
3066
  // src/blocks/embed/embed.tsx
3040
- import { on, createEffect, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
3067
+ import { on, createEffect, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
3041
3068
 
3042
3069
  // src/blocks/embed/helpers.ts
3043
3070
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -3045,9 +3072,9 @@ var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
3045
3072
 
3046
3073
  // src/blocks/embed/embed.tsx
3047
3074
  function Embed(props) {
3048
- const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3049
- const [scriptsRun, setScriptsRun] = createSignal12([]);
3050
- const [ranInitFn, setRanInitFn] = createSignal12(false);
3075
+ const [scriptsInserted, setScriptsInserted] = createSignal13([]);
3076
+ const [scriptsRun, setScriptsRun] = createSignal13([]);
3077
+ const [ranInitFn, setRanInitFn] = createSignal13(false);
3051
3078
  function findAndRunScripts() {
3052
3079
  if (!elem || !elem.getElementsByTagName)
3053
3080
  return;
@@ -3070,8 +3097,8 @@ function Embed(props) {
3070
3097
  }
3071
3098
  }
3072
3099
  let elem;
3073
- const onUpdateFn_0_elem = createMemo12(() => elem);
3074
- const onUpdateFn_0_ranInitFn__ = createMemo12(() => ranInitFn());
3100
+ const onUpdateFn_0_elem = createMemo13(() => elem);
3101
+ const onUpdateFn_0_ranInitFn__ = createMemo13(() => ranInitFn());
3075
3102
  function onUpdateFn_0() {
3076
3103
  if (elem && !ranInitFn()) {
3077
3104
  setRanInitFn(true);
@@ -3326,7 +3353,7 @@ var componentInfo13 = {
3326
3353
  };
3327
3354
 
3328
3355
  // src/blocks/form/form/form.tsx
3329
- import { Show as Show10, For as For7, createSignal as createSignal13 } from "solid-js";
3356
+ import { Show as Show10, For as For7, createSignal as createSignal14 } from "solid-js";
3330
3357
 
3331
3358
  // src/functions/get-env.ts
3332
3359
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -3343,9 +3370,9 @@ var get = (obj, path, defaultValue) => {
3343
3370
 
3344
3371
  // src/blocks/form/form/form.tsx
3345
3372
  function FormComponent(props) {
3346
- const [formState, setFormState] = createSignal13("unsubmitted");
3347
- const [responseData, setResponseData] = createSignal13(null);
3348
- const [formErrorMessage, setFormErrorMessage] = createSignal13("");
3373
+ const [formState, setFormState] = createSignal14("unsubmitted");
3374
+ const [responseData, setResponseData] = createSignal14(null);
3375
+ const [formErrorMessage, setFormErrorMessage] = createSignal14("");
3349
3376
  function mergeNewRootState(newData) {
3350
3377
  const combinedState = {
3351
3378
  ...props.builderContext.rootState,
@@ -3918,9 +3945,9 @@ var componentInfo19 = {
3918
3945
  };
3919
3946
 
3920
3947
  // src/blocks/video/video.tsx
3921
- import { Show as Show11, createMemo as createMemo14 } from "solid-js";
3948
+ import { Show as Show11, createMemo as createMemo15 } from "solid-js";
3922
3949
  function Video(props) {
3923
- const videoProps = createMemo14(() => {
3950
+ const videoProps = createMemo15(() => {
3924
3951
  return {
3925
3952
  ...props.autoPlay === true ? {
3926
3953
  autoPlay: true
@@ -3939,7 +3966,7 @@ function Video(props) {
3939
3966
  } : {}
3940
3967
  };
3941
3968
  });
3942
- const spreadProps = createMemo14(() => {
3969
+ const spreadProps = createMemo15(() => {
3943
3970
  return {
3944
3971
  ...videoProps()
3945
3972
  };
@@ -4145,11 +4172,11 @@ var Inlined_script_default = InlinedScript;
4145
4172
  // src/components/content/components/enable-editor.tsx
4146
4173
  import {
4147
4174
  Show as Show12,
4148
- onMount as onMount3,
4175
+ onMount as onMount4,
4149
4176
  on as on2,
4150
4177
  createEffect as createEffect2,
4151
- createMemo as createMemo15,
4152
- createSignal as createSignal15
4178
+ createMemo as createMemo16,
4179
+ createSignal as createSignal16
4153
4180
  } from "solid-js";
4154
4181
  import { Dynamic as Dynamic5 } from "solid-js/web";
4155
4182
 
@@ -4647,7 +4674,7 @@ function isFromTrustedHost(trustedHosts, e) {
4647
4674
  }
4648
4675
 
4649
4676
  // src/constants/sdk-version.ts
4650
- var SDK_VERSION = "2.0.3";
4677
+ var SDK_VERSION = "2.0.8";
4651
4678
 
4652
4679
  // src/functions/register.ts
4653
4680
  var registry = {};
@@ -4924,12 +4951,12 @@ var getWrapperClassName = (variationId) => {
4924
4951
 
4925
4952
  // src/components/content/components/enable-editor.tsx
4926
4953
  function EnableEditor(props) {
4927
- const [ContentWrapper, setContentWrapper] = createSignal15(
4954
+ const [ContentWrapper, setContentWrapper] = createSignal16(
4928
4955
  props.contentWrapper || "div"
4929
4956
  );
4930
- const [httpReqsData, setHttpReqsData] = createSignal15({});
4931
- const [httpReqsPending, setHttpReqsPending] = createSignal15({});
4932
- const [clicked, setClicked] = createSignal15(false);
4957
+ const [httpReqsData, setHttpReqsData] = createSignal16({});
4958
+ const [httpReqsPending, setHttpReqsPending] = createSignal16({});
4959
+ const [clicked, setClicked] = createSignal16(false);
4933
4960
  function mergeNewRootState(newData) {
4934
4961
  const combinedState = {
4935
4962
  ...props.builderContextSignal.rootState,
@@ -4963,7 +4990,7 @@ function EnableEditor(props) {
4963
4990
  content: newContentValue
4964
4991
  }));
4965
4992
  }
4966
- const showContentProps = createMemo15(() => {
4993
+ const showContentProps = createMemo16(() => {
4967
4994
  return props.showContent ? {} : {
4968
4995
  hidden: true,
4969
4996
  "aria-hidden": true
@@ -5082,7 +5109,7 @@ function EnableEditor(props) {
5082
5109
  }
5083
5110
  }
5084
5111
  let elementRef;
5085
- onMount3(() => {
5112
+ onMount4(() => {
5086
5113
  if (isBrowser()) {
5087
5114
  if (isEditing()) {
5088
5115
  window.addEventListener("message", processMessage);
@@ -5143,7 +5170,7 @@ function EnableEditor(props) {
5143
5170
  }
5144
5171
  }
5145
5172
  });
5146
- onMount3(() => {
5173
+ onMount4(() => {
5147
5174
  if (!props.apiKey) {
5148
5175
  logger.error(
5149
5176
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
@@ -5153,14 +5180,14 @@ function EnableEditor(props) {
5153
5180
  runHttpRequests();
5154
5181
  emitStateUpdate();
5155
5182
  });
5156
- const onUpdateFn_0_props_content = createMemo15(() => props.content);
5183
+ const onUpdateFn_0_props_content = createMemo16(() => props.content);
5157
5184
  function onUpdateFn_0() {
5158
5185
  if (props.content) {
5159
5186
  mergeNewContent(props.content);
5160
5187
  }
5161
5188
  }
5162
5189
  createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
5163
- const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo15(() => props.builderContextSignal.content?.data?.jsCode);
5190
+ const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo16(() => props.builderContextSignal.content?.data?.jsCode);
5164
5191
  function onUpdateFn_1() {
5165
5192
  evaluateJsCode();
5166
5193
  }
@@ -5170,7 +5197,7 @@ function EnableEditor(props) {
5170
5197
  onUpdateFn_1
5171
5198
  )
5172
5199
  );
5173
- const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo15(() => props.builderContextSignal.content?.data?.httpRequests);
5200
+ const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo16(() => props.builderContextSignal.content?.data?.httpRequests);
5174
5201
  function onUpdateFn_2() {
5175
5202
  runHttpRequests();
5176
5203
  }
@@ -5182,7 +5209,7 @@ function EnableEditor(props) {
5182
5209
  onUpdateFn_2
5183
5210
  )
5184
5211
  );
5185
- const onUpdateFn_3_props_builderContextSignal_rootState = createMemo15(
5212
+ const onUpdateFn_3_props_builderContextSignal_rootState = createMemo16(
5186
5213
  () => props.builderContextSignal.rootState
5187
5214
  );
5188
5215
  function onUpdateFn_3() {
@@ -5194,14 +5221,14 @@ function EnableEditor(props) {
5194
5221
  onUpdateFn_3
5195
5222
  )
5196
5223
  );
5197
- const onUpdateFn_4_props_data = createMemo15(() => props.data);
5224
+ const onUpdateFn_4_props_data = createMemo16(() => props.data);
5198
5225
  function onUpdateFn_4() {
5199
5226
  if (props.data) {
5200
5227
  mergeNewRootState(props.data);
5201
5228
  }
5202
5229
  }
5203
5230
  createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
5204
- const onUpdateFn_5_props_locale = createMemo15(() => props.locale);
5231
+ const onUpdateFn_5_props_locale = createMemo16(() => props.locale);
5205
5232
  function onUpdateFn_5() {
5206
5233
  if (props.locale) {
5207
5234
  mergeNewRootState({
@@ -5228,9 +5255,9 @@ function EnableEditor(props) {
5228
5255
  var Enable_editor_default = EnableEditor;
5229
5256
 
5230
5257
  // src/components/content/components/styles.tsx
5231
- import { createSignal as createSignal16 } from "solid-js";
5258
+ import { createSignal as createSignal17 } from "solid-js";
5232
5259
  function ContentStyles(props) {
5233
- const [injectedStyles, setInjectedStyles] = createSignal16(
5260
+ const [injectedStyles, setInjectedStyles] = createSignal17(
5234
5261
  `
5235
5262
  ${getCss({
5236
5263
  cssCode: props.cssCode,
@@ -5288,7 +5315,7 @@ var getContentInitialValue = ({
5288
5315
 
5289
5316
  // src/components/content/content.tsx
5290
5317
  function ContentComponent(props) {
5291
- const [scriptStr, setScriptStr] = createSignal17(
5318
+ const [scriptStr, setScriptStr] = createSignal18(
5292
5319
  getUpdateVariantVisibilityScript({
5293
5320
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5294
5321
  variationId: props.content?.testVariationId,
@@ -5296,7 +5323,7 @@ function ContentComponent(props) {
5296
5323
  contentId: props.content?.id
5297
5324
  })
5298
5325
  );
5299
- const [registeredComponents, setRegisteredComponents] = createSignal17(
5326
+ const [registeredComponents, setRegisteredComponents] = createSignal18(
5300
5327
  [
5301
5328
  ...getDefaultRegisteredComponents(),
5302
5329
  ...props.customComponents?.filter(({ models }) => {
@@ -5317,7 +5344,7 @@ function ContentComponent(props) {
5317
5344
  {}
5318
5345
  )
5319
5346
  );
5320
- const [builderContextSignal, setBuilderContextSignal] = createSignal17({
5347
+ const [builderContextSignal, setBuilderContextSignal] = createSignal18({
5321
5348
  content: getContentInitialValue({
5322
5349
  content: props.content,
5323
5350
  data: props.data
@@ -5407,13 +5434,13 @@ var Content_default = ContentComponent;
5407
5434
 
5408
5435
  // src/components/content-variants/content-variants.tsx
5409
5436
  function ContentVariants(props) {
5410
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal18(
5437
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
5411
5438
  checkShouldRenderVariants({
5412
5439
  canTrack: getDefaultCanTrack(props.canTrack),
5413
5440
  content: props.content
5414
5441
  })
5415
5442
  );
5416
- const updateCookieAndStylesScriptStr = createMemo18(() => {
5443
+ const updateCookieAndStylesScriptStr = createMemo19(() => {
5417
5444
  return getUpdateCookieAndStylesScript(
5418
5445
  getVariants(props.content).map((value) => ({
5419
5446
  id: value.testVariationId,
@@ -5422,10 +5449,10 @@ function ContentVariants(props) {
5422
5449
  props.content?.id || ""
5423
5450
  );
5424
5451
  });
5425
- const hideVariantsStyleString = createMemo18(() => {
5452
+ const hideVariantsStyleString = createMemo19(() => {
5426
5453
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
5427
5454
  });
5428
- const defaultContent = createMemo18(() => {
5455
+ const defaultContent = createMemo19(() => {
5429
5456
  return shouldRenderVariants() ? {
5430
5457
  ...props.content,
5431
5458
  testVariationId: props.content?.id
@@ -5434,7 +5461,7 @@ function ContentVariants(props) {
5434
5461
  canTrack: getDefaultCanTrack(props.canTrack)
5435
5462
  });
5436
5463
  });
5437
- onMount4(() => {
5464
+ onMount5(() => {
5438
5465
  setShouldRenderVariants(false);
5439
5466
  });
5440
5467
  return <><>
@@ -5478,6 +5505,7 @@ function ContentVariants(props) {
5478
5505
  contentWrapper={props.contentWrapper}
5479
5506
  contentWrapperProps={props.contentWrapperProps}
5480
5507
  trustedHosts={props.trustedHosts}
5508
+ {...{}}
5481
5509
  />;
5482
5510
  }}</For9>
5483
5511
  </Show14>
@@ -5534,14 +5562,14 @@ var fetchSymbolContent = async ({
5534
5562
 
5535
5563
  // src/blocks/symbol/symbol.tsx
5536
5564
  function Symbol(props) {
5537
- const [contentToUse, setContentToUse] = createSignal19(props.symbol?.content);
5538
- const blocksWrapper = createMemo19(() => {
5565
+ const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
5566
+ const blocksWrapper = createMemo20(() => {
5539
5567
  return "div";
5540
5568
  });
5541
- const contentWrapper = createMemo19(() => {
5569
+ const contentWrapper = createMemo20(() => {
5542
5570
  return "div";
5543
5571
  });
5544
- const className = createMemo19(() => {
5572
+ const className = createMemo20(() => {
5545
5573
  return [
5546
5574
  ...[props.attributes[getClassPropName()]],
5547
5575
  "builder-symbol",
@@ -5561,9 +5589,9 @@ function Symbol(props) {
5561
5589
  }
5562
5590
  });
5563
5591
  }
5564
- onMount5(() => {
5592
+ onMount6(() => {
5565
5593
  });
5566
- const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
5594
+ const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
5567
5595
  function onUpdateFn_0() {
5568
5596
  setContent();
5569
5597
  }