@kg-ui/kg-ui-plus 0.1.46 → 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.
Files changed (83) hide show
  1. package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
  2. package/dist/es/KgCopilot/CopiCanvas/index.vue2.mjs +4 -5
  3. package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
  4. package/dist/es/KgCopilot/CopiCanvas/testWPS.vue.mjs +7 -0
  5. package/dist/es/KgCopilot/CopiCanvas/testWPS.vue2.mjs +51 -0
  6. package/dist/es/KgCopilot/CopiCanvas/testWPS.vue3.mjs +4 -0
  7. package/dist/es/KgCopilot/CopiCanvas/web-office-sdk-solution-v2.0.7.es.mjs +854 -0
  8. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue2.mjs +1 -1
  9. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +1 -1
  10. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +1 -1
  11. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue2.mjs +1 -1
  12. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +3 -3
  13. package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
  14. package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +7 -7
  15. package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
  16. package/dist/es/KgCopilot/index.vue.mjs +1 -1
  17. package/dist/es/KgCopilot/index.vue2.mjs +8 -5
  18. package/dist/es/KgCopilot/index.vue3.mjs +2 -2
  19. package/dist/es/api/copilot.mjs +0 -8
  20. package/dist/es/directives/heighlight/index.mjs +27 -27
  21. package/dist/es/home/LFilter/FilterHead.vue.mjs +1 -1
  22. package/dist/es/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs +1 -3
  23. package/dist/es/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs +1 -52
  24. package/dist/es/node_modules/.pnpm/{dompurify@3.2.3 → dompurify@3.0.10}/node_modules/dompurify/dist/purify.es.mjs +91 -119
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. package/dist/es/node_modules/.pnpm/{marked@12.0.2 → marked@12.0.1}/node_modules/marked/lib/marked.esm.mjs +1 -2
  45. package/dist/es/store/modules/copilot.mjs +8 -2
  46. package/dist/es/style.css +1 -1
  47. package/dist/es/utils/http/index.mjs +4 -0
  48. package/package.json +2 -2
  49. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +0 -7
  50. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +0 -295
  51. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +0 -4
  52. package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue.mjs +0 -96
  53. package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue2.mjs +0 -4
  54. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +0 -7
  55. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +0 -41
  56. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +0 -4
  57. package/dist/es/_virtual/_commonjs-dynamic-modules.mjs +0 -6
  58. package/dist/es/_virtual/jszip.min.mjs +0 -13
  59. package/dist/es/assets/empty.png.mjs +0 -4
  60. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs +0 -8
  61. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/file-damage-line.mjs +0 -8
  62. package/dist/es/node_modules/.pnpm/docx-preview@0.3.3/node_modules/docx-preview/dist/docx-preview.mjs +0 -3877
  63. package/dist/es/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.mjs +0 -2649
  64. /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
  65. /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
  66. /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
  67. /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
  68. /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
  69. /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
  70. /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
  71. /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
  72. /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
  73. /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
  74. /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
  75. /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
  76. /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
  77. /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
  78. /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
  79. /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
  80. /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
  81. /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
  82. /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
  83. /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
@@ -41,9 +41,7 @@ const KEYWORDS = [
41
41
  "import",
42
42
  "from",
43
43
  "export",
44
- "extends",
45
- // It's reached stage 3, which is "recommended for implementation":
46
- "using"
44
+ "extends"
47
45
  ];
