@studio-freight/react-locomotive-scroll
Advanced tools
Comparing version 0.3.1 to 0.3.3
// Credits: https://github.com/locomotivemtl/locomotive-scroll/pull/38/commits/8a112a4ec21fa7262372123262e15a82ddf053b7 | ||
declare module '@studio-freight/locomotive-scroll' { | ||
declare module 'locomotive-scroll' { | ||
export function getParents(elem: Element): Element[] | ||
@@ -5,0 +5,0 @@ export function queryClosestParent(elem: Element, selector: string): Element | null |
@@ -1,4 +0,4 @@ | ||
export type { LocomotiveScrollOptions, Scroll, ScrollInstance } from '@studio-freight/locomotive-scroll'; | ||
export type { LocomotiveScrollOptions, Scroll, ScrollInstance } from 'locomotive-scroll'; | ||
export { LocomotiveScrollContext, LocomotiveScrollProvider } from './LocomotiveScroll.context'; | ||
export type { LocomotiveScrollContextValue, LocomotiveScrollProviderProps } from './LocomotiveScroll.context'; | ||
export { useLocomotiveScroll } from './useLocomotiveScroll.hook'; |
@@ -1,2 +0,2 @@ | ||
import { LocomotiveScrollOptions, Scroll } from '@studio-freight/locomotive-scroll'; | ||
import { LocomotiveScrollOptions, Scroll } from 'locomotive-scroll'; | ||
import { DependencyList, MutableRefObject } from 'react'; | ||
@@ -3,0 +3,0 @@ export interface LocomotiveScrollContextValue { |
@@ -25,3 +25,3 @@ "use strict"; | ||
try { | ||
const LocomotiveScroll = (yield Promise.resolve().then(() => (0, tslib_1.__importStar)(require('@studio-freight/locomotive-scroll')))).default; | ||
const LocomotiveScroll = (yield Promise.resolve().then(() => (0, tslib_1.__importStar)(require('locomotive-scroll')))).default; | ||
const dataScrollContainer = document.querySelector('[data-scroll-container]'); | ||
@@ -28,0 +28,0 @@ if (!dataScrollContainer) { |
{ | ||
"name": "@studio-freight/react-locomotive-scroll", | ||
"version": "0.3.1", | ||
"version": "0.3.3", | ||
"description": "A locomotive-scroll React wrapper", | ||
@@ -50,7 +50,7 @@ "main": "module/index.js", | ||
"dependencies": { | ||
"locomotive-scroll": "^4.1.3", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"use-debounce": "^7.0.1", | ||
"use-resize-observer": "^8.0.0", | ||
"@studio-freight/locomotive-scroll": "^0.0.2" | ||
"use-resize-observer": "^8.0.0" | ||
}, | ||
@@ -57,0 +57,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22532
+ Addedlocomotive-scroll@^4.1.3
+ Addedlocomotive-scroll@4.1.4(transitive)
- Removed@studio-freight/locomotive-scroll@0.0.2(transitive)