@kong-ui-public/document-viewer 2.6.5 → 2.6.7-pr.4063.bf809a10e.0
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/document-viewer.es.js +1064 -12
- package/dist/document-viewer.umd.js +16 -16
- package/dist/prism-bash.min-BSY2OtLX.js +174 -0
- package/dist/prism-css.min-Dvuxzq5c.js +54 -0
- package/dist/prism-docker.min-Ch3_J8xI.js +74 -0
- package/dist/prism-go.min-DpuveEXM.js +20 -0
- package/dist/prism-http.min-BDgs53mG.js +107 -0
- package/dist/prism-javascript.min-TTu9gTO1.js +101 -0
- package/dist/prism-jq.min-wjT5eiX4.js +57 -0
- package/dist/prism-json.min-BRMWDas8.js +25 -0
- package/dist/prism-log.min-CcmZYCOq.js +97 -0
- package/dist/prism-lua.min-CL-6tP_v.js +16 -0
- package/dist/prism-makefile.min-CfFQPrwo.js +28 -0
- package/dist/prism-markdown.min-CHFT4_Ei.js +240 -0
- package/dist/prism-python.min-BMa8XQns.js +59 -0
- package/dist/prism-regex.min-KRUvJnhz.js +78 -0
- package/dist/prism-rest.min-C38D2pbN.js +151 -0
- package/dist/prism-rust.min-D7QzzLfK.js +91 -0
- package/dist/prism-scss.min-Bg9jNB2R.js +52 -0
- package/dist/prism-sql.min-BufanzXb.js +28 -0
- package/dist/prism-typescript.min-Ck6Xh8q0.js +37 -0
- package/dist/prism-xml-doc.min-CcH35smE.js +18 -0
- package/dist/prism-yaml.min-CkLxSivi.js +67 -0
- package/dist/style.css +2 -1
- package/package.json +3 -3
- package/dist/index-Dm0akurK.js +0 -1632
- package/dist/prism-bash.min-HHIMdNJ_.js +0 -6
- package/dist/prism-css.min-BgYu_Rzi.js +0 -7
- package/dist/prism-docker.min-Cc3clOcH.js +0 -22
- package/dist/prism-go.min-C7UmK6TW.js +0 -1
- package/dist/prism-http.min-CP9t4YhN.js +0 -22
- package/dist/prism-javascript.min-CEqHqgbm.js +0 -8
- package/dist/prism-jq.min-DSs6jyUo.js +0 -36
- package/dist/prism-json.min-B1GJqK1k.js +0 -1
- package/dist/prism-log.min-SDopTpKN.js +0 -1
- package/dist/prism-lua.min-DwRnUVfS.js +0 -1
- package/dist/prism-makefile.min-DyutknhE.js +0 -1
- package/dist/prism-markdown.min-D9nktPdA.js +0 -60
- package/dist/prism-python.min-CwGdPpz_.js +0 -29
- package/dist/prism-regex.min-BqTi0NTp.js +0 -4
- package/dist/prism-rest.min-B6veHRJF.js +0 -1
- package/dist/prism-rust.min-Ccuw6kc-.js +0 -36
- package/dist/prism-scss.min-DsoMAB2f.js +0 -29
- package/dist/prism-sql.min-BHXzX-c_.js +0 -1
- package/dist/prism-typescript.min-fwm2QbJz.js +0 -33
- package/dist/prism-xml-doc.min-BGai1RKL.js +0 -7
- package/dist/prism-yaml.min-C3Yo-ypE.js +0 -28
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-rust.min.js
|
|
2
|
+
(function(e) {
|
|
3
|
+
for (var t = "/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", n = 0; n < 2; n++) t = t.replace(/<self>/g, (function() {
|
|
4
|
+
return t;
|
|
5
|
+
}));
|
|
6
|
+
t = t.replace(/<self>/g, (function() {
|
|
7
|
+
return "[^\\s\\S]";
|
|
8
|
+
})), e.languages.rust = {
|
|
9
|
+
comment: [{
|
|
10
|
+
pattern: RegExp("(^|[^\\\\])" + t),
|
|
11
|
+
lookbehind: !0,
|
|
12
|
+
greedy: !0
|
|
13
|
+
}, {
|
|
14
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
15
|
+
lookbehind: !0,
|
|
16
|
+
greedy: !0
|
|
17
|
+
}],
|
|
18
|
+
string: {
|
|
19
|
+
pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,
|
|
20
|
+
greedy: !0
|
|
21
|
+
},
|
|
22
|
+
char: {
|
|
23
|
+
pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,
|
|
24
|
+
greedy: !0
|
|
25
|
+
},
|
|
26
|
+
attribute: {
|
|
27
|
+
pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,
|
|
28
|
+
greedy: !0,
|
|
29
|
+
alias: "attr-name",
|
|
30
|
+
inside: { string: null }
|
|
31
|
+
},
|
|
32
|
+
"closure-params": {
|
|
33
|
+
pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,
|
|
34
|
+
lookbehind: !0,
|
|
35
|
+
greedy: !0,
|
|
36
|
+
inside: {
|
|
37
|
+
"closure-punctuation": {
|
|
38
|
+
pattern: /^\||\|$/,
|
|
39
|
+
alias: "punctuation"
|
|
40
|
+
},
|
|
41
|
+
rest: null
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"lifetime-annotation": {
|
|
45
|
+
pattern: /'\w+/,
|
|
46
|
+
alias: "symbol"
|
|
47
|
+
},
|
|
48
|
+
"fragment-specifier": {
|
|
49
|
+
pattern: /(\$\w+:)[a-z]+/,
|
|
50
|
+
lookbehind: !0,
|
|
51
|
+
alias: "punctuation"
|
|
52
|
+
},
|
|
53
|
+
variable: /\$\w+/,
|
|
54
|
+
"function-definition": {
|
|
55
|
+
pattern: /(\bfn\s+)\w+/,
|
|
56
|
+
lookbehind: !0,
|
|
57
|
+
alias: "function"
|
|
58
|
+
},
|
|
59
|
+
"type-definition": {
|
|
60
|
+
pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/,
|
|
61
|
+
lookbehind: !0,
|
|
62
|
+
alias: "class-name"
|
|
63
|
+
},
|
|
64
|
+
"module-declaration": [{
|
|
65
|
+
pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,
|
|
66
|
+
lookbehind: !0,
|
|
67
|
+
alias: "namespace"
|
|
68
|
+
}, {
|
|
69
|
+
pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,
|
|
70
|
+
lookbehind: !0,
|
|
71
|
+
alias: "namespace",
|
|
72
|
+
inside: { punctuation: /::/ }
|
|
73
|
+
}],
|
|
74
|
+
keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],
|
|
75
|
+
function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,
|
|
76
|
+
macro: {
|
|
77
|
+
pattern: /\b\w+!/,
|
|
78
|
+
alias: "property"
|
|
79
|
+
},
|
|
80
|
+
constant: /\b[A-Z_][A-Z_\d]+\b/,
|
|
81
|
+
"class-name": /\b[A-Z]\w*\b/,
|
|
82
|
+
namespace: {
|
|
83
|
+
pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,
|
|
84
|
+
inside: { punctuation: /::/ }
|
|
85
|
+
},
|
|
86
|
+
number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,
|
|
87
|
+
boolean: /\b(?:false|true)\b/,
|
|
88
|
+
punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,
|
|
89
|
+
operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/
|
|
90
|
+
}, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
|
|
91
|
+
})(Prism);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-scss.min.js
|
|
2
|
+
Prism.languages.scss = Prism.languages.extend("css", {
|
|
3
|
+
comment: {
|
|
4
|
+
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,
|
|
5
|
+
lookbehind: !0
|
|
6
|
+
},
|
|
7
|
+
atrule: {
|
|
8
|
+
pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,
|
|
9
|
+
inside: { rule: /@[\w-]+/ }
|
|
10
|
+
},
|
|
11
|
+
url: /(?:[-a-z]+-)?url(?=\()/i,
|
|
12
|
+
selector: {
|
|
13
|
+
pattern: /(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,
|
|
14
|
+
inside: {
|
|
15
|
+
parent: {
|
|
16
|
+
pattern: /&/,
|
|
17
|
+
alias: "important"
|
|
18
|
+
},
|
|
19
|
+
placeholder: /%[-\w]+/,
|
|
20
|
+
variable: /\$[-\w]+|#\{\$[-\w]+\}/
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
property: {
|
|
24
|
+
pattern: /(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,
|
|
25
|
+
inside: { variable: /\$[-\w]+|#\{\$[-\w]+\}/ }
|
|
26
|
+
}
|
|
27
|
+
}), Prism.languages.insertBefore("scss", "atrule", { keyword: [/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i, {
|
|
28
|
+
pattern: /( )(?:from|through)(?= )/,
|
|
29
|
+
lookbehind: !0
|
|
30
|
+
}] }), Prism.languages.insertBefore("scss", "important", { variable: /\$[-\w]+|#\{\$[-\w]+\}/ }), Prism.languages.insertBefore("scss", "function", {
|
|
31
|
+
"module-modifier": {
|
|
32
|
+
pattern: /\b(?:as|hide|show|with)\b/i,
|
|
33
|
+
alias: "keyword"
|
|
34
|
+
},
|
|
35
|
+
placeholder: {
|
|
36
|
+
pattern: /%[-\w]+/,
|
|
37
|
+
alias: "selector"
|
|
38
|
+
},
|
|
39
|
+
statement: {
|
|
40
|
+
pattern: /\B!(?:default|optional)\b/i,
|
|
41
|
+
alias: "keyword"
|
|
42
|
+
},
|
|
43
|
+
boolean: /\b(?:false|true)\b/,
|
|
44
|
+
null: {
|
|
45
|
+
pattern: /\bnull\b/,
|
|
46
|
+
alias: "keyword"
|
|
47
|
+
},
|
|
48
|
+
operator: {
|
|
49
|
+
pattern: /(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,
|
|
50
|
+
lookbehind: !0
|
|
51
|
+
}
|
|
52
|
+
}), Prism.languages.scss.atrule.inside.rest = Prism.languages.scss;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-sql.min.js
|
|
2
|
+
Prism.languages.sql = {
|
|
3
|
+
comment: {
|
|
4
|
+
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
|
|
5
|
+
lookbehind: !0
|
|
6
|
+
},
|
|
7
|
+
variable: [{
|
|
8
|
+
pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,
|
|
9
|
+
greedy: !0
|
|
10
|
+
}, /@[\w.$]+/],
|
|
11
|
+
string: {
|
|
12
|
+
pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
|
|
13
|
+
greedy: !0,
|
|
14
|
+
lookbehind: !0
|
|
15
|
+
},
|
|
16
|
+
identifier: {
|
|
17
|
+
pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,
|
|
18
|
+
greedy: !0,
|
|
19
|
+
lookbehind: !0,
|
|
20
|
+
inside: { punctuation: /^`|`$/ }
|
|
21
|
+
},
|
|
22
|
+
function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
|
|
23
|
+
keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
|
|
24
|
+
boolean: /\b(?:FALSE|NULL|TRUE)\b/i,
|
|
25
|
+
number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
|
|
26
|
+
operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
|
|
27
|
+
punctuation: /[;[\]()`,.]/
|
|
28
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-typescript.min.js
|
|
2
|
+
(function(e) {
|
|
3
|
+
e.languages.typescript = e.languages.extend("javascript", {
|
|
4
|
+
"class-name": {
|
|
5
|
+
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
|
|
6
|
+
lookbehind: !0,
|
|
7
|
+
greedy: !0,
|
|
8
|
+
inside: null
|
|
9
|
+
},
|
|
10
|
+
builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
|
|
11
|
+
}), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
|
|
12
|
+
var t = e.languages.extend("typescript", {});
|
|
13
|
+
delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", {
|
|
14
|
+
decorator: {
|
|
15
|
+
pattern: /@[$\w\xA0-\uFFFF]+/,
|
|
16
|
+
inside: {
|
|
17
|
+
at: {
|
|
18
|
+
pattern: /^@/,
|
|
19
|
+
alias: "operator"
|
|
20
|
+
},
|
|
21
|
+
function: /^[\s\S]+/
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"generic-function": {
|
|
25
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
|
|
26
|
+
greedy: !0,
|
|
27
|
+
inside: {
|
|
28
|
+
function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
|
|
29
|
+
generic: {
|
|
30
|
+
pattern: /<[\s\S]+/,
|
|
31
|
+
alias: "class-name",
|
|
32
|
+
inside: t
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}), e.languages.ts = e.languages.typescript;
|
|
37
|
+
})(Prism);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-xml-doc.min.js
|
|
2
|
+
(function(e) {
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
e.languages[t] && e.languages.insertBefore(t, "comment", { "doc-comment": n });
|
|
5
|
+
}
|
|
6
|
+
var n = e.languages.markup.tag, r = {
|
|
7
|
+
pattern: /\/\/\/.*/,
|
|
8
|
+
greedy: !0,
|
|
9
|
+
alias: "comment",
|
|
10
|
+
inside: { tag: n }
|
|
11
|
+
}, i = {
|
|
12
|
+
pattern: /'''.*/,
|
|
13
|
+
greedy: !0,
|
|
14
|
+
alias: "comment",
|
|
15
|
+
inside: { tag: n }
|
|
16
|
+
};
|
|
17
|
+
t("csharp", r), t("fsharp", r), t("vbnet", i);
|
|
18
|
+
})(Prism);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// ../../../node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-yaml.min.js
|
|
2
|
+
(function(e) {
|
|
3
|
+
var t = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, r = "(?:" + n.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + n.source + ")?)", i = "(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ ]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g, (function() {
|
|
4
|
+
return "[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]";
|
|
5
|
+
})), a = "\"(?:[^\"\\\\\r\n]|\\\\.)*\"|'(?:[^'\\\\\r\n]|\\\\.)*'";
|
|
6
|
+
function o(e, t) {
|
|
7
|
+
t = (t || "").replace(/m/g, "") + "m";
|
|
8
|
+
var n = "([:\\-,[{]\\s*(?:\\s<<prop>>[ ]+)?)(?:<<value>>)(?=[ ]*(?:$|,|\\]|\\}|(?:[\r\n]\\s*)?#))".replace(/<<prop>>/g, (function() {
|
|
9
|
+
return r;
|
|
10
|
+
})).replace(/<<value>>/g, (function() {
|
|
11
|
+
return e;
|
|
12
|
+
}));
|
|
13
|
+
return RegExp(n, t);
|
|
14
|
+
}
|
|
15
|
+
e.languages.yaml = {
|
|
16
|
+
scalar: {
|
|
17
|
+
pattern: RegExp("([\\-:]\\s*(?:\\s<<prop>>[ ]+)?[|>])[ ]*(?:((?:\r?\n|\r)[ ]+)\\S[^\r\n]*(?:\\2[^\r\n]+)*)".replace(/<<prop>>/g, (function() {
|
|
18
|
+
return r;
|
|
19
|
+
}))),
|
|
20
|
+
lookbehind: !0,
|
|
21
|
+
alias: "string"
|
|
22
|
+
},
|
|
23
|
+
comment: /#.*/,
|
|
24
|
+
key: {
|
|
25
|
+
pattern: RegExp("((?:^|[:\\-,[{\r\n?])[ ]*(?:<<prop>>[ ]+)?)<<key>>(?=\\s*:\\s)".replace(/<<prop>>/g, (function() {
|
|
26
|
+
return r;
|
|
27
|
+
})).replace(/<<key>>/g, (function() {
|
|
28
|
+
return "(?:" + i + "|" + a + ")";
|
|
29
|
+
}))),
|
|
30
|
+
lookbehind: !0,
|
|
31
|
+
greedy: !0,
|
|
32
|
+
alias: "atrule"
|
|
33
|
+
},
|
|
34
|
+
directive: {
|
|
35
|
+
pattern: /(^[ \t]*)%.+/m,
|
|
36
|
+
lookbehind: !0,
|
|
37
|
+
alias: "important"
|
|
38
|
+
},
|
|
39
|
+
datetime: {
|
|
40
|
+
pattern: o("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ ]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ ]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"),
|
|
41
|
+
lookbehind: !0,
|
|
42
|
+
alias: "number"
|
|
43
|
+
},
|
|
44
|
+
boolean: {
|
|
45
|
+
pattern: o("false|true", "i"),
|
|
46
|
+
lookbehind: !0,
|
|
47
|
+
alias: "important"
|
|
48
|
+
},
|
|
49
|
+
null: {
|
|
50
|
+
pattern: o("null|~", "i"),
|
|
51
|
+
lookbehind: !0,
|
|
52
|
+
alias: "important"
|
|
53
|
+
},
|
|
54
|
+
string: {
|
|
55
|
+
pattern: o(a),
|
|
56
|
+
lookbehind: !0,
|
|
57
|
+
greedy: !0
|
|
58
|
+
},
|
|
59
|
+
number: {
|
|
60
|
+
pattern: o("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "i"),
|
|
61
|
+
lookbehind: !0
|
|
62
|
+
},
|
|
63
|
+
tag: n,
|
|
64
|
+
important: t,
|
|
65
|
+
punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
|
|
66
|
+
}, e.languages.yml = e.languages.yaml;
|
|
67
|
+
})(Prism);
|
package/dist/style.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
blockquote[data-v-b12de275]{background:#f1f1f5;background:var(--kong-ui-document-viewer-blockquote-background
|
|
1
|
+
blockquote[data-v-b12de275]{background:#f1f1f5;background:var(--kong-ui-document-viewer-blockquote-background,#f1f1f5);border-left:2px solid #0b172d;border-left:var(--kui-border-width-20,2px) solid var(--kong-ui-document-viewer-blockquote-border,#0b172d);border-radius:4px;border-radius:var(--kong-ui-document-viewer-blockquote-border-radius,var(--kui-border-radius-20,4px));font-size:14px;font-size:var(--kui-font-size-30,14px);margin:12px;margin:var(--kui-space-50,12px);padding:12px;padding:var(--kui-space-50,12px)}blockquote[data-v-b12de275] blockquote p,blockquote[data-v-b12de275] p:last-of-type{margin-bottom:0;margin-bottom:var(--kui-space-0,0px)}code[data-v-0af3d2af]{background:#f1f1f1;background:var(--kong-ui-document-viewer-code-background,#f1f1f1);border-radius:4px;border-radius:var(--kong-ui-document-viewer-code-border-radius,var(--kui-border-radius-20,4px));color:var(--kong-ui-document-viewer-code-color,inherit);font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kong-ui-document-viewer-code-font-family,var(--kong-ui-document-viewer-font-family-monospace,var(--kui-font-family-code,"JetBrains Mono", Consolas, monospace)));font-size:14px;font-size:var(--kong-ui-document-viewer-code-font-size,var(--kui-font-size-30,14px));padding:2px 6px;padding:var(--kui-space-10,2px) var(--kui-space-30,6px)}code[class*=language-],pre[class*=language-]{color:#000;text-shadow:0 1px #fff;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;-webkit-hyphens:none;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;line-height:1.5}code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection{text-shadow:none;background:#b3d4fc}pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{margin:.5em 0;padding:1em;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:#ffffff80}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.document-code-block[data-v-116da7e2] .k-highlighted-code-block.is-single-line{box-sizing:border-box}.document-code-block[data-v-116da7e2]{margin-bottom:12px;margin-bottom:var(--kui-space-50,12px)}h1[data-v-2c4c210c],h2[data-v-2c4c210c],h3[data-v-2c4c210c],h4[data-v-2c4c210c],h5[data-v-2c4c210c],h6[data-v-2c4c210c]{color:var(--kong-ui-document-viewer-color,var(--kui-color-text,#0d0e14));font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kong-ui-document-viewer-font-family-headings,var(--kong-ui-document-viewer-font-family-default,var(--kui-font-family-text,"Inter", Roboto, Helvetica, sans-serif)));font-weight:500;font-weight:var(--kong-ui-document-viewer-heading-font-weight,var(--kui-font-weight-medium,500));margin-top:0;margin-top:var(--kui-space-0,0px)}h1[data-v-2c4c210c]{font-size:32px;font-size:var(--kui-font-size-80,32px);font-weight:500;font-weight:var(--kui-font-weight-medium,500);line-height:40px;line-height:var(--kui-line-height-80,40px);margin-bottom:32px;margin-bottom:var(--kui-space-90,32px)}h2[data-v-2c4c210c]{font-size:24px;font-size:var(--kui-font-size-70,24px);line-height:36px;line-height:var(--kui-line-height-70,36px);margin-bottom:24px;margin-bottom:var(--kui-space-80,24px)}h3[data-v-2c4c210c]{font-size:20px;font-size:var(--kui-font-size-60,20px);line-height:32px;line-height:var(--kui-line-height-60,32px);margin-bottom:12px;margin-bottom:var(--kui-space-50,12px)}h4[data-v-2c4c210c]{font-size:18px;font-size:var(--kui-font-size-50,18px);line-height:28px;line-height:var(--kui-line-height-50,28px);margin-bottom:12px;margin-bottom:var(--kui-space-50,12px)}h5[data-v-2c4c210c]{font-size:16px;font-size:var(--kui-font-size-40,16px);line-height:24px;line-height:var(--kui-line-height-40,24px);margin-bottom:12px;margin-bottom:var(--kui-space-50,12px)}h6[data-v-2c4c210c]{font-size:14px;font-size:var(--kui-font-size-30,14px);line-height:20px;line-height:var(--kui-line-height-30,20px);margin-bottom:12px;margin-bottom:var(--kui-space-50,12px)}h1[data-v-2c4c210c]:first-child,h2[data-v-2c4c210c]:first-child,h3[data-v-2c4c210c]:first-child,h4[data-v-2c4c210c]:first-child,h5[data-v-2c4c210c]:first-child,h6[data-v-2c4c210c]:first-child{margin-top:0;margin-top:var(--kui-space-0,0px)}img[data-v-13314abe]{display:inline!important}hr[data-v-a17c1200]{background-color:#0d0e14;background-color:var(--kong-ui-document-viewer-color,var(--kui-color-background-inverse,#0d0e14));height:1.5px;margin:16px 0;margin:var(--kui-space-60,16px) var(--kui-space-0,0px);border:none}table[data-v-ebdb90e2]{border:1px solid #e0e4ea;border:1px solid var(--kong-ui-document-viewer-color,var(--kui-color-border,#e0e4ea));border-collapse:collapse;font-size:14px;font-size:var(--kui-font-size-30,14px);margin-bottom:16px;margin-bottom:var(--kui-space-60,16px)}th[data-v-212b210d],td[data-v-212b210d]{text-align:left}.align-center[data-v-212b210d]{text-align:center}.align-right[data-v-212b210d]{text-align:right}tr[data-v-212b210d]{border-top:1px solid #000933;border-top:var(--kui-border-width-10,1px) solid var(--kong-ui-document-viewer-color,#000933)}th[data-v-f415aa3f],td[data-v-f415aa3f]{padding:8px;padding:var(--kui-space-40,8px);text-align:left;vertical-align:top}th[data-v-f415aa3f] code,td[data-v-f415aa3f] code{line-height:24px;line-height:var(--kui-line-height-40,24px)}th[data-v-f415aa3f]:not(:last-of-type),td[data-v-f415aa3f]:not(:last-of-type){border-right:1px solid #e0e4ea;border-right:var(--kui-border-width-10,1px) solid var(--kong-ui-document-viewer-color,var(--kui-color-border,#e0e4ea))}.align-center[data-v-f415aa3f]{text-align:center}.align-right[data-v-f415aa3f]{text-align:right}p[data-v-c4466049]{font-size:14px;font-size:var(--kui-font-size-30,14px);line-height:20px;line-height:var(--kui-line-height-30,20px);margin:0 0 12px;margin:var(--kong-ui-document-viewer-paragraph-margin,var(--kui-space-0,0px) var(--kui-space-0,0px) var(--kui-space-50,12px))}ul[data-v-d8f4c3cb],ol[data-v-d8f4c3cb]{font-size:14px;font-size:var(--kui-font-size-30,14px);margin-bottom:12px;margin-bottom:var(--kui-space-50,12px);margin-left:16px;margin-left:var(--kui-space-60,16px);padding:0;padding:var(--kui-space-0,0px)}ol[data-v-d8f4c3cb]{list-style:decimal}ul[data-v-d8f4c3cb]{list-style:outside}.has-task-items[data-v-d8f4c3cb]{margin-left:unset}.has-task-items[data-v-d8f4c3cb] li{list-style:none}li[data-v-4f70a0ca]{margin-top:8px}li[data-v-4f70a0ca]>ul,li[data-v-4f70a0ca]>ol{margin-bottom:unset;margin-left:16px!important;margin-left:var(--kui-space-60,16px)!important}li[data-v-4f70a0ca]>p{display:inline-flex}li[data-v-4f70a0ca]>span{display:inline}li[data-v-4f70a0ca]>p,li[data-v-4f70a0ca]>span{margin-bottom:0}li[data-v-4f70a0ca]>p>input[type=checkbox],li[data-v-4f70a0ca]>span>input[type=checkbox]{margin:0 4px 0 0;margin:var(--kui-space-0,0px) var(--kui-space-20,4px) var(--kui-space-0,0px) var(--kui-space-0,0px)}a[data-v-9be3ce74]{color:var(--kong-ui-document-viewer-link-color,var(--kui-color-text-primary,#0044f4));text-decoration:none}a[data-v-9be3ce74]:hover{color:var(--kong-ui-document-viewer-link-hover-color,var(--kui-color-text-primary-strong,#0030cc));text-decoration:underline}:root{--kong-ui-document-viewer-font-family-default:var(--kui-font-family-text,Inter, Roboto, Helvetica, sans-serif);--kong-ui-document-viewer-font-family-monospace:var(--kui-font-family-code,JetBrains Mono, Consolas, monospace)}.document-viewer[data-v-b3c05df4]{color:var(--kong-ui-document-viewer-color,var(--kui-color-text,#0d0e14));font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kong-ui-document-viewer-font-family-default,var(--kui-font-family-text,"Inter", Roboto, Helvetica, sans-serif));font-size:16px;font-size:var(--kong-ui-document-viewer-font-size,var(--kui-font-size-40,16px))}
|
|
2
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/document-viewer",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.7-pr.4063.bf809a10e.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/document-viewer.umd.js",
|
|
6
6
|
"module": "./dist/document-viewer.es.js",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@kong-ui-public/i18n": "^2.5.1",
|
|
30
30
|
"@kong/design-tokens": "3.5.1",
|
|
31
|
-
"@kong/kongponents": "9.66.
|
|
31
|
+
"@kong/kongponents": "9.66.12",
|
|
32
32
|
"@types/prismjs": "^1.26.6",
|
|
33
33
|
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
34
|
-
"vue": "^3.5.
|
|
34
|
+
"vue": "^3.5.44"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"prismjs": "^1.30.0"
|