@abyss-project/commons-front-core 21.3.1 → 21.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog — @abyss-project/commons-front-core
2
2
 
3
+ ## 21.4.0
4
+
5
+ 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.
6
+
3
7
  ## 21.3.1
4
8
 
5
9
  Card #833. The French with-name format puts no-break spaces inside the guillemets (« Jardin »), so the opening guillemet no longer ends a line alone. `@abyss-project/main` is pinned at 36.9.1.
@@ -13,6 +17,19 @@ Card #833. Published under the `invitation-833-21-3` dist-tag; 21.2.x is a separ
13
17
  - `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.
14
18
  - `@abyss-project/main` is pinned at 36.9.0.
15
19
 
20
+ ## 21.2.2
21
+
22
+ - 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.
23
+ - `getAbyssLinkWording` returns `ExistingTranslationKey` again (21.2.1 is reverted): the fronts align their own `@abyss-project/main` on the version commons pins (#701).
24
+
25
+ ## 21.2.1
26
+
27
+ - `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).
28
+
29
+ ## 21.2.0
30
+
31
+ - `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`.
32
+
16
33
  ## 21.1.1
17
34
 
18
35
  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
@@ -51662,6 +51662,7 @@ const QDe = (e, t) => [
51662
51662
  token: e.token,
51663
51663
  release: e.release || void 0,
51664
51664
  instrumentedOrigins: i,
51665
+ propagateTraceContext: e.propagateTraceContext ?? !0,
51665
51666
  routeResolver: nOe(e.routeTemplates),
51666
51667
  ...a ? { feedbackTicket: a } : {}
51667
51668
  };
@@ -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.1",
3
+ "version": "21.4.0",
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",