zudoku 0.0.0-eff6f9b → 0.0.0-f1a6fd4
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/README.md +121 -0
- package/dist/app/main.js +3 -3
- package/dist/app/main.js.map +1 -1
- package/dist/cli/dev/handler.js +2 -2
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +2 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +1 -0
- package/dist/config/validators/validate.d.ts +42 -23
- package/dist/config/validators/validate.js +6 -2
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/lib/authentication/state.d.ts +16 -0
- package/dist/lib/authentication/state.js +5 -0
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Banner.js +7 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +1 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +9 -1
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +2 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +9 -2
- package/dist/lib/components/SlotletProvider.js +4 -2
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +1 -1
- package/dist/lib/oas/graphql/index.d.ts +2 -1
- package/dist/lib/oas/graphql/index.js +23 -15
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +1 -0
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
- package/dist/lib/plugins/custom-pages/index.js +11 -0
- package/dist/lib/plugins/custom-pages/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.js +2 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -3
- package/dist/lib/plugins/openapi/Endpoint.js +46 -8
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +2 -2
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +2 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +1 -1
- package/dist/lib/plugins/openapi/Route.js +1 -1
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +15 -4
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.d.ts +2 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +10 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +26 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +87 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +3 -2
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +13 -5
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.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/lib/ui/Callout.d.ts +36 -35
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Drawer.d.ts +8 -10
- package/dist/lib/ui/Drawer.js.map +1 -1
- package/dist/lib/util/useExposedProps.d.ts +2 -0
- package/dist/lib/util/useExposedProps.js +8 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/vite/config.d.ts +1 -1
- package/dist/vite/config.js +21 -15
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.d.ts +6 -1
- package/dist/vite/dev-server.js +14 -4
- 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-component.js +0 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +9 -4
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +4 -0
- package/dist/vite/plugin-custom-pages.js +30 -0
- package/dist/vite/plugin-custom-pages.js.map +1 -0
- package/dist/vite/plugin-frontmatter.d.ts +2 -0
- package/dist/vite/plugin-frontmatter.js +30 -0
- package/dist/vite/plugin-frontmatter.js.map +1 -0
- package/dist/vite/plugin-mdx.js +3 -0
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-sidebar.js +14 -1
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.js +4 -2
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{AuthenticationPlugin-gtf8JS3V.js → AuthenticationPlugin-CbgJ5SAh.js} +3 -3
- package/lib/{AuthenticationPlugin-gtf8JS3V.js.map → AuthenticationPlugin-CbgJ5SAh.js.map} +1 -1
- package/lib/{CategoryHeading-XnFqN2lJ.js → CategoryHeading-3Qtp2yZ8.js} +2 -2
- package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-3Qtp2yZ8.js.map} +1 -1
- package/lib/{DeveloperHint-FBb2uXJe.js → DeveloperHint-BE9DzNhv.js} +2 -2
- package/lib/{DeveloperHint-FBb2uXJe.js.map → DeveloperHint-BE9DzNhv.js.map} +1 -1
- package/lib/ErrorPage-B0COs372.js +16 -0
- package/lib/ErrorPage-B0COs372.js.map +1 -0
- package/lib/Input-CHfE_2Qk.js +2229 -0
- package/lib/Input-CHfE_2Qk.js.map +1 -0
- package/lib/{Markdown-B4aR03g6.js → Markdown-CWI6lU11.js} +1448 -1286
- package/lib/Markdown-CWI6lU11.js.map +1 -0
- package/lib/{MdxPage-BcftTg5g.js → MdxPage-C3tlrV4j.js} +24 -24
- package/lib/MdxPage-C3tlrV4j.js.map +1 -0
- package/lib/{OperationList-Da36LrGl.js → OperationList-BO-ES1C5.js} +149 -108
- package/lib/OperationList-BO-ES1C5.js.map +1 -0
- package/lib/{Route-CWj1ECzh.js → Route-Dq6zv0Pi.js} +3 -4
- package/lib/Route-Dq6zv0Pi.js.map +1 -0
- package/lib/SidebarBadge-DmI5hT04.js +503 -0
- package/lib/SidebarBadge-DmI5hT04.js.map +1 -0
- package/lib/{SlotletProvider-DJMaOUDs.js → SlotletProvider-RvaeLR6z.js} +43 -42
- package/lib/{SlotletProvider-DJMaOUDs.js.map → SlotletProvider-RvaeLR6z.js.map} +1 -1
- package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
- package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
- package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
- package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
- package/lib/assets/{worker-TYRbYl6N.js → worker-Bf8vjASY.js} +6768 -4410
- package/lib/assets/worker-Bf8vjASY.js.map +1 -0
- package/lib/{index-BG0g4WW0.js → index-BRCiYFaL.js} +747 -737
- package/lib/index-BRCiYFaL.js.map +1 -0
- package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
- package/lib/index-CkwDvuPt.js.map +1 -0
- package/lib/index-D06ATMgg.js +2094 -0
- package/lib/index-D06ATMgg.js.map +1 -0
- package/lib/index-DJqnphbT.js +35 -0
- package/lib/index-DJqnphbT.js.map +1 -0
- package/lib/{index-DIkaYL-l.js → index-DNfiZTPV.js} +1956 -1676
- package/lib/index-DNfiZTPV.js.map +1 -0
- package/lib/{index-BoXX7LeD.js → index-Do_BBSIs.js} +597 -544
- package/lib/index-Do_BBSIs.js.map +1 -0
- package/lib/{index-B_9xr661.js → index-Dvh1BL_e.js} +3 -3
- package/lib/{index-B_9xr661.js.map → index-Dvh1BL_e.js.map} +1 -1
- package/lib/joinPath-B7kNnUX4.js +8 -0
- package/lib/joinPath-B7kNnUX4.js.map +1 -0
- package/lib/router-Oe6YmY6B.js +3024 -0
- package/lib/router-Oe6YmY6B.js.map +1 -0
- package/lib/state-CsuHT8ZO.js +183 -0
- package/lib/state-CsuHT8ZO.js.map +1 -0
- package/lib/urql-core-KJnLL26g.js +1455 -0
- package/lib/urql-core-KJnLL26g.js.map +1 -0
- package/lib/useExposedProps-Csw8oAlt.js +9 -0
- package/lib/useExposedProps-Csw8oAlt.js.map +1 -0
- package/lib/{utils-DtEHoAvg.js → utils-Chi3p5nE.js} +101 -104
- package/lib/utils-Chi3p5nE.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +363 -350
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1695 -1621
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +4671 -4383
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +7 -7
- package/lib/zudoku.plugin-custom-pages.js +21 -0
- package/lib/zudoku.plugin-custom-pages.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +10 -9
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +71 -69
- package/src/app/main.tsx +3 -3
- package/src/lib/authentication/state.ts +17 -0
- package/src/lib/components/Banner.tsx +12 -2
- package/src/lib/components/ErrorPage.tsx +0 -2
- package/src/lib/components/Header.tsx +4 -2
- package/src/lib/components/InlineCode.tsx +10 -0
- package/src/lib/components/Layout.tsx +2 -1
- package/src/lib/components/MobileTopNavigation.tsx +4 -0
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/SlotletProvider.tsx +27 -4
- package/src/lib/components/index.ts +1 -1
- package/src/lib/core/DevPortalContext.ts +1 -1
- package/src/lib/oas/graphql/index.ts +35 -23
- package/src/lib/oas/parser/index.ts +1 -0
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +24 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/openapi/Endpoint.tsx +86 -22
- package/src/lib/plugins/openapi/OperationList.tsx +4 -2
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +3 -0
- package/src/lib/plugins/openapi/Route.tsx +1 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +18 -3
- package/src/lib/plugins/openapi/SimpleSelect.tsx +10 -2
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
- package/src/lib/plugins/openapi/graphql/gql.ts +11 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +113 -1
- package/src/lib/plugins/openapi/index.tsx +3 -6
- package/src/lib/plugins/openapi/playground/Playground.tsx +39 -5
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -1
- package/src/lib/plugins/openapi/playground/createUrl.ts +6 -1
- package/src/lib/ui/Callout.tsx +7 -6
- package/src/lib/ui/Drawer.tsx +38 -36
- package/src/lib/util/useExposedProps.tsx +10 -0
- package/dist/lib/plugins/custom-page/index.d.ts +0 -8
- package/dist/lib/plugins/custom-page/index.js +0 -12
- package/dist/lib/plugins/custom-page/index.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
- package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
- package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
- package/dist/lib/plugins/openapi/util/urql.js +0 -8
- package/dist/lib/plugins/openapi/util/urql.js.map +0 -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/dist/vite/plugin-icons.d.ts +0 -3
- package/dist/vite/plugin-icons.js +0 -47
- package/dist/vite/plugin-icons.js.map +0 -1
- package/lib/ErrorPage-knunPbKI.js +0 -18
- package/lib/ErrorPage-knunPbKI.js.map +0 -1
- package/lib/Input-B1kkVL1R.js +0 -2198
- package/lib/Input-B1kkVL1R.js.map +0 -1
- package/lib/Markdown-B4aR03g6.js.map +0 -1
- package/lib/MdxPage-BcftTg5g.js.map +0 -1
- package/lib/OperationList-Da36LrGl.js.map +0 -1
- package/lib/Route-CWj1ECzh.js.map +0 -1
- package/lib/SidebarBadge-DdvT2qep.js +0 -498
- package/lib/SidebarBadge-DdvT2qep.js.map +0 -1
- package/lib/ZudokuContext-em1gHkIY.js +0 -1084
- package/lib/ZudokuContext-em1gHkIY.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B9EWVYfo.js.map +0 -1
- package/lib/assets/worker-TYRbYl6N.js.map +0 -1
- package/lib/index-BG0g4WW0.js.map +0 -1
- package/lib/index-BoXX7LeD.js.map +0 -1
- package/lib/index-CLd8ycZz.js.map +0 -1
- package/lib/index-DIkaYL-l.js.map +0 -1
- package/lib/router-D2p7Olpn.js +0 -2971
- package/lib/router-D2p7Olpn.js.map +0 -1
- package/lib/slugify-DbLhpSPt.js +0 -28
- package/lib/slugify-DbLhpSPt.js.map +0 -1
- package/lib/state-BUM4jc0J.js +0 -288
- package/lib/state-BUM4jc0J.js.map +0 -1
- package/lib/urql-YhcsXYy8.js +0 -1591
- package/lib/urql-YhcsXYy8.js.map +0 -1
- package/lib/utils-DtEHoAvg.js.map +0 -1
- package/lib/zudoku.plugin-custom-page.js +0 -13
- package/lib/zudoku.plugin-custom-page.js.map +0 -1
- package/src/lib/plugins/custom-page/index.tsx +0 -22
- package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
- package/src/lib/plugins/openapi/util/urql.ts +0 -8
- 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
|
-
import { g as q } from "./
|
|
5
|
+
import { g as q } from "./index-DJqnphbT.js";
|
|
6
6
|
import { j as ue } from "./jsx-runtime-B6kdoens.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { u as $, L as fe } from "./index-BRCiYFaL.js";
|
|
8
|
+
import { j as S } from "./joinPath-B7kNnUX4.js";
|
|
9
|
+
import { c as K, u as Q } from "./ZudokuContext-BEmsYQoq.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-Chi3p5nE.js.map
|