partycles 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -1
- package/dist/animations/index.d.ts +1 -0
- package/dist/animations/index.d.ts.map +1 -1
- package/dist/animations/mobileOptimizations.d.ts +6 -0
- package/dist/animations/mobileOptimizations.d.ts.map +1 -0
- package/dist/animations/useReward.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +58 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +58 -4
- package/dist/index.js.map +1 -1
- package/dist/mobileOptimizations.d.ts +6 -0
- package/dist/mobileOptimizations.d.ts.map +1 -0
- package/dist/useReward.d.ts.map +1 -1
- package/package.json +13 -2
@@ -0,0 +1,6 @@
|
|
1
|
+
import { AnimationConfig } from './types';
|
2
|
+
export declare const isMobileDevice: () => boolean;
|
3
|
+
export declare const optimizeConfigForMobile: (config: AnimationConfig) => AnimationConfig;
|
4
|
+
export declare const shouldSkipFrame: (frameCount: number) => boolean;
|
5
|
+
export declare const simplifyVisualEffects: (animationType: string) => boolean;
|
6
|
+
//# sourceMappingURL=mobileOptimizations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobileOptimizations.d.ts","sourceRoot":"","sources":["../src/mobileOptimizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,cAAc,QAAO,OAcjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,QAAQ,eAAe,KAAG,eAoBjE,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,KAAG,OAIpD,CAAC;AAGF,eAAO,MAAM,qBAAqB,GAAI,eAAe,MAAM,KAAG,OAK7D,CAAC"}
|
package/dist/useReward.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useReward.d.ts","sourceRoot":"","sources":["../src/useReward.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAY,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"useReward.d.ts","sourceRoot":"","sources":["../src/useReward.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAY,MAAM,SAAS,CAAC;AAKnE,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,GACpB,WAAW,MAAM,EACjB,eAAe,aAAa,EAC5B,SAAS,eAAe,KACvB,eAuKF,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "partycles",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.1.0",
|
4
4
|
"description": "🎉 Delightful particle animations for React",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -45,7 +45,18 @@
|
|
45
45
|
"effects",
|
46
46
|
"rewards",
|
47
47
|
"confetti",
|
48
|
-
"sparkles"
|
48
|
+
"sparkles",
|
49
|
+
"particles",
|
50
|
+
"celebration",
|
51
|
+
"fireworks",
|
52
|
+
"hearts",
|
53
|
+
"bubbles",
|
54
|
+
"snow",
|
55
|
+
"emoji",
|
56
|
+
"react-component",
|
57
|
+
"typescript",
|
58
|
+
"hooks",
|
59
|
+
"react-hooks"
|
49
60
|
],
|
50
61
|
"author": "Jonathan Leane",
|
51
62
|
"license": "MIT",
|