@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/node/dev.js
CHANGED
|
@@ -909,7 +909,7 @@ function ComponentRef(props) {
|
|
|
909
909
|
return Wrapper();
|
|
910
910
|
},
|
|
911
911
|
get children() {
|
|
912
|
-
return
|
|
912
|
+
return createComponent(For, {
|
|
913
913
|
get each() {
|
|
914
914
|
return props.blockChildren;
|
|
915
915
|
},
|
|
@@ -917,7 +917,7 @@ function ComponentRef(props) {
|
|
|
917
917
|
_index();
|
|
918
918
|
return createComponent(block_default, {
|
|
919
919
|
get key() {
|
|
920
|
-
return
|
|
920
|
+
return child.id;
|
|
921
921
|
},
|
|
922
922
|
block: child,
|
|
923
923
|
get context() {
|
|
@@ -928,23 +928,7 @@ function ComponentRef(props) {
|
|
|
928
928
|
}
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
|
-
})
|
|
932
|
-
get each() {
|
|
933
|
-
return props.blockChildren;
|
|
934
|
-
},
|
|
935
|
-
children: (child, _index) => {
|
|
936
|
-
_index();
|
|
937
|
-
return createComponent(block_styles_default, {
|
|
938
|
-
get key() {
|
|
939
|
-
return "block-style-" + child.id;
|
|
940
|
-
},
|
|
941
|
-
block: child,
|
|
942
|
-
get context() {
|
|
943
|
-
return props.context;
|
|
944
|
-
}
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
})];
|
|
931
|
+
});
|
|
948
932
|
}
|
|
949
933
|
}));
|
|
950
934
|
}
|
|
@@ -1040,7 +1024,14 @@ function Block(props) {
|
|
|
1040
1024
|
return canShowBlock();
|
|
1041
1025
|
},
|
|
1042
1026
|
get children() {
|
|
1043
|
-
return createComponent(
|
|
1027
|
+
return [createComponent(block_styles_default, {
|
|
1028
|
+
get block() {
|
|
1029
|
+
return props.block;
|
|
1030
|
+
},
|
|
1031
|
+
get context() {
|
|
1032
|
+
return props.context;
|
|
1033
|
+
}
|
|
1034
|
+
}), createComponent(Show, {
|
|
1044
1035
|
get fallback() {
|
|
1045
1036
|
return createComponent(component_ref_default, {
|
|
1046
1037
|
get componentRef() {
|
|
@@ -1167,7 +1158,7 @@ function Block(props) {
|
|
|
1167
1158
|
_index();
|
|
1168
1159
|
return createComponent(Block, {
|
|
1169
1160
|
get key() {
|
|
1170
|
-
return
|
|
1161
|
+
return child.id;
|
|
1171
1162
|
},
|
|
1172
1163
|
block: child,
|
|
1173
1164
|
get context() {
|
|
@@ -1178,29 +1169,13 @@ function Block(props) {
|
|
|
1178
1169
|
}
|
|
1179
1170
|
});
|
|
1180
1171
|
}
|
|
1181
|
-
}), createComponent(For, {
|
|
1182
|
-
get each() {
|
|
1183
|
-
return childrenWithoutParentComponent();
|
|
1184
|
-
},
|
|
1185
|
-
children: (child, _index) => {
|
|
1186
|
-
_index();
|
|
1187
|
-
return createComponent(block_styles_default, {
|
|
1188
|
-
get key() {
|
|
1189
|
-
return "block-style-" + child.id;
|
|
1190
|
-
},
|
|
1191
|
-
block: child,
|
|
1192
|
-
get context() {
|
|
1193
|
-
return childrenContext();
|
|
1194
|
-
}
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
1172
|
})];
|
|
1198
1173
|
}
|
|
1199
1174
|
});
|
|
1200
1175
|
}
|
|
1201
1176
|
})];
|
|
1202
1177
|
}
|
|
1203
|
-
});
|
|
1178
|
+
})];
|
|
1204
1179
|
}
|
|
1205
1180
|
});
|
|
1206
1181
|
}
|
|
@@ -1287,7 +1262,7 @@ function Blocks(props) {
|
|
|
1287
1262
|
return props.context?.BlocksWrapperProps;
|
|
1288
1263
|
},
|
|
1289
1264
|
get children() {
|
|
1290
|
-
return
|
|
1265
|
+
return createComponent(Show, {
|
|
1291
1266
|
get when() {
|
|
1292
1267
|
return props.blocks;
|
|
1293
1268
|
},
|
|
@@ -1300,7 +1275,7 @@ function Blocks(props) {
|
|
|
1300
1275
|
_index();
|
|
1301
1276
|
return createComponent(block_default, {
|
|
1302
1277
|
get key() {
|
|
1303
|
-
return
|
|
1278
|
+
return block.id;
|
|
1304
1279
|
},
|
|
1305
1280
|
block,
|
|
1306
1281
|
get context() {
|
|
@@ -1313,30 +1288,7 @@ function Blocks(props) {
|
|
|
1313
1288
|
}
|
|
1314
1289
|
});
|
|
1315
1290
|
}
|
|
1316
|
-
})
|
|
1317
|
-
get when() {
|
|
1318
|
-
return props.blocks;
|
|
1319
|
-
},
|
|
1320
|
-
get children() {
|
|
1321
|
-
return createComponent(For, {
|
|
1322
|
-
get each() {
|
|
1323
|
-
return props.blocks;
|
|
1324
|
-
},
|
|
1325
|
-
children: (block, _index) => {
|
|
1326
|
-
_index();
|
|
1327
|
-
return createComponent(block_styles_default, {
|
|
1328
|
-
get key() {
|
|
1329
|
-
return "block-style-" + block.id;
|
|
1330
|
-
},
|
|
1331
|
-
block,
|
|
1332
|
-
get context() {
|
|
1333
|
-
return props.context || builderContext;
|
|
1334
|
-
}
|
|
1335
|
-
});
|
|
1336
|
-
}
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
})];
|
|
1291
|
+
});
|
|
1340
1292
|
}
|
|
1341
1293
|
});
|
|
1342
1294
|
}
|
|
@@ -3422,7 +3374,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3422
3374
|
};
|
|
3423
3375
|
|
|
3424
3376
|
// src/constants/sdk-version.ts
|
|
3425
|
-
var SDK_VERSION = "0.11.
|
|
3377
|
+
var SDK_VERSION = "0.11.3";
|
|
3426
3378
|
|
|
3427
3379
|
// src/functions/register.ts
|
|
3428
3380
|
var registry = {};
|
package/lib/node/dev.jsx
CHANGED
|
@@ -882,25 +882,15 @@ function ComponentRef(props) {
|
|
|
882
882
|
contextValue: props.context
|
|
883
883
|
})}
|
|
884
884
|
component={Wrapper()}
|
|
885
|
-
>
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
}}</For>
|
|
895
|
-
<For each={props.blockChildren}>{(child, _index) => {
|
|
896
|
-
const index = _index();
|
|
897
|
-
return <Block_styles_default
|
|
898
|
-
key={"block-style-" + child.id}
|
|
899
|
-
block={child}
|
|
900
|
-
context={props.context}
|
|
901
|
-
/>;
|
|
902
|
-
}}</For>
|
|
903
|
-
</Dynamic3></Show4>;
|
|
885
|
+
><For each={props.blockChildren}>{(child, _index) => {
|
|
886
|
+
const index = _index();
|
|
887
|
+
return <Block_default
|
|
888
|
+
key={child.id}
|
|
889
|
+
block={child}
|
|
890
|
+
context={props.context}
|
|
891
|
+
registeredComponents={props.registeredComponents}
|
|
892
|
+
/>;
|
|
893
|
+
}}</For></Dynamic3></Show4>;
|
|
904
894
|
}
|
|
905
895
|
var Component_ref_default = ComponentRef;
|
|
906
896
|
|
|
@@ -977,41 +967,10 @@ function Block(props) {
|
|
|
977
967
|
isInteractive: !blockComponent()?.isRSC
|
|
978
968
|
};
|
|
979
969
|
}
|
|
980
|
-
return <Show5 when={canShowBlock()}
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
blockChildren={componentRefProps().blockChildren}
|
|
985
|
-
context={componentRefProps().context}
|
|
986
|
-
registeredComponents={componentRefProps().registeredComponents}
|
|
987
|
-
builderBlock={componentRefProps().builderBlock}
|
|
988
|
-
includeBlockProps={componentRefProps().includeBlockProps}
|
|
989
|
-
isInteractive={componentRefProps().isInteractive}
|
|
990
|
-
/>}
|
|
991
|
-
when={!blockComponent()?.noWrap}
|
|
992
|
-
>
|
|
993
|
-
<Show5 when={isEmptyHtmlElement(Tag())}><Block_wrapper_default
|
|
994
|
-
Wrapper={Tag()}
|
|
995
|
-
block={processedBlock()}
|
|
996
|
-
context={props.context}
|
|
997
|
-
hasChildren={false}
|
|
998
|
-
/></Show5>
|
|
999
|
-
<Show5 when={!isEmptyHtmlElement(Tag()) && repeatItem()}><For2 each={repeatItem()}>{(data, _index) => {
|
|
1000
|
-
const index = _index();
|
|
1001
|
-
return <Repeated_block_default
|
|
1002
|
-
key={index}
|
|
1003
|
-
repeatContext={data.context}
|
|
1004
|
-
block={data.block}
|
|
1005
|
-
registeredComponents={props.registeredComponents}
|
|
1006
|
-
/>;
|
|
1007
|
-
}}</For2></Show5>
|
|
1008
|
-
<Show5 when={!isEmptyHtmlElement(Tag()) && !repeatItem()}><Block_wrapper_default
|
|
1009
|
-
Wrapper={Tag()}
|
|
1010
|
-
block={processedBlock()}
|
|
1011
|
-
context={props.context}
|
|
1012
|
-
hasChildren={true}
|
|
1013
|
-
>
|
|
1014
|
-
<Component_ref_default
|
|
970
|
+
return <Show5 when={canShowBlock()}>
|
|
971
|
+
<Block_styles_default block={props.block} context={props.context} />
|
|
972
|
+
<Show5
|
|
973
|
+
fallback={<Component_ref_default
|
|
1015
974
|
componentRef={componentRefProps().componentRef}
|
|
1016
975
|
componentOptions={componentRefProps().componentOptions}
|
|
1017
976
|
blockChildren={componentRefProps().blockChildren}
|
|
@@ -1020,26 +979,52 @@ function Block(props) {
|
|
|
1020
979
|
builderBlock={componentRefProps().builderBlock}
|
|
1021
980
|
includeBlockProps={componentRefProps().includeBlockProps}
|
|
1022
981
|
isInteractive={componentRefProps().isInteractive}
|
|
1023
|
-
/>
|
|
1024
|
-
|
|
982
|
+
/>}
|
|
983
|
+
when={!blockComponent()?.noWrap}
|
|
984
|
+
>
|
|
985
|
+
<Show5 when={isEmptyHtmlElement(Tag())}><Block_wrapper_default
|
|
986
|
+
Wrapper={Tag()}
|
|
987
|
+
block={processedBlock()}
|
|
988
|
+
context={props.context}
|
|
989
|
+
hasChildren={false}
|
|
990
|
+
/></Show5>
|
|
991
|
+
<Show5 when={!isEmptyHtmlElement(Tag()) && repeatItem()}><For2 each={repeatItem()}>{(data, _index) => {
|
|
1025
992
|
const index = _index();
|
|
1026
|
-
return <
|
|
1027
|
-
key={
|
|
1028
|
-
|
|
1029
|
-
|
|
993
|
+
return <Repeated_block_default
|
|
994
|
+
key={index}
|
|
995
|
+
repeatContext={data.context}
|
|
996
|
+
block={data.block}
|
|
1030
997
|
registeredComponents={props.registeredComponents}
|
|
1031
998
|
/>;
|
|
1032
|
-
}}</For2>
|
|
1033
|
-
<
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
999
|
+
}}</For2></Show5>
|
|
1000
|
+
<Show5 when={!isEmptyHtmlElement(Tag()) && !repeatItem()}><Block_wrapper_default
|
|
1001
|
+
Wrapper={Tag()}
|
|
1002
|
+
block={processedBlock()}
|
|
1003
|
+
context={props.context}
|
|
1004
|
+
hasChildren={true}
|
|
1005
|
+
>
|
|
1006
|
+
<Component_ref_default
|
|
1007
|
+
componentRef={componentRefProps().componentRef}
|
|
1008
|
+
componentOptions={componentRefProps().componentOptions}
|
|
1009
|
+
blockChildren={componentRefProps().blockChildren}
|
|
1010
|
+
context={componentRefProps().context}
|
|
1011
|
+
registeredComponents={componentRefProps().registeredComponents}
|
|
1012
|
+
builderBlock={componentRefProps().builderBlock}
|
|
1013
|
+
includeBlockProps={componentRefProps().includeBlockProps}
|
|
1014
|
+
isInteractive={componentRefProps().isInteractive}
|
|
1015
|
+
/>
|
|
1016
|
+
<For2 each={childrenWithoutParentComponent()}>{(child, _index) => {
|
|
1017
|
+
const index = _index();
|
|
1018
|
+
return <Block
|
|
1019
|
+
key={child.id}
|
|
1020
|
+
block={child}
|
|
1021
|
+
context={childrenContext()}
|
|
1022
|
+
registeredComponents={props.registeredComponents}
|
|
1023
|
+
/>;
|
|
1024
|
+
}}</For2>
|
|
1025
|
+
</Block_wrapper_default></Show5>
|
|
1026
|
+
</Show5>
|
|
1027
|
+
</Show5>;
|
|
1043
1028
|
}
|
|
1044
1029
|
var Block_default = Block;
|
|
1045
1030
|
|
|
@@ -1108,25 +1093,15 @@ function Blocks(props) {
|
|
|
1108
1093
|
styleProp={props.styleProp}
|
|
1109
1094
|
BlocksWrapper={props.context?.BlocksWrapper}
|
|
1110
1095
|
BlocksWrapperProps={props.context?.BlocksWrapperProps}
|
|
1111
|
-
>
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
}}</For3></Show6>
|
|
1121
|
-
<Show6 when={props.blocks}><For3 each={props.blocks}>{(block, _index) => {
|
|
1122
|
-
const index = _index();
|
|
1123
|
-
return <Block_styles_default
|
|
1124
|
-
key={"block-style-" + block.id}
|
|
1125
|
-
block={block}
|
|
1126
|
-
context={props.context || builderContext}
|
|
1127
|
-
/>;
|
|
1128
|
-
}}</For3></Show6>
|
|
1129
|
-
</Blocks_wrapper_default>;
|
|
1096
|
+
><Show6 when={props.blocks}><For3 each={props.blocks}>{(block, _index) => {
|
|
1097
|
+
const index = _index();
|
|
1098
|
+
return <Block_default
|
|
1099
|
+
key={block.id}
|
|
1100
|
+
block={block}
|
|
1101
|
+
context={props.context || builderContext}
|
|
1102
|
+
registeredComponents={props.registeredComponents || componentsContext.registeredComponents}
|
|
1103
|
+
/>;
|
|
1104
|
+
}}</For3></Show6></Blocks_wrapper_default>;
|
|
1130
1105
|
}
|
|
1131
1106
|
var Blocks_default = Blocks;
|
|
1132
1107
|
|
|
@@ -3089,7 +3064,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3089
3064
|
};
|
|
3090
3065
|
|
|
3091
3066
|
// src/constants/sdk-version.ts
|
|
3092
|
-
var SDK_VERSION = "0.11.
|
|
3067
|
+
var SDK_VERSION = "0.11.3";
|
|
3093
3068
|
|
|
3094
3069
|
// src/functions/register.ts
|
|
3095
3070
|
var registry = {};
|
package/lib/node/index.js
CHANGED
|
@@ -903,7 +903,7 @@ function ComponentRef(props) {
|
|
|
903
903
|
return Wrapper();
|
|
904
904
|
},
|
|
905
905
|
get children() {
|
|
906
|
-
return
|
|
906
|
+
return createComponent(For, {
|
|
907
907
|
get each() {
|
|
908
908
|
return props.blockChildren;
|
|
909
909
|
},
|
|
@@ -911,7 +911,7 @@ function ComponentRef(props) {
|
|
|
911
911
|
_index();
|
|
912
912
|
return createComponent(block_default, {
|
|
913
913
|
get key() {
|
|
914
|
-
return
|
|
914
|
+
return child.id;
|
|
915
915
|
},
|
|
916
916
|
block: child,
|
|
917
917
|
get context() {
|
|
@@ -922,23 +922,7 @@ function ComponentRef(props) {
|
|
|
922
922
|
}
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
|
-
})
|
|
926
|
-
get each() {
|
|
927
|
-
return props.blockChildren;
|
|
928
|
-
},
|
|
929
|
-
children: (child, _index) => {
|
|
930
|
-
_index();
|
|
931
|
-
return createComponent(block_styles_default, {
|
|
932
|
-
get key() {
|
|
933
|
-
return "block-style-" + child.id;
|
|
934
|
-
},
|
|
935
|
-
block: child,
|
|
936
|
-
get context() {
|
|
937
|
-
return props.context;
|
|
938
|
-
}
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
})];
|
|
925
|
+
});
|
|
942
926
|
}
|
|
943
927
|
}));
|
|
944
928
|
}
|
|
@@ -1034,7 +1018,14 @@ function Block(props) {
|
|
|
1034
1018
|
return canShowBlock();
|
|
1035
1019
|
},
|
|
1036
1020
|
get children() {
|
|
1037
|
-
return createComponent(
|
|
1021
|
+
return [createComponent(block_styles_default, {
|
|
1022
|
+
get block() {
|
|
1023
|
+
return props.block;
|
|
1024
|
+
},
|
|
1025
|
+
get context() {
|
|
1026
|
+
return props.context;
|
|
1027
|
+
}
|
|
1028
|
+
}), createComponent(Show, {
|
|
1038
1029
|
get fallback() {
|
|
1039
1030
|
return createComponent(component_ref_default, {
|
|
1040
1031
|
get componentRef() {
|
|
@@ -1161,7 +1152,7 @@ function Block(props) {
|
|
|
1161
1152
|
_index();
|
|
1162
1153
|
return createComponent(Block, {
|
|
1163
1154
|
get key() {
|
|
1164
|
-
return
|
|
1155
|
+
return child.id;
|
|
1165
1156
|
},
|
|
1166
1157
|
block: child,
|
|
1167
1158
|
get context() {
|
|
@@ -1172,29 +1163,13 @@ function Block(props) {
|
|
|
1172
1163
|
}
|
|
1173
1164
|
});
|
|
1174
1165
|
}
|
|
1175
|
-
}), createComponent(For, {
|
|
1176
|
-
get each() {
|
|
1177
|
-
return childrenWithoutParentComponent();
|
|
1178
|
-
},
|
|
1179
|
-
children: (child, _index) => {
|
|
1180
|
-
_index();
|
|
1181
|
-
return createComponent(block_styles_default, {
|
|
1182
|
-
get key() {
|
|
1183
|
-
return "block-style-" + child.id;
|
|
1184
|
-
},
|
|
1185
|
-
block: child,
|
|
1186
|
-
get context() {
|
|
1187
|
-
return childrenContext();
|
|
1188
|
-
}
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
1166
|
})];
|
|
1192
1167
|
}
|
|
1193
1168
|
});
|
|
1194
1169
|
}
|
|
1195
1170
|
})];
|
|
1196
1171
|
}
|
|
1197
|
-
});
|
|
1172
|
+
})];
|
|
1198
1173
|
}
|
|
1199
1174
|
});
|
|
1200
1175
|
}
|
|
@@ -1281,7 +1256,7 @@ function Blocks(props) {
|
|
|
1281
1256
|
return props.context?.BlocksWrapperProps;
|
|
1282
1257
|
},
|
|
1283
1258
|
get children() {
|
|
1284
|
-
return
|
|
1259
|
+
return createComponent(Show, {
|
|
1285
1260
|
get when() {
|
|
1286
1261
|
return props.blocks;
|
|
1287
1262
|
},
|
|
@@ -1294,7 +1269,7 @@ function Blocks(props) {
|
|
|
1294
1269
|
_index();
|
|
1295
1270
|
return createComponent(block_default, {
|
|
1296
1271
|
get key() {
|
|
1297
|
-
return
|
|
1272
|
+
return block.id;
|
|
1298
1273
|
},
|
|
1299
1274
|
block,
|
|
1300
1275
|
get context() {
|
|
@@ -1307,30 +1282,7 @@ function Blocks(props) {
|
|
|
1307
1282
|
}
|
|
1308
1283
|
});
|
|
1309
1284
|
}
|
|
1310
|
-
})
|
|
1311
|
-
get when() {
|
|
1312
|
-
return props.blocks;
|
|
1313
|
-
},
|
|
1314
|
-
get children() {
|
|
1315
|
-
return createComponent(For, {
|
|
1316
|
-
get each() {
|
|
1317
|
-
return props.blocks;
|
|
1318
|
-
},
|
|
1319
|
-
children: (block, _index) => {
|
|
1320
|
-
_index();
|
|
1321
|
-
return createComponent(block_styles_default, {
|
|
1322
|
-
get key() {
|
|
1323
|
-
return "block-style-" + block.id;
|
|
1324
|
-
},
|
|
1325
|
-
block,
|
|
1326
|
-
get context() {
|
|
1327
|
-
return props.context || builderContext;
|
|
1328
|
-
}
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
});
|
|
1332
|
-
}
|
|
1333
|
-
})];
|
|
1285
|
+
});
|
|
1334
1286
|
}
|
|
1335
1287
|
});
|
|
1336
1288
|
}
|
|
@@ -3407,7 +3359,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3407
3359
|
};
|
|
3408
3360
|
|
|
3409
3361
|
// src/constants/sdk-version.ts
|
|
3410
|
-
var SDK_VERSION = "0.11.
|
|
3362
|
+
var SDK_VERSION = "0.11.3";
|
|
3411
3363
|
|
|
3412
3364
|
// src/functions/register.ts
|
|
3413
3365
|
var registry = {};
|