@kg-ui/kg-ui-plus 0.1.47 → 0.1.48
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/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/index.vue2.mjs +4 -5
- package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiCanvas/testWPS.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiCanvas/testWPS.vue2.mjs +51 -0
- package/dist/es/KgCopilot/CopiCanvas/testWPS.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiCanvas/web-office-sdk-solution-v2.0.7.es.mjs +854 -0
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue2.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +3 -3
- package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +7 -7
- package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/index.vue2.mjs +3 -3
- package/dist/es/api/copilot.mjs +0 -8
- package/dist/es/directives/heighlight/index.mjs +27 -27
- package/dist/es/home/LFilter/FilterHead.vue.mjs +1 -1
- package/dist/es/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs +1 -3
- package/dist/es/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs +1 -52
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +4 -4
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +10 -2
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/{dompurify@3.2.3 → dompurify@3.0.10}/node_modules/dompurify/dist/purify.es.mjs +91 -119
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +73 -65
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +12 -4
- package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.6/node_modules/get-intrinsic/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +2 -2
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/apache.mjs +0 -4
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/bash.mjs +2 -20
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/basic.mjs +1 -7
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/c.mjs +4 -19
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/css.mjs +8 -214
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dart.mjs +2 -10
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/erlang.mjs +6 -48
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/go.mjs +3 -23
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/java.mjs +1 -3
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/javascript.mjs +11 -15
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/json.mjs +0 -1
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/markdown.mjs +1 -7
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/php.mjs +2 -16
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/python.mjs +1 -3
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/ruby.mjs +1 -1
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/stylus.mjs +8 -214
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/swift.mjs +14 -60
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/typescript.mjs +18 -45
- package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/lib/core.mjs +8 -8
- package/dist/es/node_modules/.pnpm/{marked@12.0.2 → marked@12.0.1}/node_modules/marked/lib/marked.esm.mjs +1 -2
- package/dist/es/style.css +1 -1
- package/package.json +2 -2
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +0 -295
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue.mjs +0 -96
- package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue2.mjs +0 -4
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +0 -41
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +0 -4
- package/dist/es/_virtual/_commonjs-dynamic-modules.mjs +0 -6
- package/dist/es/_virtual/jszip.min.mjs +0 -13
- package/dist/es/assets/empty.png.mjs +0 -4
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/file-damage-line.mjs +0 -8
- package/dist/es/node_modules/.pnpm/docx-preview@0.3.3/node_modules/docx-preview/dist/docx-preview.mjs +0 -3877
- package/dist/es/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.mjs +0 -2649
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/arrow-left.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/arrow-right.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/check.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/close.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/copy-document.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/delete.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/edit.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/notebook.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/promotion.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/reading.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/search.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/core.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/django.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dns.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dos.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dust.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/http.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/nginx.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/xml.mjs +0 -0
- /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/styles/sunburst.css.mjs +0 -0
@@ -34,7 +34,7 @@ const MODES = (hljs) => {
|
|
34
34
|
}
|
35
35
|
};
|
36
36
|
};
|
37
|
-
const
|
37
|
+
const TAGS = [
|
38
38
|
"a",
|
39
39
|
"abbr",
|
40
40
|
"address",
|
@@ -86,16 +86,11 @@ const HTML_TAGS = [
|
|
86
86
|
"nav",
|
87
87
|
"object",
|
88
88
|
"ol",
|
89
|
-
"optgroup",
|
90
|
-
"option",
|
91
89
|
"p",
|
92
|
-
"picture",
|
93
90
|
"q",
|
94
91
|
"quote",
|
95
92
|
"samp",
|
96
93
|
"section",
|
97
|
-
"select",
|
98
|
-
"source",
|
99
94
|
"span",
|
100
95
|
"strong",
|
101
96
|
"summary",
|
@@ -113,53 +108,6 @@ const HTML_TAGS = [
|
|
113
108
|
"var",
|
114
109
|
"video"
|
115
110
|
];
|
116
|
-
const SVG_TAGS = [
|
117
|
-
"defs",
|
118
|
-
"g",
|
119
|
-
"marker",
|
120
|
-
"mask",
|
121
|
-
"pattern",
|
122
|
-
"svg",
|
123
|
-
"switch",
|
124
|
-
"symbol",
|
125
|
-
"feBlend",
|
126
|
-
"feColorMatrix",
|
127
|
-
"feComponentTransfer",
|
128
|
-
"feComposite",
|
129
|
-
"feConvolveMatrix",
|
130
|
-
"feDiffuseLighting",
|
131
|
-
"feDisplacementMap",
|
132
|
-
"feFlood",
|
133
|
-
"feGaussianBlur",
|
134
|
-
"feImage",
|
135
|
-
"feMerge",
|
136
|
-
"feMorphology",
|
137
|
-
"feOffset",
|
138
|
-
"feSpecularLighting",
|
139
|
-
"feTile",
|
140
|
-
"feTurbulence",
|
141
|
-
"linearGradient",
|
142
|
-
"radialGradient",
|
143
|
-
"stop",
|
144
|
-
"circle",
|
145
|
-
"ellipse",
|
146
|
-
"image",
|
147
|
-
"line",
|
148
|
-
"path",
|
149
|
-
"polygon",
|
150
|
-
"polyline",
|
151
|
-
"rect",
|
152
|
-
"text",
|
153
|
-
"use",
|
154
|
-
"textPath",
|
155
|
-
"tspan",
|
156
|
-
"foreignObject",
|
157
|
-
"clipPath"
|
158
|
-
];
|
159
|
-
const TAGS = [
|
160
|
-
...HTML_TAGS,
|
161
|
-
...SVG_TAGS
|
162
|
-
];
|
163
111
|
const MEDIA_FEATURES = [
|
164
112
|
"any-hover",
|
165
113
|
"any-pointer",
|
@@ -195,7 +143,7 @@ const MEDIA_FEATURES = [
|
|
195
143
|
"max-width",
|
196
144
|
"min-height",
|
197
145
|
"max-height"
|
198
|
-
]
|
146
|
+
];
|
199
147
|
const PSEUDO_CLASSES = [
|
200
148
|
"active",
|
201
149
|
"any-link",
|
@@ -270,7 +218,7 @@ const PSEUDO_CLASSES = [
|
|
270
218
|
"visited",
|
271
219
|
"where"
|
272
220
|
// where()
|
273
|
-
]
|
221
|
+
];
|
274
222
|
const PSEUDO_ELEMENTS = [
|
275
223
|
"after",
|
276
224
|
"backdrop",
|
@@ -286,17 +234,13 @@ const PSEUDO_ELEMENTS = [
|
|
286
234
|
"selection",
|
287
235
|
"slotted",
|
288
236
|
"spelling-error"
|
289
|
-
]
|
237
|
+
];
|
290
238
|
const ATTRIBUTES = [
|
291
|
-
"accent-color",
|
292
239
|
"align-content",
|
293
240
|
"align-items",
|
294
241
|
"align-self",
|
295
|
-
"alignment-baseline",
|
296
242
|
"all",
|
297
|
-
"anchor-name",
|
298
243
|
"animation",
|
299
|
-
"animation-composition",
|
300
244
|
"animation-delay",
|
301
245
|
"animation-direction",
|
302
246
|
"animation-duration",
|
@@ -304,14 +248,7 @@ const ATTRIBUTES = [
|
|
304
248
|
"animation-iteration-count",
|
305
249
|
"animation-name",
|
306
250
|
"animation-play-state",
|
307
|
-
"animation-range",
|
308
|
-
"animation-range-end",
|
309
|
-
"animation-range-start",
|
310
|
-
"animation-timeline",
|
311
251
|
"animation-timing-function",
|
312
|
-
"appearance",
|
313
|
-
"aspect-ratio",
|
314
|
-
"backdrop-filter",
|
315
252
|
"backface-visibility",
|
316
253
|
"background",
|
317
254
|
"background-attachment",
|
@@ -321,11 +258,8 @@ const ATTRIBUTES = [
|
|
321
258
|
"background-image",
|
322
259
|
"background-origin",
|
323
260
|
"background-position",
|
324
|
-
"background-position-x",
|
325
|
-
"background-position-y",
|
326
261
|
"background-repeat",
|
327
262
|
"background-size",
|
328
|
-
"baseline-shift",
|
329
263
|
"block-size",
|
330
264
|
"border",
|
331
265
|
"border-block",
|
@@ -348,8 +282,6 @@ const ATTRIBUTES = [
|
|
348
282
|
"border-bottom-width",
|
349
283
|
"border-collapse",
|
350
284
|
"border-color",
|
351
|
-
"border-end-end-radius",
|
352
|
-
"border-end-start-radius",
|
353
285
|
"border-image",
|
354
286
|
"border-image-outset",
|
355
287
|
"border-image-repeat",
|
@@ -378,8 +310,6 @@ const ATTRIBUTES = [
|
|
378
310
|
"border-right-style",
|
379
311
|
"border-right-width",
|
380
312
|
"border-spacing",
|
381
|
-
"border-start-end-radius",
|
382
|
-
"border-start-start-radius",
|
383
313
|
"border-style",
|
384
314
|
"border-top",
|
385
315
|
"border-top-color",
|
@@ -389,15 +319,7 @@ const ATTRIBUTES = [
|
|
389
319
|
"border-top-width",
|
390
320
|
"border-width",
|
391
321
|
"bottom",
|
392
|
-
"box-align",
|
393
322
|
"box-decoration-break",
|
394
|
-
"box-direction",
|
395
|
-
"box-flex",
|
396
|
-
"box-flex-group",
|
397
|
-
"box-lines",
|
398
|
-
"box-ordinal-group",
|
399
|
-
"box-orient",
|
400
|
-
"box-pack",
|
401
323
|
"box-shadow",
|
402
324
|
"box-sizing",
|
403
325
|
"break-after",
|
@@ -410,11 +332,6 @@ const ATTRIBUTES = [
|
|
410
332
|
"clip-path",
|
411
333
|
"clip-rule",
|
412
334
|
"color",
|
413
|
-
"color-interpolation",
|
414
|
-
"color-interpolation-filters",
|
415
|
-
"color-profile",
|
416
|
-
"color-rendering",
|
417
|
-
"color-scheme",
|
418
335
|
"column-count",
|
419
336
|
"column-fill",
|
420
337
|
"column-gap",
|
@@ -426,34 +343,17 @@ const ATTRIBUTES = [
|
|
426
343
|
"column-width",
|
427
344
|
"columns",
|
428
345
|
"contain",
|
429
|
-
"contain-intrinsic-block-size",
|
430
|
-
"contain-intrinsic-height",
|
431
|
-
"contain-intrinsic-inline-size",
|
432
|
-
"contain-intrinsic-size",
|
433
|
-
"contain-intrinsic-width",
|
434
|
-
"container",
|
435
|
-
"container-name",
|
436
|
-
"container-type",
|
437
346
|
"content",
|
438
347
|
"content-visibility",
|
439
348
|
"counter-increment",
|
440
349
|
"counter-reset",
|
441
|
-
"counter-set",
|
442
350
|
"cue",
|
443
351
|
"cue-after",
|
444
352
|
"cue-before",
|
445
353
|
"cursor",
|
446
|
-
"cx",
|
447
|
-
"cy",
|
448
354
|
"direction",
|
449
355
|
"display",
|
450
|
-
"dominant-baseline",
|
451
356
|
"empty-cells",
|
452
|
-
"enable-background",
|
453
|
-
"field-sizing",
|
454
|
-
"fill",
|
455
|
-
"fill-opacity",
|
456
|
-
"fill-rule",
|
457
357
|
"filter",
|
458
358
|
"flex",
|
459
359
|
"flex-basis",
|
@@ -463,8 +363,6 @@ const ATTRIBUTES = [
|
|
463
363
|
"flex-shrink",
|
464
364
|
"flex-wrap",
|
465
365
|
"float",
|
466
|
-
"flood-color",
|
467
|
-
"flood-opacity",
|
468
366
|
"flow",
|
469
367
|
"font",
|
470
368
|
"font-display",
|
@@ -472,32 +370,21 @@ const ATTRIBUTES = [
|
|
472
370
|
"font-feature-settings",
|
473
371
|
"font-kerning",
|
474
372
|
"font-language-override",
|
475
|
-
"font-optical-sizing",
|
476
|
-
"font-palette",
|
477
373
|
"font-size",
|
478
374
|
"font-size-adjust",
|
479
|
-
"font-smooth",
|
480
375
|
"font-smoothing",
|
481
376
|
"font-stretch",
|
482
377
|
"font-style",
|
483
378
|
"font-synthesis",
|
484
|
-
"font-synthesis-position",
|
485
|
-
"font-synthesis-small-caps",
|
486
|
-
"font-synthesis-style",
|
487
|
-
"font-synthesis-weight",
|
488
379
|
"font-variant",
|
489
|
-
"font-variant-alternates",
|
490
380
|
"font-variant-caps",
|
491
381
|
"font-variant-east-asian",
|
492
|
-
"font-variant-emoji",
|
493
382
|
"font-variant-ligatures",
|
494
383
|
"font-variant-numeric",
|
495
384
|
"font-variant-position",
|
496
385
|
"font-variation-settings",
|
497
386
|
"font-weight",
|
498
|
-
"forced-color-adjust",
|
499
387
|
"gap",
|
500
|
-
"glyph-orientation-horizontal",
|
501
388
|
"glyph-orientation-vertical",
|
502
389
|
"grid",
|
503
390
|
"grid-area",
|
@@ -517,36 +404,19 @@ const ATTRIBUTES = [
|
|
517
404
|
"grid-template-rows",
|
518
405
|
"hanging-punctuation",
|
519
406
|
"height",
|
520
|
-
"hyphenate-character",
|
521
|
-
"hyphenate-limit-chars",
|
522
407
|
"hyphens",
|
523
408
|
"icon",
|
524
409
|
"image-orientation",
|
525
410
|
"image-rendering",
|
526
411
|
"image-resolution",
|
527
412
|
"ime-mode",
|
528
|
-
"initial-letter",
|
529
|
-
"initial-letter-align",
|
530
413
|
"inline-size",
|
531
|
-
"inset",
|
532
|
-
"inset-area",
|
533
|
-
"inset-block",
|
534
|
-
"inset-block-end",
|
535
|
-
"inset-block-start",
|
536
|
-
"inset-inline",
|
537
|
-
"inset-inline-end",
|
538
|
-
"inset-inline-start",
|
539
414
|
"isolation",
|
540
415
|
"justify-content",
|
541
|
-
"justify-items",
|
542
|
-
"justify-self",
|
543
|
-
"kerning",
|
544
416
|
"left",
|
545
417
|
"letter-spacing",
|
546
|
-
"lighting-color",
|
547
418
|
"line-break",
|
548
419
|
"line-height",
|
549
|
-
"line-height-step",
|
550
420
|
"list-style",
|
551
421
|
"list-style-image",
|
552
422
|
"list-style-position",
|
@@ -562,11 +432,6 @@ const ATTRIBUTES = [
|
|
562
432
|
"margin-left",
|
563
433
|
"margin-right",
|
564
434
|
"margin-top",
|
565
|
-
"margin-trim",
|
566
|
-
"marker",
|
567
|
-
"marker-end",
|
568
|
-
"marker-mid",
|
569
|
-
"marker-start",
|
570
435
|
"marks",
|
571
436
|
"mask",
|
572
437
|
"mask-border",
|
@@ -585,10 +450,6 @@ const ATTRIBUTES = [
|
|
585
450
|
"mask-repeat",
|
586
451
|
"mask-size",
|
587
452
|
"mask-type",
|
588
|
-
"masonry-auto-flow",
|
589
|
-
"math-depth",
|
590
|
-
"math-shift",
|
591
|
-
"math-style",
|
592
453
|
"max-block-size",
|
593
454
|
"max-height",
|
594
455
|
"max-inline-size",
|
@@ -607,12 +468,6 @@ const ATTRIBUTES = [
|
|
607
468
|
"normal",
|
608
469
|
"object-fit",
|
609
470
|
"object-position",
|
610
|
-
"offset",
|
611
|
-
"offset-anchor",
|
612
|
-
"offset-distance",
|
613
|
-
"offset-path",
|
614
|
-
"offset-position",
|
615
|
-
"offset-rotate",
|
616
471
|
"opacity",
|
617
472
|
"order",
|
618
473
|
"orphans",
|
@@ -622,19 +477,9 @@ const ATTRIBUTES = [
|
|
622
477
|
"outline-style",
|
623
478
|
"outline-width",
|
624
479
|
"overflow",
|
625
|
-
"overflow-anchor",
|
626
|
-
"overflow-block",
|
627
|
-
"overflow-clip-margin",
|
628
|
-
"overflow-inline",
|
629
480
|
"overflow-wrap",
|
630
481
|
"overflow-x",
|
631
482
|
"overflow-y",
|
632
|
-
"overlay",
|
633
|
-
"overscroll-behavior",
|
634
|
-
"overscroll-behavior-block",
|
635
|
-
"overscroll-behavior-inline",
|
636
|
-
"overscroll-behavior-x",
|
637
|
-
"overscroll-behavior-y",
|
638
483
|
"padding",
|
639
484
|
"padding-block",
|
640
485
|
"padding-block-end",
|
@@ -646,37 +491,23 @@ const ATTRIBUTES = [
|
|
646
491
|
"padding-left",
|
647
492
|
"padding-right",
|
648
493
|
"padding-top",
|
649
|
-
"page",
|
650
494
|
"page-break-after",
|
651
495
|
"page-break-before",
|
652
496
|
"page-break-inside",
|
653
|
-
"paint-order",
|
654
497
|
"pause",
|
655
498
|
"pause-after",
|
656
499
|
"pause-before",
|
657
500
|
"perspective",
|
658
501
|
"perspective-origin",
|
659
|
-
"place-content",
|
660
|
-
"place-items",
|
661
|
-
"place-self",
|
662
502
|
"pointer-events",
|
663
503
|
"position",
|
664
|
-
"position-anchor",
|
665
|
-
"position-visibility",
|
666
|
-
"print-color-adjust",
|
667
504
|
"quotes",
|
668
|
-
"r",
|
669
505
|
"resize",
|
670
506
|
"rest",
|
671
507
|
"rest-after",
|
672
508
|
"rest-before",
|
673
509
|
"right",
|
674
|
-
"rotate",
|
675
510
|
"row-gap",
|
676
|
-
"ruby-align",
|
677
|
-
"ruby-position",
|
678
|
-
"scale",
|
679
|
-
"scroll-behavior",
|
680
511
|
"scroll-margin",
|
681
512
|
"scroll-margin-block",
|
682
513
|
"scroll-margin-block-end",
|
@@ -702,44 +533,26 @@ const ATTRIBUTES = [
|
|
702
533
|
"scroll-snap-align",
|
703
534
|
"scroll-snap-stop",
|
704
535
|
"scroll-snap-type",
|
705
|
-
"scroll-timeline",
|
706
|
-
"scroll-timeline-axis",
|
707
|
-
"scroll-timeline-name",
|
708
536
|
"scrollbar-color",
|
709
537
|
"scrollbar-gutter",
|
710
538
|
"scrollbar-width",
|
711
539
|
"shape-image-threshold",
|
712
540
|
"shape-margin",
|
713
541
|
"shape-outside",
|
714
|
-
"shape-rendering",
|
715
542
|
"speak",
|
716
543
|
"speak-as",
|
717
544
|
"src",
|
718
545
|
// @font-face
|
719
|
-
"stop-color",
|
720
|
-
"stop-opacity",
|
721
|
-
"stroke",
|
722
|
-
"stroke-dasharray",
|
723
|
-
"stroke-dashoffset",
|
724
|
-
"stroke-linecap",
|
725
|
-
"stroke-linejoin",
|
726
|
-
"stroke-miterlimit",
|
727
|
-
"stroke-opacity",
|
728
|
-
"stroke-width",
|
729
546
|
"tab-size",
|
730
547
|
"table-layout",
|
731
548
|
"text-align",
|
732
549
|
"text-align-all",
|
733
550
|
"text-align-last",
|
734
|
-
"text-anchor",
|
735
551
|
"text-combine-upright",
|
736
552
|
"text-decoration",
|
737
553
|
"text-decoration-color",
|
738
554
|
"text-decoration-line",
|
739
|
-
"text-decoration-skip",
|
740
|
-
"text-decoration-skip-ink",
|
741
555
|
"text-decoration-style",
|
742
|
-
"text-decoration-thickness",
|
743
556
|
"text-emphasis",
|
744
557
|
"text-emphasis-color",
|
745
558
|
"text-emphasis-position",
|
@@ -750,37 +563,20 @@ const ATTRIBUTES = [
|
|
750
563
|
"text-overflow",
|
751
564
|
"text-rendering",
|
752
565
|
"text-shadow",
|
753
|
-
"text-size-adjust",
|
754
566
|
"text-transform",
|
755
|
-
"text-underline-offset",
|
756
567
|
"text-underline-position",
|
757
|
-
"text-wrap",
|
758
|
-
"text-wrap-mode",
|
759
|
-
"text-wrap-style",
|
760
|
-
"timeline-scope",
|
761
568
|
"top",
|
762
|
-
"touch-action",
|
763
569
|
"transform",
|
764
570
|
"transform-box",
|
765
571
|
"transform-origin",
|
766
572
|
"transform-style",
|
767
573
|
"transition",
|
768
|
-
"transition-behavior",
|
769
574
|
"transition-delay",
|
770
575
|
"transition-duration",
|
771
576
|
"transition-property",
|
772
577
|
"transition-timing-function",
|
773
|
-
"translate",
|
774
578
|
"unicode-bidi",
|
775
|
-
"user-modify",
|
776
|
-
"user-select",
|
777
|
-
"vector-effect",
|
778
579
|
"vertical-align",
|
779
|
-
"view-timeline",
|
780
|
-
"view-timeline-axis",
|
781
|
-
"view-timeline-inset",
|
782
|
-
"view-timeline-name",
|
783
|
-
"view-transition-name",
|
784
580
|
"visibility",
|
785
581
|
"voice-balance",
|
786
582
|
"voice-duration",
|
@@ -791,7 +587,6 @@ const ATTRIBUTES = [
|
|
791
587
|
"voice-stress",
|
792
588
|
"voice-volume",
|
793
589
|
"white-space",
|
794
|
-
"white-space-collapse",
|
795
590
|
"widows",
|
796
591
|
"width",
|
797
592
|
"will-change",
|
@@ -799,11 +594,10 @@ const ATTRIBUTES = [
|
|
799
594
|
"word-spacing",
|
800
595
|
"word-wrap",
|
801
596
|
"writing-mode",
|
802
|
-
"
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
].sort().reverse();
|
597
|
+
"z-index"
|
598
|
+
// reverse makes sure longer attributes `font-weight` are matched fully
|
599
|
+
// instead of getting false positives on say `font`
|
600
|
+
].reverse();
|
807
601
|
function stylus(hljs) {
|
808
602
|
const modes = MODES(hljs);
|
809
603
|
const AT_MODIFIERS = "and or not only";
|
@@ -134,7 +134,6 @@ const keywords = [
|
|
134
134
|
// contextual
|
135
135
|
"override",
|
136
136
|
// contextual
|
137
|
-
"package",
|
138
137
|
"postfix",
|
139
138
|
// contextual
|
140
139
|
"precedencegroup",
|
@@ -577,7 +576,7 @@ function swift(hljs) {
|
|
577
576
|
};
|
578
577
|
const KEYWORD_ATTRIBUTE = {
|
579
578
|
scope: "keyword",
|
580
|
-
match: concat(/@/, either(...keywordAttributes)
|
579
|
+
match: concat(/@/, either(...keywordAttributes))
|
581
580
|
};
|
582
581
|
const USER_DEFINED_ATTRIBUTE = {
|
583
582
|
scope: "meta",
|
@@ -764,61 +763,6 @@ function swift(hljs) {
|
|
764
763
|
],
|
765
764
|
end: /}/
|
766
765
|
};
|
767
|
-
const CLASS_FUNC_DECLARATION = {
|
768
|
-
match: [
|
769
|
-
/class\b/,
|
770
|
-
/\s+/,
|
771
|
-
/func\b/,
|
772
|
-
/\s+/,
|
773
|
-
/\b[A-Za-z_][A-Za-z0-9_]*\b/
|
774
|
-
],
|
775
|
-
scope: {
|
776
|
-
1: "keyword",
|
777
|
-
3: "keyword",
|
778
|
-
5: "title.function"
|
779
|
-
}
|
780
|
-
};
|
781
|
-
const CLASS_VAR_DECLARATION = {
|
782
|
-
match: [
|
783
|
-
/class\b/,
|
784
|
-
/\s+/,
|
785
|
-
/var\b/
|
786
|
-
],
|
787
|
-
scope: {
|
788
|
-
1: "keyword",
|
789
|
-
3: "keyword"
|
790
|
-
}
|
791
|
-
};
|
792
|
-
const TYPE_DECLARATION = {
|
793
|
-
begin: [
|
794
|
-
/(struct|protocol|class|extension|enum|actor)/,
|
795
|
-
/\s+/,
|
796
|
-
identifier,
|
797
|
-
/\s*/
|
798
|
-
],
|
799
|
-
beginScope: {
|
800
|
-
1: "keyword",
|
801
|
-
3: "title.class"
|
802
|
-
},
|
803
|
-
keywords: KEYWORDS,
|
804
|
-
contains: [
|
805
|
-
GENERIC_PARAMETERS,
|
806
|
-
...KEYWORD_MODES,
|
807
|
-
{
|
808
|
-
begin: /:/,
|
809
|
-
end: /\{/,
|
810
|
-
keywords: KEYWORDS,
|
811
|
-
contains: [
|
812
|
-
{
|
813
|
-
scope: "title.class.inherited",
|
814
|
-
match: typeIdentifier
|
815
|
-
},
|
816
|
-
...KEYWORD_MODES
|
817
|
-
],
|
818
|
-
relevance: 0
|
819
|
-
}
|
820
|
-
]
|
821
|
-
};
|
822
766
|
for (const variant of STRING.variants) {
|
823
767
|
const interpolation = variant.contains.find((mode) => mode.label === "interpol");
|
824
768
|
interpolation.keywords = KEYWORDS;
|
@@ -849,9 +793,19 @@ function swift(hljs) {
|
|
849
793
|
...COMMENTS,
|
850
794
|
FUNCTION_OR_MACRO,
|
851
795
|
INIT_SUBSCRIPT,
|
852
|
-
|
853
|
-
|
854
|
-
|
796
|
+
{
|
797
|
+
beginKeywords: "struct protocol class extension enum actor",
|
798
|
+
end: "\\{",
|
799
|
+
excludeEnd: true,
|
800
|
+
keywords: KEYWORDS,
|
801
|
+
contains: [
|
802
|
+
hljs.inherit(hljs.TITLE_MODE, {
|
803
|
+
className: "title.class",
|
804
|
+
begin: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/
|
805
|
+
}),
|
806
|
+
...KEYWORD_MODES
|
807
|
+
]
|
808
|
+
},
|
855
809
|
OPERATOR_DECLARATION,
|
856
810
|
PRECEDENCEGROUP,
|
857
811
|
{
|