@abyss-project/commons-front-core 20.2.0 → 20.4.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 (55) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/catalog/captures-plan.ts +10 -2
  3. package/catalog/pages/DeliveryHistory.tsx +142 -142
  4. package/catalog/pages/DeliverySubscriptions.tsx +50 -2
  5. package/catalog/pages/ScheduledTasks.tsx +116 -2
  6. package/catalog/specs/captures.spec.ts +156 -145
  7. package/catalog/specs/write-capture-index.ts +82 -81
  8. package/dist/{CookieConsentSettings-iQ9XTosT.js → CookieConsentSettings-JQqB3ZoC.js} +258 -236
  9. package/dist/{Surface-DmHRzUtQ.js → Surface-rKrLIx9x.js} +170 -44
  10. package/dist/{Tabs-CxBeR0D-.js → Tabs-C3ZY5xT8.js} +1 -1
  11. package/dist/components/business/Deliveries/DeliverySubscriptionForm.d.ts +7 -2
  12. package/dist/components/business/Deliveries/ScheduledTaskForm.d.ts +8 -2
  13. package/dist/components/business/Deliveries/ScheduledTaskPanel.d.ts +30 -0
  14. package/dist/components/business/Deliveries/ScheduledTasks.component.d.ts +3 -2
  15. package/dist/components/business/Deliveries/deliveries.logic.d.ts +36 -1
  16. package/dist/components/business/Deliveries/deliveries.types.d.ts +68 -3
  17. package/dist/components/business/Deliveries/test-support/deliveries.fixtures.d.ts +2 -1
  18. package/dist/components/layers/Toast/dialog-foot-clearance.d.ts +2 -2
  19. package/dist/components/layers/Toast/toast-clearance-registry.d.ts +14 -0
  20. package/dist/components/layers/Toast/toast-clearance.d.ts +4 -3
  21. package/dist/cookie-consent.js +2 -2
  22. package/dist/{design-theme-HWymeGb7.js → design-theme-CeGUipuM.js} +877 -872
  23. package/dist/{editors-BmRsTu0H.js → editors-DNQ00p6Y.js} +27 -27
  24. package/dist/editors.js +1 -1
  25. package/dist/hooks/index.d.ts +1 -0
  26. package/dist/hooks/use-rich-intl.hook.d.ts +134 -16
  27. package/dist/hooks/use-toast-clearance.hook.d.ts +14 -0
  28. package/dist/hooks/use-toast-clearance.hook.spec.d.ts +1 -0
  29. package/dist/{index-ChCpWPzk.js → index-2mUgohFa.js} +4 -4
  30. package/dist/{index-DnweGlM_.js → index-7lQ_E_am.js} +2 -2
  31. package/dist/{index-Dco3zEwV.js → index-8lBj2Ffk.js} +2 -2
  32. package/dist/{index-BAH9H4GE.js → index-BQUxvLoP.js} +3 -3
  33. package/dist/{index-DLIvsZA_.js → index-BQlO5Fp0.js} +2 -2
  34. package/dist/{index-CsZJyqSF.js → index-BXfdxGL2.js} +2 -2
  35. package/dist/{index-Cv8TWKKk.js → index-CHy_RxpP.js} +2 -2
  36. package/dist/{index-DVyE9B4I.js → index-CIpdjZHz.js} +2 -2
  37. package/dist/{index-BTwuilx5.js → index-CJnZcgwL.js} +3 -3
  38. package/dist/{index-CJjWI7qL.js → index-CQ9U6YlK.js} +3 -3
  39. package/dist/{index-RjzeFVe-.js → index-CzCDSQiD.js} +2 -2
  40. package/dist/{index-ClEFydIA.js → index-DAVJlVe-.js} +2 -2
  41. package/dist/{index-DsxBk5OJ.js → index-DQtcZD9Y.js} +1 -1
  42. package/dist/{index-DYdLhNjl.js → index-DWnlMFqj.js} +3 -3
  43. package/dist/{index-BwugEq4x.js → index-DgiI-dK3.js} +2 -2
  44. package/dist/{index-Buo7Iim6.js → index-DpR-QTUA.js} +4 -4
  45. package/dist/{index-DuLb3GSj.js → index-GvBY_FDT.js} +4 -4
  46. package/dist/{index-CSl9Kc0V.js → index-On5L36UF.js} +2 -2
  47. package/dist/{index-CI0SMeOa.js → index-a47WpMOx.js} +2 -2
  48. package/dist/{index-ZL-d1iKb.js → index-ehhIl57c.js} +2 -2
  49. package/dist/{index-BGAmhhJZ.js → index-qGV3av53.js} +2 -2
  50. package/dist/index.js +9827 -9478
  51. package/dist/legacy.js +745 -750
  52. package/dist/translations/en.d.ts +63 -0
  53. package/dist/translations/fr.d.ts +63 -0
  54. package/package.json +5 -5
  55. package/test-results/catalog/.last-run.json +4 -0
@@ -1,4 +1,4 @@
1
- import { BasePaginate, DeliveryEventType, DeliveryFormat, DeliveryStatus, FlowDeliverySource, IArchivedDay, IDelivery, IDeliverySubscription, IRehydrationJob, IScheduledTask, IScheduledTaskRun, ScheduledTaskRunStatus } from '@abyss-project/flow';
1
+ import { BasePaginate, DeliveryEventType, DeliveryFormat, DeliveryStatus, FlowDeliverySource, IArchivedDay, IDelivery, IDeliverySubscription, IRehydrationJob, IScheduledTask, IScheduledTaskRun, ScheduledTaskRetryBackoff, ScheduledTaskRunStatus } from '@abyss-project/flow';
2
2
  /**
3
3
  * Fixtures shared by the specs and the catalog pages. The Flow enums are types only here (the SDK
4
4
  * is an optional peer), so their values are written as strings and cast.
@@ -6,6 +6,7 @@ import { BasePaginate, DeliveryEventType, DeliveryFormat, DeliveryStatus, FlowDe
6
6
  export declare const source: (value: string) => FlowDeliverySource;
7
7
  export declare const deliveryStatus: (value: string) => DeliveryStatus;
8
8
  export declare const runStatus: (value: string) => ScheduledTaskRunStatus;
9
+ export declare const retryBackoff: (value: string) => ScheduledTaskRetryBackoff;
9
10
  export declare const deliveryFormat: (value: string) => DeliveryFormat;
10
11
  export declare const eventType: (value: string) => DeliveryEventType;
11
12
  export declare const SOURCES: FlowDeliverySource[];
@@ -12,8 +12,8 @@
12
12
  export declare const dialogFootClearance: (restingTop: number) => number;
13
13
  /**
14
14
  * While `active`, keeps `DIALOG_FOOT_CLEARANCE_VAR` on the toast region up to date. The variable
15
- * lives on the region alone: `--abyss-toast-clearance` and the modal clearance belong to the cookie
16
- * banner, which removes them when it leaves. The region stays a child of `body`, so nothing here
15
+ * lives on the region alone: `--abyss-toast-clearance` belongs to the clearance registry (the largest
16
+ * claim, banner included) and the modal clearance to the cookie banner, which removes it when it leaves. The region stays a child of `body`, so nothing here
17
17
  * depends on what the surface's style does to `position: fixed`.
18
18
  */
19
19
  export declare const useDialogFootClearance: (region: HTMLElement | null, active: boolean) => void;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The distances, in px, that the things fixed to the bottom of the viewport claim for the toast
3
+ * region. Each caller owns one symbol key; the value published on `--abyss-toast-clearance` is the
4
+ * largest current claim, and the property is removed when no claim is left. Releasing a key never
5
+ * erases another caller's claim.
6
+ */
7
+ export declare class ToastClearanceRegistry {
8
+ private readonly claims;
9
+ claim(key: symbol, distance: number): void;
10
+ release(key: symbol): void;
11
+ private publish;
12
+ }
13
+ /** The one registry of the page: the variable it writes lives on the document root. */
14
+ export declare const toastClearanceRegistry: ToastClearanceRegistry;
@@ -1,7 +1,8 @@
1
1
  /**
2
- * The distance, from the bottom of the viewport, up to the top of what already occupies the bottom
3
- * right corner (the cookie-consent banner). The toast region keeps above it, so a notification
4
- * never covers the banner. Unset while nothing occupies the corner.
2
+ * The distance, from the bottom of the viewport, up to the top of the highest thing that already
3
+ * occupies the bottom (the cookie-consent banner, a screen's fixed bar): the largest claim of the
4
+ * clearance registry, written by it alone. The toast region keeps above it, so a notification never
5
+ * covers them. Unset while nothing claims.
5
6
  */
6
7
  export declare const TOAST_CLEARANCE_VAR = "--abyss-toast-clearance";
7
8
  /**
@@ -1,5 +1,5 @@
1
- import { A as o, g as a, h as n, e as C, i as t, f as i, j as r, k as A, C as E, b as O, c as S, D as _, R as k, o as I, m as c, l as d, n as N, r as T, p as l, u as f, d as D, a as R, w as V } from "./CookieConsentSettings-iQ9XTosT.js";
2
- import { f as p } from "./Surface-DmHRzUtQ.js";
1
+ import { A as o, g as a, h as n, e as C, i as t, f as i, j as r, k as A, C as E, b as O, c as S, D as _, R as k, o as I, m as c, l as d, n as N, r as T, p as l, u as f, d as D, a as R, w as V } from "./CookieConsentSettings-JQqB3ZoC.js";
2
+ import { f as p } from "./Surface-rKrLIx9x.js";
3
3
  export {
4
4
  o as AbyssCookieConsentProvider,
5
5
  a as CONSENT_VALIDITY_DAYS,