dockview-core 1.7.2 → 1.7.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-core
3
- * @version 1.7.2
3
+ * @version 1.7.3
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -4627,7 +4627,6 @@
4627
4627
  this.id = id;
4628
4628
  this.containerApi = containerApi;
4629
4629
  this.view = view;
4630
- this._title = '';
4631
4630
  this._group = group;
4632
4631
  this.api = new DockviewPanelApiImpl(this, this._group);
4633
4632
  this.addDisposables(this.api.onActiveChange(() => {
@@ -4640,8 +4639,8 @@
4640
4639
  }
4641
4640
  init(params) {
4642
4641
  this._params = params.params;
4643
- this.setTitle(params.title);
4644
4642
  this.view.init(Object.assign(Object.assign({}, params), { api: this.api, containerApi: this.containerApi }));
4643
+ this.setTitle(params.title);
4645
4644
  }
4646
4645
  focus() {
4647
4646
  this.api._onFocusEvent.fire();
@@ -4658,11 +4657,10 @@
4658
4657
  };
4659
4658
  }
4660
4659
  setTitle(title) {
4661
- var _a, _b;
4662
- const didTitleChange = title !== ((_a = this._params) === null || _a === void 0 ? void 0 : _a.title);
4660
+ const didTitleChange = title !== this.title;
4663
4661
  if (didTitleChange) {
4664
4662
  this._title = title;
4665
- (_b = this.view) === null || _b === void 0 ? void 0 : _b.update({
4663
+ this.view.update({
4666
4664
  params: {
4667
4665
  params: this._params,
4668
4666
  title: this.title,
@@ -4672,14 +4670,13 @@
4672
4670
  }
4673
4671
  }
4674
4672
  update(event) {
4675
- var _a;
4676
4673
  const params = event.params;
4677
4674
  this._params = Object.assign(Object.assign({}, (this._params || {})), event.params.params);
4678
4675
  if (params.title !== this.title) {
4679
4676
  this._title = params.title;
4680
- this.api._onDidTitleChange.fire({ title: this.title });
4677
+ this.api._onDidTitleChange.fire({ title: params.title });
4681
4678
  }
4682
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.update({
4679
+ this.view.update({
4683
4680
  params: {
4684
4681
  params: this._params,
4685
4682
  title: this.title,