dockview 4.9.0 → 4.10.0
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.
- package/dist/cjs/dockview/defaultTab.js +4 -0
- package/dist/dockview.amd.js +6 -2
- package/dist/dockview.amd.js.map +1 -1
- package/dist/dockview.amd.min.js +2 -2
- package/dist/dockview.amd.min.js.map +1 -1
- package/dist/dockview.amd.min.noStyle.js +2 -2
- package/dist/dockview.amd.min.noStyle.js.map +1 -1
- package/dist/dockview.amd.noStyle.js +6 -2
- package/dist/dockview.amd.noStyle.js.map +1 -1
- package/dist/dockview.cjs.js +6 -2
- package/dist/dockview.cjs.js.map +1 -1
- package/dist/dockview.esm.js +6 -2
- package/dist/dockview.esm.js.map +1 -1
- package/dist/dockview.esm.min.js +2 -2
- package/dist/dockview.esm.min.js.map +1 -1
- package/dist/dockview.js +6 -2
- package/dist/dockview.js.map +1 -1
- package/dist/dockview.min.js +2 -2
- package/dist/dockview.min.js.map +1 -1
- package/dist/dockview.min.noStyle.js +2 -2
- package/dist/dockview.min.noStyle.js.map +1 -1
- package/dist/dockview.noStyle.js +6 -2
- package/dist/dockview.noStyle.js.map +1 -1
- package/dist/esm/dockview/defaultTab.js +4 -0
- package/package.json +2 -2
|
@@ -50,6 +50,10 @@ function useTitle(api) {
|
|
|
50
50
|
var disposable = api.onDidTitleChange(function (event) {
|
|
51
51
|
setTitle(event.title);
|
|
52
52
|
});
|
|
53
|
+
// Depending on the order in which React effects are run, the title may already be out of sync (cf. issue #1003).
|
|
54
|
+
if (title !== api.title) {
|
|
55
|
+
setTitle(api.title);
|
|
56
|
+
}
|
|
53
57
|
return function () {
|
|
54
58
|
disposable.dispose();
|
|
55
59
|
};
|
package/dist/dockview.amd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.10.0
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -10303,8 +10303,8 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
10303
10303
|
accessor: this,
|
|
10304
10304
|
isVisible: true,
|
|
10305
10305
|
});
|
|
10306
|
-
this.registerPanel(view);
|
|
10307
10306
|
this.doAddGroup(view, relativeLocation, options.size);
|
|
10307
|
+
this.registerPanel(view);
|
|
10308
10308
|
this.doSetGroupActive(view);
|
|
10309
10309
|
return view;
|
|
10310
10310
|
}
|
|
@@ -11653,6 +11653,10 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
11653
11653
|
const disposable = api.onDidTitleChange((event) => {
|
|
11654
11654
|
setTitle(event.title);
|
|
11655
11655
|
});
|
|
11656
|
+
// Depending on the order in which React effects are run, the title may already be out of sync (cf. issue #1003).
|
|
11657
|
+
if (title !== api.title) {
|
|
11658
|
+
setTitle(api.title);
|
|
11659
|
+
}
|
|
11656
11660
|
return () => {
|
|
11657
11661
|
disposable.dispose();
|
|
11658
11662
|
};
|