xmlui 0.9.48 → 0.9.50

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.
Files changed (39) hide show
  1. package/dist/lib/{apiInterceptorWorker-Ap4Sg3e9.mjs → apiInterceptorWorker-B6XqwxPF.mjs} +1 -1
  2. package/dist/lib/index-BpQ3DEFQ.mjs +35444 -0
  3. package/dist/lib/index.css +1 -1
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{metadata-utils-DiiTyP_-.mjs → metadata-utils-QekhOD-W.mjs} +1 -1
  7. package/dist/lib/{server-common-COd84jF-.mjs → server-common-D4BcRpEl.mjs} +2 -2
  8. package/dist/lib/{transform-DU7v4c9h.mjs → transform-DXcw0gGl.mjs} +429 -428
  9. package/dist/lib/xmlui-parser.d.ts +2 -0
  10. package/dist/lib/xmlui-parser.mjs +2 -2
  11. package/dist/lib/{xmlui-serializer-B3OkRzrr.mjs → xmlui-serializer-CAZCkpXP.mjs} +1 -1
  12. package/dist/lib/xmlui.d.ts +2 -0
  13. package/dist/lib/xmlui.mjs +2 -2
  14. package/dist/metadata/style.css +1 -1
  15. package/dist/metadata/xmlui-metadata.mjs +1550 -1525
  16. package/dist/metadata/xmlui-metadata.umd.js +4 -4
  17. package/dist/scripts/package.json +1 -1
  18. package/dist/scripts/src/components/App/App.js +1 -0
  19. package/dist/scripts/src/components/Checkbox/Checkbox.js +1 -0
  20. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +3 -0
  21. package/dist/scripts/src/components/Footer/Footer.js +1 -0
  22. package/dist/scripts/src/components/FormItem/FormItem.js +7 -0
  23. package/dist/scripts/src/components/Heading/Heading.js +1 -0
  24. package/dist/scripts/src/components/Link/Link.js +7 -7
  25. package/dist/scripts/src/components/Markdown/Markdown.js +4 -0
  26. package/dist/scripts/src/components/Markdown/MarkdownNative.js +2 -2
  27. package/dist/scripts/src/components/NavPanel/NavPanel.js +1 -0
  28. package/dist/scripts/src/components/Switch/Switch.js +1 -0
  29. package/dist/scripts/src/components/Text/Text.js +3 -0
  30. package/dist/scripts/src/components-core/XmluiCodeHighlighter.js +19 -22
  31. package/dist/scripts/src/parsers/xmlui-parser/transform.js +8 -0
  32. package/dist/scripts/src/syntax/textMate/xmlui-dark.json +631 -0
  33. package/dist/scripts/src/syntax/textMate/{xmlui.json → xmlui-light.json} +26 -25
  34. package/dist/standalone/xmlui-standalone.es.d.ts +2 -0
  35. package/dist/standalone/xmlui-standalone.umd.js +196 -196
  36. package/package.json +1 -1
  37. package/dist/lib/grammar.tmLanguage-CiYpNgdH.mjs +0 -600
  38. package/dist/lib/index-CSz52AVL.mjs +0 -30723
  39. package/dist/lib/xmlui-DMBgrXXb.mjs +0 -637
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmlui",
3
- "version": "0.9.48",
3
+ "version": "0.9.50",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "start-test-bed": "cd src/testing/infrastructure && xmlui start",
@@ -1,600 +0,0 @@
1
- const e = "xmlui", n = "source.xmlui", t = [
2
- {
3
- include: "#root"
4
- }
5
- ], a = {
6
- root: {
7
- patterns: [
8
- {
9
- include: "#comments"
10
- },
11
- {
12
- include: "#helperTag"
13
- },
14
- {
15
- include: "#componentTag"
16
- },
17
- {
18
- include: "#entity"
19
- },
20
- {
21
- include: "#textWithBindingExpr"
22
- },
23
- {
24
- begin: "(<!\\[)(CDATA)(\\[)",
25
- beginCaptures: {
26
- 1: {
27
- name: "punctuation.definition.tag.xmlui"
28
- },
29
- 2: {
30
- name: "storage.xmlui"
31
- },
32
- 3: {
33
- name: "punctuation.definition.tag.xmlui"
34
- }
35
- },
36
- end: "]]>",
37
- endCaptures: {
38
- 0: {
39
- name: "punctuation.definition.tag.xmlui"
40
- }
41
- },
42
- contentName: "string.unquoted.cdata.xmlui"
43
- }
44
- ]
45
- },
46
- methodTag: {
47
- begin: "(<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(method)",
48
- beginCaptures: {
49
- 1: {
50
- name: "punctuation.definition.tag.xmlui"
51
- },
52
- 2: {
53
- name: "keyword.operator.namespace.xmlui"
54
- },
55
- 3: {
56
- name: "entity.name.tag.localname.xmlui"
57
- }
58
- },
59
- endCaptures: {
60
- 0: {
61
- name: "punctuation.definition.tag.xmlui"
62
- }
63
- },
64
- applyEndPatternLast: "1",
65
- patterns: [
66
- {
67
- include: "#comments"
68
- },
69
- {
70
- include: "#valueAttributeScriptInside"
71
- },
72
- {
73
- include: "#attribute"
74
- },
75
- {
76
- begin: "(?<!/|(?:/\\s*(?:method))\\s*)>",
77
- beginCaptures: {
78
- 0: {
79
- name: "punctuation.definition.tag.xmlui"
80
- }
81
- },
82
- endCaptures: {
83
- 1: {
84
- name: "punctuation.definition.tag.xmlui"
85
- },
86
- 2: {
87
- name: "keyword.operator.namespace.xmlui"
88
- },
89
- 3: {
90
- name: "entity.name.tag.localname.xmlui"
91
- }
92
- },
93
- contentName: "meta.embedded.block.javascript",
94
- patterns: [
95
- {
96
- include: "source.js"
97
- }
98
- ],
99
- end: "(</)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(method)(?=\\s*>)"
100
- }
101
- ],
102
- end: "/?>"
103
- },
104
- eventTag: {
105
- begin: "(<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(event)",
106
- beginCaptures: {
107
- 1: {
108
- name: "punctuation.definition.tag.xmlui"
109
- },
110
- 2: {
111
- name: "keyword.operator.namespace.xmlui"
112
- },
113
- 3: {
114
- name: "entity.name.tag.localname.xmlui"
115
- }
116
- },
117
- endCaptures: {
118
- 0: {
119
- name: "punctuation.definition.tag.xmlui"
120
- }
121
- },
122
- applyEndPatternLast: "1",
123
- patterns: [
124
- {
125
- include: "#comments"
126
- },
127
- {
128
- include: "#valueAttributeScriptInside"
129
- },
130
- {
131
- include: "#attribute"
132
- },
133
- {
134
- begin: "(?<!/|(?:/\\s*event)\\s*)(>)",
135
- beginCaptures: {
136
- 0: {
137
- name: "punctuation.definition.tag.xmlui"
138
- }
139
- },
140
- endCaptures: {
141
- 1: {
142
- name: "punctuation.definition.tag.xmlui"
143
- },
144
- 2: {
145
- name: "keyword.operator.namespace.xmlui"
146
- },
147
- 3: {
148
- name: "entity.name.tag.localname.xmlui"
149
- }
150
- },
151
- patterns: [
152
- {
153
- include: "#comments"
154
- },
155
- {
156
- include: "#componentTag"
157
- },
158
- {
159
- include: "source.js"
160
- }
161
- ],
162
- end: "(</)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(event)(?=\\s*>)"
163
- }
164
- ],
165
- end: ">"
166
- },
167
- fieldTag: {
168
- begin: "(<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(field)",
169
- beginCaptures: {
170
- 1: {
171
- name: "punctuation.definition.tag.xmlui"
172
- },
173
- 2: {
174
- name: "keyword.operator.namespace.xmlui"
175
- },
176
- 3: {
177
- name: "entity.name.tag.localname.xmlui"
178
- }
179
- },
180
- endCaptures: {
181
- 0: {
182
- name: "punctuation.definition.tag.xmlui"
183
- }
184
- },
185
- applyEndPatternLast: "1",
186
- patterns: [
187
- {
188
- include: "#comments"
189
- },
190
- {
191
- include: "#valueAttributeScriptInside"
192
- },
193
- {
194
- include: "#attribute"
195
- },
196
- {
197
- begin: "(?<!/|(?:/\\s*field)\\s*)(>)",
198
- beginCaptures: {
199
- 0: {
200
- name: "punctuation.definition.tag.xmlui"
201
- }
202
- },
203
- endCaptures: {
204
- 1: {
205
- name: "punctuation.definition.tag.xmlui"
206
- },
207
- 2: {
208
- name: "keyword.operator.namespace.xmlui"
209
- },
210
- 3: {
211
- name: "entity.name.tag.localname.xmlui"
212
- }
213
- },
214
- patterns: [
215
- {
216
- include: "#comments"
217
- },
218
- {
219
- include: "#componentTag"
220
- },
221
- {
222
- include: "source.js"
223
- }
224
- ],
225
- end: "(</)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(field)(?=\\s*>)"
226
- }
227
- ],
228
- end: ">"
229
- },
230
- itemTag: {
231
- begin: "(<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(item)",
232
- beginCaptures: {
233
- 1: {
234
- name: "punctuation.definition.tag.xmlui"
235
- },
236
- 2: {
237
- name: "keyword.operator.namespace.xmlui"
238
- },
239
- 3: {
240
- name: "entity.name.tag.localname.xmlui"
241
- }
242
- },
243
- endCaptures: {
244
- 0: {
245
- name: "punctuation.definition.tag.xmlui"
246
- }
247
- },
248
- applyEndPatternLast: "1",
249
- patterns: [
250
- {
251
- include: "#comments"
252
- },
253
- {
254
- include: "#valueAttributeScriptInside"
255
- },
256
- {
257
- include: "#attribute"
258
- },
259
- {
260
- begin: "(?<!/|(?:/\\s*item)\\s*)(>)",
261
- beginCaptures: {
262
- 0: {
263
- name: "punctuation.definition.tag.xmlui"
264
- }
265
- },
266
- endCaptures: {
267
- 1: {
268
- name: "punctuation.definition.tag.xmlui"
269
- },
270
- 2: {
271
- name: "keyword.operator.namespace.xmlui"
272
- },
273
- 3: {
274
- name: "entity.name.tag.localname.xmlui"
275
- }
276
- },
277
- patterns: [
278
- {
279
- include: "#comments"
280
- },
281
- {
282
- include: "#componentTag"
283
- },
284
- {
285
- include: "source.js"
286
- }
287
- ],
288
- end: "(</)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(item)(?=\\s*>)"
289
- }
290
- ],
291
- end: ">"
292
- },
293
- bindingExpr: {
294
- contentName: "meta.embedded.block.javascript",
295
- begin: "\\{",
296
- end: "\\}",
297
- beginCaptures: {
298
- 0: {
299
- name: "entity.name.function.xmlui punctuation.definition.block.xmlui"
300
- }
301
- },
302
- endCaptures: {
303
- 0: {
304
- name: "entity.name.function.xmlui punctuation.definition.block.xmlui"
305
- }
306
- },
307
- patterns: [
308
- {
309
- include: "source.js"
310
- }
311
- ]
312
- },
313
- helperTag: {
314
- patterns: [
315
- {
316
- include: "#scriptTag"
317
- },
318
- {
319
- include: "#eventTag"
320
- },
321
- {
322
- include: "#fieldTag"
323
- },
324
- {
325
- include: "#itemTag"
326
- },
327
- {
328
- include: "#methodTag"
329
- },
330
- {
331
- include: "#propOrVarTag"
332
- }
333
- ]
334
- },
335
- valueAttributeScriptInside: {
336
- patterns: [
337
- {
338
- captures: {
339
- 1: {
340
- name: "entity.other.attribute-name.localname.xmlui"
341
- },
342
- 2: {
343
- name: "keyword.operator.xmlui"
344
- }
345
- },
346
- match: "(?:^|\\s+)(value)(\\s*=)"
347
- },
348
- {
349
- include: "#quotedStringJsInside"
350
- }
351
- ]
352
- },
353
- scriptTag: {
354
- begin: "(<)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)(script)(\\s*>)",
355
- end: "(</)(\\2)(\\3)(\\s*>)",
356
- contentName: "meta.embedded.block.javascript",
357
- beginCaptures: {
358
- 1: {
359
- name: "punctuation.definition.tag.xmlui"
360
- },
361
- 2: {
362
- name: "keyword.operator.namespace.xmlui"
363
- },
364
- 3: {
365
- name: "entity.name.function.xmlui"
366
- },
367
- 4: {
368
- name: "punctuation.definition.tag.xmlui"
369
- }
370
- },
371
- endCaptures: {
372
- 1: {
373
- name: "punctuation.definition.tag.xmlui"
374
- },
375
- 2: {
376
- name: "keyword.operator.namespace.xmlui"
377
- },
378
- 3: {
379
- name: "entity.name.function.xmlui"
380
- },
381
- 4: {
382
- name: "punctuation.definition.tag.xmlui"
383
- }
384
- },
385
- patterns: [
386
- {
387
- include: "source.js"
388
- }
389
- ]
390
- },
391
- textWithBindingExpr: {
392
- patterns: [
393
- {
394
- include: "#entity"
395
- },
396
- {
397
- include: "#bindingExpr"
398
- }
399
- ]
400
- },
401
- propOrVarTag: {
402
- begin: "(</?)([a-zA-Z_][\\w\\.\\-]*?:)?((?:variable)|(?:property)|(?:prop))",
403
- beginCaptures: {
404
- 1: {
405
- name: "punctuation.definition.tag.xmlui"
406
- },
407
- 2: {
408
- name: "keyword.operator.namespace.xmlui"
409
- },
410
- 3: {
411
- name: "entity.name.tag.localname.xmlui"
412
- }
413
- },
414
- end: "(/?>)",
415
- endCaptures: {
416
- 1: {
417
- name: "punctuation.definition.tag.xmlui"
418
- }
419
- },
420
- patterns: [
421
- {
422
- include: "#attribute"
423
- },
424
- {
425
- include: "#comments"
426
- }
427
- ]
428
- },
429
- componentTag: {
430
- begin: "(</?)((?:[a-zA-Z_][\\w\\.\\-]*?:)?)([a-zA-Z][\\w\\.\\-]*)",
431
- beginCaptures: {
432
- 1: {
433
- name: "punctuation.definition.tag.xmlui"
434
- },
435
- 2: {
436
- name: "keyword.operator.namespace.xmlui"
437
- },
438
- 3: {
439
- name: "support.class.tag.component.xmlui"
440
- }
441
- },
442
- end: "(/?>)",
443
- endCaptures: {
444
- 1: {
445
- name: "punctuation.definition.tag.xmlui"
446
- }
447
- },
448
- patterns: [
449
- {
450
- include: "#comments"
451
- },
452
- {
453
- include: "#eventHandler"
454
- },
455
- {
456
- include: "#attribute"
457
- }
458
- ]
459
- },
460
- quotedStringJsInside: {
461
- begin: "\"|'|`",
462
- beginCaptures: {
463
- 0: {
464
- name: "string.xmlui"
465
- }
466
- },
467
- end: "\\0",
468
- endCaptures: {
469
- 0: {
470
- name: "string.xmlui"
471
- }
472
- },
473
- contentName: "meta.embedded.block.javascript",
474
- patterns: [
475
- {
476
- include: "source.js"
477
- }
478
- ]
479
- },
480
- entity: {
481
- captures: {
482
- 1: {
483
- name: "punctuation.definition.constant.xmlui"
484
- },
485
- 2: {
486
- name: "punctuation.definition.constant.xmlui"
487
- },
488
- 3: {
489
- name: "punctuation.definition.constant.xmlui"
490
- }
491
- },
492
- match: "(&)((?:amp)|(?:lt)|(?:gt)|(?:quot)|(?:apos))(;)"
493
- },
494
- eventHandler: {
495
- patterns: [
496
- {
497
- captures: {
498
- 1: {
499
- name: "entity.other.attribute-name.localname.xmlui"
500
- },
501
- 2: {
502
- name: "keyword.operator.xmlui"
503
- }
504
- },
505
- match: "(?:^|\\s+)(on[A-Z][-\\w.:$]*)(\\s*=)"
506
- },
507
- {
508
- include: "#quotedStringJsInside"
509
- }
510
- ]
511
- },
512
- attribute: {
513
- patterns: [
514
- {
515
- begin: "(?:^|\\s+)((?:[a-zA-Z$_][-\\w.$]*:)?)([a-zA-Z$_][-\\w.$]*)(\\s*=\\s*)(['\"`])",
516
- end: "\\4",
517
- beginCaptures: {
518
- 1: {
519
- name: "keyword.operator.namespace.xmlui"
520
- },
521
- 2: {
522
- name: "entity.other.attribute-name.localname.xmlui"
523
- },
524
- 3: {
525
- name: "keyword.operator.xmlui"
526
- },
527
- 4: {
528
- name: "string.xmlui"
529
- }
530
- },
531
- endCaptures: {
532
- 0: {
533
- name: "string.xmlui"
534
- }
535
- },
536
- contentName: "string.xmlui",
537
- patterns: [
538
- {
539
- include: "#textWithBindingExpr"
540
- }
541
- ]
542
- },
543
- {
544
- match: "(?:^|\\s+)((?:[a-zA-Z$_][-\\w.$]*:)?)([a-zA-Z$_][-\\w.$]*)(\\s*=\\s*)([a-zA-Z$_][-\\w.$]*)",
545
- captures: {
546
- 1: {
547
- name: "keyword.operator.namespace.xmlui"
548
- },
549
- 2: {
550
- name: "entity.other.attribute-name.localname.xmlui"
551
- },
552
- 3: {
553
- name: "keyword.operator.xmlui"
554
- },
555
- 4: {
556
- name: "string.xmlui"
557
- }
558
- }
559
- },
560
- {
561
- match: "(?:^|\\s+)((?:[a-zA-Z$_][-\\w.$]*:)?)([a-zA-Z$_][-\\w.$]*)",
562
- name: "entity.other.attribute-name.localname.xmlui",
563
- captures: {
564
- 1: {
565
- name: "keyword.operator.namespace.xmlui"
566
- },
567
- 2: {
568
- name: "entity.other.attribute-name.localname.xmlui"
569
- }
570
- }
571
- }
572
- ]
573
- },
574
- comments: {
575
- patterns: [
576
- {
577
- begin: "<!--",
578
- captures: {
579
- 0: {
580
- name: "punctuation.definition.comment.xmlui"
581
- }
582
- },
583
- end: "-->",
584
- name: "comment.block.xmlui"
585
- }
586
- ]
587
- }
588
- }, i = {
589
- name: e,
590
- scopeName: n,
591
- patterns: t,
592
- repository: a
593
- };
594
- export {
595
- i as default,
596
- e as name,
597
- t as patterns,
598
- a as repository,
599
- n as scopeName
600
- };