@abyss-project/commons-front-core 3.1.0 → 3.2.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.
- package/dist/{CookieConsentSettings.component-CSf_M5Gx.js → CookieConsentSettings.component-Cigp3geQ.js} +836 -784
- package/dist/components/Cards/project-card-date.spec.d.ts +1 -0
- package/dist/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.spec.d.ts +1 -0
- package/dist/components/Charts/AbyssLineChart/AbyssLineChart.component.d.ts +8 -2
- package/dist/components/Charts/AbyssLineChart/AbyssLineChart.component.spec.d.ts +1 -0
- package/dist/components/CompanySearchAutocomplete/CompanySearchAutocomplete.date.spec.d.ts +1 -0
- package/dist/components/Data/AbyssTable/AbyssTable.component.d.ts +16 -2
- package/dist/components/Data/AbyssTable/AbyssTable.component.spec.d.ts +1 -0
- package/dist/components/Data/AbyssTable/AbyssTableCards.component.d.ts +25 -0
- package/dist/components/Data/AbyssTable/abyss-table.logic.d.ts +49 -0
- package/dist/components/Data/AbyssTable/index.d.ts +1 -1
- package/dist/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +0 -10
- package/dist/components/Support/SupportMessageLink.component.spec.d.ts +1 -0
- package/dist/components/Support/SupportTicketList.week-preset.spec.d.ts +1 -0
- package/dist/components/Support/types.d.ts +4 -0
- package/dist/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.spec.d.ts +1 -0
- package/dist/components/aria-labels-i18n.spec.d.ts +1 -0
- package/dist/components/commons-labels-i18n.spec.d.ts +1 -0
- package/dist/cookie-consent.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-date-fns-locale.hook.d.ts +19 -0
- package/dist/hooks/use-date-fns-locale.hook.spec.d.ts +1 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +140 -64
- package/dist/{index-B7EugME7.js → index--zQDrQsN.js} +2 -2
- package/dist/{index-DrHXb1cg.js → index-5nDlrvU3.js} +2 -2
- package/dist/{index-CtSA_KxY.js → index-B3A4XQoK.js} +2 -2
- package/dist/{index-D7WU-N9n.js → index-B3ufXjWS.js} +2 -2
- package/dist/{index-BToZYvup.js → index-BZq3UPY7.js} +2 -2
- package/dist/{index-CD9GifGt.js → index-Bc1kg3zS.js} +2 -2
- package/dist/{index-C2a_Y6jF.js → index-Be-GYM3X.js} +2 -2
- package/dist/{index-BoYupKIh.js → index-BeIZvfbH.js} +34856 -34394
- package/dist/{index-BOqcEEHH.js → index-Bo25l4a1.js} +3 -3
- package/dist/{index-CCphPqf4.js → index-CiicUS9N.js} +2 -2
- package/dist/{index-CDWityvJ.js → index-CkOB1-Cm.js} +3 -3
- package/dist/{index-DUGpZohv.js → index-D3hrfSA5.js} +2 -2
- package/dist/{index-AUELqW5Y.js → index-DShW99gD.js} +4 -4
- package/dist/{index-BtiGEZHC.js → index-DVlERqlb.js} +3 -3
- package/dist/{index-GhkzA3Z-.js → index-Da36WN3W.js} +2 -2
- package/dist/{index-CFVsaKv5.js → index-DdPGa3C8.js} +4 -4
- package/dist/{index-iw6ikhdy.js → index-DwlzIsOy.js} +3 -3
- package/dist/{index-AwC_8lIT.js → index-DxDFOAmM.js} +4 -4
- package/dist/{index-RBcLmJfD.js → index-Dyf9kIU9.js} +1 -1
- package/dist/{index-6vOdokCY.js → index-G2WqOtwQ.js} +2 -2
- package/dist/{index-BSRrH_Gr.js → index-a5ITEmNu.js} +2 -2
- package/dist/{index-BlCa_Vlr.js → index-w1PwOFhZ.js} +2 -2
- package/dist/index.js +135 -132
- package/dist/translations/en.d.ts +26 -0
- package/dist/translations/fr.d.ts +26 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/message-link.utils.d.ts +9 -0
- package/dist/utils/message-link.utils.spec.d.ts +1 -0
- package/package.json +4 -4
- package/vitest.config.ts +3 -0
|
@@ -415,6 +415,7 @@ declare const _default: {
|
|
|
415
415
|
'not-implemented-yet': string;
|
|
416
416
|
'session-expired': string;
|
|
417
417
|
'click-to-copy': string;
|
|
418
|
+
'open-menu': string;
|
|
418
419
|
open: string;
|
|
419
420
|
delete: string;
|
|
420
421
|
archive: string;
|
|
@@ -427,6 +428,7 @@ declare const _default: {
|
|
|
427
428
|
'filter-title': string;
|
|
428
429
|
share: string;
|
|
429
430
|
'copy-share-link': string;
|
|
431
|
+
'qr-code': string;
|
|
430
432
|
'load-more': string;
|
|
431
433
|
'empty-table': string;
|
|
432
434
|
'empty-graph': string;
|
|
@@ -469,6 +471,10 @@ declare const _default: {
|
|
|
469
471
|
'previous-page': string;
|
|
470
472
|
'next-page': string;
|
|
471
473
|
'last-page': string;
|
|
474
|
+
details: {
|
|
475
|
+
show: string;
|
|
476
|
+
hide: string;
|
|
477
|
+
};
|
|
472
478
|
};
|
|
473
479
|
'file-importation': {
|
|
474
480
|
'cloud-usage-metrics': {
|
|
@@ -516,6 +522,7 @@ declare const _default: {
|
|
|
516
522
|
'import-button': string;
|
|
517
523
|
'success-toast': string;
|
|
518
524
|
'no-space-toast': string;
|
|
525
|
+
'open-in-cloud': string;
|
|
519
526
|
};
|
|
520
527
|
};
|
|
521
528
|
'import-button': string;
|
|
@@ -856,6 +863,20 @@ declare const _default: {
|
|
|
856
863
|
'see-subscription-button': string;
|
|
857
864
|
'delete-account-button': string;
|
|
858
865
|
};
|
|
866
|
+
modal: {
|
|
867
|
+
'your-profile': string;
|
|
868
|
+
'full-profile': string;
|
|
869
|
+
'open-full-profile': string;
|
|
870
|
+
'personal-information': string;
|
|
871
|
+
'alias-placeholder': string;
|
|
872
|
+
'first-name-placeholder': string;
|
|
873
|
+
'last-name-placeholder': string;
|
|
874
|
+
'danger-zone': string;
|
|
875
|
+
'delete-account': string;
|
|
876
|
+
'delete-account-description': string;
|
|
877
|
+
delete: string;
|
|
878
|
+
'save-changes': string;
|
|
879
|
+
};
|
|
859
880
|
};
|
|
860
881
|
tags: {
|
|
861
882
|
'manage-title': string;
|
|
@@ -983,6 +1004,8 @@ declare const _default: {
|
|
|
983
1004
|
};
|
|
984
1005
|
};
|
|
985
1006
|
'company-search-autocomplete': {
|
|
1007
|
+
label: string;
|
|
1008
|
+
placeholder: string;
|
|
986
1009
|
error: string;
|
|
987
1010
|
};
|
|
988
1011
|
family: {
|
|
@@ -1089,6 +1112,7 @@ declare const _default: {
|
|
|
1089
1112
|
'messages-title': string;
|
|
1090
1113
|
'messages-count': string;
|
|
1091
1114
|
'new-messages': string;
|
|
1115
|
+
'copy-link': string;
|
|
1092
1116
|
'send-placeholder': string;
|
|
1093
1117
|
'send-hint': string;
|
|
1094
1118
|
send: string;
|
|
@@ -1131,6 +1155,8 @@ declare const _default: {
|
|
|
1131
1155
|
organization: string;
|
|
1132
1156
|
project: string;
|
|
1133
1157
|
'assign-to-me': string;
|
|
1158
|
+
'copy-user-id': string;
|
|
1159
|
+
'copy-organization-id': string;
|
|
1134
1160
|
'archived-at': string;
|
|
1135
1161
|
activity: string;
|
|
1136
1162
|
'activity-action': {
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './color.utils';
|
|
|
3
3
|
export * from './clipboard.utils';
|
|
4
4
|
export * from './cookie.utils';
|
|
5
5
|
export * from './file.utils';
|
|
6
|
+
export * from './message-link.utils';
|
|
6
7
|
export * from './project-link-wording.utils';
|
|
7
8
|
export * from './locale.utils';
|
|
8
9
|
export * from './share-notification.utils';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the "copy link" URL of a single ticket message: the current page address carrying
|
|
3
|
+
* `?messageId=<id>`, which the ticket pages read to scroll to that message.
|
|
4
|
+
*
|
|
5
|
+
* The URL API replaces an existing `messageId` instead of concatenating a second one: a page opened
|
|
6
|
+
* from such a link keeps the param in its address bar, and naive appending would then produce
|
|
7
|
+
* `?messageId=old?messageId=new`. Other query params and the hash are kept.
|
|
8
|
+
*/
|
|
9
|
+
export declare const buildMessageLink: (href: string, messageId: string) => 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": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
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-is": "^18.0.0 || ^19.0.0",
|
|
54
54
|
"react-router-dom": "^6.15.0",
|
|
55
55
|
"zustand": "^5.0.0",
|
|
56
|
-
"@abyss-project/main": "
|
|
56
|
+
"@abyss-project/main": "10.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@abyss-project/banking": "^1.1.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@abyss-project/crypt": "^1.0.9",
|
|
62
62
|
"@abyss-project/form": "^1.0.13",
|
|
63
63
|
"@abyss-project/memories": "^1.0.12",
|
|
64
|
-
"@abyss-project/monitor": "^
|
|
64
|
+
"@abyss-project/monitor": "^4.0.0",
|
|
65
65
|
"@abyss-project/spotlight": "^1.0.24",
|
|
66
66
|
"@abyss-project/storage": "^1.0.30",
|
|
67
67
|
"@capacitor/clipboard": "^7.0.1",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"use-debounce": "^10.0.5",
|
|
96
96
|
"uuid": "^9.0.0",
|
|
97
97
|
"yup": "^0.32.11",
|
|
98
|
-
"@abyss-project/main": "
|
|
98
|
+
"@abyss-project/main": "10.0.0"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@testing-library/react": "^16.3.2",
|
package/vitest.config.ts
CHANGED
|
@@ -13,6 +13,9 @@ export default mergeConfig(
|
|
|
13
13
|
include: ['src/**/*.spec.ts', 'src/**/*.spec.tsx'],
|
|
14
14
|
globals: false,
|
|
15
15
|
passWithNoTests: true,
|
|
16
|
+
// Tests change process.env through `vi.stubEnv` only (lint rule in .eslintrc.js, card #612):
|
|
17
|
+
// every stub is undone before the next test, absence included.
|
|
18
|
+
unstubEnvs: true,
|
|
16
19
|
},
|
|
17
20
|
}),
|
|
18
21
|
);
|