Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-spring/zdog

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-spring/zdog - npm Package Compare versions

Comparing version 9.2.4 to 9.2.5-beta.0

5

dist/declarations/src/animated.d.ts

@@ -1,8 +0,7 @@

import * as Zdog from 'react-zdog';
import { ElementType, ComponentPropsWithRef, ForwardRefExoticComponent } from 'react';
import { FluidValue } from '@react-spring/shared';
import { primitives } from './primitives';
declare type Primitives = typeof primitives[number];
declare type Primitives = typeof primitives;
declare type AnimatedPrimitives = {
[P in Primitives]: AnimatedComponent<typeof Zdog[P]>;
[P in keyof Primitives]: AnimatedComponent<Primitives[P]>;
};

@@ -9,0 +8,0 @@ /** The type of the `animated()` function */

4

dist/declarations/src/primitives.d.ts

@@ -7,3 +7,5 @@ import { ElementType } from 'react';

}[keyof ZdogExports];
export declare const primitives: ZdogElements[];
export declare const primitives: {
[key in ZdogElements]: ElementType;
};
export {};

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

var reactZdog = require('react-zdog');
var Zdog = require('react-zdog');
var core = require('@react-spring/core');

@@ -11,4 +11,38 @@ var shared = require('@react-spring/shared');

const primitives = ['Anchor', 'Shape', 'Group', 'Rect', 'RoundedRect', 'Ellipse', 'Polygon', 'Hemisphere', 'Cylinder', 'Cone', 'Box'];
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () {
return e[k];
}
});
}
});
}
n['default'] = e;
return Object.freeze(n);
}
var Zdog__namespace = /*#__PURE__*/_interopNamespace(Zdog);
const primitives = {
Anchor: Zdog__namespace.Anchor,
Shape: Zdog__namespace.Shape,
Group: Zdog__namespace.Group,
Rect: Zdog__namespace.Rect,
RoundedRect: Zdog__namespace.RoundedRect,
Ellipse: Zdog__namespace.Ellipse,
Polygon: Zdog__namespace.Polygon,
Hemisphere: Zdog__namespace.Hemisphere,
Cylinder: Zdog__namespace.Cylinder,
Cone: Zdog__namespace.Cone,
Box: Zdog__namespace.Box
};
core.Globals.assign({

@@ -19,3 +53,3 @@ createStringInterpolator: shared.createStringInterpolator,

const host = animated$1.createHost(primitives, {
applyAnimatedValues: reactZdog.applyProps
applyAnimatedValues: Zdog.applyProps
});

@@ -22,0 +56,0 @@ const animated = host.animated;

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

var reactZdog = require('react-zdog');
var Zdog = require('react-zdog');
var core = require('@react-spring/core');

@@ -11,4 +11,38 @@ var shared = require('@react-spring/shared');

const primitives = ['Anchor', 'Shape', 'Group', 'Rect', 'RoundedRect', 'Ellipse', 'Polygon', 'Hemisphere', 'Cylinder', 'Cone', 'Box'];
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () {
return e[k];
}
});
}
});
}
n['default'] = e;
return Object.freeze(n);
}
var Zdog__namespace = /*#__PURE__*/_interopNamespace(Zdog);
const primitives = {
Anchor: Zdog__namespace.Anchor,
Shape: Zdog__namespace.Shape,
Group: Zdog__namespace.Group,
Rect: Zdog__namespace.Rect,
RoundedRect: Zdog__namespace.RoundedRect,
Ellipse: Zdog__namespace.Ellipse,
Polygon: Zdog__namespace.Polygon,
Hemisphere: Zdog__namespace.Hemisphere,
Cylinder: Zdog__namespace.Cylinder,
Cone: Zdog__namespace.Cone,
Box: Zdog__namespace.Box
};
core.Globals.assign({

@@ -19,3 +53,3 @@ createStringInterpolator: shared.createStringInterpolator,

const host = animated$1.createHost(primitives, {
applyAnimatedValues: reactZdog.applyProps
applyAnimatedValues: Zdog.applyProps
});

@@ -22,0 +56,0 @@ const animated = host.animated;

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

import * as Zdog from 'react-zdog';
import { applyProps } from 'react-zdog';

@@ -7,3 +8,15 @@ import { Globals } from '@react-spring/core';

const primitives = ['Anchor', 'Shape', 'Group', 'Rect', 'RoundedRect', 'Ellipse', 'Polygon', 'Hemisphere', 'Cylinder', 'Cone', 'Box'];
const primitives = {
Anchor: Zdog.Anchor,
Shape: Zdog.Shape,
Group: Zdog.Group,
Rect: Zdog.Rect,
RoundedRect: Zdog.RoundedRect,
Ellipse: Zdog.Ellipse,
Polygon: Zdog.Polygon,
Hemisphere: Zdog.Hemisphere,
Cylinder: Zdog.Cylinder,
Cone: Zdog.Cone,
Box: Zdog.Box
};

@@ -10,0 +23,0 @@ Globals.assign({

{
"name": "@react-spring/zdog",
"version": "9.2.4",
"version": "9.2.5-beta.0",
"main": "dist/react-spring-zdog.cjs.js",

@@ -30,6 +30,6 @@ "module": "dist/react-spring-zdog.esm.js",

"dependencies": {
"@react-spring/animated": "~9.2.0",
"@react-spring/core": "~9.2.0",
"@react-spring/shared": "~9.2.0",
"@react-spring/types": "~9.2.0"
"@react-spring/animated": "~9.2.5-beta.0",
"@react-spring/core": "~9.2.5-beta.0",
"@react-spring/shared": "~9.2.5-beta.0",
"@react-spring/types": "~9.2.5-beta.0"
},

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

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