@abyss-project/commons-front-core 21.3.2 → 21.4.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/CHANGELOG.md CHANGED
@@ -1,8 +1,16 @@
1
1
  # Changelog — @abyss-project/commons-front-core
2
2
 
3
+ ## 21.4.1
4
+
5
+ Card #834, on top of 21.4.0. The content-shared notification body names the permission in clear (« « Jardin » — accès en lecture » / « "Jardin" — view access »); an unknown value reads « accès partagé », never the raw value. The labels come from `@abyss-project/main/content-share-label` (ADR-0286). `@abyss-project/main` is pinned at 36.9.2.
6
+
7
+ ## 21.4.0
8
+
9
+ Merge of the 21.2.x line (traces, #701) and of 21.3.1 (shared content labels, #833), published from separate branches: 21.4.0 carries both. `buildAbyssRumProviderConfig` keeps `propagateTraceContext` on by default; `getNotificationValues` keeps the 21.3.0 contract. `@abyss-project/main` is pinned at 36.9.1.
10
+
3
11
  ## 21.3.2
4
12
 
5
- Card #834. The content-shared notification body names the permission in clear (« « Jardin » — accès en lecture » / « "Jardin" — view access »); an unknown value reads « accès partagé », never the raw value. The labels come from `@abyss-project/main/content-share-label` (ADR-0286). `@abyss-project/main` is pinned at 36.9.2.
13
+ Card #834 on the 21.3.x line, published before 21.4.0 reached develop; superseded by 21.4.1, which carries it with 21.4.0.
6
14
 
7
15
  ## 21.3.1
8
16
 
@@ -17,6 +25,19 @@ Card #833. Published under the `invitation-833-21-3` dist-tag; 21.2.x is a separ
17
25
  - `content-share.label.*` and `content-share.label-with-name` come from the `@abyss-project/main/content-share-label` entry (bundled, ADR-0129), the single FR/EN source shared with the emails of abyss-main.
18
26
  - `@abyss-project/main` is pinned at 36.9.0.
19
27
 
28
+ ## 21.2.2
29
+
30
+ - Built on top of 21.1.1: carries the toast clearance that follows the tab bar's safe area, which 21.2.0 and 21.2.1 lacked.
31
+ - `getAbyssLinkWording` returns `ExistingTranslationKey` again (21.2.1 is reverted): the fronts align their own `@abyss-project/main` on the version commons pins (#701).
32
+
33
+ ## 21.2.1
34
+
35
+ - `getAbyssLinkWording` returns `AbyssLinkWordingKey` (its two literal keys) instead of the whole translation-key union, so a front whose own `@abyss-project/main` is older than the one commons pins still accepts the label (#701).
36
+
37
+ ## 21.2.0
38
+
39
+ - `buildAbyssRumProviderConfig` turns `propagateTraceContext` on by default: a browser call to an instrumented Abyss API carries the session's `traceparent` (#701). Peer `@abyss-project/monitor-browser` `^2.4.0`.
40
+
20
41
  ## 21.1.1
21
42
 
22
43
  Card #286 (sous-projet 6).
package/README.md CHANGED
@@ -86,6 +86,7 @@ export const buildRumOptions = () =>
86
86
 
87
87
  - **`null`** sans jeton, application, API Monitor, API du front ou API d'abyss-main (ou si l'une des trois URL n'en est pas une) : rien n'est installé.
88
88
  - **Relais et corrélation** : `proxyUrl` = origine de `apiUrl` + `/_t` ; `instrumentedOrigins` = origines de `apiUrl` et `mainApiUrl` (une seule fois si c'est la même), plus celle de Monitor avec `instrumentMonitorApi: true` (front d'abyss-main, qui appelle Monitor lui-même).
89
+ - **Trace** : `propagateTraceContext` vaut `true` par défaut (champ d'entrée optionnel, `false` pour le couper) : l'en-tête W3C `traceparent` part avec les en-têtes de corrélation, vers les seules `instrumentedOrigins`, et le clic et les appels serveur qu'il déclenche forment une seule trace dans Monitor. Requiert `@abyss-project/monitor-browser` 2.4.0 ; l'API visée doit accepter `traceparent` dans son CORS (`MONITOR_CORRELATION_HEADERS`).
89
90
  - **Routes** : `routeResolver` = `createRouteResolver(routeTemplates)`.
90
91
  - **Ticket de retour** posé seulement quand l'intake, sa section, l'organisation, le projet et `mainFrontUrl` sont là ; son lien est `abyssMainRumSessionPath`, à l'instant du retour en secondes entières.
91
92
 
package/dist/index.js CHANGED
@@ -40643,7 +40643,9 @@ const RG = (e) => e === "pending_scan", pEe = (e) => e === "infected", qVe = (e)
40643
40643
  };
40644
40644
  }, TEe = (e, t) => "permission" in e ? {
40645
40645
  permission: t(
40646
- `content-share.permission.${sJ(e.permission)}`
40646
+ `content-share.permission.${sJ(
40647
+ e.permission
40648
+ )}`
40647
40649
  )
40648
40650
  } : {}, PVe = (e, t) => {
40649
40651
  const n = e ?? {};
@@ -51667,6 +51669,7 @@ const $De = (e, t) => [
51667
51669
  token: e.token,
51668
51670
  release: e.release || void 0,
51669
51671
  instrumentedOrigins: i,
51672
+ propagateTraceContext: e.propagateTraceContext ?? !0,
51670
51673
  routeResolver: iOe(e.routeTemplates),
51671
51674
  ...a ? { feedbackTicket: a } : {}
51672
51675
  };
@@ -13,6 +13,12 @@ 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;
16
22
  /** Commit SHA of the build (`VITE_RELEASE`); empty: the sessions carry no release. */
17
23
  release: string | undefined;
18
24
  /** The front's full route templates, as its router mounts them (`/org/:orgId/boards/:boardId`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "21.3.2",
3
+ "version": "21.4.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.0.0",
63
+ "@abyss-project/monitor-browser": "^2.4.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",
@@ -134,7 +134,7 @@
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.0.0",
137
+ "@abyss-project/monitor-browser": "^2.4.0",
138
138
  "@abyss-project/workspace": "^4.6.0",
139
139
  "@playwright/test": "^1.52.0",
140
140
  "@testing-library/react": "^16.3.2",