highsoft-ui 1.0.138 → 1.0.140
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-BreFXfK5.js +241 -0
- package/dist/{Footer-CcrBEAxZ.js → Footer-DtFs2Sgb.js} +2 -2
- package/dist/{FooterHelp-CfoW8dhY.js → FooterHelp-COjjt6h7.js} +1 -1
- package/dist/{FooterLinks-CSAfsyJP.js → FooterLinks-DZ0uH7HO.js} +2 -2
- package/dist/{Header-Ga_hYsOa.js → Header-C7MCiwiz.js} +2 -2
- package/dist/bash-kQhoNpCD.js +181 -0
- package/dist/components/CodeBlock/index.js +1 -1
- package/dist/components/Footer/FooterHelp.js +1 -1
- package/dist/components/Footer/FooterLinks.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/Header/index.js +1 -1
- package/dist/create-element-B4K6TXvP.js +217 -0
- package/dist/css-FhcewZZo.js +61 -0
- package/dist/json-Bfzk2Msc.js +32 -0
- package/dist/jsx-B57trbk8.js +5 -0
- package/dist/jsx-hpSEtOci.js +182 -0
- package/dist/lib/components/CodeBlock/index.d.ts +7 -1
- package/dist/main.js +5 -5
- package/dist/markup-BC51nDBv.js +5 -0
- package/dist/markup-BhBs-nbv.js +128 -0
- package/dist/prism-light-hml_uDoc.js +1954 -0
- package/dist/python-Bt2XI9DF.js +66 -0
- package/dist/tsx-CJFgwLf7.js +54 -0
- package/package.json +1 -1
- package/dist/CodeBlock-DtYddgyU.js +0 -3044
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { r as e } from "./chunk-jwUa06l-.js";
|
|
2
|
+
import { G as t } from "./esm-CDDjSK4f.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
//#region node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
5
|
+
function r(e) {
|
|
6
|
+
"@babel/helpers - typeof";
|
|
7
|
+
return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8
|
+
return typeof e;
|
|
9
|
+
} : function(e) {
|
|
10
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
11
|
+
}, r(e);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
15
|
+
function i(e, t) {
|
|
16
|
+
if (r(e) != "object" || !e) return e;
|
|
17
|
+
var n = e[Symbol.toPrimitive];
|
|
18
|
+
if (n !== void 0) {
|
|
19
|
+
var i = n.call(e, t || "default");
|
|
20
|
+
if (r(i) != "object") return i;
|
|
21
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
22
|
+
}
|
|
23
|
+
return (t === "string" ? String : Number)(e);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
27
|
+
function a(e) {
|
|
28
|
+
var t = i(e, "string");
|
|
29
|
+
return r(t) == "symbol" ? t : t + "";
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
33
|
+
function o(e, t, n) {
|
|
34
|
+
return (t = a(t)) in e ? Object.defineProperty(e, t, {
|
|
35
|
+
value: n,
|
|
36
|
+
enumerable: !0,
|
|
37
|
+
configurable: !0,
|
|
38
|
+
writable: !0
|
|
39
|
+
}) : e[t] = n, e;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region node_modules/react-syntax-highlighter/dist/esm/create-element.js
|
|
43
|
+
var s = /* @__PURE__ */ e({
|
|
44
|
+
createChildren: () => h,
|
|
45
|
+
createClassNameString: () => m,
|
|
46
|
+
createStyleObject: () => p,
|
|
47
|
+
default: () => g
|
|
48
|
+
});
|
|
49
|
+
function c(e, t) {
|
|
50
|
+
var n = Object.keys(e);
|
|
51
|
+
if (Object.getOwnPropertySymbols) {
|
|
52
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
53
|
+
t && (r = r.filter(function(t) {
|
|
54
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
55
|
+
})), n.push.apply(n, r);
|
|
56
|
+
}
|
|
57
|
+
return n;
|
|
58
|
+
}
|
|
59
|
+
function l(e) {
|
|
60
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
61
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
62
|
+
t % 2 ? c(Object(n), !0).forEach(function(t) {
|
|
63
|
+
o(e, t, n[t]);
|
|
64
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c(Object(n)).forEach(function(t) {
|
|
65
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return e;
|
|
69
|
+
}
|
|
70
|
+
function u(e) {
|
|
71
|
+
var t = e.length;
|
|
72
|
+
if (t === 0 || t === 1) return e;
|
|
73
|
+
if (t === 2) return [
|
|
74
|
+
e[0],
|
|
75
|
+
e[1],
|
|
76
|
+
`${e[0]}.${e[1]}`,
|
|
77
|
+
`${e[1]}.${e[0]}`
|
|
78
|
+
];
|
|
79
|
+
if (t === 3) return [
|
|
80
|
+
e[0],
|
|
81
|
+
e[1],
|
|
82
|
+
e[2],
|
|
83
|
+
`${e[0]}.${e[1]}`,
|
|
84
|
+
`${e[0]}.${e[2]}`,
|
|
85
|
+
`${e[1]}.${e[0]}`,
|
|
86
|
+
`${e[1]}.${e[2]}`,
|
|
87
|
+
`${e[2]}.${e[0]}`,
|
|
88
|
+
`${e[2]}.${e[1]}`,
|
|
89
|
+
`${e[0]}.${e[1]}.${e[2]}`,
|
|
90
|
+
`${e[0]}.${e[2]}.${e[1]}`,
|
|
91
|
+
`${e[1]}.${e[0]}.${e[2]}`,
|
|
92
|
+
`${e[1]}.${e[2]}.${e[0]}`,
|
|
93
|
+
`${e[2]}.${e[0]}.${e[1]}`,
|
|
94
|
+
`${e[2]}.${e[1]}.${e[0]}`
|
|
95
|
+
];
|
|
96
|
+
if (t >= 4) return [
|
|
97
|
+
e[0],
|
|
98
|
+
e[1],
|
|
99
|
+
e[2],
|
|
100
|
+
e[3],
|
|
101
|
+
`${e[0]}.${e[1]}`,
|
|
102
|
+
`${e[0]}.${e[2]}`,
|
|
103
|
+
`${e[0]}.${e[3]}`,
|
|
104
|
+
`${e[1]}.${e[0]}`,
|
|
105
|
+
`${e[1]}.${e[2]}`,
|
|
106
|
+
`${e[1]}.${e[3]}`,
|
|
107
|
+
`${e[2]}.${e[0]}`,
|
|
108
|
+
`${e[2]}.${e[1]}`,
|
|
109
|
+
`${e[2]}.${e[3]}`,
|
|
110
|
+
`${e[3]}.${e[0]}`,
|
|
111
|
+
`${e[3]}.${e[1]}`,
|
|
112
|
+
`${e[3]}.${e[2]}`,
|
|
113
|
+
`${e[0]}.${e[1]}.${e[2]}`,
|
|
114
|
+
`${e[0]}.${e[1]}.${e[3]}`,
|
|
115
|
+
`${e[0]}.${e[2]}.${e[1]}`,
|
|
116
|
+
`${e[0]}.${e[2]}.${e[3]}`,
|
|
117
|
+
`${e[0]}.${e[3]}.${e[1]}`,
|
|
118
|
+
`${e[0]}.${e[3]}.${e[2]}`,
|
|
119
|
+
`${e[1]}.${e[0]}.${e[2]}`,
|
|
120
|
+
`${e[1]}.${e[0]}.${e[3]}`,
|
|
121
|
+
`${e[1]}.${e[2]}.${e[0]}`,
|
|
122
|
+
`${e[1]}.${e[2]}.${e[3]}`,
|
|
123
|
+
`${e[1]}.${e[3]}.${e[0]}`,
|
|
124
|
+
`${e[1]}.${e[3]}.${e[2]}`,
|
|
125
|
+
`${e[2]}.${e[0]}.${e[1]}`,
|
|
126
|
+
`${e[2]}.${e[0]}.${e[3]}`,
|
|
127
|
+
`${e[2]}.${e[1]}.${e[0]}`,
|
|
128
|
+
`${e[2]}.${e[1]}.${e[3]}`,
|
|
129
|
+
`${e[2]}.${e[3]}.${e[0]}`,
|
|
130
|
+
`${e[2]}.${e[3]}.${e[1]}`,
|
|
131
|
+
`${e[3]}.${e[0]}.${e[1]}`,
|
|
132
|
+
`${e[3]}.${e[0]}.${e[2]}`,
|
|
133
|
+
`${e[3]}.${e[1]}.${e[0]}`,
|
|
134
|
+
`${e[3]}.${e[1]}.${e[2]}`,
|
|
135
|
+
`${e[3]}.${e[2]}.${e[0]}`,
|
|
136
|
+
`${e[3]}.${e[2]}.${e[1]}`,
|
|
137
|
+
`${e[0]}.${e[1]}.${e[2]}.${e[3]}`,
|
|
138
|
+
`${e[0]}.${e[1]}.${e[3]}.${e[2]}`,
|
|
139
|
+
`${e[0]}.${e[2]}.${e[1]}.${e[3]}`,
|
|
140
|
+
`${e[0]}.${e[2]}.${e[3]}.${e[1]}`,
|
|
141
|
+
`${e[0]}.${e[3]}.${e[1]}.${e[2]}`,
|
|
142
|
+
`${e[0]}.${e[3]}.${e[2]}.${e[1]}`,
|
|
143
|
+
`${e[1]}.${e[0]}.${e[2]}.${e[3]}`,
|
|
144
|
+
`${e[1]}.${e[0]}.${e[3]}.${e[2]}`,
|
|
145
|
+
`${e[1]}.${e[2]}.${e[0]}.${e[3]}`,
|
|
146
|
+
`${e[1]}.${e[2]}.${e[3]}.${e[0]}`,
|
|
147
|
+
`${e[1]}.${e[3]}.${e[0]}.${e[2]}`,
|
|
148
|
+
`${e[1]}.${e[3]}.${e[2]}.${e[0]}`,
|
|
149
|
+
`${e[2]}.${e[0]}.${e[1]}.${e[3]}`,
|
|
150
|
+
`${e[2]}.${e[0]}.${e[3]}.${e[1]}`,
|
|
151
|
+
`${e[2]}.${e[1]}.${e[0]}.${e[3]}`,
|
|
152
|
+
`${e[2]}.${e[1]}.${e[3]}.${e[0]}`,
|
|
153
|
+
`${e[2]}.${e[3]}.${e[0]}.${e[1]}`,
|
|
154
|
+
`${e[2]}.${e[3]}.${e[1]}.${e[0]}`,
|
|
155
|
+
`${e[3]}.${e[0]}.${e[1]}.${e[2]}`,
|
|
156
|
+
`${e[3]}.${e[0]}.${e[2]}.${e[1]}`,
|
|
157
|
+
`${e[3]}.${e[1]}.${e[0]}.${e[2]}`,
|
|
158
|
+
`${e[3]}.${e[1]}.${e[2]}.${e[0]}`,
|
|
159
|
+
`${e[3]}.${e[2]}.${e[0]}.${e[1]}`,
|
|
160
|
+
`${e[3]}.${e[2]}.${e[1]}.${e[0]}`
|
|
161
|
+
];
|
|
162
|
+
}
|
|
163
|
+
var d = {};
|
|
164
|
+
function f(e) {
|
|
165
|
+
if (e.length === 0 || e.length === 1) return e;
|
|
166
|
+
var t = e.join(".");
|
|
167
|
+
return d[t] || (d[t] = u(e)), d[t];
|
|
168
|
+
}
|
|
169
|
+
function p(e) {
|
|
170
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
|
|
171
|
+
return f(e.filter(function(e) {
|
|
172
|
+
return e !== "token";
|
|
173
|
+
})).reduce(function(e, t) {
|
|
174
|
+
return l(l({}, e), n[t]);
|
|
175
|
+
}, t);
|
|
176
|
+
}
|
|
177
|
+
function m(e) {
|
|
178
|
+
return e.join(" ");
|
|
179
|
+
}
|
|
180
|
+
function h(e, t) {
|
|
181
|
+
var n = 0;
|
|
182
|
+
return function(r) {
|
|
183
|
+
return n += 1, r.map(function(r, i) {
|
|
184
|
+
return g({
|
|
185
|
+
node: r,
|
|
186
|
+
stylesheet: e,
|
|
187
|
+
useInlineStyles: t,
|
|
188
|
+
key: `code-segment-${n}-${i}`
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function g(e) {
|
|
194
|
+
var r = e.node, i = e.stylesheet, a = e.style, o = a === void 0 ? {} : a, s = e.useInlineStyles, c = e.key, u = r.properties, d = r.type, f = r.tagName, g = r.value;
|
|
195
|
+
if (d === "text") return g;
|
|
196
|
+
if (f) {
|
|
197
|
+
var _ = h(i, s), v;
|
|
198
|
+
if (!s) v = l(l({}, u), {}, { className: m(u.className) });
|
|
199
|
+
else {
|
|
200
|
+
var y = Object.keys(i).reduce(function(e, t) {
|
|
201
|
+
return t.split(".").forEach(function(t) {
|
|
202
|
+
e.includes(t) || e.push(t);
|
|
203
|
+
}), e;
|
|
204
|
+
}, []), b = u.className && u.className.includes("token") ? ["token"] : [], x = u.className && b.concat(u.className.filter(function(e) {
|
|
205
|
+
return !y.includes(e);
|
|
206
|
+
}));
|
|
207
|
+
v = l(l({}, u), {}, {
|
|
208
|
+
className: m(x) || void 0,
|
|
209
|
+
style: p(u.className, Object.assign({}, u.style, o), i)
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
var S = _(r.children);
|
|
213
|
+
return /*#__PURE__*/ n.createElement(f, t({ key: c }, v), S);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
//#endregion
|
|
217
|
+
export { s as n, o as r, g as t };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
e.displayName = "css", e.aliases = [];
|
|
2
|
+
function e(e) {
|
|
3
|
+
(function(e) {
|
|
4
|
+
var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
5
|
+
e.languages.css = {
|
|
6
|
+
comment: /\/\*[\s\S]*?\*\//,
|
|
7
|
+
atrule: {
|
|
8
|
+
pattern: RegExp("@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|" + t.source + ")*?(?:;|(?=\\s*\\{))"),
|
|
9
|
+
inside: {
|
|
10
|
+
rule: /^@[\w-]+/,
|
|
11
|
+
"selector-function-argument": {
|
|
12
|
+
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
|
13
|
+
lookbehind: !0,
|
|
14
|
+
alias: "selector"
|
|
15
|
+
},
|
|
16
|
+
keyword: {
|
|
17
|
+
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
|
18
|
+
lookbehind: !0
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
url: {
|
|
23
|
+
pattern: RegExp("\\burl\\((?:" + t.source + "|(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*)\\)", "i"),
|
|
24
|
+
greedy: !0,
|
|
25
|
+
inside: {
|
|
26
|
+
function: /^url/i,
|
|
27
|
+
punctuation: /^\(|\)$/,
|
|
28
|
+
string: {
|
|
29
|
+
pattern: RegExp("^" + t.source + "$"),
|
|
30
|
+
alias: "url"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
selector: {
|
|
35
|
+
pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + t.source + ")*(?=\\s*\\{)"),
|
|
36
|
+
lookbehind: !0
|
|
37
|
+
},
|
|
38
|
+
string: {
|
|
39
|
+
pattern: t,
|
|
40
|
+
greedy: !0
|
|
41
|
+
},
|
|
42
|
+
property: {
|
|
43
|
+
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
|
44
|
+
lookbehind: !0
|
|
45
|
+
},
|
|
46
|
+
important: /!important\b/i,
|
|
47
|
+
function: {
|
|
48
|
+
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
|
49
|
+
lookbehind: !0
|
|
50
|
+
},
|
|
51
|
+
punctuation: /[(){};:,]/
|
|
52
|
+
}, e.languages.css.atrule.inside.rest = e.languages.css;
|
|
53
|
+
var n = e.languages.markup;
|
|
54
|
+
n && (n.tag.addInlined("style", "css"), n.tag.addAttribute("style", "css"));
|
|
55
|
+
})(e);
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region node_modules/react-syntax-highlighter/dist/esm/languages/prism/css.js
|
|
59
|
+
var t = e;
|
|
60
|
+
//#endregion
|
|
61
|
+
export { t as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
e.displayName = "json", e.aliases = ["webmanifest"];
|
|
2
|
+
function e(e) {
|
|
3
|
+
e.languages.json = {
|
|
4
|
+
property: {
|
|
5
|
+
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
6
|
+
lookbehind: !0,
|
|
7
|
+
greedy: !0
|
|
8
|
+
},
|
|
9
|
+
string: {
|
|
10
|
+
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
|
|
11
|
+
lookbehind: !0,
|
|
12
|
+
greedy: !0
|
|
13
|
+
},
|
|
14
|
+
comment: {
|
|
15
|
+
pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
16
|
+
greedy: !0
|
|
17
|
+
},
|
|
18
|
+
number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
|
|
19
|
+
punctuation: /[{}[\],]/,
|
|
20
|
+
operator: /:/,
|
|
21
|
+
boolean: /\b(?:false|true)\b/,
|
|
22
|
+
null: {
|
|
23
|
+
pattern: /\bnull\b/,
|
|
24
|
+
alias: "keyword"
|
|
25
|
+
}
|
|
26
|
+
}, e.languages.webmanifest = e.languages.json;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js
|
|
30
|
+
var t = e;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { t as default };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { t as e } from "./markup-BhBs-nbv.js";
|
|
2
|
+
t.displayName = "clike", t.aliases = [];
|
|
3
|
+
function t(e) {
|
|
4
|
+
e.languages.clike = {
|
|
5
|
+
comment: [{
|
|
6
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
7
|
+
lookbehind: !0,
|
|
8
|
+
greedy: !0
|
|
9
|
+
}, {
|
|
10
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
11
|
+
lookbehind: !0,
|
|
12
|
+
greedy: !0
|
|
13
|
+
}],
|
|
14
|
+
string: {
|
|
15
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
16
|
+
greedy: !0
|
|
17
|
+
},
|
|
18
|
+
"class-name": {
|
|
19
|
+
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
|
|
20
|
+
lookbehind: !0,
|
|
21
|
+
inside: { punctuation: /[.\\]/ }
|
|
22
|
+
},
|
|
23
|
+
keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
|
|
24
|
+
boolean: /\b(?:false|true)\b/,
|
|
25
|
+
function: /\b\w+(?=\()/,
|
|
26
|
+
number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
|
|
27
|
+
operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
|
28
|
+
punctuation: /[{}[\];(),.:]/
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
n.displayName = "javascript", n.aliases = ["js"];
|
|
32
|
+
function n(e) {
|
|
33
|
+
e.register(t), e.languages.javascript = e.languages.extend("clike", {
|
|
34
|
+
"class-name": [e.languages.clike["class-name"], {
|
|
35
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
|
36
|
+
lookbehind: !0
|
|
37
|
+
}],
|
|
38
|
+
keyword: [{
|
|
39
|
+
pattern: /((?:^|\})\s*)catch\b/,
|
|
40
|
+
lookbehind: !0
|
|
41
|
+
}, {
|
|
42
|
+
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
|
|
43
|
+
lookbehind: !0
|
|
44
|
+
}],
|
|
45
|
+
function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
|
|
46
|
+
number: {
|
|
47
|
+
pattern: RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"),
|
|
48
|
+
lookbehind: !0
|
|
49
|
+
},
|
|
50
|
+
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
|
51
|
+
}), e.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, e.languages.insertBefore("javascript", "keyword", {
|
|
52
|
+
regex: {
|
|
53
|
+
pattern: RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))"),
|
|
54
|
+
lookbehind: !0,
|
|
55
|
+
greedy: !0,
|
|
56
|
+
inside: {
|
|
57
|
+
"regex-source": {
|
|
58
|
+
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
|
59
|
+
lookbehind: !0,
|
|
60
|
+
alias: "language-regex",
|
|
61
|
+
inside: e.languages.regex
|
|
62
|
+
},
|
|
63
|
+
"regex-delimiter": /^\/|\/$/,
|
|
64
|
+
"regex-flags": /^[a-z]+$/
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"function-variable": {
|
|
68
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
|
|
69
|
+
alias: "function"
|
|
70
|
+
},
|
|
71
|
+
parameter: [
|
|
72
|
+
{
|
|
73
|
+
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
|
74
|
+
lookbehind: !0,
|
|
75
|
+
inside: e.languages.javascript
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
|
79
|
+
lookbehind: !0,
|
|
80
|
+
inside: e.languages.javascript
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
|
84
|
+
lookbehind: !0,
|
|
85
|
+
inside: e.languages.javascript
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
|
|
89
|
+
lookbehind: !0,
|
|
90
|
+
inside: e.languages.javascript
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
|
94
|
+
}), e.languages.insertBefore("javascript", "string", {
|
|
95
|
+
hashbang: {
|
|
96
|
+
pattern: /^#!.*/,
|
|
97
|
+
greedy: !0,
|
|
98
|
+
alias: "comment"
|
|
99
|
+
},
|
|
100
|
+
"template-string": {
|
|
101
|
+
pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
|
|
102
|
+
greedy: !0,
|
|
103
|
+
inside: {
|
|
104
|
+
"template-punctuation": {
|
|
105
|
+
pattern: /^`|`$/,
|
|
106
|
+
alias: "string"
|
|
107
|
+
},
|
|
108
|
+
interpolation: {
|
|
109
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
110
|
+
lookbehind: !0,
|
|
111
|
+
inside: {
|
|
112
|
+
"interpolation-punctuation": {
|
|
113
|
+
pattern: /^\$\{|\}$/,
|
|
114
|
+
alias: "punctuation"
|
|
115
|
+
},
|
|
116
|
+
rest: e.languages.javascript
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
string: /[\s\S]+/
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"string-property": {
|
|
123
|
+
pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
|
|
124
|
+
lookbehind: !0,
|
|
125
|
+
greedy: !0,
|
|
126
|
+
alias: "property"
|
|
127
|
+
}
|
|
128
|
+
}), e.languages.insertBefore("javascript", "operator", { "literal-property": {
|
|
129
|
+
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
|
130
|
+
lookbehind: !0,
|
|
131
|
+
alias: "property"
|
|
132
|
+
} }), e.languages.markup && (e.languages.markup.tag.addInlined("script", "javascript"), e.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)", "javascript")), e.languages.js = e.languages.javascript;
|
|
133
|
+
}
|
|
134
|
+
r.displayName = "jsx", r.aliases = [];
|
|
135
|
+
function r(t) {
|
|
136
|
+
t.register(n), t.register(e), (function(e) {
|
|
137
|
+
var t = e.util.clone(e.languages.javascript), n = "(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)", r = "(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})", i = "(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})";
|
|
138
|
+
function a(e, t) {
|
|
139
|
+
return e = e.replace(/<S>/g, function() {
|
|
140
|
+
return n;
|
|
141
|
+
}).replace(/<BRACES>/g, function() {
|
|
142
|
+
return r;
|
|
143
|
+
}).replace(/<SPREAD>/g, function() {
|
|
144
|
+
return i;
|
|
145
|
+
}), RegExp(e, t);
|
|
146
|
+
}
|
|
147
|
+
i = a(i).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = a("<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>"), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: {
|
|
148
|
+
pattern: a("<SPREAD>"),
|
|
149
|
+
inside: e.languages.jsx
|
|
150
|
+
} }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: {
|
|
151
|
+
pattern: a("=<BRACES>"),
|
|
152
|
+
alias: "language-javascript",
|
|
153
|
+
inside: {
|
|
154
|
+
"script-punctuation": {
|
|
155
|
+
pattern: /^=(?=\{)/,
|
|
156
|
+
alias: "punctuation"
|
|
157
|
+
},
|
|
158
|
+
rest: e.languages.jsx
|
|
159
|
+
}
|
|
160
|
+
} }, e.languages.jsx.tag);
|
|
161
|
+
var o = function(e) {
|
|
162
|
+
return e ? typeof e == "string" ? e : typeof e.content == "string" ? e.content : e.content.map(o).join("") : "";
|
|
163
|
+
}, s = function(t) {
|
|
164
|
+
for (var n = [], r = 0; r < t.length; r++) {
|
|
165
|
+
var i = t[r], a = !1;
|
|
166
|
+
if (typeof i != "string" && (i.type === "tag" && i.content[0] && i.content[0].type === "tag" ? i.content[0].content[0].content === "</" ? n.length > 0 && n[n.length - 1].tagName === o(i.content[0].content[1]) && n.pop() : i.content[i.content.length - 1].content === "/>" || n.push({
|
|
167
|
+
tagName: o(i.content[0].content[1]),
|
|
168
|
+
openedBraces: 0
|
|
169
|
+
}) : n.length > 0 && i.type === "punctuation" && i.content === "{" ? n[n.length - 1].openedBraces++ : n.length > 0 && n[n.length - 1].openedBraces > 0 && i.type === "punctuation" && i.content === "}" ? n[n.length - 1].openedBraces-- : a = !0), (a || typeof i == "string") && n.length > 0 && n[n.length - 1].openedBraces === 0) {
|
|
170
|
+
var c = o(i);
|
|
171
|
+
r < t.length - 1 && (typeof t[r + 1] == "string" || t[r + 1].type === "plain-text") && (c += o(t[r + 1]), t.splice(r + 1, 1)), r > 0 && (typeof t[r - 1] == "string" || t[r - 1].type === "plain-text") && (c = o(t[r - 1]) + c, t.splice(r - 1, 1), r--), t[r] = new e.Token("plain-text", c, null, c);
|
|
172
|
+
}
|
|
173
|
+
i.content && typeof i.content != "string" && s(i.content);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
e.hooks.add("after-tokenize", function(e) {
|
|
177
|
+
e.language !== "jsx" && e.language !== "tsx" || s(e.tokens);
|
|
178
|
+
});
|
|
179
|
+
})(t);
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
export { n, r as t };
|
|
@@ -9,7 +9,8 @@ export interface CodeBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ch
|
|
|
9
9
|
code: string;
|
|
10
10
|
/**
|
|
11
11
|
* Pre-highlighted HTML (e.g. from Shiki). Takes precedence over the built-in
|
|
12
|
-
* highlighter — use it for SSR or custom themes. Rendered
|
|
12
|
+
* highlighter — use it for SSR-highlighted output or custom themes. Rendered
|
|
13
|
+
* as-is.
|
|
13
14
|
*/
|
|
14
15
|
html?: string;
|
|
15
16
|
/** Language key — drives the header icon/badge/label and the highlighter grammar. */
|
|
@@ -34,6 +35,11 @@ export interface CodeBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ch
|
|
|
34
35
|
* out of the box from plain `code`; all colors come from `--HS-*` / token-driven
|
|
35
36
|
* CSS vars, so light/dark mode is automatic.
|
|
36
37
|
*
|
|
38
|
+
* The built-in Prism highlighter loads on the client only (it is not SSR-safe),
|
|
39
|
+
* so server-rendered output shows the code unhighlighted and upgrades to colored
|
|
40
|
+
* tokens after hydration. Line numbers and diff tints render immediately on both
|
|
41
|
+
* server and client. For SSR-highlighted output, pass pre-rendered `html`.
|
|
42
|
+
*
|
|
37
43
|
* @example
|
|
38
44
|
* ```tsx
|
|
39
45
|
* <CodeBlock lang="ts" code={src} />
|
package/dist/main.js
CHANGED
|
@@ -2,8 +2,8 @@ import { c as e, d as t, r as n, s as r, u as i } from "./utils-K9S_6_Eq.js";
|
|
|
2
2
|
import { t as a } from "./Box-BZgeSeCV.js";
|
|
3
3
|
import { t as o } from "./Button-Dc8NFRWQ.js";
|
|
4
4
|
import { t as s } from "./CopyCode-DH9Jh7PD.js";
|
|
5
|
-
import { t as c } from "./
|
|
6
|
-
import { t as l } from "./
|
|
5
|
+
import { t as c } from "./FrameworkIcon-Ds6WrxO0.js";
|
|
6
|
+
import { t as l } from "./CodeBlock-BreFXfK5.js";
|
|
7
7
|
import { t as u } from "./Icon-VeXJMj8Q.js";
|
|
8
8
|
import { t as d } from "./Link-CYR92_U0.js";
|
|
9
9
|
import { t as f } from "./ProductIcon-DFLAYWbu.js";
|
|
@@ -19,10 +19,10 @@ import { t as w } from "./NewsletterSignup-Dw9YbhEh.js";
|
|
|
19
19
|
import { n as T, r as E, t as D } from "./Dropdown-DbXr3sb-.js";
|
|
20
20
|
import { t as O } from "./PrefPanel-BG4jW8wc.js";
|
|
21
21
|
import { n as k, t as A } from "./Label-BM4vL0vA.js";
|
|
22
|
-
import { t as j } from "./Footer-
|
|
22
|
+
import { t as j } from "./Footer-DtFs2Sgb.js";
|
|
23
23
|
import { n as M } from "./GPTInput-C0YG1990.js";
|
|
24
24
|
import { t as N } from "./Notification-BgmhEw6w.js";
|
|
25
|
-
import { n as P, t as F } from "./Header-
|
|
25
|
+
import { n as P, t as F } from "./Header-C7MCiwiz.js";
|
|
26
26
|
import { t as I } from "./Tabs-BuDaPqdN.js";
|
|
27
27
|
import { n as L, t as R } from "./RadioBox-o1Ssyj0s.js";
|
|
28
28
|
import { n as z, t as B } from "./Checkbox-CErz7eBz.js";
|
|
@@ -30,4 +30,4 @@ import { Modal as V } from "./components/Modal/index.js";
|
|
|
30
30
|
import { t as H } from "./RoadmapDetails-DXxJNZh9.js";
|
|
31
31
|
import { ModalContactFooter as U } from "./components/Modal/ModalContactFooter.js";
|
|
32
32
|
import { ThemeLoader as W, themeLoaderScript as G } from "./components/ThemeLoader/index.js";
|
|
33
|
-
export { a as Box, o as Button, p as ButtonGroup, B as Checkbox, z as CheckboxGroup,
|
|
33
|
+
export { a as Box, o as Button, p as ButtonGroup, B as Checkbox, z as CheckboxGroup, l as CodeBlock, y as Container, s as CopyCode, b as DiscordInvite, D as Dropdown, T as DropdownItem, E as DropdownSeparator, j as Footer, v as FormGroup, g as FormRow, c as FrameworkIcon, M as GPTInput, F as Header, x as Heading, u as Icon, _ as InputGrouped, m as InputSolo, A as Label, d as Link, C as Logo, V as Modal, U as ModalContactFooter, k as NewTag, w as NewsletterSignup, N as Notification, O as PrefPanel, f as ProductIcon, R as RadioBox, L as RadioBoxGroup, H as RoadmapDetails, h as SelectGrouped, P as SubHeader, I as Tabs, W as ThemeLoader, i as ThemeProvider, S as Typography, G as themeLoaderScript, n as useClipboard, t as useNextTheme, r as useSuccessFlash, e as useTheme };
|