easy3wui 1.5.93-beta4 → 1.5.93-beta5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ :global .react-pdf__Page__canvas {
2
+ margin: auto;
3
+ }
@@ -6,6 +6,10 @@ var _extends2 = require('babel-runtime/helpers/extends');
6
6
 
7
7
  var _extends3 = _interopRequireDefault(_extends2);
8
8
 
9
+ var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
10
+
11
+ var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
12
+
9
13
  var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
10
14
 
11
15
  var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
@@ -40,14 +44,15 @@ var Easy3wDocument = function (_React$PureComponent) {
40
44
 
41
45
  Easy3wDocument.prototype.render = function render() {
42
46
  var _props = this.props,
43
- file = _props.file,
44
- children = _props.children;
47
+ children = _props.children,
48
+ otherProps = (0, _objectWithoutProperties3['default'])(_props, ['children']);
49
+ var file = otherProps.file;
45
50
 
46
- var fileNew = (0, _Easy3wAESEncryptUrl2['default'])(file, '1');
47
- return fileNew ? _react2['default'].createElement(
51
+ file = (0, _Easy3wAESEncryptUrl2['default'])(file, '1');
52
+ return file ? _react2['default'].createElement(
48
53
  _reactPdf.Document,
49
- (0, _extends3['default'])({}, this.props, {
50
- file: fileNew
54
+ (0, _extends3['default'])({}, otherProps, {
55
+ file: file
51
56
  }),
52
57
  children || ''
53
58
  ) : '';
@@ -6,6 +6,10 @@ var _extends2 = require('babel-runtime/helpers/extends');
6
6
 
7
7
  var _extends3 = _interopRequireDefault(_extends2);
8
8
 
9
+ var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
10
+
11
+ var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
12
+
9
13
  var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
10
14
 
11
15
  var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
@@ -38,18 +42,19 @@ var Easy3wIframe = function (_React$PureComponent) {
38
42
 
39
43
  Easy3wIframe.prototype.render = function render() {
40
44
  var _props = this.props,
41
- src = _props.src,
42
45
  children = _props.children,
43
46
  _props$fileFlag = _props.fileFlag,
44
- fileFlag = _props$fileFlag === undefined ? '1' : _props$fileFlag;
47
+ fileFlag = _props$fileFlag === undefined ? '1' : _props$fileFlag,
48
+ otherProps = (0, _objectWithoutProperties3['default'])(_props, ['children', 'fileFlag']);
49
+ var src = otherProps.src;
45
50
 
46
- var srcNew = (0, _Easy3wAESEncryptUrl2['default'])(src, fileFlag);
47
- return srcNew ? _react2['default'].createElement(
51
+ src = (0, _Easy3wAESEncryptUrl2['default'])(src, fileFlag);
52
+ return src ? _react2['default'].createElement(
48
53
  'iframe',
49
54
  (0, _extends3['default'])({
50
- title: srcNew
51
- }, this.pros, {
52
- src: srcNew
55
+ title: src
56
+ }, otherProps, {
57
+ src: src
53
58
  }),
54
59
  children || ''
55
60
  ) : '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.93-beta4",
3
+ "version": "1.5.93-beta5",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",