@xh/hoist 82.0.2 → 82.0.3

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
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 82.0.3 - 2026-03-02
4
+
5
+ ### 🐞 Bug Fixes
6
+
7
+ * Fixed bug where `DashCanvasModel.state` returned stale data when persisted state was restored
8
+ during construction.
9
+ * Fixed bug preventing selection of favorites in the GroupingChooser
10
+
3
11
  ## 82.0.2 - 2026-03-02
4
12
 
5
13
  ### 🐞 Bug Fixes
@@ -24,6 +24,7 @@ export declare class GroupingChooserLocalModel extends HoistModel {
24
24
  getDimSelectOpts(dims?: string[]): SelectOption[];
25
25
  toggleEditor(): void;
26
26
  closeEditor(): void;
27
+ setPendingValue(value: string[]): void;
27
28
  addPendingDim(dimName: string): void;
28
29
  replacePendingDimAtIdx(dimName: string, idx: number): void;
29
30
  removePendingDimAtIdx(idx: number): void;
@@ -102,6 +102,12 @@ export class GroupingChooserLocalModel extends HoistModel {
102
102
  //-------------------------
103
103
  // Value handling
104
104
  //-------------------------
105
+
106
+ @action
107
+ setPendingValue(value: string[]) {
108
+ this.pendingValue = value;
109
+ }
110
+
105
111
  @action
106
112
  addPendingDim(dimName: string) {
107
113
  if (!dimName) return;
@@ -269,7 +269,8 @@ export class DashCanvasModel
269
269
 
270
270
  this.addReaction({
271
271
  track: () => this.viewState,
272
- run: () => (this.state = this.buildState())
272
+ run: () => (this.state = this.buildState()),
273
+ fireImmediately: true
273
274
  });
274
275
 
275
276
  // Used to make the height of RGL available to the gridBackground component
@@ -410,7 +410,10 @@ const favoriteMenuItem = hoistCmp.factory<GroupingChooserLocalModel>({
410
410
  return menuItem({
411
411
  text: label,
412
412
  className: 'xh-grouping-chooser__favorites__favorite',
413
- onClick: () => parentModel.setValue(value),
413
+ onClick: () => {
414
+ model.setPendingValue(value);
415
+ model.commitPendingValueAndClose();
416
+ },
414
417
  labelElement: button({
415
418
  icon: Icon.delete(),
416
419
  intent: 'danger',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "82.0.2",
3
+ "version": "82.0.3",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": {
6
6
  "type": "git",