Comparing version 0.0.0-experimental-91e4e321-20230827 to 0.0.0-experimental-a2a4e68-20231225
@@ -5,4 +5,5 @@ import { IDockviewPanelHeaderProps } from './dockview'; | ||
hideClose?: boolean; | ||
closeActionOverride?: () => void; | ||
}; | ||
export declare const DockviewDefaultTab: React.FunctionComponent<IDockviewDefaultTabProps>; | ||
//# sourceMappingURL=defaultTab.d.ts.map |
@@ -52,8 +52,19 @@ "use strict"; | ||
var DockviewDefaultTab = function (_a) { | ||
var api = _a.api, _containerApi = _a.containerApi, _params = _a.params, hideClose = _a.hideClose, rest = __rest(_a, ["api", "containerApi", "params", "hideClose"]); | ||
var api = _a.api, _containerApi = _a.containerApi, _params = _a.params, hideClose = _a.hideClose, closeActionOverride = _a.closeActionOverride, rest = __rest(_a, ["api", "containerApi", "params", "hideClose", "closeActionOverride"]); | ||
var onClose = React.useCallback(function (event) { | ||
event.stopPropagation(); | ||
api.close(); | ||
}, [api]); | ||
event.preventDefault(); | ||
if (closeActionOverride) { | ||
closeActionOverride(); | ||
} | ||
else { | ||
api.close(); | ||
} | ||
}, [api, closeActionOverride]); | ||
var onMouseDown = React.useCallback(function (e) { | ||
e.preventDefault(); | ||
}, []); | ||
var onClick = React.useCallback(function (event) { | ||
if (event.defaultPrevented) { | ||
return; | ||
} | ||
api.setActive(); | ||
@@ -65,4 +76,4 @@ if (rest.onClick) { | ||
return (React.createElement("div", __assign({ "data-testid": "dockview-default-tab" }, rest, { onClick: onClick, className: "dockview-react-tab" }), | ||
React.createElement("span", { className: "dockview-react-tab-title" }, api.title), | ||
!hideClose && (React.createElement("div", { className: "dv-react-tab-close-btn", onClick: onClose }, | ||
React.createElement("span", { className: "dockview-react-tab-title" }, api.renderer), | ||
!hideClose && (React.createElement("div", { className: "dv-react-tab-close-btn", onMouseDown: onMouseDown, onClick: onClose }, | ||
React.createElement(svg_1.CloseButton, null))))); | ||
@@ -69,0 +80,0 @@ }; |
import * as React from 'react'; | ||
import { DockviewDropEvent, DockviewDndOverlayEvent, DockviewPanelApi, DockviewApi } from 'dockview-core'; | ||
import { DockviewDropEvent, DockviewDndOverlayEvent, DockviewPanelApi, DockviewApi, DockviewPanelRenderer } from 'dockview-core'; | ||
import { IWatermarkPanelProps } from './reactWatermarkPart'; | ||
@@ -34,7 +34,13 @@ import { PanelCollection, PanelParameters } from '../types'; | ||
leftHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
prefixHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
singleTabMode?: 'fullwidth' | 'default'; | ||
disableFloatingGroups?: boolean; | ||
floatingGroupsAlwaysWithinViewport?: boolean; | ||
floatingGroupBounds?: 'boundedWithinViewport' | { | ||
minimumHeightWithinViewport?: number; | ||
minimumWidthWithinViewport?: number; | ||
}; | ||
debug?: boolean; | ||
defaultRenderer?: DockviewPanelRenderer; | ||
} | ||
export declare const DockviewReact: React.ForwardRefExoticComponent<IDockviewReactProps & React.RefAttributes<HTMLDivElement>>; | ||
//# sourceMappingURL=dockview.d.ts.map |
@@ -64,2 +64,3 @@ "use strict"; | ||
React.useEffect(function () { | ||
var _a; | ||
if (!domRef.current) { | ||
@@ -93,3 +94,3 @@ return function () { | ||
}; | ||
var frameworkTabComponents = props.tabComponents || {}; | ||
var frameworkTabComponents = (_a = props.tabComponents) !== null && _a !== void 0 ? _a : {}; | ||
if (props.defaultTabComponent) { | ||
@@ -103,2 +104,3 @@ frameworkTabComponents[DEFAULT_REACT_TAB] = | ||
frameworkComponents: props.components, | ||
disableAutoResizing: props.disableAutoResizing, | ||
frameworkTabComponents: frameworkTabComponents, | ||
@@ -115,7 +117,10 @@ watermarkFrameworkComponent: props.watermarkComponent, | ||
createRightHeaderActionsElement: createGroupControlElement(props.rightHeaderActionsComponent, { addPortal: addPortal }), | ||
createPrefixHeaderActionsElement: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal: addPortal }), | ||
singleTabMode: props.singleTabMode, | ||
disableFloatingGroups: props.disableFloatingGroups, | ||
floatingGroupsAlwaysWithinViewport: props.floatingGroupsAlwaysWithinViewport, | ||
floatingGroupBounds: props.floatingGroupBounds, | ||
defaultRenderer: props.defaultRenderer, | ||
debug: props.debug, | ||
}); | ||
var _a = domRef.current, clientWidth = _a.clientWidth, clientHeight = _a.clientHeight; | ||
var _b = domRef.current, clientWidth = _b.clientWidth, clientHeight = _b.clientHeight; | ||
dockview.layout(clientWidth, clientHeight); | ||
@@ -158,5 +163,5 @@ if (props.onReady) { | ||
dockviewRef.current.updateOptions({ | ||
floatingGroupsAlwaysWithinViewport: props.floatingGroupsAlwaysWithinViewport, | ||
floatingGroupBounds: props.floatingGroupBounds, | ||
}); | ||
}, [props.floatingGroupsAlwaysWithinViewport]); | ||
}, [props.floatingGroupBounds]); | ||
React.useEffect(function () { | ||
@@ -195,6 +200,7 @@ if (!dockviewRef.current) { | ||
React.useEffect(function () { | ||
var _a; | ||
if (!dockviewRef.current) { | ||
return; | ||
} | ||
var frameworkTabComponents = props.tabComponents || {}; | ||
var frameworkTabComponents = (_a = props.tabComponents) !== null && _a !== void 0 ? _a : {}; | ||
if (props.defaultTabComponent) { | ||
@@ -227,2 +233,10 @@ frameworkTabComponents[DEFAULT_REACT_TAB] = | ||
}, [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)); | ||
@@ -229,0 +243,0 @@ }); |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -35,7 +35,7 @@ "use strict"; | ||
ReactWatermarkPart.prototype.update = function (params) { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
if (this.parameters) { | ||
this.parameters.params = params.params; | ||
} | ||
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: ((_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params) || {} }); | ||
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: (_c = (_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params) !== null && _c !== void 0 ? _c : {} }); | ||
}; | ||
@@ -42,0 +42,0 @@ ReactWatermarkPart.prototype.layout = function (_width, _height) { |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -53,2 +53,3 @@ "use strict"; | ||
React.useEffect(function () { | ||
var _a; | ||
if (!domRef.current) { | ||
@@ -61,6 +62,7 @@ return function () { | ||
parentElement: domRef.current, | ||
disableAutoResizing: props.disableAutoResizing, | ||
proportionalLayout: typeof props.proportionalLayout === 'boolean' | ||
? props.proportionalLayout | ||
: true, | ||
orientation: props.orientation || dockview_core_1.Orientation.HORIZONTAL, | ||
orientation: (_a = props.orientation) !== null && _a !== void 0 ? _a : dockview_core_1.Orientation.HORIZONTAL, | ||
frameworkComponents: props.components, | ||
@@ -78,3 +80,3 @@ frameworkComponentFactory: { | ||
}); | ||
var _a = domRef.current, clientWidth = _a.clientWidth, clientHeight = _a.clientHeight; | ||
var _b = domRef.current, clientWidth = _b.clientWidth, clientHeight = _b.clientHeight; | ||
gridview.layout(clientWidth, clientHeight); | ||
@@ -81,0 +83,0 @@ if (props.onReady) { |
@@ -0,0 +0,0 @@ /// <reference types="react" /> |
@@ -30,5 +30,5 @@ "use strict"; | ||
ReactGridPanelView.prototype.getComponent = function () { | ||
var _a; | ||
var _a, _b; | ||
return new react_1.ReactPart(this.element, this.reactPortalStore, this.reactComponent, { | ||
params: ((_a = this._params) === null || _a === void 0 ? void 0 : _a.params) || {}, | ||
params: (_b = (_a = this._params) === null || _a === void 0 ? void 0 : _a.params) !== null && _b !== void 0 ? _b : {}, | ||
api: this.api, | ||
@@ -35,0 +35,0 @@ containerApi: new dockview_core_1.GridviewApi(this._params.accessor), |
@@ -0,0 +0,0 @@ export * from 'dockview-core'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -71,2 +71,3 @@ "use strict"; | ||
parentElement: domRef.current, | ||
disableAutoResizing: props.disableAutoResizing, | ||
frameworkComponents: props.components, | ||
@@ -73,0 +74,0 @@ components: {}, |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -34,4 +34,4 @@ import * as React from 'react'; | ||
export declare const usePortalsLifecycle: PortalLifecycleHook; | ||
export declare function isReactElement(element: any | React.ReactElement): element is React.ReactElement; | ||
export declare function isReactElement(element: unknown): element is React.ReactElement; | ||
export {}; | ||
//# sourceMappingURL=react.d.ts.map |
@@ -194,5 +194,5 @@ "use strict"; | ||
function isReactElement(element) { | ||
return element === null || element === void 0 ? void 0 : element.type; | ||
return !!(element === null || element === void 0 ? void 0 : element.type); | ||
} | ||
exports.isReactElement = isReactElement; | ||
//# sourceMappingURL=react.js.map |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -53,5 +53,7 @@ "use strict"; | ||
React.useEffect(function () { | ||
var _a; | ||
var splitview = new dockview_core_1.SplitviewComponent({ | ||
parentElement: domRef.current, | ||
orientation: props.orientation || dockview_core_1.Orientation.HORIZONTAL, | ||
disableAutoResizing: props.disableAutoResizing, | ||
orientation: (_a = props.orientation) !== null && _a !== void 0 ? _a : dockview_core_1.Orientation.HORIZONTAL, | ||
frameworkComponents: props.components, | ||
@@ -72,3 +74,3 @@ frameworkWrapper: { | ||
}); | ||
var _a = domRef.current, clientWidth = _a.clientWidth, clientHeight = _a.clientHeight; | ||
var _b = domRef.current, clientWidth = _b.clientWidth, clientHeight = _b.clientHeight; | ||
splitview.layout(clientWidth, clientHeight); | ||
@@ -75,0 +77,0 @@ if (props.onReady) { |
@@ -0,0 +0,0 @@ /// <reference types="react" /> |
@@ -30,5 +30,5 @@ "use strict"; | ||
ReactPanelView.prototype.getComponent = function () { | ||
var _a; | ||
var _a, _b; | ||
return new react_1.ReactPart(this.element, this.reactPortalStore, this.reactComponent, { | ||
params: ((_a = this._params) === null || _a === void 0 ? void 0 : _a.params) || {}, | ||
params: (_b = (_a = this._params) === null || _a === void 0 ? void 0 : _a.params) !== null && _b !== void 0 ? _b : {}, | ||
api: this.api, | ||
@@ -35,0 +35,0 @@ containerApi: new dockview_core_1.SplitviewApi(this._params.accessor), |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map |
@@ -5,4 +5,5 @@ import { IDockviewPanelHeaderProps } from './dockview'; | ||
hideClose?: boolean; | ||
closeActionOverride?: () => void; | ||
}; | ||
export declare const DockviewDefaultTab: React.FunctionComponent<IDockviewDefaultTabProps>; | ||
//# sourceMappingURL=defaultTab.d.ts.map |
@@ -15,8 +15,19 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
export const DockviewDefaultTab = (_a) => { | ||
var { api, containerApi: _containerApi, params: _params, hideClose } = _a, rest = __rest(_a, ["api", "containerApi", "params", "hideClose"]); | ||
var { api, containerApi: _containerApi, params: _params, hideClose, closeActionOverride } = _a, rest = __rest(_a, ["api", "containerApi", "params", "hideClose", "closeActionOverride"]); | ||
const onClose = React.useCallback((event) => { | ||
event.stopPropagation(); | ||
api.close(); | ||
}, [api]); | ||
event.preventDefault(); | ||
if (closeActionOverride) { | ||
closeActionOverride(); | ||
} | ||
else { | ||
api.close(); | ||
} | ||
}, [api, closeActionOverride]); | ||
const onMouseDown = React.useCallback((e) => { | ||
e.preventDefault(); | ||
}, []); | ||
const onClick = React.useCallback((event) => { | ||
if (event.defaultPrevented) { | ||
return; | ||
} | ||
api.setActive(); | ||
@@ -28,6 +39,6 @@ if (rest.onClick) { | ||
return (React.createElement("div", Object.assign({ "data-testid": "dockview-default-tab" }, rest, { onClick: onClick, className: "dockview-react-tab" }), | ||
React.createElement("span", { className: "dockview-react-tab-title" }, api.title), | ||
!hideClose && (React.createElement("div", { className: "dv-react-tab-close-btn", onClick: onClose }, | ||
React.createElement("span", { className: "dockview-react-tab-title" }, api.renderer), | ||
!hideClose && (React.createElement("div", { className: "dv-react-tab-close-btn", onMouseDown: onMouseDown, onClick: onClose }, | ||
React.createElement(CloseButton, null))))); | ||
}; | ||
//# sourceMappingURL=defaultTab.js.map |
import * as React from 'react'; | ||
import { DockviewDropEvent, DockviewDndOverlayEvent, DockviewPanelApi, DockviewApi } from 'dockview-core'; | ||
import { DockviewDropEvent, DockviewDndOverlayEvent, DockviewPanelApi, DockviewApi, DockviewPanelRenderer } from 'dockview-core'; | ||
import { IWatermarkPanelProps } from './reactWatermarkPart'; | ||
@@ -34,7 +34,13 @@ import { PanelCollection, PanelParameters } from '../types'; | ||
leftHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
prefixHeaderActionsComponent?: React.FunctionComponent<IDockviewHeaderActionsProps>; | ||
singleTabMode?: 'fullwidth' | 'default'; | ||
disableFloatingGroups?: boolean; | ||
floatingGroupsAlwaysWithinViewport?: boolean; | ||
floatingGroupBounds?: 'boundedWithinViewport' | { | ||
minimumHeightWithinViewport?: number; | ||
minimumWidthWithinViewport?: number; | ||
}; | ||
debug?: boolean; | ||
defaultRenderer?: DockviewPanelRenderer; | ||
} | ||
export declare const DockviewReact: React.ForwardRefExoticComponent<IDockviewReactProps & React.RefAttributes<HTMLDivElement>>; | ||
//# sourceMappingURL=dockview.d.ts.map |
@@ -22,2 +22,3 @@ import * as React from 'react'; | ||
React.useEffect(() => { | ||
var _a; | ||
if (!domRef.current) { | ||
@@ -51,3 +52,3 @@ return () => { | ||
}; | ||
const frameworkTabComponents = props.tabComponents || {}; | ||
const frameworkTabComponents = (_a = props.tabComponents) !== null && _a !== void 0 ? _a : {}; | ||
if (props.defaultTabComponent) { | ||
@@ -61,2 +62,3 @@ frameworkTabComponents[DEFAULT_REACT_TAB] = | ||
frameworkComponents: props.components, | ||
disableAutoResizing: props.disableAutoResizing, | ||
frameworkTabComponents, | ||
@@ -73,5 +75,8 @@ watermarkFrameworkComponent: props.watermarkComponent, | ||
createRightHeaderActionsElement: createGroupControlElement(props.rightHeaderActionsComponent, { addPortal }), | ||
createPrefixHeaderActionsElement: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal }), | ||
singleTabMode: props.singleTabMode, | ||
disableFloatingGroups: props.disableFloatingGroups, | ||
floatingGroupsAlwaysWithinViewport: props.floatingGroupsAlwaysWithinViewport, | ||
floatingGroupBounds: props.floatingGroupBounds, | ||
defaultRenderer: props.defaultRenderer, | ||
debug: props.debug, | ||
}); | ||
@@ -116,5 +121,5 @@ const { clientWidth, clientHeight } = domRef.current; | ||
dockviewRef.current.updateOptions({ | ||
floatingGroupsAlwaysWithinViewport: props.floatingGroupsAlwaysWithinViewport, | ||
floatingGroupBounds: props.floatingGroupBounds, | ||
}); | ||
}, [props.floatingGroupsAlwaysWithinViewport]); | ||
}, [props.floatingGroupBounds]); | ||
React.useEffect(() => { | ||
@@ -153,6 +158,7 @@ if (!dockviewRef.current) { | ||
React.useEffect(() => { | ||
var _a; | ||
if (!dockviewRef.current) { | ||
return; | ||
} | ||
const frameworkTabComponents = props.tabComponents || {}; | ||
const frameworkTabComponents = (_a = props.tabComponents) !== null && _a !== void 0 ? _a : {}; | ||
if (props.defaultTabComponent) { | ||
@@ -185,2 +191,10 @@ frameworkTabComponents[DEFAULT_REACT_TAB] = | ||
}, [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)); | ||
@@ -187,0 +201,0 @@ }); |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import { ReactPart } from '../react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import { ReactPart } from '../react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import { ReactPart } from '../react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -28,7 +28,7 @@ import { ReactPart } from '../react'; | ||
update(params) { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
if (this.parameters) { | ||
this.parameters.params = params.params; | ||
} | ||
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: ((_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params) || {} }); | ||
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: (_c = (_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params) !== null && _c !== void 0 ? _c : {} }); | ||
} | ||
@@ -35,0 +35,0 @@ layout(_width, _height) { |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -11,2 +11,3 @@ import * as React from 'react'; | ||
React.useEffect(() => { | ||
var _a; | ||
if (!domRef.current) { | ||
@@ -19,6 +20,7 @@ return () => { | ||
parentElement: domRef.current, | ||
disableAutoResizing: props.disableAutoResizing, | ||
proportionalLayout: typeof props.proportionalLayout === 'boolean' | ||
? props.proportionalLayout | ||
: true, | ||
orientation: props.orientation || Orientation.HORIZONTAL, | ||
orientation: (_a = props.orientation) !== null && _a !== void 0 ? _a : Orientation.HORIZONTAL, | ||
frameworkComponents: props.components, | ||
@@ -25,0 +27,0 @@ frameworkComponentFactory: { |
@@ -0,0 +0,0 @@ /// <reference types="react" /> |
@@ -10,5 +10,5 @@ import { GridviewApi, GridviewPanel, } from 'dockview-core'; | ||
getComponent() { | ||
var _a; | ||
var _a, _b; | ||
return new ReactPart(this.element, this.reactPortalStore, this.reactComponent, { | ||
params: ((_a = this._params) === null || _a === void 0 ? void 0 : _a.params) || {}, | ||
params: (_b = (_a = this._params) === null || _a === void 0 ? void 0 : _a.params) !== null && _b !== void 0 ? _b : {}, | ||
api: this.api, | ||
@@ -15,0 +15,0 @@ containerApi: new GridviewApi(this._params.accessor), |
@@ -0,0 +0,0 @@ export * from 'dockview-core'; |
@@ -0,0 +0,0 @@ export * from 'dockview-core'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -16,2 +16,3 @@ import * as React from 'react'; | ||
parentElement: domRef.current, | ||
disableAutoResizing: props.disableAutoResizing, | ||
frameworkComponents: props.components, | ||
@@ -18,0 +19,0 @@ components: {}, |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import { ReactPart } from '../react'; |
@@ -34,4 +34,4 @@ import * as React from 'react'; | ||
export declare const usePortalsLifecycle: PortalLifecycleHook; | ||
export declare function isReactElement(element: any | React.ReactElement): element is React.ReactElement; | ||
export declare function isReactElement(element: unknown): element is React.ReactElement; | ||
export {}; | ||
//# sourceMappingURL=react.d.ts.map |
@@ -126,4 +126,4 @@ import * as React from 'react'; | ||
export function isReactElement(element) { | ||
return element === null || element === void 0 ? void 0 : element.type; | ||
return !!(element === null || element === void 0 ? void 0 : element.type); | ||
} | ||
//# sourceMappingURL=react.js.map |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -11,5 +11,7 @@ import * as React from 'react'; | ||
React.useEffect(() => { | ||
var _a; | ||
const splitview = new SplitviewComponent({ | ||
parentElement: domRef.current, | ||
orientation: props.orientation || Orientation.HORIZONTAL, | ||
disableAutoResizing: props.disableAutoResizing, | ||
orientation: (_a = props.orientation) !== null && _a !== void 0 ? _a : Orientation.HORIZONTAL, | ||
frameworkComponents: props.components, | ||
@@ -16,0 +18,0 @@ frameworkWrapper: { |
@@ -0,0 +0,0 @@ /// <reference types="react" /> |
@@ -10,5 +10,5 @@ import { SplitviewApi, SplitviewPanel, } from 'dockview-core'; | ||
getComponent() { | ||
var _a; | ||
var _a, _b; | ||
return new ReactPart(this.element, this.reactPortalStore, this.reactComponent, { | ||
params: ((_a = this._params) === null || _a === void 0 ? void 0 : _a.params) || {}, | ||
params: (_b = (_a = this._params) === null || _a === void 0 ? void 0 : _a.params) !== null && _b !== void 0 ? _b : {}, | ||
api: this.api, | ||
@@ -15,0 +15,0 @@ containerApi: new SplitviewApi(this._params.accessor), |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
export {}; | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "dockview", | ||
"version": "0.0.0-experimental-91e4e321-20230827", | ||
"version": "0.0.0-experimental-a2a4e68-20231225", | ||
"description": "Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support", | ||
"main": "./dist/cjs/index.js", | ||
"types": "./dist/cjs/index.d.ts", | ||
"module": "./dist/esm/index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mathuo/dockview.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/mathuo/dockview/issues" | ||
}, | ||
"homepage": "https://github.com/mathuo/dockview", | ||
"scripts": {}, | ||
"files": [ | ||
"dist", | ||
"README.md" | ||
], | ||
"keywords": [ | ||
@@ -42,22 +26,35 @@ "splitview", | ||
], | ||
"homepage": "https://github.com/mathuo/dockview", | ||
"bugs": { | ||
"url": "https://github.com/mathuo/dockview/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mathuo/dockview.git" | ||
}, | ||
"license": "MIT", | ||
"author": "https://github.com/mathuo", | ||
"license": "MIT", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.js", | ||
"types": "./dist/cjs/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"README.md" | ||
], | ||
"scripts": { | ||
"build": "npm run build:package && npm run build:bundles", | ||
"build:bundles": "rollup -c", | ||
"build:cjs": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.json --extendedDiagnostics", | ||
"build:css": "gulp sass", | ||
"build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics", | ||
"build:package": "npm run build:cjs && npm run build:esm && npm run build:css", | ||
"clean": "rimraf dist/ .build/ .rollup.cache/", | ||
"prepublishOnly": "npm run rebuild && npm run test", | ||
"rebuild": "npm run clean && npm run build", | ||
"test": "cross-env ../../node_modules/.bin/jest --selectProjects dockview", | ||
"test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview --coverage" | ||
}, | ||
"dependencies": { | ||
"dockview-core": "0.0.0-experimental-91e4e321-20230827" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@rollup/plugin-terser": "^0.4.0", | ||
"@rollup/plugin-typescript": "^11.0.0", | ||
"@testing-library/react": "^13.4.0", | ||
"@types/react": "^18.0.28", | ||
"@types/react-dom": "^18.0.11", | ||
"cross-env": "^7.0.3", | ||
"postcss": "^8.4.21", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"rimraf": "^4.1.2", | ||
"rollup": "^3.15.0", | ||
"rollup-plugin-postcss": "^4.0.2" | ||
"dockview-core": "0.0.0-experimental-a2a4e68-20231225" | ||
} | ||
} |
@@ -0,0 +0,0 @@ <div align="center"> |
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
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
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
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
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
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
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
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
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
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
Sorry, the diff of this file is not supported yet
9820043
0
58323
+ Addeddockview-core@0.0.0-experimental-a2a4e68-20231225(transitive)
- Removeddockview-core@0.0.0-experimental-91e4e321-20230827(transitive)