diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 21a9439..5ab8ce8 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -15,7 +15,7 @@ export default { // https://vitepress.dev/guide/extending-default-theme#layout-slots }) }, - enhanceApp({ app, router, siteData }) { + enhanceApp({ app }) { // ... app.component('demo-preview', AntDesignContainer) app.use(Button).use(Space).use(Input).use(Card) diff --git a/package.json b/package.json index e458996..21191e5 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "@vitepress-demo-preview/component": "^2.3.2", "@vitepress-demo-preview/plugin": "^1.2.3", "@vue/test-utils": "^2.4.6", + "@vueuse/core": "^11.1.0", "babel-jest": "^29.7.0", "chokidar": "^3.6.0", "commander": "^12.1.0", diff --git a/packages/hooks/src/useClipboard/index.ts b/packages/hooks/src/useClipboard/index.ts index fa8d95a..8cd46f0 100644 --- a/packages/hooks/src/useClipboard/index.ts +++ b/packages/hooks/src/useClipboard/index.ts @@ -9,7 +9,6 @@ export type clipboardOptions = { function useClipboard(defaultValue: Ref | string): clipboardOptions { const clipboardContent = ref(unref(defaultValue)); - console.log('🚀 ~ useClipboard ~ clipboardContent:', clipboardContent); const copyToClipboard = async (text: string) => { try { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fc8b57d..61c0878 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -87,6 +87,9 @@ importers: '@vue/test-utils': specifier: ^2.4.6 version: 2.4.6 + '@vueuse/core': + specifier: ^11.1.0 + version: 11.1.0(vue@3.4.38(typescript@5.5.3)) babel-jest: specifier: ^29.7.0 version: 29.7.0(@babel/core@7.24.9) @@ -1895,46 +1898,55 @@ packages: resolution: {integrity: sha512-P9bSiAUnSSM7EmyRK+e5wgpqai86QOSv8BwvkGjLwYuOpaeomiZWifEos517CwbG+aZl1T4clSE1YqqH2JRs+g==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.18.1': resolution: {integrity: sha512-5RnjpACoxtS+aWOI1dURKno11d7krfpGDEn19jI8BuWmSBbUC4ytIADfROM1FZrFhQPSoP+KEa3NlEScznBTyQ==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.18.1': resolution: {integrity: sha512-8mwmGD668m8WaGbthrEYZ9CBmPug2QPGWxhJxh/vCgBjro5o96gL04WLlg5BA233OCWLqERy4YUzX3bJGXaJgQ==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.18.1': resolution: {integrity: sha512-dJX9u4r4bqInMGOAQoGYdwDP8lQiisWb9et+T84l2WXk41yEej8v2iGKodmdKimT8cTAYt0jFb+UEBxnPkbXEQ==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-powerpc64le-gnu@4.18.1': resolution: {integrity: sha512-V72cXdTl4EI0x6FNmho4D502sy7ed+LuVW6Ym8aI6DRQ9hQZdp5sj0a2usYOlqvFBNKQnLQGwmYnujo2HvjCxQ==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.18.1': resolution: {integrity: sha512-f+pJih7sxoKmbjghrM2RkWo2WHUW8UbfxIQiWo5yeCaCM0TveMEuAzKJte4QskBp1TIinpnRcxkquY+4WuY/tg==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.18.1': resolution: {integrity: sha512-qb1hMMT3Fr/Qz1OKovCuUM11MUNLUuHeBC2DPPAWUYYUAOFWaxInaTwTQmc7Fl5La7DShTEpmYwgdt2hG+4TEg==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.18.1': resolution: {integrity: sha512-7O5u/p6oKUFYjRbZkL2FLbwsyoJAjyeXHCU3O4ndvzg2OFO2GinFPSJFGbiwFDaCFc+k7gs9CF243PwdPQFh5g==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.18.1': resolution: {integrity: sha512-pDLkYITdYrH/9Cv/Vlj8HppDuLMDUBmgsM0+N+xLtFd18aXgM9Nyqupb/Uw+HeidhfYg2lD6CXvz6CjoVOaKjQ==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.18.1': resolution: {integrity: sha512-W2ZNI323O/8pJdBGil1oCauuCzmVd9lDmWBBqxYZcOqWD6aWqJtVBQ1dFrF4dYpZPks6F+xCZHfzG5hYlSHZ6g==} @@ -2201,6 +2213,9 @@ packages: '@vueuse/core@10.11.0': resolution: {integrity: sha512-x3sD4Mkm7PJ+pcq3HX8PLPBadXCAlSDR/waK87dz0gQE+qJnaaFhc/dZVfJz+IUYzTMVGum2QlR7ImiJQN4s6g==} + '@vueuse/core@11.1.0': + resolution: {integrity: sha512-P6dk79QYA6sKQnghrUz/1tHi0n9mrb/iO1WTMk/ElLmTyNqgDeSZ3wcDf6fRBGzRJbeG1dxzEOvLENMjr+E3fg==} + '@vueuse/integrations@10.11.0': resolution: {integrity: sha512-Pp6MtWEIr+NDOccWd8j59Kpjy5YDXogXI61Kb1JxvSfVBO8NzFQkmrKmSZz47i+ZqHnIzxaT38L358yDHTncZg==} peerDependencies: @@ -2245,9 +2260,15 @@ packages: '@vueuse/metadata@10.11.0': resolution: {integrity: sha512-kQX7l6l8dVWNqlqyN3ePW3KmjCQO3ZMgXuBMddIu83CmucrsBfXlH+JoviYyRBws/yLTQO8g3Pbw+bdIoVm4oQ==} + '@vueuse/metadata@11.1.0': + resolution: {integrity: sha512-l9Q502TBTaPYGanl1G+hPgd3QX5s4CGnpXriVBR5fEZ/goI6fvDaVmIl3Td8oKFurOxTmbXvBPSsgrd6eu6HYg==} + '@vueuse/shared@10.11.0': resolution: {integrity: sha512-fyNoIXEq3PfX1L3NkNhtVQUSRtqYwJtJg+Bp9rIzculIZWHTkKSysujrOk2J+NrRulLTQH9+3gGSfYLWSEWU1A==} + '@vueuse/shared@11.1.0': + resolution: {integrity: sha512-YUtIpY122q7osj+zsNMFAfMTubGz0sn5QzE5gPzAIiCmtt2ha3uQUY1+JPyL4gRCTsLPX82Y9brNbo/aqlA91w==} + JSONStream@1.3.5: resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} hasBin: true @@ -5191,6 +5212,17 @@ packages: vue-component-type-helpers@2.0.29: resolution: {integrity: sha512-58i+ZhUAUpwQ+9h5Hck0D+jr1qbYl4voRt5KffBx8qzELViQ4XdT/Tuo+mzq8u63teAG8K0lLaOiL5ofqW38rg==} + vue-demi@0.14.10: + resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==} + engines: {node: '>=12'} + hasBin: true + peerDependencies: + '@vue/composition-api': ^1.0.0-rc.1 + vue: ^3.0.0-0 || ^2.6.0 + peerDependenciesMeta: + '@vue/composition-api': + optional: true + vue-demi@0.14.8: resolution: {integrity: sha512-Uuqnk9YE9SsWeReYqK2alDI5YzciATE0r2SkA6iMAtuXvNTMNACJLJEXNXaEy94ECuBe4Sk6RzRU80kjdbIo1Q==} engines: {node: '>=12'} @@ -7815,6 +7847,16 @@ snapshots: - '@vue/composition-api' - vue + '@vueuse/core@11.1.0(vue@3.4.38(typescript@5.5.3))': + dependencies: + '@types/web-bluetooth': 0.0.20 + '@vueuse/metadata': 11.1.0 + '@vueuse/shared': 11.1.0(vue@3.4.38(typescript@5.5.3)) + vue-demi: 0.14.10(vue@3.4.38(typescript@5.5.3)) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + '@vueuse/integrations@10.11.0(async-validator@4.2.5)(focus-trap@7.5.4)(vue@3.4.38(typescript@5.5.3))': dependencies: '@vueuse/core': 10.11.0(vue@3.4.38(typescript@5.5.3)) @@ -7829,6 +7871,8 @@ snapshots: '@vueuse/metadata@10.11.0': {} + '@vueuse/metadata@11.1.0': {} + '@vueuse/shared@10.11.0(vue@3.4.38(typescript@5.5.3))': dependencies: vue-demi: 0.14.8(vue@3.4.38(typescript@5.5.3)) @@ -7836,6 +7880,13 @@ snapshots: - '@vue/composition-api' - vue + '@vueuse/shared@11.1.0(vue@3.4.38(typescript@5.5.3))': + dependencies: + vue-demi: 0.14.10(vue@3.4.38(typescript@5.5.3)) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + JSONStream@1.3.5: dependencies: jsonparse: 1.3.1 @@ -11161,6 +11212,10 @@ snapshots: vue-component-type-helpers@2.0.29: {} + vue-demi@0.14.10(vue@3.4.38(typescript@5.5.3)): + dependencies: + vue: 3.4.38(typescript@5.5.3) + vue-demi@0.14.8(vue@3.4.38(typescript@5.5.3)): dependencies: vue: 3.4.38(typescript@5.5.3)