@builder.io/sdk-qwik 0.14.21 → 0.14.23

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.
@@ -499,6 +499,7 @@ function getProcessedBlock({ block, context, shouldEvaluateBindings, localState,
499
499
  else
500
500
  return transformedBlock;
501
501
  }
502
+ const camelToKebabCase = (str) => str ? str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
502
503
  function throttle(func, wait, options = {}) {
503
504
  let context;
504
505
  let args;
@@ -545,7 +546,6 @@ function assign(target, ..._args) {
545
546
  }
546
547
  return to;
547
548
  }
548
- const camelCaseToKebabCase = (str) => str ? str.replace(/([A-Z])/g, (g) => `-${g[0].toLowerCase()}`) : "";
549
549
  function bindAnimations(animations) {
550
550
  for (const animation of animations)
551
551
  switch (animation.trigger) {
@@ -596,7 +596,7 @@ function triggerAnimation(animation) {
596
596
  element.style.transitionDelay = "0";
597
597
  assign(element.style, animation.steps[0].styles);
598
598
  setTimeout(() => {
599
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
599
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
600
600
  if (animation.delay)
601
601
  element.style.transitionDelay = animation.delay + "s";
602
602
  assign(element.style, animation.steps[1].styles);
@@ -654,7 +654,7 @@ function bindScrollInViewAnimation(animation) {
654
654
  }
655
655
  attachDefaultState();
656
656
  setTimeout(() => {
657
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
657
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
658
658
  if (animation.delay)
659
659
  element.style.transitionDelay = animation.delay + "s";
660
660
  });
@@ -665,7 +665,6 @@ function bindScrollInViewAnimation(animation) {
665
665
  immediateOnScroll();
666
666
  });
667
667
  }
668
- const camelToKebabCase = (string) => string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
669
668
  const convertStyleMapToCSSArray = (style) => {
670
669
  const cssProps = Object.entries(style).map(([key, value]) => {
671
670
  if (typeof value === "string")
@@ -769,7 +768,8 @@ const shouldPassLinkComponent = (block) => {
769
768
  "Symbol",
770
769
  "Columns",
771
770
  "Form:Form",
772
- "Builder: Tabs"
771
+ "Builder: Tabs",
772
+ "Builder:Accordion"
773
773
  ].includes(block.name));
774
774
  };
775
775
  const shouldPassRegisteredComponents = (block) => {
@@ -777,7 +777,8 @@ const shouldPassRegisteredComponents = (block) => {
777
777
  "Symbol",
778
778
  "Columns",
779
779
  "Form:Form",
780
- "Builder: Tabs"
780
+ "Builder: Tabs",
781
+ "Builder:Accordion"
781
782
  ].includes(block.name));
782
783
  };
783
784
  const SIZES = {
@@ -895,7 +896,7 @@ const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
895
896
  className: `${className}:hover`,
896
897
  styles: {
897
898
  ...hoverStyles,
898
- transition: `all ${hoverAnimation.duration}s ${camelCaseToKebabCase(hoverAnimation.easing)}`,
899
+ transition: `all ${hoverAnimation.duration}s ${camelToKebabCase(hoverAnimation.easing)}`,
899
900
  transitionDelay: hoverAnimation.delay ? `${hoverAnimation.delay}s` : "0s"
900
901
  }
901
902
  }) || "";
@@ -1486,7 +1487,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
1486
1487
  }, 1, "jN_4") : null
1487
1488
  }, 1, "jN_5");
1488
1489
  }, "Block_component_nnPv0RY0U0k"));
