zudoku 0.32.6 → 0.33.1
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/cli.js +3 -0
- package/dist/app/main.js +1 -1
- package/dist/app/main.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +7 -0
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +5 -0
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +20 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +37 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/config/common.d.ts +5 -2
- package/dist/config/config.d.ts +2 -7
- package/dist/config/loader.d.ts +4 -4
- package/dist/config/loader.js +7 -4
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/validate.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +1 -0
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +4 -3
- package/dist/lib/authentication/providers/openid.js +4 -2
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.js +8 -2
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.js +1 -1
- package/dist/lib/components/ThemeSwitch.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +1 -1
- package/dist/lib/components/Zudoku.js +7 -6
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/index.d.ts +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -1
- package/dist/lib/core/RouteGuard.js +23 -18
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +10 -0
- package/dist/lib/core/ZudokuContext.js +17 -1
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +8 -2
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +3 -0
- package/dist/lib/hooks/index.js +5 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.d.ts +1 -0
- package/dist/lib/hooks/useEvent.test.js +100 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/ui/Stepper.d.ts +4 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +3 -1
- package/dist/lib/util/MdxComponents.js +3 -0
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/config.d.ts +2 -5
- package/dist/vite/config.js +21 -28
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +1 -1
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/css/plugin.d.ts +2 -2
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +2 -2
- package/dist/vite/plugin-api-keys.js +3 -3
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +2 -2
- package/dist/vite/plugin-api.js +5 -5
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +3 -3
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -2
- package/dist/vite/plugin-component.js +3 -2
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -3
- package/dist/vite/plugin-config-reload.js +11 -8
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -2
- package/dist/vite/plugin-config.js +2 -2
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +2 -2
- package/dist/vite/plugin-custom-pages.js +3 -3
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +2 -2
- package/dist/vite/plugin-docs.js +5 -5
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -2
- package/dist/vite/plugin-frontmatter.js +5 -4
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +2 -2
- package/dist/vite/plugin-mdx.js +1 -1
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +2 -2
- package/dist/vite/plugin-redirect.js +3 -3
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +2 -2
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +2 -2
- package/dist/vite/plugin-sidebar.js +2 -2
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin-theme-css.d.ts +2 -2
- package/dist/vite/plugin-theme-css.js.map +1 -1
- package/dist/vite/plugin.d.ts +2 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +2 -1
- package/dist/vite/prerender/FileWritingResponse.js +4 -1
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/worker.d.ts +1 -1
- package/dist/vite/prerender/worker.js +3 -0
- package/dist/vite/prerender/worker.js.map +1 -1
- package/lib/{AuthenticationPlugin-BlxA4Mbn.js → AuthenticationPlugin-CiO1FM6Q.js} +2 -2
- package/lib/{AuthenticationPlugin-BlxA4Mbn.js.map → AuthenticationPlugin-CiO1FM6Q.js.map} +1 -1
- package/lib/Dialog-DIKGQxQc.js +83 -0
- package/lib/Dialog-DIKGQxQc.js.map +1 -0
- package/lib/{Markdown-Cr9sYpR_.js → Markdown-DePfm7oQ.js} +1384 -1381
- package/lib/{Markdown-Cr9sYpR_.js.map → Markdown-DePfm7oQ.js.map} +1 -1
- package/lib/{MdxPage-Dt-UEQl8.js → MdxPage-DZTt9ld7.js} +4 -4
- package/lib/{MdxPage-Dt-UEQl8.js.map → MdxPage-DZTt9ld7.js.map} +1 -1
- package/lib/{OasProvider-WVtvHP5H.js → OasProvider-SzD9mHJc.js} +3 -3
- package/lib/{OasProvider-WVtvHP5H.js.map → OasProvider-SzD9mHJc.js.map} +1 -1
- package/lib/{OperationList-DhOwupvv.js → OperationList-DDs9NblY.js} +242 -241
- package/lib/OperationList-DDs9NblY.js.map +1 -0
- package/lib/{Select-D9hI1G-y.js → Select-Dqtcn53H.js} +36 -36
- package/lib/{Select-D9hI1G-y.js.map → Select-Dqtcn53H.js.map} +1 -1
- package/lib/{SlotletProvider-CEfNOA8i.js → SlotletProvider-DdtIOUi6.js} +2 -2
- package/lib/{SlotletProvider-CEfNOA8i.js.map → SlotletProvider-DdtIOUi6.js.map} +1 -1
- package/lib/{createServer-DMf6O2Rz.js → createServer-DmusVVsi.js} +987 -967
- package/lib/createServer-DmusVVsi.js.map +1 -0
- package/lib/{hook-CWwSAAlH.js → hook-CN__aZIt.js} +67 -63
- package/lib/{hook-CWwSAAlH.js.map → hook-CN__aZIt.js.map} +1 -1
- package/lib/{index-Do_30Hpk.js → index-CibzSNks.js} +95 -93
- package/lib/{index-Do_30Hpk.js.map → index-CibzSNks.js.map} +1 -1
- package/lib/index-DwT-v3zK.js +86 -0
- package/lib/index-DwT-v3zK.js.map +1 -0
- package/lib/index-gQD2h1wX.js +447 -0
- package/lib/index-gQD2h1wX.js.map +1 -0
- package/lib/{mutation-B0wxqzSN.js → mutation-EclmI0is.js} +2 -2
- package/lib/{mutation-B0wxqzSN.js.map → mutation-EclmI0is.js.map} +1 -1
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/ui/Command.js +21 -20
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +2902 -7
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/{useScrollToAnchor-C-sRxs9o.js → useScrollToAnchor-C7ilRSts.js} +3 -3
- package/lib/{useScrollToAnchor-C-sRxs9o.js.map → useScrollToAnchor-C7ilRSts.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +15 -14
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +126 -124
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +441 -395
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.css +1 -0
- package/lib/zudoku.hooks.js +19 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.plugin-api-catalog.js +2 -2
- package/lib/zudoku.plugin-api-keys.js +5 -5
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/lib/zudoku.plugins.js +9 -8
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +12 -4
- package/src/app/main.tsx +1 -1
- package/src/lib/authentication/providers/auth0.tsx +3 -2
- package/src/lib/authentication/providers/openid.tsx +8 -5
- package/src/lib/authentication/state.ts +8 -2
- package/src/lib/components/ThemeSwitch.tsx +1 -1
- package/src/lib/components/Zudoku.tsx +9 -5
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/core/RouteGuard.tsx +43 -18
- package/src/lib/core/ZudokuContext.ts +31 -0
- package/src/lib/core/plugins.ts +16 -2
- package/src/lib/hooks/index.ts +5 -0
- package/src/lib/hooks/useEvent.test.tsx +149 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/ui/Stepper.css +43 -0
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/util/MdxComponents.tsx +4 -1
- package/lib/OperationList-DhOwupvv.js.map +0 -1
- package/lib/SyntaxHighlight-CcnUjERD.js +0 -2986
- package/lib/SyntaxHighlight-CcnUjERD.js.map +0 -1
- package/lib/createServer-DMf6O2Rz.js.map +0 -1
- package/lib/index-Du5aNddU.js +0 -509
- package/lib/index-Du5aNddU.js.map +0 -1
|
@@ -3,7 +3,7 @@ var Ge = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var me = (t, e, s) => e.has(t) || Ge("Cannot " + s);
|
|
5
5
|
var n = (t, e, s) => (me(t, e, "read from private field"), s ? s.call(t) : e.get(t)), g = (t, e, s) => e.has(t) ? Ge("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), d = (t, e, s, r) => (me(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), w = (t, e, s) => (me(t, e, "access private method"), s);
|
|
6
|
-
import * as
|
|
6
|
+
import * as j from "react";
|
|
7
7
|
import $e, { createContext as Et, useContext as Ot, useMemo as It } from "react";
|
|
8
8
|
import { j as Ft } from "./jsx-runtime-CYK1ROHF.js";
|
|
9
9
|
import { u as ve, m as ze } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
|
|
@@ -162,7 +162,7 @@ function Dt(t, e) {
|
|
|
162
162
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
163
163
|
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === pe ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
164
164
|
}
|
|
165
|
-
var H, L, ee, tt,
|
|
165
|
+
var H, L, ee, tt, jt = (tt = class extends qe {
|
|
166
166
|
constructor() {
|
|
167
167
|
super();
|
|
168
168
|
g(this, H);
|
|
@@ -203,7 +203,7 @@ var H, L, ee, tt, At = (tt = class extends qe {
|
|
|
203
203
|
var e;
|
|
204
204
|
return typeof n(this, H) == "boolean" ? n(this, H) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
205
205
|
}
|
|
206
|
-
}, H = new WeakMap(), L = new WeakMap(), ee = new WeakMap(), tt), ot = new
|
|
206
|
+
}, H = new WeakMap(), L = new WeakMap(), ee = new WeakMap(), tt), ot = new jt(), te, M, se, st, At = (st = class extends qe {
|
|
207
207
|
constructor() {
|
|
208
208
|
super();
|
|
209
209
|
g(this, te, !0);
|
|
@@ -237,7 +237,7 @@ var H, L, ee, tt, At = (tt = class extends qe {
|
|
|
237
237
|
isOnline() {
|
|
238
238
|
return n(this, te);
|
|
239
239
|
}
|
|
240
|
-
}, te = new WeakMap(), M = new WeakMap(), se = new WeakMap(), st), ut = new
|
|
240
|
+
}, te = new WeakMap(), M = new WeakMap(), se = new WeakMap(), st), ut = new At();
|
|
241
241
|
function Fe() {
|
|
242
242
|
let t, e;
|
|
243
243
|
const s = new Promise((i, a) => {
|
|
@@ -411,10 +411,10 @@ var Me = Qt(), K, rt, Ut = (rt = class {
|
|
|
411
411
|
clearGcTimeout() {
|
|
412
412
|
n(this, K) && (clearTimeout(n(this, K)), d(this, K, void 0));
|
|
413
413
|
}
|
|
414
|
-
}, K = new WeakMap(), rt), re, ne, D, B, I, he, G,
|
|
414
|
+
}, K = new WeakMap(), rt), re, ne, D, B, I, he, G, A, U, nt, ms = (nt = class extends Ut {
|
|
415
415
|
constructor(e) {
|
|
416
416
|
super();
|
|
417
|
-
g(this,
|
|
417
|
+
g(this, A);
|
|
418
418
|
g(this, re);
|
|
419
419
|
g(this, ne);
|
|
420
420
|
g(this, D);
|
|
@@ -439,7 +439,7 @@ var Me = Qt(), K, rt, Ut = (rt = class {
|
|
|
439
439
|
}
|
|
440
440
|
setData(e, s) {
|
|
441
441
|
const r = Ie(this.state.data, e, this.options);
|
|
442
|
-
return w(this,
|
|
442
|
+
return w(this, A, U).call(this, {
|
|
443
443
|
data: r,
|
|
444
444
|
type: "success",
|
|
445
445
|
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
@@ -447,7 +447,7 @@ var Me = Qt(), K, rt, Ut = (rt = class {
|
|
|
447
447
|
}), r;
|
|
448
448
|
}
|
|
449
449
|
setState(e, s) {
|
|
450
|
-
w(this,
|
|
450
|
+
w(this, A, U).call(this, { type: "setState", state: e, setStateOptions: s });
|
|
451
451
|
}
|
|
452
452
|
cancel(e) {
|
|
453
453
|
var r, i;
|
|
@@ -496,7 +496,7 @@ var Me = Qt(), K, rt, Ut = (rt = class {
|
|
|
496
496
|
return this.observers.length;
|
|
497
497
|
}
|
|
498
498
|
invalidate() {
|
|
499
|
-
this.state.isInvalidated || w(this,
|
|
499
|
+
this.state.isInvalidated || w(this, A, U).call(this, { type: "invalidate" });
|
|
500
500
|
}
|
|
501
501
|
fetch(e, s) {
|
|
502
502
|
var l, f, m;
|
|
@@ -540,10 +540,10 @@ var Me = Qt(), K, rt, Ut = (rt = class {
|
|
|
540
540
|
i(o), (l = this.options.behavior) == null || l.onFetch(
|
|
541
541
|
o,
|
|
542
542
|
this
|
|
543
|
-
), d(this, ne, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = o.fetchOptions) == null ? void 0 : f.meta)) && w(this,
|
|
543
|
+
), d(this, ne, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = o.fetchOptions) == null ? void 0 : f.meta)) && w(this, A, U).call(this, { type: "fetch", meta: (m = o.fetchOptions) == null ? void 0 : m.meta });
|
|
544
544
|
const u = (c) => {
|
|
545
545
|
var p, y, E, h;
|
|
546
|
-
ge(c) && c.silent || w(this,
|
|
546
|
+
ge(c) && c.silent || w(this, A, U).call(this, {
|
|
547
547
|
type: "error",
|
|
548
548
|
error: c
|
|
549
549
|
}), ge(c) || ((y = (p = n(this, D).config).onError) == null || y.call(
|
|
@@ -584,13 +584,13 @@ var Me = Qt(), K, rt, Ut = (rt = class {
|
|
|
584
584
|
},
|
|
585
585
|
onError: u,
|
|
586
586
|
onFail: (c, p) => {
|
|
587
|
-
w(this,
|
|
587
|
+
w(this, A, U).call(this, { type: "failed", failureCount: c, error: p });
|
|
588
588
|
},
|
|
589
589
|
onPause: () => {
|
|
590
|
-
w(this,
|
|
590
|
+
w(this, A, U).call(this, { type: "pause" });
|
|
591
591
|
},
|
|
592
592
|
onContinue: () => {
|
|
593
|
-
w(this,
|
|
593
|
+
w(this, A, U).call(this, { type: "continue" });
|
|
594
594
|
},
|
|
595
595
|
retry: o.options.retry,
|
|
596
596
|
retryDelay: o.options.retryDelay,
|
|
@@ -598,7 +598,7 @@ var Me = Qt(), K, rt, Ut = (rt = class {
|
|
|
598
598
|
canRun: () => !0
|
|
599
599
|
})), n(this, I).start();
|
|
600
600
|
}
|
|
601
|
-
}, re = new WeakMap(), ne = new WeakMap(), D = new WeakMap(), B = new WeakMap(), I = new WeakMap(), he = new WeakMap(), G = new WeakMap(),
|
|
601
|
+
}, re = new WeakMap(), ne = new WeakMap(), D = new WeakMap(), B = new WeakMap(), I = new WeakMap(), he = new WeakMap(), G = new WeakMap(), A = new WeakSet(), U = function(e) {
|
|
602
602
|
const s = (r) => {
|
|
603
603
|
switch (e.type) {
|
|
604
604
|
case "failed":
|
|
@@ -696,7 +696,7 @@ function qt(t) {
|
|
|
696
696
|
fetchStatus: "idle"
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
|
-
var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De,
|
|
699
|
+
var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, je, Ae, ke, xe, ft, it, dt = (it = class extends qe {
|
|
700
700
|
constructor(e, s) {
|
|
701
701
|
super();
|
|
702
702
|
g(this, S);
|
|
@@ -725,7 +725,7 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
|
|
|
725
725
|
this.refetch = this.refetch.bind(this);
|
|
726
726
|
}
|
|
727
727
|
onSubscribe() {
|
|
728
|
-
this.listeners.size === 1 && (n(this, b).addObserver(this), Ze(n(this, b), this.options) ? w(this, S, ce).call(this) : this.updateResult(), w(this, S,
|
|
728
|
+
this.listeners.size === 1 && (n(this, b).addObserver(this), Ze(n(this, b), this.options) ? w(this, S, ce).call(this) : this.updateResult(), w(this, S, je).call(this));
|
|
729
729
|
}
|
|
730
730
|
onUnsubscribe() {
|
|
731
731
|
this.hasListeners() || this.destroy();
|
|
@@ -745,7 +745,7 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
|
|
|
745
745
|
);
|
|
746
746
|
}
|
|
747
747
|
destroy() {
|
|
748
|
-
this.listeners = /* @__PURE__ */ new Set(), w(this, S,
|
|
748
|
+
this.listeners = /* @__PURE__ */ new Set(), w(this, S, Ae).call(this), w(this, S, ke).call(this), n(this, b).removeObserver(this);
|
|
749
749
|
}
|
|
750
750
|
setOptions(e, s) {
|
|
751
751
|
const r = this.options, i = n(this, b);
|
|
@@ -919,7 +919,7 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
|
|
|
919
919
|
(e == null ? void 0 : e.listeners) !== !1 && a() && (i.listeners = !0), w(this, S, ft).call(this, { ...i, ...e });
|
|
920
920
|
}
|
|
921
921
|
onQueryUpdate() {
|
|
922
|
-
this.updateResult(), this.hasListeners() && w(this, S,
|
|
922
|
+
this.updateResult(), this.hasListeners() && w(this, S, je).call(this);
|
|
923
923
|
}
|
|
924
924
|
}, T = new WeakMap(), b = new WeakMap(), le = new WeakMap(), P = new WeakMap(), $ = new WeakMap(), ie = new WeakMap(), N = new WeakMap(), Q = new WeakMap(), de = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), z = new WeakMap(), J = new WeakMap(), _ = new WeakMap(), ue = new WeakMap(), S = new WeakSet(), ce = function(e) {
|
|
925
925
|
w(this, S, xe).call(this);
|
|
@@ -929,7 +929,7 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
|
|
|
929
929
|
);
|
|
930
930
|
return e != null && e.throwOnError || (s = s.catch(Se)), s;
|
|
931
931
|
}, Pe = function() {
|
|
932
|
-
w(this, S,
|
|
932
|
+
w(this, S, Ae).call(this);
|
|
933
933
|
const e = ye(
|
|
934
934
|
this.options.staleTime,
|
|
935
935
|
n(this, b)
|
|
@@ -946,9 +946,9 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
|
|
|
946
946
|
w(this, S, ke).call(this), d(this, _, e), !(V || k(this.options.enabled, n(this, b)) === !1 || !we(n(this, _)) || n(this, _) === 0) && d(this, J, setInterval(() => {
|
|
947
947
|
(this.options.refetchIntervalInBackground || ot.isFocused()) && w(this, S, ce).call(this);
|
|
948
948
|
}, n(this, _)));
|
|
949
|
-
}, Ae = function() {
|
|
950
|
-
w(this, S, Pe).call(this), w(this, S, De).call(this, w(this, S, Te).call(this));
|
|
951
949
|
}, je = function() {
|
|
950
|
+
w(this, S, Pe).call(this), w(this, S, De).call(this, w(this, S, Te).call(this));
|
|
951
|
+
}, Ae = function() {
|
|
952
952
|
n(this, z) && (clearTimeout(n(this, z)), d(this, z, void 0));
|
|
953
953
|
}, ke = function() {
|
|
954
954
|
n(this, J) && (clearInterval(n(this, J)), d(this, J, void 0));
|
|
@@ -990,10 +990,10 @@ function Ne(t, e) {
|
|
|
990
990
|
function Mt(t, e) {
|
|
991
991
|
return !Ee(t.getCurrentResult(), e);
|
|
992
992
|
}
|
|
993
|
-
var yt =
|
|
993
|
+
var yt = j.createContext(
|
|
994
994
|
void 0
|
|
995
995
|
), pt = (t) => {
|
|
996
|
-
const e =
|
|
996
|
+
const e = j.useContext(yt);
|
|
997
997
|
if (t)
|
|
998
998
|
return t;
|
|
999
999
|
if (!e)
|
|
@@ -1002,9 +1002,9 @@ var yt = A.createContext(
|
|
|
1002
1002
|
}, gs = ({
|
|
1003
1003
|
client: t,
|
|
1004
1004
|
children: e
|
|
1005
|
-
}) => (
|
|
1005
|
+
}) => (j.useEffect(() => (t.mount(), () => {
|
|
1006
1006
|
t.unmount();
|
|
1007
|
-
}), [t]), /* @__PURE__ */ Ft.jsx(yt.Provider, { value: t, children: e })), vt =
|
|
1007
|
+
}), [t]), /* @__PURE__ */ Ft.jsx(yt.Provider, { value: t, children: e })), vt = j.createContext(!1), Nt = () => j.useContext(vt);
|
|
1008
1008
|
vt.Provider;
|
|
1009
1009
|
function _t() {
|
|
1010
1010
|
let t = !1;
|
|
@@ -1018,7 +1018,7 @@ function _t() {
|
|
|
1018
1018
|
isReset: () => t
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
var Ht =
|
|
1021
|
+
var Ht = j.createContext(_t()), Kt = () => j.useContext(Ht);
|
|
1022
1022
|
function Bt(t, e) {
|
|
1023
1023
|
return typeof t == "function" ? t(...e) : !!t;
|
|
1024
1024
|
}
|
|
@@ -1027,7 +1027,7 @@ function Ye() {
|
|
|
1027
1027
|
var Gt = (t, e) => {
|
|
1028
1028
|
(t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
|
|
1029
1029
|
}, $t = (t) => {
|
|
1030
|
-
|
|
1030
|
+
j.useEffect(() => {
|
|
1031
1031
|
t.clearReset();
|
|
1032
1032
|
}, [t]);
|
|
1033
1033
|
}, zt = ({
|
|
@@ -1053,14 +1053,14 @@ function bt(t, e, s) {
|
|
|
1053
1053
|
c,
|
|
1054
1054
|
o
|
|
1055
1055
|
), o._optimisticResults = i ? "isRestoring" : "optimistic", Vt(o), Gt(o, a), $t(a);
|
|
1056
|
-
const u = !r.getQueryCache().get(o.queryHash), [l] =
|
|
1056
|
+
const u = !r.getQueryCache().get(o.queryHash), [l] = j.useState(
|
|
1057
1057
|
() => new e(
|
|
1058
1058
|
r,
|
|
1059
1059
|
o
|
|
1060
1060
|
)
|
|
1061
1061
|
), f = l.getOptimisticResult(o), m = !i && t.subscribed !== !1;
|
|
1062
|
-
if (
|
|
1063
|
-
|
|
1062
|
+
if (j.useSyncExternalStore(
|
|
1063
|
+
j.useCallback(
|
|
1064
1064
|
(v) => {
|
|
1065
1065
|
const C = m ? l.subscribe(Me.batchCalls(v)) : Ye;
|
|
1066
1066
|
return l.updateResult(), C;
|
|
@@ -1069,7 +1069,7 @@ function bt(t, e, s) {
|
|
|
1069
1069
|
),
|
|
1070
1070
|
() => l.getCurrentResult(),
|
|
1071
1071
|
() => l.getCurrentResult()
|
|
1072
|
-
),
|
|
1072
|
+
), j.useEffect(() => {
|
|
1073
1073
|
l.setOptions(o, { listeners: !1 });
|
|
1074
1074
|
}, [o, l]), Wt(o, f))
|
|
1075
1075
|
throw Xe(o, l, a);
|
|
@@ -1369,14 +1369,18 @@ const Ue = (t) => (e) => {
|
|
|
1369
1369
|
Rt(
|
|
1370
1370
|
(t) => ({
|
|
1371
1371
|
isAuthenticated: !1,
|
|
1372
|
-
isPending: !
|
|
1372
|
+
isPending: !0,
|
|
1373
1373
|
profile: null,
|
|
1374
1374
|
providerData: null
|
|
1375
1375
|
}),
|
|
1376
1376
|
{
|
|
1377
|
+
merge: (t, e) => ({
|
|
1378
|
+
...e,
|
|
1379
|
+
isPending: !1,
|
|
1380
|
+
...typeof t == "object" ? t : {}
|
|
1381
|
+
}),
|
|
1377
1382
|
name: "auth-state",
|
|
1378
1383
|
storage: wt(() => localStorage)
|
|
1379
|
-
// partialize: (s) => ({ state: s }),
|
|
1380
1384
|
}
|
|
1381
1385
|
)
|
|
1382
1386
|
);
|
|
@@ -1416,45 +1420,45 @@ const os = St()(
|
|
|
1416
1420
|
};
|
|
1417
1421
|
};
|
|
1418
1422
|
export {
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1423
|
+
ut as A,
|
|
1424
|
+
ye as B,
|
|
1425
|
+
fs as C,
|
|
1426
|
+
Le as D,
|
|
1427
|
+
pe as E,
|
|
1428
|
+
gs as F,
|
|
1429
|
+
gt as G,
|
|
1430
|
+
_e as H,
|
|
1431
|
+
Ss as I,
|
|
1432
|
+
mt as J,
|
|
1429
1433
|
ms as Q,
|
|
1430
1434
|
Ut as R,
|
|
1431
1435
|
qe as S,
|
|
1432
1436
|
es as Z,
|
|
1433
|
-
|
|
1434
|
-
|
|
1437
|
+
Ke as a,
|
|
1438
|
+
Xt as b,
|
|
1435
1439
|
xt as c,
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
+
ws as d,
|
|
1441
|
+
Cs as e,
|
|
1442
|
+
pt as f,
|
|
1443
|
+
Ye as g,
|
|
1440
1444
|
Re as h,
|
|
1441
|
-
|
|
1445
|
+
Bt as i,
|
|
1442
1446
|
Z as j,
|
|
1443
1447
|
us as k,
|
|
1444
1448
|
Rs as l,
|
|
1445
|
-
|
|
1449
|
+
Yt as m,
|
|
1446
1450
|
Me as n,
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
+
Os as o,
|
|
1452
|
+
Es as p,
|
|
1453
|
+
Pt as q,
|
|
1454
|
+
ys as r,
|
|
1451
1455
|
Ee as s,
|
|
1452
|
-
|
|
1456
|
+
ps as t,
|
|
1453
1457
|
Ct as u,
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1458
|
+
Se as v,
|
|
1459
|
+
Dt as w,
|
|
1460
|
+
bs as x,
|
|
1461
|
+
vs as y,
|
|
1462
|
+
ot as z
|
|
1459
1463
|
};
|
|
1460
|
-
//# sourceMappingURL=hook-
|
|
1464
|
+
//# sourceMappingURL=hook-CN__aZIt.js.map
|