@abyss-project/commons-front-core 1.0.121 → 1.0.123

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 (36) hide show
  1. package/.eslintrc.cjs +29 -29
  2. package/README.md +1 -1
  3. package/dist/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +2 -0
  4. package/dist/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +1 -0
  5. package/dist/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +11 -1
  6. package/dist/components/Utils/AbyssDrawer/index.d.ts +2 -1
  7. package/dist/hooks/use-rich-intl.hook.d.ts +6 -0
  8. package/dist/{index-Y3SaDCyz.js → index-4J-t1oZT.js} +2 -2
  9. package/dist/{index-1B5m58fY.js → index-9E4bWRMb.js} +3 -3
  10. package/dist/{index-CXVoNEoH.js → index-BDPw10cq.js} +3 -3
  11. package/dist/{index-C_b1TK0P.js → index-BFi1xuIH.js} +4 -4
  12. package/dist/{index-BxIwnrZj.js → index-BUUW_Pwk.js} +3 -3
  13. package/dist/{index-Uw7lqTx5.js → index-BhZfP95r.js} +4 -4
  14. package/dist/{index-Bl-nL0cu.js → index-BsFjqTHh.js} +2 -2
  15. package/dist/{index-Dpy_s9YY.js → index-BvXzPC5p.js} +2 -2
  16. package/dist/{index-CoDTqcki.js → index-Bvc42IN7.js} +2 -2
  17. package/dist/{index-5MoUQ2P-.js → index-CA-Fb9rR.js} +2 -2
  18. package/dist/{index-DtzQIWXL.js → index-CJQ7jtg-.js} +2 -2
  19. package/dist/{index-BefuqNjV.js → index-CxdybRuj.js} +3 -3
  20. package/dist/{index-jzlzDpBR.js → index-DDy9f9t5.js} +2 -2
  21. package/dist/{index-Cuhh-rNQ.js → index-DEzu-Qzz.js} +2 -2
  22. package/dist/{index-QIPxlGDa.js → index-DNe99GEg.js} +22340 -21908
  23. package/dist/{index-f2QXJFCh.js → index-DcGXsQoo.js} +2 -2
  24. package/dist/{index-B2KZuUCP.js → index-DgBSR5ve.js} +2 -2
  25. package/dist/{index-D4rqESRa.js → index-KIVKYu-Y.js} +2 -2
  26. package/dist/{index-BS7X7EQ6.js → index-RaYVWOcF.js} +2 -2
  27. package/dist/{index-DiiOuO5Y.js → index-XnlKDcpW.js} +1 -1
  28. package/dist/{index-D9gSSfte.js → index-iykJuA0g.js} +4 -4
  29. package/dist/{index-CtPIePmV.js → index-kRfOekO5.js} +2 -2
  30. package/dist/index.js +86 -84
  31. package/dist/translations/en.d.ts +3 -0
  32. package/dist/translations/fr.d.ts +3 -0
  33. package/dist/{web-C_hlZ1dD.js → web-drIGOhhE.js} +1 -1
  34. package/package.json +3 -3
  35. package/tsconfig.json +36 -36
  36. package/vite.config.ts +72 -72
