zudoku 0.1.1-dev.47 → 0.1.1-dev.48
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/lib/components/Select.js +1 -1
- package/dist/lib/components/Select.js.map +1 -1
- package/dist/lib/components/index.d.ts +0 -1
- package/dist/lib/components/index.js +0 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationItem.js +1 -2
- package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +3 -5
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +1 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/api-key/index.js +1 -1
- package/dist/lib/plugins/api-key/index.js.map +1 -1
- package/dist/lib/plugins/openapi/MakeRequest.js +1 -1
- package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +7 -0
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListView.js +3 -3
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +8 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +46 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +18 -8
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +0 -2
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/lib/assets/{worker-W78u54MC.js → worker-BGlCY74N.js} +1 -1
- package/lib/zudoku.components.js +92 -97
- package/lib/zudoku.openapi-worker.js +6 -6
- package/lib/zudoku.plugins.js +4410 -4321
- package/package.json +2 -1
- package/src/lib/components/Select.tsx +3 -3
- package/src/lib/components/index.ts +0 -1
- package/src/lib/components/navigation/SideNavigationItem.tsx +1 -2
- package/src/lib/core/DevPortalContext.ts +3 -6
- package/src/lib/oas/graphql/index.ts +1 -1
- package/src/lib/plugins/api-key/index.tsx +1 -1
- package/src/lib/plugins/openapi/MakeRequest.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +7 -0
- package/src/lib/plugins/openapi/SchemaListView.tsx +4 -5
- package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +54 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +72 -25
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +0 -3
- package/dist/lib/components/DynamicIcon.d.ts +0 -6
- package/dist/lib/components/DynamicIcon.js +0 -6
- package/dist/lib/components/DynamicIcon.js.map +0 -1
- package/src/lib/components/DynamicIcon.tsx +0 -60
package/lib/zudoku.components.js
CHANGED
|
@@ -13,10 +13,10 @@ var X = (t, e, n, r) => ({
|
|
|
13
13
|
return i(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as Ve, h as He, Q as it, n as C, m as be, M as ot, a as Oe, b as L, e as ut, c as ct, d as lt, f as dt, o as _e, r as Ee, g as ht, i as we, p as je, s as ft, j as pt, k as G, u as
|
|
17
|
-
import { _ as
|
|
18
|
-
import $, { memo as We, createContext as Rt, useEffect as K, useRef as ne, useState as Lt, forwardRef as
|
|
19
|
-
var T,
|
|
16
|
+
import { S as Ve, h as He, Q as it, n as C, m as be, M as ot, a as Oe, b as L, e as ut, c as ct, d as lt, f as dt, o as _e, r as Ee, g as ht, i as we, p as je, s as ft, j as pt, k as G, u as me, l as s, N as he, q as vt, t as mt, v as B, w as ge, x as ye, y as fe, z as Fe, A as gt, B as te, R as Ke, T as Be, C as ze, D as yt, E as xt, F as St, G as bt, H as Ot, I as _t, O as Et, J as wt, K as jt, L as Pt, P as At, U as Dt, V as Ct, W as Nt, X as Mt, Y as Tt } from "./Spinner-DEkC7JSn.js";
|
|
17
|
+
import { _ as jn, Z as Pn } from "./Spinner-DEkC7JSn.js";
|
|
18
|
+
import $, { memo as We, createContext as Rt, useEffect as K, useRef as ne, useState as Lt, forwardRef as kt, Suspense as Ue, useMemo as ee } from "react";
|
|
19
|
+
var T, Ie, It = (Ie = class extends Ve {
|
|
20
20
|
constructor(e = {}) {
|
|
21
21
|
super();
|
|
22
22
|
N(this, T);
|
|
@@ -88,7 +88,7 @@ var T, ke, kt = (ke = class extends Ve {
|
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
}, T = new WeakMap(),
|
|
91
|
+
}, T = new WeakMap(), Ie), D, U, qe, qt = (qe = class extends Ve {
|
|
92
92
|
constructor(e = {}) {
|
|
93
93
|
super();
|
|
94
94
|
N(this, D);
|
|
@@ -171,7 +171,7 @@ function Qt(t) {
|
|
|
171
171
|
onFetch: (e, n) => {
|
|
172
172
|
const r = async () => {
|
|
173
173
|
var S, g, O, M, R;
|
|
174
|
-
const a = e.options, o = (O = (g = (S = e.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : O.direction, l = ((M = e.state.data) == null ? void 0 : M.pages) || [],
|
|
174
|
+
const a = e.options, o = (O = (g = (S = e.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : O.direction, l = ((M = e.state.data) == null ? void 0 : M.pages) || [], m = ((R = e.state.data) == null ? void 0 : R.pageParams) || [], E = { pages: [], pageParams: [] };
|
|
175
175
|
let x = !1;
|
|
176
176
|
const u = (h) => {
|
|
177
177
|
Object.defineProperty(h, "signal", {
|
|
@@ -200,25 +200,25 @@ function Qt(t) {
|
|
|
200
200
|
pageParams: w(h.pageParams, c, A)
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
let
|
|
203
|
+
let v;
|
|
204
204
|
if (o && l.length) {
|
|
205
205
|
const h = o === "backward", c = h ? Vt : Pe, y = {
|
|
206
206
|
pages: l,
|
|
207
|
-
pageParams:
|
|
207
|
+
pageParams: m
|
|
208
208
|
}, p = c(a, y);
|
|
209
|
-
|
|
209
|
+
v = await f(y, p, h);
|
|
210
210
|
} else {
|
|
211
|
-
|
|
211
|
+
v = await f(
|
|
212
212
|
E,
|
|
213
|
-
|
|
213
|
+
m[0] ?? a.initialPageParam
|
|
214
214
|
);
|
|
215
215
|
const h = t ?? l.length;
|
|
216
216
|
for (let c = 1; c < h; c++) {
|
|
217
|
-
const y = Pe(a,
|
|
218
|
-
|
|
217
|
+
const y = Pe(a, v);
|
|
218
|
+
v = await f(v, y);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
return
|
|
221
|
+
return v;
|
|
222
222
|
};
|
|
223
223
|
e.options.persister ? e.fetchFn = () => {
|
|
224
224
|
var a, o;
|
|
@@ -255,17 +255,17 @@ function Vt(t, { pages: e, pageParams: n }) {
|
|
|
255
255
|
n
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
|
-
var b,
|
|
258
|
+
var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
259
259
|
constructor(t = {}) {
|
|
260
260
|
N(this, b);
|
|
261
|
-
N(this, I);
|
|
262
261
|
N(this, k);
|
|
262
|
+
N(this, I);
|
|
263
263
|
N(this, Q);
|
|
264
264
|
N(this, V);
|
|
265
265
|
N(this, q);
|
|
266
266
|
N(this, H);
|
|
267
267
|
N(this, F);
|
|
268
|
-
P(this, b, t.queryCache || new
|
|
268
|
+
P(this, b, t.queryCache || new It()), P(this, k, t.mutationCache || new qt()), P(this, I, t.defaultOptions || {}), P(this, Q, /* @__PURE__ */ new Map()), P(this, V, /* @__PURE__ */ new Map()), P(this, q, 0);
|
|
269
269
|
}
|
|
270
270
|
mount() {
|
|
271
271
|
X(this, q)._++, i(this, q) === 1 && (P(this, H, dt.subscribe(async (t) => {
|
|
@@ -282,7 +282,7 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
282
282
|
return i(this, b).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
283
283
|
}
|
|
284
284
|
isMutating(t) {
|
|
285
|
-
return i(this,
|
|
285
|
+
return i(this, k).findAll({ ...t, status: "pending" }).length;
|
|
286
286
|
}
|
|
287
287
|
getQueryData(t) {
|
|
288
288
|
var n;
|
|
@@ -390,19 +390,19 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
390
390
|
return this.fetchInfiniteQuery(t).then(L).catch(L);
|
|
391
391
|
}
|
|
392
392
|
resumePausedMutations() {
|
|
393
|
-
return _e.isOnline() ? i(this,
|
|
393
|
+
return _e.isOnline() ? i(this, k).resumePausedMutations() : Promise.resolve();
|
|
394
394
|
}
|
|
395
395
|
getQueryCache() {
|
|
396
396
|
return i(this, b);
|
|
397
397
|
}
|
|
398
398
|
getMutationCache() {
|
|
399
|
-
return i(this,
|
|
399
|
+
return i(this, k);
|
|
400
400
|
}
|
|
401
401
|
getDefaultOptions() {
|
|
402
|
-
return i(this,
|
|
402
|
+
return i(this, I);
|
|
403
403
|
}
|
|
404
404
|
setDefaultOptions(t) {
|
|
405
|
-
P(this,
|
|
405
|
+
P(this, I, t);
|
|
406
406
|
}
|
|
407
407
|
setQueryDefaults(t, e) {
|
|
408
408
|
i(this, Q).set(we(t), {
|
|
@@ -434,7 +434,7 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
434
434
|
if (t._defaulted)
|
|
435
435
|
return t;
|
|
436
436
|
const e = {
|
|
437
|
-
...i(this,
|
|
437
|
+
...i(this, I).queries,
|
|
438
438
|
...this.getQueryDefaults(t.queryKey),
|
|
439
439
|
...t,
|
|
440
440
|
_defaulted: !0
|
|
@@ -446,23 +446,23 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
446
446
|
}
|
|
447
447
|
defaultMutationOptions(t) {
|
|
448
448
|
return t != null && t._defaulted ? t : {
|
|
449
|
-
...i(this,
|
|
449
|
+
...i(this, I).mutations,
|
|
450
450
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
451
451
|
...t,
|
|
452
452
|
_defaulted: !0
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
455
|
clear() {
|
|
456
|
-
i(this, b).clear(), i(this,
|
|
456
|
+
i(this, b).clear(), i(this, k).clear();
|
|
457
457
|
}
|
|
458
|
-
}, b = new WeakMap(),
|
|
458
|
+
}, b = new WeakMap(), k = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), q = new WeakMap(), H = new WeakMap(), F = new WeakMap(), Qe), Ft = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
459
459
|
const Ae = (t) => {
|
|
460
460
|
let e;
|
|
461
461
|
const n = /* @__PURE__ */ new Set(), r = (u, d) => {
|
|
462
462
|
const f = typeof u == "function" ? u(e) : u;
|
|
463
463
|
if (!Object.is(f, e)) {
|
|
464
|
-
const
|
|
465
|
-
e = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, e, f), n.forEach((S) => S(e,
|
|
464
|
+
const v = e;
|
|
465
|
+
e = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, e, f), n.forEach((S) => S(e, v));
|
|
466
466
|
}
|
|
467
467
|
}, a = () => e, E = { setState: r, getState: a, getInitialState: () => x, subscribe: (u) => (n.add(u), () => n.delete(u)), destroy: () => {
|
|
468
468
|
(Ft ? "production" : void 0) !== "production" && console.warn(
|
|
@@ -490,22 +490,22 @@ function Bt() {
|
|
|
490
490
|
return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
|
|
491
491
|
}
|
|
492
492
|
var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, a = t.useEffect, o = t.useLayoutEffect, l = t.useDebugValue;
|
|
493
|
-
function
|
|
494
|
-
var
|
|
493
|
+
function m(d, f) {
|
|
494
|
+
var v = f(), S = r({ inst: { value: v, getSnapshot: f } }), g = S[0].inst, O = S[1];
|
|
495
495
|
return o(function() {
|
|
496
|
-
g.value =
|
|
497
|
-
}, [d,
|
|
496
|
+
g.value = v, g.getSnapshot = f, E(g) && O({ inst: g });
|
|
497
|
+
}, [d, v, f]), a(function() {
|
|
498
498
|
return E(g) && O({ inst: g }), d(function() {
|
|
499
499
|
E(g) && O({ inst: g });
|
|
500
500
|
});
|
|
501
|
-
}, [d]), l(
|
|
501
|
+
}, [d]), l(v), v;
|
|
502
502
|
}
|
|
503
503
|
function E(d) {
|
|
504
504
|
var f = d.getSnapshot;
|
|
505
505
|
d = d.value;
|
|
506
506
|
try {
|
|
507
|
-
var
|
|
508
|
-
return !n(d,
|
|
507
|
+
var v = f();
|
|
508
|
+
return !n(d, v);
|
|
509
509
|
} catch {
|
|
510
510
|
return !0;
|
|
511
511
|
}
|
|
@@ -513,7 +513,7 @@ function Bt() {
|
|
|
513
513
|
function x(d, f) {
|
|
514
514
|
return f();
|
|
515
515
|
}
|
|
516
|
-
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x :
|
|
516
|
+
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x : m;
|
|
517
517
|
return ce.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, ce;
|
|
518
518
|
}
|
|
519
519
|
var le = {};
|
|
@@ -551,7 +551,7 @@ function zt() {
|
|
|
551
551
|
function a(h, c) {
|
|
552
552
|
return h === c && (h !== 0 || 1 / h === 1 / c) || h !== h && c !== c;
|
|
553
553
|
}
|
|
554
|
-
var o = typeof Object.is == "function" ? Object.is : a, l = t.useState,
|
|
554
|
+
var o = typeof Object.is == "function" ? Object.is : a, l = t.useState, m = t.useEffect, E = t.useLayoutEffect, x = t.useDebugValue, u = !1, d = !1;
|
|
555
555
|
function f(h, c, y) {
|
|
556
556
|
u || t.startTransition !== void 0 && (u = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
557
557
|
var p = c();
|
|
@@ -566,22 +566,22 @@ function zt() {
|
|
|
566
566
|
}
|
|
567
567
|
}), w = A[0].inst, z = A[1];
|
|
568
568
|
return E(function() {
|
|
569
|
-
w.value = p, w.getSnapshot = c,
|
|
569
|
+
w.value = p, w.getSnapshot = c, v(w) && z({
|
|
570
570
|
inst: w
|
|
571
571
|
});
|
|
572
|
-
}, [h, p, c]),
|
|
573
|
-
|
|
572
|
+
}, [h, p, c]), m(function() {
|
|
573
|
+
v(w) && z({
|
|
574
574
|
inst: w
|
|
575
575
|
});
|
|
576
576
|
var re = function() {
|
|
577
|
-
|
|
577
|
+
v(w) && z({
|
|
578
578
|
inst: w
|
|
579
579
|
});
|
|
580
580
|
};
|
|
581
581
|
return h(re);
|
|
582
582
|
}, [h]), x(p), p;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function v(h) {
|
|
585
585
|
var c = h.getSnapshot, y = h.value;
|
|
586
586
|
try {
|
|
587
587
|
var p = c();
|
|
@@ -618,25 +618,25 @@ function Wt() {
|
|
|
618
618
|
function n(x, u) {
|
|
619
619
|
return x === u && (x !== 0 || 1 / x === 1 / u) || x !== x && u !== u;
|
|
620
620
|
}
|
|
621
|
-
var r = typeof Object.is == "function" ? Object.is : n, a = e.useSyncExternalStore, o = t.useRef, l = t.useEffect,
|
|
622
|
-
return ue.useSyncExternalStoreWithSelector = function(x, u, d, f,
|
|
621
|
+
var r = typeof Object.is == "function" ? Object.is : n, a = e.useSyncExternalStore, o = t.useRef, l = t.useEffect, m = t.useMemo, E = t.useDebugValue;
|
|
622
|
+
return ue.useSyncExternalStoreWithSelector = function(x, u, d, f, v) {
|
|
623
623
|
var S = o(null);
|
|
624
624
|
if (S.current === null) {
|
|
625
625
|
var g = { hasValue: !1, value: null };
|
|
626
626
|
S.current = g;
|
|
627
627
|
} else g = S.current;
|
|
628
|
-
S =
|
|
628
|
+
S = m(function() {
|
|
629
629
|
function M(p) {
|
|
630
630
|
if (!R) {
|
|
631
|
-
if (R = !0, h = p, p = f(p),
|
|
631
|
+
if (R = !0, h = p, p = f(p), v !== void 0 && g.hasValue) {
|
|
632
632
|
var _ = g.value;
|
|
633
|
-
if (
|
|
633
|
+
if (v(_, p)) return c = _;
|
|
634
634
|
}
|
|
635
635
|
return c = p;
|
|
636
636
|
}
|
|
637
637
|
if (_ = c, r(h, p)) return _;
|
|
638
638
|
var A = f(p);
|
|
639
|
-
return
|
|
639
|
+
return v !== void 0 && v(_, A) ? _ : (h = p, c = A);
|
|
640
640
|
}
|
|
641
641
|
var R = !1, h, c, y = d === void 0 ? null : d;
|
|
642
642
|
return [function() {
|
|
@@ -644,7 +644,7 @@ function Wt() {
|
|
|
644
644
|
}, y === null ? void 0 : function() {
|
|
645
645
|
return M(y());
|
|
646
646
|
}];
|
|
647
|
-
}, [u, d, f,
|
|
647
|
+
}, [u, d, f, v]);
|
|
648
648
|
var O = a(x, S[0], S[1]);
|
|
649
649
|
return l(function() {
|
|
650
650
|
g.hasValue = !0, g.value = O;
|
|
@@ -669,18 +669,18 @@ function Ut() {
|
|
|
669
669
|
function n(u, d) {
|
|
670
670
|
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
671
671
|
}
|
|
672
|
-
var r = typeof Object.is == "function" ? Object.is : n, a = e.useSyncExternalStore, o = t.useRef, l = t.useEffect,
|
|
673
|
-
function x(u, d, f,
|
|
672
|
+
var r = typeof Object.is == "function" ? Object.is : n, a = e.useSyncExternalStore, o = t.useRef, l = t.useEffect, m = t.useMemo, E = t.useDebugValue;
|
|
673
|
+
function x(u, d, f, v, S) {
|
|
674
674
|
var g = o(null), O;
|
|
675
675
|
g.current === null ? (O = {
|
|
676
676
|
hasValue: !1,
|
|
677
677
|
value: null
|
|
678
678
|
}, g.current = O) : O = g.current;
|
|
679
|
-
var M =
|
|
679
|
+
var M = m(function() {
|
|
680
680
|
var y = !1, p, _, A = function(W) {
|
|
681
681
|
if (!y) {
|
|
682
682
|
y = !0, p = W;
|
|
683
|
-
var se =
|
|
683
|
+
var se = v(W);
|
|
684
684
|
if (S !== void 0 && O.hasValue) {
|
|
685
685
|
var ae = O.value;
|
|
686
686
|
if (S(ae, se))
|
|
@@ -691,7 +691,7 @@ function Ut() {
|
|
|
691
691
|
var rt = p, ie = _;
|
|
692
692
|
if (r(rt, W))
|
|
693
693
|
return ie;
|
|
694
|
-
var oe =
|
|
694
|
+
var oe = v(W);
|
|
695
695
|
return S !== void 0 && S(ie, oe) ? ie : (p = W, _ = oe, oe);
|
|
696
696
|
}, w = f === void 0 ? null : f, z = function() {
|
|
697
697
|
return A(d());
|
|
@@ -699,7 +699,7 @@ function Ut() {
|
|
|
699
699
|
return A(w());
|
|
700
700
|
};
|
|
701
701
|
return [z, re];
|
|
702
|
-
}, [d, f,
|
|
702
|
+
}, [d, f, v, S]), R = M[0], h = M[1], c = a(u, R, h);
|
|
703
703
|
return l(function() {
|
|
704
704
|
O.hasValue = !0, O.value = c;
|
|
705
705
|
}, [c]), E(c), c;
|
|
@@ -733,7 +733,7 @@ const Le = (t) => {
|
|
|
733
733
|
);
|
|
734
734
|
const e = typeof t == "function" ? Kt(t) : t, n = (r, a) => Zt(e, r, a);
|
|
735
735
|
return Object.assign(n, e), n;
|
|
736
|
-
}, en = (t) => t ? Le(t) : Le, Xe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", tn = (t) => "initialize" in t && typeof t.initialize == "function", nn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ye = new Ht(),
|
|
736
|
+
}, en = (t) => t ? Le(t) : Le, Xe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", tn = (t) => "initialize" in t && typeof t.initialize == "function", nn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ye = new Ht(), ve = en(
|
|
737
737
|
() => ({
|
|
738
738
|
isLoggedIn: !1
|
|
739
739
|
})
|
|
@@ -750,7 +750,7 @@ class rn {
|
|
|
750
750
|
var e;
|
|
751
751
|
this.plugins.filter(tn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
|
|
752
752
|
});
|
|
753
|
-
j(this, "setUserProfile", async (e) =>
|
|
753
|
+
j(this, "setUserProfile", async (e) => ve.setState(e));
|
|
754
754
|
j(this, "invalidateCache", async (e) => {
|
|
755
755
|
Ye.invalidateQueries({ queryKey: e });
|
|
756
756
|
});
|
|
@@ -785,7 +785,7 @@ class rn {
|
|
|
785
785
|
},
|
|
786
786
|
set: async (e, n) => localStorage.setItem(`session-${e}`, n)
|
|
787
787
|
});
|
|
788
|
-
this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Xe), this.authentication = e.authentication, this.meta = e.meta, this.state =
|
|
788
|
+
this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Xe), this.authentication = e.authentication, this.meta = e.meta, this.state = ve;
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
/**
|
|
@@ -846,11 +846,11 @@ const un = G("Sun", [
|
|
|
846
846
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
847
847
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
848
848
|
]), cn = () => {
|
|
849
|
-
const { navigation: t } =
|
|
849
|
+
const { navigation: t } = me();
|
|
850
850
|
return /* @__PURE__ */ s.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
851
851
|
he,
|
|
852
852
|
{
|
|
853
|
-
className: ({ isActive: n }) =>
|
|
853
|
+
className: ({ isActive: n }) => vt(
|
|
854
854
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
855
855
|
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
856
856
|
),
|
|
@@ -859,7 +859,7 @@ const un = G("Sun", [
|
|
|
859
859
|
}
|
|
860
860
|
) }, e.label)) }) });
|
|
861
861
|
}, Ze = We(() => {
|
|
862
|
-
const [t, e] =
|
|
862
|
+
const [t, e] = mt(), { isLoggedIn: n, email: r } = ve(), { login: a, logout: o, meta: l } = me(), m = t ? an : un;
|
|
863
863
|
return /* @__PURE__ */ s.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
864
864
|
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
|
|
865
865
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -898,7 +898,7 @@ const un = G("Sun", [
|
|
|
898
898
|
{
|
|
899
899
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
900
900
|
onClick: e,
|
|
901
|
-
children: /* @__PURE__ */ s.jsx(
|
|
901
|
+
children: /* @__PURE__ */ s.jsx(m, { size: 18 })
|
|
902
902
|
}
|
|
903
903
|
)
|
|
904
904
|
] })
|
|
@@ -920,8 +920,8 @@ const un = G("Sun", [
|
|
|
920
920
|
return;
|
|
921
921
|
}
|
|
922
922
|
const a = new MutationObserver((o, l) => {
|
|
923
|
-
const
|
|
924
|
-
|
|
923
|
+
const m = document.getElementById(decodeURIComponent(n));
|
|
924
|
+
m && (m.scrollIntoView(), requestIdleCallback(() => e(n)), l.disconnect());
|
|
925
925
|
});
|
|
926
926
|
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
927
927
|
}, [t.hash, e]);
|
|
@@ -930,11 +930,7 @@ const un = G("Sun", [
|
|
|
930
930
|
K(() => {
|
|
931
931
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
932
932
|
}, [t.pathname]);
|
|
933
|
-
}
|
|
934
|
-
function pn(t) {
|
|
935
|
-
return !0;
|
|
936
|
-
}
|
|
937
|
-
const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
933
|
+
}, tt = ({
|
|
938
934
|
item: t,
|
|
939
935
|
defaultOpen: e,
|
|
940
936
|
path: n
|
|
@@ -957,14 +953,14 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
957
953
|
}
|
|
958
954
|
}
|
|
959
955
|
}
|
|
960
|
-
),
|
|
956
|
+
), pn = "data-anchor", nt = ({
|
|
961
957
|
category: t,
|
|
962
958
|
item: e,
|
|
963
959
|
activeAnchor: n,
|
|
964
960
|
currentTopNavItem: r,
|
|
965
961
|
basePath: a = ""
|
|
966
962
|
}) => {
|
|
967
|
-
const o = fe(e) ? Fe(a, e.path) : "", l = B(), [
|
|
963
|
+
const o = fe(e) ? Fe(a, e.path) : "", l = B(), [m, E] = tt({
|
|
968
964
|
item: e,
|
|
969
965
|
path: o,
|
|
970
966
|
defaultOpen: () => ye(e, l.pathname, o)
|
|
@@ -992,7 +988,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
992
988
|
}
|
|
993
989
|
const x = /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
994
990
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
995
|
-
|
|
991
|
+
e.icon,
|
|
996
992
|
typeof e.label != "string" ? e.label : /* @__PURE__ */ s.jsx("span", { className: "truncate", children: e.label })
|
|
997
993
|
] }),
|
|
998
994
|
e.children && /* @__PURE__ */ s.jsx(
|
|
@@ -1006,7 +1002,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1006
1002
|
return /* @__PURE__ */ s.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ s.jsxs(
|
|
1007
1003
|
Ke,
|
|
1008
1004
|
{
|
|
1009
|
-
open:
|
|
1005
|
+
open: m,
|
|
1010
1006
|
onOpenChange: () => E((u) => !u),
|
|
1011
1007
|
className: "flex flex-col",
|
|
1012
1008
|
children: [
|
|
@@ -1037,7 +1033,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1037
1033
|
yt,
|
|
1038
1034
|
{
|
|
1039
1035
|
to: e.path,
|
|
1040
|
-
[
|
|
1036
|
+
[pn]: e.path,
|
|
1041
1037
|
className: Z({
|
|
1042
1038
|
isActive: e.path.slice(1) === n,
|
|
1043
1039
|
isMuted: e.muted
|
|
@@ -1052,7 +1048,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1052
1048
|
children: x
|
|
1053
1049
|
}
|
|
1054
1050
|
) });
|
|
1055
|
-
},
|
|
1051
|
+
}, vn = ({
|
|
1056
1052
|
category: t
|
|
1057
1053
|
}) => {
|
|
1058
1054
|
const { activeAnchor: e } = ge(), n = St(), r = B(), a = t.collapsible ?? !0, [o, l] = tt({
|
|
@@ -1064,7 +1060,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1064
1060
|
Ke,
|
|
1065
1061
|
{
|
|
1066
1062
|
open: o,
|
|
1067
|
-
onOpenChange: () => l((
|
|
1063
|
+
onOpenChange: () => l((m) => !m),
|
|
1068
1064
|
children: [
|
|
1069
1065
|
t.label.length > 0 ? /* @__PURE__ */ s.jsx(Be, { asChild: a, disabled: !a, children: /* @__PURE__ */ s.jsxs(
|
|
1070
1066
|
"h5",
|
|
@@ -1085,22 +1081,22 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1085
1081
|
]
|
|
1086
1082
|
}
|
|
1087
1083
|
) }) : "Endpoints",
|
|
1088
|
-
/* @__PURE__ */ s.jsx(ze, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ s.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((
|
|
1084
|
+
/* @__PURE__ */ s.jsx(ze, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ s.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((m) => /* @__PURE__ */ s.jsx(
|
|
1089
1085
|
nt,
|
|
1090
1086
|
{
|
|
1091
1087
|
category: t,
|
|
1092
|
-
item:
|
|
1088
|
+
item: m,
|
|
1093
1089
|
activeAnchor: e,
|
|
1094
1090
|
currentTopNavItem: n,
|
|
1095
1091
|
basePath: Fe(n == null ? void 0 : n.path, t.path)
|
|
1096
1092
|
},
|
|
1097
|
-
fe(
|
|
1093
|
+
fe(m) ? m.path + m.label : m.href
|
|
1098
1094
|
)) }) })
|
|
1099
1095
|
]
|
|
1100
1096
|
},
|
|
1101
1097
|
t.label
|
|
1102
1098
|
);
|
|
1103
|
-
},
|
|
1099
|
+
}, mn = kt(({ children: t, className: e, pushMainContent: n }, r) => /* @__PURE__ */ s.jsx(
|
|
1104
1100
|
"nav",
|
|
1105
1101
|
{
|
|
1106
1102
|
"data-navigation": String(n),
|
|
@@ -1111,18 +1107,18 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1111
1107
|
ref: r,
|
|
1112
1108
|
children: t
|
|
1113
1109
|
}
|
|
1114
|
-
)),
|
|
1110
|
+
)), gn = () => {
|
|
1115
1111
|
const t = ne(null), e = bt();
|
|
1116
1112
|
return /* @__PURE__ */ s.jsx(
|
|
1117
|
-
|
|
1113
|
+
mn,
|
|
1118
1114
|
{
|
|
1119
1115
|
ref: t,
|
|
1120
1116
|
pushMainContent: e.data.items.length > 0,
|
|
1121
|
-
children: e.data.items.map((n) => /* @__PURE__ */ s.jsx(
|
|
1117
|
+
children: e.data.items.map((n) => /* @__PURE__ */ s.jsx(vn, { category: n }, n.label))
|
|
1122
1118
|
}
|
|
1123
1119
|
);
|
|
1124
|
-
},
|
|
1125
|
-
const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse: a } =
|
|
1120
|
+
}, ke = ({ children: t }) => {
|
|
1121
|
+
const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse: a } = me();
|
|
1126
1122
|
K(() => {
|
|
1127
1123
|
a(e);
|
|
1128
1124
|
}, [a, e]), hn(), fn();
|
|
@@ -1141,7 +1137,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1141
1137
|
{
|
|
1142
1138
|
fallback: /* @__PURE__ */ s.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ s.jsx(_t, {}) }),
|
|
1143
1139
|
children: [
|
|
1144
|
-
/* @__PURE__ */ s.jsx(
|
|
1140
|
+
/* @__PURE__ */ s.jsx(gn, {}),
|
|
1145
1141
|
/* @__PURE__ */ s.jsx(
|
|
1146
1142
|
"main",
|
|
1147
1143
|
{
|
|
@@ -1157,7 +1153,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1157
1153
|
) })
|
|
1158
1154
|
] });
|
|
1159
1155
|
};
|
|
1160
|
-
function
|
|
1156
|
+
function yn({ plugins: t }) {
|
|
1161
1157
|
const e = ee(() => {
|
|
1162
1158
|
const n = (t ?? []).flatMap(
|
|
1163
1159
|
(r) => Xe(r) ? r.getRoutes() : []
|
|
@@ -1165,15 +1161,15 @@ function Sn({ plugins: t }) {
|
|
|
1165
1161
|
return wt([
|
|
1166
1162
|
{
|
|
1167
1163
|
path: "/",
|
|
1168
|
-
element: /* @__PURE__ */ s.jsx(
|
|
1169
|
-
errorElement: /* @__PURE__ */ s.jsx(
|
|
1164
|
+
element: /* @__PURE__ */ s.jsx(ke, {}),
|
|
1165
|
+
errorElement: /* @__PURE__ */ s.jsx(ke, { children: /* @__PURE__ */ s.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
|
|
1170
1166
|
children: n
|
|
1171
1167
|
}
|
|
1172
1168
|
]);
|
|
1173
1169
|
}, [t]);
|
|
1174
1170
|
return /* @__PURE__ */ s.jsx(jt, { router: e });
|
|
1175
1171
|
}
|
|
1176
|
-
const
|
|
1172
|
+
const xn = (t) => {
|
|
1177
1173
|
const e = ee(
|
|
1178
1174
|
() => ({ ...et, ...t.overrides }),
|
|
1179
1175
|
[t.overrides]
|
|
@@ -1187,14 +1183,13 @@ const bn = (t) => {
|
|
|
1187
1183
|
Ue,
|
|
1188
1184
|
{
|
|
1189
1185
|
fallback: /* @__PURE__ */ s.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
1190
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1186
|
+
children: /* @__PURE__ */ s.jsx(yn, { plugins: t.plugins })
|
|
1191
1187
|
}
|
|
1192
1188
|
) }) }) }) }) }) }) });
|
|
1193
|
-
},
|
|
1194
|
-
|
|
1189
|
+
}, Sn = We(xn);
|
|
1190
|
+
Sn.displayName = "DevPortal";
|
|
1195
1191
|
export {
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
Dn as useMDXComponents
|
|
1192
|
+
Sn as DevPortal,
|
|
1193
|
+
jn as Link,
|
|
1194
|
+
Pn as useMDXComponents
|
|
1200
1195
|
};
|
|
@@ -171,7 +171,7 @@ function x(e) {
|
|
|
171
171
|
function g(e, t, n) {
|
|
172
172
|
return t > e.length - 1 ? e : e.substr(0, t) + n + e.substr(t + 1);
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const G = () => {
|
|
175
175
|
const e = /* @__PURE__ */ new Map();
|
|
176
176
|
return [(r) => new Promise((o) => {
|
|
177
177
|
e.set(r, o);
|
|
@@ -179,16 +179,16 @@ const $ = () => {
|
|
|
179
179
|
const s = e.get(r);
|
|
180
180
|
s && (s(o), e.delete(r));
|
|
181
181
|
}];
|
|
182
|
-
},
|
|
182
|
+
}, $ = S(), F = () => {
|
|
183
183
|
const e = new SharedWorker(new URL(
|
|
184
184
|
/* @vite-ignore */
|
|
185
|
-
"./assets/worker-
|
|
185
|
+
"./assets/worker-BGlCY74N.js",
|
|
186
186
|
import.meta.url
|
|
187
187
|
), {
|
|
188
188
|
type: "module"
|
|
189
189
|
});
|
|
190
190
|
e.port.start();
|
|
191
|
-
const [t, n] =
|
|
191
|
+
const [t, n] = G();
|
|
192
192
|
return e.port.onmessage = (r) => {
|
|
193
193
|
n(r.data.id, r.data.body);
|
|
194
194
|
}, new y({
|
|
@@ -196,7 +196,7 @@ const $ = () => {
|
|
|
196
196
|
// Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
|
|
197
197
|
fetch: async (r, o) => {
|
|
198
198
|
if (!(o != null && o.body)) throw new Error("No body");
|
|
199
|
-
const s =
|
|
199
|
+
const s = $();
|
|
200
200
|
e.port.postMessage({
|
|
201
201
|
id: s,
|
|
202
202
|
body: o.body
|
|
@@ -221,5 +221,5 @@ const $ = () => {
|
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
223
|
export {
|
|
224
|
-
|
|
224
|
+
F as createSharedWorkerClient
|
|
225
225
|
};
|