dockview-core 4.3.0 → 4.3.1

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.
@@ -111,7 +111,7 @@ export class DockviewComponent extends BaseGrid {
111
111
  this.onDidPopoutGroupPositionChange = this._onDidPopoutGroupPositionChange.event;
112
112
  this._onDidLayoutFromJSON = new Emitter();
113
113
  this.onDidLayoutFromJSON = this._onDidLayoutFromJSON.event;
114
- this._onDidActivePanelChange = new Emitter();
114
+ this._onDidActivePanelChange = new Emitter({ replay: true });
115
115
  this.onDidActivePanelChange = this._onDidActivePanelChange.event;
116
116
  this._onDidMovePanel = new Emitter();
117
117
  this.onDidMovePanel = this._onDidMovePanel.event;
@@ -117,7 +117,10 @@ export class Emitter {
117
117
  return this._event;
118
118
  }
119
119
  fire(e) {
120
- this._last = e;
120
+ var _a;
121
+ if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.replay) {
122
+ this._last = e;
123
+ }
121
124
  for (const listener of this._listeners) {
122
125
  listener.callback(e);
123
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dockview-core",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "Zero dependency layout manager supporting tabs, grids and splitviews",
5
5
  "keywords": [
6
6
  "splitview",