package/.eslintrc.cjs CHANGED
@@ -1,30 +1,30 @@
1
- module.exports = {
2
- parser: '@typescript-eslint/parser',
3
- parserOptions: {
4
- project: './tsconfig.json',
5
- tsconfigRootDir: __dirname,
6
- sourceType: 'module',
7
- },
8
- plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
9
- extends: [
10
- 'plugin:@typescript-eslint/recommended',
11
- 'plugin:prettier/recommended',
12
- ],
13
- root: true,
14
- env: {
15
- browser: true,
16
- es2021: true,
17
- node: true,
18
- jest: true,
19
- },
20
- ignorePatterns: ['.eslintrc.cjs'],
21
- rules: {
22
- 'no-console': 'warn',
23
- curly: ['error'],
24
- '@typescript-eslint/interface-name-prefix': 'off',
25
- '@typescript-eslint/explicit-function-return-type': 'off',
26
- '@typescript-eslint/explicit-module-boundary-types': 'off',
27
- '@typescript-eslint/no-explicit-any': 'off',
28
- '@typescript-eslint/prefer-as-const': 'error',
29
- },
1
+ module.exports = {
2
+ parser: '@typescript-eslint/parser',
3
+ parserOptions: {
4
+ project: './tsconfig.json',
5
+ tsconfigRootDir: __dirname,
6
+ sourceType: 'module',
7
+ },
8
+ plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
9
+ extends: [
10
+ 'plugin:@typescript-eslint/recommended',
11
+ 'plugin:prettier/recommended',
12
+ ],
13
+ root: true,
14
+ env: {
15
+ browser: true,
16
+ es2021: true,
17
+ node: true,
18
+ jest: true,
19
+ },
20
+ ignorePatterns: ['.eslintrc.cjs'],
21
+ rules: {
22
+ 'no-console': 'warn',
23
+ curly: ['error'],
24
+ '@typescript-eslint/interface-name-prefix': 'off',
25
+ '@typescript-eslint/explicit-function-return-type': 'off',
26
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
27
+ '@typescript-eslint/no-explicit-any': 'off',
28
+ '@typescript-eslint/prefer-as-const': 'error',
29
+ },
30
30
  };
package/README.md CHANGED
@@ -1,2 +1,2 @@
1
- # abyss-main
1
+ # abyss-main
2
2
  https://abyss-project.gitbook.io/abyss/
@@ -1,6 +1,7 @@
1
1
  import { SxProps } from '@mui/material';
2
2
  import { default as React } from 'react';
3
3
  export declare const drawerWidth = 275;
4
+ export declare const drawerWidthCollapsed = 72;
4
5
  export declare const DOCUMENTATION_URL = "https://abyss-project.gitbook.io/abyss/";
5
6
  type Props = {
6
7
  isMobileOpen?: boolean;
@@ -12,6 +13,7 @@ type Props = {
12
13
  containerSxProps?: SxProps;
13
14
  footer?: React.ReactNode;
14
15
  classes: Record<string, string>;
16
+ drawerCollapsed?: boolean;
15
17
  };
16
18
  declare const _default: React.JSXElementConstructor<Omit<Props & {
17
19
  children?: React.ReactNode;
@@ -1,6 +1,7 @@
1
1
  import { SxProps } from '@mui/material';
2
2
  type Props = {
3
3
  hasDrawer?: boolean;
4
+ drawerCollapsed?: boolean;
4
5
  content?: React.ReactNode;
5
6
  handleDrawerToggle: () => void;
6
7
  sxProps?: SxProps;
@@ -1,4 +1,6 @@
1
1
  import { AbyssService } from '@abyss-project/main';
2
+ export declare const DRAWER_WIDTH_EXPANDED = 275;
3
+ export declare const DRAWER_WIDTH_COLLAPSED = 72;
2
4
  export type DrawerElements = {
3
5
  title?: string;
4
6
  elements: ({
@@ -19,11 +21,19 @@ export type DrawerElements = {
19
21
  helper: string;
20
22
  })[];
21
23
  }[];
24
+ type HeaderConfig = {
25
+ logo: string;
26
+ title: string;
27
+ subtitle?: string;
28
+ mainPath?: string;
29
+ };
22
30
  type Props = {
23
- title?: React.ReactNode;
31
+ header: HeaderConfig;
24
32
  handleDrawerToggle: () => void;
25
33
  elements: DrawerElements;
26
34
  classes: Record<string, string>;
35
+ onCollapsedChange?: (collapsed: boolean) => void;
36
+ defaultCollapsed?: boolean;
27
37
  };
28
38
  declare const _default: import('react').JSXElementConstructor<Omit<Props & {
29
39
  children?: import('react').ReactNode;
@@ -1 +1,2 @@
1
- export { default as AbyssDrawer } from './AbyssDrawer.component';
1
+ export { default as AbyssDrawer, DRAWER_WIDTH_EXPANDED, DRAWER_WIDTH_COLLAPSED } from './AbyssDrawer.component';
2
+ export type { DrawerElements } from './AbyssDrawer.component';
@@ -295,6 +295,9 @@ export declare const translations: {
295
295
  'download-file-completed': string;
296
296
  'no-description': string;
297
297
  active: string;
298
+ 'link-copied': string;
299
+ credits: string;
300
+ 'total-credit': string;
298
301
  };
299
302
  'file-importation': {
300
303
  'cloud-usage-metrics': {
@@ -908,6 +911,9 @@ export declare const translations: {
908
911
  'download-file-completed': string;
909
912
  'no-description': string;
910
913
  active: string;
914
+ 'link-copied': string;
915
+ credits: string;
916
+ 'total-credit': string;
911
917
  };
912
918
  'file-importation': {
913
919
  'cloud-usage-metrics': {
@@ -1,5 +1,5 @@
1
- import { L as D, E as h, C as L } from "./index-DiiOuO5Y.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, g as f, j as aO, N as nO, I as rO, d as QO, k as d } from "./index-QIPxlGDa.js";
1
+ import { L as D, E as h, C as L } from "./index-XnlKDcpW.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, g as f, j as aO, N as nO, I as rO, d as QO, k as d } from "./index-DNe99GEg.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, NO = 263, IO = 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,
@@ -1,6 +1,6 @@
1
- import { a as t, L as i, i as n, f as $, c as y, j as P, s as X, t as O } from "./index-QIPxlGDa.js";
2
- import { defineCSSCompletionSource as m } from "./index-DtzQIWXL.js";
3
- import { L as c, E as S } from "./index-DiiOuO5Y.js";
1
+ import { a as t, L as i, i as n, f as $, c as y, j as P, s as X, t as O } from "./index-DNe99GEg.js";
2
+ import { defineCSSCompletionSource as m } from "./index-CJQ7jtg-.js";
3
+ import { L as c, E as S } from "./index-XnlKDcpW.js";
4
4
  const f = 110, l = 1, s = 2, r = [
5
5
  9,
6
6
  10,
@@ -1,6 +1,6 @@
1
- import { L as v, E as i, C as _ } from "./index-DiiOuO5Y.js";
2
- import { s as W, t as e, a as g, L as x, f as p, i as U, j as V, c as E } from "./index-QIPxlGDa.js";
3
- import { defineCSSCompletionSource as N } from "./index-DtzQIWXL.js";
1
+ import { L as v, E as i, C as _ } from "./index-XnlKDcpW.js";
2
+ import { s as W, t as e, a as g, L as x, f as p, i as U, j as V, c as E } from "./index-DNe99GEg.js";
3
+ import { defineCSSCompletionSource as N } from "./index-CJQ7jtg-.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-DiiOuO5Y.js";
2
- import { p as xe, s as Te, t as h, E as Ve, a as we, L as ye, e as K, l as ve, i as Xe, f as ke, G as $e } from "./index-QIPxlGDa.js";
3
- import { cssLanguage as J, css as _e } from "./index-DtzQIWXL.js";
4
- import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Qe, javascriptLanguage as R, javascript as Ae } from "./index-5MoUQ2P-.js";
1
+ import { L as be, E as $, C as Pe } from "./index-XnlKDcpW.js";
2
+ import { p as xe, s as Te, t as h, E as Ve, a as we, L as ye, e as K, l as ve, i as Xe, f as ke, G as $e } from "./index-DNe99GEg.js";
3
+ import { cssLanguage as J, css as _e } from "./index-CJQ7jtg-.js";
4
+ import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Qe, javascriptLanguage as R, javascript as Ae } from "./index-CA-Fb9rR.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 { L as V, E as X } from "./index-DiiOuO5Y.js";
2
- import { s as d, t as $, a as Z, L as R, p as s, i as t, f as y, c, g as U, j as l } from "./index-QIPxlGDa.js";
3
- import { html as w } from "./index-C_b1TK0P.js";
1
+ import { L as V, E as X } from "./index-XnlKDcpW.js";
2
+ import { s as d, t as $, a as Z, L as R, p as s, i as t, f as y, c, g as U, j as l } from "./index-DNe99GEg.js";
3
+ import { html as w } from "./index-BFi1xuIH.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,7 +1,7 @@
1
- import { a as g, L as P, p as l, s as q, t as r } from "./index-QIPxlGDa.js";
2
- import { html as c } from "./index-C_b1TK0P.js";
3
- import { javascriptLanguage as i } from "./index-5MoUQ2P-.js";
4
- import { L as R, E as p } from "./index-DiiOuO5Y.js";
1
+ import { a as g, L as P, p as l, s as q, t as r } from "./index-DNe99GEg.js";
2
+ import { html as c } from "./index-BFi1xuIH.js";
3
+ import { javascriptLanguage as i } from "./index-CA-Fb9rR.js";
4
+ import { L as R, E as p } from "./index-XnlKDcpW.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 { P as nt, m as j, n as v, T as st, o as Ae, s as Be, p as it, t as c, q as E, r as ot, L as le, u as at, v as lt, w as ht, x as ft, e as _, l as P, y as T, z as ut, f as Ie, i as dt, A as pt, C as ct, B as mt, D as he, F as gt } from "./index-QIPxlGDa.js";
2
- import { html as kt, htmlCompletionSource as Lt } from "./index-C_b1TK0P.js";
1
+ import { P as nt, m as j, n as v, T as st, o as Ae, s as Be, p as it, t as c, q as E, r as ot, L as le, u as at, v as lt, w as ht, x as ft, e as _, l as P, y as T, z as ut, f as Ie, i as dt, A as pt, C as ct, B as mt, D as he, F as gt } from "./index-DNe99GEg.js";
2
+ import { html as kt, htmlCompletionSource as Lt } from "./index-BFi1xuIH.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 o, E as t } from "./index-DiiOuO5Y.js";
2
- import { s, t as Q, a as j, L as x, i as f, f as c, c as a, g as W, h as S, j as l } from "./index-QIPxlGDa.js";
1
+ import { L as o, E as t } from "./index-XnlKDcpW.js";
2
+ import { s, t as Q, a as j, L as x, i as f, f as c, c as a, g as W, h as S, j as l } from "./index-DNe99GEg.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 { a as O, L as r, i as b, f as s, s as a, g as t, j as P, t as e } from "./index-QIPxlGDa.js";
2
- import { L as n } from "./index-DiiOuO5Y.js";
1
+ import { a as O, L as r, i as b, f as s, s as a, g as t, j as P, t as e } from "./index-DNe99GEg.js";
2
+ import { L as n } from "./index-XnlKDcpW.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,5 +1,5 @@
1
- import { L as M, E as X, a as h, C as E } from "./index-DiiOuO5Y.js";
2
- import { s as A, t as i, E as C, a as J, k as o, L as I, b as B, d as D, e as u, l as K, i as N, f as H, c as g, g as F, h as OO, j as aO, J as j, x as QO, N as iO, I as eO } from "./index-QIPxlGDa.js";
1
+ import { L as M, E as X, a as h, C as E } from "./index-XnlKDcpW.js";
2
+ import { s as A, t as i, E as C, a as J, k as o, L as I, b as B, d as D, e as u, l as K, i as N, f as H, c as g, g as F, h as OO, j as aO, J as j, x as QO, N as iO, I as eO } from "./index-DNe99GEg.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,5 +1,5 @@
1
- import { L as w, E as p, a as Y } from "./index-DiiOuO5Y.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, j as _, N as C, I as U } from "./index-QIPxlGDa.js";
1
+ import { L as w, E as p, a as Y } from "./index-XnlKDcpW.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, j as _, N as C, I as U } from "./index-DNe99GEg.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,6 +1,6 @@
1
- import { E as d, L as y, l as b, a as _, p as g, e as u, s as S, i as T, f as k, g as W, t } from "./index-QIPxlGDa.js";
2
- import { html as j } from "./index-C_b1TK0P.js";
3
- import { L as X, E as p } from "./index-DiiOuO5Y.js";
1
+ import { E as d, L as y, l as b, a as _, p as g, e as u, s as S, i as T, f as k, g as W, t } from "./index-DNe99GEg.js";
2
+ import { html as j } from "./index-BFi1xuIH.js";
3
+ import { L as X, E as p } from "./index-XnlKDcpW.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, E as R, a as Y, C as x } from "./index-DiiOuO5Y.js";
2
- import { s as w, t as O, a as d, k as X, L as k, b as h, d as f, i as u, f as y, c as l, g, h as j, j as U, e as G, N as b, I as Z } from "./index-QIPxlGDa.js";
1
+ import { L as s, E as R, a as Y, C as x } from "./index-XnlKDcpW.js";
2
+ import { s as w, t as O, a as d, k as X, L as k, b as h, d as f, i as u, f as y, c as l, g, h as j, j as U, e as G, N as b, I as Z } from "./index-DNe99GEg.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);
@@ -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-QIPxlGDa.js";
2
- import { L as de, E as me } from "./index-DiiOuO5Y.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-DNe99GEg.js";
2
+ import { L as de, E as me } from "./index-XnlKDcpW.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;