@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
- clientId: XH.clientId,
96
- sessionId: XH.sessionId,
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: ['clientId', 'sessionId'],
102
+ logData: ['loadId', 'tabId'],
103
103
  omit: !XH.appSpec.trackAppLoad
104
104
  })
105
105
  });
@@ -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
- clientId: string;
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
- sessionId: string;
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 genClientId;
416
- private genSessionId;
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
- clientId: string = this.genClientId();
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
- sessionId: string = this.genSessionId();
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 genClientId(): string {
810
+ private genLoadId(): string {
811
811
  return new ShortUniqueId({length: 8}).rnd();
812
812
  }
813
813
 
814
- private genSessionId(): string {
815
- let ret = window.sessionStorage?.getItem('xhSessionId');
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('xhSessionId', ret);
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.1744386127895",
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",
@@ -142,8 +142,8 @@ export class ClientHealthService extends HoistService {
142
142
  ...rest,
143
143
  ...opts,
144
144
  data: {
145
- clientId: XH.clientId,
146
- sessionId: XH.sessionId,
145
+ loadId: XH.loadId,
146
+ tabId: XH.tabId,
147
147
  ...this.getReport()
148
148
  }
149
149
  });