@vuepress/client 2.0.0-beta.51 → 2.0.0-beta.52
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/app.js +1 -1
- package/dist/{chunk-O5XLV5GU.js → chunk-X6HE2CCA.js} +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/templates/build.html +1 -1
package/dist/app.js
CHANGED
|
@@ -17,7 +17,7 @@ var pageDataEmpty = readonly({
|
|
|
17
17
|
});
|
|
18
18
|
var pageData = ref2(pageDataEmpty);
|
|
19
19
|
var usePageData = () => pageData;
|
|
20
|
-
if (import.meta.webpackHot || import.meta.hot) {
|
|
20
|
+
if (__VUEPRESS_DEV__ && (import.meta.webpackHot || import.meta.hot)) {
|
|
21
21
|
__VUE_HMR_RUNTIME__.updatePageData = (data) => {
|
|
22
22
|
pagesData.value[data.key] = () => Promise.resolve(data);
|
|
23
23
|
if (data.key === pageData.value.key) {
|
|
@@ -96,7 +96,7 @@ import { siteData as siteDataRaw } from "@internal/siteData";
|
|
|
96
96
|
import { ref as ref3 } from "vue";
|
|
97
97
|
var siteData = ref3(siteDataRaw);
|
|
98
98
|
var useSiteData = () => siteData;
|
|
99
|
-
if (import.meta.webpackHot || import.meta.hot) {
|
|
99
|
+
if (__VUEPRESS_DEV__ && (import.meta.webpackHot || import.meta.hot)) {
|
|
100
100
|
__VUE_HMR_RUNTIME__.updateSiteData = (data) => {
|
|
101
101
|
siteData.value = data;
|
|
102
102
|
};
|
|
@@ -153,7 +153,7 @@ var resolvers = reactive({
|
|
|
153
153
|
];
|
|
154
154
|
return dedupeHead(head);
|
|
155
155
|
},
|
|
156
|
-
resolvePageHeadTitle: (page, siteLocale) => `${page.title ? `${page.title}
|
|
156
|
+
resolvePageHeadTitle: (page, siteLocale) => `${page.title ? `${page.title}` : ``}${siteLocale.title ? ` | ${siteLocale.title}` : ``}`,
|
|
157
157
|
resolvePageLang: (pageData2) => pageData2.lang || "en",
|
|
158
158
|
resolveRouteLocale: (locales, routePath) => resolveLocalePath(locales, routePath),
|
|
159
159
|
resolveSiteLocaleData: (site, routeLocale) => ({
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Router, RouteMeta } from 'vue-router';
|
|
|
6
6
|
|
|
7
7
|
declare const ClientOnly: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
8
8
|
[key: string]: any;
|
|
9
|
-
}>[] | null | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin,
|
|
9
|
+
}>[] | null | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Markdown rendered content
|
|
@@ -19,7 +19,7 @@ declare const Content: vue.DefineComponent<{
|
|
|
19
19
|
};
|
|
20
20
|
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
21
21
|
[key: string]: any;
|
|
22
|
-
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin,
|
|
22
|
+
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
23
23
|
pageKey: {
|
|
24
24
|
type: StringConstructor;
|
|
25
25
|
required: false;
|
|
@@ -34,7 +34,7 @@ declare const Content: vue.DefineComponent<{
|
|
|
34
34
|
*/
|
|
35
35
|
declare const Vuepress: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
36
36
|
[key: string]: any;
|
|
37
|
-
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin,
|
|
37
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Ref wrapper of `PageData`
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/client",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.52",
|
|
4
4
|
"description": "Client package of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"types.d.ts"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@vue/devtools-api": "^6.
|
|
37
|
-
"@vuepress/shared": "2.0.0-beta.
|
|
38
|
-
"vue": "^3.2.
|
|
39
|
-
"vue-router": "^4.1.
|
|
36
|
+
"@vue/devtools-api": "^6.4.5",
|
|
37
|
+
"@vuepress/shared": "2.0.0-beta.52",
|
|
38
|
+
"vue": "^3.2.41",
|
|
39
|
+
"vue-router": "^4.1.5"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
package/templates/build.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
6
|
<meta name="generator" content="VuePress {{ version }}">
|
|
7
7
|
<!--vuepress-ssr-head-->
|
|
8
|
-
<!--vuepress-ssr-resources-->
|
|
9
8
|
<!--vuepress-ssr-styles-->
|
|
9
|
+
<!--vuepress-ssr-resources-->
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="app"><!--vuepress-ssr-app--></div>
|