@abyss-project/commons-front-core 9.6.0 → 10.0.0

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 (56) hide show
  1. package/README.md +5 -1
  2. package/dist/{AbyssCookieConsentProvider-D-HRRYCd.js → AbyssCookieConsentProvider-BypueFP-.js} +26 -4
  3. package/dist/{CookieConsentSettings.component-iG_abYsq.js → CookieConsentSettings.component-CYmew9vg.js} +1 -1
  4. package/dist/auth/client/web-bridge.d.ts +6 -0
  5. package/dist/auth/components/AuthFlow/AuthFlow.component.d.ts +9 -2
  6. package/dist/auth/components/AuthFlow/auth-flow.types.d.ts +5 -0
  7. package/dist/auth/components/AuthFlow/steps/EmailStep.component.d.ts +4 -1
  8. package/dist/auth/components/index.d.ts +1 -0
  9. package/dist/auth/components/shared/auth-errors.d.ts +1 -0
  10. package/dist/auth/components/shared/auth-errors.spec.d.ts +1 -0
  11. package/dist/auth-client.js +1 -1
  12. package/dist/components/inputs/DropZone/DropZone.d.ts +6 -1
  13. package/dist/components/layers/ProductTour/product-tour-geometry.d.ts +2 -0
  14. package/dist/components/structure/AccountMenu/AccountMenu.d.ts +2 -1
  15. package/dist/components/structure/AppShell/app-shell.types.d.ts +5 -0
  16. package/dist/cookie-consent.js +2 -2
  17. package/dist/{design-theme-Cz9YXXYF.js → design-theme-uRG0VfEo.js} +1546 -1544
  18. package/dist/hooks/use-rich-intl.hook.d.ts +70 -0
  19. package/dist/{index-Bx3HHL-R.js → index-1XaO6yqN.js} +2 -2
  20. package/dist/{index-CfMACXTF.js → index-B-gziyiQ.js} +2 -2
  21. package/dist/{index-122nruW2.js → index-B-o5nMSp.js} +2 -2
  22. package/dist/{index-hmLJVQI5.js → index-B2hC6MII.js} +2 -2
  23. package/dist/{index-ClFFE5ao.js → index-BGFuwS_Q.js} +2 -2
  24. package/dist/{index-D4RSXnjv.js → index-BWlJEtPU.js} +2 -2
  25. package/dist/{index-C4zd0qai.js → index-BXr7rmpX.js} +3 -3
  26. package/dist/{index-DIW1zdfO.js → index-BlOn2KR_.js} +2 -2
  27. package/dist/{index-BGjmUj-Y.js → index-BqwZB633.js} +4 -4
  28. package/dist/{index-71ZKDT76.js → index-Bzvs4paS.js} +4 -4
  29. package/dist/{index-y2047KCu.js → index-C7vs9FFj.js} +2 -2
  30. package/dist/{index-D-Sa8nQo.js → index-Cn4VznqA.js} +3 -3
  31. package/dist/{index-D5lR_Znk.js → index-CxRoV826.js} +2 -2
  32. package/dist/{index-Dodsh0PI.js → index-D6SwHpGJ.js} +3 -3
  33. package/dist/{index-BmNsW-7e.js → index-DMm4DUwE.js} +4 -4
  34. package/dist/{index-uctTt51v.js → index-DSxaBHTZ.js} +2 -2
  35. package/dist/{index-DNe1tEo2.js → index-DXsaB2jy.js} +6496 -6481
  36. package/dist/{index-B1LNfIcu.js → index-D_FaSb6y.js} +2 -2
  37. package/dist/{index-ri1JKKHf.js → index-QOUuevuY.js} +2 -2
  38. package/dist/{index-DP-wuPBm.js → index-cCCQwSgM.js} +2 -2
  39. package/dist/{index-CtIh_DWT.js → index-eDLp-yzn.js} +3 -3
  40. package/dist/{index-XQsb7DVh.js → index-oTUDJjQw.js} +1 -1
  41. package/dist/index.js +5218 -5092
  42. package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.d.ts +2 -1
  43. package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.spec.d.ts +1 -0
  44. package/dist/legacy.js +12 -12
  45. package/dist/rum/AbyssRumProvider.d.ts +5 -2
  46. package/dist/rum/abyss-rum-report.context.d.ts +14 -0
  47. package/dist/rum/index.d.ts +1 -0
  48. package/dist/rum/report-locale.d.ts +3 -0
  49. package/dist/rum/report-locale.spec.d.ts +1 -0
  50. package/dist/rum/track-key-action.d.ts +7 -0
  51. package/dist/rum/track-key-action.spec.d.ts +1 -0
  52. package/dist/translations/en.d.ts +11 -0
  53. package/dist/translations/fr.d.ts +11 -0
  54. package/dist/{use-auth.hook-oRxzI95f.js → use-auth.hook-D8vfSYRv.js} +101 -101
  55. package/package.json +9 -9
  56. package/test-results/catalog/.last-run.json +0 -4
