@xh/hoist 79.0.0-SNAPSHOT.1766097863558 → 79.0.0-SNAPSHOT.1766098199305

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.
@@ -7,7 +7,7 @@
7
7
 
8
8
  import {grid} from '@xh/hoist/cmp/grid';
9
9
  import {fragment} from '@xh/hoist/cmp/layout';
10
- import {hoistCmp, HoistProps, PlainObject, uses} from '@xh/hoist/core';
10
+ import {hoistCmp, HoistProps, PlainObject, Some, uses} from '@xh/hoist/core';
11
11
  import {MaskProps} from '@xh/hoist/cmp/mask';
12
12
  import {panel, PanelProps} from '@xh/hoist/desktop/cmp/panel';
13
13
  import {toolbar} from '@xh/hoist/desktop/cmp/toolbar';
@@ -21,7 +21,8 @@ import {restGridToolbar} from './impl/RestGridToolbar';
21
21
  import {RestGridModel} from './RestGridModel';
22
22
 
23
23
  export interface RestGridProps
24
- extends HoistProps<RestGridModel>, Omit<PanelProps, 'model' | 'modelConfig' | 'modelRef'> {
24
+ extends HoistProps<RestGridModel>,
25
+ Omit<PanelProps, 'model' | 'modelConfig' | 'modelRef'> {
25
26
  /**
26
27
  * This constitutes an 'escape hatch' for applications that need to get to the underlying
27
28
  * AG Grid API. Use with care - settings made here might be overwritten and/or interfere with
@@ -33,7 +34,7 @@ export interface RestGridProps
33
34
  * Optional components rendered adjacent to the top toolbar's action buttons.
34
35
  * See also {@link tbar} to take full control of the toolbar.
35
36
  */
36
- extraToolbarItems?: ReactNode | (() => ReactNode);
37
+ extraToolbarItems?: Some<ReactNode> | (() => Some<ReactNode>);
37
38
 
38
39
  /** Classname to be passed to RestForm. */
39
40
  formClassName?: string;
@@ -50,7 +51,7 @@ export interface RestGridProps
50
51
  * configs `toolbarActions`, `filterFields`, and `showRefreshButton`. If specified as an array,
51
52
  * will be passed as children to a Toolbar component.
52
53
  */
53
- tbar?: ReactNode;
54
+ tbar?: Some<ReactNode>;
54
55
  }
55
56
 
56
57
  export const [RestGrid, restGrid] = hoistCmp.withFactory<RestGridProps>({
@@ -29,7 +29,7 @@ import {logWarn} from '@xh/hoist/utils/js';
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. */
32
- bbar?: ReactNode;
32
+ bbar?: Some<ReactNode>;
33
33
 
34
34
  /** CSS class name specific to the panel's header. */
35
35
  headerClassName?: string;
@@ -62,7 +62,7 @@ export interface PanelProps extends HoistProps, Omit<BoxProps, 'title'> {
62
62
  scrollable?: boolean;
63
63
 
64
64
  /** A toolbar to be docked at the top of the panel. */
65
- tbar?: ReactNode;
65
+ tbar?: Some<ReactNode>;
66
66
 
67
67
  /** Title text added to the panel's header. */
68
68
  title?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "79.0.0-SNAPSHOT.1766097863558",
3
+ "version": "79.0.0-SNAPSHOT.1766098199305",
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",
@@ -67,7 +67,7 @@
67
67
  "react-beautiful-dnd": "~13.1.0",
68
68
  "react-dates": "~21.8.0",
69
69
  "react-dropzone": "~10.2.2",
70
- "react-grid-layout": "2.1.0",
70
+ "react-grid-layout": "1.5.0",
71
71
  "react-markdown": "~10.1.0",
72
72
  "react-onsenui": "~1.13.2",
73
73
  "react-popper": "~2.3.0",
@@ -93,6 +93,7 @@
93
93
  "devDependencies": {
94
94
  "@types/react": "18.x",
95
95
  "@types/react-dom": "18.x",
96
+ "@types/react-grid-layout": "1.3.5",
96
97
  "@xh/hoist-dev-utils": "11.x",
97
98
  "ag-grid-community": "34.x",
98
99
  "ag-grid-react": "34.x",