@builder.io/sdk-solid 0.11.2 → 0.11.3
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/dist/index.d.ts +46 -59
- package/lib/browser/dev.js +17 -65
- package/lib/browser/dev.jsx +66 -91
- package/lib/browser/index.js +17 -65
- package/lib/browser/index.jsx +66 -91
- package/lib/edge/dev.js +17 -65
- package/lib/edge/dev.jsx +66 -91
- package/lib/edge/index.js +17 -65
- package/lib/edge/index.jsx +66 -91
- package/lib/node/dev.js +17 -65
- package/lib/node/dev.jsx +66 -91
- package/lib/node/index.js +17 -65
- package/lib/node/index.jsx +66 -91
- package/package.json +1 -1
package/lib/browser/index.js
CHANGED
|
@@ -780,7 +780,7 @@ function ComponentRef(props) {
|
|
|
780
780
|
return Wrapper();
|
|
781
781
|
},
|
|
782
782
|
get children() {
|
|
783
|
-
return
|
|
783
|
+
return createComponent(For, {
|
|
784
784
|
get each() {
|
|
785
785
|
return props.blockChildren;
|
|
786
786
|
},
|
|
@@ -788,7 +788,7 @@ function ComponentRef(props) {
|
|
|
788
788
|
_index();
|
|
789
789
|
return createComponent(block_default, {
|
|
790
790
|
get key() {
|
|
791
|
-
return
|
|
791
|
+
return child.id;
|
|
792
792
|
},
|
|
793
793
|
block: child,
|
|
794
794
|
get context() {
|
|
@@ -799,23 +799,7 @@ function ComponentRef(props) {
|
|
|
799
799
|
}
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
|
-
})
|
|
803
|
-
get each() {
|
|
804
|
-
return props.blockChildren;
|
|
805
|
-
},
|
|
806
|
-
children: (child, _index) => {
|
|
807
|
-
_index();
|
|
808
|
-
return createComponent(block_styles_default, {
|
|
809
|
-
get key() {
|
|
810
|
-
return "block-style-" + child.id;
|
|
811
|
-
},
|
|
812
|
-
block: child,
|
|
813
|
-
get context() {
|
|
814
|
-
return props.context;
|
|
815
|
-
}
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
})];
|
|
802
|
+
});
|
|
819
803
|
}
|
|
820
804
|
}));
|
|
821
805
|
}
|
|
@@ -911,7 +895,14 @@ function Block(props) {
|
|
|
911
895
|
return canShowBlock();
|
|
912
896
|
},
|
|
913
897
|
get children() {
|
|
914
|
-
return createComponent(
|
|
898
|
+
return [createComponent(block_styles_default, {
|
|
899
|
+
get block() {
|
|
900
|
+
return props.block;
|
|
901
|
+
},
|
|
902
|
+
get context() {
|
|
903
|
+
return props.context;
|
|
904
|
+
}
|
|
905
|
+
}), createComponent(Show, {
|
|
915
906
|
get fallback() {
|
|
916
907
|
return createComponent(component_ref_default, {
|
|
917
908
|
get componentRef() {
|
|
@@ -1038,7 +1029,7 @@ function Block(props) {
|
|
|
1038
1029
|
_index();
|
|
1039
1030
|
return createComponent(Block, {
|
|
1040
1031
|
get key() {
|
|
1041
|
-
return
|
|
1032
|
+
return child.id;
|
|
1042
1033
|
},
|
|
1043
1034
|
block: child,
|
|
1044
1035
|
get context() {
|
|
@@ -1049,29 +1040,13 @@ function Block(props) {
|
|
|
1049
1040
|
}
|
|
1050
1041
|
});
|
|
1051
1042
|
}
|
|
1052
|
-
}), createComponent(For, {
|
|
1053
|
-
get each() {
|
|
1054
|
-
return childrenWithoutParentComponent();
|
|
1055
|
-
},
|
|
1056
|
-
children: (child, _index) => {
|
|
1057
|
-
_index();
|
|
1058
|
-
return createComponent(block_styles_default, {
|
|
1059
|
-
get key() {
|
|
1060
|
-
return "block-style-" + child.id;
|
|
1061
|
-
},
|
|
1062
|
-
block: child,
|
|
1063
|
-
get context() {
|
|
1064
|
-
return childrenContext();
|
|
1065
|
-
}
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
1043
|
})];
|
|
1069
1044
|
}
|
|
1070
1045
|
});
|
|
1071
1046
|
}
|
|
1072
1047
|
})];
|
|
1073
1048
|
}
|
|
1074
|
-
});
|
|
1049
|
+
})];
|
|
1075
1050
|
}
|
|
1076
1051
|
});
|
|
1077
1052
|
}
|
|
@@ -1158,7 +1133,7 @@ function Blocks(props) {
|
|
|
1158
1133
|
return props.context?.BlocksWrapperProps;
|
|
1159
1134
|
},
|
|
1160
1135
|
get children() {
|
|
1161
|
-
return
|
|
1136
|
+
return createComponent(Show, {
|
|
1162
1137
|
get when() {
|
|
1163
1138
|
return props.blocks;
|
|
1164
1139
|
},
|
|
@@ -1171,7 +1146,7 @@ function Blocks(props) {
|
|
|
1171
1146
|
_index();
|
|
1172
1147
|
return createComponent(block_default, {
|
|
1173
1148
|
get key() {
|
|
1174
|
-
return
|
|
1149
|
+
return block.id;
|
|
1175
1150
|
},
|
|
1176
1151
|
block,
|
|
1177
1152
|
get context() {
|
|
@@ -1184,30 +1159,7 @@ function Blocks(props) {
|
|
|
1184
1159
|
}
|
|
1185
1160
|
});
|
|
1186
1161
|
}
|
|
1187
|
-
})
|
|
1188
|
-
get when() {
|
|
1189
|
-
return props.blocks;
|
|
1190
|
-
},
|
|
1191
|
-
get children() {
|
|
1192
|
-
return createComponent(For, {
|
|
1193
|
-
get each() {
|
|
1194
|
-
return props.blocks;
|
|
1195
|
-
},
|
|
1196
|
-
children: (block, _index) => {
|
|
1197
|
-
_index();
|
|
1198
|
-
return createComponent(block_styles_default, {
|
|
1199
|
-
get key() {
|
|
1200
|
-
return "block-style-" + block.id;
|
|
1201
|
-
},
|
|
1202
|
-
block,
|
|
1203
|
-
get context() {
|
|
1204
|
-
return props.context || builderContext;
|
|
1205
|
-
}
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
})];
|
|
1162
|
+
});
|
|
1211
1163
|
}
|
|
1212
1164
|
});
|
|
1213
1165
|
}
|
|
@@ -3284,7 +3236,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3284
3236
|
};
|
|
3285
3237
|
|
|
3286
3238
|
// src/constants/sdk-version.ts
|
|
3287
|
-
var SDK_VERSION = "0.11.
|
|
3239
|
+
var SDK_VERSION = "0.11.3";
|
|
3288
3240
|
|
|
3289
3241
|
// src/functions/register.ts
|
|
3290
3242
|
var registry = {};
|
package/lib/browser/index.jsx
CHANGED
|
@@ -751,25 +751,15 @@ function ComponentRef(props) {
|
|
|
751
751
|
contextValue: props.context
|
|
752
752
|
})}
|
|
753
753
|
component={Wrapper()}
|
|
754
|
-
>
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}}</For>
|
|
764
|
-
<For each={props.blockChildren}>{(child, _index) => {
|
|
765
|
-
const index = _index();
|
|
766
|
-
return <Block_styles_default
|
|
767
|
-
key={"block-style-" + child.id}
|
|
768
|
-
block={child}
|
|
769
|
-
context={props.context}
|
|
770
|
-
/>;
|
|
771
|
-
}}</For>
|
|
772
|
-
</Dynamic3></Show4>;
|
|
754
|
+
><For each={props.blockChildren}>{(child, _index) => {
|
|
755
|
+
const index = _index();
|
|
756
|
+
return <Block_default
|
|
757
|
+
key={child.id}
|
|
758
|
+
block={child}
|
|
759
|
+
context={props.context}
|
|
760
|
+
registeredComponents={props.registeredComponents}
|
|
761
|
+
/>;
|
|
762
|
+
}}</For></Dynamic3></Show4>;
|
|
773
763
|
}
|
|
774
764
|
var Component_ref_default = ComponentRef;
|
|
775
765
|
|
|
@@ -846,41 +836,10 @@ function Block(props) {
|
|
|
846
836
|
isInteractive: !blockComponent()?.isRSC
|
|
847
837
|
};
|
|
848
838
|
}
|
|
849
|
-
return <Show5 when={canShowBlock()}
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
blockChildren={componentRefProps().blockChildren}
|
|
854
|
-
context={componentRefProps().context}
|
|
855
|
-
registeredComponents={componentRefProps().registeredComponents}
|
|
856
|
-
builderBlock={componentRefProps().builderBlock}
|
|
857
|
-
includeBlockProps={componentRefProps().includeBlockProps}
|
|
858
|
-
isInteractive={componentRefProps().isInteractive}
|
|
859
|
-
/>}
|
|
860
|
-
when={!blockComponent()?.noWrap}
|
|
861
|
-
>
|
|
862
|
-
<Show5 when={isEmptyHtmlElement(Tag())}><Block_wrapper_default
|
|
863
|
-
Wrapper={Tag()}
|
|
864
|
-
block={processedBlock()}
|
|
865
|
-
context={props.context}
|
|
866
|
-
hasChildren={false}
|
|
867
|
-
/></Show5>
|
|
868
|
-
<Show5 when={!isEmptyHtmlElement(Tag()) && repeatItem()}><For2 each={repeatItem()}>{(data, _index) => {
|
|
869
|
-
const index = _index();
|
|
870
|
-
return <Repeated_block_default
|
|
871
|
-
key={index}
|
|
872
|
-
repeatContext={data.context}
|
|
873
|
-
block={data.block}
|
|
874
|
-
registeredComponents={props.registeredComponents}
|
|
875
|
-
/>;
|
|
876
|
-
}}</For2></Show5>
|
|
877
|
-
<Show5 when={!isEmptyHtmlElement(Tag()) && !repeatItem()}><Block_wrapper_default
|
|
878
|
-
Wrapper={Tag()}
|
|
879
|
-
block={processedBlock()}
|
|
880
|
-
context={props.context}
|
|
881
|
-
hasChildren={true}
|
|
882
|
-
>
|
|
883
|
-
<Component_ref_default
|
|
839
|
+
return <Show5 when={canShowBlock()}>
|
|
840
|
+
<Block_styles_default block={props.block} context={props.context} />
|
|
841
|
+
<Show5
|
|
842
|
+
fallback={<Component_ref_default
|
|
884
843
|
componentRef={componentRefProps().componentRef}
|
|
885
844
|
componentOptions={componentRefProps().componentOptions}
|
|
886
845
|
blockChildren={componentRefProps().blockChildren}
|
|
@@ -889,26 +848,52 @@ function Block(props) {
|
|
|
889
848
|
builderBlock={componentRefProps().builderBlock}
|
|
890
849
|
includeBlockProps={componentRefProps().includeBlockProps}
|
|
891
850
|
isInteractive={componentRefProps().isInteractive}
|
|
892
|
-
/>
|
|
893
|
-
|
|
851
|
+
/>}
|
|
852
|
+
when={!blockComponent()?.noWrap}
|
|
853
|
+
>
|
|
854
|
+
<Show5 when={isEmptyHtmlElement(Tag())}><Block_wrapper_default
|
|
855
|
+
Wrapper={Tag()}
|
|
856
|
+
block={processedBlock()}
|
|
857
|
+
context={props.context}
|
|
858
|
+
hasChildren={false}
|
|
859
|
+
/></Show5>
|
|
860
|
+
<Show5 when={!isEmptyHtmlElement(Tag()) && repeatItem()}><For2 each={repeatItem()}>{(data, _index) => {
|
|
894
861
|
const index = _index();
|
|
895
|
-
return <
|
|
896
|
-
key={
|
|
897
|
-
|
|
898
|
-
|
|
862
|
+
return <Repeated_block_default
|
|
863
|
+
key={index}
|
|
864
|
+
repeatContext={data.context}
|
|
865
|
+
block={data.block}
|
|
899
866
|
registeredComponents={props.registeredComponents}
|
|
900
867
|
/>;
|
|
901
|
-
}}</For2>
|
|
902
|
-
<
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
868
|
+
}}</For2></Show5>
|
|
869
|
+
<Show5 when={!isEmptyHtmlElement(Tag()) && !repeatItem()}><Block_wrapper_default
|
|
870
|
+
Wrapper={Tag()}
|
|
871
|
+
block={processedBlock()}
|
|
872
|
+
context={props.context}
|
|
873
|
+
hasChildren={true}
|
|
874
|
+
>
|
|
875
|
+
<Component_ref_default
|
|
876
|
+
componentRef={componentRefProps().componentRef}
|
|
877
|
+
componentOptions={componentRefProps().componentOptions}
|
|
878
|
+
blockChildren={componentRefProps().blockChildren}
|
|
879
|
+
context={componentRefProps().context}
|
|
880
|
+
registeredComponents={componentRefProps().registeredComponents}
|
|
881
|
+
builderBlock={componentRefProps().builderBlock}
|
|
882
|
+
includeBlockProps={componentRefProps().includeBlockProps}
|
|
883
|
+
isInteractive={componentRefProps().isInteractive}
|
|
884
|
+
/>
|
|
885
|
+
<For2 each={childrenWithoutParentComponent()}>{(child, _index) => {
|
|
886
|
+
const index = _index();
|
|
887
|
+
return <Block
|
|
888
|
+
key={child.id}
|
|
889
|
+
block={child}
|
|
890
|
+
context={childrenContext()}
|
|
891
|
+
registeredComponents={props.registeredComponents}
|
|
892
|
+
/>;
|
|
893
|
+
}}</For2>
|
|
894
|
+
</Block_wrapper_default></Show5>
|
|
895
|
+
</Show5>
|
|
896
|
+
</Show5>;
|
|
912
897
|
}
|
|
913
898
|
var Block_default = Block;
|
|
914
899
|
|
|
@@ -977,25 +962,15 @@ function Blocks(props) {
|
|
|
977
962
|
styleProp={props.styleProp}
|
|
978
963
|
BlocksWrapper={props.context?.BlocksWrapper}
|
|
979
964
|
BlocksWrapperProps={props.context?.BlocksWrapperProps}
|
|
980
|
-
>
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}}</For3></Show6>
|
|
990
|
-
<Show6 when={props.blocks}><For3 each={props.blocks}>{(block, _index) => {
|
|
991
|
-
const index = _index();
|
|
992
|
-
return <Block_styles_default
|
|
993
|
-
key={"block-style-" + block.id}
|
|
994
|
-
block={block}
|
|
995
|
-
context={props.context || builderContext}
|
|
996
|
-
/>;
|
|
997
|
-
}}</For3></Show6>
|
|
998
|
-
</Blocks_wrapper_default>;
|
|
965
|
+
><Show6 when={props.blocks}><For3 each={props.blocks}>{(block, _index) => {
|
|
966
|
+
const index = _index();
|
|
967
|
+
return <Block_default
|
|
968
|
+
key={block.id}
|
|
969
|
+
block={block}
|
|
970
|
+
context={props.context || builderContext}
|
|
971
|
+
registeredComponents={props.registeredComponents || componentsContext.registeredComponents}
|
|
972
|
+
/>;
|
|
973
|
+
}}</For3></Show6></Blocks_wrapper_default>;
|
|
999
974
|
}
|
|
1000
975
|
var Blocks_default = Blocks;
|
|
1001
976
|
|
|
@@ -2949,7 +2924,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
2949
2924
|
};
|
|
2950
2925
|
|
|
2951
2926
|
// src/constants/sdk-version.ts
|
|
2952
|
-
var SDK_VERSION = "0.11.
|
|
2927
|
+
var SDK_VERSION = "0.11.3";
|
|
2953
2928
|
|
|
2954
2929
|
// src/functions/register.ts
|
|
2955
2930
|
var registry = {};
|
package/lib/edge/dev.js
CHANGED
|
@@ -3938,7 +3938,7 @@ function ComponentRef(props) {
|
|
|
3938
3938
|
return Wrapper();
|
|
3939
3939
|
},
|
|
3940
3940
|
get children() {
|
|
3941
|
-
return
|
|
3941
|
+
return createComponent(For, {
|
|
3942
3942
|
get each() {
|
|
3943
3943
|
return props.blockChildren;
|
|
3944
3944
|
},
|
|
@@ -3946,7 +3946,7 @@ function ComponentRef(props) {
|
|
|
3946
3946
|
_index();
|
|
3947
3947
|
return createComponent(block_default, {
|
|
3948
3948
|
get key() {
|
|
3949
|
-
return
|
|
3949
|
+
return child.id;
|
|
3950
3950
|
},
|
|
3951
3951
|
block: child,
|
|
3952
3952
|
get context() {
|
|
@@ -3957,23 +3957,7 @@ function ComponentRef(props) {
|
|
|
3957
3957
|
}
|
|
3958
3958
|
});
|
|
3959
3959
|
}
|
|
3960
|
-
})
|
|
3961
|
-
get each() {
|
|
3962
|
-
return props.blockChildren;
|
|
3963
|
-
},
|
|
3964
|
-
children: (child, _index) => {
|
|
3965
|
-
_index();
|
|
3966
|
-
return createComponent(block_styles_default, {
|
|
3967
|
-
get key() {
|
|
3968
|
-
return "block-style-" + child.id;
|
|
3969
|
-
},
|
|
3970
|
-
block: child,
|
|
3971
|
-
get context() {
|
|
3972
|
-
return props.context;
|
|
3973
|
-
}
|
|
3974
|
-
});
|
|
3975
|
-
}
|
|
3976
|
-
})];
|
|
3960
|
+
});
|
|
3977
3961
|
}
|
|
3978
3962
|
}));
|
|
3979
3963
|
}
|
|
@@ -4069,7 +4053,14 @@ function Block(props) {
|
|
|
4069
4053
|
return canShowBlock();
|
|
4070
4054
|
},
|
|
4071
4055
|
get children() {
|
|
4072
|
-
return createComponent(
|
|
4056
|
+
return [createComponent(block_styles_default, {
|
|
4057
|
+
get block() {
|
|
4058
|
+
return props.block;
|
|
4059
|
+
},
|
|
4060
|
+
get context() {
|
|
4061
|
+
return props.context;
|
|
4062
|
+
}
|
|
4063
|
+
}), createComponent(Show, {
|
|
4073
4064
|
get fallback() {
|
|
4074
4065
|
return createComponent(component_ref_default, {
|
|
4075
4066
|
get componentRef() {
|
|
@@ -4196,7 +4187,7 @@ function Block(props) {
|
|
|
4196
4187
|
_index();
|
|
4197
4188
|
return createComponent(Block, {
|
|
4198
4189
|
get key() {
|
|
4199
|
-
return
|
|
4190
|
+
return child.id;
|
|
4200
4191
|
},
|
|
4201
4192
|
block: child,
|
|
4202
4193
|
get context() {
|
|
@@ -4207,29 +4198,13 @@ function Block(props) {
|
|
|
4207
4198
|
}
|
|
4208
4199
|
});
|
|
4209
4200
|
}
|
|
4210
|
-
}), createComponent(For, {
|
|
4211
|
-
get each() {
|
|
4212
|
-
return childrenWithoutParentComponent();
|
|
4213
|
-
},
|
|
4214
|
-
children: (child, _index) => {
|
|
4215
|
-
_index();
|
|
4216
|
-
return createComponent(block_styles_default, {
|
|
4217
|
-
get key() {
|
|
4218
|
-
return "block-style-" + child.id;
|
|
4219
|
-
},
|
|
4220
|
-
block: child,
|
|
4221
|
-
get context() {
|
|
4222
|
-
return childrenContext();
|
|
4223
|
-
}
|
|
4224
|
-
});
|
|
4225
|
-
}
|
|
4226
4201
|
})];
|
|
4227
4202
|
}
|
|
4228
4203
|
});
|
|
4229
4204
|
}
|
|
4230
4205
|
})];
|
|
4231
4206
|
}
|
|
4232
|
-
});
|
|
4207
|
+
})];
|
|
4233
4208
|
}
|
|
4234
4209
|
});
|
|
4235
4210
|
}
|
|
@@ -4316,7 +4291,7 @@ function Blocks(props) {
|
|
|
4316
4291
|
return props.context?.BlocksWrapperProps;
|
|
4317
4292
|
},
|
|
4318
4293
|
get children() {
|
|
4319
|
-
return
|
|
4294
|
+
return createComponent(Show, {
|
|
4320
4295
|
get when() {
|
|
4321
4296
|
return props.blocks;
|
|
4322
4297
|
},
|
|
@@ -4329,7 +4304,7 @@ function Blocks(props) {
|
|
|
4329
4304
|
_index();
|
|
4330
4305
|
return createComponent(block_default, {
|
|
4331
4306
|
get key() {
|
|
4332
|
-
return
|
|
4307
|
+
return block.id;
|
|
4333
4308
|
},
|
|
4334
4309
|
block,
|
|
4335
4310
|
get context() {
|
|
@@ -4342,30 +4317,7 @@ function Blocks(props) {
|
|
|
4342
4317
|
}
|
|
4343
4318
|
});
|
|
4344
4319
|
}
|
|
4345
|
-
})
|
|
4346
|
-
get when() {
|
|
4347
|
-
return props.blocks;
|
|
4348
|
-
},
|
|
4349
|
-
get children() {
|
|
4350
|
-
return createComponent(For, {
|
|
4351
|
-
get each() {
|
|
4352
|
-
return props.blocks;
|
|
4353
|
-
},
|
|
4354
|
-
children: (block, _index) => {
|
|
4355
|
-
_index();
|
|
4356
|
-
return createComponent(block_styles_default, {
|
|
4357
|
-
get key() {
|
|
4358
|
-
return "block-style-" + block.id;
|
|
4359
|
-
},
|
|
4360
|
-
block,
|
|
4361
|
-
get context() {
|
|
4362
|
-
return props.context || builderContext;
|
|
4363
|
-
}
|
|
4364
|
-
});
|
|
4365
|
-
}
|
|
4366
|
-
});
|
|
4367
|
-
}
|
|
4368
|
-
})];
|
|
4320
|
+
});
|
|
4369
4321
|
}
|
|
4370
4322
|
});
|
|
4371
4323
|
}
|
|
@@ -6451,7 +6403,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6451
6403
|
};
|
|
6452
6404
|
|
|
6453
6405
|
// src/constants/sdk-version.ts
|
|
6454
|
-
var SDK_VERSION = "0.11.
|
|
6406
|
+
var SDK_VERSION = "0.11.3";
|
|
6455
6407
|
|
|
6456
6408
|
// src/functions/register.ts
|
|
6457
6409
|
var registry = {};
|