1489
- const onClick$1 = function onClick2(props, state, className) {
1490
+ const onClick$3 = function onClick2(props, state, className) {
1490
1491
  var _a, _b;
1491
1492
  if (isEditing() && !((_a = props.blocks) == null ? void 0 : _a.length))
1492
1493
  (_b = window.parent) == null ? void 0 : _b.postMessage({
@@ -1533,7 +1534,7 @@ const BlocksWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
1533
1534
  },
1534
1535
  onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
1535
1536
  const [className2, props2, state2] = qwik.useLexicalScope();
1536
- return onClick$1(props2);
1537
+ return onClick$3(props2);
1537
1538
  }, "BlocksWrapper_component_onClick_ufezvOupQrM", [
1538
1539
  className,
1539
1540
  props,
@@ -1541,7 +1542,7 @@ const BlocksWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
1541
1542
  ]),
1542
1543
  onKeyPress$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
1543
1544
  const [className2, props2, state2] = qwik.useLexicalScope();
1544
- return onClick$1(props2);
1545
+ return onClick$3(props2);
1545
1546
  }, "BlocksWrapper_component_onKeyPress_9bz8vCQc3kg", [
1546
1547
  className,
1547
1548
  props,
@@ -2216,6 +2217,364 @@ const handleABTesting = async ({ item, canTrack }) => {
2216
2217
  };
2217
2218
  };
2218
2219
  const getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
