@builder.io/sdk-qwik 0.15.2 → 0.16.0

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.
@@ -771,56 +771,37 @@ const getRepeatItemData = ({ block, context }) => {
771
771
  }));
772
772
  return repeatArray;
773
773
  };
774
- const applyDefaults = (shouldReceiveBuilderProps) => {
775
- return {
776
- // once we bump to a major version, toggle this to `false`.
777
- builderBlock: true,
778
- // once we bump to a major version, toggle this to `false`.
779
- builderContext: true,
780
- builderComponents: false,
781
- builderLinkComponent: false,
782
- ...shouldReceiveBuilderProps
783
- };
784
- };
785
774
  const provideLinkComponent = (block, linkComponent) => {
786
- if (!block)
787
- return {};
788
- const shouldReceiveProp = applyDefaults(block.shouldReceiveBuilderProps).builderLinkComponent;
789
- if (!shouldReceiveProp)
790
- return {};
791
- return {
792
- builderLinkComponent: linkComponent
793
- };
775
+ var _a;
776
+ if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderLinkComponent)
777
+ return {
778
+ builderLinkComponent: linkComponent
779
+ };
780
+ return {};
794
781
  };
795
782
  const provideRegisteredComponents = (block, registeredComponents) => {
796
- if (!block)
797
- return {};
798
- const shouldReceiveProp = applyDefaults(block.shouldReceiveBuilderProps).builderComponents;
799
- if (!shouldReceiveProp)
800
- return {};
801
- return {
802
- builderComponents: registeredComponents
803
- };
783
+ var _a;
784
+ if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderComponents)
785
+ return {
786
+ builderComponents: registeredComponents
787
+ };
788
+ return {};
804
789
  };
805
790
  const provideBuilderBlock = (block, builderBlock) => {
806
- if (!block)
807
- return {};
808
- const shouldReceiveProp = applyDefaults(block.shouldReceiveBuilderProps).builderBlock;
809
- if (!shouldReceiveProp)
810
- return {};
811
- return {
812
- builderBlock
813
- };
791
+ var _a;
792
+ if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderBlock)
793
+ return {
794
+ builderBlock
795
+ };
796
+ return {};
814
797
  };
815
798
  const provideBuilderContext = (block, context) => {
816
- if (!block)
817
- return {};
818
- const shouldReceiveProp = applyDefaults(block.shouldReceiveBuilderProps).builderContext;
819
- if (!shouldReceiveProp)
820
- return {};
821
- return {
822
- builderContext: context
823
- };
799
+ var _a;
800
+ if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderContext)
801
+ return {
802
+ builderContext: context
803
+ };
804
+ return {};
824
805
  };
825
806
  const SIZES = {
826
807
  small: {
@@ -1708,8 +1689,9 @@ const getWidth = function getWidth2(props, state, index) {
1708
1689
  return ((_a = state.cols[index]) == null ? void 0 : _a.width) || 100 / state.cols.length;
1709
1690
  };
1710
1691
  const getColumnCssWidth = function getColumnCssWidth2(props, state, index) {
1711
- const subtractWidth = state.gutterSize * (state.cols.length - 1) / state.cols.length;
1712
- return `calc(${getWidth(props, state, index)}% - ${subtractWidth}px)`;
1692
+ const width = getWidth(props, state, index);
1693
+ const subtractWidth = state.gutterSize * (state.cols.length - 1) * (width / 100);
1694
+ return `calc(${width}% - ${subtractWidth}px)`;
1713
1695
  };
1714
1696
  const getTabletStyle = function getTabletStyle2(props, state, { stackedStyle, desktopStyle }) {
1715
1697
  return state.stackAt === "tablet" ? stackedStyle : desktopStyle;
@@ -2656,9 +2638,6 @@ const componentInfo$h = {
2656
2638
  static: true,
2657
2639
  noWrap: true,
2658
2640
  shouldReceiveBuilderProps: {
2659
- builderBlock: false,
2660
- builderContext: false,
2661
- builderComponents: false,
2662
2641
  builderLinkComponent: true
2663
2642
  }
2664
2643
  };
@@ -2911,12 +2890,6 @@ const componentInfo$g = {
2911
2890
  }
2912
2891
  };
2913
2892
  const componentInfo$f = {
2914
- shouldReceiveBuilderProps: {
2915
- builderBlock: false,
2916
- builderContext: false,
2917
- builderComponents: false,
2918
- builderLinkComponent: false
2919
- },
2920
2893
  name: "Fragment",
2921
2894
  static: true,
2922
2895
  hidden: true,
@@ -3078,19 +3051,10 @@ const componentInfo$e = {
3078
3051
  }
3079
3052
  ],
3080
3053
  shouldReceiveBuilderProps: {
3081
- builderBlock: true,
3082
- builderContext: false,
3083
- builderComponents: false,
3084
- builderLinkComponent: false
3054
+ builderBlock: true
3085
3055
  }
3086
3056
  };
3087
3057
  const componentInfo$d = {
3088
- shouldReceiveBuilderProps: {
3089
- builderBlock: false,
3090
- builderContext: false,
3091
- builderComponents: false,
3092
- builderLinkComponent: false
3093
- },
3094
3058
  name: "Core:Section",
3095
3059
  static: true,
3096
3060
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3151,10 +3115,7 @@ const componentInfo$c = {
3151
3115
  }
3152
3116
  ],
3153
3117
  shouldReceiveBuilderProps: {
3154
- builderBlock: false,
3155
- builderContext: true,
3156
- builderComponents: false,
3157
- builderLinkComponent: false
3118
+ builderContext: true
3158
3119
  }
3159
3120
  };
