@peripheries/renderer 0.6.1 → 0.7.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.
- package/README.md +15 -1
- package/dist/catalog.js +5 -4
- package/dist/catalog.js.map +1 -1
- package/dist/chunks/{load-6zEgvJ6I.js → load-CTAaQSl-.js} +3 -2
- package/dist/chunks/load-CTAaQSl-.js.map +1 -0
- package/dist/chunks/page-bundles-Eaw5mYKS.js +33 -0
- package/dist/chunks/page-bundles-Eaw5mYKS.js.map +1 -0
- package/dist/chunks/{projection-Cd0DxvWm.js → projection-BfojIUtA.js} +16 -4
- package/dist/chunks/projection-BfojIUtA.js.map +1 -0
- package/dist/chunks/{page-bundles-C4VW3dsK.js → refs-CiWBdUpZ.js} +10 -32
- package/dist/chunks/refs-CiWBdUpZ.js.map +1 -0
- package/dist/chunks/{validate-ADfCrhn-.js → validate-Cz2tUUdm.js} +12 -8
- package/dist/chunks/{validate-ADfCrhn-.js.map → validate-Cz2tUUdm.js.map} +1 -1
- package/dist/core.js +6 -5
- package/dist/core.js.map +1 -1
- package/dist/react.js +2 -1
- package/dist/react.js.map +1 -1
- package/dist/runtime.js +9 -3
- package/dist/runtime.js.map +1 -1
- package/dist/styles.css +50 -45
- package/dist/testing.js +4 -3
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +609 -0
- package/dist/theme.js.map +1 -0
- package/dist/types/core/bundles/load.d.ts +7 -0
- package/dist/types/core/bundles/refs.d.ts +22 -1
- package/dist/types/core/bundles/resolve.d.ts +7 -6
- package/dist/types/core/index.d.ts +2 -2
- package/dist/types/core/layout.d.ts +7 -0
- package/dist/types/core/validate.d.ts +3 -0
- package/dist/types/runtime/boot.d.ts +12 -1
- package/dist/types/runtime/index.d.ts +1 -1
- package/dist/types/theme/check.d.ts +6 -0
- package/dist/types/theme/color.d.ts +29 -0
- package/dist/types/theme/derive.d.ts +18 -0
- package/dist/types/theme/index.d.ts +5 -0
- package/dist/types/theme/parse.d.ts +22 -0
- package/package.json +6 -2
- package/dist/chunks/load-6zEgvJ6I.js.map +0 -1
- package/dist/chunks/page-bundles-C4VW3dsK.js.map +0 -1
- package/dist/chunks/projection-Cd0DxvWm.js.map +0 -1
|
@@ -7,12 +7,13 @@ export type ResolvedComponent = {
|
|
|
7
7
|
source: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* One cascade (design/core.md §6, design/bundles.md §2):
|
|
11
|
-
* - `@core/Name`
|
|
12
|
-
* - a cell with its own bundle_ref resolves from that bundle, then
|
|
13
|
-
* - otherwise the page's bundles, nearest level first, then
|
|
14
|
-
*
|
|
15
|
-
*
|
|
10
|
+
* One cascade (design/core.md §6, design/bundles.md §2, design/core-and-tokens.md §3):
|
|
11
|
+
* - `@core/Name` comes from `stack/core`, then the host's registry;
|
|
12
|
+
* - a cell with its own bundle_ref resolves from that bundle, then the host;
|
|
13
|
+
* - otherwise the page's bundles, nearest level first (org lineages, then the
|
|
14
|
+
* shared ones), then the host.
|
|
15
|
+
* The nearest wins on a name collision: that is how an org lineage replaces a
|
|
16
|
+
* shared component. `host:Name` is retired (renderer.md §10): no cell used it.
|
|
16
17
|
*/
|
|
17
18
|
export declare function resolveComponent(name: string, { cellBundle, scope, core }: {
|
|
18
19
|
cellBundle?: LoadedBundle | null;
|
|
@@ -3,7 +3,7 @@ export { buildDataContext, collectDeclarations, collectStatic, readField, resolv
|
|
|
3
3
|
export { mergeStates, needsWalk, readWalk, referencedLabels, RESERVED_LABELS, resolveWalkStart, stateNames, stateValue, systemsFromProcess, walkKey, walkRequest, type Diagnostic, type ProcessSystems, type RawWalk, type WalkBinding, type WalkRequest, type WalkStart, } from './graph.js';
|
|
4
4
|
export { loadPageData, resolveDataSystem, resolveSystems, type CellData, type CellWalk, type GraphSource, type NodeRecordRow, type PageRuntime } from './load-page.js';
|
|
5
5
|
export { cellResolutionContext, EACH, EACH_DEFAULT_AS, isEach, passesConditions, resolveReferences, settled, type CellScope, type Each, type ResolutionContext } from './references.js';
|
|
6
|
-
export { nearestNames, RESPONSIVE_BUCKETS, STORE_SCOPES, validateCell, validatePage, WALK_DIRECTIONS, type Catalog, type ValidateOptions } from './validate.js';
|
|
6
|
+
export { eachFormProblems, nearestNames, RESPONSIVE_BUCKETS, STORE_SCOPES, validateCell, validatePage, WALK_DIRECTIONS, type Catalog, type ValidateOptions } from './validate.js';
|
|
7
7
|
export { DIAGNOSTICS, type DiagnosticCode, type DiagnosticEntry } from './diagnostics.js';
|
|
8
8
|
export { LAYOUT_TYPES, PAGE_RULES } from './rules.js';
|
|
9
9
|
export { pageRuntimeFromValues } from './values.js';
|
|
@@ -14,7 +14,7 @@ export { cellAttributes, cellPlacementStyle, pageContainerStyle } from './layout
|
|
|
14
14
|
export { deriveElementReferences, deriveSectionNumbering, deriveSectionReferences, mergeSectionReferences, nodePrintStyle, normalizeStructure, numberingFor, PAGE_DOCUMENT, referencesFor, SECTION_KINDS, sectionAnchor, structureIssues, usesStructureLayout, type LayoutNode, type SectionNumbering, type SectionReference, type SectionReferences, } from './structure.js';
|
|
15
15
|
export { _clearBundleCache, isComponentExport, loadBundle, loadBundles, projectModule, runtimeReady, type BundleFiles, type BundleRow, type LoadedBundle, } from './bundles/load.js';
|
|
16
16
|
export { pageBundleRefs, pageBundles, type PageBundles } from './bundles/page-bundles.js';
|
|
17
|
-
export { bundleScope, MAIN, normalizeRef, PUBLIC, refKey, type BundleRef, type BundleScopeInput, type LineageRef } from './bundles/refs.js';
|
|
17
|
+
export { bundleScope, CORE_SPECIFIER, MAIN, normalizeRef, PUBLIC, refKey, type BundleRef, type BundleScopeInput, type LineageRef, type SharedLineage } from './bundles/refs.js';
|
|
18
18
|
export { nearestThemeProvider, resolveComponent, type CoreRegistry, type ResolvedComponent } from './bundles/resolve.js';
|
|
19
19
|
export { createStackStore, type StackStoreApi } from './store/create-store.js';
|
|
20
20
|
export { clearScope, loadScope, saveScope, type StorageMode } from './store/persistence.js';
|
|
@@ -10,3 +10,10 @@ export declare function cellPlacementStyle(layout: CellLayout | undefined): CSSP
|
|
|
10
10
|
* until they move (design/bundles.md §6).
|
|
11
11
|
*/
|
|
12
12
|
export declare function cellAttributes(cell: PageCell): Record<string, string>;
|
|
13
|
+
/**
|
|
14
|
+
* A document page's profile (`layout.profile`), set as `data-profile` on the
|
|
15
|
+
* page container so the document kit's `--doc-*` tokens resolve for it
|
|
16
|
+
* (design/core-and-tokens.md §6.5). Only a document page has one, and only a
|
|
17
|
+
* slug: the value becomes an attribute.
|
|
18
|
+
*/
|
|
19
|
+
export declare function documentProfile(layout: Record<string, unknown> | null | undefined): string | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Diagnostic } from './graph.js';
|
|
2
|
+
import { type Each } from './references.js';
|
|
2
3
|
import type { PageCell, ProjectPage } from './types.js';
|
|
3
4
|
/** What validation knows about the components in scope. Stream 3 fills it from the catalog. */
|
|
4
5
|
export type Catalog = {
|
|
@@ -23,6 +24,8 @@ export declare const WALK_DIRECTIONS: readonly ["incoming", "outgoing", "both"];
|
|
|
23
24
|
export type ValidateOptions = {
|
|
24
25
|
template?: boolean;
|
|
25
26
|
};
|
|
27
|
+
/** What is wrong with a projection's form, if anything: the one judgement EACH_INVALID and validatePageProps share. */
|
|
28
|
+
export declare function eachFormProblems(value: Each): string[];
|
|
26
29
|
/** One cell's configuration. `ids` are the page's cell ids, for `children`. */
|
|
27
30
|
export declare function validateCell(cell: PageCell, catalog?: Catalog, path?: string, ids?: ReadonlySet<string>, options?: ValidateOptions): Diagnostic[];
|
|
28
31
|
/** A whole page: every cell, the page's own declarations, unique cell ids, and its document structure. */
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
import { type SharedImport } from '@peripheries/runtime';
|
|
1
2
|
/**
|
|
2
3
|
* A classic inline script that must run before any module: it creates the
|
|
3
4
|
* promise every shim awaits. `installRuntime` resolves it.
|
|
4
5
|
*/
|
|
5
6
|
export declare const RUNTIME_BOOT_SCRIPT: string;
|
|
6
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The import map for a page: the pinned runtimes plus the shared lineages'
|
|
9
|
+
* live versions (design/core-and-tokens.md §4). One map per page, because
|
|
10
|
+
* Firefox doesn't merge several and a merged map keeps the first rule.
|
|
11
|
+
*/
|
|
12
|
+
export declare function importMapFor(shared?: readonly SharedImport[]): {
|
|
13
|
+
imports: Record<string, string>;
|
|
14
|
+
};
|
|
15
|
+
/** `importMapFor`, serialised for `<script type="importmap">`. `<` is escaped so a URL can't close the script. */
|
|
16
|
+
export declare function importMapJson(shared?: readonly SharedImport[]): string;
|
|
17
|
+
/** The import map with no shared lineages, serialised for `<script type="importmap">`. */
|
|
7
18
|
export declare const IMPORT_MAP_JSON: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IMPORT_MAP_JSON, RUNTIME_BOOT_SCRIPT } from './boot.js';
|
|
1
|
+
export { IMPORT_MAP_JSON, importMapFor, importMapJson, RUNTIME_BOOT_SCRIPT } from './boot.js';
|
|
2
2
|
export { buildRuntime, installRuntime, runtimeReady, type StackRuntime } from './install.js';
|
|
3
3
|
export { renderShim, shimFileName } from './shims.js';
|
|
4
4
|
export { getStackStore, selectors, useStackStore } from './store-export.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ThemeV2 } from '@peripheries/runtime';
|
|
2
|
+
import type { ThemeDiagnostic } from './parse.js';
|
|
3
|
+
/** [foreground, background, minimum ratio]: 4.5 for text, 3 for UI and large text. */
|
|
4
|
+
export declare const CONTRAST_PAIRS: readonly (readonly [string, string, number])[];
|
|
5
|
+
/** Contrast warnings for the theme's merged tier. Pairs whose values don't resolve to colours are skipped. */
|
|
6
|
+
export declare function checkTheme(theme: ThemeV2, base?: Record<string, string>): ThemeDiagnostic[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** A gamma-encoded sRGB colour, every channel 0–1. */
|
|
2
|
+
export type Rgb = {
|
|
3
|
+
r: number;
|
|
4
|
+
g: number;
|
|
5
|
+
b: number;
|
|
6
|
+
alpha: number;
|
|
7
|
+
};
|
|
8
|
+
/** OKLCH: lightness 0–1, chroma (0–~0.4), hue in degrees. */
|
|
9
|
+
export type Oklch = {
|
|
10
|
+
l: number;
|
|
11
|
+
c: number;
|
|
12
|
+
h: number;
|
|
13
|
+
};
|
|
14
|
+
/** Parse a CSS colour: hex (#rgb, #rgba, #rrggbb, #rrggbbaa), rgb()/rgba(), hsl()/hsla() or oklch(), legacy or modern syntax. */
|
|
15
|
+
export declare function parseColor(value: string): Rgb | null;
|
|
16
|
+
/** `#rrggbb`, or `#rrggbbaa` when the colour is translucent. */
|
|
17
|
+
export declare function toHex(color: Rgb): string;
|
|
18
|
+
/** sRGB → OKLCH (alpha is dropped). Achromatic colours get hue 0. */
|
|
19
|
+
export declare function toOklch(color: Rgb): Oklch;
|
|
20
|
+
/** OKLCH → sRGB, mapped into gamut by reducing chroma at the same lightness and hue. */
|
|
21
|
+
export declare function fromOklch(color: Oklch): Rgb;
|
|
22
|
+
/** WCAG 2.x relative luminance. */
|
|
23
|
+
export declare function relativeLuminance(color: Rgb): number;
|
|
24
|
+
/**
|
|
25
|
+
* WCAG 2.x contrast ratio (1–21) of a foreground on a background. A
|
|
26
|
+
* translucent foreground is composited over the background, a translucent
|
|
27
|
+
* background over white. Null when either colour doesn't parse.
|
|
28
|
+
*/
|
|
29
|
+
export declare function contrastRatio(foreground: Rgb | string, background: Rgb | string): number | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ThemeV2 } from '@peripheries/runtime';
|
|
2
|
+
import { type Rgb } from './color.js';
|
|
3
|
+
/** What the derivation and the check assume when neither the theme nor the base sets them. */
|
|
4
|
+
export declare const FALLBACK_BASE: Readonly<Record<string, string>>;
|
|
5
|
+
/** Follow `var(--x)` through a flat token map (keys without `--`) to a colour. */
|
|
6
|
+
export declare function resolveColor(value: string | undefined, tokens: Record<string, string>, depth?: number): Rgb | null;
|
|
7
|
+
/**
|
|
8
|
+
* The semantic overrides a theme sets (names without `--`). `base` is core's
|
|
9
|
+
* flat default map; it supplies the background and text the derivation
|
|
10
|
+
* contrasts against when the theme doesn't set them. Explicit `tokens` win.
|
|
11
|
+
*/
|
|
12
|
+
export declare function themeTokens(theme: ThemeV2, base?: Record<string, string>): Record<string, string>;
|
|
13
|
+
/**
|
|
14
|
+
* The overrides as the `theme` cascade layer, one declaration per line,
|
|
15
|
+
* sorted; '' when the theme sets nothing. A value that could break out of
|
|
16
|
+
* a declaration or the `<style>` element is dropped.
|
|
17
|
+
*/
|
|
18
|
+
export declare function themeCss(theme: ThemeV2, base?: Record<string, string>): string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { contrastRatio, fromOklch, parseColor, relativeLuminance, toHex, toOklch, type Oklch, type Rgb } from './color.js';
|
|
2
|
+
export { parseTheme, type ThemeDiagnostic } from './parse.js';
|
|
3
|
+
export { themeCss, themeTokens } from './derive.js';
|
|
4
|
+
export { checkTheme, CONTRAST_PAIRS } from './check.js';
|
|
5
|
+
export type { SemanticToken, ThemeV2 } from '@peripheries/runtime';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ThemeV2 } from '@peripheries/runtime';
|
|
2
|
+
export type ThemeDiagnostic = {
|
|
3
|
+
code: 'THEME_UNKNOWN_KEY' | 'THEME_BAD_VALUE' | 'THEME_UNKNOWN_TOKEN' | 'THEME_NOT_OBJECT' | 'THEME_CONTRAST';
|
|
4
|
+
path: string;
|
|
5
|
+
message: string;
|
|
6
|
+
severity: 'error' | 'warning';
|
|
7
|
+
};
|
|
8
|
+
/** A value that is safe to write into a declaration in a `<style>` element. */
|
|
9
|
+
export declare const isSafeCssValue: (value: string) => boolean;
|
|
10
|
+
/** `var(--name)` or `var(--name, fallback)`. */
|
|
11
|
+
export declare const VAR_REF: RegExp;
|
|
12
|
+
type Read = {
|
|
13
|
+
theme: ThemeV2;
|
|
14
|
+
diagnostics: ThemeDiagnostic[];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A template's theme as version 2. `version: 2` is validated as written; no
|
|
18
|
+
* version (or `version: 1`) is the legacy shape, mapped per
|
|
19
|
+
* design/core-and-tokens.md §6.1. Bad values are dropped with a diagnostic.
|
|
20
|
+
*/
|
|
21
|
+
export declare function parseTheme(raw: unknown): Read;
|
|
22
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peripheries/renderer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "The one renderer for pages of federated component bundles: a framework-free core, a React renderer, the runtime a page boots with, and golden pages for testing.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"types": "./dist/types/core/index.d.ts",
|
|
12
12
|
"default": "./dist/core.js"
|
|
13
13
|
},
|
|
14
|
+
"./theme": {
|
|
15
|
+
"types": "./dist/types/theme/index.d.ts",
|
|
16
|
+
"default": "./dist/theme.js"
|
|
17
|
+
},
|
|
14
18
|
"./catalog": {
|
|
15
19
|
"types": "./dist/types/catalog/index.d.ts",
|
|
16
20
|
"default": "./dist/catalog.js"
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
"README.md"
|
|
35
39
|
],
|
|
36
40
|
"dependencies": {
|
|
37
|
-
"@peripheries/runtime": "0.
|
|
41
|
+
"@peripheries/runtime": "0.7.0",
|
|
38
42
|
"ajv": "8.20.0"
|
|
39
43
|
},
|
|
40
44
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"load-6zEgvJ6I.js","names":[],"sources":["../../src/core/bundles/load.ts"],"mappings":";;AAkCA,SAAgB,kBAAkB,OAAiE;CACjG,IAAI,OAAO,UAAU,YAAY,OAAO;CACxC,IAAI,CAAC,SAAS,OAAO,UAAU,UAAU,OAAO;CAChD,MAAM,MAAO,MAAgC;CAC7C,OAAO,QA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AiB,KAAoE;CACvG,IAAI,IAAI,SAAS,UAAU,OAAO,IAAI,OAAO,IAAI;CACjD,OAAO,IAAI,gBAAgB,IAAI,WAAW,IAAI,SAAS,YAAY,IAAI,aAAa,IAAI,UAAU,IAAI,WAAW,IAAI;AACvH;AAcA,SAAgB,YAAY,OAAqB,MAAmB,QAA+B,WAAuC;CACxI,MAAM,QAAQ,IAAI,KAAK,UAAU,CAAC,EAAA,CAAG,KAAK,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;CAE1D,OAAO;EACL,OAFa,SAAS,KAAK,QAAQ,QAAQ,MAAM,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,MAAM,IAAI,IAAI,EAAE,KAAK,CAAC,CAAC,IAAI;EAG9H,UAAU,SAAS;GACjB,MAAM,MAAM,aAAa,KAAK,YAAY,SAAS;GACnD,MAAM,MAAM,OAAO,KAAK,MAAM,MAAM,WAAW,KAAK,CAAC,CAAC;GACtD,QAAQ,OAAO,MAAM,IAAI,IAAI,EAAE,MAAM;EACvC;CACF;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projection-Cd0DxvWm.js","names":[],"sources":["../../src/core/cells.ts","../../src/core/cell-props.ts","../../src/core/layout.ts","../../src/core/bundles/resolve.ts","../../src/core/store/scope-keys.ts","../../src/core/store/projection.ts"],"mappings":";AAQA,IAAa,uBAAuB;CAAC;CAAa;CAAS;CAAU;CAAc;CAAY;CAAa;CAAQ;CAAc;AAAS;AAG3I,IAAa,eAAe;CAAC;CAAc;CAAa;AAAM;AAG9D,IAAa,iBAAiB,CAAC,GAAG,qBAAqB,QAAQ,MAAM,MAAM,QAAQ,GAAG,GAAG,YAAY;AAcrG,SAAgB,cAAc,MAAgB,OAAO,QAAuD;CAC1G,MAAM,cAA4B,CAAC;CACnC,IAAI,KAAK,KAAK,OAAO;EAAE;EAAM;CAAY;CACzC,IAAI,KAAK,iBAAiB,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