@tsparticles/plugin-themes 4.0.0-beta.9 → 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.
- package/browser/browser.js +5 -0
- package/browser/index.js +3 -3
- package/browser/index.lazy.js +7 -0
- package/cjs/browser.js +5 -0
- package/cjs/index.js +3 -3
- package/cjs/index.lazy.js +7 -0
- package/esm/browser.js +5 -0
- package/esm/index.js +3 -3
- package/esm/index.lazy.js +7 -0
- package/package.json +9 -2
- package/report.html +4949 -94
- package/tsparticles.plugin.themes.js +196 -310
- package/tsparticles.plugin.themes.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/453.min.js +0 -1
- package/579.min.js +0 -1
- package/dist_browser_ThemesPluginInstance_js.js +0 -30
- package/dist_browser_ThemesPlugin_js.js +0 -60
package/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ThemesPlugin } from "./ThemesPlugin.js";
|
|
1
2
|
export async function loadThemesPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0
|
|
3
|
-
await engine.pluginManager.register(
|
|
4
|
-
const { ThemesPlugin } = await import("./ThemesPlugin.js");
|
|
3
|
+
engine.checkVersion("4.0.0");
|
|
4
|
+
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addPlugin(new ThemesPlugin());
|
|
6
6
|
});
|
|
7
7
|
}
|
package/cjs/browser.js
ADDED
package/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ThemesPlugin } from "./ThemesPlugin.js";
|
|
1
2
|
export async function loadThemesPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0
|
|
3
|
-
await engine.pluginManager.register(
|
|
4
|
-
const { ThemesPlugin } = await import("./ThemesPlugin.js");
|
|
3
|
+
engine.checkVersion("4.0.0");
|
|
4
|
+
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addPlugin(new ThemesPlugin());
|
|
6
6
|
});
|
|
7
7
|
}
|
package/esm/browser.js
ADDED
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ThemesPlugin } from "./ThemesPlugin.js";
|
|
1
2
|
export async function loadThemesPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0
|
|
3
|
-
await engine.pluginManager.register(
|
|
4
|
-
const { ThemesPlugin } = await import("./ThemesPlugin.js");
|
|
3
|
+
engine.checkVersion("4.0.0");
|
|
4
|
+
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addPlugin(new ThemesPlugin());
|
|
6
6
|
});
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/plugin-themes",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "tsParticles themes plugin",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -82,10 +82,17 @@
|
|
|
82
82
|
"require": "./cjs/index.js",
|
|
83
83
|
"default": "./esm/index.js"
|
|
84
84
|
},
|
|
85
|
+
"./lazy": {
|
|
86
|
+
"types": "./types/index.lazy.d.ts",
|
|
87
|
+
"browser": "./browser/index.lazy.js",
|
|
88
|
+
"import": "./esm/index.lazy.js",
|
|
89
|
+
"require": "./cjs/index.lazy.js",
|
|
90
|
+
"default": "./esm/index.lazy.js"
|
|
91
|
+
},
|
|
85
92
|
"./package.json": "./package.json"
|
|
86
93
|
},
|
|
87
94
|
"peerDependencies": {
|
|
88
|
-
"@tsparticles/engine": "4.0.0
|
|
95
|
+
"@tsparticles/engine": "4.0.0"
|
|
89
96
|
},
|
|
90
97
|
"publishConfig": {
|
|
91
98
|
"access": "public"
|