@vuepress/client 2.0.0-beta.4 → 2.0.0-beta.40

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.
Files changed (73) hide show
  1. package/dist/app.d.ts +7 -0
  2. package/dist/app.js +259 -0
  3. package/dist/chunk-RTLFYRTT.js +250 -0
  4. package/dist/createVueAppFunction-c8e67ca1.d.ts +9 -0
  5. package/dist/index.d.ts +220 -0
  6. package/dist/index.js +70 -0
  7. package/package.json +53 -16
  8. package/templates/{index.ssr.html → build.html} +3 -0
  9. package/templates/{index.dev.html → dev.html} +2 -0
  10. package/types.d.ts +6 -0
  11. package/CHANGELOG.md +0 -171
  12. package/lib/app.d.ts +0 -18
  13. package/lib/app.js +0 -133
  14. package/lib/client.d.ts +0 -1
  15. package/lib/client.js +0 -14
  16. package/lib/components/Content.d.ts +0 -7
  17. package/lib/components/Content.js +0 -34
  18. package/lib/components/OutboundLink.css +0 -7
  19. package/lib/components/OutboundLink.d.ts +0 -3
  20. package/lib/components/OutboundLink.js +0 -24
  21. package/lib/components/Vuepress.d.ts +0 -5
  22. package/lib/components/Vuepress.js +0 -33
  23. package/lib/components/index.d.ts +0 -3
  24. package/lib/components/index.js +0 -3
  25. package/lib/constants.d.ts +0 -4
  26. package/lib/index.d.ts +0 -7
  27. package/lib/index.js +0 -5
  28. package/lib/injections/index.d.ts +0 -10
  29. package/lib/injections/index.js +0 -10
  30. package/lib/injections/pageData.d.ts +0 -7
  31. package/lib/injections/pageData.js +0 -31
  32. package/lib/injections/pageFrontmatter.d.ts +0 -7
  33. package/lib/injections/pageFrontmatter.js +0 -10
  34. package/lib/injections/pageHead.d.ts +0 -15
  35. package/lib/injections/pageHead.js +0 -33
  36. package/lib/injections/pageHeadTitle.d.ts +0 -11
  37. package/lib/injections/pageHeadTitle.js +0 -13
  38. package/lib/injections/pageLang.d.ts +0 -13
  39. package/lib/injections/pageLang.js +0 -16
  40. package/lib/injections/pagesData.d.ts +0 -6
  41. package/lib/injections/pagesData.js +0 -16
  42. package/lib/injections/routeLocale.d.ts +0 -10
  43. package/lib/injections/routeLocale.js +0 -14
  44. package/lib/injections/siteData.d.ts +0 -6
  45. package/lib/injections/siteData.js +0 -14
  46. package/lib/injections/siteLocaleData.d.ts +0 -12
  47. package/lib/injections/siteLocaleData.js +0 -17
  48. package/lib/injections/updateHead.d.ts +0 -15
  49. package/lib/injections/updateHead.js +0 -100
  50. package/lib/server.d.ts +0 -8
  51. package/lib/server.js +0 -10
  52. package/lib/types/clientAppEnhance.d.ts +0 -8
  53. package/lib/types/clientAppEnhance.js +0 -1
  54. package/lib/types/clientAppSetup.d.ts +0 -1
  55. package/lib/types/clientAppSetup.js +0 -1
  56. package/lib/types/index.d.ts +0 -7
  57. package/lib/types/index.js +0 -2
  58. package/lib/types/internal/clientAppEnhances.d.ts +0 -5
  59. package/lib/types/internal/clientAppRootComponents.d.ts +0 -5
  60. package/lib/types/internal/clientAppSetups.d.ts +0 -5
  61. package/lib/types/internal/layoutComponents.d.ts +0 -5
  62. package/lib/types/internal/pagesComponent.d.ts +0 -5
  63. package/lib/types/internal/pagesData.d.ts +0 -5
  64. package/lib/types/internal/pagesRoutes.d.ts +0 -5
  65. package/lib/types/internal/siteData.d.ts +0 -5
  66. package/lib/utils/defineClientAppEnhance.d.ts +0 -2
  67. package/lib/utils/defineClientAppEnhance.js +0 -1
  68. package/lib/utils/defineClientAppSetup.d.ts +0 -2
  69. package/lib/utils/defineClientAppSetup.js +0 -1
  70. package/lib/utils/index.d.ts +0 -3
  71. package/lib/utils/index.js +0 -3
  72. package/lib/utils/withBase.d.ts +0 -4
  73. package/lib/utils/withBase.js +0 -11
