nodality 1.3.23 → 1.3.25
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/dist/animator.cjs.js +1 -1
- package/dist/animator.cjs.js.LICENSE.txt +1 -1
- package/dist/animator.esm.js +1 -1
- package/dist/animator.esm.js.LICENSE.txt +1 -1
- package/dist/audionew.cjs.js +1 -1
- package/dist/audionew.cjs.js.LICENSE.txt +1 -1
- package/dist/audionew.esm.js +1 -1
- package/dist/audionew.esm.js.LICENSE.txt +1 -1
- package/dist/base.cjs.js +1 -1
- package/dist/base.cjs.js.LICENSE.txt +1 -1
- package/dist/base.esm.js +1 -1
- package/dist/base.esm.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.cjs.js +1 -1
- package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.esm.js +1 -1
- package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.cjs.js +1 -1
- package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.esm.js +1 -1
- package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
- package/dist/bundle.umd.js +1 -1
- package/dist/bundle.umd.js.LICENSE.txt +1 -1
- package/dist/button.cjs.js +1 -1
- package/dist/button.cjs.js.LICENSE.txt +1 -1
- package/dist/button.esm.js +1 -1
- package/dist/button.esm.js.LICENSE.txt +1 -1
- package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/card-getter.esm.js.LICENSE.txt +1 -1
- package/dist/center.cjs.js +1 -1
- package/dist/center.cjs.js.LICENSE.txt +1 -1
- package/dist/center.esm.js +1 -1
- package/dist/center.esm.js.LICENSE.txt +1 -1
- package/dist/checkbox.cjs.js +1 -1
- package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
- package/dist/checkbox.esm.js +1 -1
- package/dist/checkbox.esm.js.LICENSE.txt +1 -1
- package/dist/code.cjs.js +1 -1
- package/dist/code.cjs.js.LICENSE.txt +1 -1
- package/dist/code.esm.js +1 -1
- package/dist/code.esm.js.LICENSE.txt +1 -1
- package/dist/container.cjs.js +1 -1
- package/dist/container.cjs.js.LICENSE.txt +1 -1
- package/dist/container.esm.js +1 -1
- package/dist/container.esm.js.LICENSE.txt +1 -1
- package/dist/data-list.cjs.js.LICENSE.txt +1 -1
- package/dist/data-list.esm.js.LICENSE.txt +1 -1
- package/dist/designer.cjs.js +1 -1
- package/dist/designer.cjs.js.LICENSE.txt +1 -1
- package/dist/designer.esm.js +1 -1
- package/dist/designer.esm.js.LICENSE.txt +1 -1
- package/dist/element-mapper.cjs.js +1 -1
- package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
- package/dist/element-mapper.esm.js +1 -1
- package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
- package/dist/finalresult.esm.js +1 -1
- package/dist/finalresult.esm.js.LICENSE.txt +1 -1
- package/dist/flex-card.cjs.js +1 -1
- package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-card.esm.js +1 -1
- package/dist/flex-card.esm.js.LICENSE.txt +1 -1
- package/dist/flex-grid.cjs.js +1 -1
- package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-grid.esm.js +1 -1
- package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
- package/dist/flex-row.cjs.js +1 -1
- package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-row.esm.js +1 -1
- package/dist/flex-row.esm.js.LICENSE.txt +1 -1
- package/dist/floating-input.cjs.js +1 -1
- package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
- package/dist/floating-input.esm.js +1 -1
- package/dist/floating-input.esm.js.LICENSE.txt +1 -1
- package/dist/free.cjs.js +1 -1
- package/dist/free.cjs.js.LICENSE.txt +1 -1
- package/dist/free.esm.js +1 -1
- package/dist/free.esm.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
- package/dist/image-picker.cjs.js +1 -1
- package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
- package/dist/image-picker.esm.js +1 -1
- package/dist/image-picker.esm.js.LICENSE.txt +1 -1
- package/dist/image.cjs.js +1 -1
- package/dist/image.cjs.js.LICENSE.txt +1 -1
- package/dist/image.esm.js +1 -1
- package/dist/image.esm.js.LICENSE.txt +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.LICENSE.txt +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.LICENSE.txt +1 -1
- package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
- package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
- package/dist/link-getter.cjs.js +1 -1
- package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/link-getter.esm.js +1 -1
- package/dist/link-getter.esm.js.LICENSE.txt +1 -1
- package/dist/link.cjs.js +1 -1
- package/dist/link.cjs.js.LICENSE.txt +1 -1
- package/dist/link.esm.js +1 -1
- package/dist/link.esm.js.LICENSE.txt +1 -1
- package/dist/meta-adder.cjs.js +1 -1
- package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
- package/dist/meta-adder.esm.js +1 -1
- package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
- package/dist/modal-2025.cjs.js +1 -1
- package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/modal-2025.esm.js +1 -1
- package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.cjs.js +1 -1
- package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.esm.js +1 -1
- package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.cjs.js +1 -1
- package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.esm.js +1 -1
- package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/picker.cjs.js +1 -1
- package/dist/picker.cjs.js.LICENSE.txt +1 -1
- package/dist/picker.esm.js +1 -1
- package/dist/picker.esm.js.LICENSE.txt +1 -1
- package/dist/progress.cjs.js +1 -1
- package/dist/progress.cjs.js.LICENSE.txt +1 -1
- package/dist/progress.esm.js +1 -1
- package/dist/progress.esm.js.LICENSE.txt +1 -1
- package/dist/radio.cjs.js.LICENSE.txt +1 -1
- package/dist/radio.esm.js.LICENSE.txt +1 -1
- package/dist/range.cjs.js.LICENSE.txt +1 -1
- package/dist/range.esm.js.LICENSE.txt +1 -1
- package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
- package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
- package/dist/side-bar.cjs.js +1 -1
- package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-bar.esm.js +1 -1
- package/dist/side-bar.esm.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.cjs.js +1 -1
- package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.esm.js +1 -1
- package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/simple-bar.cjs.js +1 -1
- package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/simple-bar.esm.js +1 -1
- package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
- package/dist/slider-2025.cjs.js +1 -1
- package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/slider-2025.esm.js +1 -1
- package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
- package/dist/spacer.cjs.js +1 -1
- package/dist/spacer.cjs.js.LICENSE.txt +1 -1
- package/dist/spacer.esm.js +1 -1
- package/dist/spacer.esm.js.LICENSE.txt +1 -1
- package/dist/stack.cjs.js +1 -1
- package/dist/stack.cjs.js.LICENSE.txt +1 -1
- package/dist/stack.esm.js +1 -1
- package/dist/stack.esm.js.LICENSE.txt +1 -1
- package/dist/stacker.cjs.js.LICENSE.txt +1 -1
- package/dist/stacker.esm.js.LICENSE.txt +1 -1
- package/dist/table.cjs.js +1 -1
- package/dist/table.cjs.js.LICENSE.txt +1 -1
- package/dist/table.esm.js +1 -1
- package/dist/table.esm.js.LICENSE.txt +1 -1
- package/dist/text-field.cjs.js +1 -1
- package/dist/text-field.cjs.js.LICENSE.txt +1 -1
- package/dist/text-field.esm.js +1 -1
- package/dist/text-field.esm.js.LICENSE.txt +1 -1
- package/dist/text.cjs.js +1 -1
- package/dist/text.cjs.js.LICENSE.txt +1 -1
- package/dist/text.esm.js +1 -1
- package/dist/text.esm.js.LICENSE.txt +1 -1
- package/dist/theme.cjs.js.LICENSE.txt +1 -1
- package/dist/theme.esm.js.LICENSE.txt +1 -1
- package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
- package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
- package/dist/ulist.cjs.js +1 -1
- package/dist/ulist.cjs.js.LICENSE.txt +1 -1
- package/dist/ulist.esm.js +1 -1
- package/dist/ulist.esm.js.LICENSE.txt +1 -1
- package/dist/video.cjs.js +1 -1
- package/dist/video.cjs.js.LICENSE.txt +1 -1
- package/dist/video.esm.js +1 -1
- package/dist/video.esm.js.LICENSE.txt +1 -1
- package/dist/wrap.cjs.js +1 -1
- package/dist/wrap.cjs.js.LICENSE.txt +1 -1
- package/dist/wrap.esm.js +1 -1
- package/dist/wrap.esm.js.LICENSE.txt +1 -1
- package/dist/zoom-card.cjs.js +1 -1
- package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
- package/dist/zoom-card.esm.js +1 -1
- package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
- package/layout/animator.js +74 -54
- package/layout/audio.js +1 -1
- package/layout/audionew.js +1 -1
- package/layout/base.js +1 -1
- package/layout/beta-desktop-bar.js +6 -3
- package/layout/beta-mobile-bar.js +6 -4
- package/layout/button.js +1 -1
- package/layout/center.js +1 -1
- package/layout/checkbox.js +1 -1
- package/layout/circle.js +1 -1
- package/layout/code.js +1 -1
- package/layout/container.js +1 -1
- package/layout/dropdown-2025.js +1 -1
- package/layout/flex-card.js +1 -1
- package/layout/flex-grid.js +1 -1
- package/layout/flex-row.js +1 -1
- package/layout/form-components/custom.js +1 -1
- package/layout/form-components/data-list.js +1 -1
- package/layout/form-components/floating-input.js +1 -1
- package/layout/form-components/form-all.js +1 -1
- package/layout/form-components/form.js +1 -1
- package/layout/form-components/image-picker.js +1 -1
- package/layout/form-components/picker.js +1 -1
- package/layout/form-components/radio.js +1 -1
- package/layout/form-components/radiogroup.js +1 -1
- package/layout/form-components/range.js +1 -1
- package/layout/free.js +1 -1
- package/layout/grid-overlay.js +1 -1
- package/layout/grid-switcher.js +1 -1
- package/layout/grid.js +1 -1
- package/layout/horizontal-scroller.js +1 -1
- package/layout/image.js +1 -1
- package/layout/index.js +1 -1
- package/layout/link.js +1 -1
- package/layout/list.js +1 -1
- package/layout/meta-adder.js +1 -1
- package/layout/modal-2025.js +1 -1
- package/layout/morph.js +1 -1
- package/layout/multiswitcher.js +1 -1
- package/layout/nav-bar.js +1 -1
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/new-nav-bar.js +1 -1
- package/layout/polygon.js +1 -1
- package/layout/prerender-site.js +1 -1
- package/layout/prerender.js +1 -1
- package/layout/progress.js +1 -1
- package/layout/row.js +1 -1
- package/layout/scroll-video.js +1 -1
- package/layout/shop.js +1 -1
- package/layout/side-bar.js +1 -1
- package/layout/side-nav-bar.js +1 -1
- package/layout/simple-bar.js +1 -1
- package/layout/slider-2025.js +1 -1
- package/layout/spacer.js +1 -1
- package/layout/stack.js +1 -1
- package/layout/svg.js +1 -1
- package/layout/switcher.js +16 -32
- package/layout/table.js +1 -1
- package/layout/text-field.js +1 -1
- package/layout/text.js +1 -1
- package/layout/ulist.js +1 -1
- package/layout/video.js +14 -1
- package/layout/wrap.js +1 -1
- package/layout/zoom-card.js +1 -1
- package/lib/agent-surface.js +1 -1
- package/lib/card-getter.js +1 -1
- package/lib/check-page.js +1 -1
- package/lib/codegen.js +1 -1
- package/lib/data.js +1 -1
- package/lib/designer.js +1 -1
- package/lib/element-mapper.js +3 -1
- package/lib/element-params.generated.js +4 -4
- package/lib/grid-geometry.js +1 -1
- package/lib/keyframe-animation.js +1 -1
- package/lib/known-inert.js +1 -1
- package/lib/link-getter.js +1 -1
- package/lib/morph-node.js +1 -1
- package/lib/normalize-spec.js +1 -1
- package/lib/parse-html.js +1 -1
- package/lib/raster-inspect.js +1 -1
- package/lib/raster-ops.js +1 -1
- package/lib/raster-presets.js +1 -1
- package/lib/react.d.ts +30 -0
- package/lib/react.js +164 -0
- package/lib/resolve-refs.js +1 -1
- package/lib/scroll-video.js +1 -1
- package/lib/seo.js +1 -1
- package/lib/stacker.js +1 -1
- package/lib/suggest.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/transform-anim.js +1 -1
- package/lib/transition.js +17 -4
- package/lib/validate-nodes.js +1 -1
- package/lib/webmcp-adapter.js +1 -1
- package/package.json +18 -3
- package/schema.json +131 -0
package/lib/react.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Types for nodality/react. Hand-written: scripts/generate-types.mjs covers
|
|
2
|
+
// the main bundle (dist/index.d.ts), not the lib/ subpaths.
|
|
3
|
+
|
|
4
|
+
import type { CSSProperties, ReactElement } from "react";
|
|
5
|
+
|
|
6
|
+
/** Anything with Nodality's render(): every component class, e.g. Wrapper or Text. */
|
|
7
|
+
export interface NodalityRenderable {
|
|
8
|
+
render(): Node;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface NodalityProps {
|
|
12
|
+
/** Regime 1 — the specification's elements (E). */
|
|
13
|
+
elements?: Array<Record<string, unknown>>;
|
|
14
|
+
/** Regime 1 — its nodes (N). */
|
|
15
|
+
nodes?: Array<Record<string, unknown>>;
|
|
16
|
+
/** Regime 1 — definitions, passed to Des.defs(). */
|
|
17
|
+
defs?: Record<string, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Regime 2 — a factory returning a Nodality component. A factory rather than
|
|
20
|
+
* an instance so it is not rebuilt on every parent render; client-side only.
|
|
21
|
+
*/
|
|
22
|
+
view?: () => NodalityRenderable;
|
|
23
|
+
/** When to rebuild `view` — same meaning as useEffect's dependency array. */
|
|
24
|
+
deps?: ReadonlyArray<unknown>;
|
|
25
|
+
className?: string;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare function Nodality(props: NodalityProps): ReactElement;
|
|
30
|
+
export default Nodality;
|
package/lib/react.js
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* nodality v1.3.25
|
|
3
|
+
* (c) 2026 Filip Vabrousek
|
|
4
|
+
* License: MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
"use client";
|
|
8
|
+
|
|
9
|
+
/*!
|
|
10
|
+
* nodality/react — host a Nodality render inside a React tree.
|
|
11
|
+
*
|
|
12
|
+
* import Nodality from "nodality/react";
|
|
13
|
+
*
|
|
14
|
+
* <Nodality elements={E} nodes={N} /> // a specification
|
|
15
|
+
* <Nodality view={() => new Wrapper()...} deps={[x]} /> // component code you own
|
|
16
|
+
*
|
|
17
|
+
* Both of the library's regimes are first-class. The pair is what a
|
|
18
|
+
* generator emits and what the compiler consumes; the component classes are
|
|
19
|
+
* what the compiler EMITS, and what a developer takes ownership of
|
|
20
|
+
* afterwards. A React binding that supported only one of them would be
|
|
21
|
+
* describing half the library.
|
|
22
|
+
*
|
|
23
|
+
* They differ in exactly one respect: only the specification survives the
|
|
24
|
+
* build boundary. A specification is data, so a prerenderer can find it in
|
|
25
|
+
* the page (the <script data-nodality-for> this emits) and render it to HTML
|
|
26
|
+
* at build time. A `view` is a closure over your module graph — it cannot be
|
|
27
|
+
* serialised into the document, so it renders on the client only.
|
|
28
|
+
*
|
|
29
|
+
* Moved here from create-nodality-react's template (src/Nodality.jsx) so
|
|
30
|
+
* every React app imports one maintained copy. The markup it emits is
|
|
31
|
+
* unchanged, so that template's prerender.mjs keeps working.
|
|
32
|
+
*
|
|
33
|
+
* Plain JavaScript rather than JSX: bundlers do not compile JSX inside
|
|
34
|
+
* node_modules. "use client" marks it as a client component for the Next.js
|
|
35
|
+
* App Router; other bundlers ignore it. `Des` comes from "nodality" itself
|
|
36
|
+
* rather than ../layout, so an app that also imports "nodality" loads ONE
|
|
37
|
+
* copy of the library — two copies would mean two Theme singletons and two
|
|
38
|
+
* element registries.
|
|
39
|
+
*
|
|
40
|
+
* React 18 or later (useId). React is an optional peer dependency: nothing
|
|
41
|
+
* else in nodality needs it.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
import { createElement, Fragment, useEffect, useId, useMemo, useRef } from "react";
|
|
45
|
+
import { Des } from "nodality";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @param {object} props
|
|
49
|
+
* @param {Array<object>} [props.elements] Regime 1: the specification's elements (E).
|
|
50
|
+
* @param {Array<object>} [props.nodes] Regime 1: its nodes (N).
|
|
51
|
+
* @param {object} [props.defs] Regime 1: definitions, passed to Des.defs().
|
|
52
|
+
* @param {() => {render(): Node}} [props.view]
|
|
53
|
+
* Regime 2: a factory returning a Nodality component. A factory rather
|
|
54
|
+
* than an instance so it is not rebuilt on every parent render.
|
|
55
|
+
* @param {Array<unknown>} [props.deps] When to rebuild `view` — same meaning as useEffect's.
|
|
56
|
+
* @param {string} [props.className]
|
|
57
|
+
* @param {object} [props.style]
|
|
58
|
+
*/
|
|
59
|
+
export function Nodality({
|
|
60
|
+
elements,
|
|
61
|
+
nodes = [],
|
|
62
|
+
defs,
|
|
63
|
+
view,
|
|
64
|
+
deps = [],
|
|
65
|
+
className,
|
|
66
|
+
style,
|
|
67
|
+
}) {
|
|
68
|
+
const host = useRef(null);
|
|
69
|
+
|
|
70
|
+
// Des mounts by CSS selector, and React's useId contains ':' — invalid in a
|
|
71
|
+
// selector. Strip it. useId is stable across server and client, so the id
|
|
72
|
+
// still matches whatever a prerenderer wrote into the document.
|
|
73
|
+
const domId = "nod-" + useId().replace(/:/g, "");
|
|
74
|
+
|
|
75
|
+
// Key the effect on the SPECIFICATION by value, not on prop identity. A
|
|
76
|
+
// parent re-render creates fresh object literals every time; depending on
|
|
77
|
+
// those rebuilt the whole subtree on every keystroke, losing focus, scroll
|
|
78
|
+
// position and animation state.
|
|
79
|
+
const spec = useMemo(
|
|
80
|
+
() => (elements ? JSON.stringify({ elements, nodes, defs }) : null),
|
|
81
|
+
[elements, nodes, defs],
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
// Same problem, different shape: an inline `view={() => …}` is a new
|
|
85
|
+
// function every render. Hold the latest in a ref and rebuild only when the
|
|
86
|
+
// caller's own `deps` say to. Serialised rather than spread, because a
|
|
87
|
+
// dependency array that changes length between renders is a React error.
|
|
88
|
+
const viewRef = useRef(view);
|
|
89
|
+
viewRef.current = view;
|
|
90
|
+
const depsKey = useMemo(() => {
|
|
91
|
+
try { return JSON.stringify(deps); } catch { return String(deps); }
|
|
92
|
+
}, [deps]);
|
|
93
|
+
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
const el = host.current;
|
|
96
|
+
if (!el) return;
|
|
97
|
+
|
|
98
|
+
// Prerendered markup is static: it exists for crawlers and for first
|
|
99
|
+
// paint. The builder still has to run to attach behaviour, so replace it
|
|
100
|
+
// rather than adopt it.
|
|
101
|
+
el.innerHTML = "";
|
|
102
|
+
|
|
103
|
+
if (viewRef.current) {
|
|
104
|
+
// render() with no argument returns a detached node rather than
|
|
105
|
+
// mounting, so nothing escapes this host.
|
|
106
|
+
el.appendChild(viewRef.current().render());
|
|
107
|
+
} else if (elements) {
|
|
108
|
+
const d = new Des();
|
|
109
|
+
if (defs) d.defs(defs);
|
|
110
|
+
d.nodes(nodes)
|
|
111
|
+
.add(elements)
|
|
112
|
+
.set({ mount: "#" + domId, code: false, elements: false, layout: false });
|
|
113
|
+
|
|
114
|
+
// Des.set() appends a <pre> and a <textarea id="elements"> to
|
|
115
|
+
// document.body — the on-page code panel. `code: false` only hides them,
|
|
116
|
+
// so without this every mount leaks two nodes and every instance after
|
|
117
|
+
// the first duplicates id="elements". Reaching for the instance's own
|
|
118
|
+
// handles removes exactly what this render created, rather than querying
|
|
119
|
+
// the page for the first match.
|
|
120
|
+
d._preEl?.remove();
|
|
121
|
+
d._codeEl?.remove();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return () => {
|
|
125
|
+
el.innerHTML = "";
|
|
126
|
+
};
|
|
127
|
+
// `spec` and `depsKey` cover the inputs by value; that is the point.
|
|
128
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
129
|
+
}, [spec, depsKey, domId]);
|
|
130
|
+
|
|
131
|
+
return createElement(
|
|
132
|
+
Fragment,
|
|
133
|
+
null,
|
|
134
|
+
// A prerenderer writes HTML into this div AFTER React has rendered it, so
|
|
135
|
+
// React's virtual tree says "empty" while the DOM says otherwise.
|
|
136
|
+
// suppressHydrationWarning is not enough — it covers attributes and text,
|
|
137
|
+
// not extra element children, and hydration fails with React #418/#423
|
|
138
|
+
// and silently re-renders the whole root on the client. An empty
|
|
139
|
+
// dangerouslySetInnerHTML is the documented escape for externally-managed
|
|
140
|
+
// DOM: React stops reconciling this subtree entirely, which is exactly
|
|
141
|
+
// the contract wanted. It also means the built output survives every
|
|
142
|
+
// subsequent React render, since the prop value never changes.
|
|
143
|
+
createElement("div", {
|
|
144
|
+
id: domId,
|
|
145
|
+
ref: host,
|
|
146
|
+
className,
|
|
147
|
+
style,
|
|
148
|
+
suppressHydrationWarning: true,
|
|
149
|
+
dangerouslySetInnerHTML: { __html: "" },
|
|
150
|
+
}),
|
|
151
|
+
// A specification travels with the page so a prerenderer can find it
|
|
152
|
+
// without knowing anything about the app's component tree. A `view` has
|
|
153
|
+
// nothing to emit here — code does not cross the build boundary. '<' is
|
|
154
|
+
// escaped so a string containing </script> cannot close it.
|
|
155
|
+
spec &&
|
|
156
|
+
createElement("script", {
|
|
157
|
+
type: "application/json",
|
|
158
|
+
"data-nodality-for": domId,
|
|
159
|
+
dangerouslySetInnerHTML: { __html: spec.replace(/</g, "\\u003c") },
|
|
160
|
+
}),
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export default Nodality;
|
package/lib/resolve-refs.js
CHANGED
package/lib/scroll-video.js
CHANGED
package/lib/seo.js
CHANGED
package/lib/stacker.js
CHANGED
package/lib/suggest.js
CHANGED
package/lib/theme.js
CHANGED
package/lib/transform-anim.js
CHANGED
package/lib/transition.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.3.
|
|
2
|
+
* nodality v1.3.25
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -74,7 +74,9 @@ function progressTimeline(pipeline, opts = {}) {
|
|
|
74
74
|
let raf = 0;
|
|
75
75
|
let from = pipeline.progress || 0;
|
|
76
76
|
let to = from;
|
|
77
|
-
let startedAt = 0;
|
|
77
|
+
let startedAt = 0; // 0 until the journey's first frame
|
|
78
|
+
let lastAt = 0;
|
|
79
|
+
let elapsed = 0; // ms of the journey shown so far
|
|
78
80
|
let span = 0; // ms this particular journey should take
|
|
79
81
|
let running = false;
|
|
80
82
|
let pending = null; // resolve of the in-flight to()
|
|
@@ -89,9 +91,19 @@ function progressTimeline(pipeline, opts = {}) {
|
|
|
89
91
|
if (done) done(pipeline.progress);
|
|
90
92
|
};
|
|
91
93
|
|
|
94
|
+
// The clock starts at the journey's FIRST FRAME, not at to(), and one
|
|
95
|
+
// late frame advances it by at most a sixth of the journey. It used to
|
|
96
|
+
// be wall time since to(): building both views and compiling the
|
|
97
|
+
// shader can take longer than the whole transition on a busy machine,
|
|
98
|
+
// so the first frame already computed t = 1 — the page arrived without
|
|
99
|
+
// any motion, which is the thing a morph exists to show. Now a slow
|
|
100
|
+
// device gets a slower transition rather than none.
|
|
92
101
|
const frame = () => {
|
|
93
102
|
if (destroyed) return;
|
|
94
|
-
const
|
|
103
|
+
const t = now();
|
|
104
|
+
if (!startedAt) { startedAt = t; lastAt = t; }
|
|
105
|
+
elapsed += Math.min(t - lastAt, Math.max(span / 6, 50));
|
|
106
|
+
lastAt = t;
|
|
95
107
|
const x = span <= 0 ? 1 : Math.min(1, elapsed / span);
|
|
96
108
|
pipeline.setProgress(from + (to - from) * easing(x));
|
|
97
109
|
if (x >= 1) return settle();
|
|
@@ -136,7 +148,8 @@ function progressTimeline(pipeline, opts = {}) {
|
|
|
136
148
|
if (dist < 1e-4) { pipeline.setProgress(dest); return Promise.resolve(dest); }
|
|
137
149
|
// Distance-scaled: a correction from 0.9 to 1 is brief.
|
|
138
150
|
span = (o.duration != null ? o.duration : duration) * dist;
|
|
139
|
-
startedAt =
|
|
151
|
+
startedAt = 0;
|
|
152
|
+
elapsed = 0;
|
|
140
153
|
running = true;
|
|
141
154
|
raf = requestAnimationFrame(frame);
|
|
142
155
|
return new Promise((res) => { pending = res; });
|
package/lib/validate-nodes.js
CHANGED
package/lib/webmcp-adapter.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodality",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.25",
|
|
4
4
|
"description": "A lightweight library for declarative UI elements.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -39,7 +39,12 @@
|
|
|
39
39
|
"./inspect": "./lib/raster-inspect.js",
|
|
40
40
|
"./examples/*": "./examples/*.js",
|
|
41
41
|
"./transition": "./lib/transition.js",
|
|
42
|
-
"./designer": "./lib/designer.js"
|
|
42
|
+
"./designer": "./lib/designer.js",
|
|
43
|
+
"./react": {
|
|
44
|
+
"types": "./lib/react.d.ts",
|
|
45
|
+
"import": "./lib/react.js",
|
|
46
|
+
"default": "./lib/react.js"
|
|
47
|
+
}
|
|
43
48
|
},
|
|
44
49
|
"publishConfig": {
|
|
45
50
|
"access": "public",
|
|
@@ -91,8 +96,18 @@
|
|
|
91
96
|
"babel-loader": "^10.0.0",
|
|
92
97
|
"jsdom": "^29.1.1",
|
|
93
98
|
"playwright": "^1.54.1",
|
|
99
|
+
"react": "^18.3.1",
|
|
100
|
+
"react-dom": "^18.3.1",
|
|
94
101
|
"serve": "^14.2.6",
|
|
95
102
|
"webpack-cli": "^6.0.1"
|
|
96
103
|
},
|
|
97
|
-
"types": "dist/index.d.ts"
|
|
104
|
+
"types": "dist/index.d.ts",
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"react": ">=18"
|
|
107
|
+
},
|
|
108
|
+
"peerDependenciesMeta": {
|
|
109
|
+
"react": {
|
|
110
|
+
"optional": true
|
|
111
|
+
}
|
|
112
|
+
}
|
|
98
113
|
}
|
package/schema.json
CHANGED
|
@@ -172,6 +172,11 @@
|
|
|
172
172
|
"unit": "color",
|
|
173
173
|
"description": "Text colour — any CSS colour."
|
|
174
174
|
},
|
|
175
|
+
{
|
|
176
|
+
"name": "colorScheme",
|
|
177
|
+
"via": "component",
|
|
178
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
179
|
+
},
|
|
175
180
|
{
|
|
176
181
|
"name": "cols",
|
|
177
182
|
"via": "component",
|
|
@@ -781,6 +786,11 @@
|
|
|
781
786
|
"unit": "color",
|
|
782
787
|
"description": "Text colour — any CSS colour."
|
|
783
788
|
},
|
|
789
|
+
{
|
|
790
|
+
"name": "colorScheme",
|
|
791
|
+
"via": "component",
|
|
792
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
793
|
+
},
|
|
784
794
|
{
|
|
785
795
|
"name": "cols",
|
|
786
796
|
"via": "component",
|
|
@@ -1390,6 +1400,11 @@
|
|
|
1390
1400
|
"unit": "color",
|
|
1391
1401
|
"description": "Text colour — any CSS colour."
|
|
1392
1402
|
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "colorScheme",
|
|
1405
|
+
"via": "component",
|
|
1406
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
1407
|
+
},
|
|
1393
1408
|
{
|
|
1394
1409
|
"name": "cols",
|
|
1395
1410
|
"via": "component",
|
|
@@ -1999,6 +2014,11 @@
|
|
|
1999
2014
|
"unit": "color",
|
|
2000
2015
|
"description": "Text colour — any CSS colour."
|
|
2001
2016
|
},
|
|
2017
|
+
{
|
|
2018
|
+
"name": "colorScheme",
|
|
2019
|
+
"via": "component",
|
|
2020
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
2021
|
+
},
|
|
2002
2022
|
{
|
|
2003
2023
|
"name": "cols",
|
|
2004
2024
|
"via": "component",
|
|
@@ -2608,6 +2628,11 @@
|
|
|
2608
2628
|
"unit": "color",
|
|
2609
2629
|
"description": "Text colour — any CSS colour."
|
|
2610
2630
|
},
|
|
2631
|
+
{
|
|
2632
|
+
"name": "colorScheme",
|
|
2633
|
+
"via": "component",
|
|
2634
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
2635
|
+
},
|
|
2611
2636
|
{
|
|
2612
2637
|
"name": "cols",
|
|
2613
2638
|
"via": "component",
|
|
@@ -3217,6 +3242,11 @@
|
|
|
3217
3242
|
"unit": "color",
|
|
3218
3243
|
"description": "Text colour — any CSS colour."
|
|
3219
3244
|
},
|
|
3245
|
+
{
|
|
3246
|
+
"name": "colorScheme",
|
|
3247
|
+
"via": "component",
|
|
3248
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
3249
|
+
},
|
|
3220
3250
|
{
|
|
3221
3251
|
"name": "cols",
|
|
3222
3252
|
"via": "component",
|
|
@@ -3826,6 +3856,11 @@
|
|
|
3826
3856
|
"unit": "color",
|
|
3827
3857
|
"description": "Text colour — any CSS colour."
|
|
3828
3858
|
},
|
|
3859
|
+
{
|
|
3860
|
+
"name": "colorScheme",
|
|
3861
|
+
"via": "component",
|
|
3862
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
3863
|
+
},
|
|
3829
3864
|
{
|
|
3830
3865
|
"name": "cols",
|
|
3831
3866
|
"via": "component",
|
|
@@ -4420,6 +4455,11 @@
|
|
|
4420
4455
|
"unit": "color",
|
|
4421
4456
|
"description": "Text colour — any CSS colour."
|
|
4422
4457
|
},
|
|
4458
|
+
{
|
|
4459
|
+
"name": "colorScheme",
|
|
4460
|
+
"via": "component",
|
|
4461
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
4462
|
+
},
|
|
4423
4463
|
{
|
|
4424
4464
|
"name": "cols",
|
|
4425
4465
|
"via": "component",
|
|
@@ -5000,6 +5040,11 @@
|
|
|
5000
5040
|
"unit": "color",
|
|
5001
5041
|
"description": "Text colour — any CSS colour."
|
|
5002
5042
|
},
|
|
5043
|
+
{
|
|
5044
|
+
"name": "colorScheme",
|
|
5045
|
+
"via": "component",
|
|
5046
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
5047
|
+
},
|
|
5003
5048
|
{
|
|
5004
5049
|
"name": "cols",
|
|
5005
5050
|
"via": "component",
|
|
@@ -5654,6 +5699,11 @@
|
|
|
5654
5699
|
"unit": "color",
|
|
5655
5700
|
"description": "Text colour — any CSS colour."
|
|
5656
5701
|
},
|
|
5702
|
+
{
|
|
5703
|
+
"name": "colorScheme",
|
|
5704
|
+
"via": "component",
|
|
5705
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
5706
|
+
},
|
|
5657
5707
|
{
|
|
5658
5708
|
"name": "cols",
|
|
5659
5709
|
"via": "component",
|
|
@@ -6561,6 +6611,12 @@
|
|
|
6561
6611
|
"via": "mapper",
|
|
6562
6612
|
"description": "The name at the start of the bar: a string, or an element spec ({type: \"p\", text, keySet, …}) for full control of its type."
|
|
6563
6613
|
},
|
|
6614
|
+
{
|
|
6615
|
+
"name": "brandLink",
|
|
6616
|
+
"via": "mapper",
|
|
6617
|
+
"unit": "url",
|
|
6618
|
+
"description": "Where the brand leads, e.g. \"/\". Without it the brand is not a link."
|
|
6619
|
+
},
|
|
6564
6620
|
{
|
|
6565
6621
|
"name": "breakWord",
|
|
6566
6622
|
"via": "component",
|
|
@@ -6623,6 +6679,11 @@
|
|
|
6623
6679
|
"unit": "color",
|
|
6624
6680
|
"description": "Colour of the links, a string brand and, unless hamburgerColour is given, the menu button."
|
|
6625
6681
|
},
|
|
6682
|
+
{
|
|
6683
|
+
"name": "colorScheme",
|
|
6684
|
+
"via": "component",
|
|
6685
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
6686
|
+
},
|
|
6626
6687
|
{
|
|
6627
6688
|
"name": "cols",
|
|
6628
6689
|
"via": "component",
|
|
@@ -8306,6 +8367,11 @@
|
|
|
8306
8367
|
"unit": "color",
|
|
8307
8368
|
"description": "Text colour — any CSS colour."
|
|
8308
8369
|
},
|
|
8370
|
+
{
|
|
8371
|
+
"name": "colorScheme",
|
|
8372
|
+
"via": "component",
|
|
8373
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
8374
|
+
},
|
|
8309
8375
|
{
|
|
8310
8376
|
"name": "cols",
|
|
8311
8377
|
"via": "component",
|
|
@@ -8980,6 +9046,11 @@
|
|
|
8980
9046
|
"unit": "color",
|
|
8981
9047
|
"description": "Text colour — any CSS colour."
|
|
8982
9048
|
},
|
|
9049
|
+
{
|
|
9050
|
+
"name": "colorScheme",
|
|
9051
|
+
"via": "component",
|
|
9052
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
9053
|
+
},
|
|
8983
9054
|
{
|
|
8984
9055
|
"name": "cols",
|
|
8985
9056
|
"via": "component",
|
|
@@ -9607,6 +9678,11 @@
|
|
|
9607
9678
|
"unit": "color",
|
|
9608
9679
|
"description": "Text colour — any CSS colour."
|
|
9609
9680
|
},
|
|
9681
|
+
{
|
|
9682
|
+
"name": "colorScheme",
|
|
9683
|
+
"via": "component",
|
|
9684
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
9685
|
+
},
|
|
9610
9686
|
{
|
|
9611
9687
|
"name": "cols",
|
|
9612
9688
|
"via": "component",
|
|
@@ -10039,6 +10115,12 @@
|
|
|
10039
10115
|
"unit": "url",
|
|
10040
10116
|
"description": "Image shown before the first frame decodes. Give one on any autoplaying clip: it is what holds the layout still and what reduced-motion visitors see instead of the video."
|
|
10041
10117
|
},
|
|
10118
|
+
{
|
|
10119
|
+
"name": "posterBehind",
|
|
10120
|
+
"via": "component",
|
|
10121
|
+
"unit": "bool",
|
|
10122
|
+
"description": "Also paint the poster behind the frame, sized like it (objectFit). On by default whenever there is a poster; pass false for a clip with transparency, which would show it through."
|
|
10123
|
+
},
|
|
10042
10124
|
{
|
|
10043
10125
|
"name": "preload",
|
|
10044
10126
|
"via": "component",
|
|
@@ -10277,6 +10359,11 @@
|
|
|
10277
10359
|
"unit": "color",
|
|
10278
10360
|
"description": "Text colour — any CSS colour."
|
|
10279
10361
|
},
|
|
10362
|
+
{
|
|
10363
|
+
"name": "colorScheme",
|
|
10364
|
+
"via": "component",
|
|
10365
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
10366
|
+
},
|
|
10280
10367
|
{
|
|
10281
10368
|
"name": "cols",
|
|
10282
10369
|
"via": "component",
|
|
@@ -11283,6 +11370,11 @@
|
|
|
11283
11370
|
"unit": "color",
|
|
11284
11371
|
"description": "Text colour — any CSS colour."
|
|
11285
11372
|
},
|
|
11373
|
+
{
|
|
11374
|
+
"name": "colorScheme",
|
|
11375
|
+
"via": "component",
|
|
11376
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
11377
|
+
},
|
|
11286
11378
|
{
|
|
11287
11379
|
"name": "cols",
|
|
11288
11380
|
"via": "component",
|
|
@@ -12089,6 +12181,11 @@
|
|
|
12089
12181
|
"unit": "color",
|
|
12090
12182
|
"description": "Text colour — any CSS colour."
|
|
12091
12183
|
},
|
|
12184
|
+
{
|
|
12185
|
+
"name": "colorScheme",
|
|
12186
|
+
"via": "component",
|
|
12187
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
12188
|
+
},
|
|
12092
12189
|
{
|
|
12093
12190
|
"name": "cols",
|
|
12094
12191
|
"via": "component",
|
|
@@ -12941,6 +13038,10 @@
|
|
|
12941
13038
|
"name": "brand",
|
|
12942
13039
|
"via": "mapper"
|
|
12943
13040
|
},
|
|
13041
|
+
{
|
|
13042
|
+
"name": "brandLink",
|
|
13043
|
+
"via": "mapper"
|
|
13044
|
+
},
|
|
12944
13045
|
{
|
|
12945
13046
|
"name": "breakWord",
|
|
12946
13047
|
"via": "component",
|
|
@@ -13006,6 +13107,11 @@
|
|
|
13006
13107
|
"unit": "color",
|
|
13007
13108
|
"description": "Text colour — any CSS colour."
|
|
13008
13109
|
},
|
|
13110
|
+
{
|
|
13111
|
+
"name": "colorScheme",
|
|
13112
|
+
"via": "component",
|
|
13113
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
13114
|
+
},
|
|
13009
13115
|
{
|
|
13010
13116
|
"name": "cols",
|
|
13011
13117
|
"via": "component",
|
|
@@ -13914,6 +14020,11 @@
|
|
|
13914
14020
|
"unit": "color",
|
|
13915
14021
|
"description": "Text colour — any CSS colour."
|
|
13916
14022
|
},
|
|
14023
|
+
{
|
|
14024
|
+
"name": "colorScheme",
|
|
14025
|
+
"via": "component",
|
|
14026
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
14027
|
+
},
|
|
13917
14028
|
{
|
|
13918
14029
|
"name": "cols",
|
|
13919
14030
|
"via": "component",
|
|
@@ -14333,6 +14444,11 @@
|
|
|
14333
14444
|
"unit": "color",
|
|
14334
14445
|
"description": "Text colour — any CSS colour."
|
|
14335
14446
|
},
|
|
14447
|
+
{
|
|
14448
|
+
"name": "colorScheme",
|
|
14449
|
+
"via": "component",
|
|
14450
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
14451
|
+
},
|
|
14336
14452
|
{
|
|
14337
14453
|
"name": "cols",
|
|
14338
14454
|
"via": "component",
|
|
@@ -14758,6 +14874,11 @@
|
|
|
14758
14874
|
"unit": "color",
|
|
14759
14875
|
"description": "Text colour — any CSS colour."
|
|
14760
14876
|
},
|
|
14877
|
+
{
|
|
14878
|
+
"name": "colorScheme",
|
|
14879
|
+
"via": "component",
|
|
14880
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
14881
|
+
},
|
|
14761
14882
|
{
|
|
14762
14883
|
"name": "cols",
|
|
14763
14884
|
"via": "component",
|
|
@@ -15177,6 +15298,11 @@
|
|
|
15177
15298
|
"unit": "color",
|
|
15178
15299
|
"description": "Text colour — any CSS colour."
|
|
15179
15300
|
},
|
|
15301
|
+
{
|
|
15302
|
+
"name": "colorScheme",
|
|
15303
|
+
"via": "component",
|
|
15304
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
15305
|
+
},
|
|
15180
15306
|
{
|
|
15181
15307
|
"name": "cols",
|
|
15182
15308
|
"via": "component",
|
|
@@ -15596,6 +15722,11 @@
|
|
|
15596
15722
|
"unit": "color",
|
|
15597
15723
|
"description": "Text colour — any CSS colour."
|
|
15598
15724
|
},
|
|
15725
|
+
{
|
|
15726
|
+
"name": "colorScheme",
|
|
15727
|
+
"via": "component",
|
|
15728
|
+
"description": "CSS color-scheme, e.g. \"light\": the scheme the browser draws this element's native parts in (form controls, the option list of a select) and its descendants'. A page that declares `<meta name=\"color-scheme\" content=\"light dark\">` to keep Chrome's auto dark mode off still gets dark controls for visitors in dark mode; colorScheme \"light\" on its sections keeps them light."
|
|
15729
|
+
},
|
|
15599
15730
|
{
|
|
15600
15731
|
"name": "cols",
|
|
15601
15732
|
"via": "component",
|