@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.
@@ -3598,6 +3598,7 @@ function getProcessedBlock({ block, context, shouldEvaluateBindings, localState,
3598
3598
  else
3599
3599
  return transformedBlock;
3600
3600
  }
3601
+ const camelToKebabCase = (str) => str ? str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
3601
3602
  function throttle(func, wait, options = {}) {
3602
3603
  let context;
3603
3604
  let args;
@@ -3644,7 +3645,6 @@ function assign(target, ..._args) {
3644
3645
  }
3645
3646
  return to;
3646
3647
  }
3647
- const camelCaseToKebabCase = (str) => str ? str.replace(/([A-Z])/g, (g) => `-${g[0].toLowerCase()}`) : "";
3648
3648
  function bindAnimations(animations) {
3649
3649
  for (const animation of animations)
3650
3650
  switch (animation.trigger) {
@@ -3695,7 +3695,7 @@ function triggerAnimation(animation) {
3695
3695
  element.style.transitionDelay = "0";
3696
3696
  assign(element.style, animation.steps[0].styles);
3697
3697
  setTimeout(() => {
3698
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
3698
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
3699
3699
  if (animation.delay)
3700
3700
  element.style.transitionDelay = animation.delay + "s";
3701
3701
  assign(element.style, animation.steps[1].styles);
@@ -3753,7 +3753,7 @@ function bindScrollInViewAnimation(animation) {
3753
3753
  }
3754
3754
  attachDefaultState();
3755
3755
  setTimeout(() => {
3756
- element.style.transition = `all ${animation.duration}s ${camelCaseToKebabCase(animation.easing)}`;
3756
+ element.style.transition = `all ${animation.duration}s ${camelToKebabCase(animation.easing)}`;
3757
3757
  if (animation.delay)
3758
3758
  element.style.transitionDelay = animation.delay + "s";
3759
3759
  });
@@ -3764,7 +3764,6 @@ function bindScrollInViewAnimation(animation) {
3764
3764
  immediateOnScroll();
3765
3765
  });
3766
3766
  }
3767
- const camelToKebabCase = (string) => string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
3768
3767
  const convertStyleMapToCSSArray = (style) => {
3769
3768
  const cssProps = Object.entries(style).map(([key, value]) => {
3770
3769
  if (typeof value === "string")
@@ -3868,7 +3867,8 @@ const shouldPassLinkComponent = (block) => {
3868
3867
  "Symbol",
3869
3868
  "Columns",
3870
3869
  "Form:Form",
3871
- "Builder: Tabs"
3870
+ "Builder: Tabs",
3871
+ "Builder:Accordion"
3872
3872
  ].includes(block.name));
3873
3873
  };
3874
3874
  const shouldPassRegisteredComponents = (block) => {
@@ -3876,7 +3876,8 @@ const shouldPassRegisteredComponents = (block) => {
3876
3876
  "Symbol",
3877
3877
  "Columns",
3878
3878
  "Form:Form",
3879
- "Builder: Tabs"
3879
+ "Builder: Tabs",
3880
+ "Builder:Accordion"
3880
3881
  ].includes(block.name));
3881
3882
  };
3882
3883
  const SIZES = {
@@ -3994,7 +3995,7 @@ const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
3994
3995
  className: `${className}:hover`,
3995
3996
  styles: {
3996
3997
  ...hoverStyles,
3997
- transition: `all ${hoverAnimation.duration}s ${camelCaseToKebabCase(hoverAnimation.easing)}`,
3998
+ transition: `all ${hoverAnimation.duration}s ${camelToKebabCase(hoverAnimation.easing)}`,
3998
3999
  transitionDelay: hoverAnimation.delay ? `${hoverAnimation.delay}s` : "0s"
3999
4000
  }
4000
4001
  }) || "";
@@ -4585,7 +4586,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
4585
4586
  }, 1, "jN_4") : null
4586
4587
  }, 1, "jN_5");
4587
4588
  }, "Block_component_nnPv0RY0U0k"));
