@builder.io/sdk-solid 1.0.27 → 1.0.29

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
@@ -3625,6 +3625,9 @@ function getProcessedBlock({
3625
3625
  }
3626
3626
  }
3627
3627
 
3628
+ // src/functions/camel-to-kebab-case.ts
3629
+ var camelToKebabCase = (str) => str ? str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
3630
+
3628
3631
  // src/components/block/animator.ts
3629
3632
  function throttle(func, wait, options = {}) {
3630
3633
  let context;
@@ -3675,7 +3678,6 @@ function assign(target, ..._args) {
3675
3678
  }
3676
3679
  return to;
3677
3680
  }
3678
- var camelCaseToKebabCase = (str) => str ? str.replace(/([A-Z])/g, (g) => `-${g[0].toLowerCase()}`) : "";
3679
3681
  function bindAnimations(animations) {
3680
3682
  for (const animation of animations) {
3681
3683
  switch (animation.trigger) {
@@ -3728,7 +3730,7 @@ function triggerAnimation(animation) {
3728
3730
  element.style.transitionDelay = "0";
3729
3731
  assign(element.style, animation.steps[0].styles);
3730
3732
  setTimeout(() => {
3731
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
3733
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
3732
3734
  if (animation.delay) {
3733
3735
  element.style.transitionDelay = animation.delay + "s";
3734
3736
  }
@@ -3788,7 +3790,7 @@ function bindScrollInViewAnimation(animation) {
3788
3790
  }
3789
3791
  attachDefaultState();
3790
3792
  setTimeout(() => {
3791
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
3793
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
3792
3794
  if (animation.delay) {
3793
3795
  element.style.transitionDelay = animation.delay + "s";
3794
3796
  }
@@ -3801,9 +3803,6 @@ function bindScrollInViewAnimation(animation) {
3801
3803
  });
3802
3804
  }
3803
3805
 
3804
- // src/functions/camel-to-kebab-case.ts
3805
- var camelToKebabCase = (string) => string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
3806
-
3807
3806
  // src/helpers/css.ts
3808
3807
  var convertStyleMapToCSSArray = (style) => {
3809
3808
  const cssProps = Object.entries(style).map(([key, value]) => {
@@ -3933,10 +3932,10 @@ var getRepeatItemData = ({
3933
3932
  return repeatArray;
3934
3933
  };
3935
3934
  var shouldPassLinkComponent = (block) => {
3936
- return block && (block.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(block.name));
3935
+ return block && (block.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(block.name));
3937
3936
  };
3938
3937
  var shouldPassRegisteredComponents = (block) => {
3939
- return block && (block.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(block.name));
3938
+ return block && (block.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(block.name));
3940
3939
  };
3941
3940
 
3942
3941
  // src/components/block/components/block-styles.tsx
@@ -4065,7 +4064,7 @@ function BlockStyles(props) {
4065
4064
  className: `${className}:hover`,
4066
4065
  styles: {
4067
4066
  ...hoverStyles,
4068
- transition: `all ${hoverAnimation.duration}s ${camelCaseToKebabCase(
4067
+ transition: `all ${hoverAnimation.duration}s ${camelToKebabCase(
4069
4068
  hoverAnimation.easing
4070
4069
  )}`,
4071
4070
  transitionDelay: hoverAnimation.delay ? `${hoverAnimation.delay}s` : "0s"
@@ -4830,10 +4829,10 @@ function SectionComponent(props) {
4830
4829
  var section_default = SectionComponent;
4831
4830
 
4832
4831
  // src/blocks/symbol/symbol.tsx
4833
- import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo18, createSignal as createSignal18 } from "solid-js";
4832
+ import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
4834
4833
 
4835
4834
  // src/components/content-variants/content-variants.tsx
4836
- import { Show as Show13, For as For8, onMount as onMount4, createSignal as createSignal17, createMemo as createMemo17 } from "solid-js";
4835
+ import { Show as Show14, For as For9, onMount as onMount4, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
4837
4836
 
4838
4837
  // src/helpers/url.ts
4839
4838
  var getTopLevelDomain = (host) => {
@@ -5027,10 +5026,286 @@ var handleABTesting = async ({
5027
5026
  var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
5028
5027
 
5029
5028
  // src/components/content/content.tsx
5030
- import { Show as Show12, createSignal as createSignal16 } from "solid-js";
5029
+ import { Show as Show13, createSignal as createSignal17 } from "solid-js";
5031
5030
 
5032
- // src/blocks/button/component-info.ts
5031
+ // src/blocks/accordion/component-info.ts
5032
+ var defaultTitle = {
5033
+ "@type": "@builder.io/sdk:Element",
5034
+ layerName: "Accordion item title",
5035
+ responsiveStyles: {
5036
+ large: {
5037
+ marginTop: "10px",
5038
+ position: "relative",
5039
+ display: "flex",
5040
+ alignItems: "stretch",
5041
+ flexDirection: "column",
5042
+ paddingBottom: "10px"
5043
+ }
5044
+ },
5045
+ children: [{
5046
+ "@type": "@builder.io/sdk:Element",
5047
+ responsiveStyles: {
5048
+ large: {
5049
+ textAlign: "left",
5050
+ display: "flex",
5051
+ flexDirection: "column"
5052
+ }
5053
+ },
5054
+ component: {
5055
+ name: "Text",
5056
+ options: {
5057
+ text: "I am an accordion title. Click me!"
5058
+ }
5059
+ }
5060
+ }]
5061
+ };
5062
+ var defaultDetail = {
5063
+ "@type": "@builder.io/sdk:Element",
5064
+ layerName: "Accordion item detail",
5065
+ responsiveStyles: {
5066
+ large: {
5067
+ position: "relative",
5068
+ display: "flex",
5069
+ alignItems: "stretch",
5070
+ flexDirection: "column",
5071
+ marginTop: "10px",
5072
+ paddingBottom: "10px"
5073
+ }
5074
+ },
5075
+ children: [{
5076
+ "@type": "@builder.io/sdk:Element",
5077
+ responsiveStyles: {
5078
+ large: {
5079
+ paddingTop: "50px",
5080
+ textAlign: "left",
5081
+ display: "flex",
5082
+ flexDirection: "column",
5083
+ paddingBottom: "50px"
5084
+ }
5085
+ },
5086
+ component: {
5087
+ name: "Text",
5088
+ options: {
5089
+ text: "I am an accordion detail, hello!"
5090
+ }
5091
+ }
5092
+ }]
5093
+ };
5033
5094
  var componentInfo = {
5095
+ name: "Builder:Accordion",
5096
+ canHaveChildren: true,
5097
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
5098
+ defaultStyles: {
5099
+ display: "flex",
5100
+ flexDirection: "column",
5101
+ alignItems: "stretch"
5102
+ },
5103
+ inputs: [{
5104
+ name: "items",
5105
+ type: "list",
5106
+ broadcast: true,
5107
+ subFields: [{
5108
+ name: "title",
5109
+ type: "uiBlocks",
5110
+ hideFromUI: true,
5111
+ defaultValue: [defaultTitle]
5112
+ }, {
5113
+ name: "detail",
5114
+ type: "uiBlocks",
5115
+ hideFromUI: true,
5116
+ defaultValue: [defaultDetail]
5117
+ }],
5118
+ defaultValue: [{
5119
+ title: [defaultTitle],
5120
+ detail: [defaultDetail]
5121
+ }, {
5122
+ title: [defaultTitle],
5123
+ detail: [defaultDetail]
5124
+ }],
5125
+ showIf: (options) => !options.get("useChildrenForItems")
5126
+ }, {
5127
+ name: "oneAtATime",
5128
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
5129
+ type: "boolean",
5130
+ defaultValue: false
5131
+ }, {
5132
+ name: "grid",
5133
+ helperText: "Display as a grid",
5134
+ type: "boolean",
5135
+ defaultValue: false
5136
+ }, {
5137
+ name: "gridRowWidth",
5138
+ helperText: "Display as a grid",
5139
+ type: "string",
5140
+ showIf: (options) => options.get("grid"),
5141
+ defaultValue: "25%"
5142
+ }, {
5143
+ name: "useChildrenForItems",
5144
+ type: "boolean",
5145
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
5146
+ advanced: true,
5147
+ defaultValue: false,
5148
+ onChange: (options) => {
5149
+ if (options.get("useChildrenForItems") === true) {
5150
+ options.set("items", []);
5151
+ }
5152
+ }
5153
+ }]
5154
+ };
5155
+
5156
+ // src/blocks/accordion/accordion.tsx
5157
+ import { Show as Show8, For as For5, createSignal as createSignal9, createMemo as createMemo9 } from "solid-js";
5158
+
5159
+ // src/blocks/accordion/helpers.ts
5160
+ var convertOrderNumberToString = (order) => {
5161
+ return order.toString();
5162
+ };
5163
+
5164
+ // src/blocks/accordion/accordion.tsx
5165
+ function Accordion(props) {
5166
+ const [open, setOpen] = createSignal9([]);
5167
+ const onlyOneAtATime = createMemo9(() => {
5168
+ return Boolean(props.grid || props.oneAtATime);
5169
+ });
5170
+ const accordionStyles = createMemo9(() => {
5171
+ const styles = {
5172
+ display: "flex",
5173
+ alignItems: "stretch",
5174
+ flexDirection: "column",
5175
+ ...props.grid && {
5176
+ flexDirection: "row",
5177
+ alignItems: "flex-start",
5178
+ flexWrap: "wrap"
5179
+ }
5180
+ };
5181
+ return Object.fromEntries(
5182
+ Object.entries(styles).map(([key, value]) => [
5183
+ camelToKebabCase(key),
5184
+ value
5185
+ ])
5186
+ );
5187
+ });
5188
+ const accordionTitleStyles = createMemo9(() => {
5189
+ const shared = {
5190
+ display: "flex",
5191
+ flexDirection: "column"
5192
+ };
5193
+ const styles = Object.fromEntries(
5194
+ Object.entries({
5195
+ ...shared,
5196
+ alignItems: "stretch",
5197
+ cursor: "pointer"
5198
+ }).map(([key, value]) => [camelToKebabCase(key), value])
5199
+ );
5200
+ return Object.fromEntries(
5201
+ Object.entries(styles).filter(([_, value]) => value !== void 0)
5202
+ );
5203
+ });
5204
+ function getAccordionTitleClassName(index) {
5205
+ return `builder-accordion-title builder-accordion-title-${open().includes(index) ? "open" : "closed"}`;
5206
+ }
5207
+ function getAccordionDetailClassName(index) {
5208
+ return `builder-accordion-detail builder-accordion-detail-${open().includes(index) ? "open" : "closed"}`;
5209
+ }
5210
+ const openGridItemOrder = createMemo9(() => {
5211
+ let itemOrder = null;
5212
+ const getOpenGridItemPosition = props.grid && open().length;
5213
+ if (getOpenGridItemPosition && document) {
5214
+ const openItemIndex = open()[0];
5215
+ const openItem = document.querySelector(
5216
+ `.builder-accordion-title[data-index="${openItemIndex}"]`
5217
+ );
5218
+ let subjectItem = openItem;
5219
+ itemOrder = openItemIndex;
5220
+ if (subjectItem) {
5221
+ let prevItemRect = subjectItem.getBoundingClientRect();
5222
+ while (subjectItem = subjectItem && subjectItem.nextElementSibling) {
5223
+ if (subjectItem) {
5224
+ if (subjectItem.classList.contains("builder-accordion-detail")) {
5225
+ continue;
5226
+ }
5227
+ const subjectItemRect = subjectItem.getBoundingClientRect();
5228
+ if (subjectItemRect.left > prevItemRect.left) {
5229
+ const index = parseInt(
5230
+ subjectItem.getAttribute("data-index") || "",
5231
+ 10
5232
+ );
5233
+ if (!isNaN(index)) {
5234
+ prevItemRect = subjectItemRect;
5235
+ itemOrder = index;
5236
+ }
5237
+ } else {
5238
+ break;
5239
+ }
5240
+ }
5241
+ }
5242
+ }
5243
+ }
5244
+ if (typeof itemOrder === "number") {
5245
+ itemOrder = itemOrder + 1;
5246
+ }
5247
+ return itemOrder;
5248
+ });
5249
+ const accordionDetailStyles = createMemo9(() => {
5250
+ const styles = {
5251
+ ...{
5252
+ order: typeof openGridItemOrder() === "number" ? openGridItemOrder() : void 0
5253
+ },
5254
+ ...props.grid && {
5255
+ width: "100%"
5256
+ }
5257
+ };
5258
+ return Object.fromEntries(
5259
+ Object.entries(styles).filter(([_, value]) => value !== void 0)
5260
+ );
5261
+ });
5262
+ function onClick(index) {
5263
+ if (open().includes(index)) {
5264
+ setOpen(onlyOneAtATime() ? [] : open().filter((item) => item !== index));
5265
+ } else {
5266
+ setOpen(onlyOneAtATime() ? [index] : open().concat(index));
5267
+ }
5268
+ }
5269
+ return <div class="builder-accordion" style={accordionStyles()}><For5 each={props.items}>{(item, _index) => {
5270
+ const index = _index();
5271
+ return <>
5272
+ <div
5273
+ class={getAccordionTitleClassName(index)}
5274
+ style={{
5275
+ ...accordionTitleStyles(),
5276
+ width: props.grid ? props.gridRowWidth : void 0,
5277
+ ...{
5278
+ order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
5279
+ }
5280
+ }}
5281
+ data-index={index}
5282
+ onClick={(event) => onClick(index)}
5283
+ ><Blocks_default
5284
+ blocks={item.title}
5285
+ path={`items.${index}.title`}
5286
+ parent={props.builderBlock.id}
5287
+ context={props.builderContext}
5288
+ registeredComponents={props.builderComponents}
5289
+ linkComponent={props.builderLinkComponent}
5290
+ /></div>
5291
+ <Show8 when={open().includes(index)}><div
5292
+ class={getAccordionDetailClassName(index)}
5293
+ style={accordionDetailStyles()}
5294
+ ><Blocks_default
5295
+ blocks={item.detail}
5296
+ path={`items.${index}.detail`}
5297
+ parent={props.builderBlock.id}
5298
+ context={props.builderContext}
5299
+ registeredComponents={props.builderComponents}
5300
+ linkComponent={props.builderLinkComponent}
5301
+ /></div></Show8>
5302
+ </>;
5303
+ }}</For5></div>;
5304
+ }
5305
+ var accordion_default = Accordion;
5306
+
5307
+ // src/blocks/button/component-info.ts
5308
+ var componentInfo2 = {
5034
5309
  name: "Core:Button",
5035
5310
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
5036
5311
  defaultStyles: {
@@ -5066,7 +5341,7 @@ var componentInfo = {
5066
5341
  };
5067
5342
 
5068
5343
  // src/blocks/columns/component-info.ts
5069
- var componentInfo2 = {
5344
+ var componentInfo3 = {
5070
5345
  // TODO: ways to statically preprocess JSON for references, functions, etc
5071
5346
  name: "Columns",
5072
5347
  isRSC: true,
@@ -5286,7 +5561,7 @@ var componentInfo2 = {
5286
5561
  };
5287
5562
 
5288
5563
  // src/blocks/fragment/component-info.ts
5289
- var componentInfo3 = {
5564
+ var componentInfo4 = {
5290
5565
  name: "Fragment",
5291
5566
  static: true,
5292
5567
  hidden: true,
@@ -5295,7 +5570,7 @@ var componentInfo3 = {
5295
5570
  };
5296
5571
 
5297
5572
  // src/blocks/image/component-info.ts
5298
- var componentInfo4 = {
5573
+ var componentInfo5 = {
5299
5574
  name: "Image",
5300
5575
  static: true,
5301
5576
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -5418,7 +5693,7 @@ var componentInfo4 = {
5418
5693
  };
5419
5694
 
5420
5695
  // src/blocks/section/component-info.ts
5421
- var componentInfo5 = {
5696
+ var componentInfo6 = {
5422
5697
  name: "Core:Section",
5423
5698
  static: true,
5424
5699
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -5460,7 +5735,7 @@ var componentInfo5 = {
5460
5735
  };
5461
5736
 
5462
5737
  // src/blocks/slot/component-info.ts
5463
- var componentInfo6 = {
5738
+ var componentInfo7 = {
5464
5739
  name: "Slot",
5465
5740
  isRSC: true,
5466
5741
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -5494,7 +5769,7 @@ function Slot(props) {
5494
5769
  var slot_default = Slot;
5495
5770
 
5496
5771
  // src/blocks/symbol/component-info.ts
5497
- var componentInfo7 = {
5772
+ var componentInfo8 = {
5498
5773
  name: "Symbol",
5499
5774
  noWrap: true,
5500
5775
  static: true,
@@ -5570,7 +5845,7 @@ var defaultElement = {
5570
5845
  }
5571
5846
  }
5572
5847
  };
5573
- var componentInfo8 = {
5848
+ var componentInfo9 = {
5574
5849
  name: "Builder: Tabs",
5575
5850
  inputs: [{
5576
5851
  name: "tabs",
@@ -5670,16 +5945,20 @@ var componentInfo8 = {
5670
5945
  };
5671
5946
 
5672
5947
  // src/blocks/tabs/tabs.tsx
5673
- import { Show as Show8, For as For5, createSignal as createSignal9 } from "solid-js";
5948
+ import { Show as Show9, For as For6, createSignal as createSignal10 } from "solid-js";
5674
5949
  function Tabs(props) {
5675
- const [activeTab, setActiveTab] = createSignal9(
5950
+ const [activeTab, setActiveTab] = createSignal10(
5676
5951
  props.defaultActiveTab ? props.defaultActiveTab - 1 : 0
5677
5952
  );
5678
5953
  function activeTabContent(active) {
5679
5954
  return props.tabs && props.tabs[active].content;
5680
5955
  }
5681
- function getActiveTabStyle(index) {
5682
- return activeTab() === index ? props.activeTabStyle : {};
5956
+ function onClick(index) {
5957
+ if (index === activeTab() && props.collapsible) {
5958
+ setActiveTab(-1);
5959
+ } else {
5960
+ setActiveTab(index);
5961
+ }
5683
5962
  }
5684
5963
  return <div>
5685
5964
  <div
@@ -5690,19 +5969,15 @@ function Tabs(props) {
5690
5969
  "justify-content": props.tabHeaderLayout || "flex-start",
5691
5970
  overflow: "auto"
5692
5971
  }}
5693
- ><For5 each={props.tabs}>{(tab, _index) => {
5972
+ ><For6 each={props.tabs}>{(tab, _index) => {
5694
5973
  const index = _index();
5695
5974
  return <span
5696
5975
  class={`builder-tab-wrap ${activeTab() === index ? "builder-tab-active" : ""}`}
5697
5976
  key={index}
5698
- style={getActiveTabStyle(index)}
5699
- onClick={(event) => {
5700
- if (index === activeTab() && props.collapsible) {
5701
- setActiveTab(-1);
5702
- } else {
5703
- setActiveTab(index);
5704
- }
5977
+ style={{
5978
+ ...activeTab() === index ? props.activeTabStyle : {}
5705
5979
  }}
5980
+ onClick={(event) => onClick(index)}
5706
5981
  ><Blocks_default
5707
5982
  parent={props.builderBlock.id}
5708
5983
  path={`component.options.tabs.${index}.label`}
@@ -5711,21 +5986,21 @@ function Tabs(props) {
5711
5986
  registeredComponents={props.builderComponents}
5712
5987
  linkComponent={props.builderLinkComponent}
5713
5988
  /></span>;
5714
- }}</For5></div>
5715
- <Show8 when={activeTabContent(activeTab())}><div><Blocks_default
5989
+ }}</For6></div>
5990
+ <Show9 when={activeTabContent(activeTab())}><div><Blocks_default
5716
5991
  parent={props.builderBlock.id}
5717
5992
  path={`component.options.tabs.${activeTab()}.content`}
5718
5993
  blocks={activeTabContent(activeTab())}
5719
5994
  context={props.builderContext}
5720
5995
  registeredComponents={props.builderComponents}
5721
5996
  linkComponent={props.builderLinkComponent}
5722
- /></div></Show8>
5997
+ /></div></Show9>
5723
5998
  </div>;
5724
5999
  }
5725
6000
  var tabs_default = Tabs;
5726
6001
 
5727
6002
  // src/blocks/text/component-info.ts
5728
- var componentInfo9 = {
6003
+ var componentInfo10 = {
5729
6004
  name: "Text",
5730
6005
  static: true,
5731
6006
  isRSC: true,
@@ -5758,7 +6033,7 @@ function Text(props) {
5758
6033
  var text_default = Text;
5759
6034
 
5760
6035
  // src/blocks/custom-code/component-info.ts
5761
- var componentInfo10 = {
6036
+ var componentInfo11 = {
5762
6037
  name: "Custom Code",
5763
6038
  static: true,
5764
6039
  requiredPermissions: ["editCode"],
@@ -5783,10 +6058,10 @@ var componentInfo10 = {
5783
6058
  };
5784
6059
 
5785
6060
  // src/blocks/custom-code/custom-code.tsx
5786
- import { onMount as onMount2, createSignal as createSignal10 } from "solid-js";
6061
+ import { onMount as onMount2, createSignal as createSignal11 } from "solid-js";
5787
6062
  function CustomCode(props) {
5788
- const [scriptsInserted, setScriptsInserted] = createSignal10([]);
5789
- const [scriptsRun, setScriptsRun] = createSignal10([]);
6063
+ const [scriptsInserted, setScriptsInserted] = createSignal11([]);
6064
+ const [scriptsRun, setScriptsRun] = createSignal11([]);
5790
6065
  let elementRef;
5791
6066
  onMount2(() => {
5792
6067
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
@@ -5830,7 +6105,7 @@ function CustomCode(props) {
5830
6105
  var custom_code_default = CustomCode;
5831
6106
 
5832
6107
  // src/blocks/embed/component-info.ts
5833
- var componentInfo11 = {
6108
+ var componentInfo12 = {
5834
6109
  name: "Embed",
5835
6110
  static: true,
5836
6111
  inputs: [{
@@ -5868,7 +6143,7 @@ var componentInfo11 = {
5868
6143
  };
5869
6144
 
5870
6145
  // src/blocks/embed/embed.tsx
5871
- import { on, createEffect, createMemo as createMemo11, createSignal as createSignal11 } from "solid-js";
6146
+ import { on, createEffect, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
5872
6147
 
5873
6148
  // src/blocks/embed/helpers.ts
5874
6149
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -5876,9 +6151,9 @@ var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
5876
6151
 
5877
6152
  // src/blocks/embed/embed.tsx
5878
6153
  function Embed(props) {
5879
- const [scriptsInserted, setScriptsInserted] = createSignal11([]);
5880
- const [scriptsRun, setScriptsRun] = createSignal11([]);
5881
- const [ranInitFn, setRanInitFn] = createSignal11(false);
6154
+ const [scriptsInserted, setScriptsInserted] = createSignal12([]);
6155
+ const [scriptsRun, setScriptsRun] = createSignal12([]);
6156
+ const [ranInitFn, setRanInitFn] = createSignal12(false);
5882
6157
  function findAndRunScripts() {
5883
6158
  if (!elem || !elem.getElementsByTagName)
5884
6159
  return;
@@ -5902,8 +6177,8 @@ function Embed(props) {
5902
6177
  }
5903
6178
  }
5904
6179
  let elem;
5905
- const onUpdateFn_0_elem = createMemo11(() => elem);
5906
- const onUpdateFn_0_ranInitFn__ = createMemo11(() => ranInitFn());
6180
+ const onUpdateFn_0_elem = createMemo12(() => elem);
6181
+ const onUpdateFn_0_ranInitFn__ = createMemo12(() => ranInitFn());
5907
6182
  function onUpdateFn_0() {
5908
6183
  if (elem && !ranInitFn()) {
5909
6184
  setRanInitFn(true);
@@ -5918,7 +6193,7 @@ function Embed(props) {
5918
6193
  var embed_default = Embed;
5919
6194
 
5920
6195
  // src/blocks/form/form/component-info.ts
5921
- var componentInfo12 = {
6196
+ var componentInfo13 = {
5922
6197
  name: "Form:Form",
5923
6198
  // editableTags: ['builder-form-error']
5924
6199
  defaults: {
@@ -6152,7 +6427,7 @@ var componentInfo12 = {
6152
6427
  };
6153
6428
 
6154
6429
  // src/blocks/form/form/form.tsx
6155
- import { Show as Show9, For as For6, createSignal as createSignal12 } from "solid-js";
6430
+ import { Show as Show10, For as For7, createSignal as createSignal13 } from "solid-js";
6156
6431
  import { css as css4 } from "solid-styled-components";
6157
6432
 
6158
6433
  // src/functions/get-env.ts
@@ -6170,9 +6445,9 @@ var get = (obj, path, defaultValue) => {
6170
6445
 
6171
6446
  // src/blocks/form/form/form.tsx
6172
6447
  function FormComponent(props) {
6173
- const [formState, setFormState] = createSignal12("unsubmitted");
6174
- const [responseData, setResponseData] = createSignal12(null);
6175
- const [formErrorMessage, setFormErrorMessage] = createSignal12("");
6448
+ const [formState, setFormState] = createSignal13("unsubmitted");
6449
+ const [responseData, setResponseData] = createSignal13(null);
6450
+ const [formErrorMessage, setFormErrorMessage] = createSignal13("");
6176
6451
  function mergeNewRootState(newData) {
6177
6452
  const combinedState = {
6178
6453
  ...props.builderContext.rootState,
@@ -6197,13 +6472,11 @@ function FormComponent(props) {
6197
6472
  return;
6198
6473
  }
6199
6474
  event.preventDefault();
6200
- const el = event.currentTarget;
6475
+ const el = event.currentTarget || event.target;
6201
6476
  const headers = props.customHeaders || {};
6202
6477
  let body;
6203
6478
  const formData = new FormData(el);
6204
- const formPairs = Array.from(
6205
- event.currentTarget.querySelectorAll("input,select,textarea")
6206
- ).filter((el2) => !!el2.name).map((el2) => {
6479
+ const formPairs = Array.from(el.querySelectorAll("input,select,textarea")).filter((el2) => !!el2.name).map((el2) => {
6207
6480
  let value;
6208
6481
  const key = el2.name;
6209
6482
  if (el2 instanceof HTMLInputElement) {
@@ -6366,9 +6639,10 @@ function FormComponent(props) {
6366
6639
  name={props.name}
6367
6640
  onSubmit={(event) => onSubmit(event)}
6368
6641
  {...{}}
6642
+ {...{}}
6369
6643
  {...props.attributes}
6370
6644
  >
6371
- <Show9 when={props.builderBlock && props.builderBlock.children}><For6 each={props.builderBlock?.children}>{(block, _index) => {
6645
+ <Show10 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
6372
6646
  const idx = _index();
6373
6647
  return <Block_default
6374
6648
  key={`form-block-${idx}`}
@@ -6377,35 +6651,35 @@ function FormComponent(props) {
6377
6651
  registeredComponents={props.builderComponents}
6378
6652
  linkComponent={props.builderLinkComponent}
6379
6653
  />;
6380
- }}</For6></Show9>
6381
- <Show9 when={submissionState() === "error"}><Blocks_default
6654
+ }}</For7></Show10>
6655
+ <Show10 when={submissionState() === "error"}><Blocks_default
6382
6656
  path="errorMessage"
6383
6657
  blocks={props.errorMessage}
6384
6658
  context={props.builderContext}
6385
- /></Show9>
6386
- <Show9 when={submissionState() === "sending"}><Blocks_default
6659
+ /></Show10>
6660
+ <Show10 when={submissionState() === "sending"}><Blocks_default
6387
6661
  path="sendingMessage"
6388
6662
  blocks={props.sendingMessage}
6389
6663
  context={props.builderContext}
6390
- /></Show9>
6391
- <Show9 when={submissionState() === "error" && responseData()}><pre
6664
+ /></Show10>
6665
+ <Show10 when={submissionState() === "error" && responseData()}><pre
6392
6666
  class={"builder-form-error-text " + css4({
6393
6667
  padding: "10px",
6394
6668
  color: "red",
6395
6669
  textAlign: "center"
6396
6670
  })}
6397
- >{JSON.stringify(responseData(), null, 2)}</pre></Show9>
6398
- <Show9 when={submissionState() === "success"}><Blocks_default
6671
+ >{JSON.stringify(responseData(), null, 2)}</pre></Show10>
6672
+ <Show10 when={submissionState() === "success"}><Blocks_default
6399
6673
  path="successMessage"
6400
6674
  blocks={props.successMessage}
6401
6675
  context={props.builderContext}
6402
- /></Show9>
6676
+ /></Show10>
6403
6677
  </form>;
6404
6678
  }
6405
6679
  var form_default = FormComponent;
6406
6680
 
6407
6681
  // src/blocks/form/input/component-info.ts
6408
- var componentInfo13 = {
6682
+ var componentInfo14 = {
6409
6683
  name: "Form:Input",
6410
6684
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
6411
6685
  inputs: [
@@ -6475,7 +6749,7 @@ function FormInputComponent(props) {
6475
6749
  var input_default = FormInputComponent;
6476
6750
 
6477
6751
  // src/blocks/form/select/component-info.ts
6478
- var componentInfo14 = {
6752
+ var componentInfo15 = {
6479
6753
  name: "Form:Select",
6480
6754
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
6481
6755
  defaultStyles: {
@@ -6520,7 +6794,7 @@ var componentInfo14 = {
6520
6794
  };
6521
6795
 
6522
6796
  // src/blocks/form/select/select.tsx
6523
- import { For as For7 } from "solid-js";
6797
+ import { For as For8 } from "solid-js";
6524
6798
  function SelectComponent(props) {
6525
6799
  return <select
6526
6800
  {...{}}
@@ -6529,15 +6803,15 @@ function SelectComponent(props) {
6529
6803
  key={isEditing() && props.defaultValue ? props.defaultValue : "default-key"}
6530
6804
  defaultValue={props.defaultValue}
6531
6805
  name={props.name}
6532
- ><For7 each={props.options}>{(option, _index) => {
6806
+ ><For8 each={props.options}>{(option, _index) => {
6533
6807
  const index = _index();
6534
6808
  return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
6535
- }}</For7></select>;
6809
+ }}</For8></select>;
6536
6810
  }
6537
6811
  var select_default = SelectComponent;
6538
6812
 
6539
6813
  // src/blocks/form/submit-button/component-info.ts
6540
- var componentInfo15 = {
6814
+ var componentInfo16 = {
6541
6815
  name: "Form:SubmitButton",
6542
6816
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
6543
6817
  defaultStyles: {
@@ -6571,7 +6845,7 @@ function SubmitButton(props) {
6571
6845
  var submit_button_default = SubmitButton;
6572
6846
 
6573
6847
  // src/blocks/img/component-info.ts
6574
- var componentInfo16 = {
6848
+ var componentInfo17 = {
6575
6849
  // friendlyName?
6576
6850
  name: "Raw:Img",
6577
6851
  hideFromInsertMenu: true,
@@ -6604,7 +6878,7 @@ function ImgComponent(props) {
6604
6878
  var img_default = ImgComponent;
6605
6879
 
6606
6880
  // src/blocks/video/component-info.ts
6607
- var componentInfo17 = {
6881
+ var componentInfo18 = {
6608
6882
  name: "Video",
6609
6883
  canHaveChildren: true,
6610
6884
  defaultStyles: {
@@ -6688,9 +6962,9 @@ var componentInfo17 = {
6688
6962
  };
6689
6963
 
6690
6964
  // src/blocks/video/video.tsx
6691
- import { Show as Show10, createMemo as createMemo13 } from "solid-js";
6965
+ import { Show as Show11, createMemo as createMemo14 } from "solid-js";
6692
6966
  function Video(props) {
6693
- const videoProps = createMemo13(() => {
6967
+ const videoProps = createMemo14(() => {
6694
6968
  return {
6695
6969
  ...props.autoPlay === true ? {
6696
6970
  autoPlay: true
@@ -6709,7 +6983,7 @@ function Video(props) {
6709
6983
  } : {}
6710
6984
  };
6711
6985
  });
6712
- const spreadProps = createMemo13(() => {
6986
+ const spreadProps = createMemo14(() => {
6713
6987
  return {
6714
6988
  ...videoProps()
6715
6989
  };
@@ -6739,8 +7013,8 @@ function Video(props) {
6739
7013
  }}
6740
7014
  src={props.video || "no-src"}
6741
7015
  poster={props.posterImage}
6742
- ><Show10 when={!props.lazyLoad}><source type="video/mp4" src={props.video} /></Show10></video>
6743
- <Show10
7016
+ ><Show11 when={!props.lazyLoad}><source type="video/mp4" src={props.video} /></Show11></video>
7017
+ <Show11
6744
7018
  when={props.aspectRatio && !(props.fitContent && props.builderBlock?.children?.length)}
6745
7019
  ><div
6746
7020
  style={{
@@ -6749,15 +7023,15 @@ function Video(props) {
6749
7023
  "pointer-events": "none",
6750
7024
  "font-size": "0px"
6751
7025
  }}
6752
- /></Show10>
6753
- <Show10 when={props.builderBlock?.children?.length && props.fitContent}><div
7026
+ /></Show11>
7027
+ <Show11 when={props.builderBlock?.children?.length && props.fitContent}><div
6754
7028
  style={{
6755
7029
  display: "flex",
6756
7030
  "flex-direction": "column",
6757
7031
  "align-items": "stretch"
6758
7032
  }}
6759
- >{props.children}</div></Show10>
6760
- <Show10 when={props.builderBlock?.children?.length && !props.fitContent}><div
7033
+ >{props.children}</div></Show11>
7034
+ <Show11 when={props.builderBlock?.children?.length && !props.fitContent}><div
6761
7035
  style={{
6762
7036
  "pointer-events": "none",
6763
7037
  display: "flex",
@@ -6769,7 +7043,7 @@ function Video(props) {
6769
7043
  width: "100%",
6770
7044
  height: "100%"
6771
7045
  }}
6772
- >{props.children}</div></Show10>
7046
+ >{props.children}</div></Show11>
6773
7047
  </div>;
6774
7048
  }
6775
7049
  var video_default = Video;
@@ -6777,58 +7051,61 @@ var video_default = Video;
6777
7051
  // src/constants/extra-components.ts
6778
7052
  var getExtraComponents = () => [{
6779
7053
  component: custom_code_default,
6780
- ...componentInfo10
7054
+ ...componentInfo11
6781
7055
  }, {
6782
7056
  component: embed_default,
6783
- ...componentInfo11
7057
+ ...componentInfo12
6784
7058
  }, ...TARGET === "rsc" ? [] : [{
6785
7059
  component: form_default,
6786
- ...componentInfo12
7060
+ ...componentInfo13
6787
7061
  }, {
6788
7062
  component: input_default,
6789
- ...componentInfo13
7063
+ ...componentInfo14
6790
7064
  }, {
6791
7065
  component: submit_button_default,
6792
- ...componentInfo15
7066
+ ...componentInfo16
6793
7067
  }, {
6794
7068
  component: select_default,
6795
- ...componentInfo14
7069
+ ...componentInfo15
6796
7070
  }], {
6797
7071
  component: img_default,
6798
- ...componentInfo16
7072
+ ...componentInfo17
6799
7073
  }, {
6800
7074
  component: video_default,
6801
- ...componentInfo17
7075
+ ...componentInfo18
6802
7076
  }];
6803
7077
 
6804
7078
  // src/constants/builder-registered-components.ts
6805
7079
  var getDefaultRegisteredComponents = () => [{
6806
7080
  component: button_default,
6807
- ...componentInfo
7081
+ ...componentInfo2
6808
7082
  }, {
6809
7083
  component: columns_default,
6810
- ...componentInfo2
7084
+ ...componentInfo3
6811
7085
  }, {
6812
7086
  component: fragment_default,
6813
- ...componentInfo3
7087
+ ...componentInfo4
6814
7088
  }, {
6815
7089
  component: image_default,
6816
- ...componentInfo4
7090
+ ...componentInfo5
6817
7091
  }, {
6818
7092
  component: section_default,
6819
- ...componentInfo5
7093
+ ...componentInfo6
6820
7094
  }, {
6821
7095
  component: slot_default,
6822
- ...componentInfo6
7096
+ ...componentInfo7
6823
7097
  }, {
6824
7098
  component: symbol_default,
6825
- ...componentInfo7
7099
+ ...componentInfo8
6826
7100
  }, {
6827
7101
  component: text_default,
6828
- ...componentInfo9
7102
+ ...componentInfo10
6829
7103
  }, ...TARGET === "rsc" ? [] : [{
6830
7104
  component: tabs_default,
6831
- ...componentInfo8
7105
+ ...componentInfo9
7106
+ }, {
7107
+ component: accordion_default,
7108
+ ...componentInfo
6832
7109
  }], ...getExtraComponents()];
6833
7110
 
6834
7111
  // src/functions/register-component.ts
@@ -6907,12 +7184,12 @@ var Inlined_script_default = InlinedScript;
6907
7184
 
6908
7185
  // src/components/content/components/enable-editor.tsx
6909
7186
  import {
6910
- Show as Show11,
7187
+ Show as Show12,
6911
7188
  onMount as onMount3,
6912
7189
  on as on2,
6913
7190
  createEffect as createEffect2,
6914
- createMemo as createMemo14,
6915
- createSignal as createSignal14
7191
+ createMemo as createMemo15,
7192
+ createSignal as createSignal15
6916
7193
  } from "solid-js";
6917
7194
  import { Dynamic as Dynamic5 } from "solid-js/web";
6918
7195
 
@@ -7412,7 +7689,7 @@ function isFromTrustedHost(trustedHosts, e) {
7412
7689
  }
7413
7690
 
7414
7691
  // src/constants/sdk-version.ts
7415
- var SDK_VERSION = "1.0.27";
7692
+ var SDK_VERSION = "1.0.29";
7416
7693
 
7417
7694
  // src/functions/register.ts
7418
7695
  var registry = {};
@@ -7690,12 +7967,12 @@ var getWrapperClassName = (variationId) => {
7690
7967
 
7691
7968
  // src/components/content/components/enable-editor.tsx
7692
7969
  function EnableEditor(props) {
7693
- const [ContentWrapper, setContentWrapper] = createSignal14(
7970
+ const [ContentWrapper, setContentWrapper] = createSignal15(
7694
7971
  props.contentWrapper || "div"
7695
7972
  );
7696
- const [httpReqsData, setHttpReqsData] = createSignal14({});
7697
- const [httpReqsPending, setHttpReqsPending] = createSignal14({});
7698
- const [clicked, setClicked] = createSignal14(false);
7973
+ const [httpReqsData, setHttpReqsData] = createSignal15({});
7974
+ const [httpReqsPending, setHttpReqsPending] = createSignal15({});
7975
+ const [clicked, setClicked] = createSignal15(false);
7699
7976
  function mergeNewRootState(newData) {
7700
7977
  const combinedState = {
7701
7978
  ...props.builderContextSignal.rootState,
@@ -7729,7 +8006,7 @@ function EnableEditor(props) {
7729
8006
  content: newContentValue
7730
8007
  }));
7731
8008
  }
7732
- const showContentProps = createMemo14(() => {
8009
+ const showContentProps = createMemo15(() => {
7733
8010
  return props.showContent ? {} : {
7734
8011
  hidden: true,
7735
8012
  "aria-hidden": true
@@ -7893,7 +8170,7 @@ function EnableEditor(props) {
7893
8170
  const searchParams = new URL(location.href).searchParams;
7894
8171
  const searchParamPreviewModel = searchParams.get("builder.preview");
7895
8172
  const searchParamPreviewId = searchParams.get(
7896
- `builder.preview.${searchParamPreviewModel}`
8173
+ `builder.overrides.${searchParamPreviewModel}`
7897
8174
  );
7898
8175
  const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
7899
8176
  if (searchParamPreviewModel === props.model && previewApiKey === props.apiKey && (!props.content || searchParamPreviewId === props.content.id)) {
@@ -7913,21 +8190,21 @@ function EnableEditor(props) {
7913
8190
  onMount3(() => {
7914
8191
  if (!props.apiKey) {
7915
8192
  logger.error(
7916
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
8193
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
7917
8194
  );
7918
8195
  }
7919
8196
  evaluateJsCode();
7920
8197
  runHttpRequests();
7921
8198
  emitStateUpdate();
7922
8199
  });
7923
- const onUpdateFn_0_props_content = createMemo14(() => props.content);
8200
+ const onUpdateFn_0_props_content = createMemo15(() => props.content);
7924
8201
  function onUpdateFn_0() {
7925
8202
  if (props.content) {
7926
8203
  mergeNewContent(props.content);
7927
8204
  }
7928
8205
  }
7929
8206
  createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
7930
- const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo14(() => props.builderContextSignal.content?.data?.jsCode);
8207
+ const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo15(() => props.builderContextSignal.content?.data?.jsCode);
7931
8208
  function onUpdateFn_1() {
7932
8209
  evaluateJsCode();
7933
8210
  }
@@ -7937,7 +8214,7 @@ function EnableEditor(props) {
7937
8214
  onUpdateFn_1
7938
8215
  )
7939
8216
  );
7940
- const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo14(() => props.builderContextSignal.content?.data?.httpRequests);
8217
+ const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo15(() => props.builderContextSignal.content?.data?.httpRequests);
7941
8218
  function onUpdateFn_2() {
7942
8219
  runHttpRequests();
7943
8220
  }
@@ -7949,7 +8226,7 @@ function EnableEditor(props) {
7949
8226
  onUpdateFn_2
7950
8227
  )
7951
8228
  );
7952
- const onUpdateFn_3_props_builderContextSignal_rootState = createMemo14(
8229
+ const onUpdateFn_3_props_builderContextSignal_rootState = createMemo15(
7953
8230
  () => props.builderContextSignal.rootState
7954
8231
  );
7955
8232
  function onUpdateFn_3() {
@@ -7961,14 +8238,14 @@ function EnableEditor(props) {
7961
8238
  onUpdateFn_3
7962
8239
  )
7963
8240
  );
7964
- const onUpdateFn_4_props_data = createMemo14(() => props.data);
8241
+ const onUpdateFn_4_props_data = createMemo15(() => props.data);
7965
8242
  function onUpdateFn_4() {
7966
8243
  if (props.data) {
7967
8244
  mergeNewRootState(props.data);
7968
8245
  }
7969
8246
  }
7970
8247
  createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
7971
- const onUpdateFn_5_props_locale = createMemo14(() => props.locale);
8248
+ const onUpdateFn_5_props_locale = createMemo15(() => props.locale);
7972
8249
  function onUpdateFn_5() {
7973
8250
  if (props.locale) {
7974
8251
  mergeNewRootState({
@@ -7977,7 +8254,7 @@ function EnableEditor(props) {
7977
8254
  }
7978
8255
  }
7979
8256
  createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
7980
- return <builder_context_default.Provider value={props.builderContextSignal}><Show11 when={props.builderContextSignal.content}><Dynamic5
8257
+ return <builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
7981
8258
  class={getWrapperClassName(
7982
8259
  props.content?.testVariationId || props.content?.id
7983
8260
  )}
@@ -7990,14 +8267,14 @@ function EnableEditor(props) {
7990
8267
  {...showContentProps()}
7991
8268
  {...props.contentWrapperProps}
7992
8269
  component={ContentWrapper()}
7993
- >{props.children}</Dynamic5></Show11></builder_context_default.Provider>;
8270
+ >{props.children}</Dynamic5></Show12></builder_context_default.Provider>;
7994
8271
  }
7995
8272
  var Enable_editor_default = EnableEditor;
7996
8273
 
7997
8274
  // src/components/content/components/styles.tsx
7998
- import { createSignal as createSignal15 } from "solid-js";
8275
+ import { createSignal as createSignal16 } from "solid-js";
7999
8276
  function ContentStyles(props) {
8000
- const [injectedStyles, setInjectedStyles] = createSignal15(
8277
+ const [injectedStyles, setInjectedStyles] = createSignal16(
8001
8278
  `
8002
8279
  ${getCss({
8003
8280
  cssCode: props.cssCode,
@@ -8054,7 +8331,7 @@ var getContentInitialValue = ({
8054
8331
 
8055
8332
  // src/components/content/content.tsx
8056
8333
  function ContentComponent(props) {
8057
- const [scriptStr, setScriptStr] = createSignal16(
8334
+ const [scriptStr, setScriptStr] = createSignal17(
8058
8335
  getUpdateVariantVisibilityScript({
8059
8336
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
8060
8337
  variationId: props.content?.testVariationId,
@@ -8062,7 +8339,7 @@ function ContentComponent(props) {
8062
8339
  contentId: props.content?.id
8063
8340
  })
8064
8341
  );
8065
- const [registeredComponents, setRegisteredComponents] = createSignal16(
8342
+ const [registeredComponents, setRegisteredComponents] = createSignal17(
8066
8343
  [
8067
8344
  ...getDefaultRegisteredComponents(),
8068
8345
  ...props.customComponents || []
@@ -8077,7 +8354,7 @@ function ContentComponent(props) {
8077
8354
  {}
8078
8355
  )
8079
8356
  );
8080
- const [builderContextSignal, setBuilderContextSignal] = createSignal16({
8357
+ const [builderContextSignal, setBuilderContextSignal] = createSignal17({
8081
8358
  content: getContentInitialValue({
8082
8359
  content: props.content,
8083
8360
  data: props.data
@@ -8135,16 +8412,16 @@ function ContentComponent(props) {
8135
8412
  setBuilderContextSignal
8136
8413
  }}
8137
8414
  >
8138
- <Show12 when={props.isSsrAbTest}><Inlined_script_default
8415
+ <Show13 when={props.isSsrAbTest}><Inlined_script_default
8139
8416
  id="builderio-variant-visibility"
8140
8417
  scriptStr={scriptStr()}
8141
- /></Show12>
8142
- <Show12 when={TARGET !== "reactNative"}><Styles_default
8418
+ /></Show13>
8419
+ <Show13 when={TARGET !== "reactNative"}><Styles_default
8143
8420
  isNestedRender={props.isNestedRender}
8144
8421
  contentId={builderContextSignal().content?.id}
8145
8422
  cssCode={builderContextSignal().content?.data?.cssCode}
8146
8423
  customFonts={builderContextSignal().content?.data?.customFonts}
8147
- /></Show12>
8424
+ /></Show13>
8148
8425
  <Blocks_default
8149
8426
  blocks={builderContextSignal().content?.data?.blocks}
8150
8427
  context={builderContextSignal()}
@@ -8157,13 +8434,13 @@ var Content_default = ContentComponent;
8157
8434
 
8158
8435
  // src/components/content-variants/content-variants.tsx
8159
8436
  function ContentVariants(props) {
8160
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal17(
8437
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal18(
8161
8438
  checkShouldRenderVariants({
8162
8439
  canTrack: getDefaultCanTrack(props.canTrack),
8163
8440
  content: props.content
8164
8441
  })
8165
8442
  );
8166
- const updateCookieAndStylesScriptStr = createMemo17(() => {
8443
+ const updateCookieAndStylesScriptStr = createMemo18(() => {
8167
8444
  return getUpdateCookieAndStylesScript(
8168
8445
  getVariants(props.content).map((value) => ({
8169
8446
  id: value.testVariationId,
@@ -8172,10 +8449,10 @@ function ContentVariants(props) {
8172
8449
  props.content?.id || ""
8173
8450
  );
8174
8451
  });
8175
- const hideVariantsStyleString = createMemo17(() => {
8452
+ const hideVariantsStyleString = createMemo18(() => {
8176
8453
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
8177
8454
  });
8178
- const defaultContent = createMemo17(() => {
8455
+ const defaultContent = createMemo18(() => {
8179
8456
  return shouldRenderVariants() ? {
8180
8457
  ...props.content,
8181
8458
  testVariationId: props.content?.id
@@ -8188,11 +8465,11 @@ function ContentVariants(props) {
8188
8465
  setShouldRenderVariants(false);
8189
8466
  });
8190
8467
  return <>
8191
- <Show13 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
8468
+ <Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
8192
8469
  id="builderio-init-variants-fns"
8193
8470
  scriptStr={getInitVariantsFnsScriptString()}
8194
- /></Show13>
8195
- <Show13 when={shouldRenderVariants()}>
8471
+ /></Show14>
8472
+ <Show14 when={shouldRenderVariants()}>
8196
8473
  <Inlined_styles_default
8197
8474
  id="builderio-variants"
8198
8475
  styles={hideVariantsStyleString()}
@@ -8201,7 +8478,7 @@ function ContentVariants(props) {
8201
8478
  id="builderio-variants-visibility"
8202
8479
  scriptStr={updateCookieAndStylesScriptStr()}
8203
8480
  />
8204
- <For8 each={getVariants(props.content)}>{(variant, _index) => {
8481
+ <For9 each={getVariants(props.content)}>{(variant, _index) => {
8205
8482
  const index = _index();
8206
8483
  return <Content_default
8207
8484
  isNestedRender={props.isNestedRender}
@@ -8225,8 +8502,8 @@ function ContentVariants(props) {
8225
8502
  contentWrapperProps={props.contentWrapperProps}
8226
8503
  trustedHosts={props.trustedHosts}
8227
8504
  />;
8228
- }}</For8>
8229
- </Show13>
8505
+ }}</For9>
8506
+ </Show14>
8230
8507
  <Content_default
8231
8508
  isNestedRender={props.isNestedRender}
8232
8509
  {...{}}
@@ -8279,14 +8556,14 @@ var fetchSymbolContent = async ({
8279
8556
 
8280
8557
  // src/blocks/symbol/symbol.tsx
8281
8558
  function Symbol2(props) {
8282
- const [contentToUse, setContentToUse] = createSignal18(props.symbol?.content);
8283
- const blocksWrapper = createMemo18(() => {
8559
+ const [contentToUse, setContentToUse] = createSignal19(props.symbol?.content);
8560
+ const blocksWrapper = createMemo19(() => {
8284
8561
  return "div";
8285
8562
  });
8286
- const contentWrapper = createMemo18(() => {
8563
+ const contentWrapper = createMemo19(() => {
8287
8564
  return "div";
8288
8565
  });
8289
- const className = createMemo18(() => {
8566
+ const className = createMemo19(() => {
8290
8567
  return [
8291
8568
  ...[props.attributes[getClassPropName()]],
8292
8569
  "builder-symbol",
@@ -8308,7 +8585,7 @@ function Symbol2(props) {
8308
8585
  }
8309
8586
  onMount5(() => {
8310
8587
  });
8311
- const onUpdateFn_0_props_symbol = createMemo18(() => props.symbol);
8588
+ const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
8312
8589
  function onUpdateFn_0() {
8313
8590
  setContent();
8314
8591
  }