@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.
@@ -625,6 +625,9 @@ function getProcessedBlock({
625
625
  }
626
626
  }
627
627
 
628
+ // src/functions/camel-to-kebab-case.ts
629
+ var camelToKebabCase = (str) => str ? str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
630
+
628
631
  // src/components/block/animator.ts
629
632
  function throttle(func, wait, options = {}) {
630
633
  let context;
@@ -675,7 +678,6 @@ function assign(target, ..._args) {
675
678
  }
676
679
  return to;
677
680
  }
678
- var camelCaseToKebabCase = (str) => str ? str.replace(/([A-Z])/g, (g) => `-${g[0].toLowerCase()}`) : "";
679
681
  function bindAnimations(animations) {
680
682
  for (const animation of animations) {
681
683
  switch (animation.trigger) {
@@ -727,7 +729,7 @@ function triggerAnimation(animation) {
727
729
  element.style.transitionDelay = "0";
728
730
  assign(element.style, animation.steps[0].styles);
729
731
  setTimeout(() => {
730
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
732
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
731
733
  if (animation.delay) {
732
734
  element.style.transitionDelay = animation.delay + "s";
733
735
  }
@@ -787,7 +789,7 @@ function bindScrollInViewAnimation(animation) {
787
789
  }
788
790
  attachDefaultState();
789
791
  setTimeout(() => {
790
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
792
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
791
793
  if (animation.delay) {
792
794
  element.style.transitionDelay = animation.delay + "s";
793
795
  }
@@ -800,9 +802,6 @@ function bindScrollInViewAnimation(animation) {
800
802
  });
801
803
  }
802
804
 
803
- // src/functions/camel-to-kebab-case.ts
804
- var camelToKebabCase = (string) => string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
805
-
806
805
  // src/helpers/css.ts
807
806
  var convertStyleMapToCSSArray = (style) => {
808
807
  const cssProps = Object.entries(style).map(([key, value]) => {
@@ -929,10 +928,10 @@ var getRepeatItemData = ({
929
928
  return repeatArray;
930
929
  };
931
930
  var shouldPassLinkComponent = (block) => {
932
- return block && (block.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(block.name));
931
+ return block && (block.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(block.name));
933
932
  };
934
933
  var shouldPassRegisteredComponents = (block) => {
935
- return block && (block.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(block.name));
934
+ return block && (block.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(block.name));
936
935
  };
937
936
 
938
937
  // src/components/block/components/block-styles.tsx
@@ -1061,7 +1060,7 @@ function BlockStyles(props) {
1061
1060
  className: `${className}:hover`,
1062
1061
  styles: {
1063
1062
  ...hoverStyles,
1064
- transition: `all ${hoverAnimation.duration}s ${camelCaseToKebabCase(
1063
+ transition: `all ${hoverAnimation.duration}s ${camelToKebabCase(
1065
1064
  hoverAnimation.easing
1066
1065
  )}`,
1067
1066
  transitionDelay: hoverAnimation.delay ? `${hoverAnimation.delay}s` : "0s"
@@ -1825,10 +1824,10 @@ function SectionComponent(props) {
1825
1824
  var section_default = SectionComponent;
1826
1825
 
1827
1826
  // src/blocks/symbol/symbol.tsx
1828
- import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo18, createSignal as createSignal18 } from "solid-js";
1827
+ import { onMount as onMount5, on as on3, createEffect as createEffect3, createMemo as createMemo19, createSignal as createSignal19 } from "solid-js";
1829
1828
 
1830
1829
  // src/components/content-variants/content-variants.tsx
1831
- import { Show as Show13, For as For8, onMount as onMount4, createSignal as createSignal17, createMemo as createMemo17 } from "solid-js";
1830
+ import { Show as Show14, For as For9, onMount as onMount4, createSignal as createSignal18, createMemo as createMemo18 } from "solid-js";
1832
1831
 
1833
1832
  // src/helpers/url.ts
1834
1833
  var getTopLevelDomain = (host) => {
@@ -2022,10 +2021,286 @@ var handleABTesting = async ({
2022
2021
  var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
2023
2022
 
2024
2023
  // src/components/content/content.tsx
2025
- import { Show as Show12, createSignal as createSignal16 } from "solid-js";
2024
+ import { Show as Show13, createSignal as createSignal17 } from "solid-js";
2026
2025
 
2027
- // src/blocks/button/component-info.ts
2026
+ // src/blocks/accordion/component-info.ts
2027
+ var defaultTitle = {
2028
+ "@type": "@builder.io/sdk:Element",
2029
+ layerName: "Accordion item title",
2030
+ responsiveStyles: {
2031
+ large: {
2032
+ marginTop: "10px",
2033
+ position: "relative",
2034
+ display: "flex",
2035
+ alignItems: "stretch",
2036
+ flexDirection: "column",
2037
+ paddingBottom: "10px"
2038
+ }
2039
+ },
2040
+ children: [{
2041
+ "@type": "@builder.io/sdk:Element",
2042
+ responsiveStyles: {
2043
+ large: {
2044
+ textAlign: "left",
2045
+ display: "flex",
2046
+ flexDirection: "column"
2047
+ }
2048
+ },
2049
+ component: {
2050
+ name: "Text",
2051
+ options: {
2052
+ text: "I am an accordion title. Click me!"
2053
+ }
2054
+ }
2055
+ }]
2056
+ };
2057
+ var defaultDetail = {
2058
+ "@type": "@builder.io/sdk:Element",
2059
+ layerName: "Accordion item detail",
2060
+ responsiveStyles: {
2061
+ large: {
2062
+ position: "relative",
2063
+ display: "flex",
2064
+ alignItems: "stretch",
2065
+ flexDirection: "column",
2066
+ marginTop: "10px",
2067
+ paddingBottom: "10px"
2068
+ }
2069
+ },
2070
+ children: [{
2071
+ "@type": "@builder.io/sdk:Element",
2072
+ responsiveStyles: {
2073
+ large: {
2074
+ paddingTop: "50px",
2075
+ textAlign: "left",
2076
+ display: "flex",
2077
+ flexDirection: "column",
2078
+ paddingBottom: "50px"
2079
+ }
2080
+ },
2081
+ component: {
2082
+ name: "Text",
2083
+ options: {
2084
+ text: "I am an accordion detail, hello!"
2085
+ }
2086
+ }
2087
+ }]
2088
+ };
2028
2089
  var componentInfo = {
2090
+ name: "Builder:Accordion",
2091
+ canHaveChildren: true,
2092
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
2093
+ defaultStyles: {
2094
+ display: "flex",
2095
+ flexDirection: "column",
2096
+ alignItems: "stretch"
2097
+ },
2098
+ inputs: [{
2099
+ name: "items",
2100
+ type: "list",
2101
+ broadcast: true,
2102
+ subFields: [{
2103
+ name: "title",
2104
+ type: "uiBlocks",
2105
+ hideFromUI: true,
2106
+ defaultValue: [defaultTitle]
2107
+ }, {
2108
+ name: "detail",
2109
+ type: "uiBlocks",
2110
+ hideFromUI: true,
2111
+ defaultValue: [defaultDetail]
2112
+ }],
2113
+ defaultValue: [{
2114
+ title: [defaultTitle],
2115
+ detail: [defaultDetail]
2116
+ }, {
2117
+ title: [defaultTitle],
2118
+ detail: [defaultDetail]
2119
+ }],
2120
+ showIf: (options) => !options.get("useChildrenForItems")
2121
+ }, {
2122
+ name: "oneAtATime",
2123
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
2124
+ type: "boolean",
2125
+ defaultValue: false
2126
+ }, {
2127
+ name: "grid",
2128
+ helperText: "Display as a grid",
2129
+ type: "boolean",
2130
+ defaultValue: false
2131
+ }, {
2132
+ name: "gridRowWidth",
2133
+ helperText: "Display as a grid",
2134
+ type: "string",
2135
+ showIf: (options) => options.get("grid"),
2136
+ defaultValue: "25%"
2137
+ }, {
2138
+ name: "useChildrenForItems",
2139
+ type: "boolean",
2140
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
2141
+ advanced: true,
2142
+ defaultValue: false,
2143
+ onChange: (options) => {
2144
+ if (options.get("useChildrenForItems") === true) {
2145
+ options.set("items", []);
2146
+ }
2147
+ }
2148
+ }]
2149
+ };
2150
+
2151
+ // src/blocks/accordion/accordion.tsx
2152
+ import { Show as Show8, For as For5, createSignal as createSignal9, createMemo as createMemo9 } from "solid-js";
2153
+
2154
+ // src/blocks/accordion/helpers.ts
2155
+ var convertOrderNumberToString = (order) => {
2156
+ return order.toString();
2157
+ };
2158
+
2159
+ // src/blocks/accordion/accordion.tsx
2160
+ function Accordion(props) {
2161
+ const [open, setOpen] = createSignal9([]);
2162
+ const onlyOneAtATime = createMemo9(() => {
2163
+ return Boolean(props.grid || props.oneAtATime);
2164
+ });
2165
+ const accordionStyles = createMemo9(() => {
2166
+ const styles = {
2167
+ display: "flex",
2168
+ alignItems: "stretch",
2169
+ flexDirection: "column",
2170
+ ...props.grid && {
2171
+ flexDirection: "row",
2172
+ alignItems: "flex-start",
2173
+ flexWrap: "wrap"
2174
+ }
2175
+ };
2176
+ return Object.fromEntries(
2177
+ Object.entries(styles).map(([key, value]) => [
2178
+ camelToKebabCase(key),
2179
+ value
2180
+ ])
2181
+ );
2182
+ });
2183
+ const accordionTitleStyles = createMemo9(() => {
2184
+ const shared = {
2185
+ display: "flex",
2186
+ flexDirection: "column"
2187
+ };
2188
+ const styles = Object.fromEntries(
2189
+ Object.entries({
2190
+ ...shared,
2191
+ alignItems: "stretch",
2192
+ cursor: "pointer"
2193
+ }).map(([key, value]) => [camelToKebabCase(key), value])
2194
+ );
2195
+ return Object.fromEntries(
2196
+ Object.entries(styles).filter(([_, value]) => value !== void 0)
2197
+ );
2198
+ });
2199
+ function getAccordionTitleClassName(index) {
2200
+ return `builder-accordion-title builder-accordion-title-${open().includes(index) ? "open" : "closed"}`;
2201
+ }
2202
+ function getAccordionDetailClassName(index) {
2203
+ return `builder-accordion-detail builder-accordion-detail-${open().includes(index) ? "open" : "closed"}`;
2204
+ }
2205
+ const openGridItemOrder = createMemo9(() => {
2206
+ let itemOrder = null;
2207
+ const getOpenGridItemPosition = props.grid && open().length;
2208
+ if (getOpenGridItemPosition && document) {
2209
+ const openItemIndex = open()[0];
2210
+ const openItem = document.querySelector(
2211
+ `.builder-accordion-title[data-index="${openItemIndex}"]`
2212
+ );
2213
+ let subjectItem = openItem;
2214
+ itemOrder = openItemIndex;
2215
+ if (subjectItem) {
2216
+ let prevItemRect = subjectItem.getBoundingClientRect();
2217
+ while (subjectItem = subjectItem && subjectItem.nextElementSibling) {
2218
+ if (subjectItem) {
2219
+ if (subjectItem.classList.contains("builder-accordion-detail")) {
2220
+ continue;
2221
+ }
2222
+ const subjectItemRect = subjectItem.getBoundingClientRect();
2223
+ if (subjectItemRect.left > prevItemRect.left) {
2224
+ const index = parseInt(
2225
+ subjectItem.getAttribute("data-index") || "",
2226
+ 10
2227
+ );
2228
+ if (!isNaN(index)) {
2229
+ prevItemRect = subjectItemRect;
2230
+ itemOrder = index;
2231
+ }
2232
+ } else {
2233
+ break;
2234
+ }
2235
+ }
2236
+ }
2237
+ }
2238
+ }
2239
+ if (typeof itemOrder === "number") {
2240
+ itemOrder = itemOrder + 1;
2241
+ }
2242
+ return itemOrder;
2243
+ });
2244
+ const accordionDetailStyles = createMemo9(() => {
2245
+ const styles = {
2246
+ ...{
2247
+ order: typeof openGridItemOrder() === "number" ? openGridItemOrder() : void 0
2248
+ },
2249
+ ...props.grid && {
2250
+ width: "100%"
2251
+ }
2252
+ };
2253
+ return Object.fromEntries(
2254
+ Object.entries(styles).filter(([_, value]) => value !== void 0)
2255
+ );
2256
+ });
2257
+ function onClick(index) {
2258
+ if (open().includes(index)) {
2259
+ setOpen(onlyOneAtATime() ? [] : open().filter((item) => item !== index));
2260
+ } else {
2261
+ setOpen(onlyOneAtATime() ? [index] : open().concat(index));
2262
+ }
2263
+ }
2264
+ return <div class="builder-accordion" style={accordionStyles()}><For5 each={props.items}>{(item, _index) => {
2265
+ const index = _index();
2266
+ return <>
2267
+ <div
2268
+ class={getAccordionTitleClassName(index)}
2269
+ style={{
2270
+ ...accordionTitleStyles(),
2271
+ width: props.grid ? props.gridRowWidth : void 0,
2272
+ ...{
2273
+ order: openGridItemOrder() !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
2274
+ }
2275
+ }}
2276
+ data-index={index}
2277
+ onClick={(event) => onClick(index)}
2278
+ ><Blocks_default
2279
+ blocks={item.title}
2280
+ path={`items.${index}.title`}
2281
+ parent={props.builderBlock.id}
2282
+ context={props.builderContext}
2283
+ registeredComponents={props.builderComponents}
2284
+ linkComponent={props.builderLinkComponent}
2285
+ /></div>
2286
+ <Show8 when={open().includes(index)}><div
2287
+ class={getAccordionDetailClassName(index)}
2288
+ style={accordionDetailStyles()}
2289
+ ><Blocks_default
2290
+ blocks={item.detail}
2291
+ path={`items.${index}.detail`}
2292
+ parent={props.builderBlock.id}
2293
+ context={props.builderContext}
2294
+ registeredComponents={props.builderComponents}
2295
+ linkComponent={props.builderLinkComponent}
2296
+ /></div></Show8>
2297
+ </>;
2298
+ }}</For5></div>;
2299
+ }
2300
+ var accordion_default = Accordion;
2301
+
2302
+ // src/blocks/button/component-info.ts
2303
+ var componentInfo2 = {
2029
2304
  name: "Core:Button",
2030
2305
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2031
2306
  defaultStyles: {
@@ -2061,7 +2336,7 @@ var componentInfo = {
2061
2336
  };
2062
2337
 
2063
2338
  // src/blocks/columns/component-info.ts
2064
- var componentInfo2 = {
2339
+ var componentInfo3 = {
2065
2340
  // TODO: ways to statically preprocess JSON for references, functions, etc
2066
2341
  name: "Columns",
2067
2342
  isRSC: true,
@@ -2281,7 +2556,7 @@ var componentInfo2 = {
2281
2556
  };
2282
2557
 
2283
2558
  // src/blocks/fragment/component-info.ts
2284
- var componentInfo3 = {
2559
+ var componentInfo4 = {
2285
2560
  name: "Fragment",
2286
2561
  static: true,
2287
2562
  hidden: true,
@@ -2290,7 +2565,7 @@ var componentInfo3 = {
2290
2565
  };
2291
2566
 
2292
2567
  // src/blocks/image/component-info.ts
2293
- var componentInfo4 = {
2568
+ var componentInfo5 = {
2294
2569
  name: "Image",
2295
2570
  static: true,
2296
2571
  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",
@@ -2412,7 +2687,7 @@ var componentInfo4 = {
2412
2687
  };
2413
2688
 
2414
2689
  // src/blocks/section/component-info.ts
2415
- var componentInfo5 = {
2690
+ var componentInfo6 = {
2416
2691
  name: "Core:Section",
2417
2692
  static: true,
2418
2693
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2454,7 +2729,7 @@ var componentInfo5 = {
2454
2729
  };
2455
2730
 
2456
2731
  // src/blocks/slot/component-info.ts
2457
- var componentInfo6 = {
2732
+ var componentInfo7 = {
2458
2733
  name: "Slot",
2459
2734
  isRSC: true,
2460
2735
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2488,7 +2763,7 @@ function Slot(props) {
2488
2763
  var slot_default = Slot;
2489
2764
 
2490
2765
  // src/blocks/symbol/component-info.ts
2491
- var componentInfo7 = {
2766
+ var componentInfo8 = {
2492
2767
  name: "Symbol",
2493
2768
  noWrap: true,
2494
2769
  static: true,
@@ -2564,7 +2839,7 @@ var defaultElement = {
2564
2839
  }
2565
2840
  }
2566
2841
  };
2567
- var componentInfo8 = {
2842
+ var componentInfo9 = {
2568
2843
  name: "Builder: Tabs",
2569
2844
  inputs: [{
2570
2845
  name: "tabs",
@@ -2664,16 +2939,20 @@ var componentInfo8 = {
2664
2939
  };
2665
2940
 
2666
2941
  // src/blocks/tabs/tabs.tsx
2667
- import { Show as Show8, For as For5, createSignal as createSignal9 } from "solid-js";
2942
+ import { Show as Show9, For as For6, createSignal as createSignal10 } from "solid-js";
2668
2943
  function Tabs(props) {
2669
- const [activeTab, setActiveTab] = createSignal9(
2944
+ const [activeTab, setActiveTab] = createSignal10(
2670
2945
  props.defaultActiveTab ? props.defaultActiveTab - 1 : 0
2671
2946
  );
2672
2947
  function activeTabContent(active) {
2673
2948
  return props.tabs && props.tabs[active].content;
2674
2949
  }
2675
- function getActiveTabStyle(index) {
2676
- return activeTab() === index ? props.activeTabStyle : {};
2950
+ function onClick(index) {
2951
+ if (index === activeTab() && props.collapsible) {
2952
+ setActiveTab(-1);
2953
+ } else {
2954
+ setActiveTab(index);
2955
+ }
2677
2956
  }
2678
2957
  return <div>
2679
2958
  <div
@@ -2684,19 +2963,15 @@ function Tabs(props) {
2684
2963
  "justify-content": props.tabHeaderLayout || "flex-start",
2685
2964
  overflow: "auto"
2686
2965
  }}
2687
- ><For5 each={props.tabs}>{(tab, _index) => {
2966
+ ><For6 each={props.tabs}>{(tab, _index) => {
2688
2967
  const index = _index();
2689
2968
  return <span
2690
2969
  class={`builder-tab-wrap ${activeTab() === index ? "builder-tab-active" : ""}`}
2691
2970
  key={index}
2692
- style={getActiveTabStyle(index)}
2693
- onClick={(event) => {
2694
- if (index === activeTab() && props.collapsible) {
2695
- setActiveTab(-1);
2696
- } else {
2697
- setActiveTab(index);
2698
- }
2971
+ style={{
2972
+ ...activeTab() === index ? props.activeTabStyle : {}
2699
2973
  }}
2974
+ onClick={(event) => onClick(index)}
2700
2975
  ><Blocks_default
2701
2976
  parent={props.builderBlock.id}
2702
2977
  path={`component.options.tabs.${index}.label`}
@@ -2705,21 +2980,21 @@ function Tabs(props) {
2705
2980
  registeredComponents={props.builderComponents}
2706
2981
  linkComponent={props.builderLinkComponent}
2707
2982
  /></span>;
2708
- }}</For5></div>
2709
- <Show8 when={activeTabContent(activeTab())}><div><Blocks_default
2983
+ }}</For6></div>
2984
+ <Show9 when={activeTabContent(activeTab())}><div><Blocks_default
2710
2985
  parent={props.builderBlock.id}
2711
2986
  path={`component.options.tabs.${activeTab()}.content`}
2712
2987
  blocks={activeTabContent(activeTab())}
2713
2988
  context={props.builderContext}
2714
2989
  registeredComponents={props.builderComponents}
2715
2990
  linkComponent={props.builderLinkComponent}
2716
- /></div></Show8>
2991
+ /></div></Show9>
2717
2992
  </div>;
2718
2993
  }
2719
2994
  var tabs_default = Tabs;
2720
2995
 
2721
2996
  // src/blocks/text/component-info.ts
2722
- var componentInfo9 = {
2997
+ var componentInfo10 = {
2723
2998
  name: "Text",
2724
2999
  static: true,
2725
3000
  isRSC: true,
@@ -2752,7 +3027,7 @@ function Text(props) {
2752
3027
  var text_default = Text;
2753
3028
 
2754
3029
  // src/blocks/custom-code/component-info.ts
2755
- var componentInfo10 = {
3030
+ var componentInfo11 = {
2756
3031
  name: "Custom Code",
2757
3032
  static: true,
2758
3033
  requiredPermissions: ["editCode"],
@@ -2777,10 +3052,10 @@ var componentInfo10 = {
2777
3052
  };
2778
3053
 
2779
3054
  // src/blocks/custom-code/custom-code.tsx
2780
- import { onMount as onMount2, createSignal as createSignal10 } from "solid-js";
3055
+ import { onMount as onMount2, createSignal as createSignal11 } from "solid-js";
2781
3056
  function CustomCode(props) {
2782
- const [scriptsInserted, setScriptsInserted] = createSignal10([]);
2783
- const [scriptsRun, setScriptsRun] = createSignal10([]);
3057
+ const [scriptsInserted, setScriptsInserted] = createSignal11([]);
3058
+ const [scriptsRun, setScriptsRun] = createSignal11([]);
2784
3059
  let elementRef;
2785
3060
  onMount2(() => {
2786
3061
  if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
@@ -2823,7 +3098,7 @@ function CustomCode(props) {
2823
3098
  var custom_code_default = CustomCode;
2824
3099
 
2825
3100
  // src/blocks/embed/component-info.ts
2826
- var componentInfo11 = {
3101
+ var componentInfo12 = {
2827
3102
  name: "Embed",
2828
3103
  static: true,
2829
3104
  inputs: [{
@@ -2861,7 +3136,7 @@ var componentInfo11 = {
2861
3136
  };
2862
3137
 
2863
3138
  // src/blocks/embed/embed.tsx
2864
- import { on, createEffect, createMemo as createMemo11, createSignal as createSignal11 } from "solid-js";
3139
+ import { on, createEffect, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
2865
3140
 
2866
3141
  // src/blocks/embed/helpers.ts
2867
3142
  var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
@@ -2869,9 +3144,9 @@ var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
2869
3144
 
2870
3145
  // src/blocks/embed/embed.tsx
2871
3146
  function Embed(props) {
2872
- const [scriptsInserted, setScriptsInserted] = createSignal11([]);
2873
- const [scriptsRun, setScriptsRun] = createSignal11([]);
2874
- const [ranInitFn, setRanInitFn] = createSignal11(false);
3147
+ const [scriptsInserted, setScriptsInserted] = createSignal12([]);
3148
+ const [scriptsRun, setScriptsRun] = createSignal12([]);
3149
+ const [ranInitFn, setRanInitFn] = createSignal12(false);
2875
3150
  function findAndRunScripts() {
2876
3151
  if (!elem || !elem.getElementsByTagName)
2877
3152
  return;
@@ -2894,8 +3169,8 @@ function Embed(props) {
2894
3169
  }
2895
3170
  }
2896
3171
  let elem;
2897
- const onUpdateFn_0_elem = createMemo11(() => elem);
2898
- const onUpdateFn_0_ranInitFn__ = createMemo11(() => ranInitFn());
3172
+ const onUpdateFn_0_elem = createMemo12(() => elem);
3173
+ const onUpdateFn_0_ranInitFn__ = createMemo12(() => ranInitFn());
2899
3174
  function onUpdateFn_0() {
2900
3175
  if (elem && !ranInitFn()) {
2901
3176
  setRanInitFn(true);
@@ -2910,7 +3185,7 @@ function Embed(props) {
2910
3185
  var embed_default = Embed;
2911
3186
 
2912
3187
  // src/blocks/form/form/component-info.ts
2913
- var componentInfo12 = {
3188
+ var componentInfo13 = {
2914
3189
  name: "Form:Form",
2915
3190
  // editableTags: ['builder-form-error']
2916
3191
  defaults: {
@@ -3144,7 +3419,7 @@ var componentInfo12 = {
3144
3419
  };
3145
3420
 
3146
3421
  // src/blocks/form/form/form.tsx
3147
- import { Show as Show9, For as For6, createSignal as createSignal12 } from "solid-js";
3422
+ import { Show as Show10, For as For7, createSignal as createSignal13 } from "solid-js";
3148
3423
  import { css as css4 } from "solid-styled-components";
3149
3424
 
3150
3425
  // src/functions/get-env.ts
@@ -3162,9 +3437,9 @@ var get = (obj, path, defaultValue) => {
3162
3437
 
3163
3438
  // src/blocks/form/form/form.tsx
3164
3439
  function FormComponent(props) {
3165
- const [formState, setFormState] = createSignal12("unsubmitted");
3166
- const [responseData, setResponseData] = createSignal12(null);
3167
- const [formErrorMessage, setFormErrorMessage] = createSignal12("");
3440
+ const [formState, setFormState] = createSignal13("unsubmitted");
3441
+ const [responseData, setResponseData] = createSignal13(null);
3442
+ const [formErrorMessage, setFormErrorMessage] = createSignal13("");
3168
3443
  function mergeNewRootState(newData) {
3169
3444
  const combinedState = {
3170
3445
  ...props.builderContext.rootState,
@@ -3189,13 +3464,11 @@ function FormComponent(props) {
3189
3464
  return;
3190
3465
  }
3191
3466
  event.preventDefault();
3192
- const el = event.currentTarget;
3467
+ const el = event.currentTarget || event.target;
3193
3468
  const headers = props.customHeaders || {};
3194
3469
  let body;
3195
3470
  const formData = new FormData(el);
3196
- const formPairs = Array.from(
3197
- event.currentTarget.querySelectorAll("input,select,textarea")
3198
- ).filter((el2) => !!el2.name).map((el2) => {
3471
+ const formPairs = Array.from(el.querySelectorAll("input,select,textarea")).filter((el2) => !!el2.name).map((el2) => {
3199
3472
  let value;
3200
3473
  const key = el2.name;
3201
3474
  if (el2 instanceof HTMLInputElement) {
@@ -3358,9 +3631,10 @@ function FormComponent(props) {
3358
3631
  name={props.name}
3359
3632
  onSubmit={(event) => onSubmit(event)}
3360
3633
  {...{}}
3634
+ {...{}}
3361
3635
  {...props.attributes}
3362
3636
  >
3363
- <Show9 when={props.builderBlock && props.builderBlock.children}><For6 each={props.builderBlock?.children}>{(block, _index) => {
3637
+ <Show10 when={props.builderBlock && props.builderBlock.children}><For7 each={props.builderBlock?.children}>{(block, _index) => {
3364
3638
  const idx = _index();
3365
3639
  return <Block_default
3366
3640
  key={`form-block-${idx}`}
@@ -3369,35 +3643,35 @@ function FormComponent(props) {
3369
3643
  registeredComponents={props.builderComponents}
3370
3644
  linkComponent={props.builderLinkComponent}
3371
3645
  />;
3372
- }}</For6></Show9>
3373
- <Show9 when={submissionState() === "error"}><Blocks_default
3646
+ }}</For7></Show10>
3647
+ <Show10 when={submissionState() === "error"}><Blocks_default
3374
3648
  path="errorMessage"
3375
3649
  blocks={props.errorMessage}
3376
3650
  context={props.builderContext}
3377
- /></Show9>
3378
- <Show9 when={submissionState() === "sending"}><Blocks_default
3651
+ /></Show10>
3652
+ <Show10 when={submissionState() === "sending"}><Blocks_default
3379
3653
  path="sendingMessage"
3380
3654
  blocks={props.sendingMessage}
3381
3655
  context={props.builderContext}
3382
- /></Show9>
3383
- <Show9 when={submissionState() === "error" && responseData()}><pre
3656
+ /></Show10>
3657
+ <Show10 when={submissionState() === "error" && responseData()}><pre
3384
3658
  class={"builder-form-error-text " + css4({
3385
3659
  padding: "10px",
3386
3660
  color: "red",
3387
3661
  textAlign: "center"
3388
3662
  })}
3389
- >{JSON.stringify(responseData(), null, 2)}</pre></Show9>
3390
- <Show9 when={submissionState() === "success"}><Blocks_default
3663
+ >{JSON.stringify(responseData(), null, 2)}</pre></Show10>
3664
+ <Show10 when={submissionState() === "success"}><Blocks_default
3391
3665
  path="successMessage"
3392
3666
  blocks={props.successMessage}
3393
3667
  context={props.builderContext}
3394
- /></Show9>
3668
+ /></Show10>
3395
3669
  </form>;
3396
3670
  }
3397
3671
  var form_default = FormComponent;
3398
3672
 
3399
3673
  // src/blocks/form/input/component-info.ts
3400
- var componentInfo13 = {
3674
+ var componentInfo14 = {
3401
3675
  name: "Form:Input",
3402
3676
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3403
3677
  inputs: [
@@ -3467,7 +3741,7 @@ function FormInputComponent(props) {
3467
3741
  var input_default = FormInputComponent;
3468
3742
 
3469
3743
  // src/blocks/form/select/component-info.ts
3470
- var componentInfo14 = {
3744
+ var componentInfo15 = {
3471
3745
  name: "Form:Select",
3472
3746
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3473
3747
  defaultStyles: {
@@ -3512,7 +3786,7 @@ var componentInfo14 = {
3512
3786
  };
3513
3787
 
3514
3788
  // src/blocks/form/select/select.tsx
3515
- import { For as For7 } from "solid-js";
3789
+ import { For as For8 } from "solid-js";
3516
3790
  function SelectComponent(props) {
3517
3791
  return <select
3518
3792
  {...{}}
@@ -3521,15 +3795,15 @@ function SelectComponent(props) {
3521
3795
  key={isEditing() && props.defaultValue ? props.defaultValue : "default-key"}
3522
3796
  defaultValue={props.defaultValue}
3523
3797
  name={props.name}
3524
- ><For7 each={props.options}>{(option, _index) => {
3798
+ ><For8 each={props.options}>{(option, _index) => {
3525
3799
  const index = _index();
3526
3800
  return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
3527
- }}</For7></select>;
3801
+ }}</For8></select>;
3528
3802
  }
3529
3803
  var select_default = SelectComponent;
3530
3804
 
3531
3805
  // src/blocks/form/submit-button/component-info.ts
3532
- var componentInfo15 = {
3806
+ var componentInfo16 = {
3533
3807
  name: "Form:SubmitButton",
3534
3808
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3535
3809
  defaultStyles: {
@@ -3563,7 +3837,7 @@ function SubmitButton(props) {
3563
3837
  var submit_button_default = SubmitButton;
3564
3838
 
3565
3839
  // src/blocks/img/component-info.ts
3566
- var componentInfo16 = {
3840
+ var componentInfo17 = {
3567
3841
  // friendlyName?
3568
3842
  name: "Raw:Img",
3569
3843
  hideFromInsertMenu: true,
@@ -3596,7 +3870,7 @@ function ImgComponent(props) {
3596
3870
  var img_default = ImgComponent;
3597
3871
 
3598
3872
  // src/blocks/video/component-info.ts
3599
- var componentInfo17 = {
3873
+ var componentInfo18 = {
3600
3874
  name: "Video",
3601
3875
  canHaveChildren: true,
3602
3876
  defaultStyles: {
@@ -3680,9 +3954,9 @@ var componentInfo17 = {
3680
3954
  };
3681
3955
 
3682
3956
  // src/blocks/video/video.tsx
3683
- import { Show as Show10, createMemo as createMemo13 } from "solid-js";
3957
+ import { Show as Show11, createMemo as createMemo14 } from "solid-js";
3684
3958
  function Video(props) {
3685
- const videoProps = createMemo13(() => {
3959
+ const videoProps = createMemo14(() => {
3686
3960
  return {
3687
3961
  ...props.autoPlay === true ? {
3688
3962
  autoPlay: true
@@ -3701,7 +3975,7 @@ function Video(props) {
3701
3975
  } : {}
3702
3976
  };
3703
3977
  });
3704
- const spreadProps = createMemo13(() => {
3978
+ const spreadProps = createMemo14(() => {
3705
3979
  return {
3706
3980
  ...videoProps()
3707
3981
  };
@@ -3731,8 +4005,8 @@ function Video(props) {
3731
4005
  }}
3732
4006
  src={props.video || "no-src"}
3733
4007
  poster={props.posterImage}
3734
- ><Show10 when={!props.lazyLoad}><source type="video/mp4" src={props.video} /></Show10></video>
3735
- <Show10
4008
+ ><Show11 when={!props.lazyLoad}><source type="video/mp4" src={props.video} /></Show11></video>
4009
+ <Show11
3736
4010
  when={props.aspectRatio && !(props.fitContent && props.builderBlock?.children?.length)}
3737
4011
  ><div
3738
4012
  style={{
@@ -3741,15 +4015,15 @@ function Video(props) {
3741
4015
  "pointer-events": "none",
3742
4016
  "font-size": "0px"
3743
4017
  }}
3744
- /></Show10>
3745
- <Show10 when={props.builderBlock?.children?.length && props.fitContent}><div
4018
+ /></Show11>
4019
+ <Show11 when={props.builderBlock?.children?.length && props.fitContent}><div
3746
4020
  style={{
3747
4021
  display: "flex",
3748
4022
  "flex-direction": "column",
3749
4023
  "align-items": "stretch"
3750
4024
  }}
3751
- >{props.children}</div></Show10>
3752
- <Show10 when={props.builderBlock?.children?.length && !props.fitContent}><div
4025
+ >{props.children}</div></Show11>
4026
+ <Show11 when={props.builderBlock?.children?.length && !props.fitContent}><div
3753
4027
  style={{
3754
4028
  "pointer-events": "none",
3755
4029
  display: "flex",
@@ -3761,7 +4035,7 @@ function Video(props) {
3761
4035
  width: "100%",
3762
4036
  height: "100%"
3763
4037
  }}
3764
- >{props.children}</div></Show10>
4038
+ >{props.children}</div></Show11>
3765
4039
  </div>;
3766
4040
  }
3767
4041
  var video_default = Video;
@@ -3769,58 +4043,61 @@ var video_default = Video;
3769
4043
  // src/constants/extra-components.ts
3770
4044
  var getExtraComponents = () => [{
3771
4045
  component: custom_code_default,
3772
- ...componentInfo10
4046
+ ...componentInfo11
3773
4047
  }, {
3774
4048
  component: embed_default,
3775
- ...componentInfo11
4049
+ ...componentInfo12
3776
4050
  }, ...TARGET === "rsc" ? [] : [{
3777
4051
  component: form_default,
3778
- ...componentInfo12
4052
+ ...componentInfo13
3779
4053
  }, {
3780
4054
  component: input_default,
3781
- ...componentInfo13
4055
+ ...componentInfo14
3782
4056
  }, {
3783
4057
  component: submit_button_default,
3784
- ...componentInfo15
4058
+ ...componentInfo16
3785
4059
  }, {
3786
4060
  component: select_default,
3787
- ...componentInfo14
4061
+ ...componentInfo15
3788
4062
  }], {
3789
4063
  component: img_default,
3790
- ...componentInfo16
4064
+ ...componentInfo17
3791
4065
  }, {
3792
4066
  component: video_default,
3793
- ...componentInfo17
4067
+ ...componentInfo18
3794
4068
  }];
3795
4069
 
3796
4070
  // src/constants/builder-registered-components.ts
3797
4071
  var getDefaultRegisteredComponents = () => [{
3798
4072
  component: button_default,
3799
- ...componentInfo
4073
+ ...componentInfo2
3800
4074
  }, {
3801
4075
  component: columns_default,
3802
- ...componentInfo2
4076
+ ...componentInfo3
3803
4077
  }, {
3804
4078
  component: fragment_default,
3805
- ...componentInfo3
4079
+ ...componentInfo4
3806
4080
  }, {
3807
4081
  component: image_default,
3808
- ...componentInfo4
4082
+ ...componentInfo5
3809
4083
  }, {
3810
4084
  component: section_default,
3811
- ...componentInfo5
4085
+ ...componentInfo6
3812
4086
  }, {
3813
4087
  component: slot_default,
3814
- ...componentInfo6
4088
+ ...componentInfo7
3815
4089
  }, {
3816
4090
  component: symbol_default,
3817
- ...componentInfo7
4091
+ ...componentInfo8
3818
4092
  }, {
3819
4093
  component: text_default,
3820
- ...componentInfo9
4094
+ ...componentInfo10
3821
4095
  }, ...TARGET === "rsc" ? [] : [{
3822
4096
  component: tabs_default,
3823
- ...componentInfo8
4097
+ ...componentInfo9
4098
+ }, {
4099
+ component: accordion_default,
4100
+ ...componentInfo
3824
4101
  }], ...getExtraComponents()];
3825
4102
 
3826
4103
  // src/functions/register-component.ts
@@ -3899,12 +4176,12 @@ var Inlined_script_default = InlinedScript;
3899
4176
 
3900
4177
  // src/components/content/components/enable-editor.tsx
3901
4178
  import {
3902
- Show as Show11,
4179
+ Show as Show12,
3903
4180
  onMount as onMount3,
3904
4181
  on as on2,
3905
4182
  createEffect as createEffect2,
3906
- createMemo as createMemo14,
3907
- createSignal as createSignal14
4183
+ createMemo as createMemo15,
4184
+ createSignal as createSignal15
3908
4185
  } from "solid-js";
3909
4186
  import { Dynamic as Dynamic5 } from "solid-js/web";
3910
4187
 
@@ -4399,7 +4676,7 @@ function isFromTrustedHost(trustedHosts, e) {
4399
4676
  }
4400
4677
 
4401
4678
  // src/constants/sdk-version.ts
4402
- var SDK_VERSION = "1.0.27";
4679
+ var SDK_VERSION = "1.0.29";
4403
4680
 
4404
4681
  // src/functions/register.ts
4405
4682
  var registry = {};
@@ -4676,12 +4953,12 @@ var getWrapperClassName = (variationId) => {
4676
4953
 
4677
4954
  // src/components/content/components/enable-editor.tsx
4678
4955
  function EnableEditor(props) {
4679
- const [ContentWrapper, setContentWrapper] = createSignal14(
4956
+ const [ContentWrapper, setContentWrapper] = createSignal15(
4680
4957
  props.contentWrapper || "div"
4681
4958
  );
4682
- const [httpReqsData, setHttpReqsData] = createSignal14({});
4683
- const [httpReqsPending, setHttpReqsPending] = createSignal14({});
4684
- const [clicked, setClicked] = createSignal14(false);
4959
+ const [httpReqsData, setHttpReqsData] = createSignal15({});
4960
+ const [httpReqsPending, setHttpReqsPending] = createSignal15({});
4961
+ const [clicked, setClicked] = createSignal15(false);
4685
4962
  function mergeNewRootState(newData) {
4686
4963
  const combinedState = {
4687
4964
  ...props.builderContextSignal.rootState,
@@ -4715,7 +4992,7 @@ function EnableEditor(props) {
4715
4992
  content: newContentValue
4716
4993
  }));
4717
4994
  }
4718
- const showContentProps = createMemo14(() => {
4995
+ const showContentProps = createMemo15(() => {
4719
4996
  return props.showContent ? {} : {
4720
4997
  hidden: true,
4721
4998
  "aria-hidden": true
@@ -4878,7 +5155,7 @@ function EnableEditor(props) {
4878
5155
  const searchParams = new URL(location.href).searchParams;
4879
5156
  const searchParamPreviewModel = searchParams.get("builder.preview");
4880
5157
  const searchParamPreviewId = searchParams.get(
4881
- `builder.preview.${searchParamPreviewModel}`
5158
+ `builder.overrides.${searchParamPreviewModel}`
4882
5159
  );
4883
5160
  const previewApiKey = searchParams.get("apiKey") || searchParams.get("builder.space");
4884
5161
  if (searchParamPreviewModel === props.model && previewApiKey === props.apiKey && (!props.content || searchParamPreviewId === props.content.id)) {
@@ -4898,21 +5175,21 @@ function EnableEditor(props) {
4898
5175
  onMount3(() => {
4899
5176
  if (!props.apiKey) {
4900
5177
  logger.error(
4901
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
5178
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4902
5179
  );
4903
5180
  }
4904
5181
  evaluateJsCode();
4905
5182
  runHttpRequests();
4906
5183
  emitStateUpdate();
4907
5184
  });
4908
- const onUpdateFn_0_props_content = createMemo14(() => props.content);
5185
+ const onUpdateFn_0_props_content = createMemo15(() => props.content);
4909
5186
  function onUpdateFn_0() {
4910
5187
  if (props.content) {
4911
5188
  mergeNewContent(props.content);
4912
5189
  }
4913
5190
  }
4914
5191
  createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
4915
- const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo14(() => props.builderContextSignal.content?.data?.jsCode);
5192
+ const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo15(() => props.builderContextSignal.content?.data?.jsCode);
4916
5193
  function onUpdateFn_1() {
4917
5194
  evaluateJsCode();
4918
5195
  }
@@ -4922,7 +5199,7 @@ function EnableEditor(props) {
4922
5199
  onUpdateFn_1
4923
5200
  )
4924
5201
  );
4925
- const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo14(() => props.builderContextSignal.content?.data?.httpRequests);
5202
+ const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo15(() => props.builderContextSignal.content?.data?.httpRequests);
4926
5203
  function onUpdateFn_2() {
4927
5204
  runHttpRequests();
4928
5205
  }
@@ -4934,7 +5211,7 @@ function EnableEditor(props) {
4934
5211
  onUpdateFn_2
4935
5212
  )
4936
5213
  );
4937
- const onUpdateFn_3_props_builderContextSignal_rootState = createMemo14(
5214
+ const onUpdateFn_3_props_builderContextSignal_rootState = createMemo15(
4938
5215
  () => props.builderContextSignal.rootState
4939
5216
  );
4940
5217
  function onUpdateFn_3() {
@@ -4946,14 +5223,14 @@ function EnableEditor(props) {
4946
5223
  onUpdateFn_3
4947
5224
  )
4948
5225
  );
4949
- const onUpdateFn_4_props_data = createMemo14(() => props.data);
5226
+ const onUpdateFn_4_props_data = createMemo15(() => props.data);
4950
5227
  function onUpdateFn_4() {
4951
5228
  if (props.data) {
4952
5229
  mergeNewRootState(props.data);
4953
5230
  }
4954
5231
  }
4955
5232
  createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
4956
- const onUpdateFn_5_props_locale = createMemo14(() => props.locale);
5233
+ const onUpdateFn_5_props_locale = createMemo15(() => props.locale);
4957
5234
  function onUpdateFn_5() {
4958
5235
  if (props.locale) {
4959
5236
  mergeNewRootState({
@@ -4962,7 +5239,7 @@ function EnableEditor(props) {
4962
5239
  }
4963
5240
  }
4964
5241
  createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
4965
- return <builder_context_default.Provider value={props.builderContextSignal}><Show11 when={props.builderContextSignal.content}><Dynamic5
5242
+ return <builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
4966
5243
  class={getWrapperClassName(
4967
5244
  props.content?.testVariationId || props.content?.id
4968
5245
  )}
@@ -4975,14 +5252,14 @@ function EnableEditor(props) {
4975
5252
  {...showContentProps()}
4976
5253
  {...props.contentWrapperProps}
4977
5254
  component={ContentWrapper()}
4978
- >{props.children}</Dynamic5></Show11></builder_context_default.Provider>;
5255
+ >{props.children}</Dynamic5></Show12></builder_context_default.Provider>;
4979
5256
  }
4980
5257
  var Enable_editor_default = EnableEditor;
4981
5258
 
4982
5259
  // src/components/content/components/styles.tsx
4983
- import { createSignal as createSignal15 } from "solid-js";
5260
+ import { createSignal as createSignal16 } from "solid-js";
4984
5261
  function ContentStyles(props) {
4985
- const [injectedStyles, setInjectedStyles] = createSignal15(
5262
+ const [injectedStyles, setInjectedStyles] = createSignal16(
4986
5263
  `
4987
5264
  ${getCss({
4988
5265
  cssCode: props.cssCode,
@@ -5039,7 +5316,7 @@ var getContentInitialValue = ({
5039
5316
 
5040
5317
  // src/components/content/content.tsx
5041
5318
  function ContentComponent(props) {
5042
- const [scriptStr, setScriptStr] = createSignal16(
5319
+ const [scriptStr, setScriptStr] = createSignal17(
5043
5320
  getUpdateVariantVisibilityScript({
5044
5321
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5045
5322
  variationId: props.content?.testVariationId,
@@ -5047,7 +5324,7 @@ function ContentComponent(props) {
5047
5324
  contentId: props.content?.id
5048
5325
  })
5049
5326
  );
5050
- const [registeredComponents, setRegisteredComponents] = createSignal16(
5327
+ const [registeredComponents, setRegisteredComponents] = createSignal17(
5051
5328
  [
5052
5329
  ...getDefaultRegisteredComponents(),
5053
5330
  ...props.customComponents || []
@@ -5062,7 +5339,7 @@ function ContentComponent(props) {
5062
5339
  {}
5063
5340
  )
5064
5341
  );
5065
- const [builderContextSignal, setBuilderContextSignal] = createSignal16({
5342
+ const [builderContextSignal, setBuilderContextSignal] = createSignal17({
5066
5343
  content: getContentInitialValue({
5067
5344
  content: props.content,
5068
5345
  data: props.data
@@ -5120,16 +5397,16 @@ function ContentComponent(props) {
5120
5397
  setBuilderContextSignal
5121
5398
  }}
5122
5399
  >
5123
- <Show12 when={props.isSsrAbTest}><Inlined_script_default
5400
+ <Show13 when={props.isSsrAbTest}><Inlined_script_default
5124
5401
  id="builderio-variant-visibility"
5125
5402
  scriptStr={scriptStr()}
5126
- /></Show12>
5127
- <Show12 when={TARGET !== "reactNative"}><Styles_default
5403
+ /></Show13>
5404
+ <Show13 when={TARGET !== "reactNative"}><Styles_default
5128
5405
  isNestedRender={props.isNestedRender}
5129
5406
  contentId={builderContextSignal().content?.id}
5130
5407
  cssCode={builderContextSignal().content?.data?.cssCode}
5131
5408
  customFonts={builderContextSignal().content?.data?.customFonts}
5132
- /></Show12>
5409
+ /></Show13>
5133
5410
  <Blocks_default
5134
5411
  blocks={builderContextSignal().content?.data?.blocks}
5135
5412
  context={builderContextSignal()}
@@ -5142,13 +5419,13 @@ var Content_default = ContentComponent;
5142
5419
 
5143
5420
  // src/components/content-variants/content-variants.tsx
5144
5421
  function ContentVariants(props) {
5145
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal17(
5422
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal18(
5146
5423
  checkShouldRenderVariants({
5147
5424
  canTrack: getDefaultCanTrack(props.canTrack),
5148
5425
  content: props.content
5149
5426
  })
5150
5427
  );
5151
- const updateCookieAndStylesScriptStr = createMemo17(() => {
5428
+ const updateCookieAndStylesScriptStr = createMemo18(() => {
5152
5429
  return getUpdateCookieAndStylesScript(
5153
5430
  getVariants(props.content).map((value) => ({
5154
5431
  id: value.testVariationId,
@@ -5157,10 +5434,10 @@ function ContentVariants(props) {
5157
5434
  props.content?.id || ""
5158
5435
  );
5159
5436
  });
5160
- const hideVariantsStyleString = createMemo17(() => {
5437
+ const hideVariantsStyleString = createMemo18(() => {
5161
5438
  return getVariants(props.content).map((value) => `.variant-${value.testVariationId} { display: none; } `).join("");
5162
5439
  });
5163
- const defaultContent = createMemo17(() => {
5440
+ const defaultContent = createMemo18(() => {
5164
5441
  return shouldRenderVariants() ? {
5165
5442
  ...props.content,
5166
5443
  testVariationId: props.content?.id
@@ -5173,11 +5450,11 @@ function ContentVariants(props) {
5173
5450
  setShouldRenderVariants(false);
5174
5451
  });
5175
5452
  return <>
5176
- <Show13 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
5453
+ <Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
5177
5454
  id="builderio-init-variants-fns"
5178
5455
  scriptStr={getInitVariantsFnsScriptString()}
5179
- /></Show13>
5180
- <Show13 when={shouldRenderVariants()}>
5456
+ /></Show14>
5457
+ <Show14 when={shouldRenderVariants()}>
5181
5458
  <Inlined_styles_default
5182
5459
  id="builderio-variants"
5183
5460
  styles={hideVariantsStyleString()}
@@ -5186,7 +5463,7 @@ function ContentVariants(props) {
5186
5463
  id="builderio-variants-visibility"
5187
5464
  scriptStr={updateCookieAndStylesScriptStr()}
5188
5465
  />
5189
- <For8 each={getVariants(props.content)}>{(variant, _index) => {
5466
+ <For9 each={getVariants(props.content)}>{(variant, _index) => {
5190
5467
  const index = _index();
5191
5468
  return <Content_default
5192
5469
  isNestedRender={props.isNestedRender}
@@ -5210,8 +5487,8 @@ function ContentVariants(props) {
5210
5487
  contentWrapperProps={props.contentWrapperProps}
5211
5488
  trustedHosts={props.trustedHosts}
5212
5489
  />;
5213
- }}</For8>
5214
- </Show13>
5490
+ }}</For9>
5491
+ </Show14>
5215
5492
  <Content_default
5216
5493
  isNestedRender={props.isNestedRender}
5217
5494
  {...{}}
@@ -5264,14 +5541,14 @@ var fetchSymbolContent = async ({
5264
5541
 
5265
5542
  // src/blocks/symbol/symbol.tsx
5266
5543
  function Symbol(props) {
5267
- const [contentToUse, setContentToUse] = createSignal18(props.symbol?.content);
5268
- const blocksWrapper = createMemo18(() => {
5544
+ const [contentToUse, setContentToUse] = createSignal19(props.symbol?.content);
5545
+ const blocksWrapper = createMemo19(() => {
5269
5546
  return "div";
5270
5547
  });
5271
- const contentWrapper = createMemo18(() => {
5548
+ const contentWrapper = createMemo19(() => {
5272
5549
  return "div";
5273
5550
  });
5274
- const className = createMemo18(() => {
5551
+ const className = createMemo19(() => {
5275
5552
  return [
5276
5553
  ...[props.attributes[getClassPropName()]],
5277
5554
  "builder-symbol",
@@ -5293,7 +5570,7 @@ function Symbol(props) {
5293
5570
  }
5294
5571
  onMount5(() => {
5295
5572
  });
5296
- const onUpdateFn_0_props_symbol = createMemo18(() => props.symbol);
5573
+ const onUpdateFn_0_props_symbol = createMemo19(() => props.symbol);
5297
5574
  function onUpdateFn_0() {
5298
5575
  setContent();
5299
5576
  }