@supermousejs/utils 2.0.1 → 2.1.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/CHANGELOG.md +29 -0
- package/README.md +4 -0
- package/package.json +10 -4
- package/src/index.ts +10 -10
- package/src/plugin.ts +0 -2
- package/tsconfig.json +14 -14
- package/vite.config.ts +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @supermousejs/utils
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0a1652d: fixed build architecture and updated plugin metadata
|
|
8
|
+
|
|
9
|
+
## 2.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 993dc67: Updated supemousejs packages with proper author, license and url descriptors to repo
|
|
14
|
+
- Updated dependencies [993dc67]
|
|
15
|
+
- @supermousejs/core@2.0.4
|
|
16
|
+
|
|
17
|
+
## 2.0.3
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @supermousejs/core@2.0.3
|
|
23
|
+
|
|
24
|
+
## 2.0.2
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- ae219a0: Update READMEs with correct link to documentation
|
|
29
|
+
- Updated dependencies [ae219a0]
|
|
30
|
+
- @supermousejs/core@2.0.2
|
|
31
|
+
|
|
3
32
|
## 2.0.1
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -9,3 +9,7 @@ Used primarily by plugin authors.
|
|
|
9
9
|
- **Math:** `lerp`, `damp` (frame-independent), `angle`, `dist`.
|
|
10
10
|
- **DOM:** `createActor`, `setStyle` (cached), `setTransform`.
|
|
11
11
|
- **Plugin:** `definePlugin` helper for type-safe plugin creation.
|
|
12
|
+
|
|
13
|
+
## Documentation
|
|
14
|
+
|
|
15
|
+
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,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supermousejs/utils",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"main": "dist/index.umd.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
"author": "O.S David",
|
|
8
|
+
"url": "https://github.com/Whitestar14/supermouse-js",
|
|
9
|
+
"license": "MIT",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@supermousejs/core": "2.0.4"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@supermousejs/core": "2.0.4"
|
|
25
|
+
},
|
|
20
26
|
"scripts": {
|
|
21
27
|
"build": "vite build"
|
|
22
28
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as math from './math';
|
|
2
|
-
import * as dom from './dom';
|
|
3
|
-
import * as effects from './effects';
|
|
4
|
-
|
|
5
|
-
export { math, dom, effects };
|
|
6
|
-
export * from './layers';
|
|
7
|
-
export * from './css';
|
|
8
|
-
export * from './plugin';
|
|
9
|
-
export * from './options';
|
|
10
|
-
export * from './doctor';
|
|
1
|
+
import * as math from './math';
|
|
2
|
+
import * as dom from './dom';
|
|
3
|
+
import * as effects from './effects';
|
|
4
|
+
|
|
5
|
+
export { math, dom, effects };
|
|
6
|
+
export * from './layers';
|
|
7
|
+
export * from './css';
|
|
8
|
+
export * from './plugin';
|
|
9
|
+
export * from './options';
|
|
10
|
+
export * from './doctor';
|
package/src/plugin.ts
CHANGED
|
@@ -2,13 +2,11 @@ import type { Supermouse, SupermousePlugin } from '@supermousejs/core';
|
|
|
2
2
|
import { normalize } from './options';
|
|
3
3
|
import { setStyle } from './dom';
|
|
4
4
|
|
|
5
|
-
// --- SHARED OPTIONS ---
|
|
6
5
|
export interface BasePluginOptions {
|
|
7
6
|
name?: string;
|
|
8
7
|
isEnabled?: boolean;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
// --- MODE A: LOGIC PLUGIN CONFIG ---
|
|
12
10
|
interface LogicConfig {
|
|
13
11
|
name: string;
|
|
14
12
|
priority?: number;
|
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,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: 'SupermouseUtils',
|
|
10
|
-
fileName: (format) => format === 'es' ? 'index.mjs' : 'index.umd.js',
|
|
11
|
-
},
|
|
12
|
-
rollupOptions: {
|
|
13
|
-
external: ['@supermousejs/core'],
|
|
14
|
-
output: {
|
|
15
|
-
globals: {
|
|
16
|
-
'@supermousejs/core': 'SupermouseCore'
|
|
17
|
-
}
|
|
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: 'SupermouseUtils',
|
|
10
|
+
fileName: (format) => format === 'es' ? 'index.mjs' : 'index.umd.js',
|
|
11
|
+
},
|
|
12
|
+
rollupOptions: {
|
|
13
|
+
external: ['@supermousejs/core'],
|
|
14
|
+
output: {
|
|
15
|
+
globals: {
|
|
16
|
+
'@supermousejs/core': 'SupermouseCore'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
plugins: [dts({ rollupTypes: true })]
|
|
22
22
|
});
|