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