@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.
@@ -1,2 +1,2 @@
1
- import './client.d'
2
- import './node.d'
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.9.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.4",
28
- "@vitejs/plugin-vue-jsx": "^5.1.4",
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.0.6",
30
+ "vite-plugin-vue-devtools": "^8.1.2",
36
31
  "vite-plugin-vue-layouts": "^0.11.0",
37
- "vue": "^3.5.29",
38
- "vue-router": "^5.0.3",
39
- "vue-tsc": "^3.2.5",
40
- "@vixt/core": "0.9.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,6 +0,0 @@
1
- import * as _vixt_core_client0 from "@vixt/core/client";
2
-
3
- //#region src/client/plugins/pinia.d.ts
4
- declare const _default: _vixt_core_client0.VixtPlugin;
5
- //#endregion
6
- export { _default as default };
@@ -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
@@ -1,7 +0,0 @@
1
- import * as _vixt_core0 from "@vixt/core";
2
- import * as vite from "vite";
3
-
4
- //#region src/index.d.ts
5
- declare const _default: (options?: _vixt_core0.VixtOptions | undefined) => vite.PluginOption;
6
- //#endregion
7
- export { _default as default };
@@ -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
- }
@@ -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
- }