@supermousejs/vue 2.0.0 → 2.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @supermousejs/vue
2
2
 
3
+ ## 2.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ae219a0: Update READMEs with correct link to documentation
8
+ - Updated dependencies [ae219a0]
9
+ - @supermousejs/core@2.0.2
10
+
11
+ ## 2.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Add minimal README.md files to packages
16
+ - Updated dependencies
17
+ - @supermousejs/core@2.0.1
18
+
3
19
  ## 2.0.0
4
20
 
5
21
  ### Major Changes
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+
2
+ # @supermousejs/vue
3
+
4
+ Vue 3 integration for Supermouse.
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ pnpm add @supermousejs/vue @supermousejs/core
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ **In `App.vue` (Root):**
15
+
16
+ ```vue
17
+ <script setup>
18
+ import { provideSupermouse } from '@supermousejs/vue';
19
+ import { Dot } from '@supermousejs/dot';
20
+
21
+ provideSupermouse({ smoothness: 0.15 }, [
22
+ Dot({ size: 8 })
23
+ ]);
24
+ </script>
25
+ ```
26
+
27
+ **In Components:**
28
+
29
+ ```vue
30
+ <script setup>
31
+ import { useSupermouse } from '@supermousejs/vue';
32
+
33
+ const mouse = useSupermouse(); // Returns Ref<Supermouse | null>
34
+ </script>
35
+ ```
36
+
37
+ ## Documentation
38
+
39
+ Full documentation and interactive playground available at [supermouse](https://supermouse.vercel.app) or [check out the repo](https://github.com/Whitestar14/supermouse-js).
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@supermousejs/vue",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "main": "dist/index.umd.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
7
7
  "dependencies": {
8
- "@supermousejs/core": "2.0.0"
8
+ "@supermousejs/core": "2.0.2"
9
9
  },
10
10
  "peerDependencies": {
11
11
  "vue": "^3.2.0"
package/tsconfig.json CHANGED
@@ -1,15 +1,15 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "include": [
4
- "src"
5
- ],
6
- "compilerOptions": {
7
- "outDir": "dist",
8
- "baseUrl": ".",
9
- "paths": {
10
- "@supermousejs/core": [
11
- "../core/src/index.ts"
12
- ]
13
- }
14
- }
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "include": [
4
+ "src"
5
+ ],
6
+ "compilerOptions": {
7
+ "outDir": "dist",
8
+ "baseUrl": ".",
9
+ "paths": {
10
+ "@supermousejs/core": [
11
+ "../core/src/index.ts"
12
+ ]
13
+ }
14
+ }
15
15
  }
package/vite.config.ts CHANGED
@@ -1,23 +1,23 @@
1
- import { defineConfig } from 'vite';
2
- import dts from 'vite-plugin-dts';
3
- import path from 'path';
4
-
5
- export default defineConfig({
6
- build: {
7
- lib: {
8
- entry: path.resolve(__dirname, 'src/index.ts'),
9
- name: 'SupermouseVue',
10
- fileName: (format) => format === 'es' ? 'index.mjs' : 'index.umd.js',
11
- },
12
- rollupOptions: {
13
- external: ['vue', '@supermousejs/core'],
14
- output: {
15
- globals: {
16
- vue: 'Vue',
17
- '@supermousejs/core': 'SupermouseCore'
18
- }
19
- }
20
- }
21
- },
22
- plugins: [dts({ rollupTypes: true })]
1
+ import { defineConfig } from 'vite';
2
+ import dts from 'vite-plugin-dts';
3
+ import path from 'path';
4
+
5
+ export default defineConfig({
6
+ build: {
7
+ lib: {
8
+ entry: path.resolve(__dirname, 'src/index.ts'),
9
+ name: 'SupermouseVue',
10
+ fileName: (format) => format === 'es' ? 'index.mjs' : 'index.umd.js',
11
+ },
12
+ rollupOptions: {
13
+ external: ['vue', '@supermousejs/core'],
14
+ output: {
15
+ globals: {
16
+ vue: 'Vue',
17
+ '@supermousejs/core': 'SupermouseCore'
18
+ }
19
+ }
20
+ }
21
+ },
22
+ plugins: [dts({ rollupTypes: true })]
23
23
  });