Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: separate component logic, add <MotionGroup> and tests #187

Merged
2 changes: 1 addition & 1 deletion docs/components/content/Illustration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ refs.forEach((ref, index) => {
y: 20,
transition: {
duration: 1500,
repeat: Infinity,
repeat: Number.POSITIVE_INFINITY,
ease: 'easeInOut',
repeatType: 'mirror',
},
Expand Down
2 changes: 1 addition & 1 deletion docs/components/content/Person.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ refs.forEach((ref, index) => {
y: 15,
transition: {
duration: 1500,
repeat: Infinity,
repeat: Number.POSITIVE_INFINITY,
ease: 'easeInOut',
repeatType: 'mirror',
},
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@vueuse/motion": "workspace:~"
},
"devDependencies": {
"@nuxt-themes/docus": "^1.12.0",
"nuxt": "^3.5.1"
"@nuxt-themes/docus": "^1.15.0",
"nuxt": "^3.11.2"
}
}
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,22 @@
"vue": ">=3.0.0"
},
"dependencies": {
"@vueuse/core": "^10.1.2",
"@vueuse/shared": "^10.1.2",
"csstype": "^3.1.2",
"@vueuse/core": "^10.9.0",
"@vueuse/shared": "^10.9.0",
"csstype": "^3.1.3",
"framesync": "^6.1.2",
"popmotion": "^11.0.5",
"style-value-types": "^5.1.2"
},
"optionalDependencies": {
"@nuxt/kit": "^3.5.1"
"@nuxt/kit": "^3.11.2"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.3",
"@nuxt/kit": "^3.5.1",
"@nuxt/kit": "^3.11.2",
"@nuxt/schema": "^3.11.2",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"@vitest/coverage-c8": "^0.31.1",
"@vitest/coverage-v8": "^1.5.0",
"@vue/test-utils": "^2.3.2",
"chokidar": "^3.5.3",
"eslint": "^8.41.0",
Expand All @@ -99,11 +100,11 @@
"happy-dom": "^9.20.3",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"typescript": "^5.0.4",
"typescript": "^5.4.5",
"unbuild": "^2.0.0",
"vite": "4.3.8",
"vitest": "^0.31.1",
"vue": "^3.3.4",
"vitest": "^1.5.0",
"vue": "^3.4.23",
"yorkie": "^2.0.0"
},
"gitHooks": {
Expand Down
1 change: 0 additions & 1 deletion playgrounds/nuxt/.npmrc

This file was deleted.

4 changes: 3 additions & 1 deletion playgrounds/nuxt/app.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<template>
<NuxtPage />
<div>
<NuxtPage />
</div>
</template>
3 changes: 3 additions & 0 deletions playgrounds/nuxt/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { resolve } from 'node:path'

export default defineNuxtConfig({
features: {
devLogs: false,
},
css: ['~/assets/pico.css'],
alias: {
'@vueuse/motion': resolve(__dirname, '../../src/index.ts'),
Expand Down
4 changes: 2 additions & 2 deletions playgrounds/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@vueuse/motion": "workspace:~"
},
"devDependencies": {
"@nuxt/content": "^2.6.0",
"nuxt": "^3.5.1"
"@nuxt/content": "^2.12.1",
"nuxt": "^3.11.2"
}
}
2 changes: 1 addition & 1 deletion playgrounds/vite/src/demos/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const codeText = computed(() => basic(input.value))
watch(input, (newVal) => {
if (motions.editor) {
motions.editor.apply({
rotate: parseInt(newVal),
rotate: Number.parseInt(newVal),
})
}
})
Expand Down
Loading
Loading