@kg-ui/kg-ui-plus 0.2.2 → 0.2.4

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 (76) hide show
  1. package/dist/es/directives/heighlight/index.mjs +27 -27
  2. package/dist/es/home/LFilter/FilterHead.vue.mjs +1 -1
  3. package/dist/es/kgCopilot/copilotCanvas/InitWrap.vue2.mjs +1 -1
  4. package/dist/es/kgCopilot/copilotCanvas/codeViewer/CodeTypewriter.vue.mjs +154 -0
  5. package/dist/es/kgCopilot/copilotCanvas/codeViewer/CodeTypewriter.vue2.mjs +4 -0
  6. package/dist/es/kgCopilot/copilotCanvas/codeViewer/index.vue.mjs +27 -0
  7. package/dist/es/kgCopilot/copilotCanvas/codeViewer/index.vue2.mjs +4 -0
  8. package/dist/es/kgCopilot/copilotCanvas/docViewer/index.vue.mjs +2 -2
  9. package/dist/es/kgCopilot/copilotCanvas/docViewer/wpsFileViewer/wpsAi/AiInput.vue2.mjs +1 -1
  10. package/dist/es/kgCopilot/copilotCanvas/index.vue.mjs +1 -1
  11. package/dist/es/kgCopilot/copilotCanvas/index.vue2.mjs +46 -6
  12. package/dist/es/kgCopilot/copilotCanvas/index.vue3.mjs +2 -2
  13. package/dist/es/kgCopilot/copilotDialog/CopiContent/SuggestMessage.vue2.mjs +1 -1
  14. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/codeBox.vue.mjs +102 -0
  15. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/codeBox.vue2.mjs +4 -0
  16. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/index.vue.mjs +1 -1
  17. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/index.vue2.mjs +19 -2
  18. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/index.vue3.mjs +2 -2
  19. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/readMd.vue2.mjs +3 -3
  20. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/readStreamMd.vue2.mjs +2 -2
  21. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/reportBox.vue.mjs +2 -2
  22. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/reportBox.vue2.mjs +2 -2
  23. package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/InputFootTool.vue2.mjs +1 -1
  24. package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +1 -1
  25. package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/index.vue2.mjs +1 -1
  26. package/dist/es/kgCopilot/copilotHistory/index.vue2.mjs +5 -5
  27. package/dist/es/kgCopilot/index.vue2.mjs +3 -3
  28. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/code-s-slash-fill.mjs +8 -0
  29. package/dist/es/node_modules/.pnpm/{dompurify@3.0.10 → dompurify@3.2.6}/node_modules/dompurify/dist/purify.es.mjs +145 -103
  30. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/apache.mjs +4 -0
  31. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/bash.mjs +20 -2
  32. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/basic.mjs +7 -1
  33. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/c.mjs +19 -4
  34. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/css.mjs +214 -8
  35. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dart.mjs +10 -2
  36. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/erlang.mjs +48 -6
  37. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/go.mjs +23 -3
  38. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/java.mjs +3 -1
  39. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/javascript.mjs +15 -11
  40. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/json.mjs +1 -0
  41. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/markdown.mjs +7 -1
  42. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/php.mjs +16 -2
  43. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/python.mjs +3 -1
  44. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/ruby.mjs +1 -1
  45. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/stylus.mjs +214 -8
  46. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/swift.mjs +60 -14
  47. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/typescript.mjs +45 -18
  48. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/lib/core.mjs +8 -8
  49. package/dist/es/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/styles/github.css.mjs +4 -0
  50. package/dist/es/node_modules/.pnpm/{marked@12.0.1 → marked@12.0.2}/node_modules/marked/lib/marked.esm.mjs +2 -1
  51. package/dist/es/store/modules/copilot.mjs +69 -19
  52. package/dist/es/style.css +11 -1
  53. package/package.json +2 -2
  54. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/arrow-left.mjs +0 -0
  55. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/arrow-right.mjs +0 -0
  56. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/check.mjs +0 -0
  57. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/close.mjs +0 -0
  58. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/copy-document.mjs +0 -0
  59. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/delete.mjs +0 -0
  60. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/edit.mjs +0 -0
  61. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/folder-opened.mjs +0 -0
  62. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/loading.mjs +0 -0
  63. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/notebook.mjs +0 -0
  64. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/promotion.mjs +0 -0
  65. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/reading.mjs +0 -0
  66. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/refresh.mjs +0 -0
  67. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/search.mjs +0 -0
  68. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/core.mjs +0 -0
  69. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/django.mjs +0 -0
  70. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dns.mjs +0 -0
  71. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dos.mjs +0 -0
  72. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dust.mjs +0 -0
  73. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/http.mjs +0 -0
  74. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/nginx.mjs +0 -0
  75. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/xml.mjs +0 -0
  76. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/styles/sunburst.css.mjs +0 -0
@@ -31,6 +31,18 @@ function bash(hljs) {
31
31
  end: /\)/,
32
32
  contains: [hljs.BACKSLASH_ESCAPE]
33
33
  };
34
+ const COMMENT = hljs.inherit(
35
+ hljs.COMMENT(),
36
+ {
37
+ match: [
38
+ /(^|\s)/,
39
+ /#.*$/
40
+ ],
41
+ scope: {
42
+ 2: "comment"
43
+ }
44
+ }
45
+ );
34
46
  const HERE_DOC = {
35
47
  begin: /<<-?\s*(?=\w+)/,
36
48
  starts: { contains: [
@@ -103,6 +115,7 @@ function bash(hljs) {
103
115
  "else",
104
116
  "elif",
105
117
  "fi",
118
+ "time",
106
119
  "for",
107
120
  "while",
108
121
  "until",
@@ -111,6 +124,7 @@ function bash(hljs) {
111
124
  "done",
112
125
  "case",
113
126
  "esac",
127
+ "coproc",
114
128
  "function",
115
129
  "select"
116
130
  ];
@@ -157,6 +171,7 @@ function bash(hljs) {
157
171
  "read",
158
172
  "readarray",
159
173
  "source",
174
+ "sudo",
160
175
  "type",
161
176
  "typeset",
162
177
  "ulimit",
@@ -339,7 +354,10 @@ function bash(hljs) {
339
354
  ];
340
355
  return {
341
356
  name: "Bash",
342
- aliases: ["sh"],
357
+ aliases: [
358
+ "sh",
359
+ "zsh"
360
+ ],
343
361
  keywords: {
344
362
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
345
363
  keyword: KEYWORDS,
@@ -361,7 +379,7 @@ function bash(hljs) {
361
379
  // to catch unknown shells but still highlight the shebang
362
380
  FUNCTION,
363
381
  ARITHMETIC,
364
- hljs.HASH_COMMENT_MODE,
382
+ COMMENT,
365
383
  HERE_DOC,
366
384
  PATH_MODE,
367
385
  QUOTE_STRING,
@@ -188,7 +188,13 @@ function basic(hljs) {
188
188
  keyword: KEYWORDS
189
189
  },
190
190
  contains: [
191
- hljs.QUOTE_STRING_MODE,
191
+ {
192
+ // Match strings that start with " and end with " or a line break
193
+ scope: "string",
194
+ begin: /"/,
195
+ end: /"|$/,
196
+ contains: [hljs.BACKSLASH_ESCAPE]
197
+ },
192
198
  hljs.COMMENT("REM", "$", { relevance: 10 }),
193
199
  hljs.COMMENT("'", "$", { relevance: 0 }),
194
200
  {
@@ -36,9 +36,10 @@ function c(hljs) {
36
36
  const NUMBERS = {
37
37
  className: "number",
38
38
  variants: [
39
- { begin: "\\b(0b[01']+)" },
40
- { begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" },
41
- { begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" }
39
+ { match: /\b(0b[01']+)/ },
40
+ { match: /(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/ },
41
+ { match: /(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/ },
42
+ { match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
42
43
  ],
43
44
  relevance: 0
44
45
  };
@@ -46,7 +47,7 @@ function c(hljs) {
46
47
  className: "meta",
47
48
  begin: /#\s*[a-z]+\b/,
48
49
  end: /$/,
49
- keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" },
50
+ keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include" },
50
51
  contains: [
51
52
  {
52
53
  begin: /\\\n/,
@@ -87,6 +88,8 @@ function c(hljs) {
87
88
  "restrict",
88
89
  "return",
89
90
  "sizeof",
91
+ "typeof",
92
+ "typeof_unqual",
90
93
  "struct",
91
94
  "switch",
92
95
  "typedef",
@@ -120,14 +123,26 @@ function c(hljs) {
120
123
  "char",
121
124
  "void",
122
125
  "_Bool",
126
+ "_BitInt",
123
127
  "_Complex",
124
128
  "_Imaginary",
125
129
  "_Decimal32",
126
130
  "_Decimal64",
131
+ "_Decimal96",
127
132
  "_Decimal128",
133
+ "_Decimal64x",
134
+ "_Decimal128x",
135
+ "_Float16",
136
+ "_Float32",
137
+ "_Float64",
138
+ "_Float128",
139
+ "_Float32x",
140
+ "_Float64x",
141
+ "_Float128x",
128
142
  // modifiers
129
143
  "const",
130
144
  "static",
145
+ "constexpr",
131
146
  // aliases
132
147
  "complex",
133
148
  "bool",
@@ -34,7 +34,7 @@ const MODES = (hljs) => {
34
34
  }
35
35
  };
36
36
  };
37
- const TAGS = [
37
+ const HTML_TAGS = [
38
38
  "a",
39
39
  "abbr",
40
40
  "address",
@@ -86,11 +86,16 @@ const TAGS = [
86
86
  "nav",
87
87
  "object",
88
88
  "ol",
89
+ "optgroup",
90
+ "option",
89
91
  "p",
92
+ "picture",
90
93
  "q",
91
94
  "quote",
92
95
  "samp",
93
96
  "section",
97
+ "select",
98
+ "source",
94
99
  "span",
95
100
  "strong",
96
101
  "summary",
@@ -108,6 +113,53 @@ const TAGS = [
108
113
  "var",
109
114
  "video"
110
115
  ];
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
+ ];
111
163
  const MEDIA_FEATURES = [
112
164
  "any-hover",
113
165
  "any-pointer",
@@ -143,7 +195,7 @@ const MEDIA_FEATURES = [
143
195
  "max-width",
144
196
  "min-height",
145
197
  "max-height"
146
- ];
198
+ ].sort().reverse();
147
199
  const PSEUDO_CLASSES = [
148
200
  "active",
149
201
  "any-link",
@@ -218,7 +270,7 @@ const PSEUDO_CLASSES = [
218
270
  "visited",
219
271
  "where"
220
272
  // where()
221
- ];
273
+ ].sort().reverse();
222
274
  const PSEUDO_ELEMENTS = [
223
275
  "after",
224
276
  "backdrop",
@@ -234,13 +286,17 @@ const PSEUDO_ELEMENTS = [
234
286
  "selection",
235
287
  "slotted",
236
288
  "spelling-error"
237
- ];
289
+ ].sort().reverse();
238
290
  const ATTRIBUTES = [
291
+ "accent-color",
239
292
  "align-content",
240
293
  "align-items",
241
294
  "align-self",
295
+ "alignment-baseline",
242
296
  "all",
297
+ "anchor-name",
243
298
  "animation",
299
+ "animation-composition",
244
300
  "animation-delay",
245
301
  "animation-direction",
246
302
  "animation-duration",
@@ -248,7 +304,14 @@ const ATTRIBUTES = [
248
304
  "animation-iteration-count",
249
305
  "animation-name",
250
306
  "animation-play-state",
307
+ "animation-range",
308
+ "animation-range-end",
309
+ "animation-range-start",
310
+ "animation-timeline",
251
311
  "animation-timing-function",
312
+ "appearance",
313
+ "aspect-ratio",
314
+ "backdrop-filter",
252
315
  "backface-visibility",
253
316
  "background",
254
317
  "background-attachment",
@@ -258,8 +321,11 @@ const ATTRIBUTES = [
258
321
  "background-image",
259
322
  "background-origin",
260
323
  "background-position",
324
+ "background-position-x",
325
+ "background-position-y",
261
326
  "background-repeat",
262
327
  "background-size",
328
+ "baseline-shift",
263
329
  "block-size",
264
330
  "border",
265
331
  "border-block",
@@ -282,6 +348,8 @@ const ATTRIBUTES = [
282
348
  "border-bottom-width",
283
349
  "border-collapse",
284
350
  "border-color",
351
+ "border-end-end-radius",
352
+ "border-end-start-radius",
285
353
  "border-image",
286
354
  "border-image-outset",
287
355
  "border-image-repeat",
@@ -310,6 +378,8 @@ const ATTRIBUTES = [
310
378
  "border-right-style",
311
379
  "border-right-width",
312
380
  "border-spacing",
381
+ "border-start-end-radius",
382
+ "border-start-start-radius",
313
383
  "border-style",
314
384
  "border-top",
315
385
  "border-top-color",
@@ -319,7 +389,15 @@ const ATTRIBUTES = [
319
389
  "border-top-width",
320
390
  "border-width",
321
391
  "bottom",
392
+ "box-align",
322
393
  "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",
323
401
  "box-shadow",
324
402
  "box-sizing",
325
403
  "break-after",
@@ -332,6 +410,11 @@ const ATTRIBUTES = [
332
410
  "clip-path",
333
411
  "clip-rule",
334
412
  "color",
413
+ "color-interpolation",
414
+ "color-interpolation-filters",
415
+ "color-profile",
416
+ "color-rendering",
417
+ "color-scheme",
335
418
  "column-count",
336
419
  "column-fill",
337
420
  "column-gap",
@@ -343,17 +426,34 @@ const ATTRIBUTES = [
343
426
  "column-width",
344
427
  "columns",
345
428
  "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",
346
437
  "content",
347
438
  "content-visibility",
348
439
  "counter-increment",
349
440
  "counter-reset",
441
+ "counter-set",
350
442
  "cue",
351
443
  "cue-after",
352
444
  "cue-before",
353
445
  "cursor",
446
+ "cx",
447
+ "cy",
354
448
  "direction",
355
449
  "display",
450
+ "dominant-baseline",
356
451
  "empty-cells",
452
+ "enable-background",
453
+ "field-sizing",
454
+ "fill",
455
+ "fill-opacity",
456
+ "fill-rule",
357
457
  "filter",
358
458
  "flex",
359
459
  "flex-basis",
@@ -363,6 +463,8 @@ const ATTRIBUTES = [
363
463
  "flex-shrink",
364
464
  "flex-wrap",
365
465
  "float",
466
+ "flood-color",
467
+ "flood-opacity",
366
468
  "flow",
367
469
  "font",
368
470
  "font-display",
@@ -370,21 +472,32 @@ const ATTRIBUTES = [
370
472
  "font-feature-settings",
371
473
  "font-kerning",
372
474
  "font-language-override",
475
+ "font-optical-sizing",
476
+ "font-palette",
373
477
  "font-size",
374
478
  "font-size-adjust",
479
+ "font-smooth",
375
480
  "font-smoothing",
376
481
  "font-stretch",
377
482
  "font-style",
378
483
  "font-synthesis",
484
+ "font-synthesis-position",
485
+ "font-synthesis-small-caps",
486
+ "font-synthesis-style",
487
+ "font-synthesis-weight",
379
488
  "font-variant",
489
+ "font-variant-alternates",
380
490
  "font-variant-caps",
381
491
  "font-variant-east-asian",
492
+ "font-variant-emoji",
382
493
  "font-variant-ligatures",
383
494
  "font-variant-numeric",
384
495
  "font-variant-position",
385
496
  "font-variation-settings",
386
497
  "font-weight",
498
+ "forced-color-adjust",
387
499
  "gap",
500
+ "glyph-orientation-horizontal",
388
501
  "glyph-orientation-vertical",
389
502
  "grid",
390
503
  "grid-area",
@@ -404,19 +517,36 @@ const ATTRIBUTES = [
404
517
  "grid-template-rows",
405
518
  "hanging-punctuation",
406
519
  "height",
520
+ "hyphenate-character",
521
+ "hyphenate-limit-chars",
407
522
  "hyphens",
408
523
  "icon",
409
524
  "image-orientation",
410
525
  "image-rendering",
411
526
  "image-resolution",
412
527
  "ime-mode",
528
+ "initial-letter",
529
+ "initial-letter-align",
413
530
  "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",
414
539
  "isolation",
415
540
  "justify-content",
541
+ "justify-items",
542
+ "justify-self",
543
+ "kerning",
416
544
  "left",
417
545
  "letter-spacing",
546
+ "lighting-color",
418
547
  "line-break",
419
548
  "line-height",
549
+ "line-height-step",
420
550
  "list-style",
421
551
  "list-style-image",
422
552
  "list-style-position",
@@ -432,6 +562,11 @@ const ATTRIBUTES = [
432
562
  "margin-left",
433
563
  "margin-right",
434
564
  "margin-top",
565
+ "margin-trim",
566
+ "marker",
567
+ "marker-end",
568
+ "marker-mid",
569
+ "marker-start",
435
570
  "marks",
436
571
  "mask",
437
572
  "mask-border",
@@ -450,6 +585,10 @@ const ATTRIBUTES = [
450
585
  "mask-repeat",
451
586
  "mask-size",
452
587
  "mask-type",
588
+ "masonry-auto-flow",
589
+ "math-depth",
590
+ "math-shift",
591
+ "math-style",
453
592
  "max-block-size",
454
593
  "max-height",
455
594
  "max-inline-size",
@@ -468,6 +607,12 @@ const ATTRIBUTES = [
468
607
  "normal",
469
608
  "object-fit",
470
609
  "object-position",
610
+ "offset",
611
+ "offset-anchor",
612
+ "offset-distance",
613
+ "offset-path",
614
+ "offset-position",
615
+ "offset-rotate",
471
616
  "opacity",
472
617
  "order",
473
618
  "orphans",
@@ -477,9 +622,19 @@ const ATTRIBUTES = [
477
622
  "outline-style",
478
623
  "outline-width",
479
624
  "overflow",
625
+ "overflow-anchor",
626
+ "overflow-block",
627
+ "overflow-clip-margin",
628
+ "overflow-inline",
480
629
  "overflow-wrap",
481
630
  "overflow-x",
482
631
  "overflow-y",
632
+ "overlay",
633
+ "overscroll-behavior",
634
+ "overscroll-behavior-block",
635
+ "overscroll-behavior-inline",
636
+ "overscroll-behavior-x",
637
+ "overscroll-behavior-y",
483
638
  "padding",
484
639
  "padding-block",
485
640
  "padding-block-end",
@@ -491,23 +646,37 @@ const ATTRIBUTES = [
491
646
  "padding-left",
492
647
  "padding-right",
493
648
  "padding-top",
649
+ "page",
494
650
  "page-break-after",
495
651
  "page-break-before",
496
652
  "page-break-inside",
653
+ "paint-order",
497
654
  "pause",
498
655
  "pause-after",
499
656
  "pause-before",
500
657
  "perspective",
501
658
  "perspective-origin",
659
+ "place-content",
660
+ "place-items",
661
+ "place-self",
502
662
  "pointer-events",
503
663
  "position",
664
+ "position-anchor",
665
+ "position-visibility",
666
+ "print-color-adjust",
504
667
  "quotes",
668
+ "r",
505
669
  "resize",
506
670
  "rest",
507
671
  "rest-after",
508
672
  "rest-before",
509
673
  "right",
674
+ "rotate",
510
675
  "row-gap",
676
+ "ruby-align",
677
+ "ruby-position",
678
+ "scale",
679
+ "scroll-behavior",
511
680
  "scroll-margin",
512
681
  "scroll-margin-block",
513
682
  "scroll-margin-block-end",
@@ -533,26 +702,44 @@ const ATTRIBUTES = [
533
702
  "scroll-snap-align",
534
703
  "scroll-snap-stop",
535
704
  "scroll-snap-type",
705
+ "scroll-timeline",
706
+ "scroll-timeline-axis",
707
+ "scroll-timeline-name",
536
708
  "scrollbar-color",
537
709
  "scrollbar-gutter",
538
710
  "scrollbar-width",
539
711
  "shape-image-threshold",
540
712
  "shape-margin",
541
713
  "shape-outside",
714
+ "shape-rendering",
542
715
  "speak",
543
716
  "speak-as",
544
717
  "src",
545
718
  // @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",
546
729
  "tab-size",
547
730
  "table-layout",
548
731
  "text-align",
549
732
  "text-align-all",
550
733
  "text-align-last",
734
+ "text-anchor",
551
735
  "text-combine-upright",
552
736
  "text-decoration",
553
737
  "text-decoration-color",
554
738
  "text-decoration-line",
739
+ "text-decoration-skip",
740
+ "text-decoration-skip-ink",
555
741
  "text-decoration-style",
742
+ "text-decoration-thickness",
556
743
  "text-emphasis",
557
744
  "text-emphasis-color",
558
745
  "text-emphasis-position",
@@ -563,20 +750,37 @@ const ATTRIBUTES = [
563
750
  "text-overflow",
564
751
  "text-rendering",
565
752
  "text-shadow",
753
+ "text-size-adjust",
566
754
  "text-transform",
755
+ "text-underline-offset",
567
756
  "text-underline-position",
757
+ "text-wrap",
758
+ "text-wrap-mode",
759
+ "text-wrap-style",
760
+ "timeline-scope",
568
761
  "top",
762
+ "touch-action",
569
763
  "transform",
570
764
  "transform-box",
571
765
  "transform-origin",
572
766
  "transform-style",
573
767
  "transition",
768
+ "transition-behavior",
574
769
  "transition-delay",
575
770
  "transition-duration",
576
771
  "transition-property",
577
772
  "transition-timing-function",
773
+ "translate",
578
774
  "unicode-bidi",
775
+ "user-modify",
776
+ "user-select",
777
+ "vector-effect",
579
778
  "vertical-align",
779
+ "view-timeline",
780
+ "view-timeline-axis",
781
+ "view-timeline-inset",
782
+ "view-timeline-name",
783
+ "view-transition-name",
580
784
  "visibility",
581
785
  "voice-balance",
582
786
  "voice-duration",
@@ -587,6 +791,7 @@ const ATTRIBUTES = [
587
791
  "voice-stress",
588
792
  "voice-volume",
589
793
  "white-space",
794
+ "white-space-collapse",
590
795
  "widows",
591
796
  "width",
592
797
  "will-change",
@@ -594,10 +799,11 @@ const ATTRIBUTES = [
594
799
  "word-spacing",
595
800
  "word-wrap",
596
801
  "writing-mode",
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();
802
+ "x",
803
+ "y",
804
+ "z-index",
805
+ "zoom"
806
+ ].sort().reverse();
601
807
  function css(hljs) {
602
808
  const regex = hljs.regex;
603
809
  const modes = MODES(hljs);
@@ -13,6 +13,14 @@ function dart(hljs) {
13
13
  ],
14
14
  keywords: "true false null this is new super"
15
15
  };
16
+ const NUMBER = {
17
+ className: "number",
18
+ relevance: 0,
19
+ variants: [
20
+ { match: /\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/ },
21
+ { match: /\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/ }
22
+ ]
23
+ };
16
24
  const STRING = {
17
25
  className: "string",
18
26
  variants: [
@@ -75,7 +83,7 @@ function dart(hljs) {
75
83
  ]
76
84
  };
77
85
  BRACED_SUBST.contains = [
78
- hljs.C_NUMBER_MODE,
86
+ NUMBER,
79
87
  STRING
80
88
  ];
81
89
  const BUILT_IN_TYPES = [
@@ -230,7 +238,7 @@ function dart(hljs) {
230
238
  hljs.UNDERSCORE_TITLE_MODE
231
239
  ]
232
240
  },
233
- hljs.C_NUMBER_MODE,
241
+ NUMBER,
234
242
  {
235
243
  className: "meta",
236
244
  begin: "@[A-Za-z]+"