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.
Files changed (59) hide show
  1. package/dist/config/config.d.ts +19 -2
  2. package/dist/config/validators/auth.d.ts +2 -0
  3. package/dist/config/validators/auth.js +2 -0
  4. package/dist/config/validators/auth.js.map +1 -0
  5. package/dist/config/validators/validate.d.ts +2 -0
  6. package/dist/config/validators/validate.js +4 -0
  7. package/dist/config/validators/validate.js.map +1 -0
  8. package/dist/lib/authentication/Callback.d.ts +4 -0
  9. package/dist/lib/authentication/Callback.js +20 -0
  10. package/dist/lib/authentication/Callback.js.map +1 -0
  11. package/dist/lib/authentication/auth0.d.ts +5 -0
  12. package/dist/lib/authentication/auth0.js +9 -0
  13. package/dist/lib/authentication/auth0.js.map +1 -0
  14. package/dist/lib/authentication/authentication.d.ts +7 -10
  15. package/dist/lib/authentication/clerk.d.ts +3 -4
  16. package/dist/lib/authentication/clerk.js +13 -6
  17. package/dist/lib/authentication/clerk.js.map +1 -1
  18. package/dist/lib/authentication/openid.d.ts +5 -11
  19. package/dist/lib/authentication/openid.js +90 -73
  20. package/dist/lib/authentication/openid.js.map +1 -1
  21. package/dist/lib/components/DevPortal.d.ts +2 -2
  22. package/dist/lib/components/DevPortal.js +5 -1
  23. package/dist/lib/components/DevPortal.js.map +1 -1
  24. package/dist/lib/components/Layout.js +1 -4
  25. package/dist/lib/components/Layout.js.map +1 -1
  26. package/dist/lib/core/DevPortalContext.d.ts +4 -7
  27. package/dist/lib/core/DevPortalContext.js +6 -6
  28. package/dist/lib/core/DevPortalContext.js.map +1 -1
  29. package/dist/lib/core/plugins.d.ts +1 -6
  30. package/dist/lib/plugins/api-key/index.js +6 -3
  31. package/dist/lib/plugins/api-key/index.js.map +1 -1
  32. package/dist/vite/config.js +2 -0
  33. package/dist/vite/config.js.map +1 -1
  34. package/dist/vite/plugin-auth.js +1 -1
  35. package/dist/vite/plugin-auth.js.map +1 -1
  36. package/lib/DevPortalProvider-yBHPOS9_.js +4559 -0
  37. package/lib/Spinner-Daa7xsri.js +7329 -0
  38. package/lib/loglevel-D-4S8up4.js +152 -0
  39. package/lib/zudoku.auth-auth0.js +829 -0
  40. package/lib/zudoku.auth-clerk.js +21 -12
  41. package/lib/zudoku.components.js +180 -174
  42. package/lib/zudoku.plugins.js +5702 -5846
  43. package/package.json +4 -1
  44. package/src/lib/authentication/Callback.tsx +31 -0
  45. package/src/lib/authentication/auth0.tsx +18 -0
  46. package/src/lib/authentication/authentication.ts +7 -14
  47. package/src/lib/authentication/{clerk.ts → clerk.tsx} +17 -9
  48. package/src/lib/authentication/openid.tsx +206 -0
  49. package/src/lib/components/DevPortal.tsx +10 -3
  50. package/src/lib/components/Layout.tsx +1 -5
  51. package/src/lib/core/DevPortalContext.ts +10 -13
  52. package/src/lib/core/plugins.ts +4 -4
  53. package/src/lib/plugins/api-key/index.tsx +9 -3
  54. package/dist/lib/core/types/combine.d.ts +0 -4
  55. package/dist/lib/core/types/combine.js +0 -2
  56. package/dist/lib/core/types/combine.js.map +0 -1
  57. package/lib/Spinner-9_-7nYgL.js +0 -11855
  58. package/src/lib/authentication/openid.ts +0 -194
  59. package/src/lib/core/types/combine.ts +0 -16
@@ -1,32 +1,41 @@
1
- const n = ({ clerkPubKey: t }) => {
1
+ const o = ({
2
+ clerkPubKey: n
3
+ }) => {
2
4
  let e;
3
- const a = (async () => {
5
+ const t = (async () => {
4
6
  const { Clerk: s } = await import("./clerk-Wslx_mPo.js");
5
- e = new s(t), await e.load({});
7
+ e = new s(n), await e.load({});
6
8
  })();
7
9
  return {
8
10
  initialize: async (s) => {
9
- var i;
10
- await a, e.session ? await s.setUserProfile({
11
+ var a;
12
+ await t, e.session ? await s.setUserProfile({
11
13
  isLoggedIn: !0,
12
14
  name: e.session.user.fullName ?? void 0,
13
- email: ((i = e.session.user.emailAddresses.at(0)) == null ? void 0 : i.emailAddress) ?? void 0
15
+ email: ((a = e.session.user.emailAddresses.at(0)) == null ? void 0 : a.emailAddress) ?? void 0
14
16
  }) : await s.setUserProfile({
15
17
  isLoggedIn: !1
16
18
  });
17
19
  },
18
- getToken: async () => {
20
+ async signRequest(s) {
19
21
  var i;
20
- return await a, await ((i = e.session) == null ? void 0 : i.getToken()) ?? void 0;
22
+ await t;
23
+ const a = await ((i = e.session) == null ? void 0 : i.getToken());
24
+ return s.headers.set("Authorization", `Bearer ${a}`), s;
21
25
  },
22
- signOut() {
23
- e.signOut();
26
+ getToken: async () => {
27
+ var a;
28
+ return await t, await ((a = e.session) == null ? void 0 : a.getToken()) ?? void 0;
29
+ },
30
+ logout: async () => {
31
+ await e.signOut();
24
32
  },
25
33
  login: async () => {
26
34
  await e.redirectToSignIn();
27
- }
35
+ },
36
+ getRoutes: () => []
28
37
  };
29
38
  };
30
39
  export {
31
- n as default
40
+ o as default
32
41
  };