zudoku 0.3.0-dev.21 → 0.3.0-dev.22

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 (58) hide show
  1. package/dist/config/config.d.ts +1 -1
  2. package/dist/lib/authentication/authentication.d.ts +1 -1
  3. package/dist/lib/plugins/api-keys/index.js +1 -0
  4. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  5. package/dist/lib/plugins/markdown/generateRoutes.js +1 -1
  6. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  7. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  8. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  9. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +1 -1
  10. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  11. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  12. package/dist/lib/plugins/openapi/Route.js +8 -0
  13. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  14. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  15. package/dist/lib/plugins/openapi/context.js +11 -0
  16. package/dist/lib/plugins/openapi/context.js.map +1 -0
  17. package/dist/lib/plugins/openapi/index.d.ts +1 -19
  18. package/dist/lib/plugins/openapi/index.js +17 -18
  19. package/dist/lib/plugins/openapi/index.js.map +1 -1
  20. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  21. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  22. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  23. package/lib/{util-voKLTRDG.js → AnchorLink-DIUlXlf0.js} +149 -184
  24. package/lib/DevPortalProvider-gzyAGqHT.js +1080 -0
  25. package/lib/{Markdown-5LmPZyLV.js → Markdown-BjA7peYW.js} +3 -3
  26. package/lib/{MdxComponents-DYD_QPVF.js → MdxComponents-W-fE1ISO.js} +130 -129
  27. package/lib/MdxPage-DQ7lZBzE.js +216 -0
  28. package/lib/OperationList-DuIBqFNA.js +5545 -0
  29. package/lib/Route-B98Y2MdH.js +13 -0
  30. package/lib/{Select-DR3PiqjV.js → Select-DczD5e29.js} +24 -22
  31. package/lib/{Spinner-DjQ2eBxC.js → Spinner-CSoij67T.js} +3 -3
  32. package/lib/cn-DpqTslo9.js +2341 -0
  33. package/lib/context-_fYfJFgk.js +13 -0
  34. package/lib/{hook-FCY9-FHO.js → hook-CBXxHulF.js} +1 -1
  35. package/lib/{index-By9bEW57.js → index-C7O9D7f6.js} +15 -15
  36. package/lib/index-CKvOcM7w.js +712 -0
  37. package/lib/index-Cg6lXS1z.js +709 -0
  38. package/lib/index-ClDDiRmC.js +463 -0
  39. package/lib/router-DibNxKUP.js +3008 -0
  40. package/lib/util-CaVongBq.js +40 -0
  41. package/lib/zudoku.auth-openid.js +7 -6
  42. package/lib/zudoku.components.js +73 -69
  43. package/lib/zudoku.plugin-api-keys.js +26 -23
  44. package/lib/zudoku.plugin-markdown.js +33 -237
  45. package/lib/zudoku.plugin-openapi.js +5 -6238
  46. package/lib/zudoku.plugin-redirect.js +7 -6
  47. package/package.json +1 -1
  48. package/src/lib/authentication/authentication.ts +1 -1
  49. package/src/lib/plugins/api-keys/index.tsx +1 -0
  50. package/src/lib/plugins/markdown/generateRoutes.tsx +2 -2
  51. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  52. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +1 -1
  53. package/src/lib/plugins/openapi/Route.tsx +21 -0
  54. package/src/lib/plugins/openapi/context.tsx +16 -0
  55. package/src/lib/plugins/openapi/index.tsx +19 -46
  56. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  57. package/lib/DevPortalProvider-CRKuwoXc.js +0 -4123
  58. package/lib/index-PyGcnQFX.js +0 -3462
@@ -0,0 +1,13 @@
1
+ import { createContext as e, useContext as r } from "react";
2
+ const t = e(
3
+ void 0
4
+ ), n = t.Provider, i = () => {
5
+ const o = r(t);
6
+ if (!o)
7
+ throw new Error("useOasConfig must be used within a OasConfigProvider");
8
+ return o.config;
9
+ };
10
+ export {
11
+ n as O,
12
+ i as u
13
+ };
@@ -1,4 +1,4 @@
1
- import { u as e } from "./DevPortalProvider-CRKuwoXc.js";
1
+ import { u as e } from "./DevPortalProvider-gzyAGqHT.js";
2
2
  import { u as i } from "./state-Ds_OxRHP.js";
