@xh/hoist 76.0.0-SNAPSHOT.1755652707785 → 76.0.0-SNAPSHOT.1755703025327

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.
@@ -110,7 +110,14 @@ const jsonSearchDialog = hoistCmp.factory<JsonSearchImplModel>({
110
110
  })
111
111
  ]
112
112
  })
113
- ]
113
+ ],
114
+ bbar: toolbar(
115
+ filler(),
116
+ button({
117
+ text: 'Close',
118
+ onClick: () => model.toggleSearchIsOpen()
119
+ })
120
+ )
114
121
  })
115
122
  })
116
123
  });
@@ -120,6 +127,7 @@ const jsonSearchDialog = hoistCmp.factory<JsonSearchImplModel>({
120
127
  const searchTbar = hoistCmp.factory<JsonSearchImplModel>({
121
128
  render({model}) {
122
129
  return toolbar(
130
+ helpButton({model}),
123
131
  pathField({model}),
124
132
  button({
125
133
  text: `Search ${model.subjectName}`,
@@ -129,8 +137,6 @@ const searchTbar = hoistCmp.factory<JsonSearchImplModel>({
129
137
  onClick: () => model.loadMatchingDocsAsync()
130
138
  }),
131
139
  '-',
132
- helpButton({model}),
133
- '-',
134
140
  span('Group by:'),
135
141
  select({
136
142
  bind: 'groupBy',
@@ -9,7 +9,7 @@ import {GridConfig, GridModel} from '@xh/hoist/cmp/grid';
9
9
  import {HoistModel, managed, TaskObserver, XH} from '@xh/hoist/core';
10
10
  import {action, bindable, makeObservable, observable} from '@xh/hoist/mobx';
11
11
  import {pluralize} from '@xh/hoist/utils/js';
12
- import {camelCase, isEmpty, zipWith} from 'lodash';
12
+ import {isEmpty, zipWith} from 'lodash';
13
13
 
14
14
  /**
15
15
  * @internal
@@ -77,8 +77,6 @@ export class JsonSearchImplModel extends HoistModel {
77
77
  selModel: 'single'
78
78
  });
79
79
 
80
- this.markPersist('path', {localStorageKey: `xhJsonSearch${camelCase(this.subjectName)}`});
81
-
82
80
  this.addReaction(
83
81
  {
84
82
  track: () => this.path,
@@ -95,9 +93,6 @@ export class JsonSearchImplModel extends HoistModel {
95
93
  debounce: 300
96
94
  }
97
95
  );
98
-
99
- // We might have a persisted path - go ahead and load if so.
100
- this.loadMatchingDocsAsync();
101
96
  }
102
97
 
103
98
  async loadMatchingDocsAsync() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "76.0.0-SNAPSHOT.1755652707785",
3
+ "version": "76.0.0-SNAPSHOT.1755703025327",
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",