4588
- const onClick$1 = function onClick2(props, state, className) {
4589
+ const onClick$3 = function onClick2(props, state, className) {
4589
4590
  var _a, _b;
4590
4591
  if (isEditing() && !((_a = props.blocks) == null ? void 0 : _a.length))
4591
4592
  (_b = window.parent) == null ? void 0 : _b.postMessage({
@@ -4632,7 +4633,7 @@ const BlocksWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
4632
4633
  },
4633
4634
  onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
4634
4635
  const [className2, props2, state2] = qwik.useLexicalScope();
4635
- return onClick$1(props2);
4636
+ return onClick$3(props2);
4636
4637
  }, "BlocksWrapper_component_onClick_ufezvOupQrM", [
4637
4638
  className,
4638
4639
  props,
@@ -4640,7 +4641,7 @@ const BlocksWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
4640
4641
  ]),
4641
4642
  onKeyPress$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
4642
4643
  const [className2, props2, state2] = qwik.useLexicalScope();
4643
- return onClick$1(props2);
4644
+ return onClick$3(props2);
4644
4645
  }, "BlocksWrapper_component_onKeyPress_9bz8vCQc3kg", [
4645
4646
  className,
4646
4647
  props,
@@ -5315,6 +5316,364 @@ const handleABTesting = async ({ item, canTrack }) => {
5315
5316
  };
5316
5317
  };
5317
5318
  const getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
