react-bootstrap-dialog
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -6,3 +6,3 @@ // IMPORTANT | ||
import { configure } from '@kadira/storybook'; | ||
import { configure } from '@storybook/react'; | ||
@@ -9,0 +9,0 @@ function loadStories() { |
@@ -0,1 +1,7 @@ | ||
# v0.9.2 | ||
- Update some libraries. | ||
- Reduce dependencies. | ||
- Stop using `this.refs`. | ||
# v0.9.1 | ||
@@ -2,0 +8,0 @@ |
@@ -7,3 +7,3 @@ # Contributing to React Bootstrap Dialog Component | ||
This component has been setup with [React CDK](https://github.com/kadirahq/react-cdk). Refer [React CDK documentation](https://github.com/kadirahq/react-cdk)) to get started with the development. | ||
This component has been setup with [React CDK](https://github.com/kadirahq/react-cdk). Refer [React CDK documentation](https://github.com/kadirahq/react-cdk) to get started with the development. | ||
@@ -10,0 +10,0 @@ ## Coding Style |
@@ -37,5 +37,5 @@ 'use strict'; | ||
* The modal dialog which can be altenative to `window.confirm` and `window.alert`. | ||
* @example <Dialog ref='dialog'/> | ||
* @example this.refs.dialog.show({body: 'Hello!', actions: [Dialog.Action('do', () => console.log('ok'))]}) | ||
* @example this.refs.dialog.showAlert('Hello!') | ||
* @example <Dialog ref={(el) => {this.dialog = el} /> | ||
* @example this.dialog.show({body: 'Hello!', actions: [Dialog.Action('do', () => console.log('ok'))]}) | ||
* @example this.dialog.showAlert('Hello!') | ||
*/ | ||
@@ -104,3 +104,3 @@ var Dialog = function (_React$Component) { | ||
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -132,3 +132,3 @@ var keyBinds = {}; | ||
value: function showAlert(body) { | ||
var bsSize = arguments.length <= 1 || arguments[1] === undefined ? undefined : arguments[1]; | ||
var bsSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; | ||
@@ -135,0 +135,0 @@ var options = { |
{ | ||
"name": "react-bootstrap-dialog", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "The modal-dialog React component with React Bootstrap, alternates `window.confirm` and `window.alert`.", | ||
@@ -32,11 +32,12 @@ "repository": { | ||
"devDependencies": { | ||
"@kadira/storybook": "^2.5.2", | ||
"babel-cli": "^6.5.0", | ||
"babel-core": "^6.5.0", | ||
"@kadira/storybook-deployer": "^1.2.0", | ||
"@storybook/addon-actions": "^3.2.6", | ||
"@storybook/react": "3.2.8", | ||
"babel-cli": "^6.23.0", | ||
"babel-core": "^6.23.0", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-transform-runtime": "^6.5.0", | ||
"babel-polyfill": "^6.5.0", | ||
"babel-preset-es2015": "^6.5.0", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-preset-stage-2": "^6.5.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-runtime": "^6.23.0", | ||
"bootstrap": "^3.3.7", | ||
@@ -48,16 +49,14 @@ "chai": "^3.5.0", | ||
"mocha": "^2.4.5", | ||
"react": "^15.0.0", | ||
"react": "^15.6.0", | ||
"react-addons-test-utils": "^15.0.0", | ||
"react-bootstrap": "^0.30.3", | ||
"react-bootstrap": "^0.31.3", | ||
"react-dom": "^15.0.0", | ||
"sinon": "^1.17.3", | ||
"standard": "^8.0.0" | ||
"standard": "^8.0.0", | ||
"webpack": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^0.14.7 || ^15.0.0" | ||
"react-bootstrap": "^0.31.3" | ||
}, | ||
"dependencies": { | ||
"@kadira/storybook-deployer": "^1.2.0", | ||
"babel-runtime": "^6.5.0" | ||
}, | ||
"dependencies": {}, | ||
"main": "dist/index.js", | ||
@@ -64,0 +63,0 @@ "engines": { |
@@ -46,3 +46,3 @@ # React Bootstrap Dialog | ||
```html | ||
<Dialog ref="dialog" /> | ||
<Dialog ref={(el) => { this.dialog = el }} /> | ||
``` | ||
@@ -53,3 +53,3 @@ | ||
```js | ||
this.refs.dialog.showAlert('Hello Dialog!') | ||
this.dialog.showAlert('Hello Dialog!') | ||
``` | ||
@@ -71,3 +71,3 @@ | ||
onClick () { | ||
this.refs.dialog.showAlert('Hello Dialog!') | ||
this.dialog.showAlert('Hello Dialog!') | ||
} | ||
@@ -79,3 +79,3 @@ | ||
<Button onClick={this.onClick}>Show alert</Button> | ||
<Dialog ref='dialog' /> | ||
<Dialog ref={(el) => { this.dialog = el }} /> | ||
</div> | ||
@@ -143,3 +143,3 @@ ) | ||
```js | ||
this.refs.dialog.show({ | ||
this.dialog.show({ | ||
title: 'Greedings', | ||
@@ -169,3 +169,3 @@ body: 'How are you?', | ||
```js | ||
this.refs.dialog.showAlert('Hello world!') | ||
this.dialog.showAlert('Hello world!') | ||
``` | ||
@@ -180,3 +180,3 @@ | ||
```js | ||
this.refs.dialog.hide() | ||
this.dialog.hide() | ||
``` | ||
@@ -183,0 +183,0 @@ |
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
282294
1
22
23
+ Added@babel/runtime@7.26.9(transitive)
+ Addedclassnames@2.5.1(transitive)
+ Addeddom-helpers@3.4.0(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedkeycode@2.2.1(transitive)
+ Addedprop-types-extra@1.1.1(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-bootstrap@0.31.5(transitive)
+ Addedreact-dom@19.0.0(transitive)
+ Addedreact-overlays@0.7.4(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedscheduler@0.25.0(transitive)
+ Addeduncontrollable@4.1.0(transitive)
+ Addedwarning@3.0.04.0.3(transitive)
- Removed@kadira/storybook-deployer@^1.2.0
- Removedbabel-runtime@^6.5.0
- Removed@kadira/storybook-deployer@1.2.0(transitive)
- Removedasap@2.0.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcreate-react-class@15.7.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgit-up@2.1.0(transitive)
- Removedgit-url-parse@6.2.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedinterpret@1.4.0(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removedis-ssh@1.4.1(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removednormalize-url@1.9.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedparse-path@3.0.4(transitive)
- Removedparse-url@3.0.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedprepend-http@1.0.4(transitive)
- Removedpromise@7.3.1(transitive)
- Removedprotocols@1.4.82.0.2(transitive)
- Removedquery-string@4.3.4(transitive)
- Removedreact@15.7.0(transitive)
- Removedrechoir@0.6.2(transitive)
- Removedresolve@1.22.10(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedshelljs@0.7.8(transitive)
- Removedsort-keys@1.1.2(transitive)
- Removedstrict-uri-encode@1.1.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedua-parser-js@0.7.40(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)
- Removedwrappy@1.0.2(transitive)