@nuxt/devtools-ui-kit 1.3.14 → 1.4.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/dist/assets/styles.css +1 -91
- package/dist/components/NCodeBlock.vue +1 -14
- package/dist/components/NSectionBlock.vue +1 -21
- package/dist/components/NSplitPane.vue +1 -36
- package/dist/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +2 -2
- package/dist/runtime/client.d.ts +0 -1
- package/dist/runtime/client.js +2 -0
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +6 -6
package/dist/assets/styles.css
CHANGED
|
@@ -1,91 +1 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--nui-c-context: 125, 125, 125;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
html {
|
|
6
|
-
background-color: white;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
html.dark {
|
|
10
|
-
color-scheme: dark;
|
|
11
|
-
background-color: #151515;
|
|
12
|
-
color: white;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
::selection {
|
|
16
|
-
background: #8884;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* Shiki */
|
|
20
|
-
.shiki .line {
|
|
21
|
-
position: relative;
|
|
22
|
-
display: inline-block;
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.shiki.diff .line > span {
|
|
27
|
-
opacity: 0.75;
|
|
28
|
-
filter: saturate(0.75);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.shiki.diff .line-added,
|
|
32
|
-
.shiki.diff .line-removed {
|
|
33
|
-
scroll-margin: 5em;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.shiki.diff .line-added > span,
|
|
37
|
-
.shiki.diff .line-removed > span {
|
|
38
|
-
opacity: 1 !important;
|
|
39
|
-
z-index: 100;
|
|
40
|
-
position: inherit;
|
|
41
|
-
scroll-margin: 20px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.shiki.diff .line-added > span {
|
|
45
|
-
color: #218c3b !important;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.shiki.diff .line-removed > span {
|
|
49
|
-
color: #d15547 !important;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.shiki .line-added:after {
|
|
53
|
-
content: '';
|
|
54
|
-
background-color: #43885420;
|
|
55
|
-
display: block;
|
|
56
|
-
position: absolute;
|
|
57
|
-
left: 0;
|
|
58
|
-
right: 0;
|
|
59
|
-
top: 0;
|
|
60
|
-
bottom: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.shiki .line-removed:after {
|
|
64
|
-
content: '';
|
|
65
|
-
background-color: #8f4c3926;
|
|
66
|
-
display: block;
|
|
67
|
-
position: absolute;
|
|
68
|
-
left: 0;
|
|
69
|
-
right: 0;
|
|
70
|
-
top: 0;
|
|
71
|
-
bottom: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* Color Mode transition */
|
|
75
|
-
::view-transition-old(root),
|
|
76
|
-
::view-transition-new(root) {
|
|
77
|
-
animation: none;
|
|
78
|
-
mix-blend-mode: normal;
|
|
79
|
-
}
|
|
80
|
-
::view-transition-old(root) {
|
|
81
|
-
z-index: 1;
|
|
82
|
-
}
|
|
83
|
-
::view-transition-new(root) {
|
|
84
|
-
z-index: 2147483646;
|
|
85
|
-
}
|
|
86
|
-
.dark::view-transition-old(root) {
|
|
87
|
-
z-index: 2147483646;
|
|
88
|
-
}
|
|
89
|
-
.dark::view-transition-new(root) {
|
|
90
|
-
z-index: 1;
|
|
91
|
-
}
|
|
1
|
+
:root{--nui-c-context:125,125,125}html{background-color:#fff}html.dark{background-color:#151515;color:#fff;color-scheme:dark}::-moz-selection{background:#8884}::selection{background:#8884}.shiki .line{display:inline-block;position:relative;width:100%}.shiki.diff .line>span{filter:saturate(.75);opacity:.75}.shiki.diff .line-added,.shiki.diff .line-removed{scroll-margin:5em}.shiki.diff .line-added>span,.shiki.diff .line-removed>span{opacity:1!important;position:inherit;scroll-margin:20px;z-index:100}.shiki.diff .line-added>span{color:#218c3b!important}.shiki.diff .line-removed>span{color:#d15547!important}.shiki .line-added:after{background-color:#43885420}.shiki .line-added:after,.shiki .line-removed:after{bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.shiki .line-removed:after{background-color:#8f4c3926}::view-transition-new(root),::view-transition-old(root){animation:none;mix-blend-mode:normal}::view-transition-old(root){z-index:1}::view-transition-new(root){z-index:2147483646}.dark::view-transition-old(root){z-index:2147483646}.dark::view-transition-new(root){z-index:1}
|
|
@@ -47,18 +47,5 @@ const rendered = computed(() => {
|
|
|
47
47
|
</template>
|
|
48
48
|
|
|
49
49
|
<style>
|
|
50
|
-
.n-code-block-lines .shiki code {
|
|
51
|
-
counter-reset: step;
|
|
52
|
-
counter-increment: step calc(var(--start, 1) - 1);
|
|
53
|
-
}
|
|
54
|
-
.n-code-block-lines .shiki code .line::before {
|
|
55
|
-
content: counter(step);
|
|
56
|
-
counter-increment: step;
|
|
57
|
-
width: 2.5rem;
|
|
58
|
-
padding-right: 0.5rem;
|
|
59
|
-
margin-right: 0.5rem;
|
|
60
|
-
display: inline-block;
|
|
61
|
-
text-align: right;
|
|
62
|
-
--at-apply: text-truegray: 50;
|
|
63
|
-
}
|
|
50
|
+
.n-code-block-lines .shiki code{counter-increment:step calc(var(--start, 1) - 1);counter-reset:step}.n-code-block-lines .shiki code .line:before{content:counter(step);counter-increment:step;display:inline-block;margin-right:.5rem;padding-right:.5rem;text-align:right;width:2.5rem;--at-apply:text-truegray:50}
|
|
64
51
|
</style>
|
|
@@ -73,25 +73,5 @@ function onToggle(e: any) {
|
|
|
73
73
|
</template>
|
|
74
74
|
|
|
75
75
|
<style scoped>
|
|
76
|
-
details {
|
|
77
|
-
--at-apply: border-none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
summary {
|
|
81
|
-
--at-apply: border-none;
|
|
82
|
-
list-style: none;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
details[open] summary {
|
|
86
|
-
--at-apply: border-none;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
details summary::-webkit-details-marker {
|
|
90
|
-
display: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
details[open] .chevron {
|
|
94
|
-
transform: rotate(180deg);
|
|
95
|
-
opacity: 0.75;
|
|
96
|
-
}
|
|
76
|
+
details,summary{--at-apply:border-none}summary{list-style:none}details[open] summary{--at-apply:border-none}details summary::-webkit-details-marker{display:none}details[open] .chevron{opacity:.75;transform:rotate(180deg)}
|
|
97
77
|
</style>
|
|
@@ -43,40 +43,5 @@ const size = key
|
|
|
43
43
|
</template>
|
|
44
44
|
|
|
45
45
|
<style>
|
|
46
|
-
.splitpanes__splitter {
|
|
47
|
-
position: relative;
|
|
48
|
-
}
|
|
49
|
-
.splitpanes__splitter:before {
|
|
50
|
-
position: absolute;
|
|
51
|
-
left: 0;
|
|
52
|
-
top: 0;
|
|
53
|
-
transition: 0.2s ease;
|
|
54
|
-
content: '';
|
|
55
|
-
transition: opacity 0.4s;
|
|
56
|
-
z-index: 1;
|
|
57
|
-
}
|
|
58
|
-
.splitpanes__splitter:hover:before {
|
|
59
|
-
background: #8881;
|
|
60
|
-
opacity: 1;
|
|
61
|
-
}
|
|
62
|
-
.splitpanes--vertical > .splitpanes__splitter {
|
|
63
|
-
min-width: 0 !important;
|
|
64
|
-
width: 0 !important;
|
|
65
|
-
--at-apply: border-r border-base;
|
|
66
|
-
}
|
|
67
|
-
.splitpanes--horizontal > .splitpanes__splitter {
|
|
68
|
-
min-height: 0 !important;
|
|
69
|
-
height: 0 !important;
|
|
70
|
-
--at-apply: border-t border-base;
|
|
71
|
-
}
|
|
72
|
-
.splitpanes--vertical > .splitpanes__splitter:before {
|
|
73
|
-
left: -5px;
|
|
74
|
-
right: -4px;
|
|
75
|
-
height: 100%;
|
|
76
|
-
}
|
|
77
|
-
.splitpanes--horizontal > .splitpanes__splitter:before {
|
|
78
|
-
top: -5px;
|
|
79
|
-
bottom: -4px;
|
|
80
|
-
width: 100%;
|
|
81
|
-
}
|
|
46
|
+
.splitpanes__splitter{position:relative}.splitpanes__splitter:before{content:"";left:0;position:absolute;top:0;transition:.2s ease;transition:opacity .4s;z-index:1}.splitpanes__splitter:hover:before{background:#8881;opacity:1}.splitpanes--vertical>.splitpanes__splitter{min-width:0!important;width:0!important;--at-apply:border-r border-base}.splitpanes--horizontal>.splitpanes__splitter{height:0!important;min-height:0!important;--at-apply:border-t border-base}.splitpanes--vertical>.splitpanes__splitter:before{height:100%;left:-5px;right:-4px}.splitpanes--horizontal>.splitpanes__splitter:before{bottom:-4px;top:-5px;width:100%}
|
|
82
47
|
</style>
|
package/dist/module.d.mts
CHANGED
|
@@ -7,6 +7,6 @@ interface ModuleOptions {
|
|
|
7
7
|
dev?: boolean;
|
|
8
8
|
preset?: string;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
10
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
11
11
|
|
|
12
12
|
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ interface ModuleOptions {
|
|
|
7
7
|
dev?: boolean;
|
|
8
8
|
preset?: string;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
10
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
11
11
|
|
|
12
12
|
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/dist/runtime/client.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const devToolsClient: import("vue").Ref<import("@nuxt/devtools-kit/dist/types").NuxtDevtoolsIframeClient | undefined>;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module.js'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['devtoolsUIKit']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['devtoolsUIKit']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['devtoolsUIKit']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['devtoolsUIKit']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { unocssPreset } from './module.js'
|
|
1
|
+
export { type unocssPreset } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['devtoolsUIKit']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['devtoolsUIKit']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['devtoolsUIKit']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['devtoolsUIKit']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { unocssPreset } from './module'
|
|
1
|
+
export { type unocssPreset } from './module'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-ui-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://devtools.nuxt.com/module/ui-kit",
|
|
7
7
|
"repository": {
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@nuxt/devtools": "1.
|
|
31
|
+
"@nuxt/devtools": "1.4.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@iconify-json/carbon": "^1.1.37",
|
|
35
35
|
"@iconify-json/logos": "^1.1.44",
|
|
36
36
|
"@iconify-json/ri": "^1.1.22",
|
|
37
37
|
"@iconify-json/tabler": "^1.1.120",
|
|
38
|
-
"@nuxt/kit": "^3.
|
|
38
|
+
"@nuxt/kit": "^3.13.0",
|
|
39
39
|
"@unocss/core": "^0.62.2",
|
|
40
40
|
"@unocss/nuxt": "^0.62.2",
|
|
41
41
|
"@unocss/preset-attributify": "^0.62.2",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"splitpanes": "^3.1.5",
|
|
51
51
|
"unocss": "^0.62.2",
|
|
52
52
|
"v-lazy-show": "^0.2.4",
|
|
53
|
-
"@nuxt/devtools-kit": "1.
|
|
53
|
+
"@nuxt/devtools-kit": "1.4.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"nuxt": "^3.
|
|
57
|
-
"@nuxt/devtools": "1.
|
|
56
|
+
"nuxt": "^3.13.0",
|
|
57
|
+
"@nuxt/devtools": "1.4.0"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|