@studio-freight/react-locomotive-scroll
Advanced tools
Comparing version 0.2.0 to 0.2.1
// 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.2.0", | ||
"version": "0.2.1", | ||
"description": "A locomotive-scroll React wrapper", | ||
@@ -8,3 +8,4 @@ "main": "module/index.js", | ||
"typings": "module/index.d.ts", | ||
"repository": "git@github.com:studio-freight/react-locomotive-scroll.git", | ||
"repository": "git@github.com:toinelin/react-locomotive-scroll.git", | ||
"author": "Antoine <contact@antoinelin.com>", | ||
"license": "MIT", | ||
@@ -25,3 +26,3 @@ "keywords": [ | ||
"format": "prettier --debug-check lib/**/*.{ts,tsx}", | ||
"prepare": "pnpm lint && pnpm format && pnpm build", | ||
"prepare": "yarn lint && yarn format && yarn build", | ||
"release": "dotenv release-it --" | ||
@@ -31,3 +32,3 @@ }, | ||
"hooks": { | ||
"pre-commit": "pnpm lint && pnpm format && lint-staged", | ||
"pre-commit": "yarn lint && yarn format && lint-staged", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
@@ -49,3 +50,2 @@ "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true" | ||
"dependencies": { | ||
"tslib": "^2.3.1", | ||
"use-debounce": "^7.0.0", | ||
@@ -55,8 +55,8 @@ "use-resize-observer": "^8.0.0" | ||
"devDependencies": { | ||
"@commitlint/cli": "^13.2.0", | ||
"@commitlint/config-conventional": "^13.2.0", | ||
"@commitlint/cli": "^13.1.0", | ||
"@commitlint/config-conventional": "^13.1.0", | ||
"@release-it/conventional-changelog": "^3.3.0", | ||
"@types/react": "^17.0.26", | ||
"@typescript-eslint/eslint-plugin": "^4.32.0", | ||
"@typescript-eslint/parser": "^4.32.0", | ||
"@types/react": "^17.0.19", | ||
"@typescript-eslint/eslint-plugin": "^4.30.0", | ||
"@typescript-eslint/parser": "^4.30.0", | ||
"commitizen": "^4.2.4", | ||
@@ -68,11 +68,11 @@ "dotenv-cli": "^4.0.0", | ||
"lint-staged": "^11.1.2", | ||
"prettier": "^2.4.1", | ||
"prettier-plugin-organize-imports": "^2.3.4", | ||
"release-it": "^14.11.6", | ||
"typescript": "^4.4.3" | ||
"prettier": "^2.3.2", | ||
"prettier-plugin-organize-imports": "^2.3.3", | ||
"release-it": "^14.11.5", | ||
"typescript": "^4.4.2" | ||
}, | ||
"peerDependencies": { | ||
"@studio-freight/locomotive-scroll": "^0.0.1", | ||
"locomotive-scroll": "^4.1.1", | ||
"react": "^17.0.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
4
1
22191
353
+ Addedlocomotive-scroll@4.1.4(transitive)
- Removedtslib@^2.3.1
- Removed@studio-freight/locomotive-scroll@0.0.1(transitive)
- Removedtslib@2.8.1(transitive)