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
  */
@@ -187,7 +187,10 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
187
187
  return this._event;
188
188
  }
189
189
  fire(e) {
190
- this._last = e;
190
+ var _a;
191
+ if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.replay) {
192
+ this._last = e;
193
+ }
191
194
  for (const listener of this._listeners) {
192
195
  listener.callback(e);
193
196
  }
@@ -8200,7 +8203,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
8200
8203
  this.onDidPopoutGroupPositionChange = this._onDidPopoutGroupPositionChange.event;
8201
8204
  this._onDidLayoutFromJSON = new Emitter();
8202
8205
  this.onDidLayoutFromJSON = this._onDidLayoutFromJSON.event;
8203
- this._onDidActivePanelChange = new Emitter();
8206
+ this._onDidActivePanelChange = new Emitter({ replay: true });
8204
8207
  this.onDidActivePanelChange = this._onDidActivePanelChange.event;
8205
8208
  this._onDidMovePanel = new Emitter();
8206
8209
  this.onDidMovePanel = this._onDidMovePanel.event;