zudoku 0.3.0-dev.5 → 0.3.0-dev.7
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/SyntaxHighlight.js +5 -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 +4 -3
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-key/index.js +20 -5
- package/dist/lib/plugins/api-key/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
- package/dist/lib/plugins/openapi/playground/Headers.js +16 -6
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +3 -3
- package/dist/lib/plugins/openapi/playground/Playground.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-DWHrSHMP.js → Spinner-BewqqUU-.js} +7 -5
- package/lib/{index-DNx3xWa2.js → index-PyGcnQFX.js} +13 -12
- package/lib/loglevel-CoH7VSwE.js +152 -0
- package/lib/prism-csharp.min-Yizuc34Y.js +34 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
- package/lib/{state-DfftBQ9X.js → state-2Hu1renZ.js} +6 -5
- package/lib/zudoku.auth-auth0.js +2 -1
- package/lib/zudoku.auth-clerk.js +9 -7
- package/lib/zudoku.auth-openid.js +442 -587
- package/lib/zudoku.components.js +7 -6
- package/lib/zudoku.plugins.js +3075 -3046
- 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/SyntaxHighlight.tsx +5 -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 +66 -56
- package/src/lib/plugins/api-key/index.tsx +30 -5
- package/src/lib/plugins/openapi/playground/Headers.tsx +60 -33
- package/src/lib/plugins/openapi/playground/Playground.tsx +3 -8
package/dist/vite/config.test.js
CHANGED
|
@@ -2,7 +2,7 @@ import assert from "node:assert";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import test from "node:test";
|
|
4
4
|
import { loadConfig } from "./config.js";
|
|
5
|
-
test("Should correctly load zudoku.config.ts file", async (
|
|
5
|
+
test("Should correctly load zudoku.config.ts file", async () => {
|
|
6
6
|
const rootPath = path.resolve("../../samples/with-config/");
|
|
7
7
|
const config = await loadConfig(rootPath, "zudoku.config.ts");
|
|
8
8
|
assert.equal(config.default.ui.headerTitle, "My Portal");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.test.js","sourceRoot":"","sources":["../../src/vite/config.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,IAAI,CAAC,6CAA6C,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"config.test.js","sourceRoot":"","sources":["../../src/vite/config.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,IAAI,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;IAC7D,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAC5D,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;IAC9D,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC3D,CAAC,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import assert from "node:assert";
|
|
|
3
3
|
import test from "node:test";
|
|
4
4
|
import { checkTypescriptString } from "../ts.js";
|
|
5
5
|
import viteDocsPlugin from "./plugin-docs.js";
|
|
6
|
-
test("Builds code", async (
|
|
6
|
+
test("Builds code", async () => {
|
|
7
7
|
const plugin = viteDocsPlugin({
|
|
8
8
|
docs: { files: "docs/**/*.md" },
|
|
9
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-docs.test.js","sourceRoot":"","sources":["../../src/vite/plugin-docs.test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,IAAI,CAAC,aAAa,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"plugin-docs.test.js","sourceRoot":"","sources":["../../src/vite/plugin-docs.test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,IAAI,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;IAC7B,MAAM,MAAM,GAAG,cAAc,CAAC;QAC5B,IAAI,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE;KACzB,CAAC,CAAC;IACV,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IACD,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI;IACnC,8DAA8D;IAC9D,EAAS,EACT,4BAA4B,CAC7B,CAAC;IACF,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;QAC7D,MAAM,WAAW,GAAG,MAAM,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC7B,CAAC;QACD,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;IACvD,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -7,8 +7,8 @@ var ce = (e, t, r) => pa(e, typeof t != "symbol" ? t + "" : t, r), jt = (e, t, r
|
|
|
7
7
|
var m = (e, t, r) => (jt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), P = (e, t, r) => t.has(e) ? jr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), R = (e, t, r, n) => (jt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), I = (e, t, r) => (jt(e, t, "access private method"), r);
|
|
8
8
|
import * as w from "react";
|
|
9
9
|
import Q, { Component as gr, createContext as yr, useState as At, useRef as He, useEffect as nt, useMemo as qt, useCallback as at, useContext as mr, createElement as wt, forwardRef as fn } from "react";
|
|
10
|
-
import { g as br, u as fa } from "./state-
|
|
11
|
-
import { j as C,
|
|
10
|
+
import { g as br, u as fa } from "./state-2Hu1renZ.js";
|
|
11
|
+
import { j as C, c as Ct, s as We, w as vr, d as ha, a as ga, u as lt, e as Tt, f as Vt, D as hn, g as ya, R as ma, i as Ke, h as ba, m as xt, k as va, l as wa, n as xa, E as Ea, o as gn, p as ka, q as Sa } from "./index-PyGcnQFX.js";
|
|
12
12
|
import * as wr from "react-dom";
|
|
13
13
|
const Ht = {}, yn = Q.createContext(Ht);
|
|
14
14
|
function Aa(e) {
|
|
@@ -7712,7 +7712,7 @@ const Ki = Ie("TriangleAlert", [
|
|
|
7712
7712
|
}, [t]), a = [t, n];
|
|
7713
7713
|
return /* @__PURE__ */ C.jsx(Qn.Provider, { value: a, ...e });
|
|
7714
7714
|
};
|
|
7715
|
-
globalThis.Prism = v, import("./prism-bash.min-DadFsM4Z.js"), import("./prism-ruby.min-C7LwcKyz.js"), import("./prism-markup-templating-DZrrEs0A.js"), import("./prism-php.min-o7FpoMP_.js"), import("./prism-json.min-B1GJqK1k.js"), import("./prism-java.min-d5iT_mOd.js");
|
|
7715
|
+
globalThis.Prism = v, import("./prism-bash.min-DadFsM4Z.js"), import("./prism-ruby.min-C7LwcKyz.js"), import("./prism-markup-templating-DZrrEs0A.js"), import("./prism-php.min-o7FpoMP_.js"), import("./prism-json.min-B1GJqK1k.js"), import("./prism-java.min-d5iT_mOd.js"), import("./prism-csharp.min-Yizuc34Y.js"), import("./prism-objectivec.min-BXSWqpJJ.js");
|
|
7716
7716
|
const Yi = ({
|
|
7717
7717
|
copyable: e = !0,
|
|
7718
7718
|
...t
|
|
@@ -7892,6 +7892,7 @@ const Yi = ({
|
|
|
7892
7892
|
const { authentication: e } = Nt(), t = fa(), r = typeof e < "u";
|
|
7893
7893
|
return {
|
|
7894
7894
|
isAuthEnabled: r,
|
|
7895
|
+
isPending: t.isPending,
|
|
7895
7896
|
profile: t.profile,
|
|
7896
7897
|
isAuthenticated: t.profile,
|
|
7897
7898
|
login: async () => {
|
|
@@ -8381,8 +8382,9 @@ export {
|
|
|
8381
8382
|
Pe as ae,
|
|
8382
8383
|
aa as af,
|
|
8383
8384
|
Kl as ag,
|
|
8384
|
-
|
|
8385
|
-
|
|
8385
|
+
Ki as ah,
|
|
8386
|
+
ql as ai,
|
|
8387
|
+
Yi as aj,
|
|
8386
8388
|
Wt as b,
|
|
8387
8389
|
Ol as c,
|
|
8388
8390
|
_l as d,
|
|
@@ -3440,21 +3440,22 @@ export {
|
|
|
3440
3440
|
fa as O,
|
|
3441
3441
|
De as R,
|
|
3442
3442
|
zn as a,
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3443
|
+
ra as b,
|
|
3444
|
+
Ve as c,
|
|
3445
|
+
sa as d,
|
|
3446
|
+
Jn as e,
|
|
3447
|
+
yt as f,
|
|
3448
|
+
ca as g,
|
|
3449
|
+
Ne as h,
|
|
3450
3450
|
M as i,
|
|
3451
3451
|
oa as j,
|
|
3452
|
-
|
|
3453
|
-
|
|
3452
|
+
la as k,
|
|
3453
|
+
ia as l,
|
|
3454
3454
|
fr as m,
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3455
|
+
pa as n,
|
|
3456
|
+
It as o,
|
|
3457
|
+
ha as p,
|
|
3458
|
+
ua as q,
|
|
3458
3459
|
Et as s,
|
|
3459
3460
|
Bt as u,
|
|
3460
3461
|
te as w
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { a as N, g as _ } from "./state-2Hu1renZ.js";
|
|
2
|
+
var I = { exports: {} };
|
|
3
|
+
(function(w) {
|
|
4
|
+
(function(g, i) {
|
|
5
|
+
w.exports ? w.exports = i() : g.log = i();
|
|
6
|
+
})(N, function() {
|
|
7
|
+
var g = function() {
|
|
8
|
+
}, i = "undefined", C = typeof window !== i && typeof window.navigator !== i && /Trident\/|MSIE /.test(window.navigator.userAgent), p = [
|
|
9
|
+
"trace",
|
|
10
|
+
"debug",
|
|
11
|
+
"info",
|
|
12
|
+
"warn",
|
|
13
|
+
"error"
|
|
14
|
+
], a = {}, l = null;
|
|
15
|
+
function h(o, t) {
|
|
16
|
+
var e = o[t];
|
|
17
|
+
if (typeof e.bind == "function")
|
|
18
|
+
return e.bind(o);
|
|
19
|
+
try {
|
|
20
|
+
return Function.prototype.bind.call(e, o);
|
|
21
|
+
} catch {
|
|
22
|
+
return function() {
|
|
23
|
+
return Function.prototype.apply.apply(e, [o, arguments]);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function T() {
|
|
28
|
+
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
29
|
+
}
|
|
30
|
+
function x(o) {
|
|
31
|
+
return o === "debug" && (o = "log"), typeof console === i ? !1 : o === "trace" && C ? T : console[o] !== void 0 ? h(console, o) : console.log !== void 0 ? h(console, "log") : g;
|
|
32
|
+
}
|
|
33
|
+
function u() {
|
|
34
|
+
for (var o = this.getLevel(), t = 0; t < p.length; t++) {
|
|
35
|
+
var e = p[t];
|
|
36
|
+
this[e] = t < o ? g : this.methodFactory(e, o, this.name);
|
|
37
|
+
}
|
|
38
|
+
if (this.log = this.debug, typeof console === i && o < this.levels.SILENT)
|
|
39
|
+
return "No console available for logging";
|
|
40
|
+
}
|
|
41
|
+
function F(o) {
|
|
42
|
+
return function() {
|
|
43
|
+
typeof console !== i && (u.call(this), this[o].apply(this, arguments));
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function R(o, t, e) {
|
|
47
|
+
return x(o) || F.apply(this, arguments);
|
|
48
|
+
}
|
|
49
|
+
function L(o, t) {
|
|
50
|
+
var e = this, v, y, f, s = "loglevel";
|
|
51
|
+
typeof o == "string" ? s += ":" + o : typeof o == "symbol" && (s = void 0);
|
|
52
|
+
function S(n) {
|
|
53
|
+
var r = (p[n] || "silent").toUpperCase();
|
|
54
|
+
if (!(typeof window === i || !s)) {
|
|
55
|
+
try {
|
|
56
|
+
window.localStorage[s] = r;
|
|
57
|
+
return;
|
|
58
|
+
} catch {
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
window.document.cookie = encodeURIComponent(s) + "=" + r + ";";
|
|
62
|
+
} catch {
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function b() {
|
|
67
|
+
var n;
|
|
68
|
+
if (!(typeof window === i || !s)) {
|
|
69
|
+
try {
|
|
70
|
+
n = window.localStorage[s];
|
|
71
|
+
} catch {
|
|
72
|
+
}
|
|
73
|
+
if (typeof n === i)
|
|
74
|
+
try {
|
|
75
|
+
var r = window.document.cookie, d = encodeURIComponent(s), m = r.indexOf(d + "=");
|
|
76
|
+
m !== -1 && (n = /^([^;]+)/.exec(
|
|
77
|
+
r.slice(m + d.length + 1)
|
|
78
|
+
)[1]);
|
|
79
|
+
} catch {
|
|
80
|
+
}
|
|
81
|
+
return e.levels[n] === void 0 && (n = void 0), n;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function U() {
|
|
85
|
+
if (!(typeof window === i || !s)) {
|
|
86
|
+
try {
|
|
87
|
+
window.localStorage.removeItem(s);
|
|
88
|
+
} catch {
|
|
89
|
+
}
|
|
90
|
+
try {
|
|
91
|
+
window.document.cookie = encodeURIComponent(s) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
92
|
+
} catch {
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function c(n) {
|
|
97
|
+
var r = n;
|
|
98
|
+
if (typeof r == "string" && e.levels[r.toUpperCase()] !== void 0 && (r = e.levels[r.toUpperCase()]), typeof r == "number" && r >= 0 && r <= e.levels.SILENT)
|
|
99
|
+
return r;
|
|
100
|
+
throw new TypeError("log.setLevel() called with invalid level: " + n);
|
|
101
|
+
}
|
|
102
|
+
e.name = o, e.levels = {
|
|
103
|
+
TRACE: 0,
|
|
104
|
+
DEBUG: 1,
|
|
105
|
+
INFO: 2,
|
|
106
|
+
WARN: 3,
|
|
107
|
+
ERROR: 4,
|
|
108
|
+
SILENT: 5
|
|
109
|
+
}, e.methodFactory = t || R, e.getLevel = function() {
|
|
110
|
+
return f ?? y ?? v;
|
|
111
|
+
}, e.setLevel = function(n, r) {
|
|
112
|
+
return f = c(n), r !== !1 && S(f), u.call(e);
|
|
113
|
+
}, e.setDefaultLevel = function(n) {
|
|
114
|
+
y = c(n), b() || e.setLevel(n, !1);
|
|
115
|
+
}, e.resetLevel = function() {
|
|
116
|
+
f = null, U(), u.call(e);
|
|
117
|
+
}, e.enableAll = function(n) {
|
|
118
|
+
e.setLevel(e.levels.TRACE, n);
|
|
119
|
+
}, e.disableAll = function(n) {
|
|
120
|
+
e.setLevel(e.levels.SILENT, n);
|
|
121
|
+
}, e.rebuild = function() {
|
|
122
|
+
if (l !== e && (v = c(l.getLevel())), u.call(e), l === e)
|
|
123
|
+
for (var n in a)
|
|
124
|
+
a[n].rebuild();
|
|
125
|
+
}, v = c(
|
|
126
|
+
l ? l.getLevel() : "WARN"
|
|
127
|
+
);
|
|
128
|
+
var E = b();
|
|
129
|
+
E != null && (f = c(E)), u.call(e);
|
|
130
|
+
}
|
|
131
|
+
l = new L(), l.getLogger = function(t) {
|
|
132
|
+
if (typeof t != "symbol" && typeof t != "string" || t === "")
|
|
133
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
134
|
+
var e = a[t];
|
|
135
|
+
return e || (e = a[t] = new L(
|
|
136
|
+
t,
|
|
137
|
+
l.methodFactory
|
|
138
|
+
)), e;
|
|
139
|
+
};
|
|
140
|
+
var A = typeof window !== i ? window.log : void 0;
|
|
141
|
+
return l.noConflict = function() {
|
|
142
|
+
return typeof window !== i && window.log === l && (window.log = A), l;
|
|
143
|
+
}, l.getLoggers = function() {
|
|
144
|
+
return a;
|
|
145
|
+
}, l.default = l, l;
|
|
146
|
+
});
|
|
147
|
+
})(I);
|
|
148
|
+
var D = I.exports;
|
|
149
|
+
const P = /* @__PURE__ */ _(D);
|
|
150
|
+
export {
|
|
151
|
+
P as l
|
|
152
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
(function(s) {
|
|
2
|
+
function n(a, o) {
|
|
3
|
+
return a.replace(/<<(\d+)>>/g, function(f, H) {
|
|
4
|
+
return "(?:" + o[+H] + ")";
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
function e(a, o, f) {
|
|
8
|
+
return RegExp(n(a, o), "");
|
|
9
|
+
}
|
|
10
|
+
function d(a, o) {
|
|
11
|
+
for (var f = 0; f < o; f++) a = a.replace(/<<self>>/g, function() {
|
|
12
|
+
return "(?:" + a + ")";
|
|
13
|
+
});
|
|
14
|
+
return a.replace(/<<self>>/g, "[^\\s\\S]");
|
|
15
|
+
}
|
|
16
|
+
var w = "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void", p = "class enum interface record struct", v = "add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)", m = "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";
|
|
17
|
+
function c(a) {
|
|
18
|
+
return "\\b(?:" + a.trim().replace(/ /g, "|") + ")\\b";
|
|
19
|
+
}
|
|
20
|
+
var x = c(p), u = RegExp(c(w + " " + p + " " + v + " " + m)), U = c(p + " " + v + " " + m), Z = c(w + " " + p + " " + m), g = d("<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>", 2), b = d("\\((?:[^()]|<<self>>)*\\)", 2), r = "@?\\b[A-Za-z_]\\w*\\b", h = n("<<0>>(?:\\s*<<1>>)?", [r, g]), i = n("(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*", [U, h]), k = "\\[\\s*(?:,\\s*)*\\]", q = n("<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?", [i, k]), C = n("[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>", [g, b, k]), D = n("\\(<<0>>+(?:,<<0>>+)+\\)", [C]), l = n("(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?", [D, i, k]), t = { keyword: u, punctuation: /[<>()?,.:[\]]/ }, $ = `'(?:[^\r
|
|
21
|
+
'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`, _ = `"(?:\\\\.|[^\\\\"\r
|
|
22
|
+
])*"`;
|
|
23
|
+
s.languages.csharp = s.languages.extend("clike", { string: [{ pattern: e("(^|[^$\\\\])<<0>>", ['@"(?:""|\\\\[^]|[^\\\\"])*"(?!")']), lookbehind: !0, greedy: !0 }, { pattern: e("(^|[^@$\\\\])<<0>>", [_]), lookbehind: !0, greedy: !0 }], "class-name": [{ pattern: e("(\\busing\\s+static\\s+)<<0>>(?=\\s*;)", [i]), lookbehind: !0, inside: t }, { pattern: e("(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)", [r, l]), lookbehind: !0, inside: t }, { pattern: e("(\\busing\\s+)<<0>>(?=\\s*=)", [r]), lookbehind: !0 }, { pattern: e("(\\b<<0>>\\s+)<<1>>", [x, h]), lookbehind: !0, inside: t }, { pattern: e("(\\bcatch\\s*\\(\\s*)<<0>>", [i]), lookbehind: !0, inside: t }, { pattern: e("(\\bwhere\\s+)<<0>>", [r]), lookbehind: !0 }, { pattern: e("(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>", [q]), lookbehind: !0, inside: t }, { pattern: e("\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))", [l, Z, r]), inside: t }], keyword: u, number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i, operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/, punctuation: /\?\.?|::|[{}[\];(),.:]/ }), s.languages.insertBefore("csharp", "number", { range: { pattern: /\.\./, alias: "operator" } }), s.languages.insertBefore("csharp", "punctuation", { "named-parameter": { pattern: e("([(,]\\s*)<<0>>(?=\\s*:)", [r]), lookbehind: !0, alias: "punctuation" } }), s.languages.insertBefore("csharp", "class-name", { namespace: { pattern: e("(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])", [r]), lookbehind: !0, inside: { punctuation: /\./ } }, "type-expression": { pattern: e("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))", [b]), lookbehind: !0, alias: "class-name", inside: t }, "return-type": { pattern: e("<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [l, i]), inside: t, alias: "class-name" }, "constructor-invocation": { pattern: e("(\\bnew\\s+)<<0>>(?=\\s*[[({])", [l]), lookbehind: !0, inside: t, alias: "class-name" }, "generic-method": { pattern: e("<<0>>\\s*<<1>>(?=\\s*\\()", [r, g]), inside: { function: e("^<<0>>", [r]), generic: { pattern: RegExp(g), alias: "class-name", inside: t } } }, "type-list": { pattern: e("\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))", [x, h, r, l, u.source, b, "\\bnew\\s*\\(\\s*\\)"]), lookbehind: !0, inside: { "record-arguments": { pattern: e("(^(?!new\\s*\\()<<0>>\\s*)<<1>>", [h, b]), lookbehind: !0, greedy: !0, inside: s.languages.csharp }, keyword: u, "class-name": { pattern: RegExp(l), greedy: !0, inside: t }, punctuation: /[,()]/ } }, preprocessor: { pattern: /(^[\t ]*)#.*/m, lookbehind: !0, alias: "property", inside: { directive: { pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/, lookbehind: !0, alias: "keyword" } } } });
|
|
24
|
+
var B = _ + "|" + $, E = n(`/(?![*/])|//[^\r
|
|
25
|
+
]*[\r
|
|
26
|
+
]|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>`, [B]), R = d(n(`[^"'/()]|<<0>>|\\(<<self>>*\\)`, [E]), 2), z = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", G = n("<<0>>(?:\\s*\\(<<1>>*\\))?", [i, R]);
|
|
27
|
+
s.languages.insertBefore("csharp", "class-name", { attribute: { pattern: e("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])", [z, G]), lookbehind: !0, greedy: !0, inside: { target: { pattern: e("^<<0>>(?=\\s*:)", [z]), alias: "keyword" }, "attribute-arguments": { pattern: e("\\(<<0>>*\\)", [R]), inside: s.languages.csharp }, "class-name": { pattern: RegExp(i), inside: { punctuation: /\./ } }, punctuation: /[:,]/ } } });
|
|
28
|
+
var y = `:[^}\r
|
|
29
|
+
]+`, S = d(n(`[^"'/()]|<<0>>|\\(<<self>>*\\)`, [E]), 2), j = n("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [S, y]), A = d(n(`[^"'/()]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>|\\(<<self>>*\\)`, [B]), 2), F = n("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [A, y]);
|
|
30
|
+
function P(a, o) {
|
|
31
|
+
return { interpolation: { pattern: e("((?:^|[^{])(?:\\{\\{)*)<<0>>", [a]), lookbehind: !0, inside: { "format-string": { pattern: e("(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)", [o, y]), lookbehind: !0, inside: { punctuation: /^:/ } }, punctuation: /^\{|\}$/, expression: { pattern: /[\s\S]+/, alias: "language-csharp", inside: s.languages.csharp } } }, string: /[\s\S]+/ };
|
|
32
|
+
}
|
|
33
|
+
s.languages.insertBefore("csharp", "string", { "interpolation-string": [{ pattern: e('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[^]|\\{\\{|<<0>>|[^\\\\{"])*"', [j]), lookbehind: !0, greedy: !0, inside: P(j, S) }, { pattern: e('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"', [F]), lookbehind: !0, greedy: !0, inside: P(F, A) }], char: { pattern: RegExp($), greedy: !0 } }), s.languages.dotnet = s.languages.cs = s.languages.csharp;
|
|
34
|
+
})(Prism);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.objectivec = Prism.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/, operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete Prism.languages.objectivec["class-name"], Prism.languages.objc = Prism.languages.objectivec;
|
|
@@ -164,9 +164,9 @@ function te() {
|
|
|
164
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
165
|
}()), B;
|
|
166
166
|
}
|
|
167
|
-
var
|
|
167
|
+
var P;
|
|
168
168
|
function Y() {
|
|
169
|
-
return
|
|
169
|
+
return P || (P = 1, process.env.NODE_ENV === "production" ? T.exports = ee() : T.exports = te()), T.exports;
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* @license React
|
|
@@ -177,10 +177,10 @@ function Y() {
|
|
|
177
177
|
* This source code is licensed under the MIT license found in the
|
|
178
178
|
* LICENSE file in the root directory of this source tree.
|
|
179
179
|
*/
|
|
180
|
-
var
|
|
180
|
+
var q;
|
|
181
181
|
function ne() {
|
|
182
|
-
if (
|
|
183
|
-
|
|
182
|
+
if (q) return M;
|
|
183
|
+
q = 1;
|
|
184
184
|
var e = A, i = Y();
|
|
185
185
|
function a(E, u) {
|
|
186
186
|
return E === u && (E !== 0 || 1 / E === 1 / u) || E !== E && u !== u;
|
|
@@ -301,6 +301,7 @@ const $ = (e) => {
|
|
|
301
301
|
const i = typeof e == "function" ? Z(e) : e, a = (f, p) => ce(i, f, p);
|
|
302
302
|
return Object.assign(a, i), a;
|
|
303
303
|
}, fe = (e) => e ? $(e) : $, _e = fe(() => ({
|
|
304
|
+
isPending: !0,
|
|
304
305
|
isAuthenticated: !1
|
|
305
306
|
}));
|
|
306
307
|
export {
|
package/lib/zudoku.auth-auth0.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { u as i } from "./state-
|
|
1
|
+
import { u as i } from "./state-2Hu1renZ.js";
|
|
2
2
|
import { OpenIDAuthenticationProvider as n } from "./zudoku.auth-openid.js";
|
|
3
3
|
class r extends n {
|
|
4
4
|
async logout() {
|
|
5
5
|
i.setState({
|
|
6
6
|
isAuthenticated: !1,
|
|
7
|
+
isPending: !1,
|
|
7
8
|
profile: void 0
|
|
8
9
|
});
|
|
9
10
|
const t = await this.getAuthServer(), e = new URL(window.location.href);
|
package/lib/zudoku.auth-clerk.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as
|
|
1
|
+
import { u as t } from "./state-2Hu1renZ.js";
|
|
2
2
|
const r = ({ clerkPubKey: a }) => {
|
|
3
3
|
let e;
|
|
4
|
-
const
|
|
4
|
+
const i = (async () => {
|
|
5
5
|
const { Clerk: s } = await import("./clerk-Wslx_mPo.js");
|
|
6
6
|
e = new s(a), await e.load({});
|
|
7
7
|
})();
|
|
8
|
-
async function
|
|
9
|
-
if (await
|
|
8
|
+
async function n() {
|
|
9
|
+
if (await i, !e.session)
|
|
10
10
|
throw new Error("No session available");
|
|
11
11
|
const s = await e.session.getToken();
|
|
12
12
|
if (!s)
|
|
@@ -16,8 +16,9 @@ const r = ({ clerkPubKey: a }) => {
|
|
|
16
16
|
return {
|
|
17
17
|
initialize: async () => {
|
|
18
18
|
var s;
|
|
19
|
-
await
|
|
19
|
+
await i, e.session ? t.setState({
|
|
20
20
|
isAuthenticated: !0,
|
|
21
|
+
isPending: !1,
|
|
21
22
|
profile: {
|
|
22
23
|
sub: e.session.user.id,
|
|
23
24
|
name: e.session.user.fullName ?? void 0,
|
|
@@ -27,12 +28,13 @@ const r = ({ clerkPubKey: a }) => {
|
|
|
27
28
|
// emailVerified: clerkApi.session.user.hasVerifiedEmailAddress,
|
|
28
29
|
pictureUrl: e.session.user.imageUrl
|
|
29
30
|
}
|
|
30
|
-
}) :
|
|
31
|
+
}) : t.setState({
|
|
31
32
|
isAuthenticated: !1,
|
|
33
|
+
isPending: !1,
|
|
32
34
|
profile: void 0
|
|
33
35
|
});
|
|
34
36
|
},
|
|
35
|
-
getAccessToken:
|
|
37
|
+
getAccessToken: n,
|
|
36
38
|
logout: async () => {
|
|
37
39
|
await e.signOut();
|
|
38
40
|
},
|