@hyperbook/types 0.0.1 → 0.1.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts"],
4
- "sourcesContent": ["export type HyperbookJson = {\n name: string;\n description?: string;\n logo?: string;\n author?: {\n name?: string;\n url?: string;\n };\n font?: string;\n fonts?: {\n heading?: string;\n body?: string;\n code?: string;\n };\n template?: string;\n colors?: {\n /**\n * @format color-hex\n */\n brand?: string;\n /**\n * @format color-hex\n */\n brandDark?: string;\n /**\n * @format color-hex\n */\n brandText?: string;\n inverted?: boolean;\n };\n basePath?: string;\n license?: string;\n language?: \"de\" | \"en\" | \"fr\" | \"es\";\n repo?: string;\n};\n"],
4
+ "sourcesContent": ["type ElementConfig = {\n version?: string;\n};\n\nexport type HyperbookJson = {\n name: string;\n description?: string;\n logo?: string;\n author?: {\n name?: string;\n url?: string;\n };\n font?: string;\n fonts?: {\n heading?: string;\n body?: string;\n code?: string;\n };\n template?: string;\n colors?: {\n /**\n * @format color-hex\n */\n brand?: string;\n /**\n * @format color-hex\n */\n brandDark?: string;\n /**\n * @format color-hex\n */\n brandText?: string;\n inverted?: boolean;\n };\n basePath?: string;\n license?: string;\n language?: \"de\" | \"en\" | \"fr\" | \"es\";\n repo?: string;\n elements?: {\n bookmarks?: false | ElementConfig;\n excalidraw?: ElementConfig & {\n autoZoom?: boolean;\n center?: boolean;\n aspectRation?: string;\n edit?: boolean;\n };\n };\n};\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ declare type ElementConfig = {
2
+ version?: string;
3
+ };
1
4
  export declare type HyperbookJson = {
2
5
  name: string;
3
6
  description?: string;
@@ -32,4 +35,14 @@ export declare type HyperbookJson = {
32
35
  license?: string;
33
36
  language?: "de" | "en" | "fr" | "es";
34
37
  repo?: string;
38
+ elements?: {
39
+ bookmarks?: false | ElementConfig;
40
+ excalidraw?: ElementConfig & {
41
+ autoZoom?: boolean;
42
+ center?: boolean;
43
+ aspectRation?: string;
44
+ edit?: boolean;
45
+ };
46
+ };
35
47
  };
48
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbook/types",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",