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.
- package/dist/lib/authentication/authentication.d.ts +2 -2
- package/dist/lib/components/DevPortal.js +12 -7
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
- package/dist/lib/components/context/DevPortalProvider.js +2 -2
- package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
- package/dist/lib/core/DevPortalContext.js +1 -1
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +7 -4
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +1 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.js +3 -1
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +4 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +2 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +8 -0
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/Playground.js +7 -11
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/worker/worker.js +25 -1
- package/dist/lib/plugins/openapi/worker/worker.js.map +1 -1
- package/lib/{Spinner-DCwVN24H.js → Spinner-CzCKCaUK.js} +487 -484
- package/lib/assets/{worker-BCcpCNJ7.js → worker-DGvzLstc.js} +9843 -9800
- package/lib/zudoku.components.js +156 -144
- package/lib/zudoku.openapi-worker.js +12 -12
- package/lib/zudoku.plugins.js +1931 -1923
- package/package.json +2 -1
- package/src/lib/authentication/authentication.ts +2 -5
- package/src/lib/components/DevPortal.tsx +9 -3
- package/src/lib/components/context/DevPortalProvider.ts +2 -2
- package/src/lib/core/DevPortalContext.ts +1 -1
- package/src/lib/core/plugins.ts +10 -5
- package/src/lib/oas/graphql/index.ts +2 -2
- package/src/lib/oas/parser/index.ts +3 -1
- package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +3 -3
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
- package/src/lib/plugins/openapi/index.tsx +17 -4
- package/src/lib/plugins/openapi/playground/Playground.tsx +157 -187
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
- package/src/lib/plugins/openapi/worker/worker.ts +27 -1
- package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
|
@@ -4,12 +4,12 @@ function d(e) {
|
|
|
4
4
|
throw new Error("Parameter was not an error");
|
|
5
5
|
}
|
|
6
6
|
function m(e) {
|
|
7
|
-
return
|
|
7
|
+
return T(e) === "[object Error]" || e instanceof Error;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function T(e) {
|
|
10
10
|
return Object.prototype.toString.call(e);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function I(e) {
|
|
13
13
|
let t, n = "";
|
|
14
14
|
if (e.length === 0)
|
|
15
15
|
t = {};
|
|
@@ -30,7 +30,7 @@ function T(e) {
|
|
|
30
30
|
}
|
|
31
31
|
class c extends Error {
|
|
32
32
|
constructor(t, n) {
|
|
33
|
-
const r = [...arguments], { options: o, shortMessage: s } =
|
|
33
|
+
const r = [...arguments], { options: o, shortMessage: s } = I(r);
|
|
34
34
|
let i = s;
|
|
35
35
|
if (o.cause && (i = `${i}: ${o.cause.message}`), super(i), this.message = i, o.name && typeof o.name == "string" ? this.name = o.name : this.name = "Layerr", o.cause && Object.defineProperty(this, "_cause", { value: o.cause }), Object.defineProperty(this, "_info", { value: {} }), o.info && typeof o.info == "object" && Object.assign(this._info, o.info), Error.captureStackTrace) {
|
|
36
36
|
const l = o.constructorOpt || this.constructor;
|
|
@@ -59,7 +59,7 @@ caused by: ${c.fullStack(n)}` : t.stack;
|
|
|
59
59
|
return this.message && (t = `${t}: ${this.message}`), t;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
const f = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", u = 32, p = 281474976710655, h = 10,
|
|
62
|
+
const f = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", u = 32, p = 281474976710655, h = 10, C = 16, a = Object.freeze({
|
|
63
63
|
source: "ulid"
|
|
64
64
|
});
|
|
65
65
|
function O(e) {
|
|
@@ -160,7 +160,7 @@ function S(e) {
|
|
|
160
160
|
return E(n, h) + b;
|
|
161
161
|
}
|
|
162
162
|
n = i;
|
|
163
|
-
const l = r = j(
|
|
163
|
+
const l = r = j(C, t);
|
|
164
164
|
return E(i, h) + l;
|
|
165
165
|
};
|
|
166
166
|
}
|
|
@@ -171,7 +171,7 @@ function x(e) {
|
|
|
171
171
|
function g(e, t, n) {
|
|
172
172
|
return t > e.length - 1 ? e : e.substr(0, t) + n + e.substr(t + 1);
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const G = () => {
|
|
175
175
|
const e = /* @__PURE__ */ new Map();
|
|
176
176
|
return [(r) => new Promise((o) => {
|
|
177
177
|
e.set(r, o);
|
|
@@ -179,16 +179,16 @@ const $ = () => {
|
|
|
179
179
|
const s = e.get(r);
|
|
180
180
|
s && (s(o), e.delete(r));
|
|
181
181
|
}];
|
|
182
|
-
},
|
|
182
|
+
}, $ = S(), F = () => {
|
|
183
183
|
const e = new SharedWorker(new URL(
|
|
184
184
|
/* @vite-ignore */
|
|
185
|
-
"./assets/worker-
|
|
185
|
+
"./assets/worker-DGvzLstc.js",
|
|
186
186
|
import.meta.url
|
|
187
187
|
), {
|
|
188
188
|
type: "module"
|
|
189
189
|
});
|
|
190
190
|
e.port.start();
|
|
191
|
-
const [t, n] =
|
|
191
|
+
const [t, n] = G();
|
|
192
192
|
return e.port.onmessage = (r) => {
|
|
193
193
|
n(r.data.id, r.data.body);
|
|
194
194
|
}, new y({
|
|
@@ -196,7 +196,7 @@ const $ = () => {
|
|
|
196
196
|
// Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
|
|
197
197
|
fetch: async (r, o) => {
|
|
198
198
|
if (!(o != null && o.body)) throw new Error("No body");
|
|
199
|
-
const s =
|
|
199
|
+
const s = $();
|
|
200
200
|
e.port.postMessage({
|
|
201
201
|
id: s,
|
|
202
202
|
body: o.body
|
|
@@ -221,5 +221,5 @@ const $ = () => {
|
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
223
|
export {
|
|
224
|
-
|
|
224
|
+
F as createSharedWorkerClient
|
|
225
225
|
};
|