@abyss-project/commons-front-core 18.1.0 → 18.1.1

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 (53) hide show
  1. package/CHANGELOG.md +92 -99
  2. package/catalog/pages/CookieConsent.tsx +112 -61
  3. package/catalog/pages/DeliveryHistory.tsx +66 -79
  4. package/catalog/pages/DeliverySubscriptions.tsx +110 -127
  5. package/catalog/pages/ScheduledTasks.tsx +117 -117
  6. package/catalog/specs/captures.spec.ts +145 -145
  7. package/catalog/specs/cookie-consent-modal.spec.ts +145 -5
  8. package/catalog/specs/write-capture-index.ts +81 -81
  9. package/dist/CookieConsentSettings-JQ9582_7.js +687 -0
  10. package/dist/{Surface-z5TuQzlh.js → Surface-dziv23sf.js} +40 -50
  11. package/dist/{Tabs-C4K0mLME.js → Tabs-_onUZBA-.js} +1 -1
  12. package/dist/components/business/CookieConsent/containing-block.d.ts +19 -0
  13. package/dist/components/business/CookieConsent/containing-block.spec.d.ts +1 -0
  14. package/dist/components/business/CookieConsent/use-banner-portal.d.ts +9 -0
  15. package/dist/components/business/Deliveries/DeliveryHistory.component.d.ts +3 -4
  16. package/dist/components/business/Deliveries/DeliverySubscriptionForm.d.ts +2 -3
  17. package/dist/components/business/Deliveries/deliveries.logic.d.ts +0 -11
  18. package/dist/components/business/Deliveries/deliveries.types.d.ts +4 -12
  19. package/dist/cookie-consent.js +2 -2
  20. package/dist/{design-theme-BFkCN7Nz.js → design-theme-B3C3z1gE.js} +1 -1
  21. package/dist/{editors-Eb3PHnxn.js → editors-BhQlONOy.js} +27 -27
  22. package/dist/editors.js +1 -1
  23. package/dist/hooks/use-rich-intl.hook.d.ts +2 -12
  24. package/dist/{index-CYBvIQsH.js → index-B6LMTOKG.js} +3 -3
  25. package/dist/{index-CUhMNEUo.js → index-B6w5_TeJ.js} +3 -3
  26. package/dist/{index-Dqm1dC1j.js → index-BBF-FvT6.js} +2 -2
  27. package/dist/{index-B76nCWpd.js → index-BGAZK8Vk.js} +2 -2
  28. package/dist/{index-CFDEfvCD.js → index-BGJobvxw.js} +1 -1
  29. package/dist/{index-CtkfWhK1.js → index-BTDlbjWW.js} +2 -2
  30. package/dist/{index-BKRudpMw.js → index-BcjlG5TB.js} +2 -2
  31. package/dist/{index-BcO-JFrs.js → index-BeMiREqf.js} +2 -2
  32. package/dist/{index-CWD0waD8.js → index-ByN6DcaL.js} +2 -2
  33. package/dist/{index-BaL2x2GW.js → index-CJI1dJrw.js} +3 -3
  34. package/dist/{index-BlOP01yA.js → index-D1mQgWN3.js} +2 -2
  35. package/dist/{index-z5ZOXlY8.js → index-DLlWMDxB.js} +4 -4
  36. package/dist/{index-Ckzcg8qD.js → index-DNd8NZnu.js} +4 -4
  37. package/dist/{index-Ckzmgx9X.js → index-Dakpr4C1.js} +3 -3
  38. package/dist/{index-CrZZo4r1.js → index-DkZAsKob.js} +2 -2
  39. package/dist/{index-CQ7z2zKY.js → index-DprTO7yi.js} +4 -4
  40. package/dist/{index-CtVoDSIn.js → index-N4BwXTyk.js} +2 -2
  41. package/dist/{index-Bw4XnSa0.js → index-V4F4Sk7y.js} +2 -2
  42. package/dist/{index-CRFGogWn.js → index-y-TnfE6Z.js} +2 -2
  43. package/dist/{index-2lNOK7eK.js → index-yFJTDKIX.js} +2 -2
  44. package/dist/{index-DRtBc440.js → index-ytgNPz5f.js} +2 -2
  45. package/dist/index.js +5790 -5880
  46. package/dist/legacy.js +6 -6
  47. package/dist/test/vitest-workers.d.ts +18 -0
  48. package/dist/test/vitest-workers.spec.d.ts +1 -0
  49. package/dist/translations/en.d.ts +1 -6
  50. package/dist/translations/fr.d.ts +1 -6
  51. package/package.json +3 -3
  52. package/vitest.config.ts +6 -0
  53. package/dist/CookieConsentSettings-DUoKKRMZ.js +0 -595