@@ -0,0 +1,220 @@
1
+ import { PageData, PageFrontmatter, HeadConfig, SiteData } from '@vuepress/shared';
2
+ export { PageData, PageFrontmatter, PageHeader, SiteData } from '@vuepress/shared';
3
+ import { Router } from 'vue-router';
4
+ export { RouterLink, useRoute, useRouter } from 'vue-router';
5
+ import * as vue from 'vue';
6
+ import { Ref, ComputedRef, InjectionKey, App, FunctionalComponent } from 'vue';
7
+ export { C as CreateVueAppFunction } from './createVueAppFunction-c8e67ca1.js';
8
+
9
+ /**
10
+ * Ref wrapper of `PageData`
11
+ */
12
+ declare type PageDataRef<T extends Record<any, any> = Record<never, never>> = Ref<PageData<T>>;
13
+ /**
14
+ * Empty page data to be used as the fallback value
15
+ */
16
+ declare const pageDataEmpty: PageData<Record<never, never>, Record<string, unknown>>;
17
+ /**
18
+ * Global page data ref
19
+ */
20
+ declare const pageData: PageDataRef;
21
+ /**
22
+ * Returns the ref of the data of current page
23
+ */
24
+ declare const usePageData: <T extends Record<any, any> = Record<never, never>>() => PageDataRef<T>;
25
+
26
+ /**
27
+ * Ref wrapper of `PageFrontmatter`
28
+ */
29
+ declare type PageFrontmatterRef<T extends Record<any, any> = Record<string, unknown>> = ComputedRef<PageFrontmatter<T>>;
30
+ /**
31
+ * Injection key for page frontmatter
32
+ */
33
+ declare const pageFrontmatterSymbol: InjectionKey<PageFrontmatterRef>;
34
+ /**
35
+ * Returns the ref of the frontmatter of current page
36
+ */
37
+ declare const usePageFrontmatter: <T extends Record<any, any> = Record<string, unknown>>() => PageFrontmatterRef<T>;
38
+
39
+ /**
40
+ * Page head config, which would be used for generate html tags in `<head>`
41
+ */
42
+ declare type PageHead = HeadConfig[];
43
+ /**
44
+ * Ref wrapper of `PageHead`
45
+ */
46
+ declare type PageHeadRef = ComputedRef<PageHead>;
47
+ /**
48
+ * Injection key for page head
49
+ */
50
+ declare const pageHeadSymbol: InjectionKey<PageHeadRef>;
51
+ /**
52
+ * Returns the ref of the head config of current page
53
+ */
54
+ declare const usePageHead: () => PageHeadRef;
55
+
56
+ /**
57
+ * Page head title, which would be used as the content of `head > title` tag
58
+ */
59
+ declare type PageHeadTitle = string;
60
+ /**
61
+ * Ref wrapper of `PageHeadTitle`
62
+ */
63
+ declare type PageHeadTitleRef = ComputedRef<PageHeadTitle>;
64
+ /**
65
+ * Injection key for page head title
66
+ */
67
+ declare const pageHeadTitleSymbol: InjectionKey<PageHeadTitleRef>;
68
+ /**
69
+ * Returns the ref of the head title of current page
70
+ */
71
+ declare const usePageHeadTitle: () => PageHeadTitleRef;
72
+
73
+ /**
74
+ * Page language
75
+ */
76
+ declare type PageLang = string;
77
+ /**
78
+ * Ref wrapper of `PageLang`
79
+ */
80
+ declare type PageLangRef = ComputedRef<PageLang>;
81
+ /**
82
+ * Injection key for page language
83
+ */
84
+ declare const pageLangSymbol: InjectionKey<PageLangRef>;
85
+ /**
86
+ * Returns the ref of the language of current page
87
+ */
88
+ declare const usePageLang: () => PageLangRef;
89
+
90
+ /**
91
+ * Data resolvers of all pages
92
+ *
93
+ * The key is page key, and the value is an async function that
94
+ * returns the page data
95
+ */
96
+ declare type PagesData = Record<string, (() => Promise<PageData>) | undefined>;
97
+ /**
98
+ * Ref wrapper of `PagesData`
99
+ */
100
+ declare type PagesDataRef = Ref<PagesData>;
101
+ /**
102
+ * Global pages data ref
103
+ */
104
+ declare const pagesData: PagesDataRef;
105
+ /**
106
+ * Returns the ref of data resolvers of all pages
107
+ */
108
+ declare const usePagesData: () => PagesDataRef;
109
+
110
+ /**
111
+ * Route locale path
112
+ */
113
+ declare type RouteLocale = string;
114
+ /**
115
+ * Ref wrapper of `RouteLocale`
116
+ */
117
+ declare type RouteLocaleRef = ComputedRef<RouteLocale>;
118
+ /**
119
+ * Injection key for page route locale path
120
+ */
121
+ declare const routeLocaleSymbol: InjectionKey<RouteLocaleRef>;
122
+ /**
123
+ * Returns the ref of the route locale path of current page
124
+ */
125
+ declare const useRouteLocale: () => RouteLocaleRef;
126
+
127
+ /**
128
+ * Ref wrapper of `SiteData`
129
+ */
130
+ declare type SiteDataRef = Ref<SiteData>;
131
+ /**
132
+ * Global site data ref
133
+ */
134
+ declare const siteData: SiteDataRef;
135
+ /**
136
+ * Returns the ref of the site data
137
+ */
138
+ declare const useSiteData: () => SiteDataRef;
139
+
140
+ /**
141
+ * Site data of current locale
142
+ */
143
+ declare type SiteLocaleData = SiteData;
144
+ /**
145
+ * Ref wrapper of `SiteLocaleData`
146
+ */
147
+ declare type SiteLocaleDataRef = ComputedRef<SiteLocaleData>;
148
+ /**
149
+ * Injection key for site locale data
150
+ */
151
+ declare const siteLocaleDataSymbol: InjectionKey<SiteLocaleDataRef>;
152
+ /**
153
+ * Returns the ref of the site data of current locale
154
+ */
155
+ declare const useSiteLocaleData: () => SiteLocaleDataRef;
156
+
157
+ /**
158
+ * A util function to force update `<head>` of current page
159
+ */
160
+ declare type UpdateHead = () => void;
161
+ /**
162
+ * Injection key for `updateHead` util
163
+ */
164
+ declare const updateHeadSymbol: InjectionKey<UpdateHead>;
165
+ /**
166
+ * Returns the `updateHead` util
167
+ */
168
+ declare const useUpdateHead: () => UpdateHead;
169
+
170
+ declare type ClientAppEnhance = (context: {
171
+ app: App;
172
+ router: Router;
173
+ siteData: SiteDataRef;
174
+ }) => void | Promise<void>;
175
+
176
+ declare type ClientAppSetup = () => void;
177
+
178
+ declare const ClientOnly: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
179
+ [key: string]: any;
180
+ }>[] | null | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
181
+
182
+ /**
183
+ * Markdown rendered content
184
+ */
185
+ declare const Content: FunctionalComponent<{
186
+ pageKey?: string;
187
+ }>;
188
+
189
+ /**
190
+ * Global Layout
191
+ */
192
+ declare const Vuepress: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
193
+ [key: string]: any;
194
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
195
+
196
+ declare const defineClientAppEnhance: (clientAppEnhance: ClientAppEnhance) => ClientAppEnhance;
197
+
198
+ declare const defineClientAppSetup: (clientAppSetup: ClientAppSetup) => ClientAppSetup;
199
+
200
+ /**
201
+ * Resolver methods to get global computed
202
+ *
203
+ * Users can override corresponding method for advanced customization
204
+ */
205
+ declare const resolvers: {
206
+ resolvePageData: (pageKey: string) => Promise<PageData>;
207
+ resolvePageFrontmatter: (pageData: PageData) => PageFrontmatter;
208
+ resolvePageHead: (headTitle: PageHeadTitle, frontmatter: PageFrontmatter, siteLocale: SiteLocaleData) => PageHead;
209
+ resolvePageHeadTitle: (page: PageData, siteLocale: SiteLocaleData) => PageHeadTitle;
210
+ resolvePageLang: (pageData: PageData) => PageLang;
211
+ resolveRouteLocale: (locales: SiteData['locales'], routePath: string) => RouteLocale;
212
+ resolveSiteLocaleData: (site: SiteData, routeLocale: RouteLocale) => SiteLocaleData;
213
+ };
214
+
215
+ /**
216
+ * Prefix url with site base
217
+ */
218
+ declare const withBase: (url: string) => string;
219
+
220
+ export { ClientAppEnhance, ClientAppSetup, ClientOnly, Content, PageDataRef, PageFrontmatterRef, PageHead, PageHeadRef, PageHeadTitle, PageHeadTitleRef, PageLang, PageLangRef, PagesData, PagesDataRef, RouteLocale, RouteLocaleRef, SiteDataRef, SiteLocaleData, SiteLocaleDataRef, UpdateHead, Vuepress, defineClientAppEnhance, defineClientAppSetup, pageData, pageDataEmpty, pageFrontmatterSymbol, pageHeadSymbol, pageHeadTitleSymbol, pageLangSymbol, pagesData, resolvers, routeLocaleSymbol, siteData, siteLocaleDataSymbol, updateHeadSymbol, usePageData, usePageFrontmatter, usePageHead, usePageHeadTitle, usePageLang, usePagesData, useRouteLocale, useSiteData, useSiteLocaleData, useUpdateHead, withBase };
package/dist/index.js ADDED
@@ -0,0 +1,70 @@
1
+ import {
2
+ ClientOnly,
3
+ Content,
4
+ Vuepress,
5
+ pageData,
6
+ pageDataEmpty,
7
+ pageFrontmatterSymbol,
8
+ pageHeadSymbol,
9
+ pageHeadTitleSymbol,
10
+ pageLangSymbol,
11
+ pagesData,
12
+ resolvers,
13
+ routeLocaleSymbol,
14
+ siteData,
15
+ siteLocaleDataSymbol,
16
+ updateHeadSymbol,
17
+ usePageData,
18
+ usePageFrontmatter,
19
+ usePageHead,
20
+ usePageHeadTitle,
21
+ usePageLang,
22
+ usePagesData,
23
+ useRouteLocale,
24
+ useSiteData,
25
+ useSiteLocaleData,
26
+ useUpdateHead,
27
+ withBase
28
+ } from "./chunk-RTLFYRTT.js";
29
+
30
+ // src/index.ts
31
+ import { RouterLink, useRoute, useRouter } from "vue-router";
32
+
33
+ // src/helpers/defineClientAppEnhance.ts
34
+ var defineClientAppEnhance = (clientAppEnhance) => clientAppEnhance;
35
+
36
+ // src/helpers/defineClientAppSetup.ts
37
+ var defineClientAppSetup = (clientAppSetup) => clientAppSetup;
38
+ export {
39
+ ClientOnly,
40
+ Content,
41
+ RouterLink,
42
+ Vuepress,
43
+ defineClientAppEnhance,
44
+ defineClientAppSetup,
45
+ pageData,
46
+ pageDataEmpty,
47
+ pageFrontmatterSymbol,
48
+ pageHeadSymbol,
49
+ pageHeadTitleSymbol,
50
+ pageLangSymbol,
51
+ pagesData,
52
+ resolvers,
53
+ routeLocaleSymbol,
54
+ siteData,
55
+ siteLocaleDataSymbol,
56
+ updateHeadSymbol,
57
+ usePageData,
58
+ usePageFrontmatter,
59
+ usePageHead,
60
+ usePageHeadTitle,
61
+ usePageLang,
62
+ usePagesData,
63
+ useRoute,
64
+ useRouteLocale,
65
+ useRouter,
66
+ useSiteData,
67
+ useSiteLocaleData,
68
+ useUpdateHead,
69
+ withBase
70
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/client",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.40",
4
4
  "description": "Client package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -15,25 +15,62 @@
15
15
  "url": "git+https://github.com/vuepress/vuepress-next.git"
16
16
  },
