@regrapes/react-breakpoint-hooks
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -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": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9695
6
127
1