@@ -85,7 +85,6 @@ test("generate jsx element with children and without them", () => {
85
85
usedDataSources : new Map ( ) ,
86
86
indexesWithinAncestors : new Map ( ) ,
87
87
metas : new Map ( ) ,
88
- tagsOverrides : { } ,
89
88
children : [ { type : "id" , value : "body" } ] ,
90
89
...renderData ( < $ . Body ws :id = "body" > Children</ $ . Body > ) ,
91
90
} )
@@ -104,7 +103,6 @@ test("generate jsx element with children and without them", () => {
104
103
usedDataSources : new Map ( ) ,
105
104
indexesWithinAncestors : new Map ( ) ,
106
105
metas : new Map ( ) ,
107
- tagsOverrides : { } ,
108
106
children : [ { type : "id" , value : "image" } ] ,
109
107
...renderData ( < $ . Image ws :id = "image" > </ $ . Image > ) ,
110
108
} )
@@ -125,7 +123,6 @@ test("generate jsx element with namespaces components", () => {
125
123
usedDataSources : new Map ( ) ,
126
124
indexesWithinAncestors : new Map ( ) ,
127
125
metas : new Map ( ) ,
128
- tagsOverrides : { } ,
129
126
children : [ { type : "id" , value : "body" } ] ,
130
127
...renderData ( < library . Body ws :id = "body" > </ library . Body > ) ,
131
128
} )
@@ -142,7 +139,6 @@ test("generate jsx element with namespaces components", () => {
142
139
usedDataSources : new Map ( ) ,
143
140
indexesWithinAncestors : new Map ( ) ,
144
141
metas : new Map ( ) ,
145
- tagsOverrides : { } ,
146
142
children : [ { type : "id" , value : "image" } ] ,
147
143
...renderData ( < library . Image ws :id = "image" > </ library . Image > ) ,
148
144
} )
@@ -162,7 +158,6 @@ test("generate jsx element with literal props", () => {
162
158
usedDataSources : new Map ( ) ,
163
159
indexesWithinAncestors : new Map ( ) ,
164
160
metas : new Map ( ) ,
165
- tagsOverrides : { } ,
166
161
children : [ { type : "id" , value : "body" } ] ,
167
162
...renderData ( < $ . Body ws :id = "body" string = "string" number = { 0 } > </ $ . Body > ) ,
168
163
} )
@@ -181,7 +176,6 @@ test("generate jsx element with literal props", () => {
181
176
usedDataSources : new Map ( ) ,
182
177
indexesWithinAncestors : new Map ( ) ,
183
178
metas : new Map ( ) ,
184
- tagsOverrides : { } ,
185
179
children : [ { type : "id" , value : "image" } ] ,
186
180
...renderData (
187
181
< $ . Image
@@ -209,7 +203,6 @@ test("ignore asset and page props", () => {
209
203
usedDataSources : new Map ( ) ,
210
204
indexesWithinAncestors : new Map ( ) ,
211
205
metas : new Map ( ) ,
212
- tagsOverrides : { } ,
213
206
children : [ { type : "id" , value : "box" } ] ,
214
207
...renderData (
215
208
< $ . Box
@@ -236,7 +229,6 @@ test("generate jsx element with data sources and action", () => {
236
229
usedDataSources : new Map ( ) ,
237
230
indexesWithinAncestors : new Map ( ) ,
238
231
metas : new Map ( ) ,
239
- tagsOverrides : { } ,
240
232
children : [ { type : "id" , value : "box" } ] ,
241
233
...renderData (
242
234
< $ . Box
@@ -269,7 +261,6 @@ test("generate jsx element with condition based on show prop", () => {
269
261
usedDataSources : new Map ( ) ,
270
262
indexesWithinAncestors : new Map ( ) ,
271
263
metas : new Map ( ) ,
272
- tagsOverrides : { } ,
273
264
children : [ { type : "id" , value : "box" } ] ,
274
265
...renderData ( < $ . Box ws :id = "box" data-ws-show = { true } > </ $ . Box > ) ,
275
266
} )
@@ -286,7 +277,6 @@ test("generate jsx element with condition based on show prop", () => {
286
277
usedDataSources : new Map ( ) ,
287
278
indexesWithinAncestors : new Map ( ) ,
288
279
metas : new Map ( ) ,
289
- tagsOverrides : { } ,
290
280
children : [ { type : "id" , value : "box" } ] ,
291
281
...renderData ( < $ . Box ws :id = "box" data-ws-show = { false } > </ $ . Box > ) ,
292
282
} )
@@ -298,7 +288,6 @@ test("generate jsx element with condition based on show prop", () => {
298
288
usedDataSources : new Map ( ) ,
299
289
indexesWithinAncestors : new Map ( ) ,
300
290
metas : new Map ( ) ,
301
- tagsOverrides : { } ,
302
291
children : [ { type : "id" , value : "box" } ] ,
303
292
...renderData (
304
293
< $ . Box ws :id = "box" data-ws-show = { expression `${ condition } ` } > </ $ . Box >
@@ -320,7 +309,6 @@ test("generate jsx children with text", () => {
320
309
generateJsxChildren ( {
321
310
scope : createScope ( ) ,
322
311
metas : new Map ( ) ,
323
- tagsOverrides : { } ,
324
312
children : [
325
313
{ type : "text" , value : "Some\ntext" } ,
326
314
{ type : "text" , value : 'Escaped "text"' } ,
@@ -348,7 +336,6 @@ test("exclude text placeholders", () => {
348
336
generateJsxChildren ( {
349
337
scope : createScope ( ) ,
350
338
metas : new Map ( ) ,
351
- tagsOverrides : { } ,
352
339
children : [
353
340
{ type : "text" , value : "Text" } ,
354
341
{ type : "text" , value : "Placeholder text" , placeholder : true } ,
@@ -374,7 +361,6 @@ test("generate jsx children with expression", () => {
374
361
generateJsxChildren ( {
375
362
scope : createScope ( ) ,
376
363
metas : new Map ( ) ,
377
- tagsOverrides : { } ,
378
364
children : [
379
365
{ type : "expression" , value : "'Hello ' + $ws$dataSource$var" } ,
380
366
] ,
@@ -406,7 +392,6 @@ test("generate jsx children with nested instances", () => {
406
392
generateJsxChildren ( {
407
393
scope : createScope ( ) ,
408
394
metas : new Map ( ) ,
409
- tagsOverrides : { } ,
410
395
children : [ { type : "id" , value : "form" } ] ,
411
396
usedDataSources : new Map ( ) ,
412
397
indexesWithinAncestors : new Map ( ) ,
@@ -436,7 +421,6 @@ test("deduplicate base and namespaced components with same short name", () => {
436
421
generateJsxChildren ( {
437
422
scope : createScope ( ) ,
438
423
metas : new Map ( ) ,
439
- tagsOverrides : { } ,
440
424
children : [
441
425
{ type : "id" , value : "button1" } ,
442
426
{ type : "id" , value : "button2" } ,
@@ -465,7 +449,6 @@ test("generate collection component as map", () => {
465
449
generateJsxChildren ( {
466
450
scope : createScope ( ) ,
467
451
metas : new Map ( ) ,
468
- tagsOverrides : { } ,
469
452
children : [ { type : "id" , value : "list" } ] ,
470
453
usedDataSources : new Map ( ) ,
471
454
indexesWithinAncestors : new Map ( ) ,
@@ -501,7 +484,6 @@ test("generate component with variables and actions", () => {
501
484
rootInstanceId : "body" ,
502
485
parameters : [ ] ,
503
486
metas : new Map ( ) ,
504
- tagsOverrides : { } ,
505
487
...renderData (
506
488
< $ . Body ws :id = "body" >
507
489
< $ . Input
@@ -541,7 +523,6 @@ test("merge classes if no className", () => {
541
523
rootInstanceId : "body" ,
542
524
parameters : [ ] ,
543
525
metas : new Map ( ) ,
544
- tagsOverrides : { } ,
545
526
...renderData ( < $ . Body ws :id = "body" > </ $ . Body > ) ,
546
527
} )
547
528
) . toEqual (
@@ -565,7 +546,6 @@ test("add classes and merge classes", () => {
565
546
rootInstanceId : "body" ,
566
547
parameters : [ ] ,
567
548
metas : new Map ( ) ,
568
- tagsOverrides : { } ,
569
549
...renderData ( < $ . Body ws :id = "body" className = 'cls2 "cls3"' > </ $ . Body > ) ,
570
550
} )
571
551
) . toEqual (
@@ -589,7 +569,6 @@ test("add classes", () => {
589
569
rootInstanceId : "body" ,
590
570
parameters : [ ] ,
591
571
metas : new Map ( ) ,
592
- tagsOverrides : { } ,
593
572
...renderData ( < $ . Body ws :id = "body" className = 'cls2 "cls3"' > </ $ . Body > ) ,
594
573
} )
595
574
) . toEqual (
@@ -614,7 +593,6 @@ test("add bind classes and merge classes", () => {
614
593
rootInstanceId : "body" ,
615
594
parameters : [ ] ,
616
595
metas : new Map ( ) ,
617
- tagsOverrides : { } ,
618
596
...renderData (
619
597
< $ . Body
620
598
ws :id = "body"
@@ -646,7 +624,6 @@ test("avoid generating collection parameter variable as state", () => {
646
624
rootInstanceId : "body" ,
647
625
parameters : [ ] ,
648
626
metas : new Map ( ) ,
649
- tagsOverrides : { } ,
650
627
...renderData (
651
628
< $ . Body ws :id = "body" >
652
629
< ws . collection
@@ -708,7 +685,6 @@ test("generate both page system and global system variables when present", () =>
708
685
} ,
709
686
] ,
710
687
metas : new Map ( ) ,
711
- tagsOverrides : { } ,
712
688
...data ,
713
689
} )
714
690
) . toEqual (
@@ -741,7 +717,6 @@ test("generate resources loading", () => {
741
717
rootInstanceId : "body" ,
742
718
parameters : [ ] ,
743
719
metas : new Map ( ) ,
744
- tagsOverrides : { } ,
745
720
...renderData (
746
721
< $ . Body
747
722
ws :id = "body"
@@ -803,7 +778,6 @@ test("avoid generating unused variables", () => {
803
778
} ,
804
779
] ,
805
780
metas : new Map ( ) ,
806
- tagsOverrides : { } ,
807
781
...data ,
808
782
} )
809
783
) . toMatchInlineSnapshot ( `
@@ -825,7 +799,6 @@ test("avoid generating descendant component", () => {
825
799
rootInstanceId : "body" ,
826
800
parameters : [ ] ,
827
801
metas : new Map ( ) ,
828
- tagsOverrides : { } ,
829
802
...renderData (
830
803
< $ . Body ws :id = "body" >
831
804
< ws . descendant > </ ws . descendant >
@@ -852,7 +825,6 @@ test("generate conditional collection", () => {
852
825
rootInstanceId : "body" ,
853
826
parameters : [ ] ,
854
827
metas : new Map ( ) ,
855
- tagsOverrides : { } ,
856
828
...renderData (
857
829
< $ . Body ws :id = "body" >
858
830
< ws . collection
@@ -892,7 +864,6 @@ test("generate conditional body", () => {
892
864
rootInstanceId : "body" ,
893
865
parameters : [ ] ,
894
866
metas : new Map ( ) ,
895
- tagsOverrides : { } ,
896
867
...renderData (
897
868
< $ . Body ws :id = "body" data-ws-show = { expression `${ condition } ` } > </ $ . Body >
898
869
) ,
@@ -927,7 +898,6 @@ test("generate resource prop", () => {
927
898
rootInstanceId : "body" ,
928
899
parameters : [ ] ,
929
900
metas : new Map ( ) ,
930
- tagsOverrides : { } ,
931
901
...renderData (
932
902
< $ . Body ws :id = "body" >
933
903
< $ . Form ws :id = "form1" action = { myResource } > </ $ . Form >
@@ -957,7 +927,6 @@ test("skip unsafe properties", () => {
957
927
rootInstanceId : "body" ,
958
928
parameters : [ ] ,
959
929
metas : new Map ( ) ,
960
- tagsOverrides : { } ,
961
930
...renderData (
962
931
< $ . Body
963
932
ws :id = "body"
@@ -990,7 +959,6 @@ test("variable names can be js identifiers", () => {
990
959
rootInstanceId : "body" ,
991
960
parameters : [ ] ,
992
961
metas : new Map ( ) ,
993
- tagsOverrides : { } ,
994
962
...renderData (
995
963
< $ . Body ws :id = "body" >
996
964
< $ . Input
@@ -1031,7 +999,6 @@ test("renders nothing if only templates are present in block", () => {
1031
999
rootInstanceId : "body" ,
1032
1000
parameters : [ ] ,
1033
1001
metas : new Map ( ) ,
1034
- tagsOverrides : { } ,
1035
1002
...renderData (
1036
1003
< $ . Body ws :id = "body" >
1037
1004
< ws . block ws :id = "block" >
@@ -1065,7 +1032,6 @@ test("renders only block children", () => {
1065
1032
rootInstanceId : "body" ,
1066
1033
parameters : [ ] ,
1067
1034
metas : new Map ( ) ,
1068
- tagsOverrides : { } ,
1069
1035
...renderData (
1070
1036
< $ . Body ws :id = "body" >
1071
1037
< ws . block ws :id = "block" >
@@ -1101,7 +1067,6 @@ test("generate unset variables as undefined", () => {
1101
1067
rootInstanceId : "body" ,
1102
1068
parameters : [ ] ,
1103
1069
metas : new Map ( ) ,
1104
- tagsOverrides : { } ,
1105
1070
...renderData (
1106
1071
< $ . Body ws :id = "body" >
1107
1072
< $ . Box > { expression `a + b` } </ $ . Box >
@@ -1141,7 +1106,6 @@ test("generate global variables", () => {
1141
1106
rootInstanceId : "body" ,
1142
1107
parameters : [ ] ,
1143
1108
metas : new Map ( ) ,
1144
- tagsOverrides : { } ,
1145
1109
...data ,
1146
1110
} )
1147
1111
) . toEqual (
@@ -1178,7 +1142,6 @@ test("ignore unused global variables", () => {
1178
1142
rootInstanceId : "body" ,
1179
1143
parameters : [ ] ,
1180
1144
metas : new Map ( ) ,
1181
- tagsOverrides : { } ,
1182
1145
...data ,
1183
1146
} )
1184
1147
) . toEqual (
@@ -1206,7 +1169,6 @@ test("generate prop with index within ancestor", () => {
1206
1169
[ "TabsTrigger" , { indexWithinAncestor : "Tabs" } ] ,
1207
1170
[ "TabsContent" , { indexWithinAncestor : "Tabs" } ] ,
1208
1171
] ) ,
1209
- tagsOverrides : { } ,
1210
1172
...renderData (
1211
1173
< $ . Body ws :id = "body" >
1212
1174
< $ . Tabs >
@@ -1264,7 +1226,6 @@ test("ignore ws:block-template when generate index attribute", () => {
1264
1226
metas : new Map < string , WsComponentMeta > ( [
1265
1227
[ "TabsTrigger" , { indexWithinAncestor : "Tabs" } ] ,
1266
1228
] ) ,
1267
- tagsOverrides : { } ,
1268
1229
...renderData (
1269
1230
< $ . Body ws :id = "bodyId" >
1270
1231
< $ . Tabs >
@@ -1308,7 +1269,6 @@ test("render empty component when no instances found", () => {
1308
1269
rootInstanceId : "" ,
1309
1270
parameters : [ ] ,
1310
1271
metas : new Map ( ) ,
1311
- tagsOverrides : { } ,
1312
1272
...renderData ( < $ . Body ws :id = "bodyId" > </ $ . Body > ) ,
1313
1273
} )
1314
1274
) . toEqual (
@@ -1331,7 +1291,6 @@ test("render tag property on components", () => {
1331
1291
rootInstanceId : "bodyId" ,
1332
1292
parameters : [ ] ,
1333
1293
metas : new Map ( ) ,
1334
- tagsOverrides : { } ,
1335
1294
...renderData (
1336
1295
< $ . Body ws :id = "bodyId" >
1337
1296
< $ . Box ws :id = "spanId" ws :tag = "span" > </ $ . Box >
@@ -1361,7 +1320,6 @@ test("render ws:element component with div tag by default", () => {
1361
1320
rootInstanceId : "bodyId" ,
1362
1321
parameters : [ ] ,
1363
1322
metas : new Map ( ) ,
1364
- tagsOverrides : { } ,
1365
1323
...renderData (
1366
1324
< $ . Body ws :id = "bodyId" >
1367
1325
< ws . element id = "element1" >
@@ -1396,7 +1354,6 @@ test("render ws:element component with ws:tag", () => {
1396
1354
rootInstanceId : "bodyId" ,
1397
1355
parameters : [ ] ,
1398
1356
metas : new Map ( ) ,
1399
- tagsOverrides : { } ,
1400
1357
...renderData (
1401
1358
< $ . Body ws :id = "bodyId" >
1402
1359
< ws . element ws :tag = "p" id = "paragraph" >
@@ -1466,7 +1423,6 @@ test("convert attributes to react compatible when render components with tags",
1466
1423
rootInstanceId : "bodyId" ,
1467
1424
parameters : [ ] ,
1468
1425
metas : new Map ( [ [ "Box" , { presetStyle : { div : [ ] } } ] ] ) ,
1469
- tagsOverrides : { } ,
1470
1426
...renderData (
1471
1427
< $ . Body ws :id = "bodyId" >
1472
1428
< $ . Box class = "my-class" for = "my-id" autocomplete = "off" > </ $ . Box >
0 commit comments