@abyss-project/commons-front-core 11.1.2 → 12.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 (78) hide show
  1. package/README.md +2 -2
  2. package/catalog/pages/LineChart.tsx +19 -2
  3. package/catalog/pages/StatTile.tsx +16 -0
  4. package/dist/{AbyssCookieConsentProvider-PchfQjs2.js → AbyssCookieConsentProvider-DrciI_3p.js} +1400 -1798
  5. package/dist/{CookieConsentSettings.component-D8G0H6Wl.js → CookieConsentSettings.component-BZ2JenJh.js} +1 -1
  6. package/dist/{Tabs-CZQ1JYlW.js → Tabs-CwVEV4SO.js} +162 -142
  7. package/dist/auth/client/abyss-login.d.ts +2 -2
  8. package/dist/auth/components/AuthHeroLayout/AuthHeroLayout.component.d.ts +2 -2
  9. package/dist/components/data/LineChart/LineChart.d.ts +10 -2
  10. package/dist/components/data/StatTile/StatTile.d.ts +5 -3
  11. package/dist/components/inputs/DateField/DateField.d.ts +7 -1
  12. package/dist/cookie-consent.js +2 -2
  13. package/dist/{design-theme-DPp0aQVa.js → design-theme-DonQoVoX.js} +5251 -5230
  14. package/dist/{sortable.esm-BYVnqZQ-.js → editors-DkiY6BfJ.js} +31061 -26291
  15. package/dist/editors.js +4 -5272
  16. package/dist/hooks/use-rich-intl.hook.d.ts +36 -414
  17. package/dist/{index-z9-0V3EC.js → index-2l12Iu8k.js} +2 -2
  18. package/dist/{index-B2ZxOr31.js → index-B52OKB4p.js} +3 -3
  19. package/dist/{index-C7XhFFZA.js → index-BacMl_If.js} +2 -2
  20. package/dist/{index-CBIn4IuA.js → index-Bh7buNbj.js} +2 -2
  21. package/dist/{index-Bv63SeVQ.js → index-BoCgQirm.js} +2 -2
  22. package/dist/{index-DNhK2v38.js → index-CXGI5k75.js} +4 -4
  23. package/dist/{index-DzXd6CTA.js → index-Cg6Mv7QT.js} +2 -2
  24. package/dist/{index-DWi7OlB1.js → index-CgIjHnfl.js} +2 -2
  25. package/dist/{index-ZXDv7i0D.js → index-Cl1BSx17.js} +2 -2
  26. package/dist/{index-Bo9YtyKq.js → index-CtMx42h6.js} +2 -2
  27. package/dist/{index-yAKnJ5ME.js → index-CvRSR1eE.js} +2 -2
  28. package/dist/{index-RIO2UT1x.js → index-CwdirjZn.js} +2 -2
  29. package/dist/{index-C2CPAKkL.js → index-D1YeCKtd.js} +4 -4
  30. package/dist/{index-ByTOd2ak.js → index-DMiPquK5.js} +2 -2
  31. package/dist/{index-CS0JFqYy.js → index-DSjH42Mo.js} +3 -3
  32. package/dist/{index-CaWs53z9.js → index-DVsMyd7m.js} +2 -2
  33. package/dist/{index-CE5F7UaD.js → index-DW0z3W_H.js} +1 -1
  34. package/dist/{index-DVg7Zewe.js → index-DmCRAN1O.js} +2 -2
  35. package/dist/{index-CjAqdRJ0.js → index-KH3KmoUw.js} +4 -4
  36. package/dist/{index-CVp3TsdG.js → index-PHSTFO70.js} +3 -3
  37. package/dist/{index-DY51R82n.js → index-orVFXDIv.js} +3 -3
  38. package/dist/index.js +4322 -4303
  39. package/dist/isSymbol-CubIld3H.js +446 -0
  40. package/dist/legacy/components/Inputs/index.d.ts +0 -1
  41. package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +1 -1
  42. package/dist/legacy/components/Support/AbyssServiceSelect.component.d.ts +10 -8
  43. package/dist/legacy/components/Support/support-service.logic.d.ts +6 -0
  44. package/dist/legacy/components/Support/types.d.ts +7 -7
  45. package/dist/legacy/components/index.d.ts +0 -1
  46. package/dist/legacy.js +6158 -12073
  47. package/dist/translations/en.d.ts +7 -206
  48. package/dist/translations/fr.d.ts +7 -206
  49. package/dist/utils/project-link-wording.utils.d.ts +2 -2
  50. package/package.json +4 -4
  51. package/dist/legacy/components/Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.d.ts +0 -14
  52. package/dist/legacy/components/Inputs/AbyssMarkdownEditor/crepe-theme.d.ts +0 -7
  53. package/dist/legacy/components/Inputs/AbyssMarkdownEditor/index.d.ts +0 -1
  54. package/dist/legacy/components/PdfEditor/PdfEditor.d.ts +0 -3
  55. package/dist/legacy/components/PdfEditor/index.d.ts +0 -3
  56. package/dist/legacy/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +0 -10
  57. package/dist/legacy/components/PdfEditor/signature/SignaturePicker.d.ts +0 -19
  58. package/dist/legacy/components/PdfEditor/signature/SignatureSaveButton.d.ts +0 -12
  59. package/dist/legacy/components/PdfEditor/signature/SignatureSavedList.d.ts +0 -13
  60. package/dist/legacy/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +0 -10
  61. package/dist/legacy/components/PdfEditor/signature/resolve-asset.d.ts +0 -20
  62. package/dist/legacy/components/PdfEditor/tools/DrawTool.d.ts +0 -9
  63. package/dist/legacy/components/PdfEditor/tools/FillFieldsTool.d.ts +0 -9
  64. package/dist/legacy/components/PdfEditor/tools/RedactTool.d.ts +0 -8
  65. package/dist/legacy/components/PdfEditor/tools/ShapeTool.d.ts +0 -17
  66. package/dist/legacy/components/PdfEditor/tools/SignatureTool.d.ts +0 -15
  67. package/dist/legacy/components/PdfEditor/tools/TextTool.d.ts +0 -12
  68. package/dist/legacy/components/PdfEditor/tools/Toolbar.d.ts +0 -44
  69. package/dist/legacy/components/PdfEditor/tools/tool-options-ui.d.ts +0 -5
  70. package/dist/legacy/components/PdfEditor/viewer/InsertPagesButton.d.ts +0 -9
  71. package/dist/legacy/components/PdfEditor/viewer/InsertPagesDialog.d.ts +0 -10
  72. package/dist/legacy/components/PdfEditor/viewer/PageOverlay.d.ts +0 -38
  73. package/dist/legacy/components/PdfEditor/viewer/PageSidebar.d.ts +0 -15
  74. package/dist/legacy/components/PdfEditor/viewer/PageThumbnail.d.ts +0 -17
  75. package/dist/legacy/components/PdfEditor/viewer/PdfCanvas.d.ts +0 -26
  76. package/dist/legacy/components/PdfEditor/viewer/ViewerControls.d.ts +0 -21
  77. /package/dist/legacy/components/{Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.spec.d.ts → Support/support-service.logic.spec.d.ts} +0 -0
  78. /package/dist/legacy/{components/PdfEditor/signature/resolve-asset.spec.d.ts → legacy-editors-removed.spec.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
- import { AbyssService } from '@abyss-project/main';
1
+ import { ActivatableService } from '@abyss-project/main';
2
2
  import { AuthClient } from './auth-client';
3
3
  /** Where a web satellite sends its users to sign in: abyss-main's single login page. */
4
4
  export interface AbyssLoginTarget {
5
5
  /** abyss-main's web origin (`VITE_ABYSS_URL`), with or without a trailing `/`. */
6
6
  abyssSite: string;
7
7
  /** The satellite asking: abyss-main brings the user back to its site once signed in. */
8
- service: AbyssService;
8
+ service: ActivatableService;
9
9
  /**
10
10
  * The satellite page to come back to (`pathname + search`, see `currentReturnPath`). Absent:
11
11
  * abyss-main brings the user back to the satellite's home page.
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { AbyssService } from '@abyss-project/main';
2
+ import { ActivatableService } from '@abyss-project/main';
3
3
  /**
4
4
  * - `web` (default): the hero below `md` only; from `md` up the children render alone, so the
5
5
  * host keeps its own desktop layout (abyss-main's split screen).
@@ -15,7 +15,7 @@ export type AuthHeroLayoutProps = {
15
15
  * Requested service, already validated. null/undefined or a service without a tagline -> Abyss
16
16
  * logo, name and tagline; a service without logo (Odyssey) -> Abyss logo, its own name and tagline.
17
17
  */
18
- service?: AbyssService | null;
18
+ service?: ActivatableService | null;
19
19
  /** `AuthHeroLayoutVariant.WEB` by default. */
20
20
  variant?: AuthHeroLayoutVariant;
21
21
  children: ReactNode;
@@ -2,7 +2,13 @@ import { ChartSeriesTone } from '../chart-series-tone';
2
2
  export type LineChartX = Date | number;
3
3
  export interface LineChartPoint {
4
4
  x: LineChartX;
5
- y: number;
5
+ /**
6
+ * The value at `x`, or `null` where there is none (an empty bucket): the line and its area break
7
+ * there instead of dropping to zero, no point is drawn there (so no tooltip either), and the table
8
+ * of values shows an em dash.
9
+ * Stacked, a `null` counts as zero in the pile, like an x the series has no point at.
10
+ */
11
+ y: number | null;
6
12
  }
7
13
  export interface LineChartSeries {
8
14
  id: string;
@@ -39,6 +45,8 @@ export interface LineChartProps {
39
45
  * (`data.series.1`, `2`…, the seventh starting over), never by the host. Dates give a time scale,
40
46
  * numbers a linear one; `stacked` piles the series up as areas. Beyond one series, a legend names
41
47
  * the colors. For screen readers the figure is named by `label` and its drawing is replaced by a
42
- * table of every value; a chart without any point says so instead of drawing empty axes.
48
+ * table of every value; a chart without any point, or whose points are all `null`, says so instead
49
+ * of drawing empty axes. A `null` y breaks the line (see `LineChartPoint`). A chart with a single x
50
+ * draws each series' value as a dot, since no line can be drawn through one x.
43
51
  */
44
52
  export declare function LineChart({ series, height, area, stacked, formatX, formatY, label, }: LineChartProps): import("react/jsx-runtime").JSX.Element;
@@ -12,13 +12,15 @@ export interface StatTileProps {
12
12
  /** Already formatted by the host (`intl.formatNumber`). */
13
13
  value: string;
14
14
  unit?: string;
15
+ /** Supporting line under the value, already formatted by the host. */
16
+ subtext?: string;
15
17
  delta?: StatTileDelta;
16
18
  trend?: number[];
17
19
  /** Route inside the app: the whole tile becomes a link. */
18
20
  href?: string;
19
21
  }
20
22
  /**
21
- * One key figure (`.kpi`): label, figure in mono with its unit, a colored delta and an optional
22
- * trend. With `href`, the whole tile is a router link.
23
+ * One key figure (`.kpi`): label, figure in mono with its unit, an optional supporting line, a
24
+ * colored delta and an optional trend. With `href`, the whole tile is a router link.
23
25
  */
24
- export declare function StatTile({ label, icon, value, unit, delta, trend, href, }: StatTileProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare function StatTile({ label, icon, value, unit, subtext, delta, trend, href, }: StatTileProps): import("react/jsx-runtime").JSX.Element;
@@ -5,10 +5,16 @@ export interface DateFieldProps {
5
5
  minDate?: Date;
6
6
  maxDate?: Date;
7
7
  error?: string;
8
+ /**
9
+ * Told whether what the field shows is a date it emitted: `false` while a half-typed or
10
+ * out-of-range date is shown (and not emitted), `true` again once the field holds a valid date
11
+ * or is emptied. A form that must not submit the previous value while one is refused reads it.
12
+ */
13
+ onValidityChange?(valid: boolean): void;
8
14
  }
9
15
  /**
10
16
  * A date input with its calendar. The label sits above the field (theme override of the input
11
17
  * label). `onChange` only receives a complete date inside `minDate`..`maxDate`, or `null` when the
12
18
  * field is emptied; a half-typed or out-of-range date shows a message and is not emitted.
13
19
  */
14
- export declare function DateField({ label, value, onChange, minDate, maxDate, error, }: DateFieldProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function DateField({ label, value, onChange, minDate, maxDate, error, onValidityChange, }: DateFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { A as e, c as a, C as n, D as C, R as i, V as t, d as r, f as A, r as k, e as c, u as l, b, a as f, w as u } from "./AbyssCookieConsentProvider-PchfQjs2.js";
2
- import { C as E } from "./CookieConsentSettings.component-D8G0H6Wl.js";
1
+ import { A as e, c as a, C as n, D as C, R as i, V as t, d as r, f as A, r as k, e as c, u as l, b, a as f, w as u } from "./AbyssCookieConsentProvider-DrciI_3p.js";
2
+ import { C as E } from "./CookieConsentSettings.component-BZ2JenJh.js";
3
3
  export {
4
4
  e as AbyssCookieConsentProvider,
5
5
  a as COOKIE_NAME,