Comparing version 2.9.3 to 2.9.4
@@ -8,3 +8,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import findDOMNode from "rc-util/es/Dom/findDOMNode"; | ||
import { fillRef, supportRef } from "rc-util/es/ref"; | ||
import { fillRef, getNodeRef, supportRef } from "rc-util/es/ref"; | ||
import * as React from 'react'; | ||
@@ -124,4 +124,3 @@ import { useRef } from 'react'; | ||
if ( /*#__PURE__*/React.isValidElement(motionChildren) && supportRef(motionChildren)) { | ||
var _ref = motionChildren, | ||
originNodeRef = _ref.ref; | ||
var originNodeRef = getNodeRef(motionChildren); | ||
if (!originNodeRef) { | ||
@@ -128,0 +127,0 @@ motionChildren = /*#__PURE__*/React.cloneElement(motionChildren, { |
@@ -16,3 +16,3 @@ "use strict"; | ||
var _findDOMNode = _interopRequireDefault(require("rc-util/lib/Dom/findDOMNode")); | ||
var _ref2 = require("rc-util/lib/ref"); | ||
var _ref = require("rc-util/lib/ref"); | ||
var _react = _interopRequireWildcard(require("react")); | ||
@@ -89,3 +89,3 @@ var React = _react; | ||
nodeRef.current = node; | ||
(0, _ref2.fillRef)(ref, node); | ||
(0, _ref.fillRef)(ref, node); | ||
}, [ref]); | ||
@@ -136,5 +136,4 @@ | ||
// Auto inject ref if child node not have `ref` props | ||
if ( /*#__PURE__*/React.isValidElement(motionChildren) && (0, _ref2.supportRef)(motionChildren)) { | ||
var _ref = motionChildren, | ||
originNodeRef = _ref.ref; | ||
if ( /*#__PURE__*/React.isValidElement(motionChildren) && (0, _ref.supportRef)(motionChildren)) { | ||
var originNodeRef = (0, _ref.getNodeRef)(motionChildren); | ||
if (!originNodeRef) { | ||
@@ -141,0 +140,0 @@ motionChildren = /*#__PURE__*/React.cloneElement(motionChildren, { |
{ | ||
"name": "rc-motion", | ||
"version": "2.9.3", | ||
"version": "2.9.4", | ||
"description": "React lifecycle controlled motion library", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"prepare": "husky install", | ||
"prepublishOnly": "npm run compile", | ||
"prepublishOnly": "npm run compile && np --yolo --no-publish", | ||
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", | ||
@@ -52,3 +52,3 @@ "postpublish": "npm run docs:build && npm run docs:deploy", | ||
"classnames": "^2.2.1", | ||
"rc-util": "^5.43.0" | ||
"rc-util": "^5.44.0" | ||
}, | ||
@@ -55,0 +55,0 @@ "devDependencies": { |
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
106027
2190
Updatedrc-util@^5.44.0