3160
3121
  const Slot = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
@@ -3528,10 +3489,7 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
3528
3489
  }, "Tabs_component_MhWcxXy0lMY"));
3529
3490
  const componentInfo$9 = {
3530
3491
  shouldReceiveBuilderProps: {
3531
- builderBlock: false,
3532
- builderContext: false,
3533
- builderComponents: false,
3534
- builderLinkComponent: false
3492
+ builderBlock: false
3535
3493
  },
3536
3494
  name: "Text",
3537
3495
  static: true,
@@ -3568,12 +3526,6 @@ const Text = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
3568
3526
  }, null, 3, "yO_0");
3569
3527
  }, "Text_component_15p0cKUxgIE"));
3570
3528
  const componentInfo$8 = {
3571
- shouldReceiveBuilderProps: {
3572
- builderBlock: false,
3573
- builderContext: false,
3574
- builderComponents: false,
3575
- builderLinkComponent: false
3576
- },
3577
3529
  name: "Custom Code",
3578
3530
  static: true,
3579
3531
  requiredPermissions: [
@@ -3653,12 +3605,6 @@ const CustomCode = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
3653
3605
  }, null, 3, "bY_0");
3654
3606
  }, "CustomCode_component_uYOSy7w7Zqw"));
3655
3607
  const componentInfo$7 = {
3656
- shouldReceiveBuilderProps: {
3657
- builderBlock: false,
3658
- builderContext: false,
3659
- builderComponents: false,
3660
- builderLinkComponent: false
3661
- },
3662
3608
  name: "Embed",
3663
3609
  static: true,
3664
3610
  inputs: [
@@ -4321,12 +4267,6 @@ const STYLES = `
4321
4267
  }
4322
4268
  `;
4323
4269
  const componentInfo$5 = {
4324
- shouldReceiveBuilderProps: {
4325
- builderBlock: false,
4326
- builderContext: false,
4327
- builderComponents: false,
4328
- builderLinkComponent: false
4329
- },
4330
4270
  name: "Form:Input",
4331
4271
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4332
4272
  inputs: [
@@ -4410,12 +4350,6 @@ const FormInputComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
4410
4350
  });
4411
4351
  }, "FormInputComponent_component_AUUjdN0ueMs"));
4412
4352
  const componentInfo$4 = {
4413
- shouldReceiveBuilderProps: {
4414
- builderBlock: false,
4415
- builderContext: false,
4416
- builderComponents: false,
4417
- builderLinkComponent: false
4418
- },
4419
4353
  name: "Form:Select",
4420
4354
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4421
4355
  defaultStyles: {
@@ -4485,12 +4419,6 @@ const SelectComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
4485
4419
  }));
4486
4420
  }, "SelectComponent_component_SPKbsFLikZU"));
4487
4421
  const componentInfo$3 = {
4488
- shouldReceiveBuilderProps: {
4489
- builderBlock: false,
4490
- builderContext: false,
4491
- builderComponents: false,
4492
- builderLinkComponent: false
4493
- },
4494
4422
  name: "Form:SubmitButton",
4495
4423
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4496
4424
  defaultStyles: {
@@ -4525,12 +4453,6 @@ const SubmitButton = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
4525
4453
  }, 0, "6z_0");
4526
4454
  }, "SubmitButton_component_NXvMBMCDhwc"));
4527
4455
  const componentInfo$2 = {
4528
- shouldReceiveBuilderProps: {
4529
- builderBlock: false,
4530
- builderContext: false,
4531
- builderComponents: false,
4532
- builderLinkComponent: false
4533
- },
4534
4456
  name: "Form:TextArea",
4535
4457
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4536
4458
  inputs: [
@@ -4595,12 +4517,6 @@ const Textarea = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
4595
4517
  }, 0, "kE_0");
