🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

nuxt-lenis

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-lenis - npm Package Compare versions

Comparing version

to
2.0.6

@@ -7,3 +7,3 @@ {

},
"version": "2.0.5"
"version": "2.0.6"
}
export declare function useLenis(): {
createLenis: any;
getLenis: any;
destroyLenis: any;
getScrollState: any;
createLenis: (id: string, options?: import("lenis").LenisOptions | undefined) => Lenis;
getLenis: (id?: string | undefined) => any;
destroyLenis: (id: string) => void;
scrollState: (id?: string | undefined) => import("../plugin").ScrollState | null;
watchScrollState: (callback: (state: any) => void, id?: string) => void;
};

@@ -0,2 +1,17 @@

import { Lenis } from "#imports";
import type { LenisOptions } from "lenis";
export type ScrollState = {
scroll: number;
velocity: number;
progress: number;
isScrolling: boolean;
direction: 1 | -1;
};
export interface LenisPlugin {
createLenis: (id: string, options?: LenisOptions) => Lenis;
getLenis: (id?: string) => Lenis | null;
destroyLenis: (id: string) => void;
getScrollState: (id?: string) => ScrollState | null;
}
declare const _default: any;
export default _default;
{
"name": "nuxt-lenis",
"version": "2.0.5",
"version": "2.0.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet