zudoku 0.3.0-dev.87 → 0.3.0-dev.89

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.
Files changed (94) hide show
  1. package/dist/lib/authentication/components/SignIn.js +2 -2
  2. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  3. package/dist/lib/authentication/components/SignOut.js +2 -2
  4. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  5. package/dist/lib/authentication/components/SignUp.js +2 -2
  6. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  7. package/dist/lib/authentication/hook.js +2 -2
  8. package/dist/lib/authentication/hook.js.map +1 -1
  9. package/dist/lib/authentication/providers/openid.js +3 -2
  10. package/dist/lib/authentication/providers/openid.js.map +1 -1
  11. package/dist/lib/components/DevPortal.d.ts +0 -4
  12. package/dist/lib/components/DevPortal.js +4 -23
  13. package/dist/lib/components/DevPortal.js.map +1 -1
  14. package/dist/lib/components/Header.js +2 -2
  15. package/dist/lib/components/Header.js.map +1 -1
  16. package/dist/lib/components/Layout.js +2 -2
  17. package/dist/lib/components/Layout.js.map +1 -1
  18. package/dist/lib/components/TopNavigation.js +2 -2
  19. package/dist/lib/components/TopNavigation.js.map +1 -1
  20. package/dist/lib/components/context/{DevPortalProvider.d.ts → ZudokuContext.d.ts} +2 -2
  21. package/dist/lib/components/context/{DevPortalProvider.js → ZudokuContext.js} +7 -8
  22. package/dist/lib/components/context/ZudokuContext.js.map +1 -0
  23. package/dist/lib/components/context/ZudokuProvider.d.ts +5 -0
  24. package/dist/lib/components/context/ZudokuProvider.js +16 -0
  25. package/dist/lib/components/context/ZudokuProvider.js.map +1 -0
  26. package/dist/lib/components/navigation/Sidebar.js +1 -1
  27. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  28. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  29. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  30. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  31. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  32. package/dist/lib/components/navigation/utils.js +3 -3
  33. package/dist/lib/components/navigation/utils.js.map +1 -1
  34. package/dist/lib/plugins/api-keys/CreateApiKey.js +2 -2
  35. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  36. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +2 -2
  37. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  38. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  39. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  40. package/lib/{AuthenticationPlugin-B68Pelzd.js → AuthenticationPlugin-C3dzfGaA.js} +2 -2
  41. package/lib/AuthenticationPlugin-C3dzfGaA.js.map +1 -0
  42. package/lib/{Combination-BOiWt0Ng.js → Combination-Djh-LWhb.js} +93 -93
  43. package/lib/Combination-Djh-LWhb.js.map +1 -0
  44. package/lib/{Input-LkQSHT1l.js → Input-SCGD-EvD.js} +3 -3
  45. package/lib/{Input-LkQSHT1l.js.map → Input-SCGD-EvD.js.map} +1 -1
  46. package/lib/{MdxPage-PhgXcrKE.js → MdxPage-d02krMBw.js} +2 -2
  47. package/lib/{MdxPage-PhgXcrKE.js.map → MdxPage-d02krMBw.js.map} +1 -1
  48. package/lib/{OperationList-DDLgAusb.js → OperationList-BQweX28o.js} +4 -4
  49. package/lib/{OperationList-DDLgAusb.js.map → OperationList-BQweX28o.js.map} +1 -1
  50. package/lib/{Route-2Br45GpS.js → Route-BPGW1TS_.js} +2 -2
  51. package/lib/{Route-2Br45GpS.js.map → Route-BPGW1TS_.js.map} +1 -1
  52. package/lib/{Spinner-CeuEm0Qc.js → Spinner-DEgs-1Gu.js} +2 -2
  53. package/lib/{Spinner-CeuEm0Qc.js.map → Spinner-DEgs-1Gu.js.map} +1 -1
  54. package/lib/{DevPortalProvider-D6Tr_uD_.js → ZudokuContext-C3JtXViU.js} +98 -98
  55. package/lib/ZudokuContext-C3JtXViU.js.map +1 -0
  56. package/lib/{index-DiSzJkoL.js → index-B8BCBPkc.js} +3 -3
  57. package/lib/{index-DiSzJkoL.js.map → index-B8BCBPkc.js.map} +1 -1
  58. package/lib/{index-BuVwhb9F.js → index-DoIWqOG1.js} +7 -7
  59. package/lib/index-DoIWqOG1.js.map +1 -0
  60. package/lib/{utils-Ctz-5ywK.js → utils-D3fcGEot.js} +9 -9
  61. package/lib/{utils-Ctz-5ywK.js.map → utils-D3fcGEot.js.map} +1 -1
  62. package/lib/zudoku.auth-clerk.js +1 -1
  63. package/lib/zudoku.auth-openid.js +8 -6
  64. package/lib/zudoku.auth-openid.js.map +1 -1
  65. package/lib/zudoku.components.js +597 -594
  66. package/lib/zudoku.components.js.map +1 -1
  67. package/lib/zudoku.plugin-api-keys.js +16 -16
  68. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  69. package/lib/zudoku.plugin-markdown.js +1 -1
  70. package/lib/zudoku.plugin-openapi.js +3 -3
  71. package/package.json +1 -1
  72. package/src/lib/authentication/components/SignIn.tsx +2 -2
  73. package/src/lib/authentication/components/SignOut.tsx +2 -2
  74. package/src/lib/authentication/components/SignUp.tsx +2 -2
  75. package/src/lib/authentication/hook.ts +2 -2
  76. package/src/lib/authentication/providers/openid.tsx +3 -4
  77. package/src/lib/components/DevPortal.tsx +4 -30
  78. package/src/lib/components/Header.tsx +2 -2
  79. package/src/lib/components/Layout.tsx +2 -2
  80. package/src/lib/components/TopNavigation.tsx +2 -2
  81. package/src/lib/components/context/{DevPortalProvider.ts → ZudokuContext.ts} +6 -8
  82. package/src/lib/components/context/ZudokuProvider.tsx +26 -0
  83. package/src/lib/components/navigation/Sidebar.tsx +1 -1
  84. package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
  85. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  86. package/src/lib/components/navigation/utils.ts +3 -6
  87. package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
  88. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +2 -2
  89. package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
  90. package/dist/lib/components/context/DevPortalProvider.js.map +0 -1
  91. package/lib/AuthenticationPlugin-B68Pelzd.js.map +0 -1
  92. package/lib/Combination-BOiWt0Ng.js.map +0 -1
  93. package/lib/DevPortalProvider-D6Tr_uD_.js.map +0 -1
  94. package/lib/index-BuVwhb9F.js.map +0 -1
