react-popper-tooltip
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -62,3 +62,8 @@ 'use strict'; | ||
bottom: y, | ||
left: x | ||
left: x, | ||
x: 0, | ||
y: 0, | ||
toJSON: function toJSON() { | ||
return null; | ||
} | ||
}; | ||
@@ -68,2 +73,3 @@ }; | ||
var _excluded = ["styles", "attributes"]; | ||
var virtualElement = { | ||
@@ -148,3 +154,3 @@ getBoundingClientRect: generateBoundingClientRect() | ||
attributes = _usePopper.attributes, | ||
popperProps = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]); | ||
popperProps = _objectWithoutPropertiesLoose(_usePopper, _excluded); | ||
@@ -151,0 +157,0 @@ var update = popperProps.update; |
@@ -58,3 +58,8 @@ import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose'; | ||
bottom: y, | ||
left: x | ||
left: x, | ||
x: 0, | ||
y: 0, | ||
toJSON: function toJSON() { | ||
return null; | ||
} | ||
}; | ||
@@ -64,2 +69,3 @@ }; | ||
var _excluded = ["styles", "attributes"]; | ||
var virtualElement = { | ||
@@ -144,3 +150,3 @@ getBoundingClientRect: generateBoundingClientRect() | ||
attributes = _usePopper.attributes, | ||
popperProps = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]); | ||
popperProps = _objectWithoutPropertiesLoose(_usePopper, _excluded); | ||
@@ -147,0 +153,0 @@ var update = popperProps.update; |
@@ -7,9 +7,2 @@ export declare function useGetLatest<T>(val: T): () => T; | ||
}): [T, (state: T) => void]; | ||
export declare function generateBoundingClientRect(x?: number, y?: number): () => { | ||
width: number; | ||
height: number; | ||
top: number; | ||
right: number; | ||
bottom: number; | ||
left: number; | ||
}; | ||
export declare function generateBoundingClientRect(x?: number, y?: number): () => DOMRect; |
{ | ||
"name": "react-popper-tooltip", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "React tooltip library built around react-popper", | ||
@@ -31,3 +31,3 @@ "author": "Mohsin Ul Haq <mohsinulhaq01@gmail.com>", | ||
"build": "rm -rf dist && rollup -c && cp src/styles.css dist && yarn tsc && rm -rf compiled", | ||
"prepare": "yarn typecheck && yarn lint && yarn build && yarn test", | ||
"prepare": "husky install && yarn typecheck && yarn build && yarn test && yarn lint-staged && git add .size-snapshot.json", | ||
"prettier": "prettier --write src/**/*.{ts,tsx}", | ||
@@ -39,6 +39,3 @@ "typecheck": "tsc --noEmit", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook", | ||
"_postinstall": "husky install", | ||
"prepublishOnly": "pinst --disable", | ||
"postpublish": "pinst --enable" | ||
"build-storybook": "build-storybook" | ||
}, | ||
@@ -64,43 +61,42 @@ "jest": { | ||
"dependencies": { | ||
"@babel/runtime": "^7.14.0", | ||
"@popperjs/core": "^2.9.2", | ||
"@babel/runtime": "^7.15.4", | ||
"@popperjs/core": "^2.10.2", | ||
"react-popper": "^2.2.5" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.14.3", | ||
"@babel/plugin-transform-runtime": "^7.14.3", | ||
"@babel/preset-env": "^7.14.2", | ||
"@babel/preset-react": "^7.13.13", | ||
"@babel/preset-typescript": "^7.13.0", | ||
"@storybook/addon-actions": "^6.2.9", | ||
"@storybook/addon-essentials": "^6.2.9", | ||
"@storybook/addon-links": "^6.2.9", | ||
"@storybook/react": "^6.2.9", | ||
"@testing-library/jest-dom": "^5.12.0", | ||
"@testing-library/react": "^11.2.7", | ||
"@testing-library/user-event": "^13.1.9", | ||
"@types/jest": "^26.0.23", | ||
"@types/react": "^17.0.7", | ||
"@types/react-dom": "^17.0.5", | ||
"@typescript-eslint/eslint-plugin": "^4.25.0", | ||
"@typescript-eslint/parser": "^4.25.0", | ||
"@babel/core": "^7.15.8", | ||
"@babel/plugin-transform-runtime": "^7.15.8", | ||
"@babel/preset-env": "^7.15.8", | ||
"@babel/preset-react": "^7.14.5", | ||
"@babel/preset-typescript": "^7.15.0", | ||
"@storybook/addon-actions": "^6.3.10", | ||
"@storybook/addon-essentials": "^6.3.10", | ||
"@storybook/addon-links": "^6.3.10", | ||
"@storybook/react": "^6.3.10", | ||
"@testing-library/jest-dom": "^5.14.1", | ||
"@testing-library/react": "^12.1.2", | ||
"@testing-library/user-event": "^13.2.1", | ||
"@types/jest": "^27.0.2", | ||
"@types/react": "^17.0.27", | ||
"@types/react-dom": "^17.0.9", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"babel-loader": "^8.2.2", | ||
"eslint": "^7.27.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"eslint-plugin-react": "^7.23.2", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.26.1", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"husky": "^6.0.0", | ||
"jest": "^26.6.3", | ||
"lint-staged": "^11.0.0", | ||
"pinst": "^2.1.6", | ||
"prettier": "^2.3.0", | ||
"husky": "^7.0.2", | ||
"jest": "^27.2.4", | ||
"lint-staged": "^11.2.0", | ||
"prettier": "^2.4.1", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1", | ||
"rollup": "^2.50.0", | ||
"rollup": "^2.58.0", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-size-snapshot": "^0.12.0", | ||
"typescript": "^4.2.4" | ||
"typescript": "^4.4.3" | ||
} | ||
} |
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 too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
229134
34
2339
Updated@babel/runtime@^7.15.4
Updated@popperjs/core@^2.10.2