2220
+ const defaultTitle = {
2221
+ "@type": "@builder.io/sdk:Element",
2222
+ layerName: "Accordion item title",
2223
+ responsiveStyles: {
2224
+ large: {
2225
+ marginTop: "10px",
2226
+ position: "relative",
2227
+ display: "flex",
2228
+ alignItems: "stretch",
2229
+ flexDirection: "column",
2230
+ paddingBottom: "10px"
2231
+ }
2232
+ },
2233
+ children: [
2234
+ {
2235
+ "@type": "@builder.io/sdk:Element",
2236
+ responsiveStyles: {
2237
+ large: {
2238
+ textAlign: "left",
2239
+ display: "flex",
2240
+ flexDirection: "column"
2241
+ }
2242
+ },
2243
+ component: {
2244
+ name: "Text",
2245
+ options: {
2246
+ text: "I am an accordion title. Click me!"
2247
+ }
2248
+ }
2249
+ }
2250
+ ]
2251
+ };
2252
+ const defaultDetail = {
2253
+ "@type": "@builder.io/sdk:Element",
2254
+ layerName: "Accordion item detail",
2255
+ responsiveStyles: {
2256
+ large: {
2257
+ position: "relative",
2258
+ display: "flex",
2259
+ alignItems: "stretch",
2260
+ flexDirection: "column",
2261
+ marginTop: "10px",
2262
+ paddingBottom: "10px"
2263
+ }
2264
+ },
2265
+ children: [
2266
+ {
2267
+ "@type": "@builder.io/sdk:Element",
2268
+ responsiveStyles: {
2269
+ large: {
2270
+ paddingTop: "50px",
2271
+ textAlign: "left",
2272
+ display: "flex",
2273
+ flexDirection: "column",
2274
+ paddingBottom: "50px"
2275
+ }
2276
+ },
2277
+ component: {
2278
+ name: "Text",
2279
+ options: {
2280
+ text: "I am an accordion detail, hello!"
2281
+ }
2282
+ }
2283
+ }
2284
+ ]
2285
+ };
2286
+ const componentInfo$h = {
2287
+ name: "Builder:Accordion",
2288
+ canHaveChildren: true,
2289
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
2290
+ defaultStyles: {
2291
+ display: "flex",
2292
+ flexDirection: "column",
2293
+ alignItems: "stretch"
2294
+ },
2295
+ inputs: [
2296
+ {
2297
+ name: "items",
2298
+ type: "list",
2299
+ broadcast: true,
2300
+ subFields: [
2301
+ {
2302
+ name: "title",
2303
+ type: "uiBlocks",
2304
+ hideFromUI: true,
2305
+ defaultValue: [
2306
+ defaultTitle
2307
+ ]
2308
+ },
2309
+ {
2310
+ name: "detail",
2311
+ type: "uiBlocks",
2312
+ hideFromUI: true,
2313
+ defaultValue: [
2314
+ defaultDetail
2315
+ ]
2316
+ }
2317
+ ],
2318
+ defaultValue: [
2319
+ {
2320
+ title: [
2321
+ defaultTitle
2322
+ ],
2323
+ detail: [
2324
+ defaultDetail
2325
+ ]
2326
+ },
2327
+ {
2328
+ title: [
2329
+ defaultTitle
2330
+ ],
2331
+ detail: [
2332
+ defaultDetail
2333
+ ]
2334
+ }
2335
+ ],
2336
+ showIf: (options) => !options.get("useChildrenForItems")
2337
+ },
2338
+ {
2339
+ name: "oneAtATime",
2340
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
2341
+ type: "boolean",
2342
+ defaultValue: false
2343
+ },
2344
+ {
2345
+ name: "grid",
2346
+ helperText: "Display as a grid",
2347
+ type: "boolean",
2348
+ defaultValue: false
2349
+ },
2350
+ {
2351
+ name: "gridRowWidth",
2352
+ helperText: "Display as a grid",
2353
+ type: "string",
2354
+ showIf: (options) => options.get("grid"),
2355
+ defaultValue: "25%"
2356
+ },
2357
+ {
2358
+ name: "useChildrenForItems",
2359
+ type: "boolean",
2360
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
2361
+ advanced: true,
2362
+ defaultValue: false,
2363
+ onChange: (options) => {
2364
+ if (options.get("useChildrenForItems") === true)
2365
+ options.set("items", []);
2366
+ }
2367
+ }
2368
+ ]
2369
+ };
2370
+ const convertOrderNumberToString = (order) => {
2371
+ return order.toString();
2372
+ };
2373
+ const getAccordionTitleClassName = function getAccordionTitleClassName2(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index) {
2374
+ return `builder-accordion-title builder-accordion-title-${state.open.includes(index) ? "open" : "closed"}`;
2375
+ };
2376
+ const getAccordionDetailClassName = function getAccordionDetailClassName2(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index) {
2377
+ return `builder-accordion-detail builder-accordion-detail-${state.open.includes(index) ? "open" : "closed"}`;
2378
+ };
2379
+ const onClick$2 = function onClick22(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index) {
2380
+ if (state.open.includes(index))
2381
+ state.open = onlyOneAtATime.value ? [] : state.open.filter((item) => item !== index);
2382
+ else
2383
+ state.open = onlyOneAtATime.value ? [
2384
+ index
2385
+ ] : state.open.concat(index);
2386
+ };
2387
+ const Accordion = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
2388
+ const state = qwik.useStore({
2389
+ open: []
2390
+ });
2391
+ const onlyOneAtATime = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
2392
+ const [props2] = qwik.useLexicalScope();
2393
+ return Boolean(props2.grid || props2.oneAtATime);
2394
+ }, "Accordion_component_onlyOneAtATime_useComputed_QYD7IoPU2HY", [
2395
+ props
2396
+ ]));
2397
+ const accordionStyles = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
2398
+ const [props2] = qwik.useLexicalScope();
2399
+ const styles = {
2400
+ display: "flex",
2401
+ alignItems: "stretch",
2402
+ flexDirection: "column",
2403
+ ...props2.grid && {
2404
+ flexDirection: "row",
2405
+ alignItems: "flex-start",
2406
+ flexWrap: "wrap"
2407
+ }
2408
+ };
2409
+ return styles;
2410
+ }, "Accordion_component_accordionStyles_useComputed_Jrd0cwGn25U", [
2411
+ props
2412
+ ]));
2413
+ const accordionTitleStyles = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
2414
+ const shared = {
2415
+ display: "flex",
2416
+ flexDirection: "column"
2417
+ };
2418
+ const styles = {
2419
+ ...shared,
2420
+ alignItems: "stretch",
2421
+ cursor: "pointer"
2422
+ };
2423
+ return Object.fromEntries(Object.entries(styles).filter(([_, value]) => value !== void 0));
2424
+ }, "Accordion_component_accordionTitleStyles_useComputed_FopdBMH0V6U"));
2425
+ const openGridItemOrder = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
2426
+ const [props2, state2] = qwik.useLexicalScope();
2427
+ let itemOrder = null;
2428
+ const getOpenGridItemPosition = props2.grid && state2.open.length;
2429
+ if (getOpenGridItemPosition && document) {
2430
+ const openItemIndex = state2.open[0];
2431
+ const openItem = document.querySelector(`.builder-accordion-title[data-index="${openItemIndex}"]`);
2432
+ let subjectItem = openItem;
2433
+ itemOrder = openItemIndex;
2434
+ if (subjectItem) {
2435
+ let prevItemRect = subjectItem.getBoundingClientRect();
2436
+ while (subjectItem = subjectItem && subjectItem.nextElementSibling)
2437
+ if (subjectItem) {
2438
+ if (subjectItem.classList.contains("builder-accordion-detail"))
2439
+ continue;
2440
+ const subjectItemRect = subjectItem.getBoundingClientRect();
2441
+ if (subjectItemRect.left > prevItemRect.left) {
2442
+ const index = parseInt(subjectItem.getAttribute("data-index") || "", 10);
2443
+ if (!isNaN(index)) {
2444
+ prevItemRect = subjectItemRect;
2445
+ itemOrder = index;
2446
+ }
2447
+ } else
2448
+ break;
2449
+ }
2450
+ }
2451
+ }
2452
+ if (typeof itemOrder === "number")
2453
+ itemOrder = itemOrder + 1;
2454
+ return itemOrder;
2455
+ }, "Accordion_component_openGridItemOrder_useComputed_cCQY1Vnxll0", [
2456
+ props,
2457
+ state
2458
+ ]));
2459
+ const accordionDetailStyles = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
2460
+ const [openGridItemOrder2, props2] = qwik.useLexicalScope();
2461
+ const styles = {
2462
+ order: typeof openGridItemOrder2.value === "number" ? openGridItemOrder2.value : void 0,
2463
+ ...props2.grid && {
2464
+ width: "100%"
2465
+ }
2466
+ };
2467
+ return Object.fromEntries(Object.entries(styles).filter(([_, value]) => value !== void 0));
2468
+ }, "Accordion_component_accordionDetailStyles_useComputed_S0QmQzGJoRo", [
2469
+ openGridItemOrder,
2470
+ props
2471
+ ]));
2472
+ return /* @__PURE__ */ qwik._jsxQ("div", null, {
2473
+ class: "builder-accordion",
2474
+ style: qwik._fnSignal((p0) => p0.value, [
2475
+ accordionStyles
2476
+ ], "p0.value")
2477
+ }, (props.items || []).map((item, index) => {
2478
+ qwik._jsxBranch();
2479
+ return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
2480
+ children: [
2481
+ /* @__PURE__ */ qwik._jsxQ("div", {
2482
+ class: getAccordionTitleClassName(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index),
2483
+ "data-index": index,
2484
+ onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
2485
+ const [accordionDetailStyles2, accordionStyles2, accordionTitleStyles2, index2, onlyOneAtATime2, openGridItemOrder2, props2, state2] = qwik.useLexicalScope();
2486
+ return onClick$2(props2, state2, onlyOneAtATime2, accordionStyles2, accordionTitleStyles2, openGridItemOrder2, accordionDetailStyles2, index2);
2487
+ }, "Accordion_component_div_Fragment_div_onClick_VtzhhJnK0XI", [
2488
+ accordionDetailStyles,
2489
+ accordionStyles,
2490
+ accordionTitleStyles,
2491
+ index,
2492
+ onlyOneAtATime,
2493
+ openGridItemOrder,
2494
+ props,
2495
+ state
2496
+ ]),
2497
+ style: {
2498
+ ...accordionTitleStyles.value,
2499
+ width: props.grid ? props.gridRowWidth : void 0,
2500
+ order: openGridItemOrder.value !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
2501
+ }
2502
+ }, null, /* @__PURE__ */ qwik._jsxC(Blocks, {
2503
+ get blocks() {
2504
+ return item.title;
2505
+ },
2506
+ path: `items.${index}.title`,
2507
+ get parent() {
2508
+ return props.builderBlock.id;
2509
+ },
2510
+ get context() {
2511
+ return props.builderContext;
2512
+ },
2513
+ get registeredComponents() {
2514
+ return props.builderComponents;
2515
+ },
2516
+ get linkComponent() {
2517
+ return props.builderLinkComponent;
2518
+ },
2519
+ [qwik._IMMUTABLE]: {
2520
+ blocks: qwik._wrapProp(item, "title"),
2521
+ context: qwik._fnSignal((p0) => p0.builderContext, [
2522
+ props
2523
+ ], "p0.builderContext"),
2524
+ linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
2525
+ props
2526
+ ], "p0.builderLinkComponent"),
2527
+ parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
2528
+ props
2529
+ ], "p0.builderBlock.id"),
2530
+ registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
2531
+ props
2532
+ ], "p0.builderComponents")
2533
+ }
2534
+ }, 3, "hf_0"), 0, null),
2535
+ state.open.includes(index) ? /* @__PURE__ */ qwik._jsxQ("div", {
2536
+ class: getAccordionDetailClassName(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index)
2537
+ }, {
2538
+ style: qwik._fnSignal((p0) => p0.value, [
2539
+ accordionDetailStyles
2540
+ ], "p0.value")
2541
+ }, /* @__PURE__ */ qwik._jsxC(Blocks, {
2542
+ get blocks() {
2543
+ return item.detail;
2544
+ },
2545
+ path: `items.${index}.detail`,
2546
+ get parent() {
2547
+ return props.builderBlock.id;
2548
+ },
2549
+ get context() {
2550
+ return props.builderContext;
2551
+ },
2552
+ get registeredComponents() {
2553
+ return props.builderComponents;
2554
+ },
2555
+ get linkComponent() {
2556
+ return props.builderLinkComponent;
2557
+ },
2558
+ [qwik._IMMUTABLE]: {
2559
+ blocks: qwik._wrapProp(item, "detail"),
2560
+ context: qwik._fnSignal((p0) => p0.builderContext, [
2561
+ props
2562
+ ], "p0.builderContext"),
2563
+ linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
2564
+ props
2565
+ ], "p0.builderLinkComponent"),
2566
+ parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
2567
+ props
2568
+ ], "p0.builderBlock.id"),
2569
+ registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
2570
+ props
2571
+ ], "p0.builderComponents")
2572
+ }
2573
+ }, 3, "hf_1"), 1, "hf_2") : null
2574
+ ]
2575
+ }, 1, "hf_3");
2576
+ }), 1, "hf_4");
2577
+ }, "Accordion_component_jkuUCHm0nt0"));
2219
2578
  const componentInfo$g = {
2220
2579
  name: "Core:Button",
2221
2580
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -2962,8 +3321,11 @@ const componentInfo$9 = {
2962
3321
  const activeTabContent = function activeTabContent2(props, state, active) {
2963
3322
  return props.tabs && props.tabs[active].content;
2964
3323
  };
2965
- const getActiveTabStyle = function getActiveTabStyle2(props, state, index) {
2966
- return state.activeTab === index ? props.activeTabStyle : {};
3324
+ const onClick$1 = function onClick23(props, state, index) {
3325
+ if (index === state.activeTab && props.collapsible)
3326
+ state.activeTab = -1;
3327
+ else
3328
+ state.activeTab = index;
2967
3329
  };
2968
3330
  const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
2969
3331
  qwik._jsxBranch();
@@ -2986,16 +3348,15 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
2986
3348
  class: `builder-tab-wrap ${state.activeTab === index ? "builder-tab-active" : ""}`,
2987
3349
  onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
2988
3350
  const [index2, props2, state2] = qwik.useLexicalScope();
2989
- if (index2 === state2.activeTab && props2.collapsible)
2990
- state2.activeTab = -1;
2991
- else
2992
- state2.activeTab = index2;
3351
+ return onClick$1(props2, state2, index2);
2993
3352
  }, "Tabs_component_div_div_span_onClick_hSTBabAHGks", [
2994
3353
  index,
2995
3354
  props,
2996
3355
  state
2997
3356
  ]),
2998
- style: getActiveTabStyle(props, state, index)
3357
+ style: {
3358
+ ...state.activeTab === index ? props.activeTabStyle : {}
3359
+ }
2999
3360
  }, null, /* @__PURE__ */ qwik._jsxC(Blocks, {
3000
3361
  get parent() {
3001
3362
  return props.builderBlock.id;
@@ -3591,11 +3952,11 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
3591
3952
  return;
3592
3953
  }
3593
3954
  event.preventDefault();
3594
- const el = event.currentTarget;
3955
+ const el = event.currentTarget || event.target;
3595
3956
  const headers = props.customHeaders || {};
3596
3957
  let body;
3597
3958
  const formData = new FormData(el);
3598
- const formPairs = Array.from(event.currentTarget.querySelectorAll("input,select,textarea")).filter((el2) => !!el2.name).map((el2) => {
3959
+ const formPairs = Array.from(el.querySelectorAll("input,select,textarea")).filter((el2) => !!el2.name).map((el2) => {
3599
3960
  let value;
3600
3961
  const key = el2.name;
3601
3962
  if (el2 instanceof HTMLInputElement) {
@@ -3842,6 +4203,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
3842
4203
  name: qwik._fnSignal((p0) => p0.name, [
3843
4204
  props
3844
4205
  ], "p0.name"),
4206
+ "preventdefault:submit": true,
3845
4207
  validate: qwik._fnSignal((p0) => p0.validate, [
3846
4208
  props
3847
4209
  ], "p0.validate")
@@ -4380,6 +4742,10 @@ const getDefaultRegisteredComponents = () => [
4380
4742
  {
4381
4743
  component: Tabs,
4382
4744
  ...componentInfo$9
4745
+ },
4746
+ {
4747
+ component: Accordion,
4748
+ ...componentInfo$h
4383
4749
  }
4384
4750
  ],
4385
4751
  ...getExtraComponents()
@@ -4838,7 +5204,7 @@ function isFromTrustedHost(trustedHosts, e) {
4838
5204
  const url = new URL(e.origin), hostname = url.hostname;
4839
5205
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4840
5206
  }
4841
- const SDK_VERSION = "0.14.21";
5207
+ const SDK_VERSION = "0.14.23";
4842
5208
  const registry = {};
4843
5209
  function register(type, info) {
4844
5210
  let typeList = registry[type];
@@ -5159,7 +5525,7 @@ const evaluateJsCode = function evaluateJsCode2(props, state, showContentProps,
5159
5525
  enableCache: false
5160
5526
  });
5161
5527
  };
5162
- const onClick = function onClick22(props, state, showContentProps, elementRef, event) {
5528
+ const onClick = function onClick24(props, state, showContentProps, elementRef, event) {
5163
5529
  var _a, _b;
5164
5530
  if (props.builderContextSignal.content) {
5165
5531
  const variationId = (_a = props.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
@@ -5318,7 +5684,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
5318
5684
  qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
5319
5685
  const [elementRef2, props2, showContentProps2, state2] = qwik.useLexicalScope();
5320
5686
  if (!props2.apiKey)
5321
- logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop.");
5687
+ logger.error("No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop.");
5322
5688
  evaluateJsCode(props2);
5323
5689
  runHttpRequests(props2, state2, showContentProps2, elementRef2);
5324
5690
  emitStateUpdate(props2);