Comparing version 1.8.3 to 1.8.4
@@ -34,2 +34,3 @@ import * as React from 'react'; | ||
leftHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
prefixHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
singleTabMode?: 'fullwidth' | 'default'; | ||
@@ -36,0 +37,0 @@ disableFloatingGroups?: boolean; |
@@ -112,2 +112,3 @@ "use strict"; | ||
createRightHeaderActionsElement: createGroupControlElement(props.rightHeaderActionsComponent, { addPortal: addPortal }), | ||
createPrefixHeaderActionsElement: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal: addPortal }), | ||
singleTabMode: props.singleTabMode, | ||
@@ -222,2 +223,10 @@ disableFloatingGroups: props.disableFloatingGroups, | ||
}, [props.leftHeaderActionsComponent]); | ||
React.useEffect(function () { | ||
if (!dockviewRef.current) { | ||
return; | ||
} | ||
dockviewRef.current.updateOptions({ | ||
createPrefixHeaderActionsElement: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal: addPortal }), | ||
}); | ||
}, [props.prefixHeaderActionsComponent]); | ||
return (React.createElement("div", { className: props.className, style: { height: '100%', width: '100%' }, ref: domRef }, portals)); | ||
@@ -224,0 +233,0 @@ }); |
@@ -34,2 +34,3 @@ import * as React from 'react'; | ||
leftHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
prefixHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
singleTabMode?: 'fullwidth' | 'default'; | ||
@@ -36,0 +37,0 @@ disableFloatingGroups?: boolean; |
@@ -70,2 +70,3 @@ import * as React from 'react'; | ||
createRightHeaderActionsElement: createGroupControlElement(props.rightHeaderActionsComponent, { addPortal }), | ||
createPrefixHeaderActionsElement: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal }), | ||
singleTabMode: props.singleTabMode, | ||
@@ -180,2 +181,10 @@ disableFloatingGroups: props.disableFloatingGroups, | ||
}, [props.leftHeaderActionsComponent]); | ||
React.useEffect(() => { | ||
if (!dockviewRef.current) { | ||
return; | ||
} | ||
dockviewRef.current.updateOptions({ | ||
createPrefixHeaderActionsElement: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal }), | ||
}); | ||
}, [props.prefixHeaderActionsComponent]); | ||
return (React.createElement("div", { className: props.className, style: { height: '100%', width: '100%' }, ref: domRef }, portals)); | ||
@@ -182,0 +191,0 @@ }); |
{ | ||
"name": "dockview", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"description": "Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support", | ||
@@ -59,3 +59,3 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"dockview-core": "^1.8.3" | ||
"dockview-core": "^1.8.4" | ||
}, | ||
@@ -77,3 +77,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "4ad5b0ffe46d7d7f17a6ed97eb5715c5e603962b" | ||
"gitHead": "47f78ad649ef2c7b31b72fc3255eb99855c67f58" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9547417
54845
Updateddockview-core@^1.8.4