@tsparticles/updater-tilt 4.0.0-beta.8 → 4.0.0

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.
@@ -0,0 +1,5 @@
1
+ import { loadTiltUpdater } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadTiltUpdater = loadTiltUpdater;
5
+ export * from "./index.js";
package/browser/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { TiltUpdater } from "./TiltUpdater.js";
1
2
  export async function loadTiltUpdater(engine) {
2
- engine.checkVersion("4.0.0-beta.8");
3
+ engine.checkVersion("4.0.0");
3
4
  await engine.pluginManager.register(e => {
4
- e.pluginManager.addParticleUpdater("tilt", async (container) => {
5
- const { TiltUpdater } = await import("./TiltUpdater.js");
6
- return new TiltUpdater(container);
5
+ e.pluginManager.addParticleUpdater("tilt", container => {
6
+ return Promise.resolve(new TiltUpdater(container));
7
7
  });
8
8
  });
9
9
  }
@@ -0,0 +1,9 @@
1
+ export async function loadTiltUpdater(engine) {
2
+ engine.checkVersion("4.0.0");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addParticleUpdater("tilt", async (container) => {
5
+ const { TiltUpdater } = await import("./TiltUpdater.js");
6
+ return new TiltUpdater(container);
7
+ });
8
+ });
9
+ }
package/cjs/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadTiltUpdater } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadTiltUpdater = loadTiltUpdater;
5
+ export * from "./index.js";
package/cjs/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { TiltUpdater } from "./TiltUpdater.js";
1
2
  export async function loadTiltUpdater(engine) {
2
- engine.checkVersion("4.0.0-beta.8");
3
+ engine.checkVersion("4.0.0");
3
4
  await engine.pluginManager.register(e => {
4
- e.pluginManager.addParticleUpdater("tilt", async (container) => {
5
- const { TiltUpdater } = await import("./TiltUpdater.js");
6
- return new TiltUpdater(container);
5
+ e.pluginManager.addParticleUpdater("tilt", container => {
6
+ return Promise.resolve(new TiltUpdater(container));
7
7
  });
8
8
  });
9
9
  }
@@ -0,0 +1,9 @@
1
+ export async function loadTiltUpdater(engine) {
2
+ engine.checkVersion("4.0.0");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addParticleUpdater("tilt", async (container) => {
5
+ const { TiltUpdater } = await import("./TiltUpdater.js");
6
+ return new TiltUpdater(container);
7
+ });
8
+ });
9
+ }
package/esm/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadTiltUpdater } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadTiltUpdater = loadTiltUpdater;
5
+ export * from "./index.js";
package/esm/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { TiltUpdater } from "./TiltUpdater.js";
1
2
  export async function loadTiltUpdater(engine) {
2
- engine.checkVersion("4.0.0-beta.8");
3
+ engine.checkVersion("4.0.0");
3
4
  await engine.pluginManager.register(e => {
4
- e.pluginManager.addParticleUpdater("tilt", async (container) => {
5
- const { TiltUpdater } = await import("./TiltUpdater.js");
6
- return new TiltUpdater(container);
5
+ e.pluginManager.addParticleUpdater("tilt", container => {
6
+ return Promise.resolve(new TiltUpdater(container));
7
7
  });
8
8
  });
9
9
  }
@@ -0,0 +1,9 @@
1
+ export async function loadTiltUpdater(engine) {
2
+ engine.checkVersion("4.0.0");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addParticleUpdater("tilt", async (container) => {
5
+ const { TiltUpdater } = await import("./TiltUpdater.js");
6
+ return new TiltUpdater(container);
7
+ });
8
+ });
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/updater-tilt",
3
- "version": "4.0.0-beta.8",
3
+ "version": "4.0.0",
4
4
  "description": "tsParticles particles tilt updater",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -83,10 +83,17 @@
83
83
  "require": "./cjs/index.js",
84
84
  "default": "./esm/index.js"
85
85
  },
86
+ "./lazy": {
87
+ "types": "./types/index.lazy.d.ts",
88
+ "browser": "./browser/index.lazy.js",
89
+ "import": "./esm/index.lazy.js",
90
+ "require": "./cjs/index.lazy.js",
91
+ "default": "./esm/index.lazy.js"
92
+ },
86
93
  "./package.json": "./package.json"
87
94
  },
88
95
  "peerDependencies": {
89
- "@tsparticles/engine": "4.0.0-beta.8"
96
+ "@tsparticles/engine": "4.0.0"
90
97
  },
91
98
  "publishConfig": {
92
99
  "access": "public"