@tsparticles/interaction-external-bubble 4.0.0-beta.9 → 4.0.1

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 { loadExternalBubbleInteraction } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadExternalBubbleInteraction = loadExternalBubbleInteraction;
5
+ export * from "./index.js";
package/browser/index.js CHANGED
@@ -1,11 +1,11 @@
1
+ import { ensureInteractivityPluginLoaded } from "@tsparticles/plugin-interactivity";
2
+ import { Bubbler } from "./Bubbler.js";
1
3
  export async function loadExternalBubbleInteraction(engine) {
2
- engine.checkVersion("4.0.0-beta.9");
3
- await engine.pluginManager.register(async (e) => {
4
- const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity");
4
+ engine.checkVersion("4.0.1");
5
+ await engine.pluginManager.register((e) => {
5
6
  ensureInteractivityPluginLoaded(e);
6
- e.pluginManager.addInteractor?.("externalBubble", async (container) => {
7
- const { Bubbler } = await import("./Bubbler.js");
8
- return new Bubbler(e.pluginManager, container);
7
+ e.pluginManager.addInteractor?.("externalBubble", container => {
8
+ return Promise.resolve(new Bubbler(e.pluginManager, container));
9
9
  });
10
10
  });
11
11
  }
@@ -0,0 +1,14 @@
1
+ export async function loadExternalBubbleInteraction(engine) {
2
+ engine.checkVersion("4.0.1");
3
+ await engine.pluginManager.register(async (e) => {
4
+ const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity/lazy");
5
+ ensureInteractivityPluginLoaded(e);
6
+ e.pluginManager.addInteractor?.("externalBubble", async (container) => {
7
+ const { Bubbler } = await import("./Bubbler.js");
8
+ return new Bubbler(e.pluginManager, container);
9
+ });
10
+ });
11
+ }
12
+ export * from "./Options/Classes/BubbleBase.js";
13
+ export * from "./Options/Classes/BubbleDiv.js";
14
+ export * from "./Options/Classes/Bubble.js";
package/cjs/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadExternalBubbleInteraction } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadExternalBubbleInteraction = loadExternalBubbleInteraction;
5
+ export * from "./index.js";
package/cjs/index.js CHANGED
@@ -1,11 +1,11 @@
1
+ import { ensureInteractivityPluginLoaded } from "@tsparticles/plugin-interactivity";
2
+ import { Bubbler } from "./Bubbler.js";
1
3
  export async function loadExternalBubbleInteraction(engine) {
2
- engine.checkVersion("4.0.0-beta.9");
3
- await engine.pluginManager.register(async (e) => {
4
- const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity");
4
+ engine.checkVersion("4.0.1");
5
+ await engine.pluginManager.register((e) => {
5
6
  ensureInteractivityPluginLoaded(e);
6
- e.pluginManager.addInteractor?.("externalBubble", async (container) => {
7
- const { Bubbler } = await import("./Bubbler.js");
8
- return new Bubbler(e.pluginManager, container);
7
+ e.pluginManager.addInteractor?.("externalBubble", container => {
8
+ return Promise.resolve(new Bubbler(e.pluginManager, container));
9
9
  });
10
10
  });
11
11
  }
@@ -0,0 +1,14 @@
1
+ export async function loadExternalBubbleInteraction(engine) {
2
+ engine.checkVersion("4.0.1");
3
+ await engine.pluginManager.register(async (e) => {
4
+ const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity/lazy");
5
+ ensureInteractivityPluginLoaded(e);
6
+ e.pluginManager.addInteractor?.("externalBubble", async (container) => {
7
+ const { Bubbler } = await import("./Bubbler.js");
8
+ return new Bubbler(e.pluginManager, container);
9
+ });
10
+ });
11
+ }
12
+ export * from "./Options/Classes/BubbleBase.js";
13
+ export * from "./Options/Classes/BubbleDiv.js";
14
+ export * from "./Options/Classes/Bubble.js";
package/esm/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadExternalBubbleInteraction } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadExternalBubbleInteraction = loadExternalBubbleInteraction;
5
+ export * from "./index.js";
package/esm/index.js CHANGED
@@ -1,11 +1,11 @@
1
+ import { ensureInteractivityPluginLoaded } from "@tsparticles/plugin-interactivity";
2
+ import { Bubbler } from "./Bubbler.js";
1
3
  export async function loadExternalBubbleInteraction(engine) {
2
- engine.checkVersion("4.0.0-beta.9");
3
- await engine.pluginManager.register(async (e) => {
4
- const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity");
4
+ engine.checkVersion("4.0.1");
5
+ await engine.pluginManager.register((e) => {
5
6
  ensureInteractivityPluginLoaded(e);
6
- e.pluginManager.addInteractor?.("externalBubble", async (container) => {
7
- const { Bubbler } = await import("./Bubbler.js");
8
- return new Bubbler(e.pluginManager, container);
7
+ e.pluginManager.addInteractor?.("externalBubble", container => {
8
+ return Promise.resolve(new Bubbler(e.pluginManager, container));
9
9
  });
10
10
  });
11
11
  }
@@ -0,0 +1,14 @@
1
+ export async function loadExternalBubbleInteraction(engine) {
2
+ engine.checkVersion("4.0.1");
3
+ await engine.pluginManager.register(async (e) => {
4
+ const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity/lazy");
5
+ ensureInteractivityPluginLoaded(e);
6
+ e.pluginManager.addInteractor?.("externalBubble", async (container) => {
7
+ const { Bubbler } = await import("./Bubbler.js");
8
+ return new Bubbler(e.pluginManager, container);
9
+ });
10
+ });
11
+ }
12
+ export * from "./Options/Classes/BubbleBase.js";
13
+ export * from "./Options/Classes/BubbleDiv.js";
14
+ export * from "./Options/Classes/Bubble.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/interaction-external-bubble",
3
- "version": "4.0.0-beta.9",
3
+ "version": "4.0.1",
4
4
  "description": "tsParticles bubble external interaction",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -83,6 +83,13 @@
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
  "peerDepdendencies": {
@@ -94,7 +101,7 @@
94
101
  },
95
102
  "type": "module",
96
103
  "peerDependencies": {
97
- "@tsparticles/engine": "4.0.0-beta.9",
98
- "@tsparticles/plugin-interactivity": "4.0.0-beta.9"
104
+ "@tsparticles/engine": "4.0.1",
105
+ "@tsparticles/plugin-interactivity": "4.0.1"
99
106
  }
100
107
  }