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

react-bootstrap

Package Overview
Dependencies
Maintainers
3
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap - npm Package Compare versions

Comparing version 0.22.5 to 0.22.6

amd/lib/RootCloseWrapper.js

2

amd/bower.json
{
"name": "react-bootstrap",
"version": "0.22.5",
"version": "0.22.6",
"homepage": "http://react-bootstrap.github.io/",

@@ -5,0 +5,0 @@ "author": "Stephen J. Collings <stevoland@gmail.com>",

@@ -40,3 +40,3 @@ define(['exports', 'react', './BootstrapMixin', './CollapsibleMixin', 'classnames', './utils/domUtils', './utils/deprecatedProperty', './utils/ValidComponentChildren', './utils/createChainedFunction'], function (exports, _react, _BootstrapMixin, _CollapsibleMixin, _classnames, _utilsDomUtils, _utilsDeprecatedProperty, _utilsValidComponentChildren, _utilsCreateChainedFunction) {

getCollapsibleDOMNode: function getCollapsibleDOMNode() {
return this.getDOMNode();
return _React.findDOMNode(this);
},

@@ -50,3 +50,3 @@

var n = nodes[key].getDOMNode(),
var n = _React.findDOMNode(nodes[key]),
h = n.offsetHeight,

@@ -53,0 +53,0 @@ computedStyles = _domUtils.getComputedStyles(n);

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

define(['exports', 'module', 'react', './OverlayMixin', './utils/domUtils', './utils/createChainedFunction', './utils/Object.assign', './utils/createContextWrapper'], function (exports, module, _react, _OverlayMixin, _utilsDomUtils, _utilsCreateChainedFunction, _utilsObjectAssign, _utilsCreateContextWrapper) {
define(['exports', 'module', 'react', './OverlayMixin', './RootCloseWrapper', './utils/createChainedFunction', './utils/createContextWrapper', './utils/domUtils', './utils/Object.assign'], function (exports, module, _react, _OverlayMixin, _RootCloseWrapper, _utilsCreateChainedFunction, _utilsCreateContextWrapper, _utilsDomUtils, _utilsObjectAssign) {
'use strict';

@@ -10,10 +10,12 @@

var _domUtils = _interopRequire(_utilsDomUtils);
var _RootCloseWrapper2 = _interopRequire(_RootCloseWrapper);
var _createChainedFunction = _interopRequire(_utilsCreateChainedFunction);
var _createContextWrapper = _interopRequire(_utilsCreateContextWrapper);
var _domUtils = _interopRequire(_utilsDomUtils);
var _assign = _interopRequire(_utilsObjectAssign);
var _createContextWrapper = _interopRequire(_utilsCreateContextWrapper);
/**

@@ -46,3 +48,4 @@ * Check if value one is inside or equal to the of value

overlay: _React.PropTypes.node.isRequired,
containerPadding: _React.PropTypes.number
containerPadding: _React.PropTypes.number,
rootClose: _React.PropTypes.bool
},

@@ -95,3 +98,3 @@

return (0, _react.cloneElement)(this.props.overlay, {
var overlay = (0, _react.cloneElement)(this.props.overlay, {
onRequestHide: this.hide,

@@ -104,2 +107,12 @@ placement: this.props.placement,

});
if (this.props.rootClose) {
return _React.createElement(
_RootCloseWrapper2,
{ onRootClose: this.hide },
overlay
);
} else {
return overlay;
}
},

@@ -106,0 +119,0 @@

@@ -0,1 +1,8 @@

v0.22.6 - Wed, 20 May 2015 16:46:29 GMT
---------------------------------------
- [2a35eab](../../commit/2a35eab) [fixed] Fix CodeMirrorEditor binding
- [5dc0ac2](../../commit/5dc0ac2) [added] Enable rootClose for OverlayTrigger
v0.22.5 - Tue, 19 May 2015 20:40:51 GMT

@@ -2,0 +9,0 @@ ---------------------------------------

@@ -55,3 +55,3 @@ 'use strict';

getCollapsibleDOMNode: function getCollapsibleDOMNode() {
return this.getDOMNode();
return _react2['default'].findDOMNode(this);
},

@@ -65,3 +65,3 @@

var n = nodes[key].getDOMNode(),
var n = _react2['default'].findDOMNode(nodes[key]),
h = n.offsetHeight,

@@ -68,0 +68,0 @@ computedStyles = _utilsDomUtils2['default'].getComputedStyles(n);

@@ -17,5 +17,5 @@ 'use strict';

var _utilsDomUtils = require('./utils/domUtils');
var _RootCloseWrapper = require('./RootCloseWrapper');
var _utilsDomUtils2 = _interopRequireDefault(_utilsDomUtils);
var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper);

@@ -26,2 +26,10 @@ var _utilsCreateChainedFunction = require('./utils/createChainedFunction');

var _utilsCreateContextWrapper = require('./utils/createContextWrapper');
var _utilsCreateContextWrapper2 = _interopRequireDefault(_utilsCreateContextWrapper);
var _utilsDomUtils = require('./utils/domUtils');
var _utilsDomUtils2 = _interopRequireDefault(_utilsDomUtils);
var _utilsObjectAssign = require('./utils/Object.assign');

@@ -31,6 +39,2 @@

var _utilsCreateContextWrapper = require('./utils/createContextWrapper');
var _utilsCreateContextWrapper2 = _interopRequireDefault(_utilsCreateContextWrapper);
/**

@@ -63,3 +67,4 @@ * Check if value one is inside or equal to the of value

overlay: _react2['default'].PropTypes.node.isRequired,
containerPadding: _react2['default'].PropTypes.number
containerPadding: _react2['default'].PropTypes.number,
rootClose: _react2['default'].PropTypes.bool
},

@@ -112,3 +117,3 @@

return (0, _react.cloneElement)(this.props.overlay, {
var overlay = (0, _react.cloneElement)(this.props.overlay, {
onRequestHide: this.hide,

@@ -121,2 +126,12 @@ placement: this.props.placement,

});
if (this.props.rootClose) {
return _react2['default'].createElement(
_RootCloseWrapper2['default'],
{ onRootClose: this.hide },
overlay
);
} else {
return overlay;
}
},

@@ -123,0 +138,0 @@

{
"name": "react-bootstrap",
"version": "0.22.5",
"version": "0.22.6",
"description": "Bootstrap 3 components build with React",

@@ -18,4 +18,3 @@ "repository": {

"docs-prod": "npm run docs-build && NODE_ENV=production babel-node docs/server.js",
"docs-prod-unoptimized": "npm run docs-build -- --dev && NODE_ENV=production babel-node docs/server.js",
"ie8": "babel-node ie8/server.js"
"docs-prod-unoptimized": "npm run docs-build -- --dev && NODE_ENV=production babel-node docs/server.js"
},

@@ -22,0 +21,0 @@ "main": "lib/index.js",

@@ -25,3 +25,3 @@ import React, { cloneElement } from 'react';

getCollapsibleDOMNode() {
return this.getDOMNode();
return React.findDOMNode(this);
},

@@ -35,3 +35,3 @@

let n = nodes[key].getDOMNode()
let n = React.findDOMNode(nodes[key])
, h = n.offsetHeight

@@ -38,0 +38,0 @@ , computedStyles = domUtils.getComputedStyles(n);

import React, { cloneElement } from 'react';
import OverlayMixin from './OverlayMixin';
import domUtils from './utils/domUtils';
import RootCloseWrapper from './RootCloseWrapper';
import createChainedFunction from './utils/createChainedFunction';
import createContextWrapper from './utils/createContextWrapper';
import domUtils from './utils/domUtils';
import assign from './utils/Object.assign';
import createContextWrapper from './utils/createContextWrapper';

@@ -37,3 +39,4 @@ /**

overlay: React.PropTypes.node.isRequired,
containerPadding: React.PropTypes.number
containerPadding: React.PropTypes.number,
rootClose: React.PropTypes.bool
},

@@ -87,3 +90,3 @@

return cloneElement(
const overlay = cloneElement(
this.props.overlay,

@@ -99,2 +102,12 @@ {

);
if (this.props.rootClose) {
return (
<RootCloseWrapper onRootClose={this.hide}>
{overlay}
</RootCloseWrapper>
);
} else {
return overlay;
}
},

@@ -101,0 +114,0 @@

/* eslint no-var: 0 */
require('babel/register');
var config = require('./webpack/webpack.config');
var result = config();
module.exports = result;
module.exports = config;

@@ -1,18 +0,47 @@

import config from './webpack.config';
import yargs from 'yargs';
import _ from 'lodash';
import webpack from 'webpack';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import baseConfig, { options, jsLoader } from './base.config';
const argv = yargs
.alias('p', 'optimize-minimize')
.alias('d', 'debug')
.option('port', {
default: '8080',
type: 'string'
})
.argv;
const webpackDevServerAddress = `http://localhost:${options.port}`;
const cssSourceMap = options.debug ? '?sourceMap' : '';
const reactHot = options.debug ? 'react-hot!' : '';
export default config({
docs: true,
development: argv.debug,
optimize: argv.optimizeMinimize,
port: parseInt(argv.port)
const entryFile = './docs/client.js';
const devEntryBundle = [
'webpack/hot/dev-server',
`webpack-dev-server/client?${webpackDevServerAddress}`,
entryFile
];
baseConfig.plugins.push(new ExtractTextPlugin('[name].css'));
if (options.debug) {
baseConfig.plugins.push(new webpack.NoErrorsPlugin());
}
export default _.extend({}, baseConfig, {
entry: {
bundle: options.debug ? devEntryBundle : entryFile
},
output: {
filename: '[name].js',
path: './docs-built/assets',
publicPath: options.debug ? `${webpackDevServerAddress}/assets/` : '/assets/'
},
module: {
noParse: /babel-core\/browser/,
loaders: [
{ test: /\.js/, loader: `${reactHot}${jsLoader}`, exclude: /node_modules|Samples\.js/ },
{ test: /Samples.js/, loader: `${reactHot}transform?brfs!${jsLoader}` },
{ test: /\.css/,
loader: ExtractTextPlugin.extract('style', `css${cssSourceMap}`) },
{ test: /\.less$/,
loader: ExtractTextPlugin.extract('style', `css${cssSourceMap}!less${cssSourceMap}`) },
{ test: /\.json$/, loader: 'json' },
{ test: /\.jpe?g$|\.gif$|\.png|\.ico$/, loader: 'file?name=[name].[ext]' },
{ test: /\.eot$|\.ttf$|\.svg$|\.woff2?$/, loader: 'file?name=[name].[ext]' }
]
}
});

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

import config from './webpack.config';
import _ from 'lodash';
import baseConfig from './base.config';
export default config({test: true});
export default _.extend({}, baseConfig, {
output: {
pathinfo: true
},
devtool: 'eval'
});
import _ from 'lodash';
import webpack from 'webpack';
import strategies from './strategies';
import yargs from 'yargs';
import baseConfig, { options } from './base.config';
const argv = yargs
.alias('p', 'optimize-minimize')
.alias('d', 'debug')
.argv;
export default _.extend({}, baseConfig, {
entry: {
'react-bootstrap': './src/index.js'
},
const defaultOptions = {
development: argv.debug,
docs: false,
test: false,
optimize: argv.optimizeMinimize
};
output: {
path: './dist',
filename: options.optimizeMinimize ? '[name].min.js' : '[name].js',
library: 'ReactBootstrap',
libraryTarget: 'umd'
},
export default (options) => {
options = _.merge({}, defaultOptions, options);
const environment = options.optimize ? 'production' : 'development';
const config = {
entry: {
'react-bootstrap': './src/index.js'
},
output: {
path: './dist',
filename: '[name].js',
library: 'ReactBootstrap',
libraryTarget: 'umd'
},
externals: [
{
'react': {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
externals: [
{
'react': {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
],
module: {
loaders: [
{ test: /\.js/, loader: 'babel', exclude: /node_modules/ }
]
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify(environment)
}
})
]
};
return strategies.reduce((conf, strategy) => {
return strategy(conf, options);
}, config);
};
}
]
});

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

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

Sorry, the diff of this file is not supported yet

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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