@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.
@@ -112,23 +112,6 @@ import {
112
112
  createSignal as createSignal5
113
113
  } from "solid-js";
114
114
 
115
- // src/functions/get-block-component-options.ts
116
- function getBlockComponentOptions(block) {
117
- return {
118
- ...block.component?.options,
119
- ...block.options
120
- };
121
- }
122
-
123
- // src/helpers/omit.ts
124
- function omit(obj, ...values) {
125
- const newObject = Object.assign({}, obj);
126
- for (const key of values) {
127
- delete newObject[key];
128
- }
129
- return newObject;
130
- }
131
-
132
115
  // src/helpers/logger.ts
133
116
  var MSG_PREFIX = "[Builder.io]: ";
134
117
  var logger = {
@@ -577,6 +560,38 @@ function evaluate({
577
560
  }
578
561
  }
579
562
 
563
+ // src/functions/get-block-component-options.ts
564
+ function getBlockComponentOptions(block, context) {
565
+ return {
566
+ ...block.component?.options,
567
+ ...block.options,
568
+ ...evaluateTextComponentTextOption(block, context)
569
+ };
570
+ }
571
+ var evaluateTextComponentTextOption = (block, context) => {
572
+ if (block.component?.name === "Text" && block.component.options?.text && typeof block.component.options.text === "string") {
573
+ return {
574
+ ...block.component.options,
575
+ text: block.component.options.text.replace(/{{([^}]+)}}/g, (_match, group) => evaluate({
576
+ code: group,
577
+ context,
578
+ localState: context.localState,
579
+ rootState: context.rootState,
580
+ rootSetState: context.rootSetState
581
+ }))
582
+ };
583
+ }
584
+ };
585
+
586
+ // src/helpers/omit.ts
587
+ function omit(obj, ...values) {
588
+ const newObject = Object.assign({}, obj);
589
+ for (const key of values) {
590
+ delete newObject[key];
591
+ }
592
+ return newObject;
593
+ }
594
+
580
595
  // src/functions/traverse.ts
