@abyss-project/commons-front-core 2.1.0 → 2.2.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/dist/{CookieConsentSettings.component-BxbX6NvN.js → CookieConsentSettings.component-C-P3Slsp.js} +1175 -1101
- package/dist/components/QuotaGauge/AbyssQuotaGauge.component.d.ts +13 -0
- package/dist/components/QuotaGauge/bubble-placement.d.ts +7 -0
- package/dist/components/QuotaGauge/bubble-placement.spec.d.ts +1 -0
- package/dist/components/QuotaGauge/gauge-highlight.spec.d.ts +1 -0
- package/dist/components/QuotaGauge/gauge-i18n-coverage.spec.d.ts +1 -0
- package/dist/components/QuotaGauge/gauge-segments.d.ts +24 -0
- package/dist/components/QuotaGauge/gauge-segments.spec.d.ts +1 -0
- package/dist/components/QuotaGauge/index.d.ts +6 -0
- package/dist/components/QuotaOffer/AbyssQuotaOffer.component.d.ts +23 -0
- package/dist/components/QuotaOffer/AbyssQuotaOffer.component.spec.d.ts +1 -0
- package/dist/components/QuotaOffer/index.d.ts +4 -0
- package/dist/components/QuotaOffer/quota-offer-state.d.ts +22 -0
- package/dist/components/QuotaOffer/quota-offer-state.spec.d.ts +1 -0
- package/dist/components/QuotaOffer/quota-phrase-coverage.spec.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/cookie-consent.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +146 -24
- package/dist/{index-5iuHuX6B.js → index-B0lxXG3V.js} +2 -2
- package/dist/{index-CS4jn_D2.js → index-B0rNXjqk.js} +2 -2
- package/dist/{index-2xylgCNp.js → index-BNOPf_F-.js} +4 -4
- package/dist/{index-nx-vhukz.js → index-BZU53M4F.js} +2 -2
- package/dist/{index-DKFBpHIu.js → index-Bc6q5tgW.js} +3 -3
- package/dist/{index-DRnlvII3.js → index-BgB2t_vW.js} +2 -2
- package/dist/{index-17PVRfVM.js → index-Bitv-cLi.js} +2 -2
- package/dist/{index-DnFyRuZ0.js → index-ByVuN6Mr.js} +2 -2
- package/dist/{index-CjHjRIog.js → index-CThyOnM4.js} +2 -2
- package/dist/{index-DPJAJuSU.js → index-CVGiu-Ln.js} +19633 -19257
- package/dist/{index-C7mBVfGW.js → index-CyG_-n_B.js} +2 -2
- package/dist/{index-BrADeAkS.js → index-DHh40uSj.js} +4 -4
- package/dist/{index-CViNTwL6.js → index-DK3lwpDI.js} +2 -2
- package/dist/{index-xfgNkaBB.js → index-DMgHH-A4.js} +3 -3
- package/dist/{index-CdjtMd5y.js → index-DYV2UrqE.js} +1 -1
- package/dist/{index-CgAz_dkv.js → index-DoPEZ7GY.js} +2 -2
- package/dist/{index-C1UaktkW.js → index-DzD3M5Tx.js} +4 -4
- package/dist/{index-Bca2L8Eq.js → index-_PrbB7JI.js} +3 -3
- package/dist/{index-DDIxe_Al.js → index-fnNHE2Vv.js} +3 -3
- package/dist/{index-B68Ox276.js → index-h9klFGp5.js} +2 -2
- package/dist/{index-BjJ6RebY.js → index-pV_M_YnB.js} +2 -2
- package/dist/{index-CCUFZvFM.js → index-yUdqFdtk.js} +2 -2
- package/dist/index.js +234 -223
- package/dist/translations/en.d.ts +49 -12
- package/dist/translations/fr.d.ts +49 -12
- package/dist/translations/vocabulaire-client.spec.d.ts +1 -0
- package/package.json +19 -21
- package/vitest.config.ts +5 -1
|
@@ -215,6 +215,55 @@ declare const _default: {
|
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
|
+
'quota-phrase': {
|
|
219
|
+
held: string;
|
|
220
|
+
monthly: string;
|
|
221
|
+
setting: string;
|
|
222
|
+
};
|
|
223
|
+
'quota-offer': {
|
|
224
|
+
state: {
|
|
225
|
+
APPROACHING: string;
|
|
226
|
+
LIMIT_REACHED: string;
|
|
227
|
+
LIMIT_REACHED_NO_OVERAGE: string;
|
|
228
|
+
IN_OVERAGE: string;
|
|
229
|
+
CEILING_REACHED: string;
|
|
230
|
+
SETTING: string;
|
|
231
|
+
SUSPENDED_BY_PLAN: string;
|
|
232
|
+
};
|
|
233
|
+
branch: {
|
|
234
|
+
extension: string;
|
|
235
|
+
pack: string;
|
|
236
|
+
overage: string;
|
|
237
|
+
ceiling: string;
|
|
238
|
+
unlock: string;
|
|
239
|
+
};
|
|
240
|
+
'overage-explained': string;
|
|
241
|
+
'saving-hint': string;
|
|
242
|
+
'price-unavailable': string;
|
|
243
|
+
'go-to-billing': string;
|
|
244
|
+
dismiss: string;
|
|
245
|
+
};
|
|
246
|
+
'quota-gauge': {
|
|
247
|
+
segment: {
|
|
248
|
+
'used-included': string;
|
|
249
|
+
'used-overage': string;
|
|
250
|
+
'free-included': string;
|
|
251
|
+
'free-overage': string;
|
|
252
|
+
};
|
|
253
|
+
marker: {
|
|
254
|
+
threshold: string;
|
|
255
|
+
included: string;
|
|
256
|
+
ceiling: string;
|
|
257
|
+
'threshold-hint': string;
|
|
258
|
+
'included-hint': string;
|
|
259
|
+
'ceiling-hint': string;
|
|
260
|
+
'ceiling-action': string;
|
|
261
|
+
'included-action': string;
|
|
262
|
+
};
|
|
263
|
+
'overage-disallowed': string;
|
|
264
|
+
unlimited: string;
|
|
265
|
+
'of-max': string;
|
|
266
|
+
};
|
|
218
267
|
'quota-reached': {
|
|
219
268
|
title: string;
|
|
220
269
|
description: string;
|
|
@@ -239,20 +288,17 @@ declare const _default: {
|
|
|
239
288
|
MEMBERS_COUNT: string;
|
|
240
289
|
TEAM_COUNT: string;
|
|
241
290
|
API_KEYS_COUNT: string;
|
|
242
|
-
STORAGE_GB: string;
|
|
243
291
|
FILES_COUNT: string;
|
|
244
292
|
PRESIGNED_URLS: string;
|
|
245
293
|
BANDWIDTH_GB: string;
|
|
246
294
|
LOG_EVENTS: string;
|
|
247
295
|
RETENTION_DAYS: string;
|
|
248
296
|
APPLICATIONS: string;
|
|
249
|
-
CLOUD_STORAGE_GB: string;
|
|
250
297
|
CLOUD_FILES_COUNT: string;
|
|
251
298
|
CRYPT_MAX_FILE_SIZE_MB: string;
|
|
252
299
|
CRYPT_ENCRYPTIONS_MONTH: string;
|
|
253
300
|
FORM_SUBMISSIONS_MONTH: string;
|
|
254
301
|
FORM_ALLOW_DOCUMENTS: string;
|
|
255
|
-
FORM_DOCUMENTS_STORAGE_GB: string;
|
|
256
302
|
TOOLS_DRAW_COUNT: string;
|
|
257
303
|
TOOLS_BOARD_COUNT: string;
|
|
258
304
|
TOOLS_ATLAS_COUNT: string;
|
|
@@ -262,12 +308,7 @@ declare const _default: {
|
|
|
262
308
|
MONITOR_WEBHOOK_INVOCATIONS_MONTH: string;
|
|
263
309
|
SPOTLIGHT_PAGES_COUNT: string;
|
|
264
310
|
SPOTLIGHT_PAGE_VIEWS_MONTH: string;
|
|
265
|
-
TRAINING_PROGRAMS_COUNT: string;
|
|
266
|
-
TRAINING_SESSIONS_MONTH: string;
|
|
267
|
-
TRAINING_TEMPLATES_COUNT: string;
|
|
268
|
-
TRAINING_CUSTOM_EXERCISES_COUNT: string;
|
|
269
311
|
MEMORIES_EVENTS_COUNT: string;
|
|
270
|
-
MEMORIES_MEDIA_STORAGE_GB: string;
|
|
271
312
|
ACCOUNT_STORAGE_GB: string;
|
|
272
313
|
ACCOUNT_AV_SCAN_UNITS: string;
|
|
273
314
|
TOOLS_EXTRACTION: string;
|
|
@@ -868,15 +909,12 @@ declare const _default: {
|
|
|
868
909
|
LOG_EVENTS: string;
|
|
869
910
|
APPLICATIONS: string;
|
|
870
911
|
RETENTION_DAYS: string;
|
|
871
|
-
STORAGE_GB: string;
|
|
872
912
|
FILES_COUNT: string;
|
|
873
913
|
PRESIGNED_URLS: string;
|
|
874
914
|
BANDWIDTH_GB: string;
|
|
875
|
-
CLOUD_STORAGE_GB: string;
|
|
876
915
|
};
|
|
877
916
|
'account-status': {
|
|
878
917
|
ACTIVE: string;
|
|
879
|
-
CANCELLED: string;
|
|
880
918
|
};
|
|
881
919
|
'invoice-status': {
|
|
882
920
|
PAID: string;
|
|
@@ -933,7 +971,6 @@ declare const _default: {
|
|
|
933
971
|
'plan-feature': {
|
|
934
972
|
PROJECTS_COUNT: string;
|
|
935
973
|
MEMBERS_COUNT: string;
|
|
936
|
-
STORAGE_GB: string;
|
|
937
974
|
LOG_EVENTS: string;
|
|
938
975
|
APPLICATIONS: string;
|
|
939
976
|
RETENTION_DAYS: string;
|
|
@@ -215,6 +215,55 @@ declare const _default: {
|
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
|
+
'quota-phrase': {
|
|
219
|
+
held: string;
|
|
220
|
+
monthly: string;
|
|
221
|
+
setting: string;
|
|
222
|
+
};
|
|
223
|
+
'quota-offer': {
|
|
224
|
+
state: {
|
|
225
|
+
APPROACHING: string;
|
|
226
|
+
LIMIT_REACHED: string;
|
|
227
|
+
LIMIT_REACHED_NO_OVERAGE: string;
|
|
228
|
+
IN_OVERAGE: string;
|
|
229
|
+
CEILING_REACHED: string;
|
|
230
|
+
SETTING: string;
|
|
231
|
+
SUSPENDED_BY_PLAN: string;
|
|
232
|
+
};
|
|
233
|
+
branch: {
|
|
234
|
+
extension: string;
|
|
235
|
+
pack: string;
|
|
236
|
+
overage: string;
|
|
237
|
+
ceiling: string;
|
|
238
|
+
unlock: string;
|
|
239
|
+
};
|
|
240
|
+
'overage-explained': string;
|
|
241
|
+
'saving-hint': string;
|
|
242
|
+
'price-unavailable': string;
|
|
243
|
+
'go-to-billing': string;
|
|
244
|
+
dismiss: string;
|
|
245
|
+
};
|
|
246
|
+
'quota-gauge': {
|
|
247
|
+
segment: {
|
|
248
|
+
'used-included': string;
|
|
249
|
+
'used-overage': string;
|
|
250
|
+
'free-included': string;
|
|
251
|
+
'free-overage': string;
|
|
252
|
+
};
|
|
253
|
+
marker: {
|
|
254
|
+
threshold: string;
|
|
255
|
+
included: string;
|
|
256
|
+
ceiling: string;
|
|
257
|
+
'threshold-hint': string;
|
|
258
|
+
'included-hint': string;
|
|
259
|
+
'ceiling-hint': string;
|
|
260
|
+
'ceiling-action': string;
|
|
261
|
+
'included-action': string;
|
|
262
|
+
};
|
|
263
|
+
'overage-disallowed': string;
|
|
264
|
+
unlimited: string;
|
|
265
|
+
'of-max': string;
|
|
266
|
+
};
|
|
218
267
|
'quota-reached': {
|
|
219
268
|
title: string;
|
|
220
269
|
description: string;
|
|
@@ -239,20 +288,17 @@ declare const _default: {
|
|
|
239
288
|
MEMBERS_COUNT: string;
|
|
240
289
|
TEAM_COUNT: string;
|
|
241
290
|
API_KEYS_COUNT: string;
|
|
242
|
-
STORAGE_GB: string;
|
|
243
291
|
FILES_COUNT: string;
|
|
244
292
|
PRESIGNED_URLS: string;
|
|
245
293
|
BANDWIDTH_GB: string;
|
|
246
294
|
LOG_EVENTS: string;
|
|
247
295
|
RETENTION_DAYS: string;
|
|
248
296
|
APPLICATIONS: string;
|
|
249
|
-
CLOUD_STORAGE_GB: string;
|
|
250
297
|
CLOUD_FILES_COUNT: string;
|
|
251
298
|
CRYPT_MAX_FILE_SIZE_MB: string;
|
|
252
299
|
CRYPT_ENCRYPTIONS_MONTH: string;
|
|
253
300
|
FORM_SUBMISSIONS_MONTH: string;
|
|
254
301
|
FORM_ALLOW_DOCUMENTS: string;
|
|
255
|
-
FORM_DOCUMENTS_STORAGE_GB: string;
|
|
256
302
|
TOOLS_DRAW_COUNT: string;
|
|
257
303
|
TOOLS_BOARD_COUNT: string;
|
|
258
304
|
TOOLS_ATLAS_COUNT: string;
|
|
@@ -262,12 +308,7 @@ declare const _default: {
|
|
|
262
308
|
MONITOR_WEBHOOK_INVOCATIONS_MONTH: string;
|
|
263
309
|
SPOTLIGHT_PAGES_COUNT: string;
|
|
264
310
|
SPOTLIGHT_PAGE_VIEWS_MONTH: string;
|
|
265
|
-
TRAINING_PROGRAMS_COUNT: string;
|
|
266
|
-
TRAINING_SESSIONS_MONTH: string;
|
|
267
|
-
TRAINING_TEMPLATES_COUNT: string;
|
|
268
|
-
TRAINING_CUSTOM_EXERCISES_COUNT: string;
|
|
269
311
|
MEMORIES_EVENTS_COUNT: string;
|
|
270
|
-
MEMORIES_MEDIA_STORAGE_GB: string;
|
|
271
312
|
ACCOUNT_STORAGE_GB: string;
|
|
272
313
|
ACCOUNT_AV_SCAN_UNITS: string;
|
|
273
314
|
TOOLS_EXTRACTION: string;
|
|
@@ -868,15 +909,12 @@ declare const _default: {
|
|
|
868
909
|
LOG_EVENTS: string;
|
|
869
910
|
APPLICATIONS: string;
|
|
870
911
|
RETENTION_DAYS: string;
|
|
871
|
-
STORAGE_GB: string;
|
|
872
912
|
FILES_COUNT: string;
|
|
873
913
|
PRESIGNED_URLS: string;
|
|
874
914
|
BANDWIDTH_GB: string;
|
|
875
|
-
CLOUD_STORAGE_GB: string;
|
|
876
915
|
};
|
|
877
916
|
'account-status': {
|
|
878
917
|
ACTIVE: string;
|
|
879
|
-
CANCELLED: string;
|
|
880
918
|
};
|
|
881
919
|
'invoice-status': {
|
|
882
920
|
PAID: string;
|
|
@@ -933,7 +971,6 @@ declare const _default: {
|
|
|
933
971
|
'plan-feature': {
|
|
934
972
|
PROJECTS_COUNT: string;
|
|
935
973
|
MEMBERS_COUNT: string;
|
|
936
|
-
STORAGE_GB: string;
|
|
937
974
|
LOG_EVENTS: string;
|
|
938
975
|
APPLICATIONS: string;
|
|
939
976
|
RETENTION_DAYS: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/commons-front-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Front Core package of AbyssProject",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
|
-
"types": "
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./dist/index.js",
|
|
@@ -22,20 +22,7 @@
|
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
"publishConfig": {
|
|
26
|
-
"main": "dist/index.js",
|
|
27
|
-
"types": "dist/index.d.ts"
|
|
28
|
-
},
|
|
29
25
|
"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
|
-
},
|
|
39
26
|
"repository": {
|
|
40
27
|
"type": "git",
|
|
41
28
|
"url": "https://gitlab.com/abyss-group"
|
|
@@ -48,7 +35,6 @@
|
|
|
48
35
|
},
|
|
49
36
|
"homepage": "https://gitlab.com/abyss-group",
|
|
50
37
|
"peerDependencies": {
|
|
51
|
-
"@abyss-project/main": "workspace:*",
|
|
52
38
|
"@emotion/react": "^11.7.1",
|
|
53
39
|
"@emotion/styled": "^11.6.0",
|
|
54
40
|
"@mui/icons-material": "^6.0.0",
|
|
@@ -66,14 +52,14 @@
|
|
|
66
52
|
"react-is": "^18.0.0 || ^19.0.0",
|
|
67
53
|
"react-intl": "^6.2.5",
|
|
68
54
|
"react-router-dom": "^6.15.0",
|
|
69
|
-
"zustand": "^5.0.0"
|
|
55
|
+
"zustand": "^5.0.0",
|
|
56
|
+
"@abyss-project/main": "2.3.0"
|
|
70
57
|
},
|
|
71
58
|
"dependencies": {
|
|
72
59
|
"@abyss-project/banking": "^1.1.0",
|
|
73
60
|
"@abyss-project/cloud": "^2.0.1",
|
|
74
61
|
"@abyss-project/crypt": "^1.0.9",
|
|
75
62
|
"@abyss-project/form": "^1.0.13",
|
|
76
|
-
"@abyss-project/main": "workspace:*",
|
|
77
63
|
"@abyss-project/memories": "^1.0.12",
|
|
78
64
|
"@abyss-project/monitor": "^1.0.79",
|
|
79
65
|
"@abyss-project/spotlight": "^1.0.24",
|
|
@@ -108,9 +94,11 @@
|
|
|
108
94
|
"uuid": "^9.0.0",
|
|
109
95
|
"pdf-lib": "^1.17.1",
|
|
110
96
|
"pdfjs-dist": "^4.10.38",
|
|
111
|
-
"yup": "^0.32.11"
|
|
97
|
+
"yup": "^0.32.11",
|
|
98
|
+
"@abyss-project/main": "2.3.0"
|
|
112
99
|
},
|
|
113
100
|
"devDependencies": {
|
|
101
|
+
"@testing-library/react": "^16.3.2",
|
|
114
102
|
"@types/byte-size": "^8.1.0",
|
|
115
103
|
"@types/flat": "^5.0.5",
|
|
116
104
|
"@types/lodash": "^4.14.177",
|
|
@@ -123,6 +111,7 @@
|
|
|
123
111
|
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
124
112
|
"@typescript-eslint/parser": "7.3.1",
|
|
125
113
|
"@vitejs/plugin-react": "^4.2.0",
|
|
114
|
+
"jsdom": "^29.1.1",
|
|
126
115
|
"eslint": "^7.28.0",
|
|
127
116
|
"eslint-config-prettier": "^8.3.0",
|
|
128
117
|
"eslint-config-standard": "^16.0.3",
|
|
@@ -138,5 +127,14 @@
|
|
|
138
127
|
"@vitest/coverage-v8": "^2.0.0",
|
|
139
128
|
"vite-plugin-dts": "^4.5.4",
|
|
140
129
|
"vitest": "^2.0.0"
|
|
130
|
+
},
|
|
131
|
+
"scripts": {
|
|
132
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --fix",
|
|
133
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --max-warnings 0",
|
|
134
|
+
"tsc": "tsc",
|
|
135
|
+
"build": "vite build",
|
|
136
|
+
"dev": "vite build --watch",
|
|
137
|
+
"test": "vitest run --config vitest.config.ts",
|
|
138
|
+
"test:watch": "vitest --config vitest.config.ts"
|
|
141
139
|
}
|
|
142
|
-
}
|
|
140
|
+
}
|
package/vitest.config.ts
CHANGED
|
@@ -5,8 +5,12 @@ export default mergeConfig(
|
|
|
5
5
|
viteConfig,
|
|
6
6
|
defineConfig({
|
|
7
7
|
test: {
|
|
8
|
+
// L'ENVIRONNEMENT PAR DÉFAUT RESTE `node`. Les tests de calcul pur — placement des bulles,
|
|
9
|
+
// segments de jauge, dérivation d'états — n'ont pas besoin d'un DOM, et le leur imposer
|
|
10
|
+
// coûterait quelques centaines de millisecondes par fichier pour rien. Les rares specs qui
|
|
11
|
+
// rendent un composant déclarent `@vitest-environment jsdom` en tête de fichier.
|
|
8
12
|
environment: 'node',
|
|
9
|
-
include: ['src/**/*.spec.ts'],
|
|
13
|
+
include: ['src/**/*.spec.ts', 'src/**/*.spec.tsx'],
|
|
10
14
|
globals: false,
|
|
11
15
|
passWithNoTests: true,
|
|
12
16
|
},
|