@tsparticles/confetti 3.0.0-beta.0 → 3.0.0-beta.2

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
@@ -4,31 +4,31 @@
4
4
 
5
5
  [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/confetti/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/confetti) [![npmjs](https://badge.fury.io/js/@tsparticles/confetti.svg)](https://www.npmjs.com/package/@tsparticles/confetti) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/confetti)](https://www.npmjs.com/package/@tsparticles/confetti) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
6
 
7
- [tsParticles](https://github.com/matteobruni/tsparticles) confetti bundle loads all the features necessary to create beautiful confetti effects with ease.
7
+ [tsParticles](https://github.com/tsparticles/tsparticles) confetti bundle loads all the features necessary to create beautiful confetti effects with ease.
8
8
 
9
9
  **Included Packages**
10
10
 
11
- - [@tsparticles/engine](https://github.com/matteobruni/tsparticles/tree/main/engine)
12
- - [@tsparticles/move-base](https://github.com/matteobruni/tsparticles/tree/main/move/base)
13
- - [@tsparticles/plugin-emitters](https://github.com/matteobruni/tsparticles/tree/main/plugins/emitters)
14
- - [@tsparticles/plugin-motion](https://github.com/matteobruni/tsparticles/tree/main/plugins/motion)
15
- - [@tsparticles/shape-cards](https://github.com/matteobruni/tsparticles/tree/main/shapes/cards)
16
- - [@tsparticles/shape-circle](https://github.com/matteobruni/tsparticles/tree/main/shapes/circle)
17
- - [@tsparticles/shape-heart](https://github.com/matteobruni/tsparticles/tree/main/shapes/heart)
18
- - [@tsparticles/shape-image](https://github.com/matteobruni/tsparticles/tree/main/shapes/image)
19
- - [@tsparticles/shape-polygon](https://github.com/matteobruni/tsparticles/tree/main/shapes/polygon)
20
- - [@tsparticles/shape-square](https://github.com/matteobruni/tsparticles/tree/main/shapes/square)
21
- - [@tsparticles/shape-star](https://github.com/matteobruni/tsparticles/tree/main/shapes/star)
22
- - [@tsparticles/shape-text](https://github.com/matteobruni/tsparticles/tree/main/shapes/text)
23
- - [@tsparticles/updater-color](https://github.com/matteobruni/tsparticles/tree/main/updaters/color)
24
- - [@tsparticles/updater-life](https://github.com/matteobruni/tsparticles/tree/main/updaters/life)
25
- - [@tsparticles/updater-opacity](https://github.com/matteobruni/tsparticles/tree/main/updaters/opacity)
26
- - [@tsparticles/updater-out-modes](https://github.com/matteobruni/tsparticles/tree/main/updaters/outModes)
27
- - [@tsparticles/updater-roll](https://github.com/matteobruni/tsparticles/tree/main/updaters/roll)
28
- - [@tsparticles/updater-rotate](https://github.com/matteobruni/tsparticles/tree/main/updaters/rotate)
29
- - [@tsparticles/updater-size](https://github.com/matteobruni/tsparticles/tree/main/updaters/size)
30
- - [@tsparticles/updater-tilt](https://github.com/matteobruni/tsparticles/tree/main/updaters/tilt)
31
- - [@tsparticles/updater-wobble](https://github.com/matteobruni/tsparticles/tree/main/updaters/wobble)
11
+ - [@tsparticles/engine](https://github.com/tsparticles/tsparticles/tree/main/engine)
12
+ - [@tsparticles/move-base](https://github.com/tsparticles/tsparticles/tree/main/move/base)
13
+ - [@tsparticles/plugin-emitters](https://github.com/tsparticles/tsparticles/tree/main/plugins/emitters)
14
+ - [@tsparticles/plugin-motion](https://github.com/tsparticles/tsparticles/tree/main/plugins/motion)
15
+ - [@tsparticles/shape-cards](https://github.com/tsparticles/tsparticles/tree/main/shapes/cards)
16
+ - [@tsparticles/shape-circle](https://github.com/tsparticles/tsparticles/tree/main/shapes/circle)
17
+ - [@tsparticles/shape-heart](https://github.com/tsparticles/tsparticles/tree/main/shapes/heart)
18
+ - [@tsparticles/shape-image](https://github.com/tsparticles/tsparticles/tree/main/shapes/image)
19
+ - [@tsparticles/shape-polygon](https://github.com/tsparticles/tsparticles/tree/main/shapes/polygon)
20
+ - [@tsparticles/shape-square](https://github.com/tsparticles/tsparticles/tree/main/shapes/square)
21
+ - [@tsparticles/shape-star](https://github.com/tsparticles/tsparticles/tree/main/shapes/star)
22
+ - [@tsparticles/shape-text](https://github.com/tsparticles/tsparticles/tree/main/shapes/text)
23
+ - [@tsparticles/updater-color](https://github.com/tsparticles/tsparticles/tree/main/updaters/color)
24
+ - [@tsparticles/updater-life](https://github.com/tsparticles/tsparticles/tree/main/updaters/life)
25
+ - [@tsparticles/updater-opacity](https://github.com/tsparticles/tsparticles/tree/main/updaters/opacity)
26
+ - [@tsparticles/updater-out-modes](https://github.com/tsparticles/tsparticles/tree/main/updaters/outModes)
27
+ - [@tsparticles/updater-roll](https://github.com/tsparticles/tsparticles/tree/main/updaters/roll)
28
+ - [@tsparticles/updater-rotate](https://github.com/tsparticles/tsparticles/tree/main/updaters/rotate)
29
+ - [@tsparticles/updater-size](https://github.com/tsparticles/tsparticles/tree/main/updaters/size)
30
+ - [@tsparticles/updater-tilt](https://github.com/tsparticles/tsparticles/tree/main/updaters/tilt)
31
+ - [@tsparticles/updater-wobble](https://github.com/tsparticles/tsparticles/tree/main/updaters/wobble)
32
32
 
33
33
  ## How to use it
34
34
 
@@ -1,5 +1,5 @@
1
1
  import { isSsr, isString, tsParticles, } from "@tsparticles/engine";
2
- import { ConfettiOptions } from "./ConfettiOptions";
2
+ import { ConfettiOptions } from "./ConfettiOptions.js";
3
3
  import { loadBasic } from "@tsparticles/basic";
4
4
  import { loadCardsShape } from "@tsparticles/shape-cards";
5
5
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
package/browser/index.js CHANGED
@@ -1 +1 @@
1
- export * from "./confetti";
1
+ export * from "./confetti.js";
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/cjs/confetti.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.confetti = void 0;
4
4
  const engine_1 = require("@tsparticles/engine");
5
- const ConfettiOptions_1 = require("./ConfettiOptions");
5
+ const ConfettiOptions_js_1 = require("./ConfettiOptions.js");
6
6
  const basic_1 = require("@tsparticles/basic");
7
7
  const shape_cards_1 = require("@tsparticles/shape-cards");
8
8
  const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
@@ -56,7 +56,7 @@ async function initPlugins(engine) {
56
56
  initialized = true;
57
57
  }
58
58
  async function setConfetti(params) {
59
- const actualOptions = new ConfettiOptions_1.ConfettiOptions();
59
+ const actualOptions = new ConfettiOptions_js_1.ConfettiOptions();
60
60
  actualOptions.load(params.options);
61
61
  let container;
62
62
  const fpsLimit = 120, opacitySpeed = (actualOptions.ticks * 1000) / (3600 * fpsLimit);
package/cjs/index.js CHANGED
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./confetti"), exports);
17
+ __exportStar(require("./confetti.js"), exports);
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/esm/confetti.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isSsr, isString, tsParticles, } from "@tsparticles/engine";
2
- import { ConfettiOptions } from "./ConfettiOptions";
2
+ import { ConfettiOptions } from "./ConfettiOptions.js";
3
3
  import { loadBasic } from "@tsparticles/basic";
4
4
  import { loadCardsShape } from "@tsparticles/shape-cards";
5
5
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- export * from "./confetti";
1
+ export * from "./confetti.js";
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/confetti",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/matteobruni/tsparticles.git",
8
+ "url": "git+https://github.com/tsparticles/tsparticles.git",
9
9
  "directory": "bundles/confetti"
10
10
  },
11
11
  "keywords": [
@@ -64,7 +64,7 @@
64
64
  "author": "Matteo Bruni <matteo.bruni@me.com>",
65
65
  "license": "MIT",
66
66
  "bugs": {
67
- "url": "https://github.com/matteobruni/tsparticles/issues"
67
+ "url": "https://github.com/tsparticles/tsparticles/issues"
68
68
  },
69
69
  "funding": [
70
70
  {
@@ -80,29 +80,41 @@
80
80
  "url": "https://www.buymeacoffee.com/matteobruni"
81
81
  }
82
82
  ],
83
- "main": "cjs/index.js",
84
- "module": "esm/index.js",
83
+ "sideEffects": false,
85
84
  "jsdelivr": "tsparticles.confetti.bundle.min.js",
86
85
  "unpkg": "tsparticles.confetti.bundle.min.js",
87
- "sideEffects": false,
86
+ "browser": "browser/index.js",
87
+ "main": "cjs/index.js",
88
+ "module": "esm/index.js",
88
89
  "types": "types/index.d.ts",
90
+ "exports": {
91
+ ".": {
92
+ "types": "./types/index.d.ts",
93
+ "browser": "./browser/index.js",
94
+ "import": "./esm/index.js",
95
+ "require": "./cjs/index.js",
96
+ "umd": "./umd/index.js",
97
+ "default": "./cjs/index.js"
98
+ },
99
+ "./package.json": "./package.json"
100
+ },
89
101
  "dependencies": {
90
- "@tsparticles/basic": "^3.0.0-beta.0",
91
- "@tsparticles/engine": "^3.0.0-beta.0",
92
- "@tsparticles/plugin-emitters": "^3.0.0-beta.0",
93
- "@tsparticles/plugin-motion": "^3.0.0-beta.0",
94
- "@tsparticles/shape-cards": "^3.0.0-beta.0",
95
- "@tsparticles/shape-heart": "^3.0.0-beta.0",
96
- "@tsparticles/shape-image": "^3.0.0-beta.0",
97
- "@tsparticles/shape-polygon": "^3.0.0-beta.0",
98
- "@tsparticles/shape-square": "^3.0.0-beta.0",
99
- "@tsparticles/shape-star": "^3.0.0-beta.0",
100
- "@tsparticles/shape-text": "^3.0.0-beta.0",
101
- "@tsparticles/updater-life": "^3.0.0-beta.0",
102
- "@tsparticles/updater-roll": "^3.0.0-beta.0",
103
- "@tsparticles/updater-rotate": "^3.0.0-beta.0",
104
- "@tsparticles/updater-tilt": "^3.0.0-beta.0",
105
- "@tsparticles/updater-wobble": "^3.0.0-beta.0"
102
+ "@tsparticles/basic": "^3.0.0-beta.2",
103
+ "@tsparticles/engine": "^3.0.0-beta.2",
104
+ "@tsparticles/plugin-emitters": "^3.0.0-beta.2",
105
+ "@tsparticles/plugin-motion": "^3.0.0-beta.2",
106
+ "@tsparticles/shape-cards": "^3.0.0-beta.2",
107
+ "@tsparticles/shape-heart": "^3.0.0-beta.2",
108
+ "@tsparticles/shape-image": "^3.0.0-beta.2",
109
+ "@tsparticles/shape-polygon": "^3.0.0-beta.2",
110
+ "@tsparticles/shape-square": "^3.0.0-beta.2",
111
+ "@tsparticles/shape-star": "^3.0.0-beta.2",
112
+ "@tsparticles/shape-text": "^3.0.0-beta.2",
113
+ "@tsparticles/updater-life": "^3.0.0-beta.2",
114
+ "@tsparticles/updater-roll": "^3.0.0-beta.2",
115
+ "@tsparticles/updater-rotate": "^3.0.0-beta.2",
116
+ "@tsparticles/updater-tilt": "^3.0.0-beta.2",
117
+ "@tsparticles/updater-wobble": "^3.0.0-beta.2"
106
118
  },
107
119
  "publishConfig": {
108
120
  "access": "public"