zudoku 0.3.0-dev.3 → 0.3.0-dev.5
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/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/core/DevPortalContext.js +1 -0
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +6 -7
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-key/index.js +19 -7
- package/dist/lib/plugins/api-key/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/lib/{Spinner-7LezPqGn.js → Spinner-DWHrSHMP.js} +567 -549
- package/lib/state-DfftBQ9X.js +312 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +3 -4
- package/lib/zudoku.components.js +134 -150
- package/lib/zudoku.plugins.js +2412 -2402
- package/package.json +1 -1
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/core/DevPortalContext.ts +1 -0
- package/src/lib/plugins/api-key/SettingsApiKeys.tsx +47 -50
- package/src/lib/plugins/api-key/index.tsx +26 -6
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/lib/state-oycsxkHz.js +0 -287
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import A from "react";
|
|
2
|
+
var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
+
function Q(e) {
|
|
4
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
|
+
}
|
|
6
|
+
function Se(e) {
|
|
7
|
+
if (e.__esModule) return e;
|
|
8
|
+
var i = e.default;
|
|
9
|
+
if (typeof i == "function") {
|
|
10
|
+
var a = function f() {
|
|
11
|
+
return this instanceof f ? Reflect.construct(i, arguments, this.constructor) : i.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
a.prototype = i.prototype;
|
|
14
|
+
} else a = {};
|
|
15
|
+
return Object.defineProperty(a, "__esModule", { value: !0 }), Object.keys(e).forEach(function(f) {
|
|
16
|
+
var p = Object.getOwnPropertyDescriptor(e, f);
|
|
17
|
+
Object.defineProperty(a, f, p.get ? p : {
|
|
18
|
+
enumerable: !0,
|
|
19
|
+
get: function() {
|
|
20
|
+
return e[f];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}), a;
|
|
24
|
+
}
|
|
25
|
+
var X = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
26
|
+
const H = (e) => {
|
|
27
|
+
let i;
|
|
28
|
+
const a = /* @__PURE__ */ new Set(), f = (u, t) => {
|
|
29
|
+
const r = typeof u == "function" ? u(i) : u;
|
|
30
|
+
if (!Object.is(r, i)) {
|
|
31
|
+
const s = i;
|
|
32
|
+
i = t ?? (typeof r != "object" || r === null) ? r : Object.assign({}, i, r), a.forEach((d) => d(i, s));
|
|
33
|
+
}
|
|
34
|
+
}, p = () => i, h = { setState: f, getState: p, getInitialState: () => E, subscribe: (u) => (a.add(u), () => a.delete(u)), destroy: () => {
|
|
35
|
+
(X ? "production" : void 0) !== "production" && console.warn(
|
|
36
|
+
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
37
|
+
), a.clear();
|
|
38
|
+
} }, E = i = e(f, p, h);
|
|
39
|
+
return h;
|
|
40
|
+
}, Z = (e) => e ? H(e) : H;
|
|
41
|
+
var U = { exports: {} }, M = {}, T = { exports: {} }, W = {};
|
|
42
|
+
/**
|
|
43
|
+
* @license React
|
|
44
|
+
* use-sync-external-store-shim.production.min.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/
|
|
51
|
+
var K;
|
|
52
|
+
function ee() {
|
|
53
|
+
if (K) return W;
|
|
54
|
+
K = 1;
|
|
55
|
+
var e = A;
|
|
56
|
+
function i(t, r) {
|
|
57
|
+
return t === r && (t !== 0 || 1 / t === 1 / r) || t !== t && r !== r;
|
|
58
|
+
}
|
|
59
|
+
var a = typeof Object.is == "function" ? Object.is : i, f = e.useState, p = e.useEffect, y = e.useLayoutEffect, g = e.useDebugValue;
|
|
60
|
+
function L(t, r) {
|
|
61
|
+
var s = r(), d = f({ inst: { value: s, getSnapshot: r } }), l = d[0].inst, S = d[1];
|
|
62
|
+
return y(function() {
|
|
63
|
+
l.value = s, l.getSnapshot = r, h(l) && S({ inst: l });
|
|
64
|
+
}, [t, s, r]), p(function() {
|
|
65
|
+
return h(l) && S({ inst: l }), t(function() {
|
|
66
|
+
h(l) && S({ inst: l });
|
|
67
|
+
});
|
|
68
|
+
}, [t]), g(s), s;
|
|
69
|
+
}
|
|
70
|
+
function h(t) {
|
|
71
|
+
var r = t.getSnapshot;
|
|
72
|
+
t = t.value;
|
|
73
|
+
try {
|
|
74
|
+
var s = r();
|
|
75
|
+
return !a(t, s);
|
|
76
|
+
} catch {
|
|
77
|
+
return !0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function E(t, r) {
|
|
81
|
+
return r();
|
|
82
|
+
}
|
|
83
|
+
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? E : L;
|
|
84
|
+
return W.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, W;
|
|
85
|
+
}
|
|
86
|
+
var B = {};
|
|
87
|
+
/**
|
|
88
|
+
* @license React
|
|
89
|
+
* use-sync-external-store-shim.development.js
|
|
90
|
+
*
|
|
91
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the MIT license found in the
|
|
94
|
+
* LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/
|
|
96
|
+
var N;
|
|
97
|
+
function te() {
|
|
98
|
+
return N || (N = 1, process.env.NODE_ENV !== "production" && function() {
|
|
99
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
100
|
+
var e = A, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
101
|
+
function a(c) {
|
|
102
|
+
{
|
|
103
|
+
for (var n = arguments.length, v = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
104
|
+
v[o - 1] = arguments[o];
|
|
105
|
+
f("error", c, v);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function f(c, n, v) {
|
|
109
|
+
{
|
|
110
|
+
var o = i.ReactDebugCurrentFrame, _ = o.getStackAddendum();
|
|
111
|
+
_ !== "" && (n += "%s", v = v.concat([_]));
|
|
112
|
+
var m = v.map(function(O) {
|
|
113
|
+
return String(O);
|
|
114
|
+
});
|
|
115
|
+
m.unshift("Warning: " + n), Function.prototype.apply.call(console[c], console, m);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function p(c, n) {
|
|
119
|
+
return c === n && (c !== 0 || 1 / c === 1 / n) || c !== c && n !== n;
|
|
120
|
+
}
|
|
121
|
+
var y = typeof Object.is == "function" ? Object.is : p, g = e.useState, L = e.useEffect, h = e.useLayoutEffect, E = e.useDebugValue, u = !1, t = !1;
|
|
122
|
+
function r(c, n, v) {
|
|
123
|
+
u || e.startTransition !== void 0 && (u = !0, a("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
124
|
+
var o = n();
|
|
125
|
+
if (!t) {
|
|
126
|
+
var _ = n();
|
|
127
|
+
y(o, _) || (a("The result of getSnapshot should be cached to avoid an infinite loop"), t = !0);
|
|
128
|
+
}
|
|
129
|
+
var m = g({
|
|
130
|
+
inst: {
|
|
131
|
+
value: o,
|
|
132
|
+
getSnapshot: n
|
|
133
|
+
}
|
|
134
|
+
}), O = m[0].inst, b = m[1];
|
|
135
|
+
return h(function() {
|
|
136
|
+
O.value = o, O.getSnapshot = n, s(O) && b({
|
|
137
|
+
inst: O
|
|
138
|
+
});
|
|
139
|
+
}, [c, o, n]), L(function() {
|
|
140
|
+
s(O) && b({
|
|
141
|
+
inst: O
|
|
142
|
+
});
|
|
143
|
+
var V = function() {
|
|
144
|
+
s(O) && b({
|
|
145
|
+
inst: O
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
return c(V);
|
|
149
|
+
}, [c]), E(o), o;
|
|
150
|
+
}
|
|
151
|
+
function s(c) {
|
|
152
|
+
var n = c.getSnapshot, v = c.value;
|
|
153
|
+
try {
|
|
154
|
+
var o = n();
|
|
155
|
+
return !y(v, o);
|
|
156
|
+
} catch {
|
|
157
|
+
return !0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function d(c, n, v) {
|
|
161
|
+
return n();
|
|
162
|
+
}
|
|
163
|
+
var l = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", S = !l, D = S ? d : r, R = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : D;
|
|
164
|
+
B.useSyncExternalStore = R, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
165
|
+
}()), B;
|
|
166
|
+
}
|
|
167
|
+
var q;
|
|
168
|
+
function Y() {
|
|
169
|
+
return q || (q = 1, process.env.NODE_ENV === "production" ? T.exports = ee() : T.exports = te()), T.exports;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* @license React
|
|
173
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
174
|
+
*
|
|
175
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the MIT license found in the
|
|
178
|
+
* LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/
|
|
180
|
+
var P;
|
|
181
|
+
function ne() {
|
|
182
|
+
if (P) return M;
|
|
183
|
+
P = 1;
|
|
184
|
+
var e = A, i = Y();
|
|
185
|
+
function a(E, u) {
|
|
186
|
+
return E === u && (E !== 0 || 1 / E === 1 / u) || E !== E && u !== u;
|
|
187
|
+
}
|
|
188
|
+
var f = typeof Object.is == "function" ? Object.is : a, p = i.useSyncExternalStore, y = e.useRef, g = e.useEffect, L = e.useMemo, h = e.useDebugValue;
|
|
189
|
+
return M.useSyncExternalStoreWithSelector = function(E, u, t, r, s) {
|
|
190
|
+
var d = y(null);
|
|
191
|
+
if (d.current === null) {
|
|
192
|
+
var l = { hasValue: !1, value: null };
|
|
193
|
+
d.current = l;
|
|
194
|
+
} else l = d.current;
|
|
195
|
+
d = L(function() {
|
|
196
|
+
function D(o) {
|
|
197
|
+
if (!R) {
|
|
198
|
+
if (R = !0, c = o, o = r(o), s !== void 0 && l.hasValue) {
|
|
199
|
+
var _ = l.value;
|
|
200
|
+
if (s(_, o)) return n = _;
|
|
201
|
+
}
|
|
202
|
+
return n = o;
|
|
203
|
+
}
|
|
204
|
+
if (_ = n, f(c, o)) return _;
|
|
205
|
+
var m = r(o);
|
|
206
|
+
return s !== void 0 && s(_, m) ? _ : (c = o, n = m);
|
|
207
|
+
}
|
|
208
|
+
var R = !1, c, n, v = t === void 0 ? null : t;
|
|
209
|
+
return [function() {
|
|
210
|
+
return D(u());
|
|
211
|
+
}, v === null ? void 0 : function() {
|
|
212
|
+
return D(v());
|
|
213
|
+
}];
|
|
214
|
+
}, [u, t, r, s]);
|
|
215
|
+
var S = p(E, d[0], d[1]);
|
|
216
|
+
return g(function() {
|
|
217
|
+
l.hasValue = !0, l.value = S;
|
|
218
|
+
}, [S]), h(S), S;
|
|
219
|
+
}, M;
|
|
220
|
+
}
|
|
221
|
+
var G = {};
|
|
222
|
+
/**
|
|
223
|
+
* @license React
|
|
224
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
225
|
+
*
|
|
226
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the MIT license found in the
|
|
229
|
+
* LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/
|
|
231
|
+
var z;
|
|
232
|
+
function re() {
|
|
233
|
+
return z || (z = 1, process.env.NODE_ENV !== "production" && function() {
|
|
234
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
235
|
+
var e = A, i = Y();
|
|
236
|
+
function a(u, t) {
|
|
237
|
+
return u === t && (u !== 0 || 1 / u === 1 / t) || u !== u && t !== t;
|
|
238
|
+
}
|
|
239
|
+
var f = typeof Object.is == "function" ? Object.is : a, p = i.useSyncExternalStore, y = e.useRef, g = e.useEffect, L = e.useMemo, h = e.useDebugValue;
|
|
240
|
+
function E(u, t, r, s, d) {
|
|
241
|
+
var l = y(null), S;
|
|
242
|
+
l.current === null ? (S = {
|
|
243
|
+
hasValue: !1,
|
|
244
|
+
value: null
|
|
245
|
+
}, l.current = S) : S = l.current;
|
|
246
|
+
var D = L(function() {
|
|
247
|
+
var v = !1, o, _, m = function(w) {
|
|
248
|
+
if (!v) {
|
|
249
|
+
v = !0, o = w;
|
|
250
|
+
var x = s(w);
|
|
251
|
+
if (d !== void 0 && S.hasValue) {
|
|
252
|
+
var I = S.value;
|
|
253
|
+
if (d(I, x))
|
|
254
|
+
return _ = I, I;
|
|
255
|
+
}
|
|
256
|
+
return _ = x, x;
|
|
257
|
+
}
|
|
258
|
+
var J = o, j = _;
|
|
259
|
+
if (f(J, w))
|
|
260
|
+
return j;
|
|
261
|
+
var C = s(w);
|
|
262
|
+
return d !== void 0 && d(j, C) ? j : (o = w, _ = C, C);
|
|
263
|
+
}, O = r === void 0 ? null : r, b = function() {
|
|
264
|
+
return m(t());
|
|
265
|
+
}, V = O === null ? void 0 : function() {
|
|
266
|
+
return m(O());
|
|
267
|
+
};
|
|
268
|
+
return [b, V];
|
|
269
|
+
}, [t, r, s, d]), R = D[0], c = D[1], n = p(u, R, c);
|
|
270
|
+
return g(function() {
|
|
271
|
+
S.hasValue = !0, S.value = n;
|
|
272
|
+
}, [n]), h(n), n;
|
|
273
|
+
}
|
|
274
|
+
G.useSyncExternalStoreWithSelector = E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
275
|
+
}()), G;
|
|
276
|
+
}
|
|
277
|
+
process.env.NODE_ENV === "production" ? U.exports = ne() : U.exports = re();
|
|
278
|
+
var oe = U.exports;
|
|
279
|
+
const ue = /* @__PURE__ */ Q(oe);
|
|
280
|
+
var k = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
281
|
+
const { useDebugValue: ie } = A, { useSyncExternalStoreWithSelector: ae } = ue;
|
|
282
|
+
let F = !1;
|
|
283
|
+
const se = (e) => e;
|
|
284
|
+
function ce(e, i = se, a) {
|
|
285
|
+
(k ? "production" : void 0) !== "production" && a && !F && (console.warn(
|
|
286
|
+
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
287
|
+
), F = !0);
|
|
288
|
+
const f = ae(
|
|
289
|
+
e.subscribe,
|
|
290
|
+
e.getState,
|
|
291
|
+
e.getServerState || e.getInitialState,
|
|
292
|
+
i,
|
|
293
|
+
a
|
|
294
|
+
);
|
|
295
|
+
return ie(f), f;
|
|
296
|
+
}
|
|
297
|
+
const $ = (e) => {
|
|
298
|
+
(k ? "production" : void 0) !== "production" && typeof e != "function" && console.warn(
|
|
299
|
+
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
300
|
+
);
|
|
301
|
+
const i = typeof e == "function" ? Z(e) : e, a = (f, p) => ce(i, f, p);
|
|
302
|
+
return Object.assign(a, i), a;
|
|
303
|
+
}, fe = (e) => e ? $(e) : $, _e = fe(() => ({
|
|
304
|
+
isAuthenticated: !1
|
|
305
|
+
}));
|
|
306
|
+
export {
|
|
307
|
+
de as a,
|
|
308
|
+
Se as b,
|
|
309
|
+
fe as c,
|
|
310
|
+
Q as g,
|
|
311
|
+
_e as u
|
|
312
|
+
};
|
package/lib/zudoku.auth-auth0.js
CHANGED
package/lib/zudoku.auth-clerk.js
CHANGED
|
@@ -2,9 +2,8 @@ var Re = Object.defineProperty;
|
|
|
2
2
|
var xe = (e, t, n) => t in e ? Re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var S = (e, t, n) => xe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { a as Pe, j as T } from "./index-DNx3xWa2.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as Le, g as Ue, u as re } from "./state-DfftBQ9X.js";
|
|
6
6
|
import { useRef as Ce, useState as je, useEffect as ze } from "react";
|
|
7
|
-
import { u as re } from "./state-oycsxkHz.js";
|
|
8
7
|
var he = { exports: {} };
|
|
9
8
|
(function(e) {
|
|
10
9
|
(function(t, n) {
|
|
@@ -1051,8 +1050,8 @@ class Pt {
|
|
|
1051
1050
|
];
|
|
1052
1051
|
}
|
|
1053
1052
|
}
|
|
1054
|
-
const
|
|
1053
|
+
const zt = (e) => new Pt(e);
|
|
1055
1054
|
export {
|
|
1056
1055
|
Pt as OpenIDAuthenticationProvider,
|
|
1057
|
-
|
|
1056
|
+
zt as default
|
|
1058
1057
|
};
|