zudoku 0.3.0-dev.21 → 0.3.0-dev.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.d.ts +1 -1
- package/dist/lib/authentication/authentication.d.ts +1 -1
- package/dist/lib/plugins/api-keys/index.js +1 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +6 -0
- package/dist/lib/plugins/openapi/Route.js +8 -0
- package/dist/lib/plugins/openapi/Route.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +5 -0
- package/dist/lib/plugins/openapi/context.js +11 -0
- package/dist/lib/plugins/openapi/context.js.map +1 -0
- package/dist/lib/plugins/openapi/index.d.ts +1 -19
- package/dist/lib/plugins/openapi/index.js +17 -18
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
- package/dist/lib/plugins/openapi/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
- package/dist/vite/config.js +5 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +3 -4
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +3 -7
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +2 -3
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +0 -1
- package/dist/vite/plugin-config.js +11 -6
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-redirect.js +2 -5
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/lib/{util-voKLTRDG.js → AnchorLink-DIUlXlf0.js} +149 -184
- package/lib/DevPortalProvider-gzyAGqHT.js +1080 -0
- package/lib/{Markdown-5LmPZyLV.js → Markdown-BjA7peYW.js} +3 -3
- package/lib/{MdxComponents-DYD_QPVF.js → MdxComponents-W-fE1ISO.js} +130 -129
- package/lib/MdxPage-DQ7lZBzE.js +216 -0
- package/lib/OperationList-DuIBqFNA.js +5545 -0
- package/lib/Route-B98Y2MdH.js +13 -0
- package/lib/{Select-DR3PiqjV.js → Select-DczD5e29.js} +24 -22
- package/lib/{Spinner-DjQ2eBxC.js → Spinner-CSoij67T.js} +3 -3
- package/lib/cn-DpqTslo9.js +2341 -0
- package/lib/context-_fYfJFgk.js +13 -0
- package/lib/{hook-FCY9-FHO.js → hook-CBXxHulF.js} +1 -1
- package/lib/{index-By9bEW57.js → index-C7O9D7f6.js} +15 -15
- package/lib/index-CKvOcM7w.js +712 -0
- package/lib/index-Cg6lXS1z.js +709 -0
- package/lib/index-ClDDiRmC.js +463 -0
- package/lib/router-DibNxKUP.js +3008 -0
- package/lib/util-CaVongBq.js +40 -0
- package/lib/zudoku.auth-openid.js +7 -6
- package/lib/zudoku.components.js +73 -69
- package/lib/zudoku.plugin-api-keys.js +26 -23
- package/lib/zudoku.plugin-markdown.js +33 -237
- package/lib/zudoku.plugin-openapi.js +5 -6238
- package/lib/zudoku.plugin-redirect.js +7 -6
- package/package.json +1 -1
- package/src/lib/authentication/authentication.ts +1 -1
- package/src/lib/plugins/api-keys/index.tsx +1 -0
- package/src/lib/plugins/markdown/generateRoutes.tsx +2 -2
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +1 -1
- package/src/lib/plugins/openapi/Route.tsx +21 -0
- package/src/lib/plugins/openapi/context.tsx +16 -0
- package/src/lib/plugins/openapi/index.tsx +19 -46
- package/src/lib/plugins/openapi/interfaces.ts +9 -0
- package/lib/DevPortalProvider-CRKuwoXc.js +0 -4123
- 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
|
+
};
|
|
@@ -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 {
|
|
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 "./
|
|
9
|
-
import * as
|
|
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,
|
|
49
|
-
E(this, w,
|
|
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 = (
|
|
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 ((
|
|
105
|
-
|
|
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),
|
|
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:
|
|
234
|
-
return /* @__PURE__ */ P.jsx(j.Provider, { value: M, children:
|
|
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
|
|
237
|
-
const
|
|
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,
|
|
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 &&
|
|
387
|
+
e && q.flushSync(() => e.dispatchEvent(t));
|
|
388
388
|
}
|
|
389
389
|
var ot = r.useId || (() => {
|
|
390
390
|
}), rt = 0;
|