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
  */
@@ -220,7 +220,10 @@ class Emitter {
220
220
  return this._event;
221
221
  }
222
222
  fire(e) {
223
- this._last = e;
223
+ var _a;
224
+ if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.replay) {
225
+ this._last = e;
226
+ }
224
227
  for (const listener of this._listeners) {
225
228
  listener.callback(e);
226
229
  }
@@ -8233,7 +8236,7 @@ class DockviewComponent extends BaseGrid {
8233
8236
  this.onDidPopoutGroupPositionChange = this._onDidPopoutGroupPositionChange.event;
8234
8237
  this._onDidLayoutFromJSON = new Emitter();
8235
8238
  this.onDidLayoutFromJSON = this._onDidLayoutFromJSON.event;
8236
- this._onDidActivePanelChange = new Emitter();
8239
+ this._onDidActivePanelChange = new Emitter({ replay: true });
8237
8240
  this.onDidActivePanelChange = this._onDidActivePanelChange.event;
8238
8241
  this._onDidMovePanel = new Emitter();
8239
8242
  this.onDidMovePanel = this._onDidMovePanel.event;