@hyperbook/types 0.15.2 → 0.17.0

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 (2) hide show
  1. package/dist/index.d.ts +9 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export type Term = {
26
26
  };
27
27
  export type Glossary = Record<string, Term[]>;
28
28
  export type Language = "de" | "en" | "fr" | "es" | "it" | "pt" | "nl";
29
+ export type Layout = "default" | "wide" | "standalone";
29
30
  export type HyperbookPageFrontmatter = {
30
31
  name: string;
31
32
  permaid?: string;
@@ -40,6 +41,7 @@ export type HyperbookPageFrontmatter = {
40
41
  toc?: boolean;
41
42
  next?: string;
42
43
  prev?: string;
44
+ layout?: Layout;
43
45
  };
44
46
  export type HyperbookSectionFrontmatter = HyperbookPageFrontmatter & {
45
47
  virtual?: boolean;
@@ -48,6 +50,13 @@ export type HyperbookSectionFrontmatter = HyperbookPageFrontmatter & {
48
50
  export type HyperbookPage = HyperbookPageFrontmatter & {
49
51
  isEmpty?: boolean;
50
52
  href?: string;
53
+ path?: {
54
+ directory: string;
55
+ relative: string;
56
+ absolute: string;
57
+ href: string | null;
58
+ permalink: string | null;
59
+ };
51
60
  repo?: string;
52
61
  };
53
62
  export type HyperbookSection = HyperbookSectionFrontmatter & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbook/types",
3
- "version": "0.15.2",
3
+ "version": "0.17.0",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",