@xh/hoist 68.0.0-SNAPSHOT.1725994463211 → 68.0.0-SNAPSHOT.1726062354143

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/CHANGELOG.md CHANGED
@@ -41,7 +41,6 @@
41
41
  * Fixed inline `SelectEditor` to ensure new value is flushed before grid editing stops.
42
42
  * `WebSocketService` now attempts to establish a new connection when app's server instance changes.
43
43
 
44
-
45
44
  ### ✨ Styles
46
45
 
47
46
  * Added CSS variables to support customization of `Badge` component styling.
@@ -49,7 +48,6 @@
49
48
  ### 📚 Libraries
50
49
 
51
50
  * short-unique-id `added @ 5.2`
52
- * hoist-core 21.0`
53
51
 
54
52
  ## 66.1.1 - 2024-08-01
55
53
 
@@ -191,17 +191,16 @@ export class AlertBannerModel extends HoistModel {
191
191
  async saveBannerSpecAsync(spec: AlertBannerSpec) {
192
192
  const {active, message, intent, iconName, enableClose, clientApps} = spec;
193
193
  try {
194
- await XH.fetchService
195
- .postJson({
196
- url: 'alertBannerAdmin/setAlertSpec',
197
- body: spec
198
- })
199
- .track({
194
+ await XH.fetchService.postJson({
195
+ url: 'alertBannerAdmin/setAlertSpec',
196
+ body: spec,
197
+ track: {
200
198
  category: 'Audit',
201
199
  message: 'Updated Alert Banner',
202
200
  data: {active, message, intent, iconName, enableClose, clientApps},
203
201
  logData: ['active']
204
- });
202
+ }
203
+ });
205
204
  } catch (e) {
206
205
  XH.handleException(e);
207
206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "68.0.0-SNAPSHOT.1725994463211",
3
+ "version": "68.0.0-SNAPSHOT.1726062354143",
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",
@@ -180,10 +180,11 @@ export class PrefService extends HoistService {
180
180
  params: {
181
181
  clientUsername: XH.getUsername(),
182
182
  updates: JSON.stringify(updates)
183
+ },
184
+ track: {
185
+ message: `Migrated ${updateCount} preferences`,
186
+ data: updates
183
187
  }
184
- }).track({
185
- message: `Migrated ${updateCount} preferences`,
186
- data: updates
187
188
  });
188
189
  XH.localStorageService.remove(key);
189
190
  }