17
17
  "license": "MIT",
18
- "author": "Evan You",
19
- "main": "lib/index.js",
20
- "types": "lib/index.d.ts",
18
+ "author": "meteorlxy",
19
+ "type": "module",
20
+ "exports": {
21
+ ".": "./dist/index.js",
22
+ "./app": "./dist/app.js",
23
+ "./helpers": "./helpers/index.js",
24
+ "./package.json": "./package.json",
25
+ "./templates/*": "./templates/*",
26
+ "./types": "./types.d.ts"
27
+ },
28
+ "main": "./dist/index.js",
29
+ "module": "./dist/index.js",
30
+ "types": "./dist/index.d.ts",
21
31
  "files": [
22
- "lib",
23
- "templates"
32
+ "dist",
33
+ "templates",
34
+ "types.d.ts"
24
35
  ],
25
- "scripts": {
26
- "build": "tsc -b tsconfig.build.json",
27
- "clean": "rimraf lib *.tsbuildinfo",
28
- "copy": "cpx \"src/**/*.{d.ts,css}\" lib"
29
- },
30
36
  "dependencies": {
31
- "@vuepress/shared": "2.0.0-beta.4",
32
- "vue": "^3.0.7",
33
- "vue-router": "^4.0.4"
37
+ "@vue/devtools-api": "^6.1.4",
38
+ "@vuepress/shared": "2.0.0-beta.40",
39
+ "vue": "^3.2.33",
40
+ "vue-router": "^4.0.14"
34
41
  },
