@douyinfe/semi-animation-react 2.67.2-alpha.0 → 2.67.2

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.
@@ -146,7 +146,7 @@ class Animation extends _react.PureComponent {
146
146
  } = this.props;
147
147
  if (typeof children === 'function') {
148
148
  return children(this.animation.getCurrentStates());
149
- } else if ( /*#__PURE__*/(0, _react.isValidElement)(children)) {
149
+ } else if (/*#__PURE__*/(0, _react.isValidElement)(children)) {
150
150
  return children;
151
151
  } else {
152
152
  return null;
@@ -91,7 +91,7 @@ class StyledAnimation extends _react.PureComponent {
91
91
  animationDirection: reverse ? 'alternate' : 'normal',
92
92
  animationFillMode: fillMode
93
93
  };
94
- if ( /*#__PURE__*/(0, _react.isValidElement)(children)) {
94
+ if (/*#__PURE__*/(0, _react.isValidElement)(children)) {
95
95
  children = _react.Children.map(children, child => {
96
96
  const animateEvents = this._generateAnimateEvents(child, this.props);
97
97
  return /*#__PURE__*/(0, _react.cloneElement)(child, Object.assign({
@@ -138,7 +138,7 @@ export default class Animation extends PureComponent {
138
138
  } = this.props;
139
139
  if (typeof children === 'function') {
140
140
  return children(this.animation.getCurrentStates());
141
- } else if ( /*#__PURE__*/isValidElement(children)) {
141
+ } else if (/*#__PURE__*/isValidElement(children)) {
142
142
  return children;
143
143
  } else {
144
144
  return null;
@@ -84,7 +84,7 @@ export default class StyledAnimation extends PureComponent {
84
84
  animationDirection: reverse ? 'alternate' : 'normal',
85
85
  animationFillMode: fillMode
86
86
  };
87
- if ( /*#__PURE__*/isValidElement(children)) {
87
+ if (/*#__PURE__*/isValidElement(children)) {
88
88
  children = Children.map(children, child => {
89
89
  const animateEvents = this._generateAnimateEvents(child, this.props);
90
90
  return /*#__PURE__*/cloneElement(child, Object.assign({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-animation-react",
3
- "version": "2.67.2-alpha.0",
3
+ "version": "2.67.2",
4
4
  "description": "motion library for semi-ui-react",
5
5
  "keywords": [
6
6
  "motion",
@@ -25,8 +25,8 @@
25
25
  "prepublishOnly": "npm run build:lib"
26
26
  },
27
27
  "dependencies": {
28
- "@douyinfe/semi-animation": "2.67.2-alpha.0",
29
- "@douyinfe/semi-animation-styled": "2.67.2-alpha.0",
28
+ "@douyinfe/semi-animation": "2.67.2",
29
+ "@douyinfe/semi-animation-styled": "2.67.2",
30
30
  "classnames": "^2.2.6"
31
31
  },
32
32
  "devDependencies": {
@@ -42,5 +42,5 @@
42
42
  "prop-types": "^15.7.2",
43
43
  "react-storybook-addon-props-combinations": "^1.1.0"
44
44
  },
45
- "gitHead": "9ad910e9b057e33d05d7194786dfeb76519f89cb"
45
+ "gitHead": "2ff1f1c65aa51266782304dfd1dea055d20ee028"
46
46
  }