5319
+ const defaultTitle = {
5320
+ "@type": "@builder.io/sdk:Element",
5321
+ layerName: "Accordion item title",
5322
+ responsiveStyles: {
5323
+ large: {
5324
+ marginTop: "10px",
5325
+ position: "relative",
5326
+ display: "flex",
5327
+ alignItems: "stretch",
5328
+ flexDirection: "column",
5329
+ paddingBottom: "10px"
5330
+ }
5331
+ },
5332
+ children: [
5333
+ {
5334
+ "@type": "@builder.io/sdk:Element",
5335
+ responsiveStyles: {
5336
+ large: {
5337
+ textAlign: "left",
5338
+ display: "flex",
5339
+ flexDirection: "column"
5340
+ }
5341
+ },
5342
+ component: {
5343
+ name: "Text",
5344
+ options: {
5345
+ text: "I am an accordion title. Click me!"
5346
+ }
5347
+ }
5348
+ }
5349
+ ]
5350
+ };
5351
+ const defaultDetail = {
5352
+ "@type": "@builder.io/sdk:Element",
5353
+ layerName: "Accordion item detail",
5354
+ responsiveStyles: {
5355
+ large: {
5356
+ position: "relative",
5357
+ display: "flex",
5358
+ alignItems: "stretch",
5359
+ flexDirection: "column",
5360
+ marginTop: "10px",
5361
+ paddingBottom: "10px"
5362
+ }
5363
+ },
5364
+ children: [
5365
+ {
5366
+ "@type": "@builder.io/sdk:Element",
5367
+ responsiveStyles: {
5368
+ large: {
5369
+ paddingTop: "50px",
5370
+ textAlign: "left",
5371
+ display: "flex",
5372
+ flexDirection: "column",
5373
+ paddingBottom: "50px"
5374
+ }
5375
+ },
5376
+ component: {
5377
+ name: "Text",
5378
+ options: {
5379
+ text: "I am an accordion detail, hello!"
5380
+ }
5381
+ }
5382
+ }
5383
+ ]
5384
+ };
5385
+ const componentInfo$h = {
5386
+ name: "Builder:Accordion",
5387
+ canHaveChildren: true,
5388
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
5389
+ defaultStyles: {
5390
+ display: "flex",
5391
+ flexDirection: "column",
5392
+ alignItems: "stretch"
5393
+ },
5394
+ inputs: [
5395
+ {
5396
+ name: "items",
5397
+ type: "list",
5398
+ broadcast: true,
5399
+ subFields: [
5400
+ {
5401
+ name: "title",
5402
+ type: "uiBlocks",
5403
+ hideFromUI: true,
5404
+ defaultValue: [
5405
+ defaultTitle
5406
+ ]
5407
+ },
5408
+ {
5409
+ name: "detail",
5410
+ type: "uiBlocks",
5411
+ hideFromUI: true,
5412
+ defaultValue: [
5413
+ defaultDetail
5414
+ ]
5415
+ }
5416
+ ],
5417
+ defaultValue: [
5418
+ {
5419
+ title: [
5420
+ defaultTitle
5421
+ ],
5422
+ detail: [
5423
+ defaultDetail
5424
+ ]
5425
+ },
5426
+ {
5427
+ title: [
5428
+ defaultTitle
5429
+ ],
5430
+ detail: [
5431
+ defaultDetail
5432
+ ]
5433
+ }
5434
+ ],
5435
+ showIf: (options) => !options.get("useChildrenForItems")
5436
+ },
5437
+ {
5438
+ name: "oneAtATime",
5439
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
5440
+ type: "boolean",
5441
+ defaultValue: false
5442
+ },
5443
+ {
5444
+ name: "grid",
5445
+ helperText: "Display as a grid",
5446
+ type: "boolean",
5447
+ defaultValue: false
5448
+ },
5449
+ {
5450
+ name: "gridRowWidth",
5451
+ helperText: "Display as a grid",
5452
+ type: "string",
5453
+ showIf: (options) => options.get("grid"),
5454
+ defaultValue: "25%"
5455
+ },
5456
+ {
5457
+ name: "useChildrenForItems",
5458
+ type: "boolean",
5459
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
5460
+ advanced: true,
5461
+ defaultValue: false,
5462
+ onChange: (options) => {
5463
+ if (options.get("useChildrenForItems") === true)
5464
+ options.set("items", []);
5465
+ }
5466
+ }
5467
+ ]
5468
+ };
5469
+ const convertOrderNumberToString = (order) => {
5470
+ return order.toString();
5471
+ };
5472
+ const getAccordionTitleClassName = function getAccordionTitleClassName2(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index) {
5473
+ return `builder-accordion-title builder-accordion-title-${state.open.includes(index) ? "open" : "closed"}`;
5474
+ };
5475
+ const getAccordionDetailClassName = function getAccordionDetailClassName2(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index) {
5476
+ return `builder-accordion-detail builder-accordion-detail-${state.open.includes(index) ? "open" : "closed"}`;
5477
+ };
5478
+ const onClick$2 = function onClick22(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index) {
5479
+ if (state.open.includes(index))
5480
+ state.open = onlyOneAtATime.value ? [] : state.open.filter((item) => item !== index);
5481
+ else
5482
+ state.open = onlyOneAtATime.value ? [
5483
+ index
5484
+ ] : state.open.concat(index);
5485
+ };
5486
+ const Accordion = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
5487
+ const state = qwik.useStore({
5488
+ open: []
5489
+ });
5490
+ const onlyOneAtATime = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
5491
+ const [props2] = qwik.useLexicalScope();
5492
+ return Boolean(props2.grid || props2.oneAtATime);
5493
+ }, "Accordion_component_onlyOneAtATime_useComputed_QYD7IoPU2HY", [
5494
+ props
5495
+ ]));
5496
+ const accordionStyles = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
5497
+ const [props2] = qwik.useLexicalScope();
5498
+ const styles = {
5499
+ display: "flex",
5500
+ alignItems: "stretch",
5501
+ flexDirection: "column",
5502
+ ...props2.grid && {
5503
+ flexDirection: "row",
5504
+ alignItems: "flex-start",
5505
+ flexWrap: "wrap"
5506
+ }
5507
+ };
5508
+ return styles;
5509
+ }, "Accordion_component_accordionStyles_useComputed_Jrd0cwGn25U", [
5510
+ props
5511
+ ]));
5512
+ const accordionTitleStyles = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
5513
+ const shared = {
5514
+ display: "flex",
5515
+ flexDirection: "column"
5516
+ };
5517
+ const styles = {
5518
+ ...shared,
5519
+ alignItems: "stretch",
5520
+ cursor: "pointer"
5521
+ };
5522
+ return Object.fromEntries(Object.entries(styles).filter(([_, value]) => value !== void 0));
5523
+ }, "Accordion_component_accordionTitleStyles_useComputed_FopdBMH0V6U"));
5524
+ const openGridItemOrder = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
5525
+ const [props2, state2] = qwik.useLexicalScope();
5526
+ let itemOrder = null;
5527
+ const getOpenGridItemPosition = props2.grid && state2.open.length;
5528
+ if (getOpenGridItemPosition && document) {
5529
+ const openItemIndex = state2.open[0];
5530
+ const openItem = document.querySelector(`.builder-accordion-title[data-index="${openItemIndex}"]`);
5531
+ let subjectItem = openItem;
5532
+ itemOrder = openItemIndex;
5533
+ if (subjectItem) {
5534
+ let prevItemRect = subjectItem.getBoundingClientRect();
5535
+ while (subjectItem = subjectItem && subjectItem.nextElementSibling)
5536
+ if (subjectItem) {
5537
+ if (subjectItem.classList.contains("builder-accordion-detail"))
5538
+ continue;
5539
+ const subjectItemRect = subjectItem.getBoundingClientRect();
5540
+ if (subjectItemRect.left > prevItemRect.left) {
5541
+ const index = parseInt(subjectItem.getAttribute("data-index") || "", 10);
5542
+ if (!isNaN(index)) {
5543
+ prevItemRect = subjectItemRect;
5544
+ itemOrder = index;
5545
+ }
5546
+ } else
5547
+ break;
5548
+ }
5549
+ }
5550
+ }
5551
+ if (typeof itemOrder === "number")
5552
+ itemOrder = itemOrder + 1;
5553
+ return itemOrder;
5554
+ }, "Accordion_component_openGridItemOrder_useComputed_cCQY1Vnxll0", [
5555
+ props,
5556
+ state
5557
+ ]));
5558
+ const accordionDetailStyles = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
5559
+ const [openGridItemOrder2, props2] = qwik.useLexicalScope();
5560
+ const styles = {
5561
+ order: typeof openGridItemOrder2.value === "number" ? openGridItemOrder2.value : void 0,
5562
+ ...props2.grid && {
5563
+ width: "100%"
5564
+ }
5565
+ };
5566
+ return Object.fromEntries(Object.entries(styles).filter(([_, value]) => value !== void 0));
5567
+ }, "Accordion_component_accordionDetailStyles_useComputed_S0QmQzGJoRo", [
5568
+ openGridItemOrder,
5569
+ props
5570
+ ]));
5571
+ return /* @__PURE__ */ qwik._jsxQ("div", null, {
5572
+ class: "builder-accordion",
5573
+ style: qwik._fnSignal((p0) => p0.value, [
5574
+ accordionStyles
5575
+ ], "p0.value")
5576
+ }, (props.items || []).map((item, index) => {
5577
+ qwik._jsxBranch();
5578
+ return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
5579
+ children: [
5580
+ /* @__PURE__ */ qwik._jsxQ("div", {
5581
+ class: getAccordionTitleClassName(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index),
5582
+ "data-index": index,
5583
+ onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
5584
+ const [accordionDetailStyles2, accordionStyles2, accordionTitleStyles2, index2, onlyOneAtATime2, openGridItemOrder2, props2, state2] = qwik.useLexicalScope();
5585
+ return onClick$2(props2, state2, onlyOneAtATime2, accordionStyles2, accordionTitleStyles2, openGridItemOrder2, accordionDetailStyles2, index2);
5586
+ }, "Accordion_component_div_Fragment_div_onClick_VtzhhJnK0XI", [
5587
+ accordionDetailStyles,
5588
+ accordionStyles,
5589
+ accordionTitleStyles,
5590
+ index,
5591
+ onlyOneAtATime,
5592
+ openGridItemOrder,
5593
+ props,
5594
+ state
5595
+ ]),
5596
+ style: {
5597
+ ...accordionTitleStyles.value,
5598
+ width: props.grid ? props.gridRowWidth : void 0,
5599
+ order: openGridItemOrder.value !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
5600
+ }
5601
+ }, null, /* @__PURE__ */ qwik._jsxC(Blocks, {
5602
+ get blocks() {
5603
+ return item.title;
5604
+ },
5605
+ path: `items.${index}.title`,
5606
+ get parent() {
5607
+ return props.builderBlock.id;
5608
+ },
5609
+ get context() {
5610
+ return props.builderContext;
5611
+ },
5612
+ get registeredComponents() {
5613
+ return props.builderComponents;
5614
+ },
5615
+ get linkComponent() {
5616
+ return props.builderLinkComponent;
5617
+ },
5618
+ [qwik._IMMUTABLE]: {
5619
+ blocks: qwik._wrapProp(item, "title"),
5620
+ context: qwik._fnSignal((p0) => p0.builderContext, [
5621
+ props
5622
+ ], "p0.builderContext"),
5623
+ linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
5624
+ props
5625
+ ], "p0.builderLinkComponent"),
5626
+ parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
5627
+ props
5628
+ ], "p0.builderBlock.id"),
5629
+ registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
5630
+ props
5631
+ ], "p0.builderComponents")
5632
+ }
5633
+ }, 3, "hf_0"), 0, null),
5634
+ state.open.includes(index) ? /* @__PURE__ */ qwik._jsxQ("div", {
5635
+ class: getAccordionDetailClassName(props, state, onlyOneAtATime, accordionStyles, accordionTitleStyles, openGridItemOrder, accordionDetailStyles, index)
5636
+ }, {
5637
+ style: qwik._fnSignal((p0) => p0.value, [
5638
+ accordionDetailStyles
5639
+ ], "p0.value")
5640
+ }, /* @__PURE__ */ qwik._jsxC(Blocks, {
5641
+ get blocks() {
5642
+ return item.detail;
5643
+ },
5644
+ path: `items.${index}.detail`,
5645
+ get parent() {
5646
+ return props.builderBlock.id;
5647
+ },
5648
+ get context() {
5649
+ return props.builderContext;
5650
+ },
5651
+ get registeredComponents() {
5652
+ return props.builderComponents;
5653
+ },
5654
+ get linkComponent() {
5655
+ return props.builderLinkComponent;
5656
+ },
5657
+ [qwik._IMMUTABLE]: {
5658
+ blocks: qwik._wrapProp(item, "detail"),
5659
+ context: qwik._fnSignal((p0) => p0.builderContext, [
5660
+ props
5661
+ ], "p0.builderContext"),
5662
+ linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
5663
+ props
5664
+ ], "p0.builderLinkComponent"),
5665
+ parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
5666
+ props
5667
+ ], "p0.builderBlock.id"),
5668
+ registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
5669
+ props
5670
+ ], "p0.builderComponents")
5671
+ }
5672
+ }, 3, "hf_1"), 1, "hf_2") : null
5673
+ ]
5674
+ }, 1, "hf_3");
5675
+ }), 1, "hf_4");
5676
+ }, "Accordion_component_jkuUCHm0nt0"));
5318
5677
  const componentInfo$g = {
5319
5678
  name: "Core:Button",
5320
5679
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -6061,8 +6420,11 @@ const componentInfo$9 = {
6061
6420
  const activeTabContent = function activeTabContent2(props, state, active) {
6062
6421
  return props.tabs && props.tabs[active].content;
6063
6422
  };
6064
- const getActiveTabStyle = function getActiveTabStyle2(props, state, index) {
6065
- return state.activeTab === index ? props.activeTabStyle : {};
6423
+ const onClick$1 = function onClick23(props, state, index) {
6424
+ if (index === state.activeTab && props.collapsible)
6425
+ state.activeTab = -1;
6426
+ else
6427
+ state.activeTab = index;
6066
6428
  };
6067
6429
  const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
6068
6430
  qwik._jsxBranch();
@@ -6085,16 +6447,15 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
6085
6447
  class: `builder-tab-wrap ${state.activeTab === index ? "builder-tab-active" : ""}`,
6086
6448
  onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
6087
6449
  const [index2, props2, state2] = qwik.useLexicalScope();
6088
- if (index2 === state2.activeTab && props2.collapsible)
6089
- state2.activeTab = -1;
6090
- else
6091
- state2.activeTab = index2;
6450
+ return onClick$1(props2, state2, index2);
6092
6451
  }, "Tabs_component_div_div_span_onClick_hSTBabAHGks", [
6093
6452
  index,
6094
6453
  props,
6095
6454
  state
6096
6455
  ]),
6097
- style: getActiveTabStyle(props, state, index)
6456
+ style: {
6457
+ ...state.activeTab === index ? props.activeTabStyle : {}
6458
+ }
6098
6459
  }, null, /* @__PURE__ */ qwik._jsxC(Blocks, {
6099
6460
  get parent() {
6100
6461
  return props.builderBlock.id;
@@ -6690,11 +7051,11 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
6690
7051
  return;
6691
7052
  }
6692
7053
  event.preventDefault();
6693
- const el = event.currentTarget;
7054
+ const el = event.currentTarget || event.target;
6694
7055
  const headers = props.customHeaders || {};
6695
7056
  let body;
6696
7057
  const formData = new FormData(el);
6697
- const formPairs = Array.from(event.currentTarget.querySelectorAll("input,select,textarea")).filter((el2) => !!el2.name).map((el2) => {
7058
+ const formPairs = Array.from(el.querySelectorAll("input,select,textarea")).filter((el2) => !!el2.name).map((el2) => {
6698
7059
  let value;
6699
7060
  const key = el2.name;
6700
7061
  if (el2 instanceof HTMLInputElement) {
@@ -6941,6 +7302,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
6941
7302
  name: qwik._fnSignal((p0) => p0.name, [
6942
7303
  props
6943
7304
  ], "p0.name"),
7305
+ "preventdefault:submit": true,
6944
7306
  validate: qwik._fnSignal((p0) => p0.validate, [
6945
7307
  props
6946
7308
  ], "p0.validate")
@@ -7479,6 +7841,10 @@ const getDefaultRegisteredComponents = () => [
7479
7841
  {
7480
7842
  component: Tabs,
7481
7843
  ...componentInfo$9
7844
+ },
7845
+ {
7846
+ component: Accordion,
7847
+ ...componentInfo$h
7482
7848
  }
7483
7849
  ],
7484
7850
  ...getExtraComponents()
@@ -7937,7 +8303,7 @@ function isFromTrustedHost(trustedHosts, e) {
7937
8303
  const url = new URL(e.origin), hostname = url.hostname;
7938
8304
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
7939
8305
  }
7940
- const SDK_VERSION = "0.14.21";
8306
+ const SDK_VERSION = "0.14.23";
7941
8307
  const registry = {};
7942
8308
  function register(type, info) {
7943
8309
  let typeList = registry[type];
@@ -8258,7 +8624,7 @@ const evaluateJsCode = function evaluateJsCode2(props, state, showContentProps,
8258
8624
  enableCache: false
8259
8625
  });
8260
8626
  };
8261
- const onClick = function onClick22(props, state, showContentProps, elementRef, event) {
8627
+ const onClick = function onClick24(props, state, showContentProps, elementRef, event) {
8262
8628
  var _a, _b;
8263
8629
  if (props.builderContextSignal.content) {
8264
8630
  const variationId = (_a = props.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
@@ -8417,7 +8783,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
8417
8783
  qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
8418
8784
  const [elementRef2, props2, showContentProps2, state2] = qwik.useLexicalScope();
8419
8785
  if (!props2.apiKey)
8420
- logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop.");
8786
+ logger.error("No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop.");
8421
8787
  evaluateJsCode(props2);
8422
8788
  runHttpRequests(props2, state2, showContentProps2, elementRef2);
8423
8789
  emitStateUpdate(props2);