@abyss-project/commons-front-core 1.0.33 → 1.0.35

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.
@@ -4,7 +4,7 @@ type Props = {
4
4
  allNotificationPath?: string;
5
5
  getProfilePictureUrl: (id: string) => string;
6
6
  services: AbyssService[];
7
- shouldDisplayActionButton: (notification: IUserNotification & NotificationDTO, user?: IGetPublicUserData['user'][0] | null) => boolean;
7
+ actionButtonText: (notification: IUserNotification & NotificationDTO, user?: IGetPublicUserData['user'][0] | null) => string;
8
8
  handleNotificationActionButton?: (notification: IUserNotification & NotificationDTO, user?: IGetPublicUserData['user'][0] | null) => void;
9
9
  classes: Record<string, string>;
10
10
  };
@@ -283,6 +283,10 @@ export declare const translations: {
283
283
  };
284
284
  'no-notification': string;
285
285
  'see-all-button': string;
286
+ actions: {
287
+ open: string;
288
+ see: string;
289
+ };
286
290
  };
287
291
  'no-subscription': string;
288
292
  'user-settings': {
@@ -588,6 +592,10 @@ export declare const translations: {
588
592
  };
589
593
  'no-notification': string;
590
594
  'see-all-button': string;
595
+ actions: {
596
+ open: string;
597
+ see: string;
598
+ };
591
599
  };
592
600
  'no-subscription': string;
593
601
  'user-settings': {
@@ -3761,7 +3761,11 @@ const _e = (e, t = {}) => (r) => {
3761
3761
  "no-element": "Aucun élément"
3762
3762
  },
3763
3763
  "no-notification": "Aucune nouvelle notification",
3764
- "see-all-button": "Voir toute les notifications"
3764
+ "see-all-button": "Voir toute les notifications",
3765
+ actions: {
3766
+ open: "Ouvrir",
3767
+ see: "Voir"
3768
+ }
3765
3769
  },
3766
3770
  "no-subscription": "Aucun abonnement",
3767
3771
  "user-settings": {
@@ -4065,7 +4069,11 @@ const _e = (e, t = {}) => (r) => {
4065
4069
  "no-element": "No items"
4066
4070
  },
4067
4071
  "no-notification": "No new notifications",
4068
- "see-all-button": "See all notifications"
4072
+ "see-all-button": "See all notifications",
4073
+ actions: {
4074
+ open: "Open",
4075
+ see: "See"
4076
+ }
4069
4077
  },
4070
4078
  "no-subscription": "No subscription",