4596
4518
  }, "Textarea_component_o1TcxV139Oc"));
4597
4519
  const componentInfo$1 = {
4598
- shouldReceiveBuilderProps: {
4599
- builderBlock: false,
4600
- builderContext: false,
4601
- builderComponents: false,
4602
- builderLinkComponent: false
4603
- },
4604
4520
  // friendlyName?
4605
4521
  name: "Raw:Img",
4606
4522
  hideFromInsertMenu: true,
@@ -4764,10 +4680,7 @@ const componentInfo = {
4764
4680
  }
4765
4681
  ],
4766
4682
  shouldReceiveBuilderProps: {
4767
- builderBlock: true,
4768
- builderContext: false,
4769
- builderComponents: false,
4770
- builderLinkComponent: false
4683
+ builderBlock: true
4771
4684
  }
4772
4685
  };
4773
4686
  const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
@@ -5415,7 +5328,7 @@ function isFromTrustedHost(trustedHosts, e) {
5415
5328
  const url = new URL(e.origin), hostname = url.hostname;
5416
5329
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5417
5330
  }
5418
- const SDK_VERSION = "0.15.2";
5331
+ const SDK_VERSION = "0.16.0";
5419
5332
  const registry = {};
5420
5333
  function register(type, info) {
5421
5334
  let typeList = registry[type];
@@ -769,56 +769,37 @@ const getRepeatItemData = ({ block, context }) => {
769
769
  }));
770
770
  return repeatArray;
771
771
  };
772
- const applyDefaults = (shouldReceiveBuilderProps) => {
773
- return {
774
- // once we bump to a major version, toggle this to `false`.
775
- builderBlock: true,
776
- // once we bump to a major version, toggle this to `false`.
777
- builderContext: true,
778
- builderComponents: false,
779
- builderLinkComponent: false,
780
- ...shouldReceiveBuilderProps
781
- };
782
- };
783
772
  const provideLinkComponent = (block, linkComponent) => {
784
- if (!block)
785
- return {};
786
- const shouldReceiveProp = applyDefaults(block.shouldReceiveBuilderProps).builderLinkComponent;
787
- if (!shouldReceiveProp)
788
- return {};
789
- return {
790
- builderLinkComponent: linkComponent
791
- };
773
+ var _a;
774
+ if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderLinkComponent)
775
+ return {
776
+ builderLinkComponent: linkComponent
777
+ };
778
+ return {};
792
779
  };
793
780
  const provideRegisteredComponents = (block, registeredComponents) => {
794
- if (!block)
795
- return {};
796
- const shouldReceiveProp = applyDefaults(block.shouldReceiveBuilderProps).builderComponents;
797
- if (!shouldReceiveProp)
798
- return {};
799
- return {
800
- builderComponents: registeredComponents
801
- };
781
+ var _a;
782
+ if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderComponents)
783
+ return {
784
+ builderComponents: registeredComponents
785
+ };
786
+ return {};
802
787
  };
803
788
  const provideBuilderBlock = (block, builderBlock) => {
804
- if (!block)
805
- return {};
806
- const shouldReceiveProp = applyDefaults(block.shouldReceiveBuilderProps).builderBlock;
807
- if (!shouldReceiveProp)
808
- return {};
809
- return {
810
- builderBlock
811
- };
789
+ var _a;
790
+ if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderBlock)
791
+ return {
792
+ builderBlock
793
+ };
794
+ return {};
812
795
  };
813
796
  const provideBuilderContext = (block, context) => {
814
- if (!block)
815
- return {};
816
- const shouldReceiveProp = applyDefaults(block.shouldReceiveBuilderProps).builderContext;
817
- if (!shouldReceiveProp)
818
- return {};
819
- return {
820
- builderContext: context
821
- };
797
+ var _a;
798
+ if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderContext)
799
+ return {
800
+ builderContext: context
801
+ };
802
+ return {};
822
803
  };
