@nuxt/devtools-ui-kit 0.6.7 → 0.7.1
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.
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
// This components requires to run in DevTools to render correctly
|
|
3
3
|
import { computed, nextTick } from 'vue'
|
|
4
|
+
import type { Lang } from 'shiki-es'
|
|
4
5
|
import { devToolsClient } from '../runtime/client'
|
|
5
6
|
|
|
6
7
|
const props = withDefaults(
|
|
7
8
|
defineProps<{
|
|
8
9
|
code: string
|
|
9
|
-
lang?:
|
|
10
|
+
lang?: Lang
|
|
10
11
|
lines?: boolean
|
|
11
12
|
transformRendered?: (code: string) => string
|
|
12
13
|
}>(), {
|
|
@@ -17,7 +18,7 @@ const props = withDefaults(
|
|
|
17
18
|
const emit = defineEmits(['loaded'])
|
|
18
19
|
|
|
19
20
|
const rendered = computed(() => {
|
|
20
|
-
const result = devToolsClient.value?.devtools.renderCodeHighlight(props.code, props.lang
|
|
21
|
+
const result = devToolsClient.value?.devtools.renderCodeHighlight(props.code, props.lang) || { code: props.code, supported: false }
|
|
21
22
|
if (result.supported && props.transformRendered)
|
|
22
23
|
result.code = props.transformRendered(result.code)
|
|
23
24
|
if (result.supported)
|
package/dist/module.json
CHANGED
package/dist/runtime/client.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const devToolsClient: import("vue").Ref<import("@nuxt/devtools-kit/
|
|
1
|
+
export declare const devToolsClient: import("vue").Ref<import("@nuxt/devtools-kit/dist/types").NuxtDevtoolsIframeClient | undefined>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-ui-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "nuxt/devtools",
|
|
7
7
|
"exports": {
|
|
@@ -23,33 +23,33 @@
|
|
|
23
23
|
"*.cjs"
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@nuxt/devtools": "0.
|
|
26
|
+
"@nuxt/devtools": "0.7.1"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@iconify-json/carbon": "^1.1.18",
|
|
30
30
|
"@iconify-json/logos": "^1.1.33",
|
|
31
31
|
"@iconify-json/ri": "^1.1.10",
|
|
32
|
-
"@iconify-json/tabler": "^1.1.
|
|
33
|
-
"@nuxt/kit": "^3.6.
|
|
32
|
+
"@iconify-json/tabler": "^1.1.83",
|
|
33
|
+
"@nuxt/kit": "^3.6.5",
|
|
34
34
|
"@nuxtjs/color-mode": "^3.3.0",
|
|
35
|
-
"@unocss/core": "^0.53.
|
|
36
|
-
"@unocss/nuxt": "^0.53.
|
|
37
|
-
"@unocss/preset-attributify": "^0.53.
|
|
38
|
-
"@unocss/preset-icons": "^0.53.
|
|
39
|
-
"@unocss/preset-mini": "^0.53.
|
|
40
|
-
"@unocss/reset": "^0.53.
|
|
35
|
+
"@unocss/core": "^0.53.6",
|
|
36
|
+
"@unocss/nuxt": "^0.53.6",
|
|
37
|
+
"@unocss/preset-attributify": "^0.53.6",
|
|
38
|
+
"@unocss/preset-icons": "^0.53.6",
|
|
39
|
+
"@unocss/preset-mini": "^0.53.6",
|
|
40
|
+
"@unocss/reset": "^0.53.6",
|
|
41
41
|
"@vueuse/core": "^10.2.1",
|
|
42
42
|
"@vueuse/integrations": "^10.2.1",
|
|
43
43
|
"@vueuse/nuxt": "^10.2.1",
|
|
44
44
|
"defu": "^6.1.2",
|
|
45
|
-
"focus-trap": "^7.5.
|
|
46
|
-
"unocss": "^0.53.
|
|
45
|
+
"focus-trap": "^7.5.2",
|
|
46
|
+
"unocss": "^0.53.6",
|
|
47
47
|
"v-lazy-show": "^0.2.3",
|
|
48
|
-
"@nuxt/devtools
|
|
49
|
-
"@nuxt/devtools": "0.
|
|
48
|
+
"@nuxt/devtools": "0.7.1",
|
|
49
|
+
"@nuxt/devtools-kit": "0.7.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"nuxt": "^3.6.
|
|
52
|
+
"nuxt": "^3.6.5"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|