@builder.io/sdk-solid 0.10.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 +15 -15
- package/lib/browser/dev.jsx +15 -15
- package/lib/browser/index.js +15 -15
- package/lib/browser/index.jsx +15 -15
- package/lib/edge/dev.js +15 -15
- package/lib/edge/dev.jsx +15 -15
- package/lib/edge/index.js +15 -15
- package/lib/edge/index.jsx +15 -15
- package/lib/node/dev.js +15 -15
- package/lib/node/dev.jsx +15 -15
- package/lib/node/index.js +15 -15
- package/lib/node/index.jsx +15 -15
- package/package.json +1 -1
package/lib/browser/dev.js
CHANGED
|
@@ -601,8 +601,7 @@ function getBlockActions(options) {
|
|
|
601
601
|
let eventHandlerName = getEventHandlerName(key);
|
|
602
602
|
if (options.stripPrefix) {
|
|
603
603
|
switch (TARGET) {
|
|
604
|
-
case "
|
|
605
|
-
case "vue3":
|
|
604
|
+
case "vue":
|
|
606
605
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
607
606
|
break;
|
|
608
607
|
case "svelte":
|
|
@@ -648,8 +647,7 @@ function getBlockProperties({
|
|
|
648
647
|
function getStyleAttribute(style) {
|
|
649
648
|
switch (TARGET) {
|
|
650
649
|
case "svelte":
|
|
651
|
-
case "
|
|
652
|
-
case "vue3":
|
|
650
|
+
case "vue":
|
|
653
651
|
case "solid":
|
|
654
652
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
655
653
|
case "qwik":
|
|
@@ -709,7 +707,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
709
707
|
function InteractiveElement(props) {
|
|
710
708
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
711
709
|
get attributes() {
|
|
712
|
-
return {
|
|
710
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
713
711
|
...getBlockProperties({
|
|
714
712
|
block: props.block,
|
|
715
713
|
context: props.context
|
|
@@ -721,7 +719,7 @@ function InteractiveElement(props) {
|
|
|
721
719
|
localState: props.context.localState,
|
|
722
720
|
context: props.context.context
|
|
723
721
|
})
|
|
724
|
-
};
|
|
722
|
+
} : {};
|
|
725
723
|
},
|
|
726
724
|
get component() {
|
|
727
725
|
return props.Wrapper;
|
|
@@ -743,13 +741,7 @@ var getWrapperProps = ({
|
|
|
743
741
|
isInteractive,
|
|
744
742
|
contextValue
|
|
745
743
|
}) => {
|
|
746
|
-
const
|
|
747
|
-
Wrapper: componentRef,
|
|
748
|
-
block: builderBlock,
|
|
749
|
-
context,
|
|
750
|
-
wrapperProps: componentOptions
|
|
751
|
-
};
|
|
752
|
-
return isInteractive ? interactiveElementProps : {
|
|
744
|
+
const wrapperPropsWithAttributes = {
|
|
753
745
|
...componentOptions,
|
|
754
746
|
/**
|
|
755
747
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -762,6 +754,14 @@ var getWrapperProps = ({
|
|
|
762
754
|
})
|
|
763
755
|
} : {}
|
|
764
756
|
};
|
|
757
|
+
const interactiveElementProps = {
|
|
758
|
+
Wrapper: componentRef,
|
|
759
|
+
block: builderBlock,
|
|
760
|
+
context,
|
|
761
|
+
wrapperProps: componentOptions,
|
|
762
|
+
includeBlockProps
|
|
763
|
+
};
|
|
764
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
765
765
|
};
|
|
766
766
|
|
|
767
767
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2773,7 +2773,7 @@ var checkShouldRenderVariants = ({
|
|
|
2773
2773
|
return false;
|
|
2774
2774
|
if (!canTrack)
|
|
2775
2775
|
return false;
|
|
2776
|
-
if (TARGET === "
|
|
2776
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
2777
2777
|
return true;
|
|
2778
2778
|
if (isBrowser())
|
|
2779
2779
|
return false;
|
|
@@ -3298,7 +3298,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3298
3298
|
};
|
|
3299
3299
|
|
|
3300
3300
|
// src/constants/sdk-version.ts
|
|
3301
|
-
var SDK_VERSION = "0.
|
|
3301
|
+
var SDK_VERSION = "0.11.1";
|
|
3302
3302
|
|
|
3303
3303
|
// src/functions/register.ts
|
|
3304
3304
|
var registry = {};
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -586,8 +586,7 @@ function getBlockActions(options) {
|
|
|
586
586
|
let eventHandlerName = getEventHandlerName(key);
|
|
587
587
|
if (options.stripPrefix) {
|
|
588
588
|
switch (TARGET) {
|
|
589
|
-
case "
|
|
590
|
-
case "vue3":
|
|
589
|
+
case "vue":
|
|
591
590
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
592
591
|
break;
|
|
593
592
|
case "svelte":
|
|
@@ -633,8 +632,7 @@ function getBlockProperties({
|
|
|
633
632
|
function getStyleAttribute(style) {
|
|
634
633
|
switch (TARGET) {
|
|
635
634
|
case "svelte":
|
|
636
|
-
case "
|
|
637
|
-
case "vue3":
|
|
635
|
+
case "vue":
|
|
638
636
|
case "solid":
|
|
639
637
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
640
638
|
case "qwik":
|
|
@@ -691,7 +689,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
691
689
|
function InteractiveElement(props) {
|
|
692
690
|
return <Dynamic2
|
|
693
691
|
{...props.wrapperProps}
|
|
694
|
-
attributes={{
|
|
692
|
+
attributes={props.includeBlockProps ? {
|
|
695
693
|
...getBlockProperties({
|
|
696
694
|
block: props.block,
|
|
697
695
|
context: props.context
|
|
@@ -703,7 +701,7 @@ function InteractiveElement(props) {
|
|
|
703
701
|
localState: props.context.localState,
|
|
704
702
|
context: props.context.context
|
|
705
703
|
})
|
|
706
|
-
}}
|
|
704
|
+
} : {}}
|
|
707
705
|
component={props.Wrapper}
|
|
708
706
|
>{props.children}</Dynamic2>;
|
|
709
707
|
}
|
|
@@ -719,13 +717,7 @@ var getWrapperProps = ({
|
|
|
719
717
|
isInteractive,
|
|
720
718
|
contextValue
|
|
721
719
|
}) => {
|
|
722
|
-
const
|
|
723
|
-
Wrapper: componentRef,
|
|
724
|
-
block: builderBlock,
|
|
725
|
-
context,
|
|
726
|
-
wrapperProps: componentOptions
|
|
727
|
-
};
|
|
728
|
-
return isInteractive ? interactiveElementProps : {
|
|
720
|
+
const wrapperPropsWithAttributes = {
|
|
729
721
|
...componentOptions,
|
|
730
722
|
/**
|
|
731
723
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -738,6 +730,14 @@ var getWrapperProps = ({
|
|
|
738
730
|
})
|
|
739
731
|
} : {}
|
|
740
732
|
};
|
|
733
|
+
const interactiveElementProps = {
|
|
734
|
+
Wrapper: componentRef,
|
|
735
|
+
block: builderBlock,
|
|
736
|
+
context,
|
|
737
|
+
wrapperProps: componentOptions,
|
|
738
|
+
includeBlockProps
|
|
739
|
+
};
|
|
740
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
741
741
|
};
|
|
742
742
|
|
|
743
743
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2445,7 +2445,7 @@ var checkShouldRenderVariants = ({
|
|
|
2445
2445
|
return false;
|
|
2446
2446
|
if (!canTrack)
|
|
2447
2447
|
return false;
|
|
2448
|
-
if (TARGET === "
|
|
2448
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
2449
2449
|
return true;
|
|
2450
2450
|
if (isBrowser())
|
|
2451
2451
|
return false;
|
|
@@ -2963,7 +2963,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
2963
2963
|
};
|
|
2964
2964
|
|
|
2965
2965
|
// src/constants/sdk-version.ts
|
|
2966
|
-
var SDK_VERSION = "0.
|
|
2966
|
+
var SDK_VERSION = "0.11.1";
|
|
2967
2967
|
|
|
2968
2968
|
// src/functions/register.ts
|
|
2969
2969
|
var registry = {};
|
package/lib/browser/index.js
CHANGED
|
@@ -596,8 +596,7 @@ function getBlockActions(options) {
|
|
|
596
596
|
let eventHandlerName = getEventHandlerName(key);
|
|
597
597
|
if (options.stripPrefix) {
|
|
598
598
|
switch (TARGET) {
|
|
599
|
-
case "
|
|
600
|
-
case "vue3":
|
|
599
|
+
case "vue":
|
|
601
600
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
602
601
|
break;
|
|
603
602
|
case "svelte":
|
|
@@ -643,8 +642,7 @@ function getBlockProperties({
|
|
|
643
642
|
function getStyleAttribute(style) {
|
|
644
643
|
switch (TARGET) {
|
|
645
644
|
case "svelte":
|
|
646
|
-
case "
|
|
647
|
-
case "vue3":
|
|
645
|
+
case "vue":
|
|
648
646
|
case "solid":
|
|
649
647
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
650
648
|
case "qwik":
|
|
@@ -704,7 +702,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
704
702
|
function InteractiveElement(props) {
|
|
705
703
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
706
704
|
get attributes() {
|
|
707
|
-
return {
|
|
705
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
708
706
|
...getBlockProperties({
|
|
709
707
|
block: props.block,
|
|
710
708
|
context: props.context
|
|
@@ -716,7 +714,7 @@ function InteractiveElement(props) {
|
|
|
716
714
|
localState: props.context.localState,
|
|
717
715
|
context: props.context.context
|
|
718
716
|
})
|
|
719
|
-
};
|
|
717
|
+
} : {};
|
|
720
718
|
},
|
|
721
719
|
get component() {
|
|
722
720
|
return props.Wrapper;
|
|
@@ -738,13 +736,7 @@ var getWrapperProps = ({
|
|
|
738
736
|
isInteractive,
|
|
739
737
|
contextValue
|
|
740
738
|
}) => {
|
|
741
|
-
const
|
|
742
|
-
Wrapper: componentRef,
|
|
743
|
-
block: builderBlock,
|
|
744
|
-
context,
|
|
745
|
-
wrapperProps: componentOptions
|
|
746
|
-
};
|
|
747
|
-
return isInteractive ? interactiveElementProps : {
|
|
739
|
+
const wrapperPropsWithAttributes = {
|
|
748
740
|
...componentOptions,
|
|
749
741
|
/**
|
|
750
742
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -757,6 +749,14 @@ var getWrapperProps = ({
|
|
|
757
749
|
})
|
|
758
750
|
} : {}
|
|
759
751
|
};
|
|
752
|
+
const interactiveElementProps = {
|
|
753
|
+
Wrapper: componentRef,
|
|
754
|
+
block: builderBlock,
|
|
755
|
+
context,
|
|
756
|
+
wrapperProps: componentOptions,
|
|
757
|
+
includeBlockProps
|
|
758
|
+
};
|
|
759
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
760
760
|
};
|
|
761
761
|
|
|
762
762
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2764,7 +2764,7 @@ var checkShouldRenderVariants = ({
|
|
|
2764
2764
|
return false;
|
|
2765
2765
|
if (!canTrack)
|
|
2766
2766
|
return false;
|
|
2767
|
-
if (TARGET === "
|
|
2767
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
2768
2768
|
return true;
|
|
2769
2769
|
if (isBrowser())
|
|
2770
2770
|
return false;
|
|
@@ -3284,7 +3284,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3284
3284
|
};
|
|
3285
3285
|
|
|
3286
3286
|
// src/constants/sdk-version.ts
|
|
3287
|
-
var SDK_VERSION = "0.
|
|
3287
|
+
var SDK_VERSION = "0.11.1";
|
|
3288
3288
|
|
|
3289
3289
|
// src/functions/register.ts
|
|
3290
3290
|
var registry = {};
|
package/lib/browser/index.jsx
CHANGED
|
@@ -581,8 +581,7 @@ function getBlockActions(options) {
|
|
|
581
581
|
let eventHandlerName = getEventHandlerName(key);
|
|
582
582
|
if (options.stripPrefix) {
|
|
583
583
|
switch (TARGET) {
|
|
584
|
-
case "
|
|
585
|
-
case "vue3":
|
|
584
|
+
case "vue":
|
|
586
585
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
587
586
|
break;
|
|
588
587
|
case "svelte":
|
|
@@ -628,8 +627,7 @@ function getBlockProperties({
|
|
|
628
627
|
function getStyleAttribute(style) {
|
|
629
628
|
switch (TARGET) {
|
|
630
629
|
case "svelte":
|
|
631
|
-
case "
|
|
632
|
-
case "vue3":
|
|
630
|
+
case "vue":
|
|
633
631
|
case "solid":
|
|
634
632
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
635
633
|
case "qwik":
|
|
@@ -686,7 +684,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
686
684
|
function InteractiveElement(props) {
|
|
687
685
|
return <Dynamic2
|
|
688
686
|
{...props.wrapperProps}
|
|
689
|
-
attributes={{
|
|
687
|
+
attributes={props.includeBlockProps ? {
|
|
690
688
|
...getBlockProperties({
|
|
691
689
|
block: props.block,
|
|
692
690
|
context: props.context
|
|
@@ -698,7 +696,7 @@ function InteractiveElement(props) {
|
|
|
698
696
|
localState: props.context.localState,
|
|
699
697
|
context: props.context.context
|
|
700
698
|
})
|
|
701
|
-
}}
|
|
699
|
+
} : {}}
|
|
702
700
|
component={props.Wrapper}
|
|
703
701
|
>{props.children}</Dynamic2>;
|
|
704
702
|
}
|
|
@@ -714,13 +712,7 @@ var getWrapperProps = ({
|
|
|
714
712
|
isInteractive,
|
|
715
713
|
contextValue
|
|
716
714
|
}) => {
|
|
717
|
-
const
|
|
718
|
-
Wrapper: componentRef,
|
|
719
|
-
block: builderBlock,
|
|
720
|
-
context,
|
|
721
|
-
wrapperProps: componentOptions
|
|
722
|
-
};
|
|
723
|
-
return isInteractive ? interactiveElementProps : {
|
|
715
|
+
const wrapperPropsWithAttributes = {
|
|
724
716
|
...componentOptions,
|
|
725
717
|
/**
|
|
726
718
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -733,6 +725,14 @@ var getWrapperProps = ({
|
|
|
733
725
|
})
|
|
734
726
|
} : {}
|
|
735
727
|
};
|
|
728
|
+
const interactiveElementProps = {
|
|
729
|
+
Wrapper: componentRef,
|
|
730
|
+
block: builderBlock,
|
|
731
|
+
context,
|
|
732
|
+
wrapperProps: componentOptions,
|
|
733
|
+
includeBlockProps
|
|
734
|
+
};
|
|
735
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
736
736
|
};
|
|
737
737
|
|
|
738
738
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2436,7 +2436,7 @@ var checkShouldRenderVariants = ({
|
|
|
2436
2436
|
return false;
|
|
2437
2437
|
if (!canTrack)
|
|
2438
2438
|
return false;
|
|
2439
|
-
if (TARGET === "
|
|
2439
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
2440
2440
|
return true;
|
|
2441
2441
|
if (isBrowser())
|
|
2442
2442
|
return false;
|
|
@@ -2949,7 +2949,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
2949
2949
|
};
|
|
2950
2950
|
|
|
2951
2951
|
// src/constants/sdk-version.ts
|
|
2952
|
-
var SDK_VERSION = "0.
|
|
2952
|
+
var SDK_VERSION = "0.11.1";
|
|
2953
2953
|
|
|
2954
2954
|
// src/functions/register.ts
|
|
2955
2955
|
var registry = {};
|
package/lib/edge/dev.js
CHANGED
|
@@ -3754,8 +3754,7 @@ function getBlockActions(options) {
|
|
|
3754
3754
|
let eventHandlerName = getEventHandlerName(key);
|
|
3755
3755
|
if (options.stripPrefix) {
|
|
3756
3756
|
switch (TARGET) {
|
|
3757
|
-
case "
|
|
3758
|
-
case "vue3":
|
|
3757
|
+
case "vue":
|
|
3759
3758
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
3760
3759
|
break;
|
|
3761
3760
|
case "svelte":
|
|
@@ -3801,8 +3800,7 @@ function getBlockProperties({
|
|
|
3801
3800
|
function getStyleAttribute(style) {
|
|
3802
3801
|
switch (TARGET) {
|
|
3803
3802
|
case "svelte":
|
|
3804
|
-
case "
|
|
3805
|
-
case "vue3":
|
|
3803
|
+
case "vue":
|
|
3806
3804
|
case "solid":
|
|
3807
3805
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
3808
3806
|
case "qwik":
|
|
@@ -3862,7 +3860,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
3862
3860
|
function InteractiveElement(props) {
|
|
3863
3861
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
3864
3862
|
get attributes() {
|
|
3865
|
-
return {
|
|
3863
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
3866
3864
|
...getBlockProperties({
|
|
3867
3865
|
block: props.block,
|
|
3868
3866
|
context: props.context
|
|
@@ -3874,7 +3872,7 @@ function InteractiveElement(props) {
|
|
|
3874
3872
|
localState: props.context.localState,
|
|
3875
3873
|
context: props.context.context
|
|
3876
3874
|
})
|
|
3877
|
-
};
|
|
3875
|
+
} : {};
|
|
3878
3876
|
},
|
|
3879
3877
|
get component() {
|
|
3880
3878
|
return props.Wrapper;
|
|
@@ -3896,13 +3894,7 @@ var getWrapperProps = ({
|
|
|
3896
3894
|
isInteractive,
|
|
3897
3895
|
contextValue
|
|
3898
3896
|
}) => {
|
|
3899
|
-
const
|
|
3900
|
-
Wrapper: componentRef,
|
|
3901
|
-
block: builderBlock,
|
|
3902
|
-
context,
|
|
3903
|
-
wrapperProps: componentOptions
|
|
3904
|
-
};
|
|
3905
|
-
return isInteractive ? interactiveElementProps : {
|
|
3897
|
+
const wrapperPropsWithAttributes = {
|
|
3906
3898
|
...componentOptions,
|
|
3907
3899
|
/**
|
|
3908
3900
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3915,6 +3907,14 @@ var getWrapperProps = ({
|
|
|
3915
3907
|
})
|
|
3916
3908
|
} : {}
|
|
3917
3909
|
};
|
|
3910
|
+
const interactiveElementProps = {
|
|
3911
|
+
Wrapper: componentRef,
|
|
3912
|
+
block: builderBlock,
|
|
3913
|
+
context,
|
|
3914
|
+
wrapperProps: componentOptions,
|
|
3915
|
+
includeBlockProps
|
|
3916
|
+
};
|
|
3917
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
3918
3918
|
};
|
|
3919
3919
|
|
|
3920
3920
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -5926,7 +5926,7 @@ var checkShouldRenderVariants = ({
|
|
|
5926
5926
|
return false;
|
|
5927
5927
|
if (!canTrack)
|
|
5928
5928
|
return false;
|
|
5929
|
-
if (TARGET === "
|
|
5929
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
5930
5930
|
return true;
|
|
5931
5931
|
if (isBrowser())
|
|
5932
5932
|
return false;
|
|
@@ -6451,7 +6451,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6451
6451
|
};
|
|
6452
6452
|
|
|
6453
6453
|
// src/constants/sdk-version.ts
|
|
6454
|
-
var SDK_VERSION = "0.
|
|
6454
|
+
var SDK_VERSION = "0.11.1";
|
|
6455
6455
|
|
|
6456
6456
|
// src/functions/register.ts
|
|
6457
6457
|
var registry = {};
|
package/lib/edge/dev.jsx
CHANGED
|
@@ -3741,8 +3741,7 @@ function getBlockActions(options) {
|
|
|
3741
3741
|
let eventHandlerName = getEventHandlerName(key);
|
|
3742
3742
|
if (options.stripPrefix) {
|
|
3743
3743
|
switch (TARGET) {
|
|
3744
|
-
case "
|
|
3745
|
-
case "vue3":
|
|
3744
|
+
case "vue":
|
|
3746
3745
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
3747
3746
|
break;
|
|
3748
3747
|
case "svelte":
|
|
@@ -3788,8 +3787,7 @@ function getBlockProperties({
|
|
|
3788
3787
|
function getStyleAttribute(style) {
|
|
3789
3788
|
switch (TARGET) {
|
|
3790
3789
|
case "svelte":
|
|
3791
|
-
case "
|
|
3792
|
-
case "vue3":
|
|
3790
|
+
case "vue":
|
|
3793
3791
|
case "solid":
|
|
3794
3792
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
3795
3793
|
case "qwik":
|
|
@@ -3846,7 +3844,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
3846
3844
|
function InteractiveElement(props) {
|
|
3847
3845
|
return <Dynamic2
|
|
3848
3846
|
{...props.wrapperProps}
|
|
3849
|
-
attributes={{
|
|
3847
|
+
attributes={props.includeBlockProps ? {
|
|
3850
3848
|
...getBlockProperties({
|
|
3851
3849
|
block: props.block,
|
|
3852
3850
|
context: props.context
|
|
@@ -3858,7 +3856,7 @@ function InteractiveElement(props) {
|
|
|
3858
3856
|
localState: props.context.localState,
|
|
3859
3857
|
context: props.context.context
|
|
3860
3858
|
})
|
|
3861
|
-
}}
|
|
3859
|
+
} : {}}
|
|
3862
3860
|
component={props.Wrapper}
|
|
3863
3861
|
>{props.children}</Dynamic2>;
|
|
3864
3862
|
}
|
|
@@ -3874,13 +3872,7 @@ var getWrapperProps = ({
|
|
|
3874
3872
|
isInteractive,
|
|
3875
3873
|
contextValue
|
|
3876
3874
|
}) => {
|
|
3877
|
-
const
|
|
3878
|
-
Wrapper: componentRef,
|
|
3879
|
-
block: builderBlock,
|
|
3880
|
-
context,
|
|
3881
|
-
wrapperProps: componentOptions
|
|
3882
|
-
};
|
|
3883
|
-
return isInteractive ? interactiveElementProps : {
|
|
3875
|
+
const wrapperPropsWithAttributes = {
|
|
3884
3876
|
...componentOptions,
|
|
3885
3877
|
/**
|
|
3886
3878
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3893,6 +3885,14 @@ var getWrapperProps = ({
|
|
|
3893
3885
|
})
|
|
3894
3886
|
} : {}
|
|
3895
3887
|
};
|
|
3888
|
+
const interactiveElementProps = {
|
|
3889
|
+
Wrapper: componentRef,
|
|
3890
|
+
block: builderBlock,
|
|
3891
|
+
context,
|
|
3892
|
+
wrapperProps: componentOptions,
|
|
3893
|
+
includeBlockProps
|
|
3894
|
+
};
|
|
3895
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
3896
3896
|
};
|
|
3897
3897
|
|
|
3898
3898
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -5600,7 +5600,7 @@ var checkShouldRenderVariants = ({
|
|
|
5600
5600
|
return false;
|
|
5601
5601
|
if (!canTrack)
|
|
5602
5602
|
return false;
|
|
5603
|
-
if (TARGET === "
|
|
5603
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
5604
5604
|
return true;
|
|
5605
5605
|
if (isBrowser())
|
|
5606
5606
|
return false;
|
|
@@ -6118,7 +6118,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6118
6118
|
};
|
|
6119
6119
|
|
|
6120
6120
|
// src/constants/sdk-version.ts
|
|
6121
|
-
var SDK_VERSION = "0.
|
|
6121
|
+
var SDK_VERSION = "0.11.1";
|
|
6122
6122
|
|
|
6123
6123
|
// src/functions/register.ts
|
|
6124
6124
|
var registry = {};
|
package/lib/edge/index.js
CHANGED
|
@@ -3749,8 +3749,7 @@ function getBlockActions(options) {
|
|
|
3749
3749
|
let eventHandlerName = getEventHandlerName(key);
|
|
3750
3750
|
if (options.stripPrefix) {
|
|
3751
3751
|
switch (TARGET) {
|
|
3752
|
-
case "
|
|
3753
|
-
case "vue3":
|
|
3752
|
+
case "vue":
|
|
3754
3753
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
3755
3754
|
break;
|
|
3756
3755
|
case "svelte":
|
|
@@ -3796,8 +3795,7 @@ function getBlockProperties({
|
|
|
3796
3795
|
function getStyleAttribute(style) {
|
|
3797
3796
|
switch (TARGET) {
|
|
3798
3797
|
case "svelte":
|
|
3799
|
-
case "
|
|
3800
|
-
case "vue3":
|
|
3798
|
+
case "vue":
|
|
3801
3799
|
case "solid":
|
|
3802
3800
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
3803
3801
|
case "qwik":
|
|
@@ -3857,7 +3855,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
3857
3855
|
function InteractiveElement(props) {
|
|
3858
3856
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
3859
3857
|
get attributes() {
|
|
3860
|
-
return {
|
|
3858
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
3861
3859
|
...getBlockProperties({
|
|
3862
3860
|
block: props.block,
|
|
3863
3861
|
context: props.context
|
|
@@ -3869,7 +3867,7 @@ function InteractiveElement(props) {
|
|
|
3869
3867
|
localState: props.context.localState,
|
|
3870
3868
|
context: props.context.context
|
|
3871
3869
|
})
|
|
3872
|
-
};
|
|
3870
|
+
} : {};
|
|
3873
3871
|
},
|
|
3874
3872
|
get component() {
|
|
3875
3873
|
return props.Wrapper;
|
|
@@ -3891,13 +3889,7 @@ var getWrapperProps = ({
|
|
|
3891
3889
|
isInteractive,
|
|
3892
3890
|
contextValue
|
|
3893
3891
|
}) => {
|
|
3894
|
-
const
|
|
3895
|
-
Wrapper: componentRef,
|
|
3896
|
-
block: builderBlock,
|
|
3897
|
-
context,
|
|
3898
|
-
wrapperProps: componentOptions
|
|
3899
|
-
};
|
|
3900
|
-
return isInteractive ? interactiveElementProps : {
|
|
3892
|
+
const wrapperPropsWithAttributes = {
|
|
3901
3893
|
...componentOptions,
|
|
3902
3894
|
/**
|
|
3903
3895
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3910,6 +3902,14 @@ var getWrapperProps = ({
|
|
|
3910
3902
|
})
|
|
3911
3903
|
} : {}
|
|
3912
3904
|
};
|
|
3905
|
+
const interactiveElementProps = {
|
|
3906
|
+
Wrapper: componentRef,
|
|
3907
|
+
block: builderBlock,
|
|
3908
|
+
context,
|
|
3909
|
+
wrapperProps: componentOptions,
|
|
3910
|
+
includeBlockProps
|
|
3911
|
+
};
|
|
3912
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
3913
3913
|
};
|
|
3914
3914
|
|
|
3915
3915
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -5917,7 +5917,7 @@ var checkShouldRenderVariants = ({
|
|
|
5917
5917
|
return false;
|
|
5918
5918
|
if (!canTrack)
|
|
5919
5919
|
return false;
|
|
5920
|
-
if (TARGET === "
|
|
5920
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
5921
5921
|
return true;
|
|
5922
5922
|
if (isBrowser())
|
|
5923
5923
|
return false;
|
|
@@ -6437,7 +6437,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6437
6437
|
};
|
|
6438
6438
|
|
|
6439
6439
|
// src/constants/sdk-version.ts
|
|
6440
|
-
var SDK_VERSION = "0.
|
|
6440
|
+
var SDK_VERSION = "0.11.1";
|
|
6441
6441
|
|
|
6442
6442
|
// src/functions/register.ts
|
|
6443
6443
|
var registry = {};
|
package/lib/edge/index.jsx
CHANGED
|
@@ -3736,8 +3736,7 @@ function getBlockActions(options) {
|
|
|
3736
3736
|
let eventHandlerName = getEventHandlerName(key);
|
|
3737
3737
|
if (options.stripPrefix) {
|
|
3738
3738
|
switch (TARGET) {
|
|
3739
|
-
case "
|
|
3740
|
-
case "vue3":
|
|
3739
|
+
case "vue":
|
|
3741
3740
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
3742
3741
|
break;
|
|
3743
3742
|
case "svelte":
|
|
@@ -3783,8 +3782,7 @@ function getBlockProperties({
|
|
|
3783
3782
|
function getStyleAttribute(style) {
|
|
3784
3783
|
switch (TARGET) {
|
|
3785
3784
|
case "svelte":
|
|
3786
|
-
case "
|
|
3787
|
-
case "vue3":
|
|
3785
|
+
case "vue":
|
|
3788
3786
|
case "solid":
|
|
3789
3787
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
3790
3788
|
case "qwik":
|
|
@@ -3841,7 +3839,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
3841
3839
|
function InteractiveElement(props) {
|
|
3842
3840
|
return <Dynamic2
|
|
3843
3841
|
{...props.wrapperProps}
|
|
3844
|
-
attributes={{
|
|
3842
|
+
attributes={props.includeBlockProps ? {
|
|
3845
3843
|
...getBlockProperties({
|
|
3846
3844
|
block: props.block,
|
|
3847
3845
|
context: props.context
|
|
@@ -3853,7 +3851,7 @@ function InteractiveElement(props) {
|
|
|
3853
3851
|
localState: props.context.localState,
|
|
3854
3852
|
context: props.context.context
|
|
3855
3853
|
})
|
|
3856
|
-
}}
|
|
3854
|
+
} : {}}
|
|
3857
3855
|
component={props.Wrapper}
|
|
3858
3856
|
>{props.children}</Dynamic2>;
|
|
3859
3857
|
}
|
|
@@ -3869,13 +3867,7 @@ var getWrapperProps = ({
|
|
|
3869
3867
|
isInteractive,
|
|
3870
3868
|
contextValue
|
|
3871
3869
|
}) => {
|
|
3872
|
-
const
|
|
3873
|
-
Wrapper: componentRef,
|
|
3874
|
-
block: builderBlock,
|
|
3875
|
-
context,
|
|
3876
|
-
wrapperProps: componentOptions
|
|
3877
|
-
};
|
|
3878
|
-
return isInteractive ? interactiveElementProps : {
|
|
3870
|
+
const wrapperPropsWithAttributes = {
|
|
3879
3871
|
...componentOptions,
|
|
3880
3872
|
/**
|
|
3881
3873
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3888,6 +3880,14 @@ var getWrapperProps = ({
|
|
|
3888
3880
|
})
|
|
3889
3881
|
} : {}
|
|
3890
3882
|
};
|
|
3883
|
+
const interactiveElementProps = {
|
|
3884
|
+
Wrapper: componentRef,
|
|
3885
|
+
block: builderBlock,
|
|
3886
|
+
context,
|
|
3887
|
+
wrapperProps: componentOptions,
|
|
3888
|
+
includeBlockProps
|
|
3889
|
+
};
|
|
3890
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
3891
3891
|
};
|
|
3892
3892
|
|
|
3893
3893
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -5591,7 +5591,7 @@ var checkShouldRenderVariants = ({
|
|
|
5591
5591
|
return false;
|
|
5592
5592
|
if (!canTrack)
|
|
5593
5593
|
return false;
|
|
5594
|
-
if (TARGET === "
|
|
5594
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
5595
5595
|
return true;
|
|
5596
5596
|
if (isBrowser())
|
|
5597
5597
|
return false;
|
|
@@ -6104,7 +6104,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6104
6104
|
};
|
|
6105
6105
|
|
|
6106
6106
|
// src/constants/sdk-version.ts
|
|
6107
|
-
var SDK_VERSION = "0.
|
|
6107
|
+
var SDK_VERSION = "0.11.1";
|
|
6108
6108
|
|
|
6109
6109
|
// src/functions/register.ts
|
|
6110
6110
|
var registry = {};
|
package/lib/node/dev.js
CHANGED
|
@@ -725,8 +725,7 @@ function getBlockActions(options) {
|
|
|
725
725
|
let eventHandlerName = getEventHandlerName(key);
|
|
726
726
|
if (options.stripPrefix) {
|
|
727
727
|
switch (TARGET) {
|
|
728
|
-
case "
|
|
729
|
-
case "vue3":
|
|
728
|
+
case "vue":
|
|
730
729
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
731
730
|
break;
|
|
732
731
|
case "svelte":
|
|
@@ -772,8 +771,7 @@ function getBlockProperties({
|
|
|
772
771
|
function getStyleAttribute(style) {
|
|
773
772
|
switch (TARGET) {
|
|
774
773
|
case "svelte":
|
|
775
|
-
case "
|
|
776
|
-
case "vue3":
|
|
774
|
+
case "vue":
|
|
777
775
|
case "solid":
|
|
778
776
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
779
777
|
case "qwik":
|
|
@@ -833,7 +831,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
833
831
|
function InteractiveElement(props) {
|
|
834
832
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
835
833
|
get attributes() {
|
|
836
|
-
return {
|
|
834
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
837
835
|
...getBlockProperties({
|
|
838
836
|
block: props.block,
|
|
839
837
|
context: props.context
|
|
@@ -845,7 +843,7 @@ function InteractiveElement(props) {
|
|
|
845
843
|
localState: props.context.localState,
|
|
846
844
|
context: props.context.context
|
|
847
845
|
})
|
|
848
|
-
};
|
|
846
|
+
} : {};
|
|
849
847
|
},
|
|
850
848
|
get component() {
|
|
851
849
|
return props.Wrapper;
|
|
@@ -867,13 +865,7 @@ var getWrapperProps = ({
|
|
|
867
865
|
isInteractive,
|
|
868
866
|
contextValue
|
|
869
867
|
}) => {
|
|
870
|
-
const
|
|
871
|
-
Wrapper: componentRef,
|
|
872
|
-
block: builderBlock,
|
|
873
|
-
context,
|
|
874
|
-
wrapperProps: componentOptions
|
|
875
|
-
};
|
|
876
|
-
return isInteractive ? interactiveElementProps : {
|
|
868
|
+
const wrapperPropsWithAttributes = {
|
|
877
869
|
...componentOptions,
|
|
878
870
|
/**
|
|
879
871
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -886,6 +878,14 @@ var getWrapperProps = ({
|
|
|
886
878
|
})
|
|
887
879
|
} : {}
|
|
888
880
|
};
|
|
881
|
+
const interactiveElementProps = {
|
|
882
|
+
Wrapper: componentRef,
|
|
883
|
+
block: builderBlock,
|
|
884
|
+
context,
|
|
885
|
+
wrapperProps: componentOptions,
|
|
886
|
+
includeBlockProps
|
|
887
|
+
};
|
|
888
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
889
889
|
};
|
|
890
890
|
|
|
891
891
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2897,7 +2897,7 @@ var checkShouldRenderVariants = ({
|
|
|
2897
2897
|
return false;
|
|
2898
2898
|
if (!canTrack)
|
|
2899
2899
|
return false;
|
|
2900
|
-
if (TARGET === "
|
|
2900
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
2901
2901
|
return true;
|
|
2902
2902
|
if (isBrowser())
|
|
2903
2903
|
return false;
|
|
@@ -3422,7 +3422,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3422
3422
|
};
|
|
3423
3423
|
|
|
3424
3424
|
// src/constants/sdk-version.ts
|
|
3425
|
-
var SDK_VERSION = "0.
|
|
3425
|
+
var SDK_VERSION = "0.11.1";
|
|
3426
3426
|
|
|
3427
3427
|
// src/functions/register.ts
|
|
3428
3428
|
var registry = {};
|
package/lib/node/dev.jsx
CHANGED
|
@@ -712,8 +712,7 @@ function getBlockActions(options) {
|
|
|
712
712
|
let eventHandlerName = getEventHandlerName(key);
|
|
713
713
|
if (options.stripPrefix) {
|
|
714
714
|
switch (TARGET) {
|
|
715
|
-
case "
|
|
716
|
-
case "vue3":
|
|
715
|
+
case "vue":
|
|
717
716
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
718
717
|
break;
|
|
719
718
|
case "svelte":
|
|
@@ -759,8 +758,7 @@ function getBlockProperties({
|
|
|
759
758
|
function getStyleAttribute(style) {
|
|
760
759
|
switch (TARGET) {
|
|
761
760
|
case "svelte":
|
|
762
|
-
case "
|
|
763
|
-
case "vue3":
|
|
761
|
+
case "vue":
|
|
764
762
|
case "solid":
|
|
765
763
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
766
764
|
case "qwik":
|
|
@@ -817,7 +815,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
817
815
|
function InteractiveElement(props) {
|
|
818
816
|
return <Dynamic2
|
|
819
817
|
{...props.wrapperProps}
|
|
820
|
-
attributes={{
|
|
818
|
+
attributes={props.includeBlockProps ? {
|
|
821
819
|
...getBlockProperties({
|
|
822
820
|
block: props.block,
|
|
823
821
|
context: props.context
|
|
@@ -829,7 +827,7 @@ function InteractiveElement(props) {
|
|
|
829
827
|
localState: props.context.localState,
|
|
830
828
|
context: props.context.context
|
|
831
829
|
})
|
|
832
|
-
}}
|
|
830
|
+
} : {}}
|
|
833
831
|
component={props.Wrapper}
|
|
834
832
|
>{props.children}</Dynamic2>;
|
|
835
833
|
}
|
|
@@ -845,13 +843,7 @@ var getWrapperProps = ({
|
|
|
845
843
|
isInteractive,
|
|
846
844
|
contextValue
|
|
847
845
|
}) => {
|
|
848
|
-
const
|
|
849
|
-
Wrapper: componentRef,
|
|
850
|
-
block: builderBlock,
|
|
851
|
-
context,
|
|
852
|
-
wrapperProps: componentOptions
|
|
853
|
-
};
|
|
854
|
-
return isInteractive ? interactiveElementProps : {
|
|
846
|
+
const wrapperPropsWithAttributes = {
|
|
855
847
|
...componentOptions,
|
|
856
848
|
/**
|
|
857
849
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -864,6 +856,14 @@ var getWrapperProps = ({
|
|
|
864
856
|
})
|
|
865
857
|
} : {}
|
|
866
858
|
};
|
|
859
|
+
const interactiveElementProps = {
|
|
860
|
+
Wrapper: componentRef,
|
|
861
|
+
block: builderBlock,
|
|
862
|
+
context,
|
|
863
|
+
wrapperProps: componentOptions,
|
|
864
|
+
includeBlockProps
|
|
865
|
+
};
|
|
866
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
867
867
|
};
|
|
868
868
|
|
|
869
869
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2571,7 +2571,7 @@ var checkShouldRenderVariants = ({
|
|
|
2571
2571
|
return false;
|
|
2572
2572
|
if (!canTrack)
|
|
2573
2573
|
return false;
|
|
2574
|
-
if (TARGET === "
|
|
2574
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
2575
2575
|
return true;
|
|
2576
2576
|
if (isBrowser())
|
|
2577
2577
|
return false;
|
|
@@ -3089,7 +3089,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3089
3089
|
};
|
|
3090
3090
|
|
|
3091
3091
|
// src/constants/sdk-version.ts
|
|
3092
|
-
var SDK_VERSION = "0.
|
|
3092
|
+
var SDK_VERSION = "0.11.1";
|
|
3093
3093
|
|
|
3094
3094
|
// src/functions/register.ts
|
|
3095
3095
|
var registry = {};
|
package/lib/node/index.js
CHANGED
|
@@ -719,8 +719,7 @@ function getBlockActions(options) {
|
|
|
719
719
|
let eventHandlerName = getEventHandlerName(key);
|
|
720
720
|
if (options.stripPrefix) {
|
|
721
721
|
switch (TARGET) {
|
|
722
|
-
case "
|
|
723
|
-
case "vue3":
|
|
722
|
+
case "vue":
|
|
724
723
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
725
724
|
break;
|
|
726
725
|
case "svelte":
|
|
@@ -766,8 +765,7 @@ function getBlockProperties({
|
|
|
766
765
|
function getStyleAttribute(style) {
|
|
767
766
|
switch (TARGET) {
|
|
768
767
|
case "svelte":
|
|
769
|
-
case "
|
|
770
|
-
case "vue3":
|
|
768
|
+
case "vue":
|
|
771
769
|
case "solid":
|
|
772
770
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
773
771
|
case "qwik":
|
|
@@ -827,7 +825,7 @@ var block_wrapper_default = BlockWrapper;
|
|
|
827
825
|
function InteractiveElement(props) {
|
|
828
826
|
return createComponent(Dynamic, mergeProps(() => props.wrapperProps, {
|
|
829
827
|
get attributes() {
|
|
830
|
-
return {
|
|
828
|
+
return memo(() => !!props.includeBlockProps)() ? {
|
|
831
829
|
...getBlockProperties({
|
|
832
830
|
block: props.block,
|
|
833
831
|
context: props.context
|
|
@@ -839,7 +837,7 @@ function InteractiveElement(props) {
|
|
|
839
837
|
localState: props.context.localState,
|
|
840
838
|
context: props.context.context
|
|
841
839
|
})
|
|
842
|
-
};
|
|
840
|
+
} : {};
|
|
843
841
|
},
|
|
844
842
|
get component() {
|
|
845
843
|
return props.Wrapper;
|
|
@@ -861,13 +859,7 @@ var getWrapperProps = ({
|
|
|
861
859
|
isInteractive,
|
|
862
860
|
contextValue
|
|
863
861
|
}) => {
|
|
864
|
-
const
|
|
865
|
-
Wrapper: componentRef,
|
|
866
|
-
block: builderBlock,
|
|
867
|
-
context,
|
|
868
|
-
wrapperProps: componentOptions
|
|
869
|
-
};
|
|
870
|
-
return isInteractive ? interactiveElementProps : {
|
|
862
|
+
const wrapperPropsWithAttributes = {
|
|
871
863
|
...componentOptions,
|
|
872
864
|
/**
|
|
873
865
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -880,6 +872,14 @@ var getWrapperProps = ({
|
|
|
880
872
|
})
|
|
881
873
|
} : {}
|
|
882
874
|
};
|
|
875
|
+
const interactiveElementProps = {
|
|
876
|
+
Wrapper: componentRef,
|
|
877
|
+
block: builderBlock,
|
|
878
|
+
context,
|
|
879
|
+
wrapperProps: componentOptions,
|
|
880
|
+
includeBlockProps
|
|
881
|
+
};
|
|
882
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
883
883
|
};
|
|
884
884
|
|
|
885
885
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2887,7 +2887,7 @@ var checkShouldRenderVariants = ({
|
|
|
2887
2887
|
return false;
|
|
2888
2888
|
if (!canTrack)
|
|
2889
2889
|
return false;
|
|
2890
|
-
if (TARGET === "
|
|
2890
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
2891
2891
|
return true;
|
|
2892
2892
|
if (isBrowser())
|
|
2893
2893
|
return false;
|
|
@@ -3407,7 +3407,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3407
3407
|
};
|
|
3408
3408
|
|
|
3409
3409
|
// src/constants/sdk-version.ts
|
|
3410
|
-
var SDK_VERSION = "0.
|
|
3410
|
+
var SDK_VERSION = "0.11.1";
|
|
3411
3411
|
|
|
3412
3412
|
// src/functions/register.ts
|
|
3413
3413
|
var registry = {};
|
package/lib/node/index.jsx
CHANGED
|
@@ -706,8 +706,7 @@ function getBlockActions(options) {
|
|
|
706
706
|
let eventHandlerName = getEventHandlerName(key);
|
|
707
707
|
if (options.stripPrefix) {
|
|
708
708
|
switch (TARGET) {
|
|
709
|
-
case "
|
|
710
|
-
case "vue3":
|
|
709
|
+
case "vue":
|
|
711
710
|
eventHandlerName = eventHandlerName.replace("v-on:", "");
|
|
712
711
|
break;
|
|
713
712
|
case "svelte":
|
|
@@ -753,8 +752,7 @@ function getBlockProperties({
|
|
|
753
752
|
function getStyleAttribute(style) {
|
|
754
753
|
switch (TARGET) {
|
|
755
754
|
case "svelte":
|
|
756
|
-
case "
|
|
757
|
-
case "vue3":
|
|
755
|
+
case "vue":
|
|
758
756
|
case "solid":
|
|
759
757
|
return convertStyleMapToCSSArray(style).join(" ");
|
|
760
758
|
case "qwik":
|
|
@@ -811,7 +809,7 @@ import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
|
811
809
|
function InteractiveElement(props) {
|
|
812
810
|
return <Dynamic2
|
|
813
811
|
{...props.wrapperProps}
|
|
814
|
-
attributes={{
|
|
812
|
+
attributes={props.includeBlockProps ? {
|
|
815
813
|
...getBlockProperties({
|
|
816
814
|
block: props.block,
|
|
817
815
|
context: props.context
|
|
@@ -823,7 +821,7 @@ function InteractiveElement(props) {
|
|
|
823
821
|
localState: props.context.localState,
|
|
824
822
|
context: props.context.context
|
|
825
823
|
})
|
|
826
|
-
}}
|
|
824
|
+
} : {}}
|
|
827
825
|
component={props.Wrapper}
|
|
828
826
|
>{props.children}</Dynamic2>;
|
|
829
827
|
}
|
|
@@ -839,13 +837,7 @@ var getWrapperProps = ({
|
|
|
839
837
|
isInteractive,
|
|
840
838
|
contextValue
|
|
841
839
|
}) => {
|
|
842
|
-
const
|
|
843
|
-
Wrapper: componentRef,
|
|
844
|
-
block: builderBlock,
|
|
845
|
-
context,
|
|
846
|
-
wrapperProps: componentOptions
|
|
847
|
-
};
|
|
848
|
-
return isInteractive ? interactiveElementProps : {
|
|
840
|
+
const wrapperPropsWithAttributes = {
|
|
849
841
|
...componentOptions,
|
|
850
842
|
/**
|
|
851
843
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -858,6 +850,14 @@ var getWrapperProps = ({
|
|
|
858
850
|
})
|
|
859
851
|
} : {}
|
|
860
852
|
};
|
|
853
|
+
const interactiveElementProps = {
|
|
854
|
+
Wrapper: componentRef,
|
|
855
|
+
block: builderBlock,
|
|
856
|
+
context,
|
|
857
|
+
wrapperProps: componentOptions,
|
|
858
|
+
includeBlockProps
|
|
859
|
+
};
|
|
860
|
+
return isInteractive ? interactiveElementProps : wrapperPropsWithAttributes;
|
|
861
861
|
};
|
|
862
862
|
|
|
863
863
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
@@ -2561,7 +2561,7 @@ var checkShouldRenderVariants = ({
|
|
|
2561
2561
|
return false;
|
|
2562
2562
|
if (!canTrack)
|
|
2563
2563
|
return false;
|
|
2564
|
-
if (TARGET === "
|
|
2564
|
+
if (TARGET === "vue" || TARGET === "svelte")
|
|
2565
2565
|
return true;
|
|
2566
2566
|
if (isBrowser())
|
|
2567
2567
|
return false;
|
|
@@ -3074,7 +3074,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3074
3074
|
};
|
|
3075
3075
|
|
|
3076
3076
|
// src/constants/sdk-version.ts
|
|
3077
|
-
var SDK_VERSION = "0.
|
|
3077
|
+
var SDK_VERSION = "0.11.1";
|
|
3078
3078
|
|
|
3079
3079
|
// src/functions/register.ts
|
|
3080
3080
|
var registry = {};
|