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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-core
3
- * @version 4.3.0
3
+ * @version 4.3.1
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -215,7 +215,10 @@ class Emitter {
215
215
  return this._event;
216
216
  }
217
217
  fire(e) {
218
- this._last = e;
218
+ var _a;
219
+ if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.replay) {
220
+ this._last = e;
221
+ }
219
222
  for (const listener of this._listeners) {
220
223
  listener.callback(e);
221
224
  }
@@ -8251,7 +8254,7 @@ class DockviewComponent extends BaseGrid {
8251
8254
  this.onDidPopoutGroupPositionChange = this._onDidPopoutGroupPositionChange.event;
8252
8255
  this._onDidLayoutFromJSON = new Emitter();
8253
8256
  this.onDidLayoutFromJSON = this._onDidLayoutFromJSON.event;
8254
- this._onDidActivePanelChange = new Emitter();
8257
+ this._onDidActivePanelChange = new Emitter({ replay: true });
8255
8258
  this.onDidActivePanelChange = this._onDidActivePanelChange.event;
8256
8259
  this._onDidMovePanel = new Emitter();
8257
8260
  this.onDidMovePanel = this._onDidMovePanel.event;