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

@devexpress/dx-react-core

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devexpress/dx-react-core - npm Package Compare versions

Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7

171

dist/dx-react-core.es.js
/**
* Bundle of @devexpress/dx-react-core
* Generated: 2017-07-24
* Version: 1.0.0-alpha.6
* Generated: 2017-08-07
* Version: 1.0.0-alpha.7
* License: https://js.devexpress.com/Licensing

@@ -334,10 +334,3 @@ */

}(React.PureComponent);
Getter.defaultProps = {
value: undefined,
pureComputed: null,
connectArgs: null,
position: function position() {
return NaN;
}
};
Getter.propTypes = {

@@ -350,2 +343,10 @@ position: PropTypes.func,

};
Getter.defaultProps = {
value: undefined,
pureComputed: null,
connectArgs: null,
position: null
};
Getter.contextTypes = {

@@ -400,2 +401,3 @@ pluginHost: PropTypes.object.isRequired

}(React.PureComponent);
Action.propTypes = {

@@ -406,7 +408,7 @@ position: PropTypes.func,

};
Action.defaultProps = {
position: function position() {
return NaN;
}
position: null
};
Action.contextTypes = {

@@ -482,11 +484,3 @@ pluginHost: PropTypes.object.isRequired

}(React.PureComponent);
Template.defaultProps = {
predicate: null,
connectGetters: null,
connectActions: null,
children: null,
position: function position() {
return NaN;
}
};
Template.propTypes = {

@@ -500,2 +494,11 @@ position: PropTypes.func,

};
Template.defaultProps = {
predicate: null,
connectGetters: null,
connectActions: null,
children: null,
position: null
};
Template.contextTypes = {

@@ -505,7 +508,5 @@ pluginHost: PropTypes.object.isRequired

var CONTAINER_CONTEXT = 'pluginContainerContext';
var PluginContainer = function PluginContainer(_ref, _ref2) {
var PluginIndexer = function PluginIndexer(_ref, _ref2) {
var children = _ref.children;
var containerContext = _ref2[CONTAINER_CONTEXT];
var positionContext = _ref2.positionContext;
return React.createElement(

@@ -518,3 +519,3 @@ 'div',

var childPosition = function childPosition() {
var calculatedPosition = containerContext && containerContext() || [];
var calculatedPosition = positionContext && positionContext() || [];
return [].concat(toConsumableArray(calculatedPosition), [index]);

@@ -528,3 +529,3 @@ };

return React.createElement(
PluginContainerContext,
PluginIndexerContext,
{ position: childPosition },

@@ -537,24 +538,28 @@ child

PluginContainer.defaultProps = {
PluginIndexer.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
};
PluginIndexer.defaultProps = {
children: null
};
PluginContainer.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
PluginIndexer.contextTypes = {
positionContext: PropTypes.func
};
PluginContainer.contextTypes = defineProperty({}, CONTAINER_CONTEXT, PropTypes.func);
var PluginIndexerContext = function (_React$Component) {
inherits(PluginIndexerContext, _React$Component);
var PluginContainerContext = function (_React$Component) {
inherits(PluginContainerContext, _React$Component);
function PluginContainerContext() {
classCallCheck(this, PluginContainerContext);
return possibleConstructorReturn(this, (PluginContainerContext.__proto__ || Object.getPrototypeOf(PluginContainerContext)).apply(this, arguments));
function PluginIndexerContext() {
classCallCheck(this, PluginIndexerContext);
return possibleConstructorReturn(this, (PluginIndexerContext.__proto__ || Object.getPrototypeOf(PluginIndexerContext)).apply(this, arguments));
}
createClass(PluginContainerContext, [{
createClass(PluginIndexerContext, [{
key: 'getChildContext',
value: function getChildContext() {
return defineProperty({}, CONTAINER_CONTEXT, this.props.position);
return {
positionContext: this.props.position
};
}

@@ -567,6 +572,6 @@ }, {

}]);
return PluginContainerContext;
return PluginIndexerContext;
}(React.Component);
PluginContainerContext.propTypes = {
PluginIndexerContext.propTypes = {
position: PropTypes.func.isRequired,

@@ -576,3 +581,5 @@ children: PropTypes.node.isRequired

PluginContainerContext.childContextTypes = defineProperty({}, CONTAINER_CONTEXT, PropTypes.func);
PluginIndexerContext.childContextTypes = {
positionContext: PropTypes.func
};

@@ -850,3 +857,3 @@ var TemplateConnector = function (_React$Component) {

React.createElement(
PluginContainer,
PluginIndexer,
null,

@@ -862,8 +869,11 @@ React.createElement(Template, { name: 'root' }),

}(React.PureComponent);
PluginHost$1.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
};
PluginHost$1.defaultProps = {
children: null
};
PluginHost$1.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
};
PluginHost$1.childContextTypes = {

@@ -873,2 +883,69 @@ pluginHost: PropTypes.object.isRequired

var PluginContainer = function (_React$PureComponent) {
inherits(PluginContainer, _React$PureComponent);
function PluginContainer() {
classCallCheck(this, PluginContainer);
return possibleConstructorReturn(this, (PluginContainer.__proto__ || Object.getPrototypeOf(PluginContainer)).apply(this, arguments));
}
createClass(PluginContainer, [{
key: 'componentWillMount',
value: function componentWillMount() {
var _context = this.context,
pluginHost = _context.pluginHost,
position = _context.positionContext;
var _props = this.props,
pluginName = _props.pluginName,
dependencies = _props.dependencies;
this.plugin = {
position: position,
pluginName: pluginName,
dependencies: dependencies,
container: true
};
pluginHost.registerPlugin(this.plugin);
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
var pluginHost = this.context.pluginHost;
pluginHost.unregisterPlugin(this.plugin);
}
}, {
key: 'render',
value: function render() {
var children = this.props.children;
return React.createElement(
PluginIndexer,
null,
children
);
}
}]);
return PluginContainer;
}(React.PureComponent);
PluginContainer.propTypes = {
children: PropTypes.node.isRequired,
pluginName: PropTypes.string,
dependencies: PropTypes.arrayOf(PropTypes.shape({
pluginName: PropTypes.string,
optional: PropTypes.bool
}))
};
PluginContainer.defaultProps = {
pluginName: '',
dependencies: []
};
PluginContainer.contextTypes = {
pluginHost: PropTypes.object.isRequired,
positionContext: PropTypes.func.isRequired
};
function changeDetector(watch, onChange) {

@@ -875,0 +952,0 @@ var lastArg = null;

/**
* Bundle of @devexpress/dx-react-core
* Generated: 2017-07-24
* Version: 1.0.0-alpha.6
* Generated: 2017-08-07
* Version: 1.0.0-alpha.7
* License: https://js.devexpress.com/Licensing

@@ -338,10 +338,3 @@ */

}(React.PureComponent);
Getter.defaultProps = {
value: undefined,
pureComputed: null,
connectArgs: null,
position: function position() {
return NaN;
}
};
Getter.propTypes = {

@@ -354,2 +347,10 @@ position: PropTypes.func,

};
Getter.defaultProps = {
value: undefined,
pureComputed: null,
connectArgs: null,
position: null
};
Getter.contextTypes = {

@@ -404,2 +405,3 @@ pluginHost: PropTypes.object.isRequired

}(React.PureComponent);
Action.propTypes = {

@@ -410,7 +412,7 @@ position: PropTypes.func,

};
Action.defaultProps = {
position: function position() {
return NaN;
}
position: null
};
Action.contextTypes = {

@@ -486,11 +488,3 @@ pluginHost: PropTypes.object.isRequired

}(React.PureComponent);
Template.defaultProps = {
predicate: null,
connectGetters: null,
connectActions: null,
children: null,
position: function position() {
return NaN;
}
};
Template.propTypes = {

@@ -504,2 +498,11 @@ position: PropTypes.func,

};
Template.defaultProps = {
predicate: null,
connectGetters: null,
connectActions: null,
children: null,
position: null
};
Template.contextTypes = {

@@ -509,7 +512,5 @@ pluginHost: PropTypes.object.isRequired

var CONTAINER_CONTEXT = 'pluginContainerContext';
var PluginContainer = function PluginContainer(_ref, _ref2) {
var PluginIndexer = function PluginIndexer(_ref, _ref2) {
var children = _ref.children;
var containerContext = _ref2[CONTAINER_CONTEXT];
var positionContext = _ref2.positionContext;
return React.createElement(

@@ -522,3 +523,3 @@ 'div',

var childPosition = function childPosition() {
var calculatedPosition = containerContext && containerContext() || [];
var calculatedPosition = positionContext && positionContext() || [];
return [].concat(toConsumableArray(calculatedPosition), [index]);

@@ -532,3 +533,3 @@ };

return React.createElement(
PluginContainerContext,
PluginIndexerContext,
{ position: childPosition },

@@ -541,24 +542,28 @@ child

PluginContainer.defaultProps = {
PluginIndexer.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
};
PluginIndexer.defaultProps = {
children: null
};
PluginContainer.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
PluginIndexer.contextTypes = {
positionContext: PropTypes.func
};
PluginContainer.contextTypes = defineProperty({}, CONTAINER_CONTEXT, PropTypes.func);
var PluginIndexerContext = function (_React$Component) {
inherits(PluginIndexerContext, _React$Component);
var PluginContainerContext = function (_React$Component) {
inherits(PluginContainerContext, _React$Component);
function PluginContainerContext() {
classCallCheck(this, PluginContainerContext);
return possibleConstructorReturn(this, (PluginContainerContext.__proto__ || Object.getPrototypeOf(PluginContainerContext)).apply(this, arguments));
function PluginIndexerContext() {
classCallCheck(this, PluginIndexerContext);
return possibleConstructorReturn(this, (PluginIndexerContext.__proto__ || Object.getPrototypeOf(PluginIndexerContext)).apply(this, arguments));
}
createClass(PluginContainerContext, [{
createClass(PluginIndexerContext, [{
key: 'getChildContext',
value: function getChildContext() {
return defineProperty({}, CONTAINER_CONTEXT, this.props.position);
return {
positionContext: this.props.position
};
}

@@ -571,6 +576,6 @@ }, {

}]);
return PluginContainerContext;
return PluginIndexerContext;
}(React.Component);
PluginContainerContext.propTypes = {
PluginIndexerContext.propTypes = {
position: PropTypes.func.isRequired,

@@ -580,3 +585,5 @@ children: PropTypes.node.isRequired

PluginContainerContext.childContextTypes = defineProperty({}, CONTAINER_CONTEXT, PropTypes.func);
PluginIndexerContext.childContextTypes = {
positionContext: PropTypes.func
};

@@ -854,3 +861,3 @@ var TemplateConnector = function (_React$Component) {

React.createElement(
PluginContainer,
PluginIndexer,
null,

@@ -866,8 +873,11 @@ React.createElement(Template, { name: 'root' }),

}(React.PureComponent);
PluginHost$1.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
};
PluginHost$1.defaultProps = {
children: null
};
PluginHost$1.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
};
PluginHost$1.childContextTypes = {

@@ -877,2 +887,69 @@ pluginHost: PropTypes.object.isRequired

var PluginContainer = function (_React$PureComponent) {
inherits(PluginContainer, _React$PureComponent);
function PluginContainer() {
classCallCheck(this, PluginContainer);
return possibleConstructorReturn(this, (PluginContainer.__proto__ || Object.getPrototypeOf(PluginContainer)).apply(this, arguments));
}
createClass(PluginContainer, [{
key: 'componentWillMount',
value: function componentWillMount() {
var _context = this.context,
pluginHost = _context.pluginHost,
position = _context.positionContext;
var _props = this.props,
pluginName = _props.pluginName,
dependencies = _props.dependencies;
this.plugin = {
position: position,
pluginName: pluginName,
dependencies: dependencies,
container: true
};
pluginHost.registerPlugin(this.plugin);
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
var pluginHost = this.context.pluginHost;
pluginHost.unregisterPlugin(this.plugin);
}
}, {
key: 'render',
value: function render() {
var children = this.props.children;
return React.createElement(
PluginIndexer,
null,
children
);
}
}]);
return PluginContainer;
}(React.PureComponent);
PluginContainer.propTypes = {
children: PropTypes.node.isRequired,
pluginName: PropTypes.string,
dependencies: PropTypes.arrayOf(PropTypes.shape({
pluginName: PropTypes.string,
optional: PropTypes.bool
}))
};
PluginContainer.defaultProps = {
pluginName: '',
dependencies: []
};
PluginContainer.contextTypes = {
pluginHost: PropTypes.object.isRequired,
positionContext: PropTypes.func.isRequired
};
function changeDetector(watch, onChange) {

@@ -879,0 +956,0 @@ var lastArg = null;

{
"name": "@devexpress/dx-react-core",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"description": "Core library for DevExtreme React Components",

@@ -52,2 +52,3 @@ "author": {

"devDependencies": {
"@devexpress/dx-testing": "1.0.0-alpha.7",
"babel-cli": "^6.24.1",

@@ -82,3 +83,3 @@ "babel-core": "^6.25.0",

"dependencies": {
"@devexpress/dx-core": "1.0.0-alpha.6",
"@devexpress/dx-core": "1.0.0-alpha.7",
"prop-types": "^15.5.8"

@@ -85,0 +86,0 @@ },

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