35
42
  "publishConfig": {
36
43
  "access": "public"
37
44
  },
38
- "gitHead": "d42716e1b5b682ffb5d7cf124d0a24344493c467"
39
- }
45
+ "tsup": {
46
+ "clean": true,
47
+ "dts": [
48
+ "src/index.ts"
49
+ ],
50
+ "entry": [
51
+ "src/app.ts",
52
+ "src/index.ts"
53
+ ],
54
+ "external": [
55
+ "@internal/clientAppEnhances",
56
+ "@internal/clientAppRootComponents",
57
+ "@internal/clientAppSetups",
58
+ "@internal/layoutComponents",
59
+ "@internal/pagesComponents",
60
+ "@internal/pagesData",
61
+ "@internal/pagesRoutes",
62
+ "@internal/siteData"
63
+ ],
64
+ "format": [
65
+ "esm"
66
+ ],
67
+ "outDir": "dist",
68
+ "sourcemap": false,
69
+ "target": "es2020",
70
+ "tsconfig": "tsconfig.dts.json"
71
+ },
72
+ "scripts": {
73
+ "build": "tsup",
74
+ "clean": "rimraf dist"
75
+ }
76
+ }
@@ -1,6 +1,9 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="{{ lang }}">
3
3
  <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <meta name="generator" content="VuePress {{ version }}">
