@reach/dialog
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -272,5 +272,7 @@ 'use strict'; | ||
return new Error("You provided both `aria-label` and `aria-labelledby` props to a <" + compName + ">. If the a label for this component is visible on the screen, that label's component should be given a unique ID prop, and that ID should be passed as the `aria-labelledby` prop into <" + compName + ">. If the label cannot be determined programmatically from the content of the element, an alternative label should be provided as the `aria-label` prop, which will be used as an `aria-label` on the HTML tag." + details); | ||
} else if (props[propName] != null && typeof props[propName] !== "string") { | ||
return new Error("Invalid prop `" + propName + "` supplied to `" + compName + "`. Expected `string`, received `" + (Array.isArray(propFullName) ? "array" : typeof propFullName) + "`."); | ||
} | ||
return PropTypes.string(props, propName, compName, location, propFullName); | ||
return null; | ||
} | ||
@@ -277,0 +279,0 @@ |
@@ -265,5 +265,7 @@ import { __rest, __assign } from 'tslib'; | ||
return new Error("You provided both `aria-label` and `aria-labelledby` props to a <" + compName + ">. If the a label for this component is visible on the screen, that label's component should be given a unique ID prop, and that ID should be passed as the `aria-labelledby` prop into <" + compName + ">. If the label cannot be determined programmatically from the content of the element, an alternative label should be provided as the `aria-label` prop, which will be used as an `aria-label` on the HTML tag." + details); | ||
} else if (props[propName] != null && typeof props[propName] !== "string") { | ||
return new Error("Invalid prop `" + propName + "` supplied to `" + compName + "`. Expected `string`, received `" + (Array.isArray(propFullName) ? "array" : typeof propFullName) + "`."); | ||
} | ||
return PropTypes.string(props, propName, compName, location, propFullName); | ||
return null; | ||
} | ||
@@ -270,0 +272,0 @@ |
{ | ||
"name": "@reach/dialog", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Accessible React Modal Dialog.", | ||
"author": "React Training <hello@reacttraining.com>", | ||
"license": "MIT", | ||
"repository": { | ||
@@ -10,18 +12,10 @@ "type": "git", | ||
}, | ||
"author": "React Training <hello@reacttraining.com>", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"umd:main": "dist/dialog.umd.production.js", | ||
"module": "dist/dialog.esm.js", | ||
"typings": "dist/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"styles.css" | ||
], | ||
"scripts": { | ||
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd" | ||
"build": "yarn clean && cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json", | ||
"clean": "rm -rf ./dist", | ||
"compile": "cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json" | ||
}, | ||
"dependencies": { | ||
"@reach/portal": "^0.7.1", | ||
"@reach/utils": "^0.7.1", | ||
"@reach/portal": "^0.7.2", | ||
"@reach/utils": "^0.7.2", | ||
"prop-types": "^15.7.2", | ||
@@ -34,3 +28,11 @@ "react-focus-lock": "^2.2.1", | ||
"react-dom": "^16.8.0" | ||
} | ||
}, | ||
"main": "dist/index.js", | ||
"module": "dist/dialog.esm.js", | ||
"typings": "dist/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"styles.css" | ||
], | ||
"gitHead": "96cf6c191cca0f2cbcb7ff578f15e289efeda1e2" | ||
} |
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
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
3
0
76733
12
690
Updated@reach/portal@^0.7.2
Updated@reach/utils@^0.7.2