@xh/hoist 73.0.0-SNAPSHOT.1747350649241 → 73.0.0-SNAPSHOT.1747361602459
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/appcontainer/AppContainerModel.ts +0 -5
- package/build/types/core/XH.d.ts +1 -6
- package/core/HoistAppModel.ts +7 -8
- package/core/XH.ts +1 -6
- package/desktop/appcontainer/VersionBar.scss +2 -1
- package/desktop/appcontainer/VersionBar.ts +5 -9
- package/mobile/appcontainer/VersionBar.ts +2 -2
- package/package.json +2 -2
- package/svc/ClientHealthService.ts +1 -5
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
import {Icon} from '@xh/hoist/icon';
|
|
19
19
|
import {action, bindable, makeObservable, when as mobxWhen} from '@xh/hoist/mobx';
|
|
20
20
|
import {never, wait} from '@xh/hoist/promise';
|
|
21
|
-
import numbro from 'numbro';
|
|
22
21
|
import {ReactNode} from 'react';
|
|
23
22
|
import {createRoot} from 'react-dom/client';
|
|
24
23
|
import {
|
|
@@ -238,10 +237,6 @@ export class AppContainerModel extends HoistModel {
|
|
|
238
237
|
await installServicesAsync(TrackService);
|
|
239
238
|
await installServicesAsync([EnvironmentService, PrefService, JsonBlobService]);
|
|
240
239
|
|
|
241
|
-
if (XH.flags.applyBigNumberWorkaround) {
|
|
242
|
-
numbro['BigNumber'].clone();
|
|
243
|
-
}
|
|
244
|
-
|
|
245
240
|
// Confirm hoist-core version after environment service loaded.
|
|
246
241
|
const hcVersion = XH.getEnv('hoistCoreVersion');
|
|
247
242
|
throwIf(
|
package/build/types/core/XH.d.ts
CHANGED
|
@@ -231,12 +231,7 @@ export declare class XHApi {
|
|
|
231
231
|
*
|
|
232
232
|
* Configure via `xhFlags` config.
|
|
233
233
|
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
* - applyBigNumberWorkaround - workaround for mysterious Chromium bug that causes
|
|
237
|
-
* BigNumber to lose precision after a certain number of invocations.
|
|
238
|
-
* See https://github.com/MikeMcl/bignumber.js/issues/354
|
|
239
|
-
* See https://bugs.chromium.org/p/v8/issues/detail?id=14271#c11
|
|
234
|
+
* No flags currently supported (subject to changes without API notice):
|
|
240
235
|
*/
|
|
241
236
|
get flags(): PlainObject;
|
|
242
237
|
/** Toggle the theme between light and dark variants. */
|
package/core/HoistAppModel.ts
CHANGED
|
@@ -66,21 +66,20 @@ export class HoistAppModel extends HoistModel {
|
|
|
66
66
|
*/
|
|
67
67
|
getAboutDialogItems(): AboutDialogItem[] {
|
|
68
68
|
const XH = window['XH'],
|
|
69
|
-
svc = XH.environmentService
|
|
70
|
-
|
|
69
|
+
svc = XH.environmentService,
|
|
70
|
+
clientVersionBuild = `${svc.get('clientVersion')} (build ${svc.get('clientBuild')})`,
|
|
71
|
+
serverVersionBuild = `${svc.get('appVersion')} (build ${svc.get('appBuild')})`;
|
|
71
72
|
return [
|
|
72
73
|
{label: 'App', value: `${svc.get('appName')} (${svc.get('appCode')})`},
|
|
73
74
|
{label: 'Current User', value: XH.identityService.username},
|
|
74
75
|
{label: 'Environment', value: svc.get('appEnvironment')},
|
|
75
|
-
{label: '
|
|
76
|
-
{label: '
|
|
77
|
-
{
|
|
78
|
-
label: 'Client',
|
|
79
|
-
value: `${svc.get('clientVersion')} (build ${svc.get('clientBuild')})`
|
|
80
|
-
},
|
|
76
|
+
{label: 'Server', value: serverVersionBuild},
|
|
77
|
+
{label: 'Client', value: clientVersionBuild},
|
|
81
78
|
{label: 'Hoist Core', value: svc.get('hoistCoreVersion')},
|
|
82
79
|
{label: 'Hoist React', value: svc.get('hoistReactVersion')},
|
|
83
80
|
{label: 'User Agent', value: window.navigator.userAgent},
|
|
81
|
+
{label: 'Tab/Load IDs', value: XH.tabId + ' / ' + XH.loadId},
|
|
82
|
+
{label: 'Server', value: svc.serverInstance},
|
|
84
83
|
{label: 'WebSockets', value: webSocketIndicator()}
|
|
85
84
|
];
|
|
86
85
|
}
|
package/core/XH.ts
CHANGED
|
@@ -458,12 +458,7 @@ export class XHApi {
|
|
|
458
458
|
*
|
|
459
459
|
* Configure via `xhFlags` config.
|
|
460
460
|
*
|
|
461
|
-
*
|
|
462
|
-
*
|
|
463
|
-
* - applyBigNumberWorkaround - workaround for mysterious Chromium bug that causes
|
|
464
|
-
* BigNumber to lose precision after a certain number of invocations.
|
|
465
|
-
* See https://github.com/MikeMcl/bignumber.js/issues/354
|
|
466
|
-
* See https://bugs.chromium.org/p/v8/issues/detail?id=14271#c11
|
|
461
|
+
* No flags currently supported (subject to changes without API notice):
|
|
467
462
|
*/
|
|
468
463
|
get flags(): PlainObject {
|
|
469
464
|
return XH.getConf('xhFlags', {});
|
|
@@ -19,24 +19,20 @@ export const versionBar = hoistCmp.factory({
|
|
|
19
19
|
envSvc = XH.environmentService,
|
|
20
20
|
env = envSvc.get('appEnvironment'),
|
|
21
21
|
version = envSvc.get('clientVersion'),
|
|
22
|
-
|
|
23
|
-
instance = envSvc.serverInstance,
|
|
24
|
-
isAdminApp = window.location.pathname?.startsWith('/admin/'),
|
|
25
|
-
versionAndBuild =
|
|
26
|
-
!build || build === 'UNKNOWN' ? version : `${version} (build ${build})`;
|
|
22
|
+
isAdminApp = window.location.pathname?.startsWith('/admin/');
|
|
27
23
|
|
|
28
24
|
return box({
|
|
29
25
|
className: `xh-version-bar xh-version-bar--${env.toLowerCase()}`,
|
|
30
26
|
items: [
|
|
31
|
-
[XH.appName, env,
|
|
27
|
+
[XH.appName, env, version].join(' • '),
|
|
32
28
|
span({
|
|
33
29
|
className: 'xh-version-bar__spacer',
|
|
34
30
|
items: '|'
|
|
35
31
|
}),
|
|
36
32
|
span({
|
|
37
|
-
className: 'xh-version-
|
|
38
|
-
title: '
|
|
39
|
-
|
|
33
|
+
className: 'xh-version-bar__tabid',
|
|
34
|
+
title: 'Tab ID',
|
|
35
|
+
item: XH.tabId
|
|
40
36
|
}),
|
|
41
37
|
span({
|
|
42
38
|
className: 'xh-version-bar__spacer',
|
|
@@ -20,7 +20,7 @@ export const versionBar = hoistCmp.factory({
|
|
|
20
20
|
const svc = XH.environmentService,
|
|
21
21
|
env = svc.get('appEnvironment'),
|
|
22
22
|
version = svc.get('clientVersion'),
|
|
23
|
-
|
|
23
|
+
tabId = XH.tabId
|
|
24
24
|
|
|
25
25
|
return box({
|
|
26
26
|
justifyContent: 'center',
|
|
@@ -28,7 +28,7 @@ export const versionBar = hoistCmp.factory({
|
|
|
28
28
|
flex: 'none',
|
|
29
29
|
className: `xh-version-bar xh-version-bar--${env.toLowerCase()}`,
|
|
30
30
|
items: [
|
|
31
|
-
[env, version,
|
|
31
|
+
[env, version, tabId].join(' • '),
|
|
32
32
|
button({
|
|
33
33
|
icon: Icon.info(),
|
|
34
34
|
minimal: true,
|
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.1747361602459",
|
|
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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@auth0/auth0-spa-js": "~2.1.3",
|
|
32
|
-
"@azure/msal-browser": "~4.
|
|
32
|
+
"@azure/msal-browser": "~4.12.0",
|
|
33
33
|
"@blueprintjs/core": "^5.10.5",
|
|
34
34
|
"@blueprintjs/datetime": "^5.3.7",
|
|
35
35
|
"@blueprintjs/datetime2": "^2.3.7",
|
|
@@ -141,11 +141,7 @@ export class ClientHealthService extends HoistService {
|
|
|
141
141
|
message: 'Submitted health report',
|
|
142
142
|
...rest,
|
|
143
143
|
...opts,
|
|
144
|
-
data:
|
|
145
|
-
loadId: XH.loadId,
|
|
146
|
-
tabId: XH.tabId,
|
|
147
|
-
...this.getReport()
|
|
148
|
-
}
|
|
144
|
+
data: this.getReport()
|
|
149
145
|
});
|
|
150
146
|
}
|
|
151
147
|
}
|