823
804
  const SIZES = {
824
805
  small: {
@@ -1706,8 +1687,9 @@ const getWidth = function getWidth2(props, state, index) {
1706
1687
  return ((_a = state.cols[index]) == null ? void 0 : _a.width) || 100 / state.cols.length;
1707
1688
  };
1708
1689
  const getColumnCssWidth = function getColumnCssWidth2(props, state, index) {
1709
- const subtractWidth = state.gutterSize * (state.cols.length - 1) / state.cols.length;
1710
- return `calc(${getWidth(props, state, index)}% - ${subtractWidth}px)`;
1690
+ const width = getWidth(props, state, index);
1691
+ const subtractWidth = state.gutterSize * (state.cols.length - 1) * (width / 100);
1692
+ return `calc(${width}% - ${subtractWidth}px)`;
1711
1693
  };
1712
1694
  const getTabletStyle = function getTabletStyle2(props, state, { stackedStyle, desktopStyle }) {
1713
1695
  return state.stackAt === "tablet" ? stackedStyle : desktopStyle;
@@ -2654,9 +2636,6 @@ const componentInfo$h = {
2654
2636
  static: true,
2655
2637
  noWrap: true,
2656
2638
  shouldReceiveBuilderProps: {
2657
- builderBlock: false,
2658
- builderContext: false,
2659
- builderComponents: false,
2660
2639
  builderLinkComponent: true
2661
2640
  }
2662
2641
  };
@@ -2909,12 +2888,6 @@ const componentInfo$g = {
2909
2888
  }
2910
2889
  };
2911
2890
  const componentInfo$f = {
2912
- shouldReceiveBuilderProps: {
2913
- builderBlock: false,
2914
- builderContext: false,
2915
- builderComponents: false,
2916
- builderLinkComponent: false
2917
- },
2918
2891
  name: "Fragment",
2919
2892
  static: true,
2920
2893
  hidden: true,
@@ -3076,19 +3049,10 @@ const componentInfo$e = {
3076
3049
  }
3077
3050
  ],
3078
3051
  shouldReceiveBuilderProps: {
3079
- builderBlock: true,
3080
- builderContext: false,
3081
- builderComponents: false,
3082
- builderLinkComponent: false
3052
+ builderBlock: true
3083
3053
  }
3084
3054
  };
3085
3055
  const componentInfo$d = {
3086
- shouldReceiveBuilderProps: {
3087
- builderBlock: false,
3088
- builderContext: false,
3089
- builderComponents: false,
3090
- builderLinkComponent: false
3091
- },
3092
3056
  name: "Core:Section",
3093
3057
  static: true,
3094
3058
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3149,10 +3113,7 @@ const componentInfo$c = {
3149
3113
  }
3150
3114
  ],
3151
3115
  shouldReceiveBuilderProps: {
3152
- builderBlock: false,
3153
- builderContext: true,
3154
- builderComponents: false,
3155
- builderLinkComponent: false
3116
+ builderContext: true
3156
3117
  }
3157
3118
  };
3158
3119
  const Slot = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
@@ -3526,10 +3487,7 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
3526
3487
  }, "Tabs_component_MhWcxXy0lMY"));
3527
3488
  const componentInfo$9 = {
3528
3489
  shouldReceiveBuilderProps: {
3529
- builderBlock: false,
3530
- builderContext: false,
3531
- builderComponents: false,
3532
- builderLinkComponent: false
3490
+ builderBlock: false
3533
3491
  },
3534
3492
  name: "Text",
3535
3493
  static: true,
@@ -3566,12 +3524,6 @@ const Text = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
3566
3524
  }, null, 3, "yO_0");
3567
3525
  }, "Text_component_15p0cKUxgIE"));
3568
3526
  const componentInfo$8 = {
3569
- shouldReceiveBuilderProps: {
3570
- builderBlock: false,
3571
- builderContext: false,
3572
- builderComponents: false,
3573
- builderLinkComponent: false
3574
- },
3575
3527
  name: "Custom Code",
3576
3528
  static: true,
3577
3529
  requiredPermissions: [
@@ -3651,12 +3603,6 @@ const CustomCode = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
3651
3603
  }, null, 3, "bY_0");
3652
3604
  }, "CustomCode_component_uYOSy7w7Zqw"));
3653
3605
  const componentInfo$7 = {
3654
- shouldReceiveBuilderProps: {
3655
- builderBlock: false,
3656
- builderContext: false,
3657
- builderComponents: false,
3658
- builderLinkComponent: false
3659
- },
3660
3606
  name: "Embed",
3661
3607
  static: true,
3662
3608
  inputs: [
@@ -4319,12 +4265,6 @@ const STYLES = `
4319
4265
  }
4320
4266
  `;
4321
4267
  const componentInfo$5 = {
4322
- shouldReceiveBuilderProps: {
4323
- builderBlock: false,
4324
- builderContext: false,
4325
- builderComponents: false,
4326
- builderLinkComponent: false
4327
- },
4328
4268
  name: "Form:Input",
4329
4269
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4330
4270
  inputs: [
@@ -4408,12 +4348,6 @@ const FormInputComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
4408
4348
  });
4409
4349
  }, "FormInputComponent_component_AUUjdN0ueMs"));
