Socket
Socket
Sign inDemoInstall

@accessible/drawer

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accessible/drawer - npm Package Compare versions

Comparing version 2.1.4 to 2.2.0

dist/esm/index.mjs

59

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc