@react-spring/zdog
Advanced tools
Comparing version 9.0.0-rc.3 to 9.0.0
@@ -5,20 +5,29 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var reactZdog = require('react-zdog'); | ||
var core = require('@react-spring/core/index.cjs.js'); | ||
var animated$1 = require('@react-spring/animated/index.cjs.js'); | ||
var stringInterpolation = require('@react-spring/shared/stringInterpolation'); | ||
var colorNames = _interopDefault(require('@react-spring/shared/colors')); | ||
var core = require('@react-spring/core'); | ||
var shared = require('@react-spring/shared'); | ||
var animated$1 = require('@react-spring/animated'); | ||
var primitives = ['Anchor', 'Shape', 'Group', 'Rect', 'RoundedRect', 'Ellipse', 'Polygon', 'Hemisphere', 'Cylinder', 'Cone', 'Box']; | ||
const primitives = [ | ||
"Anchor", | ||
"Shape", | ||
"Group", | ||
"Rect", | ||
"RoundedRect", | ||
"Ellipse", | ||
"Polygon", | ||
"Hemisphere", | ||
"Cylinder", | ||
"Cone", | ||
"Box" | ||
]; | ||
core.Globals.assign({ | ||
createStringInterpolator: stringInterpolation.createStringInterpolator, | ||
colorNames: colorNames | ||
createStringInterpolator: shared.createStringInterpolator, | ||
colors: shared.colors | ||
}); | ||
var host = animated$1.createHost(primitives, { | ||
const host = animated$1.createHost(primitives, { | ||
applyAnimatedValues: reactZdog.applyProps | ||
}); | ||
var animated = host.animated; | ||
const animated = host.animated; | ||
@@ -25,0 +34,0 @@ Object.keys(core).forEach(function (k) { |
19
index.js
import { applyProps } from 'react-zdog'; | ||
import { Globals } from '@react-spring/core'; | ||
export * from '@react-spring/core'; | ||
import { createStringInterpolator, colors } from '@react-spring/shared'; | ||
import { createHost } from '@react-spring/animated'; | ||
import { createStringInterpolator } from '@react-spring/shared/stringInterpolation'; | ||
import colorNames from '@react-spring/shared/colors'; | ||
const primitives = ['Anchor', 'Shape', 'Group', 'Rect', 'RoundedRect', 'Ellipse', 'Polygon', 'Hemisphere', 'Cylinder', 'Cone', 'Box']; | ||
const primitives = [ | ||
"Anchor", | ||
"Shape", | ||
"Group", | ||
"Rect", | ||
"RoundedRect", | ||
"Ellipse", | ||
"Polygon", | ||
"Hemisphere", | ||
"Cylinder", | ||
"Cone", | ||
"Box" | ||
]; | ||
Globals.assign({ | ||
createStringInterpolator, | ||
colorNames | ||
colors | ||
}); | ||
@@ -14,0 +25,0 @@ const host = createHost(primitives, { |
{ | ||
"name": "@react-spring/zdog", | ||
"version": "9.0.0-rc.3", | ||
"version": "9.0.0", | ||
"description": "Cross-platform animation engine for React", | ||
@@ -16,12 +16,6 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/react-spring/react-spring/tree/master/targets/zdog#readme", | ||
"bugs": { | ||
"url": "https://github.com/react-spring/react-spring/issues" | ||
}, | ||
"homepage": "https://github.com/pmndrs/react-spring/tree/v9/targets/zdog#readme", | ||
"repository": "pmndrs/react-spring", | ||
"license": "MIT", | ||
"author": "Paul Henschel", | ||
"contributors": [ | ||
"Alec Larson (https://github.com/aleclarson)" | ||
], | ||
"sideEffects": false, | ||
"main": "index.cjs.js", | ||
@@ -31,9 +25,9 @@ "module": "index.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.1", | ||
"@react-spring/animated": "9.0.0-rc.3", | ||
"@react-spring/core": "9.0.0-rc.3", | ||
"@react-spring/shared": "9.0.0-rc.3" | ||
"@react-spring/animated": "^9.0.0", | ||
"@react-spring/core": "^9.0.0", | ||
"@react-spring/shared": "^9.0.0", | ||
"@react-spring/types": "^9.0.0" | ||
}, | ||
"devDependencies": { | ||
"typescript": "3.8.3" | ||
"typescript": "^4.0.0" | ||
}, | ||
@@ -48,3 +42,4 @@ "peerDependencies": { | ||
"access": "public" | ||
} | ||
}, | ||
"maintainers": [] | ||
} |
import { applyProps } from 'react-zdog' | ||
import { Globals } from '@react-spring/core' | ||
import { createStringInterpolator, colors } from '@react-spring/shared' | ||
import { createHost } from '@react-spring/animated' | ||
import { createStringInterpolator } from '@react-spring/shared/stringInterpolation' | ||
import colorNames from '@react-spring/shared/colors' | ||
import { primitives } from './primitives' | ||
@@ -11,3 +10,3 @@ import { WithAnimated } from './animated' | ||
createStringInterpolator, | ||
colorNames, | ||
colors, | ||
}) | ||
@@ -14,0 +13,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
0
9972
12
215
1
1
+ Added@react-spring/types@^9.0.0
+ Added@react-spring/animated@9.7.5(transitive)
+ Added@react-spring/core@9.7.5(transitive)
+ Added@react-spring/rafz@9.7.5(transitive)
+ Added@react-spring/shared@9.7.5(transitive)
+ Added@react-spring/types@9.7.5(transitive)
- Removed@babel/runtime@^7.3.1
- Removed@alloc/types@1.3.0(transitive)
- Removed@babel/runtime@7.26.0(transitive)
- Removed@react-spring/animated@9.0.0-rc.3(transitive)
- Removed@react-spring/core@9.0.0-rc.3(transitive)
- Removed@react-spring/shared@9.0.0-rc.3(transitive)
- Removedfluids@0.1.10(transitive)
- Removedreact-layout-effect@1.0.5(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedtslib@1.14.1(transitive)
- Removeduse-memo-one@1.1.3(transitive)
Updated@react-spring/core@^9.0.0
Updated@react-spring/shared@^9.0.0