4410
4350
  const componentInfo$4 = {
4411
- shouldReceiveBuilderProps: {
4412
- builderBlock: false,
4413
- builderContext: false,
4414
- builderComponents: false,
4415
- builderLinkComponent: false
4416
- },
4417
4351
  name: "Form:Select",
4418
4352
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4419
4353
  defaultStyles: {
@@ -4483,12 +4417,6 @@ const SelectComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4483
4417
  }));
4484
4418
  }, "SelectComponent_component_SPKbsFLikZU"));
4485
4419
  const componentInfo$3 = {
4486
- shouldReceiveBuilderProps: {
4487
- builderBlock: false,
4488
- builderContext: false,
4489
- builderComponents: false,
4490
- builderLinkComponent: false
4491
- },
4492
4420
  name: "Form:SubmitButton",
4493
4421
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4494
4422
  defaultStyles: {
@@ -4523,12 +4451,6 @@ const SubmitButton = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
4523
4451
  }, 0, "6z_0");
4524
4452
  }, "SubmitButton_component_NXvMBMCDhwc"));
4525
4453
  const componentInfo$2 = {
4526
- shouldReceiveBuilderProps: {
4527
- builderBlock: false,
4528
- builderContext: false,
4529
- builderComponents: false,
4530
- builderLinkComponent: false
4531
- },
4532
4454
  name: "Form:TextArea",
4533
4455
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4534
4456
  inputs: [
@@ -4593,12 +4515,6 @@ const Textarea = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
4593
4515
  }, 0, "kE_0");
4594
4516
  }, "Textarea_component_o1TcxV139Oc"));
4595
4517
  const componentInfo$1 = {
4596
- shouldReceiveBuilderProps: {
4597
- builderBlock: false,
4598
- builderContext: false,
4599
- builderComponents: false,
4600
- builderLinkComponent: false
4601
- },
4602
4518
  // friendlyName?
4603
4519
  name: "Raw:Img",
4604
4520
  hideFromInsertMenu: true,
@@ -4762,10 +4678,7 @@ const componentInfo = {
4762
4678
  }
4763
4679
  ],
4764
4680
  shouldReceiveBuilderProps: {
4765
- builderBlock: true,
4766
- builderContext: false,
4767
- builderComponents: false,
4768
- builderLinkComponent: false
4681
+ builderBlock: true
4769
4682
  }
4770
4683
  };
4771
4684
  const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
@@ -5413,7 +5326,7 @@ function isFromTrustedHost(trustedHosts, e) {
5413
5326
  const url = new URL(e.origin), hostname = url.hostname;
5414
5327
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5415
5328
  }
5416
- const SDK_VERSION = "0.15.2";
5329
+ const SDK_VERSION = "0.16.0";
5417
5330
  const registry = {};
5418
5331
  function register(type, info) {
5419
5332
  let typeList = registry[type];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.15.2",
3
+ "version": "0.16.0",
4
4
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,22 +15,22 @@ export declare const getInheritedStyles: ({ block, context }: {
15
15
  context: BuilderContextInterface;
16
16
  }) => Partial<CSSStyleDeclaration>;
17
17
  export declare const provideLinkComponent: (block: RegisteredComponent | null | undefined, linkComponent: any) => {
18
- builderLinkComponent?: undefined;
19
- } | {
20
18
  builderLinkComponent: any;
19
+ } | {
20
+ builderLinkComponent?: undefined;
21
21
  };
22
22
  export declare const provideRegisteredComponents: (block: RegisteredComponent | null | undefined, registeredComponents: RegisteredComponents) => {
23
- builderComponents?: undefined;
24
- } | {
25
23
  builderComponents: RegisteredComponents;
24
+ } | {
25
+ builderComponents?: undefined;
26
26
  };
27
27
  export declare const provideBuilderBlock: (block: RegisteredComponent | null | undefined, builderBlock: BuilderBlock) => {
28
- builderBlock?: undefined;
29
- } | {
30
28
  builderBlock: BuilderBlock;
29
+ } | {
30
+ builderBlock?: undefined;
31
31
  };
32
32
  export declare const provideBuilderContext: (block: RegisteredComponent | null | undefined, context: BuilderContextInterface) => {
33
- builderContext?: undefined;
34
- } | {
35
33
  builderContext: BuilderContextInterface;
34
+ } | {
35
+ builderContext?: undefined;
36
36
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.15.2";
1
+ export declare const SDK_VERSION = "0.16.0";