4071
4079
  "user-settings": {
@@ -18249,7 +18257,7 @@ kl("CapacitorHttp", {
18249
18257
  web: () => new IM()
18250
18258
  });
18251
18259
  const qM = kl("Share", {
18252
- web: () => import("./web-Dw6HQ5_0.js").then((e) => new e.ShareWeb())
18260
+ web: () => import("./web-qg7sEVOx.js").then((e) => new e.ShareWeb())
18253
18261
  });
18254
18262
  class OM extends yh {
18255
18263
  async write(t) {
@@ -23748,7 +23756,7 @@ const WB = () => {
23748
23756
  allNotificationPath: t,
23749
23757
  handleNotificationActionButton: r,
23750
23758
  services: n,
23751
- shouldDisplayActionButton: a
23759
+ actionButtonText: a
23752
23760
  }) => {
23753
23761
  const [o, l] = Pr.useState(null), [c, d] = Pr.useState(!1), [f, m] = Ce([]), [h, y] = Ce(0), [S, C] = Ce([]), v = Ut(), I = de(async () => {
23754
23762
  const R = await R9({
@@ -23894,7 +23902,10 @@ const WB = () => {
23894
23902
  className: "customScrollBar",
23895
23903
  children: /* @__PURE__ */ g(At, { spacing: 1, children: f.length ? f.map((R) => {
23896
23904
  const T = S.find(
23897
- (q) => q.id === R.data.userId
23905
+ (U) => U.id === R.data.userId
23906
+ ), q = a(
23907
+ R,
23908
+ T
23898
23909
  );
23899
23910
  return /* @__PURE__ */ g(
23900
23911
  N,
@@ -24027,10 +24038,7 @@ const WB = () => {
24027
24038
  )
24028
24039
  }
24029
24040
  ),
24030
- r && a(
24031
- R,
24032
- T || null
24033
- ) && /* @__PURE__ */ g(
24041
+ r && q && /* @__PURE__ */ g(
24034
24042
  We,
24035
24043
  {
24036
24044
  size: "small",
@@ -24055,7 +24063,7 @@ const WB = () => {
24055
24063
  T || null
24056
24064
  ), V(R), d(!1);
24057
24065
  },
24058
- children: v.formatRichMessage({ id: "general.open" })
24066
+ children: q
24059
24067
  }
24060
24068
  )
24061
24069
  ] })
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { V as o, c as e, a as r, b as t, ah as i, ai as A, aj as d, y as l, ak as C, z as n, G as L, B as S, al as y, m as I, am as g, an as u, ao as b, A as p, Z as T, a3 as D, $ as _, Y as c, C as m, j as P, ap as R, s as O, u as F, t as h, q as B, K as E, N as M, D as N, ag as U, l as f, E as v, a0 as j, F as k, v as x, g as H, _ as W, I as X, n as w, o as G, h as Z, x as K, J as V, L as q, ae as Q, ac as Y, ad as z, M as J, H as $, af as aa, r as sa, k as oa, P as ea, R as ra, X as ta, d as ia, T as Aa, O as da, Q as la, a1 as Ca, S as na, a4 as La, a2 as Sa, U as ya, p as Ia, i as ga, w as ua, e as ba, f as pa, a5 as Ta, as as Da, a7 as _a, at as ca, aa as ma, a8 as Pa, a6 as Ra, a9 as Oa, aq as Fa, ar as ha, ab as Ba } from "./index-Dx7UwNTX.js";
1
+ import { V as o, c as e, a as r, b as t, ah as i, ai as A, aj as d, y as l, ak as C, z as n, G as L, B as S, al as y, m as I, am as g, an as u, ao as b, A as p, Z as T, a3 as D, $ as _, Y as c, C as m, j as P, ap as R, s as O, u as F, t as h, q as B, K as E, N as M, D as N, ag as U, l as f, E as v, a0 as j, F as k, v as x, g as H, _ as W, I as X, n as w, o as G, h as Z, x as K, J as V, L as q, ae as Q, ac as Y, ad as z, M as J, H as $, af as aa, r as sa, k as oa, P as ea, R as ra, X as ta, d as ia, T as Aa, O as da, Q as la, a1 as Ca, S as na, a4 as La, a2 as Sa, U as ya, p as Ia, i as ga, w as ua, e as ba, f as pa, a5 as Ta, as as Da, a7 as _a, at as ca, aa as ma, a8 as Pa, a6 as Ra, a9 as Oa, aq as Fa, ar as ha, ab as Ba } from "./index-B7QHG31i.js";
2
2
  export {
3
3
  o as ABYSS_LINK,
4
4
  e as AVATAR_BASE_SX,
@@ -279,6 +279,10 @@ declare const _default: {
279
279
  };
280
280
  'no-notification': string;
281
281
  'see-all-button': string;
282
+ actions: {
283
+ open: string;
284
+ see: string;
285
+ };
282
286
  };
283
287
  'no-subscription': string;
284
288
  'user-settings': {
@@ -279,6 +279,10 @@ declare const _default: {
279
279
  };
280
280
  'no-notification': string;
281
281
  'see-all-button': string;
282
+ actions: {
283
+ open: string;
284
+ see: string;
285
+ };
282
286
  };
283
287
  'no-subscription': string;
284
288
  'user-settings': {
@@ -1,4 +1,4 @@
1
- import { W as a } from "./index-Dx7UwNTX.js";
1
+ import { W as a } from "./index-B7QHG31i.js";
2
2
  class n extends a {
3
3
  async canShare() {
4
4
  return typeof navigator > "u" || !navigator.share ? { value: !1 } : { value: !0 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -64,7 +64,7 @@
64
64
  "use-debounce": "^10.0.5",
65
65
  "uuid": "^9.0.0",
66
66
  "yup": "^0.32.11",
67
- "@abyss-project/main": "1.0.34"
67
+ "@abyss-project/main": "1.0.36"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@types/byte-size": "^8.1.0",