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

@regrapes/react-breakpoint-hooks

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@regrapes/react-breakpoint-hooks - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

dist/BreakpointProvider.d.ts

32

dist/index.d.ts

@@ -1,29 +0,3 @@

/// <reference types="react" />
declare module "BreakpointProvider" {
import { FC } from "react";
export interface BreakpointVariant {
exact: boolean;
down: boolean;
up: boolean;
}
interface BreakpointContextProps {
isScreenXS: BreakpointVariant;
isScreenSM: BreakpointVariant;
isScreenMD: BreakpointVariant;
isScreenLG: BreakpointVariant;
isScreenXL: BreakpointVariant;
}
export interface BreakpointsProps {
XS: number;
SM: number;
MD: number;
LG: number;
XL: number;
}
export interface BreakpointProviderProps {
breakpoints?: BreakpointsProps;
}
const BreakpointProvider: FC<BreakpointProviderProps>;
export const useBreakpoints: () => BreakpointContextProps;
export default BreakpointProvider;
}
import BreakpointProvider from './BreakpointProvider';
export default BreakpointProvider;
export { useBreakpoints } from './BreakpointProvider';
{
"name": "@regrapes/react-breakpoint-hooks",
"version": "0.1.4",
"version": "0.1.5",
"private": false,

@@ -12,4 +12,4 @@ "dependencies": {

"dev": "react-scripts start",
"transpile-npm-module": "rm -rf dist && NODE_ENV=production npx babel src/BreakpointProvider.tsx --extensions '.tsx' --out-dir dist --copy-files",
"gen-types": "tsc src/BreakpointProvider --declaration --emitDeclarationOnly --outfile dist/index.d.ts --jsx react-jsx",
"transpile-npm-module": "rm -rf dist && NODE_ENV=production npx babel src --extensions '.tsx' --extensions '.ts' --out-dir dist",
"gen-types": "tsc --declaration --emitDeclarationOnly --outdir dist --jsx react-jsx",
"build": "npm run transpile-npm-module && npm run gen-types",

@@ -22,4 +22,2 @@ "build-app": "react-scripts build",

"module": "dist/index.js",
"files": "/dist",
"typings": "./dist/index.d.ts",
"types": "./dist/index.d.ts",

@@ -26,0 +24,0 @@ "babel": {

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