@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
@@ -16,8 +16,8 @@ import esDefineProperty from "../../../es-define-property@1.0.1/node_modules/es-
|
|
16
16
|
import { __require as requireHasSymbols } from "../../../has-symbols@1.1.0/node_modules/has-symbols/index.mjs";
|
17
17
|
import { __require as requireGet } from "../../../dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs";
|
18
18
|
import { __require as requireFunctionApply } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.mjs";
|
19
|
-
import
|
20
|
-
import
|
19
|
+
import { __require as requireFunctionCall } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs";
|
20
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
21
21
|
import { __require as requireHasown } from "../../../hasown@2.0.2/node_modules/hasown/index.mjs";
|
22
22
|
var undefined$1;
|
23
23
|
var $Object = esObjectAtoms;
|
@@ -61,7 +61,7 @@ var hasSymbols = requireHasSymbols()();
|
|
61
61
|
var getDunderProto = requireGet();
|
62
62
|
var getProto = typeof Reflect === "function" && Reflect.getPrototypeOf || $Object.getPrototypeOf || getDunderProto;
|
63
63
|
var $apply = requireFunctionApply();
|
64
|
-
var $call =
|
64
|
+
var $call = requireFunctionCall();
|
65
65
|
var needsEval = {};
|
66
66
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
67
67
|
var INTRINSICS = {
|
@@ -227,7 +227,7 @@ var LEGACY_ALIASES = {
|
|
227
227
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
228
228
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
229
229
|
};
|
230
|
-
var bind =
|
230
|
+
var bind = requireFunctionBind();
|
231
231
|
var hasOwn = requireHasown();
|
232
232
|
var $concat = bind.call($call, Array.prototype.concat);
|
233
233
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
2
2
|
var hasown;
|
3
3
|
var hasRequiredHasown;
|
4
4
|
function requireHasown() {
|
@@ -7,7 +7,7 @@ function requireHasown() {
|
|
7
7
|
hasRequiredHasown = 1;
|
8
8
|
var call = Function.prototype.call;
|
9
9
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
10
|
-
var bind =
|
10
|
+
var bind = requireFunctionBind();
|
11
11
|
hasown = bind.call(call, $hasOwn);
|
12
12
|
return hasown;
|
13
13
|
}
|
@@ -31,18 +31,6 @@ 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
|
-
);
|
46
34
|
const HERE_DOC = {
|
47
35
|
begin: /<<-?\s*(?=\w+)/,
|
48
36
|
starts: { contains: [
|
@@ -115,7 +103,6 @@ function bash(hljs) {
|
|
115
103
|
"else",
|
116
104
|
"elif",
|
117
105
|
"fi",
|
118
|
-
"time",
|
119
106
|
"for",
|
120
107
|
"while",
|
121
108
|
"until",
|
@@ -124,7 +111,6 @@ function bash(hljs) {
|
|
124
111
|
"done",
|
125
112
|
"case",
|
126
113
|
"esac",
|
127
|
-
"coproc",
|
128
114
|
"function",
|
129
115
|
"select"
|
130
116
|
];
|
@@ -171,7 +157,6 @@ function bash(hljs) {
|
|
171
157
|
"read",
|
172
158
|
"readarray",
|
173
159
|
"source",
|
174
|
-
"sudo",
|
175
160
|
"type",
|
176
161
|
"typeset",
|
177
162
|
"ulimit",
|
@@ -354,10 +339,7 @@ function bash(hljs) {
|
|
354
339
|
];
|
355
340
|
return {
|
356
341
|
name: "Bash",
|
357
|
-
aliases: [
|
358
|
-
"sh",
|
359
|
-
"zsh"
|
360
|
-
],
|
342
|
+
aliases: ["sh"],
|
361
343
|
keywords: {
|
362
344
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
363
345
|
keyword: KEYWORDS,
|
@@ -379,7 +361,7 @@ function bash(hljs) {
|
|
379
361
|
// to catch unknown shells but still highlight the shebang
|
380
362
|
FUNCTION,
|
381
363
|
ARITHMETIC,
|
382
|
-
|
364
|
+
hljs.HASH_COMMENT_MODE,
|
383
365
|
HERE_DOC,
|
384
366
|
PATH_MODE,
|
385
367
|
QUOTE_STRING,
|
@@ -188,13 +188,7 @@ function basic(hljs) {
|
|
188
188
|
keyword: KEYWORDS
|
189
189
|
},
|
190
190
|
contains: [
|
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
|
-
},
|
191
|
+
hljs.QUOTE_STRING_MODE,
|
198
192
|
hljs.COMMENT("REM", "$", { relevance: 10 }),
|
199
193
|
hljs.COMMENT("'", "$", { relevance: 0 }),
|
200
194
|
{
|
@@ -36,10 +36,9 @@ function c(hljs) {
|
|
36
36
|
const NUMBERS = {
|
37
37
|
className: "number",
|
38
38
|
variants: [
|
39
|
-
{
|
40
|
-
{
|
41
|
-
{
|
42
|
-
{ match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
|
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']+)?)" }
|
43
42
|
],
|
44
43
|
relevance: 0
|
45
44
|
};
|
@@ -47,7 +46,7 @@ function c(hljs) {
|
|
47
46
|
className: "meta",
|
48
47
|
begin: /#\s*[a-z]+\b/,
|
49
48
|
end: /$/,
|
50
|
-
keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef
|
49
|
+
keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" },
|
51
50
|
contains: [
|
52
51
|
{
|
53
52
|
begin: /\\\n/,
|
@@ -88,8 +87,6 @@ function c(hljs) {
|
|
88
87
|
"restrict",
|
89
88
|
"return",
|
90
89
|
"sizeof",
|
91
|
-
"typeof",
|
92
|
-
"typeof_unqual",
|
93
90
|
"struct",
|
94
91
|
"switch",
|
95
92
|
"typedef",
|
@@ -123,26 +120,14 @@ function c(hljs) {
|
|
123
120
|
"char",
|
124
121
|
"void",
|
125
122
|
"_Bool",
|
126
|
-
"_BitInt",
|
127
123
|
"_Complex",
|
128
124
|
"_Imaginary",
|
129
125
|
"_Decimal32",
|
130
126
|
"_Decimal64",
|
131
|
-
"_Decimal96",
|
132
127
|
"_Decimal128",
|
133
|
-
"_Decimal64x",
|
134
|
-
"_Decimal128x",
|
135
|
-
"_Float16",
|
136
|
-
"_Float32",
|
137
|
-
"_Float64",
|
138
|
-
"_Float128",
|
139
|
-
"_Float32x",
|
140
|
-
"_Float64x",
|
141
|
-
"_Float128x",
|
142
128
|
// modifiers
|
143
129
|
"const",
|
144
130
|
"static",
|
145
|
-
"constexpr",
|
146
131
|
// aliases
|
147
132
|
"complex",
|
148
133
|
"bool",
|
@@ -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 css(hljs) {
|
808
602
|
const regex = hljs.regex;
|
809
603
|
const modes = MODES(hljs);
|