Comparing version 0.0.0-experimental-806ff2a9-20230927 to 0.0.0-experimental-859723a8-20231004
@@ -34,3 +34,3 @@ import * as React from 'react'; | ||
leftHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
preHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
prefixHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
singleTabMode?: 'fullwidth' | 'default'; | ||
@@ -37,0 +37,0 @@ disableFloatingGroups?: boolean; |
@@ -112,3 +112,3 @@ "use strict"; | ||
createRightHeaderActionsElement: createGroupControlElement(props.rightHeaderActionsComponent, { addPortal: addPortal }), | ||
createPreHeaderActionsElement: createGroupControlElement(props.preHeaderActionsComponent, { addPortal: addPortal }), | ||
createPrefixHeaderActionsElement: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal: addPortal }), | ||
singleTabMode: props.singleTabMode, | ||
@@ -223,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)); | ||
@@ -225,0 +233,0 @@ }); |
@@ -34,3 +34,3 @@ import * as React from 'react'; | ||
leftHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
preHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
prefixHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
singleTabMode?: 'fullwidth' | 'default'; | ||
@@ -37,0 +37,0 @@ disableFloatingGroups?: boolean; |
@@ -70,3 +70,3 @@ import * as React from 'react'; | ||
createRightHeaderActionsElement: createGroupControlElement(props.rightHeaderActionsComponent, { addPortal }), | ||
createPreHeaderActionsElement: createGroupControlElement(props.preHeaderActionsComponent, { addPortal }), | ||
createPrefixHeaderActionsElement: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal }), | ||
singleTabMode: props.singleTabMode, | ||
@@ -181,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)); | ||
@@ -183,0 +191,0 @@ }); |
{ | ||
"name": "dockview", | ||
"version": "0.0.0-experimental-806ff2a9-20230927", | ||
"version": "0.0.0-experimental-859723a8-20231004", | ||
"description": "Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support", | ||
@@ -45,3 +45,3 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"dockview-core": "0.0.0-experimental-806ff2a9-20230927" | ||
"dockview-core": "0.0.0-experimental-859723a8-20231004" | ||
}, | ||
@@ -48,0 +48,0 @@ "devDependencies": { |
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
9544459
54821
+ Addeddockview-core@0.0.0-experimental-859723a8-20231004(transitive)
- Removeddockview-core@0.0.0-experimental-806ff2a9-20230927(transitive)