zudoku 0.0.0-eff6f9b → 0.0.0-f5761c9
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/config.d.ts +2 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/oas/graphql/index.d.ts +2 -1
- package/dist/lib/oas/graphql/index.js +11 -9
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +2 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +2 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +3 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/vite/config.d.ts +1 -1
- package/dist/vite/config.js +7 -3
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +1 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api.js +4 -7
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +9 -4
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/lib/{AuthenticationPlugin-gtf8JS3V.js → AuthenticationPlugin-Bx9FK124.js} +2 -2
- package/lib/{AuthenticationPlugin-gtf8JS3V.js.map → AuthenticationPlugin-Bx9FK124.js.map} +1 -1
- package/lib/{CategoryHeading-XnFqN2lJ.js → CategoryHeading-EN3W3xEN.js} +2 -2
- package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-EN3W3xEN.js.map} +1 -1
- package/lib/{DeveloperHint-FBb2uXJe.js → DeveloperHint-CZ4VwuKw.js} +2 -2
- package/lib/{DeveloperHint-FBb2uXJe.js.map → DeveloperHint-CZ4VwuKw.js.map} +1 -1
- package/lib/{ErrorPage-knunPbKI.js → ErrorPage-C5Pnyfbg.js} +3 -3
- package/lib/{ErrorPage-knunPbKI.js.map → ErrorPage-C5Pnyfbg.js.map} +1 -1
- package/lib/{Input-B1kkVL1R.js → Input-DulGxZh-.js} +4 -4
- package/lib/{Input-B1kkVL1R.js.map → Input-DulGxZh-.js.map} +1 -1
- package/lib/{Markdown-B4aR03g6.js → Markdown-BUUIyZbc.js} +788 -792
- package/lib/Markdown-BUUIyZbc.js.map +1 -0
- package/lib/{MdxPage-BcftTg5g.js → MdxPage-COBmXj_4.js} +23 -23
- package/lib/MdxPage-COBmXj_4.js.map +1 -0
- package/lib/{OperationList-Da36LrGl.js → OperationList-BwJXexkA.js} +8 -8
- package/lib/{OperationList-Da36LrGl.js.map → OperationList-BwJXexkA.js.map} +1 -1
- package/lib/{Route-CWj1ECzh.js → Route-CX_-Q1HO.js} +2 -2
- package/lib/{Route-CWj1ECzh.js.map → Route-CX_-Q1HO.js.map} +1 -1
- package/lib/{SidebarBadge-DdvT2qep.js → SidebarBadge-gvlvsv3E.js} +3 -3
- package/lib/{SidebarBadge-DdvT2qep.js.map → SidebarBadge-gvlvsv3E.js.map} +1 -1
- package/lib/{SlotletProvider-DJMaOUDs.js → SlotletProvider-CULK8zmk.js} +4 -4
- package/lib/{SlotletProvider-DJMaOUDs.js.map → SlotletProvider-CULK8zmk.js.map} +1 -1
- package/lib/{ZudokuContext-em1gHkIY.js → ZudokuContext-cr-pTRY1.js} +4 -4
- package/lib/{ZudokuContext-em1gHkIY.js.map → ZudokuContext-cr-pTRY1.js.map} +1 -1
- package/lib/assets/{worker-TYRbYl6N.js → worker-DgVH8VJc.js} +3411 -1341
- package/lib/assets/worker-DgVH8VJc.js.map +1 -0
- package/lib/{index-BoXX7LeD.js → index-BfA1oLPP.js} +3 -3
- package/lib/{index-BoXX7LeD.js.map → index-BfA1oLPP.js.map} +1 -1
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/index-Bn6Lc9tq.js.map +1 -0
- package/lib/{index-DIkaYL-l.js → index-BuA1OA5H.js} +422 -418
- package/lib/index-BuA1OA5H.js.map +1 -0
- package/lib/index-LNp6rxyU.js +2094 -0
- package/lib/index-LNp6rxyU.js.map +1 -0
- package/lib/{index-B_9xr661.js → index-Q0TPJvr8.js} +3 -3
- package/lib/{index-B_9xr661.js.map → index-Q0TPJvr8.js.map} +1 -1
- package/lib/joinPath-B7kNnUX4.js +8 -0
- package/lib/joinPath-B7kNnUX4.js.map +1 -0
- package/lib/{utils-DtEHoAvg.js → utils-ByIc_KIM.js} +100 -103
- package/lib/utils-ByIc_KIM.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.components.js +41 -40
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +282 -283
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +3 -3
- package/src/lib/oas/graphql/index.ts +20 -12
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/openapi/index.tsx +2 -1
- package/src/lib/plugins/openapi/playground/createUrl.ts +6 -1
- package/dist/lib/util/slugify.d.ts +0 -2
- package/dist/lib/util/slugify.js +0 -3
- package/dist/lib/util/slugify.js.map +0 -1
- package/lib/Markdown-B4aR03g6.js.map +0 -1
- package/lib/MdxPage-BcftTg5g.js.map +0 -1
- package/lib/assets/worker-TYRbYl6N.js.map +0 -1
- package/lib/index-DIkaYL-l.js.map +0 -1
- package/lib/slugify-DbLhpSPt.js +0 -28
- package/lib/slugify-DbLhpSPt.js.map +0 -1
- package/lib/utils-DtEHoAvg.js.map +0 -1
- package/src/lib/util/slugify.ts +0 -3
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var T = (e, t, r) =>
|
|
1
|
+
var ce = Object.defineProperty;
|
|
2
|
+
var le = (e, t, r) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var T = (e, t, r) => le(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import h, { Component as U } from "react";
|
|
5
5
|
import { g as q } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
6
6
|
import { j as ue } from "./jsx-runtime-B6kdoens.js";
|
|
7
|
-
import { b as
|
|
8
|
-
import {
|
|
7
|
+
import { b as $, L as fe } from "./index-BG0g4WW0.js";
|
|
8
|
+
import { j as S } from "./joinPath-B7kNnUX4.js";
|
|
9
|
+
import { c as K, u as Q } from "./ZudokuContext-cr-pTRY1.js";
|
|
9
10
|
const _ = {}, N = h.createContext(_);
|
|
10
11
|
function de(e) {
|
|
11
12
|
const t = h.useContext(N);
|
|
@@ -16,7 +17,7 @@ function de(e) {
|
|
|
16
17
|
[t, e]
|
|
17
18
|
);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function We(e) {
|
|
20
21
|
let t;
|
|
21
22
|
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(_) : e.components || _ : t = de(e.components), h.createElement(
|
|
22
23
|
N.Provider,
|
|
@@ -81,7 +82,7 @@ var Te = function(t, r) {
|
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
84
|
const ge = /* @__PURE__ */ q(Te);
|
|
84
|
-
var ve = function(e, t, r, n, s, o,
|
|
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) {
|
|
@@ -91,10 +92,10 @@ var ve = function(e, t, r, n, s, o, c, i) {
|
|
|
91
92
|
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
92
93
|
);
|
|
93
94
|
else {
|
|
94
|
-
var
|
|
95
|
+
var c = [r, n, s, o, l, i], u = 0;
|
|
95
96
|
a = new Error(
|
|
96
97
|
t.replace(/%s/g, function() {
|
|
97
|
-
return
|
|
98
|
+
return c[u++];
|
|
98
99
|
})
|
|
99
100
|
), a.name = "Invariant Violation";
|
|
100
101
|
}
|
|
@@ -110,11 +111,11 @@ var be = function(t, r, n, s) {
|
|
|
110
111
|
return !0;
|
|
111
112
|
if (typeof t != "object" || !t || typeof r != "object" || !r)
|
|
112
113
|
return !1;
|
|
113
|
-
var
|
|
114
|
-
if (
|
|
114
|
+
var l = Object.keys(t), i = Object.keys(r);
|
|
115
|
+
if (l.length !== i.length)
|
|
115
116
|
return !1;
|
|
116
|
-
for (var a = Object.prototype.hasOwnProperty.bind(r),
|
|
117
|
-
var u = c
|
|
117
|
+
for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < l.length; c++) {
|
|
118
|
+
var u = l[c];
|
|
118
119
|
if (!a(u))
|
|
119
120
|
return !1;
|
|
120
121
|
var f = t[u], m = r[u];
|
|
@@ -199,26 +200,26 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
199
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
|
-
const
|
|
203
|
+
const l = {};
|
|
203
204
|
o.filter((a) => {
|
|
204
|
-
let
|
|
205
|
+
let c;
|
|
205
206
|
const u = Object.keys(a);
|
|
206
207
|
for (let m = 0; m < u.length; m += 1) {
|
|
207
208
|
const d = u[m], g = d.toLowerCase();
|
|
208
|
-
t.indexOf(g) !== -1 && !(
|
|
209
|
+
t.indexOf(g) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (c = g), t.indexOf(d) !== -1 && (d === "innerHTML" || d === "cssText" || d === "itemprop") && (c = d);
|
|
209
210
|
}
|
|
210
|
-
if (!
|
|
211
|
+
if (!c || !a[c])
|
|
211
212
|
return !1;
|
|
212
|
-
const f = a[
|
|
213
|
-
return n[
|
|
213
|
+
const f = a[c].toLowerCase();
|
|
214
|
+
return n[c] || (n[c] = {}), l[c] || (l[c] = {}), n[c][f] ? !1 : (l[c][f] = !0, !0);
|
|
214
215
|
}).reverse().forEach((a) => s.push(a));
|
|
215
|
-
const i = Object.keys(
|
|
216
|
+
const i = Object.keys(l);
|
|
216
217
|
for (let a = 0; a < i.length; a += 1) {
|
|
217
|
-
const
|
|
218
|
-
...n[
|
|
219
|
-
...c
|
|
218
|
+
const c = i[a], u = {
|
|
219
|
+
...n[c],
|
|
220
|
+
...l[c]
|
|
220
221
|
};
|
|
221
|
-
n[
|
|
222
|
+
n[c] = u;
|
|
222
223
|
}
|
|
223
224
|
return s;
|
|
224
225
|
}, []).reverse();
|
|
@@ -229,7 +230,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
229
230
|
return !0;
|
|
230
231
|
}
|
|
231
232
|
return !1;
|
|
232
|
-
},
|
|
233
|
+
}, ke = (e) => ({
|
|
233
234
|
baseTag: we([
|
|
234
235
|
"href"
|
|
235
236
|
/* HREF */
|
|
@@ -280,14 +281,14 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
280
281
|
title: Oe(e),
|
|
281
282
|
titleAttributes: M("titleAttributes", e),
|
|
282
283
|
prioritizeSeoTags: Pe(e, b.PRIORITIZE_SEO_TAGS)
|
|
283
|
-
}), te = (e) => Array.isArray(e) ? e.join("") : e,
|
|
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,
|
|
@@ -297,26 +298,26 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
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
|
-
const o = s,
|
|
314
|
-
(
|
|
315
|
-
).reduce((
|
|
316
|
-
const f = typeof o[u] > "u" ? u : `${u}="${
|
|
317
|
-
return
|
|
314
|
+
const o = s, l = Object.keys(o).filter(
|
|
315
|
+
(c) => !(c === "innerHTML" || c === "cssText")
|
|
316
|
+
).reduce((c, u) => {
|
|
317
|
+
const f = typeof o[u] > "u" ? u : `${u}="${R(o[u], r)}"`;
|
|
318
|
+
return c ? `${c} ${f}` : f;
|
|
318
319
|
}, ""), i = o.innerHTML || o.cssText || "", a = De.indexOf(e) === -1;
|
|
319
|
-
return `${n}<${e} ${y}="true" ${
|
|
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;
|
|
@@ -326,7 +327,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
326
327
|
[y]: !0
|
|
327
328
|
}, s = ne(r, n);
|
|
328
329
|
return [h.createElement("title", s, t)];
|
|
329
|
-
},
|
|
330
|
+
}, k = (e, t) => t.map((r, n) => {
|
|
330
331
|
const s = {
|
|
331
332
|
key: n,
|
|
332
333
|
[y]: !0
|
|
@@ -354,18 +355,18 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
354
355
|
};
|
|
355
356
|
default:
|
|
356
357
|
return {
|
|
357
|
-
toComponent: () =>
|
|
358
|
+
toComponent: () => k(e, t),
|
|
358
359
|
toString: () => Ie(e, t, r)
|
|
359
360
|
};
|
|
360
361
|
}
|
|
361
362
|
}, _e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
362
|
-
const s = I(e, D.meta), o = I(t, D.link),
|
|
363
|
+
const s = I(e, D.meta), o = I(t, D.link), l = I(r, D.script);
|
|
363
364
|
return {
|
|
364
365
|
priorityMethods: {
|
|
365
366
|
toComponent: () => [
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
...k("meta", s.priority),
|
|
368
|
+
...k("link", o.priority),
|
|
369
|
+
...k("script", l.priority)
|
|
369
370
|
],
|
|
370
371
|
toString: () => (
|
|
371
372
|
// generate all the tags as strings and concatenate them
|
|
@@ -373,31 +374,31 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
373
374
|
"link",
|
|
374
375
|
o.priority,
|
|
375
376
|
n
|
|
376
|
-
)} ${p("script",
|
|
377
|
+
)} ${p("script", l.priority, n)}`
|
|
377
378
|
)
|
|
378
379
|
},
|
|
379
380
|
metaTags: s.default,
|
|
380
381
|
linkTags: o.default,
|
|
381
|
-
scriptTags:
|
|
382
|
+
scriptTags: l.default
|
|
382
383
|
};
|
|
383
|
-
},
|
|
384
|
+
}, Re = (e) => {
|
|
384
385
|
const {
|
|
385
386
|
baseTag: t,
|
|
386
387
|
bodyAttributes: r,
|
|
387
388
|
encode: n = !0,
|
|
388
389
|
htmlAttributes: s,
|
|
389
390
|
noscriptTags: o,
|
|
390
|
-
styleTags:
|
|
391
|
+
styleTags: l,
|
|
391
392
|
title: i = "",
|
|
392
393
|
titleAttributes: a,
|
|
393
|
-
prioritizeSeoTags:
|
|
394
|
+
prioritizeSeoTags: c
|
|
394
395
|
} = e;
|
|
395
396
|
let { linkTags: u, metaTags: f, scriptTags: m } = e, d = {
|
|
396
397
|
toComponent: () => {
|
|
397
398
|
},
|
|
398
399
|
toString: () => ""
|
|
399
400
|
};
|
|
400
|
-
return
|
|
401
|
+
return c && ({ priorityMethods: d, linkTags: u, metaTags: f, scriptTags: m } = _e(e)), {
|
|
401
402
|
priority: d,
|
|
402
403
|
base: p("base", t, n),
|
|
403
404
|
bodyAttributes: p("bodyAttributes", r, n),
|
|
@@ -406,10 +407,10 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
406
407
|
meta: p("meta", f, n),
|
|
407
408
|
noscript: p("noscript", o, n),
|
|
408
409
|
script: p("script", m, n),
|
|
409
|
-
style: p("style",
|
|
410
|
+
style: p("style", l, n),
|
|
410
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,7 +444,7 @@ 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");
|
|
@@ -457,20 +458,20 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
457
458
|
"head"
|
|
458
459
|
/* HEAD */
|
|
459
460
|
), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), o = [];
|
|
460
|
-
let
|
|
461
|
+
let l;
|
|
461
462
|
return t && t.length && t.forEach((i) => {
|
|
462
463
|
const a = document.createElement(e);
|
|
463
|
-
for (const
|
|
464
|
-
if (Object.prototype.hasOwnProperty.call(i,
|
|
465
|
-
if (
|
|
464
|
+
for (const c in i)
|
|
465
|
+
if (Object.prototype.hasOwnProperty.call(i, c))
|
|
466
|
+
if (c === "innerHTML")
|
|
466
467
|
a.innerHTML = i.innerHTML;
|
|
467
|
-
else if (
|
|
468
|
+
else if (c === "cssText")
|
|
468
469
|
a.styleSheet ? a.styleSheet.cssText = i.cssText : a.appendChild(document.createTextNode(i.cssText));
|
|
469
470
|
else {
|
|
470
|
-
const u =
|
|
471
|
-
a.setAttribute(
|
|
471
|
+
const u = c, f = typeof i[u] > "u" ? "" : i[u];
|
|
472
|
+
a.setAttribute(c, f);
|
|
472
473
|
}
|
|
473
|
-
a.setAttribute(y, "true"), s.some((
|
|
474
|
+
a.setAttribute(y, "true"), s.some((c, u) => (l = u, a.isEqualNode(c))) ? s.splice(l, 1) : o.push(a);
|
|
474
475
|
}), s.forEach((i) => {
|
|
475
476
|
var a;
|
|
476
477
|
return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
|
|
@@ -482,16 +483,16 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
482
483
|
const r = document.getElementsByTagName(e)[0];
|
|
483
484
|
if (!r)
|
|
484
485
|
return;
|
|
485
|
-
const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s],
|
|
486
|
-
for (const i of
|
|
486
|
+
const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], l = Object.keys(t);
|
|
487
|
+
for (const i of l) {
|
|
487
488
|
const a = t[i] || "";
|
|
488
489
|
r.getAttribute(i) !== a && r.setAttribute(i, a), s.indexOf(i) === -1 && s.push(i);
|
|
489
|
-
const
|
|
490
|
-
|
|
490
|
+
const c = o.indexOf(i);
|
|
491
|
+
c !== -1 && o.splice(c, 1);
|
|
491
492
|
}
|
|
492
493
|
for (let i = o.length - 1; i >= 0; i -= 1)
|
|
493
494
|
r.removeAttribute(o[i]);
|
|
494
|
-
s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !==
|
|
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) => {
|
|
@@ -500,10 +501,10 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
500
501
|
bodyAttributes: n,
|
|
501
502
|
htmlAttributes: s,
|
|
502
503
|
linkTags: o,
|
|
503
|
-
metaTags:
|
|
504
|
+
metaTags: l,
|
|
504
505
|
noscriptTags: i,
|
|
505
506
|
onChangeClientState: a,
|
|
506
|
-
scriptTags:
|
|
507
|
+
scriptTags: c,
|
|
507
508
|
styleTags: u,
|
|
508
509
|
title: f,
|
|
509
510
|
titleAttributes: m
|
|
@@ -512,15 +513,15 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
512
513
|
const d = {
|
|
513
514
|
baseTag: A("base", r),
|
|
514
515
|
linkTags: A("link", o),
|
|
515
|
-
metaTags: A("meta",
|
|
516
|
+
metaTags: A("meta", l),
|
|
516
517
|
noscriptTags: A("noscript", i),
|
|
517
|
-
scriptTags: A("script",
|
|
518
|
+
scriptTags: A("script", c),
|
|
518
519
|
styleTags: A("style", u)
|
|
519
|
-
}, g = {},
|
|
520
|
+
}, g = {}, Y = {};
|
|
520
521
|
Object.keys(d).forEach((w) => {
|
|
521
|
-
const { newTags:
|
|
522
|
-
|
|
523
|
-
}), t && t(), a(e, g,
|
|
522
|
+
const { newTags: B, oldTags: ae } = d[w];
|
|
523
|
+
B.length && (g[w] = B), ae.length && (Y[w] = d[w].oldTags);
|
|
524
|
+
}), t && t(), a(e, g, Y);
|
|
524
525
|
}, O = null, Ue = (e) => {
|
|
525
526
|
O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
|
|
526
527
|
G(e, () => {
|
|
@@ -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
|
-
const
|
|
551
|
-
return delete
|
|
551
|
+
const l = { ...o.props };
|
|
552
|
+
return delete l.context, l;
|
|
552
553
|
})
|
|
553
554
|
);
|
|
554
|
-
Le.canUseDOM ? qe(s) :
|
|
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,7 +567,7 @@ 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
572
|
return !ge(W(this.props, "helmetData"), W(e, "helmetData"));
|
|
572
573
|
}
|
|
@@ -651,7 +652,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
651
652
|
return h.Children.forEach(e, (n) => {
|
|
652
653
|
if (!n || !n.props)
|
|
653
654
|
return;
|
|
654
|
-
const { children: s, ...o } = n.props,
|
|
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)":
|
|
@@ -665,12 +666,12 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
665
666
|
r = this.flattenArrayTypeChildren(
|
|
666
667
|
n,
|
|
667
668
|
r,
|
|
668
|
-
|
|
669
|
+
l,
|
|
669
670
|
s
|
|
670
671
|
);
|
|
671
672
|
break;
|
|
672
673
|
default:
|
|
673
|
-
t = this.mapObjectTypeChildren(n, t,
|
|
674
|
+
t = this.mapObjectTypeChildren(n, t, l, s);
|
|
674
675
|
break;
|
|
675
676
|
}
|
|
676
677
|
}), this.mapArrayTypeChildrenToProps(r, t);
|
|
@@ -689,11 +690,8 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
689
690
|
encodeSpecialCharacters: !0,
|
|
690
691
|
prioritizeSeoTags: !1
|
|
691
692
|
}), H);
|
|
692
|
-
const
|
|
693
|
-
const t =
|
|
694
|
-
return t ? `/${t}` : "/";
|
|
695
|
-
}, Ge = (e) => {
|
|
696
|
-
const t = k(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
|
|
693
|
+
const Je = (e) => {
|
|
694
|
+
const t = $(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
|
|
697
695
|
var o;
|
|
698
696
|
!(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
|
|
699
697
|
};
|
|
@@ -714,39 +712,38 @@ const S = (...e) => {
|
|
|
714
712
|
]);
|
|
715
713
|
if (o !== void 0) return o;
|
|
716
714
|
}
|
|
717
|
-
},
|
|
718
|
-
const e =
|
|
715
|
+
}, Qe = () => {
|
|
716
|
+
const e = $(), t = K(), { sidebars: r } = Q(), n = t != null && t.id ? r[t.id] : [];
|
|
719
717
|
return ie(n, (s) => {
|
|
720
718
|
if (s.type === "doc" && S(t == null ? void 0 : t.id, s.id) === e.pathname)
|
|
721
719
|
return s;
|
|
722
720
|
});
|
|
723
|
-
},
|
|
724
|
-
const t =
|
|
721
|
+
}, Ne = (e) => {
|
|
722
|
+
const t = $(), r = K();
|
|
725
723
|
return V(e, (n) => {
|
|
726
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)
|
|
727
725
|
return !0;
|
|
728
726
|
});
|
|
729
|
-
},
|
|
730
|
-
const e =
|
|
731
|
-
let s, o,
|
|
727
|
+
}, et = () => {
|
|
728
|
+
const e = $().pathname, { sidebars: t } = Q(), r = K(), n = r != null && r.id ? t[r.id] : [];
|
|
729
|
+
let s, o, l = !1;
|
|
732
730
|
return ie(n, (i) => {
|
|
733
731
|
const a = i.type === "doc" ? S(r == null ? void 0 : r.id, i.id) : i.type === "category" && i.link ? S(r == null ? void 0 : r.id, i.link.id) : void 0;
|
|
734
732
|
if (a) {
|
|
735
|
-
if (
|
|
733
|
+
if (l)
|
|
736
734
|
return o = { label: i.label, id: a }, !0;
|
|
737
|
-
e === a ?
|
|
735
|
+
e === a ? l = !0 : s = { label: i.label, id: a };
|
|
738
736
|
}
|
|
739
737
|
}), { prev: s, next: o };
|
|
740
738
|
};
|
|
741
739
|
export {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
740
|
+
Je as A,
|
|
741
|
+
Ge as H,
|
|
742
|
+
We as M,
|
|
743
|
+
et as a,
|
|
746
744
|
de as b,
|
|
747
745
|
Le as c,
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
Je as u
|
|
746
|
+
Ne as d,
|
|
747
|
+
Qe as u
|
|
751
748
|
};
|
|
752
|
-
//# sourceMappingURL=utils-
|
|
749
|
+
//# sourceMappingURL=utils-ByIc_KIM.js.map
|