@abyss-project/commons-front-core 9.3.2 → 9.4.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/README.md +9 -0
- package/dist/{AbyssCookieConsentProvider-CeDdkoPq.js → AbyssCookieConsentProvider-L42RPb5f.js} +1022 -960
- package/dist/{CookieConsentSettings.component-tJE0g-SS.js → CookieConsentSettings.component-CkhtQuGU.js} +1 -1
- package/dist/components/data/KeyValueList/KeyValueList.d.ts +10 -2
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-D3DQFMu-.js → design-theme-C3DcD-kA.js} +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +158 -0
- package/dist/{index-CTkBexi5.js → index-5hIRSHTc.js} +2 -2
- package/dist/{index-BK4lWFRR.js → index-B-D0LQjw.js} +3 -3
- package/dist/{index-BbwAoYtC.js → index-BAO0d8HL.js} +4 -4
- package/dist/{index-rpW-_Gh4.js → index-BLN9Vvdr.js} +2 -2
- package/dist/{index-7E3aXufv.js → index-BhRgGLuD.js} +2 -2
- package/dist/{index-DYUdQPwj.js → index-Bi1ITcfD.js} +2 -2
- package/dist/{index-D6Gkj-V6.js → index-BowQxHAl.js} +2 -2
- package/dist/{index-9E4QhCRp.js → index-C0jOpBPq.js} +2 -2
- package/dist/{index-BcUA-oDy.js → index-CMTzmSRJ.js} +4 -4
- package/dist/{index-CMyNL_Kk.js → index-Cny_hr56.js} +2 -2
- package/dist/{index-CNMUrFys.js → index-CuOhAUX-.js} +10691 -10612
- package/dist/{index-DeoE1f9Z.js → index-CvT5zdz7.js} +2 -2
- package/dist/{index-CZvosKer.js → index-DBKoCefj.js} +4 -4
- package/dist/{index-BfICcXrk.js → index-DXLyOn3D.js} +3 -3
- package/dist/{index-By24n0PI.js → index-DZ5svQvp.js} +2 -2
- package/dist/{index-3wZ_n-X5.js → index-DrSNFgIl.js} +2 -2
- package/dist/{index-CzkoqdQK.js → index-DyhinvD5.js} +3 -3
- package/dist/{index-D3QW807K.js → index-Dyp_SF7H.js} +2 -2
- package/dist/{index-B7yu6Zm9.js → index-Y46rQdc3.js} +2 -2
- package/dist/{index-F67JSDx7.js → index-gVg-FLmC.js} +1 -1
- package/dist/{index-BTfe4Sz-.js → index-sI8PQFKF.js} +3 -3
- package/dist/{index-CUoOFhRH.js → index-yTDpH9la.js} +2 -2
- package/dist/index.js +1886 -1859
- package/dist/legacy/components/Support/SupportCategoryPick.component.spec.d.ts +1 -0
- package/dist/legacy/components/Support/SupportCategorySelect.component.d.ts +2 -2
- package/dist/legacy/components/Support/SupportSystemMessage.component.spec.d.ts +1 -0
- package/dist/legacy/components/Support/support-category.logic.d.ts +10 -0
- package/dist/legacy/components/Support/support-create-stepper.logic.d.ts +8 -0
- package/dist/legacy/components/Support/support-system-message.logic.d.ts +9 -0
- package/dist/legacy/components/Support/types.d.ts +7 -0
- package/dist/legacy.js +4 -4
- package/dist/translations/en.d.ts +31 -0
- package/dist/translations/fr.d.ts +31 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { SupportTicketCategory } from '@abyss-project/main';
|
|
3
3
|
interface SupportCategorySelectProps {
|
|
4
|
-
/** Single value mode (create form) */
|
|
4
|
+
/** Single value mode (create form): the platform-owned categories are not offered. */
|
|
5
5
|
value?: SupportTicketCategory | null;
|
|
6
6
|
onChange?: (value: SupportTicketCategory | null) => void;
|
|
7
|
-
/** Multiple value mode (filter) */
|
|
7
|
+
/** Multiple value mode (filter): every category, platform-owned ones included. */
|
|
8
8
|
multiple?: boolean;
|
|
9
9
|
multipleValue?: SupportTicketCategory[];
|
|
10
10
|
onMultipleChange?: (value: SupportTicketCategory[]) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SupportTicketCategory } from '@abyss-project/main';
|
|
2
|
+
/**
|
|
3
|
+
* Categories whose tickets the platform opens itself, each tied to the subject it discusses
|
|
4
|
+
* (`FUNDING_PROGRAMME`: the conversation of one funding programme). Nobody picks them in a
|
|
5
|
+
* category field, and no recategorisation moves a ticket into or out of them: the API refuses
|
|
6
|
+
* both.
|
|
7
|
+
*/
|
|
8
|
+
export declare const isPlatformOwnedCategory: (category: SupportTicketCategory) => boolean;
|
|
9
|
+
/** The categories a person can pick for a ticket, in the enum order. */
|
|
10
|
+
export declare const pickableCategories: () => SupportTicketCategory[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SupportTicketCategory } from '@abyss-project/main';
|
|
1
2
|
/**
|
|
2
3
|
* Pure logic for the support create stepper's form-submission guard.
|
|
3
4
|
*
|
|
@@ -13,3 +14,10 @@ export type SupportCreateSubmitIntent = 'submit' | 'advance';
|
|
|
13
14
|
* step actually creates the ticket; any earlier step advances instead.
|
|
14
15
|
*/
|
|
15
16
|
export declare const resolveCreateSubmitIntent: (isLastStep: boolean) => SupportCreateSubmitIntent;
|
|
17
|
+
/**
|
|
18
|
+
* Categories a user cannot open a ticket for: the ticket of such a category is opened by the
|
|
19
|
+
* platform itself, and the creation flow sends the user to the page that owns the subject.
|
|
20
|
+
* `FUNDING_PROGRAMME` tickets are opened by the funding programme service when the user
|
|
21
|
+
* requests the programme.
|
|
22
|
+
*/
|
|
23
|
+
export declare const isRedirectedCreateCategory: (category: SupportTicketCategory | "" | null | undefined) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ISupportTicketMessage } from '@abyss-project/main';
|
|
2
|
+
/**
|
|
3
|
+
* A system message is written by the platform, not by a user: it carries a `systemEvent`
|
|
4
|
+
* (a funding programme event type) and has no author. Its text is not stored, it is
|
|
5
|
+
* resolved from the event through the translations (`support.system.<EVENT>`), so the
|
|
6
|
+
* thread reads in the language of the viewer.
|
|
7
|
+
*/
|
|
8
|
+
export declare const isSystemMessage: (message: Pick<ISupportTicketMessage, "systemEvent">) => boolean;
|
|
9
|
+
export declare const getSystemMessageTranslationKey: (systemEvent: NonNullable<ISupportTicketMessage["systemEvent"]>) => string;
|
|
@@ -92,6 +92,13 @@ export interface SupportTicketCreateStepperProps {
|
|
|
92
92
|
/** Render prop for the entire "For Who?" step (admin only). Receives userId/orgId values and setters. */
|
|
93
93
|
renderForWhoStep?: (userId: string | null, onUserChange: (userId: string | null) => void, orgId: string | null, onOrgChange: (orgId: string | null) => void) => ReactNode;
|
|
94
94
|
renderProjectSelect?: (value: string | null, onChange: (projectId: string | null) => void) => ReactNode;
|
|
95
|
+
/**
|
|
96
|
+
* Called when `initialValues.category` is a category the user cannot open a ticket for
|
|
97
|
+
* (`FUNDING_PROGRAMME`: its ticket is opened by the programme itself). The field is cleared and
|
|
98
|
+
* the host redirects to the page that owns the subject (the programme page). Without it the
|
|
99
|
+
* category is cleared silently.
|
|
100
|
+
*/
|
|
101
|
+
onRedirectedCategory?: (category: SupportTicketCategory) => void;
|
|
95
102
|
}
|
|
96
103
|
export interface SupportCategoryGroupCardsProps {
|
|
97
104
|
value: SupportTicketCategory | null;
|
package/dist/legacy.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aE as e, aF as o, R as t, M as r, Q as i, aO as b, Z as n, aI as A, $ as l, a6 as C, aB as S, ac as p, ad as u, aQ as y, b0 as c, a$ as d, aJ as g, aC as T, aY as P, aZ as I, aV as h, ay as _, Y as L, ae as m, a_ as E, aW as O, af as R, bk as D, _ as f, bn as k, bt as B, ap as M, aH as v, al as F, ak as N, aD as x, aG as U, aX as W, V as w, a5 as Q, a4 as H, bM as G, bo as V, bP as Y, ag as j, ai as z, ah as X, aa as K, a9 as Z, a8 as q, bV as J, at as $, aS as aa, aR as sa, aw as ea, ax as oa, ab as ta, aj as ra, bQ as ia, bT as ba, bN as na, bO as Aa, aT as la, aL as Ca, X as Sa, ar as pa, aq as ua, av as ya, a0 as ca, aU as da, au as ga, O as Ta, bS as Pa, bL as Ia, bl as ha, bm as _a, K as La, W as ma, an as Ea, ao as Oa, a1 as Ra, am as Da, aM as fa, bv as ka, bu as Ba, bq as Ma, b8 as va, b9 as Fa, ba as Na, bd as xa, bi as Ua, bg as Wa, b7 as wa, b6 as Qa, b3 as Ha, bb as Ga, b2 as Va, b5 as Ya, bj as ja, bc as za, b4 as Xa, bh as Ka, U as Za, S as qa, aK as Ja, aN as $a, aP as as, a2 as ss, a3 as es, bH as os, b1 as ts, br as rs, by as is, aA as bs, bA as ns, bJ as As, bD as ls, bB as Cs, bC as Ss, bf as ps, be as us, bU as ys, as as cs, bR as ds, bw as gs, bE as Ts, bs as Ps, bp as Is, bK as hs, bx as _s, bG as Ls, bI as ms, bz as Es, bF as Os, az as Rs, a7 as Ds, bW as fs } from "./index-
|
|
2
|
-
import { A as Bs, h as Ms, c as vs, C as Fs, D as Ns, R as xs, V as Us, p as Ws, T as ws, H as Qs, d as Hs, I as Gs, J as Vs, F as Ys, G as js, y as zs, B as Xs, f as Ks, L as Zs, M as qs, W as Js, X as $s, P as ae, Q as se, Y as ee, Z as oe, x as te, n as re, m as ie, z as be, E as ne, o as Ae, q as le, r as Ce, e as Se, v as pe, N as ue, O as ye, U as ce, K as de, S as ge, u as Te, b as Pe, a as Ie, w as he } from "./AbyssCookieConsentProvider-
|
|
3
|
-
import { C as Le } from "./CookieConsentSettings.component-
|
|
4
|
-
import { bw as Ee, ab as Oe, bv as Re, bu as De, bx as fe, a9 as ke, aa as Be, a3 as Me, a4 as ve, a7 as Fe, al as Ne, bz as xe, a6 as Ue, am as We, bA as we, bB as Qe, ap as He, a8 as Ge, an as Ve, a5 as Ye, ao as je, by as ze } from "./design-theme-
|
|
1
|
+
import { aE as e, aF as o, R as t, M as r, Q as i, aO as b, Z as n, aI as A, $ as l, a6 as C, aB as S, ac as p, ad as u, aQ as y, b0 as c, a$ as d, aJ as g, aC as T, aY as P, aZ as I, aV as h, ay as _, Y as L, ae as m, a_ as E, aW as O, af as R, bk as D, _ as f, bn as k, bt as B, ap as M, aH as v, al as F, ak as N, aD as x, aG as U, aX as W, V as w, a5 as Q, a4 as H, bM as G, bo as V, bP as Y, ag as j, ai as z, ah as X, aa as K, a9 as Z, a8 as q, bV as J, at as $, aS as aa, aR as sa, aw as ea, ax as oa, ab as ta, aj as ra, bQ as ia, bT as ba, bN as na, bO as Aa, aT as la, aL as Ca, X as Sa, ar as pa, aq as ua, av as ya, a0 as ca, aU as da, au as ga, O as Ta, bS as Pa, bL as Ia, bl as ha, bm as _a, K as La, W as ma, an as Ea, ao as Oa, a1 as Ra, am as Da, aM as fa, bv as ka, bu as Ba, bq as Ma, b8 as va, b9 as Fa, ba as Na, bd as xa, bi as Ua, bg as Wa, b7 as wa, b6 as Qa, b3 as Ha, bb as Ga, b2 as Va, b5 as Ya, bj as ja, bc as za, b4 as Xa, bh as Ka, U as Za, S as qa, aK as Ja, aN as $a, aP as as, a2 as ss, a3 as es, bH as os, b1 as ts, br as rs, by as is, aA as bs, bA as ns, bJ as As, bD as ls, bB as Cs, bC as Ss, bf as ps, be as us, bU as ys, as as cs, bR as ds, bw as gs, bE as Ts, bs as Ps, bp as Is, bK as hs, bx as _s, bG as Ls, bI as ms, bz as Es, bF as Os, az as Rs, a7 as Ds, bW as fs } from "./index-CuOhAUX-.js";
|
|
2
|
+
import { A as Bs, h as Ms, c as vs, C as Fs, D as Ns, R as xs, V as Us, p as Ws, T as ws, H as Qs, d as Hs, I as Gs, J as Vs, F as Ys, G as js, y as zs, B as Xs, f as Ks, L as Zs, M as qs, W as Js, X as $s, P as ae, Q as se, Y as ee, Z as oe, x as te, n as re, m as ie, z as be, E as ne, o as Ae, q as le, r as Ce, e as Se, v as pe, N as ue, O as ye, U as ce, K as de, S as ge, u as Te, b as Pe, a as Ie, w as he } from "./AbyssCookieConsentProvider-L42RPb5f.js";
|
|
3
|
+
import { C as Le } from "./CookieConsentSettings.component-CkhtQuGU.js";
|
|
4
|
+
import { bw as Ee, ab as Oe, bv as Re, bu as De, bx as fe, a9 as ke, aa as Be, a3 as Me, a4 as ve, a7 as Fe, al as Ne, bz as xe, a6 as Ue, am as We, bA as we, bB as Qe, ap as He, a8 as Ge, an as Ve, a5 as Ye, ao as je, by as ze } from "./design-theme-C3DcD-kA.js";
|
|
5
5
|
export {
|
|
6
6
|
Ee as ABYSS_SERVICE_CONFIG,
|
|
7
7
|
e as ABYSS_SIDEBAR_WIDTH,
|
|
@@ -1050,6 +1050,7 @@ declare const _default: {
|
|
|
1050
1050
|
BILLING_REFUND: string;
|
|
1051
1051
|
BILLING_TRIAL: string;
|
|
1052
1052
|
BILLING_COMMERCIAL_GESTURE: string;
|
|
1053
|
+
FUNDING_PROGRAMME: string;
|
|
1053
1054
|
API_INTEGRATION: string;
|
|
1054
1055
|
API_DOCUMENTATION: string;
|
|
1055
1056
|
API_KEY: string;
|
|
@@ -1083,6 +1084,36 @@ declare const _default: {
|
|
|
1083
1084
|
cancel: string;
|
|
1084
1085
|
'attachment-failed': string;
|
|
1085
1086
|
};
|
|
1087
|
+
system: {
|
|
1088
|
+
PROPOSED: string;
|
|
1089
|
+
DISMISSED: string;
|
|
1090
|
+
REQUESTED: string;
|
|
1091
|
+
REVIEW_STARTED: string;
|
|
1092
|
+
OFFER_SENT: string;
|
|
1093
|
+
OFFER_WITHDRAWN: string;
|
|
1094
|
+
OFFER_DECLINED: string;
|
|
1095
|
+
OFFER_EXPIRED: string;
|
|
1096
|
+
ACCEPTED: string;
|
|
1097
|
+
ENVELOPE_GRANTED: string;
|
|
1098
|
+
ENVELOPE_EXPIRED: string;
|
|
1099
|
+
PLAN_GRANTED: string;
|
|
1100
|
+
PLAN_ENDING: string;
|
|
1101
|
+
PLAN_KEPT: string;
|
|
1102
|
+
PLAN_REVERTED: string;
|
|
1103
|
+
CRITERION_WARNING: string;
|
|
1104
|
+
AT_RISK: string;
|
|
1105
|
+
RECOVERED: string;
|
|
1106
|
+
GRACE_ENDED: string;
|
|
1107
|
+
GRACE_EXTENDED: string;
|
|
1108
|
+
REVOKED: string;
|
|
1109
|
+
ENDING_SOON: string;
|
|
1110
|
+
EXPIRED: string;
|
|
1111
|
+
RENEWAL_REQUESTED: string;
|
|
1112
|
+
REQUEST_WITHDRAWN: string;
|
|
1113
|
+
REJECTED: string;
|
|
1114
|
+
THRESHOLDS_CHANGED: string;
|
|
1115
|
+
LEGAL_DOCS_REVIEWED: string;
|
|
1116
|
+
};
|
|
1086
1117
|
detail: {
|
|
1087
1118
|
description: string;
|
|
1088
1119
|
'unknown-user': string;
|
|
@@ -1068,6 +1068,7 @@ declare const _default: {
|
|
|
1068
1068
|
BILLING_REFUND: string;
|
|
1069
1069
|
BILLING_TRIAL: string;
|
|
1070
1070
|
BILLING_COMMERCIAL_GESTURE: string;
|
|
1071
|
+
FUNDING_PROGRAMME: string;
|
|
1071
1072
|
API_INTEGRATION: string;
|
|
1072
1073
|
API_DOCUMENTATION: string;
|
|
1073
1074
|
API_KEY: string;
|
|
@@ -1101,6 +1102,36 @@ declare const _default: {
|
|
|
1101
1102
|
cancel: string;
|
|
1102
1103
|
'attachment-failed': string;
|
|
1103
1104
|
};
|
|
1105
|
+
system: {
|
|
1106
|
+
PROPOSED: string;
|
|
1107
|
+
DISMISSED: string;
|
|
1108
|
+
REQUESTED: string;
|
|
1109
|
+
REVIEW_STARTED: string;
|
|
1110
|
+
OFFER_SENT: string;
|
|
1111
|
+
OFFER_WITHDRAWN: string;
|
|
1112
|
+
OFFER_DECLINED: string;
|
|
1113
|
+
OFFER_EXPIRED: string;
|
|
1114
|
+
ACCEPTED: string;
|
|
1115
|
+
ENVELOPE_GRANTED: string;
|
|
1116
|
+
ENVELOPE_EXPIRED: string;
|
|
1117
|
+
PLAN_GRANTED: string;
|
|
1118
|
+
PLAN_ENDING: string;
|
|
1119
|
+
PLAN_KEPT: string;
|
|
1120
|
+
PLAN_REVERTED: string;
|
|
1121
|
+
CRITERION_WARNING: string;
|
|
1122
|
+
AT_RISK: string;
|
|
1123
|
+
RECOVERED: string;
|
|
1124
|
+
GRACE_ENDED: string;
|
|
1125
|
+
GRACE_EXTENDED: string;
|
|
1126
|
+
REVOKED: string;
|
|
1127
|
+
ENDING_SOON: string;
|
|
1128
|
+
EXPIRED: string;
|
|
1129
|
+
RENEWAL_REQUESTED: string;
|
|
1130
|
+
REQUEST_WITHDRAWN: string;
|
|
1131
|
+
REJECTED: string;
|
|
1132
|
+
THRESHOLDS_CHANGED: string;
|
|
1133
|
+
LEGAL_DOCS_REVIEWED: string;
|
|
1134
|
+
};
|
|
1104
1135
|
detail: {
|
|
1105
1136
|
description: string;
|
|
1106
1137
|
'unknown-user': string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/commons-front-core",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"description": "Front Core package of AbyssProject",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react-is": "^18.0.0 || ^19.0.0",
|
|
81
81
|
"react-router-dom": "^6.15.0",
|
|
82
82
|
"zustand": "^5.0.0",
|
|
83
|
-
"@abyss-project/main": "18.
|
|
83
|
+
"@abyss-project/main": "18.3.0"
|
|
84
84
|
},
|
|
85
85
|
"peerDependenciesMeta": {
|
|
86
86
|
"@abyss-project/capacitor-auth": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@abyss-project/form": "^1.0.13",
|
|
94
94
|
"@abyss-project/memories": "^1.0.12",
|
|
95
95
|
"@abyss-project/monitor": "^10.0.0",
|
|
96
|
-
"@abyss-project/spotlight": "^1.0
|
|
96
|
+
"@abyss-project/spotlight": "^1.3.0",
|
|
97
97
|
"@abyss-project/storage": "^1.0.30",
|
|
98
98
|
"@capacitor/clipboard": "^7.0.1",
|
|
99
99
|
"@capacitor/core": "^7.4.0",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"use-debounce": "^10.0.5",
|
|
131
131
|
"uuid": "^9.0.0",
|
|
132
132
|
"yup": "^0.32.11",
|
|
133
|
-
"@abyss-project/main": "18.
|
|
133
|
+
"@abyss-project/main": "18.3.0"
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
136
|
"@abyss-project/cloud": "^2.4.0",
|