@studio-freight/react-locomotive-scroll
Advanced tools
Comparing version 0.3.0 to 0.3.1
// Credits: https://github.com/locomotivemtl/locomotive-scroll/pull/38/commits/8a112a4ec21fa7262372123262e15a82ddf053b7 | ||
declare module 'locomotive-scroll' { | ||
declare module '@studio-freight/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 'locomotive-scroll'; | ||
export type { LocomotiveScrollOptions, Scroll, ScrollInstance } from '@studio-freight/locomotive-scroll'; | ||
export { LocomotiveScrollContext, LocomotiveScrollProvider } from './LocomotiveScroll.context'; | ||
export type { LocomotiveScrollContextValue, LocomotiveScrollProviderProps, } from './LocomotiveScroll.context'; | ||
export type { LocomotiveScrollContextValue, LocomotiveScrollProviderProps } from './LocomotiveScroll.context'; | ||
export { useLocomotiveScroll } from './useLocomotiveScroll.hook'; |
@@ -1,2 +0,2 @@ | ||
import { LocomotiveScrollOptions, Scroll } from 'locomotive-scroll'; | ||
import { LocomotiveScrollOptions, Scroll } from '@studio-freight/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('locomotive-scroll')))).default; | ||
const LocomotiveScroll = (yield Promise.resolve().then(() => (0, tslib_1.__importStar)(require('@studio-freight/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.0", | ||
"version": "0.3.1", | ||
"description": "A locomotive-scroll React wrapper", | ||
@@ -50,6 +50,7 @@ "main": "module/index.js", | ||
"dependencies": { | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"use-debounce": "^7.0.1", | ||
"use-resize-observer": "^8.0.0", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
"@studio-freight/locomotive-scroll": "^0.0.2" | ||
}, | ||
@@ -74,5 +75,2 @@ "devDependencies": { | ||
}, | ||
"peerDependencies": { | ||
"@studio-freight/locomotive-scroll": "^0.0.2" | ||
}, | ||
"bugs": { | ||
@@ -85,2 +83,2 @@ "url": "https://github.com/toinelin/react-locomotive-scroll/issues" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22660