dockview 1.16.1 → 1.17.0

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.
@@ -35,7 +35,7 @@ export const DockviewDefaultTab = (_a) => {
35
35
  api.close();
36
36
  }
37
37
  }, [api, closeActionOverride]);
38
- const onMouseDown = React.useCallback((e) => {
38
+ const onPointerDown = React.useCallback((e) => {
39
39
  e.preventDefault();
40
40
  }, []);
41
41
  const onClick = React.useCallback((event) => {
@@ -49,6 +49,6 @@ export const DockviewDefaultTab = (_a) => {
49
49
  }, [api, rest.onClick]);
50
50
  return (React.createElement("div", Object.assign({ "data-testid": "dockview-dv-default-tab" }, rest, { onClick: onClick, className: "dv-default-tab" }),
51
51
  React.createElement("span", { className: "dv-default-tab-content" }, title),
52
- !hideClose && (React.createElement("div", { className: "dv-default-tab-action", onMouseDown: onMouseDown, onClick: onClose },
52
+ !hideClose && (React.createElement("div", { className: "dv-default-tab-action", onPointerDown: onPointerDown, onClick: onClose },
53
53
  React.createElement(CloseButton, null)))));
54
54
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ReactPortalStore } from '../react';
3
- import { PanelUpdateEvent, DockviewGroupPanel, IWatermarkRenderer, WatermarkRendererInitParameters, IWatermarkPanelProps } from 'dockview-core';
3
+ import { PanelUpdateEvent, IWatermarkRenderer, WatermarkRendererInitParameters, IWatermarkPanelProps } from 'dockview-core';
4
4
  export declare class ReactWatermarkPart implements IWatermarkRenderer {
5
5
  readonly id: string;
6
6
  private readonly component;
@@ -14,6 +14,5 @@ export declare class ReactWatermarkPart implements IWatermarkRenderer {
14
14
  focus(): void;
15
15
  update(params: PanelUpdateEvent): void;
16
16
  layout(_width: number, _height: number): void;
17
- updateParentGroup(_group: DockviewGroupPanel, _isPanelVisible: boolean): void;
18
17
  dispose(): void;
19
18
  }
@@ -31,9 +31,6 @@ export class ReactWatermarkPart {
31
31
  layout(_width, _height) {
32
32
  // noop - retrieval from api
33
33
  }
34
- updateParentGroup(_group, _isPanelVisible) {
35
- // noop
36
- }
37
34
  dispose() {
38
35
  var _a;
39
36
  (_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
@@ -200,7 +200,7 @@
200
200
  --dv-group-view-background-color: #ebeced;
201
201
  --dv-tabs-and-actions-container-background-color: #fcfcfc;
202
202
  --dv-activegroup-visiblepanel-tab-background-color: #f0f1f2;
203
- --dv-activegroup-hiddenpanel-tab-background-color: ##fcfcfc;
203
+ --dv-activegroup-hiddenpanel-tab-background-color: #fcfcfc;
204
204
  --dv-inactivegroup-visiblepanel-tab-background-color: #f0f1f2;
205
205
  --dv-inactivegroup-hiddenpanel-tab-background-color: #fcfcfc;
206
206
  --dv-tab-divider-color: transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dockview",
3
- "version": "1.16.1",
3
+ "version": "1.17.0",
4
4
  "description": "Zero dependency layout manager supporting tabs, grids and splitviews",
5
5
  "keywords": [
6
6
  "splitview",
@@ -54,6 +54,6 @@
54
54
  "test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview --coverage"
55
55
  },
56
56
  "dependencies": {
57
- "dockview-core": "^1.16.1"
57
+ "dockview-core": "^1.17.0"
58
58
  }
59
59
  }