@@ -1,7 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  type Props = {
3
3
  mode: 'light' | 'dark';
4
- onToggle: () => void;
4
+ /** Receives the click, so a theme reveal can start from the pressed point. */
5
+ onToggle: (event: React.MouseEvent<HTMLElement>) => void;
5
6
  };
6
7
  declare const AbyssThemeToggle: React.FC<Props>;
7
8
  export default AbyssThemeToggle;
package/dist/legacy.js CHANGED
@@ -1,7 +1,7 @@
1
- import { aE as e, aF as o, R as t, M as r, Q as i, aO as b, Z as n, aI as A, $ as l, a6 as C, aB as S, ac as p, ad as u, aQ as y, b0 as c, a$ as d, aJ as g, aC as T, aY as P, aZ as I, aV as h, ay as _, Y as L, ae as E, a_ as m, aW as O, af as R, bk as D, _ as f, bn as k, bt as B, ap as M, aH as v, al as F, ak as N, aD as x, aG as U, aX as W, V as w, a5 as Q, a4 as H, bM as G, bo as V, bP as Y, ag as j, ai as z, ah as X, aa as K, a9 as Z, a8 as q, bV as J, at as $, aS as aa, aR as sa, aw as ea, ax as oa, ab as ta, aj as ra, bQ as ia, bT as ba, bN as na, bO as Aa, aT as la, aL as Ca, X as Sa, ar as pa, aq as ua, av as ya, a0 as ca, aU as da, au as ga, O as Ta, bS as Pa, bL as Ia, bl as ha, bm as _a, K as La, W as Ea, an as ma, ao as Oa, a1 as Ra, am as Da, aM as fa, bv as ka, bu as Ba, bq as Ma, b8 as va, b9 as Fa, ba as Na, bd as xa, bi as Ua, bg as Wa, b7 as wa, b6 as Qa, b3 as Ha, bb as Ga, b2 as Va, b5 as Ya, bj as ja, bc as za, b4 as Xa, bh as Ka, U as Za, S as qa, aK as Ja, aN as $a, aP as as, a2 as ss, a3 as es, bH as os, b1 as ts, br as rs, by as is, aA as bs, bA as ns, bJ as As, bD as ls, bB as Cs, bC as Ss, bf as ps, be as us, bU as ys, as as cs, bR as ds, bw as gs, bE as Ts, bs as Ps, bp as Is, bK as hs, bx as _s, bG as Ls, bI as Es, bz as ms, bF as Os, az as Rs, a7 as Ds, bW as fs } from "./index-DNe1tEo2.js";
2
- import { A as Bs, h as Ms, c as vs, C as Fs, D as Ns, R as xs, V as Us, p as Ws, T as ws, H as Qs, d as Hs, I as Gs, J as Vs, F as Ys, G as js, y as zs, B as Xs, f as Ks, L as Zs, M as qs, W as Js, X as $s, P as ae, Q as se, Y as ee, Z as oe, x as te, n as re, m as ie, z as be, E as ne, o as Ae, q as le, r as Ce, e as Se, v as pe, N as ue, O as ye, U as ce, K as de, S as ge, u as Te, b as Pe, a as Ie, w as he } from "./AbyssCookieConsentProvider-D-HRRYCd.js";
3
- import { C as Le } from "./CookieConsentSettings.component-iG_abYsq.js";
4
- import { bw as me, ad as Oe, bv as Re, bu as De, bx as fe, ab as ke, ac as Be, a5 as Me, a6 as ve, a9 as Fe, an as Ne, bz as xe, a8 as Ue, ao as We, bA as we, bB as Qe, ar as He, aa as Ge, ap as Ve, a7 as Ye, aq as je, by as ze } from "./design-theme-Cz9YXXYF.js";
1
+ import { aE as e, aF as o, R as t, M as r, Q as i, aO as b, Z as n, aI as A, $ as C, a6 as l, aB as S, ac as p, ad as u, aQ as y, b0 as c, a$ as d, aJ as g, aC as T, aY as P, aZ as I, aV as h, ay as _, Y as L, ae as E, a_ as m, aW as O, af as R, bk as D, _ as f, bn as k, bt as B, ap as M, aH as v, al as F, ak as N, aD as x, aG as U, aX as W, V as w, a5 as Q, a4 as H, bM as G, bo as V, bP as Y, ag as j, ai as z, ah as X, aa as K, a9 as Z, a8 as q, bV as J, at as $, aS as aa, aR as sa, aw as ea, ax as oa, ab as ta, aj as ra, bQ as ia, bT as ba, bN as na, bO as Aa, aT as Ca, aL as la, X as Sa, ar as pa, aq as ua, av as ya, a0 as ca, aU as da, au as ga, O as Ta, bS as Pa, bL as Ia, bl as ha, bm as _a, K as La, W as Ea, an as ma, ao as Oa, a1 as Ra, am as Da, aM as fa, bv as ka, bu as Ba, bq as Ma, b8 as va, b9 as Fa, ba as Na, bd as xa, bi as Ua, bg as Wa, b7 as wa, b6 as Qa, b3 as Ha, bb as Ga, b2 as Va, b5 as Ya, bj as ja, bc as za, b4 as Xa, bh as Ka, U as Za, S as qa, aK as Ja, aN as $a, aP as as, a2 as ss, a3 as es, bH as os, b1 as ts, br as rs, by as is, aA as bs, bA as ns, bJ as As, bD as Cs, bB as ls, bC as Ss, bf as ps, be as us, bU as ys, as as cs, bR as ds, bw as gs, bE as Ts, bs as Ps, bp as Is, bK as hs, bx as _s, bG as Ls, bI as Es, bz as ms, bF as Os, az as Rs, a7 as Ds, bW as fs } from "./index-DXsaB2jy.js";
2
+ import { A as Bs, h as Ms, c as vs, C as Fs, D as Ns, R as xs, V as Us, p as Ws, T as ws, H as Qs, d as Hs, I as Gs, J as Vs, F as Ys, G as js, y as zs, B as Xs, f as Ks, L as Zs, M as qs, W as Js, X as $s, P as ae, Q as se, Y as ee, Z as oe, x as te, n as re, m as ie, z as be, E as ne, o as Ae, q as Ce, r as le, e as Se, v as pe, N as ue, O as ye, U as ce, K as de, S as ge, u as Te, b as Pe, a as Ie, w as he } from "./AbyssCookieConsentProvider-BypueFP-.js";
3
+ import { C as Le } from "./CookieConsentSettings.component-CYmew9vg.js";
4
+ import { by as me, ae as Oe, bx as Re, bw as De, bz as fe, ac as ke, ad as Be, a6 as Me, a7 as ve, aa as Fe, ap as Ne, bB as xe, a9 as Ue, aq as We, bC as we, bD as Qe, at as He, ab as Ge, ar as Ve, a8 as Ye, as as je, bA as ze } from "./design-theme-uRG0VfEo.js";
5
5
  export {
6
6
  me as ABYSS_SERVICE_CONFIG,
7
7
  e as ABYSS_SIDEBAR_WIDTH,
@@ -12,8 +12,8 @@ export {
12
12
  b as AbyssBackground,
13
13
  n as AbyssBarChart,
14
14
  A as AbyssBillingPlan,
15
- l as AbyssCashFlowChart,
16
- C as AbyssCommandPalette,
15
+ C as AbyssCashFlowChart,
16
+ l as AbyssCommandPalette,
17
17
  Bs as AbyssCookieConsentProvider,
18
18
  S as AbyssDashboardLayout,
19
19
  p as AbyssDatePicker,
@@ -79,8 +79,8 @@ export {
79
79
  ba as GROUP_COLORS,
80
80
  na as INVOICE_STATUS_COLORS,
81
81
  Aa as INVOICE_TYPE_COLORS,
82
- la as ImportButton,
83
- Ca as ImportFromCloudModal,
82
+ Ca as ImportButton,
83
+ la as ImportFromCloudModal,
84
84
  ve as InfoBox,
85
85
  Sa as InternalProjectCard,
86
86
  pa as LANGUAGE_FLAGS,
@@ -154,8 +154,8 @@ export {
154
154
  Qe as easing,
155
155
  As as fadeIn,
156
156
  Ks as flattenTranslations,
157
- ls as fontFamily,
158
- Cs as fontSize,
157
+ Cs as fontFamily,
158
+ ls as fontSize,
159
159
  Ss as fontWeight,
160
160
  ps as getCategoryConfig,
161
161
  us as getCategoryGroup,
@@ -184,9 +184,9 @@ export {
184
184
  Ve as offersAction,
185
185
  Is as placeBubble,
186
186
  hs as pulseGlow,
187
- le as purple,
187
+ Ce as purple,
188
188
  Ye as radius,
189
- Ce as readCookie,
189
+ le as readCookie,
190
190
  Se as reconcile,
191
191
  pe as red,
192
192
  _s as renderQuotaServiceIcon,
@@ -23,7 +23,10 @@ export type AbyssRumProviderProps = PropsWithChildren<{
23
23
  * Starts the browser RUM of the front. Mount it under `<AbyssCookieConsentProvider>`: replay
24
24
  * requires the analytics consent, read at each decision of the SDK, so a consent given or withdrawn
25
25
  * after start is followed; without the consent provider, analytics reads as refused. Under
26
- * `<AuthProvider>`, the session's actor is the signed-in user (`null` once signed out); without it,
27
- * there is no actor.
26
+ * `<AuthProvider>`, the session's actor is the signed-in user (`null` once signed out) and the
27
+ * reply contact of the report dialog is their e-mail and alias; without it, there is neither. The
28
+ * report dialog and the feedback requests take the accent, the corner radius and the mode of the
29
+ * MUI theme, and the account menus below offer « Report a problem » while the environment accepts
30
+ * reports.
28
31
  */
29
32
  export declare const AbyssRumProvider: ({ config, children, }: AbyssRumProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { Context } from 'react';
2
+ export interface AbyssRumReport {
3
+ /**
4
+ * Opens the report dialog of the RUM in the front's language `locale` (`intl.locale`): English
5
+ * for an English locale, French otherwise.
6
+ */
7
+ showReportDialog(locale: string): void;
8
+ }
9
+ export declare const AbyssRumReportContext: Context<AbyssRumReport | null>;
10
+ /**
11
+ * The report dialog of the front's RUM; `null` outside `AbyssRumProvider`, with `config={null}`, or
12
+ * while the environment does not accept reports.
13
+ */
14
+ export declare const useAbyssRumReport: () => AbyssRumReport | null;
@@ -5,3 +5,4 @@ export { ABYSS_MAIN_RUM_SESSION_ROUTE, abyssMainRumSessionPath, } from './abyss-
5
5
  export type { AbyssMainRumSessionContext } from './abyss-main-session-path';
6
6
  export { buildAbyssRumProviderConfig } from './rum-provider-config';
7
7
  export type { AbyssRumProviderConfigInput } from './rum-provider-config';
8
+ export { trackKeyAction } from './track-key-action';
@@ -0,0 +1,3 @@
1
+ import { RumReportLocale } from '@abyss-project/monitor-browser';
2
+ /** The report dialog's language for a front locale (`en-GB` → English); French for any other. */
3
+ export declare const reportLocaleOf: (locale: string) => RumReportLocale;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { AbyssKeyActionEvent } from '@abyss-project/main';
2
+ /**
3
+ * Records `event` as a user action of the current RUM page view, at the success point of the user's
4
+ * key action. Does nothing while the RUM is not started (no `AbyssRumProvider`, `config={null}`,
5
+ * RUM disabled for the environment) and never throws to the caller.
6
+ */
7
+ export declare const trackKeyAction: (event: AbyssKeyActionEvent) => void;
@@ -0,0 +1 @@
1
+ export {};
@@ -274,6 +274,7 @@ declare const _default: {
274
274
  ABYSS_PLATFORM: string;
275
275
  ABYSS_STORAGE: string;
276
276
  ABYSS_MONITOR: string;
277
+ ABYSS_CONSOLE: string;
277
278
  ABYSS_CLOUD: string;
278
279
  ABYSS_CRYPT: string;
279
280
  ABYSS_FORM: string;
@@ -307,6 +308,7 @@ declare const _default: {
307
308
  TOOLS_SHORT_LINK_COUNT: string;
308
309
  TOOLS_SHORTLINK_RESOLUTIONS_MONTH: string;
309
310
  MONITOR_WEBHOOK_INVOCATIONS_MONTH: string;
311
+ CONSOLE_WORKFLOW_CREDITS_MONTH: string;
310
312
  RUM_SESSIONS_MONTH: string;
311
313
  REHYDRATION_CONCURRENT_JOBS: string;
312
314
  REHYDRATION_ACTIVE_GB: string;
@@ -397,6 +399,7 @@ declare const _default: {
397
399
  billing: string;
398
400
  logout: string;
399
401
  family: string;
402
+ 'report-problem': string;
400
403
  };
401
404
  scope: {
402
405
  personal: string;
@@ -902,6 +905,7 @@ declare const _default: {
902
905
  service: {
903
906
  ABYSS_PLATFORM: string;
904
907
  ABYSS_MONITOR: string;
908
+ ABYSS_CONSOLE: string;
905
909
  ABYSS_STORAGE: string;
906
910
  ABYSS_CLOUD: string;
907
911
  ABYSS_CRYPT: string;
@@ -1310,6 +1314,10 @@ declare const _default: {
1310
1314
  email: {
1311
1315
  title: string;
1312
1316
  lede: string;
1317
+ 'back-office': {
1318
+ title: string;
1319
+ lede: string;
1320
+ };
1313
1321
  label: string;
1314
1322
  submit: string;
1315
1323
  passkey: string;
@@ -1417,6 +1425,7 @@ declare const _default: {
1417
1425
  'email-change-unavailable': string;
1418
1426
  'reauth-cancelled': string;
1419
1427
  'session-revoked': string;
1428
+ 'admin-required': string;
1420
1429
  'ceremony-cancelled': string;
1421
1430
  'ceremony-unsupported': string;
1422
1431
  'ceremony-no-credential': string;
@@ -1470,6 +1479,7 @@ declare const _default: {
1470
1479
  current: string;
1471
1480
  platforms: {
1472
1481
  web: string;
1482
+ admin: string;
1473
1483
  ios: string;
1474
1484
  android: string;
1475
1485
  };
@@ -1726,6 +1736,7 @@ declare const _default: {
1726
1736
  trigger: string;
1727
1737
  'dark-mode': string;
1728
1738
  logout: string;
1739
+ 'report-problem': string;
1729
1740
  };
1730
1741
  'page-header': {
1731
1742
  breadcrumbs: string;
@@ -274,6 +274,7 @@ declare const _default: {
274
274
  ABYSS_PLATFORM: string;
275
275
  ABYSS_STORAGE: string;
276
276
  ABYSS_MONITOR: string;
277
+ ABYSS_CONSOLE: string;
277
278
  ABYSS_CLOUD: string;
278
279
  ABYSS_CRYPT: string;
279
280
  ABYSS_FORM: string;
@@ -307,6 +308,7 @@ declare const _default: {
307
308
  TOOLS_SHORT_LINK_COUNT: string;
308
309
  TOOLS_SHORTLINK_RESOLUTIONS_MONTH: string;
309
310
  MONITOR_WEBHOOK_INVOCATIONS_MONTH: string;
311
+ CONSOLE_WORKFLOW_CREDITS_MONTH: string;
310
312
  RUM_SESSIONS_MONTH: string;
311
313
  REHYDRATION_CONCURRENT_JOBS: string;
312
314
  REHYDRATION_ACTIVE_GB: string;
@@ -397,6 +399,7 @@ declare const _default: {
397
399
  billing: string;
398
400
  logout: string;
399
401
  family: string;
402
+ 'report-problem': string;
400
403
  };
401
404
  scope: {
402
405
  personal: string;
@@ -902,6 +905,7 @@ declare const _default: {
902
905
  service: {
903
906
  ABYSS_PLATFORM: string;
904
907
  ABYSS_MONITOR: string;
908
+ ABYSS_CONSOLE: string;
905
909
  ABYSS_STORAGE: string;
906
910
  ABYSS_CLOUD: string;
907
911
  ABYSS_CRYPT: string;
@@ -1310,6 +1314,10 @@ declare const _default: {
1310
1314
  email: {
1311
1315
  title: string;
1312
1316
  lede: string;
1317
+ 'back-office': {
1318
+ title: string;
1319
+ lede: string;
1320
+ };
1313
1321
  label: string;
1314
1322
  submit: string;
1315
1323
  passkey: string;
@@ -1417,6 +1425,7 @@ declare const _default: {
1417
1425
  'email-change-unavailable': string;
1418
1426
  'reauth-cancelled': string;
1419
1427
  'session-revoked': string;
1428
+ 'admin-required': string;
1420
1429
  'ceremony-cancelled': string;
1421
1430
  'ceremony-unsupported': string;
1422
1431
  'ceremony-no-credential': string;
@@ -1470,6 +1479,7 @@ declare const _default: {
1470
1479
  current: string;
1471
1480
  platforms: {
1472
1481
  web: string;
1482
+ admin: string;
1473
1483
  ios: string;
1474
1484
  android: string;
1475
1485
  };
@@ -1726,6 +1736,7 @@ declare const _default: {
1726
1736
  trigger: string;
1727
1737
  'dark-mode': string;
1728
1738
  logout: string;
1739
+ 'report-problem': string;
1729
1740
  };
1730
1741
  'page-header': {
1731
1742
  breadcrumbs: string;