@vixt/vue 0.9.0 → 0.11.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/dist/client/client.d.ts +22 -0
- package/dist/client/entry.d.ts +2 -5
- package/dist/client/entry.js +2 -5
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +2 -0
- package/dist/client/plugins/router.d.ts +2 -2
- package/dist/client/plugins/router.js +2 -4
- package/dist/node/index.d.mts +9 -0
- package/dist/node/index.mjs +37 -0
- package/dist/node/modules/preset-vue.d.mts +7 -0
- package/dist/node/modules/preset-vue.mjs +2 -0
- package/dist/node/modules/virtual-root-component.d.mts +7 -0
- package/dist/node/modules/virtual-root-component.mjs +2 -0
- package/dist/node/node.d.mts +30 -0
- package/dist/node/preset-vue-CS1Dp3Yf.mjs +83 -0
- package/dist/{index.mjs → node/virtual-root-component-6LvPEGIT.mjs} +291 -380
- package/dist/types/index.d.ts +2 -2
- package/package.json +10 -15
- package/dist/client/plugins/pinia.d.ts +0 -6
- package/dist/client/plugins/pinia.js +0 -18
- package/dist/index.d.mts +0 -7
- package/dist/types/client.d.ts +0 -20
- package/dist/types/node.d.ts +0 -28
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
1
|
+
import '../client/client.d'
|
|
2
|
+
import '../node/node.d'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://soullyoko.github.io/vixt/",
|
|
@@ -12,31 +12,26 @@
|
|
|
12
12
|
"vue"
|
|
13
13
|
],
|
|
14
14
|
"exports": {
|
|
15
|
-
".": "./dist/index.mjs",
|
|
15
|
+
".": "./dist/node/index.mjs",
|
|
16
16
|
"./client/App": "./dist/client/App.vue",
|
|
17
17
|
"./client/*": "./dist/client/*.js",
|
|
18
18
|
"./types": "./dist/types/index.d.ts",
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
|
-
"main": "./dist/index.mjs",
|
|
21
|
+
"main": "./dist/node/index.mjs",
|
|
22
22
|
"types": "./dist/types/index.d.ts",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
28
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
29
|
-
"@vueuse/core": "^13.9.0",
|
|
30
|
-
"pinia": "^3.0.4",
|
|
31
|
-
"pinia-plugin-persistedstate": "^4.7.1",
|
|
32
|
-
"unocss": "^66.6.0",
|
|
33
|
-
"unplugin-auto-import": "^21.0.0",
|
|
27
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
28
|
+
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
34
29
|
"unplugin-vue-components": "28.0.0",
|
|
35
|
-
"vite-plugin-vue-devtools": "^8.
|
|
30
|
+
"vite-plugin-vue-devtools": "^8.1.2",
|
|
36
31
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
37
|
-
"vue": "^3.5.
|
|
38
|
-
"vue-router": "^5.0.
|
|
39
|
-
"vue-tsc": "^3.
|
|
40
|
-
"@vixt/core": "0.
|
|
32
|
+
"vue": "^3.5.34",
|
|
33
|
+
"vue-router": "^5.0.7",
|
|
34
|
+
"vue-tsc": "^3.3.1",
|
|
35
|
+
"@vixt/core": "0.11.0"
|
|
41
36
|
}
|
|
42
37
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineVixtPlugin } from "@vixt/core/client";
|
|
2
|
-
import { createPinia } from "pinia";
|
|
3
|
-
import { createPersistedState } from "pinia-plugin-persistedstate";
|
|
4
|
-
|
|
5
|
-
//#region src/client/plugins/pinia.ts
|
|
6
|
-
var pinia_default = defineVixtPlugin({
|
|
7
|
-
name: "vixt:pinia",
|
|
8
|
-
setup(vixt) {
|
|
9
|
-
const { app, appConfig } = vixt;
|
|
10
|
-
const pinia = createPinia();
|
|
11
|
-
pinia.use(createPersistedState(appConfig.piniaPersistedState));
|
|
12
|
-
app.use(pinia);
|
|
13
|
-
vixt.pinia = pinia;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { pinia_default as default };
|
package/dist/index.d.mts
DELETED
package/dist/types/client.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Pinia } from 'pinia'
|
|
2
|
-
import type { PluginOptions as PersistedStateOptions } from 'pinia-plugin-persistedstate'
|
|
3
|
-
import type { App } from 'vue'
|
|
4
|
-
import type { Router, RouteRecord, RouterOptions } from 'vue-router'
|
|
5
|
-
|
|
6
|
-
declare module '@vixt/core/client' {
|
|
7
|
-
interface VixtAppConfig {
|
|
8
|
-
router?: Partial<RouterOptions>
|
|
9
|
-
/** https://github.com/prazdevs/pinia-plugin-persistedstate */
|
|
10
|
-
piniaPersistedState?: PersistedStateOptions
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface VixtApp {
|
|
14
|
-
app: App
|
|
15
|
-
router: Router
|
|
16
|
-
routes: RouteRecord[]
|
|
17
|
-
pinia: Pinia
|
|
18
|
-
appConfig: VixtAppConfig
|
|
19
|
-
}
|
|
20
|
-
}
|
package/dist/types/node.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type Vue from '@vitejs/plugin-vue'
|
|
2
|
-
import type VueJsx from '@vitejs/plugin-vue-jsx'
|
|
3
|
-
import type { ExtractPluginOptions } from '@vixt/core'
|
|
4
|
-
import type UnoCSS from 'unocss/vite'
|
|
5
|
-
import type AutoImport from 'unplugin-auto-import/vite'
|
|
6
|
-
import type Components from 'unplugin-vue-components/vite'
|
|
7
|
-
import type VueDevTools from 'vite-plugin-vue-devtools'
|
|
8
|
-
import type Layouts from 'vite-plugin-vue-layouts'
|
|
9
|
-
import type VueRouter from 'vue-router/vite'
|
|
10
|
-
|
|
11
|
-
declare module '@vixt/core' {
|
|
12
|
-
interface VixtOptions {
|
|
13
|
-
vue?: ExtractPluginOptions<typeof Vue>
|
|
14
|
-
vueJsx?: ExtractPluginOptions<typeof VueJsx>
|
|
15
|
-
/** https://router.vuejs.org/file-based-routing/ */
|
|
16
|
-
router?: ExtractPluginOptions<typeof VueRouter>
|
|
17
|
-
/** https://github.com/JohnCampionJr/vite-plugin-vue-layouts */
|
|
18
|
-
layouts?: ExtractPluginOptions<typeof Layouts>
|
|
19
|
-
/** https://github.com/unplugin/unplugin-vue-components */
|
|
20
|
-
components?: ExtractPluginOptions<typeof Components>
|
|
21
|
-
/** https://github.com/unplugin/unplugin-auto-import */
|
|
22
|
-
imports?: ExtractPluginOptions<typeof AutoImport>
|
|
23
|
-
/** https://github.com/unocss/unocss */
|
|
24
|
-
unocss?: ExtractPluginOptions<typeof UnoCSS>
|
|
25
|
-
/** https://github.com/webfansplz/vite-plugin-vue-devtools */
|
|
26
|
-
devtools?: ExtractPluginOptions<typeof VueDevTools> & { enabled?: boolean }
|
|
27
|
-
}
|
|
28
|
-
}
|