@builder.io/sdk-qwik 0.11.0 → 0.11.1

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.
@@ -578,7 +578,7 @@ const BlockWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
578
578
  const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
579
579
  return /* @__PURE__ */ qwik._jsxC(props.Wrapper, {
580
580
  ...props.wrapperProps,
581
- attributes: {
581
+ attributes: props.includeBlockProps ? {
582
582
  ...getBlockProperties({
583
583
  block: props.block,
584
584
  context: props.context
@@ -590,18 +590,12 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
590
590
  localState: props.context.localState,
591
591
  context: props.context.context
592
592
  })
593
- },
593
+ } : {},
594
594
  children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "q0_0")
595
595
  }, 0, "q0_1");
596
596
  }, "InteractiveElement_component_0UqfJpjhn0g"));
597
597
  const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }) => {
598
- const interactiveElementProps = {
599
- Wrapper: componentRef,
600
- block: builderBlock,
601
- context,
602
- wrapperProps: componentOptions
603
- };
604
- return isInteractive ? interactiveElementProps : {
598
+ const wrapperPropsWithAttributes = {
605
599
  ...componentOptions,
606
600
  /**
607
601
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -614,6 +608,14 @@ const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef
614
608
  })
615
609
  } : {}
616
610
  };
611
+ const interactiveElementProps = {
612
+ Wrapper: componentRef,
613
+ block: builderBlock,
614
+ context,
615
+ wrapperProps: componentOptions,
616
+ includeBlockProps
617
+ };
618
+ return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
617
619
  };
618
620
  const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
619
621
  const state = qwik.useStore({
@@ -3204,7 +3206,7 @@ const getInteractionPropertiesForEvent = (event) => {
3204
3206
  }
3205
3207
  };
3206
3208
  };
3207
- const SDK_VERSION = "0.11.0";
3209
+ const SDK_VERSION = "0.11.1";
3208
3210
  const registry = {};
3209
3211
  function register(type, info) {
3210
3212
  let typeList = registry[type];
@@ -576,7 +576,7 @@ const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
576
576
  const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
577
577
  return /* @__PURE__ */ _jsxC(props.Wrapper, {
578
578
  ...props.wrapperProps,
579
- attributes: {
579
+ attributes: props.includeBlockProps ? {
580
580
  ...getBlockProperties({
581
581
  block: props.block,
582
582
  context: props.context
@@ -588,18 +588,12 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
588
588
  localState: props.context.localState,
589
589
  context: props.context.context
590
590
  })
591
- },
591
+ } : {},
592
592
  children: /* @__PURE__ */ _jsxC(Slot, null, 3, "q0_0")
593
593
  }, 0, "q0_1");
594
594
  }, "InteractiveElement_component_0UqfJpjhn0g"));
595
595
  const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }) => {
596
- const interactiveElementProps = {
597
- Wrapper: componentRef,
598
- block: builderBlock,
599
- context,
600
- wrapperProps: componentOptions
601
- };
602
- return isInteractive ? interactiveElementProps : {
596
+ const wrapperPropsWithAttributes = {
603
597
  ...componentOptions,
604
598
  /**
605
599
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -612,6 +606,14 @@ const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef
612
606
  })
613
607
  } : {}
614
608
  };
609
+ const interactiveElementProps = {
610
+ Wrapper: componentRef,
611
+ block: builderBlock,
612
+ context,
613
+ wrapperProps: componentOptions,
614
+ includeBlockProps
615
+ };
616
+ return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
615
617
  };
616
618
  const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
617
619
  const state = useStore({
@@ -3202,7 +3204,7 @@ const getInteractionPropertiesForEvent = (event) => {
3202
3204
  }
3203
3205
  };
3204
3206
  };
3205
- const SDK_VERSION = "0.11.0";
3207
+ const SDK_VERSION = "0.11.1";
3206
3208
  const registry = {};
3207
3209
  function register(type, info) {
3208
3210
  let typeList = registry[type];
@@ -3809,7 +3809,7 @@ const BlockWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
3809
3809
  const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
3810
3810
  return /* @__PURE__ */ qwik._jsxC(props.Wrapper, {
3811
3811
  ...props.wrapperProps,
3812
- attributes: {
3812
+ attributes: props.includeBlockProps ? {
3813
3813
  ...getBlockProperties({
3814
3814
  block: props.block,
3815
3815
  context: props.context
@@ -3821,18 +3821,12 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
3821
3821
  localState: props.context.localState,
3822
3822
  context: props.context.context
3823
3823
  })
3824
- },
3824
+ } : {},
3825
3825
  children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "q0_0")
3826
3826
  }, 0, "q0_1");
3827
3827
  }, "InteractiveElement_component_0UqfJpjhn0g"));
