@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?: string
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 as string) || { code: props.code, supported: false }
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)
@@ -7,6 +7,7 @@ const props = withDefaults(
7
7
  icon?: string
8
8
  placeholder?: string
9
9
  disabled?: boolean
10
+ autofocus?: boolean
10
11
  type?: string
11
12
  }>(),
12
13
  {
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "devtools-ui-kit",
3
3
  "configKey": "devtoolsUIKit",
4
- "version": "0.6.7"
4
+ "version": "0.7.1"
5
5
  }
@@ -1 +1 @@
1
- export declare const devToolsClient: import("vue").Ref<import("@nuxt/devtools-kit/src/_types/client-api").NuxtDevtoolsIframeClient | undefined>;
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.6.7",
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.6.7"
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.80",
33
- "@nuxt/kit": "^3.6.1",
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.4",
36
- "@unocss/nuxt": "^0.53.4",
37
- "@unocss/preset-attributify": "^0.53.4",
38
- "@unocss/preset-icons": "^0.53.4",
39
- "@unocss/preset-mini": "^0.53.4",
40
- "@unocss/reset": "^0.53.4",
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.1",
46
- "unocss": "^0.53.4",
45
+ "focus-trap": "^7.5.2",
46
+ "unocss": "^0.53.6",
47
47
  "v-lazy-show": "^0.2.3",
48
- "@nuxt/devtools-kit": "0.6.7",
49
- "@nuxt/devtools": "0.6.7"
48
+ "@nuxt/devtools": "0.7.1",
49
+ "@nuxt/devtools-kit": "0.7.1"
50
50
  },
51
51
  "devDependencies": {
52
- "nuxt": "^3.6.1"
52
+ "nuxt": "^3.6.5"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"