@accessible/drawer
Advanced tools
Comparing version 2.1.4 to 2.2.0
{ | ||
"name": "@accessible/drawer", | ||
"version": "2.1.4", | ||
"homepage": "https://github.com/accessible-ui/drawer#readme", | ||
"repository": "github:accessible-ui/drawer", | ||
"bugs": "https://github.com/accessible-ui/drawer/issues", | ||
"version": "2.2.0", | ||
"homepage": "https://github.com/accessible-ui/accessible#readme", | ||
"repository": "github:accessible-ui/accessible", | ||
"bugs": "https://github.com/accessible-ui/accessible/issues", | ||
"author": "Jared Lunde <jared.lunde@gmail.com> (https://jaredLunde.com)", | ||
@@ -25,15 +25,33 @@ "license": "MIT", | ||
], | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/es/index.js", | ||
"main": "dist/main/index.js", | ||
"module": "dist/module/index.js", | ||
"source": "src/index.tsx", | ||
"types": "types/index.d.ts", | ||
"files": [ | ||
"/dist" | ||
"/dist", | ||
"/src", | ||
"/types" | ||
], | ||
"exports": { | ||
".": { | ||
"browser": "./dist/module/index.js", | ||
"import": "./dist/esm/index.mjs", | ||
"require": "./dist/main/index.js", | ||
"source": "./src/index.tsx", | ||
"types": "./types/index.d.ts", | ||
"default": "./dist/main/index.js" | ||
}, | ||
"./package.json": "./package.json", | ||
"./": "./" | ||
}, | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "npm run build:cjs && npm run build:es && npm run build:types", | ||
"build:cjs": "babel src -d dist/cjs -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start", | ||
"build:es": "cross-env BABEL_ENV=es babel src -d dist/es -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start", | ||
"build:types": "tsc -p tsconfig.json -d --outDir dist/es --emitDeclarationOnly && mkdir -p dist/cjs && cp -R dist/es/**.d.ts dist/cjs && rimraf dist/**/*.test.d.ts", | ||
"build": "npm run build-esm && npm run build-main && npm run build-module && npm run build-types", | ||
"build-esm": "npm run compile -- -d dist/esm --env-name esm --out-file-extension .mjs", | ||
"build-main": "npm run compile -- -d dist/main --env-name main", | ||
"build-module": "npm run compile -- -d dist/module --env-name module", | ||
"build-types": "tsc -p tsconfig.json -d --outDir types --emitDeclarationOnly", | ||
"check-types": "tsc --noEmit -p tsconfig.json", | ||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,babelrc,eslintrc,prettierrc}\"", | ||
"compile": "babel src -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/*.test.tsx\" --delete-dir-on-start", | ||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,eslintrc,prettierrc}\"", | ||
"lint": "eslint . --ext .ts,.tsx", | ||
@@ -46,3 +64,3 @@ "prepublishOnly": "npm run lint && npm run test && npm run build && npm run format", | ||
"hooks": { | ||
"pre-commit": "lint-staged && npm run build:types" | ||
"pre-commit": "npm run build-types && git add types && lint-staged" | ||
} | ||
@@ -55,3 +73,3 @@ }, | ||
], | ||
"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}": [ | ||
"**/*.{md,yml,json,eslintrc,prettierrc}": [ | ||
"prettier --write" | ||
@@ -66,2 +84,3 @@ ] | ||
"@testing-library/react-hooks": "latest", | ||
"@testing-library/user-event": "^10.4.0", | ||
"@types/jest": "latest", | ||
@@ -72,5 +91,4 @@ "@types/react": "latest", | ||
"@typescript-eslint/parser": "latest", | ||
"babel-plugin-optimize-react": "^0.0.4", | ||
"babel-plugin-typescript-to-proptypes": "^1.1.0", | ||
"cross-env": "latest", | ||
"babel-plugin-annotate-pure-calls": "latest", | ||
"babel-plugin-optimize-react": "latest", | ||
"eslint": "latest", | ||
@@ -88,12 +106,9 @@ "eslint-import-resolver-jest": "latest", | ||
"react-test-renderer": "latest", | ||
"rimraf": "^2.6.3", | ||
"ts-jest": "latest", | ||
"typescript": "latest", | ||
"typescript-to-proptypes": "^1.4.0" | ||
"typescript": "latest" | ||
}, | ||
"dependencies": { | ||
"@accessible/disclosure": "^1.0.0" | ||
"@accessible/disclosure": "^1.1.3" | ||
}, | ||
"peerDependencies": { | ||
"prop-types": ">=15.7.2", | ||
"react": ">=16.8", | ||
@@ -100,0 +115,0 @@ "react-dom": ">=16.8" |
@@ -115,2 +115,3 @@ <hr> | ||
| openStyle | `React.CSSProperties` | `undefined` | No | These styles name will be applied to the child element when the drawer is `open` in addition to the default styles that set the target's visibility. | | ||
| preventScroll | `boolean` | `false` | No | When `true` this will prevent your browser from scrolling the document to bring the newly-focused tab into view. | | ||
| children | `React.ReactElement` | `undefined` | Yes | The child is cloned by this component and has aria attributes injected into its props as well as the events defined above. | | ||
@@ -117,0 +118,0 @@ |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
37100
3
27
10
452
252
1
4
1
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact-is@16.13.1(transitive)