@redis-ui/components 51.27.0 → 51.28.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/CodeBlock/CodeBlock.cjs +29 -14
- package/dist/CodeBlock/CodeBlock.js +29 -14
- package/dist/CodeBlock/CodeBlock.style.d.ts +4 -3
- package/dist/CodeBlock/CodeBlock.types.cjs +7 -0
- package/dist/CodeBlock/CodeBlock.types.d.ts +4 -0
- package/dist/CodeBlock/CodeBlock.types.js +7 -1
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.cjs +29 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.cjs +34 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.d.ts +25 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.js +32 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.d.ts +6 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.js +29 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.types.d.ts +10 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.types.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +2 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.cjs +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.cjs +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/dist/node_modules/character-entities-legacy/index.cjs +116 -0
- package/dist/node_modules/character-entities-legacy/index.js +116 -0
- package/dist/node_modules/character-reference-invalid/index.cjs +38 -0
- package/dist/node_modules/character-reference-invalid/index.js +38 -0
- package/dist/node_modules/comma-separated-tokens/index.cjs +43 -0
- package/dist/node_modules/comma-separated-tokens/index.js +43 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.cjs +15 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +15 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.cjs +76 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +76 -0
- package/dist/node_modules/hastscript/lib/create-h.cjs +262 -0
- package/dist/node_modules/hastscript/lib/create-h.js +262 -0
- package/dist/node_modules/hastscript/lib/index.cjs +21 -0
- package/dist/node_modules/hastscript/lib/index.js +21 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +49 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +49 -0
- package/dist/node_modules/is-alphabetical/index.cjs +14 -0
- package/dist/node_modules/is-alphabetical/index.js +14 -0
- package/dist/node_modules/is-alphanumerical/index.cjs +15 -0
- package/dist/node_modules/is-alphanumerical/index.js +15 -0
- package/dist/node_modules/is-decimal/index.cjs +14 -0
- package/dist/node_modules/is-decimal/index.js +14 -0
- package/dist/node_modules/is-hexadecimal/index.cjs +14 -0
- package/dist/node_modules/is-hexadecimal/index.js +14 -0
- package/dist/node_modules/parse-entities/lib/index.cjs +232 -0
- package/dist/node_modules/parse-entities/lib/index.js +232 -0
- package/dist/node_modules/property-information/index.cjs +27 -0
- package/dist/node_modules/property-information/index.js +26 -0
- package/dist/node_modules/property-information/lib/aria.cjs +60 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.cjs +81 -0
- package/dist/node_modules/property-information/lib/find.js +81 -0
- package/dist/node_modules/property-information/lib/html.cjs +326 -0
- package/dist/node_modules/property-information/lib/html.js +326 -0
- package/dist/node_modules/property-information/lib/normalize.cjs +15 -0
- package/dist/node_modules/property-information/lib/normalize.js +15 -0
- package/dist/node_modules/property-information/lib/svg.cjs +564 -0
- package/dist/node_modules/property-information/lib/svg.js +564 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.cjs +15 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +15 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.cjs +14 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +14 -0
- package/dist/node_modules/property-information/lib/util/create.cjs +53 -0
- package/dist/node_modules/property-information/lib/util/create.js +53 -0
- package/dist/node_modules/property-information/lib/util/defined-info.cjs +49 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +49 -0
- package/dist/node_modules/property-information/lib/util/info.cjs +33 -0
- package/dist/node_modules/property-information/lib/util/info.js +33 -0
- package/dist/node_modules/property-information/lib/util/merge.cjs +26 -0
- package/dist/node_modules/property-information/lib/util/merge.js +26 -0
- package/dist/node_modules/property-information/lib/util/schema.cjs +27 -0
- package/dist/node_modules/property-information/lib/util/schema.js +27 -0
- package/dist/node_modules/property-information/lib/util/types.cjs +35 -0
- package/dist/node_modules/property-information/lib/util/types.js +24 -0
- package/dist/node_modules/property-information/lib/xlink.cjs +18 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.cjs +14 -0
- package/dist/node_modules/property-information/lib/xml.js +15 -0
- package/dist/node_modules/property-information/lib/xmlns.cjs +14 -0
- package/dist/node_modules/property-information/lib/xmlns.js +14 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.cjs +6 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +6 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.cjs +183 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +181 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.cjs +308 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +306 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.cjs +12 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.js +12 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vs.cjs +121 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vs.js +121 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.cjs +147 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.js +147 -0
- package/dist/node_modules/refractor/lang/bash.cjs +190 -0
- package/dist/node_modules/refractor/lang/bash.js +190 -0
- package/dist/node_modules/refractor/lang/clike.cjs +37 -0
- package/dist/node_modules/refractor/lang/clike.js +37 -0
- package/dist/node_modules/refractor/lang/javascript.cjs +122 -0
- package/dist/node_modules/refractor/lang/javascript.js +122 -0
- package/dist/node_modules/refractor/lang/json.cjs +36 -0
- package/dist/node_modules/refractor/lang/json.js +36 -0
- package/dist/node_modules/refractor/lang/python.cjs +71 -0
- package/dist/node_modules/refractor/lang/python.js +71 -0
- package/dist/node_modules/refractor/lang/typescript.cjs +55 -0
- package/dist/node_modules/refractor/lang/typescript.js +55 -0
- package/dist/node_modules/refractor/lib/core.cjs +214 -0
- package/dist/node_modules/refractor/lib/core.js +214 -0
- package/dist/node_modules/refractor/lib/prism-core.cjs +595 -0
- package/dist/node_modules/refractor/lib/prism-core.js +595 -0
- package/dist/node_modules/space-separated-tokens/index.cjs +15 -0
- package/dist/node_modules/space-separated-tokens/index.js +15 -0
- package/package.json +3 -1
- package/skills/redis-ui-components/references/CodeBlock.md +23 -5
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { _typeof } from "./typeof.js";
|
|
2
|
+
//#region ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
3
|
+
function toPrimitive(t, r) {
|
|
4
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
5
|
+
var e = t[Symbol.toPrimitive];
|
|
6
|
+
if (void 0 !== e) {
|
|
7
|
+
var i = e.call(t, r || "default");
|
|
8
|
+
if ("object" != _typeof(i)) return i;
|
|
9
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
+
}
|
|
11
|
+
return ("string" === r ? String : Number)(t);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { toPrimitive };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const require_typeof = require("./typeof.cjs");
|
|
2
|
+
const require_toPrimitive = require("./toPrimitive.cjs");
|
|
3
|
+
//#region ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
4
|
+
function toPropertyKey(t) {
|
|
5
|
+
var i = require_toPrimitive.toPrimitive(t, "string");
|
|
6
|
+
return "symbol" == require_typeof._typeof(i) ? i : i + "";
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.toPropertyKey = toPropertyKey;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { _typeof } from "./typeof.js";
|
|
2
|
+
import { toPrimitive } from "./toPrimitive.js";
|
|
3
|
+
//#region ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
4
|
+
function toPropertyKey(t) {
|
|
5
|
+
var i = toPrimitive(t, "string");
|
|
6
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { toPropertyKey };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2
|
+
function _typeof(o) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function(o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, _typeof(o);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, "_typeof", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function() {
|
|
14
|
+
return _typeof;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2
|
+
function _typeof(o) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function(o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, _typeof(o);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { _typeof };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const require_arrayLikeToArray = require("./arrayLikeToArray.cjs");
|
|
2
|
+
//#region ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
3
|
+
function _unsupportedIterableToArray(r, a) {
|
|
4
|
+
if (r) {
|
|
5
|
+
if ("string" == typeof r) return require_arrayLikeToArray._arrayLikeToArray(r, a);
|
|
6
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
7
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? require_arrayLikeToArray._arrayLikeToArray(r, a) : void 0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
exports._unsupportedIterableToArray = _unsupportedIterableToArray;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { _arrayLikeToArray } from "./arrayLikeToArray.js";
|
|
2
|
+
//#region ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
3
|
+
function _unsupportedIterableToArray(r, a) {
|
|
4
|
+
if (r) {
|
|
5
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
6
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
7
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { _unsupportedIterableToArray };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
//#region ../../node_modules/character-entities-legacy/index.js
|
|
2
|
+
/**
|
|
3
|
+
* List of legacy HTML named character references that don’t need a trailing semicolon.
|
|
4
|
+
*
|
|
5
|
+
* @type {Array<string>}
|
|
6
|
+
*/
|
|
7
|
+
var characterEntitiesLegacy = [
|
|
8
|
+
"AElig",
|
|
9
|
+
"AMP",
|
|
10
|
+
"Aacute",
|
|
11
|
+
"Acirc",
|
|
12
|
+
"Agrave",
|
|
13
|
+
"Aring",
|
|
14
|
+
"Atilde",
|
|
15
|
+
"Auml",
|
|
16
|
+
"COPY",
|
|
17
|
+
"Ccedil",
|
|
18
|
+
"ETH",
|
|
19
|
+
"Eacute",
|
|
20
|
+
"Ecirc",
|
|
21
|
+
"Egrave",
|
|
22
|
+
"Euml",
|
|
23
|
+
"GT",
|
|
24
|
+
"Iacute",
|
|
25
|
+
"Icirc",
|
|
26
|
+
"Igrave",
|
|
27
|
+
"Iuml",
|
|
28
|
+
"LT",
|
|
29
|
+
"Ntilde",
|
|
30
|
+
"Oacute",
|
|
31
|
+
"Ocirc",
|
|
32
|
+
"Ograve",
|
|
33
|
+
"Oslash",
|
|
34
|
+
"Otilde",
|
|
35
|
+
"Ouml",
|
|
36
|
+
"QUOT",
|
|
37
|
+
"REG",
|
|
38
|
+
"THORN",
|
|
39
|
+
"Uacute",
|
|
40
|
+
"Ucirc",
|
|
41
|
+
"Ugrave",
|
|
42
|
+
"Uuml",
|
|
43
|
+
"Yacute",
|
|
44
|
+
"aacute",
|
|
45
|
+
"acirc",
|
|
46
|
+
"acute",
|
|
47
|
+
"aelig",
|
|
48
|
+
"agrave",
|
|
49
|
+
"amp",
|
|
50
|
+
"aring",
|
|
51
|
+
"atilde",
|
|
52
|
+
"auml",
|
|
53
|
+
"brvbar",
|
|
54
|
+
"ccedil",
|
|
55
|
+
"cedil",
|
|
56
|
+
"cent",
|
|
57
|
+
"copy",
|
|
58
|
+
"curren",
|
|
59
|
+
"deg",
|
|
60
|
+
"divide",
|
|
61
|
+
"eacute",
|
|
62
|
+
"ecirc",
|
|
63
|
+
"egrave",
|
|
64
|
+
"eth",
|
|
65
|
+
"euml",
|
|
66
|
+
"frac12",
|
|
67
|
+
"frac14",
|
|
68
|
+
"frac34",
|
|
69
|
+
"gt",
|
|
70
|
+
"iacute",
|
|
71
|
+
"icirc",
|
|
72
|
+
"iexcl",
|
|
73
|
+
"igrave",
|
|
74
|
+
"iquest",
|
|
75
|
+
"iuml",
|
|
76
|
+
"laquo",
|
|
77
|
+
"lt",
|
|
78
|
+
"macr",
|
|
79
|
+
"micro",
|
|
80
|
+
"middot",
|
|
81
|
+
"nbsp",
|
|
82
|
+
"not",
|
|
83
|
+
"ntilde",
|
|
84
|
+
"oacute",
|
|
85
|
+
"ocirc",
|
|
86
|
+
"ograve",
|
|
87
|
+
"ordf",
|
|
88
|
+
"ordm",
|
|
89
|
+
"oslash",
|
|
90
|
+
"otilde",
|
|
91
|
+
"ouml",
|
|
92
|
+
"para",
|
|
93
|
+
"plusmn",
|
|
94
|
+
"pound",
|
|
95
|
+
"quot",
|
|
96
|
+
"raquo",
|
|
97
|
+
"reg",
|
|
98
|
+
"sect",
|
|
99
|
+
"shy",
|
|
100
|
+
"sup1",
|
|
101
|
+
"sup2",
|
|
102
|
+
"sup3",
|
|
103
|
+
"szlig",
|
|
104
|
+
"thorn",
|
|
105
|
+
"times",
|
|
106
|
+
"uacute",
|
|
107
|
+
"ucirc",
|
|
108
|
+
"ugrave",
|
|
109
|
+
"uml",
|
|
110
|
+
"uuml",
|
|
111
|
+
"yacute",
|
|
112
|
+
"yen",
|
|
113
|
+
"yuml"
|
|
114
|
+
];
|
|
115
|
+
//#endregion
|
|
116
|
+
exports.characterEntitiesLegacy = characterEntitiesLegacy;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
//#region ../../node_modules/character-entities-legacy/index.js
|
|
2
|
+
/**
|
|
3
|
+
* List of legacy HTML named character references that don’t need a trailing semicolon.
|
|
4
|
+
*
|
|
5
|
+
* @type {Array<string>}
|
|
6
|
+
*/
|
|
7
|
+
var characterEntitiesLegacy = [
|
|
8
|
+
"AElig",
|
|
9
|
+
"AMP",
|
|
10
|
+
"Aacute",
|
|
11
|
+
"Acirc",
|
|
12
|
+
"Agrave",
|
|
13
|
+
"Aring",
|
|
14
|
+
"Atilde",
|
|
15
|
+
"Auml",
|
|
16
|
+
"COPY",
|
|
17
|
+
"Ccedil",
|
|
18
|
+
"ETH",
|
|
19
|
+
"Eacute",
|
|
20
|
+
"Ecirc",
|
|
21
|
+
"Egrave",
|
|
22
|
+
"Euml",
|
|
23
|
+
"GT",
|
|
24
|
+
"Iacute",
|
|
25
|
+
"Icirc",
|
|
26
|
+
"Igrave",
|
|
27
|
+
"Iuml",
|
|
28
|
+
"LT",
|
|
29
|
+
"Ntilde",
|
|
30
|
+
"Oacute",
|
|
31
|
+
"Ocirc",
|
|
32
|
+
"Ograve",
|
|
33
|
+
"Oslash",
|
|
34
|
+
"Otilde",
|
|
35
|
+
"Ouml",
|
|
36
|
+
"QUOT",
|
|
37
|
+
"REG",
|
|
38
|
+
"THORN",
|
|
39
|
+
"Uacute",
|
|
40
|
+
"Ucirc",
|
|
41
|
+
"Ugrave",
|
|
42
|
+
"Uuml",
|
|
43
|
+
"Yacute",
|
|
44
|
+
"aacute",
|
|
45
|
+
"acirc",
|
|
46
|
+
"acute",
|
|
47
|
+
"aelig",
|
|
48
|
+
"agrave",
|
|
49
|
+
"amp",
|
|
50
|
+
"aring",
|
|
51
|
+
"atilde",
|
|
52
|
+
"auml",
|
|
53
|
+
"brvbar",
|
|
54
|
+
"ccedil",
|
|
55
|
+
"cedil",
|
|
56
|
+
"cent",
|
|
57
|
+
"copy",
|
|
58
|
+
"curren",
|
|
59
|
+
"deg",
|
|
60
|
+
"divide",
|
|
61
|
+
"eacute",
|
|
62
|
+
"ecirc",
|
|
63
|
+
"egrave",
|
|
64
|
+
"eth",
|
|
65
|
+
"euml",
|
|
66
|
+
"frac12",
|
|
67
|
+
"frac14",
|
|
68
|
+
"frac34",
|
|
69
|
+
"gt",
|
|
70
|
+
"iacute",
|
|
71
|
+
"icirc",
|
|
72
|
+
"iexcl",
|
|
73
|
+
"igrave",
|
|
74
|
+
"iquest",
|
|
75
|
+
"iuml",
|
|
76
|
+
"laquo",
|
|
77
|
+
"lt",
|
|
78
|
+
"macr",
|
|
79
|
+
"micro",
|
|
80
|
+
"middot",
|
|
81
|
+
"nbsp",
|
|
82
|
+
"not",
|
|
83
|
+
"ntilde",
|
|
84
|
+
"oacute",
|
|
85
|
+
"ocirc",
|
|
86
|
+
"ograve",
|
|
87
|
+
"ordf",
|
|
88
|
+
"ordm",
|
|
89
|
+
"oslash",
|
|
90
|
+
"otilde",
|
|
91
|
+
"ouml",
|
|
92
|
+
"para",
|
|
93
|
+
"plusmn",
|
|
94
|
+
"pound",
|
|
95
|
+
"quot",
|
|
96
|
+
"raquo",
|
|
97
|
+
"reg",
|
|
98
|
+
"sect",
|
|
99
|
+
"shy",
|
|
100
|
+
"sup1",
|
|
101
|
+
"sup2",
|
|
102
|
+
"sup3",
|
|
103
|
+
"szlig",
|
|
104
|
+
"thorn",
|
|
105
|
+
"times",
|
|
106
|
+
"uacute",
|
|
107
|
+
"ucirc",
|
|
108
|
+
"ugrave",
|
|
109
|
+
"uml",
|
|
110
|
+
"uuml",
|
|
111
|
+
"yacute",
|
|
112
|
+
"yen",
|
|
113
|
+
"yuml"
|
|
114
|
+
];
|
|
115
|
+
//#endregion
|
|
116
|
+
export { characterEntitiesLegacy };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region ../../node_modules/character-reference-invalid/index.js
|
|
2
|
+
/**
|
|
3
|
+
* Map of invalid numeric character references to their replacements, according to HTML.
|
|
4
|
+
*
|
|
5
|
+
* @type {Record<number, string>}
|
|
6
|
+
*/
|
|
7
|
+
var characterReferenceInvalid = {
|
|
8
|
+
0: "�",
|
|
9
|
+
128: "€",
|
|
10
|
+
130: "‚",
|
|
11
|
+
131: "ƒ",
|
|
12
|
+
132: "„",
|
|
13
|
+
133: "…",
|
|
14
|
+
134: "†",
|
|
15
|
+
135: "‡",
|
|
16
|
+
136: "ˆ",
|
|
17
|
+
137: "‰",
|
|
18
|
+
138: "Š",
|
|
19
|
+
139: "‹",
|
|
20
|
+
140: "Œ",
|
|
21
|
+
142: "Ž",
|
|
22
|
+
145: "‘",
|
|
23
|
+
146: "’",
|
|
24
|
+
147: "“",
|
|
25
|
+
148: "”",
|
|
26
|
+
149: "•",
|
|
27
|
+
150: "–",
|
|
28
|
+
151: "—",
|
|
29
|
+
152: "˜",
|
|
30
|
+
153: "™",
|
|
31
|
+
154: "š",
|
|
32
|
+
155: "›",
|
|
33
|
+
156: "œ",
|
|
34
|
+
158: "ž",
|
|
35
|
+
159: "Ÿ"
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.characterReferenceInvalid = characterReferenceInvalid;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region ../../node_modules/character-reference-invalid/index.js
|
|
2
|
+
/**
|
|
3
|
+
* Map of invalid numeric character references to their replacements, according to HTML.
|
|
4
|
+
*
|
|
5
|
+
* @type {Record<number, string>}
|
|
6
|
+
*/
|
|
7
|
+
var characterReferenceInvalid = {
|
|
8
|
+
0: "�",
|
|
9
|
+
128: "€",
|
|
10
|
+
130: "‚",
|
|
11
|
+
131: "ƒ",
|
|
12
|
+
132: "„",
|
|
13
|
+
133: "…",
|
|
14
|
+
134: "†",
|
|
15
|
+
135: "‡",
|
|
16
|
+
136: "ˆ",
|
|
17
|
+
137: "‰",
|
|
18
|
+
138: "Š",
|
|
19
|
+
139: "‹",
|
|
20
|
+
140: "Œ",
|
|
21
|
+
142: "Ž",
|
|
22
|
+
145: "‘",
|
|
23
|
+
146: "’",
|
|
24
|
+
147: "“",
|
|
25
|
+
148: "”",
|
|
26
|
+
149: "•",
|
|
27
|
+
150: "–",
|
|
28
|
+
151: "—",
|
|
29
|
+
152: "˜",
|
|
30
|
+
153: "™",
|
|
31
|
+
154: "š",
|
|
32
|
+
155: "›",
|
|
33
|
+
156: "œ",
|
|
34
|
+
158: "ž",
|
|
35
|
+
159: "Ÿ"
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { characterReferenceInvalid };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region ../../node_modules/comma-separated-tokens/index.js
|
|
2
|
+
/**
|
|
3
|
+
* @typedef Options
|
|
4
|
+
* Configuration for `stringify`.
|
|
5
|
+
* @property {boolean} [padLeft=true]
|
|
6
|
+
* Whether to pad a space before a token.
|
|
7
|
+
* @property {boolean} [padRight=false]
|
|
8
|
+
* Whether to pad a space after a token.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @typedef {Options} StringifyOptions
|
|
12
|
+
* Please use `StringifyOptions` instead.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Parse comma-separated tokens to an array.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} value
|
|
18
|
+
* Comma-separated tokens.
|
|
19
|
+
* @returns {Array<string>}
|
|
20
|
+
* List of tokens.
|
|
21
|
+
*/
|
|
22
|
+
function parse(value) {
|
|
23
|
+
/** @type {Array<string>} */
|
|
24
|
+
const tokens = [];
|
|
25
|
+
const input = String(value || "");
|
|
26
|
+
let index = input.indexOf(",");
|
|
27
|
+
let start = 0;
|
|
28
|
+
/** @type {boolean} */
|
|
29
|
+
let end = false;
|
|
30
|
+
while (!end) {
|
|
31
|
+
if (index === -1) {
|
|
32
|
+
index = input.length;
|
|
33
|
+
end = true;
|
|
34
|
+
}
|
|
35
|
+
const token = input.slice(start, index).trim();
|
|
36
|
+
if (token || !end) tokens.push(token);
|
|
37
|
+
start = index + 1;
|
|
38
|
+
index = input.indexOf(",", start);
|
|
39
|
+
}
|
|
40
|
+
return tokens;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.parse = parse;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region ../../node_modules/comma-separated-tokens/index.js
|
|
2
|
+
/**
|
|
3
|
+
* @typedef Options
|
|
4
|
+
* Configuration for `stringify`.
|
|
5
|
+
* @property {boolean} [padLeft=true]
|
|
6
|
+
* Whether to pad a space before a token.
|
|
7
|
+
* @property {boolean} [padRight=false]
|
|
8
|
+
* Whether to pad a space after a token.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @typedef {Options} StringifyOptions
|
|
12
|
+
* Please use `StringifyOptions` instead.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Parse comma-separated tokens to an array.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} value
|
|
18
|
+
* Comma-separated tokens.
|
|
19
|
+
* @returns {Array<string>}
|
|
20
|
+
* List of tokens.
|
|
21
|
+
*/
|
|
22
|
+
function parse(value) {
|
|
23
|
+
/** @type {Array<string>} */
|
|
24
|
+
const tokens = [];
|
|
25
|
+
const input = String(value || "");
|
|
26
|
+
let index = input.indexOf(",");
|
|
27
|
+
let start = 0;
|
|
28
|
+
/** @type {boolean} */
|
|
29
|
+
let end = false;
|
|
30
|
+
while (!end) {
|
|
31
|
+
if (index === -1) {
|
|
32
|
+
index = input.length;
|
|
33
|
+
end = true;
|
|
34
|
+
}
|
|
35
|
+
const token = input.slice(start, index).trim();
|
|
36
|
+
if (token || !end) tokens.push(token);
|
|
37
|
+
start = index + 1;
|
|
38
|
+
index = input.indexOf(",", start);
|
|
39
|
+
}
|
|
40
|
+
return tokens;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { parse };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region ../../node_modules/decode-named-character-reference/index.dom.js
|
|
2
|
+
var element = document.createElement("i");
|
|
3
|
+
/**
|
|
4
|
+
* @param {string} value
|
|
5
|
+
* @returns {string | false}
|
|
6
|
+
*/
|
|
7
|
+
function decodeNamedCharacterReference(value) {
|
|
8
|
+
const characterReference = "&" + value + ";";
|
|
9
|
+
element.innerHTML = characterReference;
|
|
10
|
+
const character = element.textContent;
|
|
11
|
+
if (character.charCodeAt(character.length - 1) === 59 && value !== "semi") return false;
|
|
12
|
+
return character === characterReference ? false : character;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.decodeNamedCharacterReference = decodeNamedCharacterReference;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region ../../node_modules/decode-named-character-reference/index.dom.js
|
|
2
|
+
var element = document.createElement("i");
|
|
3
|
+
/**
|
|
4
|
+
* @param {string} value
|
|
5
|
+
* @returns {string | false}
|
|
6
|
+
*/
|
|
7
|
+
function decodeNamedCharacterReference(value) {
|
|
8
|
+
const characterReference = "&" + value + ";";
|
|
9
|
+
element.innerHTML = characterReference;
|
|
10
|
+
const character = element.textContent;
|
|
11
|
+
if (character.charCodeAt(character.length - 1) === 59 && value !== "semi") return false;
|
|
12
|
+
return character === characterReference ? false : character;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { decodeNamedCharacterReference };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region ../../node_modules/hast-util-parse-selector/lib/index.js
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('hast').Element} Element
|
|
4
|
+
* @typedef {import('hast').Properties} Properties
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @template {string} SimpleSelector
|
|
8
|
+
* Selector type.
|
|
9
|
+
* @template {string} DefaultTagName
|
|
10
|
+
* Default tag name.
|
|
11
|
+
* @typedef {(
|
|
12
|
+
* SimpleSelector extends ''
|
|
13
|
+
* ? DefaultTagName
|
|
14
|
+
* : SimpleSelector extends `${infer TagName}.${infer Rest}`
|
|
15
|
+
* ? ExtractTagName<TagName, DefaultTagName>
|
|
16
|
+
* : SimpleSelector extends `${infer TagName}#${infer Rest}`
|
|
17
|
+
* ? ExtractTagName<TagName, DefaultTagName>
|
|
18
|
+
* : SimpleSelector extends string
|
|
19
|
+
* ? SimpleSelector
|
|
20
|
+
* : DefaultTagName
|
|
21
|
+
* )} ExtractTagName
|
|
22
|
+
* Extract tag name from a simple selector.
|
|
23
|
+
*/
|
|
24
|
+
var search = /[#.]/g;
|
|
25
|
+
/**
|
|
26
|
+
* Create a hast element from a simple CSS selector.
|
|
27
|
+
*
|
|
28
|
+
* @template {string} Selector
|
|
29
|
+
* Type of selector.
|
|
30
|
+
* @template {string} [DefaultTagName='div']
|
|
31
|
+
* Type of default tag name (default: `'div'`).
|
|
32
|
+
* @param {Selector | null | undefined} [selector]
|
|
33
|
+
* Simple CSS selector (optional).
|
|
34
|
+
*
|
|
35
|
+
* Can contain a tag name (`foo`), classes (`.bar`), and an ID (`#baz`).
|
|
36
|
+
* Multiple classes are allowed.
|
|
37
|
+
* Uses the last ID if multiple IDs are found.
|
|
38
|
+
* @param {DefaultTagName | null | undefined} [defaultTagName='div']
|
|
39
|
+
* Tag name to use if `selector` does not specify one (default: `'div'`).
|
|
40
|
+
* @returns {Element & {tagName: ExtractTagName<Selector, DefaultTagName>}}
|
|
41
|
+
* Built element.
|
|
42
|
+
*/
|
|
43
|
+
function parseSelector(selector, defaultTagName) {
|
|
44
|
+
const value = selector || "";
|
|
45
|
+
/** @type {Properties} */
|
|
46
|
+
const props = {};
|
|
47
|
+
let start = 0;
|
|
48
|
+
/** @type {string | undefined} */
|
|
49
|
+
let previous;
|
|
50
|
+
/** @type {string | undefined} */
|
|
51
|
+
let tagName;
|
|
52
|
+
while (start < value.length) {
|
|
53
|
+
search.lastIndex = start;
|
|
54
|
+
const match = search.exec(value);
|
|
55
|
+
const subvalue = value.slice(start, match ? match.index : value.length);
|
|
56
|
+
if (subvalue) {
|
|
57
|
+
if (!previous) tagName = subvalue;
|
|
58
|
+
else if (previous === "#") props.id = subvalue;
|
|
59
|
+
else if (Array.isArray(props.className)) props.className.push(subvalue);
|
|
60
|
+
else props.className = [subvalue];
|
|
61
|
+
start += subvalue.length;
|
|
62
|
+
}
|
|
63
|
+
if (match) {
|
|
64
|
+
previous = match[0];
|
|
65
|
+
start++;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
type: "element",
|
|
70
|
+
tagName: tagName || defaultTagName || "div",
|
|
71
|
+
properties: props,
|
|
72
|
+
children: []
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
exports.parseSelector = parseSelector;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region ../../node_modules/hast-util-parse-selector/lib/index.js
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {import('hast').Element} Element
|
|
4
|
+
* @typedef {import('hast').Properties} Properties
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @template {string} SimpleSelector
|
|
8
|
+
* Selector type.
|
|
9
|
+
* @template {string} DefaultTagName
|
|
10
|
+
* Default tag name.
|
|
11
|
+
* @typedef {(
|
|
12
|
+
* SimpleSelector extends ''
|
|
13
|
+
* ? DefaultTagName
|
|
14
|
+
* : SimpleSelector extends `${infer TagName}.${infer Rest}`
|
|
15
|
+
* ? ExtractTagName<TagName, DefaultTagName>
|
|
16
|
+
* : SimpleSelector extends `${infer TagName}#${infer Rest}`
|
|
17
|
+
* ? ExtractTagName<TagName, DefaultTagName>
|
|
18
|
+
* : SimpleSelector extends string
|
|
19
|
+
* ? SimpleSelector
|
|
20
|
+
* : DefaultTagName
|
|
21
|
+
* )} ExtractTagName
|
|
22
|
+
* Extract tag name from a simple selector.
|
|
23
|
+
*/
|
|
24
|
+
var search = /[#.]/g;
|
|
25
|
+
/**
|
|
26
|
+
* Create a hast element from a simple CSS selector.
|
|
27
|
+
*
|
|
28
|
+
* @template {string} Selector
|
|
29
|
+
* Type of selector.
|
|
30
|
+
* @template {string} [DefaultTagName='div']
|
|
31
|
+
* Type of default tag name (default: `'div'`).
|
|
32
|
+
* @param {Selector | null | undefined} [selector]
|
|
33
|
+
* Simple CSS selector (optional).
|
|
34
|
+
*
|
|
35
|
+
* Can contain a tag name (`foo`), classes (`.bar`), and an ID (`#baz`).
|
|
36
|
+
* Multiple classes are allowed.
|
|
37
|
+
* Uses the last ID if multiple IDs are found.
|
|
38
|
+
* @param {DefaultTagName | null | undefined} [defaultTagName='div']
|
|
39
|
+
* Tag name to use if `selector` does not specify one (default: `'div'`).
|
|
40
|
+
* @returns {Element & {tagName: ExtractTagName<Selector, DefaultTagName>}}
|
|
41
|
+
* Built element.
|
|
42
|
+
*/
|
|
43
|
+
function parseSelector(selector, defaultTagName) {
|
|
44
|
+
const value = selector || "";
|
|
45
|
+
/** @type {Properties} */
|
|
46
|
+
const props = {};
|
|
47
|
+
let start = 0;
|
|
48
|
+
/** @type {string | undefined} */
|
|
49
|
+
let previous;
|
|
50
|
+
/** @type {string | undefined} */
|
|
51
|
+
let tagName;
|
|
52
|
+
while (start < value.length) {
|
|
53
|
+
search.lastIndex = start;
|
|
54
|
+
const match = search.exec(value);
|
|
55
|
+
const subvalue = value.slice(start, match ? match.index : value.length);
|
|
56
|
+
if (subvalue) {
|
|
57
|
+
if (!previous) tagName = subvalue;
|
|
58
|
+
else if (previous === "#") props.id = subvalue;
|
|
59
|
+
else if (Array.isArray(props.className)) props.className.push(subvalue);
|
|
60
|
+
else props.className = [subvalue];
|
|
61
|
+
start += subvalue.length;
|
|
62
|
+
}
|
|
63
|
+
if (match) {
|
|
64
|
+
previous = match[0];
|
|
65
|
+
start++;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
type: "element",
|
|
70
|
+
tagName: tagName || defaultTagName || "div",
|
|
71
|
+
properties: props,
|
|
72
|
+
children: []
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
export { parseSelector };
|