dockview 7.0.4 → 8.1.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.
- package/LICENCE.md +21 -0
- package/README.md +18 -15
- package/dist/cjs/index.d.ts +9 -0
- package/dist/dockview.js +18312 -20724
- package/dist/dockview.min.js +4143 -18
- package/dist/package/main.cjs.js +19 -954
- package/dist/package/main.cjs.min.js +6 -12
- package/dist/package/main.esm.min.mjs +6 -12
- package/dist/package/main.esm.mjs +13 -946
- package/dist/styles/dockview.css +3098 -2400
- package/package.json +85 -79
- package/dist/cjs/index.js +0 -29
- package/dist/dockview.min.js.map +0 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -13
package/LICENCE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 mathuo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
+
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/dockview/dockview/blob/HEAD/static/img/dockview-lockup-dark.svg?raw=true">
|
|
5
|
+
<img src="https://github.com/dockview/dockview/blob/HEAD/static/img/dockview-lockup-light.svg?raw=true" alt="Dockview" width="480">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
2
8
|
<h1>dockview</h1>
|
|
3
9
|
|
|
4
10
|
<p>Zero dependency layout manager supporting tabs, groups, grids and splitviews</p>
|
|
5
11
|
|
|
12
|
+
[](https://www.npmjs.com/package/dockview)
|
|
13
|
+
[](https://www.npmjs.com/package/dockview)
|
|
14
|
+
[](https://github.com/dockview/dockview/actions?query=workflow%3ACI)
|
|
15
|
+
[](https://sonarcloud.io/summary/overall?id=dockview_dockview)
|
|
16
|
+
[](https://sonarcloud.io/summary/overall?id=dockview_dockview)
|
|
17
|
+
[](https://bundlephobia.com/result?p=dockview)
|
|
18
|
+
|
|
6
19
|
</div>
|
|
7
20
|
|
|
8
21
|
---
|
|
9
22
|
|
|
10
|
-
|
|
11
|
-
[](https://www.npmjs.com/package/dockview)
|
|
12
|
-
[](https://github.com/mathuo/dockview/actions?query=workflow%3ACI)
|
|
13
|
-
[](https://sonarcloud.io/summary/overall?id=mathuo_dockview)
|
|
14
|
-
[](https://sonarcloud.io/summary/overall?id=mathuo_dockview)
|
|
15
|
-
[](https://bundlephobia.com/result?p=dockview)
|
|
16
|
-
|
|
17
|
-
##
|
|
18
|
-
|
|
19
|
-

|
|
23
|
+

|
|
20
24
|
|
|
21
25
|
Please see the website: https://dockview.dev
|
|
22
26
|
|
|
@@ -36,7 +40,7 @@ Please see the website: https://dockview.dev
|
|
|
36
40
|
- High test coverage
|
|
37
41
|
- Documentation website with live examples
|
|
38
42
|
- Transparent builds and Code Analysis
|
|
39
|
-
- Security
|
|
43
|
+
- Security in mind - verified publishing and builds through GitHub Actions
|
|
40
44
|
|
|
41
45
|
## Quick Start
|
|
42
46
|
|
|
@@ -57,14 +61,15 @@ Import the stylesheet:
|
|
|
57
61
|
@import 'dockview/dist/styles/dockview.css';
|
|
58
62
|
```
|
|
59
63
|
|
|
60
|
-
Create a dockview instance:
|
|
64
|
+
Create a dockview instance and pass a theme:
|
|
61
65
|
|
|
62
66
|
```ts
|
|
63
|
-
import { DockviewComponent } from 'dockview';
|
|
67
|
+
import { DockviewComponent, themeDark } from 'dockview';
|
|
64
68
|
|
|
65
69
|
const element = document.getElementById('app');
|
|
66
70
|
|
|
67
71
|
const dockview = new DockviewComponent(element, {
|
|
72
|
+
theme: themeDark,
|
|
68
73
|
createComponent: (options) => {
|
|
69
74
|
switch (options.name) {
|
|
70
75
|
case 'my-component':
|
|
@@ -83,8 +88,6 @@ dockview.addPanel({
|
|
|
83
88
|
});
|
|
84
89
|
```
|
|
85
90
|
|
|
86
|
-
Apply a theme by adding a theme class (e.g. `dockview-theme-dark`) to a parent element.
|
|
87
|
-
|
|
88
91
|
See the [documentation](https://dockview.dev) for full examples.
|
|
89
92
|
|
|
90
93
|
Want to verify our builds? Go [here](https://www.npmjs.com/package/dockview#Provenance).
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
1
|
export * from 'dockview-core';
|
|
2
|
+
/**
|
|
3
|
+
* `dockview` is the recommended free entry point: a thin re-export of
|
|
4
|
+
* `dockview-core`. The separable enterprise feature modules live in the
|
|
5
|
+
* separately-published `dockview-enterprise` package (which depends on and
|
|
6
|
+
* re-exports `dockview`); install that to opt into them.
|
|
7
|
+
*
|
|
8
|
+
* This module has no side effects (it's a pure re-export), so bundlers can
|
|
9
|
+
* fully tree-shake unused exports out of consumer builds.
|
|
10
|
+
*/
|