From 437e9106b7a9272d8f2b89e1844411377a687145 Mon Sep 17 00:00:00 2001 From: System Administrator Date: Mon, 11 Sep 2023 16:27:25 +0300 Subject: [PATCH 1/2] chore: release v1.0.1-beta.0 --- packages/nuxt-ui-vue/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt-ui-vue/package.json b/packages/nuxt-ui-vue/package.json index 5e44521..ae1353f 100755 --- a/packages/nuxt-ui-vue/package.json +++ b/packages/nuxt-ui-vue/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-ui-vue", - "version": "1.0.0", + "version": "1.0.1-beta.0", "private": false, "exports": { ".": { From 223ebd2bfc1486880a474340bf5d89515b95c709 Mon Sep 17 00:00:00 2001 From: System Administrator Date: Tue, 12 Sep 2023 16:39:20 +0300 Subject: [PATCH 2/2] feat: export composables --- packages/nuxt-ui-vue/src/composables/useShortcuts.ts | 3 +-- packages/nuxt-ui-vue/src/index.ts | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/nuxt-ui-vue/src/composables/useShortcuts.ts b/packages/nuxt-ui-vue/src/composables/useShortcuts.ts index d1d06d5..1907c1d 100755 --- a/packages/nuxt-ui-vue/src/composables/useShortcuts.ts +++ b/packages/nuxt-ui-vue/src/composables/useShortcuts.ts @@ -1,10 +1,9 @@ -import process from 'node:process' import { createSharedComposable, useActiveElement } from '@vueuse/core' import { computed, onMounted, ref } from 'vue' import type {} from '@vueuse/shared' export function _useShortcuts() { - const macOS = computed(() => process?.client && navigator && navigator.userAgent && navigator.userAgent.match(/Macintosh;/)) + const macOS = computed(() => navigator && navigator.userAgent && navigator.userAgent.match(/Macintosh;/)) const metaSymbol = ref(' ') diff --git a/packages/nuxt-ui-vue/src/index.ts b/packages/nuxt-ui-vue/src/index.ts index bfca085..ce90396 100755 --- a/packages/nuxt-ui-vue/src/index.ts +++ b/packages/nuxt-ui-vue/src/index.ts @@ -2,6 +2,12 @@ export * from './components' export { default as createUI } from './plugin' +export { defineShortcuts } from '@/composables/defineShortcuts' + +export { useCopyToClipboard } from '@/composables/useCopyToClipboard' + +export { useShortcuts } from '@/composables/useShortcuts' + export { default as useToast } from '@/composables/useToast' export { NuxtUIVueComponentResolver } from '@/componentResolver'