48
46
  const LITERALS = [
49
47
  "true",
@@ -241,7 +239,7 @@ function javascript(hljs) {
241
239
  // defined later
242
240
  };
243
241
  const HTML_TEMPLATE = {
244
- begin: ".?html`",
242
+ begin: "html`",
245
243
  end: "",
246
244
  starts: {
247
245
  end: "`",
@@ -254,7 +252,7 @@ function javascript(hljs) {
254
252
  }
255
253
  };
256
254
  const CSS_TEMPLATE = {
257
- begin: ".?css`",
255
+ begin: "css`",
258
256
  end: "",
259
257
  starts: {
260
258
  end: "`",
@@ -267,7 +265,7 @@ function javascript(hljs) {
267
265
  }
268
266
  };
269
267
  const GRAPHQL_TEMPLATE = {
270
- begin: ".?gql`",
268
+ begin: "gql`",
271
269
  end: "",
272
270
  starts: {
273
271
  end: "`",
@@ -363,7 +361,7 @@ function javascript(hljs) {
363
361
  const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([
364
362
  // eat recursive parens in sub expressions
365
363
  {
366
- begin: /(\s*)\(/,
364
+ begin: /\(/,
367
365
  end: /\)/,
368
366
  keywords: KEYWORDS$1,
369
367
  contains: ["self"].concat(SUBST_AND_COMMENTS)
@@ -371,9 +369,7 @@ function javascript(hljs) {
371
369
  ]);
372
370
  const PARAMS = {
373
371
  className: "params",
374
- // convert this to negative lookbehind in v12
375
- begin: /(\s*)\(/,
376
- // to match the parms with
372
+ begin: /\(/,
377
373
  end: /\)/,
378
374
  excludeBegin: true,
379
375
  excludeEnd: true,
@@ -486,9 +482,9 @@ function javascript(hljs) {
486
482
  ...BUILT_IN_GLOBALS,
487
483
  "super",
488
484
  "import"
489
- ].map((x) => `${x}\\s*\\(`)),
485
+ ]),
490
486
  IDENT_RE$1,
491
- regex.lookahead(/\s*\(/)
487
+ regex.lookahead(/\(/)
492
488
  ),
493
489
  className: "title.function",
494
490
  relevance: 0
@@ -569,8 +565,8 @@ function javascript(hljs) {
569
565
  NUMBER,
570
566
  CLASS_REFERENCE,
571
567
  {
572
- scope: "attr",
573
- match: IDENT_RE$1 + regex.lookahead(":"),
568
+ className: "attr",
569
+ begin: IDENT_RE$1 + regex.lookahead(":"),
574
570
  relevance: 0
575
571
  },
576
572
  FUNCTION_VARIABLE,
@@ -604,7 +600,7 @@ function javascript(hljs) {
604
600
  skip: true
605
601
  },
606
602
  {
607
- begin: /(\s*)\(/,
603
+ begin: /\(/,
608
604
  end: /\)/,
609
605
  excludeBegin: true,
610
606
  excludeEnd: true,
@@ -20,7 +20,6 @@ function json(hljs) {
20
20
  };
21
21
  return {
22
22
  name: "JSON",
23
- aliases: ["jsonc"],
24
23
  keywords: {
25
24
  literal: LITERALS
26
25
  },
@@ -201,11 +201,6 @@ function markdown(hljs) {
201
201
  contains: CONTAINABLE,
202
202
  end: "$"
203
203
  };
204
- const ENTITY = {
205
- //https://spec.commonmark.org/0.31.2/#entity-references
206
- scope: "literal",
207
- match: /&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/
208
- };
209
204
  return {
210
205
  name: "Markdown",
211
206
  aliases: [
@@ -223,8 +218,7 @@ function markdown(hljs) {
223
218
  CODE,
224
219
  HORIZONTAL_RULE,
225
220
  LINK,
226
- LINK_REFERENCE,
227
- ENTITY
221
+ LINK_REFERENCE
228
222
  ]
229
223
  };
230
224
  }
@@ -9,10 +9,6 @@ function php(hljs) {
9
9
  /(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,
10
10
  NOT_PERL_ETC
11
11
  );
12
- const UPCASE_NAME_RE = regex.concat(
13
- /[A-Z]+/,
14
- NOT_PERL_ETC
15
- );
16
12
  const VARIABLE = {
17
13
  scope: "variable",
18
14
  match: "\\$+" + IDENT_RE
@@ -420,13 +416,7 @@ function php(hljs) {
420
416
  CONSTRUCTOR_CALL
421
417
  ];
422
418
  const ATTRIBUTES = {
423
- begin: regex.concat(
424
- /#\[\s*\\?/,
425
- regex.either(
426
- PASCAL_CASE_CLASS_NAME_RE,
427
- UPCASE_NAME_RE
428
- )
429
- ),
419
+ begin: regex.concat(/#\[\s*/, PASCAL_CASE_CLASS_NAME_RE),
430
420
  beginScope: "meta",
431
421
  end: /]/,
432
422
  endScope: "meta",
@@ -456,10 +446,7 @@ function php(hljs) {
456
446
  ...ATTRIBUTE_CONTAINS,
457
447
  {
458
448
  scope: "meta",
459
- variants: [
460
- { match: PASCAL_CASE_CLASS_NAME_RE },
461
- { match: UPCASE_NAME_RE }
462
- ]
449
+ match: PASCAL_CASE_CLASS_NAME_RE
463
450
  }
464
451
  ]
465
452
  };
@@ -539,7 +526,6 @@ function php(hljs) {
539
526
  keywords: KEYWORDS,
540
527
  contains: [
541
528
  "self",
542
- ATTRIBUTES,
543
529
  VARIABLE,
544
530
  LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,
545
531
  hljs.C_BLOCK_COMMENT_MODE,
@@ -346,8 +346,7 @@ function python(hljs) {
346
346
  NUMBER,
347
347
  {
348
348
  // very common convention
349
- scope: "variable.language",
350
- match: /\bself\b/
349
+ begin: /\bself\b/
351
350
  },
352
351
  {
353
352
  // eat "if" prior to string so that it won't accidentally be
@@ -355,7 +354,6 @@ function python(hljs) {
355
354
  beginKeywords: "if",
356
355
  relevance: 0
357
356
  },
358
- { match: /\bor\b/, scope: "keyword" },
359
357
  STRING,
360
358
  COMMENT_TYPE,
361
359
  hljs.HASH_COMMENT_MODE,
@@ -324,7 +324,7 @@ function ruby(hljs) {
324
324
  },
325
325
  {
326
326
  className: "params",
327
- begin: /\|(?!=)/,
327
+ begin: /\|/,
328
328
  end: /\|/,
329
329
  excludeBegin: true,
330
330
  excludeEnd: true,
@@ -34,7 +34,7 @@ const MODES = (hljs) => {
34
34
  }
35
35
  };
36
36
  };
37
- const HTML_TAGS = [
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
- ].sort().reverse();
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
- ].sort().reverse();
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
- ].sort().reverse();
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
- "x",
803
- "y",
804
- "z-index",
805
- "zoom"
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";