zudoku 0.1.1-dev.50 → 0.1.1-dev.51
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/config/config.d.ts +19 -2
- package/dist/config/validators/auth.d.ts +2 -0
- package/dist/config/validators/auth.js +2 -0
- package/dist/config/validators/auth.js.map +1 -0
- package/dist/config/validators/validate.d.ts +2 -0
- package/dist/config/validators/validate.js +4 -0
- package/dist/config/validators/validate.js.map +1 -0
- package/dist/lib/authentication/Callback.d.ts +4 -0
- package/dist/lib/authentication/Callback.js +20 -0
- package/dist/lib/authentication/Callback.js.map +1 -0
- package/dist/lib/authentication/auth0.d.ts +5 -0
- package/dist/lib/authentication/auth0.js +9 -0
- package/dist/lib/authentication/auth0.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +7 -10
- package/dist/lib/authentication/clerk.d.ts +3 -4
- package/dist/lib/authentication/clerk.js +13 -6
- package/dist/lib/authentication/clerk.js.map +1 -1
- package/dist/lib/authentication/openid.d.ts +5 -11
- package/dist/lib/authentication/openid.js +90 -73
- package/dist/lib/authentication/openid.js.map +1 -1
- package/dist/lib/components/DevPortal.d.ts +2 -2
- package/dist/lib/components/DevPortal.js +5 -1
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -4
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +4 -7
- package/dist/lib/core/DevPortalContext.js +6 -6
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +1 -6
- package/dist/lib/plugins/api-key/index.js +6 -3
- package/dist/lib/plugins/api-key/index.js.map +1 -1
- package/dist/vite/config.js +2 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-auth.js +1 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/lib/DevPortalProvider-yBHPOS9_.js +4559 -0
- package/lib/Spinner-Daa7xsri.js +7329 -0
- package/lib/loglevel-D-4S8up4.js +152 -0
- package/lib/zudoku.auth-auth0.js +829 -0
- package/lib/zudoku.auth-clerk.js +21 -12
- package/lib/zudoku.components.js +180 -174
- package/lib/zudoku.plugins.js +5702 -5846
- package/package.json +4 -1
- package/src/lib/authentication/Callback.tsx +31 -0
- package/src/lib/authentication/auth0.tsx +18 -0
- package/src/lib/authentication/authentication.ts +7 -14
- package/src/lib/authentication/{clerk.ts → clerk.tsx} +17 -9
- package/src/lib/authentication/openid.tsx +206 -0
- package/src/lib/components/DevPortal.tsx +10 -3
- package/src/lib/components/Layout.tsx +1 -5
- package/src/lib/core/DevPortalContext.ts +10 -13
- package/src/lib/core/plugins.ts +4 -4
- package/src/lib/plugins/api-key/index.tsx +9 -3
- package/dist/lib/core/types/combine.d.ts +0 -4
- package/dist/lib/core/types/combine.js +0 -2
- package/dist/lib/core/types/combine.js.map +0 -1
- package/lib/Spinner-9_-7nYgL.js +0 -11855
- package/src/lib/authentication/openid.ts +0 -194
- package/src/lib/core/types/combine.ts +0 -16
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { F as N, j as _ } from "./DevPortalProvider-yBHPOS9_.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 F(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 x(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 F(o) || x.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
|
+
};
|