@abyss-project/commons-front-core 18.0.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.
@@ -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,4 +1,4 @@
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-B7HIIzyI.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
2
  import { f as p } from "./Surface-dziv23sf.js";
3
3
  export {
4
4
  o as AbyssCookieConsentProvider,
package/dist/index.js CHANGED
@@ -17,8 +17,8 @@ import Z0 from "@mui/icons-material/Check";
17
17
  import dd from "@mui/icons-material/ContentCopy";
18
18
  import cd from "@mui/icons-material/Visibility";
19
19
  import ud from "@mui/icons-material/VisibilityOff";
20
- import { T as q0, a as Os } from "./CookieConsentSettings-B7HIIzyI.js";
21
- import { A as vT, g as xT, h as wT, e as CT, i as ST, f as kT, j as RT, k as MT, C as _T, c as IT, D as TT, R as DT, S as ET, o as AT, m as OT, l as LT, n as $T, r as WT, p as PT, u as NT, d as FT, w as HT } from "./CookieConsentSettings-B7HIIzyI.js";
20
+ import { T as q0, a as Os } from "./CookieConsentSettings-JQ9582_7.js";
21
+ import { A as vT, g as xT, h as wT, e as CT, i as ST, f as kT, j as RT, k as MT, C as _T, c as IT, D as TT, R as DT, S as ET, o as AT, m as OT, l as LT, n as $T, r as WT, p as PT, u as NT, d as FT, w as HT } from "./CookieConsentSettings-JQ9582_7.js";
22
22
  import ht from "@mui/icons-material/Close";
23
23
  import pd from "@mui/icons-material/BugReportRounded";
24
24
  import Ls from "@mui/icons-material/PersonRounded";
package/dist/legacy.js CHANGED
@@ -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-B7HIIzyI.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-B7HIIzyI.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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "18.0.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",
@@ -88,7 +88,7 @@
88
88
  "react-is": "^18.0.0 || ^19.0.0",
89
89
  "react-router-dom": "^6.15.0",
90
90
  "zustand": "^5.0.0",
91
- "@abyss-project/main": "32.0.0"
91
+ "@abyss-project/main": "33.0.0"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@abyss-project/capacitor-auth": {
@@ -143,7 +143,7 @@
143
143
  "use-debounce": "^10.0.5",
144
144
  "uuid": "^9.0.0",
145
145
  "yup": "^0.32.11",
146
- "@abyss-project/main": "32.0.0"
146
+ "@abyss-project/main": "33.0.0"
147
147
  },
148
148
  "devDependencies": {
149
149
  "@abyss-project/cloud": "^2.4.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
  );