@xh/hoist 76.0.0-SNAPSHOT.1758211176948 → 76.0.0-SNAPSHOT.1758215282397

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/admin/tabs/userData/roles/graph/RoleGraph.ts +2 -1
  3. package/appcontainer/AppContainerModel.ts +2 -1
  4. package/build/types/core/XH.d.ts +13 -0
  5. package/build/types/core/types/Types.d.ts +10 -0
  6. package/build/types/utils/js/LangUtils.d.ts +2 -3
  7. package/build/types/utils/js/index.d.ts +0 -2
  8. package/build/types/utils/{js → log}/LogUtils.d.ts +28 -11
  9. package/build/types/utils/log/index.d.ts +1 -0
  10. package/build/types/utils/version/index.d.ts +1 -0
  11. package/cmp/ag-grid/AgGrid.ts +1 -1
  12. package/cmp/chart/Chart.ts +2 -1
  13. package/cmp/chart/impl/ChartContextMenuItems.ts +1 -1
  14. package/cmp/grid/columns/Column.ts +2 -1
  15. package/cmp/grid/helpers/GridCountLabel.ts +2 -1
  16. package/cmp/grid/impl/ColumnWidthCalculator.ts +2 -1
  17. package/cmp/grid/impl/Utils.ts +2 -1
  18. package/cmp/relativetimestamp/RelativeTimestamp.ts +2 -1
  19. package/cmp/treemap/TreeMap.ts +2 -1
  20. package/core/HoistBase.ts +2 -3
  21. package/core/HoistBaseDecorators.ts +2 -1
  22. package/core/HoistComponent.ts +9 -6
  23. package/core/XH.ts +20 -0
  24. package/core/exception/ExceptionHandler.ts +3 -2
  25. package/core/load/LoadSupport.ts +3 -2
  26. package/core/persist/PersistenceProvider.ts +2 -1
  27. package/core/types/Types.ts +6 -0
  28. package/data/filter/Utils.ts +2 -1
  29. package/data/impl/RecordSet.ts +2 -1
  30. package/desktop/cmp/button/grid/ColAutosizeButton.ts +2 -1
  31. package/desktop/cmp/button/grid/ColChooserButton.ts +2 -1
  32. package/desktop/cmp/button/grid/ExpandToLevelButton.ts +2 -1
  33. package/desktop/cmp/button/grid/ExportButton.ts +2 -1
  34. package/desktop/cmp/button/panel/ModalToggleButton.ts +2 -1
  35. package/desktop/cmp/button/zoneGrid/ZoneMapperButton.ts +2 -1
  36. package/desktop/cmp/dash/container/impl/DashContainerUtils.ts +4 -3
  37. package/desktop/cmp/form/FormField.ts +2 -1
  38. package/desktop/cmp/grid/editors/BooleanEditor.ts +1 -1
  39. package/desktop/cmp/panel/Panel.ts +1 -1
  40. package/desktop/hooks/UseContextMenu.ts +1 -1
  41. package/inspector/instances/InstancesModel.ts +2 -2
  42. package/kit/ag-grid/index.ts +3 -2
  43. package/kit/highcharts/index.ts +3 -2
  44. package/mobile/cmp/button/grid/ColAutosizeButton.ts +2 -1
  45. package/mobile/cmp/button/grid/ColChooserButton.ts +2 -1
  46. package/mobile/cmp/button/grid/ExpandCollapseButton.ts +2 -1
  47. package/mobile/cmp/button/grid/ExpandToLevelButton.ts +2 -1
  48. package/mobile/cmp/button/zoneGrid/ZoneMapperButton.ts +2 -1
  49. package/mobile/cmp/panel/Panel.ts +1 -1
  50. package/mobx/overrides.ts +1 -1
  51. package/package.json +1 -1
  52. package/security/BaseOAuthClient.ts +2 -1
  53. package/security/msal/MsalClient.ts +2 -1
  54. package/svc/ChangelogService.ts +1 -1
  55. package/svc/EnvironmentService.ts +2 -1
  56. package/svc/FetchService.ts +1 -1
  57. package/tsconfig.tsbuildinfo +1 -1
  58. package/utils/async/Timer.ts +2 -1
  59. package/utils/js/Decorators.ts +1 -1
  60. package/utils/js/LangUtils.ts +3 -4
  61. package/utils/js/index.ts +0 -2
  62. package/utils/{js → log}/LogUtils.ts +85 -16
  63. package/utils/log/index.ts +8 -0
  64. package/utils/version/index.ts +8 -0
  65. /package/build/types/utils/{js → version}/VersionUtils.d.ts +0 -0
  66. /package/utils/{js → version}/VersionUtils.ts +0 -0
@@ -5,7 +5,8 @@
5
5
  * Copyright © 2025 Extremely Heavy Industries Inc.
6
6
  */
7
7
 
