@abyss-project/commons-front-core 21.1.1 → 21.2.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 +8 -0
- package/README.md +1 -0
- package/dist/index.js +2 -1
- package/dist/rum/rum-provider-config.d.ts +6 -0
- package/dist/utils/project-link-wording.utils.d.ts +4 -2
- package/dist/utils/project-link-wording.utils.spec.d.ts +1 -0
- package/package.json +3 -3
- package/test-results/catalog/.last-run.json +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog — @abyss-project/commons-front-core
|
|
2
2
|
|
|
3
|
+
## 21.2.1
|
|
4
|
+
|
|
5
|
+
- `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).
|
|
6
|
+
|
|
7
|
+
## 21.2.0
|
|
8
|
+
|
|
9
|
+
- `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`.
|
|
10
|
+
|
|
3
11
|
## 21.0.1
|
|
4
12
|
|
|
5
13
|
- Dependencies: `@abyss-project/banking`, `@abyss-project/crypt`, `@abyss-project/form`, `@abyss-project/memories`, `@abyss-project/spotlight` and `@abyss-project/monitor` are dropped. The package imports none of them; they brought a second, older `@abyss-project/main` (1.12.0, through banking) and the server monitor SDK into every front's graph. An application that imports one of them declares it itself.
|
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
|
@@ -8668,7 +8668,7 @@ const Jce = (e) => {
|
|
|
8668
8668
|
};
|
|
8669
8669
|
a();
|
|
8670
8670
|
const o = typeof ResizeObserver > "u" ? null : new ResizeObserver(a);
|
|
8671
|
-
return o == null || o.observe(t
|
|
8671
|
+
return o == null || o.observe(t), window.addEventListener("resize", a), () => {
|
|
8672
8672
|
o == null || o.disconnect(), window.removeEventListener("resize", a);
|
|
8673
8673
|
};
|
|
8674
8674
|
}, [t, e]), Jce(r), n;
|
|
@@ -51654,6 +51654,7 @@ const YDe = (e, t) => [
|
|
|
51654
51654
|
token: e.token,
|
|
51655
51655
|
release: e.release || void 0,
|
|
51656
51656
|
instrumentedOrigins: i,
|
|
51657
|
+
propagateTraceContext: e.propagateTraceContext ?? !0,
|
|
51657
51658
|
routeResolver: eOe(e.routeTemplates),
|
|
51658
51659
|
...a ? { feedbackTicket: a } : {}
|
|
51659
51660
|
};
|
|
@@ -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`). */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ProjectLinkMode } from './project-link-mode';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/** The two literal keys, not the whole key union: a front whose own `@abyss-project/main` is older
|
|
3
|
+
* than the one commons pins must still accept them in its `formatRichMessage`. */
|
|
4
|
+
export type AbyssLinkWordingKey = 'project.link.none.label' | 'project.link.project.label';
|
|
5
|
+
export declare const getAbyssLinkWording: (link: ProjectLinkMode) => AbyssLinkWordingKey;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/commons-front-core",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.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.
|
|
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.
|
|
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",
|