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

react-bootstrap

Package Overview
Dependencies
Maintainers
4
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.24.0-alpha.1 to 0.24.0-alpha.2

11

CHANGELOG.md

@@ -0,1 +1,12 @@

v0.23.3 - Fri, 12 Jun 2015 21:46:30 GMT
---------------------------------------
- [9ca26e9](../../commit/9ca26e9) [added] contains "polyfill" to domUtils
- [3a254a1](../../commit/3a254a1) [added] Deprecation warning for individual file use in the Bower release
- [73c7705](../../commit/73c7705) [changed] Update chai. Dev dependency.
- [3ca90c7](../../commit/3ca90c7) [changed] Update karma-sinon-chai. Dev dependency.
- [cc4e820](../../commit/cc4e820) [changed] Update fs-extra. Dev dependency.
v0.23.2 - Mon, 08 Jun 2015 18:56:48 GMT

@@ -2,0 +13,0 @@ ---------------------------------------

34

lib/PaginationButton.js

@@ -7,4 +7,8 @@ 'use strict';

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; };
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
var _react = require('react');

@@ -26,2 +30,6 @@

var _SafeAnchor = require('./SafeAnchor');
var _SafeAnchor2 = _interopRequireDefault(_SafeAnchor);
var PaginationButton = _react2['default'].createClass({

@@ -48,5 +56,2 @@ displayName: 'PaginationButton',

handleClick: function handleClick(event) {
// This would go away once SafeAnchor is available
event.preventDefault();
if (this.props.onSelect) {

@@ -59,15 +64,17 @@ var selectedEvent = (0, _utilsCreateSelectedEvent2['default'])(this.props.eventKey);

render: function render() {
var classes = this.getBsClassSet();
var classes = _extends({
active: this.props.active,
disabled: this.props.disabled
}, this.getBsClassSet());
classes.active = this.props.active;
classes.disabled = this.props.disabled;
var _props = this.props;
var className = _props.className;
var anchorProps = _objectWithoutProperties(_props, ['className']);
return _react2['default'].createElement(
'li',
{ className: (0, _classnames2['default'])(this.props.className, classes) },
_react2['default'].createElement(
'a',
{ href: '#', onClick: this.handleClick },
this.props.children
)
{ className: (0, _classnames2['default'])(className, classes) },
_react2['default'].createElement(_SafeAnchor2['default'], _extends({}, anchorProps, {
onClick: this.handleClick }))
);

@@ -78,2 +85,3 @@ }

exports['default'] = PaginationButton;
module.exports = exports['default'];
module.exports = exports['default'];
// eslint-disable-line object-shorthand

@@ -31,21 +31,2 @@ 'use strict';

/**
* Checks whether a node is within
* a root nodes tree
*
* @param {DOMElement} node
* @param {DOMElement} root
* @returns {boolean}
*/
function isNodeInRoot(node, root) {
while (node) {
if (node === root) {
return true;
}
node = node.parentNode;
}
return false;
}
var RootCloseWrapper = (function (_React$Component) {

@@ -77,3 +58,3 @@ function RootCloseWrapper(props) {

var target = e.target || e.srcElement;
if (isNodeInRoot(target, _react2['default'].findDOMNode(this))) {
if (_utilsDomUtils2['default'].contains(_react2['default'].findDOMNode(this), target)) {
return;

@@ -80,0 +61,0 @@ }

@@ -23,2 +23,6 @@ 'use strict';

var _utilsCreateChainedFunction = require('./utils/createChainedFunction');
var _utilsCreateChainedFunction2 = _interopRequireDefault(_utilsCreateChainedFunction);
/**

@@ -47,6 +51,2 @@ * Note: This is intended as a stop-gap for accessibility concerns that the

}
if (this.props.onClick) {
this.props.onClick(event);
}
}

@@ -58,3 +58,3 @@ }, {

}, this.props, {
onClick: this.handleClick,
onClick: (0, _utilsCreateChainedFunction2['default'])(this.props.onClick, this.handleClick),
href: this.props.href || '' }));

@@ -61,0 +61,0 @@ }

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

* - Directly passed
* - Or passed an object which has a `getDOMNode` method which will return the required DOM element
* - Or passed an object that has a `render` method
*

@@ -20,0 +20,0 @@ * @param props

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

if (link) {
console.warn('You can read more about it here ' + link);
console.warn('You can read more about it at ' + link);
}

@@ -21,0 +21,0 @@ }

@@ -124,3 +124,24 @@ 'use strict';

/**
* Cross browser .contains() polyfill
* @param {HTMLElement} elem
* @param {HTMLElement} inner
* @return {bool}
*/
function contains(elem, inner) {
function ie8Contains(root, node) {
while (node) {
if (node === root) {
return true;
}
node = node.parentNode;
}
return false;
}
return elem && elem.contains ? elem.contains(inner) : elem && elem.compareDocumentPosition ? elem === inner || !!(elem.compareDocumentPosition(inner) & 16) : ie8Contains(elem, inner);
}
exports['default'] = {
contains: contains,
ownerDocument: ownerDocument,

@@ -127,0 +148,0 @@ getComputedStyles: getComputedStyles,

{
"name": "react-bootstrap",
"version": "0.24.0-alpha.1",
"version": "0.24.0-alpha.2",
"description": "Bootstrap 3 components build with React",

@@ -49,3 +49,3 @@ "repository": {

"brfs": "^1.4.0",
"chai": "^2.2.0",
"chai": "^3.0.0",
"child-process-promise": "^1.0.1",

@@ -62,3 +62,3 @@ "codemirror": "^5.0.0",

"file-loader": "^0.8.1",
"fs-extra": "^0.18.0",
"fs-extra": "^0.19.0",
"fs-promise": "^0.3.1",

@@ -78,3 +78,3 @@ "glob": "^5.0.10",

"karma-sinon": "^1.0.3",
"karma-sinon-chai": "^0.3.0",
"karma-sinon-chai": "^1.0.0",
"karma-sourcemap-loader": "^0.3.4",

@@ -81,0 +81,0 @@ "karma-webpack": "^1.5.0",

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

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