@graview/pages 0.1.27 → 0.1.29
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 +8 -0
- package/dist/facts.d.ts.map +1 -1
- package/dist/facts.js +2 -1
- package/dist/facts.js.map +1 -1
- package/dist/form.d.ts.map +1 -1
- package/dist/form.js +36 -8
- package/dist/form.js.map +1 -1
- package/dist/page-context.d.ts +14 -1
- package/dist/page-context.d.ts.map +1 -1
- package/dist/page-context.js.map +1 -1
- package/dist/page-home.d.ts.map +1 -1
- package/dist/page-home.js +4 -5
- package/dist/page-home.js.map +1 -1
- package/dist/page-list.d.ts.map +1 -1
- package/dist/page-list.js +127 -48
- package/dist/page-list.js.map +1 -1
- package/dist/page-map.js +1 -1
- package/dist/page-map.js.map +1 -1
- package/dist/page-places.d.ts.map +1 -1
- package/dist/page-places.js +49 -28
- package/dist/page-places.js.map +1 -1
- package/dist/page-problems.d.ts.map +1 -1
- package/dist/page-problems.js +7 -6
- package/dist/page-problems.js.map +1 -1
- package/dist/page-provisional.d.ts +14 -0
- package/dist/page-provisional.d.ts.map +1 -0
- package/dist/page-provisional.js +38 -0
- package/dist/page-provisional.js.map +1 -0
- package/dist/page-record.d.ts.map +1 -1
- package/dist/page-record.js +57 -19
- package/dist/page-record.js.map +1 -1
- package/dist/page-search.d.ts.map +1 -1
- package/dist/page-search.js +10 -5
- package/dist/page-search.js.map +1 -1
- package/dist/page-shell.d.ts.map +1 -1
- package/dist/page-shell.js +3 -4
- package/dist/page-shell.js.map +1 -1
- package/dist/page-typography.d.ts +3 -0
- package/dist/page-typography.d.ts.map +1 -1
- package/dist/page-typography.js +72 -29
- package/dist/page-typography.js.map +1 -1
- package/dist/router.d.ts +1 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +23 -4
- package/dist/router.js.map +1 -1
- package/dist/static.d.ts +68 -0
- package/dist/static.d.ts.map +1 -0
- package/dist/static.js +423 -0
- package/dist/static.js.map +1 -0
- package/package.json +10 -6
package/dist/static.js
ADDED
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* `@graview/pages/static` — A PAGE AS A STRING, OFF THE BROWSER (FR-174).
|
|
3
|
+
*
|
|
4
|
+
* The pages face is React components under a browser router, which is right
|
|
5
|
+
* for a person at a screen and no use to a host that wants a fixed link — a
|
|
6
|
+
* team's schedule as a PDF, a roster pinned to a wall — re-rendered each
|
|
7
|
+
* time the app changes, in a Worker that has no DOM. `renderPlace` says a
|
|
8
|
+
* place as one self-contained HTML document: the app's look inlined as CSS,
|
|
9
|
+
* no scripts, nothing to fetch, printable.
|
|
10
|
+
*
|
|
11
|
+
* NOT A SECOND RENDERER OF THE DECLARATION. What a place shows one seat is
|
|
12
|
+
* `describePlace`'s answer (`@graview/core/describe`), which resolves the
|
|
13
|
+
* home's, a lens's and each kind's card and row blocks exactly as the faces
|
|
14
|
+
* do, over the graph the seat may see; a record's facts, its declared
|
|
15
|
+
* sentence and its relations are read with the same helpers its routed
|
|
16
|
+
* page reads (`describeNode`, `readableFields`, `pageSections`). This module
|
|
17
|
+
* only writes that answer down as markup.
|
|
18
|
+
*
|
|
19
|
+
* WHY NOT THE COMPONENTS. Every routed page renders under
|
|
20
|
+
* `renderToStaticMarkup` in Node, but each is a working page: forms, the
|
|
21
|
+
* arranging line, values changed where they stand, Find, the seat — a
|
|
22
|
+
* printed roster of buttons. And this entry imports no React at all, so a
|
|
23
|
+
* Worker that wants a page does not load a UI library to get one; nothing
|
|
24
|
+
* on the hosted page imports it, so its weight is nobody's but the caller's.
|
|
25
|
+
*/
|
|
26
|
+
import { humanizeField, isCurrent, labelOf, localeFor, markHref, pluralOf, recordPath, SCHEMES, shapeOf, typographyOf, violationsTouching, } from "@graview/core";
|
|
27
|
+
import { describeNode, readableFields } from "@graview/core/words";
|
|
28
|
+
import { withComputed } from "@graview/core/blocks";
|
|
29
|
+
import { describePlace } from "@graview/core/describe";
|
|
30
|
+
import { markdownHtml } from "@graview/core/markdown";
|
|
31
|
+
/**
|
|
32
|
+
* RENDER ONE PLACE TO STATIC HTML.
|
|
33
|
+
*
|
|
34
|
+
* `place` is what the routed face and `describe_place` name a place by: a
|
|
35
|
+
* `placesOf(declaration)` entry, its slug (`home`, `tasks`, a lens's `as`),
|
|
36
|
+
* its title, its address (`/`, `/tasks`, `/places/the-week`), a record's
|
|
37
|
+
* id, or a record's address (`/tasks/task-1`).
|
|
38
|
+
*
|
|
39
|
+
* Runs in Node and in a Worker: no DOM, no React, no global read at import.
|
|
40
|
+
*/
|
|
41
|
+
export function renderPlace(store, declaration, place, options = {}) {
|
|
42
|
+
const viewer = options.viewer ?? { kind: "human" };
|
|
43
|
+
const brand = options.look?.brand ?? declaration.brand ?? { name: declaration.name, schemes: SCHEMES };
|
|
44
|
+
const scheme = options.look?.scheme ?? (brand.scheme === "dark" || brand.scheme === "light" ? brand.scheme : "light");
|
|
45
|
+
const css = staticCss(brand, scheme);
|
|
46
|
+
const appName = brand.name || declaration.name;
|
|
47
|
+
const base = (options.base ?? "").replace(/\/$/, "");
|
|
48
|
+
const seen = store.seenBy(viewer);
|
|
49
|
+
const asked = typeof place === "string" ? recordOfAddress(seen, place) ?? place : place;
|
|
50
|
+
// Said in the reader's locale, else the brand's the page wears: the describer reads it off the app's brand, as every face does.
|
|
51
|
+
const locale = localeFor(options.locale ?? brand.locale ?? declaration.brand?.locale);
|
|
52
|
+
const described = describePlace(store, viewer, asked, { app: { ...declaration, brand: { ...brand, locale } }, ...(options.today ? { today: options.today } : {}) });
|
|
53
|
+
/*
|
|
54
|
+
* A KIND KEPT FROM THIS SEAT IS NOT THERE: an administered module's kinds
|
|
55
|
+
* for a seat that does not administer it, a kind it sees none of, a
|
|
56
|
+
* disabled module's — the routed face lists none of them, so a record, a
|
|
57
|
+
* list or a picture of one is answered as nothing at all.
|
|
58
|
+
*/
|
|
59
|
+
const kept = new Set([...store.kindsKeptFrom(viewer), ...store.modules.disabledKinds]);
|
|
60
|
+
const there = described.ok && !(described.description.place.kind !== null && kept.has(described.description.place.kind));
|
|
61
|
+
const write = new Writer(base, seen.schema);
|
|
62
|
+
let title;
|
|
63
|
+
if (!described.ok || !there) {
|
|
64
|
+
title = "Nothing lives at this address.";
|
|
65
|
+
write.raw(`<h1>${esc(title)}</h1>`);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
const d = described.description;
|
|
69
|
+
title = d.place.title;
|
|
70
|
+
if (d.drawnBy === "record")
|
|
71
|
+
writeRecord(write, seen, d, kept);
|
|
72
|
+
else if (d.place.kind !== null && d.drawnBy === "derived")
|
|
73
|
+
writeList(write, seen, d, locale);
|
|
74
|
+
else
|
|
75
|
+
writePlace(write, d);
|
|
76
|
+
}
|
|
77
|
+
const found = there;
|
|
78
|
+
const head = title === appName ? title : `${title} — ${appName}`;
|
|
79
|
+
const masthead = writeMasthead(brand, appName, base);
|
|
80
|
+
const html = `<!doctype html>\n<html lang="${esc(locale)}" data-graview-static="" data-scheme="${scheme}">\n<head>\n<meta charset="utf-8">\n` +
|
|
81
|
+
`<meta name="viewport" content="width=device-width, initial-scale=1">\n<title>${esc(head)}</title>\n<style>\n${css}\n</style>\n</head>\n` +
|
|
82
|
+
`<body>\n<div class="gv-page">\n${masthead}\n<main>\n${write.out()}\n</main>\n</div>\n</body>\n</html>\n`;
|
|
83
|
+
return { html, css, title: head, found };
|
|
84
|
+
}
|
|
85
|
+
/* ------------------------------------------------------------ the places */
|
|
86
|
+
/** A record's address on the routed face, `/<plural>/<id>`, as the record's id; anything else is left to `describePlace`. */
|
|
87
|
+
function recordOfAddress(seen, asked) {
|
|
88
|
+
const parts = asked.split(/[?#]/)[0].split("/").filter(Boolean);
|
|
89
|
+
if (!asked.startsWith("/") || parts.length !== 2 || parts[0] === "places")
|
|
90
|
+
return undefined;
|
|
91
|
+
let id;
|
|
92
|
+
try {
|
|
93
|
+
id = decodeURIComponent(parts[1]);
|
|
94
|
+
}
|
|
95
|
+
catch {
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
98
|
+
const node = seen.graph.getNode(id);
|
|
99
|
+
// The address names the kind as well as the id: `/lists/task-1` is no record's.
|
|
100
|
+
if (!node || recordPath(seen.schema, node.kind, id) !== `/${parts[0]}/${encodeURIComponent(id)}`)
|
|
101
|
+
return `\u0000${asked}`;
|
|
102
|
+
return id;
|
|
103
|
+
}
|
|
104
|
+
/** A record's page: its kind, its name, its declared sentence, what is wrong with it, its facts, and what it is related to. */
|
|
105
|
+
function writeRecord(write, seen, d, kept) {
|
|
106
|
+
const id = d.place.slug;
|
|
107
|
+
const node = seen.graph.getNode(id);
|
|
108
|
+
const kind = d.place.kind;
|
|
109
|
+
const definition = seen.schema.tryDefinition(kind);
|
|
110
|
+
write.raw(`<header class="gv-head">`);
|
|
111
|
+
write.raw(`<p class="gv-eyebrow"><a href="${write.href(`/${slugOf(seen, kind)}`)}">${esc(pluralOf(seen.schema, kind))}</a></p>`);
|
|
112
|
+
write.raw(`<h1>${esc(d.place.title)}</h1>`);
|
|
113
|
+
// THE DESCRIBE LINE, as the record's page says it under its name: the declaration's own sentence, where it says more than the name.
|
|
114
|
+
const said = definition?.describe && node ? describeNode(definition, node) : null;
|
|
115
|
+
if (said && said !== d.place.title)
|
|
116
|
+
write.raw(`<p class="gv-lede">${esc(said)}</p>`);
|
|
117
|
+
write.raw(`</header>`);
|
|
118
|
+
const problems = violationsTouching(seen.violations(), [id]);
|
|
119
|
+
if (problems.length > 0) {
|
|
120
|
+
write.raw(`<section class="gv-problems" aria-label="What is wrong">`);
|
|
121
|
+
for (const problem of problems)
|
|
122
|
+
write.raw(`<p><strong>${esc(problem.label)}</strong> — ${esc(problem.message)}</p>`);
|
|
123
|
+
write.raw(`</section>`);
|
|
124
|
+
}
|
|
125
|
+
// The kind's declared page blocks, then its facts in the sections its page declares — `describePlace` read them both.
|
|
126
|
+
const facts = d.parts;
|
|
127
|
+
if (facts.length > 0) {
|
|
128
|
+
write.raw(`<section class="gv-part" data-testid="record-fields">`);
|
|
129
|
+
write.raw(`<h2>The facts</h2>`);
|
|
130
|
+
write.parts(facts, 2);
|
|
131
|
+
write.raw(`</section>`);
|
|
132
|
+
}
|
|
133
|
+
for (const group of relationsOf(seen, id, kept)) {
|
|
134
|
+
write.raw(`<section class="gv-part">`);
|
|
135
|
+
write.raw(`<h2>${esc(group.heading)}</h2>`);
|
|
136
|
+
write.raw(`<ul class="gv-names">`);
|
|
137
|
+
for (const target of group.targets)
|
|
138
|
+
write.raw(`<li><a href="${write.href(recordPath(seen.schema, target.kind, target.id))}">${esc(target.label)}</a></li>`);
|
|
139
|
+
write.raw(`</ul></section>`);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/** A kind's list: its plural, its declared description, how many there are, and each record as its row says it — or, with no row declared, its name and its glance. */
|
|
143
|
+
function writeList(write, seen, d, locale) {
|
|
144
|
+
const kind = d.place.kind;
|
|
145
|
+
const definition = seen.schema.tryDefinition(kind);
|
|
146
|
+
const members = seen.graph.nodesOfKind(kind).filter((node) => isCurrent(definition, node));
|
|
147
|
+
write.raw(`<header class="gv-head">`);
|
|
148
|
+
write.raw(`<h1>${esc(d.place.title)}</h1>`);
|
|
149
|
+
if (definition?.description)
|
|
150
|
+
write.raw(`<p class="gv-lede">${esc(definition.description)}</p>`);
|
|
151
|
+
write.raw(`<p class="gv-quiet">${members.length} ${esc(members.length === 1 ? (definition?.noun ?? humanizeField(kind)).toLowerCase() : pluralOf(seen.schema, kind).toLowerCase())}</p>`);
|
|
152
|
+
write.raw(`</header>`);
|
|
153
|
+
// Everything after the list's own heading, with each plain row given the glance the routed list shows beside the name.
|
|
154
|
+
const rest = d.parts.filter((part, index) => !(index === 0 && part.t === "heading" && part.level === 1));
|
|
155
|
+
write.parts(rest.map((part) => (part.t === "list" ? { ...part, groups: part.groups.map((group) => ({ ...group, items: group.items.map((item) => glanced(seen, item, locale)) })) } : part)), 1);
|
|
156
|
+
}
|
|
157
|
+
/** The home, or a declared place: what `describePlace` says it shows, under its own heading, a section to a page in print. */
|
|
158
|
+
function writePlace(write, d) {
|
|
159
|
+
const parts = d.parts;
|
|
160
|
+
const titled = parts[0]?.t === "heading" && parts[0].level === 1;
|
|
161
|
+
write.raw(`<header class="gv-head">`);
|
|
162
|
+
write.raw(`<h1>${esc(titled ? parts[0].text : d.place.title)}</h1>`);
|
|
163
|
+
if (d.place.kind === null && d.masthead?.subtitle)
|
|
164
|
+
write.raw(`<p class="gv-lede">${esc(d.masthead.subtitle)}</p>`);
|
|
165
|
+
write.raw(`</header>`);
|
|
166
|
+
// A heading of the page's own (an h2) begins a section; a grouped list's groups are sections of their own.
|
|
167
|
+
const body = titled ? parts.slice(1) : parts;
|
|
168
|
+
const sections = [[]];
|
|
169
|
+
for (const part of body) {
|
|
170
|
+
if (part.t === "heading" && part.level <= 2 && sections[sections.length - 1].length > 0)
|
|
171
|
+
sections.push([]);
|
|
172
|
+
sections[sections.length - 1].push(part);
|
|
173
|
+
}
|
|
174
|
+
for (const section of sections) {
|
|
175
|
+
if (section.length === 0)
|
|
176
|
+
continue;
|
|
177
|
+
write.raw(`<section class="gv-section">`);
|
|
178
|
+
write.parts(section, 1);
|
|
179
|
+
write.raw(`</section>`);
|
|
180
|
+
}
|
|
181
|
+
if (d.facts && d.facts.length > 0) {
|
|
182
|
+
write.raw(`<section class="gv-section"><h2>Facts</h2><dl class="gv-fields">`);
|
|
183
|
+
for (const fact of d.facts)
|
|
184
|
+
write.raw(`<div><dt>${esc(fact.label)}</dt><dd>${esc(fact.value ?? "—")}</dd></div>`);
|
|
185
|
+
write.raw(`</dl></section>`);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
/** A plain row (its name alone) given what a glance at the record says — the default card's facts, as the routed list shows them. */
|
|
189
|
+
function glanced(seen, item, locale) {
|
|
190
|
+
if (item.parts.length > 0)
|
|
191
|
+
return item;
|
|
192
|
+
const node = seen.graph.getNode(item.id);
|
|
193
|
+
if (!node)
|
|
194
|
+
return item;
|
|
195
|
+
const definition = seen.schema.tryDefinition(node.kind);
|
|
196
|
+
const read = definition?.computed ? withComputed(seen.schema, seen.graph, node) : node;
|
|
197
|
+
const fields = readableFields(read, definition, { limit: 3, said: [item.title], glance: true, locale });
|
|
198
|
+
return { ...item, parts: fields.map((field) => ({ t: "text", text: field.alone })) };
|
|
199
|
+
}
|
|
200
|
+
/** A record's relations, both ways, each captioned in its declaration's own words for this end — as its routed page groups them. */
|
|
201
|
+
function relationsOf(seen, id, kept) {
|
|
202
|
+
const node = seen.graph.getNode(id);
|
|
203
|
+
if (!node)
|
|
204
|
+
return [];
|
|
205
|
+
const groups = new Map();
|
|
206
|
+
for (const edge of seen.graph.allEdges()) {
|
|
207
|
+
const direction = edge.from === id ? "out" : edge.to === id ? "in" : null;
|
|
208
|
+
if (!direction)
|
|
209
|
+
continue;
|
|
210
|
+
const other = seen.graph.getNode(direction === "out" ? edge.to : edge.from);
|
|
211
|
+
if (!other || kept.has(other.kind))
|
|
212
|
+
continue;
|
|
213
|
+
const declaredOn = seen.schema.tryDefinition(direction === "out" ? node.kind : other.kind);
|
|
214
|
+
const words = declaredOn?.edges?.[edge.kind];
|
|
215
|
+
const description = direction === "in" ? (words?.inverse ?? words?.description) : words?.description;
|
|
216
|
+
const heading = description ? description.charAt(0).toUpperCase() + description.slice(1) : `${direction === "in" ? "← " : "→ "}${humanizeField(edge.kind)}`;
|
|
217
|
+
const key = `${edge.kind}|${direction}|${heading}`;
|
|
218
|
+
const group = groups.get(key) ?? { heading, targets: [] };
|
|
219
|
+
groups.set(key, group);
|
|
220
|
+
group.targets.push({ id: other.id, kind: other.kind, label: labelOf(seen.schema.tryDefinition(other.kind), other) });
|
|
221
|
+
}
|
|
222
|
+
return [...groups.values()].map((group) => ({ ...group, targets: group.targets.sort((a, b) => a.label.localeCompare(b.label)) }));
|
|
223
|
+
}
|
|
224
|
+
function slugOf(seen, kind) {
|
|
225
|
+
return recordPath(seen.schema, kind, "x").split("/")[1];
|
|
226
|
+
}
|
|
227
|
+
/** The app's name and its mark, at the head of every page. */
|
|
228
|
+
function writeMasthead(brand, name, base) {
|
|
229
|
+
const mark = markHref(brand.logo);
|
|
230
|
+
const logo = mark && (mark.startsWith("data:image/") || /^https?:/i.test(mark) || !mark.startsWith("/") || base === "") ? `<img class="gv-mark" src="${attr(mark.startsWith("/") ? `${base}${mark}` : mark)}" alt="">` : "";
|
|
231
|
+
return `<header class="gv-masthead"><a href="${attr(`${base}/`)}">${logo}<span>${esc(name)}</span></a></header>`;
|
|
232
|
+
}
|
|
233
|
+
/* ----------------------------------------------------------- the markup */
|
|
234
|
+
class Writer {
|
|
235
|
+
base;
|
|
236
|
+
schema;
|
|
237
|
+
lines = [];
|
|
238
|
+
constructor(base, schema) {
|
|
239
|
+
this.base = base;
|
|
240
|
+
this.schema = schema;
|
|
241
|
+
}
|
|
242
|
+
raw(text) {
|
|
243
|
+
this.lines.push(text);
|
|
244
|
+
}
|
|
245
|
+
out() {
|
|
246
|
+
return this.lines.join("\n");
|
|
247
|
+
}
|
|
248
|
+
href(path) {
|
|
249
|
+
return attr(`${this.base}${path}`);
|
|
250
|
+
}
|
|
251
|
+
/** Parts as the faces draw them: headings, lines, badges, facts as a list of terms, figures, lists of cards or rows. */
|
|
252
|
+
parts(parts, depth) {
|
|
253
|
+
let fields = [];
|
|
254
|
+
const flush = () => {
|
|
255
|
+
if (fields.length === 0)
|
|
256
|
+
return;
|
|
257
|
+
// Prose the record's width, its lines kept; Markdown drawn as prose (FR-180), its headings under the page's, no HTML of its own.
|
|
258
|
+
const value = (field) => (field.markdown ? `<dd class="gv-md">${markdownHtml(field.text, { headingsFrom: depth + 1 })}</dd>` : `<dd>${esc(field.text)}</dd>`);
|
|
259
|
+
this.raw(`<dl class="gv-fields">${fields.map((field) => `<div${field.long || field.markdown ? ' class="gv-long"' : ""}><dt>${esc(field.label)}</dt>${value(field)}</div>`).join("")}</dl>`);
|
|
260
|
+
fields = [];
|
|
261
|
+
};
|
|
262
|
+
for (const part of parts) {
|
|
263
|
+
if (part.t === "field" || part.t === "progress") {
|
|
264
|
+
fields.push(part);
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
flush();
|
|
268
|
+
switch (part.t) {
|
|
269
|
+
case "heading": {
|
|
270
|
+
const level = Math.min(6, Math.max(2, part.level + depth - 1));
|
|
271
|
+
this.raw(`<h${level}>${esc(part.text)}</h${level}>`);
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
case "text":
|
|
275
|
+
this.raw(`<p class="gv-text"${part.tone ? ` data-tone="${attr(part.tone)}"` : ""}>${esc(part.text)}</p>`);
|
|
276
|
+
break;
|
|
277
|
+
case "badge":
|
|
278
|
+
this.raw(`<p><span class="gv-badge">${esc(part.text)}</span></p>`);
|
|
279
|
+
break;
|
|
280
|
+
case "figure":
|
|
281
|
+
this.raw(`<p class="gv-figure"><strong>${esc(part.text)}</strong>${part.label ? ` <span>${esc(part.label)}</span>` : ""}</p>`);
|
|
282
|
+
break;
|
|
283
|
+
case "list":
|
|
284
|
+
this.list(part, depth);
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
flush();
|
|
289
|
+
}
|
|
290
|
+
list(part, depth) {
|
|
291
|
+
if (part.groups.length === 0) {
|
|
292
|
+
if (part.empty)
|
|
293
|
+
this.raw(`<p class="gv-quiet">${esc(part.empty)}</p>`);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
const grouped = part.groups.some((group) => group.heading);
|
|
297
|
+
for (const group of part.groups) {
|
|
298
|
+
// A group under a heading is a section of its own — a week of a roster, a column of a board — and a page of its own in print.
|
|
299
|
+
if (grouped)
|
|
300
|
+
this.raw(`<section class="gv-section">${group.heading ? `<h${Math.min(6, depth + 1)}>${esc(group.heading)}</h${Math.min(6, depth + 1)}>` : ""}`);
|
|
301
|
+
if (part.as === "card") {
|
|
302
|
+
this.raw(`<div class="gv-cards">`);
|
|
303
|
+
for (const item of group.items) {
|
|
304
|
+
this.raw(`<article class="gv-card"><h${Math.min(6, depth + 2)} class="gv-card-title">${this.named(item)}</h${Math.min(6, depth + 2)}>`);
|
|
305
|
+
this.parts(item.parts, depth + 2);
|
|
306
|
+
this.raw(`</article>`);
|
|
307
|
+
}
|
|
308
|
+
this.raw(`</div>`);
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
this.raw(`<ul class="${part.as === "row" ? "gv-rows" : "gv-names"}">`);
|
|
312
|
+
for (const item of group.items) {
|
|
313
|
+
this.raw(`<li>${this.named(item)}`);
|
|
314
|
+
if (item.parts.length > 0) {
|
|
315
|
+
this.raw(`<div class="gv-glance">`);
|
|
316
|
+
this.parts(item.parts, depth + 2);
|
|
317
|
+
this.raw(`</div>`);
|
|
318
|
+
}
|
|
319
|
+
this.raw(`</li>`);
|
|
320
|
+
}
|
|
321
|
+
this.raw(`</ul>`);
|
|
322
|
+
}
|
|
323
|
+
if (grouped)
|
|
324
|
+
this.raw(`</section>`);
|
|
325
|
+
}
|
|
326
|
+
if (part.more)
|
|
327
|
+
this.raw(`<p class="gv-quiet">and ${part.more} more</p>`);
|
|
328
|
+
}
|
|
329
|
+
named(item) {
|
|
330
|
+
return `<a href="${this.href(recordPath(this.schema, item.kind, item.id))}">${esc(item.title)}</a>`;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
const ESCAPES = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" };
|
|
334
|
+
function esc(text) {
|
|
335
|
+
return String(text).replace(/[&<>"']/g, (ch) => ESCAPES[ch]);
|
|
336
|
+
}
|
|
337
|
+
function attr(text) {
|
|
338
|
+
return esc(text);
|
|
339
|
+
}
|
|
340
|
+
/* ------------------------------------------------------------- the look */
|
|
341
|
+
/**
|
|
342
|
+
* THE APP'S LOOK AS ONE STYLESHEET: the brand's tokens for the scheme, its
|
|
343
|
+
* type and its shape, as the same custom properties every face reads — so a
|
|
344
|
+
* host that knows the tokens can override one — and the few rules a page of
|
|
345
|
+
* reading needs. Print puts each section of a place on a page of its own,
|
|
346
|
+
* keeps a card, a row and a fact whole, and prints the ground it is on.
|
|
347
|
+
*/
|
|
348
|
+
export function staticCss(brand, scheme = "light") {
|
|
349
|
+
const tokens = brand.schemes[scheme] ?? SCHEMES[scheme];
|
|
350
|
+
const type = typographyOf(brand);
|
|
351
|
+
const shape = shapeOf(brand);
|
|
352
|
+
const variables = Object.keys(tokens)
|
|
353
|
+
.map((key) => ` --graview-${String(key).replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)}: ${tokens[key]};`)
|
|
354
|
+
.join("\n");
|
|
355
|
+
return `:root {
|
|
356
|
+
${variables}
|
|
357
|
+
--graview-font-body: ${type.body};
|
|
358
|
+
--graview-font-display: ${type.display};
|
|
359
|
+
--graview-font-mono: ${type.mono};
|
|
360
|
+
--graview-weight-display: ${type.weights.display};
|
|
361
|
+
--graview-weight-body: ${type.weights.body};
|
|
362
|
+
--graview-radius: ${shape.radius}px;
|
|
363
|
+
--graview-gap: ${shape.gap}px;
|
|
364
|
+
color-scheme: ${scheme};
|
|
365
|
+
}
|
|
366
|
+
html, body { margin: 0; background: var(--graview-ground-deep); color: var(--graview-ink); }
|
|
367
|
+
body { font: var(--graview-weight-body) 1rem/1.5 var(--graview-font-body); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
|
|
368
|
+
.gv-page { max-width: 60rem; margin: 0 auto; padding: 24px 16px 48px; }
|
|
369
|
+
.gv-masthead a { display: inline-flex; align-items: center; gap: 10px; color: var(--graview-ink-muted); text-decoration: none; font-weight: 600; }
|
|
370
|
+
.gv-mark { height: 28px; width: auto; }
|
|
371
|
+
h1, h2, h3, h4, h5, h6 { font-family: var(--graview-font-display); font-weight: var(--graview-weight-display); line-height: 1.2; margin: 0.6em 0 0.3em; break-after: avoid-page; }
|
|
372
|
+
h1 { font-size: 1.728rem; margin-top: 0.4em; text-wrap: balance; }
|
|
373
|
+
h2 { font-size: 1.2rem; text-wrap: balance; }
|
|
374
|
+
h3 { font-size: 1rem; }
|
|
375
|
+
a { color: var(--graview-accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
|
|
376
|
+
.gv-head { display: grid; gap: 6px; margin-bottom: 20px; }
|
|
377
|
+
.gv-head h1, .gv-head p { margin: 0; }
|
|
378
|
+
.gv-eyebrow { font-size: 0.833rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graview-ink-muted); }
|
|
379
|
+
.gv-eyebrow a { color: inherit; text-decoration: none; }
|
|
380
|
+
.gv-lede { font-size: 1rem; color: var(--graview-ink-muted); max-width: 40rem; }
|
|
381
|
+
.gv-quiet { color: var(--graview-ink-muted); }
|
|
382
|
+
.gv-text { margin: 4px 0; }
|
|
383
|
+
.gv-text[data-tone="warn"], .gv-text[data-tone="bad"] { color: var(--graview-bad); }
|
|
384
|
+
.gv-text[data-tone="good"] { color: var(--graview-good); }
|
|
385
|
+
.gv-section, .gv-part { border-top: 1px solid var(--graview-edge); padding-top: 12px; margin-top: 20px; }
|
|
386
|
+
.gv-problems { border-left: 3px solid var(--graview-warn); background: var(--graview-panel-warning); padding: 10px 16px; border-radius: 0 var(--graview-radius) var(--graview-radius) 0; }
|
|
387
|
+
.gv-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; margin: 8px 0; }
|
|
388
|
+
.gv-fields div { break-inside: avoid; }
|
|
389
|
+
.gv-fields dt { font-size: 0.833rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graview-ink-muted); }
|
|
390
|
+
.gv-fields dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
|
|
391
|
+
.gv-fields .gv-long { grid-column: 1 / -1; }
|
|
392
|
+
.gv-fields dd.gv-md { white-space: normal; line-height: 1.6; }
|
|
393
|
+
.gv-md > :first-child { margin-top: 0; }
|
|
394
|
+
.gv-md h3, .gv-md h4, .gv-md h5, .gv-md h6 { font-size: 1em; margin: 0.9em 0 0.3em; }
|
|
395
|
+
.gv-md p, .gv-md ul, .gv-md ol, .gv-md blockquote, .gv-md pre { margin: 0 0 0.7em; }
|
|
396
|
+
.gv-md li > p { margin: 0; }
|
|
397
|
+
.gv-md blockquote { padding-inline-start: 0.9em; border-inline-start: 3px solid var(--graview-edge); color: var(--graview-ink-muted); }
|
|
398
|
+
.gv-md code { font-family: var(--graview-font-mono); font-size: 0.9em; }
|
|
399
|
+
.gv-md pre { overflow-x: auto; padding: 0.7em 0.9em; background: var(--graview-panel-muted, transparent); border-radius: 8px; white-space: pre; overflow-wrap: normal; }
|
|
400
|
+
.gv-md hr { border: 0; border-top: 1px solid var(--graview-edge); }
|
|
401
|
+
.gv-md [data-graview-md-table] { overflow-x: auto; }
|
|
402
|
+
.gv-md table { border-collapse: collapse; }
|
|
403
|
+
.gv-md th, .gv-md td { padding: 0.35em 0.7em; border-bottom: 1px solid var(--graview-edge); text-align: start; vertical-align: top; }
|
|
404
|
+
.gv-badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--graview-edge-bright); border-radius: 999px; font-size: 0.833rem; }
|
|
405
|
+
.gv-figure strong { font-size: 1.75rem; font-family: var(--graview-font-display); }
|
|
406
|
+
.gv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 10px; }
|
|
407
|
+
.gv-card { background: var(--graview-panel); border: 1px solid var(--graview-edge); border-radius: var(--graview-radius); padding: 12px 14px; break-inside: avoid; }
|
|
408
|
+
.gv-card-title { margin: 0 0 4px; font-size: 1rem; }
|
|
409
|
+
.gv-card-title a, .gv-rows a, .gv-names a { color: var(--graview-ink); text-decoration: none; }
|
|
410
|
+
.gv-rows, .gv-names { list-style: none; margin: 0; padding: 0; }
|
|
411
|
+
.gv-rows > li { padding: 8px 0; border-bottom: 1px solid var(--graview-edge); break-inside: avoid; }
|
|
412
|
+
.gv-rows > li > a { font-weight: 500; }
|
|
413
|
+
.gv-names { display: flex; flex-wrap: wrap; gap: 6px 18px; }
|
|
414
|
+
.gv-glance { color: var(--graview-ink-muted); font-size: 0.833rem; }
|
|
415
|
+
.gv-glance > .gv-text, .gv-glance > p { display: inline; margin: 0; }
|
|
416
|
+
.gv-glance > .gv-text:not(:last-child)::after, .gv-glance > p:not(:last-child)::after { content: " · "; }
|
|
417
|
+
@media print {
|
|
418
|
+
.gv-page { max-width: none; padding: 0; }
|
|
419
|
+
.gv-section + .gv-section { break-before: page; border-top: 0; }
|
|
420
|
+
a { text-decoration: none; color: inherit; }
|
|
421
|
+
}`;
|
|
422
|
+
}
|
|
423
|
+
//# sourceMappingURL=static.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static.js","sourceRoot":"","sources":["../src/static.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,OAAO,EACP,OAAO,EACP,YAAY,EACZ,kBAAkB,GASnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAiE,MAAM,wBAAwB,CAAC;AACtH,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAoDtD;;;;;;;;;GASG;AACH,MAAM,UAAU,WAAW,CACzB,KAAe,EACf,WAA0B,EAC1B,KAAwB,EACxB,UAA8B,EAAE;IAEhC,MAAM,MAAM,GAAc,OAAO,CAAC,MAAM,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC9D,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,EAAE,KAAK,IAAI,WAAW,CAAC,KAAK,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACvG,MAAM,MAAM,GAAW,OAAO,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,KA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AAC,KAAK,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7B,MAAM,SAAS,GAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAA2B;SAC7D,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;SAC3G,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,OAAO;EACP,SAAS;yBACc,IAAI,CAAC,IAAI;4BACN,IAAI,CAAC,OAAO;yBACf,IAAI,CAAC,IAAI;8BACJ,IAAI,CAAC,OAAO,CAAC,OAAO;2BACvB,IAAI,CAAC,OAAO,CAAC,IAAI;sBACtB,KAAK,CAAC,MAAM;mBACf,KAAK,CAAC,GAAG;kBACV,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDtB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graview/pages",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -8,15 +8,19 @@
|
|
|
8
8
|
".": {
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./static": {
|
|
13
|
+
"types": "./dist/static.d.ts",
|
|
14
|
+
"default": "./dist/static.js"
|
|
11
15
|
}
|
|
12
16
|
},
|
|
13
17
|
"dependencies": {
|
|
14
18
|
"react-router-dom": "^7.1.1",
|
|
15
|
-
"@graview/core": "0.1.
|
|
16
|
-
"@graview/
|
|
17
|
-
"@graview/react": "0.1.
|
|
18
|
-
"@graview/
|
|
19
|
-
"@graview/
|
|
19
|
+
"@graview/core": "0.1.29",
|
|
20
|
+
"@graview/primitives": "0.1.29",
|
|
21
|
+
"@graview/react": "0.1.29",
|
|
22
|
+
"@graview/tools": "0.1.29",
|
|
23
|
+
"@graview/layout": "0.1.29"
|
|
20
24
|
},
|
|
21
25
|
"peerDependencies": {
|
|
22
26
|
"react": ">=18"
|