4
7
  <!--vuepress-ssr-head-->
5
8
  <!--vuepress-ssr-resources-->
6
9
  <!--vuepress-ssr-styles-->
@@ -1,6 +1,8 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
  <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
4
6
  </head>
5
7
  <body>
6
8
  <div id="app"></div>
package/types.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ declare const __VUEPRESS_VERSION__: string
2
+ declare const __VUEPRESS_DEV__: boolean
3
+ declare const __VUEPRESS_SSR__: boolean
4
+ declare const __VUE_HMR_RUNTIME__: Record<string, any>
5
+ declare const __VUE_OPTIONS_API__: boolean
6
+ declare const __VUE_PROD_DEVTOOLS__: boolean
package/CHANGELOG.md DELETED
@@ -1,171 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [2.0.0-beta.4](https://github.com/vuepress/vuepress-next/compare/v2.0.0-beta.3...v2.0.0-beta.4) (2021-03-20)
7
-
8
- **Note:** Version bump only for package @vuepress/client
9
-
10
-
11
-
12
-
13
-
14
- # [2.0.0-beta.1](https://github.com/vuepress/vuepress-next/compare/v2.0.0-beta.0...v2.0.0-beta.1) (2021-03-13)
15
-
16
- **Note:** Version bump only for package @vuepress/client
17
-
18
-
19
-
20
-
21
-
22
- # [2.0.0-beta.0](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.26...v2.0.0-beta.0) (2021-03-13)
23
-
24
-
25
- ### Features
26
-
27
- * implement vite hmr ([525c18d](https://github.com/vuepress/vuepress-next/commit/525c18d5a64fbdbdeb5ce1348ec1e1ead3dbd8f9))
28
- * **client:** add defineClientAppEnhance and defineClientAppSetup utils ([1520517](https://github.com/vuepress/vuepress-next/commit/15205172c3b56fc8a879bba040f4ecc815d2c924))
29
-
30
-
31
-
32
-
33
-
34
- # [2.0.0-alpha.25](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.24...v2.0.0-alpha.25) (2021-02-20)
35
-
36
-
37
- ### Code Refactoring
38
-
39
- * **core:** remove theme data from site data ([187aef3](https://github.com/vuepress/vuepress-next/commit/187aef36607efc62d7b2d5c773553f89685cf64c))
40
-
41
-
42
- ### BREAKING CHANGES
43
-
44
- * **core:** `themeConfig` is not available in site data any more
45
-
46
-
47
-
48
-
49
-
50
- # [2.0.0-alpha.24](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.23...v2.0.0-alpha.24) (2021-02-13)
51
-
52
- **Note:** Version bump only for package @vuepress/client
53
-
54
-
55
-
56
-
57
-
58
- # [2.0.0-alpha.22](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.21...v2.0.0-alpha.22) (2021-02-10)
59
-
60
-
61
- ### Bug Fixes
62
-
63
- * **client:** only watch route path to update head ([3174f5a](https://github.com/vuepress/vuepress-next/commit/3174f5a676d95943df256b2be31227eb844d0144))
64
-
65
-
66
-
67
-
68
-
69
- # [2.0.0-alpha.20](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2021-02-04)
70
-
71
-
72
- ### Features
73
-
74
- * **core:** make language available in page data ([03bb09f](https://github.com/vuepress/vuepress-next/commit/03bb09fd51aeaff56d26820a1401b87ea8bdeb38))
75
-
76
-
77
-
78
-
79
-
80
- # [2.0.0-alpha.19](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.18...v2.0.0-alpha.19) (2021-01-24)
81
-
82
- **Note:** Version bump only for package @vuepress/client
83
-
84
-
85
-
86
-
87
-
88
- # [2.0.0-alpha.18](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.17...v2.0.0-alpha.18) (2021-01-17)
89
-
90
-
91
- ### Bug Fixes
92
-
93
- * **client:** load existing head tags on mounted ([15722c5](https://github.com/vuepress/vuepress-next/commit/15722c5175e44a8d6363bfe5f138f2c2c8edeec3))
94
-
95
-
96
- ### Features
97
-
98
- * **client:** make usePageFrontmatter generic ([2c5e5c1](https://github.com/vuepress/vuepress-next/commit/2c5e5c1400469a3cb4da2856104514a9413bff8a))
99
-
100
-
101
-
102
-
103
-
104
- # [2.0.0-alpha.16](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2021-01-11)
105
-
106
- **Note:** Version bump only for package @vuepress/client
107
-
108
-
109
-
110
-
111
-
112
- # [2.0.0-alpha.15](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.14...v2.0.0-alpha.15) (2021-01-04)
113
-
114
- **Note:** Version bump only for package @vuepress/client
115
-
116
-
117
-
118
-
119
-
120
- # [2.0.0-alpha.13](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2020-12-23)
121
-
122
- **Note:** Version bump only for package @vuepress/client
123
-
124
-
125
-
126
-
127
-
128
- # [2.0.0-alpha.7](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2020-12-09)
129
-
130
- **Note:** Version bump only for package @vuepress/client
131
-
132
-
133
-
134
-
135
-
136
- # [2.0.0-alpha.6](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2020-12-09)
137
-
138
-
139
- ### Features
140
-
141
- * **client:** remove built-in debug component ([a5962bb](https://github.com/vuepress/vuepress-next/commit/a5962bb82483f56800b33b4e35c50dcb49fd48b1))
142
-
143
-
144
-
145
-
146
-
147
- # 2.0.0-alpha.1 (2020-12-01)
148
-
149
-
150
- ### Bug Fixes
151
-
152
- * **client:** do not prepend base to http url ([9e4e623](https://github.com/vuepress/vuepress-next/commit/9e4e6233ce988bf3b6ebbbb1bc60f83a26f6709c))
153
- * **client:** wrap ssr-app with a parent div ([c65b6c4](https://github.com/vuepress/vuepress-next/commit/c65b6c47f084466dde9daf17d1c1d00b88f6682d))
154
-
155
-
156
- ### Features
157
-
158
- * **client:** add built-in styles for Debug component ([1b3b028](https://github.com/vuepress/vuepress-next/commit/1b3b028e0cd078eb6f074c36696255df1cf49267))
159
- * **client:** add ClientOnly component ([e2cad36](https://github.com/vuepress/vuepress-next/commit/e2cad36c5f859240e5fac62c38fbaa14b39defab))
160
- * **client:** add global computed and updateHead ([df83b88](https://github.com/vuepress/vuepress-next/commit/df83b887a69db9290a22d0731056f4ac2b6f0014))
161
- * **client:** add global data utils ([46b9fc5](https://github.com/vuepress/vuepress-next/commit/46b9fc579f51c1f037f4850f8699074805799884))
162
- * **client:** add OutboundLink component ([4107add](https://github.com/vuepress/vuepress-next/commit/4107add516e7acd0cbdc4a526bf4772c54fb6108))
163
- * **client:** add siteLocale in debug component ([e1d663b](https://github.com/vuepress/vuepress-next/commit/e1d663b4ece27012c72383f5eecb90c5fb2195ef))
164
- * **client:** add themeData injections ([04cafe2](https://github.com/vuepress/vuepress-next/commit/04cafe23ec835d9efc9a2b1ab8be8b7d8f0a22b4))
165
- * **client:** add withBase util ([f234c5d](https://github.com/vuepress/vuepress-next/commit/f234c5d74f148b55b265d13dc2c868d8531d192a))
166
- * **client:** augment route meta type ([6f4e1f5](https://github.com/vuepress/vuepress-next/commit/6f4e1f5995351a0dd6ebf257e1889d26e77d26e4))
167
- * **client:** make siteData injections generic ([86b9416](https://github.com/vuepress/vuepress-next/commit/86b941646b7554b404a621a3616a7a81958c12c3))
168
- * **client:** provide site locale data ([00455bd](https://github.com/vuepress/vuepress-next/commit/00455bdf21736254c8a3a488cdf8245e80742398))
169
- * **client:** set scrollBehavior for vue-router ([f7a12ce](https://github.com/vuepress/vuepress-next/commit/f7a12ceaa1e20ba2e87fa34c692a754fcc3f34f4))
170
- * **client:** support clientAppRootComponentFiles ([188c1a0](https://github.com/vuepress/vuepress-next/commit/188c1a04fed8ed6614b45a6a0c1cb3d07a4ca112))
171
- * **client:** take 404 as the fallback layout ([bb34903](https://github.com/vuepress/vuepress-next/commit/bb349038da090d0e5fd9069ff5cfa3372c95dc0b))
package/lib/app.d.ts DELETED
@@ -1,18 +0,0 @@
1
- import type { CreateAppFunction, App } from 'vue';
2
- import type { Router, RouterHistory } from 'vue-router';
3
- export declare type AppCreator = CreateAppFunction<Element>;
4
- export declare type HistoryCreator = (base?: string) => RouterHistory;
5
- export declare type CreateVueAppResult = {
6
- app: App;
7
- router: Router;
8
- };
9
- /**
10
- * Create a vue app
11
- *
12
- * Accepting different app creator and history creator, so it
13
- * can be reused for both client side and server side
14
- */
15
- export declare const createVueApp: ({ appCreator, historyCreator, }: {
16
- appCreator: AppCreator;
17
- historyCreator: HistoryCreator;
18
- }) => Promise<CreateVueAppResult>;