Socket
Socket
Sign inDemoInstall

@reach/dialog

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reach/dialog - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

src/__snapshots__/index.test.js.snap

6

es/index.js

@@ -10,2 +10,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

import createFocusTrap from "focus-trap";
import { func, bool } from "prop-types";

@@ -172,2 +173,7 @@ var createAriaHider = function createAriaHider(dialogNode) {

process.env.NODE_ENV !== "production" ? Dialog.propTypes = {
isOpen: bool,
onDismiss: func
} : void 0;
export { DialogOverlay, DialogContent, Dialog };

@@ -26,2 +26,4 @@ "use strict";

var _propTypes = require("prop-types");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -191,4 +193,9 @@

process.env.NODE_ENV !== "production" ? Dialog.propTypes = {
isOpen: _propTypes.bool,
onDismiss: _propTypes.func
} : void 0;
exports.DialogOverlay = DialogOverlay;
exports.DialogContent = DialogContent;
exports.Dialog = Dialog;

8

package.json
{
"name": "@reach/dialog",
"version": "0.1.2",
"version": "0.1.3",
"description": "Accessible React Modal Dialog.",

@@ -10,3 +10,3 @@ "author": "Ryan Florence <@ryanflorence>",

"scripts": {
"test": "echo \"Write some tests you bum!\"",
"test": "jest",
"build": "node ../../shared/build-package",

@@ -16,4 +16,4 @@ "lint": "eslint . --max-warnings=0"

"dependencies": {
"@reach/component-component": "^0.1.1",
"@reach/portal": "^0.1.1",
"@reach/component-component": "^0.1.2",
"@reach/portal": "^0.1.2",
"@reach/utils": "^0.1.2",

@@ -20,0 +20,0 @@ "focus-trap": "^3.0.0"

@@ -6,2 +6,3 @@ import React from "react";

import createFocusTrap from "focus-trap";
import { func, bool } from "prop-types";

@@ -143,2 +144,7 @@ let createAriaHider = dialogNode => {

Dialog.propTypes = {
isOpen: bool,
onDismiss: func
};
export { DialogOverlay, DialogContent, Dialog };
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