@abyss-project/commons-front-core 21.2.2 → 21.3.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +259 -7
  2. package/README.md +19 -236
  3. package/dist/{CookieConsentSettings-DxqYHcSe.js → CookieConsentSettings-B_XrspE_.js} +1 -1
  4. package/dist/{Surface-B7oNqheh.js → Surface-CDVyoNxU.js} +274 -244
  5. package/dist/{Tabs-CIcTPstN.js → Tabs-De4uBUrI.js} +1 -1
  6. package/dist/cookie-consent.js +2 -2
  7. package/dist/{editors-EtVPiT89.js → editors-DNBP4gs1.js} +27 -27
  8. package/dist/editors.js +1 -1
  9. package/dist/hooks/use-rich-intl.hook.d.ts +16 -2
  10. package/dist/{index-DosPP813.js → index--86h-2PZ.js} +2 -2
  11. package/dist/{index-DQG84GBb.js → index-B3Dmwmm5.js} +4 -4
  12. package/dist/{index-CLA1QmBI.js → index-BCvFVW35.js} +2 -2
  13. package/dist/{index-BqHfnhAI.js → index-BETj39iS.js} +3 -3
  14. package/dist/{index-_8pbbRHo.js → index-BEiq9dc4.js} +4 -4
  15. package/dist/{index-L0FC1-7F.js → index-BJ8vRTI1.js} +3 -3
  16. package/dist/{index-BputOa4Q.js → index-BN3BClqp.js} +2 -2
  17. package/dist/{index-FbMAdrxh.js → index-BO3ZYOV7.js} +2 -2
  18. package/dist/{index-CD2cyvpc.js → index-BhVg_a05.js} +4 -4
  19. package/dist/{index-DudKHPj1.js → index-Bi-LgwxF.js} +2 -2
  20. package/dist/{index-CRmDTcUj.js → index-BrIJFHn6.js} +2 -2
  21. package/dist/{index-DRbuPt3v.js → index-BvqJvLzc.js} +2 -2
  22. package/dist/{index-Ce9ZLOs8.js → index-CCk-aXzg.js} +3 -3
  23. package/dist/{index-DTvs0L8-.js → index-CJBeVuxk.js} +1 -1
  24. package/dist/{index-DefYw2MM.js → index-CKuo6Mki.js} +2 -2
  25. package/dist/{index-By98mnwt.js → index-Cr361nhQ.js} +3 -3
  26. package/dist/{index-MBYU8oDh.js → index-D-LJS01M.js} +2 -2
  27. package/dist/{index-CopXI_1P.js → index-DPLLqacI.js} +2 -2
  28. package/dist/{index-CML2Qvga.js → index-DyaDxg41.js} +2 -2
  29. package/dist/{index-BOlnAuSU.js → index-KMimc3Je.js} +2 -2
  30. package/dist/{index-CqVUubtw.js → index-xXZu-aO2.js} +2 -2
  31. package/dist/index.js +4281 -4274
  32. package/dist/rum/rum-provider-config.d.ts +0 -6
  33. package/dist/translations/en.d.ts +8 -1
  34. package/dist/translations/fr.d.ts +8 -1
  35. package/dist/utils/billing.utils.d.ts +7 -4
  36. package/package.json +5 -5
  37. package/vite.config.ts +6 -0
@@ -13,12 +13,6 @@ export interface AbyssRumProviderConfigInput {
13
13
  mainApiUrl: string | undefined;
14
14
  /** `true` for a front that calls Monitor's API itself (abyss-main's): Monitor is instrumented too. */
15
15
  instrumentMonitorApi?: boolean;
16
- /**
17
- * Whether the W3C `traceparent` header is sent, next to the correlation headers, to the
18
- * instrumented origins only, so a click and the server calls it triggers read as one trace in
19
- * Monitor. Default `true`; `false` keeps the correlation headers alone.
20
- */
21
- propagateTraceContext?: boolean;
22
16
  /** Commit SHA of the build (`VITE_RELEASE`); empty: the sessions carry no release. */
23
17
  release: string | undefined;
24
18
  /** The front's full route templates, as its router mounts them (`/org/:orgId/boards/:boardId`). */
@@ -480,13 +480,20 @@ declare const _default: {
480
480
  'spotlight-project': string;
481
481
  event: string;
482
482
  report: string;
483
- banking: string;
483
+ 'banking-org': string;
484
484
  asset: string;
485
485
  'wrapped-report': string;
486
486
  'daily-digest': string;
487
487
  'analytics-snapshot': string;
488
+ 'banking-view-account': string;
489
+ 'extraction-file': string;
490
+ 'extraction-template': string;
491
+ 'extraction-result': string;
492
+ beam: string;
493
+ 'banking-score-share-set': string;
488
494
  content: string;
489
495
  };
496
+ 'label-with-name': string;
490
497
  };
491
498
  'pending-invitations': {
492
499
  label: string;
@@ -480,13 +480,20 @@ declare const _default: {
480
480
  'spotlight-project': string;
481
481
  event: string;
482
482
  report: string;
483
- banking: string;
483
+ 'banking-org': string;
484
484
  asset: string;
485
485
  'wrapped-report': string;
486
486
  'daily-digest': string;
487
487
  'analytics-snapshot': string;
488
+ 'banking-view-account': string;
489
+ 'extraction-file': string;
490
+ 'extraction-template': string;
491
+ 'extraction-result': string;
492
+ beam: string;
493
+ 'banking-score-share-set': string;
488
494
  content: string;
489
495
  };
496
+ 'label-with-name': string;
490
497
  };
491
498
  'pending-invitations': {
492
499
  label: string;
@@ -10,8 +10,11 @@ import { IPlanTemplate } from '@abyss-project/main';
10
10
  export declare const getPlanNameMessageId: (planTemplate: Pick<IPlanTemplate, "catalogKey" | "tier"> | null | undefined) => string;
11
11
  export declare const getPlanDisplayName: (planTemplate: Pick<IPlanTemplate, "catalogKey" | "tier"> | null | undefined, intl: Pick<IntlShape, "formatMessage">) => string;
12
12
  /**
13
- * The interpolation values of a billing notification: its payload plus the `{planName}`,
14
- * `{oldPlanName}` and `{newPlanName}` labels resolved from the plan identities it carries
15
- * (the payload never holds a plan name). `translate` is the host's translation of an id.
13
+ * The interpolation values of a notification: its payload plus
14
+ * - the `{planName}`, `{oldPlanName}` and `{newPlanName}` labels resolved from the plan identities a
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.
17
+ *
18
+ * `translate` is the host's translation of an id, and must interpolate the `values` it is given.
16
19
  */
17
- export declare const getNotificationValues: (data: Record<string, unknown> | undefined, translate: (id: string) => string) => Record<string, unknown>;
20
+ export declare const getNotificationValues: (data: Record<string, unknown> | undefined, translate: (id: string, values?: Record<string, string>) => string) => Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "21.2.2",
3
+ "version": "21.3.1",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -60,7 +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/monitor-browser": "^2.4.0",
63
+ "@abyss-project/monitor-browser": "^2.0.0",
64
64
  "@abyss-project/workspace": "^4.6.0",
65
65
  "@dnd-kit/core": "^6.0.0",
66
66
  "@dnd-kit/sortable": "^9.0.0",
@@ -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": "36.8.0"
83
+ "@abyss-project/main": "36.9.1"
84
84
  },
85
85
  "peerDependenciesMeta": {
86
86
  "@abyss-project/capacitor-auth": {
@@ -129,12 +129,12 @@
129
129
  "use-debounce": "^10.0.5",
130
130
  "uuid": "^9.0.0",
131
131
  "yup": "^0.32.11",
132
- "@abyss-project/main": "36.8.0"
132
+ "@abyss-project/main": "36.9.1"
133
133
  },
134
134
  "devDependencies": {
135
135
  "@abyss-project/cloud": "^2.4.0",
136
136
  "@abyss-project/flow": "^2.1.0",
137
- "@abyss-project/monitor-browser": "^2.4.0",
137
+ "@abyss-project/monitor-browser": "^2.0.0",
138
138
  "@abyss-project/workspace": "^4.6.0",
139
139
  "@playwright/test": "^1.52.0",
140
140
  "@testing-library/react": "^16.3.2",
package/vite.config.ts CHANGED
@@ -49,6 +49,11 @@ export default defineConfig({
49
49
  __dirname,
50
50
  '../abyss_main_core/src/billing-metric-label/index.ts',
51
51
  ),
52
+ // Same for the content-share label keys (#833): the bell translates the keys this entry gives.
53
+ '@abyss-project/main/content-share-label': resolve(
54
+ __dirname,
55
+ '../abyss_main_core/src/content-share-label/index.ts',
56
+ ),
52
57
  },
53
58
  },
54
59
  build: {
@@ -115,6 +120,7 @@ export default defineConfig({
115
120
  // Bundled on purpose, see `resolve.alias` above.
116
121
  if (id === '@abyss-project/main/plan-name') return false;
117
122
  if (id === '@abyss-project/main/billing-metric-label') return false;
123
+ if (id === '@abyss-project/main/content-share-label') return false;
118
124
  // Scoped-package prefixes (these always end with '/'). `@abyss-project/` keeps
119
125
  // `@abyss-project/capacitor-auth` external: imported lazily by the `auth-native` entry only.
120
126
  const scopedPrefixes = ['@mui/', '@emotion/', '@abyss-project/', '@tanstack/'];