@abyss-project/commons-front-core 2.0.2 → 2.0.4
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/dist/{CookieConsentSettings.component-Dqbo9N8Y.js → CookieConsentSettings.component-DVCoCodG.js} +0 -4
- package/dist/assets/logo/index.d.ts +1 -0
- package/dist/components/Support/types.d.ts +6 -0
- package/dist/cookie-consent.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +0 -2
- package/dist/{index-Di8-ci04.js → index-1zDS0iEh.js} +4 -4
- package/dist/{index-BGWToGw7.js → index-3YimkuCN.js} +3 -3
- package/dist/{index-by-wazLm.js → index-5k64joRw.js} +2 -2
- package/dist/{index-DP0NlFvb.js → index-65A77dq7.js} +1 -1
- package/dist/{index-CzYQbF5K.js → index-B9whHwJH.js} +2 -2
- package/dist/{index-DYMZ6gxP.js → index-BEHOwNBI.js} +2 -2
- package/dist/{index-DwVkf4ef.js → index-BHN85JYH.js} +2 -2
- package/dist/{index-D4yU10Kk.js → index-BdPBT9wT.js} +4 -4
- package/dist/{index-BewTTU30.js → index-C73ogXrJ.js} +28177 -27274
- package/dist/{index-uIaFCoT2.js → index-CUPsXzwL.js} +3 -3
- package/dist/{index-RwGG-Rkd.js → index-Cb8bNozc.js} +2 -2
- package/dist/{index-CwF5H7Ob.js → index-CnObY2fJ.js} +3 -3
- package/dist/{index-h44l9OLZ.js → index-D1Ff3bz9.js} +2 -2
- package/dist/{index-AfPILbiz.js → index-DOkPKk_l.js} +2 -2
- package/dist/{index-eKUyfHjO.js → index-DOlx6Vms.js} +3 -3
- package/dist/{index-D2Nmwb2S.js → index-DTvT-pSd.js} +2 -2
- package/dist/{index-B7y4RhPo.js → index-DdQmheMd.js} +2 -2
- package/dist/{index-CCn-sMqt.js → index-Do3-0Q46.js} +2 -2
- package/dist/{index-CJ2IUHYl.js → index-irVSvSqH.js} +4 -4
- package/dist/{index-CQlSFcvw.js → index-jvUBv7pK.js} +2 -2
- package/dist/{index-CIZfTmzg.js → index-mfuPigV5.js} +2 -2
- package/dist/{index-OhVD4ih9.js → index-sizp2HZr.js} +2 -2
- package/dist/index.js +196 -195
- package/dist/translations/en.d.ts +0 -2
- package/dist/translations/fr.d.ts +0 -2
- package/package.json +21 -17
- package/vite.config.ts +10 -7
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/commons-front-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Front Core package of AbyssProject",
|
|
5
|
-
"main": "dist/index.js",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./dist/index.js",
|
|
@@ -22,7 +22,20 @@
|
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"main": "dist/index.js",
|
|
27
|
+
"types": "dist/index.d.ts"
|
|
28
|
+
},
|
|
25
29
|
"type": "module",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --fix",
|
|
32
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --max-warnings 0",
|
|
33
|
+
"tsc": "tsc",
|
|
34
|
+
"build": "vite build",
|
|
35
|
+
"dev": "vite build --watch",
|
|
36
|
+
"test": "vitest run --config vitest.config.ts",
|
|
37
|
+
"test:watch": "vitest --config vitest.config.ts"
|
|
38
|
+
},
|
|
26
39
|
"repository": {
|
|
27
40
|
"type": "git",
|
|
28
41
|
"url": "https://gitlab.com/abyss-group"
|
|
@@ -35,6 +48,7 @@
|
|
|
35
48
|
},
|
|
36
49
|
"homepage": "https://gitlab.com/abyss-group",
|
|
37
50
|
"peerDependencies": {
|
|
51
|
+
"@abyss-project/main": "workspace:*",
|
|
38
52
|
"@emotion/react": "^11.7.1",
|
|
39
53
|
"@emotion/styled": "^11.6.0",
|
|
40
54
|
"@mui/icons-material": "^6.0.0",
|
|
@@ -52,14 +66,14 @@
|
|
|
52
66
|
"react-is": "^18.0.0 || ^19.0.0",
|
|
53
67
|
"react-intl": "^6.2.5",
|
|
54
68
|
"react-router-dom": "^6.15.0",
|
|
55
|
-
"zustand": "^5.0.0"
|
|
56
|
-
"@abyss-project/main": "1.3.0"
|
|
69
|
+
"zustand": "^5.0.0"
|
|
57
70
|
},
|
|
58
71
|
"dependencies": {
|
|
59
72
|
"@abyss-project/banking": "^1.1.0",
|
|
60
73
|
"@abyss-project/cloud": "^2.0.1",
|
|
61
74
|
"@abyss-project/crypt": "^1.0.9",
|
|
62
75
|
"@abyss-project/form": "^1.0.13",
|
|
76
|
+
"@abyss-project/main": "workspace:*",
|
|
63
77
|
"@abyss-project/memories": "^1.0.12",
|
|
64
78
|
"@abyss-project/monitor": "^1.0.79",
|
|
65
79
|
"@abyss-project/spotlight": "^1.0.24",
|
|
@@ -94,8 +108,7 @@
|
|
|
94
108
|
"uuid": "^9.0.0",
|
|
95
109
|
"pdf-lib": "^1.17.1",
|
|
96
110
|
"pdfjs-dist": "^4.10.38",
|
|
97
|
-
"yup": "^0.32.11"
|
|
98
|
-
"@abyss-project/main": "1.3.0"
|
|
111
|
+
"yup": "^0.32.11"
|
|
99
112
|
},
|
|
100
113
|
"devDependencies": {
|
|
101
114
|
"@types/byte-size": "^8.1.0",
|
|
@@ -125,14 +138,5 @@
|
|
|
125
138
|
"@vitest/coverage-v8": "^2.0.0",
|
|
126
139
|
"vite-plugin-dts": "^4.5.4",
|
|
127
140
|
"vitest": "^2.0.0"
|
|
128
|
-
},
|
|
129
|
-
"scripts": {
|
|
130
|
-
"lint": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --fix",
|
|
131
|
-
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --max-warnings 0",
|
|
132
|
-
"tsc": "tsc",
|
|
133
|
-
"build": "vite build",
|
|
134
|
-
"dev": "vite build --watch",
|
|
135
|
-
"test": "vitest run --config vitest.config.ts",
|
|
136
|
-
"test:watch": "vitest --config vitest.config.ts"
|
|
137
141
|
}
|
|
138
|
-
}
|
|
142
|
+
}
|
package/vite.config.ts
CHANGED
|
@@ -56,14 +56,17 @@ export default defineConfig({
|
|
|
56
56
|
];
|
|
57
57
|
if (exactNames.includes(id)) return true;
|
|
58
58
|
if (exactNames.some((name) => id.startsWith(name + '/'))) return true;
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
//
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
//
|
|
65
|
-
//
|
|
59
|
+
// x-date-pickers v6's `exports` map exposes only the bare ROOT and a few
|
|
60
|
+
// named entries — NOT the DIRECTORY sub-paths `AdapterDateFns` and
|
|
61
|
+
// `PickersDay` that DatePeriodPicker.component imports directly. Left
|
|
62
|
+
// externalized, those bare directory imports are unresolvable under Node
|
|
63
|
+
// ESM (ERR_UNSUPPORTED_DIR_IMPORT — breaks vitest in every consumer that
|
|
64
|
+
// pulls the theme/date components). Bundle exactly those two sub-paths so
|
|
65
|
+
// the dist carries no such import (the bare root stays external below).
|
|
66
|
+
// (Icon sub-paths like `@mui/icons-material/AddRounded` are `.js` FILES
|
|
67
|
+
// and resolve fine, so they stay externalized.)
|
|
66
68
|
if (id === '@mui/x-date-pickers/AdapterDateFns') return false;
|
|
69
|
+
if (id === '@mui/x-date-pickers/PickersDay') return false;
|
|
67
70
|
// Scoped-package prefixes (these always end with '/')
|
|
68
71
|
const scopedPrefixes = ['@mui/', '@emotion/', '@abyss-project/', '@tanstack/'];
|
|
69
72
|
return scopedPrefixes.some((prefix) => id.startsWith(prefix));
|