@abyss-project/commons-front-core 18.1.1 → 18.1.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 (45) hide show
  1. package/CHANGELOG.md +112 -92
  2. package/catalog/pages/CookieConsent.tsx +112 -112
  3. package/catalog/pages/DeliveryHistory.tsx +79 -66
  4. package/catalog/pages/DeliverySubscriptions.tsx +127 -110
  5. package/catalog/pages/ScheduledTasks.tsx +117 -117
  6. package/catalog/specs/captures.spec.ts +145 -145
  7. package/catalog/specs/write-capture-index.ts +81 -81
  8. package/dist/{CookieConsentSettings-JQ9582_7.js → CookieConsentSettings-CLB1Mlv5.js} +1 -1
  9. package/dist/{Surface-dziv23sf.js → Surface-B_wIEB3b.js} +58 -48
  10. package/dist/{Tabs-_onUZBA-.js → Tabs-g7OaInVW.js} +47 -45
  11. package/dist/components/business/Deliveries/DeliveryHistory.component.d.ts +4 -3
  12. package/dist/components/business/Deliveries/DeliverySubscriptionForm.d.ts +3 -2
  13. package/dist/components/business/Deliveries/deliveries.logic.d.ts +11 -0
  14. package/dist/components/business/Deliveries/deliveries.types.d.ts +12 -4
  15. package/dist/cookie-consent.js +2 -2
  16. package/dist/{design-theme-B3C3z1gE.js → design-theme-Bcu3EMIB.js} +1 -1
  17. package/dist/{editors-BhQlONOy.js → editors-DdGMdSh2.js} +27 -27
  18. package/dist/editors.js +1 -1
  19. package/dist/hooks/use-rich-intl.hook.d.ts +12 -2
  20. package/dist/{index-D1mQgWN3.js → index-8LPOJLO8.js} +2 -2
  21. package/dist/{index-DLlWMDxB.js → index-B12llGmk.js} +4 -4
  22. package/dist/{index-yFJTDKIX.js → index-BFZvgteF.js} +2 -2
  23. package/dist/{index-B6w5_TeJ.js → index-BPF_Eb0U.js} +3 -3
  24. package/dist/{index-BGJobvxw.js → index-Be4u6vqC.js} +1 -1
  25. package/dist/{index-BcjlG5TB.js → index-CH4DiDpu.js} +2 -2
  26. package/dist/{index-DkZAsKob.js → index-CH67WfFq.js} +2 -2
  27. package/dist/{index-CJI1dJrw.js → index-CJ4-H8Ku.js} +3 -3
  28. package/dist/{index-BTDlbjWW.js → index-CNjQ-GTe.js} +2 -2
  29. package/dist/{index-BeMiREqf.js → index-CNx-Ok-t.js} +2 -2
  30. package/dist/{index-ytgNPz5f.js → index-CYGd_IjS.js} +2 -2
  31. package/dist/{index-BBF-FvT6.js → index-CbH8XAvZ.js} +2 -2
  32. package/dist/{index-DprTO7yi.js → index-Cwo-CFS8.js} +4 -4
  33. package/dist/{index-ByN6DcaL.js → index-DBctH8lu.js} +2 -2
  34. package/dist/{index-V4F4Sk7y.js → index-DMAlgOv6.js} +2 -2
  35. package/dist/{index-DNd8NZnu.js → index-DSIctaR0.js} +4 -4
  36. package/dist/{index-Dakpr4C1.js → index-DfGQhHnK.js} +3 -3
  37. package/dist/{index-B6LMTOKG.js → index-Vgp_uo0Y.js} +3 -3
  38. package/dist/{index-N4BwXTyk.js → index-_7HwdzPE.js} +2 -2
  39. package/dist/{index-y-TnfE6Z.js → index-cA9H4vaN.js} +2 -2
  40. package/dist/{index-BGAZK8Vk.js → index-zu64GUZu.js} +2 -2
  41. package/dist/index.js +5894 -5791
  42. package/dist/legacy.js +6 -6
  43. package/dist/translations/en.d.ts +6 -1
  44. package/dist/translations/fr.d.ts +6 -1
  45. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,92 +1,112 @@
