@react-spring/zdog
Advanced tools
Comparing version 9.2.4 to 9.2.5-beta.0
@@ -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 */ |
@@ -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": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
8691
187
1