rc-drawer
Advanced tools
Comparing version 3.1.3 to 3.2.0
@@ -48,10 +48,2 @@ import * as React from 'react'; | ||
} | ||
declare const _default: typeof DrawerChild & { | ||
prototype: DrawerChild; | ||
defaultProps: { | ||
switchScrollingEffect: () => void; | ||
}; | ||
getDerivedStateFromProps: typeof DrawerChild.getDerivedStateFromProps; | ||
contextType?: React.Context<any>; | ||
}; | ||
export default _default; | ||
export default DrawerChild; |
@@ -1,2 +0,2 @@ | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -15,11 +15,15 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -30,11 +34,10 @@ import classnames from 'classnames'; | ||
import * as React from 'react'; | ||
import { polyfill } from 'react-lifecycles-compat'; | ||
import { addEventListener, dataToArray, getTouchParentScroll, isNumeric, removeEventListener, transformArguments, transitionEnd, transitionStr, windowIsUndefined } from './utils'; | ||
var currentDrawer = {}; | ||
var DrawerChild = | ||
/*#__PURE__*/ | ||
function (_React$Component) { | ||
var DrawerChild = /*#__PURE__*/function (_React$Component) { | ||
_inherits(DrawerChild, _React$Component); | ||
var _super = _createSuper(DrawerChild); | ||
function DrawerChild(props) { | ||
@@ -45,3 +48,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(DrawerChild).call(this, props)); | ||
_this = _super.call(this, props); | ||
@@ -593,2 +596,2 @@ _this.domFocus = function () { | ||
}; | ||
export default polyfill(DrawerChild); | ||
export default DrawerChild; |
@@ -38,26 +38,2 @@ import * as React from 'react'; | ||
} | ||
declare const _default: typeof DrawerWrapper & { | ||
prototype: DrawerWrapper; | ||
defaultProps: { | ||
prefixCls: string; | ||
placement: string; | ||
getContainer: string; | ||
defaultOpen: boolean; | ||
level: string; | ||
duration: string; | ||
ease: string; | ||
onChange: () => void; | ||
afterVisibleChange: () => void; | ||
handler: JSX.Element; | ||
showMask: boolean; | ||
maskClosable: boolean; | ||
maskStyle: {}; | ||
wrapperClassName: string; | ||
className: string; | ||
keyboard: boolean; | ||
forceRender: boolean; | ||
}; | ||
getDerivedStateFromProps: typeof DrawerWrapper.getDerivedStateFromProps; | ||
contextType?: React.Context<any>; | ||
}; | ||
export default _default; | ||
export default DrawerWrapper; |
@@ -1,2 +0,2 @@ | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -13,2 +13,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -18,18 +24,15 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
import Portal from "rc-util/es/PortalWrapper"; | ||
import * as React from 'react'; | ||
import { polyfill } from 'react-lifecycles-compat'; | ||
import Child from './DrawerChild'; | ||
var DrawerWrapper = | ||
/*#__PURE__*/ | ||
function (_React$Component) { | ||
var DrawerWrapper = /*#__PURE__*/function (_React$Component) { | ||
_inherits(DrawerWrapper, _React$Component); | ||
var _super = _createSuper(DrawerWrapper); | ||
function DrawerWrapper(props) { | ||
@@ -40,3 +43,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(DrawerWrapper).call(this, props)); | ||
_this = _super.call(this, props); | ||
@@ -187,2 +190,2 @@ _this.onHandleClick = function (e) { | ||
}; | ||
export default polyfill(DrawerWrapper); | ||
export default DrawerWrapper; |
@@ -5,2 +5,6 @@ History | ||
## 3.2.0 | ||
- Remove `react-lifecycles-compat`. | ||
## 3.0.0 | ||
@@ -7,0 +11,0 @@ |
@@ -48,10 +48,2 @@ import * as React from 'react'; | ||
} | ||
declare const _default: typeof DrawerChild & { | ||
prototype: DrawerChild; | ||
defaultProps: { | ||
switchScrollingEffect: () => void; | ||
}; | ||
getDerivedStateFromProps: typeof DrawerChild.getDerivedStateFromProps; | ||
contextType?: React.Context<any>; | ||
}; | ||
export default _default; | ||
export default DrawerChild; |
@@ -16,4 +16,2 @@ "use strict"; | ||
var _reactLifecyclesCompat = require("react-lifecycles-compat"); | ||
var _utils = require("./utils"); | ||
@@ -27,3 +25,3 @@ | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -42,19 +40,23 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
var currentDrawer = {}; | ||
var DrawerChild = | ||
/*#__PURE__*/ | ||
function (_React$Component) { | ||
var DrawerChild = /*#__PURE__*/function (_React$Component) { | ||
_inherits(DrawerChild, _React$Component); | ||
var _super = _createSuper(DrawerChild); | ||
function DrawerChild(props) { | ||
@@ -65,3 +67,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(DrawerChild).call(this, props)); | ||
_this = _super.call(this, props); | ||
@@ -613,5 +615,3 @@ _this.domFocus = function () { | ||
}; | ||
var _default = (0, _reactLifecyclesCompat.polyfill)(DrawerChild); | ||
var _default = DrawerChild; | ||
exports.default = _default; |
@@ -38,26 +38,2 @@ import * as React from 'react'; | ||
} | ||
declare const _default: typeof DrawerWrapper & { | ||
prototype: DrawerWrapper; | ||
defaultProps: { | ||
prefixCls: string; | ||
placement: string; | ||
getContainer: string; | ||
defaultOpen: boolean; | ||
level: string; | ||
duration: string; | ||
ease: string; | ||
onChange: () => void; | ||
afterVisibleChange: () => void; | ||
handler: JSX.Element; | ||
showMask: boolean; | ||
maskClosable: boolean; | ||
maskStyle: {}; | ||
wrapperClassName: string; | ||
className: string; | ||
keyboard: boolean; | ||
forceRender: boolean; | ||
}; | ||
getDerivedStateFromProps: typeof DrawerWrapper.getDerivedStateFromProps; | ||
contextType?: React.Context<any>; | ||
}; | ||
export default _default; | ||
export default DrawerWrapper; |
@@ -12,4 +12,2 @@ "use strict"; | ||
var _reactLifecyclesCompat = require("react-lifecycles-compat"); | ||
var _DrawerChild = _interopRequireDefault(require("./DrawerChild")); | ||
@@ -23,3 +21,3 @@ | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -36,2 +34,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -41,13 +45,11 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
var DrawerWrapper = /*#__PURE__*/function (_React$Component) { | ||
_inherits(DrawerWrapper, _React$Component); | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
var _super = _createSuper(DrawerWrapper); | ||
var DrawerWrapper = | ||
/*#__PURE__*/ | ||
function (_React$Component) { | ||
_inherits(DrawerWrapper, _React$Component); | ||
function DrawerWrapper(props) { | ||
@@ -58,3 +60,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(DrawerWrapper).call(this, props)); | ||
_this = _super.call(this, props); | ||
@@ -205,5 +207,3 @@ _this.onHandleClick = function (e) { | ||
}; | ||
var _default = (0, _reactLifecyclesCompat.polyfill)(DrawerWrapper); | ||
var _default = DrawerWrapper; | ||
exports.default = _default; |
{ | ||
"name": "rc-drawer", | ||
"version": "3.1.3", | ||
"version": "3.2.0", | ||
"description": "drawer component for react", | ||
@@ -49,7 +49,6 @@ "keywords": [ | ||
"@types/enzyme": "^3.1.15", | ||
"@types/jest": "^24.0.15", | ||
"@types/jest": "^25.1.0", | ||
"@types/raf": "^3.4.0", | ||
"@types/react": "^16.9.5", | ||
"@types/react-dom": "^16.9.1", | ||
"@types/react-lifecycles-compat": "^3.0.1", | ||
"@types/warning": "^3.0.0", | ||
@@ -64,4 +63,3 @@ "@umijs/fabric": "^2.0.0", | ||
"less": "^3.10.3", | ||
"np": "^5.0.3", | ||
"pre-commit": "^1.2.2", | ||
"np": "^6.0.0", | ||
"querystring": "^0.2.0", | ||
@@ -76,5 +74,4 @@ "rc-test": "^6.0.1", | ||
"classnames": "^2.2.6", | ||
"rc-util": "^4.16.1", | ||
"react-lifecycles-compat": "^3.0.4" | ||
"rc-util": "^4.16.1" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
93777
3
22
0
1946
- Removedreact-lifecycles-compat@^3.0.4