3828
3828
  const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }) => {
3829
- const interactiveElementProps = {
3830
- Wrapper: componentRef,
3831
- block: builderBlock,
3832
- context,
3833
- wrapperProps: componentOptions
3834
- };
3835
- return isInteractive ? interactiveElementProps : {
3829
+ const wrapperPropsWithAttributes = {
3836
3830
  ...componentOptions,
3837
3831
  /**
3838
3832
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -3845,6 +3839,14 @@ const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef
3845
3839
  })
3846
3840
  } : {}
3847
3841
  };
3842
+ const interactiveElementProps = {
3843
+ Wrapper: componentRef,
3844
+ block: builderBlock,
3845
+ context,
3846
+ wrapperProps: componentOptions,
3847
+ includeBlockProps
3848
+ };
3849
+ return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
3848
3850
  };
3849
3851
  const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
3850
3852
  const state = qwik.useStore({
@@ -6435,7 +6437,7 @@ const getInteractionPropertiesForEvent = (event) => {
6435
6437
  }
6436
6438
  };
6437
6439
  };
6438
- const SDK_VERSION = "0.11.0";
6440
+ const SDK_VERSION = "0.11.1";
6439
6441
  const registry = {};
6440
6442
  function register(type, info) {
6441
6443
  let typeList = registry[type];
@@ -3807,7 +3807,7 @@ const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
3807
3807
  const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
3808
3808
  return /* @__PURE__ */ _jsxC(props.Wrapper, {
3809
3809
  ...props.wrapperProps,
3810
- attributes: {
3810
+ attributes: props.includeBlockProps ? {
3811
3811
  ...getBlockProperties({
3812
3812
  block: props.block,
3813
3813
  context: props.context
@@ -3819,18 +3819,12 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
3819
3819
  localState: props.context.localState,
3820
3820
  context: props.context.context
3821
3821
  })
3822
- },
3822
+ } : {},
3823
3823
  children: /* @__PURE__ */ _jsxC(Slot, null, 3, "q0_0")
3824
3824
  }, 0, "q0_1");
3825
3825
  }, "InteractiveElement_component_0UqfJpjhn0g"));
3826
3826
  const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }) => {
3827
- const interactiveElementProps = {
3828
- Wrapper: componentRef,
3829
- block: builderBlock,
3830
- context,
3831
- wrapperProps: componentOptions
3832
- };
3833
- return isInteractive ? interactiveElementProps : {
3827
+ const wrapperPropsWithAttributes = {
3834
3828
  ...componentOptions,
3835
3829
  /**
3836
3830
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -3843,6 +3837,14 @@ const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef
3843
3837
  })
3844
3838
  } : {}
3845
3839
  };
3840
+ const interactiveElementProps = {
3841
+ Wrapper: componentRef,
3842
+ block: builderBlock,
3843
+ context,
3844
+ wrapperProps: componentOptions,
3845
+ includeBlockProps
3846
+ };
3847
+ return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
3846
3848
  };
3847
3849
  const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
3848
3850
  const state = useStore({
@@ -6433,7 +6435,7 @@ const getInteractionPropertiesForEvent = (event) => {
6433
6435
  }
6434
6436
  };
6435
6437
  };
6436
- const SDK_VERSION = "0.11.0";
6438
+ const SDK_VERSION = "0.11.1";
6437
6439
  const registry = {};
6438
6440
  function register(type, info) {
6439
6441
  let typeList = registry[type];
@@ -679,7 +679,7 @@ const BlockWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
679
679
  const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
680
680
  return /* @__PURE__ */ qwik._jsxC(props.Wrapper, {
681
681
  ...props.wrapperProps,
682
- attributes: {
682
+ attributes: props.includeBlockProps ? {
683
683
  ...getBlockProperties({
684
684
  block: props.block,
685
685
  context: props.context
@@ -691,18 +691,12 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
691
691
  localState: props.context.localState,
692
692
  context: props.context.context
693
693
  })
694
- },
694
+ } : {},
695
695
  children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "q0_0")
696
696
  }, 0, "q0_1");
697
697
  }, "InteractiveElement_component_0UqfJpjhn0g"));
