@vixt/vitepress 0.1.21 → 0.1.23
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/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.mjs +6 -1
- package/package.json +3 -9
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import * as vite from 'vite';
|
|
|
2
2
|
import * as _vixt_core from '@vixt/core';
|
|
3
3
|
import { Vixt, PluginOptions, VixtOptions } from '@vixt/core';
|
|
4
4
|
import { AppOptions } from '@vixt/vue';
|
|
5
|
+
import { PluginOptions as PluginOptions$1 } from 'pinia-plugin-persistedstate';
|
|
5
6
|
import UnoCSS from 'unocss/vite';
|
|
6
7
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
7
8
|
import Components from 'unplugin-vue-components/vite';
|
|
@@ -24,6 +25,12 @@ declare module '@vixt/core' {
|
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
}
|
|
28
|
+
declare module '@vixt/core/client' {
|
|
29
|
+
interface VixtAppConfig {
|
|
30
|
+
/** https://github.com/prazdevs/pinia-plugin-persistedstate */
|
|
31
|
+
piniaPersistedState?: PluginOptions$1;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
27
34
|
declare const presetVitepress: _vixt_core.VixtModule<VixtOptions>;
|
|
28
35
|
|
|
29
36
|
declare const _default: (options?: VixtOptions | undefined) => vite.PluginOption;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as vite from 'vite';
|
|
|
2
2
|
import * as _vixt_core from '@vixt/core';
|
|
3
3
|
import { Vixt, PluginOptions, VixtOptions } from '@vixt/core';
|
|
4
4
|
import { AppOptions } from '@vixt/vue';
|
|
5
|
+
import { PluginOptions as PluginOptions$1 } from 'pinia-plugin-persistedstate';
|
|
5
6
|
import UnoCSS from 'unocss/vite';
|
|
6
7
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
7
8
|
import Components from 'unplugin-vue-components/vite';
|
|
@@ -24,6 +25,12 @@ declare module '@vixt/core' {
|
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
}
|
|
28
|
+
declare module '@vixt/core/client' {
|
|
29
|
+
interface VixtAppConfig {
|
|
30
|
+
/** https://github.com/prazdevs/pinia-plugin-persistedstate */
|
|
31
|
+
piniaPersistedState?: PluginOptions$1;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
27
34
|
declare const presetVitepress: _vixt_core.VixtModule<VixtOptions>;
|
|
28
35
|
|
|
29
36
|
declare const _default: (options?: VixtOptions | undefined) => vite.PluginOption;
|
package/dist/index.mjs
CHANGED
|
@@ -26,12 +26,17 @@ ${appConfigTemplate}
|
|
|
26
26
|
${pluginsTemplate}
|
|
27
27
|
|
|
28
28
|
import 'uno.css'
|
|
29
|
+
import { createPinia } from 'pinia'
|
|
30
|
+
import { createPersistedState } from 'pinia-plugin-persistedstate'
|
|
29
31
|
import DefaultTheme from 'vitepress/theme'
|
|
30
32
|
|
|
31
33
|
export default {
|
|
32
34
|
extends: DefaultTheme,
|
|
33
35
|
enhanceApp(ctx) {
|
|
34
|
-
|
|
36
|
+
const pinia = createPinia()
|
|
37
|
+
pinia.use(createPersistedState(appConfig.piniaPersistedState))
|
|
38
|
+
ctx.app.use(pinia)
|
|
39
|
+
usePlugins({ ...ctx, pinia, appConfig })
|
|
35
40
|
},
|
|
36
41
|
}
|
|
37
42
|
`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/vitepress",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.23",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/SoulLyoko/vixt#readme",
|
|
@@ -18,15 +18,9 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@vueuse/core": "^11.1.0",
|
|
22
|
-
"unocss": "^0.63.4",
|
|
23
|
-
"unplugin-auto-import": "^0.18.3",
|
|
24
|
-
"unplugin-vue-components": "^0.27.4",
|
|
25
|
-
"vite-plugin-vue-devtools": "^7.5.2",
|
|
26
21
|
"vitepress": "^1.4.1",
|
|
27
|
-
"
|
|
28
|
-
"@vixt/vue": "0.1.
|
|
29
|
-
"@vixt/core": "0.1.21"
|
|
22
|
+
"@vixt/core": "0.1.23",
|
|
23
|
+
"@vixt/vue": "0.1.23"
|
|
30
24
|
},
|
|
31
25
|
"scripts": {
|
|
32
26
|
"build": "unbuild"
|