@abyss-project/commons-front-core 4.0.2 → 4.0.3

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 (33) hide show
  1. package/dist/auth/client/capacitor-bridge.spec.d.ts +1 -0
  2. package/dist/auth/client/index.d.ts +1 -0
  3. package/dist/auth/client/native-bridge.d.ts +3 -1
  4. package/dist/auth/client/native-plugin.d.ts +17 -0
  5. package/dist/auth/client/token-storage.d.ts +6 -2
  6. package/dist/auth-client.js +2 -2
  7. package/dist/auth-native.js +10 -7
  8. package/dist/{index-Cd4_EjFA.js → index-B2e6OuRs.js} +3 -3
  9. package/dist/{index-Cjiluc_5.js → index-B4t8DxtX.js} +3 -3
  10. package/dist/{index-DzLzTV9g.js → index-BKTtF_t2.js} +4 -4
  11. package/dist/{index-Bj4jHaow.js → index-BdJy1PZ3.js} +3 -3
  12. package/dist/{index-D6dqDWsy.js → index-C8XPshUr.js} +2 -2
  13. package/dist/{index-D5jl7g9z.js → index-CAgNKpI4.js} +2 -2
  14. package/dist/{index-DY8rTcch.js → index-CHqYUVet.js} +2 -2
  15. package/dist/{index-DKoMzSab.js → index-CNqd4xCq.js} +2 -2
  16. package/dist/{index-e2DSTfpE.js → index-COP395TG.js} +2 -2
  17. package/dist/{index-C2swA3W0.js → index-CjbK-GxN.js} +2 -2
  18. package/dist/{index-CHbxRxJN.js → index-CkrFIOKR.js} +4 -4
  19. package/dist/{index-Bb_SMJPy.js → index-Clum5fIZ.js} +2 -2
  20. package/dist/{index-KpYZBM9e.js → index-D674m7b5.js} +2 -2
  21. package/dist/{index-CRT7FeOv.js → index-DLz7OHk2.js} +2 -2
  22. package/dist/{index-DcQ9S3SN.js → index-DTczxhDj.js} +27 -27
  23. package/dist/{index-em28yE6Z.js → index-Dm4XMxYD.js} +1 -1
  24. package/dist/{index-jS1uLZrH.js → index-DrxSGikh.js} +4 -4
  25. package/dist/{index-fLkSgYMy.js → index-IO-duPWJ.js} +2 -2
  26. package/dist/{index-BZLB3mdX.js → index-lNrWguql.js} +3 -3
  27. package/dist/{index-BCSDLlrV.js → index-mGjvcLnl.js} +2 -2
  28. package/dist/{index-DdAjii4k.js → index-pYtPsAyc.js} +2 -2
  29. package/dist/{index-k0D9MvTM.js → index-qksRqwdT.js} +2 -2
  30. package/dist/index.js +3 -3
  31. package/dist/{token-storage-D3e11ePD.js → token-storage-CbWrBeIP.js} +2 -2
  32. package/dist/{use-auth.hook-B_TU5W3g.js → use-auth.hook-BLaU_u8T.js} +1 -1
  33. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
1
  export * from './auth-bridge';
2
2
  export * from './auth-client';
3
+ export * from './native-plugin';
3
4
  export * from './token-storage';
4
5
  export * from './web-bridge';
5
6
  export * from '../react/AuthProvider.component';
@@ -1,5 +1,6 @@
1
1
  import { SessionPlatform } from '@abyss-project/main';
2
2
  import { AuthBridge } from './auth-bridge';
3
+ import { LoadedPlugin } from './native-plugin';
3
4
  /**
4
5
  * The calls the native bridge makes on `@abyss-project/capacitor-auth` (its `AbyssAuthPlugin`).
5
6
  * Declared here so this file never imports the plugin: only `capacitor-bridge.ts` does, and the
@@ -44,7 +45,8 @@ export interface NativeBridgeConfig {
44
45
  * unsupported, and every screen hides them.
45
46
  */
46
47
  passkeys: boolean;
47
- loadPlugin: () => Promise<NativeAuthPlugin>;
48
+ /** The plugin wrapped in `{ plugin }`: a bare Capacitor proxy never settles a promise (`LoadedPlugin`). */
49
+ loadPlugin: () => Promise<LoadedPlugin<NativeAuthPlugin>>;
48
50
  }
49
51
  /**
50
52
  * The bridge over the native plugin. The webview (origin `localhost`) cannot use WebAuthn itself:
@@ -0,0 +1,17 @@
1
+ /**
2
+ * A Capacitor plugin as an asynchronous loader hands it over: always wrapped, never bare.
3
+ *
4
+ * `registerPlugin` (`@capacitor/core`) returns a Proxy that turns every property it does not know
5
+ * into a call of the native method of that name, `then` included. Resolving a promise with that
6
+ * proxy (returning it from a `.then` callback or an `async` function, passing it to
7
+ * `Promise.resolve`) makes the engine adopt it as a thenable: it reads `proxy.then` and calls it
8
+ * with `(resolve, reject)`. The plugin has no `then` method, the call fails inside Capacitor, and
9
+ * neither callback ever runs, so the promise never settles. That is how the #510 apps hung on
10
+ * their splash screen: the launch awaited the refresh token through such a promise.
11
+ *
12
+ * The proxy therefore only travels inside this plain object, and is read from it after the
13
+ * `await`, never returned on its own.
14
+ */
15
+ export interface LoadedPlugin<T> {
16
+ readonly plugin: T;
17
+ }
@@ -1,3 +1,4 @@
1
+ import { LoadedPlugin } from './native-plugin';
1
2
  /**
2
3
  * Where the refresh token lives between two launches. Never `localStorage`: on the web the browser
3
4
  * keeps it in the `HttpOnly` cookie `abyss_refresh` (JavaScript never sees it), on native apps the
@@ -27,5 +28,8 @@ export interface SecureStore {
27
28
  export declare const REFRESH_TOKEN_STORAGE_KEY = "abyss_refresh_token";
28
29
  /** Web: nothing to keep, the cookie travels with every `auth/refresh` call (`withCredentials`). */
29
30
  export declare const createWebTokenStorage: () => TokenStorage;
