Socket
Socket
Sign inDemoInstall

@react-spring/web

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-spring/web - npm Package Compare versions

Comparing version 9.0.0-beta.25 to 9.0.0-beta.27

2

index.cjs.js

@@ -116,3 +116,3 @@ 'use strict';

var animated = animated$1.withExtend(animated$1.createAnimatedComponent).extend(elements);
var animated = animated$1.extendAnimated(animated$1.withAnimated, elements);

@@ -119,0 +119,0 @@ core.Globals.assign({

/// <reference types="react" />
import { WithExtend } from '@react-spring/animated';
import { ForwardRefExoticComponent, CSSProperties } from 'react';

@@ -10,6 +9,7 @@ import { ElementType, ComponentPropsWithRef, SpringValue } from '@react-spring/shared';

declare type DOMComponents = {
[Tag in JSXElements]: AnimatedComponent<Tag>;
};
declare type CreateAnimated = <T extends ElementType>(wrappedComponent: T) => AnimatedComponent<T>;
declare const animated: WithExtend<CreateAnimated & {
[Tag in JSXElements]: AnimatedComponent<Tag>;
}>;
declare const animated: CreateAnimated & DOMComponents;
/** The type of an `animated()` component */

@@ -16,0 +16,0 @@ declare type AnimatedComponent<T extends ElementType> = ForwardRefExoticComponent<AnimatedProps<ComponentPropsWithRef<T>> & {

@@ -6,3 +6,3 @@ import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';

import colorNames from '@react-spring/shared/colors';
import { withExtend, createAnimatedComponent } from '@react-spring/animated';
import { extendAnimated, withAnimated } from '@react-spring/animated';

@@ -106,3 +106,3 @@ let isUnitlessNumber = {

const animated = withExtend(createAnimatedComponent).extend(elements);
const animated = extendAnimated(withAnimated, elements);

@@ -109,0 +109,0 @@ Globals.assign({

{
"name": "@react-spring/web",
"version": "9.0.0-beta.25",
"version": "9.0.0-beta.27",
"description": "Cross-platform animation engine",

@@ -31,5 +31,5 @@ "keywords": [

"@babel/runtime": "^7.3.1",
"@react-spring/animated": "^9.0.0-beta.25",
"@react-spring/core": "^9.0.0-beta.25",
"@react-spring/shared": "^9.0.0-beta.25"
"@react-spring/animated": "^9.0.0-beta.27",
"@react-spring/core": "^9.0.0-beta.27",
"@react-spring/shared": "^9.0.0-beta.27"
},

@@ -36,0 +36,0 @@ "devDependencies": {

@@ -1,6 +0,2 @@

import {
createAnimatedComponent,
withExtend,
WithExtend,
} from '@react-spring/animated'
import { withAnimated, extendAnimated } from '@react-spring/animated'
import { CSSProperties, ForwardRefExoticComponent } from 'react'

@@ -10,2 +6,6 @@ import { SpringValue, ElementType, ComponentPropsWithRef } from '@react-spring/shared'

type DOMComponents = {
[Tag in JSXElements]: AnimatedComponent<Tag>
}
type CreateAnimated = <T extends ElementType>(

@@ -16,5 +16,6 @@ wrappedComponent: T

// Extend `animated` with every available DOM element
export const animated: WithExtend<
CreateAnimated & { [Tag in JSXElements]: AnimatedComponent<Tag> }
> = withExtend(createAnimatedComponent as any).extend(elements)
export const animated: CreateAnimated & DOMComponents = extendAnimated(
withAnimated,
elements
)

@@ -21,0 +22,0 @@ export { animated as a }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc