Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@studio-freight/react-locomotive-scroll

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@studio-freight/react-locomotive-scroll - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

lib/@types/locomotive-scroll.d.ts
// 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc