vixt 0.0.15 → 0.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/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +10 -12
- package/dist/index.d.mts +0 -23
- package/dist/index.d.ts +0 -23
- package/dist/index.mjs +0 -10
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vixt/core/client'
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vixt/core/client'
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vixt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/SoulLyoko/vixt#readme",
|
|
8
8
|
"repository": "https://github.com/SoulLyoko/vixt.git",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"types": "./
|
|
12
|
-
"import": "./
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"import": "./index.js"
|
|
13
13
|
},
|
|
14
14
|
"./core": {
|
|
15
15
|
"types": "./core.d.ts",
|
|
@@ -24,20 +24,18 @@
|
|
|
24
24
|
"import": "./uni.js"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
"main": "
|
|
28
|
-
"types": "
|
|
27
|
+
"main": "index.js",
|
|
28
|
+
"types": "index.d.ts",
|
|
29
29
|
"files": [
|
|
30
30
|
"core.*",
|
|
31
|
-
"
|
|
31
|
+
"index.*",
|
|
32
32
|
"uni.*",
|
|
33
33
|
"vue.*"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@vixt/core": "0.0
|
|
37
|
-
"@vixt/
|
|
38
|
-
"@vixt/
|
|
36
|
+
"@vixt/core": "0.1.0",
|
|
37
|
+
"@vixt/vue": "0.1.0",
|
|
38
|
+
"@vixt/uni": "0.1.0"
|
|
39
39
|
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"build": "unbuild"
|
|
42
|
-
}
|
|
40
|
+
"scripts": {}
|
|
43
41
|
}
|
package/dist/index.d.mts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { App, Plugin } from 'vue';
|
|
2
|
-
import { Router, RouteRecord } from 'vue-router';
|
|
3
|
-
import { Pinia } from 'pinia';
|
|
4
|
-
|
|
5
|
-
interface VixtApp {
|
|
6
|
-
app: App;
|
|
7
|
-
router: Router;
|
|
8
|
-
routes: RouteRecord[];
|
|
9
|
-
pinia: Pinia;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface PluginDefinition {
|
|
13
|
-
name?: string;
|
|
14
|
-
setup?: (this: void, vixt: VixtApp) => any;
|
|
15
|
-
}
|
|
16
|
-
interface VixtPlugin {
|
|
17
|
-
(this: void, vixt: VixtApp): any;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
declare function defineVuePlugin<Options = any[]>(plugin: Plugin<Options>): Plugin<Options>;
|
|
21
|
-
declare function defineVixtPlugin(definition: PluginDefinition | VixtPlugin): VixtPlugin;
|
|
22
|
-
|
|
23
|
-
export { type PluginDefinition, type VixtApp, type VixtPlugin, defineVixtPlugin, defineVuePlugin };
|
package/dist/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { App, Plugin } from 'vue';
|
|
2
|
-
import { Router, RouteRecord } from 'vue-router';
|
|
3
|
-
import { Pinia } from 'pinia';
|
|
4
|
-
|
|
5
|
-
interface VixtApp {
|
|
6
|
-
app: App;
|
|
7
|
-
router: Router;
|
|
8
|
-
routes: RouteRecord[];
|
|
9
|
-
pinia: Pinia;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface PluginDefinition {
|
|
13
|
-
name?: string;
|
|
14
|
-
setup?: (this: void, vixt: VixtApp) => any;
|
|
15
|
-
}
|
|
16
|
-
interface VixtPlugin {
|
|
17
|
-
(this: void, vixt: VixtApp): any;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
declare function defineVuePlugin<Options = any[]>(plugin: Plugin<Options>): Plugin<Options>;
|
|
21
|
-
declare function defineVixtPlugin(definition: PluginDefinition | VixtPlugin): VixtPlugin;
|
|
22
|
-
|
|
23
|
-
export { type PluginDefinition, type VixtApp, type VixtPlugin, defineVixtPlugin, defineVuePlugin };
|
package/dist/index.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
function defineVuePlugin(plugin) {
|
|
2
|
-
return plugin;
|
|
3
|
-
}
|
|
4
|
-
function defineVixtPlugin(definition) {
|
|
5
|
-
if (typeof definition == "function")
|
|
6
|
-
return defineVixtPlugin({ setup: definition });
|
|
7
|
-
return (vixt) => definition.setup?.(vixt);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { defineVixtPlugin, defineVuePlugin };
|