Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

boundless-dialog

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boundless-dialog - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

6

demo/index.js

@@ -1,3 +0,3 @@

import {createElement, PureComponent} from 'react';
import {findDOMNode} from 'react-dom';
import { createElement, PureComponent } from 'react';
import { findDOMNode } from 'react-dom';
import Button from '../../boundless-button/index';

@@ -21,3 +21,3 @@ import Dialog from '../';

toggleDialog = () => {
this.setState({showDialog: !this.state.showDialog});
this.setState({ showDialog: !this.state.showDialog });
}

@@ -24,0 +24,0 @@

@@ -1,2 +0,3 @@

import {createElement, PropTypes, PureComponent} from 'react';
import PropTypes from 'prop-types';
import { createElement, PureComponent } from 'react';
import cx from 'classnames';

@@ -131,3 +132,3 @@

const roots = [this.$wrapper].concat(
const roots = [ this.$wrapper ].concat(
toArray.call(

@@ -134,0 +135,0 @@ this.$wrapper.querySelectorAll(`[${Portal.PORTAL_DATA_ATTRIBUTE}]`)

/* eslint no-unused-expressions:0 */
import {createElement, PureComponent} from 'react';
import { createElement, PureComponent } from 'react';
import ReactDOM from 'react-dom';
import sinon from 'sinon';
import {noop} from 'lodash';
import { noop } from 'lodash';

@@ -11,3 +11,3 @@ import Dialog from './index';

import Popover from '../boundless-popover/index';
import {$, $$, conformanceChecker} from '../boundless-utils-test-helpers/index';
import { $, $$, conformanceChecker } from '../boundless-utils-test-helpers/index';

@@ -18,3 +18,3 @@ describe('Dialog component', () => {

const sandbox = sinon.sandbox.create({useFakeTimers: true});
const sandbox = sinon.sandbox.create({ useFakeTimers: true });

@@ -115,3 +115,3 @@ beforeEach(() => sandbox.useFakeTimers());

element.handleKeyDown({key: 'Escape'});
element.handleKeyDown({ key: 'Escape' });
sandbox.clock.tick(1);

@@ -125,3 +125,3 @@ expect(stub.calledOnce).toBe(true);

element.handleKeyDown({key: 'Escape'});
element.handleKeyDown({ key: 'Escape' });
sandbox.clock.tick(1);

@@ -135,3 +135,3 @@ expect(stub.calledOnce).toBe(true);

element.handleKeyDown({key: 'Escape'});
element.handleKeyDown({ key: 'Escape' });
sandbox.clock.tick(1);

@@ -145,3 +145,3 @@ expect(stub.notCalled).toBe(true);

element.handleKeyDown({key: 'Escape'});
element.handleKeyDown({ key: 'Escape' });
sandbox.clock.tick(1);

@@ -157,3 +157,3 @@ expect(stub.notCalled).toBe(true);

element.handleInsideClick({target: mountNode});
element.handleInsideClick({ target: mountNode });
sandbox.clock.tick(1);

@@ -167,3 +167,3 @@ expect(stub.calledOnce).toBe(true);

element.handleInsideClick({target: mountNode});
element.handleInsideClick({ target: mountNode });
sandbox.clock.tick(1);

@@ -177,3 +177,3 @@ expect(stub.calledOnce).toBe(true);

element.handleInsideClick({target: mountNode});
element.handleInsideClick({ target: mountNode });
sandbox.clock.tick(1);

@@ -187,3 +187,3 @@ expect(stub.notCalled).toBe(true);

element.handleInsideClick({target: mountNode});
element.handleInsideClick({ target: mountNode });
sandbox.clock.tick(1);

@@ -199,3 +199,3 @@ expect(stub.notCalled).toBe(true);

element.handleOutsideClick({target: mountNode});
element.handleOutsideClick({ target: mountNode });
sandbox.clock.tick(1);

@@ -209,3 +209,3 @@ expect(stub.calledOnce).toBe(true);

element.handleOutsideClick({target: mountNode});
element.handleOutsideClick({ target: mountNode });
sandbox.clock.tick(1);

@@ -219,3 +219,3 @@ expect(stub.calledOnce).toBe(true);

element.handleOutsideClick({target: mountNode});
element.handleOutsideClick({ target: mountNode });
sandbox.clock.tick(1);

@@ -229,3 +229,3 @@ expect(stub.notCalled).toBe(true);

element.handleOutsideClick({target: mountNode});
element.handleOutsideClick({ target: mountNode });
sandbox.clock.tick(1);

@@ -243,3 +243,3 @@ expect(stub.notCalled).toBe(true);

element.handleFocus({target: mountNode});
element.handleFocus({ target: mountNode });
sandbox.clock.tick(1);

@@ -255,3 +255,3 @@ expect(stub.calledOnce).toBe(true);

element.handleFocus({target: mountNode});
element.handleFocus({ target: mountNode });
sandbox.clock.tick(1);

@@ -265,3 +265,3 @@ expect(stub.calledOnce).toBe(true);

element.handleFocus({target: mountNode});
element.handleFocus({ target: mountNode });
sandbox.clock.tick(1);

@@ -277,3 +277,3 @@ expect(stub.notCalled).toBe(true);

element.handleFocus({target: mountNode});
element.handleFocus({ target: mountNode });
sandbox.clock.tick(1);

@@ -289,3 +289,3 @@ expect(stub.notCalled).toBe(true);

element.handleFocus({target: mountNode});
element.handleFocus({ target: mountNode });
sandbox.clock.tick(1);

@@ -299,3 +299,3 @@ expect(stub.notCalled).toBe(true);

element.handleFocus({target: mountNode});
element.handleFocus({ target: mountNode });
sandbox.clock.tick(1);

@@ -309,3 +309,3 @@ expect(stub.notCalled).toBe(true);

element.handleFocus({target: mountNode});
element.handleFocus({ target: mountNode });
sandbox.clock.tick(1);

@@ -321,3 +321,3 @@ expect(stub.notCalled).toBe(true);

element.handleOutsideScrollWheel({target: mountNode});
element.handleOutsideScrollWheel({ target: mountNode });
sandbox.clock.tick(1);

@@ -331,3 +331,3 @@ expect(stub.calledOnce).toBe(true);

element.handleOutsideScrollWheel({target: mountNode});
element.handleOutsideScrollWheel({ target: mountNode });
sandbox.clock.tick(1);

@@ -341,3 +341,3 @@ expect(stub.calledOnce).toBe(true);

element.handleOutsideScrollWheel({target: mountNode});
element.handleOutsideScrollWheel({ target: mountNode });
sandbox.clock.tick(1);

@@ -351,3 +351,3 @@ expect(stub.notCalled).toBe(true);

element.handleOutsideScrollWheel({target: mountNode});
element.handleOutsideScrollWheel({ target: mountNode });
sandbox.clock.tick(1);

@@ -377,7 +377,7 @@ expect(stub.notCalled).toBe(true);

openInnerPopover = () => this.setState({innerPopoverRendered: true})
closeInnerPopover = () => this.setState({innerPopoverRendered: false})
openInnerPopover = () => this.setState({ innerPopoverRendered: true })
closeInnerPopover = () => this.setState({ innerPopoverRendered: false })
openOuterPopover = () => this.setState({outerPopoverRendered: true})
closeOuterPopover = () => this.setState({outerPopoverRendered: false})
openOuterPopover = () => this.setState({ outerPopoverRendered: true })
closeOuterPopover = () => this.setState({ outerPopoverRendered: false })

@@ -384,0 +384,0 @@ maybeRenderInnerPopover() {

{
"name": "boundless-dialog",
"version": "1.0.4",
"version": "1.1.0",
"description": "A non-blocking, focus-stealing container.",

@@ -27,4 +27,4 @@ "main": "build/index.js",

"dependencies": {
"boundless-portal": "^1.0.4",
"boundless-utils-omit-keys": "^1.0.4",
"boundless-portal": "^1.1.0",
"boundless-utils-omit-keys": "^1.1.0",
"classnames": "^2.1.5"

@@ -31,0 +31,0 @@ },

@@ -23,4 +23,4 @@ <!---

import {createElement, PureComponent} from 'react';
import {findDOMNode} from 'react-dom';
import { createElement, PureComponent } from 'react';
import { findDOMNode } from 'react-dom';
import Button from 'boundless-button';

@@ -44,3 +44,3 @@ import Dialog from 'boundless-dialog';

toggleDialog = () => {
this.setState({showDialog: !this.state.showDialog});
this.setState({ showDialog: !this.state.showDialog });
}

@@ -47,0 +47,0 @@

Sorry, the diff of this file is too big to display

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