1
- # Changelog — @abyss-project/commons-front-core
2
-
3
- ## 18.1.1
4
-
5
- - **Fix #747: the cookie banner no longer covers the main button of a modal whose surface creates a containing block** (the `backdrop-filter` of the legacy theme's dialog paper, but also `filter`, `transform`, `contain: paint`, `will-change: transform`, `container-type`...). The banner, `position: fixed`, stuck to the bottom of that surface instead of the window, over « Suivant ». While the surface hosts the banner, the properties a stylesheet gives to the surface and to its ancestors up to the modal root that create such a block are switched off by an inline style (properties an element carries inline, such as the translate of a sheet being dragged or the exit transform of a drawer, are never touched), and that style is removed when the banner leaves or the modal closes. Visible cost: the surface loses the blur or the filter, and an `@container` query defined on it or on an ancestor stops applying, for as long as the banner is shown in it. No API change; a front gets it by upgrading.
6
-
7
- ## 18.0.0
8
-
9
- Breaking: `VALIDITY_DAYS` is removed from the root, `./cookie-consent` and `./legacy`; read `CONSENT_VALIDITY_DAYS` instead (no consumer outside the core used it). Cards #753 and #747 (ADR-0261), plus the #286 admin additions. No signature narrowed.
10
-
11
- - **Validity of the choice: six months instead of 365 days.** `CONSENT_VALIDITY_DAYS` (183), `CONSENT_VALIDITY_MS` and `COOKIE_MAX_AGE_SECONDS` replace `VALIDITY_DAYS`: one constant for the cookie's `Max-Age` and for the validity check. Every stored choice older than six months asks again.
12
- - **`cookie-consent-contract`** (leaf file, no import) exports what a reader or writer of the apex cookie must agree on: `COOKIE_NAME`, `COOKIE_PATH`, `COOKIE_SAME_SITE`, the validity constants, `StoredConsent`, `encodeStoredConsent`, `decodeStoredConsent`, `isStoredConsentValid`. `COOKIE_NAME` and `StoredConsent` moved there from `cookie-storage.utils` (still exported by the root and by `./cookie-consent`).
13
- - **`openPreferences()`** on `useAbyssCookieConsent()` / `useOptionalAbyssCookieConsent()` (type `AbyssCookieConsentApi`, which extends `UseCookieConsent`): reopens the preferences modal, before or after a choice. `renderBanner` receives the `AbyssCookieConsentApi`. The modal is a new export, `CookieConsentPreferences`, mounted by the provider.
14
- - **« Gérer les cookies »** (`cookies.action.manage`) in `AccountMenu` and in `AbyssLayoutMenu` (`./legacy`) under an `AbyssCookieConsentProvider`.
15
- - **#747: the banner follows the open modal**: it is placed inside the modal's `aria-modal` surface (dialog paper, bottom sheet panel, drawer paper), out of the `aria-hidden` MUI puts on the page, and the surface stops above it. A front gets it by upgrading, with no change.
16
- - A choice stored in the account that is of another version or older than six months no longer silences the banner.
17
- - Banner texts (FR, EN): no third-party tracker is named; audience measurement is the Abyss usage tracking.
18
- - Card #286 (admin):
19
- - `NumberField`: new optional props `max` (clamped when the field is left, like `min`), `help`, `error`, `hideLabel`, `ariaLabel` and `testId`, named like those of `ComboboxField`; without them nothing changes.
20
- - `FilterBar`: with no filters (`filters` is `null`, `undefined` or `false`) the bar renders only its search field, at every width: below `md` it no longer draws the "Filtres" button nor opens an empty sheet, and from `md` up it no longer draws the inline filter container nor the "Réinitialiser" button. Without `search` either, it renders nothing. With filters nothing changes.
21
- - `AppShell`: the `space` prop is optional. Without it no space selector is rendered (sidebar, rail or mobile drawer) and the top card is a plain product mark (icon and name, nothing opens); with `space` nothing changes.
22
-
23
- ## 17.2.1
24
-
25
- Fixes after the P5 #792 L0 re-review. No export removed, no signature changed.
26
-
27
- - `DeliveryHistory`: the duration in the delivery detail has its own label (`deliveries.history.detail.duration`, « Durée » / « Duration ») instead of reusing « Livrée ».
28
- - `deliveries.duration-ms` formats the number (`{value, number} ms`): 30000 renders « 30 000 ms » in French, « 30,000 ms » in English.
29
- - `DeliverySubscriptions`: the URL column minimum width goes from 220 to 160 px; the table was 1120 px wide in a 1100 px frame and the row menu of each row was cut off (found by the new responsive assertion).
30
- - Tests: the Deliveries specs assert the label and the formatted duration; the catalogue responsive spec asserts that the actions button and the state badge of every row of `DeliverySubscriptions`, `DeliveryHistory` and `ScheduledTasks` sit inside their container at 1440 and 390 px, and that the badge text fits its background.
31
-
32
- ## 17.2.0
33
-
34
- Additions only (P5 #792, ADR-0257 decision 11). No export removed, no signature changed.
35
-
36
- - `DeliverySubscriptions`, `DeliveryHistory` and `ScheduledTasks` (`business`, `components/business/Deliveries/README.md`): the delivery subscriptions, the delivery history (detail and replay) and the scheduled tasks of AbyssFlow, fed by props that return promises. Translations `deliveries.*` (FR and EN).
37
- - `@abyss-project/flow` becomes an optional peer dependency (`^1.2.0`, the version that ships the delivery models), imported as types only: a host that does not use these components does not install it.
38
- - `@abyss-project/main` is resolved to 32.0.0 (P5 #792: Flow permissions, webhook delivery metric, signature helper).
39
-
40
- ## 17.1.0
41
-
42
- No export removed, no signature changed (card #286, toasts of the satellites).
43
-
44
- **Migration required.** A consumer that keeps the react-toastify `ToastContainer` and does not mount the core's `ToastProvider` no longer sees the errors of `toastErrorUnlessQuotaRefusal`, `toastErrorUnlessAnyQuotaRefusal`, `CloudImport`, `DropZone` and `ProjectLinkSelector`: they now go to the core's `toast`, which only a mounted `ToastProvider` displays. Mount `ToastProvider` and move your own calls to the core's `toast`.
45
-
46
- - `toastErrorUnlessQuotaRefusal`, `toastErrorUnlessAnyQuotaRefusal` and the legacy `CloudImport`, `DropZone` and `ProjectLinkSelector` show their errors through the core's `toast`: they appear in the mounted `ToastProvider`, no longer in a react-toastify `ToastContainer`.
47
- - `react-toastify` is no longer a peer dependency (nor external in the build): nothing in the package imports it any more. A consumer that mounts `ToastProvider` and no longer imports it can drop it from its `package.json`. A guard (`src/design-system-toasts.spec.ts`) keeps it out of `src/` and `catalog/`.
48
-
49
- ## 17.0.0
50
-
51
- Breaking (card #286 M6): `AbyssToast` is removed from `./legacy`. Mount `ToastProvider` and call the core's `toast`. `react-toastify` stays a peer dependency while the satellites use it. In 17.0.x, a satellite that moves without migrating keeps its react-toastify `ToastContainer` and only loses the `AbyssToast` styling; from 17.1.0 it must mount `ToastProvider` (see below).
52
-
53
- - `@abyss-project/main` is resolved to 31.1.0 (P4b #783, workflows in AbyssFlow).
54
-
55
- ## 16.1.1
56
-
57
- No export or signature changed (card #782).
58
-
59
- - MUI icons are imported one by one (`@mui/icons-material/<Icon>`) in `legacy/` and the design theme: the published `dist/legacy.js` and `dist/design-theme-*.js` no longer import the `@mui/icons-material` barrel (~10 000 modules), which every vitest test file of a consumer loaded again. Measured: importing `dist/legacy.js` 33-41 s -> 9 s, the design theme 22-25 s -> 4 s.
60
- - ESLint `@typescript-eslint/no-restricted-imports` forbids the barrel in this package (type imports allowed).
61
- - `load-safety.spec.ts` no longer mocks the barrel.
62
-
63
- ## 16.1.0
64
-
65
- Additions only (card #227, lot D2, ADR-0248). No export removed, no signature changed.
66
-
67
- ### Motion
68
-
69
- - `motion.enter` / `motion.exit`, `Appear`, `AppearList` (props `enter`, `exit`, `itemSx`) and `useAddedKeys` (`src/motion/README.md`): items added after the first render fade in with a 4 px rise, removed ones fade out; nothing is animated at the first render. The animation sits on a wrapper, so an inline `transform` (dnd-kit) is kept.
70
- - `transitionOf` is exported.
71
- - `DataTable` gains `animateAdded`.
72
-
73
- ### Reduced motion, global
74
-
75
- - `createAbyssTheme(mode, { reducedMotion })` (and the legacy `createAbyssTheme(mode, { reducedMotion })`) sets every duration of the theme to 0. `AbyssThemeProvider` follows `prefers-reduced-motion: reduce`; `DesignCssVariables` writes the rule that sets `--abyss-duration-*` to `0ms`. Visible effect on every front that takes this version: no motion when the system asks for reduced motion. A legacy host has to read `REDUCED_MOTION_QUERY` and pass the option.
76
-
77
- ### File drop
78
-
79
- - `useFileDropTarget` (reacts only to a drag that carries files, the innermost target wins) and `DropTargetOverlay` (README), label `ds.inputs.drop-target.label`.
80
- - `MarkdownEditor` takes a `ref`: `MarkdownEditorHandle.appendFiles(files)` adds files at the end of the document.
81
-
82
- ## 16.0.0
83
-
84
- ### Feedback intake moves from Console to Workspace (P4a, D25)
85
-
86
- - `fileInternalTicketIntake` (Internal Tickets, `@abyss-project/console`) is replaced by `fileDeskIntake`
87
- (Desk, `@abyss-project/workspace`). The RUM feedback of `AbyssRumProvider` is filed on
88
- `/public/desk/intake/:slug` of AbyssWorkspace.
89
- - `AbyssRumFeedbackTicket.internalTicketSectionId` is renamed `deskSectionId`.
90
- - `@abyss-project/console` is no longer a peer dependency nor a dev dependency of the package.
91
- - `@abyss-project/workspace` `^4.6.0` is now a peer dependency. A front that enables the RUM feedback
92
- must call `AbyssWorkspaceCore.setConfig` with its `VITE_ABYSS_WORKSPACE_URL_API`.
1
+ # Changelog — @abyss-project/commons-front-core
2
+
3
+ ## 18.1.3
4
+
5
+ - `DeliverySubscriptions`: the URL of a mobile card really wraps: the card's primary line is nowrap and ellipsised, the URL now overrides it.
6
+ - `Callout`: on a narrow screen, a long unbreakable content (a `CopyField`) no longer pushes the text out of the callout.
7
+
8
+ ## 18.1.2
9
+
10
+ - `DeliverySubscriptions`: on the mobile card the URL is shown whole and wraps (no middle ellipsis); the history column header « Code de réponse » / « Response code » becomes « Code HTTP » / « HTTP code » so it is no longer cut.
11
+
12
+ ## 18.1.1
13
+
14
+ - **Fix #747: the cookie banner no longer covers the main button of a modal whose surface creates a containing block** (the `backdrop-filter` of the legacy theme's dialog paper, but also `filter`, `transform`, `contain: paint`, `will-change: transform`, `container-type`...). The banner, `position: fixed`, stuck to the bottom of that surface instead of the window, over « Suivant ». While the surface hosts the banner, the properties a stylesheet gives to the surface and to its ancestors up to the modal root that create such a block are switched off by an inline style (properties an element carries inline, such as the translate of a sheet being dragged or the exit transform of a drawer, are never touched), and that style is removed when the banner leaves or the modal closes. Visible cost: the surface loses the blur or the filter, and an `@container` query defined on it or on an ancestor stops applying, for as long as the banner is shown in it. No API change; a front gets it by upgrading.
15
+
16
+ ## 18.1.0
17
+
18
+ Fixes of the P5 #792 L1 review. No export removed; two props become optional, one is added.
19
+
20
+ - `DeliverySubscriptions` and `DeliveryHistory`: `flowUrl` is optional. Without it, no « Ouvrir dans Flow » link is drawn (`ScheduledTasks` still requires it).
21
+ - `DeliveryHistory`: new optional `getSubscription()`. The full URL and the events of the subscription are shown under the title, with a message when it cannot be loaded.
22
+ - `DeliverySubscriptions`: a URL is cut in the middle, not at its end. The end of the path stays visible, so two URLs of one host can be told apart, and the full URL is shown in a tooltip and read by assistive technologies. This applies to the table and to the mobile list. The URL column gets 200 px at minimum. The failures column narrows to 96 px, and its header becomes « Échecs » / « Failures ».
23
+ - `DeliverySubscriptions`: when `sources` holds one source, the source filter, the « Source » column and the source choice of the form are not drawn.
24
+ - `DeliveryHistory`: the detail section showing `payload` is titled « Données de l’événement » / « Event data » (key `deliveries.history.detail.event-data`, replacing `request-body`). Flow stores the event data, not the envelope that was sent.
25
+ - Theme: the `Switch` thumb is ringed in `border.control`, so a light thumb shows on a light surface and a dark one on a dark surface.
26
+
27
+ ## 18.0.0
28
+
29
+ Breaking: `VALIDITY_DAYS` is removed from the root, `./cookie-consent` and `./legacy`; read `CONSENT_VALIDITY_DAYS` instead (no consumer outside the core used it). Cards #753 and #747 (ADR-0261), plus the #286 admin additions. No signature narrowed.
30
+
31
+ - **Validity of the choice: six months instead of 365 days.** `CONSENT_VALIDITY_DAYS` (183), `CONSENT_VALIDITY_MS` and `COOKIE_MAX_AGE_SECONDS` replace `VALIDITY_DAYS`: one constant for the cookie's `Max-Age` and for the validity check. Every stored choice older than six months asks again.
32
+ - **`cookie-consent-contract`** (leaf file, no import) exports what a reader or writer of the apex cookie must agree on: `COOKIE_NAME`, `COOKIE_PATH`, `COOKIE_SAME_SITE`, the validity constants, `StoredConsent`, `encodeStoredConsent`, `decodeStoredConsent`, `isStoredConsentValid`. `COOKIE_NAME` and `StoredConsent` moved there from `cookie-storage.utils` (still exported by the root and by `./cookie-consent`).
33
+ - **`openPreferences()`** on `useAbyssCookieConsent()` / `useOptionalAbyssCookieConsent()` (type `AbyssCookieConsentApi`, which extends `UseCookieConsent`): reopens the preferences modal, before or after a choice. `renderBanner` receives the `AbyssCookieConsentApi`. The modal is a new export, `CookieConsentPreferences`, mounted by the provider.
34
+ - **« Gérer les cookies »** (`cookies.action.manage`) in `AccountMenu` and in `AbyssLayoutMenu` (`./legacy`) under an `AbyssCookieConsentProvider`.
35
+ - **#747: the banner follows the open modal**: it is placed inside the modal's `aria-modal` surface (dialog paper, bottom sheet panel, drawer paper), out of the `aria-hidden` MUI puts on the page, and the surface stops above it. A front gets it by upgrading, with no change.
36
+ - A choice stored in the account that is of another version or older than six months no longer silences the banner.
37
+ - Banner texts (FR, EN): no third-party tracker is named; audience measurement is the Abyss usage tracking.
38
+ - Card #286 (admin):
39
+ - `NumberField`: new optional props `max` (clamped when the field is left, like `min`), `help`, `error`, `hideLabel`, `ariaLabel` and `testId`, named like those of `ComboboxField`; without them nothing changes.
40
+ - `FilterBar`: with no filters (`filters` is `null`, `undefined` or `false`) the bar renders only its search field, at every width: below `md` it no longer draws the "Filtres" button nor opens an empty sheet, and from `md` up it no longer draws the inline filter container nor the "Réinitialiser" button. Without `search` either, it renders nothing. With filters nothing changes.
41
+ - `AppShell`: the `space` prop is optional. Without it no space selector is rendered (sidebar, rail or mobile drawer) and the top card is a plain product mark (icon and name, nothing opens); with `space` nothing changes.
42
+
43
+ ## 17.2.1
44
+
45
+ Fixes after the P5 #792 L0 re-review. No export removed, no signature changed.
46
+
47
+ - `DeliveryHistory`: the duration in the delivery detail has its own label (`deliveries.history.detail.duration`, « Durée » / « Duration ») instead of reusing « Livrée ».
48
+ - `deliveries.duration-ms` formats the number (`{value, number} ms`): 30000 renders « 30 000 ms » in French, « 30,000 ms » in English.
49
+ - `DeliverySubscriptions`: the URL column minimum width goes from 220 to 160 px; the table was 1120 px wide in a 1100 px frame and the row menu of each row was cut off (found by the new responsive assertion).
50
+ - Tests: the Deliveries specs assert the label and the formatted duration; the catalogue responsive spec asserts that the actions button and the state badge of every row of `DeliverySubscriptions`, `DeliveryHistory` and `ScheduledTasks` sit inside their container at 1440 and 390 px, and that the badge text fits its background.
51
+
52
+ ## 17.2.0
53
+
54
+ Additions only (P5 #792, ADR-0257 decision 11). No export removed, no signature changed.
55
+
56
+ - `DeliverySubscriptions`, `DeliveryHistory` and `ScheduledTasks` (`business`, `components/business/Deliveries/README.md`): the delivery subscriptions, the delivery history (detail and replay) and the scheduled tasks of AbyssFlow, fed by props that return promises. Translations `deliveries.*` (FR and EN).
57
+ - `@abyss-project/flow` becomes an optional peer dependency (`^1.2.0`, the version that ships the delivery models), imported as types only: a host that does not use these components does not install it.
58
+ - `@abyss-project/main` is resolved to 32.0.0 (P5 #792: Flow permissions, webhook delivery metric, signature helper).
59
+
60
+ ## 17.1.0
61
+
62
+ No export removed, no signature changed (card #286, toasts of the satellites).
63
+
64
+ **Migration required.** A consumer that keeps the react-toastify `ToastContainer` and does not mount the core's `ToastProvider` no longer sees the errors of `toastErrorUnlessQuotaRefusal`, `toastErrorUnlessAnyQuotaRefusal`, `CloudImport`, `DropZone` and `ProjectLinkSelector`: they now go to the core's `toast`, which only a mounted `ToastProvider` displays. Mount `ToastProvider` and move your own calls to the core's `toast`.
65
+
66
+ - `toastErrorUnlessQuotaRefusal`, `toastErrorUnlessAnyQuotaRefusal` and the legacy `CloudImport`, `DropZone` and `ProjectLinkSelector` show their errors through the core's `toast`: they appear in the mounted `ToastProvider`, no longer in a react-toastify `ToastContainer`.
67
+ - `react-toastify` is no longer a peer dependency (nor external in the build): nothing in the package imports it any more. A consumer that mounts `ToastProvider` and no longer imports it can drop it from its `package.json`. A guard (`src/design-system-toasts.spec.ts`) keeps it out of `src/` and `catalog/`.
68
+
69
+ ## 17.0.0
70
+
71
+ Breaking (card #286 M6): `AbyssToast` is removed from `./legacy`. Mount `ToastProvider` and call the core's `toast`. `react-toastify` stays a peer dependency while the satellites use it. In 17.0.x, a satellite that moves without migrating keeps its react-toastify `ToastContainer` and only loses the `AbyssToast` styling; from 17.1.0 it must mount `ToastProvider` (see below).
72
+
73
+ - `@abyss-project/main` is resolved to 31.1.0 (P4b #783, workflows in AbyssFlow).
74
+
75
+ ## 16.1.1
76
+
77
+ No export or signature changed (card #782).
78
+
79
+ - MUI icons are imported one by one (`@mui/icons-material/<Icon>`) in `legacy/` and the design theme: the published `dist/legacy.js` and `dist/design-theme-*.js` no longer import the `@mui/icons-material` barrel (~10 000 modules), which every vitest test file of a consumer loaded again. Measured: importing `dist/legacy.js` 33-41 s -> 9 s, the design theme 22-25 s -> 4 s.
80
+ - ESLint `@typescript-eslint/no-restricted-imports` forbids the barrel in this package (type imports allowed).
81
+ - `load-safety.spec.ts` no longer mocks the barrel.
82
+
83
+ ## 16.1.0
84
+
85
+ Additions only (card #227, lot D2, ADR-0248). No export removed, no signature changed.
86
+
87
+ ### Motion
88
+
89
+ - `motion.enter` / `motion.exit`, `Appear`, `AppearList` (props `enter`, `exit`, `itemSx`) and `useAddedKeys` (`src/motion/README.md`): items added after the first render fade in with a 4 px rise, removed ones fade out; nothing is animated at the first render. The animation sits on a wrapper, so an inline `transform` (dnd-kit) is kept.
90
+ - `transitionOf` is exported.
91
+ - `DataTable` gains `animateAdded`.
92
+
93
+ ### Reduced motion, global
94
+
95
+ - `createAbyssTheme(mode, { reducedMotion })` (and the legacy `createAbyssTheme(mode, { reducedMotion })`) sets every duration of the theme to 0. `AbyssThemeProvider` follows `prefers-reduced-motion: reduce`; `DesignCssVariables` writes the rule that sets `--abyss-duration-*` to `0ms`. Visible effect on every front that takes this version: no motion when the system asks for reduced motion. A legacy host has to read `REDUCED_MOTION_QUERY` and pass the option.
96
+
97
+ ### File drop
98
+
99
+ - `useFileDropTarget` (reacts only to a drag that carries files, the innermost target wins) and `DropTargetOverlay` (README), label `ds.inputs.drop-target.label`.
100
+ - `MarkdownEditor` takes a `ref`: `MarkdownEditorHandle.appendFiles(files)` adds files at the end of the document.
101
+
102
+ ## 16.0.0
103
+
104
+ ### Feedback intake moves from Console to Workspace (P4a, D25)
105
+
106
+ - `fileInternalTicketIntake` (Internal Tickets, `@abyss-project/console`) is replaced by `fileDeskIntake`
107
+ (Desk, `@abyss-project/workspace`). The RUM feedback of `AbyssRumProvider` is filed on
108
+ `/public/desk/intake/:slug` of AbyssWorkspace.
109
+ - `AbyssRumFeedbackTicket.internalTicketSectionId` is renamed `deskSectionId`.
110
+ - `@abyss-project/console` is no longer a peer dependency nor a dev dependency of the package.
111
+ - `@abyss-project/workspace` `^4.6.0` is now a peer dependency. A front that enables the RUM feedback
112
+ must call `AbyssWorkspaceCore.setConfig` with its `VITE_ABYSS_WORKSPACE_URL_API`.
@@ -1,112 +1,112 @@
1
- import { useState } from 'react';
2
- import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
3
- import Button from '@mui/material/Button';
4
- import Dialog from '@mui/material/Dialog';
5
- import DialogActions from '@mui/material/DialogActions';
6
- import DialogContent from '@mui/material/DialogContent';
7
- import DialogTitle from '@mui/material/DialogTitle';
8
- import { AbyssCookieConsentProvider } from '../../src/components/business/CookieConsent/AbyssCookieConsentProvider';
9
- import { Drawer } from '../../src/components/layers/Drawer/Drawer';
10
- import { Modal } from '../../src/components/layers/Modal/Modal';
11
- import { clearCookie } from '../../src/utils/cookie-storage.utils';
12
- import { CONSENT_VERSION } from '../../src/utils/cookie-consent-contract';
13
- import { Example, Showcase } from '../frame';
14
-
15
- const queryClient = new QueryClient();
16
-
17
- /** A property that makes the surface the containing block of what is `position: fixed` inside it. */
18
- enum SurfaceEffect {
19
- BackdropFilter = 'backdrop-filter',
20
- Filter = 'filter',
21
- }
22
-
23
- const SURFACE_STYLES: Record<SurfaceEffect, Record<string, string>> = {
24
- // The legacy theme's dialog paper (frosted glass).
25
- [SurfaceEffect.BackdropFilter]: { backdropFilter: 'blur(12px)' },
26
- [SurfaceEffect.Filter]: { filter: 'drop-shadow(0 2px 4px rgba(0,0,0,0.3))' },
27
- };
28
-
29
- /** The real provider and banner, on the page: a visitor who has not chosen yet sees the banner. */
30
- export const CookieConsentPage = () => {
31
- // A choice made in an earlier visit of the catalog would hide the banner this page shows.
32
- useState(() => clearCookie({}));
33
- const [wizardOpen, setWizardOpen] = useState(false);
34
- const [drawerOpen, setDrawerOpen] = useState(false);
35
- const [effect, setEffect] = useState<SurfaceEffect | null>(null);
36
- return (
37
- <QueryClientProvider client={queryClient}>
38
- <AbyssCookieConsentProvider
39
- consentVersion={CONSENT_VERSION}
40
- isAuthenticated={false}
41
- >
42
- <Showcase
43
- family="Métier"
44
- name="CookieConsent"
45
- description="Bandeau de consentement en bas à droite (pleine largeur sous 768 px) : accepter et refuser pèsent autant ; « Personnaliser » ouvre la fenêtre de réglages, et le bandeau s'efface tant qu'elle est ouverte. Quand une modale est ouverte, le bandeau la suit : il reste atteignable au clavier et par un lecteur d'écran, et la modale s'arrête au-dessus de lui."
46
- >
47
- <Example title="Bandeau, réglages et modale ouverte">
48
- <Button variant="outlined" onClick={() => setWizardOpen(true)}>
49
- Ouvrir l&apos;assistant
50
- </Button>
51
- <Button variant="outlined" onClick={() => setDrawerOpen(true)}>
52
- Ouvrir l&apos;aperçu
53
- </Button>
54
- <Button
55
- variant="outlined"
56
- onClick={() => setEffect(SurfaceEffect.BackdropFilter)}
57
- >
58
- Ouvrir la fenêtre à fond flouté
59
- </Button>
60
- <Button
61
- variant="outlined"
62
- onClick={() => setEffect(SurfaceEffect.Filter)}
63
- >
64
- Ouvrir la fenêtre à filtre
65
- </Button>
66
- </Example>
67
- </Showcase>
68
- <Modal
69
- open={wizardOpen}
70
- onClose={() => setWizardOpen(false)}
71
- title="Assistant de démarrage"
72
- actions={
73
- <Button variant="contained" onClick={() => setWizardOpen(false)}>
74
- Suivant
75
- </Button>
76
- }
77
- >
78
- <p>Étape 1 sur 3</p>
79
- </Modal>
80
- <Dialog
81
- open={effect !== null}
82
- onClose={() => setEffect(null)}
83
- aria-labelledby="surface-dialog-title"
84
- slotProps={{
85
- paper: {
86
- sx: effect === null ? undefined : SURFACE_STYLES[effect],
87
- },
88
- }}
89
- >
90
- <DialogTitle id="surface-dialog-title">
91
- Assistant à surface spéciale
92
- </DialogTitle>
93
- <DialogContent>
94
- <p>Étape 1 sur 3</p>
95
- </DialogContent>
96
- <DialogActions>
97
- <Button variant="contained" onClick={() => setEffect(null)}>
98
- Suivant
99
- </Button>
100
- </DialogActions>
101
- </Dialog>
102
- <Drawer
103
- open={drawerOpen}
104
- onClose={() => setDrawerOpen(false)}
105
- title="Aperçu"
106
- >
107
- <p>Contenu de l&apos;aperçu</p>
108
- </Drawer>
109
- </AbyssCookieConsentProvider>
110
- </QueryClientProvider>
111
- );
112
- };
1
+ import { useState } from 'react';
2
+ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
3
+ import Button from '@mui/material/Button';
4
+ import Dialog from '@mui/material/Dialog';
5
+ import DialogActions from '@mui/material/DialogActions';
6
+ import DialogContent from '@mui/material/DialogContent';
7
+ import DialogTitle from '@mui/material/DialogTitle';
8
+ import { AbyssCookieConsentProvider } from '../../src/components/business/CookieConsent/AbyssCookieConsentProvider';
9
+ import { Drawer } from '../../src/components/layers/Drawer/Drawer';
10
+ import { Modal } from '../../src/components/layers/Modal/Modal';
11
+ import { clearCookie } from '../../src/utils/cookie-storage.utils';
12
+ import { CONSENT_VERSION } from '../../src/utils/cookie-consent-contract';
13
+ import { Example, Showcase } from '../frame';
14
+
15
+ const queryClient = new QueryClient();
16
+
17
+ /** A property that makes the surface the containing block of what is `position: fixed` inside it. */
18
+ enum SurfaceEffect {
19
+ BackdropFilter = 'backdrop-filter',
20
+ Filter = 'filter',
21
+ }
22
+
23
+ const SURFACE_STYLES: Record<SurfaceEffect, Record<string, string>> = {
24
+ // The legacy theme's dialog paper (frosted glass).
25
+ [SurfaceEffect.BackdropFilter]: { backdropFilter: 'blur(12px)' },
26
+ [SurfaceEffect.Filter]: { filter: 'drop-shadow(0 2px 4px rgba(0,0,0,0.3))' },
27
+ };
28
+
29
+ /** The real provider and banner, on the page: a visitor who has not chosen yet sees the banner. */
30
+ export const CookieConsentPage = () => {
31
+ // A choice made in an earlier visit of the catalog would hide the banner this page shows.
32
+ useState(() => clearCookie({}));
33
+ const [wizardOpen, setWizardOpen] = useState(false);
34
+ const [drawerOpen, setDrawerOpen] = useState(false);
35
+ const [effect, setEffect] = useState<SurfaceEffect | null>(null);
36
+ return (
37
+ <QueryClientProvider client={queryClient}>
38
+ <AbyssCookieConsentProvider
39
+ consentVersion={CONSENT_VERSION}
40
+ isAuthenticated={false}
41
+ >
42
+ <Showcase
43
+ family="Métier"
44
+ name="CookieConsent"
45
+ description="Bandeau de consentement en bas à droite (pleine largeur sous 768 px) : accepter et refuser pèsent autant ; « Personnaliser » ouvre la fenêtre de réglages, et le bandeau s'efface tant qu'elle est ouverte. Quand une modale est ouverte, le bandeau la suit : il reste atteignable au clavier et par un lecteur d'écran, et la modale s'arrête au-dessus de lui."
46
+ >
47
+ <Example title="Bandeau, réglages et modale ouverte">
48
+ <Button variant="outlined" onClick={() => setWizardOpen(true)}>
49
+ Ouvrir l&apos;assistant
50
+ </Button>
51
+ <Button variant="outlined" onClick={() => setDrawerOpen(true)}>
52
+ Ouvrir l&apos;aperçu
53
+ </Button>
54
+ <Button
55
+ variant="outlined"
56
+ onClick={() => setEffect(SurfaceEffect.BackdropFilter)}
57
+ >
58
+ Ouvrir la fenêtre à fond flouté
59
+ </Button>
60
+ <Button
61
+ variant="outlined"
62
+ onClick={() => setEffect(SurfaceEffect.Filter)}
63
+ >
64
+ Ouvrir la fenêtre à filtre
65
+ </Button>
66
+ </Example>
67
+ </Showcase>
68
+ <Modal
69
+ open={wizardOpen}
70
+ onClose={() => setWizardOpen(false)}
71
+ title="Assistant de démarrage"
72
+ actions={
73
+ <Button variant="contained" onClick={() => setWizardOpen(false)}>
74
+ Suivant
75
+ </Button>
76
+ }
77
+ >
78
+ <p>Étape 1 sur 3</p>
79
+ </Modal>
80
+ <Dialog
81
+ open={effect !== null}
82
+ onClose={() => setEffect(null)}
83
+ aria-labelledby="surface-dialog-title"
84
+ slotProps={{
85
+ paper: {
86
+ sx: effect === null ? undefined : SURFACE_STYLES[effect],
87
+ },
88
+ }}
89
+ >
90
+ <DialogTitle id="surface-dialog-title">
91
+ Assistant à surface spéciale
92
+ </DialogTitle>
93
+ <DialogContent>
94
+ <p>Étape 1 sur 3</p>
95
+ </DialogContent>
96
+ <DialogActions>
97
+ <Button variant="contained" onClick={() => setEffect(null)}>
98
+ Suivant
99
+ </Button>
100
+ </DialogActions>
101
+ </Dialog>
102
+ <Drawer
103
+ open={drawerOpen}
104
+ onClose={() => setDrawerOpen(false)}
105
+ title="Aperçu"
106
+ >
107
+ <p>Contenu de l&apos;aperçu</p>
108
+ </Drawer>
109
+ </AbyssCookieConsentProvider>
110
+ </QueryClientProvider>
111
+ );
112
+ };
@@ -1,66 +1,79 @@
1
- import { DeliveryHistory } from '../../src/components/business/Deliveries/DeliveryHistory.component';
2
- import type { DeliveryHistoryProps } from '../../src/components/business/Deliveries/deliveries.types';
3
- import {
4
- delivery,
5
- deliveryStatus,
6
- failedDelivery,
7
- page,
8
- } from '../../src/components/business/Deliveries/test-support/deliveries.fixtures';
9
- import { Example, LastEvent, Showcase, useEventLog } from '../frame';
10
-
11
- const POPULATED = [
12
- delivery(),
13
- failedDelivery(),
14
- delivery({
15
- id: 'delivery-3',
16
- eventKey: 'event-3',
17
- deliveryId: 'sub-1:event-3',
18
- status: deliveryStatus('RETRYING'),
19
- attemptCount: 2,
20
- lastResponseCode: 502,
21
- lastResponseBody: null,
22
- lastError: 'HTTP 502',
23
- deliveredAt: null,
24
- nextAttemptAt: new Date('2026-11-03T10:15:00Z'),
25
- }),
26
- ];
27
-
28
- export const DeliveryHistoryPage = () => {
29
- const { log } = useEventLog();
30
- const base = (list: DeliveryHistoryProps['list']): DeliveryHistoryProps => ({
31
- list,
32
- get: async (id) => POPULATED.find((row) => row.id === id) ?? delivery(),
33
- replayDelivery: async (id) => log(`rejouer ${id}`),
34
- canReplay: true,
35
- flowUrl: 'https://flow.abyss.example/deliveries',
36
- });
37
- return (
38
- <Showcase
39
- family="Métier"
40
- name="DeliveryHistory"
41
- description="L'historique des livraisons : filtre de statut, détail en panneau (corps, en-têtes envoyés, réponse, déroulé) et rejeu d'une livraison terminée."
42
- >
43
- <Example title="Peuplé" maxWidth={1100}>
44
- <DeliveryHistory {...base(async () => page(POPULATED))} />
45
- </Example>
46
- <Example title="Vide" maxWidth={1100}>
47
- <DeliveryHistory {...base(async () => page([]))} />
48
- </Example>
49
- <Example title="En cours de chargement" maxWidth={1100}>
50
- <DeliveryHistory {...base(() => new Promise(() => undefined))} />
51
- </Example>
52
- <Example title="Le chargement a échoué" maxWidth={1100}>
53
- <DeliveryHistory
54
- {...base(() => Promise.reject(new Error('Flow indisponible')))}
55
- />
56
- </Example>
57
- <Example title="Sans droit de rejeu" maxWidth={1100}>
58
- <DeliveryHistory
59
- {...base(async () => page(POPULATED))}
60
- canReplay={false}
61
- />
62
- </Example>
63
- <LastEvent />
64
- </Showcase>
65
- );
66
- };
1
+ import { DeliveryHistory } from '../../src/components/business/Deliveries/DeliveryHistory.component';
2
+ import type { DeliveryHistoryProps } from '../../src/components/business/Deliveries/deliveries.types';
3
+ import {
4
+ delivery,
5
+ deliveryStatus,
6
+ failedDelivery,
7
+ page,
8
+ subscription,
9
+ } from '../../src/components/business/Deliveries/test-support/deliveries.fixtures';
10
+ import { Example, LastEvent, Showcase, useEventLog } from '../frame';
11
+
12
+ const POPULATED = [
13
+ delivery(),
14
+ failedDelivery(),
15
+ delivery({
16
+ id: 'delivery-3',
17
+ eventKey: 'event-3',
18
+ deliveryId: 'sub-1:event-3',
19
+ status: deliveryStatus('RETRYING'),
20
+ attemptCount: 2,
21
+ lastResponseCode: 502,
22
+ lastResponseBody: null,
23
+ lastError: 'HTTP 502',
24
+ deliveredAt: null,
25
+ nextAttemptAt: new Date('2026-11-03T10:15:00Z'),
26
+ }),
27
+ ];
28
+
29
+ export const DeliveryHistoryPage = () => {
30
+ const { log } = useEventLog();
31
+ const base = (list: DeliveryHistoryProps['list']): DeliveryHistoryProps => ({
32
+ list,
33
+ get: async (id) => POPULATED.find((row) => row.id === id) ?? delivery(),
34
+ replayDelivery: async (id) => log(`rejouer ${id}`),
35
+ canReplay: true,
36
+ getSubscription: async () =>
37
+ subscription({
38
+ url: 'https://ops.example.com/webhooks/abyss/monitor-events/production',
39
+ eventTypes: ['MONITOR_EVENT', 'MONITOR_SENTINEL'],
40
+ }),
41
+ flowUrl: 'https://flow.abyss.example/deliveries',
42
+ });
43
+ return (
44
+ <Showcase
45
+ family="Métier"
46
+ name="DeliveryHistory"
47
+ description="L'historique des livraisons d'un abonnement (URL et événements sous le titre) : filtre de statut, détail en panneau (données de l'événement, en-têtes envoyés, réponse, déroulé) et rejeu d'une livraison terminée."
48
+ >
49
+ <Example title="Peuplé" maxWidth={1100}>
50
+ <DeliveryHistory {...base(async () => page(POPULATED))} />
51
+ </Example>
52
+ <Example title="Vide" maxWidth={1100}>
53
+ <DeliveryHistory {...base(async () => page([]))} />
54
+ </Example>
55
+ <Example title="En cours de chargement" maxWidth={1100}>
56
+ <DeliveryHistory {...base(() => new Promise(() => undefined))} />
57
+ </Example>
58
+ <Example title="Le chargement a échoué" maxWidth={1100}>
59
+ <DeliveryHistory
60
+ {...base(() => Promise.reject(new Error('Flow indisponible')))}
61
+ />
62
+ </Example>
63
+ <Example title="Sans abonnement ni lien vers Flow" maxWidth={1100}>
64
+ <DeliveryHistory
65
+ {...base(async () => page(POPULATED))}
66
+ getSubscription={undefined}
67
+ flowUrl={undefined}
68
+ />
69
+ </Example>
70
+ <Example title="Sans droit de rejeu" maxWidth={1100}>
71
+ <DeliveryHistory
72
+ {...base(async () => page(POPULATED))}
73
+ canReplay={false}
74
+ />
75
+ </Example>
76
+ <LastEvent />
77
+ </Showcase>
78
+ );
79
+ };