@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.
- package/CHANGELOG.md +112 -92
- package/catalog/pages/CookieConsent.tsx +112 -112
- package/catalog/pages/DeliveryHistory.tsx +79 -66
- package/catalog/pages/DeliverySubscriptions.tsx +127 -110
- package/catalog/pages/ScheduledTasks.tsx +117 -117
- package/catalog/specs/captures.spec.ts +145 -145
- package/catalog/specs/write-capture-index.ts +81 -81
- package/dist/{CookieConsentSettings-JQ9582_7.js → CookieConsentSettings-CLB1Mlv5.js} +1 -1
- package/dist/{Surface-dziv23sf.js → Surface-B_wIEB3b.js} +58 -48
- package/dist/{Tabs-_onUZBA-.js → Tabs-g7OaInVW.js} +47 -45
- package/dist/components/business/Deliveries/DeliveryHistory.component.d.ts +4 -3
- package/dist/components/business/Deliveries/DeliverySubscriptionForm.d.ts +3 -2
- package/dist/components/business/Deliveries/deliveries.logic.d.ts +11 -0
- package/dist/components/business/Deliveries/deliveries.types.d.ts +12 -4
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-B3C3z1gE.js → design-theme-Bcu3EMIB.js} +1 -1
- package/dist/{editors-BhQlONOy.js → editors-DdGMdSh2.js} +27 -27
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +12 -2
- package/dist/{index-D1mQgWN3.js → index-8LPOJLO8.js} +2 -2
- package/dist/{index-DLlWMDxB.js → index-B12llGmk.js} +4 -4
- package/dist/{index-yFJTDKIX.js → index-BFZvgteF.js} +2 -2
- package/dist/{index-B6w5_TeJ.js → index-BPF_Eb0U.js} +3 -3
- package/dist/{index-BGJobvxw.js → index-Be4u6vqC.js} +1 -1
- package/dist/{index-BcjlG5TB.js → index-CH4DiDpu.js} +2 -2
- package/dist/{index-DkZAsKob.js → index-CH67WfFq.js} +2 -2
- package/dist/{index-CJI1dJrw.js → index-CJ4-H8Ku.js} +3 -3
- package/dist/{index-BTDlbjWW.js → index-CNjQ-GTe.js} +2 -2
- package/dist/{index-BeMiREqf.js → index-CNx-Ok-t.js} +2 -2
- package/dist/{index-ytgNPz5f.js → index-CYGd_IjS.js} +2 -2
- package/dist/{index-BBF-FvT6.js → index-CbH8XAvZ.js} +2 -2
- package/dist/{index-DprTO7yi.js → index-Cwo-CFS8.js} +4 -4
- package/dist/{index-ByN6DcaL.js → index-DBctH8lu.js} +2 -2
- package/dist/{index-V4F4Sk7y.js → index-DMAlgOv6.js} +2 -2
- package/dist/{index-DNd8NZnu.js → index-DSIctaR0.js} +4 -4
- package/dist/{index-Dakpr4C1.js → index-DfGQhHnK.js} +3 -3
- package/dist/{index-B6LMTOKG.js → index-Vgp_uo0Y.js} +3 -3
- package/dist/{index-N4BwXTyk.js → index-_7HwdzPE.js} +2 -2
- package/dist/{index-y-TnfE6Z.js → index-cA9H4vaN.js} +2 -2
- package/dist/{index-BGAZK8Vk.js → index-zu64GUZu.js} +2 -2
- package/dist/index.js +5894 -5791
- package/dist/legacy.js +6 -6
- package/dist/translations/en.d.ts +6 -1
- package/dist/translations/fr.d.ts +6 -1
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as d, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import { useId as x, useRef as Y, useState as
|
|
2
|
+
import { useId as x, useRef as Y, useState as H, useCallback as X, useMemo as re, forwardRef as ae } from "react";
|
|
3
3
|
import { useIntl as G } from "react-intl";
|
|
4
4
|
import ne from "@mui/material/Dialog";
|
|
5
5
|
import J from "@mui/material/IconButton";
|
|
6
6
|
import { alpha as se, styled as g, useTheme as le } from "@mui/material/styles";
|
|
7
7
|
import $ from "@mui/icons-material/Close";
|
|
8
|
-
import
|
|
8
|
+
import V from "@mui/material/useMediaQuery";
|
|
9
9
|
import ce from "@mui/material/Modal";
|
|
10
10
|
import de from "@mui/material/Slide";
|
|
11
11
|
import { enTranslation as ue, frTranslation as pe } from "@abyss-project/main";
|
|
@@ -62,11 +62,11 @@ const ge = 266, c = (e, t) => ({ l: e, c: t, h: ge }), mt = {
|
|
|
62
62
|
sm: 4,
|
|
63
63
|
md: 6,
|
|
64
64
|
lg: 12
|
|
65
|
-
},
|
|
65
|
+
}, vt = {
|
|
66
66
|
fast: 120,
|
|
67
67
|
base: 180,
|
|
68
68
|
slow: 260
|
|
69
|
-
},
|
|
69
|
+
}, yt = {
|
|
70
70
|
standard: "cubic-bezier(0.2, 0, 0, 1)",
|
|
71
71
|
sheet: "cubic-bezier(0.32, 0.72, 0, 1)"
|
|
72
72
|
}, j = {
|
|
@@ -119,17 +119,17 @@ const ee = {
|
|
|
119
119
|
[w.down(R.Tablet)]: {
|
|
120
120
|
minHeight: a(e.design.densityValues.touchTarget)
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), ve = (e) => ({
|
|
123
123
|
[w.down(R.Tablet)]: {
|
|
124
124
|
minWidth: a(e.design.densityValues.touchTarget),
|
|
125
125
|
minHeight: a(e.design.densityValues.touchTarget)
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
127
|
+
}), ye = (e, t, o = "fast") => t.map(
|
|
128
128
|
(i) => `${i} ${e.design.durations[o]}ms ${e.design.easings.standard}`
|
|
129
129
|
).join(", "), Ee = () => {
|
|
130
|
-
const e =
|
|
130
|
+
const e = V(w.up(R.Desktop), {
|
|
131
131
|
noSsr: !0
|
|
132
|
-
}), t =
|
|
132
|
+
}), t = V(w.down(R.Tablet), {
|
|
133
133
|
noSsr: !0
|
|
134
134
|
});
|
|
135
135
|
return e ? R.Desktop : t ? R.Mobile : R.Tablet;
|
|
@@ -170,7 +170,7 @@ const P = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, be = 0.3, Se =
|
|
|
170
170
|
position: "absolute",
|
|
171
171
|
top: a(e.design.space[1]),
|
|
172
172
|
right: P(_.Right, e.design.space[2]),
|
|
173
|
-
...
|
|
173
|
+
...ve(e)
|
|
174
174
|
})), Re = g("div")(({ theme: e }) => {
|
|
175
175
|
const { space: t, densityValues: o } = e.design;
|
|
176
176
|
return {
|
|
@@ -222,7 +222,7 @@ function De({
|
|
|
222
222
|
closeLabel: r,
|
|
223
223
|
children: n
|
|
224
224
|
}) {
|
|
225
|
-
const h = le(),
|
|
225
|
+
const h = le(), v = G(), y = x(), f = Y(null), A = Y(null), [E, N] = H(0), [u, l] = H(!1), s = (T) => {
|
|
226
226
|
T.currentTarget.setPointerCapture(T.pointerId), A.current = T.clientY, l(!0);
|
|
227
227
|
}, p = (T) => {
|
|
228
228
|
A.current !== null && N(Math.max(0, T.clientY - A.current));
|
|
@@ -248,8 +248,8 @@ function De({
|
|
|
248
248
|
ref: f,
|
|
249
249
|
role: "dialog",
|
|
250
250
|
"aria-modal": "true",
|
|
251
|
-
"aria-labelledby": o ?
|
|
252
|
-
"aria-label": o ? void 0 :
|
|
251
|
+
"aria-labelledby": o ? y : void 0,
|
|
252
|
+
"aria-label": o ? void 0 : v.formatMessage({ id: "ds.mobile.bottom-sheet.label" }),
|
|
253
253
|
tabIndex: -1,
|
|
254
254
|
style: {
|
|
255
255
|
// No transform at rest: a transformed panel is the containing block of whatever is
|
|
@@ -269,7 +269,7 @@ function De({
|
|
|
269
269
|
onPointerCancel: S,
|
|
270
270
|
children: [
|
|
271
271
|
/* @__PURE__ */ d(Ce, { "aria-hidden": "true" }),
|
|
272
|
-
o ? /* @__PURE__ */ C(Ie, { id:
|
|
272
|
+
o ? /* @__PURE__ */ C(Ie, { id: y, besideClose: r !== void 0, children: [
|
|
273
273
|
i !== void 0 && /* @__PURE__ */ d(Oe, { "aria-hidden": "true", children: i }),
|
|
274
274
|
o
|
|
275
275
|
] }) : null
|
|
@@ -370,9 +370,9 @@ function Rt({
|
|
|
370
370
|
description: r,
|
|
371
371
|
size: n = "md",
|
|
372
372
|
actions: h,
|
|
373
|
-
children:
|
|
373
|
+
children: v
|
|
374
374
|
}) {
|
|
375
|
-
const
|
|
375
|
+
const y = G(), f = Ee() === R.Mobile, A = x(), E = x();
|
|
376
376
|
return f ? /* @__PURE__ */ C(
|
|
377
377
|
De,
|
|
378
378
|
{
|
|
@@ -380,10 +380,10 @@ function Rt({
|
|
|
380
380
|
onClose: t,
|
|
381
381
|
title: o,
|
|
382
382
|
titleIcon: i,
|
|
383
|
-
closeLabel:
|
|
383
|
+
closeLabel: y.formatMessage({ id: "ds.layers.modal.close" }),
|
|
384
384
|
children: [
|
|
385
385
|
r !== void 0 && /* @__PURE__ */ d(ze, { children: r }),
|
|
386
|
-
|
|
386
|
+
v,
|
|
387
387
|
h !== void 0 && /* @__PURE__ */ d(Ye, { children: h })
|
|
388
388
|
]
|
|
389
389
|
}
|
|
@@ -408,13 +408,13 @@ function Rt({
|
|
|
408
408
|
/* @__PURE__ */ d(
|
|
409
409
|
J,
|
|
410
410
|
{
|
|
411
|
-
"aria-label":
|
|
411
|
+
"aria-label": y.formatMessage({ id: "ds.layers.modal.close" }),
|
|
412
412
|
onClick: t,
|
|
413
413
|
children: /* @__PURE__ */ d($, { "aria-hidden": !0 })
|
|
414
414
|
}
|
|
415
415
|
)
|
|
416
416
|
] }),
|
|
417
|
-
/* @__PURE__ */ d(Ge, { children:
|
|
417
|
+
/* @__PURE__ */ d(Ge, { children: v }),
|
|
418
418
|
h !== void 0 && /* @__PURE__ */ d(Be, { children: h })
|
|
419
419
|
]
|
|
420
420
|
}
|
|
@@ -543,19 +543,19 @@ const q = (e) => e, te = {
|
|
|
543
543
|
})
|
|
544
544
|
};
|
|
545
545
|
var D = /* @__PURE__ */ ((e) => (e.FREEMIUM = "FREEMIUM", e.DEFAULT = "DEFAULT", e.CUSTOM = "CUSTOM", e.SYSTEM = "SYSTEM", e))(D || {}), O = /* @__PURE__ */ ((e) => (e.FREEMIUM = "freemium", e.STARTER = "starter", e.PRO = "pro", e.ENTERPRISE = "enterprise", e.CUSTOM = "custom", e.INTERNAL = "internal", e.FAMILY_FREE = "family-free", e.FAMILY_PAID = "family-paid", e.DEMO = "demo", e))(O || {});
|
|
546
|
-
const
|
|
546
|
+
const He = {
|
|
547
547
|
[D.FREEMIUM]: O.FREEMIUM,
|
|
548
548
|
[D.DEFAULT]: "paid",
|
|
549
549
|
[D.SYSTEM]: O.INTERNAL,
|
|
550
550
|
[D.CUSTOM]: O.CUSTOM
|
|
551
|
-
},
|
|
552
|
-
const o = (
|
|
553
|
-
const
|
|
554
|
-
if (typeof
|
|
551
|
+
}, Ve = new Set(Object.values(O)), U = (e) => e ? e.tier === D.CUSTOM ? O.CUSTOM : e.catalogKey && Ve.has(e.catalogKey) ? e.catalogKey : He[e.tier] ?? "paid" : O.FREEMIUM, Ct = (e, t) => {
|
|
552
|
+
const o = (v) => {
|
|
553
|
+
const y = e[`${v}Tier`];
|
|
554
|
+
if (typeof y != "string")
|
|
555
555
|
return null;
|
|
556
|
-
const f = e[`${
|
|
556
|
+
const f = e[`${v}CatalogKey`];
|
|
557
557
|
return {
|
|
558
|
-
tier:
|
|
558
|
+
tier: y,
|
|
559
559
|
catalogKey: typeof f == "string" ? f : null
|
|
560
560
|
};
|
|
561
561
|
}, i = {}, r = o("plan"), n = o("oldPlan"), h = o("newPlan");
|
|
@@ -1487,7 +1487,7 @@ const Ve = {
|
|
|
1487
1487
|
events: "Événements",
|
|
1488
1488
|
format: "Format",
|
|
1489
1489
|
enabled: "État",
|
|
1490
|
-
failures: "Échecs
|
|
1490
|
+
failures: "Échecs",
|
|
1491
1491
|
actions: "Actions"
|
|
1492
1492
|
},
|
|
1493
1493
|
action: {
|
|
@@ -1527,11 +1527,16 @@ const Ve = {
|
|
|
1527
1527
|
"empty-desc": "Les livraisons apparaissent ici dès qu’un événement est envoyé.",
|
|
1528
1528
|
"status-filter": "Statut",
|
|
1529
1529
|
"all-statuses": "Tous les statuts",
|
|
1530
|
+
subscription: {
|
|
1531
|
+
url: "URL",
|
|
1532
|
+
events: "Événements",
|
|
1533
|
+
"load-failed": "L’abonnement n’a pas pu être chargé."
|
|
1534
|
+
},
|
|
1530
1535
|
column: {
|
|
1531
1536
|
status: "Statut",
|
|
1532
1537
|
event: "Événement",
|
|
1533
1538
|
attempts: "Tentatives",
|
|
1534
|
-
code: "Code
|
|
1539
|
+
code: "Code HTTP",
|
|
1535
1540
|
created: "Créée",
|
|
1536
1541
|
delivered: "Livrée"
|
|
1537
1542
|
},
|
|
@@ -1540,7 +1545,7 @@ const Ve = {
|
|
|
1540
1545
|
title: "Détail de la livraison",
|
|
1541
1546
|
"load-failed": "Le détail n’a pas pu être chargé.",
|
|
1542
1547
|
"delivery-id": "Identifiant de livraison",
|
|
1543
|
-
"
|
|
1548
|
+
"event-data": "Données de l’événement",
|
|
1544
1549
|
headers: "En-têtes envoyés",
|
|
1545
1550
|
response: "Réponse",
|
|
1546
1551
|
"response-code": "Code de réponse",
|
|
@@ -3882,7 +3887,7 @@ const Ve = {
|
|
|
3882
3887
|
events: "Events",
|
|
3883
3888
|
format: "Format",
|
|
3884
3889
|
enabled: "State",
|
|
3885
|
-
failures: "
|
|
3890
|
+
failures: "Failures",
|
|
3886
3891
|
actions: "Actions"
|
|
3887
3892
|
},
|
|
3888
3893
|
action: {
|
|
@@ -3922,11 +3927,16 @@ const Ve = {
|
|
|
3922
3927
|
"empty-desc": "Deliveries show up here as soon as an event is sent.",
|
|
3923
3928
|
"status-filter": "Status",
|
|
3924
3929
|
"all-statuses": "All statuses",
|
|
3930
|
+
subscription: {
|
|
3931
|
+
url: "URL",
|
|
3932
|
+
events: "Events",
|
|
3933
|
+
"load-failed": "The subscription could not be loaded."
|
|
3934
|
+
},
|
|
3925
3935
|
column: {
|
|
3926
3936
|
status: "Status",
|
|
3927
3937
|
event: "Event",
|
|
3928
3938
|
attempts: "Attempts",
|
|
3929
|
-
code: "
|
|
3939
|
+
code: "HTTP code",
|
|
3930
3940
|
created: "Created",
|
|
3931
3941
|
delivered: "Delivered"
|
|
3932
3942
|
},
|
|
@@ -3935,7 +3945,7 @@ const Ve = {
|
|
|
3935
3945
|
title: "Delivery detail",
|
|
3936
3946
|
"load-failed": "The detail could not be loaded.",
|
|
3937
3947
|
"delivery-id": "Delivery id",
|
|
3938
|
-
"
|
|
3948
|
+
"event-data": "Event data",
|
|
3939
3949
|
headers: "Headers sent",
|
|
3940
3950
|
response: "Response",
|
|
3941
3951
|
"response-code": "Response code",
|
|
@@ -5426,11 +5436,11 @@ function Xe() {
|
|
|
5426
5436
|
}
|
|
5427
5437
|
function o(r, n) {
|
|
5428
5438
|
n = n || {};
|
|
5429
|
-
const h = n.delimiter || ".",
|
|
5439
|
+
const h = n.delimiter || ".", v = n.maxDepth, y = n.transformKey || t, f = {};
|
|
5430
5440
|
function A(E, N, u) {
|
|
5431
5441
|
u = u || 1, Object.keys(E).forEach(function(l) {
|
|
5432
|
-
const s = E[l], p = n.safe && Array.isArray(s), b = Object.prototype.toString.call(s), S = e(s), T = b === "[object Object]" || b === "[object Array]", I = N ? N + h +
|
|
5433
|
-
if (!p && !S && T && Object.keys(s).length && (!n.maxDepth || u <
|
|
5442
|
+
const s = E[l], p = n.safe && Array.isArray(s), b = Object.prototype.toString.call(s), S = e(s), T = b === "[object Object]" || b === "[object Array]", I = N ? N + h + y(l) : y(l);
|
|
5443
|
+
if (!p && !S && T && Object.keys(s).length && (!n.maxDepth || u < v))
|
|
5434
5444
|
return A(s, I, u + 1);
|
|
5435
5445
|
f[I] = s;
|
|
5436
5446
|
});
|
|
@@ -5439,7 +5449,7 @@ function Xe() {
|
|
|
5439
5449
|
}
|
|
5440
5450
|
function i(r, n) {
|
|
5441
5451
|
n = n || {};
|
|
5442
|
-
const h = n.delimiter || ".",
|
|
5452
|
+
const h = n.delimiter || ".", v = n.overwrite || !1, y = n.transformKey || t, f = {};
|
|
5443
5453
|
if (e(r) || Object.prototype.toString.call(r) !== "[object Object]")
|
|
5444
5454
|
return r;
|
|
5445
5455
|
function E(l) {
|
|
@@ -5468,15 +5478,15 @@ function Xe() {
|
|
|
5468
5478
|
o(r[s], n)
|
|
5469
5479
|
);
|
|
5470
5480
|
}, {}), Object.keys(r).forEach(function(l) {
|
|
5471
|
-
const s = l.split(h).map(
|
|
5481
|
+
const s = l.split(h).map(y);
|
|
5472
5482
|
let p = E(s.shift()), b = E(s[0]), S = f;
|
|
5473
5483
|
for (; b !== void 0; ) {
|
|
5474
5484
|
if (p === "__proto__")
|
|
5475
5485
|
return;
|
|
5476
5486
|
const T = Object.prototype.toString.call(S[p]), I = T === "[object Object]" || T === "[object Array]";
|
|
5477
|
-
if (!
|
|
5487
|
+
if (!v && !I && typeof S[p] < "u")
|
|
5478
5488
|
return;
|
|
5479
|
-
(
|
|
5489
|
+
(v && !I || !v && S[p] == null) && (S[p] = typeof b == "number" && !n.object ? [] : {}), S = S[p], s.length > 0 && (p = E(s.shift()), b = E(s[0]));
|
|
5480
5490
|
}
|
|
5481
5491
|
S[p] = i(r[l], n);
|
|
5482
5492
|
}), f;
|
|
@@ -5535,7 +5545,7 @@ const ie = {
|
|
|
5535
5545
|
font: "inherit",
|
|
5536
5546
|
textAlign: "inherit",
|
|
5537
5547
|
textDecoration: "none",
|
|
5538
|
-
transition:
|
|
5548
|
+
transition: ye(e, ["border-color"]),
|
|
5539
5549
|
"&:hover": { borderColor: o["border.strong"] },
|
|
5540
5550
|
"&:focus-visible": Ae(e)
|
|
5541
5551
|
}
|
|
@@ -5547,8 +5557,8 @@ const ie = {
|
|
|
5547
5557
|
children: r,
|
|
5548
5558
|
onKeyDown: n,
|
|
5549
5559
|
role: h,
|
|
5550
|
-
tabIndex:
|
|
5551
|
-
...
|
|
5560
|
+
tabIndex: v,
|
|
5561
|
+
...y
|
|
5552
5562
|
}, f) {
|
|
5553
5563
|
const A = t && typeof i == "string" && !Ze.has(i), E = X(
|
|
5554
5564
|
(u) => {
|
|
@@ -5563,11 +5573,11 @@ const ie = {
|
|
|
5563
5573
|
as: i,
|
|
5564
5574
|
ownerState: { interactive: t, padding: o },
|
|
5565
5575
|
role: h ?? (A ? "button" : void 0),
|
|
5566
|
-
tabIndex:
|
|
5576
|
+
tabIndex: v ?? (A ? 0 : void 0),
|
|
5567
5577
|
onKeyDown: (u) => {
|
|
5568
5578
|
n == null || n(u), A && !u.defaultPrevented && u.target === u.currentTarget && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.currentTarget.click());
|
|
5569
5579
|
},
|
|
5570
|
-
...
|
|
5580
|
+
...y,
|
|
5571
5581
|
children: r
|
|
5572
5582
|
}
|
|
5573
5583
|
);
|
|
@@ -5592,9 +5602,9 @@ export {
|
|
|
5592
5602
|
_t as b,
|
|
5593
5603
|
Pe as c,
|
|
5594
5604
|
w as d,
|
|
5595
|
-
|
|
5605
|
+
ve as e,
|
|
5596
5606
|
It as f,
|
|
5597
|
-
|
|
5607
|
+
ye as g,
|
|
5598
5608
|
L as h,
|
|
5599
5609
|
Ae as i,
|
|
5600
5610
|
Ee as j,
|
|
@@ -5612,6 +5622,6 @@ export {
|
|
|
5612
5622
|
fe as v,
|
|
5613
5623
|
P as w,
|
|
5614
5624
|
Tt as x,
|
|
5615
|
-
|
|
5616
|
-
|
|
5625
|
+
vt as y,
|
|
5626
|
+
yt as z
|
|
5617
5627
|
};
|
|
@@ -8,12 +8,12 @@ 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, e as yn, t as De, s as de, g as oe, i as te, M as Pe, c as He, j as vn, B as wn } from "./Surface-
|
|
11
|
+
import { a as A, p as o, h as D, d as Z, D as K, e as yn, t as De, s as de, g as oe, i as te, M as Pe, c as He, j as vn, B as wn } from "./Surface-B_wIEB3b.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 X from "@mui/material/Button";
|
|
14
14
|
import { byteSizeIEC as Mn } from "@abyss-project/main";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
15
|
+
import Wn from "@mui/icons-material/FileUploadOutlined";
|
|
16
|
+
import On, { autocompleteClasses as Se } from "@mui/material/Autocomplete";
|
|
17
17
|
import Ie from "@mui/material/CircularProgress";
|
|
18
18
|
import ae from "@mui/material/IconButton";
|
|
19
19
|
import me from "@mui/material/OutlinedInput";
|
|
@@ -143,6 +143,8 @@ const Ge = {
|
|
|
143
143
|
gap: o(e.design.space[1]),
|
|
144
144
|
flex: "1 1 auto",
|
|
145
145
|
minWidth: 0,
|
|
146
|
+
// In the column layout of a narrow screen, `alignItems: flex-start` sizes the text to its content.
|
|
147
|
+
maxWidth: "100%",
|
|
146
148
|
paddingTop: o(e.design.space[1] / 2),
|
|
147
149
|
lineHeight: e.typography.body2.lineHeight,
|
|
148
150
|
overflowWrap: "anywhere"
|
|
@@ -282,15 +284,15 @@ const U = (e) => e.id ?? e.name, qe = (e, n, t) => (n === void 0 || e.sizeOctet
|
|
|
282
284
|
listStyle: "none",
|
|
283
285
|
borderLeft: D(e.design.tokens["border.subtle"]),
|
|
284
286
|
marginLeft: o(e.design.space[3])
|
|
285
|
-
})),
|
|
287
|
+
})), We = l("li")({ listStyle: "none" });
|
|
286
288
|
function Je({
|
|
287
289
|
folders: e,
|
|
288
290
|
files: n,
|
|
289
291
|
context: t
|
|
290
292
|
}) {
|
|
291
293
|
return /* @__PURE__ */ x(J, { children: [
|
|
292
|
-
e.map((r) => /* @__PURE__ */ i(
|
|
293
|
-
n.filter((r) => qe(r, t.maxSize, t.accept)).map((r) => /* @__PURE__ */ i(
|
|
294
|
+
e.map((r) => /* @__PURE__ */ i(We, { children: /* @__PURE__ */ i(ut, { folder: r, context: t }) }, r.id ?? r.name)),
|
|
295
|
+
n.filter((r) => qe(r, t.maxSize, t.accept)).map((r) => /* @__PURE__ */ i(We, { children: /* @__PURE__ */ i(ct, { file: r, context: t }) }, U(r)))
|
|
294
296
|
] });
|
|
295
297
|
}
|
|
296
298
|
function dt({
|
|
@@ -385,7 +387,7 @@ function ut({
|
|
|
385
387
|
) })
|
|
386
388
|
] });
|
|
387
389
|
}
|
|
388
|
-
const
|
|
390
|
+
const Oe = "shared", Te = {
|
|
389
391
|
"org-common": 0,
|
|
390
392
|
"perso-in-org": 1,
|
|
391
393
|
project: 2,
|
|
@@ -505,8 +507,8 @@ const We = "shared", Te = {
|
|
|
505
507
|
textTransform: "uppercase",
|
|
506
508
|
color: t["text.muted"]
|
|
507
509
|
};
|
|
508
|
-
}),
|
|
509
|
-
function
|
|
510
|
+
}), Wt = l("ul")({ margin: 0, padding: 0 });
|
|
511
|
+
function Ot({
|
|
510
512
|
cloudPicker: e,
|
|
511
513
|
onImport: n,
|
|
512
514
|
multiple: t = !1,
|
|
@@ -524,7 +526,7 @@ function Wt({
|
|
|
524
526
|
refresh: h,
|
|
525
527
|
onCreateCloud: m,
|
|
526
528
|
fetchCloudRepository: p
|
|
527
|
-
} = e, f = P(), [b, v] = F(null), [M,
|
|
529
|
+
} = e, f = P(), [b, v] = F(null), [M, W] = F(null), [O, S] = F(
|
|
528
530
|
"loading"
|
|
529
531
|
/* Loading */
|
|
530
532
|
), [T, z] = F([]), [R, ee] = F(!1), [re, _] = F(!1), j = ge(() => {
|
|
@@ -573,7 +575,7 @@ function Wt({
|
|
|
573
575
|
),
|
|
574
576
|
...(C ?? []).map(
|
|
575
577
|
H(
|
|
576
|
-
|
|
578
|
+
Oe,
|
|
577
579
|
f.formatMessage({ id: "ds.business.cloud-import.section-shared" })
|
|
578
580
|
)
|
|
579
581
|
)
|
|
@@ -590,7 +592,7 @@ function Wt({
|
|
|
590
592
|
if (w.id === void 0)
|
|
591
593
|
throw new Error("A Space without an id has no tree");
|
|
592
594
|
const k = await he.current(w.id);
|
|
593
|
-
I === ce.current && (
|
|
595
|
+
I === ce.current && (W(k), S(
|
|
594
596
|
"ready"
|
|
595
597
|
/* Ready */
|
|
596
598
|
));
|
|
@@ -685,7 +687,7 @@ function Wt({
|
|
|
685
687
|
const fn = Cn(
|
|
686
688
|
d,
|
|
687
689
|
G.space,
|
|
688
|
-
G.sectionKey ===
|
|
690
|
+
G.sectionKey === Oe
|
|
689
691
|
), ye = f.formatMessage({
|
|
690
692
|
id: "ds.business.cloud-import.refresh"
|
|
691
693
|
}), ve = f.formatMessage({
|
|
@@ -702,7 +704,7 @@ function Wt({
|
|
|
702
704
|
),
|
|
703
705
|
/* @__PURE__ */ x(gt, { children: [
|
|
704
706
|
/* @__PURE__ */ i(
|
|
705
|
-
|
|
707
|
+
On,
|
|
706
708
|
{
|
|
707
709
|
fullWidth: !0,
|
|
708
710
|
disableClearable: !0,
|
|
@@ -722,7 +724,7 @@ function Wt({
|
|
|
722
724
|
},
|
|
723
725
|
renderGroup: (w) => /* @__PURE__ */ x(Ft, { children: [
|
|
724
726
|
/* @__PURE__ */ i(Mt, { children: w.group }),
|
|
725
|
-
/* @__PURE__ */ i(
|
|
727
|
+
/* @__PURE__ */ i(Wt, { children: w.children })
|
|
726
728
|
] }, w.key),
|
|
727
729
|
renderOption: ({ key: w, ...I }, k) => /* @__PURE__ */ x(xt, { ...I, children: [
|
|
728
730
|
/* @__PURE__ */ i(en, { "aria-hidden": !0, children: we(k) }),
|
|
@@ -755,7 +757,7 @@ function Wt({
|
|
|
755
757
|
ae,
|
|
756
758
|
{
|
|
757
759
|
"aria-label": ye,
|
|
758
|
-
disabled:
|
|
760
|
+
disabled: O === "loading" || y,
|
|
759
761
|
onClick: () => void cn(),
|
|
760
762
|
children: /* @__PURE__ */ i(zn, { "aria-hidden": !0 })
|
|
761
763
|
}
|
|
@@ -773,7 +775,7 @@ function Wt({
|
|
|
773
775
|
) })
|
|
774
776
|
] }),
|
|
775
777
|
/* @__PURE__ */ i(ft, { children: f.formatMessage({ id: "ds.business.cloud-import.filtered-hint" }) }),
|
|
776
|
-
|
|
778
|
+
O === "loading" && /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(
|
|
777
779
|
Ie,
|
|
778
780
|
{
|
|
779
781
|
size: 24,
|
|
@@ -782,7 +784,7 @@ function Wt({
|
|
|
782
784
|
})
|
|
783
785
|
}
|
|
784
786
|
) }),
|
|
785
|
-
|
|
787
|
+
O === "failed" && /* @__PURE__ */ x(ne, { role: "alert", children: [
|
|
786
788
|
f.formatMessage({ id: "ds.business.cloud-import.tree-error" }),
|
|
787
789
|
/* @__PURE__ */ i(
|
|
788
790
|
X,
|
|
@@ -793,7 +795,7 @@ function Wt({
|
|
|
793
795
|
}
|
|
794
796
|
)
|
|
795
797
|
] }),
|
|
796
|
-
|
|
798
|
+
O === "ready" && M !== null && (M.folders.length === 0 && M.files.length === 0 ? /* @__PURE__ */ x(ne, { children: [
|
|
797
799
|
/* @__PURE__ */ i(Ne, { "aria-hidden": !0 }),
|
|
798
800
|
f.formatMessage({ id: "ds.business.cloud-import.empty-space" })
|
|
799
801
|
] }) : /* @__PURE__ */ i(
|
|
@@ -848,7 +850,7 @@ function Tt({
|
|
|
848
850
|
size: He.Medium,
|
|
849
851
|
title: c.formatMessage({ id: "ds.business.cloud-import.title" }),
|
|
850
852
|
children: e && /* @__PURE__ */ i(
|
|
851
|
-
|
|
853
|
+
Ot,
|
|
852
854
|
{
|
|
853
855
|
cloudPicker: r,
|
|
854
856
|
multiple: s,
|
|
@@ -941,9 +943,9 @@ function wr({
|
|
|
941
943
|
displayEmpty: !0,
|
|
942
944
|
renderValue: (v) => {
|
|
943
945
|
const M = Array.isArray(v) ? v : [v];
|
|
944
|
-
return y && M.length === 0 ? /* @__PURE__ */ i(Pt, { "aria-hidden": !0, children: e }) : /* @__PURE__ */ i(pe, { children: M.map((
|
|
945
|
-
var
|
|
946
|
-
return ((
|
|
946
|
+
return y && M.length === 0 ? /* @__PURE__ */ i(Pt, { "aria-hidden": !0, children: e }) : /* @__PURE__ */ i(pe, { children: M.map((W) => {
|
|
947
|
+
var O;
|
|
948
|
+
return ((O = f.get(W)) == null ? void 0 : O.label) ?? W;
|
|
947
949
|
}).join(", ") });
|
|
948
950
|
},
|
|
949
951
|
"aria-describedby": a ? p : void 0,
|
|
@@ -1058,7 +1060,7 @@ function xr({
|
|
|
1058
1060
|
z.length === 1 ? "too-big" : "some-too-big"
|
|
1059
1061
|
/* SomeTooBig */
|
|
1060
1062
|
) : h(null), re.length > 0 && e(re);
|
|
1061
|
-
}, { getRootProps: M, getInputProps:
|
|
1063
|
+
}, { getRootProps: M, getInputProps: W, isDragActive: O, open: S } = Sn({
|
|
1062
1064
|
onDrop: v,
|
|
1063
1065
|
multiple: n,
|
|
1064
1066
|
accept: t,
|
|
@@ -1077,13 +1079,13 @@ function xr({
|
|
|
1077
1079
|
"aria-describedby": b !== null ? y : void 0,
|
|
1078
1080
|
children: [
|
|
1079
1081
|
d !== void 0 && /* @__PURE__ */ i(Nt, { id: C, children: d }),
|
|
1080
|
-
/* @__PURE__ */ x(_t, { ...M({ onClick: S }), active:
|
|
1081
|
-
/* @__PURE__ */ i("input", { ...
|
|
1082
|
+
/* @__PURE__ */ x(_t, { ...M({ onClick: S }), active: O, children: [
|
|
1083
|
+
/* @__PURE__ */ i("input", { ...W({ "aria-hidden": !0 }) }),
|
|
1082
1084
|
c ?? /* @__PURE__ */ x(J, { children: [
|
|
1083
|
-
/* @__PURE__ */ i(Bt, { "aria-hidden": !0, children: /* @__PURE__ */ i(
|
|
1085
|
+
/* @__PURE__ */ i(Bt, { "aria-hidden": !0, children: /* @__PURE__ */ i(Wn, {}) }),
|
|
1084
1086
|
/* @__PURE__ */ i(Vt, { children: g.formatMessage(
|
|
1085
1087
|
{
|
|
1086
|
-
id:
|
|
1088
|
+
id: O ? "ds.inputs.drop-zone.release" : "ds.inputs.drop-zone.prompt"
|
|
1087
1089
|
},
|
|
1088
1090
|
{ multiple: String(n) }
|
|
1089
1091
|
) })
|
|
@@ -1161,10 +1163,10 @@ function Jt({
|
|
|
1161
1163
|
}) {
|
|
1162
1164
|
const g = P(), C = bn(), y = N(), [u, h] = F(""), [m, p] = F(!1), [f, b] = F(!1), [v, M] = F(e);
|
|
1163
1165
|
e !== v && (M(e), e && (h(""), b(!1)));
|
|
1164
|
-
const
|
|
1166
|
+
const W = !m && (d === void 0 || u === d), O = s !== "default", S = () => {
|
|
1165
1167
|
m || c();
|
|
1166
1168
|
}, T = () => {
|
|
1167
|
-
if (!
|
|
1169
|
+
if (!W)
|
|
1168
1170
|
return;
|
|
1169
1171
|
b(!1);
|
|
1170
1172
|
let R;
|
|
@@ -1196,7 +1198,7 @@ function Jt({
|
|
|
1196
1198
|
{
|
|
1197
1199
|
variant: "outlined",
|
|
1198
1200
|
disabled: m,
|
|
1199
|
-
autoFocus: d === void 0 &&
|
|
1201
|
+
autoFocus: d === void 0 && O,
|
|
1200
1202
|
onClick: S,
|
|
1201
1203
|
children: g.formatMessage({ id: "ds.layers.confirm-dialog.cancel" })
|
|
1202
1204
|
}
|
|
@@ -1208,9 +1210,9 @@ function Jt({
|
|
|
1208
1210
|
form: y,
|
|
1209
1211
|
variant: "contained",
|
|
1210
1212
|
color: Zt[s],
|
|
1211
|
-
disabled: !
|
|
1213
|
+
disabled: !W,
|
|
1212
1214
|
loading: m,
|
|
1213
|
-
autoFocus: d === void 0 && !
|
|
1215
|
+
autoFocus: d === void 0 && !O,
|
|
1214
1216
|
sx: s === "warning" ? {
|
|
1215
1217
|
"&:not(.Mui-disabled)": {
|
|
1216
1218
|
color: Qt(
|
|
@@ -1419,9 +1421,9 @@ function Ir({
|
|
|
1419
1421
|
maximumFractionDigits: r
|
|
1420
1422
|
}),
|
|
1421
1423
|
[m, r]
|
|
1422
|
-
), [b, v] = F(!1), [M,
|
|
1424
|
+
), [b, v] = F(!1), [M, W] = F(() => f(n));
|
|
1423
1425
|
return V(() => {
|
|
1424
|
-
b ||
|
|
1426
|
+
b || W(f(n));
|
|
1425
1427
|
}, [n, b, f]), /* @__PURE__ */ i(ao, { labelHidden: a, children: /* @__PURE__ */ i(Ve, { label: e, help: g, error: C, children: /* @__PURE__ */ i(
|
|
1426
1428
|
me,
|
|
1427
1429
|
{
|
|
@@ -1433,10 +1435,10 @@ function Ir({
|
|
|
1433
1435
|
"data-testid": y
|
|
1434
1436
|
},
|
|
1435
1437
|
onFocus: () => {
|
|
1436
|
-
v(!0), n !== null &&
|
|
1438
|
+
v(!0), n !== null && W(String(n).replace(".", p.decimal));
|
|
1437
1439
|
},
|
|
1438
1440
|
onChange: (S) => {
|
|
1439
|
-
|
|
1441
|
+
W(S.target.value);
|
|
1440
1442
|
const T = Re(S.target.value, p);
|
|
1441
1443
|
T !== null ? t(T) : S.target.value === "" && t(null);
|
|
1442
1444
|
},
|
|
@@ -1451,7 +1453,7 @@ function Ir({
|
|
|
1451
1453
|
)
|
|
1452
1454
|
);
|
|
1453
1455
|
}
|
|
1454
|
-
t(S),
|
|
1456
|
+
t(S), W(f(S));
|
|
1455
1457
|
},
|
|
1456
1458
|
endAdornment: h ? /* @__PURE__ */ i(Un, { position: "end", children: h }) : void 0
|
|
1457
1459
|
}
|
|
@@ -1483,7 +1485,7 @@ const Fr = { l: 0.72, c: 0.12 }, Mr = [
|
|
|
1483
1485
|
"#37bda2",
|
|
1484
1486
|
"#18b9c9",
|
|
1485
1487
|
"#4eb0e5"
|
|
1486
|
-
],
|
|
1488
|
+
], Wr = "#767676", Or = rn[6], Tr = "#111a2f", Rr = "#5674be", lo = /^#?([0-9a-f]{6})$/i, q = (e) => {
|
|
1487
1489
|
const n = lo.exec(e.trim());
|
|
1488
1490
|
return n ? `#${n[1].toLowerCase()}` : null;
|
|
1489
1491
|
}, co = l("div")(({ theme: e }) => ({
|
|
@@ -1831,7 +1833,7 @@ const So = 2, Io = /* @__PURE__ */ new Set(["Enter", " "]), Fo = l("div", {
|
|
|
1831
1833
|
},
|
|
1832
1834
|
...y
|
|
1833
1835
|
};
|
|
1834
|
-
}, ln = (e) => e !== "variant",
|
|
1836
|
+
}, ln = (e) => e !== "variant", Wo = l(Yn, { shouldForwardProp: ln })(({ theme: e, variant: n }) => an(e, n)), Oo = l("button", { shouldForwardProp: ln })(({ theme: e, variant: n }) => an(e, n)), To = l("span")(({ theme: e }) => {
|
|
1835
1837
|
const { tokens: n, space: t, radii: r, fonts: s, typeScale: d } = e.design;
|
|
1836
1838
|
return {
|
|
1837
1839
|
display: "inline-flex",
|
|
@@ -1930,7 +1932,7 @@ function Ar({
|
|
|
1930
1932
|
onClick: () => t == null ? void 0 : t(p.value)
|
|
1931
1933
|
};
|
|
1932
1934
|
return p.to !== void 0 ? /* @__PURE__ */ i(
|
|
1933
|
-
|
|
1935
|
+
Wo,
|
|
1934
1936
|
{
|
|
1935
1937
|
to: p.to,
|
|
1936
1938
|
"aria-current": b ? "page" : void 0,
|
|
@@ -1938,7 +1940,7 @@ function Ar({
|
|
|
1938
1940
|
children: v
|
|
1939
1941
|
},
|
|
1940
1942
|
p.value
|
|
1941
|
-
) : /* @__PURE__ */ i(
|
|
1943
|
+
) : /* @__PURE__ */ i(Oo, { type: "button", ...M, children: v }, p.value);
|
|
1942
1944
|
})
|
|
1943
1945
|
}
|
|
1944
1946
|
) });
|
|
@@ -1959,7 +1961,7 @@ export {
|
|
|
1959
1961
|
Yt as d,
|
|
1960
1962
|
Jt as e,
|
|
1961
1963
|
Co as f,
|
|
1962
|
-
|
|
1964
|
+
Ot as g,
|
|
1963
1965
|
Er as h,
|
|
1964
1966
|
eo as i,
|
|
1965
1967
|
Cr as j,
|
|
@@ -1968,8 +1970,8 @@ export {
|
|
|
1968
1970
|
Mr as m,
|
|
1969
1971
|
q as n,
|
|
1970
1972
|
rn as o,
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
+
Wr as p,
|
|
1974
|
+
Or as q,
|
|
1973
1975
|
Tr as r,
|
|
1974
1976
|
Rr as s,
|
|
1975
1977
|
kr as u
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { DeliveryHistoryProps } from './deliveries.types';
|
|
3
3
|
/**
|
|
4
|
-
* The deliveries of a scope (usually one subscription
|
|
5
|
-
*
|
|
6
|
-
* ended. Data and actions come through
|
|
4
|
+
* The deliveries of a scope (usually one subscription, named under the title by its URL and its
|
|
5
|
+
* events): a paginated list with a status filter, a detail drawer (event data, headers sent,
|
|
6
|
+
* response, timeline) and a replay of the deliveries that ended. Data and actions come through
|
|
7
|
+
* props.
|
|
7
8
|
*/
|
|
8
9
|
export declare const DeliveryHistory: FC<DeliveryHistoryProps>;
|
|
@@ -16,8 +16,9 @@ interface DeliverySubscriptionFormProps {
|
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* The body of the create and edit drawer. It lives inside the drawer so that closing it drops the
|
|
19
|
-
* typed values. The source is chosen at creation and cannot change after
|
|
20
|
-
* only ones offered, and the body format only
|
|
19
|
+
* typed values. The source is chosen at creation and cannot change after (no choice is drawn when
|
|
20
|
+
* the host offers one source); its event types are the only ones offered, and the body format only
|
|
21
|
+
* exists for a Form subscription.
|
|
21
22
|
*/
|
|
22
23
|
export declare function DeliverySubscriptionForm({ subscription, sources, eventTypesBySource, onSubmit, onCancel, }: DeliverySubscriptionFormProps): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export {};
|