@xh/hoist 77.0.0-SNAPSHOT.1759338550975 → 77.0.0-SNAPSHOT.1759338956409

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
@@ -2,13 +2,6 @@
2
2
 
3
3
  ## 77.0.0-SNAPSHOT - unreleased
4
4
 
5
- ### 🎁 New Features
6
-
7
- * `DashCanvasView` and `DashContainerView` components now have a public `@bindable` `titleDetails`
8
- property on their models to support displaying additional information in the title bar of these
9
- components. `titleDetails` is not persisted, and is expected to be set programmatically by the
10
- application as needed.
11
-
12
5
  ## 76.0.0 - 2025-09-26
13
6
 
14
7
  ### 💥 Breaking Changes (upgrade difficulty: 🟠 MEDIUM - AG Grid update, Hoist React upgrade)
@@ -25,12 +25,6 @@ export declare class DashViewModel<T extends DashViewSpec = DashViewSpec> extend
25
25
  containerModel: any;
26
26
  /** Title with which to initialize the view. */
27
27
  title: string;
28
- /**
29
- * Additional info that will be displayed after the title.
30
- * Applications can bind to this property to provide dynamic title details.
31
- * Value is not persisted.
32
- **/
33
- titleDetails: string;
34
28
  /** Icon with which to initialize the view. */
35
29
  icon: ReactElement;
36
30
  /** State with which to initialize the view. */
@@ -47,13 +47,6 @@ export class DashViewModel<T extends DashViewSpec = DashViewSpec> extends HoistM
47
47
  /** Title with which to initialize the view. */
48
48
  @bindable title: string;
49
49
 
50
- /**
51
- * Additional info that will be displayed after the title.
52
- * Applications can bind to this property to provide dynamic title details.
53
- * Value is not persisted.
54
- **/
55
- @bindable titleDetails: string;
56
-
57
50
  /** Icon with which to initialize the view. */
58
51
  @bindable.ref icon: ReactElement;
59
52
 
@@ -34,14 +34,13 @@ export const dashCanvasView = hoistCmp.factory({
34
34
  model: uses(DashCanvasViewModel, {publishMode: 'limited'}),
35
35
 
36
36
  render({model, className}) {
37
- const {viewSpec, ref, hidePanelHeader, headerItems, autoHeight, titleDetails, title, icon} =
38
- model,
37
+ const {viewSpec, ref, hidePanelHeader, headerItems, autoHeight} = model,
39
38
  headerProps = hidePanelHeader
40
39
  ? {}
41
40
  : {
42
41
  compactHeader: true,
43
- title: title + (titleDetails ? ' ' + titleDetails : ''),
44
- icon,
42
+ title: model.title,
43
+ icon: model.icon,
45
44
  headerItems: [...headerItems, headerMenu({model})]
46
45
  };
47
46
  return panel({
@@ -338,7 +338,7 @@ export class DashContainerModel
338
338
  renameView(id: string) {
339
339
  const view = this.getItemByViewModel(id);
340
340
  if (!view) return;
341
- this.showTitleForm(view.tab.element, this.getViewModel(id));
341
+ this.showTitleForm(view.tab.element);
342
342
  }
343
343
 
344
344
  onResize() {
@@ -558,18 +558,8 @@ export class DashContainerModel
558
558
 
559
559
  if (viewSpec.allowRename) {
560
560
  this.insertTitleForm($el, viewModel);
561
- $titleEl.off('dblclick').dblclick(() => this.showTitleForm($el, viewModel));
561
+ $titleEl.off('dblclick').dblclick(() => this.showTitleForm($el));
562
562
  }
563
-
564
- viewModel.addReaction({
565
- track: () => viewModel.titleDetails,
566
- run: () => {
567
- const currentTitle = $titleEl.text(),
568
- {title, titleDetails} = viewModel,
569
- newTitle = title + (titleDetails ? ' ' + titleDetails : '');
570
- if (currentTitle !== newTitle) $titleEl.text(newTitle);
571
- }
572
- });
573
563
  });
574
564
  }
575
565
 
@@ -598,11 +588,12 @@ export class DashContainerModel
598
588
  });
599
589
  }
600
590
 
601
- private showTitleForm($tabEl, viewModel: DashViewModel) {
591
+ private showTitleForm($tabEl) {
602
592
  if (this.renameLocked) return;
603
593
 
604
- const $inputEl = $tabEl.find('.title-form input').first(),
605
- currentTitle = viewModel.title;
594
+ const $titleEl = $tabEl.find('.lm_title').first(),
595
+ $inputEl = $tabEl.find('.title-form input').first(),
596
+ currentTitle = $titleEl.text();
606
597
 
607
598
  $tabEl.addClass('show-title-form');
608
599
  $inputEl.val(currentTitle);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "77.0.0-SNAPSHOT.1759338550975",
3
+ "version": "77.0.0-SNAPSHOT.1759338956409",
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",