@x-wave/blog 1.0.28 → 1.0.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-wave/blog",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
package/types/index.ts CHANGED
@@ -1,21 +1,35 @@
1
1
  export interface NavigationItem {
2
- title: string
3
2
  slug: string
4
3
  hasAdvanced?: boolean
5
4
  showTableOfContents?: boolean
6
5
  }
7
6
 
7
+ export interface NavigationItemWithTitle extends NavigationItem {
8
+ title: string
9
+ }
10
+
8
11
  export interface NavigationSection {
9
12
  title: string
10
13
  items: NavigationItem[]
11
14
  defaultOpen?: boolean
12
15
  }
13
16
 
17
+ export interface NavigationSectionWithTitles {
18
+ title: string
19
+ items: NavigationItemWithTitle[]
20
+ defaultOpen?: boolean
21
+ }
22
+
14
23
  export type NavigationEntry = NavigationSection | NavigationItem
15
24
 
25
+ export type NavigationEntryWithTitles =
26
+ | NavigationSectionWithTitles
27
+ | NavigationItemWithTitle
28
+
16
29
  export interface LoadedContent {
17
30
  content: string
18
31
  frontmatter: {
32
+ title?: string
19
33
  hasAdvanced?: boolean
20
34
  tags?: string[]
21
35
  date?: string