@faceless-ui/window-info
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0
@@ -1,5 +0,5 @@ | ||
export { default as useWindowInfo } from './useWindowInfo/index.js'; | ||
export { default as WindowInfo } from './WindowInfo/index.js'; | ||
export { default as WindowInfoContext } from './WindowInfoProvider/context.js'; | ||
export { default as WindowInfoProvider } from './WindowInfoProvider/index.js'; | ||
export { default as withWindowInfo } from './withWindowInfo/index.js'; | ||
export { useWindowInfo } from './useWindowInfo/index.js'; | ||
export { WindowInfo } from './WindowInfo/index.js'; | ||
export { WindowInfoContext } from './WindowInfoProvider/context.js'; | ||
export { WindowInfoProvider } from './WindowInfoProvider/index.js'; | ||
export { withWindowInfo } from './withWindowInfo/index.js'; |
@@ -1,6 +0,6 @@ | ||
export { default as useWindowInfo } from './useWindowInfo/index.js'; | ||
export { default as WindowInfo } from './WindowInfo/index.js'; | ||
export { default as WindowInfoContext } from './WindowInfoProvider/context.js'; | ||
export { default as WindowInfoProvider } from './WindowInfoProvider/index.js'; | ||
export { default as withWindowInfo } from './withWindowInfo/index.js'; | ||
export { useWindowInfo } from './useWindowInfo/index.js'; | ||
export { WindowInfo } from './WindowInfo/index.js'; | ||
export { WindowInfoContext } from './WindowInfoProvider/context.js'; | ||
export { WindowInfoProvider } from './WindowInfoProvider/index.js'; | ||
export { withWindowInfo } from './withWindowInfo/index.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,2 @@ | ||
import { IWindowInfoContext } from '../WindowInfoProvider/context.js'; | ||
declare const useWindowInfo: () => IWindowInfoContext; | ||
export default useWindowInfo; | ||
import { type IWindowInfoContext } from '../WindowInfoProvider/context.js'; | ||
export declare const useWindowInfo: () => IWindowInfoContext; |
'use client'; | ||
import { useContext } from 'react'; | ||
import WindowInfoContext from '../WindowInfoProvider/context.js'; | ||
const useWindowInfo = () => useContext(WindowInfoContext); | ||
export default useWindowInfo; | ||
import { WindowInfoContext } from '../WindowInfoProvider/context.js'; | ||
export const useWindowInfo = () => useContext(WindowInfoContext); | ||
//# sourceMappingURL=index.js.map |
@@ -7,3 +7,2 @@ import React from 'react'; | ||
}; | ||
declare const WindowInfo: React.FC<WindowInfoProps>; | ||
export default WindowInfo; | ||
export declare const WindowInfo: React.FC<WindowInfoProps>; |
'use client'; | ||
import React, { Fragment } from 'react'; | ||
import useWindowInfo from '../useWindowInfo/index.js'; | ||
const WindowInfo = (props) => { | ||
import { useWindowInfo } from '../useWindowInfo/index.js'; | ||
export const WindowInfo = (props) => { | ||
const { children } = props; | ||
@@ -15,3 +15,2 @@ const windowInfo = useWindowInfo(); | ||
}; | ||
export default WindowInfo; | ||
//# sourceMappingURL=index.js.map |
@@ -13,3 +13,2 @@ /// <reference types="react" /> | ||
} | ||
declare const WindowInfoContext: import("react").Context<IWindowInfoContext>; | ||
export default WindowInfoContext; | ||
export declare const WindowInfoContext: import("react").Context<IWindowInfoContext>; |
'use client'; | ||
import { createContext } from 'react'; | ||
const WindowInfoContext = createContext({}); | ||
export default WindowInfoContext; | ||
export const WindowInfoContext = createContext({}); | ||
//# sourceMappingURL=context.js.map |
@@ -9,3 +9,2 @@ import React from 'react'; | ||
}; | ||
declare const WindowInfoProvider: React.FC<WindowInfoProviderProps>; | ||
export default WindowInfoProvider; | ||
export declare const WindowInfoProvider: React.FC<WindowInfoProviderProps>; |
'use client'; | ||
import React, { useCallback, useEffect, useReducer, useRef } from 'react'; | ||
import WindowInfoContext from '../WindowInfoProvider/context.js'; | ||
import { WindowInfoContext } from '../WindowInfoProvider/context.js'; | ||
const reducer = (state, action) => { | ||
@@ -29,3 +29,3 @@ const { payload: { breakpoints, animationRef, } } = action; | ||
}; | ||
const WindowInfoProvider = (props) => { | ||
export const WindowInfoProvider = (props) => { | ||
const { breakpoints, children, } = props; | ||
@@ -90,3 +90,2 @@ const animationRef = useRef(null); | ||
}; | ||
export default WindowInfoProvider; | ||
//# sourceMappingURL=index.js.map |
import React from 'react'; | ||
declare const withWindowInfo: <P extends Record<string, unknown>>(PassedComponent: React.ComponentType<P>) => React.FC<P>; | ||
export default withWindowInfo; | ||
export declare const withWindowInfo: <P extends Record<string, unknown>>(PassedComponent: React.ComponentType<P>) => React.FC<P>; |
'use client'; | ||
import React from 'react'; | ||
import useWindowInfo from '../useWindowInfo/index.js'; | ||
const withWindowInfo = (PassedComponent) => { | ||
import { useWindowInfo } from '../useWindowInfo/index.js'; | ||
export const withWindowInfo = (PassedComponent) => { | ||
const WindowInfoWrap = (props) => { | ||
@@ -11,3 +11,2 @@ const windowInfoContext = useWindowInfo(); | ||
}; | ||
export default withWindowInfo; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@faceless-ui/window-info", | ||
"version": "3.0.0-beta.0", | ||
"version": "3.0.0", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
@@ -14,3 +16,2 @@ "types": "dist/index.d.ts", | ||
}, | ||
"type": "module", | ||
"bugs": { | ||
@@ -28,6 +29,7 @@ "url": "https://github.com/faceless-ui/window-info/issues", | ||
"scripts": { | ||
"build": "yarn lint && tsc --project tsconfig.build.json", | ||
"build:demo": "yarn lint && webpack --config webpack.build-demo.config.js", | ||
"dev": "webpack-dev-server --hot --config webpack.dev.config.js", | ||
"lint": "eslint .", | ||
"build": "yarn lint:src && tsc --project tsconfig.build.json", | ||
"build:demo": "webpack --config webpack.build-demo.config.js", | ||
"dev": "webpack serve --config webpack.dev.config.js", | ||
"lint:src": "eslint ./src", | ||
"lint:demo": "eslint ./demo", | ||
"test": "jest" | ||
@@ -46,2 +48,3 @@ }, | ||
"@typescript-eslint/parser": "^7.3.1", | ||
"@types/webpack": "^5.28.5", | ||
"eslint": "^8.56.0", | ||
@@ -48,0 +51,0 @@ "eslint-plugin-import": "^2.26.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
0
16150
27
166