@builder.io/sdk-solid 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.
- package/lib/browser/dev.js +12 -10
- package/lib/browser/dev.jsx +12 -10
- package/lib/browser/index.js +12 -10
- package/lib/browser/index.jsx +12 -10
- package/lib/edge/dev.js +12 -10
- package/lib/edge/dev.jsx +12 -10
- package/lib/edge/index.js +12 -10
- package/lib/edge/index.jsx +12 -10
- package/lib/node/dev.js +12 -10
- package/lib/node/dev.jsx +12 -10
- package/lib/node/index.js +12 -10
- package/lib/node/index.jsx +12 -10
- package/package.json +1 -1
package/lib/browser/dev.js
CHANGED
|
@@ -707,7 +707,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
707
707
|
function InteractiveElement(props) {
|
|
708
708
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
709
709
|
get attributes() {
|
|
710
|
-
return {
|
|
710
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
711
711
|
...getBlockProperties({
|
|
712
712
|
block: props.block,
|
|
713
713
|
context: props.context
|
|
@@ -719,7 +719,7 @@ function InteractiveElement(props) {
|
|
|
719
719
|
localState: props.context.localState,
|
|
720
720
|
context: props.context.context
|
|
721
721
|
})
|
|
722
|
-
};
|
|
722
|
+
} : {};
|
|
723
723
|
},
|
|
724
724
|
get component() {
|
|
725
725
|
return props.Wrapper;
|
|
@@ -741,13 +741,7 @@ var getWrapperProps = ({
|
|
|
741
741
|
isInteractive,
|
|
742
742
|
contextValue
|
|
743
743
|
}) => {
|
|
744
|
-
const
|
|
745
|
-
Wrapper: componentRef,
|
|
746
|
-
block: builderBlock,
|
|
747
|
-
context,
|
|
748
|
-
wrapperProps: componentOptions
|
|
749
|
-
};
|
|
750
|
-
return isInteractive ? interactiveElementProps : {
|
|
744
|
+
const wrapperPropsWithAttributes = {
|
|
751
745
|
...componentOptions,
|
|
752
746
|
/**
|
|
753
747
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -760,6 +754,14 @@ var getWrapperProps = ({
|
|
|
760
754
|
})
|
|
761
755
|
} : {}
|
|
762
756
|
};
|
|
757
|
+
const interactiveElementProps = {
|
|
758
|
+
Wrapper: componentRef,
|
|
759
|
+
block: builderBlock,
|
|
760
|
+
context,
|
|
761
|
+
wrapperProps: componentOptions,
|
|
762
|
+
includeBlockProps
|
|
763
|
+
};
|
|
764
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
763
765
|
};
|
|
764
766
|
|
|
765
767
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -3296,7 +3298,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3296
3298
|
};
|
|
3297
3299
|
|
|
3298
3300
|
// src/constants/sdk-version.ts
|
|
3299
|
-
var SDK_VERSION = "0.11.
|
|
3301
|
+
var SDK_VERSION = "0.11.1";
|
|
3300
3302
|
|
|
3301
3303
|
// src/functions/register.ts
|
|
3302
3304
|
var registry = {};
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -689,7 +689,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
689
689
|
function InteractiveElement(props) {
|
|
690
690
|
return <Dynamic2
|
|
691
691
|
{...props.wrapperProps}
|
|
692
|
-
attributes={{
|
|
692
|
+
attributes={props.includeBlockProps ? {
|
|
693
693
|
...getBlockProperties({
|
|
694
694
|
block: props.block,
|
|
695
695
|
context: props.context
|
|
@@ -701,7 +701,7 @@ function InteractiveElement(props) {
|
|
|
701
701
|
localState: props.context.localState,
|
|
702
702
|
context: props.context.context
|
|
703
703
|
})
|
|
704
|
-
}}
|
|
704
|
+
} : {}}
|
|
705
705
|
component={props.Wrapper}
|
|
706
706
|
>{props.children}</Dynamic2>;
|
|
707
707
|
}
|
|
@@ -717,13 +717,7 @@ var getWrapperProps = ({
|
|
|
717
717
|
isInteractive,
|
|
718
718
|
contextValue
|
|
719
719
|
}) => {
|
|
720
|
-
const
|
|
721
|
-
Wrapper: componentRef,
|
|
722
|
-
block: builderBlock,
|
|
723
|
-
context,
|
|
724
|
-
wrapperProps: componentOptions
|
|
725
|
-
};
|
|
726
|
-
return isInteractive ? interactiveElementProps : {
|
|
720
|
+
const wrapperPropsWithAttributes = {
|
|
727
721
|
...componentOptions,
|
|
728
722
|
/**
|
|
729
723
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -736,6 +730,14 @@ var getWrapperProps = ({
|
|
|
736
730
|
})
|
|
737
731
|
} : {}
|
|
738
732
|
};
|
|
733
|
+
const interactiveElementProps = {
|
|
734
|
+
Wrapper: componentRef,
|
|
735
|
+
block: builderBlock,
|
|
736
|
+
context,
|
|
737
|
+
wrapperProps: componentOptions,
|
|
738
|
+
includeBlockProps
|
|
739
|
+
};
|
|
740
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
739
741
|
};
|
|
740
742
|
|
|
741
743
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2961,7 +2963,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
2961
2963
|
};
|
|
2962
2964
|
|
|
2963
2965
|
// src/constants/sdk-version.ts
|
|
2964
|
-
var SDK_VERSION = "0.11.
|
|
2966
|
+
var SDK_VERSION = "0.11.1";
|
|
2965
2967
|
|
|
2966
2968
|
// src/functions/register.ts
|
|
2967
2969
|
var registry = {};
|
package/lib/browser/index.js
CHANGED
|
@@ -702,7 +702,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
702
702
|
function InteractiveElement(props) {
|
|
703
703
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
704
704
|
get attributes() {
|
|
705
|
-
return {
|
|
705
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
706
706
|
...getBlockProperties({
|
|
707
707
|
block: props.block,
|
|
708
708
|
context: props.context
|
|
@@ -714,7 +714,7 @@ function InteractiveElement(props) {
|
|
|
714
714
|
localState: props.context.localState,
|
|
715
715
|
context: props.context.context
|
|
716
716
|
})
|
|
717
|
-
};
|
|
717
|
+
} : {};
|
|
718
718
|
},
|
|
719
719
|
get component() {
|
|
720
720
|
return props.Wrapper;
|
|
@@ -736,13 +736,7 @@ var getWrapperProps = ({
|
|
|
736
736
|
isInteractive,
|
|
737
737
|
contextValue
|
|
738
738
|
}) => {
|
|
739
|
-
const
|
|
740
|
-
Wrapper: componentRef,
|
|
741
|
-
block: builderBlock,
|
|
742
|
-
context,
|
|
743
|
-
wrapperProps: componentOptions
|
|
744
|
-
};
|
|
745
|
-
return isInteractive ? interactiveElementProps : {
|
|
739
|
+
const wrapperPropsWithAttributes = {
|
|
746
740
|
...componentOptions,
|
|
747
741
|
/**
|
|
748
742
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -755,6 +749,14 @@ var getWrapperProps = ({
|
|
|
755
749
|
})
|
|
756
750
|
} : {}
|
|
757
751
|
};
|
|
752
|
+
const interactiveElementProps = {
|
|
753
|
+
Wrapper: componentRef,
|
|
754
|
+
block: builderBlock,
|
|
755
|
+
context,
|
|
756
|
+
wrapperProps: componentOptions,
|
|
757
|
+
includeBlockProps
|
|
758
|
+
};
|
|
759
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
758
760
|
};
|
|
759
761
|
|
|
760
762
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -3282,7 +3284,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3282
3284
|
};
|
|
3283
3285
|
|
|
3284
3286
|
// src/constants/sdk-version.ts
|
|
3285
|
-
var SDK_VERSION = "0.11.
|
|
3287
|
+
var SDK_VERSION = "0.11.1";
|
|
3286
3288
|
|
|
3287
3289
|
// src/functions/register.ts
|
|
3288
3290
|
var registry = {};
|
package/lib/browser/index.jsx
CHANGED
|
@@ -684,7 +684,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
684
684
|
function InteractiveElement(props) {
|
|
685
685
|
return <Dynamic2
|
|
686
686
|
{...props.wrapperProps}
|
|
687
|
-
attributes={{
|
|
687
|
+
attributes={props.includeBlockProps ? {
|
|
688
688
|
...getBlockProperties({
|
|
689
689
|
block: props.block,
|
|
690
690
|
context: props.context
|
|
@@ -696,7 +696,7 @@ function InteractiveElement(props) {
|
|
|
696
696
|
localState: props.context.localState,
|
|
697
697
|
context: props.context.context
|
|
698
698
|
})
|
|
699
|
-
}}
|
|
699
|
+
} : {}}
|
|
700
700
|
component={props.Wrapper}
|
|
701
701
|
>{props.children}</Dynamic2>;
|
|
702
702
|
}
|
|
@@ -712,13 +712,7 @@ var getWrapperProps = ({
|
|
|
712
712
|
isInteractive,
|
|
713
713
|
contextValue
|
|
714
714
|
}) => {
|
|
715
|
-
const
|
|
716
|
-
Wrapper: componentRef,
|
|
717
|
-
block: builderBlock,
|
|
718
|
-
context,
|
|
719
|
-
wrapperProps: componentOptions
|
|
720
|
-
};
|
|
721
|
-
return isInteractive ? interactiveElementProps : {
|
|
715
|
+
const wrapperPropsWithAttributes = {
|
|
722
716
|
...componentOptions,
|
|
723
717
|
/**
|
|
724
718
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -731,6 +725,14 @@ var getWrapperProps = ({
|
|
|
731
725
|
})
|
|
732
726
|
} : {}
|
|
733
727
|
};
|
|
728
|
+
const interactiveElementProps = {
|
|
729
|
+
Wrapper: componentRef,
|
|
730
|
+
block: builderBlock,
|
|
731
|
+
context,
|
|
732
|
+
wrapperProps: componentOptions,
|
|
733
|
+
includeBlockProps
|
|
734
|
+
};
|
|
735
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
734
736
|
};
|
|
735
737
|
|
|
736
738
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2947,7 +2949,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
2947
2949
|
};
|
|
2948
2950
|
|
|
2949
2951
|
// src/constants/sdk-version.ts
|
|
2950
|
-
var SDK_VERSION = "0.11.
|
|
2952
|
+
var SDK_VERSION = "0.11.1";
|
|
2951
2953
|
|
|
2952
2954
|
// src/functions/register.ts
|
|
2953
2955
|
var registry = {};
|
package/lib/edge/dev.js
CHANGED
|
@@ -3860,7 +3860,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
3860
3860
|
function InteractiveElement(props) {
|
|
3861
3861
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
3862
3862
|
get attributes() {
|
|
3863
|
-
return {
|
|
3863
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
3864
3864
|
...getBlockProperties({
|
|
3865
3865
|
block: props.block,
|
|
3866
3866
|
context: props.context
|
|
@@ -3872,7 +3872,7 @@ function InteractiveElement(props) {
|
|
|
3872
3872
|
localState: props.context.localState,
|
|
3873
3873
|
context: props.context.context
|
|
3874
3874
|
})
|
|
3875
|
-
};
|
|
3875
|
+
} : {};
|
|
3876
3876
|
},
|
|
3877
3877
|
get component() {
|
|
3878
3878
|
return props.Wrapper;
|
|
@@ -3894,13 +3894,7 @@ var getWrapperProps = ({
|
|
|
3894
3894
|
isInteractive,
|
|
3895
3895
|
contextValue
|
|
3896
3896
|
}) => {
|
|
3897
|
-
const
|
|
3898
|
-
Wrapper: componentRef,
|
|
3899
|
-
block: builderBlock,
|
|
3900
|
-
context,
|
|
3901
|
-
wrapperProps: componentOptions
|
|
3902
|
-
};
|
|
3903
|
-
return isInteractive ? interactiveElementProps : {
|
|
3897
|
+
const wrapperPropsWithAttributes = {
|
|
3904
3898
|
...componentOptions,
|
|
3905
3899
|
/**
|
|
3906
3900
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3913,6 +3907,14 @@ var getWrapperProps = ({
|
|
|
3913
3907
|
})
|
|
3914
3908
|
} : {}
|
|
3915
3909
|
};
|
|
3910
|
+
const interactiveElementProps = {
|
|
3911
|
+
Wrapper: componentRef,
|
|
3912
|
+
block: builderBlock,
|
|
3913
|
+
context,
|
|
3914
|
+
wrapperProps: componentOptions,
|
|
3915
|
+
includeBlockProps
|
|
3916
|
+
};
|
|
3917
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
3916
3918
|
};
|
|
3917
3919
|
|
|
3918
3920
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -6449,7 +6451,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6449
6451
|
};
|
|
6450
6452
|
|
|
6451
6453
|
// src/constants/sdk-version.ts
|
|
6452
|
-
var SDK_VERSION = "0.11.
|
|
6454
|
+
var SDK_VERSION = "0.11.1";
|
|
6453
6455
|
|
|
6454
6456
|
// src/functions/register.ts
|
|
6455
6457
|
var registry = {};
|
package/lib/edge/dev.jsx
CHANGED
|
@@ -3844,7 +3844,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
3844
3844
|
function InteractiveElement(props) {
|
|
3845
3845
|
return <Dynamic2
|
|
3846
3846
|
{...props.wrapperProps}
|
|
3847
|
-
attributes={{
|
|
3847
|
+
attributes={props.includeBlockProps ? {
|
|
3848
3848
|
...getBlockProperties({
|
|
3849
3849
|
block: props.block,
|
|
3850
3850
|
context: props.context
|
|
@@ -3856,7 +3856,7 @@ function InteractiveElement(props) {
|
|
|
3856
3856
|
localState: props.context.localState,
|
|
3857
3857
|
context: props.context.context
|
|
3858
3858
|
})
|
|
3859
|
-
}}
|
|
3859
|
+
} : {}}
|
|
3860
3860
|
component={props.Wrapper}
|
|
3861
3861
|
>{props.children}</Dynamic2>;
|
|
3862
3862
|
}
|
|
@@ -3872,13 +3872,7 @@ var getWrapperProps = ({
|
|
|
3872
3872
|
isInteractive,
|
|
3873
3873
|
contextValue
|
|
3874
3874
|
}) => {
|
|
3875
|
-
const
|
|
3876
|
-
Wrapper: componentRef,
|
|
3877
|
-
block: builderBlock,
|
|
3878
|
-
context,
|
|
3879
|
-
wrapperProps: componentOptions
|
|
3880
|
-
};
|
|
3881
|
-
return isInteractive ? interactiveElementProps : {
|
|
3875
|
+
const wrapperPropsWithAttributes = {
|
|
3882
3876
|
...componentOptions,
|
|
3883
3877
|
/**
|
|
3884
3878
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3891,6 +3885,14 @@ var getWrapperProps = ({
|
|
|
3891
3885
|
})
|
|
3892
3886
|
} : {}
|
|
3893
3887
|
};
|
|
3888
|
+
const interactiveElementProps = {
|
|
3889
|
+
Wrapper: componentRef,
|
|
3890
|
+
block: builderBlock,
|
|
3891
|
+
context,
|
|
3892
|
+
wrapperProps: componentOptions,
|
|
3893
|
+
includeBlockProps
|
|
3894
|
+
};
|
|
3895
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
3894
3896
|
};
|
|
3895
3897
|
|
|
3896
3898
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -6116,7 +6118,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6116
6118
|
};
|
|
6117
6119
|
|
|
6118
6120
|
// src/constants/sdk-version.ts
|
|
6119
|
-
var SDK_VERSION = "0.11.
|
|
6121
|
+
var SDK_VERSION = "0.11.1";
|
|
6120
6122
|
|
|
6121
6123
|
// src/functions/register.ts
|
|
6122
6124
|
var registry = {};
|
package/lib/edge/index.js
CHANGED
|
@@ -3855,7 +3855,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
3855
3855
|
function InteractiveElement(props) {
|
|
3856
3856
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
3857
3857
|
get attributes() {
|
|
3858
|
-
return {
|
|
3858
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
3859
3859
|
...getBlockProperties({
|
|
3860
3860
|
block: props.block,
|
|
3861
3861
|
context: props.context
|
|
@@ -3867,7 +3867,7 @@ function InteractiveElement(props) {
|
|
|
3867
3867
|
localState: props.context.localState,
|
|
3868
3868
|
context: props.context.context
|
|
3869
3869
|
})
|
|
3870
|
-
};
|
|
3870
|
+
} : {};
|
|
3871
3871
|
},
|
|
3872
3872
|
get component() {
|
|
3873
3873
|
return props.Wrapper;
|
|
@@ -3889,13 +3889,7 @@ var getWrapperProps = ({
|
|
|
3889
3889
|
isInteractive,
|
|
3890
3890
|
contextValue
|
|
3891
3891
|
}) => {
|
|
3892
|
-
const
|
|
3893
|
-
Wrapper: componentRef,
|
|
3894
|
-
block: builderBlock,
|
|
3895
|
-
context,
|
|
3896
|
-
wrapperProps: componentOptions
|
|
3897
|
-
};
|
|
3898
|
-
return isInteractive ? interactiveElementProps : {
|
|
3892
|
+
const wrapperPropsWithAttributes = {
|
|
3899
3893
|
...componentOptions,
|
|
3900
3894
|
/**
|
|
3901
3895
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3908,6 +3902,14 @@ var getWrapperProps = ({
|
|
|
3908
3902
|
})
|
|
3909
3903
|
} : {}
|
|
3910
3904
|
};
|
|
3905
|
+
const interactiveElementProps = {
|
|
3906
|
+
Wrapper: componentRef,
|
|
3907
|
+
block: builderBlock,
|
|
3908
|
+
context,
|
|
3909
|
+
wrapperProps: componentOptions,
|
|
3910
|
+
includeBlockProps
|
|
3911
|
+
};
|
|
3912
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
3911
3913
|
};
|
|
3912
3914
|
|
|
3913
3915
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -6435,7 +6437,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6435
6437
|
};
|
|
6436
6438
|
|
|
6437
6439
|
// src/constants/sdk-version.ts
|
|
6438
|
-
var SDK_VERSION = "0.11.
|
|
6440
|
+
var SDK_VERSION = "0.11.1";
|
|
6439
6441
|
|
|
6440
6442
|
// src/functions/register.ts
|
|
6441
6443
|
var registry = {};
|
package/lib/edge/index.jsx
CHANGED
|
@@ -3839,7 +3839,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
3839
3839
|
function InteractiveElement(props) {
|
|
3840
3840
|
return <Dynamic2
|
|
3841
3841
|
{...props.wrapperProps}
|
|
3842
|
-
attributes={{
|
|
3842
|
+
attributes={props.includeBlockProps ? {
|
|
3843
3843
|
...getBlockProperties({
|
|
3844
3844
|
block: props.block,
|
|
3845
3845
|
context: props.context
|
|
@@ -3851,7 +3851,7 @@ function InteractiveElement(props) {
|
|
|
3851
3851
|
localState: props.context.localState,
|
|
3852
3852
|
context: props.context.context
|
|
3853
3853
|
})
|
|
3854
|
-
}}
|
|
3854
|
+
} : {}}
|
|
3855
3855
|
component={props.Wrapper}
|
|
3856
3856
|
>{props.children}</Dynamic2>;
|
|
3857
3857
|
}
|
|
@@ -3867,13 +3867,7 @@ var getWrapperProps = ({
|
|
|
3867
3867
|
isInteractive,
|
|
3868
3868
|
contextValue
|
|
3869
3869
|
}) => {
|
|
3870
|
-
const
|
|
3871
|
-
Wrapper: componentRef,
|
|
3872
|
-
block: builderBlock,
|
|
3873
|
-
context,
|
|
3874
|
-
wrapperProps: componentOptions
|
|
3875
|
-
};
|
|
3876
|
-
return isInteractive ? interactiveElementProps : {
|
|
3870
|
+
const wrapperPropsWithAttributes = {
|
|
3877
3871
|
...componentOptions,
|
|
3878
3872
|
/**
|
|
3879
3873
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3886,6 +3880,14 @@ var getWrapperProps = ({
|
|
|
3886
3880
|
})
|
|
3887
3881
|
} : {}
|
|
3888
3882
|
};
|
|
3883
|
+
const interactiveElementProps = {
|
|
3884
|
+
Wrapper: componentRef,
|
|
3885
|
+
block: builderBlock,
|
|
3886
|
+
context,
|
|
3887
|
+
wrapperProps: componentOptions,
|
|
3888
|
+
includeBlockProps
|
|
3889
|
+
};
|
|
3890
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
3889
3891
|
};
|
|
3890
3892
|
|
|
3891
3893
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -6102,7 +6104,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6102
6104
|
};
|
|
6103
6105
|
|
|
6104
6106
|
// src/constants/sdk-version.ts
|
|
6105
|
-
var SDK_VERSION = "0.11.
|
|
6107
|
+
var SDK_VERSION = "0.11.1";
|
|
6106
6108
|
|
|
6107
6109
|
// src/functions/register.ts
|
|
6108
6110
|
var registry = {};
|
package/lib/node/dev.js
CHANGED
|
@@ -831,7 +831,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
831
831
|
function InteractiveElement(props) {
|
|
832
832
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
833
833
|
get attributes() {
|
|
834
|
-
return {
|
|
834
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
835
835
|
...getBlockProperties({
|
|
836
836
|
block: props.block,
|
|
837
837
|
context: props.context
|
|
@@ -843,7 +843,7 @@ function InteractiveElement(props) {
|
|
|
843
843
|
localState: props.context.localState,
|
|
844
844
|
context: props.context.context
|
|
845
845
|
})
|
|
846
|
-
};
|
|
846
|
+
} : {};
|
|
847
847
|
},
|
|
848
848
|
get component() {
|
|
849
849
|
return props.Wrapper;
|
|
@@ -865,13 +865,7 @@ var getWrapperProps = ({
|
|
|
865
865
|
isInteractive,
|
|
866
866
|
contextValue
|
|
867
867
|
}) => {
|
|
868
|
-
const
|
|
869
|
-
Wrapper: componentRef,
|
|
870
|
-
block: builderBlock,
|
|
871
|
-
context,
|
|
872
|
-
wrapperProps: componentOptions
|
|
873
|
-
};
|
|
874
|
-
return isInteractive ? interactiveElementProps : {
|
|
868
|
+
const wrapperPropsWithAttributes = {
|
|
875
869
|
...componentOptions,
|
|
876
870
|
/**
|
|
877
871
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -884,6 +878,14 @@ var getWrapperProps = ({
|
|
|
884
878
|
})
|
|
885
879
|
} : {}
|
|
886
880
|
};
|
|
881
|
+
const interactiveElementProps = {
|
|
882
|
+
Wrapper: componentRef,
|
|
883
|
+
block: builderBlock,
|
|
884
|
+
context,
|
|
885
|
+
wrapperProps: componentOptions,
|
|
886
|
+
includeBlockProps
|
|
887
|
+
};
|
|
888
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
887
889
|
};
|
|
888
890
|
|
|
889
891
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -3420,7 +3422,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3420
3422
|
};
|
|
3421
3423
|
|
|
3422
3424
|
// src/constants/sdk-version.ts
|
|
3423
|
-
var SDK_VERSION = "0.11.
|
|
3425
|
+
var SDK_VERSION = "0.11.1";
|
|
3424
3426
|
|
|
3425
3427
|
// src/functions/register.ts
|
|
3426
3428
|
var registry = {};
|
package/lib/node/dev.jsx
CHANGED
|
@@ -815,7 +815,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
815
815
|
function InteractiveElement(props) {
|
|
816
816
|
return <Dynamic2
|
|
817
817
|
{...props.wrapperProps}
|
|
818
|
-
attributes={{
|
|
818
|
+
attributes={props.includeBlockProps ? {
|
|
819
819
|
...getBlockProperties({
|
|
820
820
|
block: props.block,
|
|
821
821
|
context: props.context
|
|
@@ -827,7 +827,7 @@ function InteractiveElement(props) {
|
|
|
827
827
|
localState: props.context.localState,
|
|
828
828
|
context: props.context.context
|
|
829
829
|
})
|
|
830
|
-
}}
|
|
830
|
+
} : {}}
|
|
831
831
|
component={props.Wrapper}
|
|
832
832
|
>{props.children}</Dynamic2>;
|
|
833
833
|
}
|
|
@@ -843,13 +843,7 @@ var getWrapperProps = ({
|
|
|
843
843
|
isInteractive,
|
|
844
844
|
contextValue
|
|
845
845
|
}) => {
|
|
846
|
-
const
|
|
847
|
-
Wrapper: componentRef,
|
|
848
|
-
block: builderBlock,
|
|
849
|
-
context,
|
|
850
|
-
wrapperProps: componentOptions
|
|
851
|
-
};
|
|
852
|
-
return isInteractive ? interactiveElementProps : {
|
|
846
|
+
const wrapperPropsWithAttributes = {
|
|
853
847
|
...componentOptions,
|
|
854
848
|
/**
|
|
855
849
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -862,6 +856,14 @@ var getWrapperProps = ({
|
|
|
862
856
|
})
|
|
863
857
|
} : {}
|
|
864
858
|
};
|
|
859
|
+
const interactiveElementProps = {
|
|
860
|
+
Wrapper: componentRef,
|
|
861
|
+
block: builderBlock,
|
|
862
|
+
context,
|
|
863
|
+
wrapperProps: componentOptions,
|
|
864
|
+
includeBlockProps
|
|
865
|
+
};
|
|
866
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
865
867
|
};
|
|
866
868
|
|
|
867
869
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -3087,7 +3089,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3087
3089
|
};
|
|
3088
3090
|
|
|
3089
3091
|
// src/constants/sdk-version.ts
|
|
3090
|
-
var SDK_VERSION = "0.11.
|
|
3092
|
+
var SDK_VERSION = "0.11.1";
|
|
3091
3093
|
|
|
3092
3094
|
// src/functions/register.ts
|
|
3093
3095
|
var registry = {};
|
package/lib/node/index.js
CHANGED
|
@@ -825,7 +825,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
825
825
|
function InteractiveElement(props) {
|
|
826
826
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
827
827
|
get attributes() {
|
|
828
|
-
return {
|
|
828
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
829
829
|
...getBlockProperties({
|
|
830
830
|
block: props.block,
|
|
831
831
|
context: props.context
|
|
@@ -837,7 +837,7 @@ function InteractiveElement(props) {
|
|
|
837
837
|
localState: props.context.localState,
|
|
838
838
|
context: props.context.context
|
|
839
839
|
})
|
|
840
|
-
};
|
|
840
|
+
} : {};
|
|
841
841
|
},
|
|
842
842
|
get component() {
|
|
843
843
|
return props.Wrapper;
|
|
@@ -859,13 +859,7 @@ var getWrapperProps = ({
|
|
|
859
859
|
isInteractive,
|
|
860
860
|
contextValue
|
|
861
861
|
}) => {
|
|
862
|
-
const
|
|
863
|
-
Wrapper: componentRef,
|
|
864
|
-
block: builderBlock,
|
|
865
|
-
context,
|
|
866
|
-
wrapperProps: componentOptions
|
|
867
|
-
};
|
|
868
|
-
return isInteractive ? interactiveElementProps : {
|
|
862
|
+
const wrapperPropsWithAttributes = {
|
|
869
863
|
...componentOptions,
|
|
870
864
|
/**
|
|
871
865
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -878,6 +872,14 @@ var getWrapperProps = ({
|
|
|
878
872
|
})
|
|
879
873
|
} : {}
|
|
880
874
|
};
|
|
875
|
+
const interactiveElementProps = {
|
|
876
|
+
Wrapper: componentRef,
|
|
877
|
+
block: builderBlock,
|
|
878
|
+
context,
|
|
879
|
+
wrapperProps: componentOptions,
|
|
880
|
+
includeBlockProps
|
|
881
|
+
};
|
|
882
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
881
883
|
};
|
|
882
884
|
|
|
883
885
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -3405,7 +3407,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3405
3407
|
};
|
|
3406
3408
|
|
|
3407
3409
|
// src/constants/sdk-version.ts
|
|
3408
|
-
var SDK_VERSION = "0.11.
|
|
3410
|
+
var SDK_VERSION = "0.11.1";
|
|
3409
3411
|
|
|
3410
3412
|
// src/functions/register.ts
|
|
3411
3413
|
var registry = {};
|
package/lib/node/index.jsx
CHANGED
|
@@ -809,7 +809,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
809
809
|
function InteractiveElement(props) {
|
|
810
810
|
return <Dynamic2
|
|
811
811
|
{...props.wrapperProps}
|
|
812
|
-
attributes={{
|
|
812
|
+
attributes={props.includeBlockProps ? {
|
|
813
813
|
...getBlockProperties({
|
|
814
814
|
block: props.block,
|
|
815
815
|
context: props.context
|
|
@@ -821,7 +821,7 @@ function InteractiveElement(props) {
|
|
|
821
821
|
localState: props.context.localState,
|
|
822
822
|
context: props.context.context
|
|
823
823
|
})
|
|
824
|
-
}}
|
|
824
|
+
} : {}}
|
|
825
825
|
component={props.Wrapper}
|
|
826
826
|
>{props.children}</Dynamic2>;
|
|
827
827
|
}
|
|
@@ -837,13 +837,7 @@ var getWrapperProps = ({
|
|
|
837
837
|
isInteractive,
|
|
838
838
|
contextValue
|
|
839
839
|
}) => {
|
|
840
|
-
const
|
|
841
|
-
Wrapper: componentRef,
|
|
842
|
-
block: builderBlock,
|
|
843
|
-
context,
|
|
844
|
-
wrapperProps: componentOptions
|
|
845
|
-
};
|
|
846
|
-
return isInteractive ? interactiveElementProps : {
|
|
840
|
+
const wrapperPropsWithAttributes = {
|
|
847
841
|
...componentOptions,
|
|
848
842
|
/**
|
|
849
843
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -856,6 +850,14 @@ var getWrapperProps = ({
|
|
|
856
850
|
})
|
|
857
851
|
} : {}
|
|
858
852
|
};
|
|
853
|
+
const interactiveElementProps = {
|
|
854
|
+
Wrapper: componentRef,
|
|
855
|
+
block: builderBlock,
|
|
856
|
+
context,
|
|
857
|
+
wrapperProps: componentOptions,
|
|
858
|
+
includeBlockProps
|
|
859
|
+
};
|
|
860
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
859
861
|
};
|
|
860
862
|
|
|
861
863
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -3072,7 +3074,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3072
3074
|
};
|
|
3073
3075
|
|
|
3074
3076
|
// src/constants/sdk-version.ts
|
|
3075
|
-
var SDK_VERSION = "0.11.
|
|
3077
|
+
var SDK_VERSION = "0.11.1";
|
|
3076
3078
|
|
|
3077
3079
|
// src/functions/register.ts
|
|
3078
3080
|
var registry = {};
|