3
3
  const s = () => {
4
4
  const { authentication: t } = e(), o = i(), n = typeof t < "u";
@@ -3,10 +3,10 @@ var W = (e) => {
3
3
  };
4
4
  var N = (e, t, s) => t.has(e) || W("Cannot " + s);
5
5
  var c = (e, t, s) => (N(e, t, "read from private field"), s ? s.call(e) : t.get(e)), b = (e, t, s) => t.has(e) ? W("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), E = (e, t, s, n) => (N(e, t, "write to private field"), n ? n.call(e, s) : t.set(e, s), s), C = (e, t, s) => (N(e, t, "access private method"), s);
6
- import { H as L, I as Z, n as q } from "./DevPortalProvider-CRKuwoXc.js";
6
+ import { R as L, z, n as Z } from "./DevPortalProvider-gzyAGqHT.js";
7
7
  import * as r from "react";
8
- import { j as P } from "./index-PyGcnQFX.js";
9
- import * as z from "react-dom";
8
+ import { j as P } from "./router-DibNxKUP.js";
9
+ import * as q from "react-dom";
10
10
  var y, h, w, x, S, k, ct = (k = class extends L {
11
11
  constructor(t) {
12
12
  super();
@@ -45,8 +45,8 @@ var y, h, w, x, S, k, ct = (k = class extends L {
45
45
  this.execute(this.state.variables);
46
46
  }
47
47
  async execute(t) {
48
- var o, i, u, a, l, d, g, p, m, R, v, j, M, $, I, A, _, F, G, V;
49
- E(this, w, Z({
48
+ var o, i, u, a, l, d, R, p, m, g, v, j, M, $, A, I, _, F, G, V;
49
+ E(this, w, z({
50
50
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
51
51
  onFail: (f, O) => {
52
52
  C(this, x, S).call(this, { type: "failed", failureCount: f, error: O });
@@ -85,7 +85,7 @@ var y, h, w, x, S, k, ct = (k = class extends L {
85
85
  t,
86
86
  this.state.context,
87
87
  this
88
- )), await ((p = (g = this.options).onSuccess) == null ? void 0 : p.call(g, f, t, this.state.context)), await ((R = (m = c(this, h).config).onSettled) == null ? void 0 : R.call(
88
+ )), await ((p = (R = this.options).onSuccess) == null ? void 0 : p.call(R, f, t, this.state.context)), await ((g = (m = c(this, h).config).onSettled) == null ? void 0 : g.call(
89
89
  m,
90
90
  f,
91
91
  null,
@@ -101,8 +101,8 @@ var y, h, w, x, S, k, ct = (k = class extends L {
101
101
  t,
102
102
  this.state.context,
103
103
  this
104
- )), await ((A = (I = this.options).onError) == null ? void 0 : A.call(
105
- I,
104
+ )), await ((I = (A = this.options).onError) == null ? void 0 : I.call(
105
+ A,
106
106
  f,
107
107
  t,
108
108
  this.state.context
@@ -181,7 +181,7 @@ var y, h, w, x, S, k, ct = (k = class extends L {
181
181
  };
182
182
  }
183
183
  };
184
- this.state = s(this.state), q.batch(() => {
184
+ this.state = s(this.state), Z.batch(() => {
185
185
  c(this, y).forEach((n) => {
186
186
  n.onMutationUpdate(t);
187
187
  }), c(this, h).notify({
@@ -230,16 +230,16 @@ function ht(e, t = []) {
230
230
  const a = r.createContext(u), l = s.length;
231
231
  s = [...s, u];
232
232
  function d(p) {
233
- const { scope: m, children: R, ...v } = p, j = (m == null ? void 0 : m[e][l]) || a, M = r.useMemo(() => v, Object.values(v));
234
- return /* @__PURE__ */ P.jsx(j.Provider, { value: M, children: R });
233
+ const { scope: m, children: g, ...v } = p, j = (m == null ? void 0 : m[e][l]) || a, M = r.useMemo(() => v, Object.values(v));
234
+ return /* @__PURE__ */ P.jsx(j.Provider, { value: M, children: g });
235
235
  }
236
- function g(p, m) {
237
- const R = (m == null ? void 0 : m[e][l]) || a, v = r.useContext(R);
236
+ function R(p, m) {
237
+ const g = (m == null ? void 0 : m[e][l]) || a, v = r.useContext(g);
238
238
  if (v) return v;
239
239
  if (u !== void 0) return u;
240
240
  throw new Error(`\`${p}\` must be used within \`${i}\``);
241
241
  }
242
- return d.displayName = i + "Provider", [d, g];
242
+ return d.displayName = i + "Provider", [d, R];
243
243
  }
244
244
  const o = () => {
245
245
  const i = s.map((u) => r.createContext(u));
@@ -384,7 +384,7 @@ var nt = [
384
384
  return s.displayName = `Primitive.${t}`, { ...e, [t]: s };
385
385
  }, {});
386
386
  function yt(e, t) {
387
- e && z.flushSync(() => e.dispatchEvent(t));
387
+ e && q.flushSync(() => e.dispatchEvent(t));
388
388
  }
389
389
  var ot = r.useId || (() => {
390
390
  }), rt = 0;