@abyss-project/commons-front-core 21.4.4 → 21.5.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{CookieConsentSettings-C0ykq4wO.js → CookieConsentSettings-JnVg_LK2.js} +1 -1
  3. package/dist/{Surface-CGXispdx.js → Surface-BSaVNCQB.js} +294 -224
  4. package/dist/{Tabs-ClzW7E5h.js → Tabs-DlztwHTB.js} +1 -1
  5. package/dist/components/LinkStatsPanel/LinkStatsPanel.spec.d.ts +1 -0
  6. package/dist/components/LinkStatsPanel/index.d.ts +3 -0
  7. package/dist/components/LinkStatsPanel/link-stats-range.d.ts +10 -0
  8. package/dist/components/LinkStatsPanel/link-stats-range.spec.d.ts +1 -0
  9. package/dist/components/LinkStatsPanel/use-link-stats-by-origin.d.ts +13 -0
  10. package/dist/components/index.d.ts +1 -0
  11. package/dist/cookie-consent.js +2 -2
  12. package/dist/{editors-CnlNL7Oo.js → editors-DtSWARzF.js} +27 -27
  13. package/dist/editors.js +1 -1
  14. package/dist/hooks/use-rich-intl.hook.d.ts +64 -0
  15. package/dist/{index-BI6iFcQ4.js → index-3QNmXVou.js} +2 -2
  16. package/dist/{index-l_DrWlvO.js → index-B27TqeVc.js} +2 -2
  17. package/dist/{index-CQLqh-gk.js → index-B_brfyuS.js} +2 -2
  18. package/dist/{index-CzuHZ4xK.js → index-BeM8FRDV.js} +2 -2
  19. package/dist/{index-XOO630d1.js → index-BhIJ2JLT.js} +3 -3
  20. package/dist/{index-BU7TazlY.js → index-BypVAuSd.js} +2 -2
  21. package/dist/{index-BjgmH6Hy.js → index-CWpn58Dl.js} +2 -2
  22. package/dist/{index-6mbLA8S0.js → index-CoHmgDgN.js} +2 -2
  23. package/dist/{index-CvMJZ-GZ.js → index-CrCFfSgX.js} +2 -2
  24. package/dist/{index-BsVeEo8p.js → index-D1hPS3Ao.js} +4 -4
  25. package/dist/{index-BtDjHQ_-.js → index-DDykQjHr.js} +2 -2
  26. package/dist/{index-CqU1NLxf.js → index-DJwDjPvp.js} +2 -2
  27. package/dist/{index-BXFYoODV.js → index-DWM_TDWv.js} +4 -4
  28. package/dist/{index-BurrDopX.js → index-DYr8EuPL.js} +3 -3
  29. package/dist/{index-DgWE_ele.js → index-DuQKxzT3.js} +2 -2
  30. package/dist/{index-4W6C4eVQ.js → index-H8Fs3-Nw.js} +1 -1
  31. package/dist/{index-DzxQgpVI.js → index-NadodU95.js} +3 -3
  32. package/dist/{index-COfIU9Ha.js → index-PV6fILN2.js} +2 -2
  33. package/dist/{index-BIklPoHY.js → index-cHcfvTo0.js} +3 -3
  34. package/dist/{index-BVOFK3Qe.js → index-ezygrHM0.js} +2 -2
  35. package/dist/{index-DH_QoE8c.js → index-vSNwWEdM.js} +4 -4
  36. package/dist/index.js +21126 -19216
  37. package/dist/translations/en.d.ts +32 -0
  38. package/dist/translations/fr.d.ts +32 -0
  39. package/dist/utils/billing.utils.d.ts +2 -1
  40. package/package.json +5 -3
@@ -494,6 +494,12 @@ declare const _default: {
494
494
  content: string;
495
495
  };
496
496
  'label-with-name': string;
497
+ permission: {
498
+ VIEW: string;
499
+ EDIT: string;
500
+ MANAGE: string;
501
+ unknown: string;
502
+ };
497
503
  };
