flexlayout-react 0.8.15 → 0.8.17
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/index.js +18 -3
- package/package.json +7 -4
- package/style/combined.css +1059 -1059
- package/style/dark.css +711 -711
- package/style/gray.css +714 -714
- package/style/light.css +688 -688
- package/style/rounded.css +727 -727
- package/style/underline.css +717 -717
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* flexlayout-react
|
|
3
|
-
* @version 0.8.
|
|
3
|
+
* @version 0.8.17
|
|
4
4
|
*/
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -4041,6 +4041,17 @@ const useTabOverflow = (layout, node, orientation, tabStripRef, miniScrollRef, t
|
|
|
4041
4041
|
updateScrollMetrics();
|
|
4042
4042
|
updateHiddenTabs();
|
|
4043
4043
|
});
|
|
4044
|
+
React.useEffect(() => {
|
|
4045
|
+
var _a;
|
|
4046
|
+
(_a = selfRef.current) == null ? void 0 : _a.addEventListener("wheel", onWheel, { passive: false });
|
|
4047
|
+
return () => {
|
|
4048
|
+
var _a2;
|
|
4049
|
+
(_a2 = selfRef.current) == null ? void 0 : _a2.removeEventListener("wheel", onWheel);
|
|
4050
|
+
};
|
|
4051
|
+
}, [selfRef.current]);
|
|
4052
|
+
const onWheel = (event) => {
|
|
4053
|
+
event.preventDefault();
|
|
4054
|
+
};
|
|
4044
4055
|
function scrollIntoView() {
|
|
4045
4056
|
const selectedTabNode = node.getSelectedNode();
|
|
4046
4057
|
if (selectedTabNode && tabStripRef.current) {
|
|
@@ -6218,7 +6229,11 @@ const _LayoutInternal = class _LayoutInternal extends React.Component {
|
|
|
6218
6229
|
return this.currentDocument;
|
|
6219
6230
|
}
|
|
6220
6231
|
getDomRect() {
|
|
6221
|
-
|
|
6232
|
+
if (this.selfRef.current) {
|
|
6233
|
+
return Rect.fromDomRect(this.selfRef.current.getBoundingClientRect());
|
|
6234
|
+
} else {
|
|
6235
|
+
return Rect.empty();
|
|
6236
|
+
}
|
|
6222
6237
|
}
|
|
6223
6238
|
getWindowId() {
|
|
6224
6239
|
return this.windowId;
|
|
@@ -6387,7 +6402,7 @@ const _LayoutInternal = class _LayoutInternal extends React.Component {
|
|
|
6387
6402
|
};
|
|
6388
6403
|
__publicField(_LayoutInternal, "dragState");
|
|
6389
6404
|
let LayoutInternal = _LayoutInternal;
|
|
6390
|
-
const FlexLayoutVersion = "0.8.
|
|
6405
|
+
const FlexLayoutVersion = "0.8.17";
|
|
6391
6406
|
const defaultIcons = {
|
|
6392
6407
|
close: /* @__PURE__ */ jsx(CloseIcon, {}),
|
|
6393
6408
|
closeTabset: /* @__PURE__ */ jsx(CloseIcon, {}),
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flexlayout-react",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.17",
|
|
4
4
|
"description": "A multi-tab docking layout manager",
|
|
5
5
|
"author": "Caplin Systems Ltd",
|
|
6
|
-
"repository":
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/caplin/FlexLayout.git"
|
|
9
|
+
},
|
|
7
10
|
"license": "ISC",
|
|
8
|
-
"type":"module",
|
|
11
|
+
"type": "module",
|
|
9
12
|
"main": "./dist/index.js",
|
|
10
13
|
"module": "./dist/index.js",
|
|
11
14
|
"types": "./types/index.d.ts",
|
|
@@ -95,4 +98,4 @@
|
|
|
95
98
|
"vite": "^6.3.0",
|
|
96
99
|
"vitest": "^3.1.1"
|
|
97
100
|
}
|
|
98
|
-
}
|
|
101
|
+
}
|