react-confetti-burst 1.0.5 → 1.0.7
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/CONTRIBUTING.md +111 -0
- package/README.md +532 -387
- package/dist/cjs/index.js +3 -3
- package/dist/confetti.browser.js +9 -0
- package/dist/esm/index.js +3 -3
- package/dist/types/index.d.ts +728 -6
- package/package.json +106 -83
package/package.json
CHANGED
|
@@ -1,83 +1,106 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-confetti-burst",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A high-performance, zero-dependency React confetti component with directional bursts using Canvas API",
|
|
5
|
-
"main": "dist/cjs/index.js",
|
|
6
|
-
"module": "dist/esm/index.js",
|
|
7
|
-
"types": "dist/types/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/types/index.d.ts",
|
|
11
|
-
"require": "./dist/cjs/index.js",
|
|
12
|
-
"import": "./dist/esm/index.js"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"dist/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"build
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
},
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"jest-
|
|
74
|
-
"react": "^
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"typescript": "^
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "react-confetti-burst",
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"description": "A high-performance, zero-dependency React confetti component with directional bursts using Canvas API",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"require": "./dist/cjs/index.js",
|
|
12
|
+
"import": "./dist/esm/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./browser": "./dist/confetti.browser.js"
|
|
15
|
+
},
|
|
16
|
+
"browser": "dist/confetti.browser.js",
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/cjs/index.js",
|
|
20
|
+
"dist/esm/index.js",
|
|
21
|
+
"dist/confetti.browser.js",
|
|
22
|
+
"dist/types/index.d.ts",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"CONTRIBUTING.md"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "npm run clean && npm run build:bundle && npm run build:types",
|
|
29
|
+
"build:bundle": "node build.js",
|
|
30
|
+
"build:types": "dts-bundle-generator -o dist/types/index.d.ts src/index.ts --no-banner --no-check",
|
|
31
|
+
"build:types:fallback": "tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
32
|
+
"build:dev": "npm run build:cjs && npm run build:esm && npm run build:types:fallback",
|
|
33
|
+
"build:cjs": "tsc -p tsconfig.json",
|
|
34
|
+
"build:esm": "tsc -p tsconfig.esm.json",
|
|
35
|
+
"clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
|
|
36
|
+
"test": "jest",
|
|
37
|
+
"test:watch": "jest --watch",
|
|
38
|
+
"test:coverage": "jest --coverage",
|
|
39
|
+
"lint": "eslint src",
|
|
40
|
+
"typecheck": "tsc --noEmit",
|
|
41
|
+
"prepare": "husky",
|
|
42
|
+
"prepublishOnly": "npm run build",
|
|
43
|
+
"size": "node -e \"const f=require('fs');const e=f.statSync('dist/esm/index.js').size;const c=f.statSync('dist/cjs/index.js').size;console.log('ESM:',(e/1024).toFixed(2)+'KB','CJS:',(c/1024).toFixed(2)+'KB','Total:',((e+c)/1024).toFixed(2)+'KB')\"",
|
|
44
|
+
"playground": "npm run dev --prefix playground"
|
|
45
|
+
},
|
|
46
|
+
"keywords": [
|
|
47
|
+
"react",
|
|
48
|
+
"confetti",
|
|
49
|
+
"canvas",
|
|
50
|
+
"animation",
|
|
51
|
+
"celebration",
|
|
52
|
+
"burst",
|
|
53
|
+
"directional",
|
|
54
|
+
"particles",
|
|
55
|
+
"typescript",
|
|
56
|
+
"zero-dependencies"
|
|
57
|
+
],
|
|
58
|
+
"author": "",
|
|
59
|
+
"license": "MIT",
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": ""
|
|
63
|
+
},
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": ""
|
|
66
|
+
},
|
|
67
|
+
"homepage": "",
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"react": ">=17.0.0",
|
|
70
|
+
"react-dom": ">=17.0.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
74
|
+
"@testing-library/react": "^14.0.0",
|
|
75
|
+
"@types/jest": "^29.5.0",
|
|
76
|
+
"@types/react": "^18.2.0",
|
|
77
|
+
"@types/react-dom": "^18.2.0",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^8.57.1",
|
|
79
|
+
"@typescript-eslint/parser": "^8.57.1",
|
|
80
|
+
"dts-bundle-generator": "^9.5.1",
|
|
81
|
+
"esbuild": "^0.27.2",
|
|
82
|
+
"eslint": "^9.39.4",
|
|
83
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
84
|
+
"husky": "^9.1.7",
|
|
85
|
+
"jest": "^29.7.0",
|
|
86
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
87
|
+
"lint-staged": "^16.4.0",
|
|
88
|
+
"react": "^18.2.0",
|
|
89
|
+
"react-dom": "^18.2.0",
|
|
90
|
+
"terser": "^5.44.1",
|
|
91
|
+
"ts-jest": "^29.1.0",
|
|
92
|
+
"typescript": "^5.3.0"
|
|
93
|
+
},
|
|
94
|
+
"engines": {
|
|
95
|
+
"node": ">=18.0.0"
|
|
96
|
+
},
|
|
97
|
+
"lint-staged": {
|
|
98
|
+
"src/**/*.{ts,tsx}": [
|
|
99
|
+
"eslint --fix"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"overrides": {
|
|
103
|
+
"@tootallnate/once": "3.0.1",
|
|
104
|
+
"minimatch": ">=3.1.4"
|
|
105
|
+
}
|
|
106
|
+
}
|