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