@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.
- package/CHANGELOG.md +22 -0
- package/catalog/captures-plan.ts +10 -2
- package/catalog/pages/DeliveryHistory.tsx +142 -142
- package/catalog/pages/DeliverySubscriptions.tsx +50 -2
- package/catalog/pages/ScheduledTasks.tsx +116 -2
- package/catalog/specs/captures.spec.ts +156 -145
- package/catalog/specs/write-capture-index.ts +82 -81
- package/dist/{CookieConsentSettings-iQ9XTosT.js → CookieConsentSettings-JQqB3ZoC.js} +258 -236
- package/dist/{Surface-DmHRzUtQ.js → Surface-rKrLIx9x.js} +170 -44
- package/dist/{Tabs-CxBeR0D-.js → Tabs-C3ZY5xT8.js} +1 -1
- package/dist/components/business/Deliveries/DeliverySubscriptionForm.d.ts +7 -2
- package/dist/components/business/Deliveries/ScheduledTaskForm.d.ts +8 -2
- package/dist/components/business/Deliveries/ScheduledTaskPanel.d.ts +30 -0
- package/dist/components/business/Deliveries/ScheduledTasks.component.d.ts +3 -2
- package/dist/components/business/Deliveries/deliveries.logic.d.ts +36 -1
- package/dist/components/business/Deliveries/deliveries.types.d.ts +68 -3
- package/dist/components/business/Deliveries/test-support/deliveries.fixtures.d.ts +2 -1
- package/dist/components/layers/Toast/dialog-foot-clearance.d.ts +2 -2
- package/dist/components/layers/Toast/toast-clearance-registry.d.ts +14 -0
- package/dist/components/layers/Toast/toast-clearance.d.ts +4 -3
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-HWymeGb7.js → design-theme-CeGUipuM.js} +877 -872
- package/dist/{editors-BmRsTu0H.js → editors-DNQ00p6Y.js} +27 -27
- package/dist/editors.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +134 -16
- package/dist/hooks/use-toast-clearance.hook.d.ts +14 -0
- package/dist/hooks/use-toast-clearance.hook.spec.d.ts +1 -0
- package/dist/{index-ChCpWPzk.js → index-2mUgohFa.js} +4 -4
- package/dist/{index-DnweGlM_.js → index-7lQ_E_am.js} +2 -2
- package/dist/{index-Dco3zEwV.js → index-8lBj2Ffk.js} +2 -2
- package/dist/{index-BAH9H4GE.js → index-BQUxvLoP.js} +3 -3
- package/dist/{index-DLIvsZA_.js → index-BQlO5Fp0.js} +2 -2
- package/dist/{index-CsZJyqSF.js → index-BXfdxGL2.js} +2 -2
- package/dist/{index-Cv8TWKKk.js → index-CHy_RxpP.js} +2 -2
- package/dist/{index-DVyE9B4I.js → index-CIpdjZHz.js} +2 -2
- package/dist/{index-BTwuilx5.js → index-CJnZcgwL.js} +3 -3
- package/dist/{index-CJjWI7qL.js → index-CQ9U6YlK.js} +3 -3
- package/dist/{index-RjzeFVe-.js → index-CzCDSQiD.js} +2 -2
- package/dist/{index-ClEFydIA.js → index-DAVJlVe-.js} +2 -2
- package/dist/{index-DsxBk5OJ.js → index-DQtcZD9Y.js} +1 -1
- package/dist/{index-DYdLhNjl.js → index-DWnlMFqj.js} +3 -3
- package/dist/{index-BwugEq4x.js → index-DgiI-dK3.js} +2 -2
- package/dist/{index-Buo7Iim6.js → index-DpR-QTUA.js} +4 -4
- package/dist/{index-DuLb3GSj.js → index-GvBY_FDT.js} +4 -4
- package/dist/{index-CSl9Kc0V.js → index-On5L36UF.js} +2 -2
- package/dist/{index-CI0SMeOa.js → index-a47WpMOx.js} +2 -2
- package/dist/{index-ZL-d1iKb.js → index-ehhIl57c.js} +2 -2
- package/dist/{index-BGAmhhJZ.js → index-qGV3av53.js} +2 -2
- package/dist/index.js +9827 -9478
- package/dist/legacy.js +745 -750
- package/dist/translations/en.d.ts +63 -0
- package/dist/translations/fr.d.ts +63 -0
- package/package.json +5 -5
- 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`
|
|
16
|
-
* banner, which removes
|
|
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
|
|
3
|
-
*
|
|
4
|
-
*
|
|
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
|
/**
|
package/dist/cookie-consent.js
CHANGED
|
@@ -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-
|
|
2
|
-
import { f as p } from "./Surface-
|
|
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,
|