@abyss-project/commons-front-core 7.0.0 → 7.1.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/catalog/playwright.ci.config.ts +29 -0
- package/catalog/vite.config.ts +6 -1
- package/dist/{AbyssModal.component-Be9980v8.js → AbyssModal.component-DVIzX2ko.js} +791 -765
- package/dist/{CookieConsentSettings.component-CE2qOlyC.js → CookieConsentSettings.component-BdBT72qy.js} +1 -1
- package/dist/auth/components/AuthHeroLayout/AuthHeroLayout.component.d.ts +39 -0
- package/dist/auth/components/AuthHeroLayout/AuthHeroLayout.component.spec.d.ts +1 -0
- package/dist/auth/components/AuthHeroLayout/auth-hero.context.d.ts +11 -0
- package/dist/auth/components/index.d.ts +3 -0
- package/dist/auth/components/shared/OneTimeCodeField.component.d.ts +6 -2
- package/dist/auth/components/shared/OneTimeCodeField.component.spec.d.ts +1 -0
- package/dist/auth/components/test-support/own-css.d.ts +5 -0
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-BSrfO5Lg.js → design-theme-DGpfyrRa.js} +3469 -3262
- package/dist/hooks/use-rich-intl.hook.d.ts +26 -0
- package/dist/{index-DEAXSgTl.js → index-2dP8eJDC.js} +2 -2
- package/dist/{index-CfGWl_3N.js → index-5lZWuL9E.js} +2 -2
- package/dist/{index-CqYmPMRC.js → index-BCbBLGCq.js} +4 -4
- package/dist/{index-CQtuGy2v.js → index-BNXtGwVO.js} +3 -3
- package/dist/{index-A5kt29MO.js → index-Bnd34zc3.js} +4 -4
- package/dist/{index-Ds5uSeS4.js → index-BvnEqebm.js} +2 -2
- package/dist/{index-Cnpf4y1o.js → index-BzqtPPN5.js} +1 -1
- package/dist/{index-WQz3nM40.js → index-C9rZao0s.js} +3 -3
- package/dist/{index-l4rCdiSM.js → index-CEkvsFyX.js} +3 -3
- package/dist/{index-BLlNcpG3.js → index-CKRPvslz.js} +2 -2
- package/dist/{index-C_Sk7zwR.js → index-CRAwLl2U.js} +2 -2
- package/dist/{index-CrrfwI5H.js → index-CUmAInm9.js} +2 -2
- package/dist/{index-MZi-_cYy.js → index-ClyGJxMq.js} +2 -2
- package/dist/{index-BaELetix.js → index-CtgSTnzK.js} +2 -2
- package/dist/{index-Dj8ju3uH.js → index-D-ULIp83.js} +2 -2
- package/dist/{index-Do1fJzj3.js → index-D3RFab1e.js} +3 -3
- package/dist/{index-BuzeZTOG.js → index-DY-1nAn8.js} +2 -2
- package/dist/{index-DTPUe23x.js → index-Dne75cXj.js} +2 -2
- package/dist/{index-BzCSI9XW.js → index-EOvj8bHf.js} +2 -2
- package/dist/{index-CHSMfNLS.js → index-G39MXErO.js} +4 -4
- package/dist/{index-Bkf4H0Hz.js → index-s1jdo-Md.js} +2 -2
- package/dist/{index-DwH67Kcz.js → index-uN5dp-oL.js} +16774 -16981
- package/dist/index.js +2543 -2232
- package/dist/legacy.js +205 -205
- package/dist/translations/en.d.ts +13 -0
- package/dist/translations/fr.d.ts +13 -0
- package/package.json +6 -5
- package/vite.config.ts +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { dirname, resolve } from 'path';
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
3
|
+
import { defineConfig } from '@playwright/test';
|
|
4
|
+
import baseConfig from './playwright.config';
|
|
5
|
+
import { catalogPort } from './catalog-port';
|
|
6
|
+
|
|
7
|
+
// CI run of the catalog checks (`catalog:test:ci`, job `front-core-catalog`): the built catalog
|
|
8
|
+
// (`catalog-dist/`, built by the script just before) served by `vite preview`, instead of the dev
|
|
9
|
+
// server, which transforms every module on demand and makes a shared runner miss its timeouts.
|
|
10
|
+
// Only the specs that carry criteria 15 and 16 run (responsive, mobile-shell): the captures are a
|
|
11
|
+
// human review, produced locally by `catalog:test`, so neither their spec nor the teardown that
|
|
12
|
+
// indexes them runs here.
|
|
13
|
+
const port = catalogPort();
|
|
14
|
+
const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
15
|
+
|
|
16
|
+
export default defineConfig({
|
|
17
|
+
...baseConfig,
|
|
18
|
+
testIgnore: ['**/captures.spec.ts'],
|
|
19
|
+
globalTeardown: undefined,
|
|
20
|
+
workers: 4,
|
|
21
|
+
webServer: {
|
|
22
|
+
command: 'pnpm exec vite preview --config catalog/vite.config.ts',
|
|
23
|
+
cwd: packageRoot,
|
|
24
|
+
url: `http://127.0.0.1:${port}`,
|
|
25
|
+
reuseExistingServer: false,
|
|
26
|
+
timeout: 60_000,
|
|
27
|
+
env: { CATALOG_PORT: String(port) },
|
|
28
|
+
},
|
|
29
|
+
});
|
package/catalog/vite.config.ts
CHANGED
|
@@ -3,7 +3,10 @@ import { defineConfig } from 'vite';
|
|
|
3
3
|
import react from '@vitejs/plugin-react';
|
|
4
4
|
import { catalogPort } from './catalog-port';
|
|
5
5
|
|
|
6
|
-
// The catalog of the design system components
|
|
6
|
+
// The catalog of the design system components, never published. Served by the dev server
|
|
7
|
+
// (`catalog`, `catalog:test`), or built into `catalog-dist/` and served by `vite preview` for the
|
|
8
|
+
// CI run (`catalog:test:ci`): the dev server transforms every module on demand, too slow on a
|
|
9
|
+
// shared runner.
|
|
7
10
|
const port = catalogPort();
|
|
8
11
|
|
|
9
12
|
const MAIN_CORE_SOURCE = resolve(__dirname, '../../abyss_main_core/src');
|
|
@@ -23,5 +26,7 @@ export default defineConfig({
|
|
|
23
26
|
],
|
|
24
27
|
},
|
|
25
28
|
optimizeDeps: { exclude: ['@abyss-project/main'] },
|
|
29
|
+
build: { outDir: resolve(__dirname, '../catalog-dist'), emptyOutDir: true },
|
|
26
30
|
server: { port, strictPort: true, host: '127.0.0.1' },
|
|
31
|
+
preview: { port, strictPort: true, host: '127.0.0.1' },
|
|
27
32
|
});
|