@builder.io/sdk-solid 3.0.1 → 3.0.2

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.
@@ -120,23 +120,6 @@ import {
120
120
  createSignal as createSignal5
121
121
  } from "solid-js";
122
122
 
123
- // src/functions/get-block-component-options.ts
124
- function getBlockComponentOptions(block) {
125
- return {
126
- ...block.component?.options,
127
- ...block.options
128
- };
129
- }
130
-
131
- // src/helpers/omit.ts
132
- function omit(obj, ...values) {
133
- const newObject = Object.assign({}, obj);
134
- for (const key of values) {
135
- delete newObject[key];
136
- }
137
- return newObject;
138
- }
139
-
140
123
  // src/helpers/logger.ts
141
124
  var logger = {
142
125
  log: (...message) => void 0,
@@ -3469,10 +3452,8 @@ var runInEdge = ({
3469
3452
  return `var ${key} = ${jsonValName} === undefined ? undefined : JSON.parse(${jsonValName});`;
3470
3453
  }).join("\n");
3471
3454
  const cleanedCode = processCode(code);
3472
- if (cleanedCode === "") {
3473
- logger.warn("Skipping evaluation of empty code block.");
3455
+ if (cleanedCode === "")
3474
3456
  return;
3475
- }
3476
3457
  const transformed = `
3477
3458
  function theFunction() {
3478
3459
  ${prependedCode}
@@ -3578,6 +3559,38 @@ function evaluate({
3578
3559
  }
3579
3560
  }
3580
3561
 
3562
+ // src/functions/get-block-component-options.ts
3563
+ function getBlockComponentOptions(block, context) {
3564
+ return {
3565
+ ...block.component?.options,
3566
+ ...block.options,
3567
+ ...evaluateTextComponentTextOption(block, context)
3568
+ };
3569
+ }
3570
+ var evaluateTextComponentTextOption = (block, context) => {
3571
+ if (block.component?.name === "Text" && block.component.options?.text && typeof block.component.options.text === "string") {
3572
+ return {
3573
+ ...block.component.options,
3574
+ text: block.component.options.text.replace(/{{([^}]+)}}/g, (_match, group) => evaluate({
3575
+ code: group,
3576
+ context,
3577
+ localState: context.localState,
3578
+ rootState: context.rootState,
3579
+ rootSetState: context.rootSetState
3580
+ }))
3581
+ };
3582
+ }
3583
+ };
3584
+
3585
+ // src/helpers/omit.ts
3586
+ function omit(obj, ...values) {
3587
+ const newObject = Object.assign({}, obj);
3588
+ for (const key of values) {
3589
+ delete newObject[key];
3590
+ }
3591
+ return newObject;
3592
+ }
3593
+
3581
3594
  // src/functions/traverse.ts
3582
3595
  function traverse(obj, callback, parent2 = null, key = null, visited = /* @__PURE__ */ new WeakSet()) {
3583
3596
  if (obj == null || typeof obj !== "object") {
@@ -3741,24 +3754,19 @@ var evaluateBindings = ({
3741
3754
  function getProcessedBlock({
3742
3755
  block,
3743
3756
  context,
3744
- shouldEvaluateBindings,
3745
3757
  localState,
3746
3758
  rootState,
3747
3759
  rootSetState
3748
3760
  }) {
3749
3761
  let transformedBlock = resolveLocalizedValues(block, rootState.locale);
3750
3762
  transformedBlock = transformBlock(transformedBlock);
3751
- if (shouldEvaluateBindings) {
3752
- return evaluateBindings({
3753
- block: transformedBlock,
3754
- localState,
3755
- rootState,
3756
- rootSetState,
3757
- context
3758
- });
3759
- } else {
3760
- return transformedBlock;
3761
- }
3763
+ return evaluateBindings({
3764
+ block: transformedBlock,
3765
+ localState,
3766
+ rootState,
3767
+ rootSetState,
3768
+ context
3769
+ });
3762
3770
  }
3763
3771
 
3764
3772
  // src/functions/camel-to-kebab-case.ts
@@ -4476,8 +4484,7 @@ function Block(props) {
4476
4484
  localState: props.context.localState,
4477
4485
  rootState: props.context.rootState,
4478
4486
  rootSetState: props.context.rootSetState,
4479
- context: props.context.context,
4480
- shouldEvaluateBindings: true
4487
+ context: props.context.context
4481
4488
  });
4482
4489
  return blockToUse;
4483
4490
  });
@@ -4514,7 +4521,7 @@ function Block(props) {
4514
4521
  blockChildren: processedBlock().children ?? [],
4515
4522
  componentRef: blockComponent()?.component,
4516
4523
  componentOptions: {
4517
- ...getBlockComponentOptions(processedBlock()),
4524
+ ...getBlockComponentOptions(processedBlock(), props.context),
4518
4525
  ...provideBuilderBlock(blockComponent(), processedBlock()),
4519
4526
  ...provideBuilderContext(blockComponent(), props.context),
4520
4527
  ...provideLinkComponent(blockComponent(), props.linkComponent),
@@ -5054,10 +5061,10 @@ function SectionComponent(props) {
5054
5061
  var section_default = SectionComponent;
5055
5062
 
5056
5063
  // src/blocks/symbol/symbol.tsx
5057
- import { onMount as onMount8, on as on4, createEffect as createEffect4, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
5064
+ import { onMount as onMount8, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
5058
5065
 
5059
5066
  // src/components/content-variants/content-variants.tsx
5060
- import { Show as Show15, For as For9, onMount as onMount7, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
5067
+ import { Show as Show15, For as For9, onMount as onMount7, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
5061
5068
 
5062
5069
  // src/helpers/url.ts
5063
5070
  var getTopLevelDomain = (host) => {
@@ -5251,7 +5258,7 @@ var handleABTesting = async ({
5251
5258
  var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
5252
5259
 
5253
5260
  // src/components/content/content.tsx
5254
- import { Show as Show14, createSignal as createSignal18 } from "solid-js";
5261
+ import { Show as Show14, createSignal as createSignal17 } from "solid-js";
5255
5262
 
5256
5263
  // src/blocks/accordion/component-info.ts
5257
5264
  var defaultTitle = {
@@ -6295,30 +6302,10 @@ var componentInfo10 = {
6295
6302
  };
6296
6303
 
6297
6304
  // src/blocks/text/text.tsx
6298
- import { createMemo as createMemo11 } from "solid-js";
6299
6305
  function Text(props) {
6300
- const processedText = createMemo11(() => {
6301
- const context = props.builderContext;
6302
- const {
6303
- context: contextContext,
6304
- localState,
6305
- rootState,
6306
- rootSetState
6307
- } = context;
6308
- return String(props.text?.toString() || "").replace(
6309
- /{{([^}]+)}}/g,
6310
- (match, group) => evaluate({
6311
- code: group,
6312
- context: contextContext,
6313
- localState,
6314
- rootState,
6315
- rootSetState
6316
- })
6317
- );
6318
- });
6319
6306
  return <><div
6320
6307
  class="builder-text"
6321
- innerHTML={processedText()}
6308
+ innerHTML={props.text?.toString() || ""}
6322
6309
  style={{
6323
6310
  outline: "none"
6324
6311
  }}
@@ -6352,10 +6339,10 @@ var componentInfo11 = {
6352
6339
  };
6353
6340
 
6354
6341
  // src/blocks/custom-code/custom-code.tsx
6355
- import { onMount as onMount5, createSignal as createSignal12 } from "solid-js";
6342
+ import { onMount as onMount5, createSignal as createSignal11 } from "solid-js";
6356
6343
  function CustomCode(props) {
6357
- const [scriptsInserted, setScriptsInserted] = createSignal12([]);
6358
- const [scriptsRun, setScriptsRun] = createSignal12([]);
6344
+ const [scriptsInserted, setScriptsInserted] = createSignal11([]);
6345
+ const [scriptsRun, setScriptsRun] = createSignal11([]);
6359
6346
  let elementRef;
6360
6347
  onMount5(() => {
6361
6348
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
@@ -6416,7 +6403,7 @@ var componentInfo12 = {
6416
6403
  };
6417
6404
 
6418
6405
  // src/blocks/embed/embed.tsx
6419
- import { on as on2, createEffect as createEffect2, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
6406
+ import { on as on2, createEffect as createEffect2, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
6420
6407
 
6421
6408
  // src/blocks/embed/helpers.ts
6422
6409
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -6424,9 +6411,9 @@ var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
6424
6411
 
6425
6412
  // src/blocks/embed/embed.tsx
6426
6413
  function Embed(props) {
6427
- const [scriptsInserted, setScriptsInserted] = createSignal13([]);
6428
- const [scriptsRun, setScriptsRun] = createSignal13([]);
6429
- const [ranInitFn, setRanInitFn] = createSignal13(false);
6414
+ const [scriptsInserted, setScriptsInserted] = createSignal12([]);
6415
+ const [scriptsRun, setScriptsRun] = createSignal12([]);
6416
+ const [ranInitFn, setRanInitFn] = createSignal12(false);
6430
6417
  function findAndRunScripts() {
6431
6418
  if (!elem || !elem.getElementsByTagName)
6432
6419
  return;
@@ -6449,8 +6436,8 @@ function Embed(props) {
6449
6436
  }
6450
6437
  }
6451
6438
  let elem;
6452
- const onUpdateFn_0_elem = createMemo13(() => elem);
6453
- const onUpdateFn_0_ranInitFn__ = createMemo13(() => ranInitFn());
6439
+ const onUpdateFn_0_elem = createMemo12(() => elem);
6440
+ const onUpdateFn_0_ranInitFn__ = createMemo12(() => ranInitFn());
6454
6441
  function onUpdateFn_0() {
6455
6442
  if (elem && !ranInitFn()) {
6456
6443
  setRanInitFn(true);
@@ -6705,7 +6692,7 @@ var componentInfo13 = {
6705
6692
  };
6706
6693
 
6707
6694
  // src/blocks/form/form/form.tsx
6708
- import { Show as Show11, For as For7, createSignal as createSignal14 } from "solid-js";
6695
+ import { Show as Show11, For as For7, createSignal as createSignal13 } from "solid-js";
6709
6696
 
6710
6697
  // src/functions/get-env.ts
6711
6698
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -6725,9 +6712,9 @@ function logFetch(url) {
6725
6712
 
6726
6713
  // src/blocks/form/form/form.tsx
6727
6714
  function FormComponent(props) {
6728
- const [formState, setFormState] = createSignal14("unsubmitted");
6729
- const [responseData, setResponseData] = createSignal14(null);
6730
- const [formErrorMessage, setFormErrorMessage] = createSignal14("");
6715
+ const [formState, setFormState] = createSignal13("unsubmitted");
6716
+ const [responseData, setResponseData] = createSignal13(null);
6717
+ const [formErrorMessage, setFormErrorMessage] = createSignal13("");
6731
6718
  function mergeNewRootState(newData) {
6732
6719
  const combinedState = {
6733
6720
  ...props.builderContext.rootState,
@@ -7299,9 +7286,9 @@ var componentInfo19 = {
7299
7286
  };
7300
7287
 
7301
7288
  // src/blocks/video/video.tsx
7302
- import { Show as Show12, createMemo as createMemo15 } from "solid-js";
7289
+ import { Show as Show12, createMemo as createMemo14 } from "solid-js";
7303
7290
  function Video(props) {
7304
- const videoProps = createMemo15(() => {
7291
+ const videoProps = createMemo14(() => {
7305
7292
  return {
7306
7293
  ...props.autoPlay === true ? {
7307
7294
  autoPlay: true
@@ -7320,7 +7307,7 @@ function Video(props) {
7320
7307
  } : {}
7321
7308
  };
7322
7309
  });
7323
- const spreadProps = createMemo15(() => {
7310
+ const spreadProps = createMemo14(() => {
7324
7311
  return {
7325
7312
  ...videoProps()
7326
7313
  };
@@ -7530,8 +7517,8 @@ import {
7530
7517
  onMount as onMount6,
7531
7518
  on as on3,
7532
7519
  createEffect as createEffect3,
7533
- createMemo as createMemo16,
7534
- createSignal as createSignal16
7520
+ createMemo as createMemo15,
7521
+ createSignal as createSignal15
7535
7522
  } from "solid-js";
7536
7523
  import { Dynamic as Dynamic5 } from "solid-js/web";
7537
7524
 
@@ -7541,7 +7528,7 @@ function getPreviewContent(_searchParams) {
7541
7528
  }
7542
7529
 
7543
7530
  // src/constants/sdk-version.ts
7544
- var SDK_VERSION = "3.0.1";
7531
+ var SDK_VERSION = "3.0.2";
7545
7532
 
7546
7533
  // src/helpers/sdk-headers.ts
7547
7534
  var getSdkHeaders = () => ({
@@ -7604,6 +7591,23 @@ function flattenMongoQuery(obj, _current, _res = {}) {
7604
7591
  }
7605
7592
  return _res;
7606
7593
  }
7594
+ function unflatten(obj) {
7595
+ const result = {};
7596
+ for (const key in obj) {
7597
+ const parts = key.split(".");
7598
+ let current = result;
7599
+ for (let i = 0; i < parts.length; i++) {
7600
+ const part = parts[i];
7601
+ if (i === parts.length - 1) {
7602
+ current[part] = obj[key];
7603
+ } else {
7604
+ current[part] = current[part] || {};
7605
+ current = current[part];
7606
+ }
7607
+ }
7608
+ }
7609
+ return result;
7610
+ }
7607
7611
 
7608
7612
  // src/types/api-version.ts
7609
7613
  var DEFAULT_API_VERSION = "v3";
@@ -7668,7 +7672,7 @@ var generateContentUrl = (options) => {
7668
7672
  url.searchParams.set("noTraverse", String(noTraverse));
7669
7673
  url.searchParams.set("includeRefs", String(true));
7670
7674
  const finalLocale = locale || userAttributes?.locale;
7671
- let finalUserAttributes = userAttributes;
7675
+ let finalUserAttributes = userAttributes || {};
7672
7676
  if (finalLocale) {
7673
7677
  url.searchParams.set("locale", finalLocale);
7674
7678
  finalUserAttributes = {
@@ -7706,11 +7710,15 @@ var generateContentUrl = (options) => {
7706
7710
  ...getBuilderSearchParamsFromWindow(),
7707
7711
  ...normalizeSearchParams(options.options || {})
7708
7712
  };
7713
+ finalUserAttributes = {
7714
+ ...finalUserAttributes,
7715
+ ...getUserAttributesAsJSON(queryOptions)
7716
+ };
7709
7717
  const flattened = flatten(queryOptions);
7710
7718
  for (const key in flattened) {
7711
7719
  url.searchParams.set(key, String(flattened[key]));
7712
7720
  }
7713
- if (finalUserAttributes) {
7721
+ if (Object.keys(finalUserAttributes).length > 0) {
7714
7722
  url.searchParams.set("userAttributes", JSON.stringify(finalUserAttributes));
7715
7723
  }
7716
7724
  if (query) {
@@ -7723,6 +7731,28 @@ var generateContentUrl = (options) => {
7723
7731
  }
7724
7732
  return url;
7725
7733
  };
7734
+ var getUserAttributesFromQueryOptions = (queryOptions) => {
7735
+ const newUserAttributes = {};
7736
+ for (const key in queryOptions) {
7737
+ if (key.startsWith("userAttributes.")) {
7738
+ newUserAttributes[key] = queryOptions[key];
7739
+ delete queryOptions[key];
7740
+ }
7741
+ }
7742
+ return newUserAttributes;
7743
+ };
7744
+ var getUserAttributesAsJSON = (queryOptions) => {
7745
+ if (isBrowser() && queryOptions["preview"] === "BUILDER_STUDIO") {
7746
+ queryOptions["userAttributes.urlPath"] = window.location.pathname;
7747
+ queryOptions["userAttributes.host"] = window.location.host;
7748
+ const queryOptionsForUserAttributes = getUserAttributesFromQueryOptions(queryOptions);
7749
+ const {
7750
+ userAttributes
7751
+ } = unflatten(queryOptionsForUserAttributes);
7752
+ return userAttributes;
7753
+ }
7754
+ return {};
7755
+ };
7726
7756
 
7727
7757
  // src/functions/get-content/index.ts
7728
7758
  var checkContentHasResults = (content) => "results" in content;
@@ -8340,12 +8370,12 @@ var getWrapperClassName = (variationId) => {
8340
8370
 
8341
8371
  // src/components/content/components/enable-editor.tsx
8342
8372
  function EnableEditor(props) {
8343
- const [ContentWrapper, setContentWrapper] = createSignal16(
8373
+ const [ContentWrapper, setContentWrapper] = createSignal15(
8344
8374
  props.contentWrapper || "div"
8345
8375
  );
8346
- const [httpReqsData, setHttpReqsData] = createSignal16({});
8347
- const [httpReqsPending, setHttpReqsPending] = createSignal16({});
8348
- const [clicked, setClicked] = createSignal16(false);
8376
+ const [httpReqsData, setHttpReqsData] = createSignal15({});
8377
+ const [httpReqsPending, setHttpReqsPending] = createSignal15({});
8378
+ const [clicked, setClicked] = createSignal15(false);
8349
8379
  function mergeNewRootState(newData) {
8350
8380
  const combinedState = {
8351
8381
  ...props.builderContextSignal.rootState,
@@ -8379,7 +8409,7 @@ function EnableEditor(props) {
8379
8409
  content: newContentValue
8380
8410
  }));
8381
8411
  }
8382
- const showContentProps = createMemo16(() => {
8412
+ const showContentProps = createMemo15(() => {
8383
8413
  return props.showContent ? {} : {
8384
8414
  hidden: true,
8385
8415
  "aria-hidden": true
@@ -8535,11 +8565,16 @@ function EnableEditor(props) {
8535
8565
  `builder.overrides.${searchParamPreviewModel}`
8536
8566
  );
8537
8567
  const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
8538
- if (searchParamPreviewModel === props.model && previewApiKey === props.apiKey && (!props.content || searchParamPreviewId === props.content.id)) {
8568
+ if (searchParamPreviewModel === "BUILDER_STUDIO" || searchParamPreviewModel === props.model && previewApiKey === props.apiKey && (!props.content || searchParamPreviewId === props.content.id)) {
8539
8569
  fetchOneEntry({
8540
- model: props.model,
8570
+ model: props.model || "",
8541
8571
  apiKey: props.apiKey,
8542
- apiVersion: props.builderContextSignal.apiVersion
8572
+ apiVersion: props.builderContextSignal.apiVersion,
8573
+ ...searchParamPreviewModel === "BUILDER_STUDIO" && props.context?.symbolId ? {
8574
+ query: {
8575
+ id: props.context.symbolId
8576
+ }
8577
+ } : {}
8543
8578
  }).then((content) => {
8544
8579
  if (content) {
8545
8580
  mergeNewContent(content);
@@ -8549,14 +8584,14 @@ function EnableEditor(props) {
8549
8584
  }
8550
8585
  }
8551
8586
  });
8552
- const onUpdateFn_0_props_content = createMemo16(() => props.content);
8587
+ const onUpdateFn_0_props_content = createMemo15(() => props.content);
8553
8588
  function onUpdateFn_0() {
8554
8589
  if (props.content) {
8555
8590
  mergeNewContent(props.content);
8556
8591
  }
8557
8592
  }
8558
8593
  createEffect3(on3(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
8559
- const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
8594
+ const onUpdateFn_1_props_builderContextSignal_rootState = createMemo15(
8560
8595
  () => props.builderContextSignal.rootState
8561
8596
  );
8562
8597
  function onUpdateFn_1() {
@@ -8568,14 +8603,14 @@ function EnableEditor(props) {
8568
8603
  onUpdateFn_1
8569
8604
  )
8570
8605
  );
8571
- const onUpdateFn_2_props_data = createMemo16(() => props.data);
8606
+ const onUpdateFn_2_props_data = createMemo15(() => props.data);
8572
8607
  function onUpdateFn_2() {
8573
8608
  if (props.data) {
8574
8609
  mergeNewRootState(props.data);
8575
8610
  }
8576
8611
  }
8577
8612
  createEffect3(on3(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
8578
- const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
8613
+ const onUpdateFn_3_props_locale = createMemo15(() => props.locale);
8579
8614
  function onUpdateFn_3() {
8580
8615
  if (props.locale) {
8581
8616
  mergeNewRootState({
@@ -8607,9 +8642,9 @@ function EnableEditor(props) {
8607
8642
  var Enable_editor_default = EnableEditor;
8608
8643
 
8609
8644
  // src/components/content/components/styles.tsx
8610
- import { createSignal as createSignal17 } from "solid-js";
8645
+ import { createSignal as createSignal16 } from "solid-js";
8611
8646
  function ContentStyles(props) {
8612
- const [injectedStyles, setInjectedStyles] = createSignal17(
8647
+ const [injectedStyles, setInjectedStyles] = createSignal16(
8613
8648
  `
8614
8649
  ${getCss({
8615
8650
  cssCode: props.cssCode,
@@ -8667,7 +8702,7 @@ var getContentInitialValue = ({
8667
8702
 
8668
8703
  // src/components/content/content.tsx
8669
8704
  function ContentComponent(props) {
8670
- const [scriptStr, setScriptStr] = createSignal18(
8705
+ const [scriptStr, setScriptStr] = createSignal17(
8671
8706
  getUpdateVariantVisibilityScript({
8672
8707
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
8673
8708
  variationId: props.content?.testVariationId,
@@ -8675,7 +8710,7 @@ function ContentComponent(props) {
8675
8710
  contentId: props.content?.id
8676
8711
  })
8677
8712
  );
8678
- const [registeredComponents, setRegisteredComponents] = createSignal18(
8713
+ const [registeredComponents, setRegisteredComponents] = createSignal17(
8679
8714
  [
8680
8715
  ...getDefaultRegisteredComponents(),
8681
8716
  ...props.customComponents || []
@@ -8690,7 +8725,7 @@ function ContentComponent(props) {
8690
8725
  {}
8691
8726
  )
8692
8727
  );
8693
- const [builderContextSignal, setBuilderContextSignal] = createSignal18({
8728
+ const [builderContextSignal, setBuilderContextSignal] = createSignal17({
8694
8729
  content: getContentInitialValue({
8695
8730
  content: props.content,
8696
8731
  data: props.data
@@ -8798,13 +8833,13 @@ var Content_default = ContentComponent;
8798
8833
 
8799
8834
  // src/components/content-variants/content-variants.tsx
8800
8835
  function ContentVariants(props) {
8801
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
8836
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal18(
8802
8837
  checkShouldRenderVariants({
8803
8838
  canTrack: getDefaultCanTrack(props.canTrack),
8804
8839
  content: props.content
8805
8840
  })
8806
8841
  );
8807
- const updateCookieAndStylesScriptStr = createMemo19(() => {
8842
+ const updateCookieAndStylesScriptStr = createMemo18(() => {
8808
8843
  return getUpdateCookieAndStylesScript(
8809
8844
  getVariants(props.content).map((value) => ({
8810
8845
  id: value.testVariationId,
@@ -8813,10 +8848,10 @@ function ContentVariants(props) {
8813
8848
  props.content?.id || ""
8814
8849
  );
8815
8850
  });
8816
- const hideVariantsStyleString = createMemo19(() => {
8851
+ const hideVariantsStyleString = createMemo18(() => {
8817
8852
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
8818
8853
  });
8819
- const defaultContent = createMemo19(() => {
8854
+ const defaultContent = createMemo18(() => {
8820
8855
  return shouldRenderVariants() ? {
8821
8856
  ...props.content,
8822
8857
  testVariationId: props.content?.id
@@ -8928,14 +8963,14 @@ var fetchSymbolContent = async ({
8928
8963
 
8929
8964
  // src/blocks/symbol/symbol.tsx
8930
8965
  function Symbol2(props) {
8931
- const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
8932
- const blocksWrapper = createMemo20(() => {
8966
+ const [contentToUse, setContentToUse] = createSignal19(props.symbol?.content);
8967
+ const blocksWrapper = createMemo19(() => {
8933
8968
  return "div";
8934
8969
  });
8935
- const contentWrapper = createMemo20(() => {
8970
+ const contentWrapper = createMemo19(() => {
8936
8971
  return "div";
8937
8972
  });
8938
- const className = createMemo20(() => {
8973
+ const className = createMemo19(() => {
8939
8974
  return [
8940
8975
  ...[props.attributes[getClassPropName()]],
8941
8976
  "builder-symbol",
@@ -8957,7 +8992,7 @@ function Symbol2(props) {
8957
8992
  }
8958
8993
  onMount8(() => {
8959
8994
  });
8960
- const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
8995
+ const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
8961
8996
  function onUpdateFn_0() {
8962
8997
  setContent();
8963
8998
  }