Socket
Socket
Sign inDemoInstall

rc-motion

Package Overview
Dependencies
3
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.8.0 to 2.9.0

9

es/CSSMotionList.d.ts
import * as React from 'react';
import type { CSSMotionProps } from './CSSMotion';
import type { KeyObject } from './util/diff';
export interface CSSMotionListProps extends Omit<CSSMotionProps, 'onVisibleChanged'>, Omit<React.HTMLAttributes<any>, 'children'> {
export interface CSSMotionListProps extends Omit<CSSMotionProps, 'onVisibleChanged' | 'children'>, Omit<React.HTMLAttributes<any>, 'children'> {
keys: (React.Key | {

@@ -16,2 +16,9 @@ key: React.Key;

onAllRemoved?: () => void;
children?: (props: {
visible?: boolean;
className?: string;
style?: React.CSSProperties;
index?: number;
[key: string]: any;
}, ref: (node: any) => void) => React.ReactElement;
}

@@ -18,0 +25,0 @@ export interface CSSMotionListState {

8

es/CSSMotionList.js

@@ -75,3 +75,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

delete restProps.keys;
return /*#__PURE__*/React.createElement(Component, restProps, keyEntities.map(function (_ref2) {
return /*#__PURE__*/React.createElement(Component, restProps, keyEntities.map(function (_ref2, index) {
var status = _ref2.status,

@@ -95,3 +95,7 @@ eventProps = _objectWithoutProperties(_ref2, _excluded2);

}
}), children);
}), function (props, ref) {
return children(_objectSpread(_objectSpread({}, props), {}, {
index: index
}), ref);
});
}));

@@ -98,0 +102,0 @@ }

import * as React from 'react';
import type { CSSMotionProps } from './CSSMotion';
import type { KeyObject } from './util/diff';
export interface CSSMotionListProps extends Omit<CSSMotionProps, 'onVisibleChanged'>, Omit<React.HTMLAttributes<any>, 'children'> {
export interface CSSMotionListProps extends Omit<CSSMotionProps, 'onVisibleChanged' | 'children'>, Omit<React.HTMLAttributes<any>, 'children'> {
keys: (React.Key | {

@@ -16,2 +16,9 @@ key: React.Key;

onAllRemoved?: () => void;
children?: (props: {
visible?: boolean;
className?: string;
style?: React.CSSProperties;
index?: number;
[key: string]: any;
}, ref: (node: any) => void) => React.ReactElement;
}

@@ -18,0 +25,0 @@ export interface CSSMotionListState {

@@ -86,3 +86,3 @@ "use strict";

delete restProps.keys;
return /*#__PURE__*/React.createElement(Component, restProps, keyEntities.map(function (_ref2) {
return /*#__PURE__*/React.createElement(Component, restProps, keyEntities.map(function (_ref2, index) {
var status = _ref2.status,

@@ -106,3 +106,7 @@ eventProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);

}
}), children);
}), function (props, ref) {
return children((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
index: index
}), ref);
});
}));

@@ -109,0 +113,0 @@ }

{
"name": "rc-motion",
"version": "2.8.0",
"version": "2.9.0",
"description": "React lifecycle controlled motion library",

@@ -66,2 +66,3 @@ "keywords": [

"father": "^4.1.2",
"gh-pages": "^6.0.0",
"husky": "^8.0.3",

@@ -68,0 +69,0 @@ "lint-staged": "^14.0.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc