zudoku 0.1.1-dev.48 → 0.1.1-dev.49
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/app/App.js +5 -5
- package/dist/app/App.js.map +1 -1
- package/dist/app/main.js +8 -0
- package/dist/app/main.js.map +1 -1
- package/dist/cli/common/analytics/lib.js +1 -1
- package/dist/cli/common/analytics/lib.js.map +1 -1
- package/dist/cli/common/logger.js +1 -1
- package/dist/lib/authentication/clerk.js +0 -1
- package/dist/lib/authentication/clerk.js.map +1 -1
- package/dist/lib/authentication/openid.js +3 -2
- package/dist/lib/authentication/openid.js.map +1 -1
- package/dist/lib/components/Header.d.ts +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/context/ComponentsContext.d.ts +1 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.js +3 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.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/plugins/api-key/SettingsApiKeys.js +1 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-key/index.d.ts +2 -2
- package/dist/lib/plugins/api-key/index.js +1 -1
- package/dist/lib/plugins/api-key/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +7 -7
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/MakeRequest.js +3 -3
- package/dist/lib/plugins/openapi/MakeRequest.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/OperationListItem.js +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListView.js +4 -4
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +2 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +4 -4
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +16 -18
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +4 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js +1 -0
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +3 -7
- package/dist/lib/ui/Button.js +3 -26
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/button-variants.d.ts +4 -0
- package/dist/lib/ui/button-variants.js +24 -0
- package/dist/lib/ui/button-variants.js.map +1 -0
- package/dist/lib/util/MdxComponents.js +7 -7
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/ts.js +1 -2
- package/dist/ts.js.map +1 -1
- package/dist/vite/config.js +1 -1
- package/dist/vite/dev-server.js +5 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api.js +1 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-docs.js +1 -1
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +1 -1
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/lib/{Spinner-DEkC7JSn.js → Spinner-DoNe5ql0.js} +18 -18
- package/lib/assets/{worker-BGlCY74N.js → worker-BCcpCNJ7.js} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.components.js +260 -258
- package/lib/zudoku.openapi-worker.js +10 -10
- package/lib/zudoku.plugins.js +10117 -9975
- package/package.json +3 -1
- package/src/app/App.tsx +5 -5
- package/src/app/main.tsx +9 -0
- package/src/lib/authentication/clerk.ts +0 -1
- package/src/lib/authentication/openid.ts +4 -2
- package/src/lib/components/Header.tsx +1 -1
- package/src/lib/components/navigation/SideNavigationWrapper.tsx +18 -16
- package/src/lib/oas/graphql/index.ts +1 -1
- package/src/lib/plugins/api-key/SettingsApiKeys.tsx +1 -1
- package/src/lib/plugins/api-key/index.tsx +3 -3
- package/src/lib/plugins/markdown/MdxPage.tsx +13 -8
- package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
- package/src/lib/plugins/openapi/MakeRequest.tsx +3 -3
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +2 -2
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +1 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +5 -5
- package/src/lib/plugins/openapi/Sidecar.tsx +3 -3
- package/src/lib/plugins/openapi/playground/PathParams.tsx +4 -4
- package/src/lib/plugins/openapi/playground/Playground.tsx +19 -22
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +4 -3
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +0 -1
- package/src/lib/plugins/openapi/worker/createSharedWorkerClient.ts +1 -0
- package/src/lib/ui/Button.tsx +11 -42
- package/src/lib/ui/button-variants.ts +31 -0
- package/src/lib/util/MdxComponents.tsx +31 -7
- package/dist/lib/oas/graphql/server.d.ts +0 -1
- package/dist/lib/oas/graphql/server.js +0 -8
- package/dist/lib/oas/graphql/server.js.map +0 -1
- package/src/lib/oas/graphql/server.ts +0 -10
|
@@ -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 C(e) === "[object Error]" || e instanceof Error;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function C(e) {
|
|
10
10
|
return Object.prototype.toString.call(e);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function T(e) {
|
|
13
13
|
let t, n = "";
|
|
14
14
|
if (e.length === 0)
|
|
15
15
|
t = {};
|
|
@@ -30,7 +30,7 @@ function C(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 } = T(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;
|
|
@@ -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 $ = () => {
|
|
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 G = () => {
|
|
|
179
179
|
const s = e.get(r);
|
|
180
180
|
s && (s(o), e.delete(r));
|
|
181
181
|
}];
|
|
182
|
-
},
|
|
182
|
+
}, A = S(), G = () => {
|
|
183
183
|
const e = new SharedWorker(new URL(
|
|
184
184
|
/* @vite-ignore */
|
|
185
|
-
"./assets/worker-
|
|
185
|
+
"./assets/worker-BCcpCNJ7.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] = $();
|
|
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 G = () => {
|
|
|
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 = A();
|
|
200
200
|
e.port.postMessage({
|
|
201
201
|
id: s,
|
|
202
202
|
body: o.body
|
|
@@ -221,5 +221,5 @@ const G = () => {
|
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
223
|
export {
|
|
224
|
-
|
|
224
|
+
G as createSharedWorkerClient
|
|
225
225
|
};
|