From 1caf016a00907690901d82bfa858eefcd1ff4db4 Mon Sep 17 00:00:00 2001 From: smastrom Date: Wed, 1 Nov 2023 21:38:36 +0100 Subject: [PATCH] release 1.4.4 --- demo/middleware/push.global.ts | 5 +++++ packages/notivue/core/createStore.ts | 6 +++--- packages/notivue/nuxt/module.json | 2 +- packages/notivue/package.json | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 demo/middleware/push.global.ts diff --git a/demo/middleware/push.global.ts b/demo/middleware/push.global.ts new file mode 100644 index 0000000..72d340e --- /dev/null +++ b/demo/middleware/push.global.ts @@ -0,0 +1,5 @@ +export default defineNuxtRouteMiddleware(() => { + const push = usePush() + + push.info('Welcome to Notivue! Use the controls below to test it out.') +}) diff --git a/packages/notivue/core/createStore.ts b/packages/notivue/core/createStore.ts index fb19933..217b621 100644 --- a/packages/notivue/core/createStore.ts +++ b/packages/notivue/core/createStore.ts @@ -194,9 +194,6 @@ export function createAnimationsSlice( const isReduced = this.isReducedMotion.value || type === TType.IMMEDIATE const leaveClass = config.animations.value.leave - const { duration: transitionDuration, easing: transitionTimingFunction } = - this.getTransitionData() - let accPrevHeights = 0 for (const el of elements.getSortedItems()) { @@ -205,6 +202,9 @@ export function createAnimationsSlice( if (!el || !item || item.animationAttrs.class === leaveClass) continue + const { duration: transitionDuration, easing: transitionTimingFunction } = + this.getTransitionData() + items.update(id, { positionStyles: { willChange: 'transform', diff --git a/packages/notivue/nuxt/module.json b/packages/notivue/nuxt/module.json index 773b812..e68d54c 100644 --- a/packages/notivue/nuxt/module.json +++ b/packages/notivue/nuxt/module.json @@ -1,5 +1,5 @@ { "name": "notivue/nuxt", "configKey": "notivue", - "version": "1.4.3" + "version": "1.4.4" } diff --git a/packages/notivue/package.json b/packages/notivue/package.json index 344c295..d01db4e 100644 --- a/packages/notivue/package.json +++ b/packages/notivue/package.json @@ -1,6 +1,6 @@ { "name": "notivue", - "version": "1.4.3", + "version": "1.4.4", "private": false, "description": "Fully-featured toast notification system for Vue and Nuxt", "keywords": [