@plitzi/sdk-authoring 0.38.3 → 0.38.4
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/CHANGELOG.md +193 -0
- package/dist/index.d.ts +310 -31
- package/dist/index.js +1604 -436
- package/dist/node.d.ts +8 -0
- package/dist/node.js +28 -1
- package/package.json +6 -6
- package/skills/plitzi-authoring/CHEATSHEET.md +5 -3
- package/skills/plitzi-authoring/SKILL.md +5 -2
- package/skills/plitzi-authoring/recipes/accordion.ts +58 -0
- package/skills/plitzi-authoring/recipes/link-to-a-section.ts +1 -1
- package/skills/plitzi-authoring/recipes/server-data.ts +65 -0
- package/skills/plitzi-authoring/recipes/style-a-page.ts +1 -1
- package/skills/plitzi-authoring/reference/accessibility.md +6 -2
- package/skills/plitzi-authoring/reference/authoring-errors.md +8 -3
- package/skills/plitzi-authoring/reference/colours-and-motion.md +5 -1
- package/skills/plitzi-authoring/reference/data-and-visibility.md +26 -16
- package/skills/plitzi-authoring/reference/efficiency.md +10 -1
- package/skills/plitzi-authoring/reference/elements-and-styles.md +5 -9
- package/skills/plitzi-authoring/reference/lists.md +1 -1
- package/skills/plitzi-authoring/reference/review-checklist.md +14 -2
- package/skills/plitzi-authoring/reference/snippets-and-export.md +2 -2
- package/skills/plitzi-authoring/reference/templates.md +1 -1
- package/skills/plitzi-authoring/reference/testing.md +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -289,6 +289,14 @@ export declare const addNotification: (params: {
|
|
|
289
289
|
autoDismissTimeout?: number;
|
|
290
290
|
}) => StepSpec;
|
|
291
291
|
|
|
292
|
+
/**
|
|
293
|
+
* Where each region of one picture sits in the other, from their row profiles — so two pages of different heights are
|
|
294
|
+
* compared section by section, not row for row: one section 400 px taller pushes everything under it down, and compared
|
|
295
|
+
* row for row every one of them would differ. Regions are placed from the top down; a row no region holds keeps the
|
|
296
|
+
* shift of the row above it.
|
|
297
|
+
*/
|
|
298
|
+
export declare const alignPictures: (a: RowProfile, b: RowProfile, regions: PictureRegion[]) => PictureAlignment;
|
|
299
|
+
|
|
292
300
|
/**
|
|
293
301
|
* One refusal a document is allowed to carry, named exactly: which check, on which element, and why.
|
|
294
302
|
*
|
|
@@ -749,10 +757,25 @@ export declare const AUTHORING_CODES: {
|
|
|
749
757
|
readonly means: "an id a binding, a template or a test cannot name";
|
|
750
758
|
readonly fix: "a letter first, then letters, digits, `-` and `_`: `'hero-title'`";
|
|
751
759
|
};
|
|
760
|
+
readonly 'controls-no-anchor': {
|
|
761
|
+
readonly kind: "warned";
|
|
762
|
+
readonly means: "a button's `controls` naming no anchor — `aria-controls` points at nothing";
|
|
763
|
+
readonly fix: "an `anchor` on the element it shows and hides, and `controls` naming it";
|
|
764
|
+
};
|
|
765
|
+
readonly 'quiet-unknown': {
|
|
766
|
+
readonly kind: "refused";
|
|
767
|
+
readonly means: "an element's `quiet` naming something that is not a suggestion's code — a problem is never quieted";
|
|
768
|
+
readonly fix: "the code of the suggestion it was offered: `quiet: ['repeated-shape']`";
|
|
769
|
+
};
|
|
770
|
+
readonly 'controls-unknown': {
|
|
771
|
+
readonly kind: "refused";
|
|
772
|
+
readonly means: "a button's `controls` naming no element of the space";
|
|
773
|
+
readonly fix: "the id of the element it shows and hides: `controls: 'faq-answer'`";
|
|
774
|
+
};
|
|
752
775
|
readonly 'id-taken': {
|
|
753
776
|
readonly kind: "refused";
|
|
754
777
|
readonly means: "two elements with one id — ids are one namespace for the whole space";
|
|
755
|
-
readonly fix: "
|
|
778
|
+
readonly fix: "a name taken by a page or a layout: a name of its own; a helper called twice: `scope('promos', ref => …)`, every id inside prefixed";
|
|
756
779
|
};
|
|
757
780
|
readonly 'id-shadows-global': {
|
|
758
781
|
readonly kind: "refused";
|
|
@@ -931,8 +954,8 @@ export declare const AUTHORING_CODES: {
|
|
|
931
954
|
};
|
|
932
955
|
readonly 'span-holds-block': {
|
|
933
956
|
readonly kind: "warned";
|
|
934
|
-
readonly means: "a `container
|
|
935
|
-
readonly fix: "a `div` (leave `subType` out), or words: a `text
|
|
957
|
+
readonly means: "a `container` with `subType: 'span'` or `'p'` holding a heading, a paragraph, a list, a form or prose";
|
|
958
|
+
readonly fix: "a `div` (leave `subType` out), or words and inline elements: a `text`, a `link`";
|
|
936
959
|
};
|
|
937
960
|
readonly 'part-missing': {
|
|
938
961
|
readonly kind: "refused";
|
|
@@ -1019,10 +1042,20 @@ export declare const AUTHORING_CODES: {
|
|
|
1019
1042
|
readonly means: "an `apiContainer` that asks nothing";
|
|
1020
1043
|
readonly fix: "a `query` (or `action`, `connector`, `resource`)";
|
|
1021
1044
|
};
|
|
1045
|
+
readonly 'path-not-in-data': {
|
|
1046
|
+
readonly kind: "warned";
|
|
1047
|
+
readonly means: "a binding onto a provider whose answer the author could read (`data`), through a path that answer does not have";
|
|
1048
|
+
readonly fix: "the path the message lists the keys for — `p.data.plans`, not `p.data.landing.plans`";
|
|
1049
|
+
};
|
|
1050
|
+
readonly 'server-provider-in-component': {
|
|
1051
|
+
readonly kind: "refused";
|
|
1052
|
+
readonly means: "a `runtime: 'server'` element inside a component: the page server resolves a page's and its layouts', never a component's";
|
|
1053
|
+
readonly fix: "put the provider on the page, around the instance, and hand the component its rows as a prop";
|
|
1054
|
+
};
|
|
1022
1055
|
readonly 'server-data-without-rsc': {
|
|
1023
1056
|
readonly kind: "warned";
|
|
1024
|
-
readonly means: "a `runtime: 'server'` provider
|
|
1025
|
-
readonly fix: "`rsc: { enabled:
|
|
1057
|
+
readonly means: "a `runtime: 'server'` provider — `connector`, `action` or `query` — in a space that turns server data off (`rsc: { enabled: false }`)";
|
|
1058
|
+
readonly fix: "drop `rsc: { enabled: false }`: server data is on unless a space turns it off";
|
|
1026
1059
|
};
|
|
1027
1060
|
readonly 'route-param-undeclared': {
|
|
1028
1061
|
readonly kind: "warned";
|
|
@@ -1571,6 +1604,8 @@ export declare interface AuthoringProps {
|
|
|
1571
1604
|
motion?: ElementMotion;
|
|
1572
1605
|
/** The feature flag it exists under: `'newCheckout'` while on, `'!newCheckout'` while off. Not a visibility. */
|
|
1573
1606
|
flag?: string;
|
|
1607
|
+
/** Suggestions it is not offered, written this way on purpose: `quiet: ['repeated-shape']`. Never a problem. */
|
|
1608
|
+
quiet?: SuggestionCode[];
|
|
1574
1609
|
children?: ElementSpec[];
|
|
1575
1610
|
/** What the builder shows, not what the runtime reads. */
|
|
1576
1611
|
meta?: SpecMeta;
|
|
@@ -1671,6 +1706,13 @@ export declare interface AuthorSpaceOptions {
|
|
|
1671
1706
|
strictParams?: boolean;
|
|
1672
1707
|
params?: ParamSpec;
|
|
1673
1708
|
}>>;
|
|
1709
|
+
/**
|
|
1710
|
+
* What a provider's `query` answers, when the author can read it — a JSON file the project serves; `publicData` from
|
|
1711
|
+
* `@plitzi/sdk-authoring/node` reads them from `public/`. Every binding onto that provider is held to the answer: a
|
|
1712
|
+
* path it does not have is warned (`path-not-in-data`), with the keys it does. `undefined` for a query it cannot
|
|
1713
|
+
* answer, which is left unchecked.
|
|
1714
|
+
*/
|
|
1715
|
+
data?: (query: string) => unknown;
|
|
1674
1716
|
}
|
|
1675
1717
|
|
|
1676
1718
|
export declare const authRefreshDetails: () => StepSpec;
|
|
@@ -1897,6 +1939,7 @@ export declare const button: ElementFactory<Partial<{
|
|
|
1897
1939
|
title?: string | undefined;
|
|
1898
1940
|
content?: string | undefined;
|
|
1899
1941
|
disabled?: boolean | undefined;
|
|
1942
|
+
controls?: string | undefined;
|
|
1900
1943
|
icon?: string | undefined;
|
|
1901
1944
|
subType?: "button" | "submit" | "reset" | undefined;
|
|
1902
1945
|
iconPlacement?: IconPlacement | undefined;
|
|
@@ -2103,12 +2146,31 @@ declare type Combinator = 'and' | 'or';
|
|
|
2103
2146
|
*/
|
|
2104
2147
|
export declare const compactSvg: (markup: string) => string;
|
|
2105
2148
|
|
|
2149
|
+
export declare interface CompareOptions {
|
|
2150
|
+
/** The parts of the page a difference is told by (`pageRegions`). */
|
|
2151
|
+
regions?: PictureRegion[];
|
|
2152
|
+
/** How far apart two channels may be and still count as the same pixel (0–255); 32 by default. */
|
|
2153
|
+
tolerance?: number;
|
|
2154
|
+
/**
|
|
2155
|
+
* Whether each region is compared with where it sits in the second picture rather than row for row — for two
|
|
2156
|
+
* different pages, which seldom measure the same; never for two frames of one page, which do.
|
|
2157
|
+
*/
|
|
2158
|
+
align?: boolean;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2106
2161
|
/** Two pictures compared in a page the driver holds — any page will do, nothing of it is read. */
|
|
2107
|
-
export declare const comparePictures: (driver: PictureDriver, a: string, b: string, regions
|
|
2162
|
+
export declare const comparePictures: (driver: PictureDriver, a: string, b: string, { regions, tolerance, align }?: CompareOptions) => Promise<PictureDiff>;
|
|
2108
2163
|
|
|
2109
2164
|
/** Every observable way `actual` differs from `expected`. Empty means they render the same space. */
|
|
2110
2165
|
export declare const compareSpaces: (expected: SpaceDocuments, actual: SpaceDocuments) => SpaceDifference[];
|
|
2111
2166
|
|
|
2167
|
+
/**
|
|
2168
|
+
* The texts of two pages paired by their words — the second "Pricing" with the second "Pricing" — and what each pair
|
|
2169
|
+
* does differently on the second page. `shiftAt` says how far down the second page the rows around a point of the first
|
|
2170
|
+
* are, when the two were aligned; left out, nothing moved.
|
|
2171
|
+
*/
|
|
2172
|
+
export declare const compareTexts: (here: PageText[], there: PageText[], shiftAt?: (y: number) => number) => TextComparison;
|
|
2173
|
+
|
|
2112
2174
|
/**
|
|
2113
2175
|
* An instance of one of the space's components (`SpaceSpec.components`): the component's tree, rendered here with
|
|
2114
2176
|
* these props.
|
|
@@ -2180,12 +2242,14 @@ export declare interface ComponentSpec {
|
|
|
2180
2242
|
export declare const container: {
|
|
2181
2243
|
(props?: ElementProps<Partial<{
|
|
2182
2244
|
label?: string | undefined;
|
|
2183
|
-
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | undefined;
|
|
2245
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
2246
|
+
live?: "polite" | "assertive" | "" | undefined;
|
|
2184
2247
|
decorative?: boolean | undefined;
|
|
2185
2248
|
}>> | undefined): ElementSpec;
|
|
2186
2249
|
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
2187
2250
|
label?: string | undefined;
|
|
2188
|
-
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | undefined;
|
|
2251
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
2252
|
+
live?: "polite" | "assertive" | "" | undefined;
|
|
2189
2253
|
decorative?: boolean | undefined;
|
|
2190
2254
|
}>> | undefined): ElementSpec;
|
|
2191
2255
|
};
|
|
@@ -2291,6 +2355,40 @@ export declare const cycleState: (params: {
|
|
|
2291
2355
|
*/
|
|
2292
2356
|
export declare const darkScheme: (light: ImportProbe, dark: ImportProbe) => ImportedDark | undefined;
|
|
2293
2357
|
|
|
2358
|
+
export declare interface DataIssue {
|
|
2359
|
+
code: DataIssueCode;
|
|
2360
|
+
message: string;
|
|
2361
|
+
elementId: string;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
/**
|
|
2365
|
+
* What a page's bindings read, held against what its providers answered: the half of "is this page whole" a box on
|
|
2366
|
+
* the screen cannot tell.
|
|
2367
|
+
*
|
|
2368
|
+
* A binding onto a path the answer does not have resolves to nothing, and nothing renders wrong in a way the eye or a
|
|
2369
|
+
* probe sees: a list draws no rows and keeps its box, a heading keeps its default words. So a page fed the wrong path
|
|
2370
|
+
* — `landing.data.plans` where the answer is `{ plans }` — was "36 elements on screen, nothing wrong". Read here, with
|
|
2371
|
+
* the provider's answer in hand, it is the binding, the path it reads and the keys that ARE there.
|
|
2372
|
+
*
|
|
2373
|
+
* Pure: the sources come from the page's dev tools (`window.__plitzi.sources()`), so a suite or `plitzi check` reads
|
|
2374
|
+
* them however it reaches the page.
|
|
2375
|
+
*/
|
|
2376
|
+
export declare type DataIssueCode = 'binding-reads-nothing' | 'provider-failed';
|
|
2377
|
+
|
|
2378
|
+
/**
|
|
2379
|
+
* Every binding of the page onto a provider that has answered, read against that answer: a path that stops before its
|
|
2380
|
+
* last step — or a list's rows that are not there — is an issue that says where it stopped and what was there; a
|
|
2381
|
+
* provider that failed is one too. A provider still on
|
|
2382
|
+
* its way, or not on this page, is passed over — its answer is not in yet, or not this page's to judge.
|
|
2383
|
+
*/
|
|
2384
|
+
export declare const dataIssues: (schema: Schema, pageId: string, sources: Record<string, unknown>) => DataReport;
|
|
2385
|
+
|
|
2386
|
+
export declare interface DataReport {
|
|
2387
|
+
issues: DataIssue[];
|
|
2388
|
+
/** Every list of the page whose rows come from a provider: how many it has now, `null` when it reads nothing. */
|
|
2389
|
+
lists: Record<string, number | null>;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2294
2392
|
declare type DeclarationByType = {
|
|
2295
2393
|
[Name in keyof typeof elementDeclarations as (typeof elementDeclarations)[Name]['type']]: (typeof elementDeclarations)[Name];
|
|
2296
2394
|
};
|
|
@@ -2409,7 +2507,7 @@ export declare const dialogContainer: {
|
|
|
2409
2507
|
};
|
|
2410
2508
|
|
|
2411
2509
|
/** Runs in the page: both pictures decoded on canvases, compared pixel by pixel. Self-contained — it is serialised. */
|
|
2412
|
-
export declare const diffPictures: ({ a, b, regions, tolerance }: PictureDiffInput) => Promise<PictureDiff>;
|
|
2510
|
+
export declare const diffPictures: ({ a, b, regions, tolerance, rowShift }: PictureDiffInput) => Promise<PictureDiff>;
|
|
2413
2511
|
|
|
2414
2512
|
/**
|
|
2415
2513
|
* Deterministic hex digest, in plain TypeScript. What names a style selector — never an element, a page or a step:
|
|
@@ -2488,7 +2586,7 @@ export { Element_2 as Element }
|
|
|
2488
2586
|
* export drops without a word. `specFields.test.ts` refuses to compile until it is listed here — and once it is, it is
|
|
2489
2587
|
* written like any other, so growing the authoring surface needs nothing more from the emitter than this line.
|
|
2490
2588
|
*/
|
|
2491
|
-
export declare const ELEMENT_FIELDS: readonly ["type", "id", "attributes", "class", "css", "states", "selector", "variant", "slots", "bind", "from", "as", "row", "visible", "flows", "runtime", "loadStrategy", "anchor", "motion", "flag", "meta", "children"];
|
|
2589
|
+
export declare const ELEMENT_FIELDS: readonly ["type", "id", "attributes", "class", "css", "states", "selector", "variant", "slots", "bind", "from", "as", "row", "visible", "flows", "runtime", "loadStrategy", "anchor", "motion", "flag", "quiet", "meta", "children"];
|
|
2492
2590
|
|
|
2493
2591
|
/** The sub-elements that only work inside another type, and that type — see `ElementDeclarationData.ancestorType`. */
|
|
2494
2592
|
export declare const elementAncestorTypes: Record<string, string>;
|
|
@@ -2503,11 +2601,11 @@ export declare const elementAttributeNames: {
|
|
|
2503
2601
|
readonly apiContainer: readonly ["accessToken", "action", "cache", "connector", "credentials", "endpoint", "filters", "gcTime", "headers", "input", "limit", "loadingSlot", "method", "mockData", "pageParam", "pagination", "query", "refreshSeconds", "renderWhileLoading", "resource", "singleRecord", "staleTime", "subType", "when"];
|
|
2504
2602
|
readonly blockHtml: readonly ["content"];
|
|
2505
2603
|
readonly blockJsx: readonly ["allowEmptyRender", "content", "contentCache", "props"];
|
|
2506
|
-
readonly button: readonly ["ariaExpanded", "ariaPressed", "content", "contentPlacement", "disabled", "icon", "iconPlacement", "label", "subType", "title"];
|
|
2604
|
+
readonly button: readonly ["ariaExpanded", "ariaPressed", "content", "contentPlacement", "controls", "disabled", "icon", "iconPlacement", "label", "subType", "title"];
|
|
2507
2605
|
readonly carousel: readonly ["autoplay", "itemKey", "items", "label", "loop", "mode", "pauseOnHover", "speed", "transition"];
|
|
2508
2606
|
readonly carouselTrack: readonly [];
|
|
2509
2607
|
readonly channel: readonly ["grant", "keep", "presence", "subType", "topic"];
|
|
2510
|
-
readonly container: readonly ["decorative", "label", "subType"];
|
|
2608
|
+
readonly container: readonly ["decorative", "label", "live", "subType"];
|
|
2511
2609
|
readonly custom: null;
|
|
2512
2610
|
readonly dialogContainer: readonly ["acceptButtonLabel", "acceptButtonLabelLoading", "autoHideAfterClick", "headerLabel", "rejectButtonLabel"];
|
|
2513
2611
|
readonly dropdown: readonly ["backgroundDisabled", "closeOnClickBackground", "closeOnClickPopup", "containerLeftOffset", "containerTopOffset", "disabled", "openPopup", "popupPlacement"];
|
|
@@ -2517,7 +2615,7 @@ export declare const elementAttributeNames: {
|
|
|
2517
2615
|
readonly form: readonly ["actionUrl", "errors", "managedByInteractions", "method", "noValidate", "values"];
|
|
2518
2616
|
readonly formControl: readonly ["autoComplete", "autoFocus", "defaultValue", "disabled", "formatMessage", "hideLabel", "label", "matches", "matchesMessage", "maxLength", "maxLengthMessage", "minLength", "minLengthMessage", "name", "options", "pattern", "patternMessage", "placeholder", "previewError", "readOnly", "required", "requiredMessage", "subType"];
|
|
2519
2617
|
readonly heading: readonly ["content", "subType"];
|
|
2520
|
-
readonly image: readonly ["alt", "decorative", "fetchPriority", "height", "loadMode", "sizes", "src", "width"];
|
|
2618
|
+
readonly image: readonly ["alt", "decorative", "fetchPriority", "height", "loadMode", "resize", "sizes", "src", "width"];
|
|
2521
2619
|
readonly layoutContainer: readonly ["layout", "layoutContainer", "subType"];
|
|
2522
2620
|
readonly link: readonly ["content", "contentPlacement", "hash", "href", "icon", "iconPlacement", "label", "mode", "target"];
|
|
2523
2621
|
readonly list: readonly ["itemKey", "items", "source", "subType"];
|
|
@@ -3040,6 +3138,7 @@ declare const elementDeclarations: {
|
|
|
3040
3138
|
title?: string | undefined;
|
|
3041
3139
|
content?: string | undefined;
|
|
3042
3140
|
disabled?: boolean | undefined;
|
|
3141
|
+
controls?: string | undefined;
|
|
3043
3142
|
icon?: string | undefined;
|
|
3044
3143
|
subType?: "button" | "submit" | "reset" | undefined;
|
|
3045
3144
|
iconPlacement?: IconPlacement | undefined;
|
|
@@ -3358,6 +3457,7 @@ declare const elementDeclarations: {
|
|
|
3358
3457
|
readonly type: "container";
|
|
3359
3458
|
readonly attributeValues: {
|
|
3360
3459
|
readonly subType: readonly string[];
|
|
3460
|
+
readonly live: readonly string[];
|
|
3361
3461
|
};
|
|
3362
3462
|
readonly content: {
|
|
3363
3463
|
readonly attributes: {
|
|
@@ -3408,7 +3508,8 @@ declare const elementDeclarations: {
|
|
|
3408
3508
|
};
|
|
3409
3509
|
} & ElementAttributesBrand<Partial<{
|
|
3410
3510
|
label?: string | undefined;
|
|
3411
|
-
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | undefined;
|
|
3511
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
3512
|
+
live?: "polite" | "assertive" | "" | undefined;
|
|
3412
3513
|
decorative?: boolean | undefined;
|
|
3413
3514
|
}>>;
|
|
3414
3515
|
readonly Custom: {
|
|
@@ -4751,7 +4852,7 @@ declare const elementDeclarations: {
|
|
|
4751
4852
|
};
|
|
4752
4853
|
readonly content: {
|
|
4753
4854
|
readonly attributes: {
|
|
4754
|
-
readonly src: "
|
|
4855
|
+
readonly src: "";
|
|
4755
4856
|
readonly alt: "";
|
|
4756
4857
|
readonly decorative: false;
|
|
4757
4858
|
readonly fetchPriority: "auto";
|
|
@@ -4803,6 +4904,7 @@ declare const elementDeclarations: {
|
|
|
4803
4904
|
readonly settings: {};
|
|
4804
4905
|
};
|
|
4805
4906
|
} & ElementAttributesBrand<Partial<{
|
|
4907
|
+
resize?: boolean | undefined;
|
|
4806
4908
|
height?: number | undefined;
|
|
4807
4909
|
width?: number | undefined;
|
|
4808
4910
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
@@ -6582,6 +6684,12 @@ export declare type ElementDefinition = {
|
|
|
6582
6684
|
anchor?: string;
|
|
6583
6685
|
/** How it arrives and whether it keeps moving, played by the SDK's stylesheet. See {@link ElementMotion}. */
|
|
6584
6686
|
motion?: ElementMotion;
|
|
6687
|
+
/**
|
|
6688
|
+
* The codes of the suggestions this element is not offered, because it is written this way on purpose —
|
|
6689
|
+
* `['repeated-shape']`. Read by the one place suggestions are made (`suggestSpace`), so authoring, the builder and
|
|
6690
|
+
* the MCP leave out the same ones. Never a problem's code.
|
|
6691
|
+
*/
|
|
6692
|
+
quiet?: string[];
|
|
6585
6693
|
};
|
|
6586
6694
|
|
|
6587
6695
|
/**
|
|
@@ -6716,9 +6824,9 @@ export declare type ElementLoadStrategy = 'eager' | 'lazy' | 'visible';
|
|
|
6716
6824
|
declare interface ElementMotion {
|
|
6717
6825
|
/** How it arrives. */
|
|
6718
6826
|
enter?: MotionEnter;
|
|
6719
|
-
/** When it arrives: `load` (the default) or `
|
|
6827
|
+
/** When it arrives: `load` (the default), `view` (once, as it comes into view) or `scroll` (with the scroll). */
|
|
6720
6828
|
on?: MotionTrigger;
|
|
6721
|
-
/** How long it takes to arrive, in ms (600 by default). Ignored under `
|
|
6829
|
+
/** How long it takes to arrive, in ms (600 by default). Ignored under `scroll`, which follows the scroll. */
|
|
6722
6830
|
duration?: number;
|
|
6723
6831
|
/** How long it waits before it does, in ms. */
|
|
6724
6832
|
delay?: number;
|
|
@@ -6933,6 +7041,12 @@ export declare interface ElementSpec {
|
|
|
6933
7041
|
* on the server or in the browser. The flag is one {@link SpaceSpec.flags} declares.
|
|
6934
7042
|
*/
|
|
6935
7043
|
flag?: string;
|
|
7044
|
+
/**
|
|
7045
|
+
* Suggestions this element is not offered, because it is written this way on purpose — `quiet: ['repeated-shape']`
|
|
7046
|
+
* on the root a helper writes three menus from, each reading its own data. A suggestion about several elements is
|
|
7047
|
+
* quiet when any of them says so. Only suggestions: a problem is never quieted.
|
|
7048
|
+
*/
|
|
7049
|
+
quiet?: SuggestionCode[];
|
|
6936
7050
|
children?: ElementSpec[];
|
|
6937
7051
|
meta?: SpecMeta;
|
|
6938
7052
|
}
|
|
@@ -7089,6 +7203,12 @@ export declare type Explanation = {
|
|
|
7089
7203
|
title: string;
|
|
7090
7204
|
description: string;
|
|
7091
7205
|
params: ParamInfo[];
|
|
7206
|
+
} | {
|
|
7207
|
+
kind: 'helper';
|
|
7208
|
+
name: string;
|
|
7209
|
+
signature: string;
|
|
7210
|
+
summary: string;
|
|
7211
|
+
example: string;
|
|
7092
7212
|
};
|
|
7093
7213
|
|
|
7094
7214
|
/** One explanation as text, for a person or an agent reading a terminal. */
|
|
@@ -7229,7 +7349,11 @@ declare type FormControlAttributes = AuthorableAttributes<FormControlProps, 'val
|
|
|
7229
7349
|
declare type FormControlProps = {
|
|
7230
7350
|
ref: RefObject<HTMLElement>;
|
|
7231
7351
|
className: string;
|
|
7232
|
-
subType: 'text' | 'number' | 'email' | 'password'
|
|
7352
|
+
subType: 'text' | 'number' | 'email' | 'password'
|
|
7353
|
+
/** A search box: the browser draws its clear button, and a phone shows its search key. */
|
|
7354
|
+
| 'search' | 'url'
|
|
7355
|
+
/** A phone number: a phone shows its dial pad. */
|
|
7356
|
+
| 'tel' | 'date' | 'time' | 'checkbox' | 'switch' | 'select' | 'textarea' | 'hidden'
|
|
7233
7357
|
/** The browser's own colour picker: its value is `#rrggbb`. */
|
|
7234
7358
|
| 'color';
|
|
7235
7359
|
name: string;
|
|
@@ -7377,6 +7501,7 @@ declare type IconPlacement = 'before' | 'after';
|
|
|
7377
7501
|
|
|
7378
7502
|
export declare const image: {
|
|
7379
7503
|
(props?: ElementProps<Partial<{
|
|
7504
|
+
resize?: boolean | undefined;
|
|
7380
7505
|
height?: number | undefined;
|
|
7381
7506
|
width?: number | undefined;
|
|
7382
7507
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
@@ -7387,6 +7512,7 @@ export declare const image: {
|
|
|
7387
7512
|
loadMode?: "auto" | "eager" | "lazy" | undefined;
|
|
7388
7513
|
}>> | undefined): ElementSpec;
|
|
7389
7514
|
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
7515
|
+
resize?: boolean | undefined;
|
|
7390
7516
|
height?: number | undefined;
|
|
7391
7517
|
width?: number | undefined;
|
|
7392
7518
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
@@ -7751,6 +7877,9 @@ export declare const isRuleSetSpec: (spec: StyleSpec) => spec is RuleSetSpec;
|
|
|
7751
7877
|
*/
|
|
7752
7878
|
export declare const isStyleDeclaration: (value: StyleSpec | StyleDeclaration) => value is StyleDeclaration;
|
|
7753
7879
|
|
|
7880
|
+
/** Whether a code is a suggestion's: what an element's `quiet` may name. */
|
|
7881
|
+
export declare const isSuggestionCode: (code: unknown) => code is SuggestionCode;
|
|
7882
|
+
|
|
7754
7883
|
/**
|
|
7755
7884
|
* A shortcut pressed the way the page will read it.
|
|
7756
7885
|
*
|
|
@@ -7883,6 +8012,25 @@ export declare interface ListRow {
|
|
|
7883
8012
|
};
|
|
7884
8013
|
}
|
|
7885
8014
|
|
|
8015
|
+
export declare interface LoadedImages {
|
|
8016
|
+
/** The pictures the page has. */
|
|
8017
|
+
images: number;
|
|
8018
|
+
/** Those still not drawn when the budget ran out — or that failed. */
|
|
8019
|
+
missing: number;
|
|
8020
|
+
}
|
|
8021
|
+
|
|
8022
|
+
/**
|
|
8023
|
+
* Runs in the page: every picture fetched and decoded before a picture of the whole page is taken. Self-contained — it
|
|
8024
|
+
* is serialised.
|
|
8025
|
+
*
|
|
8026
|
+
* A picture of the page is taken without scrolling, and a lazy image is fetched only once it is near the screen: below
|
|
8027
|
+
* the fold it is a hole, and a comparison counts the hole. So the page's scroller is walked down once — a loader of a
|
|
8028
|
+
* site's own (one that swaps `data-src` from an `IntersectionObserver`) and an arrival waiting to be seen react to the
|
|
8029
|
+
* scroll, not to an attribute — and back up; then `loading="lazy"` is made eager and the pictures are awaited, in
|
|
8030
|
+
* rounds while loading one turns up another (a blurred placeholder swapped for its picture), for `budgetMs` at most.
|
|
8031
|
+
*/
|
|
8032
|
+
export declare const loadImages: (budgetMs: number) => Promise<LoadedImages>;
|
|
8033
|
+
|
|
7886
8034
|
/**
|
|
7887
8035
|
* A driver's locator for an authored element, by name.
|
|
7888
8036
|
*
|
|
@@ -7945,13 +8093,20 @@ export declare const modifierClassName: (elementId: string) => string;
|
|
|
7945
8093
|
* The one description the authoring package, the builder's Motion tab, the MCP and the validator all read; the
|
|
7946
8094
|
* stylesheet mirrors its presets and frames, and a test in `apps/sdk` holds the two together.
|
|
7947
8095
|
*/
|
|
7948
|
-
declare const MOTION_ENTERS: readonly ["fade", "fade-up", "fade-down", "slide-left", "slide-right", "scale"];
|
|
8096
|
+
export declare const MOTION_ENTERS: readonly ["fade", "fade-up", "fade-down", "slide-left", "slide-right", "slide-up", "scale", "zoom-in", "zoom-out", "pop", "bounce-in", "tilt", "spin-in"];
|
|
7949
8097
|
|
|
7950
|
-
/**
|
|
7951
|
-
|
|
8098
|
+
/**
|
|
8099
|
+
* A motion that repeats: a gentle rise and fall, a breath, a turn, a sway — a bounce, a wobble, a small orbit, a
|
|
8100
|
+
* heartbeat, a drift. Held until the page is live.
|
|
8101
|
+
*/
|
|
8102
|
+
export declare const MOTION_LOOPS: readonly ["float", "pulse", "spin", "sway", "bounce", "wobble", "orbit", "heartbeat", "drift"];
|
|
7952
8103
|
|
|
7953
|
-
/**
|
|
7954
|
-
|
|
8104
|
+
/**
|
|
8105
|
+
* When an arrival plays: as the page loads (`load`); once, as the element first comes into view, and then it stays
|
|
8106
|
+
* (`view`); or with the scroll itself, at the reader's pace — played backwards when the reader scrolls back up past it
|
|
8107
|
+
* (`scroll`).
|
|
8108
|
+
*/
|
|
8109
|
+
export declare const MOTION_TRIGGERS: readonly ["load", "view", "scroll"];
|
|
7955
8110
|
|
|
7956
8111
|
declare type MotionEnter = (typeof MOTION_ENTERS)[number];
|
|
7957
8112
|
|
|
@@ -8400,6 +8555,9 @@ export declare const openModal: (target: string, metadata?: string) => StepSpec;
|
|
|
8400
8555
|
|
|
8401
8556
|
declare type Operator = '' | '=' | '!=' | '<' | '>' | '<=' | '>=' | 'contains' | 'doesNotContain' | 'beginsWith' | 'doesNotBeginWith' | 'endsWith' | 'doesNotEndWith' | 'empty' | 'notEmpty' | 'in' | 'notIn' | 'between' | 'notBetween';
|
|
8402
8557
|
|
|
8558
|
+
/** How many texts a page is read for: enough for a long page, few enough to stay quick. */
|
|
8559
|
+
export declare const PAGE_TEXT_LIMIT = 2000;
|
|
8560
|
+
|
|
8403
8561
|
/**
|
|
8404
8562
|
* A page a function can be evaluated in — Playwright's `Page`, Puppeteer's, or anything with the same method.
|
|
8405
8563
|
*
|
|
@@ -8535,6 +8693,39 @@ export declare interface PageSpec {
|
|
|
8535
8693
|
body: ElementSpec[];
|
|
8536
8694
|
}
|
|
8537
8695
|
|
|
8696
|
+
/**
|
|
8697
|
+
* The words of two pages paired — the same text on both — and what each pair does differently: its size, its weight,
|
|
8698
|
+
* its colour, the box around it, where it sits. What a picture comparison says as a percentage, said as the property
|
|
8699
|
+
* that makes it, so a page being matched to another is changed where it differs instead of measured by hand.
|
|
8700
|
+
*/
|
|
8701
|
+
/** One run of words on a page, with what decides how it looks. */
|
|
8702
|
+
export declare interface PageText {
|
|
8703
|
+
/** The words, with their spaces collapsed, cut at 120 characters: past them, the start is enough to tell two apart. */
|
|
8704
|
+
text: string;
|
|
8705
|
+
tag: string;
|
|
8706
|
+
/** Its box, on the whole page. */
|
|
8707
|
+
x: number;
|
|
8708
|
+
y: number;
|
|
8709
|
+
width: number;
|
|
8710
|
+
height: number;
|
|
8711
|
+
fontSize: number;
|
|
8712
|
+
fontWeight: string;
|
|
8713
|
+
lineHeight: string;
|
|
8714
|
+
letterSpacing: string;
|
|
8715
|
+
/** The first family the page names. */
|
|
8716
|
+
fontFamily: string;
|
|
8717
|
+
color: string;
|
|
8718
|
+
background: string;
|
|
8719
|
+
padding: string;
|
|
8720
|
+
radius: string;
|
|
8721
|
+
}
|
|
8722
|
+
|
|
8723
|
+
/**
|
|
8724
|
+
* Runs in the page: every element that holds words of its own and is drawn, with what decides how they look. Skips the
|
|
8725
|
+
* dev tools' own chrome, and what a visitor cannot see. Self-contained — it is serialised.
|
|
8726
|
+
*/
|
|
8727
|
+
export declare const pageTexts: (limit: number) => PageText[];
|
|
8728
|
+
|
|
8538
8729
|
export declare const pagination: {
|
|
8539
8730
|
(props?: ElementProps<Partial<{
|
|
8540
8731
|
mode?: "pages" | "loadMore" | undefined;
|
|
@@ -8596,18 +8787,44 @@ declare const PATH: unique symbol;
|
|
|
8596
8787
|
/** The route for a slug: authoring stores it bare, and everything that navigates wants it absolute. */
|
|
8597
8788
|
export declare const pathForSlug: (slug: string) => string;
|
|
8598
8789
|
|
|
8790
|
+
export declare interface PictureAlignment {
|
|
8791
|
+
/** For each region, in the order given, how far down `b` its rows are. */
|
|
8792
|
+
shifts: number[];
|
|
8793
|
+
/** For each row of `a`, how far down `b` the same row is — the smallest region holding the row decides. */
|
|
8794
|
+
rowShift: number[];
|
|
8795
|
+
/** The first region from the top that `b` has somewhere else, and how far. */
|
|
8796
|
+
drift?: {
|
|
8797
|
+
name: string;
|
|
8798
|
+
shift: number;
|
|
8799
|
+
};
|
|
8800
|
+
}
|
|
8801
|
+
|
|
8599
8802
|
export declare interface PictureDiff {
|
|
8600
8803
|
width: number;
|
|
8601
8804
|
height: number;
|
|
8602
8805
|
/** The share of pixels that differ, in percent, to one decimal. */
|
|
8603
8806
|
changed: number;
|
|
8807
|
+
/** Each region's share that differs — and, compared aligned, how far down the other picture it sits (`shift`). */
|
|
8604
8808
|
regions: {
|
|
8605
8809
|
name: string;
|
|
8606
8810
|
changed: number;
|
|
8811
|
+
shift?: number;
|
|
8607
8812
|
}[];
|
|
8608
8813
|
/** Both pictures beside each other, and the differences in red over a faded copy of the first — PNG data URLs. */
|
|
8609
8814
|
sideBySide: string;
|
|
8610
8815
|
diff: string;
|
|
8816
|
+
/** How tall each picture is. */
|
|
8817
|
+
heights: {
|
|
8818
|
+
a: number;
|
|
8819
|
+
b: number;
|
|
8820
|
+
};
|
|
8821
|
+
/** Compared aligned: the first region the other picture has somewhere else, and how far. */
|
|
8822
|
+
driftFrom?: {
|
|
8823
|
+
name: string;
|
|
8824
|
+
shift: number;
|
|
8825
|
+
};
|
|
8826
|
+
/** Compared aligned: for each row of the first picture, how far down the second the same row is. */
|
|
8827
|
+
rowShift?: number[];
|
|
8611
8828
|
}
|
|
8612
8829
|
|
|
8613
8830
|
export declare interface PictureDiffInput {
|
|
@@ -8617,6 +8834,11 @@ export declare interface PictureDiffInput {
|
|
|
8617
8834
|
regions: PictureRegion[];
|
|
8618
8835
|
/** How far apart two channels may be and still count as the same pixel (0–255) — anti-aliasing is not a change. */
|
|
8619
8836
|
tolerance: number;
|
|
8837
|
+
/**
|
|
8838
|
+
* For each row of `a`, how far down `b` the same row is (`alignPictures`): each section compared with where it sits
|
|
8839
|
+
* in the other picture. Left out, row for row.
|
|
8840
|
+
*/
|
|
8841
|
+
rowShift?: number[];
|
|
8620
8842
|
}
|
|
8621
8843
|
|
|
8622
8844
|
/** Anything that can run a function in a browser page — Playwright's `Page`, Puppeteer's. */
|
|
@@ -8629,8 +8851,9 @@ export declare interface PictureDriver {
|
|
|
8629
8851
|
* reads "footer 2 %, spotlight 14 %" instead of looking at two full screenshots, and opens a picture only where the
|
|
8630
8852
|
* numbers say something moved.
|
|
8631
8853
|
*
|
|
8632
|
-
* The
|
|
8633
|
-
* already has, so this package stays one that installs nothing.
|
|
8854
|
+
* The pixels are read in a browser page (any driver's `evaluate`): a canvas is the one image decoder every driver
|
|
8855
|
+
* already has, so this package stays one that installs nothing. What can be worked out from a little data — where each
|
|
8856
|
+
* section of one page sits in the other — is worked out here, in plain functions.
|
|
8634
8857
|
*/
|
|
8635
8858
|
/** A part of the page, by where it is in the picture: the landmarks a page is read by. */
|
|
8636
8859
|
export declare interface PictureRegion {
|
|
@@ -8873,6 +9096,16 @@ export declare interface ProbeInput {
|
|
|
8873
9096
|
legibility: boolean;
|
|
8874
9097
|
}
|
|
8875
9098
|
|
|
9099
|
+
/** Runs in the page: both pictures read as row profiles, which is what aligning them needs. Self-contained. */
|
|
9100
|
+
export declare const profilePictures: ({ a, b, columns }: {
|
|
9101
|
+
a: string;
|
|
9102
|
+
b: string;
|
|
9103
|
+
columns: number;
|
|
9104
|
+
}) => Promise<{
|
|
9105
|
+
a: RowProfile;
|
|
9106
|
+
b: RowProfile;
|
|
9107
|
+
}>;
|
|
9108
|
+
|
|
8876
9109
|
declare type ProviderPagination = 'none' | 'url' | 'append';
|
|
8877
9110
|
|
|
8878
9111
|
/**
|
|
@@ -9006,7 +9239,7 @@ export declare type ResponsiveBlock = Partial<Record<DisplayMode, StyleBlock>>;
|
|
|
9006
9239
|
|
|
9007
9240
|
/**
|
|
9008
9241
|
* Per-breakpoint CSS as an author writes it. Omitted breakpoints inherit `desktop`, as they do in the builder — and
|
|
9009
|
-
* only `desktop`: `tablet` (48–64rem) and `mobile` (
|
|
9242
|
+
* only `desktop`: `tablet` (48–64rem) and `mobile` (up to 48rem) are disjoint ranges, so a `tablet` rule never
|
|
9010
9243
|
* reaches a phone unless `mobile` repeats it.
|
|
9011
9244
|
*
|
|
9012
9245
|
* `compact` is both of them at once — everything narrower than a desktop: the dock that replaces a sidebar, the grid
|
|
@@ -9029,6 +9262,14 @@ export declare const richText: ElementFactory<Partial<{
|
|
|
9029
9262
|
|
|
9030
9263
|
export declare const row: (gap: string, extra?: CssProps) => StyleRules;
|
|
9031
9264
|
|
|
9265
|
+
/** A picture read row by row: each row the mean colour of each of `columns` bands across it, `columns * 3` values. */
|
|
9266
|
+
export declare interface RowProfile {
|
|
9267
|
+
width: number;
|
|
9268
|
+
height: number;
|
|
9269
|
+
columns: number;
|
|
9270
|
+
rows: number[];
|
|
9271
|
+
}
|
|
9272
|
+
|
|
9032
9273
|
/** What a list's `row` function is: handed the row's names, it writes what the row renders. */
|
|
9033
9274
|
export declare type RowWriter<Row> = (row: Row) => ElementSpec | ElementSpec[];
|
|
9034
9275
|
|
|
@@ -9352,13 +9593,13 @@ export declare const SCROLL_CALLBACKS: {
|
|
|
9352
9593
|
type: "select";
|
|
9353
9594
|
description: string;
|
|
9354
9595
|
default: string;
|
|
9355
|
-
options: ("
|
|
9596
|
+
options: ("start" | "center" | "end" | "nearest")[];
|
|
9356
9597
|
};
|
|
9357
9598
|
inline: {
|
|
9358
9599
|
type: "select";
|
|
9359
9600
|
description: string;
|
|
9360
9601
|
default: string;
|
|
9361
|
-
options: ("
|
|
9602
|
+
options: ("start" | "center" | "end" | "nearest")[];
|
|
9362
9603
|
};
|
|
9363
9604
|
behavior: BuiltinParam;
|
|
9364
9605
|
};
|
|
@@ -9773,9 +10014,9 @@ export declare interface SpaceSpec {
|
|
|
9773
10014
|
*/
|
|
9774
10015
|
settings?: Partial<Omit<Schema['settings'], 'customCss'>>;
|
|
9775
10016
|
/**
|
|
9776
|
-
* Server-resolved data for this space's `runtime: 'server'` elements
|
|
9777
|
-
*
|
|
9778
|
-
*
|
|
10017
|
+
* Server-resolved data for this space's `runtime: 'server'` elements: on unless a space turns it off. Left out,
|
|
10018
|
+
* authoring writes `{ enabled: true }` for a space that has a server element; `{ enabled: false }` with one is warned
|
|
10019
|
+
* (`server-data-without-rsc`).
|
|
9779
10020
|
*/
|
|
9780
10021
|
rsc?: Schema['rsc'];
|
|
9781
10022
|
mode?: Style['mode'];
|
|
@@ -10171,7 +10412,13 @@ declare const styleConstants: {
|
|
|
10171
10412
|
readonly CLIP_PATH: "clip-path";
|
|
10172
10413
|
readonly TRANSFORM: "transform";
|
|
10173
10414
|
readonly TRANSFORM_ORIGIN: "transform-origin";
|
|
10415
|
+
readonly TRANSLATE: "translate";
|
|
10416
|
+
readonly ROTATE: "rotate";
|
|
10417
|
+
readonly SCALE: "scale";
|
|
10418
|
+
readonly TRANSFORM_STYLE: "transform-style";
|
|
10174
10419
|
readonly PERSPECTIVE: "perspective";
|
|
10420
|
+
readonly PERSPECTIVE_ORIGIN: "perspective-origin";
|
|
10421
|
+
readonly BACKFACE_VISIBILITY: "backface-visibility";
|
|
10175
10422
|
readonly WILL_CHANGE: "will-change";
|
|
10176
10423
|
readonly OUTLINE_WIDTH: "outline-width";
|
|
10177
10424
|
readonly OUTLINE_STYLE: "outline-style";
|
|
@@ -10213,6 +10460,8 @@ declare const styleConstants: {
|
|
|
10213
10460
|
readonly OVERFLOW_Y: "overflow-y";
|
|
10214
10461
|
readonly SCROLLBAR_WIDTH: "scrollbar-width";
|
|
10215
10462
|
readonly SCROLLBAR_COLOR: "scrollbar-color";
|
|
10463
|
+
readonly CONTAINER_TYPE: "container-type";
|
|
10464
|
+
readonly CONTAINER_NAME: "container-name";
|
|
10216
10465
|
readonly OBJECT_FIT: "object-fit";
|
|
10217
10466
|
readonly OBJECT_POSITION: "object-position";
|
|
10218
10467
|
readonly COLUMN_WIDTH: "column-width";
|
|
@@ -10431,6 +10680,25 @@ export declare const text: ElementFactory<Partial<{
|
|
|
10431
10680
|
content?: string | number | undefined;
|
|
10432
10681
|
}>>;
|
|
10433
10682
|
|
|
10683
|
+
export declare interface TextComparison {
|
|
10684
|
+
/** The texts found on both pages that look the same. */
|
|
10685
|
+
same: number;
|
|
10686
|
+
/** Those that do not, top to bottom on the first page. */
|
|
10687
|
+
differ: TextDifference[];
|
|
10688
|
+
/** Words only one of the two pages has. */
|
|
10689
|
+
onlyHere: string[];
|
|
10690
|
+
onlyThere: string[];
|
|
10691
|
+
}
|
|
10692
|
+
|
|
10693
|
+
/** A text on both pages, and what it does differently on the second: `font-size 68px → 60px`. */
|
|
10694
|
+
export declare interface TextDifference {
|
|
10695
|
+
tag: string;
|
|
10696
|
+
text: string;
|
|
10697
|
+
/** Where it is on the first page. */
|
|
10698
|
+
y: number;
|
|
10699
|
+
differences: string[];
|
|
10700
|
+
}
|
|
10701
|
+
|
|
10434
10702
|
export declare type Theme = 'dark' | 'light' | 'system';
|
|
10435
10703
|
|
|
10436
10704
|
export declare const themeToggle: {
|
|
@@ -10640,6 +10908,17 @@ declare type TypedListProps<Item> = Omit<ListProps, 'items' | 'row'> & {
|
|
|
10640
10908
|
/** The triggers only some types fire, by action name — for a step builder that wants the title the builder shows. */
|
|
10641
10909
|
export declare const typeTriggerDefinitions: Record<string, InteractionCallback>;
|
|
10642
10910
|
|
|
10911
|
+
/**
|
|
10912
|
+
* Runs in the page: the document made as tall as what it holds, so a picture of the whole page is the whole page.
|
|
10913
|
+
* Self-contained — it is serialised.
|
|
10914
|
+
*
|
|
10915
|
+
* The SDK renders into `.plitzi-sdk` with a column of its own that scrolls, so the document never does and a driver's
|
|
10916
|
+
* full-page picture has nothing to extend: it is one screen. The column that scrolls, and every element up to `<html>`,
|
|
10917
|
+
* stops clipping and stops being held to a height. The viewport is left as it is on purpose: grown to the content, every
|
|
10918
|
+
* `vh` would mean that height and a `100vh` hero would be thousands of pixels tall. Answers the document's height.
|
|
10919
|
+
*/
|
|
10920
|
+
export declare const unrollPage: () => number;
|
|
10921
|
+
|
|
10643
10922
|
/**
|
|
10644
10923
|
* Changes one element's own attribute or state — the element `setState`, which is NOT the global one that writes
|
|
10645
10924
|
* `runtime.state`. Left without a target it runs against the element the flow is declared on.
|