@xh/hoist 73.0.0-SNAPSHOT.1744386127895 → 73.0.0-SNAPSHOT.1744391471093
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.
|
@@ -92,14 +92,14 @@ export class AppStateModel extends HoistModel {
|
|
|
92
92
|
timestamp: loadStarted,
|
|
93
93
|
elapsed: Date.now() - loadStarted - (timings.LOGIN_REQUIRED ?? 0),
|
|
94
94
|
data: {
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
loadId: XH.loadId,
|
|
96
|
+
tabId: XH.tabId,
|
|
97
97
|
timings: mapKeys(timings, (v, k) => camelCase(k)),
|
|
98
98
|
clientHealth: XH.clientHealthService.getReport(),
|
|
99
99
|
window: this.getWindowData(),
|
|
100
100
|
screen: this.getScreenData()
|
|
101
101
|
},
|
|
102
|
-
logData: ['
|
|
102
|
+
logData: ['loadId', 'tabId'],
|
|
103
103
|
omit: !XH.appSpec.trackAppLoad
|
|
104
104
|
})
|
|
105
105
|
});
|
package/build/types/core/XH.d.ts
CHANGED
|
@@ -22,12 +22,12 @@ export declare const MIN_HOIST_CORE_VERSION = "28.0";
|
|
|
22
22
|
*/
|
|
23
23
|
export declare class XHApi {
|
|
24
24
|
/** Unique id for this loaded instance of the app. Unique for every refresh of document. */
|
|
25
|
-
|
|
25
|
+
loadId: string;
|
|
26
26
|
/**
|
|
27
27
|
* Unique id for this browser tab/window on this domain.
|
|
28
28
|
* Corresponds to the scope of the built-in sessionStorage object.
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
tabId: string;
|
|
31
31
|
/** Core implementation model hosting all application state. */
|
|
32
32
|
appContainerModel: AppContainerModel;
|
|
33
33
|
/** Provider of centralized exception handling for the app. */
|
|
@@ -412,8 +412,8 @@ export declare class XHApi {
|
|
|
412
412
|
*/
|
|
413
413
|
genId(): string;
|
|
414
414
|
private get acm();
|
|
415
|
-
private
|
|
416
|
-
private
|
|
415
|
+
private genLoadId;
|
|
416
|
+
private genTabId;
|
|
417
417
|
}
|
|
418
418
|
/** The app-wide singleton instance. */
|
|
419
419
|
export declare const XH: XHApi;
|
package/core/XH.ts
CHANGED
|
@@ -87,13 +87,13 @@ declare const xhIsDevelopmentMode: boolean;
|
|
|
87
87
|
*/
|
|
88
88
|
export class XHApi {
|
|
89
89
|
/** Unique id for this loaded instance of the app. Unique for every refresh of document. */
|
|
90
|
-
|
|
90
|
+
loadId: string = this.genLoadId();
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Unique id for this browser tab/window on this domain.
|
|
94
94
|
* Corresponds to the scope of the built-in sessionStorage object.
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
tabId: string = this.genTabId();
|
|
97
97
|
|
|
98
98
|
//--------------------------
|
|
99
99
|
// Implementation Delegates
|
|
@@ -807,15 +807,15 @@ export class XHApi {
|
|
|
807
807
|
return this.appContainerModel;
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
private
|
|
810
|
+
private genLoadId(): string {
|
|
811
811
|
return new ShortUniqueId({length: 8}).rnd();
|
|
812
812
|
}
|
|
813
813
|
|
|
814
|
-
private
|
|
815
|
-
let ret = window.sessionStorage?.getItem('
|
|
814
|
+
private genTabId(): string {
|
|
815
|
+
let ret = window.sessionStorage?.getItem('xhTabId');
|
|
816
816
|
if (!ret) {
|
|
817
817
|
ret = new ShortUniqueId({length: 8}).rnd();
|
|
818
|
-
window.sessionStorage?.setItem('
|
|
818
|
+
window.sessionStorage?.setItem('xhTabId', ret);
|
|
819
819
|
}
|
|
820
820
|
return ret;
|
|
821
821
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "73.0.0-SNAPSHOT.
|
|
3
|
+
"version": "73.0.0-SNAPSHOT.1744391471093",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|