498
504
  'pending-invitations': {
499
505
  label: string;
@@ -509,6 +515,32 @@ declare const _default: {
509
515
  'group-own': string;
510
516
  'group-shared': string;
511
517
  };
518
+ 'link-stats': {
519
+ title: string;
520
+ 'period-default': string;
521
+ 'period-since': string;
522
+ visits: {
523
+ label: string;
524
+ };
525
+ 'unique-visitors': {
526
+ label: string;
527
+ subtext: string;
528
+ };
529
+ 'last-visit': {
530
+ subtext: string;
531
+ never: string;
532
+ };
533
+ 'no-address': {
534
+ title: string;
535
+ description: string;
536
+ };
537
+ 'no-visits': {
538
+ title: string;
539
+ description: string;
540
+ };
541
+ forbidden: string;
542
+ error: string;
543
+ };
512
544
  'no-subscription': string;
513
545
  'user-settings': {
514
546
  profile: {
@@ -494,6 +494,12 @@ declare const _default: {
494
494
  content: string;
495
495
  };
496
496
  'label-with-name': string;
497
+ permission: {
498
+ VIEW: string;
499
+ EDIT: string;
500
+ MANAGE: string;
501
+ unknown: string;
502
+ };
497
503
  };
498
504
  'pending-invitations': {
499
505
  label: string;
@@ -509,6 +515,32 @@ declare const _default: {
509
515
  'group-own': string;
510
516
  'group-shared': string;
511
517
  };
518
+ 'link-stats': {
519
+ title: string;
520
+ 'period-default': string;
521
+ 'period-since': string;
522
+ visits: {
523
+ label: string;
524
+ };
525
+ 'unique-visitors': {
526
+ label: string;
527
+ subtext: string;
528
+ };
529
+ 'last-visit': {
530
+ subtext: string;
531
+ never: string;
532
+ };
533
+ 'no-address': {
534
+ title: string;
535
+ description: string;
536
+ };
537
+ 'no-visits': {
538
+ title: string;
539
+ description: string;
540
+ };
541
+ forbidden: string;
542
+ error: string;
543
+ };
512
544
  'no-subscription': string;
513
545
  'user-settings': {
514
546
  profile: {
@@ -13,7 +13,8 @@ export declare const getPlanDisplayName: (planTemplate: Pick<IPlanTemplate, "cat
13
13
  * The interpolation values of a notification: its payload plus
14
14
  * - the `{planName}`, `{oldPlanName}` and `{newPlanName}` labels resolved from the plan identities a
15
15
  * billing notification carries (the payload never holds a plan name);
16
- * - the readable `{contentLabel}` of a share or invitation notification, which carries a label key.
16
+ * - the readable `{contentLabel}` of a share or invitation notification, which carries a label key;
17
+ * - the readable `{permission}` of a share notification.
17
18
  *
18
19
  * `translate` is the host's translation of an id, and must interpolate the `values` it is given.
19
20
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "21.4.4",
3
+ "version": "21.5.0",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -60,6 +60,7 @@
60
60
  "@abyss-project/capacitor-auth": "^1.0.0",
61
61
  "@abyss-project/cloud": "^2.4.0",
62
62
  "@abyss-project/flow": "^2.0.0",
63
+ "@abyss-project/link": "^1.2.0",
63
64
  "@abyss-project/monitor-browser": "^2.4.0",
64
65
  "@abyss-project/workspace": "^4.6.0",
65
66
  "@dnd-kit/core": "^6.0.0",
@@ -80,7 +81,7 @@
80
81
  "react-is": "^18.0.0 || ^19.0.0",
81
82
  "react-router-dom": "^6.15.0",
82
83
  "zustand": "^5.0.0",
83
- "@abyss-project/main": "36.9.1"
84
+ "@abyss-project/main": "36.11.0"
84
85
  },
85
86
  "peerDependenciesMeta": {
86
87
  "@abyss-project/capacitor-auth": {
@@ -129,11 +130,12 @@
129
130
  "use-debounce": "^10.0.5",
130
131
  "uuid": "^9.0.0",
131
132
  "yup": "^0.32.11",
132
- "@abyss-project/main": "36.9.1"
133
+ "@abyss-project/main": "36.11.0"
133
134
  },
134
135
  "devDependencies": {
135
136
  "@abyss-project/cloud": "^2.4.0",
136
137
  "@abyss-project/flow": "^2.1.0",
138
+ "@abyss-project/link": "^1.2.0",
137
139
  "@abyss-project/monitor-browser": "^2.4.0",
138
140
  "@abyss-project/workspace": "^4.6.0",
139
141
  "@playwright/test": "^1.52.0",