@sarthak03dot/romantic-animations 1.2.7 → 1.2.9

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 CHANGED
@@ -1,4 +1,4 @@
1
- # 💖 Romantic Animations v1.2.7
1
+ # 💖 Romantic Animations v1.2.8
2
2
 
3
3
  <p align="center">
4
4
  <b>A premium, lightweight, zero-dependency JavaScript canvas particle library for gorgeous romantic & celebratory effects.</b>
@@ -0,0 +1 @@
1
+ export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarthak03dot/romantic-animations",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "Romantic & celebratory canvas animations — hearts, sparkles, fireworks, confetti, star fields and more. Zero dependencies.",
5
5
  "homepage": "https://github.com/sarthak03dot/romantic-animations#readme",
6
6
  "bugs": {
@@ -32,6 +32,7 @@
32
32
  "module": "dist/romantic-animations.es.js",
33
33
  "exports": {
34
34
  ".": {
35
+ "types": "./dist/index.d.ts",
35
36
  "import": "./dist/romantic-animations.es.js",
36
37
  "require": "./dist/romantic-animations.umd.js"
37
38
  }
@@ -41,6 +42,7 @@
41
42
  "src",
42
43
  "README.md"
43
44
  ],
45
+ "sideEffects": false,
44
46
  "scripts": {
45
47
  "dev": "vite",
46
48
  "build": "vite build",
@@ -52,6 +54,7 @@
52
54
  },
53
55
  "devDependencies": {
54
56
  "gh-pages": "^6.3.0",
55
- "vite": "^7.0.2"
57
+ "vite": "^7.0.2",
58
+ "vite-plugin-dts": "^5.0.1"
56
59
  }
57
60
  }
package/src/index.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ export interface AnimationOptions {
2
+ density?: number;
3
+ minSize?: number;
4
+ maxSize?: number;
5
+ speed?: number;
6
+ colors?: string[];
7
+ zIndex?: number;
8
+ pointerEvents?: boolean;
9
+ }
10
+
11
+ export declare function startFloatingHearts(
12
+ container?: HTMLElement,
13
+ options?: AnimationOptions
14
+ ): number;
15
+
16
+ export declare function startConfetti(
17
+ container?: HTMLElement,
18
+ options?: AnimationOptions
19
+ ): number;
20
+
21
+ export declare function startFireworks(
22
+ container?: HTMLElement,
23
+ options?: AnimationOptions
24
+ ): number;
25
+
26
+ export declare function stopAnimation(id: number): void;