@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/node/dev.jsx CHANGED
@@ -627,6 +627,9 @@ function getProcessedBlock({
627
627
  }
628
628
  }
629
629
 
630
+ // src/functions/camel-to-kebab-case.ts
631
+ var camelToKebabCase = (str) => str ? str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
632
+
630
633
  // src/components/block/animator.ts
631
634
  function throttle(func, wait, options = {}) {
632
635
  let context;
@@ -677,7 +680,6 @@ function assign(target, ..._args) {
677
680
  }
678
681
  return to;
679
682
  }
680
- var camelCaseToKebabCase = (str) => str ? str.replace(/([A-Z])/g, (g) => `-${g[0].toLowerCase()}`) : "";
681
683
  function bindAnimations(animations) {
682
684
  for (const animation of animations) {
683
685
  switch (animation.trigger) {
@@ -730,7 +732,7 @@ function triggerAnimation(animation) {
730
732
  element.style.transitionDelay = "0";
731
733
  assign(element.style, animation.steps[0].styles);
732
734
  setTimeout(() => {
733
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
735
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
734
736
  if (animation.delay) {
735
737
  element.style.transitionDelay = animation.delay + "s";
736
738
  }
@@ -790,7 +792,7 @@ function bindScrollInViewAnimation(animation) {
790
792
  }
791
793
  attachDefaultState();
792
794
  setTimeout(() => {
793
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
795
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
794
796
  if (animation.delay) {
795
797
  element.style.transitionDelay = animation.delay + "s";
796
798
  }
@@ -803,9 +805,6 @@ function bindScrollInViewAnimation(animation) {
803
805
  });
804
806
  }
805
807
 
806
- // src/functions/camel-to-kebab-case.ts
807
- var camelToKebabCase = (string) => string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
808
-
809
808
  // src/helpers/css.ts
810
809
  var convertStyleMapToCSSArray = (style) => {
811
810
  const cssProps = Object.entries(style).map(([key, value]) => {
@@ -935,10 +934,10 @@ var getRepeatItemData = ({
935
934
  return repeatArray;
936
935
  };
937
936
  var shouldPassLinkComponent = (block) => {
938
- return block && (block.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(block.name));
937
+ return block && (block.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(block.name));
939
938
  };
940
939
  var shouldPassRegisteredComponents = (block) => {
941
- return block && (block.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(block.name));
940
+ return block && (block.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(block.name));
942
941
  };
943
942
 
944
943
  // src/components/block/components/block-styles.tsx
@@ -1067,7 +1066,7 @@ function BlockStyles(props) {
1067
1066
  className: `${className}:hover`,
1068
1067
  styles: {
1069
1068
  ...hoverStyles,
1070
- transition: `all ${hoverAnimation.duration}s ${camelCaseToKebabCase(
1069
+ transition: `all ${hoverAnimation.duration}s ${camelToKebabCase(
1071
1070
  hoverAnimation.easing
1072
1071
  )}`,
1073
1072
  transitionDelay: hoverAnimation.delay ? `${hoverAnimation.delay}s` : "0s"
@@ -1832,10 +1831,10 @@ function SectionComponent(props) {
1832
1831
  var section_default = SectionComponent;
1833
1832
 
1834
1833
  // src/blocks/symbol/symbol.tsx
1835
- import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo18, createSignal as createSignal18 } from "solid-js";
1834
+ import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
1836
1835
 
1837
1836
  // src/components/content-variants/content-variants.tsx
1838
- import { Show as Show13, For as For8, onMount as onMount4, createSignal as createSignal17, createMemo as createMemo17 } from "solid-js";
1837
+ import { Show as Show14, For as For9, onMount as onMount4, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
1839
1838
 
1840
1839
  // src/helpers/url.ts
1841
1840
  var getTopLevelDomain = (host) => {
@@ -2029,10 +2028,286 @@ var handleABTesting = async ({
2029
2028
  var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
2030
2029
 
2031
2030
  // src/components/content/content.tsx
2032
- import { Show as Show12, createSignal as createSignal16 } from "solid-js";
2031
+ import { Show as Show13, createSignal as createSignal17 } from "solid-js";
2033
2032
 
2034
- // src/blocks/button/component-info.ts
2033
+ // src/blocks/accordion/component-info.ts
2034
+ var defaultTitle = {
2035
+ "@type": "@builder.io/sdk:Element",
2036
+ layerName: "Accordion item title",
2037
+ responsiveStyles: {
2038
+ large: {
2039
+ marginTop: "10px",
2040
+ position: "relative",
2041
+ display: "flex",
2042
+ alignItems: "stretch",
2043
+ flexDirection: "column",
2044
+ paddingBottom: "10px"
2045
+ }
2046
+ },
2047
+ children: [{
2048
+ "@type": "@builder.io/sdk:Element",
2049
+ responsiveStyles: {
2050
+ large: {
2051
+ textAlign: "left",
2052
+ display: "flex",
2053
+ flexDirection: "column"
2054
+ }
2055
+ },
2056
+ component: {
2057
+ name: "Text",
2058
+ options: {
2059
+ text: "I am an accordion title. Click me!"
2060
+ }
2061
+ }
2062
+ }]
2063
+ };
2064
+ var defaultDetail = {
2065
+ "@type": "@builder.io/sdk:Element",
2066
+ layerName: "Accordion item detail",
2067
+ responsiveStyles: {
2068
+ large: {
2069
+ position: "relative",
2070
+ display: "flex",
2071
+ alignItems: "stretch",
2072
+ flexDirection: "column",
2073
+ marginTop: "10px",
2074
+ paddingBottom: "10px"
2075
+ }
2076
+ },
2077
+ children: [{
2078
+ "@type": "@builder.io/sdk:Element",
2079
+ responsiveStyles: {
2080
+ large: {
2081
+ paddingTop: "50px",
2082
+ textAlign: "left",
2083
+ display: "flex",
2084
+ flexDirection: "column",
2085
+ paddingBottom: "50px"
2086
+ }
2087
+ },
2088
+ component: {
2089
+ name: "Text",
2090
+ options: {
2091
+ text: "I am an accordion detail, hello!"
2092
+ }
2093
+ }
2094
+ }]
2095
+ };
2035
2096
  var componentInfo = {
2097
+ name: "Builder:Accordion",
2098
+ canHaveChildren: true,
2099
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
2100
+ defaultStyles: {
2101
+ display: "flex",
2102
+ flexDirection: "column",
2103
+ alignItems: "stretch"
2104
+ },
2105
+ inputs: [{
2106
+ name: "items",
2107
+ type: "list",
2108
+ broadcast: true,
2109
+ subFields: [{
2110
+ name: "title",
2111
+ type: "uiBlocks",
2112
+ hideFromUI: true,
2113
+ defaultValue: [defaultTitle]
2114
+ }, {
2115
+ name: "detail",
2116
+ type: "uiBlocks",
2117
+ hideFromUI: true,
2118
+ defaultValue: [defaultDetail]
2119
+ }],
2120
+ defaultValue: [{
2121
+ title: [defaultTitle],
2122
+ detail: [defaultDetail]
2123
+ }, {
2124
+ title: [defaultTitle],
2125
+ detail: [defaultDetail]
2126
+ }],
2127
+ showIf: (options) => !options.get("useChildrenForItems")
2128
+ }, {
2129
+ name: "oneAtATime",
2130
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
2131
+ type: "boolean",
2132
+ defaultValue: false
2133
+ }, {
2134
+ name: "grid",
2135
+ helperText: "Display as a grid",
2136
+ type: "boolean",
2137
+ defaultValue: false
2138
+ }, {
2139
+ name: "gridRowWidth",
2140
+ helperText: "Display as a grid",
2141
+ type: "string",
2142
+ showIf: (options) => options.get("grid"),
2143
+ defaultValue: "25%"
2144
+ }, {
2145
+ name: "useChildrenForItems",
2146
+ type: "boolean",
2147
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
2148
+ advanced: true,
2149
+ defaultValue: false,
2150
+ onChange: (options) => {
2151
+ if (options.get("useChildrenForItems") === true) {
2152
+ options.set("items", []);
2153
+ }
2154
+ }
2155
+ }]
2156
+ };
2157
+
2158
+ // src/blocks/accordion/accordion.tsx
2159
+ import { Show as Show8, For as For5, createSignal as createSignal9, createMemo as createMemo9 } from "solid-js";
2160
+
2161
+ // src/blocks/accordion/helpers.ts
2162
+ var convertOrderNumberToString = (order) => {
2163
+ return order.toString();
2164
+ };
2165
+
2166
+ // src/blocks/accordion/accordion.tsx
2167
+ function Accordion(props) {
2168
+ const [open, setOpen] = createSignal9([]);
2169
+ const onlyOneAtATime = createMemo9(() => {
2170
+ return Boolean(props.grid || props.oneAtATime);
2171
+ });
2172
+ const accordionStyles = createMemo9(() => {
2173
+ const styles = {
2174
+ display: "flex",
2175
+ alignItems: "stretch",
2176
+ flexDirection: "column",
2177
+ ...props.grid && {
2178
+ flexDirection: "row",
2179
+ alignItems: "flex-start",
2180
+ flexWrap: "wrap"
2181
+ }
2182
+ };
2183
+ return Object.fromEntries(
2184
+ Object.entries(styles).map(([key, value]) => [
2185
+ camelToKebabCase(key),
2186
+ value
2187
+ ])
2188
+ );
2189
+ });
2190
+ const accordionTitleStyles = createMemo9(() => {
2191
+ const shared = {
2192
+ display: "flex",
2193
+ flexDirection: "column"
2194
+ };
2195
+ const styles = Object.fromEntries(
2196
+ Object.entries({
2197
+ ...shared,
2198
+ alignItems: "stretch",
2199
+ cursor: "pointer"
2200
+ }).map(([key, value]) => [camelToKebabCase(key), value])
2201
+ );
2202
+ return Object.fromEntries(
2203
+ Object.entries(styles).filter(([_, value]) => value !== void 0)
2204
+ );
2205
+ });
2206
+ function getAccordionTitleClassName(index) {
2207
+ return `builder-accordion-title builder-accordion-title-${open().includes(index) ? "open" : "closed"}`;
2208
+ }
2209
+ function getAccordionDetailClassName(index) {
2210
+ return `builder-accordion-detail builder-accordion-detail-${open().includes(index) ? "open" : "closed"}`;
2211
+ }
2212
+ const openGridItemOrder = createMemo9(() => {
2213
+ let itemOrder = null;
2214
+ const getOpenGridItemPosition = props.grid && open().length;
2215
+ if (getOpenGridItemPosition && document) {
2216
+ const openItemIndex = open()[0];
2217
+ const openItem = document.querySelector(
2218
+ `.builder-accordion-title[data-index="${openItemIndex}"]`
2219
+ );
2220
+ let subjectItem = openItem;
2221
+ itemOrder = openItemIndex;
2222
+ if (subjectItem) {
2223
+ let prevItemRect = subjectItem.getBoundingClientRect();
2224
+ while (subjectItem = subjectItem && subjectItem.nextElementSibling) {
2225
+ if (subjectItem) {
2226
+ if (subjectItem.classList.contains("builder-accordion-detail")) {
2227
+ continue;
2228
+ }
2229
+ const subjectItemRect = subjectItem.getBoundingClientRect();
2230
+ if (subjectItemRect.left > prevItemRect.left) {
2231
+ const index = parseInt(
2232
+ subjectItem.getAttribute("data-index") || "",
2233
+ 10
2234
+ );
2235
+ if (!isNaN(index)) {
2236
+ prevItemRect = subjectItemRect;
2237
+ itemOrder = index;
2238
+ }
2239
+ } else {
2240
+ break;
2241
+ }
2242
+ }
2243
+ }
2244
+ }
2245
+ }
2246
+ if (typeof itemOrder === "number") {
2247
+ itemOrder = itemOrder + 1;
2248
+ }
2249
+ return itemOrder;
2250
+ });
2251
+ const accordionDetailStyles = createMemo9(() => {
2252
+ const styles = {
2253
+ ...{
2254
+ order: typeof openGridItemOrder() === "number" ? openGridItemOrder() : void 0
2255
+ },
2256
+ ...props.grid && {
2257
+ width: "100%"
2258
+ }
2259
+ };
2260
+ return Object.fromEntries(
2261
+ Object.entries(styles).filter(([_, value]) => value !== void 0)
2262
+ );
2263
+ });
2264
+ function onClick(index) {
2265
+ if (open().includes(index)) {
2266
+ setOpen(onlyOneAtATime() ? [] : open().filter((item) => item !== index));
2267
+ } else {
2268
+ setOpen(onlyOneAtATime() ? [index] : open().concat(index));
2269
+ }
2270
+ }
2271
+ return <div class="builder-accordion" style={accordionStyles()}><For5 each={props.items}>{(item, _index) => {
2272
+ const index = _index();
2273
+ return <>
2274
+ <div
2275
+ class={getAccordionTitleClassName(index)}
2276
+ style={{
2277
+ ...accordionTitleStyles(),
2278
+ width: props.grid ? props.gridRowWidth : void 0,
2279
+ ...{
2280
+ order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
2281
+ }
2282
+ }}
2283
+ data-index={index}
2284
+ onClick={(event) => onClick(index)}
2285
+ ><Blocks_default
2286
+ blocks={item.title}
2287
+ path={`items.${index}.title`}
2288
+ parent={props.builderBlock.id}
2289
+ context={props.builderContext}
2290
+ registeredComponents={props.builderComponents}
2291
+ linkComponent={props.builderLinkComponent}
2292
+ /></div>
2293
+ <Show8 when={open().includes(index)}><div
2294
+ class={getAccordionDetailClassName(index)}
2295
+ style={accordionDetailStyles()}
2296
+ ><Blocks_default
2297
+ blocks={item.detail}
2298
+ path={`items.${index}.detail`}
2299
+ parent={props.builderBlock.id}
2300
+ context={props.builderContext}
2301
+ registeredComponents={props.builderComponents}
2302
+ linkComponent={props.builderLinkComponent}
2303
+ /></div></Show8>
2304
+ </>;
2305
+ }}</For5></div>;
2306
+ }
2307
+ var accordion_default = Accordion;
2308
+
2309
+ // src/blocks/button/component-info.ts
2310
+ var componentInfo2 = {
2036
2311
  name: "Core:Button",
2037
2312
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2038
2313
  defaultStyles: {
@@ -2068,7 +2343,7 @@ var componentInfo = {
2068
2343
  };
2069
2344
 
2070
2345
  // src/blocks/columns/component-info.ts
2071
- var componentInfo2 = {
2346
+ var componentInfo3 = {
2072
2347
  // TODO: ways to statically preprocess JSON for references, functions, etc
2073
2348
  name: "Columns",
2074
2349
  isRSC: true,
@@ -2288,7 +2563,7 @@ var componentInfo2 = {
2288
2563
  };
2289
2564
 
2290
2565
  // src/blocks/fragment/component-info.ts
2291
- var componentInfo3 = {
2566
+ var componentInfo4 = {
2292
2567
  name: "Fragment",
2293
2568
  static: true,
2294
2569
  hidden: true,
@@ -2297,7 +2572,7 @@ var componentInfo3 = {
2297
2572
  };
2298
2573
 
2299
2574
  // src/blocks/image/component-info.ts
2300
- var componentInfo4 = {
2575
+ var componentInfo5 = {
2301
2576
  name: "Image",
2302
2577
  static: true,
2303
2578
  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",
@@ -2420,7 +2695,7 @@ var componentInfo4 = {
2420
2695
  };
2421
2696
 
2422
2697
  // src/blocks/section/component-info.ts
2423
- var componentInfo5 = {
2698
+ var componentInfo6 = {
2424
2699
  name: "Core:Section",
2425
2700
  static: true,
2426
2701
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2462,7 +2737,7 @@ var componentInfo5 = {
2462
2737
  };
2463
2738
 
2464
2739
  // src/blocks/slot/component-info.ts
2465
- var componentInfo6 = {
2740
+ var componentInfo7 = {
2466
2741
  name: "Slot",
2467
2742
  isRSC: true,
2468
2743
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2496,7 +2771,7 @@ function Slot(props) {
2496
2771
  var slot_default = Slot;
2497
2772
 
2498
2773
  // src/blocks/symbol/component-info.ts
2499
- var componentInfo7 = {
2774
+ var componentInfo8 = {
2500
2775
  name: "Symbol",
2501
2776
  noWrap: true,
2502
2777
  static: true,
@@ -2572,7 +2847,7 @@ var defaultElement = {
2572
2847
  }
2573
2848
  }
2574
2849
  };
2575
- var componentInfo8 = {
2850
+ var componentInfo9 = {
2576
2851
  name: "Builder: Tabs",
2577
2852
  inputs: [{
2578
2853
  name: "tabs",
@@ -2672,16 +2947,20 @@ var componentInfo8 = {
2672
2947
  };
2673
2948
 
2674
2949
  // src/blocks/tabs/tabs.tsx
2675
- import { Show as Show8, For as For5, createSignal as createSignal9 } from "solid-js";
2950
+ import { Show as Show9, For as For6, createSignal as createSignal10 } from "solid-js";
2676
2951
  function Tabs(props) {
2677
- const [activeTab, setActiveTab] = createSignal9(
2952
+ const [activeTab, setActiveTab] = createSignal10(
2678
2953
  props.defaultActiveTab ? props.defaultActiveTab - 1 : 0
2679
2954
  );
2680
2955
  function activeTabContent(active) {
2681
2956
  return props.tabs && props.tabs[active].content;
2682
2957
  }
2683
- function getActiveTabStyle(index) {
2684
- return activeTab() === index ? props.activeTabStyle : {};
2958
+ function onClick(index) {
2959
+ if (index === activeTab() && props.collapsible) {
2960
+ setActiveTab(-1);
2961
+ } else {
2962
+ setActiveTab(index);
2963
+ }
2685
2964
  }
2686
2965
  return <div>
2687
2966
  <div
@@ -2692,19 +2971,15 @@ function Tabs(props) {
2692
2971
  "justify-content": props.tabHeaderLayout || "flex-start",
2693
2972
  overflow: "auto"
2694
2973
  }}
2695
- ><For5 each={props.tabs}>{(tab, _index) => {
2974
+ ><For6 each={props.tabs}>{(tab, _index) => {
2696
2975
  const index = _index();
2697
2976
  return <span
2698
2977
  class={`builder-tab-wrap ${activeTab() === index ? "builder-tab-active" : ""}`}
2699
2978
  key={index}
2700
- style={getActiveTabStyle(index)}
2701
- onClick={(event) => {
2702
- if (index === activeTab() && props.collapsible) {
2703
- setActiveTab(-1);
2704
- } else {
2705
- setActiveTab(index);
2706
- }
2979
+ style={{
2980
+ ...activeTab() === index ? props.activeTabStyle : {}
2707
2981
  }}
2982
+ onClick={(event) => onClick(index)}
2708
2983
  ><Blocks_default
2709
2984
  parent={props.builderBlock.id}
2710
2985
  path={`component.options.tabs.${index}.label`}
@@ -2713,21 +2988,21 @@ function Tabs(props) {
2713
2988
  registeredComponents={props.builderComponents}
2714
2989
  linkComponent={props.builderLinkComponent}
2715
2990
  /></span>;
2716
- }}</For5></div>
2717
- <Show8 when={activeTabContent(activeTab())}><div><Blocks_default
2991
+ }}</For6></div>
2992
+ <Show9 when={activeTabContent(activeTab())}><div><Blocks_default
2718
2993
  parent={props.builderBlock.id}
2719
2994
  path={`component.options.tabs.${activeTab()}.content`}
2720
2995
  blocks={activeTabContent(activeTab())}
2721
2996
  context={props.builderContext}
2722
2997
  registeredComponents={props.builderComponents}
2723
2998
  linkComponent={props.builderLinkComponent}
2724
- /></div></Show8>
2999
+ /></div></Show9>
2725
3000
  </div>;
2726
3001
  }
2727
3002
  var tabs_default = Tabs;
2728
3003
 
2729
3004
  // src/blocks/text/component-info.ts
2730
- var componentInfo9 = {
3005
+ var componentInfo10 = {
2731
3006
  name: "Text",
2732
3007
  static: true,
2733
3008
  isRSC: true,
@@ -2760,7 +3035,7 @@ function Text(props) {
2760
3035
  var text_default = Text;
2761
3036
 
2762
3037
  // src/blocks/custom-code/component-info.ts
2763
- var componentInfo10 = {
3038
+ var componentInfo11 = {
2764
3039
  name: "Custom Code",
2765
3040
  static: true,
2766
3041
  requiredPermissions: ["editCode"],
@@ -2785,10 +3060,10 @@ var componentInfo10 = {
2785
3060
  };
2786
3061
 
2787
3062
  // src/blocks/custom-code/custom-code.tsx
2788
- import { onMount as onMount2, createSignal as createSignal10 } from "solid-js";
3063
+ import { onMount as onMount2, createSignal as createSignal11 } from "solid-js";
2789
3064
  function CustomCode(props) {
2790
- const [scriptsInserted, setScriptsInserted] = createSignal10([]);
2791
- const [scriptsRun, setScriptsRun] = createSignal10([]);
3065
+ const [scriptsInserted, setScriptsInserted] = createSignal11([]);
3066
+ const [scriptsRun, setScriptsRun] = createSignal11([]);
2792
3067
  let elementRef;
2793
3068
  onMount2(() => {
2794
3069
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
@@ -2832,7 +3107,7 @@ function CustomCode(props) {
2832
3107
  var custom_code_default = CustomCode;
2833
3108
 
2834
3109
  // src/blocks/embed/component-info.ts
2835
- var componentInfo11 = {
3110
+ var componentInfo12 = {
2836
3111
  name: "Embed",
2837
3112
  static: true,
2838
3113
  inputs: [{
@@ -2870,7 +3145,7 @@ var componentInfo11 = {
2870
3145
  };
2871
3146
 
2872
3147
  // src/blocks/embed/embed.tsx
2873
- import { on, createEffect, createMemo as createMemo11, createSignal as createSignal11 } from "solid-js";
3148
+ import { on, createEffect, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
2874
3149
 
2875
3150
  // src/blocks/embed/helpers.ts
2876
3151
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -2878,9 +3153,9 @@ var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
2878
3153
 
2879
3154
  // src/blocks/embed/embed.tsx
2880
3155
  function Embed(props) {
2881
- const [scriptsInserted, setScriptsInserted] = createSignal11([]);
2882
- const [scriptsRun, setScriptsRun] = createSignal11([]);
2883
- const [ranInitFn, setRanInitFn] = createSignal11(false);
3156
+ const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3157
+ const [scriptsRun, setScriptsRun] = createSignal12([]);
3158
+ const [ranInitFn, setRanInitFn] = createSignal12(false);
2884
3159
  function findAndRunScripts() {
2885
3160
  if (!elem || !elem.getElementsByTagName)
2886
3161
  return;
@@ -2904,8 +3179,8 @@ function Embed(props) {
2904
3179
  }
2905
3180
  }
2906
3181
  let elem;
2907
- const onUpdateFn_0_elem = createMemo11(() => elem);
2908
- const onUpdateFn_0_ranInitFn__ = createMemo11(() => ranInitFn());
3182
+ const onUpdateFn_0_elem = createMemo12(() => elem);
3183
+ const onUpdateFn_0_ranInitFn__ = createMemo12(() => ranInitFn());
2909
3184
  function onUpdateFn_0() {
2910
3185
  if (elem && !ranInitFn()) {
2911
3186
  setRanInitFn(true);
@@ -2920,7 +3195,7 @@ function Embed(props) {
2920
3195
  var embed_default = Embed;
2921
3196
 
2922
3197
  // src/blocks/form/form/component-info.ts
2923
- var componentInfo12 = {
3198
+ var componentInfo13 = {
2924
3199
  name: "Form:Form",
2925
3200
  // editableTags: ['builder-form-error']
2926
3201
  defaults: {
@@ -3154,7 +3429,7 @@ var componentInfo12 = {
3154
3429
  };
3155
3430
 
3156
3431
  // src/blocks/form/form/form.tsx
3157
- import { Show as Show9, For as For6, createSignal as createSignal12 } from "solid-js";
3432
+ import { Show as Show10, For as For7, createSignal as createSignal13 } from "solid-js";
3158
3433
  import { css as css4 } from "solid-styled-components";
3159
3434
 
3160
3435
  // src/functions/get-env.ts
@@ -3172,9 +3447,9 @@ var get = (obj, path, defaultValue) => {
3172
3447
 
3173
3448
  // src/blocks/form/form/form.tsx
3174
3449
  function FormComponent(props) {
3175
- const [formState, setFormState] = createSignal12("unsubmitted");
3176
- const [responseData, setResponseData] = createSignal12(null);
3177
- const [formErrorMessage, setFormErrorMessage] = createSignal12("");
3450
+ const [formState, setFormState] = createSignal13("unsubmitted");
3451
+ const [responseData, setResponseData] = createSignal13(null);
3452
+ const [formErrorMessage, setFormErrorMessage] = createSignal13("");
3178
3453
  function mergeNewRootState(newData) {
3179
3454
  const combinedState = {
3180
3455
  ...props.builderContext.rootState,
@@ -3199,13 +3474,11 @@ function FormComponent(props) {
3199
3474
  return;
3200
3475
  }
3201
3476
  event.preventDefault();
3202
- const el = event.currentTarget;
3477
+ const el = event.currentTarget || event.target;
3203
3478
  const headers = props.customHeaders || {};
3204
3479
  let body;
3205
3480
  const formData = new FormData(el);
3206
- const formPairs = Array.from(
3207
- event.currentTarget.querySelectorAll("input,select,textarea")
3208
- ).filter((el2) => !!el2.name).map((el2) => {
3481
+ const formPairs = Array.from(el.querySelectorAll("input,select,textarea")).filter((el2) => !!el2.name).map((el2) => {
3209
3482
  let value;
3210
3483
  const key = el2.name;
3211
3484
  if (el2 instanceof HTMLInputElement) {
@@ -3368,9 +3641,10 @@ function FormComponent(props) {
3368
3641
  name={props.name}
3369
3642
  onSubmit={(event) => onSubmit(event)}
3370
3643
  {...{}}
3644
+ {...{}}
3371
3645
  {...props.attributes}
3372
3646
  >
3373
- <Show9 when={props.builderBlock && props.builderBlock.children}><For6 each={props.builderBlock?.children}>{(block, _index) => {
3647
+ <Show10 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
3374
3648
  const idx = _index();
3375
3649
  return <Block_default
3376
3650
  key={`form-block-${idx}`}
@@ -3379,35 +3653,35 @@ function FormComponent(props) {
3379
3653
  registeredComponents={props.builderComponents}
3380
3654
  linkComponent={props.builderLinkComponent}
3381
3655
  />;
3382
- }}</For6></Show9>
3383
- <Show9 when={submissionState() === "error"}><Blocks_default
3656
+ }}</For7></Show10>
3657
+ <Show10 when={submissionState() === "error"}><Blocks_default
3384
3658
  path="errorMessage"
3385
3659
  blocks={props.errorMessage}
3386
3660
  context={props.builderContext}
3387
- /></Show9>
3388
- <Show9 when={submissionState() === "sending"}><Blocks_default
3661
+ /></Show10>
3662
+ <Show10 when={submissionState() === "sending"}><Blocks_default
3389
3663
  path="sendingMessage"
3390
3664
  blocks={props.sendingMessage}
3391
3665
  context={props.builderContext}
3392
- /></Show9>
3393
- <Show9 when={submissionState() === "error" && responseData()}><pre
3666
+ /></Show10>
3667
+ <Show10 when={submissionState() === "error" && responseData()}><pre
3394
3668
  class={"builder-form-error-text " + css4({
3395
3669
  padding: "10px",
3396
3670
  color: "red",
3397
3671
  textAlign: "center"
3398
3672
  })}
3399
- >{JSON.stringify(responseData(), null, 2)}</pre></Show9>
3400
- <Show9 when={submissionState() === "success"}><Blocks_default
3673
+ >{JSON.stringify(responseData(), null, 2)}</pre></Show10>
3674
+ <Show10 when={submissionState() === "success"}><Blocks_default
3401
3675
  path="successMessage"
3402
3676
  blocks={props.successMessage}
3403
3677
  context={props.builderContext}
3404
- /></Show9>
3678
+ /></Show10>
3405
3679
  </form>;
3406
3680
  }
3407
3681
  var form_default = FormComponent;
3408
3682
 
3409
3683
  // src/blocks/form/input/component-info.ts
3410
- var componentInfo13 = {
3684
+ var componentInfo14 = {
3411
3685
  name: "Form:Input",
3412
3686
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3413
3687
  inputs: [
@@ -3477,7 +3751,7 @@ function FormInputComponent(props) {
3477
3751
  var input_default = FormInputComponent;
3478
3752
 
3479
3753
  // src/blocks/form/select/component-info.ts
3480
- var componentInfo14 = {
3754
+ var componentInfo15 = {
3481
3755
  name: "Form:Select",
3482
3756
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3483
3757
  defaultStyles: {
@@ -3522,7 +3796,7 @@ var componentInfo14 = {
3522
3796
  };
3523
3797
 
3524
3798
  // src/blocks/form/select/select.tsx
3525
- import { For as For7 } from "solid-js";
3799
+ import { For as For8 } from "solid-js";
3526
3800
  function SelectComponent(props) {
3527
3801
  return <select
3528
3802
  {...{}}
@@ -3531,15 +3805,15 @@ function SelectComponent(props) {
3531
3805
  key={isEditing() && props.defaultValue ? props.defaultValue : "default-key"}
3532
3806
  defaultValue={props.defaultValue}
3533
3807
  name={props.name}
3534
- ><For7 each={props.options}>{(option, _index) => {
3808
+ ><For8 each={props.options}>{(option, _index) => {
3535
3809
  const index = _index();
3536
3810
  return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
3537
- }}</For7></select>;
3811
+ }}</For8></select>;
3538
3812
  }
3539
3813
  var select_default = SelectComponent;
3540
3814
 
3541
3815
  // src/blocks/form/submit-button/component-info.ts
3542
- var componentInfo15 = {
3816
+ var componentInfo16 = {
3543
3817
  name: "Form:SubmitButton",
3544
3818
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3545
3819
  defaultStyles: {
@@ -3573,7 +3847,7 @@ function SubmitButton(props) {
3573
3847
  var submit_button_default = SubmitButton;
3574
3848
 
3575
3849
  // src/blocks/img/component-info.ts
3576
- var componentInfo16 = {
3850
+ var componentInfo17 = {
3577
3851
  // friendlyName?
3578
3852
  name: "Raw:Img",
3579
3853
  hideFromInsertMenu: true,
@@ -3606,7 +3880,7 @@ function ImgComponent(props) {
3606
3880
  var img_default = ImgComponent;
3607
3881
 
3608
3882
  // src/blocks/video/component-info.ts
3609
- var componentInfo17 = {
3883
+ var componentInfo18 = {
3610
3884
  name: "Video",
3611
3885
  canHaveChildren: true,
3612
3886
  defaultStyles: {
@@ -3690,9 +3964,9 @@ var componentInfo17 = {
3690
3964
  };
3691
3965
 
3692
3966
  // src/blocks/video/video.tsx
3693
- import { Show as Show10, createMemo as createMemo13 } from "solid-js";
3967
+ import { Show as Show11, createMemo as createMemo14 } from "solid-js";
3694
3968
  function Video(props) {
3695
- const videoProps = createMemo13(() => {
3969
+ const videoProps = createMemo14(() => {
3696
3970
  return {
3697
3971
  ...props.autoPlay === true ? {
3698
3972
  autoPlay: true
@@ -3711,7 +3985,7 @@ function Video(props) {
3711
3985
  } : {}
3712
3986
  };
3713
3987
  });
3714
- const spreadProps = createMemo13(() => {
3988
+ const spreadProps = createMemo14(() => {
3715
3989
  return {
3716
3990
  ...videoProps()
3717
3991
  };
@@ -3741,8 +4015,8 @@ function Video(props) {
3741
4015
  }}
3742
4016
  src={props.video || "no-src"}
3743
4017
  poster={props.posterImage}
3744
- ><Show10 when={!props.lazyLoad}><source type="video/mp4" src={props.video} /></Show10></video>
3745
- <Show10
4018
+ ><Show11 when={!props.lazyLoad}><source type="video/mp4" src={props.video} /></Show11></video>
4019
+ <Show11
3746
4020
  when={props.aspectRatio && !(props.fitContent && props.builderBlock?.children?.length)}
3747
4021
  ><div
3748
4022
  style={{
@@ -3751,15 +4025,15 @@ function Video(props) {
3751
4025
  "pointer-events": "none",
3752
4026
  "font-size": "0px"
3753
4027
  }}
3754
- /></Show10>
3755
- <Show10 when={props.builderBlock?.children?.length && props.fitContent}><div
4028
+ /></Show11>
4029
+ <Show11 when={props.builderBlock?.children?.length && props.fitContent}><div
3756
4030
  style={{
3757
4031
  display: "flex",
3758
4032
  "flex-direction": "column",
3759
4033
  "align-items": "stretch"
3760
4034
  }}
3761
- >{props.children}</div></Show10>
3762
- <Show10 when={props.builderBlock?.children?.length && !props.fitContent}><div
4035
+ >{props.children}</div></Show11>
4036
+ <Show11 when={props.builderBlock?.children?.length && !props.fitContent}><div
3763
4037
  style={{
3764
4038
  "pointer-events": "none",
3765
4039
  display: "flex",
@@ -3771,7 +4045,7 @@ function Video(props) {
3771
4045
  width: "100%",
3772
4046
  height: "100%"
3773
4047
  }}
3774
- >{props.children}</div></Show10>
4048
+ >{props.children}</div></Show11>
3775
4049
  </div>;
3776
4050
  }
3777
4051
  var video_default = Video;
@@ -3779,58 +4053,61 @@ var video_default = Video;
3779
4053
  // src/constants/extra-components.ts
3780
4054
  var getExtraComponents = () => [{
3781
4055
  component: custom_code_default,
3782
- ...componentInfo10
4056
+ ...componentInfo11
3783
4057
  }, {
3784
4058
  component: embed_default,
3785
- ...componentInfo11
4059
+ ...componentInfo12
3786
4060
  }, ...TARGET === "rsc" ? [] : [{
3787
4061
  component: form_default,
3788
- ...componentInfo12
4062
+ ...componentInfo13
3789
4063
  }, {
3790
4064
  component: input_default,
3791
- ...componentInfo13
4065
+ ...componentInfo14
3792
4066
  }, {
3793
4067
  component: submit_button_default,
3794
- ...componentInfo15
4068
+ ...componentInfo16
3795
4069
  }, {
3796
4070
  component: select_default,
3797
- ...componentInfo14
4071
+ ...componentInfo15
3798
4072
  }], {
3799
4073
  component: img_default,
3800
- ...componentInfo16
4074
+ ...componentInfo17
3801
4075
  }, {
3802
4076
  component: video_default,
3803
- ...componentInfo17
4077
+ ...componentInfo18
3804
4078
  }];
3805
4079
 
3806
4080
  // src/constants/builder-registered-components.ts
3807
4081
  var getDefaultRegisteredComponents = () => [{
3808
4082
  component: button_default,
3809
- ...componentInfo
4083
+ ...componentInfo2
3810
4084
  }, {
3811
4085
  component: columns_default,
3812
- ...componentInfo2
4086
+ ...componentInfo3
3813
4087
  }, {
3814
4088
  component: fragment_default,
3815
- ...componentInfo3
4089
+ ...componentInfo4
3816
4090
  }, {
3817
4091
  component: image_default,
3818
- ...componentInfo4
4092
+ ...componentInfo5
3819
4093
  }, {
3820
4094
  component: section_default,
3821
- ...componentInfo5
4095
+ ...componentInfo6
3822
4096
  }, {
3823
4097
  component: slot_default,
3824
- ...componentInfo6
4098
+ ...componentInfo7
3825
4099
  }, {
3826
4100
  component: symbol_default,
3827
- ...componentInfo7
4101
+ ...componentInfo8
3828
4102
  }, {
3829
4103
  component: text_default,
3830
- ...componentInfo9
4104
+ ...componentInfo10
3831
4105
  }, ...TARGET === "rsc" ? [] : [{
3832
4106
  component: tabs_default,
3833
- ...componentInfo8
4107
+ ...componentInfo9
4108
+ }, {
4109
+ component: accordion_default,
4110
+ ...componentInfo
3834
4111
  }], ...getExtraComponents()];
3835
4112
 
3836
4113
  // src/functions/register-component.ts
@@ -3909,12 +4186,12 @@ var Inlined_script_default = InlinedScript;
3909
4186
 
3910
4187
  // src/components/content/components/enable-editor.tsx
3911
4188
  import {
3912
- Show as Show11,
4189
+ Show as Show12,
3913
4190
  onMount as onMount3,
3914
4191
  on as on2,
3915
4192
  createEffect as createEffect2,
3916
- createMemo as createMemo14,
3917
- createSignal as createSignal14
4193
+ createMemo as createMemo15,
4194
+ createSignal as createSignal15
3918
4195
  } from "solid-js";
3919
4196
  import { Dynamic as Dynamic5 } from "solid-js/web";
3920
4197
 
@@ -4414,7 +4691,7 @@ function isFromTrustedHost(trustedHosts, e) {
4414
4691
  }
4415
4692
 
4416
4693
  // src/constants/sdk-version.ts
4417
- var SDK_VERSION = "1.0.27";
4694
+ var SDK_VERSION = "1.0.29";
4418
4695
 
4419
4696
  // src/functions/register.ts
4420
4697
  var registry = {};
@@ -4692,12 +4969,12 @@ var getWrapperClassName = (variationId) => {
4692
4969
 
4693
4970
  // src/components/content/components/enable-editor.tsx
4694
4971
  function EnableEditor(props) {
4695
- const [ContentWrapper, setContentWrapper] = createSignal14(
4972
+ const [ContentWrapper, setContentWrapper] = createSignal15(
4696
4973
  props.contentWrapper || "div"
4697
4974
  );
4698
- const [httpReqsData, setHttpReqsData] = createSignal14({});
4699
- const [httpReqsPending, setHttpReqsPending] = createSignal14({});
4700
- const [clicked, setClicked] = createSignal14(false);
4975
+ const [httpReqsData, setHttpReqsData] = createSignal15({});
4976
+ const [httpReqsPending, setHttpReqsPending] = createSignal15({});
4977
+ const [clicked, setClicked] = createSignal15(false);
4701
4978
  function mergeNewRootState(newData) {
4702
4979
  const combinedState = {
4703
4980
  ...props.builderContextSignal.rootState,
@@ -4731,7 +5008,7 @@ function EnableEditor(props) {
4731
5008
  content: newContentValue
4732
5009
  }));
4733
5010
  }
4734
- const showContentProps = createMemo14(() => {
5011
+ const showContentProps = createMemo15(() => {
4735
5012
  return props.showContent ? {} : {
4736
5013
  hidden: true,
4737
5014
  "aria-hidden": true
@@ -4895,7 +5172,7 @@ function EnableEditor(props) {
4895
5172
  const searchParams = new URL(location.href).searchParams;
4896
5173
  const searchParamPreviewModel = searchParams.get("builder.preview");
4897
5174
  const searchParamPreviewId = searchParams.get(
4898
- `builder.preview.${searchParamPreviewModel}`
5175
+ `builder.overrides.${searchParamPreviewModel}`
4899
5176
  );
4900
5177
  const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
4901
5178
  if (searchParamPreviewModel === props.model && previewApiKey === props.apiKey && (!props.content || searchParamPreviewId === props.content.id)) {
@@ -4915,21 +5192,21 @@ function EnableEditor(props) {
4915
5192
  onMount3(() => {
4916
5193
  if (!props.apiKey) {
4917
5194
  logger.error(
4918
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
5195
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4919
5196
  );
4920
5197
  }
4921
5198
  evaluateJsCode();
4922
5199
  runHttpRequests();
4923
5200
  emitStateUpdate();
4924
5201
  });
4925
- const onUpdateFn_0_props_content = createMemo14(() => props.content);
5202
+ const onUpdateFn_0_props_content = createMemo15(() => props.content);
4926
5203
  function onUpdateFn_0() {
4927
5204
  if (props.content) {
4928
5205
  mergeNewContent(props.content);
4929
5206
  }
4930
5207
  }
4931
5208
  createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
4932
- const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo14(() => props.builderContextSignal.content?.data?.jsCode);
5209
+ const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo15(() => props.builderContextSignal.content?.data?.jsCode);
4933
5210
  function onUpdateFn_1() {
4934
5211
  evaluateJsCode();
4935
5212
  }
@@ -4939,7 +5216,7 @@ function EnableEditor(props) {
4939
5216
  onUpdateFn_1
4940
5217
  )
4941
5218
  );
4942
- const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo14(() => props.builderContextSignal.content?.data?.httpRequests);
5219
+ const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo15(() => props.builderContextSignal.content?.data?.httpRequests);
4943
5220
  function onUpdateFn_2() {
4944
5221
  runHttpRequests();
4945
5222
  }
@@ -4951,7 +5228,7 @@ function EnableEditor(props) {
4951
5228
  onUpdateFn_2
4952
5229
  )
4953
5230
  );
4954
- const onUpdateFn_3_props_builderContextSignal_rootState = createMemo14(
5231
+ const onUpdateFn_3_props_builderContextSignal_rootState = createMemo15(
4955
5232
  () => props.builderContextSignal.rootState
4956
5233
  );
4957
5234
  function onUpdateFn_3() {
@@ -4963,14 +5240,14 @@ function EnableEditor(props) {
4963
5240
  onUpdateFn_3
4964
5241
  )
4965
5242
  );
4966
- const onUpdateFn_4_props_data = createMemo14(() => props.data);
5243
+ const onUpdateFn_4_props_data = createMemo15(() => props.data);
4967
5244
  function onUpdateFn_4() {
4968
5245
  if (props.data) {
4969
5246
  mergeNewRootState(props.data);
4970
5247
  }
4971
5248
  }
4972
5249
  createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
4973
- const onUpdateFn_5_props_locale = createMemo14(() => props.locale);
5250
+ const onUpdateFn_5_props_locale = createMemo15(() => props.locale);
4974
5251
  function onUpdateFn_5() {
4975
5252
  if (props.locale) {
4976
5253
  mergeNewRootState({
@@ -4979,7 +5256,7 @@ function EnableEditor(props) {
4979
5256
  }
4980
5257
  }
4981
5258
  createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
4982
- return <builder_context_default.Provider value={props.builderContextSignal}><Show11 when={props.builderContextSignal.content}><Dynamic5
5259
+ return <builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
4983
5260
  class={getWrapperClassName(
4984
5261
  props.content?.testVariationId || props.content?.id
4985
5262
  )}
@@ -4992,14 +5269,14 @@ function EnableEditor(props) {
4992
5269
  {...showContentProps()}
4993
5270
  {...props.contentWrapperProps}
4994
5271
  component={ContentWrapper()}
4995
- >{props.children}</Dynamic5></Show11></builder_context_default.Provider>;
5272
+ >{props.children}</Dynamic5></Show12></builder_context_default.Provider>;
4996
5273
  }
4997
5274
  var Enable_editor_default = EnableEditor;
4998
5275
 
4999
5276
  // src/components/content/components/styles.tsx
5000
- import { createSignal as createSignal15 } from "solid-js";
5277
+ import { createSignal as createSignal16 } from "solid-js";
5001
5278
  function ContentStyles(props) {
5002
- const [injectedStyles, setInjectedStyles] = createSignal15(
5279
+ const [injectedStyles, setInjectedStyles] = createSignal16(
5003
5280
  `
5004
5281
  ${getCss({
5005
5282
  cssCode: props.cssCode,
@@ -5056,7 +5333,7 @@ var getContentInitialValue = ({
5056
5333
 
5057
5334
  // src/components/content/content.tsx
5058
5335
  function ContentComponent(props) {
5059
- const [scriptStr, setScriptStr] = createSignal16(
5336
+ const [scriptStr, setScriptStr] = createSignal17(
5060
5337
  getUpdateVariantVisibilityScript({
5061
5338
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5062
5339
  variationId: props.content?.testVariationId,
@@ -5064,7 +5341,7 @@ function ContentComponent(props) {
5064
5341
  contentId: props.content?.id
5065
5342
  })
5066
5343
  );
5067
- const [registeredComponents, setRegisteredComponents] = createSignal16(
5344
+ const [registeredComponents, setRegisteredComponents] = createSignal17(
5068
5345
  [
5069
5346
  ...getDefaultRegisteredComponents(),
5070
5347
  ...props.customComponents || []
@@ -5079,7 +5356,7 @@ function ContentComponent(props) {
5079
5356
  {}
5080
5357
  )
5081
5358
  );
5082
- const [builderContextSignal, setBuilderContextSignal] = createSignal16({
5359
+ const [builderContextSignal, setBuilderContextSignal] = createSignal17({
5083
5360
  content: getContentInitialValue({
5084
5361
  content: props.content,
5085
5362
  data: props.data
@@ -5137,16 +5414,16 @@ function ContentComponent(props) {
5137
5414
  setBuilderContextSignal
5138
5415
  }}
5139
5416
  >
5140
- <Show12 when={props.isSsrAbTest}><Inlined_script_default
5417
+ <Show13 when={props.isSsrAbTest}><Inlined_script_default
5141
5418
  id="builderio-variant-visibility"
5142
5419
  scriptStr={scriptStr()}
5143
- /></Show12>
5144
- <Show12 when={TARGET !== "reactNative"}><Styles_default
5420
+ /></Show13>
5421
+ <Show13 when={TARGET !== "reactNative"}><Styles_default
5145
5422
  isNestedRender={props.isNestedRender}
5146
5423
  contentId={builderContextSignal().content?.id}
5147
5424
  cssCode={builderContextSignal().content?.data?.cssCode}
5148
5425
  customFonts={builderContextSignal().content?.data?.customFonts}
5149
- /></Show12>
5426
+ /></Show13>
5150
5427
  <Blocks_default
5151
5428
  blocks={builderContextSignal().content?.data?.blocks}
5152
5429
  context={builderContextSignal()}
@@ -5159,13 +5436,13 @@ var Content_default = ContentComponent;
5159
5436
 
5160
5437
  // src/components/content-variants/content-variants.tsx
5161
5438
  function ContentVariants(props) {
5162
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal17(
5439
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal18(
5163
5440
  checkShouldRenderVariants({
5164
5441
  canTrack: getDefaultCanTrack(props.canTrack),
5165
5442
  content: props.content
5166
5443
  })
5167
5444
  );
5168
- const updateCookieAndStylesScriptStr = createMemo17(() => {
5445
+ const updateCookieAndStylesScriptStr = createMemo18(() => {
5169
5446
  return getUpdateCookieAndStylesScript(
5170
5447
  getVariants(props.content).map((value) => ({
5171
5448
  id: value.testVariationId,
@@ -5174,10 +5451,10 @@ function ContentVariants(props) {
5174
5451
  props.content?.id || ""
5175
5452
  );
5176
5453
  });
5177
- const hideVariantsStyleString = createMemo17(() => {
5454
+ const hideVariantsStyleString = createMemo18(() => {
5178
5455
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
5179
5456
  });
5180
- const defaultContent = createMemo17(() => {
5457
+ const defaultContent = createMemo18(() => {
5181
5458
  return shouldRenderVariants() ? {
5182
5459
  ...props.content,
5183
5460
  testVariationId: props.content?.id
@@ -5190,11 +5467,11 @@ function ContentVariants(props) {
5190
5467
  setShouldRenderVariants(false);
5191
5468
  });
5192
5469
  return <>
5193
- <Show13 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
5470
+ <Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
5194
5471
  id="builderio-init-variants-fns"
5195
5472
  scriptStr={getInitVariantsFnsScriptString()}
5196
- /></Show13>
5197
- <Show13 when={shouldRenderVariants()}>
5473
+ /></Show14>
5474
+ <Show14 when={shouldRenderVariants()}>
5198
5475
  <Inlined_styles_default
5199
5476
  id="builderio-variants"
5200
5477
  styles={hideVariantsStyleString()}
@@ -5203,7 +5480,7 @@ function ContentVariants(props) {
5203
5480
  id="builderio-variants-visibility"
5204
5481
  scriptStr={updateCookieAndStylesScriptStr()}
5205
5482
  />
5206
- <For8 each={getVariants(props.content)}>{(variant, _index) => {
5483
+ <For9 each={getVariants(props.content)}>{(variant, _index) => {
5207
5484
  const index = _index();
5208
5485
  return <Content_default
5209
5486
  isNestedRender={props.isNestedRender}
@@ -5227,8 +5504,8 @@ function ContentVariants(props) {
5227
5504
  contentWrapperProps={props.contentWrapperProps}
5228
5505
  trustedHosts={props.trustedHosts}
5229
5506
  />;
5230
- }}</For8>
5231
- </Show13>
5507
+ }}</For9>
5508
+ </Show14>
5232
5509
  <Content_default
5233
5510
  isNestedRender={props.isNestedRender}
5234
5511
  {...{}}
@@ -5281,14 +5558,14 @@ var fetchSymbolContent = async ({
5281
5558
 
5282
5559
  // src/blocks/symbol/symbol.tsx
5283
5560
  function Symbol(props) {
5284
- const [contentToUse, setContentToUse] = createSignal18(props.symbol?.content);
5285
- const blocksWrapper = createMemo18(() => {
5561
+ const [contentToUse, setContentToUse] = createSignal19(props.symbol?.content);
5562
+ const blocksWrapper = createMemo19(() => {
5286
5563
  return "div";
5287
5564
  });
5288
- const contentWrapper = createMemo18(() => {
5565
+ const contentWrapper = createMemo19(() => {
5289
5566
  return "div";
5290
5567
  });
5291
- const className = createMemo18(() => {
5568
+ const className = createMemo19(() => {
5292
5569
  return [
5293
5570
  ...[props.attributes[getClassPropName()]],
5294
5571
  "builder-symbol",
@@ -5310,7 +5587,7 @@ function Symbol(props) {
5310
5587
  }
5311
5588
  onMount5(() => {
5312
5589
  });
5313
- const onUpdateFn_0_props_symbol = createMemo18(() => props.symbol);
5590
+ const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
5314
5591
  function onUpdateFn_0() {
5315
5592
  setContent();
5316
5593
  }