@tsparticles/fireworks 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,25 +4,25 @@
4
4
 
5
5
  [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/fireworks/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/fireworks) [![npmjs](https://badge.fury.io/js/@tsparticles/fireworks.svg)](https://www.npmjs.com/package/@tsparticles/fireworks) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/fireworks)](https://www.npmjs.com/package/@tsparticles/fireworks) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
6
 
7
- [tsParticles](https://github.com/matteobruni/tsparticles) fireworks bundle loads all the features necessary to create
7
+ [tsParticles](https://github.com/tsparticles/tsparticles) fireworks bundle loads all the features necessary to create
8
8
  beautiful fireworks effects with ease.
9
9
 
10
10
  **Included Packages**
11
11
 
12
- - [@tsparticles/engine](https://github.com/matteobruni/tsparticles/tree/main/engine)
13
- - [@tsparticles/move-base](https://github.com/matteobruni/tsparticles/tree/main/move/base)
14
- - [@tsparticles/plugin-emitters](https://github.com/matteobruni/tsparticles/tree/main/plugins/emitters)
15
- - [@tsparticles/plugin-sounds](https://github.com/matteobruni/tsparticles/tree/main/plugins/sounds)
16
- - [@tsparticles/shape-circle](https://github.com/matteobruni/tsparticles/tree/main/shapes/circle)
17
- - [@tsparticles/shape-line](https://github.com/matteobruni/tsparticles/tree/main/shapes/line)
18
- - [@tsparticles/updater-color](https://github.com/matteobruni/tsparticles/tree/main/updaters/color)
19
- - [@tsparticles/updater-destroy](https://github.com/matteobruni/tsparticles/tree/main/updaters/destroy)
20
- - [@tsparticles/updater-life](https://github.com/matteobruni/tsparticles/tree/main/updaters/life)
21
- - [@tsparticles/updater-opacity](https://github.com/matteobruni/tsparticles/tree/main/updaters/opacity)
22
- - [@tsparticles/updater-out-modes](https://github.com/matteobruni/tsparticles/tree/main/updaters/outModes)
23
- - [@tsparticles/updater-rotate](https://github.com/matteobruni/tsparticles/tree/main/updaters/rotate)
24
- - [@tsparticles/updater-size](https://github.com/matteobruni/tsparticles/tree/main/updaters/size)
25
- - [@tsparticles/updater-stroke-color](https://github.com/matteobruni/tsparticles/tree/main/updaters/strokeColor)
12
+ - [@tsparticles/engine](https://github.com/tsparticles/tsparticles/tree/main/engine)
13
+ - [@tsparticles/move-base](https://github.com/tsparticles/tsparticles/tree/main/move/base)
14
+ - [@tsparticles/plugin-emitters](https://github.com/tsparticles/tsparticles/tree/main/plugins/emitters)
15
+ - [@tsparticles/plugin-sounds](https://github.com/tsparticles/tsparticles/tree/main/plugins/sounds)
16
+ - [@tsparticles/shape-circle](https://github.com/tsparticles/tsparticles/tree/main/shapes/circle)
17
+ - [@tsparticles/shape-line](https://github.com/tsparticles/tsparticles/tree/main/shapes/line)
18
+ - [@tsparticles/updater-color](https://github.com/tsparticles/tsparticles/tree/main/updaters/color)
19
+ - [@tsparticles/updater-destroy](https://github.com/tsparticles/tsparticles/tree/main/updaters/destroy)
20
+ - [@tsparticles/updater-life](https://github.com/tsparticles/tsparticles/tree/main/updaters/life)
21
+ - [@tsparticles/updater-opacity](https://github.com/tsparticles/tsparticles/tree/main/updaters/opacity)
22
+ - [@tsparticles/updater-out-modes](https://github.com/tsparticles/tsparticles/tree/main/updaters/outModes)
23
+ - [@tsparticles/updater-rotate](https://github.com/tsparticles/tsparticles/tree/main/updaters/rotate)
24
+ - [@tsparticles/updater-size](https://github.com/tsparticles/tsparticles/tree/main/updaters/size)
25
+ - [@tsparticles/updater-stroke-color](https://github.com/tsparticles/tsparticles/tree/main/updaters/strokeColor)
26
26
 
27
27
  ## How to use it
28
28
 
@@ -1,5 +1,5 @@
1
1
  import { getRangeMax, getRangeMin, isNumber, isSsr, isString, setRangeValue, tsParticles, } from "@tsparticles/engine";
2
- import { FireworkOptions } from "./FireworkOptions";
2
+ import { FireworkOptions } from "./FireworkOptions.js";
3
3
  import { loadBasic } from "@tsparticles/basic";
4
4
  import { loadDestroyUpdater } from "@tsparticles/updater-destroy";
5
5
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
package/browser/index.js CHANGED
@@ -1 +1 @@
1
- export * from "./fireworks";
1
+ export * from "./fireworks.js";
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/cjs/fireworks.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fireworks = void 0;
4
4
  const engine_1 = require("@tsparticles/engine");
5
- const FireworkOptions_1 = require("./FireworkOptions");
5
+ const FireworkOptions_js_1 = require("./FireworkOptions.js");
6
6
  const basic_1 = require("@tsparticles/basic");
7
7
  const updater_destroy_1 = require("@tsparticles/updater-destroy");
8
8
  const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
@@ -61,7 +61,7 @@ async function initPlugins() {
61
61
  async function fireworks(idOrOptions, sourceOptions) {
62
62
  await initPlugins();
63
63
  let id;
64
- const options = new FireworkOptions_1.FireworkOptions();
64
+ const options = new FireworkOptions_js_1.FireworkOptions();
65
65
  if ((0, engine_1.isString)(idOrOptions)) {
66
66
  id = idOrOptions;
67
67
  options.load(sourceOptions);
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("./fireworks"), exports);
17
+ __exportStar(require("./fireworks.js"), exports);
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/esm/fireworks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { getRangeMax, getRangeMin, isNumber, isSsr, isString, setRangeValue, tsParticles, } from "@tsparticles/engine";
2
- import { FireworkOptions } from "./FireworkOptions";
2
+ import { FireworkOptions } from "./FireworkOptions.js";
3
3
  import { loadBasic } from "@tsparticles/basic";
4
4
  import { loadDestroyUpdater } from "@tsparticles/updater-destroy";
5
5
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- export * from "./fireworks";
1
+ export * from "./fireworks.js";
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/fireworks",
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/fireworks"
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,22 +80,34 @@
80
80
  "url": "https://www.buymeacoffee.com/matteobruni"
81
81
  }
82
82
  ],
83
- "main": "cjs/index.js",
84
- "module": "esm/index.js",
85
83
  "jsdelivr": "tsparticles.fireworks.bundle.min.js",
86
84
  "unpkg": "tsparticles.fireworks.bundle.min.js",
87
- "types": "types/index.d.ts",
88
85
  "sideEffects": false,
86
+ "browser": "browser/index.js",
87
+ "main": "cjs/index.js",
88
+ "module": "esm/index.js",
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-sounds": "^3.0.0-beta.0",
94
- "@tsparticles/shape-line": "^3.0.0-beta.0",
95
- "@tsparticles/updater-destroy": "^3.0.0-beta.0",
96
- "@tsparticles/updater-life": "^3.0.0-beta.0",
97
- "@tsparticles/updater-rotate": "^3.0.0-beta.0",
98
- "@tsparticles/updater-stroke-color": "^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-sounds": "^3.0.0-beta.2",
106
+ "@tsparticles/shape-line": "^3.0.0-beta.2",
107
+ "@tsparticles/updater-destroy": "^3.0.0-beta.2",
108
+ "@tsparticles/updater-life": "^3.0.0-beta.2",
109
+ "@tsparticles/updater-rotate": "^3.0.0-beta.2",
110
+ "@tsparticles/updater-stroke-color": "^3.0.0-beta.2"
99
111
  },
100
112
  "publishConfig": {
101
113
  "access": "public"