re-resizable
Advanced tools
Comparing version 6.5.0 to 6.5.1
@@ -24,2 +24,9 @@ # Changelog | ||
## [6.5.0 (2020-06-17)](https://github.com/bokuweb/re-resizable/compare/v6.4.0...v6.5.0) | ||
### :bug: Bug Fix | ||
- Fix ES Module Output #634 | ||
## [6.4.0 (2020-05-14)](https://github.com/bokuweb/re-resizable/compare/v6.3.2...v6.4.0) | ||
@@ -26,0 +33,0 @@ |
@@ -55,3 +55,3 @@ import * as React from 'react'; | ||
export interface ResizableProps { | ||
as: string | React.ComponentType<any>; | ||
as?: string | React.ComponentType<any>; | ||
style?: React.CSSProperties; | ||
@@ -58,0 +58,0 @@ className?: string; |
@@ -791,2 +791,3 @@ 'use strict'; | ||
var _this = this; | ||
var _a; | ||
var extendsProps = Object.keys(this.props).reduce(function (acc, key) { | ||
@@ -803,3 +804,3 @@ if (definedProps.indexOf(key) !== -1) { | ||
} | ||
var Wrapper = this.props.as; | ||
var Wrapper = (_a = this.props.as) !== null && _a !== void 0 ? _a : 'div'; | ||
return (React.createElement(Wrapper, __assign({ ref: this.ref, style: style, className: this.props.className }, extendsProps), | ||
@@ -806,0 +807,0 @@ this.state.isResizing && React.createElement("div", { style: this.state.backgroundStyle }), |
@@ -689,2 +689,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var _this = this; | ||
var _a; | ||
var extendsProps = Object.keys(this.props).reduce(function (acc, key) { | ||
@@ -701,3 +702,3 @@ if (definedProps.indexOf(key) !== -1) { | ||
} | ||
var Wrapper = this.props.as; | ||
var Wrapper = (_a = this.props.as) !== null && _a !== void 0 ? _a : 'div'; | ||
return (React.createElement(Wrapper, __assign({ ref: this.ref, style: style, className: this.props.className }, extendsProps), | ||
@@ -704,0 +705,0 @@ this.state.isResizing && React.createElement("div", { style: this.state.backgroundStyle }), |
{ | ||
"name": "re-resizable", | ||
"version": "6.5.0", | ||
"version": "6.5.1", | ||
"description": "Resizable component for React.", | ||
@@ -22,3 +22,3 @@ "title": "re-resizable", | ||
"start": "npm-run-all --parallel storybook", | ||
"test": "cross-env NODE_ENV='test' tsc && avaron lib/index.test.js --renderer", | ||
"test": "cross-env NODE_ENV='test' tsc -p tsconfig.test.json && avaron lib/index.test.js --renderer", | ||
"test:ci": "npm run flow && npm run build", | ||
@@ -25,0 +25,0 @@ "prepublish": "npm run build", |
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
178390
2888