zudoku 0.3.0-dev.10 → 0.3.0-dev.11

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 (50) hide show
  1. package/dist/lib/authentication/authentication.d.ts +2 -2
  2. package/dist/lib/components/DevPortal.js +12 -7
  3. package/dist/lib/components/DevPortal.js.map +1 -1
  4. package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
  5. package/dist/lib/components/context/DevPortalProvider.js +2 -2
  6. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  7. package/dist/lib/core/DevPortalContext.js +1 -1
  8. package/dist/lib/core/DevPortalContext.js.map +1 -1
  9. package/dist/lib/core/plugins.d.ts +7 -4
  10. package/dist/lib/core/plugins.js +1 -0
  11. package/dist/lib/core/plugins.js.map +1 -1
  12. package/dist/lib/oas/graphql/index.js +1 -1
  13. package/dist/lib/oas/graphql/index.js.map +1 -1
  14. package/dist/lib/oas/parser/index.js +3 -1
  15. package/dist/lib/oas/parser/index.js.map +1 -1
  16. package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
  17. package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +4 -4
  18. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
  19. package/dist/lib/plugins/openapi/Sidecar.js +2 -2
  20. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  21. package/dist/lib/plugins/openapi/index.js +8 -0
  22. package/dist/lib/plugins/openapi/index.js.map +1 -1
  23. package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -4
  24. package/dist/lib/plugins/openapi/playground/Playground.js +7 -11
  25. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  26. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
  27. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
  28. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
  29. package/dist/lib/plugins/openapi/worker/worker.js +25 -1
  30. package/dist/lib/plugins/openapi/worker/worker.js.map +1 -1
  31. package/lib/{Spinner-DCwVN24H.js → Spinner-CzCKCaUK.js} +487 -484
  32. package/lib/assets/{worker-BCcpCNJ7.js → worker-DGvzLstc.js} +9843 -9800
  33. package/lib/zudoku.components.js +156 -144
  34. package/lib/zudoku.openapi-worker.js +12 -12
  35. package/lib/zudoku.plugins.js +1931 -1923
  36. package/package.json +2 -1
  37. package/src/lib/authentication/authentication.ts +2 -5
  38. package/src/lib/components/DevPortal.tsx +9 -3
  39. package/src/lib/components/context/DevPortalProvider.ts +2 -2
  40. package/src/lib/core/DevPortalContext.ts +1 -1
  41. package/src/lib/core/plugins.ts +10 -5
  42. package/src/lib/oas/graphql/index.ts +2 -2
  43. package/src/lib/oas/parser/index.ts +3 -1
  44. package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +3 -3
  45. package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
  46. package/src/lib/plugins/openapi/index.tsx +17 -4
  47. package/src/lib/plugins/openapi/playground/Playground.tsx +157 -187
  48. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
  49. package/src/lib/plugins/openapi/worker/worker.ts +27 -1
  50. package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
