@vuepress/core 2.0.0-rc.20 → 2.0.0-rc.21

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import { MarkdownLink, MarkdownSfcBlocks, MarkdownOptions, Markdown } from '@vuepress/markdown';
2
- import { PageFrontmatter, PageBase, PageData, SiteData } from '@vuepress/shared';
2
+ import { PageFrontmatter, PageBase, PageData, PageHeader, SiteData } from '@vuepress/shared';
3
3
  export { HeadAttrsConfig, HeadConfig, HeadTag, HeadTagEmpty, HeadTagNonEmpty, LocaleConfig, LocaleData, PageData, PageFrontmatter, PageHeader, SiteData, SiteLocaleConfig } from '@vuepress/shared';
4
4
  import { TemplateRenderer } from '@vuepress/utils';
5
5
 
@@ -52,6 +52,10 @@ type Page<ExtraPageData extends Record<string, unknown> = Record<string, unknown
52
52
  * Dependencies of the page
53
53
  */
54
54
  deps: string[];
55
+ /**
56
+ * Headers of the page
57
+ */
58
+ headers: PageHeader[];
55
59
  /**
56
60
  * Links of the page
57
61
  */
package/dist/index.js CHANGED
@@ -394,8 +394,7 @@ var createPage = async (app, options) => {
394
394
  path: path9,
395
395
  title,
396
396
  lang,
397
- frontmatter,
398
- headers
397
+ frontmatter
399
398
  },
400
399
  // base fields
401
400
  path: path9,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "2.0.0-rc.20",
3
+ "version": "2.0.0-rc.21",
4
4
  "description": "Core package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -28,10 +28,10 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "vue": "^3.5.13",
31
- "@vuepress/utils": "2.0.0-rc.20",
32
- "@vuepress/shared": "2.0.0-rc.20",
33
- "@vuepress/client": "2.0.0-rc.20",
34
- "@vuepress/markdown": "2.0.0-rc.20"
31
+ "@vuepress/client": "2.0.0-rc.21",
32
+ "@vuepress/markdown": "2.0.0-rc.21",
33
+ "@vuepress/utils": "2.0.0-rc.21",
34
+ "@vuepress/shared": "2.0.0-rc.21"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"