@@ -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
- }, vt = {
65
+ }, yt = {
66
66
  fast: 120,
67
67
  base: 180,
68
68
  slow: 260
69
- }, yt = {
69
+ }, vt = {
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,12 +119,12 @@ const ee = {
119
119
  [w.down(R.Tablet)]: {
120
120
  minHeight: a(e.design.densityValues.touchTarget)
121
121
  }
122
- }), ve = (e) => ({
122
+ }), ye = (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
- }), ye = (e, t, o = "fast") => t.map(
127
+ }), ve = (e, t, o = "fast") => t.map(
128
128
  (i) => `${i} ${e.design.durations[o]}ms ${e.design.easings.standard}`
129
129
  ).join(", "), Ee = () => {
130
130
  const e = H(w.up(R.Desktop), {
@@ -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
- ...ve(e)
173
+ ...ye(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(), v = G(), y = x(), f = Y(null), A = Y(null), [E, N] = V(0), [u, l] = V(!1), s = (T) => {
225
+ const h = le(), y = G(), v = x(), f = Y(null), A = Y(null), [E, N] = V(0), [u, l] = V(!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 ? y : void 0,
252
- "aria-label": o ? void 0 : v.formatMessage({ id: "ds.mobile.bottom-sheet.label" }),
251
+ "aria-labelledby": o ? v : void 0,
252
+ "aria-label": o ? void 0 : y.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: y, besideClose: r !== void 0, children: [
272
+ o ? /* @__PURE__ */ C(Ie, { id: v, 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: v
373
+ children: y
374
374
  }) {
375
- const y = G(), f = Ee() === R.Mobile, A = x(), E = x();
375
+ const v = 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: y.formatMessage({ id: "ds.layers.modal.close" }),
383
+ closeLabel: v.formatMessage({ id: "ds.layers.modal.close" }),
384
384
  children: [
385
385
  r !== void 0 && /* @__PURE__ */ d(ze, { children: r }),
386
- v,
386
+ y,
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": y.formatMessage({ id: "ds.layers.modal.close" }),
411
+ "aria-label": v.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: v }),
417
+ /* @__PURE__ */ d(Ge, { children: y }),
418
418
  h !== void 0 && /* @__PURE__ */ d(Be, { children: h })
419
419
  ]
420
420
  }
@@ -549,13 +549,13 @@ const Ve = {
549
549
  [D.SYSTEM]: O.INTERNAL,
550
550
  [D.CUSTOM]: O.CUSTOM
551
551
  }, He = new Set(Object.values(O)), U = (e) => e ? e.tier === D.CUSTOM ? O.CUSTOM : e.catalogKey && He.has(e.catalogKey) ? e.catalogKey : Ve[e.tier] ?? "paid" : O.FREEMIUM, Ct = (e, t) => {
552
- const o = (v) => {
553
- const y = e[`${v}Tier`];
554
- if (typeof y != "string")
552
+ const o = (y) => {
553
+ const v = e[`${y}Tier`];
554
+ if (typeof v != "string")
555
555
  return null;
556
- const f = e[`${v}CatalogKey`];
556
+ const f = e[`${y}CatalogKey`];
557
557
  return {
558
- tier: y,
558
+ tier: v,
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 consécutifs",
1491
1491
  actions: "Actions"
1492
1492
  },
1493
1493
  action: {
@@ -1527,11 +1527,6 @@ 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
- },
1535
1530
  column: {
1536
1531
  status: "Statut",
1537
1532
  event: "Événement",
@@ -1545,7 +1540,7 @@ const Ve = {
1545
1540
  title: "Détail de la livraison",
1546
1541
  "load-failed": "Le détail n’a pas pu être chargé.",
1547
1542
  "delivery-id": "Identifiant de livraison",
1548
- "event-data": "Données de l’événement",
1543
+ "request-body": "Corps de la requête",
1549
1544
  headers: "En-têtes envoyés",
1550
1545
  response: "Réponse",
1551
1546
  "response-code": "Code de réponse",
@@ -3887,7 +3882,7 @@ const Ve = {
3887
3882
  events: "Events",
3888
3883
  format: "Format",
3889
3884
  enabled: "State",
3890
- failures: "Failures",
3885
+ failures: "Consecutive failures",
3891
3886
  actions: "Actions"
3892
3887
  },
3893
3888
  action: {
@@ -3927,11 +3922,6 @@ const Ve = {
3927
3922
  "empty-desc": "Deliveries show up here as soon as an event is sent.",
3928
3923
  "status-filter": "Status",
3929
3924
  "all-statuses": "All statuses",
3930
- subscription: {
3931
- url: "URL",
3932
- events: "Events",
3933
- "load-failed": "The subscription could not be loaded."
3934
- },
3935
3925
  column: {
3936
3926
  status: "Status",
3937
3927
  event: "Event",
@@ -3945,7 +3935,7 @@ const Ve = {
3945
3935
  title: "Delivery detail",
3946
3936
  "load-failed": "The detail could not be loaded.",
3947
3937
  "delivery-id": "Delivery id",
3948
- "event-data": "Event data",
3938
+ "request-body": "Request body",
3949
3939
  headers: "Headers sent",
3950
3940
  response: "Response",
3951
3941
  "response-code": "Response code",
@@ -5436,11 +5426,11 @@ function Xe() {
5436
5426
  }
5437
5427
  function o(r, n) {
5438
5428
  n = n || {};
5439
- const h = n.delimiter || ".", v = n.maxDepth, y = n.transformKey || t, f = {};
5429
+ const h = n.delimiter || ".", y = n.maxDepth, v = n.transformKey || t, f = {};
5440
5430
  function A(E, N, u) {
5441
5431
  u = u || 1, Object.keys(E).forEach(function(l) {
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))
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 + v(l) : v(l);
5433
+ if (!p && !S && T && Object.keys(s).length && (!n.maxDepth || u < y))
5444
5434
  return A(s, I, u + 1);
5445
5435
  f[I] = s;
5446
5436
  });
@@ -5449,7 +5439,7 @@ function Xe() {
5449
5439
  }
5450
5440
  function i(r, n) {
5451
5441
  n = n || {};
5452
- const h = n.delimiter || ".", v = n.overwrite || !1, y = n.transformKey || t, f = {};
5442
+ const h = n.delimiter || ".", y = n.overwrite || !1, v = n.transformKey || t, f = {};
5453
5443
  if (e(r) || Object.prototype.toString.call(r) !== "[object Object]")
5454
5444
  return r;
5455
5445
  function E(l) {
@@ -5478,15 +5468,15 @@ function Xe() {
5478
5468
  o(r[s], n)
5479
5469
  );
5480
5470
  }, {}), Object.keys(r).forEach(function(l) {
5481
- const s = l.split(h).map(y);
5471
+ const s = l.split(h).map(v);
5482
5472
  let p = E(s.shift()), b = E(s[0]), S = f;
5483
5473
  for (; b !== void 0; ) {
5484
5474
  if (p === "__proto__")
5485
5475
  return;
5486
5476
  const T = Object.prototype.toString.call(S[p]), I = T === "[object Object]" || T === "[object Array]";
5487
- if (!v && !I && typeof S[p] < "u")
5477
+ if (!y && !I && typeof S[p] < "u")
5488
5478
  return;
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]));
5479
+ (y && !I || !y && S[p] == null) && (S[p] = typeof b == "number" && !n.object ? [] : {}), S = S[p], s.length > 0 && (p = E(s.shift()), b = E(s[0]));
5490
5480
  }
5491
5481
  S[p] = i(r[l], n);
5492
5482
  }), f;
@@ -5545,7 +5535,7 @@ const ie = {
5545
5535
  font: "inherit",
5546
5536
  textAlign: "inherit",
5547
5537
  textDecoration: "none",
5548
- transition: ye(e, ["border-color"]),
5538
+ transition: ve(e, ["border-color"]),
5549
5539
  "&:hover": { borderColor: o["border.strong"] },
5550
5540
  "&:focus-visible": Ae(e)
5551
5541
  }
@@ -5557,8 +5547,8 @@ const ie = {
5557
5547
  children: r,
5558
5548
  onKeyDown: n,
5559
5549
  role: h,
5560
- tabIndex: v,
5561
- ...y
5550
+ tabIndex: y,
5551
+ ...v
5562
5552
  }, f) {
5563
5553
  const A = t && typeof i == "string" && !Ze.has(i), E = X(
5564
5554
  (u) => {
@@ -5573,11 +5563,11 @@ const ie = {
5573
5563
  as: i,
5574
5564
  ownerState: { interactive: t, padding: o },
5575
5565
  role: h ?? (A ? "button" : void 0),
5576
- tabIndex: v ?? (A ? 0 : void 0),
5566
+ tabIndex: y ?? (A ? 0 : void 0),
5577
5567
  onKeyDown: (u) => {
5578
5568
  n == null || n(u), A && !u.defaultPrevented && u.target === u.currentTarget && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.currentTarget.click());
5579
5569
  },
5580
- ...y,
5570
+ ...v,
5581
5571
  children: r
5582
5572
  }
5583
5573
  );
@@ -5602,9 +5592,9 @@ export {
5602
5592
  _t as b,
5603
5593
  Pe as c,
5604
5594
  w as d,
5605
- ve as e,
5595
+ ye as e,
5606
5596
  It as f,
5607
- ye as g,
5597
+ ve as g,
5608
5598
  L as h,
5609
5599
  Ae as i,
5610
5600
  Ee as j,
@@ -5622,6 +5612,6 @@ export {
5622
5612
  fe as v,
5623
5613
  P as w,
5624
5614
  Tt as x,
5625
- vt as y,
5626
- yt as z
5615
+ yt as y,
5616
+ vt as z
5627
5617
  };
@@ -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, 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-z5TuQzlh.js";
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-dziv23sf.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";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The banner is `position: fixed`, so that it sticks to the window. A surface of a modal whose style
3
+ * creates a containing block (the `backdrop-filter` of the legacy theme's dialog paper, a
4
+ * `transform`, a `filter`, `contain: paint`, `will-change: transform`, `container-type`...) becomes
5
+ * the box the banner is laid out in instead: it sticks to the bottom of the surface and covers the
6
+ * modal's main action (#747). No stylesheet can tell this in advance, a theme may add any of them.
7
+ *
8
+ * So, while the banner is hosted in `surface`, each property above that really creates a block, read
9
+ * from `getComputedStyle` on the surface and on every ancestor up to `boundary` (the modal root), is
10
+ * switched off by an inline `!important` style. Only what comes from a stylesheet is touched: a
11
+ * property an element carries inline is driven by code (a sheet following the finger writes a
12
+ * `translateY` on every frame, a drawer leaving writes its exit transform), and is never written
13
+ * over, whatever its value; the banner then follows that element for as long as it is moved. Since
14
+ * only a property with no inline value is ever written, giving it back is removing ours (the `style`
15
+ * attribute goes too if it was not there). A style or class change of a chain element, or the end of a
16
+ * transition, is read again; a value someone writes over ours is theirs, and is left alone on release.
17
+ * The list is the common case: what other properties could ever create a block is not exhaustive.
18
+ */
19
+ export declare const neutralizeContainingBlocks: (surface: HTMLElement, boundary: HTMLElement) => (() => void);
@@ -32,5 +32,14 @@ export interface BannerPortal {
32
32
  * moved into that modal's `aria-modal` surface (inside its focus trap and its accessibility
33
33
  * subtree), and back to `body` once no modal is open. The banner is rendered in it with a portal,
34
34
  * so it keeps the React context (theme, messages) of the provider.
35
+ *
36
+ * The banner is `position: fixed`, and a surface whose style creates a containing block (a
37
+ * `backdrop-filter`, a `filter`, a `transform`, `contain: paint`, `will-change: transform`,
38
+ * `container-type`...) would stick it to the bottom of the surface instead of the window, over the
39
+ * modal's main action. While the banner is hosted, the properties a stylesheet gives to the surface
40
+ * and to its ancestors up to the modal root are therefore switched off by an inline style, and removed
41
+ * when the banner leaves or the modal closes (`containing-block.ts`). A property carried inline (a
42
+ * sheet being dragged, a drawer leaving) is never touched. The surface loses that effect (a frosted
43
+ * glass, say) while the banner is in it.
35
44
  */
36
45
  export declare const useBannerPortal: () => BannerPortal;
@@ -1,9 +1,8 @@
1
1
  import { FC } from 'react';
2
2
  import { DeliveryHistoryProps } from './deliveries.types';
3
3
  /**
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.
4
+ * The deliveries of a scope (usually one subscription): a paginated list with a status filter, a
5
+ * detail drawer (request, headers sent, response, timeline) and a replay of the deliveries that
6
+ * ended. Data and actions come through props.
8
7
  */
9
8
  export declare const DeliveryHistory: FC<DeliveryHistoryProps>;
@@ -16,9 +16,8 @@ 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 (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.
19
+ * typed values. The source is chosen at creation and cannot change after; its event types are the
20
+ * only ones offered, and the body format only exists for a Form subscription.
22
21
  */
23
22
  export declare function DeliverySubscriptionForm({ subscription, sources, eventTypesBySource, onSubmit, onCancel, }: DeliverySubscriptionFormProps): import("react/jsx-runtime").JSX.Element;
24
23
  export {};
@@ -15,17 +15,6 @@ export declare const JSON_FORMAT: DeliveryFormat;
15
15
  export declare const DISCORD_FORMAT: DeliveryFormat;
16
16
  /** Rows asked per page of every list. */
17
17
  export declare const DELIVERIES_PAGE_SIZE = 20;
18
- /** The characters of a URL kept whole at its end when it is cut in the middle. */
19
- export declare const URL_TAIL_LENGTH = 18;
20
- /**
21
- * A URL in two parts for an ellipsis in the middle: the head may be cut, the tail (the end of the
22
- * path, where two URLs of one host differ) always shows. A URL short enough to never be cut in a
23
- * way that hides its tail has no tail.
24
- */
25
- export declare const splitUrlForMiddleEllipsis: (url: string) => {
26
- head: string;
27
- tail: string;
28
- };
29
18
  /** The badge tone of an execution state: `domainTokens.executionState` is made of `status.*`. */
30
19
  export declare const executionStateTone: (state: ExecutionState) => StatusTone;
31
20
  export declare const deliveryStatusTone: (status: DeliveryStatus) => StatusTone;
@@ -37,11 +37,8 @@ export interface DeliverySubscriptionsProps {
37
37
  remove(id: string): Promise<void>;
38
38
  resetSecret(id: string): Promise<DeliverySubscriptionWithSecret>;
39
39
  onOpenHistory(subscription: IDeliverySubscription): void;
40
- /**
41
- * Where « Ouvrir dans Flow » leads: a Flow page that shows the same data. Without it, no link is
42
- * drawn.
43
- */
44
- flowUrl?: string;
40
+ /** Where « Ouvrir dans Flow » leads. */
41
+ flowUrl: string;
45
42
  permissions: DeliverySubscriptionPermissions;
46
43
  }
47
44
  export interface DeliveryHistoryProps {
@@ -50,13 +47,8 @@ export interface DeliveryHistoryProps {
50
47
  /** A replay is a new attempt with the same delivery id. */
51
48
  replayDelivery(id: string): Promise<void>;
52
49
  canReplay: boolean;
53
- /**
54
- * The subscription whose deliveries are listed: its full URL and its events head the screen.
55
- * Without it, the header names no subscription.
56
- */
57
- getSubscription?(): Promise<IDeliverySubscription>;
58
- /** Where « Ouvrir dans Flow » leads; without it, no link is drawn. */
59
- flowUrl?: string;
50
+ /** Where « Ouvrir dans Flow » leads. */
51
+ flowUrl: string;
60
52
  }
61
53
  export interface ScheduledTasksProps {
62
54
  list(params: IPaginateScheduledTaskQuery): Promise<BasePaginate<IScheduledTask>>;
@@ -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-DUoKKRMZ.js";
2
- import { f as p } from "./Surface-z5TuQzlh.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-JQ9582_7.js";
2
+ import { f as p } from "./Surface-dziv23sf.js";
3
3
  export {
4
4
  o as AbyssCookieConsentProvider,
5
5
  a as CONSENT_VALIDITY_DAYS,
@@ -2,7 +2,7 @@ import { B as Mt, C as DW, D as PW, F as KW, f as WW, m as af, n as b3, G as BW,
2
2
  import { W as JW, r as zW, C as ZW } from "./index-D7cgykJH.js";
3
3
  import * as ga from "react";
4
4
  import PT, { useRef as gt, useEffect as xr, useState as Pr, useCallback as xe, useMemo as Ye, useLayoutEffect as fE, createContext as no, forwardRef as ms, createElement as Tr, useContext as ji, memo as Kt, cloneElement as $W, Component as dE, Fragment as t2, isValidElement as eB } from "react";
5
- import { u as tB, T as qc, v as rB, H as hE, l as gE, r as pE, q as vE, y as mE, z as bE, J as nB, K as iB, I as aB, o as oB } from "./Surface-z5TuQzlh.js";
5
+ import { u as tB, T as qc, v as rB, H as hE, l as gE, r as pE, q as vE, y as mE, z as bE, J as nB, K as iB, I as aB, o as oB } from "./Surface-dziv23sf.js";
6
6
  import KT from "@mui/icons-material/InsertDriveFile";
7
7
  import sB from "@mui/icons-material/Image";
8
8
  import uB from "@mui/icons-material/PictureAsPdf";
@@ -9,14 +9,14 @@ import { c as fn } from "./clsx-OuTLNxxd.js";
9
9
  import { c as cO, d as gc, e as HG, f as Hz, g as aO, h as Pz, j as oO, k as rO, l as UO, m as hO, n as Az, o as FO, p as ZO, q as PG, s as uO, t as mO, v as VO, w as QO, x as AG, y as WO, z as pO, S as NO, B as RO } from "./index-C27b790L.js";
10
10
  import { styled as Rt, useTheme as bO } from "@mui/material/styles";
11
11
  import { useIntl as gl } from "react-intl";
12
- import { s as NU, d as ys, D as ds, p as E, h as El, M as Zo, c as uo, a as _d, b as MO, t as bu, i as Z0, g as vo, m as RF, e as PW, j as SO, u as TO } from "./Surface-z5TuQzlh.js";
12
+ import { s as NU, d as ys, D as ds, p as E, h as El, M as Zo, c as uo, a as _d, b as MO, t as bu, i as Z0, g as vo, m as RF, e as PW, j as SO, u as TO } from "./Surface-dziv23sf.js";
13
13
  import Vl from "@mui/material/Button";
14
14
  import LM from "@mui/material/Checkbox";
15
15
  import zQ from "@mui/material/CircularProgress";
16
16
  import mo from "@mui/material/FormControlLabel";
17
17
  import WV from "@mui/material/OutlinedInput";
18
18
  import DM from "@mui/material/Switch";
19
- import { R as wb, F as pV, C as bF, a as MF, h as Mu, S as iZ, D as _z, k as JO, T as GO, N as fM, A as yO, u as BO, d as XO, j as YO } from "./Tabs-C4K0mLME.js";
19
+ import { R as wb, F as pV, C as bF, a as MF, h as Mu, S as iZ, D as _z, k as JO, T as GO, N as fM, A as yO, u as BO, d as XO, j as YO } from "./Tabs-_onUZBA-.js";
20
20
  import { PDFDocument as Ka, PDFTextField as qz, PDFCheckBox as $z, PDFDropdown as t9, PDFRadioGroup as e9, PDFOptionList as kO, degrees as Ib, StandardFonts as SN, BlendMode as zO, rgb as LO } from "pdf-lib";
21
21
  import * as _G from "pdfjs-dist";
22
22
  import DO from "@mui/icons-material/OpenInNew";
@@ -14225,7 +14225,7 @@ function Ut(l) {
14225
14225
  return new CH(oS.define(l));
14226
14226
  }
14227
14227
  function ra(l) {
14228
- return import("./index-Bw4XnSa0.js").then((t) => t.sql({ dialect: t[l] }));
14228
+ return import("./index-V4F4Sk7y.js").then((t) => t.sql({ dialect: t[l] }));
14229
14229
  }
14230
14230
  const Y7 = [
14231
14231
  // New-style language modes
@@ -14233,7 +14233,7 @@ const Y7 = [
14233
14233
  name: "C",
14234
14234
  extensions: ["c", "h", "ino"],
14235
14235
  load() {
14236
- return import("./index-CRFGogWn.js").then((l) => l.cpp());
14236
+ return import("./index-y-TnfE6Z.js").then((l) => l.cpp());
14237
14237
  }
14238
14238
  }),
14239
14239
  /* @__PURE__ */ A.of({
@@ -14241,7 +14241,7 @@ const Y7 = [
14241
14241
  alias: ["cpp"],
14242
14242
  extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
14243
14243
  load() {
14244
- return import("./index-CRFGogWn.js").then((l) => l.cpp());
14244
+ return import("./index-y-TnfE6Z.js").then((l) => l.cpp());
14245
14245
  }
14246
14246
  }),
14247
14247
  /* @__PURE__ */ A.of({
@@ -14256,14 +14256,14 @@ const Y7 = [
14256
14256
  name: "CSS",
14257
14257
  extensions: ["css"],
14258
14258
  load() {
14259
- return import("./index-BKRudpMw.js").then((l) => l.css());
14259
+ return import("./index-BcjlG5TB.js").then((l) => l.css());
14260
14260
  }
14261
14261
  }),
14262
14262
  /* @__PURE__ */ A.of({
14263
14263
  name: "Go",
14264
14264
  extensions: ["go"],
14265
14265
  load() {
14266
- return import("./index-2lNOK7eK.js").then((l) => l.go());
14266
+ return import("./index-yFJTDKIX.js").then((l) => l.go());
14267
14267
  }
14268
14268
  }),
14269
14269
  /* @__PURE__ */ A.of({
@@ -14271,14 +14271,14 @@ const Y7 = [
14271
14271
  alias: ["xhtml"],
14272
14272
  extensions: ["html", "htm", "handlebars", "hbs"],
14273
14273
  load() {
14274
- return import("./index-z5ZOXlY8.js").then((l) => l.html());
14274
+ return import("./index-DLlWMDxB.js").then((l) => l.html());
14275
14275
  }
14276
14276
  }),
14277
14277
  /* @__PURE__ */ A.of({
14278
14278
  name: "Java",
14279
14279
  extensions: ["java"],
14280
14280
  load() {
14281
- return import("./index-BcO-JFrs.js").then((l) => l.java());
14281
+ return import("./index-BeMiREqf.js").then((l) => l.java());
14282
14282
  }
14283
14283
  }),
14284
14284
  /* @__PURE__ */ A.of({
@@ -14286,7 +14286,7 @@ const Y7 = [
14286
14286
  alias: ["ecmascript", "js", "node"],
14287
14287
  extensions: ["js", "mjs", "cjs"],
14288
14288
  load() {
14289
- return import("./index-CWD0waD8.js").then((l) => l.javascript());
14289
+ return import("./index-ByN6DcaL.js").then((l) => l.javascript());
14290
14290
  }
14291
14291
  }),
14292
14292
  /* @__PURE__ */ A.of({
@@ -14294,28 +14294,28 @@ const Y7 = [
14294
14294
  alias: ["json5"],
14295
14295
  extensions: ["json", "map"],
14296
14296
  load() {
14297
- return import("./index-CtVoDSIn.js").then((l) => l.json());
14297
+ return import("./index-N4BwXTyk.js").then((l) => l.json());
14298
14298
  }
14299
14299
  }),
14300
14300
  /* @__PURE__ */ A.of({
14301
14301
  name: "JSX",
14302
14302
  extensions: ["jsx"],
14303
14303
  load() {
14304
- return import("./index-CWD0waD8.js").then((l) => l.javascript({ jsx: !0 }));
14304
+ return import("./index-ByN6DcaL.js").then((l) => l.javascript({ jsx: !0 }));
14305
14305
  }
14306
14306
  }),
14307
14307
  /* @__PURE__ */ A.of({
14308
14308
  name: "LESS",
14309
14309
  extensions: ["less"],
14310
14310
  load() {
14311
- return import("./index-Ckzmgx9X.js").then((l) => l.less());
14311
+ return import("./index-Dakpr4C1.js").then((l) => l.less());
14312
14312
  }
14313
14313
  }),
14314
14314
  /* @__PURE__ */ A.of({
14315
14315
  name: "Liquid",
14316
14316
  extensions: ["liquid"],
14317
14317
  load() {
14318
- return import("./index-CYBvIQsH.js").then((l) => l.liquid());
14318
+ return import("./index-B6LMTOKG.js").then((l) => l.liquid());
14319
14319
  }
14320
14320
  }),
14321
14321
  /* @__PURE__ */ A.of({
@@ -14328,7 +14328,7 @@ const Y7 = [
14328
14328
  name: "Markdown",
14329
14329
  extensions: ["md", "markdown", "mkd"],
14330
14330
  load() {
14331
- return import("./index-CtkfWhK1.js").then((l) => l.markdown());
14331
+ return import("./index-BTDlbjWW.js").then((l) => l.markdown());
14332
14332
  }
14333
14333
  }),
14334
14334
  /* @__PURE__ */ A.of({
@@ -14347,7 +14347,7 @@ const Y7 = [
14347
14347
  name: "PHP",
14348
14348
  extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
14349
14349
  load() {
14350
- return import("./index-BaL2x2GW.js").then((l) => l.php());
14350
+ return import("./index-CJI1dJrw.js").then((l) => l.php());
14351
14351
  }
14352
14352
  }),
14353
14353
  /* @__PURE__ */ A.of({
@@ -14368,28 +14368,28 @@ const Y7 = [
14368
14368
  extensions: ["BUILD", "bzl", "py", "pyw"],
14369
14369
  filename: /^(BUCK|BUILD)$/,
14370
14370
  load() {
14371
- return import("./index-B76nCWpd.js").then((l) => l.python());
14371
+ return import("./index-BGAZK8Vk.js").then((l) => l.python());
14372
14372
  }
14373
14373
  }),
14374
14374
  /* @__PURE__ */ A.of({
14375
14375
  name: "Rust",
14376
14376
  extensions: ["rs"],
14377
14377
  load() {
14378
- return import("./index-Dqm1dC1j.js").then((l) => l.rust());
14378
+ return import("./index-BBF-FvT6.js").then((l) => l.rust());
14379
14379
  }
14380
14380
  }),
14381
14381
  /* @__PURE__ */ A.of({
14382
14382
  name: "Sass",
14383
14383
  extensions: ["sass"],
14384
14384
  load() {
14385
- return import("./index-CUhMNEUo.js").then((l) => l.sass({ indented: !0 }));
14385
+ return import("./index-B6w5_TeJ.js").then((l) => l.sass({ indented: !0 }));
14386
14386
  }
14387
14387
  }),
14388
14388
  /* @__PURE__ */ A.of({
14389
14389
  name: "SCSS",
14390
14390
  extensions: ["scss"],
14391
14391
  load() {
14392
- return import("./index-CUhMNEUo.js").then((l) => l.sass());
14392
+ return import("./index-B6w5_TeJ.js").then((l) => l.sass());
14393
14393
  }
14394
14394
  }),
14395
14395
  /* @__PURE__ */ A.of({
@@ -14409,7 +14409,7 @@ const Y7 = [
14409
14409
  name: "TSX",
14410
14410
  extensions: ["tsx"],
14411
14411
  load() {
14412
- return import("./index-CWD0waD8.js").then((l) => l.javascript({ jsx: !0, typescript: !0 }));
14412
+ return import("./index-ByN6DcaL.js").then((l) => l.javascript({ jsx: !0, typescript: !0 }));
14413
14413
  }
14414
14414
  }),
14415
14415
  /* @__PURE__ */ A.of({
@@ -14417,14 +14417,14 @@ const Y7 = [
14417
14417
  alias: ["ts"],
14418
14418
  extensions: ["ts", "mts", "cts"],
14419
14419
  load() {
14420
- return import("./index-CWD0waD8.js").then((l) => l.javascript({ typescript: !0 }));
14420
+ return import("./index-ByN6DcaL.js").then((l) => l.javascript({ typescript: !0 }));
14421
14421
  }
14422
14422
  }),
14423
14423
  /* @__PURE__ */ A.of({
14424
14424
  name: "WebAssembly",
14425
14425
  extensions: ["wat", "wast"],
14426
14426
  load() {
14427
- return import("./index-DRtBc440.js").then((l) => l.wast());
14427
+ return import("./index-ytgNPz5f.js").then((l) => l.wast());
14428
14428
  }
14429
14429
  }),
14430
14430
  /* @__PURE__ */ A.of({
@@ -14432,7 +14432,7 @@ const Y7 = [
14432
14432
  alias: ["rss", "wsdl", "xsd"],
14433
14433
  extensions: ["xml", "xsl", "xsd", "svg"],
14434
14434
  load() {
14435
- return import("./index-CrZZo4r1.js").then((l) => l.xml());
14435
+ return import("./index-DkZAsKob.js").then((l) => l.xml());
14436
14436
  }
14437
14437
  }),
14438
14438
  /* @__PURE__ */ A.of({
@@ -14440,7 +14440,7 @@ const Y7 = [
14440
14440
  alias: ["yml"],
14441
14441
  extensions: ["yaml", "yml"],
14442
14442
  load() {
14443
- return import("./index-BlOP01yA.js").then((l) => l.yaml());
14443
+ return import("./index-D1mQgWN3.js").then((l) => l.yaml());
14444
14444
  }
14445
14445
  }),
14446
14446
  // Legacy modes ported from CodeMirror 5
@@ -15236,13 +15236,13 @@ const Y7 = [
15236
15236
  name: "Vue",
15237
15237
  extensions: ["vue"],
15238
15238
  load() {
15239
- return import("./index-Ckzcg8qD.js").then((l) => l.vue());
15239
+ return import("./index-DNd8NZnu.js").then((l) => l.vue());
15240
15240
  }
15241
15241
  }),
15242
15242
  /* @__PURE__ */ A.of({
15243
15243
  name: "Angular Template",
15244
15244
  load() {
15245
- return import("./index-CQ7z2zKY.js").then((l) => l.angular());
15245
+ return import("./index-DprTO7yi.js").then((l) => l.angular());
15246
15246
  }
15247
15247
  })
15248
15248
  ], k7 = "#e5c07b", G5 = "#e06c75", z7 = "#56b6c2", L7 = "#ffffff", kV = "#abb2bf", D2 = "#7d8799", D7 = "#61afef", f7 = "#98c379", y5 = "#d19a66", w7 = "#c678dd", I7 = "#21252b", B5 = "#2c313a", X5 = "#282c34", HN = "#353a42", x7 = "#3E4451", Y5 = "#528bff", C7 = /* @__PURE__ */ At.theme({
package/dist/editors.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Q as o, R as s, S as r, M as t, O as i, K as n, Y as d, U as g, W as p, X as E, V as l, Z as f } from "./editors-Eb3PHnxn.js";
1
+ import { Q as o, R as s, S as r, M as t, O as i, K as n, Y as d, U as g, W as p, X as E, V as l, Z as f } from "./editors-BhQlONOy.js";
2
2
  export {
3
3
  o as CodeEditor,
4
4
  s as ExpressionCodeEditor,