@studio-freight/react-locomotive-scroll
Advanced tools
Comparing version 0.1.8 to 0.2.0
// 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 { 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.1.8", | ||
"version": "0.2.0", | ||
"description": "A locomotive-scroll React wrapper", | ||
@@ -24,3 +24,3 @@ "main": "module/index.js", | ||
"format": "prettier --debug-check lib/**/*.{ts,tsx}", | ||
"prepare": "yarn lint && yarn format && yarn build", | ||
"prepare": "pnpm lint && pnpm format && pnpm build", | ||
"release": "dotenv release-it --" | ||
@@ -30,3 +30,3 @@ }, | ||
"hooks": { | ||
"pre-commit": "yarn lint && yarn format && lint-staged", | ||
"pre-commit": "pnpm lint && pnpm format && lint-staged", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
@@ -48,2 +48,3 @@ "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true" | ||
"dependencies": { | ||
"tslib": "^2.3.1", | ||
"use-debounce": "^7.0.0", | ||
@@ -53,8 +54,8 @@ "use-resize-observer": "^8.0.0" | ||
"devDependencies": { | ||
"@commitlint/cli": "^13.1.0", | ||
"@commitlint/config-conventional": "^13.1.0", | ||
"@commitlint/cli": "^13.2.0", | ||
"@commitlint/config-conventional": "^13.2.0", | ||
"@release-it/conventional-changelog": "^3.3.0", | ||
"@types/react": "^17.0.19", | ||
"@typescript-eslint/eslint-plugin": "^4.30.0", | ||
"@typescript-eslint/parser": "^4.30.0", | ||
"@types/react": "^17.0.26", | ||
"@typescript-eslint/eslint-plugin": "^4.32.0", | ||
"@typescript-eslint/parser": "^4.32.0", | ||
"commitizen": "^4.2.4", | ||
@@ -66,11 +67,11 @@ "dotenv-cli": "^4.0.0", | ||
"lint-staged": "^11.1.2", | ||
"prettier": "^2.3.2", | ||
"prettier-plugin-organize-imports": "^2.3.3", | ||
"release-it": "^14.11.5", | ||
"typescript": "^4.4.2" | ||
"prettier": "^2.4.1", | ||
"prettier-plugin-organize-imports": "^2.3.4", | ||
"release-it": "^14.11.6", | ||
"typescript": "^4.4.3" | ||
}, | ||
"peerDependencies": { | ||
"locomotive-scroll": "^4.1.1", | ||
"@studio-freight/locomotive-scroll": "^0.0.1", | ||
"react": "^17.0.2" | ||
} | ||
} |
@@ -46,4 +46,2 @@ <!-- PROJECT LOGO --> | ||
## This is a fork of react-locomotive-scroll with updates dependencies only. | ||
## Getting Started | ||
@@ -151,3 +149,3 @@ | ||
<!-- CONTACT --> | ||
## based in the amazing work by: | ||
## Contact | ||
@@ -154,0 +152,0 @@ Antoine Lin - [@vahilloff](https://twitter.com/vahilloff) - contact@antoinelin.com |
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
22308
357
5
182
+ Addedtslib@^2.3.1
+ Added@studio-freight/locomotive-scroll@0.0.1(transitive)
+ Addedtslib@2.8.1(transitive)
- Removedlocomotive-scroll@4.1.4(transitive)