@abyss-project/commons-front-core 20.3.0 → 20.5.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 +26 -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-BPBNaNNI.js → CookieConsentSettings-BBfIxpPu.js} +1 -1
- package/dist/{Surface-DmHRzUtQ.js → Surface-D3XLL_3t.js} +172 -44
- package/dist/{Tabs-CxBeR0D-.js → Tabs-B9vRDAXt.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 +95 -3
- package/dist/components/business/Deliveries/test-support/deliveries.fixtures.d.ts +2 -1
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-HWymeGb7.js → design-theme-enTIAR9e.js} +877 -872
- package/dist/{editors-BmRsTu0H.js → editors-C9ezTyVX.js} +27 -27
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +136 -16
- package/dist/{index-Dco3zEwV.js → index-1hcOcpTI.js} +2 -2
- package/dist/{index-RjzeFVe-.js → index-B1LrM7Gs.js} +2 -2
- package/dist/{index-ZL-d1iKb.js → index-BKCtYW42.js} +2 -2
- package/dist/{index-ClEFydIA.js → index-BRNbXIRg.js} +2 -2
- package/dist/{index-DnweGlM_.js → index-BmWT-YnY.js} +2 -2
- package/dist/{index-DYdLhNjl.js → index-C1-1xoEz.js} +3 -3
- package/dist/{index-BTwuilx5.js → index-C21JZxdV.js} +3 -3
- package/dist/{index-BwugEq4x.js → index-COZaHoYW.js} +2 -2
- package/dist/{index-DLIvsZA_.js → index-CYPRhUy3.js} +2 -2
- package/dist/{index-ChCpWPzk.js → index-CuHChI1V.js} +4 -4
- package/dist/{index-Buo7Iim6.js → index-D23exlxA.js} +4 -4
- package/dist/{index-BGAmhhJZ.js → index-DTDA_bq_.js} +2 -2
- package/dist/{index-Cv8TWKKk.js → index-DYlHW9pm.js} +2 -2
- package/dist/{index-CsZJyqSF.js → index-DilASatl.js} +2 -2
- package/dist/{index-CSl9Kc0V.js → index-DpLOnTAQ.js} +2 -2
- package/dist/{index-CJjWI7qL.js → index-DrEPqLmj.js} +3 -3
- package/dist/{index-DsxBk5OJ.js → index-PIhlmbry.js} +1 -1
- package/dist/{index-CI0SMeOa.js → index-av4SSfbk.js} +2 -2
- package/dist/{index-DVyE9B4I.js → index-grnEwsvE.js} +2 -2
- package/dist/{index-DuLb3GSj.js → index-jXwg-vPK.js} +4 -4
- package/dist/{index-BAH9H4GE.js → index-owJAgGXX.js} +3 -3
- package/dist/index.js +10613 -10268
- package/dist/legacy.js +745 -750
- package/dist/translations/en.d.ts +64 -0
- package/dist/translations/fr.d.ts +64 -0
- package/package.json +5 -5
- package/test-results/catalog/.last-run.json +4 -0
|
@@ -80,7 +80,7 @@ const he = 266, c = (e, t) => ({ l: e, c: t, h: he }), ht = {
|
|
|
80
80
|
compact: { row: 30, control: 28 },
|
|
81
81
|
touchTarget: 44
|
|
82
82
|
};
|
|
83
|
-
var
|
|
83
|
+
var N = /* @__PURE__ */ ((e) => (e.Mobile = "mobile", e.Tablet = "tablet", e.Desktop = "desktop", e))(N || {});
|
|
84
84
|
const ee = {
|
|
85
85
|
tablet: V.md,
|
|
86
86
|
desktop: V.lg
|
|
@@ -112,30 +112,30 @@ const ee = {
|
|
|
112
112
|
)}`;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
}, fe = 0.14, a = (e) => `${e}px`, P = (e) => `1px solid ${e}`,
|
|
115
|
+
}, fe = 0.14, a = (e) => `${e}px`, P = (e) => `1px solid ${e}`, Tt = (e) => se(e, fe), Ae = (e) => ({
|
|
116
116
|
outline: `2px solid ${e.design.tokens["focus.ring"]}`,
|
|
117
117
|
outlineOffset: "2px"
|
|
118
|
-
}),
|
|
119
|
-
[w.down(
|
|
118
|
+
}), St = (e, t) => t === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, Rt = (e) => e.design.densityValues[e.design.density].row, Nt = (e) => ({
|
|
119
|
+
[w.down(N.Tablet)]: {
|
|
120
120
|
minHeight: a(e.design.densityValues.touchTarget)
|
|
121
121
|
}
|
|
122
122
|
}), ye = (e) => ({
|
|
123
|
-
[w.down(
|
|
123
|
+
[w.down(N.Tablet)]: {
|
|
124
124
|
minWidth: a(e.design.densityValues.touchTarget),
|
|
125
125
|
minHeight: a(e.design.densityValues.touchTarget)
|
|
126
126
|
}
|
|
127
127
|
}), Ee = (e, t, o = "fast") => t.map(
|
|
128
128
|
(r) => `${r} ${e.design.durations[o]}ms ${e.design.easings.standard}`
|
|
129
129
|
).join(", "), ve = () => {
|
|
130
|
-
const e = H(w.up(
|
|
130
|
+
const e = H(w.up(N.Desktop), {
|
|
131
131
|
noSsr: !0
|
|
132
|
-
}), t = H(w.down(
|
|
132
|
+
}), t = H(w.down(N.Tablet), {
|
|
133
133
|
noSsr: !0
|
|
134
134
|
});
|
|
135
|
-
return e ?
|
|
135
|
+
return e ? N.Desktop : t ? N.Mobile : N.Tablet;
|
|
136
136
|
};
|
|
137
137
|
var _ = /* @__PURE__ */ ((e) => (e.Top = "top", e.Bottom = "bottom", e.Left = "left", e.Right = "right", e))(_ || {});
|
|
138
|
-
const L = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, be = 0.3,
|
|
138
|
+
const L = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, be = 0.3, Te = h("div")({
|
|
139
139
|
position: "absolute",
|
|
140
140
|
left: 0,
|
|
141
141
|
right: 0,
|
|
@@ -143,7 +143,7 @@ const L = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, be = 0.3, Se =
|
|
|
143
143
|
maxHeight: "100%",
|
|
144
144
|
display: "flex",
|
|
145
145
|
outline: "none"
|
|
146
|
-
}),
|
|
146
|
+
}), Se = h("div")(({ theme: e }) => {
|
|
147
147
|
const { tokens: t, radii: o, space: r, elevations: i, fonts: n } = e.design;
|
|
148
148
|
return {
|
|
149
149
|
flex: "1 1 auto",
|
|
@@ -166,12 +166,12 @@ const L = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, be = 0.3, Se =
|
|
|
166
166
|
outline: "none",
|
|
167
167
|
position: "relative"
|
|
168
168
|
};
|
|
169
|
-
}),
|
|
169
|
+
}), Re = h(J)(({ theme: e }) => ({
|
|
170
170
|
position: "absolute",
|
|
171
171
|
top: a(e.design.space[1]),
|
|
172
172
|
right: L(_.Right, e.design.space[2]),
|
|
173
173
|
...ye(e)
|
|
174
|
-
})),
|
|
174
|
+
})), Ne = h("div")(({ theme: e }) => {
|
|
175
175
|
const { space: t, densityValues: o } = e.design;
|
|
176
176
|
return {
|
|
177
177
|
flex: "none",
|
|
@@ -222,18 +222,18 @@ function De({
|
|
|
222
222
|
closeLabel: i,
|
|
223
223
|
children: n
|
|
224
224
|
}) {
|
|
225
|
-
const g = le(), y = G(), E = F(), f = Y(null), A = Y(null), [v,
|
|
226
|
-
|
|
227
|
-
}, p = (
|
|
228
|
-
A.current !== null &&
|
|
229
|
-
}, b = (
|
|
225
|
+
const g = le(), y = G(), E = F(), f = Y(null), A = Y(null), [v, R] = j(0), [u, l] = j(!1), s = (S) => {
|
|
226
|
+
S.currentTarget.setPointerCapture(S.pointerId), A.current = S.clientY, l(!0);
|
|
227
|
+
}, p = (S) => {
|
|
228
|
+
A.current !== null && R(Math.max(0, S.clientY - A.current));
|
|
229
|
+
}, b = (S) => {
|
|
230
230
|
var z;
|
|
231
231
|
if (A.current === null)
|
|
232
232
|
return;
|
|
233
|
-
const I = Math.max(0,
|
|
234
|
-
A.current = null, l(!1),
|
|
235
|
-
},
|
|
236
|
-
A.current = null, l(!1),
|
|
233
|
+
const I = Math.max(0, S.clientY - A.current), B = ((z = f.current) == null ? void 0 : z.getBoundingClientRect().height) ?? 0;
|
|
234
|
+
A.current = null, l(!1), R(0), B > 0 && I >= B * be && t();
|
|
235
|
+
}, T = () => {
|
|
236
|
+
A.current = null, l(!1), R(0);
|
|
237
237
|
};
|
|
238
238
|
return /* @__PURE__ */ d(ce, { open: e, onClose: () => t(), children: /* @__PURE__ */ d(
|
|
239
239
|
de,
|
|
@@ -242,8 +242,8 @@ function De({
|
|
|
242
242
|
direction: "up",
|
|
243
243
|
timeout: g.design.durations.slow,
|
|
244
244
|
easing: g.design.easings.sheet,
|
|
245
|
-
children: /* @__PURE__ */ d(
|
|
246
|
-
|
|
245
|
+
children: /* @__PURE__ */ d(Te, { children: /* @__PURE__ */ C(
|
|
246
|
+
Se,
|
|
247
247
|
{
|
|
248
248
|
ref: f,
|
|
249
249
|
role: "dialog",
|
|
@@ -260,13 +260,13 @@ function De({
|
|
|
260
260
|
},
|
|
261
261
|
children: [
|
|
262
262
|
/* @__PURE__ */ C(
|
|
263
|
-
|
|
263
|
+
Ne,
|
|
264
264
|
{
|
|
265
265
|
"data-testid": "bottom-sheet-drag-zone",
|
|
266
266
|
onPointerDown: s,
|
|
267
267
|
onPointerMove: p,
|
|
268
268
|
onPointerUp: b,
|
|
269
|
-
onPointerCancel:
|
|
269
|
+
onPointerCancel: T,
|
|
270
270
|
children: [
|
|
271
271
|
/* @__PURE__ */ d(Ce, { "aria-hidden": "true" }),
|
|
272
272
|
o ? /* @__PURE__ */ C(Ie, { id: E, besideClose: i !== void 0, children: [
|
|
@@ -276,7 +276,7 @@ function De({
|
|
|
276
276
|
]
|
|
277
277
|
}
|
|
278
278
|
),
|
|
279
|
-
i !== void 0 && /* @__PURE__ */ d(
|
|
279
|
+
i !== void 0 && /* @__PURE__ */ d(Re, { "aria-label": i, onClick: () => t(), children: /* @__PURE__ */ d(Q, { "aria-hidden": !0 }) }),
|
|
280
280
|
/* @__PURE__ */ d(_e, { children: n })
|
|
281
281
|
]
|
|
282
282
|
}
|
|
@@ -373,7 +373,7 @@ function _t({
|
|
|
373
373
|
actions: g,
|
|
374
374
|
children: y
|
|
375
375
|
}) {
|
|
376
|
-
const E = G(), f = ve() ===
|
|
376
|
+
const E = G(), f = ve() === N.Mobile, A = F(), v = F();
|
|
377
377
|
return f ? /* @__PURE__ */ C(
|
|
378
378
|
De,
|
|
379
379
|
{
|
|
@@ -1470,6 +1470,7 @@ const He = {
|
|
|
1470
1470
|
event: {
|
|
1471
1471
|
MONITOR_EVENT: "Événement Monitor",
|
|
1472
1472
|
MONITOR_SENTINEL: "Sonde Monitor",
|
|
1473
|
+
MONITOR_FEEDBACK_RESPONDED: "Réponse à une demande d’avis",
|
|
1473
1474
|
STORAGE_UPLOAD: "Fichier déposé",
|
|
1474
1475
|
STORAGE_WRITE: "Fichier modifié",
|
|
1475
1476
|
STORAGE_DELETE: "Fichier supprimé",
|
|
@@ -1738,6 +1739,15 @@ const He = {
|
|
|
1738
1739
|
timeout: "Délai maximal",
|
|
1739
1740
|
retries: "Nouvelles tentatives",
|
|
1740
1741
|
"retry-delay": "Délai entre deux tentatives",
|
|
1742
|
+
"retry-backoff": "Progression du délai",
|
|
1743
|
+
"retry-backoff-option": {
|
|
1744
|
+
LINEAR: "Croissante",
|
|
1745
|
+
FIXED: "Fixe"
|
|
1746
|
+
},
|
|
1747
|
+
"retry-backoff-help": {
|
|
1748
|
+
LINEAR: "Chaque nouvelle tentative attend un délai de plus : 1×, 2×, 3× le délai entre deux tentatives.",
|
|
1749
|
+
FIXED: "Chaque tentative attend le même délai."
|
|
1750
|
+
},
|
|
1741
1751
|
enabled: "Tâche active",
|
|
1742
1752
|
"error-name": "Saisissez un nom.",
|
|
1743
1753
|
"error-schedule": "Saisissez une planification.",
|
|
@@ -1758,11 +1768,65 @@ const He = {
|
|
|
1758
1768
|
pagination: "Pages des exécutions",
|
|
1759
1769
|
empty: "Aucune exécution",
|
|
1760
1770
|
"empty-desc": "Les exécutions de cette tâche apparaissent ici.",
|
|
1771
|
+
"empty-filtered": "Aucune exécution ne correspond à ces filtres",
|
|
1772
|
+
"empty-filtered-desc": "Élargissez la période ou effacez l’identifiant de requête.",
|
|
1761
1773
|
column: {
|
|
1762
1774
|
status: "Statut",
|
|
1763
1775
|
"scheduled-for": "Prévue le",
|
|
1764
1776
|
duration: "Durée",
|
|
1765
1777
|
code: "Code de réponse"
|
|
1778
|
+
},
|
|
1779
|
+
action: {
|
|
1780
|
+
detail: "Détail de l’exécution"
|
|
1781
|
+
},
|
|
1782
|
+
filters: {
|
|
1783
|
+
period: "Période",
|
|
1784
|
+
preset: {
|
|
1785
|
+
today: "Aujourd’hui",
|
|
1786
|
+
"last-7-days": "7 derniers jours",
|
|
1787
|
+
"last-30-days": "30 derniers jours"
|
|
1788
|
+
},
|
|
1789
|
+
"request-id": "Identifiant de requête",
|
|
1790
|
+
"request-id-placeholder": "UUID, 36 caractères",
|
|
1791
|
+
"request-id-invalid": "Saisissez l’identifiant complet, tel qu’envoyé dans l’en-tête x-request-id.",
|
|
1792
|
+
outcome: "Résultat",
|
|
1793
|
+
"outcome-option": {
|
|
1794
|
+
all: "Tous les résultats",
|
|
1795
|
+
succeeded: "Réussies",
|
|
1796
|
+
failed: "En échec ou délai dépassé",
|
|
1797
|
+
skipped: "Ignorées"
|
|
1798
|
+
},
|
|
1799
|
+
"outcome-subset": "{shown, number} sur {count, plural, one {# exécution} other {# exécutions}} de cette page ont ce résultat.",
|
|
1800
|
+
"outcome-empty": "Aucune exécution de cette page n’a ce résultat.",
|
|
1801
|
+
reset: "Effacer les filtres"
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
run: {
|
|
1805
|
+
back: "Retour aux exécutions",
|
|
1806
|
+
logs: "Voir les journaux de cette requête",
|
|
1807
|
+
request: "Requête",
|
|
1808
|
+
"scheduled-for": "Prévue le",
|
|
1809
|
+
"started-at": "Démarrée le",
|
|
1810
|
+
"not-started": "Pas encore démarrée",
|
|
1811
|
+
attempt: "Tentative",
|
|
1812
|
+
duration: "Durée",
|
|
1813
|
+
response: "Réponse",
|
|
1814
|
+
"response-code": "Code de réponse",
|
|
1815
|
+
"response-headers": "En-têtes de la réponse",
|
|
1816
|
+
"response-body": "Corps de la réponse",
|
|
1817
|
+
error: "Erreur",
|
|
1818
|
+
none: "Aucun",
|
|
1819
|
+
archived: {
|
|
1820
|
+
title: "Détail archivé",
|
|
1821
|
+
description: "Les en-têtes, le corps de la réponse et l’erreur de cette exécution sont dans l’archive."
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1824
|
+
panel: {
|
|
1825
|
+
title: "Tâche planifiée",
|
|
1826
|
+
"load-failed": "La tâche n’a pas pu être chargée.",
|
|
1827
|
+
"not-found": {
|
|
1828
|
+
title: "Tâche introuvable",
|
|
1829
|
+
description: "Cette tâche n’existe pas ou plus : elle a peut-être été supprimée."
|
|
1766
1830
|
}
|
|
1767
1831
|
}
|
|
1768
1832
|
}
|
|
@@ -4008,6 +4072,7 @@ const He = {
|
|
|
4008
4072
|
event: {
|
|
4009
4073
|
MONITOR_EVENT: "Monitor event",
|
|
4010
4074
|
MONITOR_SENTINEL: "Monitor probe",
|
|
4075
|
+
MONITOR_FEEDBACK_RESPONDED: "Feedback request answered",
|
|
4011
4076
|
STORAGE_UPLOAD: "File uploaded",
|
|
4012
4077
|
STORAGE_WRITE: "File modified",
|
|
4013
4078
|
STORAGE_DELETE: "File deleted",
|
|
@@ -4276,6 +4341,15 @@ const He = {
|
|
|
4276
4341
|
timeout: "Maximum time",
|
|
4277
4342
|
retries: "Retries",
|
|
4278
4343
|
"retry-delay": "Delay between attempts",
|
|
4344
|
+
"retry-backoff": "Delay growth",
|
|
4345
|
+
"retry-backoff-option": {
|
|
4346
|
+
LINEAR: "Growing",
|
|
4347
|
+
FIXED: "Fixed"
|
|
4348
|
+
},
|
|
4349
|
+
"retry-backoff-help": {
|
|
4350
|
+
LINEAR: "Each new attempt waits one delay more: 1×, 2×, 3× the delay between attempts.",
|
|
4351
|
+
FIXED: "Every attempt waits the same delay."
|
|
4352
|
+
},
|
|
4279
4353
|
enabled: "Task active",
|
|
4280
4354
|
"error-name": "Enter a name.",
|
|
4281
4355
|
"error-schedule": "Enter a schedule.",
|
|
@@ -4296,11 +4370,65 @@ const He = {
|
|
|
4296
4370
|
pagination: "Run pages",
|
|
4297
4371
|
empty: "No run",
|
|
4298
4372
|
"empty-desc": "The runs of this task show up here.",
|
|
4373
|
+
"empty-filtered": "No run matches these filters",
|
|
4374
|
+
"empty-filtered-desc": "Widen the period or clear the request id.",
|
|
4299
4375
|
column: {
|
|
4300
4376
|
status: "Status",
|
|
4301
4377
|
"scheduled-for": "Scheduled for",
|
|
4302
4378
|
duration: "Duration",
|
|
4303
4379
|
code: "Response code"
|
|
4380
|
+
},
|
|
4381
|
+
action: {
|
|
4382
|
+
detail: "Run detail"
|
|
4383
|
+
},
|
|
4384
|
+
filters: {
|
|
4385
|
+
period: "Period",
|
|
4386
|
+
preset: {
|
|
4387
|
+
today: "Today",
|
|
4388
|
+
"last-7-days": "Last 7 days",
|
|
4389
|
+
"last-30-days": "Last 30 days"
|
|
4390
|
+
},
|
|
4391
|
+
"request-id": "Request id",
|
|
4392
|
+
"request-id-placeholder": "UUID, 36 characters",
|
|
4393
|
+
"request-id-invalid": "Enter the whole id, as sent in the x-request-id header.",
|
|
4394
|
+
outcome: "Outcome",
|
|
4395
|
+
"outcome-option": {
|
|
4396
|
+
all: "All outcomes",
|
|
4397
|
+
succeeded: "Succeeded",
|
|
4398
|
+
failed: "Failed or timed out",
|
|
4399
|
+
skipped: "Skipped"
|
|
4400
|
+
},
|
|
4401
|
+
"outcome-subset": "{shown, number} of {count, plural, one {# run} other {# runs}} on this page have this outcome.",
|
|
4402
|
+
"outcome-empty": "No run on this page has this outcome.",
|
|
4403
|
+
reset: "Clear the filters"
|
|
4404
|
+
}
|
|
4405
|
+
},
|
|
4406
|
+
run: {
|
|
4407
|
+
back: "Back to the runs",
|
|
4408
|
+
logs: "See the logs of this request",
|
|
4409
|
+
request: "Request",
|
|
4410
|
+
"scheduled-for": "Scheduled for",
|
|
4411
|
+
"started-at": "Started at",
|
|
4412
|
+
"not-started": "Not started yet",
|
|
4413
|
+
attempt: "Attempt",
|
|
4414
|
+
duration: "Duration",
|
|
4415
|
+
response: "Response",
|
|
4416
|
+
"response-code": "Response code",
|
|
4417
|
+
"response-headers": "Response headers",
|
|
4418
|
+
"response-body": "Response body",
|
|
4419
|
+
error: "Error",
|
|
4420
|
+
none: "None",
|
|
4421
|
+
archived: {
|
|
4422
|
+
title: "Detail archived",
|
|
4423
|
+
description: "The headers, the response body and the error of this run are in the archive."
|
|
4424
|
+
}
|
|
4425
|
+
},
|
|
4426
|
+
panel: {
|
|
4427
|
+
title: "Scheduled task",
|
|
4428
|
+
"load-failed": "The task could not be loaded.",
|
|
4429
|
+
"not-found": {
|
|
4430
|
+
title: "Task not found",
|
|
4431
|
+
description: "This task does not exist, or no longer does: it may have been deleted."
|
|
4304
4432
|
}
|
|
4305
4433
|
}
|
|
4306
4434
|
}
|
|
@@ -5724,10 +5852,10 @@ function Je() {
|
|
|
5724
5852
|
function o(i, n) {
|
|
5725
5853
|
n = n || {};
|
|
5726
5854
|
const g = n.delimiter || ".", y = n.maxDepth, E = n.transformKey || t, f = {};
|
|
5727
|
-
function A(v,
|
|
5855
|
+
function A(v, R, u) {
|
|
5728
5856
|
u = u || 1, Object.keys(v).forEach(function(l) {
|
|
5729
|
-
const s = v[l], p = n.safe && Array.isArray(s), b = Object.prototype.toString.call(s),
|
|
5730
|
-
if (!p && !
|
|
5857
|
+
const s = v[l], p = n.safe && Array.isArray(s), b = Object.prototype.toString.call(s), T = e(s), S = b === "[object Object]" || b === "[object Array]", I = R ? R + g + E(l) : E(l);
|
|
5858
|
+
if (!p && !T && S && Object.keys(s).length && (!n.maxDepth || u < y))
|
|
5731
5859
|
return A(s, I, u + 1);
|
|
5732
5860
|
f[I] = s;
|
|
5733
5861
|
});
|
|
@@ -5743,9 +5871,9 @@ function Je() {
|
|
|
5743
5871
|
const s = Number(l);
|
|
5744
5872
|
return isNaN(s) || l.indexOf(".") !== -1 || n.object ? l : s;
|
|
5745
5873
|
}
|
|
5746
|
-
function
|
|
5747
|
-
return Object.keys(p).reduce(function(b,
|
|
5748
|
-
return b[l + g +
|
|
5874
|
+
function R(l, s, p) {
|
|
5875
|
+
return Object.keys(p).reduce(function(b, T) {
|
|
5876
|
+
return b[l + g + T] = p[T], b;
|
|
5749
5877
|
}, s);
|
|
5750
5878
|
}
|
|
5751
5879
|
function u(l) {
|
|
@@ -5759,23 +5887,23 @@ function Je() {
|
|
|
5759
5887
|
}
|
|
5760
5888
|
return i = Object.keys(i).reduce(function(l, s) {
|
|
5761
5889
|
const p = Object.prototype.toString.call(i[s]);
|
|
5762
|
-
return !(p === "[object Object]" || p === "[object Array]") || u(i[s]) ? (l[s] = i[s], l) :
|
|
5890
|
+
return !(p === "[object Object]" || p === "[object Array]") || u(i[s]) ? (l[s] = i[s], l) : R(
|
|
5763
5891
|
s,
|
|
5764
5892
|
l,
|
|
5765
5893
|
o(i[s], n)
|
|
5766
5894
|
);
|
|
5767
5895
|
}, {}), Object.keys(i).forEach(function(l) {
|
|
5768
5896
|
const s = l.split(g).map(E);
|
|
5769
|
-
let p = v(s.shift()), b = v(s[0]),
|
|
5897
|
+
let p = v(s.shift()), b = v(s[0]), T = f;
|
|
5770
5898
|
for (; b !== void 0; ) {
|
|
5771
5899
|
if (p === "__proto__")
|
|
5772
5900
|
return;
|
|
5773
|
-
const
|
|
5774
|
-
if (!y && !I && typeof
|
|
5901
|
+
const S = Object.prototype.toString.call(T[p]), I = S === "[object Object]" || S === "[object Array]";
|
|
5902
|
+
if (!y && !I && typeof T[p] < "u")
|
|
5775
5903
|
return;
|
|
5776
|
-
(y && !I || !y &&
|
|
5904
|
+
(y && !I || !y && T[p] == null) && (T[p] = typeof b == "number" && !n.object ? [] : {}), T = T[p], s.length > 0 && (p = v(s.shift()), b = v(s[0]));
|
|
5777
5905
|
}
|
|
5778
|
-
|
|
5906
|
+
T[p] = r(i[l], n);
|
|
5779
5907
|
}), f;
|
|
5780
5908
|
}
|
|
5781
5909
|
return x;
|
|
@@ -5873,7 +6001,7 @@ export {
|
|
|
5873
6001
|
Ot as A,
|
|
5874
6002
|
De as B,
|
|
5875
6003
|
Le as C,
|
|
5876
|
-
|
|
6004
|
+
N as D,
|
|
5877
6005
|
Et as E,
|
|
5878
6006
|
vt as F,
|
|
5879
6007
|
Ke as G,
|
|
@@ -5903,16 +6031,16 @@ export {
|
|
|
5903
6031
|
me as l,
|
|
5904
6032
|
be as m,
|
|
5905
6033
|
At as n,
|
|
5906
|
-
|
|
6034
|
+
St as o,
|
|
5907
6035
|
a as p,
|
|
5908
6036
|
V as q,
|
|
5909
6037
|
ft as r,
|
|
5910
|
-
|
|
5911
|
-
|
|
6038
|
+
Tt as s,
|
|
6039
|
+
Nt as t,
|
|
5912
6040
|
wt as u,
|
|
5913
6041
|
gt as v,
|
|
5914
6042
|
L as w,
|
|
5915
6043
|
yt as x,
|
|
5916
6044
|
fe as y,
|
|
5917
|
-
|
|
6045
|
+
Rt as z
|
|
5918
6046
|
};
|
|
@@ -8,7 +8,7 @@ import hn from "@mui/material/Select";
|
|
|
8
8
|
import { styled as l, useTheme as bn, getContrastRatio as ke } from "@mui/material/styles";
|
|
9
9
|
import { visuallyHidden as fe } from "@mui/utils";
|
|
10
10
|
import { useIntl as P } from "react-intl";
|
|
11
|
-
import { a as A, p as o, h as D, d as Z, D as K, g as yn, t as De, s as de, i as oe, j as te, c as Pe, e as He, k as vn, B as wn } from "./Surface-
|
|
11
|
+
import { a as A, p as o, h as D, d as Z, D as K, g as yn, t as De, s as de, i as oe, j as te, c as Pe, e as He, k as vn, B as wn } from "./Surface-D3XLL_3t.js";
|
|
12
12
|
import { i as xn, b as Cn, r as kn, u as Sn, A as In, E as Fn } from "./index-C27b790L.js";
|
|
13
13
|
import Y from "@mui/material/Button";
|
|
14
14
|
import { byteSizeIEC as Wn } from "@abyss-project/main";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { DeliveryEventType, FlowDeliverySource, ICreateDeliverySubscriptionBody, IDeliverySubscription, IUpdateDeliverySubscriptionBody } from '@abyss-project/flow';
|
|
3
|
+
import { DeliveryFiltersSlotProps } from './deliveries.types';
|
|
2
4
|
/** What the form hands back: a creation, or the editable part of a subscription. */
|
|
3
5
|
export type DeliverySubscriptionFormResult = {
|
|
4
6
|
create: ICreateDeliverySubscriptionBody;
|
|
@@ -13,12 +15,15 @@ interface DeliverySubscriptionFormProps {
|
|
|
13
15
|
/** A rejection stays in the form, with the message of the rejection. */
|
|
14
16
|
onSubmit(result: DeliverySubscriptionFormResult): Promise<void>;
|
|
15
17
|
onCancel(): void;
|
|
18
|
+
/** The host's filters editor; without it, the filters are neither shown nor sent. */
|
|
19
|
+
renderFilters?(props: DeliveryFiltersSlotProps): ReactNode;
|
|
16
20
|
}
|
|
17
21
|
/**
|
|
18
22
|
* The body of the create and edit drawer. It lives inside the drawer so that closing it drops the
|
|
19
23
|
* typed values. The source is chosen at creation and cannot change after (no choice is drawn when
|
|
20
24
|
* the host offers one source); its event types are the only ones offered, and the body format only
|
|
21
|
-
* exists for a Form subscription.
|
|
25
|
+
* exists for a Form subscription. The filters are the host's editor, when it passes one: a change of
|
|
26
|
+
* source empties them.
|
|
22
27
|
*/
|
|
23
|
-
export declare function DeliverySubscriptionForm({ subscription, sources, eventTypesBySource, onSubmit, onCancel, }: DeliverySubscriptionFormProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function DeliverySubscriptionForm({ subscription, sources, eventTypesBySource, onSubmit, onCancel, renderFilters, }: DeliverySubscriptionFormProps): import("react/jsx-runtime").JSX.Element;
|
|
24
29
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { ICreateScheduledTaskBody, IScheduledTask, IUpdateScheduledTaskBody } from '@abyss-project/flow';
|
|
3
|
+
import { ScheduledTaskIncidentPolicySlotProps } from './deliveries.types';
|
|
2
4
|
/** What the form hands back: a creation, or the editable part of a task. */
|
|
3
5
|
export type ScheduledTaskFormResult = {
|
|
4
6
|
create: ICreateScheduledTaskBody;
|
|
@@ -11,11 +13,15 @@ interface ScheduledTaskFormProps {
|
|
|
11
13
|
/** A rejection stays in the form, with the message of the rejection. */
|
|
12
14
|
onSubmit(result: ScheduledTaskFormResult): Promise<void>;
|
|
13
15
|
onCancel(): void;
|
|
16
|
+
/** The host's incident-policy editor; without it, the policy is neither shown nor sent. */
|
|
17
|
+
renderIncidentPolicy?(props: ScheduledTaskIncidentPolicySlotProps): ReactNode;
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
16
20
|
* The body of the create and edit drawer. It lives inside the drawer so that closing it drops the
|
|
17
21
|
* typed values. The schedule is checked by Flow: an invalid cron comes back as a rejection and its
|
|
18
|
-
* message is shown at the top of the form. The retry settings left empty keep Flow's defaults
|
|
22
|
+
* message is shown at the top of the form. The retry settings left empty keep Flow's defaults; the
|
|
23
|
+
* backoff is always sent (a new task starts on Flow's default, linear). The incident policy is the
|
|
24
|
+
* host's editor, when it passes one.
|
|
19
25
|
*/
|
|
20
|
-
export declare function ScheduledTaskForm({ task, onSubmit, onCancel, }: ScheduledTaskFormProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function ScheduledTaskForm({ task, onSubmit, onCancel, renderIncidentPolicy, }: ScheduledTaskFormProps): import("react/jsx-runtime").JSX.Element;
|
|
21
27
|
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IScheduledTask } from '@abyss-project/flow';
|
|
3
|
+
import { ScheduledTasksProps } from './deliveries.types';
|
|
4
|
+
interface TaskPanelProps {
|
|
5
|
+
task: IScheduledTask;
|
|
6
|
+
listRuns: ScheduledTasksProps['listRuns'];
|
|
7
|
+
runLogsHref: ScheduledTasksProps['runLogsHref'];
|
|
8
|
+
renderTaskState: ScheduledTasksProps['renderTaskState'];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The panel of one task: the host's state card, then its runs, newest first, with their filters
|
|
12
|
+
* (a period and a request id, applied by Flow; an outcome, applied to the page loaded, which a
|
|
13
|
+
* line says), and the detail of a run in place of the list. The list stays mounted under the
|
|
14
|
+
* detail: going back finds the same page and the same filters.
|
|
15
|
+
*/
|
|
16
|
+
export declare function TaskPanel({ task, listRuns, runLogsHref, renderTaskState, }: TaskPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
interface LinkedTaskProps {
|
|
18
|
+
taskId: string;
|
|
19
|
+
get: ScheduledTasksProps['get'];
|
|
20
|
+
/** The task, once loaded: the panel's title names it. */
|
|
21
|
+
onLoaded(task: IScheduledTask): void;
|
|
22
|
+
children(task: IScheduledTask): ReactElement;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The task a link points to, loaded by its id: a skeleton meanwhile, then its panel. A task that
|
|
26
|
+
* does not exist (any more: deleted, or the id of a task Flow never had) says so; any other
|
|
27
|
+
* failure offers a retry.
|
|
28
|
+
*/
|
|
29
|
+
export declare function LinkedTask({ taskId, get, onLoaded, children, }: LinkedTaskProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -3,7 +3,8 @@ import { ScheduledTasksProps } from './deliveries.types';
|
|
|
3
3
|
/**
|
|
4
4
|
* The scheduled tasks of a scope: the list, the create and edit drawer, the secret shown once
|
|
5
5
|
* after a creation or a regeneration, the enable switch, « run now », the confirmed delete and the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* panel of a task (the host's state card, the runs with their filters and the detail of a run),
|
|
7
|
+
* which a link to one task (`initialTaskId`) opens on arrival. Data and actions come through props
|
|
8
|
+
* (see `ScheduledTasksProps`); the actions a viewer lacks the permission for are not drawn.
|
|
8
9
|
*/
|
|
9
10
|
export declare const ScheduledTasks: FC<ScheduledTasksProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IntlShape } from 'react-intl';
|
|
2
|
-
import { DeliveryFormat, DeliveryStatus, FlowDeliverySource, IDelivery, ScheduledTaskRunStatus } from '@abyss-project/flow';
|
|
2
|
+
import { DeliveryFormat, DeliveryStatus, FlowDeliverySource, IDelivery, IPaginateScheduledTaskRunQuery, IScheduledTaskRun, ScheduledTaskRetryBackoff, ScheduledTaskRunStatus } from '@abyss-project/flow';
|
|
3
3
|
import { ExecutionState } from '../../../theme/tokens/domain';
|
|
4
4
|
import { StatusTone } from '../../meaning/StatusBadge/StatusBadge';
|
|
5
5
|
/**
|
|
@@ -36,6 +36,41 @@ export declare const isReplayable: (delivery: IDelivery) => boolean;
|
|
|
36
36
|
export declare const deliveryHeaders: (delivery: IDelivery) => Array<[name: string, value: string]>;
|
|
37
37
|
/** Presets the schedule field offers beside a free cron (the aliases Flow accepts). */
|
|
38
38
|
export declare const SCHEDULE_PRESETS: readonly ["@hourly", "@daily", "@weekly", "@monthly"];
|
|
39
|
+
/**
|
|
40
|
+
* How the wait between two attempts of a run grows: `LINEAR` (Flow's default, retry n waits
|
|
41
|
+
* `retryDelayMs` times n) first, then `FIXED` (`retryDelayMs` every time).
|
|
42
|
+
*/
|
|
43
|
+
export declare const RETRY_BACKOFFS: ScheduledTaskRetryBackoff[];
|
|
44
|
+
/** The backoff of a new task, Flow's own default. */
|
|
45
|
+
export declare const DEFAULT_RETRY_BACKOFF: ScheduledTaskRetryBackoff;
|
|
46
|
+
/** What the outcome filter of the runs keeps. */
|
|
47
|
+
export declare enum RunOutcome {
|
|
48
|
+
All = "all",
|
|
49
|
+
Succeeded = "succeeded",
|
|
50
|
+
/** Failed or timed out. */
|
|
51
|
+
Failed = "failed",
|
|
52
|
+
Skipped = "skipped"
|
|
53
|
+
}
|
|
54
|
+
/** Whether a run has the outcome the filter keeps; a pending or running run is only in « all ». */
|
|
55
|
+
export declare const runHasOutcome: (run: Pick<IScheduledTaskRun, "status">, outcome: RunOutcome) => boolean;
|
|
56
|
+
export declare const isRequestId: (value: string) => boolean;
|
|
57
|
+
/** The filters of the runs that Flow applies, as typed by the viewer. */
|
|
58
|
+
export interface RunServerFilters {
|
|
59
|
+
range: {
|
|
60
|
+
from: Date | null;
|
|
61
|
+
to: Date | null;
|
|
62
|
+
};
|
|
63
|
+
/** Trimmed; empty when the viewer filters on no request. */
|
|
64
|
+
requestId: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The query of these filters: the bounds are whole days of the viewer (the first instant of the
|
|
68
|
+
* start day, the last of the end day), in ISO 8601; a request id that is not complete is left out
|
|
69
|
+
* (the field says so).
|
|
70
|
+
*/
|
|
71
|
+
export declare const runFilterQuery: (filters: RunServerFilters) => Pick<IPaginateScheduledTaskRunQuery, "from" | "to" | "requestId">;
|
|
72
|
+
/** The headers a run's answer came with, sorted by name; none when Flow kept none. */
|
|
73
|
+
export declare const runResponseHeaders: (run: Pick<IScheduledTaskRun, "responseHeaders">) => Array<[name: string, value: string]>;
|
|
39
74
|
/**
|
|
40
75
|
* What a rejected call says, when it says something: the validation message of a Flow answer, its
|
|
41
76
|
* message, or the message of a plain `Error`. `null` when the rejection carries no text (the
|