dockview-react 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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-react
3
- * @version 4.3.0
3
+ * @version 4.3.1
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -191,7 +191,10 @@
191
191
  return this._event;
192
192
  }
193
193
  fire(e) {
194
- this._last = e;
194
+ var _a;
195
+ if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.replay) {
196
+ this._last = e;
197
+ }
195
198
  for (const listener of this._listeners) {
196
199
  listener.callback(e);
197
200
  }
@@ -8204,7 +8207,7 @@
8204
8207
  this.onDidPopoutGroupPositionChange = this._onDidPopoutGroupPositionChange.event;
8205
8208
  this._onDidLayoutFromJSON = new Emitter();
8206
8209
  this.onDidLayoutFromJSON = this._onDidLayoutFromJSON.event;
8207
- this._onDidActivePanelChange = new Emitter();
8210
+ this._onDidActivePanelChange = new Emitter({ replay: true });
8208
8211
  this.onDidActivePanelChange = this._onDidActivePanelChange.event;
8209
8212
  this._onDidMovePanel = new Emitter();
8210
8213
  this.onDidMovePanel = this._onDidMovePanel.event;