30
- /** Native: the refresh token in the secure store `loadStore` resolves to. */
31
- export declare const createSecureTokenStorage: (loadStore: () => Promise<SecureStore>) => TokenStorage;
31
+ /**
32
+ * Native: the refresh token in the secure store `loadStore` resolves to, wrapped in `{ plugin }`
33
+ * because a bare Capacitor proxy never settles a promise (`LoadedPlugin`).
34
+ */
35
+ export declare const createSecureTokenStorage: (loadStore: () => Promise<LoadedPlugin<SecureStore>>) => TokenStorage;
@@ -1,5 +1,5 @@
1
- import { a as e, A as R, R as _, b as s, c as S, s as r } from "./token-storage-D3e11ePD.js";
2
- import { g as A, i as T, j as o, A as u, G as L, c as h, L as M, d as O, e as P, a as C, b as I, R as c, U as d, f as H, h as N, u as g } from "./use-auth.hook-B_TU5W3g.js";
1
+ import { a as e, A as R, R as _, b as s, c as S, s as r } from "./token-storage-CbWrBeIP.js";
2
+ import { g as A, i as T, j as o, A as u, G as L, c as h, L as M, d as O, e as P, a as C, b as I, R as c, U as d, f as H, h as N, u as g } from "./use-auth.hook-BLaU_u8T.js";
3
3
  export {
4
4
  A as APPLE_ID_SCRIPT_URL,
5
5
  e as AuthBridgeError,
@@ -1,6 +1,6 @@
1
1
  import { C as d } from "./index-D7cgykJH.js";
2
2
  import { SessionPlatform as l } from "@abyss-project/main";
3
- import { A as r, a as i, b as g } from "./token-storage-D3e11ePD.js";
3
+ import { A as r, a as i, b as g } from "./token-storage-CbWrBeIP.js";
4
4
  const p = () => new i(
5
5
  r.UNSUPPORTED,
6
6
  "Passkeys are not enabled in this app"
@@ -20,13 +20,13 @@ const p = () => new i(
20
20
  passkeySupported: () => n(async () => {
21
21
  if (!e.passkeys)
22
22
  return !1;
23
- const t = await e.loadPlugin(), { supported: a } = await t.isPasskeySupported();
23
+ const { plugin: t } = await e.loadPlugin(), { supported: a } = await t.isPasskeySupported();
24
24
  return a;
25
25
  }),
26
26
  getPasskey: (t, a = !1) => n(async () => {
27
27
  if (!e.passkeys)
28
28
  throw p();
29
- const s = await e.loadPlugin(), { responseJson: c } = await s.getPasskey({
29
+ const { plugin: s } = await e.loadPlugin(), { responseJson: c } = await s.getPasskey({
30
30
  optionsJson: JSON.stringify(t),
31
31
  preferImmediatelyAvailable: a
32
32
  });
@@ -35,13 +35,13 @@ const p = () => new i(
35
35
  createPasskey: (t) => n(async () => {
36
36
  if (!e.passkeys)
37
37
  throw p();
38
- const a = await e.loadPlugin(), { responseJson: s } = await a.createPasskey({
38
+ const { plugin: a } = await e.loadPlugin(), { responseJson: s } = await a.createPasskey({
39
39
  optionsJson: JSON.stringify(t)
40
40
  });
41
41
  return JSON.parse(s);
42
42
  }),
43
43
  google: (t) => n(async () => {
44
- const a = await e.loadPlugin(), { idToken: s } = await a.signInWithGoogle({
44
+ const { plugin: a } = await e.loadPlugin(), { idToken: s } = await a.signInWithGoogle({
45
45
  serverClientId: e.googleServerClientId,
46
46
  nonce: t
47
47
  });
@@ -49,7 +49,7 @@ const p = () => new i(
49
49
  }),
50
50
  // The plugin hands Apple the SHA-256 of the raw nonce itself (README of the plugin).
51
51
  apple: (t) => n(async () => {
52
- const s = await (await e.loadPlugin()).signInWithApple({ nonce: t });
52
+ const { plugin: a } = await e.loadPlugin(), s = await a.signInWithApple({ nonce: t });
53
53
  return {
54
54
  idToken: s.idToken,
55
55
  ...s.givenName ? { givenName: s.givenName } : {},
@@ -59,7 +59,10 @@ const p = () => new i(
59
59
  }), w = (e) => e;
60
60
  let o = null;
61
61
  const u = () => (o || (o = import("@abyss-project/capacitor-auth").then(
62
- (e) => w(e.AbyssAuth),
62
+ // Never `(module) => module.AbyssAuth`: `AbyssAuth` is the `registerPlugin` proxy, which
63
+ // answers `then` like any other method, so a promise resolved with it adopts it as a
64
+ // thenable and never settles (the #510 splash-screen hang). It stays inside `{ plugin }`.
65
+ (e) => ({ plugin: w(e.AbyssAuth) }),
63
66
  (e) => {
64
67
  throw o = null, e;
65
68
  }
@@ -1,6 +1,6 @@
1
- import { L as V, E as X } from "./index-em28yE6Z.js";
2
- import { s as d, t as $, a as Z, L as R, p as s, i as t, f as y, c, j as U, g as l } from "./index-DcQ9S3SN.js";
3
- import { html as w } from "./index-DzLzTV9g.js";
1
+ import { L as V, E as X } from "./index-Dm4XMxYD.js";
2
+ import { s as d, t as $, a as Z, L as R, p as s, i as t, f as y, c, j as U, g as l } from "./index-DTczxhDj.js";
3
+ import { html as w } from "./index-BKTtF_t2.js";
4
4
  const W = 1, p = 2, q = 275, u = 3, b = 276, _ = 277, f = 278, k = 4, m = 5, G = 6, x = 7, z = 8, h = 9, g = 10, v = 11, j = 12, E = 13, I = 14, N = 15, L = 16, F = 17, C = 18, H = 19, A = 20, K = 21, D = 22, B = 23, M = 24, J = 25, OO = 26, $O = 27, QO = 28, iO = 29, aO = 30, TO = 31, PO = 32, XO = 33, SO = 34, cO = 35, eO = 36, oO = 37, _O = 38, zO = 39, nO = 40, rO = 41, YO = 42, VO = 43, dO = 44, ZO = 45, RO = 46, sO = 47, tO = 48, yO = 49, UO = 50, lO = 51, wO = 52, WO = 53, pO = 54, qO = 55, uO = 56, bO = 57, fO = 58, kO = 59, mO = 60, GO = 61, xO = 62, e = 63, hO = 64, gO = 65, vO = 66, jO = {
5
5
  abstract: k,
6
6
  and: m,
@@ -1,6 +1,6 @@
1
- import { L as v, E as i, C as _ } from "./index-em28yE6Z.js";
2
- import { s as W, t as e, a as g, L as x, f as p, i as U, g as V, c as E } from "./index-DcQ9S3SN.js";
3
- import { defineCSSCompletionSource as N } from "./index-DY8rTcch.js";
1
+ import { L as v, E as i, C as _ } from "./index-Dm4XMxYD.js";
2
+ import { s as W, t as e, a as g, L as x, f as p, i as U, g as V, c as E } from "./index-DTczxhDj.js";
3
+ import { defineCSSCompletionSource as N } from "./index-CHqYUVet.js";
4
4
  const j = 168, X = 169, C = 170, I = 1, D = 2, w = 3, L = 171, F = 172, Y = 4, z = 173, K = 5, A = 174, T = 175, Z = 176, s = 177, G = 6, q = 7, B = 8, H = 9, c = 0, R = [
5
5
  9,
6
6
  10,
@@ -1,7 +1,7 @@
1
- import { L as be, E as $, C as Pe } from "./index-em28yE6Z.js";
2
- import { p as xe, s as Te, t as h, E as Ve, a as we, L as ye, e as K, h as ve, i as Xe, f as ke, H as $e } from "./index-DcQ9S3SN.js";
3
- import { cssLanguage as J, css as _e } from "./index-DY8rTcch.js";
4
- import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Qe, javascriptLanguage as R, javascript as Ae } from "./index-C2swA3W0.js";
1
+ import { L as be, E as $, C as Pe } from "./index-Dm4XMxYD.js";
2
+ import { p as xe, s as Te, t as h, E as Ve, a as we, L as ye, e as K, h as ve, i as Xe, f as ke, H as $e } from "./index-DTczxhDj.js";
3
+ import { cssLanguage as J, css as _e } from "./index-CHqYUVet.js";
4
+ import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Qe, javascriptLanguage as R, javascript as Ae } from "./index-CjbK-GxN.js";
5
5
  const Ye = 54, Me = 1, Re = 55, Ee = 2, Ze = 56, Be = 3, z = 4, ze = 5, X = 6, ee = 7, te = 8, ae = 9, le = 10, We = 11, De = 12, Ne = 13, _ = 57, Ge = 14, W = 58, re = 20, Ie = 22, ne = 23, je = 24, Y = 26, se = 27, Ue = 28, Le = 31, Fe = 34, He = 36, Ke = 37, Je = 0, et = 1, tt = {
6
6
  area: !0,
7
7
  base: !0,
@@ -1,6 +1,6 @@
1
- import { E as d, L as y, h as b, a as _, p as g, e as u, s as S, i as T, f as k, j as W, t } from "./index-DcQ9S3SN.js";
2
- import { html as j } from "./index-DzLzTV9g.js";
3
- import { L as X, E as p } from "./index-em28yE6Z.js";
1
+ import { E as d, L as y, h as b, a as _, p as g, e as u, s as S, i as T, f as k, j as W, t } from "./index-DTczxhDj.js";
2
+ import { html as j } from "./index-BKTtF_t2.js";
3
+ import { L as X, E as p } from "./index-Dm4XMxYD.js";
4
4
  const Y = 1, U = 2, G = 3, R = 179, z = 4, v = 180, x = 5, Z = 181, V = 6;
5
5
  function E(O) {
6
6
  return O >= 65 && O <= 90 || O >= 97 && O <= 122;
@@ -1,5 +1,5 @@
1
- import { L as s } from "./index-em28yE6Z.js";
2
- import { s as n, t as r, a as o, L as P, i as Q, f as i, c as a, g as c } from "./index-DcQ9S3SN.js";
1
+ import { L as s } from "./index-Dm4XMxYD.js";
2
+ import { s as n, t as r, a as o, L as P, i as Q, f as i, c as a, g as c } from "./index-DTczxhDj.js";
3
3
  const g = n({
4
4
  String: r.string,
5
5
  Number: r.number,
@@ -1,5 +1,5 @@
1
- import { P as nt, k as j, l as v, q as st, N as Ae, s as Be, p as it, t as c, T as E, r as ot, L as le, u as at, v as lt, w as ht, x as ft, e as _, h as P, y as T, z as ut, f as Ie, i as dt, A as pt, C as ct, B as mt, F as he, G as gt } from "./index-DcQ9S3SN.js";
2
- import { html as kt, htmlCompletionSource as Lt } from "./index-DzLzTV9g.js";
1
+ import { P as nt, k as j, l as v, q as st, N as Ae, s as Be, p as it, t as c, T as E, r as ot, L as le, u as at, v as lt, w as ht, x as ft, e as _, h as P, y as T, z as ut, f as Ie, i as dt, A as pt, C as ct, B as mt, F as he, G as gt } from "./index-DTczxhDj.js";
2
+ import { html as kt, htmlCompletionSource as Lt } from "./index-BKTtF_t2.js";
3
3
  class $ {
4
4
  static create(e, r, n, s, i) {
5
5
  let o = s + (s << 8) + e + (r << 4) | 0;
@@ -1,5 +1,5 @@
1
- import { L as w, E as p, a as Y } from "./index-em28yE6Z.js";
2
- import { s as x, t as r, a as q, L as j, e as G, i as R, f as T, c as E, g as _, o as C, I as U } from "./index-DcQ9S3SN.js";
1
+ import { L as w, E as p, a as Y } from "./index-Dm4XMxYD.js";
2
+ import { s as x, t as r, a as q, L as j, e as G, i as R, f as T, c as E, g as _, o as C, I as U } from "./index-DTczxhDj.js";
3
3
  const V = 122, g = 1, Z = 123, W = 124, b = 2, N = 125, I = 3, F = 4, X = [
4
4
  9,
5
5
  10,
@@ -1,5 +1,5 @@
1
- import { L as G, E as A, C as N } from "./index-em28yE6Z.js";
2
- import { s as I, t as p, E as Y, a as j, L as U, e as k, h as Z, i as B, f as D, H as M } from "./index-DcQ9S3SN.js";
1
+ import { L as G, E as A, C as N } from "./index-Dm4XMxYD.js";
2
+ import { s as I, t as p, E as Y, a as j, L as U, e as k, h as Z, i as B, f as D, H as M } from "./index-DTczxhDj.js";
3
3
  const h = 1, F = 2, L = 3, H = 4, K = 5, J = 36, ee = 37, te = 38, Oe = 11, oe = 13;
4
4
  function re(e) {
5
5
  return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
@@ -1,5 +1,5 @@
1
- import { L as o, E as a } from "./index-em28yE6Z.js";
2
- import { s as Z, t as Q, a as _, L as q, i as l, f as w, c as r, g as V } from "./index-DcQ9S3SN.js";
1
+ import { L as o, E as a } from "./index-Dm4XMxYD.js";
2
+ import { s as Z, t as Q, a as _, L as q, i as l, f as w, c as r, g as V } from "./index-DTczxhDj.js";
3
3
  const g = 1, R = 2, b = 3, y = 4, T = 5, s = 98, c = 101, v = 102, t = 114, p = 69, X = 48, W = 46, d = 43, f = 45, Y = 35, z = 34, x = 124, U = 60, h = 62;
4
4
  function n(O) {
5
5
  return O >= 48 && O <= 57;
@@ -1,5 +1,5 @@
1
- import { L as M, E as X, a as h, C as E } from "./index-em28yE6Z.js";
2
- import { s as A, t as i, E as C, a as J, n as o, L as I, b as B, d as D, e as u, h as K, i as N, f as H, c as g, j as F, m as OO, g as aO, J as j, x as QO, o as iO, I as eO } from "./index-DcQ9S3SN.js";
1
+ import { L as M, E as X, a as h, C as E } from "./index-Dm4XMxYD.js";
2
+ import { s as A, t as i, E as C, a as J, n as o, L as I, b as B, d as D, e as u, h as K, i as N, f as H, c as g, j as F, m as OO, g as aO, J as j, x as QO, o as iO, I as eO } from "./index-DTczxhDj.js";
3
3
  const $O = 315, rO = 316, v = 1, tO = 2, lO = 3, nO = 4, oO = 317, sO = 319, ZO = 320, PO = 5, pO = 6, cO = 0, q = [
4
4
  9,
5
5
  10,
@@ -1,7 +1,7 @@
1
- import { a as p, L as u, p as n, s as l, t as e } from "./index-DcQ9S3SN.js";
2
- import { html as m } from "./index-DzLzTV9g.js";
3
- import { javascriptLanguage as b } from "./index-C2swA3W0.js";
4
- import { L as S, a as r } from "./index-em28yE6Z.js";
1
+ import { a as p, L as u, p as n, s as l, t as e } from "./index-DTczxhDj.js";
2
+ import { html as m } from "./index-BKTtF_t2.js";
3
+ import { javascriptLanguage as b } from "./index-CjbK-GxN.js";
4
+ import { L as S, a as r } from "./index-Dm4XMxYD.js";
5
5
  const c = /* @__PURE__ */ S.deserialize({
6
6
  version: 14,
7
7
  states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
@@ -1,5 +1,5 @@
1
- import { L as W, E as i, C as B } from "./index-em28yE6Z.js";
2
- import { s as U, t as n, a as C, L as b, p as E, i as u, f as M, j as v, g as N } from "./index-DcQ9S3SN.js";
1
+ import { L as W, E as i, C as B } from "./index-Dm4XMxYD.js";
2
+ import { s as U, t as n, a as C, L as b, p as E, i as u, f as M, j as v, g as N } from "./index-DTczxhDj.js";
3
3
  const c = 63, D = 64, j = 1, A = 2, y = 3, H = 4, Z = 5, F = 6, I = 7, z = 65, K = 66, J = 8, OO = 9, eO = 10, aO = 11, rO = 12, V = 13, tO = 19, nO = 20, oO = 29, PO = 33, QO = 34, sO = 47, lO = 0, T = 1, g = 2, d = 3, m = 4;
4
4
  class s {
5
5
  constructor(e, a, r) {
@@ -1,5 +1,5 @@
1
- import { L as o, E as t } from "./index-em28yE6Z.js";
2
- import { s, t as Q, a as j, L as x, i as f, f as c, c as a, j as W, m as S, g as l } from "./index-DcQ9S3SN.js";
1
+ import { L as o, E as t } from "./index-Dm4XMxYD.js";
2
+ import { s, t as Q, a as j, L as x, i as f, f as c, c as a, j as W, m as S, g as l } from "./index-DTczxhDj.js";
3
3
  const r = 1, q = 2, u = 3, n = 82, Z = 76, V = 117, T = 85, z = 97, w = 122, m = 65, b = 90, y = 95, i = 48, Y = 34, v = 40, P = 41, _ = 32, U = 62, p = new t((O) => {
4
4
  if (O.next == Z || O.next == T ? O.advance() : O.next == V && (O.advance(), O.next == i + 8 && O.advance()), O.next != n || (O.advance(), O.next != Y)) return;
5
5
  O.advance();
@@ -1,5 +1,5 @@
1
- import { L as D, E as h, C as L } from "./index-em28yE6Z.js";
2
- import { s as H, t as n, b as B, a as K, L as M, e as OO, i as eO, f as iO, j as f, g as aO, o as nO, I as rO, d as QO, n as d } from "./index-DcQ9S3SN.js";
1
+ import { L as D, E as h, C as L } from "./index-Dm4XMxYD.js";
2
+ import { s as H, t as n, b as B, a as K, L as M, e as OO, i as eO, f as iO, j as f, g as aO, o as nO, I as rO, d as QO, n as d } from "./index-DTczxhDj.js";
3
3
  const tO = 1, Z = 194, j = 195, oO = 196, x = 197, dO = 198, sO = 199, lO = 200, TO = 2, E = 3, u = 201, SO = 24, pO = 25, qO = 49, gO = 50, PO = 55, mO = 56, $O = 57, hO = 59, cO = 60, fO = 61, XO = 62, yO = 63, zO = 65, WO = 238, vO = 71, RO = 241, kO = 242, _O = 243, xO = 244, uO = 245, UO = 246, bO = 247, VO = 248, Y = 72, GO = 249, wO = 250, ZO = 251, jO = 252, EO = 253, YO = 254, FO = 255, CO = 256, JO = 73, AO = 77, IO = 263, NO = 112, DO = 130, LO = 151, HO = 152, BO = 155, p = 10, q = 13, k = 32, c = 9, _ = 35, KO = 40, MO = 46, R = 123, U = 125, F = 39, C = 34, b = 92, Oe = 111, ee = 120, ie = 78, ae = 117, ne = 85, re = /* @__PURE__ */ new Set([
4
4
  pO,
5
5
  qO,
@@ -141,8 +141,8 @@ import IQe from "@mui/icons-material/StarRounded";
141
141
  import LQe from "@mui/icons-material/AccountBalanceRounded";
142
142
  import { keyframes as eR } from "@emotion/react";
143
143
  import { useQuery as EQe, useQueries as vQe, useQueryClient as OQe } from "@tanstack/react-query";
144
- import { A as FQ, a as jQe } from "./token-storage-D3e11ePD.js";
145
- import { u as va, A as XY, R as ka } from "./use-auth.hook-B_TU5W3g.js";
144
+ import { A as FQ, a as jQe } from "./token-storage-CbWrBeIP.js";
145
+ import { u as va, A as XY, R as ka } from "./use-auth.hook-BLaU_u8T.js";
146
146
  import _m from "@mui/icons-material/KeyRounded";
147
147
  import Lie from "@mui/icons-material/PhonelinkLockRounded";
148
148
  import KQe from "@mui/icons-material/LanguageRounded";
@@ -39479,7 +39479,7 @@ function He(t) {
39479
39479
  return new A4e(JL.define(t));
39480
39480
  }
39481
39481
  function O0(t) {
39482
- return import("./index-DdAjii4k.js").then((e) => e.sql({ dialect: e[t] }));
39482
+ return import("./index-pYtPsAyc.js").then((e) => e.sql({ dialect: e[t] }));
39483
39483
  }
39484
39484
  const IOe = [
39485
39485
  // New-style language modes
@@ -39487,7 +39487,7 @@ const IOe = [
39487
39487
  name: "C",
39488
39488
  extensions: ["c", "h", "ino"],
39489
39489
  load() {
39490
- return import("./index-KpYZBM9e.js").then((t) => t.cpp());
39490
+ return import("./index-D674m7b5.js").then((t) => t.cpp());
39491
39491
  }
39492
39492
  }),
39493
39493
  /* @__PURE__ */ Ye.of({
@@ -39495,7 +39495,7 @@ const IOe = [
39495
39495
  alias: ["cpp"],
39496
39496
  extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
39497
39497
  load() {
39498
- return import("./index-KpYZBM9e.js").then((t) => t.cpp());
39498
+ return import("./index-D674m7b5.js").then((t) => t.cpp());
39499
39499
  }
39500
39500
  }),
39501
39501
  /* @__PURE__ */ Ye.of({
@@ -39510,14 +39510,14 @@ const IOe = [
39510
39510
  name: "CSS",
39511
39511
  extensions: ["css"],
39512
39512
  load() {
39513
- return import("./index-DY8rTcch.js").then((t) => t.css());
39513
+ return import("./index-CHqYUVet.js").then((t) => t.css());
39514
39514
  }
39515
39515
  }),
39516
39516
  /* @__PURE__ */ Ye.of({
39517
39517
  name: "Go",
39518
39518
  extensions: ["go"],
39519
39519
  load() {
39520
- return import("./index-k0D9MvTM.js").then((t) => t.go());
39520
+ return import("./index-qksRqwdT.js").then((t) => t.go());
39521
39521
  }
39522
39522
  }),
39523
39523
  /* @__PURE__ */ Ye.of({
@@ -39525,14 +39525,14 @@ const IOe = [
39525
39525
  alias: ["xhtml"],
39526
39526
  extensions: ["html", "htm", "handlebars", "hbs"],
39527
39527
  load() {
39528
- return import("./index-DzLzTV9g.js").then((t) => t.html());
39528
+ return import("./index-BKTtF_t2.js").then((t) => t.html());
39529
39529
  }
39530
39530
  }),
39531
39531
  /* @__PURE__ */ Ye.of({
39532
39532
  name: "Java",
39533
39533
  extensions: ["java"],
39534
39534
  load() {
39535
- return import("./index-BCSDLlrV.js").then((t) => t.java());
39535
+ return import("./index-mGjvcLnl.js").then((t) => t.java());
39536
39536
  }
39537
39537
  }),
39538
39538
  /* @__PURE__ */ Ye.of({
@@ -39540,7 +39540,7 @@ const IOe = [
39540
39540
  alias: ["ecmascript", "js", "node"],
39541
39541
  extensions: ["js", "mjs", "cjs"],
39542
39542
  load() {
39543
- return import("./index-C2swA3W0.js").then((t) => t.javascript());
39543
+ return import("./index-CjbK-GxN.js").then((t) => t.javascript());
39544
39544
  }
39545
39545
  }),
39546
39546
  /* @__PURE__ */ Ye.of({
@@ -39548,28 +39548,28 @@ const IOe = [
39548
39548
  alias: ["json5"],
39549
39549
  extensions: ["json", "map"],
39550
39550
  load() {
39551
- return import("./index-D6dqDWsy.js").then((t) => t.json());
39551
+ return import("./index-C8XPshUr.js").then((t) => t.json());
39552
39552
  }
39553
39553
  }),
39554
39554
  /* @__PURE__ */ Ye.of({
39555
39555
  name: "JSX",
39556
39556
  extensions: ["jsx"],
39557
39557
  load() {
39558
- return import("./index-C2swA3W0.js").then((t) => t.javascript({ jsx: !0 }));
39558
+ return import("./index-CjbK-GxN.js").then((t) => t.javascript({ jsx: !0 }));
39559
39559
  }
39560
39560
  }),
39561
39561
  /* @__PURE__ */ Ye.of({
39562
39562
  name: "LESS",
39563
39563
  extensions: ["less"],
39564
39564
  load() {
39565
- return import("./index-BZLB3mdX.js").then((t) => t.less());
39565
+ return import("./index-lNrWguql.js").then((t) => t.less());
39566
39566
  }
39567
39567
  }),
39568
39568
  /* @__PURE__ */ Ye.of({
39569
39569
  name: "Liquid",
39570
39570
  extensions: ["liquid"],
39571
39571
  load() {
39572
- return import("./index-Bj4jHaow.js").then((t) => t.liquid());
39572
+ return import("./index-BdJy1PZ3.js").then((t) => t.liquid());
39573
39573
  }
39574
39574
  }),
39575
39575
  /* @__PURE__ */ Ye.of({
@@ -39582,7 +39582,7 @@ const IOe = [
39582
39582
  name: "Markdown",
39583
39583
  extensions: ["md", "markdown", "mkd"],
39584
39584
  load() {
39585
- return import("./index-D5jl7g9z.js").then((t) => t.markdown());
39585
+ return import("./index-CAgNKpI4.js").then((t) => t.markdown());
39586
39586
  }
39587
39587
  }),
39588
39588
  /* @__PURE__ */ Ye.of({
@@ -39601,7 +39601,7 @@ const IOe = [
39601
39601
  name: "PHP",
39602
39602
  extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
39603
39603
  load() {
39604
- return import("./index-Cd4_EjFA.js").then((t) => t.php());
39604
+ return import("./index-B2e6OuRs.js").then((t) => t.php());
39605
39605
  }
39606
39606
  }),
39607
39607
  /* @__PURE__ */ Ye.of({
@@ -39622,28 +39622,28 @@ const IOe = [
39622
39622
  extensions: ["BUILD", "bzl", "py", "pyw"],
39623
39623
  filename: /^(BUCK|BUILD)$/,
39624
39624
  load() {
39625
- return import("./index-CRT7FeOv.js").then((t) => t.python());
39625
+ return import("./index-DLz7OHk2.js").then((t) => t.python());
39626
39626
  }
39627
39627
  }),
39628
39628
  /* @__PURE__ */ Ye.of({
39629
39629
  name: "Rust",
39630
39630
  extensions: ["rs"],
39631
39631
  load() {
39632
- return import("./index-e2DSTfpE.js").then((t) => t.rust());
39632
+ return import("./index-COP395TG.js").then((t) => t.rust());
39633
39633
  }
39634
39634
  }),
39635
39635
  /* @__PURE__ */ Ye.of({
39636
39636
  name: "Sass",
39637
39637
  extensions: ["sass"],
39638
39638
  load() {
39639
- return import("./index-Cjiluc_5.js").then((t) => t.sass({ indented: !0 }));
39639
+ return import("./index-B4t8DxtX.js").then((t) => t.sass({ indented: !0 }));
39640
39640
  }
39641
39641
  }),
39642
39642
  /* @__PURE__ */ Ye.of({
39643
39643
  name: "SCSS",
39644
39644
  extensions: ["scss"],
39645
39645
  load() {
39646
- return import("./index-Cjiluc_5.js").then((t) => t.sass());
39646
+ return import("./index-B4t8DxtX.js").then((t) => t.sass());
39647
39647
  }
39648
39648
  }),
39649
39649
  /* @__PURE__ */ Ye.of({
@@ -39663,7 +39663,7 @@ const IOe = [
39663
39663
  name: "TSX",
39664
39664
  extensions: ["tsx"],
39665
39665
  load() {
39666
- return import("./index-C2swA3W0.js").then((t) => t.javascript({ jsx: !0, typescript: !0 }));
39666
+ return import("./index-CjbK-GxN.js").then((t) => t.javascript({ jsx: !0, typescript: !0 }));
39667
39667
  }
39668
39668
  }),
39669
39669
  /* @__PURE__ */ Ye.of({
@@ -39671,14 +39671,14 @@ const IOe = [
39671
39671
  alias: ["ts"],
39672
39672
  extensions: ["ts", "mts", "cts"],
39673
39673
  load() {
39674
- return import("./index-C2swA3W0.js").then((t) => t.javascript({ typescript: !0 }));
39674
+ return import("./index-CjbK-GxN.js").then((t) => t.javascript({ typescript: !0 }));
39675
39675
  }
39676
39676
  }),
39677
39677
  /* @__PURE__ */ Ye.of({
39678
39678
  name: "WebAssembly",
39679
39679
  extensions: ["wat", "wast"],
39680
39680
  load() {
39681
- return import("./index-fLkSgYMy.js").then((t) => t.wast());
39681
+ return import("./index-IO-duPWJ.js").then((t) => t.wast());
39682
39682
  }
39683
39683
  }),
39684
39684
  /* @__PURE__ */ Ye.of({
@@ -39686,7 +39686,7 @@ const IOe = [
39686
39686
  alias: ["rss", "wsdl", "xsd"],
39687
39687
  extensions: ["xml", "xsl", "xsd", "svg"],
39688
39688
  load() {
39689
- return import("./index-DKoMzSab.js").then((t) => t.xml());
39689
+ return import("./index-CNqd4xCq.js").then((t) => t.xml());
39690
39690
  }
39691
39691
  }),
39692
39692
  /* @__PURE__ */ Ye.of({
@@ -39694,7 +39694,7 @@ const IOe = [
39694
39694
  alias: ["yml"],
39695
39695
  extensions: ["yaml", "yml"],
39696
39696
  load() {
39697
- return import("./index-Bb_SMJPy.js").then((t) => t.yaml());
39697
+ return import("./index-Clum5fIZ.js").then((t) => t.yaml());
39698
39698
  }
39699
39699
  }),
39700
39700
  // Legacy modes ported from CodeMirror 5
@@ -40490,13 +40490,13 @@ const IOe = [
40490
40490
  name: "Vue",
40491
40491
  extensions: ["vue"],
40492
40492
  load() {
40493
- return import("./index-CHbxRxJN.js").then((t) => t.vue());
40493
+ return import("./index-CkrFIOKR.js").then((t) => t.vue());
40494
40494
  }
40495
40495
  }),
40496
40496
  /* @__PURE__ */ Ye.of({
40497
40497
  name: "Angular Template",
40498
40498
  load() {
40499
- return import("./index-jS1uLZrH.js").then((t) => t.angular());
40499
+ return import("./index-DrxSGikh.js").then((t) => t.angular());
40500
40500
  }
40501
40501
  })
40502
40502
  ], LOe = "#e5c07b", zA = "#e06c75", EOe = "#56b6c2", vOe = "#ffffff", Uf = "#abb2bf", Sw = "#7d8799", OOe = "#61afef", jOe = "#98c379", IA = "#d19a66", KOe = "#c678dd", HOe = "#21252b", LA = "#2c313a", EA = "#282c34", kx = "#353a42", POe = "#3E4451", vA = "#528bff", AOe = /* @__PURE__ */ gt.theme({
@@ -1,4 +1,4 @@
1
- import { P as L, N as M, k as $, D as E, l as y, T as S, I as j } from "./index-DcQ9S3SN.js";
1
+ import { P as L, N as M, k as $, D as E, l as y, T as S, I as j } from "./index-DTczxhDj.js";
2
2
  class v {
3
3
  /**
4
4
  @internal
@@ -1,7 +1,7 @@
1
- import { a as g, L as P, p as l, s as q, t as r } from "./index-DcQ9S3SN.js";
2
- import { html as c } from "./index-DzLzTV9g.js";
3
- import { javascriptLanguage as i } from "./index-C2swA3W0.js";
4
- import { L as R, E as p } from "./index-em28yE6Z.js";
1
+ import { a as g, L as P, p as l, s as q, t as r } from "./index-DTczxhDj.js";
2
+ import { html as c } from "./index-BKTtF_t2.js";
3
+ import { javascriptLanguage as i } from "./index-CjbK-GxN.js";
4
+ import { L as R, E as p } from "./index-Dm4XMxYD.js";
5
5
  const b = 1, $ = 33, m = 34, v = 35, x = 36, W = /* @__PURE__ */ new p((O) => {
6
6
  let t = O.pos;
7
7
  for (; ; ) {
@@ -1,5 +1,5 @@
1
- import { a as O, L as r, i as b, f as s, s as a, j as t, g as P, t as e } from "./index-DcQ9S3SN.js";
2
- import { L as n } from "./index-em28yE6Z.js";
1
+ import { a as O, L as r, i as b, f as s, s as a, j as t, g as P, t as e } from "./index-DTczxhDj.js";
2
+ import { L as n } from "./index-Dm4XMxYD.js";
3
3
  const S = { __proto__: null, anyref: 34, dataref: 34, eqref: 34, externref: 34, i31ref: 34, funcref: 34, i8: 34, i16: 34, i32: 34, i64: 34, f32: 34, f64: 34 }, i = /* @__PURE__ */ n.deserialize({
4
4
  version: 14,
5
5
  states: "!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",
@@ -1,6 +1,6 @@
1
- import { a as t, L as i, i as n, f as $, c as y, g as P, s as X, t as O } from "./index-DcQ9S3SN.js";
2
- import { defineCSSCompletionSource as m } from "./index-DY8rTcch.js";
3
- import { L as c, E as S } from "./index-em28yE6Z.js";
1
+ import { a as t, L as i, i as n, f as $, c as y, g as P, s as X, t as O } from "./index-DTczxhDj.js";
2
+ import { defineCSSCompletionSource as m } from "./index-CHqYUVet.js";
3
+ import { L as c, E as S } from "./index-Dm4XMxYD.js";
4
4
  const f = 110, l = 1, s = 2, r = [
5
5
  9,
6
6
  10,
@@ -1,5 +1,5 @@
1
- import { L as r } from "./index-em28yE6Z.js";
2
- import { s as e, t as O, a as s, L as X, i as l, f as Y, c as $, j as S, m as o, g as t } from "./index-DcQ9S3SN.js";
1
+ import { L as r } from "./index-Dm4XMxYD.js";
2
+ import { s as e, t as O, a as s, L as X, i as l, f as Y, c as $, j as S, m as o, g as t } from "./index-DTczxhDj.js";
3
3
  const Z = e({
4
4
  null: O.null,
5
5
  instanceof: O.operatorKeyword,
@@ -1,5 +1,5 @@
1
- import { L as te, a as re, i as ae, f as ne, s as ie, c as se, t as i, b as oe, d as le, e as ce } from "./index-DcQ9S3SN.js";
2
- import { L as de, E as me } from "./index-em28yE6Z.js";
1
+ import { L as te, a as re, i as ae, f as ne, s as ie, c as se, t as i, b as oe, d as le, e as ce } from "./index-DTczxhDj.js";
2
+ import { L as de, E as me } from "./index-Dm4XMxYD.js";
3
3
  const ue = 36, B = 1, pe = 2, y = 3, C = 4, fe = 5, _e = 6, ge = 7, he = 8, ye = 9, be = 10, ve = 11, ke = 12, xe = 13, Oe = 14, we = 15, Qe = 16, Ce = 17, X = 18, Se = 19, A = 20, E = 21, I = 22, qe = 23, Pe = 24;
4
4
  function q(t) {
5
5
  return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t >= 48 && t <= 57;
@@ -1,5 +1,5 @@
1
- import { L as s, E as R, a as Y, C as x } from "./index-em28yE6Z.js";
2
- import { s as w, t as O, a as d, n as X, L as k, b as h, d as f, i as u, f as y, c as l, j as g, m as j, g as U, e as G, o as b, I as Z } from "./index-DcQ9S3SN.js";
1
+ import { L as s, E as R, a as Y, C as x } from "./index-Dm4XMxYD.js";
2
+ import { s as w, t as O, a as d, n as X, L as k, b as h, d as f, i as u, f as y, c as l, j as g, m as j, g as U, e as G, o as b, I as Z } from "./index-DTczxhDj.js";
3
3
  const _ = 177, q = 179, E = 184, v = 12, C = 13, D = 17, z = 20, F = 25, B = 53, N = 95, I = 142, L = 144, A = 145, J = 148, M = 10, H = 13, K = 32, OO = 9, $ = 47, QO = 41, eO = 125, aO = new R((Q, e) => {
4
4
  for (let n = 0, a = Q.next; (e.context && (a < 0 || a == M || a == H || a == $ && Q.peek(n + 1) == $) || a == QO || a == eO) && Q.acceptToken(_), !(a != K && a != OO); )
5
5
  a = Q.peek(++n);
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { bx as e, aL as o, aM as t, R as r, M as i, Q as c, aY as b, cU as n, Z as A, d5 as l, aP as d, d1 as S, $ as u, cV as g, d2 as C, a6 as y, d9 as p, cW as L, aI as E, ah as T, ai as _, d0 as h, a_ as R, ba as P, b9 as I, d6 as m, aQ as O, cX as D, aJ as k, b6 as B, d8 as f, b7 as M, b3 as N, aF as v, Y as F, aR as U, ak as H, cY as x, b8 as G, cZ as W, b4 as w, al as Q, bz as Y, _ as V, db as j, bC as K, bI as z, d4 as X, aw as Z, aO as q, as as J, ar as $, bw as aa, bu as sa, bv as ea, d3 as oa, aK as ta, c_ as ra, c$ as ia, a9 as ca, aN as ba, b5 as na, da as Aa, d7 as la, V as da, a5 as Sa, a4 as ua, dr as ga, ds as Ca, dt as ya, dw as pa, cp as La, bD as Ea, cs as Ta, am as _a, ao as ha, an as Ra, ap as Pa, af as Ia, ae as ma, a8 as Oa, aT as Da, dc as ka, aA as Ba, b0 as fa, a$ as Ma, aD as Na, aE as va, ag as Fa, cR as Ua, aq as Ha, ct as xa, ab as Ga, cz as Wa, cS as wa, cq as Qa, cr as Ya, b1 as Va, aU as ja, aa as Ka, X as za, ay as Xa, ax as Za, aC as qa, a0 as Ja, cQ as $a, cO as as, cP as ss, b2 as es, aB as os, dx as ts, O as rs, cy as is, co as cs, aj as bs, bA as ns, bB as As, K as ls, W as ds, au as Ss, av as us, a1 as gs, at as Cs, aV as ys, bR as ps, bJ as Ls, bN as Es, bF as Ts, dv as _s, aW as hs, du as Rs, cT as Ps, ad as Is, bi as ms, bj as Os, bk as Ds, bn as ks, bs as Bs, bq as fs, bh as Ms, bg as Ns, bd as vs, bl as Fs, bc as Us, bf as Hs, bt as xs, bm as Gs, be as Ws, br as ws, U as Qs, S as Ys, aS as Vs, aX as js, ac as Ks, aZ as zs, a2 as Xs, a3 as Zs, bQ as qs, ca as Js, ce as $s, bb as ae, cH as se, bG as ee, bU as oe, aH as te, bW as re, cl as ie, ck as ce, cD as be, bK as ne, bZ as Ae, b_ as le, cc as de, di as Se, c6 as ue, c4 as ge, c5 as Ce, cI as ye, bp as pe, bo as Le, cB as Ee, cG as Te, cF as _e, az as he, cK as Re, cw as Pe, cE as Ie, cv as me, cu as Oe, cx as De, bS as ke, by as Be, cg as fe, ch as Me, c1 as Ne, c2 as ve, ci as Fe, cj as Ue, cL as He, c7 as xe, dn as Ge, cn as We, cm as we, bH as Qe, bL as Ye, bP as Ve, bE as je, dl as Ke, dh as ze, cd as Xe, bX as Ze, bT as qe, dp as Je, cN as $e, cM as ao, cC as so, cJ as eo, b$ as oo, c0 as to, c9 as ro, bM as io, cb as co, cf as bo, c3 as no, bV as Ao, bY as lo, c8 as So, aG as uo, a7 as go, dd as Co, dq as yo, dg as po, dm as Lo, dj as Eo, dk as To, bO as _o, de as ho, df as Ro, cA as Po } from "./index-DcQ9S3SN.js";
1
+ import { bx as e, aL as o, aM as t, R as r, M as i, Q as c, aY as b, cU as n, Z as A, d5 as l, aP as d, d1 as S, $ as u, cV as g, d2 as C, a6 as y, d9 as p, cW as L, aI as E, ah as T, ai as _, d0 as h, a_ as R, ba as P, b9 as I, d6 as m, aQ as O, cX as D, aJ as k, b6 as B, d8 as f, b7 as M, b3 as N, aF as v, Y as F, aR as U, ak as H, cY as x, b8 as G, cZ as W, b4 as w, al as Q, bz as Y, _ as V, db as j, bC as K, bI as z, d4 as X, aw as Z, aO as q, as as J, ar as $, bw as aa, bu as sa, bv as ea, d3 as oa, aK as ta, c_ as ra, c$ as ia, a9 as ca, aN as ba, b5 as na, da as Aa, d7 as la, V as da, a5 as Sa, a4 as ua, dr as ga, ds as Ca, dt as ya, dw as pa, cp as La, bD as Ea, cs as Ta, am as _a, ao as ha, an as Ra, ap as Pa, af as Ia, ae as ma, a8 as Oa, aT as Da, dc as ka, aA as Ba, b0 as fa, a$ as Ma, aD as Na, aE as va, ag as Fa, cR as Ua, aq as Ha, ct as xa, ab as Ga, cz as Wa, cS as wa, cq as Qa, cr as Ya, b1 as Va, aU as ja, aa as Ka, X as za, ay as Xa, ax as Za, aC as qa, a0 as Ja, cQ as $a, cO as as, cP as ss, b2 as es, aB as os, dx as ts, O as rs, cy as is, co as cs, aj as bs, bA as ns, bB as As, K as ls, W as ds, au as Ss, av as us, a1 as gs, at as Cs, aV as ys, bR as ps, bJ as Ls, bN as Es, bF as Ts, dv as _s, aW as hs, du as Rs, cT as Ps, ad as Is, bi as ms, bj as Os, bk as Ds, bn as ks, bs as Bs, bq as fs, bh as Ms, bg as Ns, bd as vs, bl as Fs, bc as Us, bf as Hs, bt as xs, bm as Gs, be as Ws, br as ws, U as Qs, S as Ys, aS as Vs, aX as js, ac as Ks, aZ as zs, a2 as Xs, a3 as Zs, bQ as qs, ca as Js, ce as $s, bb as ae, cH as se, bG as ee, bU as oe, aH as te, bW as re, cl as ie, ck as ce, cD as be, bK as ne, bZ as Ae, b_ as le, cc as de, di as Se, c6 as ue, c4 as ge, c5 as Ce, cI as ye, bp as pe, bo as Le, cB as Ee, cG as Te, cF as _e, az as he, cK as Re, cw as Pe, cE as Ie, cv as me, cu as Oe, cx as De, bS as ke, by as Be, cg as fe, ch as Me, c1 as Ne, c2 as ve, ci as Fe, cj as Ue, cL as He, c7 as xe, dn as Ge, cn as We, cm as we, bH as Qe, bL as Ye, bP as Ve, bE as je, dl as Ke, dh as ze, cd as Xe, bX as Ze, bT as qe, dp as Je, cN as $e, cM as ao, cC as so, cJ as eo, b$ as oo, c0 as to, c9 as ro, bM as io, cb as co, cf as bo, c3 as no, bV as Ao, bY as lo, c8 as So, aG as uo, a7 as go, dd as Co, dq as yo, dg as po, dm as Lo, dj as Eo, dk as To, bO as _o, de as ho, df as Ro, cA as Po } from "./index-DTczxhDj.js";
2
2
  import { A as mo, t as Oo, c as Do, C as ko, a as Bo, D as fo, J as Mo, R as No, V as vo, i as Fo, z as Uo, d as Ho, B as xo, E as Go, y as Wo, v as wo, K as Qo, f as Yo, L as Vo, G as jo, H as Ko, j as zo, m as Xo, n as Zo, p as qo, r as Jo, e as $o, h as at, F as st, I as et, u as ot, b as tt, g as rt, w as it } from "./CookieConsentSettings.component-B06_BnQP.js";
3
- import { a as bt, A as nt, R as At, b as lt, c as dt, s as St } from "./token-storage-D3e11ePD.js";
4
- import { g as gt, i as Ct, j as yt, A as pt, G as Lt, c as Et, L as Tt, d as _t, e as ht, a as Rt, b as Pt, R as It, U as mt, f as Ot, h as Dt, u as kt } from "./use-auth.hook-B_TU5W3g.js";
3
+ import { a as bt, A as nt, R as At, b as lt, c as dt, s as St } from "./token-storage-CbWrBeIP.js";
4
+ import { g as gt, i as Ct, j as yt, A as pt, G as Lt, c as Et, L as Tt, d as _t, e as ht, a as Rt, b as Pt, R as It, U as mt, f as Ot, h as Dt, u as kt } from "./use-auth.hook-BLaU_u8T.js";
5
5
  export {
6
6
  e as ABYSS_SERVICE_CONFIG,
7
7
  o as ABYSS_SIDEBAR_WIDTH,
@@ -16,11 +16,11 @@ const o = async (e) => {
16
16
  }
17
17
  }), u = (e) => ({
18
18
  getRefreshToken: async () => {
19
- const s = await e(), { value: t } = await s.secureGet({ key: a });
19
+ const { plugin: s } = await e(), { value: t } = await s.secureGet({ key: a });
20
20
  return t;
21
21
  },
22
22
  setRefreshToken: async (s) => {
23
- const t = await e();
23
+ const { plugin: t } = await e();
24
24
  if (s === null) {
25
25
  await t.secureRemove({ key: a });
26
26
  return;
@@ -1,6 +1,6 @@
1
1
  import { MfaFactorType as U, SessionPlatform as B, AbyssCore as F, Code as J, AuthResultStatus as X } from "@abyss-project/main";
2
2
  import { browserSupportsWebAuthn as g, startRegistration as $, browserSupportsWebAuthnAutofill as V, startAuthentication as Q, WebAuthnError as Z } from "@simplewebauthn/browser";
3
- import { a as c, A as d, s as ee } from "./token-storage-D3e11ePD.js";
3
+ import { a as c, A as d, s as ee } from "./token-storage-CbWrBeIP.js";
4
4
  import { createContext as te, useState as ne, useEffect as se, useMemo as re, useContext as oe } from "react";
5
5
  import { jsx as ae } from "react/jsx-runtime";
6
6
  var ie = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.ANONYMOUS = "anonymous", e.AUTHENTICATED = "authenticated", e))(ie || {}), ue = /* @__PURE__ */ ((e) => (e.PASSKEY = "passkey", e.TOTP = "totp", e.PASSWORD = "password", e.EMAIL_CODE = "email-code", e))(ue || {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -77,7 +77,7 @@
77
77
  },
78
78
  "dependencies": {
79
79
  "@abyss-project/banking": "^1.1.0",
80
- "@abyss-project/cloud": "^2.1.1",
80
+ "@abyss-project/cloud": "^2.3.0",
81
81
  "@abyss-project/crypt": "^1.0.9",
82
82
  "@abyss-project/form": "^1.0.13",
83
83
  "@abyss-project/memories": "^1.0.12",