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

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 +10 -0
  8. package/dist/{index-C_b1TK0P.js → index--vJnYAIi.js} +4 -4
  9. package/dist/{index-jzlzDpBR.js → index-B9uJcIyN.js} +2 -2
  10. package/dist/{index-Bl-nL0cu.js → index-BF0hEXma.js} +2 -2
  11. package/dist/{index-Y3SaDCyz.js → index-BIdBOnZt.js} +2 -2
  12. package/dist/{index-D4rqESRa.js → index-BJbePyqm.js} +2 -2
  13. package/dist/{index-QIPxlGDa.js → index-Bywfqr5u.js} +20101 -19659
  14. package/dist/{index-Uw7lqTx5.js → index-BzJBx8UJ.js} +4 -4
  15. package/dist/{index-f2QXJFCh.js → index-C2snJCID.js} +2 -2
  16. package/dist/{index-5MoUQ2P-.js → index-CXkqWwc7.js} +2 -2
  17. package/dist/{index-1B5m58fY.js → index-CbU9dUj0.js} +3 -3
  18. package/dist/{index-BS7X7EQ6.js → index-CdcbWOH1.js} +2 -2
  19. package/dist/{index-Cuhh-rNQ.js → index-CxsR3CsK.js} +2 -2
  20. package/dist/{index-DtzQIWXL.js → index-D4ZcH06N.js} +2 -2
  21. package/dist/{index-D9gSSfte.js → index-DGxRG7tz.js} +4 -4
  22. package/dist/{index-CoDTqcki.js → index-DgXQvW0O.js} +2 -2
  23. package/dist/{index-CtPIePmV.js → index-Dm0ie4jA.js} +2 -2
  24. package/dist/{index-BxIwnrZj.js → index-DnIGd1gj.js} +3 -3
  25. package/dist/{index-CXVoNEoH.js → index-DtE-v1CQ.js} +3 -3
  26. package/dist/{index-DiiOuO5Y.js → index-DzjhDJdL.js} +1 -1
  27. package/dist/{index-B2KZuUCP.js → index-WFK_lJ5S.js} +2 -2
  28. package/dist/{index-BefuqNjV.js → index-XqwT9--A.js} +3 -3
  29. package/dist/{index-Dpy_s9YY.js → index-j8Jie7S7.js} +2 -2
  30. package/dist/index.js +86 -84
  31. package/dist/translations/en.d.ts +5 -0
  32. package/dist/translations/fr.d.ts +5 -0
  33. package/dist/{web-C_hlZ1dD.js → web-7omYYlAs.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,11 @@ 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;
301
+ 'expand-sidebar': string;
302
+ 'collapse-sidebar': string;
298
303
  };
299
304
  'file-importation': {
300
305
  'cloud-usage-metrics': {
@@ -908,6 +913,11 @@ export declare const translations: {
908
913
  'download-file-completed': string;
909
914
  'no-description': string;
910
915
  active: string;
916
+ 'link-copied': string;
917
+ credits: string;
918
+ 'total-credit': string;
919
+ 'expand-sidebar': string;
920
+ 'collapse-sidebar': string;
911
921
  };
912
922
  'file-importation': {
913
923
  'cloud-usage-metrics': {
@@ -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-DzjhDJdL.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-Bywfqr5u.js";
3
+ import { cssLanguage as J, css as _e } from "./index-D4ZcH06N.js";
4
+ import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Qe, javascriptLanguage as R, javascript as Ae } from "./index-CXkqWwc7.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,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-DzjhDJdL.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-Bywfqr5u.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 { 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-Bywfqr5u.js";
2
+ import { html as kt, htmlCompletionSource as Lt } from "./index--vJnYAIi.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 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-DzjhDJdL.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-Bywfqr5u.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,5 +1,5 @@
1
- import { L as o, E as a } from "./index-DiiOuO5Y.js";
2
- import { s as Z, t as Q, a as _, L as q, i as l, f as w, c as r, j as V } from "./index-QIPxlGDa.js";
1
+ import { L as o, E as a } from "./index-DzjhDJdL.js";
2
+ import { s as Z, t as Q, a as _, L as q, i as l, f as w, c as r, j as V } from "./index-Bywfqr5u.js";
3
3
  const R = 1, g = 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;