8
- import {checkVersion} from '@xh/hoist/utils/js/VersionUtils';
8
+ import {logError} from '@xh/hoist/utils/log';
9
+ import {checkVersion} from '@xh/hoist/utils/version';
9
10
 
10
11
  /**
11
12
  * The exports below are ag-Grid components provided at runtime by applications.
@@ -57,7 +58,7 @@ const MAX_VERSION = '31.*.*';
57
58
  */
58
59
  export function installAgGrid(ComponentReactWrapper, version: string) {
59
60
  if (!checkVersion(version, MIN_VERSION, MAX_VERSION)) {
60
- console.error(
61
+ logError(
61
62
  `This version of Hoist requires an ag-Grid version between ${MIN_VERSION} and ` +
62
63
  `${MAX_VERSION}. Version ${version} detected. ag-Grid will be unavailable.`
63
64
  );
@@ -5,7 +5,8 @@
5
5
  * Copyright © 2025 Extremely Heavy Industries Inc.
6
6
  */
7
7
 
8
- import {checkVersion} from '@xh/hoist/utils/js/VersionUtils';
8
+ import {logError} from '@xh/hoist/utils/log';
9
+ import {checkVersion} from '@xh/hoist/utils/version';
9
10
 
10
11
  export let Highcharts = null;
11
12
 
@@ -19,7 +20,7 @@ const MAX_VERSION = '11.*.*';
19
20
  export function installHighcharts(HighchartsImpl) {
20
21
  const {version} = HighchartsImpl;
21
22
  if (!checkVersion(version, MIN_VERSION, MAX_VERSION)) {
22
- console.error(
23
+ logError(
23
24
  `This version of Hoist requires a Highcharts version between ${MIN_VERSION} and ` +
24
25
  `${MAX_VERSION}. Version ${version} detected. Highcharts will be unavailable.`
25
26
  );
@@ -10,7 +10,8 @@ import {hoistCmp, useContextModel} from '@xh/hoist/core';
10
10
  import {Icon} from '@xh/hoist/icon';
11
11
  import {button, ButtonProps} from '@xh/hoist/mobile/cmp/button';
12
12
  import '@xh/hoist/mobile/register';
13
- import {logError, withDefault} from '@xh/hoist/utils/js';
13
+ import {logError} from '@xh/hoist/utils/log';
14
+ import {withDefault} from '@xh/hoist/utils/js';
14
15
 
15
16
  export interface ColAutosizeButtonProps extends ButtonProps {
16
17
  /** GridModel to which this button should bind. Will find nearest in context if not provided. */
@@ -9,7 +9,8 @@ import {hoistCmp, useContextModel} from '@xh/hoist/core';
9
9
  import {Icon} from '@xh/hoist/icon';
10
10
  import {button, ButtonProps} from '@xh/hoist/mobile/cmp/button';
11
11
  import '@xh/hoist/mobile/register';
12
- import {logError, withDefault} from '@xh/hoist/utils/js';
12
+ import {logError} from '@xh/hoist/utils/log';
13
+ import {withDefault} from '@xh/hoist/utils/js';
13
14
 
14
15
  export interface ColChooserButtonProps extends ButtonProps {
15
16
  /** GridModel to which this button should bind. Will find nearest in context if not provided. */
@@ -9,7 +9,8 @@ import {hoistCmp, useContextModel} from '@xh/hoist/core';
9
9
  import {Icon} from '@xh/hoist/icon';
10
10
  import {button, ButtonProps} from '@xh/hoist/mobile/cmp/button';
11
11
  import '@xh/hoist/mobile/register';
12
- import {logError, withDefault} from '@xh/hoist/utils/js';
12
+ import {logError} from '@xh/hoist/utils/log';
13
+ import {withDefault} from '@xh/hoist/utils/js';
13
14
  import {isEmpty} from 'lodash';
14
15
 
15
16
  export interface ExpandCollapseButtonProps extends ButtonProps {
@@ -8,7 +8,8 @@ import {GridModel} from '@xh/hoist/cmp/grid';
8
8
  import {hoistCmp, MenuItemLike, useContextModel} from '@xh/hoist/core';
9
9
  import {Icon} from '@xh/hoist/icon';
10
10
  import '@xh/hoist/mobile/register';
11
- import {logError, withDefault} from '@xh/hoist/utils/js';
11
+ import {logError} from '@xh/hoist/utils/log';
12
+ import {withDefault} from '@xh/hoist/utils/js';
12
13
  import {menuButton, MenuButtonProps} from '../../menu';
13
14
 
14
15
  export interface ExpandToLevelButtonProps extends MenuButtonProps {
@@ -7,7 +7,8 @@
7
7
  import {hoistCmp, useContextModel} from '@xh/hoist/core';
8
8
  import {Icon} from '@xh/hoist/icon';
9
9
  import {button, ButtonProps} from '@xh/hoist/mobile/cmp/button';
10
- import {logError, withDefault} from '@xh/hoist/utils/js';
10
+ import {withDefault} from '@xh/hoist/utils/js';
11
+ import {logError} from '@xh/hoist/utils/log';
11
12
  import {ZoneGridModel} from '@xh/hoist/cmp/zoneGrid';
12
13
  import '@xh/hoist/mobile/register';
13
14
 
@@ -25,7 +25,7 @@ import {omitBy} from 'lodash';
25
25
  import {isValidElement, ReactNode, ReactElement} from 'react';
26
26
  import {panelHeader} from './impl/PanelHeader';
27
27
  import './Panel.scss';
28
- import {logWarn} from '@xh/hoist/utils/js';
28
+ import {logWarn} from '@xh/hoist/utils/log';
29
29
 
30
30
  export interface PanelProps extends HoistProps, Omit<BoxProps, 'title'> {
31
31
  /** A toolbar to be docked at the bottom of the panel. */
package/mobx/overrides.ts CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  observable,
14
14
  runInAction
15
15
  } from 'mobx';
16
- import {logError} from '@xh/hoist/utils/js';
16
+ import {logError} from '@xh/hoist/utils/log/LogUtils';
17
17
 
18
18
  /**
19
19
  * An enhanced version of the native mobx makeObservable.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "76.0.0-SNAPSHOT.1758211176948",
3
+ "version": "76.0.0-SNAPSHOT.1758215282397",
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",
@@ -13,7 +13,8 @@ import {Token} from '@xh/hoist/security/Token';
13
13
  import {AccessTokenSpec, TokenMap} from './Types';
14
14
  import {Timer} from '@xh/hoist/utils/async';
15
15
  import {MINUTES, olderThan, ONE_MINUTE, SECONDS} from '@xh/hoist/utils/datetime';
16
- import {isJSON, logError, throwIf} from '@xh/hoist/utils/js';
16
+ import {logError} from '@xh/hoist/utils/log';
17
+ import {isJSON, throwIf} from '@xh/hoist/utils/js';
17
18
  import {compact, find, forEach, head, isEmpty, isObject, keys, map, pickBy, union} from 'lodash';
18
19
  import ShortUniqueId from 'short-unique-id';
19
20
 
@@ -17,7 +17,8 @@ import {
17
17
  } from '@azure/msal-browser';
18
18
  import {AppState, PlainObject, XH} from '@xh/hoist/core';
19
19
  import {Token} from '@xh/hoist/security/Token';
20
- import {logDebug, logError, logInfo, logWarn, mergeDeep, throwIf} from '@xh/hoist/utils/js';
20
+ import {mergeDeep, throwIf} from '@xh/hoist/utils/js';
21
+ import {logDebug, logError, logInfo, logWarn} from '@xh/hoist/utils/log';
21
22
  import {withFormattedTimestamps} from '@xh/hoist/format';
22
23
  import {flatMap, union, uniq} from 'lodash';
23
24
  import {BaseOAuthClient, BaseOAuthClientConfig} from '../BaseOAuthClient';
@@ -8,7 +8,7 @@ import {HoistService, XH} from '@xh/hoist/core';
8
8
  // @ts-ignore
9
9
  import jsonFromMarkdown from '@xh/app-changelog.json';
10
10
  import {action, makeObservable, observable} from '@xh/hoist/mobx';
11
- import {checkMinVersion} from '@xh/hoist/utils/js';
11
+ import {checkMinVersion} from '@xh/hoist/utils/version';
12
12
  import {isEmpty, forOwn, includes} from 'lodash';
13
13
 
14
14
  /**
@@ -11,7 +11,8 @@ import {action, makeObservable, observable} from '@xh/hoist/mobx';
11
11
  import hoistPkg from '@xh/hoist/package.json';
12
12
  import {Timer} from '@xh/hoist/utils/async';
13
13
  import {MINUTES, SECONDS} from '@xh/hoist/utils/datetime';
14
- import {checkMaxVersion, checkMinVersion, deepFreeze} from '@xh/hoist/utils/js';
14
+ import {checkMaxVersion, checkMinVersion} from '@xh/hoist/utils/version';
15
+ import {deepFreeze} from '@xh/hoist/utils/js';
15
16
  import {defaults, isFinite} from 'lodash';
16
17
  import mobxPkg from 'mobx/package.json';
17
18
  import {version as reactVersion} from 'react';
@@ -261,7 +261,7 @@ export class FetchService extends HoistService {
261
261
  const {correlationIdHeaderKey} = this;
262
262
  if (opts.correlationId) {
263
263
  if (headers[correlationIdHeaderKey]) {
264
- console.warn(
264
+ this.logWarn(
265
265
  `Header ${correlationIdHeaderKey} value already set within FetchOptions.`
266
266
  );
267
267
  } else {