@abyss-project/commons-front-core 2.0.9 → 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-DX8UGrQv.js → CookieConsentSettings.component-C-P3Slsp.js} +1262 -1186
- 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 +148 -24
- package/dist/{index-BpTqeeVe.js → index-B0lxXG3V.js} +2 -2
- package/dist/{index-BRQYDNh_.js → index-B0rNXjqk.js} +2 -2
- package/dist/{index-BiQ0ye2m.js → index-BNOPf_F-.js} +4 -4
- package/dist/{index-BCA5Vod2.js → index-BZU53M4F.js} +2 -2
- package/dist/{index-CVuiuPPp.js → index-Bc6q5tgW.js} +3 -3
- package/dist/{index-DqDs98uV.js → index-BgB2t_vW.js} +2 -2
- package/dist/{index-Cu91rx6k.js → index-Bitv-cLi.js} +2 -2
- package/dist/{index-JGgjUuXU.js → index-ByVuN6Mr.js} +2 -2
- package/dist/{index-CJ8p6-bx.js → index-CThyOnM4.js} +2 -2
- package/dist/{index-CudQjfps.js → index-CVGiu-Ln.js} +19839 -19460
- package/dist/{index-C_0jzWjy.js → index-CyG_-n_B.js} +2 -2
- package/dist/{index-DXqgg-Cv.js → index-DHh40uSj.js} +4 -4
- package/dist/{index-dAuS9qT4.js → index-DK3lwpDI.js} +2 -2
- package/dist/{index-nWr1HQ7I.js → index-DMgHH-A4.js} +3 -3
- package/dist/{index-51K14Eyc.js → index-DYV2UrqE.js} +1 -1
- package/dist/{index-gauug9Au.js → index-DoPEZ7GY.js} +2 -2
- package/dist/{index-CyNoPuDN.js → index-DzD3M5Tx.js} +4 -4
- package/dist/{index-Sp7tyFRo.js → index-_PrbB7JI.js} +3 -3
- package/dist/{index-LEMTpBLd.js → index-fnNHE2Vv.js} +3 -3
- package/dist/{index-CsAh2Ik2.js → index-h9klFGp5.js} +2 -2
- package/dist/{index-Dj8R-rAN.js → index-pV_M_YnB.js} +2 -2
- package/dist/{index-DuMysSyV.js → index-yUdqFdtk.js} +2 -2
- package/dist/index.js +234 -223
- package/dist/translations/en.d.ts +50 -12
- package/dist/translations/fr.d.ts +50 -12
- package/dist/translations/vocabulaire-client.spec.d.ts +1 -0
- package/package.json +5 -3
- 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;
|
|
@@ -902,6 +940,7 @@ declare const _default: {
|
|
|
902
940
|
STRIPE_PURCHASE: string;
|
|
903
941
|
INVOICE_DEDUCTION: string;
|
|
904
942
|
ADMIN_ADJUSTMENT: string;
|
|
943
|
+
STRIPE_REFUND: string;
|
|
905
944
|
};
|
|
906
945
|
plan: {
|
|
907
946
|
freemium: {
|
|
@@ -932,7 +971,6 @@ declare const _default: {
|
|
|
932
971
|
'plan-feature': {
|
|
933
972
|
PROJECTS_COUNT: string;
|
|
934
973
|
MEMBERS_COUNT: string;
|
|
935
|
-
STORAGE_GB: string;
|
|
936
974
|
LOG_EVENTS: string;
|
|
937
975
|
APPLICATIONS: string;
|
|
938
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;
|
|
@@ -902,6 +940,7 @@ declare const _default: {
|
|
|
902
940
|
STRIPE_PURCHASE: string;
|
|
903
941
|
INVOICE_DEDUCTION: string;
|
|
904
942
|
ADMIN_ADJUSTMENT: string;
|
|
943
|
+
STRIPE_REFUND: string;
|
|
905
944
|
};
|
|
906
945
|
plan: {
|
|
907
946
|
freemium: {
|
|
@@ -932,7 +971,6 @@ declare const _default: {
|
|
|
932
971
|
'plan-feature': {
|
|
933
972
|
PROJECTS_COUNT: string;
|
|
934
973
|
MEMBERS_COUNT: string;
|
|
935
|
-
STORAGE_GB: string;
|
|
936
974
|
LOG_EVENTS: string;
|
|
937
975
|
APPLICATIONS: string;
|
|
938
976
|
RETENTION_DAYS: string;
|
|
@@ -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": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Front Core package of AbyssProject",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"react-intl": "^6.2.5",
|
|
54
54
|
"react-router-dom": "^6.15.0",
|
|
55
55
|
"zustand": "^5.0.0",
|
|
56
|
-
"@abyss-project/main": "
|
|
56
|
+
"@abyss-project/main": "2.3.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@abyss-project/banking": "^1.1.0",
|
|
@@ -95,9 +95,10 @@
|
|
|
95
95
|
"pdf-lib": "^1.17.1",
|
|
96
96
|
"pdfjs-dist": "^4.10.38",
|
|
97
97
|
"yup": "^0.32.11",
|
|
98
|
-
"@abyss-project/main": "
|
|
98
|
+
"@abyss-project/main": "2.3.0"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
+
"@testing-library/react": "^16.3.2",
|
|
101
102
|
"@types/byte-size": "^8.1.0",
|
|
102
103
|
"@types/flat": "^5.0.5",
|
|
103
104
|
"@types/lodash": "^4.14.177",
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
111
112
|
"@typescript-eslint/parser": "7.3.1",
|
|
112
113
|
"@vitejs/plugin-react": "^4.2.0",
|
|
114
|
+
"jsdom": "^29.1.1",
|
|
113
115
|
"eslint": "^7.28.0",
|
|
114
116
|
"eslint-config-prettier": "^8.3.0",
|
|
115
117
|
"eslint-config-standard": "^16.0.3",
|
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
|
},
|