581
596
  function traverse(obj, callback, parent2 = null, key = null, visited = /* @__PURE__ */ new WeakSet()) {
582
597
  if (obj == null || typeof obj !== "object") {
@@ -727,24 +742,19 @@ var evaluateBindings = ({
727
742
  function getProcessedBlock({
728
743
  block,
729
744
  context,
730
- shouldEvaluateBindings,
731
745
  localState,
732
746
  rootState,
733
747
  rootSetState
734
748
  }) {
735
749
  let transformedBlock = resolveLocalizedValues(block, rootState.locale);
736
750
  transformedBlock = transformBlock(transformedBlock);
737
- if (shouldEvaluateBindings) {
738
- return evaluateBindings({
739
- block: transformedBlock,
740
- localState,
741
- rootState,
742
- rootSetState,
743
- context
744
- });
745
- } else {
746
- return transformedBlock;
747
- }
751
+ return evaluateBindings({
752
+ block: transformedBlock,
753
+ localState,
754
+ rootState,
755
+ rootSetState,
756
+ context
757
+ });
748
758
  }
749
759
 
750
760
  // src/functions/camel-to-kebab-case.ts
@@ -1462,8 +1472,7 @@ function Block(props) {
1462
1472
  localState: props.context.localState,
1463
1473
  rootState: props.context.rootState,
1464
1474
  rootSetState: props.context.rootSetState,
1465
- context: props.context.context,
1466
- shouldEvaluateBindings: true
1475
+ context: props.context.context
1467
1476
  });
1468
1477
  return blockToUse;
1469
1478
  });
@@ -1500,7 +1509,7 @@ function Block(props) {
1500
1509
  blockChildren: processedBlock().children ?? [],
1501
1510
  componentRef: blockComponent()?.component,
1502
1511
  componentOptions: {
1503
- ...getBlockComponentOptions(processedBlock()),
1512
+ ...getBlockComponentOptions(processedBlock(), props.context),
1504
1513
  ...provideBuilderBlock(blockComponent(), processedBlock()),
1505
1514
  ...provideBuilderContext(blockComponent(), props.context),
1506
1515
  ...provideLinkComponent(blockComponent(), props.linkComponent),
@@ -2040,10 +2049,10 @@ function SectionComponent(props) {
2040
2049
  var section_default = SectionComponent;
2041
2050
 
2042
2051
  // src/blocks/symbol/symbol.tsx
2043
- import { onMount as onMount8, on as on4, createEffect as createEffect4, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
2052
+ import { onMount as onMount8, on as on4, createEffect as createEffect4, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
2044
2053
 
2045
2054
  // src/components/content-variants/content-variants.tsx
2046
- import { Show as Show15, For as For9, onMount as onMount7, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
2055
+ import { Show as Show15, For as For9, onMount as onMount7, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
2047
2056
 
2048
2057
  // src/helpers/url.ts
2049
2058
  var getTopLevelDomain = (host) => {
@@ -2237,7 +2246,7 @@ var handleABTesting = async ({
2237
2246
  var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
2238
2247
 
2239
2248
  // src/components/content/content.tsx
2240
- import { Show as Show14, createSignal as createSignal18 } from "solid-js";
2249
+ import { Show as Show14, createSignal as createSignal17 } from "solid-js";
2241
2250
 
2242
2251
  // src/blocks/accordion/component-info.ts
2243
2252
  var defaultTitle = {
@@ -3281,30 +3290,10 @@ var componentInfo10 = {
3281
3290
  };
3282
3291
 
3283
3292
  // src/blocks/text/text.tsx
3284
- import { createMemo as createMemo11 } from "solid-js";
3285
3293
  function Text(props) {
3286
- const processedText = createMemo11(() => {
3287
- const context = props.builderContext;
3288
- const {
3289
- context: contextContext,
3290
- localState,
3291
- rootState,
3292
- rootSetState
3293
- } = context;
3294
- return String(props.text?.toString() || "").replace(
3295
- /{{([^}]+)}}/g,
3296
- (match, group) => evaluate({
3297
- code: group,
3298
- context: contextContext,
3299
- localState,
3300
- rootState,
3301
- rootSetState
3302
- })
3303
- );
3304
- });
3305
3294
  return <><div
3306
3295
  class="builder-text"
3307
- innerHTML={processedText()}
3296
+ innerHTML={props.text?.toString() || ""}
3308
3297
  style={{
3309
3298
  outline: "none"
3310
3299
  }}
@@ -3338,10 +3327,10 @@ var componentInfo11 = {
3338
3327
  };
3339
3328
 
3340
3329
  // src/blocks/custom-code/custom-code.tsx
3341
- import { onMount as onMount5, createSignal as createSignal12 } from "solid-js";
3330
+ import { onMount as onMount5, createSignal as createSignal11 } from "solid-js";
3342
3331
  function CustomCode(props) {
3343
- const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3344
- const [scriptsRun, setScriptsRun] = createSignal12([]);
3332
+ const [scriptsInserted, setScriptsInserted] = createSignal11([]);
3333
+ const [scriptsRun, setScriptsRun] = createSignal11([]);
3345
3334
  let elementRef;
3346
3335
  onMount5(() => {
3347
3336
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
@@ -3402,7 +3391,7 @@ var componentInfo12 = {
3402
3391
  };
3403
3392
 
3404
3393
  // src/blocks/embed/embed.tsx
3405
- import { on as on2, createEffect as createEffect2, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
3394
+ import { on as on2, createEffect as createEffect2, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
3406
3395
 
3407
3396
  // src/blocks/embed/helpers.ts
3408
3397
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -3410,9 +3399,9 @@ var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
3410
3399
 
3411
3400
  // src/blocks/embed/embed.tsx
3412
3401
  function Embed(props) {
3413
- const [scriptsInserted, setScriptsInserted] = createSignal13([]);
3414
- const [scriptsRun, setScriptsRun] = createSignal13([]);
3415
- const [ranInitFn, setRanInitFn] = createSignal13(false);
3402
+ const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3403
+ const [scriptsRun, setScriptsRun] = createSignal12([]);
3404
+ const [ranInitFn, setRanInitFn] = createSignal12(false);
3416
3405
  function findAndRunScripts() {
3417
3406
  if (!elem || !elem.getElementsByTagName)
3418
3407
  return;
@@ -3435,8 +3424,8 @@ function Embed(props) {
3435
3424
  }
3436
3425
  }
3437
3426
  let elem;
3438
- const onUpdateFn_0_elem = createMemo13(() => elem);
3439
- const onUpdateFn_0_ranInitFn__ = createMemo13(() => ranInitFn());
3427
+ const onUpdateFn_0_elem = createMemo12(() => elem);
3428
+ const onUpdateFn_0_ranInitFn__ = createMemo12(() => ranInitFn());
3440
3429
  function onUpdateFn_0() {
3441
3430
  if (elem && !ranInitFn()) {
3442
3431
  setRanInitFn(true);
@@ -3691,7 +3680,7 @@ var componentInfo13 = {
3691
3680
  };
3692
3681
 
3693
3682
  // src/blocks/form/form/form.tsx
3694
- import { Show as Show11, For as For7, createSignal as createSignal14 } from "solid-js";
3683
+ import { Show as Show11, For as For7, createSignal as createSignal13 } from "solid-js";
3695
3684
 
3696
3685
  // src/functions/get-env.ts
3697
3686
  var validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"];
@@ -3711,9 +3700,9 @@ function logFetch(url) {
3711
3700
 
3712
3701
  // src/blocks/form/form/form.tsx
3713
3702
  function FormComponent(props) {
3714
- const [formState, setFormState] = createSignal14("unsubmitted");
3715
- const [responseData, setResponseData] = createSignal14(null);
3716
- const [formErrorMessage, setFormErrorMessage] = createSignal14("");
3703
+ const [formState, setFormState] = createSignal13("unsubmitted");
3704
+ const [responseData, setResponseData] = createSignal13(null);
3705
+ const [formErrorMessage, setFormErrorMessage] = createSignal13("");
3717
3706
  function mergeNewRootState(newData) {
3718
3707
  const combinedState = {
3719
3708
  ...props.builderContext.rootState,
@@ -4285,9 +4274,9 @@ var componentInfo19 = {
4285
4274
  };
4286
4275
 
4287
4276
  // src/blocks/video/video.tsx
4288
- import { Show as Show12, createMemo as createMemo15 } from "solid-js";
4277
+ import { Show as Show12, createMemo as createMemo14 } from "solid-js";
4289
4278
  function Video(props) {
4290
- const videoProps = createMemo15(() => {
4279
+ const videoProps = createMemo14(() => {
4291
4280
  return {
4292
4281
  ...props.autoPlay === true ? {
4293
4282
  autoPlay: true
@@ -4306,7 +4295,7 @@ function Video(props) {
4306
4295
  } : {}
4307
4296
  };
4308
4297
  });
4309
- const spreadProps = createMemo15(() => {
4298
+ const spreadProps = createMemo14(() => {
4310
4299
  return {
4311
4300
  ...videoProps()
4312
4301
  };
@@ -4516,8 +4505,8 @@ import {
4516
4505
  onMount as onMount6,
4517
4506
  on as on3,
4518
4507
  createEffect as createEffect3,
4519
- createMemo as createMemo16,
4520
- createSignal as createSignal16
4508
+ createMemo as createMemo15,
4509
+ createSignal as createSignal15
4521
4510
  } from "solid-js";
4522
4511
  import { Dynamic as Dynamic5 } from "solid-js/web";
4523
4512
 
@@ -4527,7 +4516,7 @@ function getPreviewContent(_searchParams) {
4527
4516
  }
4528
4517
 
4529
4518
  // src/constants/sdk-version.ts
4530
- var SDK_VERSION = "3.0.1";
4519
+ var SDK_VERSION = "3.0.2";
4531
4520
 
4532
4521
  // src/helpers/sdk-headers.ts
4533
4522
  var getSdkHeaders = () => ({
@@ -4590,6 +4579,23 @@ function flattenMongoQuery(obj, _current, _res = {}) {
4590
4579
  }
4591
4580
  return _res;
4592
4581
  }
4582
+ function unflatten(obj) {
4583
+ const result = {};
4584
+ for (const key in obj) {
4585
+ const parts = key.split(".");
4586
+ let current = result;
4587
+ for (let i = 0; i < parts.length; i++) {
4588
+ const part = parts[i];
4589
+ if (i === parts.length - 1) {
4590
+ current[part] = obj[key];
4591
+ } else {
4592
+ current[part] = current[part] || {};
4593
+ current = current[part];
4594
+ }
4595
+ }
4596
+ }
4597
+ return result;
4598
+ }
4593
4599
 
4594
4600
  // src/types/api-version.ts
4595
4601
  var DEFAULT_API_VERSION = "v3";
@@ -4654,7 +4660,7 @@ var generateContentUrl = (options) => {
4654
4660
  url.searchParams.set("noTraverse", String(noTraverse));
4655
4661
  url.searchParams.set("includeRefs", String(true));
4656
4662
  const finalLocale = locale || userAttributes?.locale;
4657
- let finalUserAttributes = userAttributes;
4663
+ let finalUserAttributes = userAttributes || {};
4658
4664
  if (finalLocale) {
4659
4665
  url.searchParams.set("locale", finalLocale);
4660
4666
  finalUserAttributes = {
@@ -4692,11 +4698,15 @@ var generateContentUrl = (options) => {
4692
4698
  ...getBuilderSearchParamsFromWindow(),
4693
4699
  ...normalizeSearchParams(options.options || {})
4694
4700
  };
4701
+ finalUserAttributes = {
4702
+ ...finalUserAttributes,
4703
+ ...getUserAttributesAsJSON(queryOptions)
4704
+ };
4695
4705
  const flattened = flatten(queryOptions);
4696
4706
  for (const key in flattened) {
4697
4707
  url.searchParams.set(key, String(flattened[key]));
4698
4708
  }
4699
- if (finalUserAttributes) {
4709
+ if (Object.keys(finalUserAttributes).length > 0) {
4700
4710
  url.searchParams.set("userAttributes", JSON.stringify(finalUserAttributes));
4701
4711
  }
4702
4712
  if (query) {
@@ -4709,6 +4719,28 @@ var generateContentUrl = (options) => {
4709
4719
  }
4710
4720
  return url;
4711
4721
  };
4722
+ var getUserAttributesFromQueryOptions = (queryOptions) => {
4723
+ const newUserAttributes = {};
4724
+ for (const key in queryOptions) {
4725
+ if (key.startsWith("userAttributes.")) {
4726
+ newUserAttributes[key] = queryOptions[key];
4727
+ delete queryOptions[key];
4728
+ }
4729
+ }
4730
+ return newUserAttributes;
4731
+ };
4732
+ var getUserAttributesAsJSON = (queryOptions) => {
4733
+ if (isBrowser() && queryOptions["preview"] === "BUILDER_STUDIO") {
4734
+ queryOptions["userAttributes.urlPath"] = window.location.pathname;
4735
+ queryOptions["userAttributes.host"] = window.location.host;
4736
+ const queryOptionsForUserAttributes = getUserAttributesFromQueryOptions(queryOptions);
4737
+ const {
4738
+ userAttributes
4739
+ } = unflatten(queryOptionsForUserAttributes);
4740
+ return userAttributes;
4741
+ }
4742
+ return {};
4743
+ };
4712
4744
 
4713
4745
  // src/functions/get-content/index.ts
4714
4746
  var checkContentHasResults = (content) => "results" in content;
@@ -5326,12 +5358,12 @@ var getWrapperClassName = (variationId) => {
5326
5358
 
5327
5359
  // src/components/content/components/enable-editor.tsx
5328
5360
  function EnableEditor(props) {
5329
- const [ContentWrapper, setContentWrapper] = createSignal16(
5361
+ const [ContentWrapper, setContentWrapper] = createSignal15(
5330
5362
  props.contentWrapper || "div"
5331
5363
  );
5332
- const [httpReqsData, setHttpReqsData] = createSignal16({});
5333
- const [httpReqsPending, setHttpReqsPending] = createSignal16({});
5334
- const [clicked, setClicked] = createSignal16(false);
5364
+ const [httpReqsData, setHttpReqsData] = createSignal15({});
5365
+ const [httpReqsPending, setHttpReqsPending] = createSignal15({});
5366
+ const [clicked, setClicked] = createSignal15(false);
5335
5367
  function mergeNewRootState(newData) {
5336
5368
  const combinedState = {
5337
5369
  ...props.builderContextSignal.rootState,
@@ -5365,7 +5397,7 @@ function EnableEditor(props) {
5365
5397
  content: newContentValue
5366
5398
  }));
5367
5399
  }
5368
- const showContentProps = createMemo16(() => {
5400
+ const showContentProps = createMemo15(() => {
5369
5401
  return props.showContent ? {} : {
5370
5402
  hidden: true,
5371
5403
  "aria-hidden": true
@@ -5521,11 +5553,16 @@ function EnableEditor(props) {
5521
5553
  `builder.overrides.${searchParamPreviewModel}`
5522
5554
  );
5523
5555
  const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
5524
- if (searchParamPreviewModel === props.model && previewApiKey === props.apiKey && (!props.content || searchParamPreviewId === props.content.id)) {
5556
+ if (searchParamPreviewModel === "BUILDER_STUDIO" || searchParamPreviewModel === props.model && previewApiKey === props.apiKey && (!props.content || searchParamPreviewId === props.content.id)) {
5525
5557
  fetchOneEntry({
5526
- model: props.model,
5558
+ model: props.model || "",
5527
5559
  apiKey: props.apiKey,
5528
- apiVersion: props.builderContextSignal.apiVersion
5560
+ apiVersion: props.builderContextSignal.apiVersion,
5561
+ ...searchParamPreviewModel === "BUILDER_STUDIO" && props.context?.symbolId ? {
5562
+ query: {
5563
+ id: props.context.symbolId
5564
+ }
5565
+ } : {}
5529
5566
  }).then((content) => {
5530
5567
  if (content) {
5531
5568
  mergeNewContent(content);
@@ -5535,14 +5572,14 @@ function EnableEditor(props) {
5535
5572
  }
5536
5573
  }
5537
5574
  });
5538
- const onUpdateFn_0_props_content = createMemo16(() => props.content);
5575
+ const onUpdateFn_0_props_content = createMemo15(() => props.content);
5539
5576
  function onUpdateFn_0() {
5540
5577
  if (props.content) {
5541
5578
  mergeNewContent(props.content);
5542
5579
  }
5543
5580
  }
5544
5581
  createEffect3(on3(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
5545
- const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
5582
+ const onUpdateFn_1_props_builderContextSignal_rootState = createMemo15(
5546
5583
  () => props.builderContextSignal.rootState
5547
5584
  );
5548
5585
  function onUpdateFn_1() {
@@ -5554,14 +5591,14 @@ function EnableEditor(props) {
5554
5591
  onUpdateFn_1
5555
5592
  )
5556
5593
  );
5557
- const onUpdateFn_2_props_data = createMemo16(() => props.data);
5594
+ const onUpdateFn_2_props_data = createMemo15(() => props.data);
5558
5595
  function onUpdateFn_2() {
5559
5596
  if (props.data) {
5560
5597
  mergeNewRootState(props.data);
5561
5598
  }
5562
5599
  }
5563
5600
  createEffect3(on3(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
5564
- const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
5601
+ const onUpdateFn_3_props_locale = createMemo15(() => props.locale);
5565
5602
  function onUpdateFn_3() {
5566
5603
  if (props.locale) {
5567
5604
  mergeNewRootState({
@@ -5593,9 +5630,9 @@ function EnableEditor(props) {
5593
5630
  var Enable_editor_default = EnableEditor;
5594
5631
 
5595
5632
  // src/components/content/components/styles.tsx
5596
- import { createSignal as createSignal17 } from "solid-js";
5633
+ import { createSignal as createSignal16 } from "solid-js";
5597
5634
  function ContentStyles(props) {
5598
- const [injectedStyles, setInjectedStyles] = createSignal17(
5635
+ const [injectedStyles, setInjectedStyles] = createSignal16(
5599
5636
  `
5600
5637
  ${getCss({
5601
5638
  cssCode: props.cssCode,
@@ -5653,7 +5690,7 @@ var getContentInitialValue = ({
5653
5690
 
5654
5691
  // src/components/content/content.tsx
5655
5692
  function ContentComponent(props) {
5656
- const [scriptStr, setScriptStr] = createSignal18(
5693
+ const [scriptStr, setScriptStr] = createSignal17(
5657
5694
  getUpdateVariantVisibilityScript({
5658
5695
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5659
5696
  variationId: props.content?.testVariationId,
@@ -5661,7 +5698,7 @@ function ContentComponent(props) {
5661
5698
  contentId: props.content?.id
5662
5699
  })
5663
5700
  );
5664
- const [registeredComponents, setRegisteredComponents] = createSignal18(
5701
+ const [registeredComponents, setRegisteredComponents] = createSignal17(
5665
5702
  [
5666
5703
  ...getDefaultRegisteredComponents(),
5667
5704
  ...props.customComponents || []
@@ -5676,7 +5713,7 @@ function ContentComponent(props) {
5676
5713
  {}
5677
5714
  )
5678
5715
  );
5679
- const [builderContextSignal, setBuilderContextSignal] = createSignal18({
5716
+ const [builderContextSignal, setBuilderContextSignal] = createSignal17({
5680
5717
  content: getContentInitialValue({
5681
5718
  content: props.content,
5682
5719
  data: props.data
@@ -5784,13 +5821,13 @@ var Content_default = ContentComponent;
5784
5821
 
5785
5822
  // src/components/content-variants/content-variants.tsx
5786
5823
  function ContentVariants(props) {
5787
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal19(
5824
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal18(
5788
5825
  checkShouldRenderVariants({
5789
5826
  canTrack: getDefaultCanTrack(props.canTrack),
5790
5827
  content: props.content
5791
5828
  })
5792
5829
  );
5793
- const updateCookieAndStylesScriptStr = createMemo19(() => {
5830
+ const updateCookieAndStylesScriptStr = createMemo18(() => {
5794
5831
  return getUpdateCookieAndStylesScript(
5795
5832
  getVariants(props.content).map((value) => ({
5796
5833
  id: value.testVariationId,
@@ -5799,10 +5836,10 @@ function ContentVariants(props) {
5799
5836
  props.content?.id || ""
5800
5837
  );
5801
5838
  });
5802
- const hideVariantsStyleString = createMemo19(() => {
5839
+ const hideVariantsStyleString = createMemo18(() => {
5803
5840
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
5804
5841
  });
5805
- const defaultContent = createMemo19(() => {
5842
+ const defaultContent = createMemo18(() => {
5806
5843
  return shouldRenderVariants() ? {
5807
5844
  ...props.content,
5808
5845
  testVariationId: props.content?.id
@@ -5914,14 +5951,14 @@ var fetchSymbolContent = async ({
5914
5951
 
5915
5952
  // src/blocks/symbol/symbol.tsx
5916
5953
  function Symbol(props) {
5917
- const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
5918
- const blocksWrapper = createMemo20(() => {
5954
+ const [contentToUse, setContentToUse] = createSignal19(props.symbol?.content);
5955
+ const blocksWrapper = createMemo19(() => {
5919
5956
  return "div";
5920
5957
  });
5921
- const contentWrapper = createMemo20(() => {
5958
+ const contentWrapper = createMemo19(() => {
5922
5959
  return "div";
5923
5960
  });
5924
- const className = createMemo20(() => {
5961
+ const className = createMemo19(() => {
5925
5962
  return [
5926
5963
  ...[props.attributes[getClassPropName()]],
5927
5964
  "builder-symbol",
@@ -5943,7 +5980,7 @@ function Symbol(props) {
5943
5980
  }
5944
5981
  onMount8(() => {
5945
5982
  });
5946
- const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
5983
+ const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
5947
5984
  function onUpdateFn_0() {
5948
5985
  setContent();
5949
5986
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",