698
698
  const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }) => {
699
- const interactiveElementProps = {
700
- Wrapper: componentRef,
701
- block: builderBlock,
702
- context,
703
- wrapperProps: componentOptions
704
- };
705
- return isInteractive ? interactiveElementProps : {
699
+ const wrapperPropsWithAttributes = {
706
700
  ...componentOptions,
707
701
  /**
708
702
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -715,6 +709,14 @@ const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef
715
709
  })
716
710
  } : {}
717
711
  };
712
+ const interactiveElementProps = {
713
+ Wrapper: componentRef,
714
+ block: builderBlock,
715
+ context,
716
+ wrapperProps: componentOptions,
717
+ includeBlockProps
718
+ };
719
+ return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
718
720
  };
719
721
  const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
720
722
  const state = qwik.useStore({
@@ -3305,7 +3307,7 @@ const getInteractionPropertiesForEvent = (event) => {
3305
3307
  }
3306
3308
  };
3307
3309
  };
3308
- const SDK_VERSION = "0.11.0";
3310
+ const SDK_VERSION = "0.11.1";
3309
3311
  const registry = {};
3310
3312
  function register(type, info) {
3311
3313
  let typeList = registry[type];
@@ -677,7 +677,7 @@ const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
677
677
  const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
678
678
  return /* @__PURE__ */ _jsxC(props.Wrapper, {
679
679
  ...props.wrapperProps,
680
- attributes: {
680
+ attributes: props.includeBlockProps ? {
681
681
  ...getBlockProperties({
682
682
  block: props.block,
683
683
  context: props.context
@@ -689,18 +689,12 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
689
689
  localState: props.context.localState,
690
690
  context: props.context.context
691
691
  })
692
- },
692
+ } : {},
693
693
  children: /* @__PURE__ */ _jsxC(Slot, null, 3, "q0_0")
694
694
  }, 0, "q0_1");
695
695
  }, "InteractiveElement_component_0UqfJpjhn0g"));
696
696
  const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }) => {
697
- const interactiveElementProps = {
698
- Wrapper: componentRef,
699
- block: builderBlock,
700
- context,
701
- wrapperProps: componentOptions
702
- };
703
- return isInteractive ? interactiveElementProps : {
697
+ const wrapperPropsWithAttributes = {
704
698
  ...componentOptions,
705
699
  /**
706
700
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -713,6 +707,14 @@ const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef
713
707
  })
714
708
  } : {}
715
709
  };
710
+ const interactiveElementProps = {
711
+ Wrapper: componentRef,
712
+ block: builderBlock,
713
+ context,
714
+ wrapperProps: componentOptions,
715
+ includeBlockProps
716
+ };
717
+ return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
716
718
  };
717
719
  const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
718
720
  const state = useStore({
@@ -3303,7 +3305,7 @@ const getInteractionPropertiesForEvent = (event) => {
3303
3305
  }
3304
3306
  };
3305
3307
  };
3306
- const SDK_VERSION = "0.11.0";
3308
+ const SDK_VERSION = "0.11.1";
3307
3309
  const registry = {};
3308
3310
  function register(type, info) {
3309
3311
  let typeList = registry[type];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,11 +1,12 @@
1
1
  import { BuilderContextInterface } from "../../../context/types.js";
2
2
  import { BuilderBlock } from "../../../types/builder-block.js";
3
- import { PropsWithChildren } from "../../../types/typescript.js";
3
+ import { Dictionary, PropsWithChildren } from "../../../types/typescript.js";
4
4
  export type InteractiveElementProps = {
5
5
  Wrapper: any;
6
6
  block: BuilderBlock;
7
7
  context: BuilderContextInterface;
8
- wrapperProps: object;
8
+ wrapperProps: Dictionary<any>;
9
+ includeBlockProps: boolean;
9
10
  };
10
11
  export declare const InteractiveElement: import("@builder.io/qwik").Component<PropsWithChildren<InteractiveElementProps>>;
11
12
  export default InteractiveElement;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.11.0";
1
+ export declare const SDK_VERSION = "0.11.1";