@supermousejs/labs 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,25 @@
1
1
  # @supermousejs/labs
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/zoetrope@2.0.2
10
+ - @supermousejs/utils@2.0.2
11
+ - @supermousejs/core@2.0.2
12
+
13
+ ## 2.0.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Add minimal README.md files to packages
18
+ - Updated dependencies
19
+ - @supermousejs/zoetrope@2.0.1
20
+ - @supermousejs/utils@2.0.1
21
+ - @supermousejs/core@2.0.1
22
+
3
23
  ## 2.0.0
4
24
 
5
25
  ### Major Changes
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+
2
+ # @supermousejs/labs
3
+
4
+ Experimental and advanced plugins for Supermouse.
5
+
6
+ ## Included Plugins
7
+
8
+ ### SmartIcon
9
+ Morphs SVG icons based on semantic tags (links, inputs) or context.
10
+
11
+ ```ts
12
+ import { SmartIcon } from '@supermousejs/labs';
13
+ app.use(SmartIcon({ icons: { default: '...', pointer: '...' } }));
14
+ ```
15
+
16
+ ### SmartRing
17
+ A reactive ring that distorts with velocity and adapts to stuck elements.
18
+
19
+ ```ts
20
+ import { SmartRing } from '@supermousejs/labs';
21
+ app.use(SmartRing({ enableSkew: true }));
22
+ ```
23
+
24
+ ### Sparkles
25
+ Emits particle trails based on movement velocity.
26
+
27
+ ```ts
28
+ import { Sparkles } from '@supermousejs/labs';
29
+ app.use(Sparkles({ color: 'gold' }));
30
+ ```
31
+
32
+ ### TextRing
33
+ Rotates text around the cursor position.
34
+
35
+ ```ts
36
+ import { TextRing } from '@supermousejs/labs';
37
+ app.use(TextRing({ text: 'LOADING • ' }));
38
+ ```
39
+
40
+ ## Documentation
41
+
42
+ 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,19 +1,19 @@
1
1
  {
2
2
  "name": "@supermousejs/labs",
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/zoetrope": "2.0.0",
9
- "@supermousejs/core": "2.0.0",
10
- "@supermousejs/utils": "2.0.0"
8
+ "@supermousejs/utils": "2.0.2",
9
+ "@supermousejs/zoetrope": "2.0.2",
10
+ "@supermousejs/core": "2.0.2"
11
11
  },
12
12
  "peerDependencies": {
13
- "@supermousejs/core": "2.0.0"
13
+ "@supermousejs/core": "2.0.2"
14
14
  },
15
15
  "devDependencies": {
16
- "@supermousejs/core": "2.0.0"
16
+ "@supermousejs/core": "2.0.2"
17
17
  },
18
18
  "exports": {
19
19
  ".": {
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
-
2
- export * from './SmartIcon';
3
- export * from './SmartRing';
4
- export * from './Sparkles';
5
- export * from './TextRing';
1
+
2
+ export * from './SmartIcon';
3
+ export * from './SmartRing';
4
+ export * from './Sparkles';
5
+ export * from './TextRing';
package/tsconfig.json CHANGED
@@ -1,21 +1,21 @@
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
- "@supermousejs/utils": [
14
- "../utils/src/index.ts"
15
- ],
16
- "@supermousejs/zoetrope": [
17
- "../zoetrope/src/index.ts"
18
- ]
19
- }
20
- }
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
+ "@supermousejs/utils": [
14
+ "../utils/src/index.ts"
15
+ ],
16
+ "@supermousejs/zoetrope": [
17
+ "../zoetrope/src/index.ts"
18
+ ]
19
+ }
20
+ }
21
21
  }
package/vite.config.ts CHANGED
@@ -1,22 +1,22 @@
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: 'SupermouseLabs',
10
- fileName: (format) => format === 'es' ? 'index.mjs' : 'index.umd.js',
11
- },
12
- rollupOptions: {
13
- external: ['@supermousejs/core', '@supermousejs/utils', '@supermousejs/zoetrope'],
14
- output: {
15
- globals: {
16
- '@supermousejs/core': 'SupermouseCore'
17
- , '@supermousejs/utils': 'SupermouseUtils', '@supermousejs/zoetrope': 'SupermouseZoetrope'}
18
- }
19
- }
20
- },
21
- 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: 'SupermouseLabs',
10
+ fileName: (format) => format === 'es' ? 'index.mjs' : 'index.umd.js',
11
+ },
12
+ rollupOptions: {
13
+ external: ['@supermousejs/core', '@supermousejs/utils', '@supermousejs/zoetrope'],
14
+ output: {
15
+ globals: {
16
+ '@supermousejs/core': 'SupermouseCore'
17
+ , '@supermousejs/utils': 'SupermouseUtils', '@supermousejs/zoetrope': 'SupermouseZoetrope'}
18
+ }
19
+ }
20
+ },
21
+ plugins: [dts({ rollupTypes: true })]
22
22
  });