@protoyard/blueprint 1.1.3 → 1.2.1
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,4 +1,4 @@
|
|
|
1
|
-
import type { PrototypeDefinition } from '@protoyard/core';
|
|
1
|
+
import type { PrototypeDefinition, Theme } from '@protoyard/core';
|
|
2
2
|
import type { DocDocument, PageDocument } from '@protoyard/pages';
|
|
3
3
|
/**
|
|
4
4
|
* Options for building a page/doc runtime from a document body alone
|
|
@@ -17,6 +17,13 @@ export interface PageDocRuntimeOptions {
|
|
|
17
17
|
category?: string;
|
|
18
18
|
tags?: string[];
|
|
19
19
|
icon?: string;
|
|
20
|
+
/**
|
|
21
|
+
* A theme to register and open in, such as the one `protoyard ds use` writes
|
|
22
|
+
* from a design system (`designSystemTheme`). Default: the default theme.
|
|
23
|
+
*/
|
|
24
|
+
brandTheme?: Theme | null;
|
|
25
|
+
/** The theme the prototype opens in; defaults to `brandTheme`'s id when one is given. */
|
|
26
|
+
defaultThemeId?: string | null;
|
|
20
27
|
}
|
|
21
28
|
/** Kind default scenario id (shared content-kind runtime). */
|
|
22
29
|
export declare const PAGES_DEFAULT_SCENARIO = "default";
|
|
@@ -25,8 +25,8 @@ function toKindOptions(options) {
|
|
|
25
25
|
namespace: options.namespace,
|
|
26
26
|
slug: options.slug,
|
|
27
27
|
version: options.version,
|
|
28
|
-
defaultThemeId: null,
|
|
29
|
-
brandTheme: null,
|
|
28
|
+
defaultThemeId: options.defaultThemeId ?? options.brandTheme?.id ?? null,
|
|
29
|
+
brandTheme: options.brandTheme ?? null,
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
function pageBlueprint(page, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protoyard/blueprint",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Data-only blueprints for Protoyard: schema validation and the derivations (stores, integrity, migrations, inputs, policy, generators, entity services) that turn a blueprint into a working prototype.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
"./schema.json": "./dist/schema/blueprint.schema.json"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@protoyard/blocks": "1.1
|
|
73
|
-
"@protoyard/core": "1.1
|
|
74
|
-
"@protoyard/decks": "1.1
|
|
75
|
-
"@protoyard/pages": "1.1
|
|
76
|
-
"@protoyard/scenarios": "1.1
|
|
77
|
-
"@protoyard/themes": "1.1
|
|
72
|
+
"@protoyard/blocks": "1.2.1",
|
|
73
|
+
"@protoyard/core": "1.2.1",
|
|
74
|
+
"@protoyard/decks": "1.2.1",
|
|
75
|
+
"@protoyard/pages": "1.2.1",
|
|
76
|
+
"@protoyard/scenarios": "1.2.1",
|
|
77
|
+
"@protoyard/themes": "1.2.1",
|
|
78
78
|
"zod": "^4.6.7"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@protoyard/database": "1.1
|
|
82
|
-
"@texuli/forms": "0.
|
|
81
|
+
"@protoyard/database": "1.2.1",
|
|
82
|
+
"@texuli/forms": "0.13.0"
|
|
83
83
|
},
|
|
84
84
|
"protoyard": {
|
|
85
85
|
"build": {
|