@arminmajerie/dockview-solid 4.5.0 → 4.5.3

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/README.md CHANGED
@@ -1,38 +1,111 @@
1
1
  <div align="center">
2
- <h1>dockview</h1>
2
+ <h1>@arminmajerie/dockview-solid</h1>
3
+ <p>
4
+ Zero-dependency layout manager for <strong>SolidJS</strong>.<br>
5
+ <b>No React. No Vue. No legacy code.</b>
6
+ </p>
7
+ <p>
8
+ <a href="https://www.npmjs.com/package/@arminmajerie/dockview-solid">
9
+ <img src="https://img.shields.io/npm/v/@arminmajerie/dockview-solid?logo=npm" alt="npm version">
10
+ </a>
11
+ <a href="https://www.npmjs.com/package/@arminmajerie/dockview-solid">
12
+ <img src="https://img.shields.io/npm/dm/@arminmajerie/dockview-solid.svg" alt="npm downloads">
13
+ </a>
14
+ </p>
15
+ </div>
3
16
 
4
- <p>Zero dependency layout manager supporting tabs, groups, grids and splitviews. Supports React, Vue and Vanilla TypeScript</p>
17
+ ---
5
18
 
6
- </div>
19
+ **This package is for SolidJS.**
20
+ It is NOT based on `solid-dockview` (outdated) or the React-dependent `dockview-solid` from mathuo/dockview.
7
21
 
8
22
  ---
9
23
 
10
- [![npm version](https://badge.fury.io/js/dockview.svg)](https://www.npmjs.com/package/dockview)
11
- [![npm](https://img.shields.io/npm/dm/dockview)](https://www.npmjs.com/package/dockview)
12
- [![CI Build](https://github.com/mathuo/dockview/workflows/CI/badge.svg)](https://github.com/mathuo/dockview/actions?query=workflow%3ACI)
13
- [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=mathuo_dockview&metric=coverage)](https://sonarcloud.io/summary/overall?id=mathuo_dockview)
14
- [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=mathuo_dockview&metric=alert_status)](https://sonarcloud.io/summary/overall?id=mathuo_dockview)
15
- [![Bundle Phobia](https://badgen.net/bundlephobia/minzip/dockview)](https://bundlephobia.com/result?p=dockview)
24
+ ## Why this repo?
16
25
 
17
- ##
26
+ * `solid-dockview` ([lyonbot/solid-dockview](https://github.com/lyonbot/solid-dockview)): Outdated, not compatible, unmaintained.
27
+ * `dockview-solid` ([mathuo/dockview/tree/main/packages/dockview-solid](https://github.com/mathuo/dockview/tree/main/packages/dockview-solid)): Thin React wrapper, **still requires React**.
18
28
 
19
- ![](packages/docs/static/img/splashscreen.gif)
29
+ **`@arminmajerie/dockview-solid`:**
20
30
 
21
- Please see the website: https://dockview.dev
31
+ * Directly ported from [mathuo/dockview](https://github.com/mathuo/dockview)
32
+ * ✅ 100% SolidJS (no React dependency, no React shims)
33
+ * ✅ Works in SolidJS + Tauri applications
34
+
35
+ ---
22
36
 
23
37
  ## Features
24
38
 
25
- - Serialization / deserialization with full layout management
26
- - Support for split-views, grid-views and 'dockable' views
27
- - Themeable and customizable
28
- - Tab and Group docking / Drag n' Drop
29
- - Popout Windows
30
- - Floating Groups
31
- - Extensive API
32
- - Supports Shadow DOMs
33
- - High test coverage
34
- - Documentation website with live examples
35
- - Transparent builds and Code Analysis
36
- - Security at mind - verifed publishing and builds through GitHub Actions
37
-
38
- Want to verify our builds? Go [here](https://www.npmjs.com/package/dockview#Provenance).
39
+ * Tabs, groups, grids, splitviews
40
+ * Drag-and-drop with customizable drop zones
41
+ * Floating groups and popout windows
42
+ * Serialization/deserialization for state persistence
43
+ * Theme system (CSS custom properties)
44
+ * Full API for programmatic control
45
+ * Works natively in SolidJS and Tauri
46
+ * No React or legacy code
47
+
48
+ ---
49
+
50
+ ## Installation
51
+
52
+ ```sh
53
+ npm install @arminmajerie/dockview-solid dockview-core solid-js
54
+ ```
55
+
56
+ Both `@arminmajerie/dockview-solid` and `dockview-core` are required.
57
+
58
+ ---
59
+
60
+ ## Usage
61
+
62
+ ```js
63
+ import "dockview-core/dist/styles/dockview.css";
64
+ import {
65
+ DockviewSolid,
66
+ DockviewApi,
67
+ IDockviewPanelProps,
68
+ IDockviewPanelHeaderProps,
69
+ IDockviewHeaderActionsProps,
70
+ IWatermarkPanelProps,
71
+ DockviewReadyEvent,
72
+ IDockviewPanel,
73
+ themeReplit
74
+ } from "@arminmajerie/dockview-solid";
75
+
76
+ // Example component usage:
77
+
78
+ <DockviewSolid
79
+ theme={themeReplit}
80
+ components={{ panelContent: PanelContent }}
81
+ tabComponents={{
82
+ customTabHeaderWorkspace: CustomTabHeaderWithCloseButton,
83
+ customTabHeaderConfig: CustomTabHeaderWithCloseButton,
84
+ customTabHeaderComponent: CustomTabHeaderWithCloseButton,
85
+ customTabHeaderCanvas: CustomTabHeaderNoClosing,
86
+ }}
87
+ rightHeaderActionsComponent={AddPanel}
88
+ watermarkComponent={MyWatermark}
89
+ onReady={handleReady}
90
+ />
91
+ ```
92
+
93
+ ---
94
+
95
+ ## Project status
96
+
97
+ * **Alpha:** Major features are ported, but expect bugs and breaking changes.
98
+ * **Docs and live examples:** Coming soon.
99
+ * **No support for React/Vue.**
100
+
101
+ ---
102
+
103
+ ## License
104
+
105
+ MIT
106
+
107
+ ---
108
+
109
+ ## Maintainer
110
+
111
+ * [arminmajerie](https://github.com/arminmajerie)
@@ -1 +1 @@
1
- export * from 'dockview';
1
+ export * from '@arminmajerie/dockview';
package/dist/cjs/index.js CHANGED
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("dockview"), exports);
17
+ __exportStar(require("@arminmajerie/dockview"), exports);
@@ -1 +1 @@
1
- export * from 'dockview';
1
+ export * from '@arminmajerie/dockview';
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export * from 'dockview';
1
+ export * from '@arminmajerie/dockview';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arminmajerie/dockview-solid",
3
- "version": "4.5.0",
3
+ "version": "4.5.3",
4
4
  "description": "Zero dependency layout manager supporting tabs, grids and splitviews (SolidJS version)",
5
5
  "keywords": [
6
6
  "solid",
@@ -57,7 +57,7 @@
57
57
  "rebuild": "npm run clean && npm run build"
58
58
  },
59
59
  "dependencies": {
60
- "dockview": "file:../dockview"
60
+ "@arminmajerie/dockview": "^4.5.3"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "solid-js": "^1.8.0"