@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
package/dist/legacy.js CHANGED
@@ -5,15 +5,15 @@ import Ne, { useState as P, useCallback as V, useMemo as ge, useEffect as ye, cr
5
5
  import wo from "@mui/icons-material/Group";
6
6
  import Ro from "@mui/icons-material/Folder";
7
7
  import ra from "@mui/icons-material/Extension";
8
- import { r as na, a as oa, t as ia, w as aa, h as Nn, e as He, b as Cr, c as gt, s as Je, m as Ur, d as Bn, f as Fe, p as _n, g as zt, i as We, j as Hn, k as la, l as sa, n as da, A as Jt, o as Rr, q as Mr, Q as ca, u as nn, v as Mo, x as Ao, y as jt, z as N, B as wt, C as Qe, D as Io, H as pa, E as ua, W as Ar, F as Zt, X as Ir, K as fn, J as $t, U as xn, G as bn, I as Ot, L as yt, M as er, V as ma, N as ha, S as ga, O as fa, P as xa, R as ba, T as ya, Y as va, Z as ka, _ as Ca, $ as Sa, a0 as Dr, a1 as je, a2 as mt, a3 as Yt, a4 as wa, a5 as Se, a6 as vt, a7 as zo, a8 as dt, a9 as yn, aa as ct, ab as Ra, ac as Ma, ad as Aa, ae as Ia, af as za, ag as mr, ah as La, ai as $a, aj as Oa, ak as Lo, al as Ea, am as $o, an as Ta, ao as Wa, ap as Oo, aq as Da, ar as Pa, as as Ke, at as Fa, au as Na, av as Ba, aw as _a, ax as Ha, ay as ja, az as Ga, aA as Ua, aB as Va, aC as kt, aD as Ct } from "./design-theme-BFkCN7Nz.js";
9
- import { aR as Eg, aG as Tg, aH as Wg, aI as Dg, aE as Pg, aF as Fg, aX as Ng, aK as Bg, aL as _g, aT as Hg, aU as jg, aO as Gg, aP as Ug, aV as Vg, aW as Yg, aM as Xg, aN as qg, aS as Kg, aJ as Qg, aQ as Jg } from "./design-theme-BFkCN7Nz.js";
8
+ import { r as na, a as oa, t as ia, w as aa, h as Nn, e as He, b as Cr, c as gt, s as Je, m as Ur, d as Bn, f as Fe, p as _n, g as zt, i as We, j as Hn, k as la, l as sa, n as da, A as Jt, o as Rr, q as Mr, Q as ca, u as nn, v as Mo, x as Ao, y as jt, z as N, B as wt, C as Qe, D as Io, H as pa, E as ua, W as Ar, F as Zt, X as Ir, K as fn, J as $t, U as xn, G as bn, I as Ot, L as yt, M as er, V as ma, N as ha, S as ga, O as fa, P as xa, R as ba, T as ya, Y as va, Z as ka, _ as Ca, $ as Sa, a0 as Dr, a1 as je, a2 as mt, a3 as Yt, a4 as wa, a5 as Se, a6 as vt, a7 as zo, a8 as dt, a9 as yn, aa as ct, ab as Ra, ac as Ma, ad as Aa, ae as Ia, af as za, ag as mr, ah as La, ai as $a, aj as Oa, ak as Lo, al as Ea, am as $o, an as Ta, ao as Wa, ap as Oo, aq as Da, ar as Pa, as as Ke, at as Fa, au as Na, av as Ba, aw as _a, ax as Ha, ay as ja, az as Ga, aA as Ua, aB as Va, aC as kt, aD as Ct } from "./design-theme-B3C3z1gE.js";
9
+ import { aR as Eg, aG as Tg, aH as Wg, aI as Dg, aE as Pg, aF as Fg, aX as Ng, aK as Bg, aL as _g, aT as Hg, aU as jg, aO as Gg, aP as Ug, aV as Vg, aW as Yg, aM as Xg, aN as qg, aS as Kg, aJ as Qg, aQ as Jg } from "./design-theme-B3C3z1gE.js";
10
10
  import on from "@mui/icons-material/Apps";
11
11
  import Eo from "@mui/icons-material/Circle";
12
12
  import Ya from "@mui/icons-material/Fingerprint";
13
13
  import Xa from "@mui/icons-material/KeyboardArrowDown";
14
14
  import qa from "@mui/icons-material/MessageOutlined";
15
- import { u as ke, T as jn } from "./Surface-z5TuQzlh.js";
16
- import { f as ef } from "./Surface-z5TuQzlh.js";
15
+ import { u as ke, T as jn } from "./Surface-dziv23sf.js";
16
+ import { f as ef } from "./Surface-dziv23sf.js";
17
17
  import { SupportTicketCategory as Ka, AbyssService as Qa, ProjectStatus as an, byteSizeIEC as Gn, getServiceName as Ja, AbyssCore as Za, buildBillingDeepLink as el, BillingDeepLinkAction as hr } from "@abyss-project/main";
18
18
  import To from "@mui/icons-material/InsertDriveFile";
19
19
  import "@mui/icons-material/Image";
@@ -78,8 +78,8 @@ import jo from "@mui/icons-material/Search";
78
78
  import sn from "@mui/icons-material/BusinessRounded";
79
79
  import Nl from "@mui/icons-material/LocationOnOutlined";
80
80
  import Bl from "@mui/icons-material/CalendarTodayOutlined";
81
- import { a as _l } from "./CookieConsentSettings-DUoKKRMZ.js";
82
- import { A as rf, g as nf, h as of, e as af, i as lf, f as sf, j as df, k as cf, C as pf, b as uf, c as mf, D as hf, R as gf, o as ff, m as xf, l as bf, n as yf, r as vf, p as kf, u as Cf, d as Sf, w as wf } from "./CookieConsentSettings-DUoKKRMZ.js";
81
+ import { a as _l } from "./CookieConsentSettings-JQ9582_7.js";
82
+ import { A as rf, g as nf, h as of, e as af, i as lf, f as sf, j as df, k as cf, C as pf, b as uf, c as mf, D as hf, R as gf, o as ff, m as xf, l as bf, n as yf, r as vf, p as kf, u as Cf, d as Sf, w as wf } from "./CookieConsentSettings-JQ9582_7.js";
83
83
  import Hl from "@mui/icons-material/ArrowDownward";
84
84
  import jl from "@mui/icons-material/ArrowUpward";
85
85
  import Go from "@mui/icons-material/ChevronLeft";
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Vitest worker-count resolution, read by `vitest.config.ts`. Same contract as
3
+ * `apps/front/src/test/vitest-workers.ts`: absent or malformed `VITEST_MAX_WORKERS` returns
4
+ * `undefined` and leaves Vitest's own default in charge. In CI the runner schedules many jobs on
5
+ * the same box, and an uncapped suite (one worker per core) timed out tests under that load
6
+ * (card #753, `test-front-core`), so the job sets the variable.
7
+ */
8
+ /**
9
+ * Resolves the Vitest worker cap from `VITEST_MAX_WORKERS`.
10
+ *
11
+ * Accepts only a strict decimal integer between 1 and 32 inclusive. Anything else — absent,
12
+ * blank, non-numeric, out of range, or not a strict integer literal (`"2.5"`, `" 4 "`) — returns
13
+ * `undefined` rather than guessing: a malformed CI variable must be visibly wrong in review, not
14
+ * silently replaced by some other computed number that then needs its own explanation, and
15
+ * `undefined` leaves Vitest's own default (all available cores) in effect exactly as before this
16
+ * option existed.
17
+ */
18
+ export declare function resolveVitestWorkers(env: NodeJS.ProcessEnv): number | undefined;
@@ -0,0 +1 @@
1
+ export {};
@@ -980,11 +980,6 @@ declare const _default: {
980
980
  'empty-desc': string;
981
981
  'status-filter': string;
982
982
  'all-statuses': string;
983
- subscription: {
984
- url: string;
985
- events: string;
986
- 'load-failed': string;
987
- };
988
983
  column: {
989
984
  status: string;
990
985
  event: string;
@@ -998,7 +993,7 @@ declare const _default: {
998
993
  title: string;
999
994
  'load-failed': string;
1000
995
  'delivery-id': string;
1001
- 'event-data': string;
996
+ 'request-body': string;
1002
997
  headers: string;
1003
998
  response: string;
1004
999
  'response-code': string;
@@ -998,11 +998,6 @@ declare const _default: {
998
998
  'empty-desc': string;
999
999
  'status-filter': string;
1000
1000
  'all-statuses': string;
1001
- subscription: {
1002
- url: string;
1003
- events: string;
1004
- 'load-failed': string;
1005
- };
1006
1001
  column: {
1007
1002
  status: string;
1008
1003
  event: string;
@@ -1016,7 +1011,7 @@ declare const _default: {
1016
1011
  title: string;
1017
1012
  'load-failed': string;
1018
1013
  'delivery-id': string;
1019
- 'event-data': string;
1014
+ 'request-body': string;
1020
1015
  headers: string;
1021
1016
  response: string;
1022
1017
  'response-code': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "18.1.0",
3
+ "version": "18.1.1",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -67,7 +67,7 @@
67
67
  "peerDependencies": {
68
68
  "@abyss-project/capacitor-auth": "^1.0.0",
69
69
  "@abyss-project/cloud": "^2.4.0",
70
- "@abyss-project/flow": "^1.3.0",
70
+ "@abyss-project/flow": "^1.2.0",
71
71
  "@abyss-project/monitor-browser": "^2.0.0",
72
72
  "@abyss-project/workspace": "^4.6.0",
73
73
  "@dnd-kit/core": "^6.0.0",
@@ -147,7 +147,7 @@
147
147
  },
148
148
  "devDependencies": {
149
149
  "@abyss-project/cloud": "^2.4.0",
150
- "@abyss-project/flow": "^1.3.0",
150
+ "@abyss-project/flow": "^1.2.0",
151
151
  "@abyss-project/monitor-browser": "^2.0.0",
152
152
  "@abyss-project/workspace": "^4.6.0",
153
153
  "@playwright/test": "^1.52.0",
package/vitest.config.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  import { defineConfig, mergeConfig } from 'vitest/config';
2
2
  import viteConfig from './vite.config';
3
+ import { resolveVitestWorkers } from './src/test/vitest-workers';
4
+
5
+ const maxWorkers = resolveVitestWorkers(process.env);
3
6
 
4
7
  export default mergeConfig(
5
8
  viteConfig,
@@ -16,6 +19,9 @@ export default mergeConfig(
16
19
  // Tests change process.env through `vi.stubEnv` only (lint rule in .eslintrc.cjs, card #612):
17
20
  // every stub is undone before the next test, absence included.
18
21
  unstubEnvs: true,
22
+ // Worker cap read from VITEST_MAX_WORKERS. The key is left out when the variable is absent, so
23
+ // Vitest keeps its own default; minWorkers follows, or tinypool rejects a low cap.
24
+ ...(maxWorkers === undefined ? {} : { minWorkers: maxWorkers, maxWorkers }),
19
25
  },
20
26
  }),
21
27
  );