@vuepress/client 2.0.0-rc.27 → 2.0.0-rc.28
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.ts +15 -15
- package/package.json +21 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as SiteData, C as PageLayoutRef, D as RoutePath, E as RouteLocaleRef, F as Redirects, I as Route, L as RouteMeta, M as SiteLocaleData, N as SiteLocaleDataRef, O as RoutePathRef, P as PageChunk, R as Routes, S as PageLayout, T as RouteLocale, _ as PageHeadTitle, a as ClientData, b as PageLang, c as LayoutsRef, d as PageData, f as PageDataRef, g as PageHeadRef, h as PageHead, i as ClientConfig, j as SiteDataRef, k as RoutesRef, l as PageComponent, m as PageFrontmatterRef, n as ContentUpdatedReason, o as HeadConfig, p as PageFrontmatter, r as CreateVueAppFunction, s as Layouts, t as ContentUpdatedCallback, u as PageComponentRef, v as PageHeadTitleRef, w as RedirectsRef, x as PageLangRef, y as PageHeader } from "./index-CNztZIId.js";
|
|
2
|
-
import * as vue from "vue";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
3
|
import { InjectionKey, PropType, SlotsType, VNode } from "vue";
|
|
4
4
|
import { RouteLocationNormalizedLoaded, Router, useRoute, useRouter } from "vue-router";
|
|
5
5
|
|
|
@@ -40,14 +40,14 @@ interface AutoLinkConfig {
|
|
|
40
40
|
* - If the link is internal, it will be rendered as a `<RouteLink>`
|
|
41
41
|
* - If the link is external, it will be rendered as a normal `<a>` tag
|
|
42
42
|
*/
|
|
43
|
-
declare const AutoLink: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
43
|
+
declare const AutoLink: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
44
44
|
config: {
|
|
45
45
|
type: PropType<AutoLinkConfig>;
|
|
46
46
|
required: true;
|
|
47
47
|
};
|
|
48
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
48
|
+
}>, () => VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
49
49
|
[key: string]: any;
|
|
50
|
-
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
50
|
+
}>, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
|
51
51
|
config: {
|
|
52
52
|
type: PropType<AutoLinkConfig>;
|
|
53
53
|
required: true;
|
|
@@ -56,7 +56,7 @@ declare const AutoLink: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
56
56
|
default?: (config: AutoLinkConfig) => VNode | VNode[];
|
|
57
57
|
before?: (config: AutoLinkConfig) => VNode | VNode[] | null;
|
|
58
58
|
after?: (config: AutoLinkConfig) => VNode | VNode[] | null;
|
|
59
|
-
}>, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
59
|
+
}>, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/components/ClientOnly.d.ts
|
|
62
62
|
/**
|
|
@@ -66,23 +66,23 @@ declare const AutoLink: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
66
66
|
*
|
|
67
67
|
* @see https://blog.vuejs.org/posts/vue-3-5#data-allow-mismatch
|
|
68
68
|
*/
|
|
69
|
-
declare const ClientOnly: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
69
|
+
declare const ClientOnly: _$vue.DefineComponent<{}, () => _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
70
70
|
[key: string]: any;
|
|
71
|
-
}>[] | null | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
71
|
+
}>[] | null | undefined, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/components/Content.d.ts
|
|
74
74
|
/**
|
|
75
75
|
* Markdown rendered content
|
|
76
76
|
*/
|
|
77
|
-
declare const Content: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
77
|
+
declare const Content: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
78
78
|
path: {
|
|
79
79
|
type: StringConstructor;
|
|
80
80
|
required: false;
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
83
|
-
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
83
|
+
}>, () => _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
84
84
|
[key: string]: any;
|
|
85
|
-
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
85
|
+
}>, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
|
86
86
|
path: {
|
|
87
87
|
type: StringConstructor;
|
|
88
88
|
required: false;
|
|
@@ -90,7 +90,7 @@ declare const Content: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
90
90
|
};
|
|
91
91
|
}>> & Readonly<{}>, {
|
|
92
92
|
path: string;
|
|
93
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
93
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region src/components/RouteLink.d.ts
|
|
96
96
|
interface RouteLinkProps {
|
|
@@ -120,7 +120,7 @@ interface RouteLinkProps {
|
|
|
120
120
|
*
|
|
121
121
|
* It's recommended to use `RouteLink` in VuePress.
|
|
122
122
|
*/
|
|
123
|
-
declare const RouteLink: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
123
|
+
declare const RouteLink: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
124
124
|
/**
|
|
125
125
|
* The route path to link to
|
|
126
126
|
*/
|
|
@@ -141,9 +141,9 @@ declare const RouteLink: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
141
141
|
type: StringConstructor;
|
|
142
142
|
default: string;
|
|
143
143
|
};
|
|
144
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
144
|
+
}>, () => VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
145
145
|
[key: string]: any;
|
|
146
|
-
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
146
|
+
}>, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
|
147
147
|
/**
|
|
148
148
|
* The route path to link to
|
|
149
149
|
*/
|
|
@@ -169,7 +169,7 @@ declare const RouteLink: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
169
169
|
activeClass: string;
|
|
170
170
|
}, SlotsType<{
|
|
171
171
|
default: () => (VNode | string)[] | VNode | string;
|
|
172
|
-
}>, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
172
|
+
}>, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region src/composables/clientData.d.ts
|
|
175
175
|
/**
|
package/package.json
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/client",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.28",
|
|
4
4
|
"description": "Client package of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"client",
|
|
7
|
+
"vuepress"
|
|
8
8
|
],
|
|
9
9
|
"homepage": "https://github.com/vuepress",
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/vuepress/core/issues"
|
|
12
12
|
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "meteorlxy",
|
|
13
15
|
"repository": {
|
|
14
16
|
"type": "git",
|
|
15
17
|
"url": "git+https://github.com/vuepress/core.git"
|
|
16
18
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"templates",
|
|
22
|
+
"types.d.ts"
|
|
23
|
+
],
|
|
19
24
|
"type": "module",
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
20
28
|
"exports": {
|
|
21
29
|
".": "./dist/index.js",
|
|
22
30
|
"./app": "./dist/app.js",
|
|
@@ -24,24 +32,16 @@
|
|
|
24
32
|
"./templates/*": "./templates/*",
|
|
25
33
|
"./types": "./types.d.ts"
|
|
26
34
|
},
|
|
27
|
-
"main": "./dist/index.js",
|
|
28
|
-
"module": "./dist/index.js",
|
|
29
|
-
"types": "./dist/index.d.ts",
|
|
30
|
-
"files": [
|
|
31
|
-
"dist",
|
|
32
|
-
"templates",
|
|
33
|
-
"types.d.ts"
|
|
34
|
-
],
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@vue/devtools-api": "^8.0.7",
|
|
37
|
-
"@vue/devtools-kit": "^8.0.7",
|
|
38
|
-
"vue": "^3.5.29",
|
|
39
|
-
"vue-router": "^5.0.3",
|
|
40
|
-
"@vuepress/shared": "2.0.0-rc.27"
|
|
41
|
-
},
|
|
42
35
|
"publishConfig": {
|
|
43
36
|
"access": "public"
|
|
44
37
|
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@vue/devtools-api": "^8.1.1",
|
|
40
|
+
"@vue/devtools-kit": "^8.1.1",
|
|
41
|
+
"vue": "^3.5.31",
|
|
42
|
+
"vue-router": "^5.0.4",
|
|
43
|
+
"@vuepress/shared": "2.0.0-rc.28"
|
|
44
|
+
},
|
|
45
45
|
"tsdown": {
|
|
46
46
|
"deps": {
|
|
47
47
|
"neverBundle": [
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"./src/app.ts",
|
|
56
56
|
"./src/index.ts"
|
|
57
57
|
],
|
|
58
|
+
"fixedExtension": false,
|
|
58
59
|
"format": "esm",
|
|
59
60
|
"outDir": "./dist",
|
|
60
61
|
"target": "es2023",
|
|
61
|
-
"fixedExtension": false,
|
|
62
62
|
"tsconfig": "./tsconfig.dts.json"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|