@tsparticles/vue3 3.0.0 → 3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/vue3",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Official tsParticles Vue.js 3.x Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, React, Vue.js 2.x, Angular, Svelte, jQuery, Preact, Riot.js, Solid.js, Inferno.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -67,6 +67,10 @@
67
67
  "typecheck": "vue-tsc --noEmit",
68
68
  "lint": "echo eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
69
69
  },
70
+ "files": [
71
+ "dist",
72
+ "README.md"
73
+ ],
70
74
  "repository": {
71
75
  "url": "https://github.com/tsparticles/vue3",
72
76
  "type": "git",
@@ -97,7 +101,7 @@
97
101
  "access": "public"
98
102
  },
99
103
  "dependencies": {
100
- "@tsparticles/engine": "^3.0.2",
104
+ "@tsparticles/engine": "^3.0.3",
101
105
  "vue": "^3.3.13"
102
106
  },
103
107
  "devDependencies": {
@@ -105,7 +109,7 @@
105
109
  "@tsconfig/node18": "^18.2.2",
106
110
  "@tsparticles/prettier-config": "^2.0.1",
107
111
  "@types/node": "^20.10.5",
108
- "@vitejs/plugin-vue": "^4.5.2",
112
+ "@vitejs/plugin-vue": "^5.0.0",
109
113
  "@vitejs/plugin-vue-jsx": "^3.1.0",
110
114
  "@vue/eslint-config-prettier": "^8.0.0",
111
115
  "@vue/eslint-config-typescript": "^12.0.0",
@@ -115,13 +119,13 @@
115
119
  "prettier": "^3.1.1",
116
120
  "typescript": "^5.3.3",
117
121
  "vite": "^5.0.10",
118
- "vite-plugin-dts": "^3.6.4",
119
- "vue-tsc": "^1.8.26"
122
+ "vite-plugin-dts": "^3.7.0",
123
+ "vue-tsc": "^1.8.27"
120
124
  },
121
125
  "main": "dist/particles.umd.js",
122
126
  "module": "dist/particles.es.js",
123
127
  "types": "dist/index.d.ts",
124
128
  "unpkg": "dist/particles.umd.min.js",
125
129
  "jsdelivr": "dist/particles.umd.min.js",
126
- "gitHead": "b12cb584dde5f3875976eafe87ecb1b7154c14c1"
130
+ "gitHead": "27afa842175cd217b4ab2f3941d34c4985ee8cc8"
127
131
  }
