@hyperbook/types 0.22.1 → 0.23.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 +8 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -100,6 +100,13 @@ export type HyperbookJson = {
100
100
  name?: string;
101
101
  url?: string;
102
102
  };
103
+ /**
104
+ * Controls how the Hyperbook version is displayed.
105
+ * - "text": Shows version below the "Powered by Hyperbook" label.
106
+ * - "tooltip": Shows version on hover of the "Powered by Hyperbook" label.
107
+ * - "console": Outputs version as ASCII art in the browser console (default).
108
+ */
109
+ version?: "text" | "tooltip" | "console";
103
110
  font?: string;
104
111
  fonts?: {
105
112
  heading?: string;
@@ -187,6 +194,7 @@ export interface HyperbookContext {
187
194
  config: HyperbookJson;
188
195
  library?: HyperlibraryJson;
189
196
  project?: Hyperproject;
197
+ version?: string;
190
198
  makeUrl(path: string | string[], base: "public" | "book" | "archive" | "glossary" | "assets", page?: HyperbookPage, options?: {
191
199
  versioned?: boolean;
192
200
  }): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbook/types",
3
- "version": "0.22.1",
3
+ "version": "0.23.0",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",