@@ -4,9 +4,9 @@ var qt = (e) => {
4
4
  var ct = (e, t, s) => t.has(e) || qt("Cannot " + s);
5
5
  var i = (e, t, s) => (ct(e, t, "read from private field"), s ? s.call(e) : t.get(e)), f = (e, t, s) => t.has(e) ? qt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), h = (e, t, s, r) => (ct(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s), v = (e, t, s) => (ct(e, t, "access private method"), s);
6
6
  import * as T from "react";
7
- import { createContext as re, useContext as ie } from "react";
8
- import { j as ne } from "./jsx-runtime-B6kdoens.js";
9
- import { u as ae } from "./index-7kcHaXD6.js";
7
+ import { createContext as se, useContext as re } from "react";
8
+ import { j as ie } from "./jsx-runtime-B6kdoens.js";
9
+ import { u as ne } from "./index-7kcHaXD6.js";
10
10
  var Dt = class {
11
11
  constructor() {
12
12
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -52,7 +52,7 @@ function Ne(e, t) {
52
52
  } = e;
53
53
  if (o) {
54
54
  if (r) {
55
- if (t.queryHash !== oe(o, t.options))
55
+ if (t.queryHash !== ae(o, t.options))
56
56
  return !1;
57
57
  } else if (!Pt(t.queryKey, o))
58
58
  return !1;
@@ -77,7 +77,7 @@ function Ke(e, t) {
77
77
  }
78
78
  return !(r && t.state.status !== r || n && !n(t));
79
79
  }
80
- function oe(e, t) {
80
+ function ae(e, t) {
81
81
  return ((t == null ? void 0 : t.queryKeyHashFn) || yt)(e);
82
82
  }
83
83
  function yt(e) {
@@ -127,7 +127,7 @@ function vt(e) {
127
127
  function xt(e) {
128
128
  return Object.prototype.toString.call(e) === "[object Object]";
129
129
  }
130
- function ue(e) {
130
+ function oe(e) {
131
131
  return new Promise((t) => {
132
132
  setTimeout(t, e);
133
133
  });
@@ -143,13 +143,13 @@ function Be(e, t, s = 0) {
143
143
  const r = [t, ...e];
144
144
  return s && r.length > s ? r.slice(0, -1) : r;
145
145
  }
146
- var bt = Symbol(), he = (e, t) => (process.env.NODE_ENV !== "production" && e.queryFn === bt && console.error(
146
+ var bt = Symbol(), ue = (e, t) => (process.env.NODE_ENV !== "production" && e.queryFn === bt && console.error(
147
147
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
148
- ), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === bt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn), N, M, z, kt, ce = (kt = class extends Dt {
148
+ ), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === bt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn), N, k, z, Mt, he = (Mt = class extends Dt {
149
149
  constructor() {
150
150
  super();
151
151
  f(this, N);
152
- f(this, M);
152
+ f(this, k);
153
153
  f(this, z);
154
154
  h(this, z, (t) => {
155
155
  if (!st && window.addEventListener) {
@@ -161,15 +161,15 @@ var bt = Symbol(), he = (e, t) => (process.env.NODE_ENV !== "production" && e.qu
161
161
  });
162
162
  }
163
163
  onSubscribe() {
164
- i(this, M) || this.setEventListener(i(this, z));
164
+ i(this, k) || this.setEventListener(i(this, z));
165
165
  }
166
166
  onUnsubscribe() {
167
167
  var t;
168
- this.hasListeners() || ((t = i(this, M)) == null || t.call(this), h(this, M, void 0));
168
+ this.hasListeners() || ((t = i(this, k)) == null || t.call(this), h(this, k, void 0));
169
169
  }
170
170
  setEventListener(t) {
171
171
  var s;
172
- h(this, z, t), (s = i(this, M)) == null || s.call(this), h(this, M, t((r) => {
172
+ h(this, z, t), (s = i(this, k)) == null || s.call(this), h(this, k, t((r) => {
173
173
  typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
174
174
  }));
175
175
  }
@@ -186,11 +186,11 @@ var bt = Symbol(), he = (e, t) => (process.env.NODE_ENV !== "production" && e.qu
186
186
  var t;
187
187
  return typeof i(this, N) == "boolean" ? i(this, N) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
188
188
  }
189
- }, N = new WeakMap(), M = new WeakMap(), z = new WeakMap(), kt), Ht = new ce(), $, k, W, Lt, le = (Lt = class extends Dt {
189
+ }, N = new WeakMap(), k = new WeakMap(), z = new WeakMap(), Mt), Ht = new he(), $, M, W, Lt, ce = (Lt = class extends Dt {
190
190
  constructor() {
191
191
  super();
192
192
  f(this, $, !0);
193
- f(this, k);
193
+ f(this, M);
194
194
  f(this, W);
195
195
  h(this, W, (t) => {
196
196
  if (!st && window.addEventListener) {
@@ -202,15 +202,15 @@ var bt = Symbol(), he = (e, t) => (process.env.NODE_ENV !== "production" && e.qu
202
202
  });
203
203
  }
204
204
  onSubscribe() {
205
- i(this, k) || this.setEventListener(i(this, W));
205
+ i(this, M) || this.setEventListener(i(this, W));
206
206
  }
207
207
  onUnsubscribe() {
208
208
  var t;
209
- this.hasListeners() || ((t = i(this, k)) == null || t.call(this), h(this, k, void 0));
209
+ this.hasListeners() || ((t = i(this, M)) == null || t.call(this), h(this, M, void 0));
210
210
  }
211
211
  setEventListener(t) {
212
212
  var s;
213
- h(this, W, t), (s = i(this, k)) == null || s.call(this), h(this, k, t(this.setOnline.bind(this)));
213
+ h(this, W, t), (s = i(this, M)) == null || s.call(this), h(this, M, t(this.setOnline.bind(this)));
214
214
  }
215
215
  setOnline(t) {
216
216
  i(this, $) !== t && (h(this, $, t), this.listeners.forEach((r) => {
@@ -220,8 +220,8 @@ var bt = Symbol(), he = (e, t) => (process.env.NODE_ENV !== "production" && e.qu
220
220
  isOnline() {
221
221
  return i(this, $);
222
222
  }
223
- }, $ = new WeakMap(), k = new WeakMap(), W = new WeakMap(), Lt), Vt = new le();
224
- function de(e) {
223
+ }, $ = new WeakMap(), M = new WeakMap(), W = new WeakMap(), Lt), Vt = new ce();
224
+ function le(e) {
225
225
  return Math.min(1e3 * 2 ** e, 3e4);
226
226
  }
227
227
  function zt(e) {
@@ -235,7 +235,7 @@ var $t = class {
235
235
  function lt(e) {
236
236
  return e instanceof $t;
237
237
  }
238
- function fe(e) {
238
+ function de(e) {
239
239
  let t = !1, s = 0, r = !1, n, c, o;
240
240
  const l = new Promise((g, S) => {
241
241
  c = g, o = S;
@@ -274,12 +274,12 @@ function fe(e) {
274
274
  var w;
275
275
  if (r)
276
276
  return;
277
- const j = e.retry ?? (st ? 0 : 3), V = e.retryDelay ?? de, Qt = typeof V == "function" ? V(s, D) : V, ot = j === !0 || typeof j == "number" && s < j || typeof j == "function" && j(s, D);
277
+ const j = e.retry ?? (st ? 0 : 3), V = e.retryDelay ?? le, Qt = typeof V == "function" ? V(s, D) : V, ot = j === !0 || typeof j == "number" && s < j || typeof j == "function" && j(s, D);
278
278
  if (t || !ot) {
279
279
  O(D);
280
280
  return;
281
281
  }
282
- s++, (w = e.onFail) == null || w.call(e, s, D), ue(Qt).then(() => a() ? void 0 : U()).then(() => {
282
+ s++, (w = e.onFail) == null || w.call(e, s, D), oe(Qt).then(() => a() ? void 0 : U()).then(() => {
283
283
  t ? O(D) : A();
284
284
  });
285
285
  });
@@ -294,7 +294,7 @@ function fe(e) {
294
294
  start: () => (u() ? A() : U().then(A), l)
295
295
  };
296
296
  }
297
- function ye() {
297
+ function fe() {
298
298
  let e = [], t = 0, s = (u) => {
299
299
  u();
300
300
  }, r = (u) => {
@@ -342,7 +342,7 @@ function ye() {
342
342
  setScheduler: c
343
343
  };
344
344
  }
345
- var Tt = ye(), K, Nt, pe = (Nt = class {
345
+ var Tt = fe(), K, Nt, ye = (Nt = class {
346
346
  constructor() {
347
347
  f(this, K);
348
348
  }
@@ -363,17 +363,17 @@ var Tt = ye(), K, Nt, pe = (Nt = class {
363
363
  clearGcTimeout() {
364
364
  i(this, K) && (clearTimeout(i(this, K)), h(this, K, void 0));
365
365
  }
366
- }, K = new WeakMap(), Nt), J, X, P, C, it, _, Q, x, Kt, Ge = (Kt = class extends pe {
366
+ }, K = new WeakMap(), Nt), Z, J, P, C, it, _, Q, x, Kt, Ge = (Kt = class extends ye {
367
367
  constructor(t) {
368
368
  super();
369
369
  f(this, Q);
370
+ f(this, Z);
370
371
  f(this, J);
371
- f(this, X);
372
372
  f(this, P);
373
373
  f(this, C);
374
374
  f(this, it);
375
375
  f(this, _);
376
- h(this, _, !1), h(this, it, t.defaultOptions), this.setOptions(t.options), this.observers = [], h(this, P, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, h(this, J, t.state || ve(this.options)), this.state = i(this, J), this.scheduleGc();
376
+ h(this, _, !1), h(this, it, t.defaultOptions), this.setOptions(t.options), this.observers = [], h(this, P, t.cache), this.queryKey = t.queryKey, this.queryHash = t.queryHash, h(this, Z, t.state || pe(this.options)), this.state = i(this, Z), this.scheduleGc();
377
377
  }
378
378
  get meta() {
379
379
  return this.options.meta;
@@ -409,7 +409,7 @@ var Tt = ye(), K, Nt, pe = (Nt = class {
409
409
  super.destroy(), this.cancel({ silent: !0 });
410
410
  }
411
411
  reset() {
412
- this.destroy(), this.setState(i(this, J));
412
+ this.destroy(), this.setState(i(this, Z));
413
413
  }
414
414
  isActive() {
415
415
  return this.observers.some(
@@ -470,7 +470,7 @@ var Tt = ye(), K, Nt, pe = (Nt = class {
470
470
  get: () => (h(this, _, !0), r.signal)
471
471
  });
472
472
  }, c = () => {
473
- const a = he(this.options, s), u = {
473
+ const a = ue(this.options, s), u = {
474
474
  queryKey: this.queryKey,
475
475
  meta: this.meta
476
476
  };
@@ -489,7 +489,7 @@ var Tt = ye(), K, Nt, pe = (Nt = class {
489
489
  n(o), (b = this.options.behavior) == null || b.onFetch(
490
490
  o,
491
491
  this
492
- ), h(this, X, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((R = o.fetchOptions) == null ? void 0 : R.meta)) && v(this, Q, x).call(this, { type: "fetch", meta: (m = o.fetchOptions) == null ? void 0 : m.meta });
492
+ ), h(this, J, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((R = o.fetchOptions) == null ? void 0 : R.meta)) && v(this, Q, x).call(this, { type: "fetch", meta: (m = o.fetchOptions) == null ? void 0 : m.meta });
493
493
  const l = (a) => {
494
494
  var u, p, O, U;
495
495
  lt(a) && a.silent || v(this, Q, x).call(this, {
@@ -506,7 +506,7 @@ var Tt = ye(), K, Nt, pe = (Nt = class {
506
506
  this
507
507
  )), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
508
508
  };
509
- return h(this, C, fe({
509
+ return h(this, C, de({
510
510
  initialPromise: s == null ? void 0 : s.initialPromise,
511
511
  fn: o.fetchFn,
512
512
  abort: r.abort.bind(r),
@@ -541,7 +541,7 @@ var Tt = ye(), K, Nt, pe = (Nt = class {
541
541
  canRun: () => !0
542
542
  })), i(this, C).start();
543
543
  }
544
- }, J = new WeakMap(), X = new WeakMap(), P = new WeakMap(), C = new WeakMap(), it = new WeakMap(), _ = new WeakMap(), Q = new WeakSet(), x = function(t) {
544
+ }, Z = new WeakMap(), J = new WeakMap(), P = new WeakMap(), C = new WeakMap(), it = new WeakMap(), _ = new WeakMap(), Q = new WeakSet(), x = function(t) {
545
545
  const s = (r) => {
546
546
  switch (t.type) {
547
547
  case "failed":
@@ -583,7 +583,7 @@ var Tt = ye(), K, Nt, pe = (Nt = class {
583
583
  };
584
584
  case "error":
585
585
  const n = t.error;
586
- return lt(n) && n.revert && i(this, X) ? { ...i(this, X), fetchStatus: "idle" } : {
586
+ return lt(n) && n.revert && i(this, J) ? { ...i(this, J), fetchStatus: "idle" } : {
587
587
  ...r,
588
588
  error: n,
589
589
  errorUpdateCount: r.errorUpdateCount + 1,
@@ -622,7 +622,7 @@ function Wt(e, t) {
622
622
  }
623
623
  };
624
624
  }
625
- function ve(e) {
625
+ function pe(e) {
626
626
  const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, s = t !== void 0, r = s ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
627
627
  return {
628
628
  data: t,
@@ -639,7 +639,7 @@ function ve(e) {
639
639
  fetchStatus: "idle"
640
640
  };
641
641
  }
642
- var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft, Ot, Xt, _t, Jt = (_t = class extends Dt {
642
+ var E, d, nt, F, B, X, I, at, Y, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft, Ot, Jt, _t, Zt = (_t = class extends Dt {
643
643
  constructor(t, s) {
644
644
  super();
645
645
  f(this, y);
@@ -648,10 +648,10 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
648
648
  f(this, nt);
649
649
  f(this, F);
650
650
  f(this, B);
651
- f(this, Y);
651
+ f(this, X);
652
652
  f(this, I);
653
653
  f(this, at);
654
- f(this, Z);
654
+ f(this, Y);
655
655
  // This property keeps track of the last query with defined data.
656
656
  // It will be used to pass the previous data and query to the placeholder function between renders.
657
657
  f(this, tt);
@@ -699,7 +699,7 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
699
699
  observer: this
700
700
  });
701
701
  const c = this.hasListeners();
702
- c && Mt(
702
+ c && kt(
703
703
  i(this, d),
704
704
  n,
705
705
  this.options,
@@ -710,7 +710,7 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
710
710
  }
711
711
  getOptimisticResult(t) {
712
712
  const s = i(this, E).getQueryCache().build(i(this, E), t), r = this.createResult(s, t);
713
- return be(this, r) && (h(this, F, r), h(this, Y, this.options), h(this, B, i(this, d).state)), r;
713
+ return me(this, r) && (h(this, F, r), h(this, X, this.options), h(this, B, i(this, d).state)), r;
714
714
  }
715
715
  getCurrentResult() {
716
716
  return i(this, F);
@@ -748,11 +748,11 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
748
748
  }
749
749
  createResult(t, s) {
750
750
  var ot;
751
- const r = i(this, d), n = this.options, c = i(this, F), o = i(this, B), l = i(this, Y), R = t !== r ? t.state : i(this, nt), { state: m } = t;
751
+ const r = i(this, d), n = this.options, c = i(this, F), o = i(this, B), l = i(this, X), R = t !== r ? t.state : i(this, nt), { state: m } = t;
752
752
  let a = { ...m }, u = !1, p;
753
753
  if (s._optimisticResults) {
754
- const w = this.hasListeners(), ht = !w && jt(t, s), se = w && Mt(t, r, s, n);
755
- (ht || se) && (a = {
754
+ const w = this.hasListeners(), ht = !w && jt(t, s), ee = w && kt(t, r, s, n);
755
+ (ht || ee) && (a = {
756
756
  ...a,
757
757
  ...Wt(m.data, t.options)
758
758
  }), s._optimisticResults === "isRestoring" && (a.fetchStatus = "idle");
@@ -760,10 +760,10 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
760
760
  let { error: O, errorUpdatedAt: U, status: A } = a;
761
761
  if (s.select && a.data !== void 0)
762
762
  if (c && a.data === (o == null ? void 0 : o.data) && s.select === i(this, at))
763
- p = i(this, Z);
763
+ p = i(this, Y);
764
764
  else
765
765
  try {
766
- h(this, at, s.select), p = s.select(a.data), p = mt(c == null ? void 0 : c.data, p, s), h(this, Z, p), h(this, I, null);
766
+ h(this, at, s.select), p = s.select(a.data), p = mt(c == null ? void 0 : c.data, p, s), h(this, Y, p), h(this, I, null);
767
767
  } catch (w) {
768
768
  h(this, I, w);
769
769
  }
@@ -788,7 +788,7 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
788
788
  s
789
789
  ), u = !0);
790
790
  }
791
- i(this, I) && (O = i(this, I), p = i(this, Z), U = Date.now(), A = "error");
791
+ i(this, I) && (O = i(this, I), p = i(this, Y), U = Date.now(), A = "error");
792
792
  const g = a.fetchStatus === "fetching", S = A === "pending", D = A === "error", j = S && g, V = p !== void 0;
793
793
  return {
794
794
  status: A,
@@ -819,7 +819,7 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
819
819
  }
820
820
  updateResult(t) {
821
821
  const s = i(this, F), r = this.createResult(i(this, d), this.options);
822
- if (h(this, B, i(this, d).state), h(this, Y, this.options), i(this, B).data !== void 0 && h(this, tt, i(this, d)), pt(r, s))
822
+ if (h(this, B, i(this, d).state), h(this, X, this.options), i(this, B).data !== void 0 && h(this, tt, i(this, d)), pt(r, s))
823
823
  return;
824
824
  h(this, F, r);
825
825
  const n = {}, c = () => {
@@ -836,12 +836,12 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
836
836
  return i(this, F)[m] !== s[m] && b.has(m);
837
837
  });
838
838
  };
839
- (t == null ? void 0 : t.listeners) !== !1 && c() && (n.listeners = !0), v(this, y, Xt).call(this, { ...n, ...t });
839
+ (t == null ? void 0 : t.listeners) !== !1 && c() && (n.listeners = !0), v(this, y, Jt).call(this, { ...n, ...t });
840
840
  }
841
841
  onQueryUpdate() {
842
842
  this.updateResult(), this.hasListeners() && v(this, y, Ct).call(this);
843
843
  }
844
- }, E = new WeakMap(), d = new WeakMap(), nt = new WeakMap(), F = new WeakMap(), B = new WeakMap(), Y = new WeakMap(), I = new WeakMap(), at = new WeakMap(), Z = new WeakMap(), tt = new WeakMap(), G = new WeakMap(), H = new WeakMap(), L = new WeakMap(), et = new WeakMap(), y = new WeakSet(), rt = function(t) {
844
+ }, E = new WeakMap(), d = new WeakMap(), nt = new WeakMap(), F = new WeakMap(), B = new WeakMap(), X = new WeakMap(), I = new WeakMap(), at = new WeakMap(), Y = new WeakMap(), tt = new WeakMap(), G = new WeakMap(), H = new WeakMap(), L = new WeakMap(), et = new WeakMap(), y = new WeakSet(), rt = function(t) {
845
845
  v(this, y, Ot).call(this);
846
846
  let s = i(this, d).fetch(
847
847
  this.options,
@@ -878,7 +878,7 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
878
878
  return;
879
879
  const s = i(this, d);
880
880
  h(this, d, t), h(this, nt, t.state), this.hasListeners() && (s == null || s.removeObserver(this), t.addObserver(this));
881
- }, Xt = function(t) {
881
+ }, Jt = function(t) {
882
882
  Tt.batch(() => {
883
883
  t.listeners && this.listeners.forEach((s) => {
884
884
  s(i(this, F));
@@ -888,11 +888,11 @@ var E, d, nt, F, B, Y, I, at, Z, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
888
888
  });
889
889
  });
890
890
  }, _t);
891
- function me(e, t) {
891
+ function ve(e, t) {
892
892
  return q(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
893
893
  }
894
894
  function jt(e, t) {
895
- return me(e, t) || e.state.data !== void 0 && Et(e, t, t.refetchOnMount);
895
+ return ve(e, t) || e.state.data !== void 0 && Et(e, t, t.refetchOnMount);
896
896
  }
897
897
  function Et(e, t, s) {
898
898
  if (q(t.enabled, e) !== !1) {
@@ -901,19 +901,19 @@ function Et(e, t, s) {
901
901
  }
902
902
  return !1;
903
903
  }
904
- function Mt(e, t, s, r) {
904
+ function kt(e, t, s, r) {
905
905
  return (e !== t || q(r.enabled, e) === !1) && (!s.suspense || e.state.status !== "error") && Ut(e, s);
906
906
  }
907
907
  function Ut(e, t) {
908
908
  return q(t.enabled, e) !== !1 && e.isStaleByTime(ut(t.staleTime, e));
909
909
  }
910
- function be(e, t) {
910
+ function me(e, t) {
911
911
  return !pt(e.getCurrentResult(), t);
912
912
  }
913
- var Yt = T.createContext(
913
+ var Xt = T.createContext(
914
914
  void 0
915
- ), ge = (e) => {
916
- const t = T.useContext(Yt);
915
+ ), be = (e) => {
916
+ const t = T.useContext(Xt);
917
917
  if (!t)
918
918
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
919
919
  return t;
@@ -922,9 +922,9 @@ var Yt = T.createContext(
922
922
  children: t
923
923
  }) => (T.useEffect(() => (e.mount(), () => {
924
924
  e.unmount();
925
- }), [e]), /* @__PURE__ */ ne.jsx(Yt.Provider, { value: e, children: t })), Zt = T.createContext(!1), Re = () => T.useContext(Zt);
926
- Zt.Provider;
927
- function Se() {
925
+ }), [e]), /* @__PURE__ */ ie.jsx(Xt.Provider, { value: e, children: t })), Yt = T.createContext(!1), ge = () => T.useContext(Yt);
926
+ Yt.Provider;
927
+ function Re() {
928
928
  let e = !1;
929
929
  return {
930
930
  clearReset: () => {
@@ -936,26 +936,26 @@ function Se() {
936
936
  isReset: () => e
937
937
  };
938
938
  }
939
- var Ce = T.createContext(Se()), we = () => T.useContext(Ce);
940
- function Fe(e, t) {
939
+ var Se = T.createContext(Re()), Ce = () => T.useContext(Se);
940
+ function we(e, t) {
941
941
  return typeof e == "function" ? e(...t) : !!e;
942
942
  }
943
943
  function Ve() {
944
944
  }
945
- var Oe = (e, t) => {
945
+ var Fe = (e, t) => {
946
946
  (e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1));
947
- }, Ee = (e) => {
947
+ }, Oe = (e) => {
948
948
  T.useEffect(() => {
949
949
  e.clearReset();
950
950
  }, [e]);
951
- }, De = ({
951
+ }, Ee = ({
952
952
  result: e,
953
953
  errorResetBoundary: t,
954
954
  throwOnError: s,
955
955
  query: r
956
- }) => e.isError && !t.isReset() && !e.isFetching && r && Fe(s, [e.error, r]), Pe = (e, t) => t.state.data === void 0, Te = (e) => {
956
+ }) => e.isError && !t.isReset() && !e.isFetching && r && we(s, [e.error, r]), De = (e, t) => t.state.data === void 0, Pe = (e) => {
957
957
  e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
958
- }, Ue = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, Ae = (e, t, s) => t.fetchOptimistic(e).catch(() => {
958
+ }, Te = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, Ue = (e, t, s) => t.fetchOptimistic(e).catch(() => {
959
959
  s.clearReset();
960
960
  });
961
961
  function te(e, t, s) {
@@ -964,11 +964,11 @@ function te(e, t, s) {
964
964
  throw new Error(
965
965
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
966
966
  );
967
- const r = ge(), n = Re(), c = we(), o = r.defaultQueryOptions(e);
967
+ const r = be(), n = ge(), c = Ce(), o = r.defaultQueryOptions(e);
968
968
  (m = (R = r.getDefaultOptions().queries) == null ? void 0 : R._experimental_beforeQuery) == null || m.call(
969
969
  R,
970
970
  o
971
- ), o._optimisticResults = n ? "isRestoring" : "optimistic", Te(o), Oe(o, c), Ee(c);
971
+ ), o._optimisticResults = n ? "isRestoring" : "optimistic", Pe(o), Fe(o, c), Oe(c);
972
972
  const [l] = T.useState(
973
973
  () => new t(
974
974
  r,
@@ -988,9 +988,9 @@ function te(e, t, s) {
988
988
  () => l.getCurrentResult()
989
989
  ), T.useEffect(() => {
990
990
  l.setOptions(o, { listeners: !1 });
991
- }, [o, l]), Ue(o, b))
992
- throw Ae(o, l, c);
993
- if (De({
991
+ }, [o, l]), Te(o, b))
992
+ throw Ue(o, l, c);
993
+ if (Ee({
994
994
  result: b,
995
995
  errorResetBoundary: c,
996
996
  throwOnError: o.throwOnError,
@@ -1003,41 +1003,41 @@ function te(e, t, s) {
1003
1003
  b
1004
1004
  ), o.notifyOnChangeProps ? b : l.trackResult(b);
1005
1005
  }
1006
- function Qe(e, t) {
1007
- return te(e, Jt);
1006
+ function Ae(e, t) {
1007
+ return te(e, Zt);
1008
1008
  }
1009
- function qe(e, t) {
1009
+ function Qe(e, t) {
1010
1010
  return process.env.NODE_ENV !== "production" && e.queryFn === bt && console.error("skipToken is not allowed for useSuspenseQuery"), te(
1011
1011
  {
1012
1012
  ...e,
1013
1013
  enabled: !0,
1014
1014
  suspense: !0,
1015
- throwOnError: Pe,
1015
+ throwOnError: De,
1016
1016
  placeholderData: void 0
1017
1017
  },
1018
- Jt
1018
+ Zt
1019
1019
  );
1020
1020
  }
1021
- const ee = re(
1021
+ const qe = se(
1022
1022
  void 0
1023
- ), ze = ee.Provider, At = () => {
1024
- const e = ie(ee);
1023
+ ), At = () => {
1024
+ const e = re(qe);
1025
1025
  if (!e)
1026
1026
  throw new Error("useDevPortal must be used within a DevPortalProvider.");
1027
1027
  return e;
1028
- }, $e = () => {
1028
+ }, ze = () => {
1029
1029
  const { getApiIdentities: e } = At();
1030
- return Qe({
1030
+ return Ae({
1031
1031
  queryFn: e,
1032
1032
  queryKey: ["api-identities"]
1033
1033
  });
1034
1034
  }, Ie = () => {
1035
- const { topNavigation: e } = At(), s = ae().pathname.split("/").at(1);
1035
+ const { topNavigation: e } = At(), s = ne().pathname.split("/").at(1);
1036
1036
  if (s)
1037
1037
  return e.find((r) => r.id === s);
1038
- }, We = () => {
1038
+ }, $e = () => {
1039
1039
  const { getPluginSidebar: e, sidebars: t } = At(), s = Ie(), r = s == null ? void 0 : s.id, n = r ? t[r] ?? [] : [];
1040
- return qe({
1040
+ return Qe({
1041
1041
  queryFn: async () => {
1042
1042
  const c = r ? await e(r) : [];
1043
1043
  return {
@@ -1049,36 +1049,36 @@ const ee = re(
1049
1049
  });
1050
1050
  };
1051
1051
  export {
1052
- fe as A,
1053
- ze as D,
1052
+ de as A,
1054
1053
  Ge as Q,
1055
- pe as R,
1054
+ ye as R,
1056
1055
  Dt as S,
1056
+ qe as Z,
1057
1057
  Ke as a,
1058
1058
  dt as b,
1059
1059
  Be as c,
1060
1060
  _e as d,
1061
- he as e,
1061
+ ue as e,
1062
1062
  Ht as f,
1063
1063
  Le as g,
1064
- oe as h,
1064
+ ae as h,
1065
1065
  yt as i,
1066
- He as j,
1067
- Ie as k,
1068
- We as l,
1066
+ Qe as j,
1067
+ He as k,
1068
+ Ie as l,
1069
1069
  Ne as m,
1070
1070
  Tt as n,
1071
1071
  Vt as o,
1072
1072
  Pt as p,
1073
- ge as q,
1073
+ $e as q,
1074
1074
  ut as r,
1075
1075
  bt as s,
1076
- qe as t,
1076
+ be as t,
1077
1077
  At as u,
1078
- $e as v,
1079
- Qe as w,
1078
+ ze as v,
1079
+ Ae as w,
1080
1080
  pt as x,
1081
1081
  Ve as y,
1082
- Fe as z
1082
+ we as z
1083
1083
  };
1084
- //# sourceMappingURL=DevPortalProvider-D6Tr_uD_.js.map
1084
+ //# sourceMappingURL=ZudokuContext-C3JtXViU.js.map