@devexpress/dx-react-core
Advanced tools
Comparing version 1.10.1 to 1.10.2
@@ -16,8 +16,7 @@ // Dependencies for this module: | ||
export type PluginHostProps = { | ||
export interface PluginHostProps { | ||
/** Plugin React elements. */ | ||
children?: React.ReactNode; | ||
}; | ||
export class PluginHost extends React.PureComponent<PluginHostProps> { | ||
children: React.ReactNode; | ||
} | ||
export const PluginHost: React.ComponentType<PluginHostProps>; | ||
@@ -81,11 +80,12 @@ export interface ActionProps { | ||
type connectPropsType = (WrappedComponent: React.ComponentType<any>, getAdditionalProps: () => object) => typeof WrappedComponent & { | ||
update(): void; | ||
}; | ||
/*** A function that creates a new component that allows you to pass additional properties | ||
* to the wrapped component. | ||
*/ | ||
export const connectProps: connectPropsType; | ||
export const connectProps: (WrappedComponent: React.ComponentType<any>, getAdditionalProps: () => object) => (React.ComponentClass<any, any> & { | ||
update(): void; | ||
}) | (React.FunctionComponent<any> & { | ||
update(): void; | ||
}); | ||
/** | ||
* Bundle of @devexpress/dx-react-core | ||
* Generated: 2019-02-06 | ||
* Version: 1.10.1 | ||
* Generated: 2019-02-27 | ||
* Version: 1.10.2 | ||
* License: https://js.devexpress.com/Licensing | ||
@@ -9,3 +9,3 @@ */ | ||
import { createContext, createElement, Children, PureComponent, Component, createRef } from 'react'; | ||
import { shallowEqual, PluginHost, EventEmitter } from '@devexpress/dx-core'; | ||
import { shallowEqual, PluginHost as PluginHost$1, EventEmitter } from '@devexpress/dx-core'; | ||
import { findDOMNode, unstable_batchedUpdates } from 'react-dom'; | ||
@@ -116,8 +116,8 @@ import { shape, instanceOf } from 'prop-types'; | ||
/** @internal */ | ||
var withContext = function (Context, name) { return function (Component$$1) { return function (props) { return (createElement(Context.Consumer, null, function (context) { | ||
var withContext = function (Context, name) { return function (Component) { return function (props) { return (createElement(Context.Consumer, null, function (context) { | ||
var _a; | ||
return (createElement(Component$$1, __assign({}, props, (_a = {}, _a[name] = context, _a)))); | ||
return (createElement(Component, __assign({}, props, (_a = {}, _a[name] = context, _a)))); | ||
})); }; }; }; | ||
/** @internal */ | ||
var withHostAndPosition = function (Component$$1) { return withContext(PluginHostContext, PLUGIN_HOST_CONTEXT)(withContext(PositionContext, POSITION_CONTEXT)(Component$$1)); }; | ||
var withHostAndPosition = function (Component) { return withContext(PluginHostContext, PLUGIN_HOST_CONTEXT)(withContext(PositionContext, POSITION_CONTEXT)(Component)); }; | ||
@@ -235,12 +235,11 @@ /** @internal */ | ||
var PluginHost$1 = /*#__PURE__*/ (function (_super) { | ||
__extends(PluginHost$$1, _super); | ||
/** @internal */ | ||
function PluginHost$$1(props) { | ||
/** @internal */ | ||
var PluginHostBase = /*#__PURE__*/ (function (_super) { | ||
__extends(PluginHostBase, _super); | ||
function PluginHostBase(props) { | ||
var _this = _super.call(this, props) || this; | ||
_this.host = new PluginHost(); | ||
_this.host = new PluginHost$1(); | ||
return _this; | ||
} | ||
/** @internal */ | ||
PluginHost$$1.prototype.render = function () { | ||
PluginHostBase.prototype.render = function () { | ||
var children = this.props.children; | ||
@@ -251,4 +250,5 @@ return (createElement(PluginHostContext.Provider, { value: this.host }, | ||
}; | ||
return PluginHost$$1; | ||
return PluginHostBase; | ||
}(PureComponent)); | ||
var PluginHost = PluginHostBase; | ||
@@ -944,2 +944,5 @@ /** @internal */ | ||
var styles = { | ||
root: { | ||
position: 'relative', | ||
}, | ||
triggersRoot: { | ||
@@ -1033,6 +1036,6 @@ position: 'absolute', | ||
Sizer.prototype.render = function () { | ||
var _a = this.props, onSizeChange = _a.onSizeChange, Container = _a.containerComponent, restProps = __rest(_a, ["onSizeChange", "containerComponent"]); | ||
var _a = this.props, onSizeChange = _a.onSizeChange, Container = _a.containerComponent, style = _a.style, restProps = __rest(_a, ["onSizeChange", "containerComponent", "style"]); | ||
return (createElement(RefHolder, { ref: this.rootRef }, | ||
createElement(Container // NOTE: should have `position: relative` | ||
, __assign({}, restProps)))); | ||
, __assign({ style: style ? __assign({}, styles.root, style) : styles.root }, restProps)))); | ||
}; | ||
@@ -1125,15 +1128,15 @@ Sizer.defaultProps = { | ||
var makeBoundComponent = function (Target, components, exposed) { | ||
var Component$$1 = /*#__PURE__*/ (function (_super) { | ||
__extends(Component$$1, _super); | ||
function Component$$1() { | ||
var Component = /*#__PURE__*/ (function (_super) { | ||
__extends(Component, _super); | ||
function Component() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
Component$$1.prototype.render = function () { | ||
Component.prototype.render = function () { | ||
return createElement(Target, __assign({}, components, this.props)); | ||
}; | ||
return Component$$1; | ||
return Component; | ||
}(PureComponent)); | ||
Component$$1.components = Target.components; | ||
Object.assign(Component$$1, exposed); | ||
return Component$$1; | ||
Component.components = Target.components; | ||
Object.assign(Component, exposed); | ||
return Component; | ||
}; | ||
@@ -1164,3 +1167,3 @@ // type ITargetComponentStatic = new() => ITargetComponent; | ||
export { Plugin, PluginHost$1 as PluginHost, Action, Getter, Template, TemplatePlaceholder, TemplateConnector, Draggable, DragDropProvider, DragSource, DropTarget, Sizer, RefHolder, connectProps, createStateHelper, withComponents, RefType }; | ||
export { Plugin, PluginHost, Action, Getter, Template, TemplatePlaceholder, TemplateConnector, Draggable, DragDropProvider, DragSource, DropTarget, Sizer, RefHolder, connectProps, createStateHelper, withComponents, RefType }; | ||
//# sourceMappingURL=dx-react-core.es.js.map |
/** | ||
* Bundle of @devexpress/dx-react-core | ||
* Generated: 2019-02-06 | ||
* Version: 1.10.1 | ||
* Generated: 2019-02-27 | ||
* Version: 1.10.2 | ||
* License: https://js.devexpress.com/Licensing | ||
@@ -236,6 +236,6 @@ */ | ||
var PluginHost = /*#__PURE__*/ (function (_super) { | ||
__extends(PluginHost, _super); | ||
/** @internal */ | ||
function PluginHost(props) { | ||
/** @internal */ | ||
var PluginHostBase = /*#__PURE__*/ (function (_super) { | ||
__extends(PluginHostBase, _super); | ||
function PluginHostBase(props) { | ||
var _this = _super.call(this, props) || this; | ||
@@ -245,4 +245,3 @@ _this.host = new dxCore.PluginHost(); | ||
} | ||
/** @internal */ | ||
PluginHost.prototype.render = function () { | ||
PluginHostBase.prototype.render = function () { | ||
var children = this.props.children; | ||
@@ -253,4 +252,5 @@ return (React.createElement(PluginHostContext.Provider, { value: this.host }, | ||
}; | ||
return PluginHost; | ||
return PluginHostBase; | ||
}(React.PureComponent)); | ||
var PluginHost = PluginHostBase; | ||
@@ -946,2 +946,5 @@ /** @internal */ | ||
var styles = { | ||
root: { | ||
position: 'relative', | ||
}, | ||
triggersRoot: { | ||
@@ -1035,6 +1038,6 @@ position: 'absolute', | ||
Sizer.prototype.render = function () { | ||
var _a = this.props, onSizeChange = _a.onSizeChange, Container = _a.containerComponent, restProps = __rest(_a, ["onSizeChange", "containerComponent"]); | ||
var _a = this.props, onSizeChange = _a.onSizeChange, Container = _a.containerComponent, style = _a.style, restProps = __rest(_a, ["onSizeChange", "containerComponent", "style"]); | ||
return (React.createElement(RefHolder, { ref: this.rootRef }, | ||
React.createElement(Container // NOTE: should have `position: relative` | ||
, __assign({}, restProps)))); | ||
, __assign({ style: style ? __assign({}, styles.root, style) : styles.root }, restProps)))); | ||
}; | ||
@@ -1041,0 +1044,0 @@ Sizer.defaultProps = { |
{ | ||
"name": "@devexpress/dx-react-core", | ||
"version": "1.10.1", | ||
"version": "1.10.2", | ||
"description": "Core library for DevExtreme React Components", | ||
@@ -40,2 +40,3 @@ "author": { | ||
"dts": "tsc -p tsconfig.dts.json && node ./merge-dts.js", | ||
"update-api": "api-extractor run", | ||
"lint": "tslint -p tsconfig.lint.json", | ||
@@ -46,29 +47,29 @@ "lint:fix": "yarn run lint -- --fix", | ||
"devDependencies": { | ||
"@types/enzyme": "^3.1.16", | ||
"core-js": "^2.6.3", | ||
"enzyme": "3.8.0", | ||
"enzyme-adapter-react-16": "^1.8.0", | ||
"jest": "^24.0.0", | ||
"react": "^16.7.0", | ||
"react-dom": "^16.7.0", | ||
"react-test-renderer": "^16.7.0", | ||
"rollup": "^1.1.2", | ||
"@types/enzyme": "^3.9.0", | ||
"core-js": "^2.6.5", | ||
"enzyme": "3.9.0", | ||
"enzyme-adapter-react-16": "^1.9.1", | ||
"jest": "^24.1.0", | ||
"react": "^16.8.3", | ||
"react-dom": "^16.8.3", | ||
"react-test-renderer": "^16.8.3", | ||
"rollup": "^1.2.3", | ||
"rollup-plugin-license": "^0.8.1", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-node-resolve": "^4.0.1", | ||
"rollup-plugin-replace": "^2.1.0", | ||
"rollup-plugin-typescript2": "^0.19.2", | ||
"ts-jest": "^23.10.5", | ||
"tslint": "^5.12.1", | ||
"ts-jest": "^24.0.0", | ||
"tslint": "^5.13.0", | ||
"tslint-config-airbnb": "^5.11.1", | ||
"typescript": "^3.3.1" | ||
"typescript": "^3.3.3333" | ||
}, | ||
"dependencies": { | ||
"@devexpress/dx-core": "^1.10.1", | ||
"prop-types": "^15.6.2" | ||
"@devexpress/dx-core": "^1.10.2", | ||
"prop-types": "^15.7.2" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.6.0", | ||
"react-dom": ">=16.6.0" | ||
"react": ">=16.8.3", | ||
"react-dom": ">=16.8.3" | ||
}, | ||
"gitHead": "c49e13b898b71a22a0d8045ab5b0aa28547e27b2" | ||
"gitHead": "e99493bd0ebb90865da223c2d76133659cdc6247" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
264487
2345
0
Updated@devexpress/dx-core@^1.10.2
Updatedprop-types@^15.7.2