@@ -1,10 +1,10 @@
1
- var De = Object.defineProperty;
1
+ var Te = Object.defineProperty;
2
2
  var se = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Te = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var y = (t, e, s) => Te(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
7
- var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), m = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
5
+ var Ie = (t, e, s) => e in t ? Te(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
+ var y = (t, e, s) => Ie(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
7
+ var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), g = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
8
  var S = (t, e, s, a) => ({
9
9
  set _(r) {
10
10
  u(t, e, r, s);
@@ -13,21 +13,21 @@ var S = (t, e, s, a) => ({
13
13
  return i(t, e, a);
14
14
  }
15
15
  });
16
- import { j as n, u as D, O as Ie } from "./index-PyGcnQFX.js";
17
- import { S as me, h as ge, Q as Ee, n as p, m as ne, M as Se, a as re, b as j, e as Fe, c as Re, d as He, f as Le, o as ie, r as oe, g as ze, i as le, p as ce, s as Ke, j as z, u as U, N as B, k as _e, l as Be, q as Ve, t as W, v as X, w as V, x as ve, y as Ue, z as L, R as ye, T as xe, C as be, A as We, B as Xe, D as $e, E as Ge, H as Je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, U as it, V as ot } from "./Spinner-DCwVN24H.js";
18
- import { X as _t, W as Bt } from "./Spinner-DCwVN24H.js";
19
- import { memo as je, createContext as lt, useEffect as I, useRef as K, useState as ct, forwardRef as ht, Suspense as Pe, useMemo as H } from "react";
20
- import { c as ut } from "./state-2Hu1renZ.js";
21
- var x, de, dt = (de = class extends me {
16
+ import { j as n, u as D, O as Ee } from "./index-PyGcnQFX.js";
17
+ import { S as me, h as ge, Q as Se, n as m, m as ne, M as Fe, a as re, b as j, e as Re, c as He, d as Le, f as ze, o as ie, r as oe, g as Ke, i as le, p as ce, s as _e, j as z, u as U, N as B, k as Be, l as Ve, q as Ue, t as W, v as X, w as V, x as ve, y as We, z as L, R as ye, T as xe, C as be, A as Xe, B as $e, D as Ge, E as Je, H as je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, U as it, V as ot } from "./Spinner-CzCKCaUK.js";
18
+ import { X as Vt, W as Ut } from "./Spinner-CzCKCaUK.js";
19
+ import { memo as Pe, createContext as lt, useEffect as I, useRef as K, useState as ct, forwardRef as ht, Suspense as we, useMemo as H, Fragment as ut } from "react";
20
+ import { c as dt } from "./state-2Hu1renZ.js";
21
+ var x, de, ft = (de = class extends me {
22
22
  constructor(e = {}) {
23
23
  super();
24
- m(this, x);
24
+ g(this, x);
25
25
  this.config = e, u(this, x, /* @__PURE__ */ new Map());
26
26
  }
27
27
  build(e, s, a) {
28
28
  const r = s.queryKey, o = s.queryHash ?? ge(r, s);
29
29
  let l = this.get(o);
30
- return l || (l = new Ee({
30
+ return l || (l = new Se({
31
31
  cache: this,
32
32
  queryKey: r,
33
33
  queryHash: o,
@@ -47,7 +47,7 @@ var x, de, dt = (de = class extends me {
47
47
  s && (e.destroy(), s === e && i(this, x).delete(e.queryHash), this.notify({ type: "removed", query: e }));
48
48
  }
49
49
  clear() {
50
- p.batch(() => {
50
+ m.batch(() => {
51
51
  this.getAll().forEach((e) => {
52
52
  this.remove(e);
53
53
  });
@@ -70,35 +70,35 @@ var x, de, dt = (de = class extends me {
70
70
  return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
71
71
  }
72
72
  notify(e) {
73
- p.batch(() => {
73
+ m.batch(() => {
74
74
  this.listeners.forEach((s) => {
75
75
  s(e);
76
76
  });
77
77
  });
78
78
  }
79
79
  onFocus() {
80
- p.batch(() => {
80
+ m.batch(() => {
81
81
  this.getAll().forEach((e) => {
82
82
  e.onFocus();
83
83
  });
84
84
  });
85
85
  }
86
86
  onOnline() {
87
- p.batch(() => {
87
+ m.batch(() => {
88
88
  this.getAll().forEach((e) => {
89
89
  e.onOnline();
90
90
  });
91
91
  });
92
92
  }
93
- }, x = new WeakMap(), de), f, T, fe, ft = (fe = class extends me {
93
+ }, x = new WeakMap(), de), p, T, fe, pt = (fe = class extends me {
94
94
  constructor(e = {}) {
95
95
  super();
96
- m(this, f);
97
- m(this, T);
98
- this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, T, Date.now());
96
+ g(this, p);
97
+ g(this, T);
98
+ this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this, T, Date.now());
99
99
  }
100
100
  build(e, s, a) {
101
- const r = new Se({
101
+ const r = new Fe({
102
102
  mutationCache: this,
103
103
  mutationId: ++S(this, T)._,
104
104
  options: e.defaultMutationOptions(s),
@@ -107,37 +107,37 @@ var x, de, dt = (de = class extends me {
107
107
  return this.add(r), r;
108
108
  }
109
109
  add(e) {
110
- const s = F(e), a = i(this, f).get(s) ?? [];
111
- a.push(e), i(this, f).set(s, a), this.notify({ type: "added", mutation: e });
110
+ const s = F(e), a = i(this, p).get(s) ?? [];
111
+ a.push(e), i(this, p).set(s, a), this.notify({ type: "added", mutation: e });
112
112
  }
113
113
  remove(e) {
114
114
  var a;
115
115
  const s = F(e);
116
- if (i(this, f).has(s)) {
117
- const r = (a = i(this, f).get(s)) == null ? void 0 : a.filter((o) => o !== e);
118
- r && (r.length === 0 ? i(this, f).delete(s) : i(this, f).set(s, r));
116
+ if (i(this, p).has(s)) {
117
+ const r = (a = i(this, p).get(s)) == null ? void 0 : a.filter((o) => o !== e);
118
+ r && (r.length === 0 ? i(this, p).delete(s) : i(this, p).set(s, r));
119
119
  }
120
120
  this.notify({ type: "removed", mutation: e });
121
121
  }
122
122
  canRun(e) {
123
123
  var a;
124
- const s = (a = i(this, f).get(F(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
124
+ const s = (a = i(this, p).get(F(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
125
125
  return !s || s === e;
126
126
  }
127
127
  runNext(e) {
128
128
  var a;
129
- const s = (a = i(this, f).get(F(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
129
+ const s = (a = i(this, p).get(F(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
130
130
  return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
131
131
  }
132
132
  clear() {
133
- p.batch(() => {
133
+ m.batch(() => {
134
134
  this.getAll().forEach((e) => {
135
135
  this.remove(e);
136
136
  });
137
137
  });
138
138
  }
139
139
  getAll() {
140
- return [...i(this, f).values()].flat();
140
+ return [...i(this, p).values()].flat();
141
141
  }
142
142
  find(e) {
143
143
  const s = { exact: !0, ...e };
@@ -149,7 +149,7 @@ var x, de, dt = (de = class extends me {
149
149
  return this.getAll().filter((s) => re(e, s));
150
150
  }
151
151
  notify(e) {
152
- p.batch(() => {
152
+ m.batch(() => {
153
153
  this.listeners.forEach((s) => {
154
154
  s(e);
155
155
  });
@@ -157,32 +157,32 @@ var x, de, dt = (de = class extends me {
157
157
  }
158
158
  resumePausedMutations() {
159
159
  const e = this.getAll().filter((s) => s.state.isPaused);
160
- return p.batch(
160
+ return m.batch(
161
161
  () => Promise.all(
162
162
  e.map((s) => s.continue().catch(j))
163
163
  )
164
164
  );
165
165
  }
166
- }, f = new WeakMap(), T = new WeakMap(), fe);
166
+ }, p = new WeakMap(), T = new WeakMap(), fe);
167
167
  function F(t) {
168
168
  var e;
169
169
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
170
170
  }
171
- function pt(t) {
171
+ function mt(t) {
172
172
  return {
173
173
  onFetch: (e, s) => {
174
174
  const a = async () => {
175
175
  var $, G, J, Y, Z;
176
- const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], g = { pages: [], pageParams: [] };
176
+ const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], d = { pages: [], pageParams: [] };
177
177
  let b = !1;
178
- const d = (v) => {
178
+ const f = (v) => {
179
179
  Object.defineProperty(v, "signal", {
180
180
  enumerable: !0,
181
181
  get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
182
182
  b = !0;
183
183
  }), e.signal)
184
184
  });
185
- }, Qe = Fe(e.options, e.fetchOptions), _ = async (v, P, O) => {
185
+ }, qe = Re(e.options, e.fetchOptions), _ = async (v, P, O) => {
186
186
  if (b)
187
187
  return Promise.reject();
188
188
  if (P == null && v.pages.length)
@@ -193,25 +193,25 @@ function pt(t) {
193
193
  direction: O ? "backward" : "forward",
194
194
  meta: e.options.meta
195
195
  };
196
- d(E);
197
- const qe = await Qe(
196
+ f(E);
197
+ const De = await qe(
198
198
  E
199
- ), { maxPages: ee } = e.options, te = O ? Re : He;
199
+ ), { maxPages: ee } = e.options, te = O ? He : Le;
200
200
  return {
201
- pages: te(v.pages, qe, ee),
201
+ pages: te(v.pages, De, ee),
202
202
  pageParams: te(v.pageParams, P, ee)
203
203
  };
204
204
  };
205
205
  let C;
206
206
  if (o && l.length) {
207
- const v = o === "backward", P = v ? mt : he, O = {
207
+ const v = o === "backward", P = v ? gt : he, O = {
208
208
  pages: l,
209
209
  pageParams: h
210
210
  }, E = P(r, O);
211
211
  C = await _(O, E, v);
212
212
  } else {
213
213
  C = await _(
214
- g,
214
+ d,
215
215
  h[0] ?? r.initialPageParam
216
216
  );
217
217
  const v = t ?? l.length;
@@ -247,7 +247,7 @@ function he(t, { pages: e, pageParams: s }) {
247
247
  s
248
248
  );
249
249
  }
250
- function mt(t, { pages: e, pageParams: s }) {
250
+ function gt(t, { pages: e, pageParams: s }) {
251
251
  var a;
252
252
  return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
253
253
  t,
@@ -257,20 +257,20 @@ function mt(t, { pages: e, pageParams: s }) {
257
257
  s
258
258
  );
259
259
  }
260
- var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
260
+ var c, w, N, M, A, k, Q, q, pe, vt = (pe = class {
261
261
  constructor(t = {}) {
262
- m(this, c);
263
- m(this, w);
264
- m(this, N);
265
- m(this, M);
266
- m(this, A);
267
- m(this, k);
268
- m(this, Q);
269
- m(this, q);
270
- u(this, c, t.queryCache || new dt()), u(this, w, t.mutationCache || new ft()), u(this, N, t.defaultOptions || {}), u(this, M, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
262
+ g(this, c);
263
+ g(this, w);
264
+ g(this, N);
265
+ g(this, M);
266
+ g(this, A);
267
+ g(this, k);
268
+ g(this, Q);
269
+ g(this, q);
270
+ u(this, c, t.queryCache || new ft()), u(this, w, t.mutationCache || new pt()), u(this, N, t.defaultOptions || {}), u(this, M, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
271
271
  }
272
272
  mount() {
273
- S(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
273
+ S(this, k)._++, i(this, k) === 1 && (u(this, Q, ze.subscribe(async (t) => {
274
274
  t && (await this.resumePausedMutations(), i(this, c).onFocus());
275
275
  })), u(this, q, ie.subscribe(async (t) => {
276
276
  t && (await this.resumePausedMutations(), i(this, c).onOnline());
@@ -309,12 +309,12 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
309
309
  setQueryData(t, e, s) {
310
310
  const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
311
311
  a.queryHash
312
- ), o = r == null ? void 0 : r.state.data, l = ze(e, o);
312
+ ), o = r == null ? void 0 : r.state.data, l = Ke(e, o);
313
313
  if (l !== void 0)
314
314
  return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
315
315
  }
316
316
  setQueriesData(t, e, s) {
317
- return p.batch(
317
+ return m.batch(
318
318
  () => i(this, c).findAll(t).map(({ queryKey: a }) => [
319
319
  a,
320
320
  this.setQueryData(a, e, s)
@@ -328,7 +328,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
328
328
  }
329
329
  removeQueries(t) {
330
330
  const e = i(this, c);
331
- p.batch(() => {
331
+ m.batch(() => {
332
332
  e.findAll(t).forEach((s) => {
333
333
  e.remove(s);
334
334
  });
@@ -339,18 +339,18 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
339
339
  type: "active",
340
340
  ...t
341
341
  };
342
- return p.batch(() => (s.findAll(t).forEach((r) => {
342
+ return m.batch(() => (s.findAll(t).forEach((r) => {
343
343
  r.reset();
344
344
  }), this.refetchQueries(a, e)));
345
345
  }
346
346
  cancelQueries(t = {}, e = {}) {
347
- const s = { revert: !0, ...e }, a = p.batch(
347
+ const s = { revert: !0, ...e }, a = m.batch(
348
348
  () => i(this, c).findAll(t).map((r) => r.cancel(s))
349
349
  );
350
350
  return Promise.all(a).then(j).catch(j);
351
351
  }
352
352
  invalidateQueries(t = {}, e = {}) {
353
- return p.batch(() => {
353
+ return m.batch(() => {
354
354
  if (i(this, c).findAll(t).forEach((a) => {
355
355
  a.invalidate();
356
356
  }), t.refetchType === "none")
@@ -366,7 +366,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
366
366
  const s = {
367
367
  ...e,
368
368
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
369
- }, a = p.batch(
369
+ }, a = m.batch(
370
370
  () => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
371
371
  let o = r.fetch(void 0, s);
372
372
  return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
@@ -386,7 +386,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
386
386
  return this.fetchQuery(t).then(j).catch(j);
387
387
  }
388
388
  fetchInfiniteQuery(t) {
389
- return t.behavior = pt(t.pages), this.fetchQuery(t);
389
+ return t.behavior = mt(t.pages), this.fetchQuery(t);
390
390
  }
391
391
  prefetchInfiniteQuery(t) {
392
392
  return this.fetchInfiniteQuery(t).then(j).catch(j);
@@ -444,7 +444,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
444
444
  return e.queryHash || (e.queryHash = ge(
445
445
  e.queryKey,
446
446
  e
447
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === Ke && (e.enabled = !1), e;
447
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === _e && (e.enabled = !1), e;
448
448
  }
449
449
  defaultMutationOptions(t) {
450
450
  return t != null && t._defaulted ? t : {
@@ -458,8 +458,8 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
458
458
  i(this, c).clear(), i(this, w).clear();
459
459
  }
460
460
  }, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), M = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
461
- const we = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function", yt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = new gt(), xt = ut(() => ({}));
462
- class bt {
461
+ const Ne = (t) => "getRoutes" in t && typeof t.getRoutes == "function", yt = (t) => "initialize" in t && typeof t.initialize == "function", xt = (t) => "getHead" in t && typeof t.getHead == "function", bt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", ke = new vt(), jt = dt(() => ({}));
462
+ class Pt {
463
463
  constructor(e) {
464
464
  y(this, "plugins", []);
465
465
  y(this, "navigationPlugins");
@@ -469,14 +469,17 @@ class bt {
469
469
  y(this, "state");
470
470
  y(this, "initialize", async () => {
471
471
  await Promise.all([
472
- this.plugins.filter(vt).map((e) => e.initialize(this))
472
+ this.plugins.filter(yt).map((e) => {
473
+ var s;
474
+ return (s = e.initialize) == null ? void 0 : s.call(e, this);
475
+ })
473
476
  ]);
474
477
  });
475
478
  y(this, "invalidateCache", async (e) => {
476
- await Ne.invalidateQueries({ queryKey: e });
479
+ await ke.invalidateQueries({ queryKey: e });
477
480
  });
478
481
  y(this, "getApiIdentities", async () => (await Promise.all(
479
- this.plugins.filter(yt).map((s) => s.getIdentities(this))
482
+ this.plugins.filter(bt).map((s) => s.getIdentities(this))
480
483
  )).flat());
481
484
  y(this, "getNavigation", async (e) => (await Promise.all(
482
485
  this.navigationPlugins.map(
@@ -486,7 +489,7 @@ class bt {
486
489
  }
487
490
  )
488
491
  )).flatMap((a) => a ?? []));
489
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(we), this.authentication = e.authentication, this.meta = e.meta, this.state = xt;
492
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ne), this.authentication = e.authentication, this.meta = e.meta, this.state = jt;
490
493
  }
491
494
  async signRequest(e) {
492
495
  if (!this.authentication)
@@ -501,7 +504,7 @@ class bt {
501
504
  * This source code is licensed under the ISC license.
502
505
  * See the LICENSE file in the root directory of this source tree.
503
506
  */
504
- const ke = z("ChevronRight", [
507
+ const Oe = z("ChevronRight", [
505
508
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
506
509
  ]);
507
510
  /**
@@ -510,7 +513,7 @@ const ke = z("ChevronRight", [
510
513
  * This source code is licensed under the ISC license.
511
514
  * See the LICENSE file in the root directory of this source tree.
512
515
  */
513
- const jt = z("ExternalLink", [
516
+ const wt = z("ExternalLink", [
514
517
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
515
518
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
516
519
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -521,7 +524,7 @@ const jt = z("ExternalLink", [
521
524
  * This source code is licensed under the ISC license.
522
525
  * See the LICENSE file in the root directory of this source tree.
523
526
  */
524
- const Pt = z("MoonStar", [
527
+ const Nt = z("MoonStar", [
525
528
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
526
529
  ["path", { d: "M20 3v4", key: "1olli1" }],
527
530
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -532,7 +535,7 @@ const Pt = z("MoonStar", [
532
535
  * This source code is licensed under the ISC license.
533
536
  * See the LICENSE file in the root directory of this source tree.
534
537
  */
535
- const wt = z("Sun", [
538
+ const kt = z("Sun", [
536
539
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
537
540
  ["path", { d: "M12 2v2", key: "tus03m" }],
538
541
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -542,12 +545,12 @@ const wt = z("Sun", [
542
545
  ["path", { d: "M20 12h2", key: "1q8mjw" }],
543
546
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
544
547
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
545
- ]), Nt = () => {
548
+ ]), Ot = () => {
546
549
  const { navigation: t } = U();
547
550
  return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
548
551
  B,
549
552
  {
550
- className: ({ isActive: s }) => _e(
553
+ className: ({ isActive: s }) => Be(
551
554
  "block py-3.5 font-medium -mb-px border-b-2",
552
555
  s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
553
556
  ),
@@ -555,13 +558,13 @@ const wt = z("Sun", [
555
558
  children: e.label
556
559
  }
557
560
  ) }, e.label)) }) });
558
- }, Oe = je(function() {
559
- const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ve(), { meta: g } = U(), b = e ? Pt : wt;
561
+ }, Ce = Pe(function() {
562
+ const [e, s] = Ve(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ue(), { meta: d } = U(), b = e ? Nt : kt;
560
563
  return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
561
564
  /* @__PURE__ */ n.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: [
562
565
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
563
- (g == null ? void 0 : g.logo) && /* @__PURE__ */ n.jsx("img", { src: g.logo, alt: "My Dev Portal", className: "h-10" }),
564
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: g == null ? void 0 : g.headerTitle })
566
+ (d == null ? void 0 : d.logo) && /* @__PURE__ */ n.jsx("img", { src: d.logo, alt: "My Dev Portal", className: "h-10" }),
567
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: d == null ? void 0 : d.headerTitle })
565
568
  ] }),
566
569
  /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
567
570
  /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
@@ -595,11 +598,11 @@ const wt = z("Sun", [
595
598
  ] })
596
599
  ] })
597
600
  ] }),
598
- /* @__PURE__ */ n.jsx(Nt, {})
601
+ /* @__PURE__ */ n.jsx(Ot, {})
599
602
  ] }) });
600
- }), Ce = {
601
- Header: Oe
602
- }, kt = lt(Ce), Ot = kt.Provider, Ct = () => {
603
+ }), Me = {
604
+ Header: Ce
605
+ }, Ct = lt(Me), Mt = Ct.Provider, At = () => {
603
606
  const t = D(), { setActiveAnchor: e } = W();
604
607
  I(() => {
605
608
  if (!t.hash) return;
@@ -616,12 +619,12 @@ const wt = z("Sun", [
616
619
  });
617
620
  return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
618
621
  }, [t.hash, e]);
619
- }, Mt = () => {
622
+ }, Qt = () => {
620
623
  const t = D(), e = K(t.pathname);
621
624
  I(() => {
622
625
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
623
626
  }, [t.pathname]);
624
- }, Me = ({
627
+ }, Ae = ({
625
628
  item: t,
626
629
  defaultOpen: e,
627
630
  path: s
@@ -630,7 +633,7 @@ const wt = z("Sun", [
630
633
  return I(() => {
631
634
  !a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
632
635
  }, [a, t, s, o.pathname]), [a, r];
633
- }, R = Xe(
636
+ }, R = $e(
634
637
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
635
638
  {
636
639
  variants: {
@@ -644,20 +647,20 @@ const wt = z("Sun", [
644
647
  }
645
648
  }
646
649
  }
647
- ), At = "data-anchor", Ae = ({
650
+ ), qt = "data-anchor", Qe = ({
648
651
  category: t,
649
652
  item: e,
650
653
  activeAnchor: s,
651
654
  currentTopNavItem: a,
652
655
  basePath: r = ""
653
656
  }) => {
654
- const o = V(e) ? ve(r, e.path) : "", l = D(), [h, g] = Me({
657
+ const o = V(e) ? ve(r, e.path) : "", l = D(), [h, d] = Ae({
655
658
  item: e,
656
659
  path: o,
657
660
  defaultOpen: () => X(e, l.pathname, o)
658
661
  });
659
- if (Ue(e)) {
660
- const d = L(
662
+ if (We(e)) {
663
+ const f = L(
661
664
  "flex items-center gap-2",
662
665
  R({
663
666
  isActive: e.href === l.pathname
@@ -666,16 +669,16 @@ const wt = z("Sun", [
666
669
  return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
667
670
  "a",
668
671
  {
669
- className: d,
672
+ className: f,
670
673
  href: e.href,
671
674
  target: "_blank",
672
675
  rel: "noopener noreferrer",
673
676
  children: [
674
677
  e.label,
675
- /* @__PURE__ */ n.jsx(jt, { size: 14 })
678
+ /* @__PURE__ */ n.jsx(wt, { size: 14 })
676
679
  ]
677
680
  }
678
- ) : /* @__PURE__ */ n.jsx(B, { className: d, to: e.href, children: e.label });
681
+ ) : /* @__PURE__ */ n.jsx(B, { className: f, to: e.href, children: e.label });
679
682
  }
680
683
  const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
681
684
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
@@ -683,7 +686,7 @@ const wt = z("Sun", [
683
686
  typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
684
687
  ] }),
685
688
  e.children && /* @__PURE__ */ n.jsx(
686
- ke,
689
+ Oe,
687
690
  {
688
691
  size: 16,
689
692
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
@@ -694,7 +697,7 @@ const wt = z("Sun", [
694
697
  ye,
695
698
  {
696
699
  open: h,
697
- onOpenChange: () => g((d) => !d),
700
+ onOpenChange: () => d((f) => !f),
698
701
  className: "flex flex-col",
699
702
  children: [
700
703
  /* @__PURE__ */ n.jsx(
@@ -707,24 +710,24 @@ const wt = z("Sun", [
707
710
  children: b
708
711
  }
709
712
  ),
710
- /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((d) => /* @__PURE__ */ n.jsx(
711
- Ae,
713
+ /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((f) => /* @__PURE__ */ n.jsx(
714
+ Qe,
712
715
  {
713
716
  category: t,
714
- item: d,
717
+ item: f,
715
718
  activeAnchor: s,
716
719
  currentTopNavItem: a,
717
720
  basePath: o
718
721
  },
719
- V(d) ? d.path : d.href
722
+ V(f) ? f.path : f.href
720
723
  )) }) })
721
724
  ]
722
725
  }
723
726
  ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
724
- We,
727
+ Xe,
725
728
  {
726
729
  to: e.path,
727
- [At]: e.path,
730
+ [qt]: e.path,
728
731
  className: R({
729
732
  isActive: e.path.slice(1) === s,
730
733
  isMuted: e.muted
@@ -734,15 +737,15 @@ const wt = z("Sun", [
734
737
  ) : /* @__PURE__ */ n.jsx(
735
738
  B,
736
739
  {
737
- className: ({ isActive: d }) => R({ isActive: d }),
740
+ className: ({ isActive: f }) => R({ isActive: f }),
738
741
  to: o,
739
742
  children: b
740
743
  }
741
744
  ) });
742
- }, Qt = ({
745
+ }, Dt = ({
743
746
  category: t
744
747
  }) => {
745
- const { activeAnchor: e } = W(), s = $e(), a = D(), r = t.collapsible ?? !0, [o, l] = Me({
748
+ const { activeAnchor: e } = W(), s = Ge(), a = D(), r = t.collapsible ?? !0, [o, l] = Ae({
746
749
  item: t,
747
750
  path: (s == null ? void 0 : s.path) ?? "",
748
751
  defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
@@ -763,7 +766,7 @@ const wt = z("Sun", [
763
766
  children: [
764
767
  t.label,
765
768
  r && /* @__PURE__ */ n.jsx(
766
- ke,
769
+ Oe,
767
770
  {
768
771
  className: "group-data-[state=open]:rotate-90 transition",
769
772
  size: 16
@@ -773,7 +776,7 @@ const wt = z("Sun", [
773
776
  }
774
777
  ) }) : "Endpoints",
775
778
  /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((h) => /* @__PURE__ */ n.jsx(
776
- Ae,
779
+ Qe,
777
780
  {
778
781
  category: t,
779
782
  item: h,
@@ -787,7 +790,7 @@ const wt = z("Sun", [
787
790
  },
788
791
  t.label
789
792
  );
790
- }, qt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
793
+ }, Tt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
791
794
  return /* @__PURE__ */ n.jsx(
792
795
  "nav",
793
796
  {
@@ -800,35 +803,35 @@ const wt = z("Sun", [
800
803
  children: e
801
804
  }
802
805
  );
803
- }), Dt = () => {
804
- const t = K(null), e = Ge();
806
+ }), It = () => {
807
+ const t = K(null), e = Je();
805
808
  return /* @__PURE__ */ n.jsx(
806
- qt,
809
+ Tt,
807
810
  {
808
811
  ref: t,
809
812
  pushMainContent: e.data.items.length > 0,
810
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Qt, { category: s }, s.label))
813
+ children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Dt, { category: s }, s.label))
811
814
  }
812
815
  );
813
816
  }, ue = ({ children: t }) => {
814
817
  const e = D(), { setActiveAnchor: s } = W(), { meta: a } = U();
815
- Ct(), Mt();
818
+ At(), Qt();
816
819
  const r = K(e.pathname);
817
820
  return I(() => {
818
821
  e.pathname !== r.current && s(""), r.current = e.pathname;
819
822
  }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
820
- /* @__PURE__ */ n.jsxs(Je, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
823
+ /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
821
824
  /* @__PURE__ */ n.jsx("title", { children: "Home" }),
822
825
  (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
823
826
  (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
824
827
  ] }),
825
- /* @__PURE__ */ n.jsx(Oe, {}),
828
+ /* @__PURE__ */ n.jsx(Ce, {}),
826
829
  /* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
827
- Pe,
830
+ we,
828
831
  {
829
832
  fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Ye, {}) }),
830
833
  children: [
831
- /* @__PURE__ */ n.jsx(Dt, {}),
834
+ /* @__PURE__ */ n.jsx(It, {}),
832
835
  /* @__PURE__ */ n.jsx(
833
836
  "main",
834
837
  {
@@ -836,7 +839,7 @@ const wt = z("Sun", [
836
839
  lg:overflow-visible
837
840
  lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
838
841
  lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
839
- children: t ?? /* @__PURE__ */ n.jsx(Ie, {})
842
+ children: t ?? /* @__PURE__ */ n.jsx(Ee, {})
840
843
  }
841
844
  )
842
845
  ]
@@ -844,10 +847,10 @@ const wt = z("Sun", [
844
847
  ) })
845
848
  ] });
846
849
  };
847
- function Tt({ plugins: t }) {
850
+ function Et({ plugins: t }) {
848
851
  const e = H(() => {
849
852
  const s = (t ?? []).flatMap(
850
- (a) => we(a) ? a.getRoutes() : []
853
+ (a) => Ne(a) ? a.getRoutes() : []
851
854
  );
852
855
  return Ze([
853
856
  {
@@ -860,35 +863,44 @@ function Tt({ plugins: t }) {
860
863
  }, [t]);
861
864
  return /* @__PURE__ */ n.jsx(et, { router: e });
862
865
  }
863
- const It = (t) => {
866
+ const St = (t) => {
867
+ var o;
864
868
  const e = H(
865
- () => ({ ...Ce, ...t.overrides }),
869
+ () => ({ ...Me, ...t.overrides }),
866
870
  [t.overrides]
867
871
  ), s = H(
868
872
  () => ({ ...tt, ...t.mdxComponents }),
869
873
  [t.mdxComponents]
870
- ), a = H(() => new bt(t), [t]);
871
- return I(() => {
874
+ ), a = H(() => new Pt(t), [t]);
875
+ I(() => {
872
876
  a.initialize();
873
- }, [a]), /* @__PURE__ */ n.jsx(st, { client: Ne, children: /* @__PURE__ */ n.jsx(at, { children: /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Ot, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
874
- Pe,
875
- {
876
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
877
- children: /* @__PURE__ */ n.jsx(
878
- Tt,
879
- {
880
- plugins: [
881
- ...t.plugins ?? [],
882
- ...t.authentication ? [t.authentication] : []
883
- ]
884
- }
885
- )
886
- }
887
- ) }) }) }) }) }) }) });
888
- }, Et = je(It);
889
- Et.displayName = "DevPortal";
877
+ }, [a]);
878
+ const r = (o = t.plugins) == null ? void 0 : o.filter(xt).map((l, h) => {
879
+ var d;
880
+ return /* @__PURE__ */ n.jsx(ut, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
881
+ });
882
+ return /* @__PURE__ */ n.jsx(st, { client: ke, children: /* @__PURE__ */ n.jsxs(at, { children: [
883
+ /* @__PURE__ */ n.jsx(je, { children: r }),
884
+ /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Mt, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
885
+ we,
886
+ {
887
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
888
+ children: /* @__PURE__ */ n.jsx(
889
+ Et,
890
+ {
891
+ plugins: [
892
+ ...t.plugins ?? [],
893
+ ...t.authentication ? [t.authentication] : []
894
+ ]
895
+ }
896
+ )
897
+ }
898
+ ) }) }) }) }) })
899
+ ] }) });
900
+ }, Ft = Pe(St);
901
+ Ft.displayName = "DevPortal";
890
902
  export {
891
- Et as DevPortal,
892
- _t as Link,
893
- Bt as useMDXComponents
903
+ Ft as DevPortal,
904
+ Vt as Link,
905
+ Ut as useMDXComponents
894
906
  };