@tsparticles/palette-confetti-winter 4.0.0-beta.12 → 4.0.0-beta.16

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,10 +1,10 @@
1
1
  [![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org)
2
2
 
3
- # tsParticles Confetti Winter Palette
3
+ # tsParticles Winter Palette
4
4
 
5
- [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/palette-confetti-winter/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/palette-confetti-winter) [![npmjs](https://badge.fury.io/js/%40tsparticles%2Fpalette-confetti-winter.svg)](https://www.npmjs.com/package/@tsparticles/palette-confetti-winter) [![npmjs](https://img.shields.io/npm/dt/%40tsparticles%2Fpalette-confetti-winter)](https://www.npmjs.com/package/@tsparticles/palette-confetti-winter) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
5
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/palette-winter/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/palette-winter) [![npmjs](https://badge.fury.io/js/%40tsparticles%2Fpalette-winter.svg)](https://www.npmjs.com/package/@tsparticles/palette-winter) [![npmjs](https://img.shields.io/npm/dt/%40tsparticles%2Fpalette-coloredSmokeAmber)](https://www.npmjs.com/package/@tsparticles/palette-winter) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
6
 
7
- [tsParticles](https://github.com/tsparticles/tsparticles) palette for confetti winter.
7
+ [tsParticles](https://github.com/tsparticles/tsparticles) palette for colored smoke amber.
8
8
 
9
9
  [![Discord](https://particles.js.org/images/discord.png)](https://discord.gg/hACwv45Hme) [![Telegram](https://particles.js.org/images/telegram.png)](https://t.me/tsparticles)
10
10
 
@@ -12,7 +12,7 @@
12
12
 
13
13
  ## Sample
14
14
 
15
- [![demo](https://raw.githubusercontent.com/tsparticles/palettes/main/confetti/confettiWinter/images/sample.png)](https://particles.js.org/samples/palettes/confetti-winter)
15
+ [![demo](https://raw.githubusercontent.com/tsparticles/palettes/main/palettes/confetti/winter/images/sample.png)](https://particles.js.org/samples/palettes/winter)
16
16
 
17
17
  ## Colors
18
18
 
@@ -72,7 +72,7 @@
72
72
  ## Quick checklist
73
73
 
74
74
  1. Install `@tsparticles/engine` (or use the CDN bundle below)
75
- 2. Load a base package (for example `@tsparticles/basic`) and call `loadConfettiWinterPalette` before `tsParticles.load(...)`
75
+ 2. Load a base package (for example `@tsparticles/basic`) and call `loadWinterPalette` before `tsParticles.load(...)`
76
76
  3. Apply the palette plus a minimal particles configuration in your options
77
77
 
78
78
  A palette defines colors, not complete behavior, so pair it with a runtime package and particle options.
@@ -83,7 +83,7 @@ A palette defines colors, not complete behavior, so pair it with a runtime packa
83
83
 
84
84
  ```html
85
85
  <script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
86
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-confetti-winter@4/tsparticles.palette-confetti-winter.min.js"></script>
86
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-winter@4/tsparticles.palette-coloredSmokeAmber.min.js"></script>
87
87
  ```
88
88
 
89
89
  ### Usage
@@ -93,7 +93,7 @@ Once the scripts are loaded you can set up `tsParticles` like this:
93
93
  ```javascript
94
94
  (async engine => {
95
95
  await loadBasic(engine);
96
- await loadConfettiWinterPalette(engine);
96
+ await loadWinterPalette(engine);
97
97
 
98
98
  const options = {
99
99
  particles: {
@@ -105,7 +105,7 @@ Once the scripts are loaded you can set up `tsParticles` like this:
105
105
  speed: 2,
106
106
  },
107
107
  },
108
- palette: "confetti-winter",
108
+ palette: "winter",
109
109
  };
110
110
 
111
111
  await engine.load({
@@ -122,7 +122,7 @@ You can override all the options defining the properties like in any standard `t
122
122
 
123
123
  ### Frameworks with a tsParticles component library
124
124
 
125
- Checkout the documentation in the component library repository and call the `loadConfettiWinterPalette` function.
125
+ Checkout the documentation in the component library repository and call the `loadWinterPalette` function.
126
126
 
127
127
  ## Related docs
128
128
 
@@ -0,0 +1,5 @@
1
+ import { loadConfettiWinterPalette } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadConfettiWinterPalette = loadConfettiWinterPalette;
5
+ export * from "./index.js";
package/browser/index.js CHANGED
@@ -1,7 +1,7 @@
1
+ import { options } from "./options.js";
1
2
  const paletteName = "confetti-winter";
2
3
  export async function loadConfettiWinterPalette(engine) {
3
- await engine.pluginManager.register(async (e) => {
4
- const { options } = await import("./options.js");
4
+ await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addPalette(paletteName, options);
6
6
  });
7
7
  }
@@ -0,0 +1,7 @@
1
+ const paletteName = "confetti-winter";
2
+ export async function loadConfettiWinterPalette(engine) {
3
+ await engine.pluginManager.register(async (e) => {
4
+ const { options } = await import("./options.js");
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
package/cjs/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadConfettiWinterPalette } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadConfettiWinterPalette = loadConfettiWinterPalette;
5
+ export * from "./index.js";
package/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
+ import { options } from "./options.js";
1
2
  const paletteName = "confetti-winter";
2
3
  export async function loadConfettiWinterPalette(engine) {
3
- await engine.pluginManager.register(async (e) => {
4
- const { options } = await import("./options.js");
4
+ await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addPalette(paletteName, options);
6
6
  });
7
7
  }
@@ -0,0 +1,7 @@
1
+ const paletteName = "confetti-winter";
2
+ export async function loadConfettiWinterPalette(engine) {
3
+ await engine.pluginManager.register(async (e) => {
4
+ const { options } = await import("./options.js");
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
package/esm/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadConfettiWinterPalette } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadConfettiWinterPalette = loadConfettiWinterPalette;
5
+ export * from "./index.js";
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
+ import { options } from "./options.js";
1
2
  const paletteName = "confetti-winter";
2
3
  export async function loadConfettiWinterPalette(engine) {
3
- await engine.pluginManager.register(async (e) => {
4
- const { options } = await import("./options.js");
4
+ await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addPalette(paletteName, options);
6
6
  });
7
7
  }
@@ -0,0 +1,7 @@
1
+ const paletteName = "confetti-winter";
2
+ export async function loadConfettiWinterPalette(engine) {
3
+ await engine.pluginManager.register(async (e) => {
4
+ const { options } = await import("./options.js");
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@tsparticles/palette-confetti-winter",
3
- "version": "4.0.0-beta.12",
3
+ "version": "4.0.0-beta.16",
4
4
  "description": "tsParticles confetti winter palette",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/tsparticles/tsparticles.git",
9
- "directory": "palettes/confetti/confettiWinter"
9
+ "directory": "palettes/confetti/winter"
10
10
  },
11
11
  "keywords": [
12
12
  "front-end",
@@ -95,14 +95,22 @@
95
95
  "umd": "./umd/index.js",
96
96
  "default": "./cjs/index.js"
97
97
  },
98
- "./package.json": "./package.json"
98
+ "./package.json": "./package.json",
99
+ "./lazy": {
100
+ "types": "./types/index.lazy.d.ts",
101
+ "browser": "./browser/index.lazy.js",
102
+ "import": "./esm/index.lazy.js",
103
+ "require": "./cjs/index.lazy.js",
104
+ "umd": "./umd/index.lazy.js",
105
+ "default": "./cjs/index.lazy.js"
106
+ }
99
107
  },
100
108
  "dependencies": {
101
- "@tsparticles/engine": "4.0.0-beta.12"
109
+ "@tsparticles/engine": "4.0.0-beta.16"
102
110
  },
103
111
  "type": "module",
104
- "jsdelivr": "tsparticles.palette-confetti-winter.min.js",
105
- "unpkg": "tsparticles.palette-confetti-winter.min.js",
112
+ "jsdelivr": "tsparticles.palette-colored-smoke-amber.min.js",
113
+ "unpkg": "tsparticles.palette-colored-smoke-amber.min.js",
106
114
  "publishConfig": {
107
115
  "access": "public"
108
116
  }