dockview-react 7.0.2 → 7.0.4
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/react.js +4 -4
- package/dist/dockview-react.js +423 -340
- package/dist/dockview-react.min.js +7 -7
- package/dist/dockview-react.min.js.map +1 -1
- package/dist/esm/react.js +4 -4
- package/dist/package/main.cjs.js +5 -5
- package/dist/package/main.cjs.min.js +1 -1
- package/dist/package/main.esm.min.mjs +1 -1
- package/dist/package/main.esm.mjs +5 -5
- package/dist/styles/dockview.css +8 -8
- package/package.json +2 -2
package/dist/esm/react.js
CHANGED
|
@@ -56,12 +56,12 @@ export class ReactPart {
|
|
|
56
56
|
if (this.disposed) {
|
|
57
57
|
throw new Error('invalid operation: resource is already disposed');
|
|
58
58
|
}
|
|
59
|
-
if (
|
|
60
|
-
|
|
61
|
-
this._initialProps = Object.assign(Object.assign({}, this._initialProps), props);
|
|
59
|
+
if (this.componentInstance) {
|
|
60
|
+
this.componentInstance.update(props);
|
|
62
61
|
}
|
|
63
62
|
else {
|
|
64
|
-
|
|
63
|
+
// if the component is yet to be mounted store the props
|
|
64
|
+
this._initialProps = Object.assign(Object.assign({}, this._initialProps), props);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
createPortal() {
|
package/dist/package/main.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-react
|
|
3
|
-
* @version 7.0.
|
|
3
|
+
* @version 7.0.4
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -67,12 +67,12 @@ class ReactPart {
|
|
|
67
67
|
if (this.disposed) {
|
|
68
68
|
throw new Error('invalid operation: resource is already disposed');
|
|
69
69
|
}
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
this._initialProps = Object.assign(Object.assign({}, this._initialProps), props);
|
|
70
|
+
if (this.componentInstance) {
|
|
71
|
+
this.componentInstance.update(props);
|
|
73
72
|
}
|
|
74
73
|
else {
|
|
75
|
-
|
|
74
|
+
// if the component is yet to be mounted store the props
|
|
75
|
+
this._initialProps = Object.assign(Object.assign({}, this._initialProps), props);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
createPortal() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-react
|
|
3
|
-
* @version 7.0.
|
|
3
|
+
* @version 7.0.4
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -64,12 +64,12 @@ class ReactPart {
|
|
|
64
64
|
if (this.disposed) {
|
|
65
65
|
throw new Error('invalid operation: resource is already disposed');
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
|
|
69
|
-
this._initialProps = Object.assign(Object.assign({}, this._initialProps), props);
|
|
67
|
+
if (this.componentInstance) {
|
|
68
|
+
this.componentInstance.update(props);
|
|
70
69
|
}
|
|
71
70
|
else {
|
|
72
|
-
|
|
71
|
+
// if the component is yet to be mounted store the props
|
|
72
|
+
this._initialProps = Object.assign(Object.assign({}, this._initialProps), props);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
createPortal() {
|
package/dist/styles/dockview.css
CHANGED
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
padding: var(--dv-spacing-padding);
|
|
621
621
|
background-color: var(--dv-group-view-background-color);
|
|
622
622
|
}
|
|
623
|
-
.
|
|
623
|
+
.dockview-theme-nord-spaced .dv-dockview {
|
|
624
624
|
padding: 0;
|
|
625
625
|
}
|
|
626
626
|
.dockview-theme-nord-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
@@ -902,7 +902,7 @@
|
|
|
902
902
|
padding: var(--dv-spacing-padding);
|
|
903
903
|
background-color: var(--dv-group-view-background-color);
|
|
904
904
|
}
|
|
905
|
-
.
|
|
905
|
+
.dockview-theme-catppuccin-mocha-spaced .dv-dockview {
|
|
906
906
|
padding: 0;
|
|
907
907
|
}
|
|
908
908
|
.dockview-theme-catppuccin-mocha-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
@@ -1259,7 +1259,7 @@
|
|
|
1259
1259
|
padding: var(--dv-spacing-padding);
|
|
1260
1260
|
background-color: var(--dv-group-view-background-color);
|
|
1261
1261
|
}
|
|
1262
|
-
.
|
|
1262
|
+
.dockview-theme-solarized-light-spaced .dv-dockview {
|
|
1263
1263
|
padding: 0;
|
|
1264
1264
|
}
|
|
1265
1265
|
.dockview-theme-solarized-light-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
padding: var(--dv-spacing-padding);
|
|
1512
1512
|
background-color: var(--dv-group-view-background-color);
|
|
1513
1513
|
}
|
|
1514
|
-
.
|
|
1514
|
+
.dockview-theme-github-dark-spaced .dv-dockview {
|
|
1515
1515
|
padding: 0;
|
|
1516
1516
|
}
|
|
1517
1517
|
.dockview-theme-github-dark-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
@@ -1775,7 +1775,7 @@
|
|
|
1775
1775
|
padding: var(--dv-spacing-padding);
|
|
1776
1776
|
background-color: var(--dv-group-view-background-color);
|
|
1777
1777
|
}
|
|
1778
|
-
.
|
|
1778
|
+
.dockview-theme-github-light-spaced .dv-dockview {
|
|
1779
1779
|
padding: 0;
|
|
1780
1780
|
}
|
|
1781
1781
|
.dockview-theme-github-light-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
@@ -1950,7 +1950,7 @@
|
|
|
1950
1950
|
padding: var(--dv-spacing-padding);
|
|
1951
1951
|
background-color: var(--dv-group-view-background-color);
|
|
1952
1952
|
}
|
|
1953
|
-
.
|
|
1953
|
+
.dockview-theme-abyss-spaced .dv-dockview {
|
|
1954
1954
|
padding: 0;
|
|
1955
1955
|
}
|
|
1956
1956
|
.dockview-theme-abyss-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
@@ -2122,7 +2122,7 @@
|
|
|
2122
2122
|
padding: var(--dv-spacing-padding);
|
|
2123
2123
|
background-color: var(--dv-group-view-background-color);
|
|
2124
2124
|
}
|
|
2125
|
-
.
|
|
2125
|
+
.dockview-theme-light-spaced .dv-dockview {
|
|
2126
2126
|
padding: 0;
|
|
2127
2127
|
}
|
|
2128
2128
|
.dockview-theme-light-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
@@ -2232,7 +2232,7 @@
|
|
|
2232
2232
|
padding: var(--dv-spacing-padding);
|
|
2233
2233
|
background-color: var(--dv-group-view-background-color);
|
|
2234
2234
|
}
|
|
2235
|
-
.
|
|
2235
|
+
.dockview-spaced .dv-dockview {
|
|
2236
2236
|
padding: 0;
|
|
2237
2237
|
}
|
|
2238
2238
|
.dockview-spaced .dv-resize-container:has(> .dv-groupview) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dockview-react",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "React docking layout manager — tabs, groups, grids, splitviews, drag and drop, floating panels",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"splitview",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"format:check": "prettier --check 'src/**/*.{ts,tsx,js,jsx}'"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"dockview": "^7.0.
|
|
82
|
+
"dockview": "^7.0.4"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|