zudoku 0.7.2-dev.14 → 0.8.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/lib/AuthenticationPlugin-Bx9FK124.js +55 -0
- package/lib/{AuthenticationPlugin-BMjOjKqE.js.map → AuthenticationPlugin-Bx9FK124.js.map} +1 -1
- package/lib/CategoryHeading-XnFqN2lJ.js +10 -0
- package/lib/{CategoryHeading-BE8e6QdS.js.map → CategoryHeading-XnFqN2lJ.js.map} +1 -1
- package/lib/DeveloperHint-FBb2uXJe.js +16 -0
- package/lib/{DeveloperHint-Bl9gIdNI.js.map → DeveloperHint-FBb2uXJe.js.map} +1 -1
- package/lib/ErrorPage-knunPbKI.js +18 -0
- package/lib/{ErrorPage-CPR1XVKW.js.map → ErrorPage-knunPbKI.js.map} +1 -1
- package/lib/Input-BEDZAKw0.js +2198 -0
- package/lib/{Input-BBlyeDuG.js.map → Input-BEDZAKw0.js.map} +1 -1
- package/lib/{Markdown-CCNihH_N.js → Markdown-B4aR03g6.js} +2650 -2641
- package/lib/{Markdown-CCNihH_N.js.map → Markdown-B4aR03g6.js.map} +1 -1
- package/lib/MdxPage-BZyQsH8Z.js +172 -0
- package/lib/{MdxPage-BavkYqzi.js.map → MdxPage-BZyQsH8Z.js.map} +1 -1
- package/lib/OperationList-2NeWEM0u.js +560 -0
- package/lib/{OperationList-C6Ps2keZ.js.map → OperationList-2NeWEM0u.js.map} +1 -1
- package/lib/Route-BZPewmrN.js +14 -0
- package/lib/{Route-xRJ9mJgH.js.map → Route-BZPewmrN.js.map} +1 -1
- package/lib/{SidebarBadge-2JcxswKF.js → SidebarBadge-COz0hgfa.js} +41 -41
- package/lib/{SidebarBadge-2JcxswKF.js.map → SidebarBadge-COz0hgfa.js.map} +1 -1
- package/lib/SlotletProvider-DJMaOUDs.js +238 -0
- package/lib/{SlotletProvider-CuB3Ts8r.js.map → SlotletProvider-DJMaOUDs.js.map} +1 -1
- package/lib/Spinner-3cQDBVGr.js +7 -0
- package/lib/Spinner-3cQDBVGr.js.map +1 -0
- package/lib/{ZudokuContext-JoyeA9dT.js → ZudokuContext-cr-pTRY1.js} +66 -65
- package/lib/{ZudokuContext-JoyeA9dT.js.map → ZudokuContext-cr-pTRY1.js.map} +1 -1
- package/lib/{index-G1-TGLO1.js → index-1EDgIO6b.js} +4 -4
- package/lib/{index-G1-TGLO1.js.map → index-1EDgIO6b.js.map} +1 -1
- package/lib/index-BG0g4WW0.js +1771 -0
- package/lib/index-BG0g4WW0.js.map +1 -0
- package/lib/{index-BF4cn28H.js → index-Dv2KZuEw.js} +1991 -1804
- package/lib/{index-BF4cn28H.js.map → index-Dv2KZuEw.js.map} +1 -1
- package/lib/{index-BLvMkqjO.js → index-Zezcv0xb.js} +5 -5
- package/lib/{index-BLvMkqjO.js.map → index-Zezcv0xb.js.map} +1 -1
- package/lib/jsx-runtime-B6kdoens.js +635 -0
- package/lib/jsx-runtime-B6kdoens.js.map +1 -0
- package/lib/{utils-B8R4grFM.js → utils-ByIc_KIM.js} +98 -97
- package/lib/{utils-B8R4grFM.js.map → utils-ByIc_KIM.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +21 -16
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +37 -32
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +505 -485
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1659 -1531
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +214 -150
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-page.js +6 -5
- package/lib/zudoku.plugin-custom-page.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +13 -12
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -7
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +21 -20
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +1 -1
- package/lib/AuthenticationPlugin-BMjOjKqE.js +0 -54
- package/lib/CategoryHeading-BE8e6QdS.js +0 -9
- package/lib/DeveloperHint-Bl9gIdNI.js +0 -12
- package/lib/ErrorPage-CPR1XVKW.js +0 -12
- package/lib/Input-BBlyeDuG.js +0 -2192
- package/lib/MdxPage-BavkYqzi.js +0 -140
- package/lib/OperationList-C6Ps2keZ.js +0 -460
- package/lib/Route-xRJ9mJgH.js +0 -13
- package/lib/SlotletProvider-CuB3Ts8r.js +0 -213
- package/lib/Spinner-BlxzaFFF.js +0 -6
- package/lib/Spinner-BlxzaFFF.js.map +0 -1
- package/lib/jsx-runtime-lNnQYwFN.js +0 -2403
- package/lib/jsx-runtime-lNnQYwFN.js.map +0 -1
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
var ce = Object.defineProperty;
|
|
2
2
|
var le = (e, t, r) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var T = (e, t, r) => le(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import
|
|
4
|
+
import h, { Component as U } from "react";
|
|
5
5
|
import { g as q } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
6
|
-
import {
|
|
6
|
+
import { j as ue } from "./jsx-runtime-B6kdoens.js";
|
|
7
|
+
import { b as $, L as fe } from "./index-BG0g4WW0.js";
|
|
7
8
|
import { j as S } from "./joinPath-B7kNnUX4.js";
|
|
8
|
-
import { c as K, u as Q } from "./ZudokuContext-
|
|
9
|
-
const _ = {}, N =
|
|
10
|
-
function
|
|
11
|
-
const t =
|
|
12
|
-
return
|
|
9
|
+
import { c as K, u as Q } from "./ZudokuContext-cr-pTRY1.js";
|
|
10
|
+
const _ = {}, N = h.createContext(_);
|
|
11
|
+
function de(e) {
|
|
12
|
+
const t = h.useContext(N);
|
|
13
|
+
return h.useMemo(
|
|
13
14
|
function() {
|
|
14
15
|
return typeof e == "function" ? e(t) : { ...t, ...e };
|
|
15
16
|
},
|
|
16
17
|
[t, e]
|
|
17
18
|
);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function We(e) {
|
|
20
21
|
let t;
|
|
21
|
-
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(_) : e.components || _ : t =
|
|
22
|
+
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(_) : e.components || _ : t = de(e.components), h.createElement(
|
|
22
23
|
N.Provider,
|
|
23
24
|
{ value: t },
|
|
24
25
|
e.children
|
|
25
26
|
);
|
|
26
27
|
}
|
|
27
|
-
var
|
|
28
|
+
var pe = typeof Element < "u", he = typeof Map == "function", me = typeof Set == "function", ye = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
28
29
|
function P(e, t) {
|
|
29
30
|
if (e === t) return !0;
|
|
30
31
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
@@ -37,7 +38,7 @@ function P(e, t) {
|
|
|
37
38
|
return !0;
|
|
38
39
|
}
|
|
39
40
|
var o;
|
|
40
|
-
if (
|
|
41
|
+
if (he && e instanceof Map && t instanceof Map) {
|
|
41
42
|
if (e.size !== t.size) return !1;
|
|
42
43
|
for (o = e.entries(); !(n = o.next()).done; )
|
|
43
44
|
if (!t.has(n.value[0])) return !1;
|
|
@@ -45,13 +46,13 @@ function P(e, t) {
|
|
|
45
46
|
if (!P(n.value[1], t.get(n.value[0]))) return !1;
|
|
46
47
|
return !0;
|
|
47
48
|
}
|
|
48
|
-
if (
|
|
49
|
+
if (me && e instanceof Set && t instanceof Set) {
|
|
49
50
|
if (e.size !== t.size) return !1;
|
|
50
51
|
for (o = e.entries(); !(n = o.next()).done; )
|
|
51
52
|
if (!t.has(n.value[0])) return !1;
|
|
52
53
|
return !0;
|
|
53
54
|
}
|
|
54
|
-
if (
|
|
55
|
+
if (ye && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
55
56
|
if (r = e.length, r != t.length) return !1;
|
|
56
57
|
for (n = r; n-- !== 0; )
|
|
57
58
|
if (e[n] !== t[n]) return !1;
|
|
@@ -63,7 +64,7 @@ function P(e, t) {
|
|
|
63
64
|
if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
|
|
64
65
|
for (n = r; n-- !== 0; )
|
|
65
66
|
if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
|
|
66
|
-
if (
|
|
67
|
+
if (pe && e instanceof Element) return !1;
|
|
67
68
|
for (n = r; n-- !== 0; )
|
|
68
69
|
if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !P(e[s[n]], t[s[n]]))
|
|
69
70
|
return !1;
|
|
@@ -71,7 +72,7 @@ function P(e, t) {
|
|
|
71
72
|
}
|
|
72
73
|
return e !== e && t !== t;
|
|
73
74
|
}
|
|
74
|
-
var
|
|
75
|
+
var Te = function(t, r) {
|
|
75
76
|
try {
|
|
76
77
|
return P(t, r);
|
|
77
78
|
} catch (n) {
|
|
@@ -80,8 +81,8 @@ var ye = function(t, r) {
|
|
|
80
81
|
throw n;
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
|
-
const
|
|
84
|
-
var
|
|
84
|
+
const ge = /* @__PURE__ */ q(Te);
|
|
85
|
+
var ve = function(e, t, r, n, s, o, l, i) {
|
|
85
86
|
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
86
87
|
throw new Error("invariant requires an error message argument");
|
|
87
88
|
if (!e) {
|
|
@@ -100,9 +101,9 @@ var ge = function(e, t, r, n, s, o, l, i) {
|
|
|
100
101
|
}
|
|
101
102
|
throw a.framesToPop = 1, a;
|
|
102
103
|
}
|
|
103
|
-
},
|
|
104
|
-
const X = /* @__PURE__ */ q(
|
|
105
|
-
var
|
|
104
|
+
}, Ae = ve;
|
|
105
|
+
const X = /* @__PURE__ */ q(Ae);
|
|
106
|
+
var be = function(t, r, n, s) {
|
|
106
107
|
var o = n ? n.call(s, t, r) : void 0;
|
|
107
108
|
if (o !== void 0)
|
|
108
109
|
return !!o;
|
|
@@ -123,7 +124,7 @@ var Ae = function(t, r, n, s) {
|
|
|
123
124
|
}
|
|
124
125
|
return !0;
|
|
125
126
|
};
|
|
126
|
-
const
|
|
127
|
+
const Ce = /* @__PURE__ */ q(be);
|
|
127
128
|
var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ee || {}), D = {
|
|
128
129
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
129
130
|
script: { type: ["application/ld+json"] },
|
|
@@ -155,7 +156,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
155
156
|
"http-equiv": "httpEquiv",
|
|
156
157
|
itemprop: "itemProp",
|
|
157
158
|
tabindex: "tabIndex"
|
|
158
|
-
},
|
|
159
|
+
}, Ee = Object.entries(z).reduce(
|
|
159
160
|
(e, [t, r]) => (e[r] = t, e),
|
|
160
161
|
{}
|
|
161
162
|
), y = "data-rh", b = {
|
|
@@ -172,7 +173,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
172
173
|
return n[t];
|
|
173
174
|
}
|
|
174
175
|
return null;
|
|
175
|
-
},
|
|
176
|
+
}, Oe = (e) => {
|
|
176
177
|
let t = C(
|
|
177
178
|
e,
|
|
178
179
|
"title"
|
|
@@ -183,8 +184,8 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
183
184
|
return r.replace(/%s/g, () => t);
|
|
184
185
|
const n = C(e, b.DEFAULT_TITLE);
|
|
185
186
|
return t || n || void 0;
|
|
186
|
-
},
|
|
187
|
-
}), M = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}),
|
|
187
|
+
}, Se = (e) => C(e, b.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
188
|
+
}), M = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), we = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
|
|
188
189
|
if (!r.length) {
|
|
189
190
|
const s = Object.keys(n);
|
|
190
191
|
for (let o = 0; o < s.length; o += 1) {
|
|
@@ -194,9 +195,9 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
194
195
|
}
|
|
195
196
|
}
|
|
196
197
|
return r;
|
|
197
|
-
}, []),
|
|
198
|
+
}, []), xe = (e) => console && typeof console.warn == "function" && console.warn(e), E = (e, t, r) => {
|
|
198
199
|
const n = {};
|
|
199
|
-
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" &&
|
|
200
|
+
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && xe(
|
|
200
201
|
`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
|
|
201
202
|
), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
|
|
202
203
|
const l = {};
|
|
@@ -222,15 +223,15 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
222
223
|
}
|
|
223
224
|
return s;
|
|
224
225
|
}, []).reverse();
|
|
225
|
-
},
|
|
226
|
+
}, Pe = (e, t) => {
|
|
226
227
|
if (Array.isArray(e) && e.length) {
|
|
227
228
|
for (let r = 0; r < e.length; r += 1)
|
|
228
229
|
if (e[r][t])
|
|
229
230
|
return !0;
|
|
230
231
|
}
|
|
231
232
|
return !1;
|
|
232
|
-
},
|
|
233
|
-
baseTag:
|
|
233
|
+
}, ke = (e) => ({
|
|
234
|
+
baseTag: we([
|
|
234
235
|
"href"
|
|
235
236
|
/* HREF */
|
|
236
237
|
], e),
|
|
@@ -263,7 +264,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
263
264
|
"innerHTML"
|
|
264
265
|
/* INNER_HTML */
|
|
265
266
|
], e),
|
|
266
|
-
onChangeClientState:
|
|
267
|
+
onChangeClientState: Se(e),
|
|
267
268
|
scriptTags: E(
|
|
268
269
|
"script",
|
|
269
270
|
[
|
|
@@ -277,55 +278,55 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
277
278
|
"cssText"
|
|
278
279
|
/* CSS_TEXT */
|
|
279
280
|
], e),
|
|
280
|
-
title:
|
|
281
|
+
title: Oe(e),
|
|
281
282
|
titleAttributes: M("titleAttributes", e),
|
|
282
|
-
prioritizeSeoTags:
|
|
283
|
-
}), te = (e) => Array.isArray(e) ? e.join("") : e,
|
|
283
|
+
prioritizeSeoTags: Pe(e, b.PRIORITIZE_SEO_TAGS)
|
|
284
|
+
}), te = (e) => Array.isArray(e) ? e.join("") : e, $e = (e, t) => {
|
|
284
285
|
const r = Object.keys(e);
|
|
285
286
|
for (let n = 0; n < r.length; n += 1)
|
|
286
287
|
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
287
288
|
return !0;
|
|
288
289
|
return !1;
|
|
289
290
|
}, I = (e, t) => Array.isArray(e) ? e.reduce(
|
|
290
|
-
(r, n) => (
|
|
291
|
+
(r, n) => ($e(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
291
292
|
{ priority: [], default: [] }
|
|
292
293
|
) : { default: e, priority: [] }, W = (e, t) => ({
|
|
293
294
|
...e,
|
|
294
295
|
[t]: void 0
|
|
295
|
-
}),
|
|
296
|
+
}), De = [
|
|
296
297
|
"noscript",
|
|
297
298
|
"script",
|
|
298
299
|
"style"
|
|
299
300
|
/* STYLE */
|
|
300
|
-
],
|
|
301
|
+
], R = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), re = (e) => Object.keys(e).reduce((t, r) => {
|
|
301
302
|
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
302
303
|
return t ? `${t} ${n}` : n;
|
|
303
|
-
}, ""),
|
|
304
|
+
}, ""), Me = (e, t, r, n) => {
|
|
304
305
|
const s = re(r), o = te(t);
|
|
305
|
-
return s ? `<${e} ${y}="true" ${s}>${
|
|
306
|
+
return s ? `<${e} ${y}="true" ${s}>${R(
|
|
306
307
|
o,
|
|
307
308
|
n
|
|
308
|
-
)}</${e}>` : `<${e} ${y}="true">${
|
|
309
|
+
)}</${e}>` : `<${e} ${y}="true">${R(
|
|
309
310
|
o,
|
|
310
311
|
n
|
|
311
312
|
)}</${e}>`;
|
|
312
|
-
},
|
|
313
|
+
}, Ie = (e, t, r = !0) => t.reduce((n, s) => {
|
|
313
314
|
const o = s, l = Object.keys(o).filter(
|
|
314
315
|
(c) => !(c === "innerHTML" || c === "cssText")
|
|
315
316
|
).reduce((c, u) => {
|
|
316
|
-
const f = typeof o[u] > "u" ? u : `${u}="${
|
|
317
|
+
const f = typeof o[u] > "u" ? u : `${u}="${R(o[u], r)}"`;
|
|
317
318
|
return c ? `${c} ${f}` : f;
|
|
318
|
-
}, ""), i = o.innerHTML || o.cssText || "", a =
|
|
319
|
+
}, ""), i = o.innerHTML || o.cssText || "", a = De.indexOf(e) === -1;
|
|
319
320
|
return `${n}<${e} ${y}="true" ${l}${a ? "/>" : `>${i}</${e}>`}`;
|
|
320
321
|
}, ""), ne = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
321
322
|
const s = z[n];
|
|
322
323
|
return r[s || n] = e[n], r;
|
|
323
|
-
}, t),
|
|
324
|
+
}, t), He = (e, t, r) => {
|
|
324
325
|
const n = {
|
|
325
326
|
key: t,
|
|
326
327
|
[y]: !0
|
|
327
328
|
}, s = ne(r, n);
|
|
328
|
-
return [
|
|
329
|
+
return [h.createElement("title", s, t)];
|
|
329
330
|
}, k = (e, t) => t.map((r, n) => {
|
|
330
331
|
const s = {
|
|
331
332
|
key: n,
|
|
@@ -338,13 +339,13 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
338
339
|
s.dangerouslySetInnerHTML = { __html: a };
|
|
339
340
|
} else
|
|
340
341
|
s[i] = r[o];
|
|
341
|
-
}),
|
|
342
|
-
}),
|
|
342
|
+
}), h.createElement(e, s);
|
|
343
|
+
}), p = (e, t, r = !0) => {
|
|
343
344
|
switch (e) {
|
|
344
345
|
case "title":
|
|
345
346
|
return {
|
|
346
|
-
toComponent: () =>
|
|
347
|
-
toString: () =>
|
|
347
|
+
toComponent: () => He(e, t.title, t.titleAttributes),
|
|
348
|
+
toString: () => Me(e, t.title, t.titleAttributes, r)
|
|
348
349
|
};
|
|
349
350
|
case "bodyAttributes":
|
|
350
351
|
case "htmlAttributes":
|
|
@@ -355,10 +356,10 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
355
356
|
default:
|
|
356
357
|
return {
|
|
357
358
|
toComponent: () => k(e, t),
|
|
358
|
-
toString: () =>
|
|
359
|
+
toString: () => Ie(e, t, r)
|
|
359
360
|
};
|
|
360
361
|
}
|
|
361
|
-
},
|
|
362
|
+
}, _e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
362
363
|
const s = I(e, D.meta), o = I(t, D.link), l = I(r, D.script);
|
|
363
364
|
return {
|
|
364
365
|
priorityMethods: {
|
|
@@ -369,18 +370,18 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
369
370
|
],
|
|
370
371
|
toString: () => (
|
|
371
372
|
// generate all the tags as strings and concatenate them
|
|
372
|
-
`${
|
|
373
|
+
`${p("meta", s.priority, n)} ${p(
|
|
373
374
|
"link",
|
|
374
375
|
o.priority,
|
|
375
376
|
n
|
|
376
|
-
)} ${
|
|
377
|
+
)} ${p("script", l.priority, n)}`
|
|
377
378
|
)
|
|
378
379
|
},
|
|
379
380
|
metaTags: s.default,
|
|
380
381
|
linkTags: o.default,
|
|
381
382
|
scriptTags: l.default
|
|
382
383
|
};
|
|
383
|
-
},
|
|
384
|
+
}, Re = (e) => {
|
|
384
385
|
const {
|
|
385
386
|
baseTag: t,
|
|
386
387
|
bodyAttributes: r,
|
|
@@ -397,19 +398,19 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
397
398
|
},
|
|
398
399
|
toString: () => ""
|
|
399
400
|
};
|
|
400
|
-
return c && ({ priorityMethods: d, linkTags: u, metaTags: f, scriptTags: m } =
|
|
401
|
+
return c && ({ priorityMethods: d, linkTags: u, metaTags: f, scriptTags: m } = _e(e)), {
|
|
401
402
|
priority: d,
|
|
402
|
-
base:
|
|
403
|
-
bodyAttributes:
|
|
404
|
-
htmlAttributes:
|
|
405
|
-
link:
|
|
406
|
-
meta:
|
|
407
|
-
noscript:
|
|
408
|
-
script:
|
|
409
|
-
style:
|
|
410
|
-
title:
|
|
403
|
+
base: p("base", t, n),
|
|
404
|
+
bodyAttributes: p("bodyAttributes", r, n),
|
|
405
|
+
htmlAttributes: p("htmlAttributes", s, n),
|
|
406
|
+
link: p("link", u, n),
|
|
407
|
+
meta: p("meta", f, n),
|
|
408
|
+
noscript: p("noscript", o, n),
|
|
409
|
+
script: p("script", m, n),
|
|
410
|
+
style: p("style", l, n),
|
|
411
|
+
title: p("title", { title: i, titleAttributes: a }, n)
|
|
411
412
|
};
|
|
412
|
-
},
|
|
413
|
+
}, j = Re, x = [], se = !!(typeof window < "u" && window.document && window.document.createElement), L = class {
|
|
413
414
|
constructor(e, t) {
|
|
414
415
|
T(this, "instances", []);
|
|
415
416
|
T(this, "canUseDOM", se);
|
|
@@ -429,7 +430,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
429
430
|
}
|
|
430
431
|
}
|
|
431
432
|
});
|
|
432
|
-
this.context = e, this.canUseDOM = t || !1, t || (e.helmet =
|
|
433
|
+
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = j({
|
|
433
434
|
baseTag: [],
|
|
434
435
|
bodyAttributes: {},
|
|
435
436
|
encodeSpecialCharacters: !0,
|
|
@@ -443,14 +444,14 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
443
444
|
titleAttributes: {}
|
|
444
445
|
}));
|
|
445
446
|
}
|
|
446
|
-
},
|
|
447
|
+
}, je = {}, oe = h.createContext(je), v, Le = (v = class extends U {
|
|
447
448
|
constructor(r) {
|
|
448
449
|
super(r);
|
|
449
450
|
T(this, "helmetData");
|
|
450
|
-
this.helmetData = new
|
|
451
|
+
this.helmetData = new L(this.props.context || {}, v.canUseDOM);
|
|
451
452
|
}
|
|
452
453
|
render() {
|
|
453
|
-
return /* @__PURE__ */
|
|
454
|
+
return /* @__PURE__ */ h.createElement(oe.Provider, { value: this.helmetData.value }, this.props.children);
|
|
454
455
|
}
|
|
455
456
|
}, T(v, "canUseDOM", se), v), A = (e, t) => {
|
|
456
457
|
const r = document.head || document.querySelector(
|
|
@@ -492,7 +493,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
492
493
|
for (let i = o.length - 1; i >= 0; i -= 1)
|
|
493
494
|
r.removeAttribute(o[i]);
|
|
494
495
|
s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== l.join(",") && r.setAttribute(y, l.join(","));
|
|
495
|
-
},
|
|
496
|
+
}, Fe = (e, t) => {
|
|
496
497
|
typeof e < "u" && document.title !== e && (document.title = te(e)), F("title", t);
|
|
497
498
|
}, G = (e, t) => {
|
|
498
499
|
const {
|
|
@@ -508,7 +509,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
508
509
|
title: f,
|
|
509
510
|
titleAttributes: m
|
|
510
511
|
} = e;
|
|
511
|
-
F("body", n), F("html", s),
|
|
512
|
+
F("body", n), F("html", s), Fe(f, m);
|
|
512
513
|
const d = {
|
|
513
514
|
baseTag: A("base", r),
|
|
514
515
|
linkTags: A("link", o),
|
|
@@ -521,19 +522,19 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
521
522
|
const { newTags: B, oldTags: ae } = d[w];
|
|
522
523
|
B.length && (g[w] = B), ae.length && (Y[w] = d[w].oldTags);
|
|
523
524
|
}), t && t(), a(e, g, Y);
|
|
524
|
-
}, O = null,
|
|
525
|
+
}, O = null, Ue = (e) => {
|
|
525
526
|
O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
|
|
526
527
|
G(e, () => {
|
|
527
528
|
O = null;
|
|
528
529
|
});
|
|
529
530
|
}) : (G(e), O = null);
|
|
530
|
-
},
|
|
531
|
+
}, qe = Ue, J = class extends U {
|
|
531
532
|
constructor() {
|
|
532
533
|
super(...arguments);
|
|
533
534
|
T(this, "rendered", !1);
|
|
534
535
|
}
|
|
535
536
|
shouldComponentUpdate(t) {
|
|
536
|
-
return !
|
|
537
|
+
return !Ce(t, this.props);
|
|
537
538
|
}
|
|
538
539
|
componentDidUpdate() {
|
|
539
540
|
this.emitChange();
|
|
@@ -545,13 +546,13 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
545
546
|
emitChange() {
|
|
546
547
|
const { helmetInstances: t, setHelmet: r } = this.props.context;
|
|
547
548
|
let n = null;
|
|
548
|
-
const s =
|
|
549
|
+
const s = ke(
|
|
549
550
|
t.get().map((o) => {
|
|
550
551
|
const l = { ...o.props };
|
|
551
552
|
return delete l.context, l;
|
|
552
553
|
})
|
|
553
554
|
);
|
|
554
|
-
|
|
555
|
+
Le.canUseDOM ? qe(s) : j && (n = j(s)), r(n);
|
|
555
556
|
}
|
|
556
557
|
// componentWillMount will be deprecated
|
|
557
558
|
// for SSR, initialize on first render
|
|
@@ -566,9 +567,9 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
566
567
|
render() {
|
|
567
568
|
return this.init(), null;
|
|
568
569
|
}
|
|
569
|
-
}, H,
|
|
570
|
+
}, H, Ge = (H = class extends U {
|
|
570
571
|
shouldComponentUpdate(e) {
|
|
571
|
-
return !
|
|
572
|
+
return !ge(W(this.props, "helmetData"), W(e, "helmetData"));
|
|
572
573
|
}
|
|
573
574
|
mapNestedChildrenToProps(e, t) {
|
|
574
575
|
if (!t)
|
|
@@ -648,10 +649,10 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
648
649
|
}
|
|
649
650
|
mapChildrenToProps(e, t) {
|
|
650
651
|
let r = {};
|
|
651
|
-
return
|
|
652
|
+
return h.Children.forEach(e, (n) => {
|
|
652
653
|
if (!n || !n.props)
|
|
653
654
|
return;
|
|
654
|
-
const { children: s, ...o } = n.props, l = Object.keys(o).reduce((a, c) => (a[
|
|
655
|
+
const { children: s, ...o } = n.props, l = Object.keys(o).reduce((a, c) => (a[Ee[c] || c] = o[c], a), {});
|
|
655
656
|
let { type: i } = n;
|
|
656
657
|
switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
|
|
657
658
|
case "Symbol(react.fragment)":
|
|
@@ -678,23 +679,23 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
678
679
|
render() {
|
|
679
680
|
const { children: e, ...t } = this.props;
|
|
680
681
|
let r = { ...t }, { helmetData: n } = t;
|
|
681
|
-
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof
|
|
682
|
+
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof L)) {
|
|
682
683
|
const s = n;
|
|
683
|
-
n = new
|
|
684
|
+
n = new L(s.context, !0), delete r.helmetData;
|
|
684
685
|
}
|
|
685
|
-
return n ? /* @__PURE__ */
|
|
686
|
+
return n ? /* @__PURE__ */ h.createElement(J, { ...r, context: n.value }) : /* @__PURE__ */ h.createElement(oe.Consumer, null, (s) => /* @__PURE__ */ h.createElement(J, { ...r, context: s }));
|
|
686
687
|
}
|
|
687
688
|
}, T(H, "defaultProps", {
|
|
688
689
|
defer: !0,
|
|
689
690
|
encodeSpecialCharacters: !0,
|
|
690
691
|
prioritizeSeoTags: !1
|
|
691
692
|
}), H);
|
|
692
|
-
const
|
|
693
|
+
const Je = (e) => {
|
|
693
694
|
const t = $(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
|
|
694
695
|
var o;
|
|
695
696
|
!(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
|
|
696
697
|
};
|
|
697
|
-
return /* @__PURE__ */
|
|
698
|
+
return /* @__PURE__ */ ue.jsx(fe, { onClick: n, ...e });
|
|
698
699
|
}, ie = (e, t) => {
|
|
699
700
|
for (const r of e) {
|
|
700
701
|
const n = V(r, t);
|
|
@@ -711,19 +712,19 @@ const We = (e) => {
|
|
|
711
712
|
]);
|
|
712
713
|
if (o !== void 0) return o;
|
|
713
714
|
}
|
|
714
|
-
},
|
|
715
|
+
}, Qe = () => {
|
|
715
716
|
const e = $(), t = K(), { sidebars: r } = Q(), n = t != null && t.id ? r[t.id] : [];
|
|
716
717
|
return ie(n, (s) => {
|
|
717
718
|
if (s.type === "doc" && S(t == null ? void 0 : t.id, s.id) === e.pathname)
|
|
718
719
|
return s;
|
|
719
720
|
});
|
|
720
|
-
},
|
|
721
|
+
}, Ne = (e) => {
|
|
721
722
|
const t = $(), r = K();
|
|
722
723
|
return V(e, (n) => {
|
|
723
724
|
if (n.type === "category" && n.link && S(r == null ? void 0 : r.id, n.link.id) === t.pathname || n.type === "doc" && S(r == null ? void 0 : r.id, n.id) === t.pathname)
|
|
724
725
|
return !0;
|
|
725
726
|
});
|
|
726
|
-
},
|
|
727
|
+
}, et = () => {
|
|
727
728
|
const e = $().pathname, { sidebars: t } = Q(), r = K(), n = r != null && r.id ? t[r.id] : [];
|
|
728
729
|
let s, o, l = !1;
|
|
729
730
|
return ie(n, (i) => {
|
|
@@ -736,13 +737,13 @@ const We = (e) => {
|
|
|
736
737
|
}), { prev: s, next: o };
|
|
737
738
|
};
|
|
738
739
|
export {
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
740
|
+
Je as A,
|
|
741
|
+
Ge as H,
|
|
742
|
+
We as M,
|
|
743
|
+
et as a,
|
|
744
|
+
de as b,
|
|
745
|
+
Le as c,
|
|
746
|
+
Ne as d,
|
|
747
|
+
Qe as u
|
|
747
748
|
};
|
|
748
|
-
//# sourceMappingURL=utils-
|
|
749
|
+
//# sourceMappingURL=utils-ByIc_KIM.js.map
|