@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.
Files changed (142) hide show
  1. package/dist/CodeBlock/CodeBlock.cjs +29 -14
  2. package/dist/CodeBlock/CodeBlock.js +29 -14
  3. package/dist/CodeBlock/CodeBlock.style.d.ts +4 -3
  4. package/dist/CodeBlock/CodeBlock.types.cjs +7 -0
  5. package/dist/CodeBlock/CodeBlock.types.d.ts +4 -0
  6. package/dist/CodeBlock/CodeBlock.types.js +7 -1
  7. package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.cjs +29 -0
  8. package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.cjs +34 -0
  9. package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.d.ts +25 -0
  10. package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.js +32 -0
  11. package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.d.ts +6 -0
  12. package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.js +29 -0
  13. package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.types.d.ts +10 -0
  14. package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.types.js +1 -0
  15. package/dist/index.cjs +1 -0
  16. package/dist/index.js +2 -2
  17. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +8 -0
  18. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
  19. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +7 -0
  20. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
  21. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +12 -0
  22. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
  23. package/dist/node_modules/@babel/runtime/helpers/esm/extends.cjs +17 -0
  24. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
  25. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +6 -0
  26. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
  27. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +6 -0
  28. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
  29. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +13 -0
  30. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
  31. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +12 -0
  32. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
  33. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +10 -0
  34. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
  35. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +14 -0
  36. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
  37. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +9 -0
  38. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
  39. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.cjs +16 -0
  40. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
  41. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +11 -0
  42. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
  43. package/dist/node_modules/character-entities-legacy/index.cjs +116 -0
  44. package/dist/node_modules/character-entities-legacy/index.js +116 -0
  45. package/dist/node_modules/character-reference-invalid/index.cjs +38 -0
  46. package/dist/node_modules/character-reference-invalid/index.js +38 -0
  47. package/dist/node_modules/comma-separated-tokens/index.cjs +43 -0
  48. package/dist/node_modules/comma-separated-tokens/index.js +43 -0
  49. package/dist/node_modules/decode-named-character-reference/index.dom.cjs +15 -0
  50. package/dist/node_modules/decode-named-character-reference/index.dom.js +15 -0
  51. package/dist/node_modules/hast-util-parse-selector/lib/index.cjs +76 -0
  52. package/dist/node_modules/hast-util-parse-selector/lib/index.js +76 -0
  53. package/dist/node_modules/hastscript/lib/create-h.cjs +262 -0
  54. package/dist/node_modules/hastscript/lib/create-h.js +262 -0
  55. package/dist/node_modules/hastscript/lib/index.cjs +21 -0
  56. package/dist/node_modules/hastscript/lib/index.js +21 -0
  57. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +49 -0
  58. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +49 -0
  59. package/dist/node_modules/is-alphabetical/index.cjs +14 -0
  60. package/dist/node_modules/is-alphabetical/index.js +14 -0
  61. package/dist/node_modules/is-alphanumerical/index.cjs +15 -0
  62. package/dist/node_modules/is-alphanumerical/index.js +15 -0
  63. package/dist/node_modules/is-decimal/index.cjs +14 -0
  64. package/dist/node_modules/is-decimal/index.js +14 -0
  65. package/dist/node_modules/is-hexadecimal/index.cjs +14 -0
  66. package/dist/node_modules/is-hexadecimal/index.js +14 -0
  67. package/dist/node_modules/parse-entities/lib/index.cjs +232 -0
  68. package/dist/node_modules/parse-entities/lib/index.js +232 -0
  69. package/dist/node_modules/property-information/index.cjs +27 -0
  70. package/dist/node_modules/property-information/index.js +26 -0
  71. package/dist/node_modules/property-information/lib/aria.cjs +60 -0
  72. package/dist/node_modules/property-information/lib/aria.js +61 -0
  73. package/dist/node_modules/property-information/lib/find.cjs +81 -0
  74. package/dist/node_modules/property-information/lib/find.js +81 -0
  75. package/dist/node_modules/property-information/lib/html.cjs +326 -0
  76. package/dist/node_modules/property-information/lib/html.js +326 -0
  77. package/dist/node_modules/property-information/lib/normalize.cjs +15 -0
  78. package/dist/node_modules/property-information/lib/normalize.js +15 -0
  79. package/dist/node_modules/property-information/lib/svg.cjs +564 -0
  80. package/dist/node_modules/property-information/lib/svg.js +564 -0
  81. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.cjs +15 -0
  82. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +15 -0
  83. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.cjs +14 -0
  84. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +14 -0
  85. package/dist/node_modules/property-information/lib/util/create.cjs +53 -0
  86. package/dist/node_modules/property-information/lib/util/create.js +53 -0
  87. package/dist/node_modules/property-information/lib/util/defined-info.cjs +49 -0
  88. package/dist/node_modules/property-information/lib/util/defined-info.js +49 -0
  89. package/dist/node_modules/property-information/lib/util/info.cjs +33 -0
  90. package/dist/node_modules/property-information/lib/util/info.js +33 -0
  91. package/dist/node_modules/property-information/lib/util/merge.cjs +26 -0
  92. package/dist/node_modules/property-information/lib/util/merge.js +26 -0
  93. package/dist/node_modules/property-information/lib/util/schema.cjs +27 -0
  94. package/dist/node_modules/property-information/lib/util/schema.js +27 -0
  95. package/dist/node_modules/property-information/lib/util/types.cjs +35 -0
  96. package/dist/node_modules/property-information/lib/util/types.js +24 -0
  97. package/dist/node_modules/property-information/lib/xlink.cjs +18 -0
  98. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  99. package/dist/node_modules/property-information/lib/xml.cjs +14 -0
  100. package/dist/node_modules/property-information/lib/xml.js +15 -0
  101. package/dist/node_modules/property-information/lib/xmlns.cjs +14 -0
  102. package/dist/node_modules/property-information/lib/xmlns.js +14 -0
  103. package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.cjs +6 -0
  104. package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +6 -0
  105. package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.cjs +183 -0
  106. package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +181 -0
  107. package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.cjs +308 -0
  108. package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +306 -0
  109. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.cjs +4 -0
  110. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js +5 -0
  111. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.cjs +4 -0
  112. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js +5 -0
  113. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.cjs +4 -0
  114. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.js +5 -0
  115. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.cjs +4 -0
  116. package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js +5 -0
  117. package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.cjs +12 -0
  118. package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.js +12 -0
  119. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vs.cjs +121 -0
  120. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vs.js +121 -0
  121. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.cjs +147 -0
  122. package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.js +147 -0
  123. package/dist/node_modules/refractor/lang/bash.cjs +190 -0
  124. package/dist/node_modules/refractor/lang/bash.js +190 -0
  125. package/dist/node_modules/refractor/lang/clike.cjs +37 -0
  126. package/dist/node_modules/refractor/lang/clike.js +37 -0
  127. package/dist/node_modules/refractor/lang/javascript.cjs +122 -0
  128. package/dist/node_modules/refractor/lang/javascript.js +122 -0
  129. package/dist/node_modules/refractor/lang/json.cjs +36 -0
  130. package/dist/node_modules/refractor/lang/json.js +36 -0
  131. package/dist/node_modules/refractor/lang/python.cjs +71 -0
  132. package/dist/node_modules/refractor/lang/python.js +71 -0
  133. package/dist/node_modules/refractor/lang/typescript.cjs +55 -0
  134. package/dist/node_modules/refractor/lang/typescript.js +55 -0
  135. package/dist/node_modules/refractor/lib/core.cjs +214 -0
  136. package/dist/node_modules/refractor/lib/core.js +214 -0
  137. package/dist/node_modules/refractor/lib/prism-core.cjs +595 -0
  138. package/dist/node_modules/refractor/lib/prism-core.js +595 -0
  139. package/dist/node_modules/space-separated-tokens/index.cjs +15 -0
  140. package/dist/node_modules/space-separated-tokens/index.js +15 -0
  141. package/package.json +3 -1
  142. 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 };