@nuxt/devtools-ui-kit 1.0.8 → 1.1.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.
@@ -19,7 +19,7 @@ withDefaults(defineProps<{
19
19
  <Component
20
20
  :is="to ? NuxtLink : 'button'"
21
21
  :to="to"
22
- v-bind="{ ...$attrs, ...(!to && { type }) }"
22
+ v-bind="{ ...$attrs, ...(!to && { type }), ...(disabled ? { disabled: true } : { tabindex: 0 }) }"
23
23
  :class="[
24
24
  { 'n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover': border },
25
25
  { 'n-icon-button': !$slots.default },
@@ -1,7 +1,7 @@
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 { BuiltinLanguage } from 'shikiji'
4
+ import type { BuiltinLanguage } from 'shiki'
5
5
  import { devToolsClient } from '../runtime/client'
6
6
 
7
7
  const props = withDefaults(
@@ -14,7 +14,6 @@ const isDark = computed<boolean>({
14
14
  })
15
15
 
16
16
  const isAppearanceTransition = typeof document !== 'undefined'
17
- // @ts-expect-error: Transition API
18
17
  && document.startViewTransition
19
18
  && !window.matchMedia('(prefers-reduced-motion: reduce)').matches
20
19
 
@@ -62,12 +62,12 @@ const size = key
62
62
  .splitpanes--vertical > .splitpanes__splitter {
63
63
  min-width: 0 !important;
64
64
  width: 0 !important;
65
- @apply border-r border-base;
65
+ --at-apply: border-r border-base;
66
66
  }
67
67
  .splitpanes--horizontal > .splitpanes__splitter {
68
68
  min-height: 0 !important;
69
69
  height: 0 !important;
70
- @apply border-t border-base;
70
+ --at-apply: border-t border-base;
71
71
  }
72
72
  .splitpanes--vertical > .splitpanes__splitter:before {
73
73
  left: -5px;
@@ -8,6 +8,7 @@ const props = withDefaults(
8
8
  placeholder?: string
9
9
  disabled?: boolean
10
10
  autofocus?: boolean
11
+ autocomplete?: string
11
12
  readonly?: boolean
12
13
  type?: string
13
14
  }>(),
@@ -0,0 +1,9 @@
1
+ export type DevtoolsUiShowNotificationPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
2
+ export declare function devtoolsUiShowNotification(data: {
3
+ message: string;
4
+ icon?: string;
5
+ classes?: string;
6
+ duration?: number;
7
+ position?: DevtoolsUiShowNotificationPosition;
8
+ }): void;
9
+ export declare function devtoolsUiProvideNotificationFn(fn: typeof devtoolsUiShowNotification): void;
@@ -0,0 +1,7 @@
1
+ let _devtoolsUiShowNotification;
2
+ export function devtoolsUiShowNotification(data) {
3
+ _devtoolsUiShowNotification?.(data);
4
+ }
5
+ export function devtoolsUiProvideNotificationFn(fn) {
6
+ _devtoolsUiShowNotification = fn;
7
+ }
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "devtools-ui-kit",
3
3
  "configKey": "devtoolsUIKit",
4
- "version": "1.0.8"
4
+ "version": "1.1.1"
5
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-ui-kit",
3
3
  "type": "module",
4
- "version": "1.0.8",
4
+ "version": "1.1.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://devtools.nuxt.com/module/ui-kit",
7
7
  "repository": {
@@ -28,34 +28,34 @@
28
28
  "dist"
29
29
  ],
30
30
  "peerDependencies": {
31
- "@nuxt/devtools": "1.0.8"
31
+ "@nuxt/devtools": "1.1.1"
32
32
  },
33
33
  "dependencies": {
34
- "@iconify-json/carbon": "^1.1.27",
34
+ "@iconify-json/carbon": "^1.1.31",
35
35
  "@iconify-json/logos": "^1.1.42",
36
- "@iconify-json/ri": "^1.1.18",
37
- "@iconify-json/tabler": "^1.1.103",
38
- "@nuxt/kit": "^3.9.1",
39
- "@nuxtjs/color-mode": "^3.3.2",
40
- "@unocss/core": "^0.58.3",
41
- "@unocss/nuxt": "^0.58.3",
42
- "@unocss/preset-attributify": "^0.58.3",
43
- "@unocss/preset-icons": "^0.58.3",
44
- "@unocss/preset-mini": "^0.58.3",
45
- "@unocss/reset": "^0.58.3",
46
- "@vueuse/core": "^10.7.1",
47
- "@vueuse/integrations": "^10.7.1",
48
- "@vueuse/nuxt": "^10.7.1",
36
+ "@iconify-json/ri": "^1.1.20",
37
+ "@iconify-json/tabler": "^1.1.109",
38
+ "@nuxt/kit": "^3.11.1",
39
+ "@nuxtjs/color-mode": "^3.3.3",
40
+ "@unocss/core": "^0.58.6",
41
+ "@unocss/nuxt": "^0.58.6",
42
+ "@unocss/preset-attributify": "^0.58.6",
43
+ "@unocss/preset-icons": "^0.58.6",
44
+ "@unocss/preset-mini": "^0.58.6",
45
+ "@unocss/reset": "^0.58.6",
46
+ "@vueuse/core": "^10.9.0",
47
+ "@vueuse/integrations": "^10.9.0",
48
+ "@vueuse/nuxt": "^10.9.0",
49
49
  "defu": "^6.1.4",
50
50
  "focus-trap": "^7.5.4",
51
51
  "splitpanes": "^3.1.5",
52
- "unocss": "^0.58.3",
52
+ "unocss": "^0.58.6",
53
53
  "v-lazy-show": "^0.2.4",
54
- "@nuxt/devtools-kit": "1.0.8"
54
+ "@nuxt/devtools-kit": "1.1.1"
55
55
  },
56
56
  "devDependencies": {
57
- "nuxt": "^3.9.1",
58
- "@nuxt/devtools": "1.0.8"
57
+ "nuxt": "^3.11.1",
58
+ "@nuxt/devtools": "1.1.1"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"