package/.eslintrc.cjs DELETED
@@ -1,15 +0,0 @@
1
- /* eslint-env node */
2
- require("@rushstack/eslint-patch/modern-module-resolution");
3
-
4
- module.exports = {
5
- root: true,
6
- extends: [
7
- "plugin:vue/vue3-essential",
8
- "eslint:recommended",
9
- "@vue/eslint-config-typescript/recommended",
10
- "@vue/eslint-config-prettier",
11
- ],
12
- env: {
13
- "vue/setup-compiler-macros": true,
14
- },
15
- };
package/CHANGELOG.md DELETED
@@ -1,183 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [3.0.0](https://github.com/tsparticles/vue3/compare/v2.12.0...v3.0.0) (2023-12-22)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * use event syntax for particlesLoaded ([5b4de3a](https://github.com/tsparticles/vue3/commit/5b4de3a411ede58c00517cf72fbab5bd5acfb882))
12
-
13
-
14
- ### Features
15
-
16
- * updated for v3 ([c49ca9f](https://github.com/tsparticles/vue3/commit/c49ca9f1aec1f7ddaa0de7806291a5c4c78eb848))
17
- * updates for v3 ([c62d3d3](https://github.com/tsparticles/vue3/commit/c62d3d30dfcc5307490fb15f2ed132b36036f252))
18
-
19
-
20
-
21
-
22
-
23
- # [2.12.0](https://github.com/tsparticles/vue3/compare/v2.11.1...v2.12.0) (2023-08-04)
24
-
25
- **Note:** Version bump only for package vue3-particles
26
-
27
-
28
-
29
-
30
-
31
- ## [2.11.1](https://github.com/tsparticles/vue3/compare/v2.11.0...v2.11.1) (2023-07-27)
32
-
33
-
34
- ### Bug Fixes
35
-
36
- * fixed issue with engine not loading correctly, closes: [#26](https://github.com/tsparticles/vue3/issues/26) ([94e5215](https://github.com/tsparticles/vue3/commit/94e521546b7ed008d7b980e999ca30d0ce3d49db))
37
-
38
-
39
-
40
-
41
-
42
- # [2.11.0](https://github.com/tsparticles/vue3/compare/v2.10.1...v2.11.0) (2023-07-14)
43
-
44
- **Note:** Version bump only for package vue3-particles
45
-
46
-
47
-
48
-
49
-
50
- ## 2.10.1 (2023-06-04)
51
-
52
-
53
- ### Features
54
-
55
- * adding vue-particles tag ([8b12d56](https://github.com/tsparticles/vue3/commit/8b12d5654515d52729ea7902f5e16806ddd48422))
56
-
57
-
58
-
59
-
60
-
61
- ## [2.9.3](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.9.2...vue3-particles@2.9.3) (2023-02-12)
62
-
63
- **Note:** Version bump only for package vue3-particles
64
-
65
- ## [2.9.2](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.9.1...vue3-particles@2.9.2) (2023-02-12)
66
-
67
- **Note:** Version bump only for package vue3-particles
68
-
69
- ## [2.9.1](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.9.0...vue3-particles@2.9.1) (2023-02-11)
70
-
71
- **Note:** Version bump only for package vue3-particles
72
-
73
- # [2.9.0](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.8.0...vue3-particles@2.9.0) (2023-02-10)
74
-
75
- **Note:** Version bump only for package vue3-particles
76
-
77
- # [2.8.0](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.7.1...vue3-particles@2.8.0) (2023-01-18)
78
-
79
- **Note:** Version bump only for package vue3-particles
80
-
81
- ## [2.7.1](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.7.0...vue3-particles@2.7.1) (2022-12-25)
82
-
83
- **Note:** Version bump only for package vue3-particles
84
-
85
- # [2.7.0](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.6.0...vue3-particles@2.7.0) (2022-12-23)
86
-
87
- **Note:** Version bump only for package vue3-particles
88
-
89
- # [2.6.0](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.5.3...vue3-particles@2.6.0) (2022-12-06)
90
-
91
- **Note:** Version bump only for package vue3-particles
92
-
93
- ## [2.5.3](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.5.2...vue3-particles@2.5.3) (2022-11-07)
94
-
95
- **Note:** Version bump only for package vue3-particles
96
-
97
- ## [2.5.2](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.5.1...vue3-particles@2.5.2) (2022-11-07)
98
-
99
- **Note:** Version bump only for package vue3-particles
100
-
101
- ## [2.5.1](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.5.0...vue3-particles@2.5.1) (2022-11-03)
102
-
103
- **Note:** Version bump only for package vue3-particles
104
-
105
- # [2.5.0](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.4.0...vue3-particles@2.5.0) (2022-11-02)
106
-
107
- **Note:** Version bump only for package vue3-particles
108
-
109
- # [2.4.0](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.3.3...vue3-particles@2.4.0) (2022-10-30)
110
-
111
- **Note:** Version bump only for package vue3-particles
112
-
113
- ## [2.3.3](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.3.2...vue3-particles@2.3.3) (2022-09-30)
114
-
115
- **Note:** Version bump only for package vue3-particles
116
-
117
- ## [2.3.2](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.3.1...vue3-particles@2.3.2) (2022-09-21)
118
-
119
- **Note:** Version bump only for package vue3-particles
120
-
121
- ## [2.3.1](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.3.0...vue3-particles@2.3.1) (2022-09-13)
122
-
123
- **Note:** Version bump only for package vue3-particles
124
-
125
- # [2.3.0](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.2.4...vue3-particles@2.3.0) (2022-09-11)
126
-
127
- **Note:** Version bump only for package vue3-particles
128
-
129
- ## [2.2.4](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.2.2...vue3-particles@2.2.4) (2022-08-26)
130
-
131
- **Note:** Version bump only for package vue3-particles
132
-
133
- ## [2.2.3](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.2.2...vue3-particles@2.2.3) (2022-08-21)
134
-
135
- **Note:** Version bump only for package vue3-particles
136
-
137
- ## [2.2.2](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.2.1...vue3-particles@2.2.2) (2022-08-16)
138
-
139
- ### Bug Fixes
140
-
141
- - fixed double mouse events on mobile using pointer events, closes [#4622](https://github.com/matteobruni/tsparticles/issues/4622) ([1019fa4](https://github.com/matteobruni/tsparticles/commit/1019fa431f8a43cbd45d6adeb5adf94433e6e04b))
142
-
143
- ## [2.2.1](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.2.0...vue3-particles@2.2.1) (2022-08-12)
144
-
145
- **Note:** Version bump only for package vue3-particles
146
-
147
- # [2.2.0](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.1.4...vue3-particles@2.2.0) (2022-08-11)
148
-
149
- ### Bug Fixes
150
-
151
- - **deps:** update capacitor monorepo to v4 ([a63d3a0](https://github.com/matteobruni/tsparticles/commit/a63d3a005ff47dd38ca7924b29267f4796ffebdb))
152
- - **deps:** update dependency riot to v7 ([116fa3f](https://github.com/matteobruni/tsparticles/commit/116fa3f0808bb8e1e3df767513ebcb82c2f9e0e5))
153
- - fixed correctly both [#4031](https://github.com/matteobruni/tsparticles/issues/4031) and [#4385](https://github.com/matteobruni/tsparticles/issues/4385) ([6b57b69](https://github.com/matteobruni/tsparticles/commit/6b57b69585f931478118bd466dcdce9bbc90fa79))
154
-
155
- ## [2.1.4](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.1.3...vue3-particles@2.1.4) (2022-07-28)
156
-
157
- ### Bug Fixes
158
-
159
- - fixed issue with destroyed containers, fixes [#4385](https://github.com/matteobruni/tsparticles/issues/4385), fixes [#4413](https://github.com/matteobruni/tsparticles/issues/4413), fixes [#4534](https://github.com/matteobruni/tsparticles/issues/4534) ([4d22425](https://github.com/matteobruni/tsparticles/commit/4d22425210f64b937a5d1b7bf825624b3ed5f2b6)), closes [#4532](https://github.com/matteobruni/tsparticles/issues/4532)
160
-
161
- ### Features
162
-
163
- - preparing react-particles and switching alternate packages ([49e749e](https://github.com/matteobruni/tsparticles/commit/49e749e90e076f0cb22eefe0f3399102f5b9fb35))
164
-
165
- ## [2.1.3](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.1.2...vue3-particles@2.1.3) (2022-07-01)
166
-
167
- **Note:** Version bump only for package vue3-particles
168
-
169
- ## [2.1.2](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.1.1...vue3-particles@2.1.2) (2022-07-01)
170
-
171
- **Note:** Version bump only for package vue3-particles
172
-
173
- ## [2.1.1](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.1.0...vue3-particles@2.1.1) (2022-07-01)
174
-
175
- **Note:** Version bump only for package vue3-particles
176
-
177
- # [2.1.0](https://github.com/matteobruni/tsparticles/compare/vue3-particles@2.0.6...vue3-particles@2.1.0) (2022-06-18)
178
-
179
- ### Bug Fixes
180
-
181
- - **deps:** update dependency @capacitor/core to v3.5.0 ([581bb7e](https://github.com/matteobruni/tsparticles/commit/581bb7e2f4f6aceb3535daf9223954a80f2daa81))
182
- - **deps:** update react monorepo to v18.1.0 ([6b45793](https://github.com/matteobruni/tsparticles/commit/6b457937c41d7681a2135dfcb6ff220e578f22bb))
183
- - fixed connect links options ([5eb3186](https://github.com/matteobruni/tsparticles/commit/5eb31866b3a9fe1328969c254f2fff0be995b1f5))
@@ -1,19 +0,0 @@
1
- import type { App } from "vue";
2
- import particles from "./vue-particles.vue";
3
- import { type Engine, tsParticles } from "@tsparticles/engine";
4
-
5
- const VueParticles = (app: App, options: { init: (engine: Engine) => Promise<void> }) => {
6
- app.component("vue-particles", particles);
7
-
8
- (async () => {
9
- tsParticles.init();
10
-
11
- if (options.init) {
12
- await options.init(tsParticles);
13
- }
14
-
15
- dispatchEvent(new CustomEvent("particlesInit", { detail: tsParticles }));
16
- })();
17
- };
18
-
19
- export default VueParticles;
@@ -1,63 +0,0 @@
1
- <template>
2
- <div :id="id"></div>
3
- </template>
4
-
5
- <script setup lang="ts">
6
- import { nextTick, onMounted, onUnmounted } from "vue";
7
- import { type Container, type ISourceOptions, type Engine, tsParticles } from "@tsparticles/engine";
8
-
9
- export type IParticlesProps = ISourceOptions;
10
-
11
- let container: Container | undefined, engine: Engine | undefined;
12
-
13
- const props = defineProps<{
14
- id: string;
15
- options?: IParticlesProps;
16
- url?: string;
17
- }>();
18
-
19
- const emit = defineEmits<{
20
- (e: "particlesLoaded", container?: Container): void;
21
- }>();
22
-
23
- addEventListener("particlesInit", (e: Event) => {
24
- const evt = e as CustomEvent<Engine>;
25
-
26
- engine = evt.detail;
27
-
28
- loadParticles();
29
- });
30
-
31
- const loadParticles = async () => {
32
- if (!engine) {
33
- engine = tsParticles;
34
- }
35
-
36
- container = await engine.load({
37
- id: props.id,
38
- url: props.url,
39
- options: props.options,
40
- });
41
-
42
- emit("particlesLoaded", container);
43
- };
44
-
45
- onMounted(() => {
46
- nextTick(() => {
47
- if (!props.id) {
48
- throw new Error("Prop 'id' is required!");
49
- }
50
-
51
- loadParticles();
52
- });
53
- });
54
-
55
- onUnmounted(() => {
56
- if (!container) {
57
- return;
58
- }
59
-
60
- container.destroy();
61
- container = undefined;
62
- });
63
- </script>
package/tsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "extends": [
3
- "@vue/tsconfig/tsconfig.dom.json"//,
4
- //"@vue/tsconfig/tsconfig.lib.json"
5
- ],
6
- "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
7
- "compilerOptions": {
8
- "baseUrl": ".",
9
- "paths": {
10
- "@/*": ["./src/*"]
11
- }
12
- },
13
-
14
- "references": [
15
- {
16
- "path": "./tsconfig.vite-config.json"
17
- }
18
- ]
19
- }
@@ -1,16 +0,0 @@
1
- {
2
- "extends": [
3
- "@tsconfig/node18/tsconfig.json",
4
- "@vue/tsconfig/tsconfig.dom.json"//,
5
- //"@vue/tsconfig/tsconfig.lib.json"
6
- ],
7
- "include": [
8
- "vite.config.*"
9
- ],
10
- "compilerOptions": {
11
- "composite": true,
12
- "types": [
13
- "node"
14
- ]
15
- }
16
- }
package/typedoc.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "includes": "./markdown",
3
- "entryPoints": [
4
- "./src/"
5
- ],
6
- "entryPointStrategy": "expand",
7
- "name": "tsParticles Vue 3.x Component",
8
- "includeVersion": true,
9
- "hideGenerator": true,
10
- "out": "./docs",
11
- "validation": {
12
- "invalidLink": true,
13
- "notDocumented": true
14
- }
15
- }
package/vite.config.ts DELETED
@@ -1,34 +0,0 @@
1
- import { fileURLToPath, URL } from "url";
2
- import path from "path";
3
- import { defineConfig } from "vite";
4
- import vue from "@vitejs/plugin-vue";
5
- import vueJsx from "@vitejs/plugin-vue-jsx";
6
- import dts from "vite-plugin-dts";
7
-
8
- // https://vitejs.dev/config/
9
- export default defineConfig({
10
- build: {
11
- lib: {
12
- entry: path.resolve(__dirname, "src/components/index.ts"),
13
- name: "@tsparticles/vue3",
14
- fileName: format => `particles.${format}.js`,
15
- },
16
- rollupOptions: {
17
- external: [ "vue", "@tsparticles/engine" ],
18
- output: {
19
- // Provide global variables to use in the UMD build
20
- // Add external deps here
21
- globals: {
22
- vue: "Vue",
23
- "@tsparticles/engine": "tsParticles",
24
- },
25
- },
26
- },
27
- },
28
- plugins: [ vue(), vueJsx(), dts() ],
29
- resolve: {
30
- alias: {
31
- "@": fileURLToPath(new URL("./src", import.meta.url)),
32
- },
33
- },
34
- });