@taprootio/site-authoring 0.1.0 → 0.1.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.
- package/README.md +12 -6
- package/package.json +2 -2
- package/src/constants.js +1 -1
- package/src/content/components.js +5 -0
- package/src/presentation-reference.js +1 -0
- package/src/reference-help.js +1 -1
package/README.md
CHANGED
|
@@ -223,12 +223,18 @@ Actions output.
|
|
|
223
223
|
|
|
224
224
|
## Public release
|
|
225
225
|
|
|
226
|
-
Private Taproot is the source authority.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
allowlist-exports only
|
|
231
|
-
|
|
226
|
+
Private Taproot is the source authority. Merging a version bump to private
|
|
227
|
+
`main` releases this package: the release workflow verifies that the commit
|
|
228
|
+
belongs to `main`, that `site-authoring-v<version>` names the version
|
|
229
|
+
`package.json` declares, and that `@taprootio/espalier` is pinned to the exact
|
|
230
|
+
version the release manifest records, then allowlist-exports only
|
|
231
|
+
`packages/site-authoring/` to public
|
|
232
|
+
[`taprootio/trunk`](https://github.com/taprootio/trunk), whose commit and
|
|
233
|
+
`site-authoring-v<version>` tag are the release record and name the private
|
|
234
|
+
source commit. A pull request that changes this package's public files
|
|
235
|
+
without raising the version fails CI, so the bump is never an afterthought;
|
|
236
|
+
pushing a private `site-authoring-v<version>` tag by hand remains the manual
|
|
237
|
+
path and runs the same verification. Trunk's separate
|
|
232
238
|
`publish-site-authoring.yml` workflow tests and publishes those exact public
|
|
233
239
|
tag bytes with npm trusted-publishing provenance, under its own concurrency
|
|
234
240
|
group, GitHub Environment, tag prefix, and npm identity.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taprootio/site-authoring",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Taproot site authoring CLI: sign in once in the browser, then pull, validate, push, preview, approve, and deploy a site from the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "ISC",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@taprootio/espalier": "4.
|
|
30
|
+
"@taprootio/espalier": "4.6.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"test": "node --test",
|
package/src/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const CLI_NAME = "@taprootio/site-authoring";
|
|
2
|
-
export const CLI_VERSION = "0.1.
|
|
2
|
+
export const CLI_VERSION = "0.1.1";
|
|
3
3
|
export const CLI_BINARY_NAME = "taproot-site";
|
|
4
4
|
export const RESULT_SCHEMA_VERSION = 1;
|
|
5
5
|
export const CONFIG_FILE_NAME = "taproot-site.json";
|
|
@@ -227,6 +227,9 @@ const IMAGE_BANNER = Object.freeze({
|
|
|
227
227
|
}),
|
|
228
228
|
ratio: enumOf("4/1", "3/1", "2/1"),
|
|
229
229
|
compactRatio: enumOf("", "2/1", "3/2", "1/1"),
|
|
230
|
+
// `ratio` keeps the wide/compact shape, capped at the viewport space below
|
|
231
|
+
// the site header; `viewport` fills exactly that space (TR00413).
|
|
232
|
+
heightMode: enumOf("ratio", "viewport"),
|
|
230
233
|
contentPosition: enumOf("bottom-start", "bottom", "bottom-end", "center", "top-start", "top", "top-end"),
|
|
231
234
|
scrim: enumOf("auto", "none", "flat", "top", "bottom", "left", "right", "radial"),
|
|
232
235
|
scrimStrength: enumOf("soft", "medium", "strong"),
|
|
@@ -457,6 +460,7 @@ const COMPONENT_DEFINITIONS = Object.freeze({
|
|
|
457
460
|
focus: { x: 0.5, y: 0.5 },
|
|
458
461
|
ratio: "3/1",
|
|
459
462
|
compactRatio: "3/2",
|
|
463
|
+
heightMode: "ratio",
|
|
460
464
|
contentPosition: "center",
|
|
461
465
|
scrim: "auto",
|
|
462
466
|
scrimStrength: "medium",
|
|
@@ -473,6 +477,7 @@ const COMPONENT_DEFINITIONS = Object.freeze({
|
|
|
473
477
|
altText: "",
|
|
474
478
|
overlayText: "Train together",
|
|
475
479
|
focus: { x: 0.5, y: 0.35 },
|
|
480
|
+
heightMode: "ratio",
|
|
476
481
|
contentPosition: "bottom-start",
|
|
477
482
|
scrim: "bottom",
|
|
478
483
|
scrimStrength: "medium",
|
|
@@ -271,6 +271,7 @@ export function getThemeReference() {
|
|
|
271
271
|
"Define brand anchors first, then assign canvas, ink, accent, action, and structure roles in both schemes.",
|
|
272
272
|
"Add named contexts for whole zones, including inverted zones, and rebind lightness when the zone changes brightness.",
|
|
273
273
|
"Tune typography, type/space ratios, radii, and viewport interpolation as one layout system.",
|
|
274
|
+
"Typography is per scheme on purpose: light and dark set their own moods, so a heading, body, or brand face that differs between them is a design choice, and theme push never warns about it.",
|
|
274
275
|
"Retune danger/success/warning/info through intents without changing their meanings; design data palettes separately.",
|
|
275
276
|
"Use semanticMappings only for meanings roles and contexts cannot express; scattered pins shadow the coherent model.",
|
|
276
277
|
"Run theme push, inspect warnings, then verify text, actions, focus states, and both schemes in authoring previews.",
|
package/src/reference-help.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
|
|
28
28
|
export { getAppearanceReference, getFooterReference, getThemeReference };
|
|
29
29
|
|
|
30
|
-
export const REFERENCE_VERSION =
|
|
30
|
+
export const REFERENCE_VERSION = 15;
|
|
31
31
|
export const PAGE_TYPES = Object.freeze(["free-form"]);
|
|
32
32
|
export const REFERENCE_TOPICS = Object.freeze([
|
|
33
33
|
Object.freeze({ name: "pages", usage: `${CLI_BINARY_NAME} help pages`, summary: "List authorable page types." }),
|