@xh/hoist 73.0.0-SNAPSHOT.1738073819234 → 73.0.0-SNAPSHOT.1738098319236

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.
@@ -5,16 +5,9 @@
5
5
  * Copyright © 2025 Extremely Heavy Industries Inc.
6
6
  */
7
7
 
8
- import * as Col from '@xh/hoist/admin/columns/Rest';
9
- import * as AdminCol from '@xh/hoist/admin/columns';
10
- import {hframe} from '@xh/hoist/cmp/layout';
8
+ import {fragment} from '@xh/hoist/cmp/layout';
11
9
  import {creates, hoistCmp} from '@xh/hoist/core';
12
10
  import {button} from '@xh/hoist/desktop/cmp/button';
13
- import {
14
- jsonSearchPanel,
15
- type JsonSearchPanelProps
16
- } from '@xh/hoist/admin/jsonsearch/JsonSearchPanel';
17
- import {panel} from '@xh/hoist/desktop/cmp/panel';
18
11
  import {restGrid} from '@xh/hoist/desktop/cmp/rest';
19
12
  import {Icon} from '@xh/hoist/icon';
20
13
  import {differ} from '../../../differ/Differ';
@@ -24,50 +17,16 @@ export const jsonBlobPanel = hoistCmp.factory({
24
17
  model: creates(JsonBlobModel),
25
18
 
26
19
  render({model}) {
27
- return hframe(
28
- panel({
29
- item: restGrid({
30
- extraToolbarItems: () => {
31
- return button({
32
- icon: Icon.diff(),
33
- text: 'Compare w/ Remote',
34
- onClick: () => model.openDiffer()
35
- });
36
- }
37
- })
20
+ return fragment(
21
+ restGrid({
22
+ extraToolbarItems: () => {
23
+ return button({
24
+ icon: Icon.diff(),
25
+ text: 'Compare w/ Remote',
26
+ onClick: () => model.openDiffer()
27
+ });
28
+ }
38
29
  }),
39
- jsonSearchPanel({
40
- docSearchUrl: 'jsonSearch/searchBlobs',
41
- matchingNodesUrl: 'jsonSearch/getMatchingNodes',
42
- gridModelConfig: {
43
- sortBy: ['owner', 'name'],
44
- store: {
45
- idSpec: 'token'
46
- },
47
- columns: [
48
- {
49
- field: {name: 'token', type: 'string'},
50
- hidden: true,
51
- width: 100
52
- },
53
- {
54
- field: {name: 'type', type: 'string'},
55
- width: 200
56
- },
57
- {
58
- field: {name: 'owner', type: 'string'},
59
- width: 200
60
- },
61
- {...AdminCol.name},
62
- {
63
- field: {name: 'json', type: 'string'},
64
- hidden: true
65
- },
66
- {...Col.lastUpdated}
67
- ]
68
- },
69
- groupByOptions: ['owner', 'type', 'name']
70
- } as JsonSearchPanelProps),
71
30
  differ({omit: !model.differModel})
72
31
  );
73
32
  }
@@ -4,17 +4,10 @@
4
4
  *
5
5
  * Copyright © 2025 Extremely Heavy Industries Inc.
6
6
  */
7
- import * as Col from '@xh/hoist/admin/columns/Rest';
8
- import * as AdminCol from '@xh/hoist/admin/columns';
9
7
  import {prefEditorDialog} from '@xh/hoist/admin/tabs/userData/prefs/editor/PrefEditorDialog';
10
8
  import {UserPreferenceModel} from '@xh/hoist/admin/tabs/userData/prefs/UserPreferenceModel';
11
- import {hframe} from '@xh/hoist/cmp/layout';
12
9
  import {creates, hoistCmp} from '@xh/hoist/core';
13
10
  import {button} from '@xh/hoist/desktop/cmp/button';
14
- import {
15
- jsonSearchPanel,
16
- type JsonSearchPanelProps
17
- } from '@xh/hoist/admin/jsonsearch/JsonSearchPanel';
18
11
  import {panel} from '@xh/hoist/desktop/cmp/panel';
19
12
  import {restGrid} from '@xh/hoist/desktop/cmp/rest';
20
13
  import {Icon} from '@xh/hoist/icon';
@@ -23,43 +16,20 @@ export const userPreferencePanel = hoistCmp.factory({
23
16
  model: creates(UserPreferenceModel),
24
17
 
25
18
  render({model}) {
26
- return hframe(
27
- panel({
28
- items: [
29
- restGrid({
30
- extraToolbarItems: () => {
31
- return button({
32
- icon: Icon.gear(),
33
- text: 'Configure',
34
- onClick: () => (model.showEditorDialog = true)
35
- });
36
- }
37
- }),
38
- prefEditorDialog()
39
- ],
40
- mask: 'onLoad'
41
- }),
42
- jsonSearchPanel({
43
- docSearchUrl: 'jsonSearch/searchUserPreferences',
44
- matchingNodesUrl: 'jsonSearch/getMatchingNodes',
45
- gridModelConfig: {
46
- sortBy: ['name'],
47
- columns: [
48
- {
49
- field: {name: 'owner', type: 'string'},
50
- width: 200
51
- },
52
- {...AdminCol.groupName},
53
- {...AdminCol.name},
54
- {
55
- field: {name: 'json', type: 'string'},
56
- hidden: true
57
- },
58
- {...Col.lastUpdated}
59
- ]
60
- },
61
- groupByOptions: ['owner', 'groupName', 'name']
62
- } as JsonSearchPanelProps)
63
- );
19
+ return panel({
20
+ items: [
21
+ restGrid({
22
+ extraToolbarItems: () => {
23
+ return button({
24
+ icon: Icon.gear(),
25
+ text: 'Configure',
26
+ onClick: () => (model.showEditorDialog = true)
27
+ });
28
+ }
29
+ }),
30
+ prefEditorDialog()
31
+ ],
32
+ mask: 'onLoad'
33
+ });
64
34
  }
65
35
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1738073819234",
3
+ "version": "73.0.0-SNAPSHOT.1738098319236",
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",