@plitzi/sdk-authoring 0.38.3 → 0.38.5
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 +522 -0
- package/dist/index-compactSvg.js +4 -1
- package/dist/index.d.ts +739 -200
- package/dist/index.js +2833 -1119
- package/dist/node.d.ts +63 -0
- package/dist/node.js +59 -4
- package/package.json +8 -7
- package/skills/plitzi-authoring/CHEATSHEET.md +9 -5
- package/skills/plitzi-authoring/SKILL.md +24 -20
- 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/plugin.ts +1 -1
- package/skills/plitzi-authoring/recipes/server-data.ts +65 -0
- package/skills/plitzi-authoring/recipes/show-data.ts +3 -2
- package/skills/plitzi-authoring/recipes/style-a-page.ts +1 -1
- package/skills/plitzi-authoring/recipes/typed-data.ts +1 -1
- package/skills/plitzi-authoring/reference/accessibility.md +6 -2
- package/skills/plitzi-authoring/reference/authoring-errors.md +16 -5
- package/skills/plitzi-authoring/reference/colours-and-motion.md +8 -2
- package/skills/plitzi-authoring/reference/data-and-visibility.md +38 -26
- package/skills/plitzi-authoring/reference/drawing.md +24 -0
- package/skills/plitzi-authoring/reference/efficiency.md +27 -1
- package/skills/plitzi-authoring/reference/elements-and-styles.md +5 -9
- package/skills/plitzi-authoring/reference/flows.md +3 -0
- package/skills/plitzi-authoring/reference/layouts.md +8 -23
- package/skills/plitzi-authoring/reference/lists.md +1 -1
- package/skills/plitzi-authoring/reference/performance.md +2 -2
- package/skills/plitzi-authoring/reference/plugins.md +51 -38
- package/skills/plitzi-authoring/reference/review-checklist.md +16 -2
- package/skills/plitzi-authoring/reference/snippets-and-export.md +2 -2
- package/skills/plitzi-authoring/reference/structure.md +32 -1
- package/skills/plitzi-authoring/reference/templates.md +6 -3
- package/skills/plitzi-authoring/reference/testing.md +10 -3
- package/skills/plitzi-authoring/reference/typed-sources.md +3 -1
- package/skills/plitzi-authoring/reference/validation.md +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import { KeyboardEventHandler } from 'react';
|
|
|
12
12
|
import { MouseEventHandler } from 'react';
|
|
13
13
|
import { PointerEventHandler } from 'react';
|
|
14
14
|
import { ReactEventHandler } from 'react';
|
|
15
|
-
import { ReactNode } from 'react';
|
|
16
15
|
import { RefObject } from 'react';
|
|
17
16
|
import { SubmitEventHandler } from 'react';
|
|
18
17
|
import { ToggleEventHandler } from 'react';
|
|
@@ -55,6 +54,9 @@ export declare type ActionAccess =
|
|
|
55
54
|
permissions: string[];
|
|
56
55
|
};
|
|
57
56
|
|
|
57
|
+
/** What the action answers: its output, or a function of the input the page sent. */
|
|
58
|
+
export declare type ActionAnswer = Record<string, unknown> | ((input: Record<string, unknown>) => Record<string, unknown>);
|
|
59
|
+
|
|
58
60
|
/**
|
|
59
61
|
* A server action: a declarative flow, stored per space, executed by the server.
|
|
60
62
|
*
|
|
@@ -138,6 +140,9 @@ export declare type ActionLimits = {
|
|
|
138
140
|
maxResponseBytes?: number;
|
|
139
141
|
};
|
|
140
142
|
|
|
143
|
+
/** What an `apiContainer` fed by a server action publishes: the action's output at its root, beside its state. */
|
|
144
|
+
export declare type ActionProviderSource<Output> = Output & ProviderState;
|
|
145
|
+
|
|
141
146
|
/**
|
|
142
147
|
* A server action read back into the `defineAction` call that writes it: the other direction from {@link defineAction},
|
|
143
148
|
* as `specFromSpace` is for a space.
|
|
@@ -161,6 +166,23 @@ export declare type ActionSource = {
|
|
|
161
166
|
source: string;
|
|
162
167
|
};
|
|
163
168
|
|
|
169
|
+
/**
|
|
170
|
+
* The `apiContainer` with this id, fed by a server action, as a typed source: the action's OUTPUT is published at its
|
|
171
|
+
* root — `feed.stories`, never `feed.data.stories` — typed and checked by a sample of that output:
|
|
172
|
+
*
|
|
173
|
+
* ```ts
|
|
174
|
+
* const feed = actionSource('feed', { stories: [{ id: 'a', title: '' }], updatedAt: '' });
|
|
175
|
+
* apiContainer({ id: feed.id, runtime: 'server', action: 'world-report', children: [
|
|
176
|
+
* list({ id: 'stories', items: feed.stories, row: s => listItem({ children: [text({ from: s.item.title })] }) })
|
|
177
|
+
* ] });
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* The output is what the action's last step answers — a sample written by hand, or the type of the task's result.
|
|
181
|
+
*/
|
|
182
|
+
export declare const actionSource: <Output extends object>(id: string, sample: Output) => SourcePath<ActionProviderSource<Output>> & {
|
|
183
|
+
readonly id: string;
|
|
184
|
+
};
|
|
185
|
+
|
|
164
186
|
export declare interface ActionSourceOptions {
|
|
165
187
|
/** Where `defineAction` is imported from. */
|
|
166
188
|
packageName?: string;
|
|
@@ -289,6 +311,14 @@ export declare const addNotification: (params: {
|
|
|
289
311
|
autoDismissTimeout?: number;
|
|
290
312
|
}) => StepSpec;
|
|
291
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Where each region of one picture sits in the other, from their row profiles — so two pages of different heights are
|
|
316
|
+
* compared section by section, not row for row: one section 400 px taller pushes everything under it down, and compared
|
|
317
|
+
* row for row every one of them would differ. Regions are placed from the top down; a row no region holds keeps the
|
|
318
|
+
* shift of the row above it.
|
|
319
|
+
*/
|
|
320
|
+
export declare const alignPictures: (a: RowProfile, b: RowProfile, regions: PictureRegion[]) => PictureAlignment;
|
|
321
|
+
|
|
292
322
|
/**
|
|
293
323
|
* One refusal a document is allowed to carry, named exactly: which check, on which element, and why.
|
|
294
324
|
*
|
|
@@ -315,6 +345,46 @@ export declare interface AncestorSpec {
|
|
|
315
345
|
/** Announces this page on a `channel` with presence — a name, a colour: what the other members see of it. */
|
|
316
346
|
export declare const announceOn: (target: string, state: unknown) => StepSpec;
|
|
317
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Answers one server action in the browser, so a test never runs it: the page's `runServerAction` gets `output` as if
|
|
350
|
+
* the server had completed the run, and the server — its `kv`, its files, what the developer saved — is not touched.
|
|
351
|
+
*
|
|
352
|
+
* For the test that would otherwise write the state it reads: one that opens windows changes the wall the developer
|
|
353
|
+
* kept, and a wall somebody kept covers the controls the next test clicks. Every other call goes through.
|
|
354
|
+
*
|
|
355
|
+
* ```ts
|
|
356
|
+
* await answerAction(page, 'world-workspace', { windows: [] });
|
|
357
|
+
* await answerAction(page, 'search', input => ({ results: fixtureFor(input.query) }));
|
|
358
|
+
* await openPage(page, '/');
|
|
359
|
+
* ```
|
|
360
|
+
*
|
|
361
|
+
* Answers a `stream` step too, with the one `done` frame a run that streamed nothing ends with.
|
|
362
|
+
*/
|
|
363
|
+
export declare const answerAction: (page: RoutingPage, actionId: string, answer: ActionAnswer, { path }?: AnswerActionOptions) => Promise<void>;
|
|
364
|
+
|
|
365
|
+
export declare interface AnswerActionOptions {
|
|
366
|
+
/** Where the server takes action calls: `createServer({ action: { path } })`. `/_action` unless it was moved. */
|
|
367
|
+
path?: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/** A request, as `answerAction` reads it — a Playwright `Request` is one. */
|
|
371
|
+
export declare interface AnsweredRequest {
|
|
372
|
+
method(): string;
|
|
373
|
+
postData(): string | null;
|
|
374
|
+
headers(): Record<string, string>;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/** A routed request, as `answerAction` answers it — a Playwright `Route` is one. */
|
|
378
|
+
export declare interface AnsweredRoute {
|
|
379
|
+
request(): AnsweredRequest;
|
|
380
|
+
fulfill(response: {
|
|
381
|
+
status?: number;
|
|
382
|
+
contentType?: string;
|
|
383
|
+
body: string;
|
|
384
|
+
}): Promise<void>;
|
|
385
|
+
fallback(): Promise<void>;
|
|
386
|
+
}
|
|
387
|
+
|
|
318
388
|
/**
|
|
319
389
|
* A factory per element, named after it.
|
|
320
390
|
*
|
|
@@ -330,104 +400,71 @@ export declare const announceOn: (target: string, state: unknown) => StepSpec;
|
|
|
330
400
|
* which is why their declarations had to be written before they could be authored at all.
|
|
331
401
|
*/
|
|
332
402
|
export declare const apiContainer: {
|
|
333
|
-
(props?: ElementProps<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
/** Renders children while the first client-side request is still in flight, so a loading state can be bound. */
|
|
394
|
-
renderWhileLoading?: boolean;
|
|
395
|
-
/**
|
|
396
|
-
* The id of a child shown in place of the others until the first answer arrives — a skeleton of what is coming — and
|
|
397
|
-
* gone after it. In the builder every child shows, so the slot can be edited beside what it stands for.
|
|
398
|
-
*/
|
|
399
|
-
loadingSlot?: string;
|
|
400
|
-
/**
|
|
401
|
-
* Keep a browser request's answer in the page's query cache, shared with every provider asking the same thing.
|
|
402
|
-
* Off by default: an author opts in knowing the page may show an answer up to `staleTime` old.
|
|
403
|
-
*/
|
|
404
|
-
cache?: boolean;
|
|
405
|
-
/**
|
|
406
|
-
* With `cache`: seconds an answer is served without asking again. A stale answer is still shown while the new one
|
|
407
|
-
* is fetched; `0` asks on every mount. A text field in the builder, hence the string.
|
|
408
|
-
*/
|
|
409
|
-
staleTime?: number | string;
|
|
410
|
-
/** With `cache`: seconds an answer nobody renders is kept, so coming back within it paints at once. */
|
|
411
|
-
gcTime?: number | string;
|
|
412
|
-
/**
|
|
413
|
-
* Asks again on its own every this many seconds — for a page showing something that keeps moving: a queue, a
|
|
414
|
-
* feed, a status board. Off (`0`) by default.
|
|
415
|
-
*
|
|
416
|
-
* The same refresh `performQuery` runs, for either runtime: a browser request is re-sent, a server provider
|
|
417
|
-
* asks the server for its own slice again. Skipped while the tab is hidden and never stacked on one still in
|
|
418
|
-
* flight. A text field in the builder, hence the string.
|
|
419
|
-
*/
|
|
420
|
-
refreshSeconds?: number | string;
|
|
403
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
404
|
+
when?: RuleGroup | undefined;
|
|
405
|
+
action?: string | undefined;
|
|
406
|
+
cache?: boolean | undefined;
|
|
407
|
+
endpoint?: string | undefined;
|
|
408
|
+
input?: (Record<string, unknown> | string) | undefined;
|
|
409
|
+
method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
|
|
410
|
+
resource?: string | undefined;
|
|
411
|
+
headers?: Record<string, string> | undefined;
|
|
412
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "" | undefined;
|
|
413
|
+
query?: string | undefined;
|
|
414
|
+
accessToken?: string | undefined;
|
|
415
|
+
mockData?: (Record<string, unknown> | string) | undefined;
|
|
416
|
+
credentials?: RequestCredentials | undefined;
|
|
417
|
+
connector?: string | undefined;
|
|
418
|
+
limit?: string | undefined;
|
|
419
|
+
singleRecord?: boolean | undefined;
|
|
420
|
+
filters?: {
|
|
421
|
+
field: string;
|
|
422
|
+
operator: string;
|
|
423
|
+
value: string;
|
|
424
|
+
}[] | undefined;
|
|
425
|
+
pagination?: ProviderPagination | undefined;
|
|
426
|
+
pageParam?: string | undefined;
|
|
427
|
+
renderWhileLoading?: boolean | undefined;
|
|
428
|
+
loadingSlot?: string | undefined;
|
|
429
|
+
staleTime?: number | string | undefined;
|
|
430
|
+
gcTime?: number | string | undefined;
|
|
431
|
+
refreshSeconds?: number | string | undefined;
|
|
432
|
+
}>> | undefined): ElementSpec;
|
|
433
|
+
(props?: ElementProps<Partial<{
|
|
434
|
+
when?: RuleGroup | undefined;
|
|
435
|
+
action?: string | undefined;
|
|
436
|
+
cache?: boolean | undefined;
|
|
437
|
+
endpoint?: string | undefined;
|
|
438
|
+
input?: (Record<string, unknown> | string) | undefined;
|
|
439
|
+
method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
|
|
440
|
+
resource?: string | undefined;
|
|
441
|
+
headers?: Record<string, string> | undefined;
|
|
442
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "" | undefined;
|
|
443
|
+
query?: string | undefined;
|
|
444
|
+
accessToken?: string | undefined;
|
|
445
|
+
mockData?: (Record<string, unknown> | string) | undefined;
|
|
446
|
+
credentials?: RequestCredentials | undefined;
|
|
447
|
+
connector?: string | undefined;
|
|
448
|
+
limit?: string | undefined;
|
|
449
|
+
singleRecord?: boolean | undefined;
|
|
450
|
+
filters?: {
|
|
451
|
+
field: string;
|
|
452
|
+
operator: string;
|
|
453
|
+
value: string;
|
|
454
|
+
}[] | undefined;
|
|
455
|
+
pagination?: ProviderPagination | undefined;
|
|
456
|
+
pageParam?: string | undefined;
|
|
457
|
+
renderWhileLoading?: boolean | undefined;
|
|
458
|
+
loadingSlot?: string | undefined;
|
|
459
|
+
staleTime?: number | string | undefined;
|
|
460
|
+
gcTime?: number | string | undefined;
|
|
461
|
+
refreshSeconds?: number | string | undefined;
|
|
462
|
+
}>> | undefined): ElementSpec;
|
|
421
463
|
};
|
|
422
464
|
|
|
423
|
-
/** What an `apiContainer` publishes: the answer under `data`, and how the asking went. */
|
|
424
|
-
export declare interface ApiContainerSource<Data> {
|
|
465
|
+
/** What an `apiContainer` asking a `query` publishes: the answer under `data`, and how the asking went. */
|
|
466
|
+
export declare interface ApiContainerSource<Data> extends ProviderState {
|
|
425
467
|
data: Data;
|
|
426
|
-
isLoading: boolean;
|
|
427
|
-
isEmpty: boolean;
|
|
428
|
-
hasError: boolean;
|
|
429
|
-
errorMessage: string;
|
|
430
|
-
isStale: boolean;
|
|
431
468
|
}
|
|
432
469
|
|
|
433
470
|
/**
|
|
@@ -749,10 +786,25 @@ export declare const AUTHORING_CODES: {
|
|
|
749
786
|
readonly means: "an id a binding, a template or a test cannot name";
|
|
750
787
|
readonly fix: "a letter first, then letters, digits, `-` and `_`: `'hero-title'`";
|
|
751
788
|
};
|
|
789
|
+
readonly 'controls-no-anchor': {
|
|
790
|
+
readonly kind: "warned";
|
|
791
|
+
readonly means: "a button's `controls` naming no anchor — `aria-controls` points at nothing";
|
|
792
|
+
readonly fix: "an `anchor` on the element it shows and hides, and `controls` naming it";
|
|
793
|
+
};
|
|
794
|
+
readonly 'quiet-unknown': {
|
|
795
|
+
readonly kind: "refused";
|
|
796
|
+
readonly means: "an element's `quiet` naming something that is not a suggestion's code — a problem is never quieted";
|
|
797
|
+
readonly fix: "the code of the suggestion it was offered: `quiet: ['repeated-shape']`";
|
|
798
|
+
};
|
|
799
|
+
readonly 'controls-unknown': {
|
|
800
|
+
readonly kind: "refused";
|
|
801
|
+
readonly means: "a button's `controls` naming no element of the space";
|
|
802
|
+
readonly fix: "the id of the element it shows and hides: `controls: 'faq-answer'`";
|
|
803
|
+
};
|
|
752
804
|
readonly 'id-taken': {
|
|
753
805
|
readonly kind: "refused";
|
|
754
806
|
readonly means: "two elements with one id — ids are one namespace for the whole space";
|
|
755
|
-
readonly fix: "
|
|
807
|
+
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
808
|
};
|
|
757
809
|
readonly 'id-shadows-global': {
|
|
758
810
|
readonly kind: "refused";
|
|
@@ -931,8 +983,8 @@ export declare const AUTHORING_CODES: {
|
|
|
931
983
|
};
|
|
932
984
|
readonly 'span-holds-block': {
|
|
933
985
|
readonly kind: "warned";
|
|
934
|
-
readonly means: "a `container
|
|
935
|
-
readonly fix: "a `div` (leave `subType` out), or words: a `text
|
|
986
|
+
readonly means: "a `container` with `subType: 'span'` or `'p'` holding a heading, a paragraph, a list, a form or prose";
|
|
987
|
+
readonly fix: "a `div` (leave `subType` out), or words and inline elements: a `text`, a `link`";
|
|
936
988
|
};
|
|
937
989
|
readonly 'part-missing': {
|
|
938
990
|
readonly kind: "refused";
|
|
@@ -1019,10 +1071,30 @@ export declare const AUTHORING_CODES: {
|
|
|
1019
1071
|
readonly means: "an `apiContainer` that asks nothing";
|
|
1020
1072
|
readonly fix: "a `query` (or `action`, `connector`, `resource`)";
|
|
1021
1073
|
};
|
|
1074
|
+
readonly 'action-output-path': {
|
|
1075
|
+
readonly kind: "warned";
|
|
1076
|
+
readonly means: "a read of `.data` on a provider fed by a server action — it publishes the action’s output at its root, and `.data` is a `query` provider’s answer";
|
|
1077
|
+
readonly fix: "the output’s own field — `apiContainer_feed.stories`, not `apiContainer_feed.data.stories`";
|
|
1078
|
+
};
|
|
1079
|
+
readonly 'path-not-in-data': {
|
|
1080
|
+
readonly kind: "warned";
|
|
1081
|
+
readonly means: "a binding onto a provider whose answer the author could read (`data`), through a path that answer does not have";
|
|
1082
|
+
readonly fix: "the path the message lists the keys for — `p.data.plans`, not `p.data.landing.plans`";
|
|
1083
|
+
};
|
|
1084
|
+
readonly 'server-provider-in-component': {
|
|
1085
|
+
readonly kind: "refused";
|
|
1086
|
+
readonly means: "a `runtime: 'server'` element inside a component: the page server resolves a page's and its layouts', never a component's";
|
|
1087
|
+
readonly fix: "put the provider on the page, around the instance, and hand the component its rows as a prop";
|
|
1088
|
+
};
|
|
1089
|
+
readonly 'server-data-in-browser': {
|
|
1090
|
+
readonly kind: "refused";
|
|
1091
|
+
readonly means: "a provider asking for the project's own data (`/data/…`, read by its server from `src/data/` and never served) from the browser";
|
|
1092
|
+
readonly fix: "`runtime: 'server'` on the provider: the page arrives with the data in it";
|
|
1093
|
+
};
|
|
1022
1094
|
readonly 'server-data-without-rsc': {
|
|
1023
1095
|
readonly kind: "warned";
|
|
1024
|
-
readonly means: "a `runtime: 'server'` provider
|
|
1025
|
-
readonly fix: "`rsc: { enabled:
|
|
1096
|
+
readonly means: "a `runtime: 'server'` provider — `connector`, `action` or `query` — in a space that turns server data off (`rsc: { enabled: false }`)";
|
|
1097
|
+
readonly fix: "drop `rsc: { enabled: false }`: server data is on unless a space turns it off";
|
|
1026
1098
|
};
|
|
1027
1099
|
readonly 'route-param-undeclared': {
|
|
1028
1100
|
readonly kind: "warned";
|
|
@@ -1301,7 +1373,7 @@ export declare const AUTHORING_CODES: {
|
|
|
1301
1373
|
};
|
|
1302
1374
|
readonly 'while-running': {
|
|
1303
1375
|
readonly kind: "refused";
|
|
1304
|
-
readonly means: "`whileRunning` on a step that is not the trigger, or a mode other than `skip`, `parallel`, `queue`";
|
|
1376
|
+
readonly means: "`whileRunning` on a step that is not the trigger, or a mode other than `skip`, `parallel`, `queue`, `latest`";
|
|
1305
1377
|
readonly fix: "`[whileRunning('queue', onClick()), …]`";
|
|
1306
1378
|
};
|
|
1307
1379
|
readonly 'callback-not-answered': {
|
|
@@ -1459,6 +1531,26 @@ export declare const AUTHORING_CODES: {
|
|
|
1459
1531
|
readonly means: "keyframes animating what the browser repaints or lays out again on every frame — a size, a position, a blur, a shadow, or a colour in a loop — which stutters whenever the page is busy, most of all while it loads";
|
|
1460
1532
|
readonly fix: "`opacity` and `transform`: a size or a position is `translate`/`scale`, a blur or a shadow is the `opacity` of a layer carrying it; a loop that must animate anything else starts `paused` and runs under `[data-hydrated]`";
|
|
1461
1533
|
};
|
|
1534
|
+
readonly 'unused-class': {
|
|
1535
|
+
readonly kind: "suggested";
|
|
1536
|
+
readonly means: "a class declared in `classes` that no element, binding, flow or other class names";
|
|
1537
|
+
readonly fix: "remove it from `classes` — or wear it where it was meant to go";
|
|
1538
|
+
};
|
|
1539
|
+
readonly 'unused-token': {
|
|
1540
|
+
readonly kind: "suggested";
|
|
1541
|
+
readonly means: "a token of `variables` no `var(--…)` reads — not a class, an element, `customCss` nor another token";
|
|
1542
|
+
readonly fix: "remove it, or write it where its colour is written out";
|
|
1543
|
+
};
|
|
1544
|
+
readonly 'literal-colour': {
|
|
1545
|
+
readonly kind: "suggested";
|
|
1546
|
+
readonly means: "a colour written out in a class where the space has a token of that value — it stays put in the dark scheme";
|
|
1547
|
+
readonly fix: "`var(--token)` when it should follow the scheme; a token of one value of its own when it must stay the same in both";
|
|
1548
|
+
};
|
|
1549
|
+
readonly 'unused-component': {
|
|
1550
|
+
readonly kind: "suggested";
|
|
1551
|
+
readonly means: "a component no page, layout or other component places";
|
|
1552
|
+
readonly fix: "remove it from `components`, or place it where it was meant to go";
|
|
1553
|
+
};
|
|
1462
1554
|
};
|
|
1463
1555
|
|
|
1464
1556
|
export declare type AuthoringCode = keyof Codes;
|
|
@@ -1571,6 +1663,8 @@ export declare interface AuthoringProps {
|
|
|
1571
1663
|
motion?: ElementMotion;
|
|
1572
1664
|
/** The feature flag it exists under: `'newCheckout'` while on, `'!newCheckout'` while off. Not a visibility. */
|
|
1573
1665
|
flag?: string;
|
|
1666
|
+
/** Suggestions it is not offered, written this way on purpose: `quiet: ['repeated-shape']`. Never a problem. */
|
|
1667
|
+
quiet?: SuggestionCode[];
|
|
1574
1668
|
children?: ElementSpec[];
|
|
1575
1669
|
/** What the builder shows, not what the runtime reads. */
|
|
1576
1670
|
meta?: SpecMeta;
|
|
@@ -1671,6 +1765,20 @@ export declare interface AuthorSpaceOptions {
|
|
|
1671
1765
|
strictParams?: boolean;
|
|
1672
1766
|
params?: ParamSpec;
|
|
1673
1767
|
}>>;
|
|
1768
|
+
/**
|
|
1769
|
+
* What a provider's `query` answers, when the author can read it — a JSON file the project serves; `publicData` from
|
|
1770
|
+
* `@plitzi/sdk-authoring/node` reads them from `public/`. Every binding onto that provider is held to the answer: a
|
|
1771
|
+
* path it does not have is warned (`path-not-in-data`), with the keys it does. `undefined` for a query it cannot
|
|
1772
|
+
* answer, which is left unchecked.
|
|
1773
|
+
*/
|
|
1774
|
+
data?: (query: string) => unknown;
|
|
1775
|
+
/**
|
|
1776
|
+
* The project's own data, which only the server reads (`dataDir`): what a provider's `/data/<file>` query answers —
|
|
1777
|
+
* `projectData` from `@plitzi/sdk-authoring/node` reads them from `src/data/`. Bindings onto it are held to the answer
|
|
1778
|
+
* as with `data`, and a provider asking for `/data/…` from the browser is refused (`server-data-in-browser`): no
|
|
1779
|
+
* browser is answered.
|
|
1780
|
+
*/
|
|
1781
|
+
serverData?: (query: string) => unknown;
|
|
1674
1782
|
}
|
|
1675
1783
|
|
|
1676
1784
|
export declare const authRefreshDetails: () => StepSpec;
|
|
@@ -1742,23 +1850,33 @@ export declare interface BindTemplateOptions {
|
|
|
1742
1850
|
/** The two documents, authored fresh — so one caller writing its own name in cannot mark the next one's copy. */
|
|
1743
1851
|
export declare const blankSpace: () => AuthoredSpace;
|
|
1744
1852
|
|
|
1745
|
-
export declare const
|
|
1853
|
+
export declare const blankSpaceSpec: SpaceSpec;
|
|
1746
1854
|
|
|
1747
1855
|
/**
|
|
1748
|
-
* The
|
|
1856
|
+
* The welcome space as a project's files, by path: the page and the space in `index.ts`, the palette in `tokens.ts`,
|
|
1857
|
+
* the classes in `theme.ts`, what the page says in `content.ts` — a file per part, as a space is written once it is
|
|
1858
|
+
* more than a screen. The plugin a project hosts and the name it carries go in `index.ts`, which holds both.
|
|
1859
|
+
*/
|
|
1860
|
+
export declare const blankTemplateFiles: ({ name, dir, plugin }?: BlankTemplateOptions) => Record<string, string>;
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* The declaration as files somebody can drop into their own project, optionally under a name of its own.
|
|
1749
1864
|
*
|
|
1750
|
-
* The
|
|
1751
|
-
* with and what Plitzi creates cannot come apart.
|
|
1752
|
-
*
|
|
1865
|
+
* The sources are this package's own — the same text that produced the documents above, so what a project starts
|
|
1866
|
+
* with and what Plitzi creates cannot come apart. Their imports of the package's modules are relative here because
|
|
1867
|
+
* they live inside it; on the way out they are rewritten to the package name, which is how the copy resolves anywhere
|
|
1868
|
+
* else. The files import each other as siblings, so the folder travels whole.
|
|
1753
1869
|
*
|
|
1754
1870
|
* The rename lives here, and not in the scaffold that asks for it, for the reason the whole function exists: a
|
|
1755
|
-
* caller renaming the copy would have to know which literals
|
|
1871
|
+
* caller renaming the copy would have to know which literals these files happen to contain, and a caller that
|
|
1756
1872
|
* knows that is a caller that breaks silently the day one of them changes. Here the literals are read off
|
|
1757
1873
|
* `blankSpaceSpec`, so they cannot be out of date, and a rename that finds nothing to replace throws.
|
|
1758
1874
|
*/
|
|
1759
|
-
export declare interface
|
|
1875
|
+
export declare interface BlankTemplateOptions {
|
|
1760
1876
|
/** The name the copy carries. `permanentUrl` follows it, slugged. */
|
|
1761
1877
|
name?: string;
|
|
1878
|
+
/** The folder the files are written in, relative to the project: `src/space` unless said. */
|
|
1879
|
+
dir?: string;
|
|
1762
1880
|
/**
|
|
1763
1881
|
* Add a `custom` element hosting a plugin the receiver supplies — or several, one after another, given a list.
|
|
1764
1882
|
*
|
|
@@ -1770,8 +1888,6 @@ export declare interface BlankSpaceSourceOptions {
|
|
|
1770
1888
|
plugin?: PluginHostOptions | readonly PluginHostOptions[];
|
|
1771
1889
|
}
|
|
1772
1890
|
|
|
1773
|
-
export declare const blankSpaceSpec: SpaceSpec;
|
|
1774
|
-
|
|
1775
1891
|
export declare const blockHtml: ElementFactory<Partial<{
|
|
1776
1892
|
content?: string | undefined;
|
|
1777
1893
|
}>>;
|
|
@@ -1897,6 +2013,7 @@ export declare const button: ElementFactory<Partial<{
|
|
|
1897
2013
|
title?: string | undefined;
|
|
1898
2014
|
content?: string | undefined;
|
|
1899
2015
|
disabled?: boolean | undefined;
|
|
2016
|
+
controls?: string | undefined;
|
|
1900
2017
|
icon?: string | undefined;
|
|
1901
2018
|
subType?: "button" | "submit" | "reset" | undefined;
|
|
1902
2019
|
iconPlacement?: IconPlacement | undefined;
|
|
@@ -1907,6 +2024,15 @@ export declare const button: ElementFactory<Partial<{
|
|
|
1907
2024
|
|
|
1908
2025
|
declare type CallbackName<D extends DeclaresInteractions> = keyof NonNullable<D['callbacks']> & string;
|
|
1909
2026
|
|
|
2027
|
+
/**
|
|
2028
|
+
* Stops an `apiContainer`'s request in flight, by id — a STOP for a slow report: the request is dropped, on the
|
|
2029
|
+
* server too, and what the container shows stays. Its `isLoading` turns false.
|
|
2030
|
+
*
|
|
2031
|
+
* A newer `reloadApi` of the same container already drops the older one, so this is only for the visitor who is done
|
|
2032
|
+
* waiting. An element callback, so `target` is the CONTAINER's id.
|
|
2033
|
+
*/
|
|
2034
|
+
export declare const cancelApi: (target: string) => StepSpec;
|
|
2035
|
+
|
|
1910
2036
|
export declare const cancelServerAction: (params: {
|
|
1911
2037
|
runId: string;
|
|
1912
2038
|
}) => StepSpec;
|
|
@@ -1916,7 +2042,7 @@ export declare const cancelServerAction: (params: {
|
|
|
1916
2042
|
* 'site.data.slides', row: r => … })` writes the slide into a `carouselTrack`, and its `children` are the controls.
|
|
1917
2043
|
*/
|
|
1918
2044
|
export declare const carousel: {
|
|
1919
|
-
(props?: ElementProps<Omit<Partial<{
|
|
2045
|
+
(children: ElementSpec[], props?: ElementProps<Omit<Partial<{
|
|
1920
2046
|
mode?: CarouselMode | undefined;
|
|
1921
2047
|
label?: string | undefined;
|
|
1922
2048
|
items?: unknown[] | undefined;
|
|
@@ -1929,7 +2055,7 @@ export declare const carousel: {
|
|
|
1929
2055
|
}>, "items"> & {
|
|
1930
2056
|
items?: CarouselAttributes["items"] | SourceName;
|
|
1931
2057
|
}> | undefined): ElementSpec;
|
|
1932
|
-
(
|
|
2058
|
+
(props?: ElementProps<Omit<Partial<{
|
|
1933
2059
|
mode?: CarouselMode | undefined;
|
|
1934
2060
|
label?: string | undefined;
|
|
1935
2061
|
items?: unknown[] | undefined;
|
|
@@ -1966,8 +2092,8 @@ export declare const carouselPlay: (target: string) => StepSpec;
|
|
|
1966
2092
|
export declare const carouselPrevious: (target: string) => StepSpec;
|
|
1967
2093
|
|
|
1968
2094
|
export declare const carouselTrack: {
|
|
1969
|
-
(props?: AuthoringProps | undefined): ElementSpec;
|
|
1970
2095
|
(children: ElementSpec[], props?: AuthoringProps | undefined): ElementSpec;
|
|
2096
|
+
(props?: AuthoringProps | undefined): ElementSpec;
|
|
1971
2097
|
};
|
|
1972
2098
|
|
|
1973
2099
|
declare type CarouselTransition = 'slide' | 'fade' | 'none';
|
|
@@ -1980,23 +2106,25 @@ export declare const CATALOG_TEMPLATE_IDENTITY: {
|
|
|
1980
2106
|
|
|
1981
2107
|
/**
|
|
1982
2108
|
* The catalog template as a project's files, by path: a shop with a layout, a product card, a home, a filtered
|
|
1983
|
-
* catalog and a page per product
|
|
1984
|
-
*
|
|
1985
|
-
*
|
|
2109
|
+
* catalog and a page per product — a file per part, as a space bigger than one screen is written. Its data is the
|
|
2110
|
+
* project's own, `src/data/products.json`, read on the server; a project with no server (`mode: 'client'`) has it in
|
|
2111
|
+
* `public/data/`, fetched by the browser. The files are the template's own (`templates/catalog`), the ones its test
|
|
2112
|
+
* authors; they import `@plitzi/sdk-authoring` by name already, so the copy is the file.
|
|
1986
2113
|
*/
|
|
1987
|
-
export declare const catalogTemplateFiles: ({ name }?: {
|
|
2114
|
+
export declare const catalogTemplateFiles: ({ name, mode }?: {
|
|
1988
2115
|
name?: string;
|
|
2116
|
+
mode?: "server" | "client";
|
|
1989
2117
|
}) => Record<string, string>;
|
|
1990
2118
|
|
|
1991
2119
|
export declare const channel: {
|
|
1992
|
-
(props?: ElementProps<Partial<{
|
|
2120
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
1993
2121
|
subType?: "" | "div" | "section" | "aside" | "main" | undefined;
|
|
1994
2122
|
topic?: string | undefined;
|
|
1995
2123
|
grant?: string | undefined;
|
|
1996
2124
|
presence?: unknown;
|
|
1997
2125
|
keep?: number | string | undefined;
|
|
1998
2126
|
}>> | undefined): ElementSpec;
|
|
1999
|
-
(
|
|
2127
|
+
(props?: ElementProps<Partial<{
|
|
2000
2128
|
subType?: "" | "div" | "section" | "aside" | "main" | undefined;
|
|
2001
2129
|
topic?: string | undefined;
|
|
2002
2130
|
grant?: string | undefined;
|
|
@@ -2103,12 +2231,31 @@ declare type Combinator = 'and' | 'or';
|
|
|
2103
2231
|
*/
|
|
2104
2232
|
export declare const compactSvg: (markup: string) => string;
|
|
2105
2233
|
|
|
2234
|
+
export declare interface CompareOptions {
|
|
2235
|
+
/** The parts of the page a difference is told by (`pageRegions`). */
|
|
2236
|
+
regions?: PictureRegion[];
|
|
2237
|
+
/** How far apart two channels may be and still count as the same pixel (0–255); 32 by default. */
|
|
2238
|
+
tolerance?: number;
|
|
2239
|
+
/**
|
|
2240
|
+
* Whether each region is compared with where it sits in the second picture rather than row for row — for two
|
|
2241
|
+
* different pages, which seldom measure the same; never for two frames of one page, which do.
|
|
2242
|
+
*/
|
|
2243
|
+
align?: boolean;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2106
2246
|
/** 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
|
|
2247
|
+
export declare const comparePictures: (driver: PictureDriver, a: string, b: string, { regions, tolerance, align }?: CompareOptions) => Promise<PictureDiff>;
|
|
2108
2248
|
|
|
2109
2249
|
/** Every observable way `actual` differs from `expected`. Empty means they render the same space. */
|
|
2110
2250
|
export declare const compareSpaces: (expected: SpaceDocuments, actual: SpaceDocuments) => SpaceDifference[];
|
|
2111
2251
|
|
|
2252
|
+
/**
|
|
2253
|
+
* The texts of two pages paired by their words — the second "Pricing" with the second "Pricing" — and what each pair
|
|
2254
|
+
* does differently on the second page. `shiftAt` says how far down the second page the rows around a point of the first
|
|
2255
|
+
* are, when the two were aligned; left out, nothing moved.
|
|
2256
|
+
*/
|
|
2257
|
+
export declare const compareTexts: (here: PageText[], there: PageText[], shiftAt?: (y: number) => number) => TextComparison;
|
|
2258
|
+
|
|
2112
2259
|
/**
|
|
2113
2260
|
* An instance of one of the space's components (`SpaceSpec.components`): the component's tree, rendered here with
|
|
2114
2261
|
* these props.
|
|
@@ -2126,7 +2273,7 @@ export declare const component: (componentId: string, instance?: ComponentInstan
|
|
|
2126
2273
|
export declare const COMPONENT_SOURCES: string[];
|
|
2127
2274
|
|
|
2128
2275
|
/** How an instance is authored: what it hands in, what fills its slots, and the authoring fields any element takes. */
|
|
2129
|
-
export declare type ComponentInstanceProps = Pick<AuthoringProps, 'id' | 'class' | 'css' | 'states' | 'selector' | 'bind' | 'visible' | 'flows' | 'meta'> & {
|
|
2276
|
+
export declare type ComponentInstanceProps = Pick<AuthoringProps, 'id' | 'class' | 'css' | 'states' | 'selector' | 'bind' | 'visible' | 'flows' | 'meta' | 'quiet'> & {
|
|
2130
2277
|
/** The props the component declares, by name. A prop is an attribute of the instance: `bind` can land on one too. */
|
|
2131
2278
|
props?: Record<string, unknown>;
|
|
2132
2279
|
/** What fills the slots: a list, for a component with one slot, or one list per slot it declares. */
|
|
@@ -2178,14 +2325,18 @@ export declare interface ComponentSpec {
|
|
|
2178
2325
|
}
|
|
2179
2326
|
|
|
2180
2327
|
export declare const container: {
|
|
2181
|
-
(props?: ElementProps<Partial<{
|
|
2328
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
2182
2329
|
label?: string | undefined;
|
|
2183
|
-
|
|
2330
|
+
title?: string | undefined;
|
|
2331
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
2332
|
+
live?: "polite" | "assertive" | "" | undefined;
|
|
2184
2333
|
decorative?: boolean | undefined;
|
|
2185
2334
|
}>> | undefined): ElementSpec;
|
|
2186
|
-
(
|
|
2335
|
+
(props?: ElementProps<Partial<{
|
|
2187
2336
|
label?: string | undefined;
|
|
2188
|
-
|
|
2337
|
+
title?: string | undefined;
|
|
2338
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
2339
|
+
live?: "polite" | "assertive" | "" | undefined;
|
|
2189
2340
|
decorative?: boolean | undefined;
|
|
2190
2341
|
}>> | undefined): ElementSpec;
|
|
2191
2342
|
};
|
|
@@ -2291,10 +2442,47 @@ export declare const cycleState: (params: {
|
|
|
2291
2442
|
*/
|
|
2292
2443
|
export declare const darkScheme: (light: ImportProbe, dark: ImportProbe) => ImportedDark | undefined;
|
|
2293
2444
|
|
|
2445
|
+
export declare interface DataIssue {
|
|
2446
|
+
code: DataIssueCode;
|
|
2447
|
+
message: string;
|
|
2448
|
+
elementId: string;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
/**
|
|
2452
|
+
* What a page's bindings read, held against what its providers answered: the half of "is this page whole" a box on
|
|
2453
|
+
* the screen cannot tell.
|
|
2454
|
+
*
|
|
2455
|
+
* A binding onto a path the answer does not have resolves to nothing, and nothing renders wrong in a way the eye or a
|
|
2456
|
+
* probe sees: a list draws no rows and keeps its box, a heading keeps its default words. So a page fed the wrong path
|
|
2457
|
+
* — `landing.data.plans` where the answer is `{ plans }` — was "36 elements on screen, nothing wrong". Read here, with
|
|
2458
|
+
* the provider's answer in hand, it is the binding, the path it reads and the keys that ARE there.
|
|
2459
|
+
*
|
|
2460
|
+
* Pure: the sources come from the page's dev tools (`window.__plitzi.sources()`), so a suite or `plitzi check` reads
|
|
2461
|
+
* them however it reaches the page.
|
|
2462
|
+
*/
|
|
2463
|
+
export declare type DataIssueCode = 'binding-reads-nothing' | 'provider-failed';
|
|
2464
|
+
|
|
2465
|
+
/**
|
|
2466
|
+
* Every binding of the page onto a provider that has answered, read against that answer: a path that stops before its
|
|
2467
|
+
* last step — or a list's rows that are not there — is an issue that says where it stopped and what was there; a
|
|
2468
|
+
* provider that failed is one too. A provider still on
|
|
2469
|
+
* its way, or not on this page, is passed over — its answer is not in yet, or not this page's to judge.
|
|
2470
|
+
*/
|
|
2471
|
+
export declare const dataIssues: (schema: Schema, pageId: string, sources: Record<string, unknown>) => DataReport;
|
|
2472
|
+
|
|
2473
|
+
export declare interface DataReport {
|
|
2474
|
+
issues: DataIssue[];
|
|
2475
|
+
/** Every list of the page whose rows come from a provider: how many it has now, `null` when it reads nothing. */
|
|
2476
|
+
lists: Record<string, number | null>;
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2294
2479
|
declare type DeclarationByType = {
|
|
2295
2480
|
[Name in keyof typeof elementDeclarations as (typeof elementDeclarations)[Name]['type']]: (typeof elementDeclarations)[Name];
|
|
2296
2481
|
};
|
|
2297
2482
|
|
|
2483
|
+
/** The parts of the style document what is declared is read from. */
|
|
2484
|
+
declare type Declared = Pick<Style, 'platform' | 'variables' | 'fonts'>;
|
|
2485
|
+
|
|
2298
2486
|
/**
|
|
2299
2487
|
* A step that runs one of the actions a declaration says its element answers to — on the element named by `on`.
|
|
2300
2488
|
*
|
|
@@ -2392,14 +2580,14 @@ export declare interface DevToolsReport {
|
|
|
2392
2580
|
}
|
|
2393
2581
|
|
|
2394
2582
|
export declare const dialogContainer: {
|
|
2395
|
-
(props?: ElementProps<Partial<{
|
|
2583
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
2396
2584
|
headerLabel: string;
|
|
2397
2585
|
acceptButtonLabel: string;
|
|
2398
2586
|
acceptButtonLabelLoading: string;
|
|
2399
2587
|
rejectButtonLabel: string;
|
|
2400
2588
|
autoHideAfterClick: boolean;
|
|
2401
2589
|
}>> | undefined): ElementSpec;
|
|
2402
|
-
(
|
|
2590
|
+
(props?: ElementProps<Partial<{
|
|
2403
2591
|
headerLabel: string;
|
|
2404
2592
|
acceptButtonLabel: string;
|
|
2405
2593
|
acceptButtonLabelLoading: string;
|
|
@@ -2409,7 +2597,7 @@ export declare const dialogContainer: {
|
|
|
2409
2597
|
};
|
|
2410
2598
|
|
|
2411
2599
|
/** 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>;
|
|
2600
|
+
export declare const diffPictures: ({ a, b, regions, tolerance, rowShift }: PictureDiffInput) => Promise<PictureDiff>;
|
|
2413
2601
|
|
|
2414
2602
|
/**
|
|
2415
2603
|
* Deterministic hex digest, in plain TypeScript. What names a style selector — never an element, a page or a step:
|
|
@@ -2428,7 +2616,7 @@ export declare type DisplayMode = 'desktop' | 'tablet' | 'mobile';
|
|
|
2428
2616
|
export declare type DocumentChecks = Pick<InspectOptions, 'skip' | 'timeout'>;
|
|
2429
2617
|
|
|
2430
2618
|
export declare const dropdown: {
|
|
2431
|
-
(props?: ElementProps<Partial<{
|
|
2619
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
2432
2620
|
disabled?: boolean | undefined;
|
|
2433
2621
|
closeOnClickPopup?: boolean | undefined;
|
|
2434
2622
|
popupPlacement?: "left" | "right" | "top" | "bottom" | undefined;
|
|
@@ -2438,7 +2626,7 @@ export declare const dropdown: {
|
|
|
2438
2626
|
containerTopOffset?: number | undefined;
|
|
2439
2627
|
containerLeftOffset?: number | undefined;
|
|
2440
2628
|
}>> | undefined): ElementSpec;
|
|
2441
|
-
(
|
|
2629
|
+
(props?: ElementProps<Partial<{
|
|
2442
2630
|
disabled?: boolean | undefined;
|
|
2443
2631
|
closeOnClickPopup?: boolean | undefined;
|
|
2444
2632
|
popupPlacement?: "left" | "right" | "top" | "bottom" | undefined;
|
|
@@ -2451,8 +2639,8 @@ export declare const dropdown: {
|
|
|
2451
2639
|
};
|
|
2452
2640
|
|
|
2453
2641
|
export declare const dropdownPopup: {
|
|
2454
|
-
(props?: AuthoringProps | undefined): ElementSpec;
|
|
2455
2642
|
(children: ElementSpec[], props?: AuthoringProps | undefined): ElementSpec;
|
|
2643
|
+
(props?: AuthoringProps | undefined): ElementSpec;
|
|
2456
2644
|
};
|
|
2457
2645
|
|
|
2458
2646
|
/**
|
|
@@ -2488,7 +2676,7 @@ export { Element_2 as Element }
|
|
|
2488
2676
|
* export drops without a word. `specFields.test.ts` refuses to compile until it is listed here — and once it is, it is
|
|
2489
2677
|
* written like any other, so growing the authoring surface needs nothing more from the emitter than this line.
|
|
2490
2678
|
*/
|
|
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"];
|
|
2679
|
+
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
2680
|
|
|
2493
2681
|
/** The sub-elements that only work inside another type, and that type — see `ElementDeclarationData.ancestorType`. */
|
|
2494
2682
|
export declare const elementAncestorTypes: Record<string, string>;
|
|
@@ -2503,11 +2691,11 @@ export declare const elementAttributeNames: {
|
|
|
2503
2691
|
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
2692
|
readonly blockHtml: readonly ["content"];
|
|
2505
2693
|
readonly blockJsx: readonly ["allowEmptyRender", "content", "contentCache", "props"];
|
|
2506
|
-
readonly button: readonly ["ariaExpanded", "ariaPressed", "content", "contentPlacement", "disabled", "icon", "iconPlacement", "label", "subType", "title"];
|
|
2694
|
+
readonly button: readonly ["ariaExpanded", "ariaPressed", "content", "contentPlacement", "controls", "disabled", "icon", "iconPlacement", "label", "subType", "title"];
|
|
2507
2695
|
readonly carousel: readonly ["autoplay", "itemKey", "items", "label", "loop", "mode", "pauseOnHover", "speed", "transition"];
|
|
2508
2696
|
readonly carouselTrack: readonly [];
|
|
2509
2697
|
readonly channel: readonly ["grant", "keep", "presence", "subType", "topic"];
|
|
2510
|
-
readonly container: readonly ["decorative", "label", "subType"];
|
|
2698
|
+
readonly container: readonly ["decorative", "label", "live", "subType", "title"];
|
|
2511
2699
|
readonly custom: null;
|
|
2512
2700
|
readonly dialogContainer: readonly ["acceptButtonLabel", "acceptButtonLabelLoading", "autoHideAfterClick", "headerLabel", "rejectButtonLabel"];
|
|
2513
2701
|
readonly dropdown: readonly ["backgroundDisabled", "closeOnClickBackground", "closeOnClickPopup", "containerLeftOffset", "containerTopOffset", "disabled", "openPopup", "popupPlacement"];
|
|
@@ -2517,7 +2705,7 @@ export declare const elementAttributeNames: {
|
|
|
2517
2705
|
readonly form: readonly ["actionUrl", "errors", "managedByInteractions", "method", "noValidate", "values"];
|
|
2518
2706
|
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
2707
|
readonly heading: readonly ["content", "subType"];
|
|
2520
|
-
readonly image: readonly ["alt", "decorative", "fetchPriority", "height", "loadMode", "sizes", "src", "width"];
|
|
2708
|
+
readonly image: readonly ["alt", "decorative", "fetchPriority", "height", "loadMode", "resize", "sizes", "src", "width"];
|
|
2521
2709
|
readonly layoutContainer: readonly ["layout", "layoutContainer", "subType"];
|
|
2522
2710
|
readonly link: readonly ["content", "contentPlacement", "hash", "href", "icon", "iconPlacement", "label", "mode", "target"];
|
|
2523
2711
|
readonly list: readonly ["itemKey", "items", "source", "subType"];
|
|
@@ -2537,7 +2725,7 @@ export declare const elementAttributeNames: {
|
|
|
2537
2725
|
readonly tabContainerBody: readonly [];
|
|
2538
2726
|
readonly tabContainerHeader: readonly [];
|
|
2539
2727
|
readonly tabContainerItem: readonly [];
|
|
2540
|
-
readonly text: readonly ["content"];
|
|
2728
|
+
readonly text: readonly ["content", "title"];
|
|
2541
2729
|
readonly themeToggle: readonly ["darkLabel", "lightLabel", "showSystem", "subType", "systemLabel"];
|
|
2542
2730
|
readonly video: readonly ["autoPlay", "loop", "muted", "playsInline", "src"];
|
|
2543
2731
|
};
|
|
@@ -2705,6 +2893,13 @@ declare const elementDeclarations: {
|
|
|
2705
2893
|
};
|
|
2706
2894
|
};
|
|
2707
2895
|
};
|
|
2896
|
+
readonly cancelQuery: {
|
|
2897
|
+
readonly action: "cancelQuery";
|
|
2898
|
+
readonly title: "Cancel Query";
|
|
2899
|
+
readonly type: "callback";
|
|
2900
|
+
readonly preview: {};
|
|
2901
|
+
readonly params: {};
|
|
2902
|
+
};
|
|
2708
2903
|
readonly loadMore: {
|
|
2709
2904
|
readonly action: "loadMore";
|
|
2710
2905
|
readonly title: "Load More";
|
|
@@ -2809,7 +3004,36 @@ declare const elementDeclarations: {
|
|
|
2809
3004
|
};
|
|
2810
3005
|
readonly settings: {};
|
|
2811
3006
|
};
|
|
2812
|
-
} & ElementAttributesBrand<
|
|
3007
|
+
} & ElementAttributesBrand<Partial<{
|
|
3008
|
+
when?: RuleGroup | undefined;
|
|
3009
|
+
action?: string | undefined;
|
|
3010
|
+
cache?: boolean | undefined;
|
|
3011
|
+
endpoint?: string | undefined;
|
|
3012
|
+
input?: (Record<string, unknown> | string) | undefined;
|
|
3013
|
+
method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
|
|
3014
|
+
resource?: string | undefined;
|
|
3015
|
+
headers?: Record<string, string> | undefined;
|
|
3016
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "" | undefined;
|
|
3017
|
+
query?: string | undefined;
|
|
3018
|
+
accessToken?: string | undefined;
|
|
3019
|
+
mockData?: (Record<string, unknown> | string) | undefined;
|
|
3020
|
+
credentials?: RequestCredentials | undefined;
|
|
3021
|
+
connector?: string | undefined;
|
|
3022
|
+
limit?: string | undefined;
|
|
3023
|
+
singleRecord?: boolean | undefined;
|
|
3024
|
+
filters?: {
|
|
3025
|
+
field: string;
|
|
3026
|
+
operator: string;
|
|
3027
|
+
value: string;
|
|
3028
|
+
}[] | undefined;
|
|
3029
|
+
pagination?: ProviderPagination | undefined;
|
|
3030
|
+
pageParam?: string | undefined;
|
|
3031
|
+
renderWhileLoading?: boolean | undefined;
|
|
3032
|
+
loadingSlot?: string | undefined;
|
|
3033
|
+
staleTime?: number | string | undefined;
|
|
3034
|
+
gcTime?: number | string | undefined;
|
|
3035
|
+
refreshSeconds?: number | string | undefined;
|
|
3036
|
+
}>>;
|
|
2813
3037
|
readonly BlockHtml: {
|
|
2814
3038
|
readonly type: "blockHtml";
|
|
2815
3039
|
readonly content: {
|
|
@@ -2957,7 +3181,7 @@ declare const elementDeclarations: {
|
|
|
2957
3181
|
readonly license: "MIT";
|
|
2958
3182
|
readonly website: "https://plitzi.com";
|
|
2959
3183
|
readonly backgroundColor: "#4422ee";
|
|
2960
|
-
readonly icon: "fa-solid fa-
|
|
3184
|
+
readonly icon: "fa-solid fa-hand-pointer";
|
|
2961
3185
|
};
|
|
2962
3186
|
readonly defaultStyle: {
|
|
2963
3187
|
readonly name: "Button";
|
|
@@ -3040,6 +3264,7 @@ declare const elementDeclarations: {
|
|
|
3040
3264
|
title?: string | undefined;
|
|
3041
3265
|
content?: string | undefined;
|
|
3042
3266
|
disabled?: boolean | undefined;
|
|
3267
|
+
controls?: string | undefined;
|
|
3043
3268
|
icon?: string | undefined;
|
|
3044
3269
|
subType?: "button" | "submit" | "reset" | undefined;
|
|
3045
3270
|
iconPlacement?: IconPlacement | undefined;
|
|
@@ -3358,6 +3583,7 @@ declare const elementDeclarations: {
|
|
|
3358
3583
|
readonly type: "container";
|
|
3359
3584
|
readonly attributeValues: {
|
|
3360
3585
|
readonly subType: readonly string[];
|
|
3586
|
+
readonly live: readonly string[];
|
|
3361
3587
|
};
|
|
3362
3588
|
readonly content: {
|
|
3363
3589
|
readonly attributes: {
|
|
@@ -3392,7 +3618,7 @@ declare const elementDeclarations: {
|
|
|
3392
3618
|
readonly license: "MIT";
|
|
3393
3619
|
readonly website: "https://plitzi.com";
|
|
3394
3620
|
readonly backgroundColor: "#4422ee";
|
|
3395
|
-
readonly icon: "fa-
|
|
3621
|
+
readonly icon: "fa-solid fa-crop-simple";
|
|
3396
3622
|
};
|
|
3397
3623
|
readonly defaultStyle: {
|
|
3398
3624
|
readonly name: "Container";
|
|
@@ -3408,7 +3634,9 @@ declare const elementDeclarations: {
|
|
|
3408
3634
|
};
|
|
3409
3635
|
} & ElementAttributesBrand<Partial<{
|
|
3410
3636
|
label?: string | undefined;
|
|
3411
|
-
|
|
3637
|
+
title?: string | undefined;
|
|
3638
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
3639
|
+
live?: "polite" | "assertive" | "" | undefined;
|
|
3412
3640
|
decorative?: boolean | undefined;
|
|
3413
3641
|
}>>;
|
|
3414
3642
|
readonly Custom: {
|
|
@@ -3593,7 +3821,7 @@ declare const elementDeclarations: {
|
|
|
3593
3821
|
readonly license: "MIT";
|
|
3594
3822
|
readonly website: "https://plitzi.com";
|
|
3595
3823
|
readonly backgroundColor: "#4422ee";
|
|
3596
|
-
readonly icon: "fa-regular fa-
|
|
3824
|
+
readonly icon: "fa-regular fa-message";
|
|
3597
3825
|
};
|
|
3598
3826
|
readonly defaultStyle: {
|
|
3599
3827
|
readonly name: "Dialog Container";
|
|
@@ -3810,7 +4038,7 @@ declare const elementDeclarations: {
|
|
|
3810
4038
|
readonly license: "MIT";
|
|
3811
4039
|
readonly website: "https://plitzi.com";
|
|
3812
4040
|
readonly backgroundColor: "#4422ee";
|
|
3813
|
-
readonly icon: "";
|
|
4041
|
+
readonly icon: "fa-regular fa-window-restore";
|
|
3814
4042
|
};
|
|
3815
4043
|
readonly defaultStyle: {
|
|
3816
4044
|
readonly name: "Dropdown Popup";
|
|
@@ -4065,6 +4293,7 @@ declare const elementDeclarations: {
|
|
|
4065
4293
|
readonly license: "MIT";
|
|
4066
4294
|
readonly website: "https://plitzi.com";
|
|
4067
4295
|
readonly backgroundColor: "#4422ee";
|
|
4296
|
+
readonly icon: "fa-solid fa-rectangle-list";
|
|
4068
4297
|
};
|
|
4069
4298
|
readonly defaultStyle: {
|
|
4070
4299
|
readonly name: "Form";
|
|
@@ -4158,6 +4387,7 @@ declare const elementDeclarations: {
|
|
|
4158
4387
|
readonly license: "MIT";
|
|
4159
4388
|
readonly website: "https://plitzi.com";
|
|
4160
4389
|
readonly backgroundColor: "#4422ee";
|
|
4390
|
+
readonly icon: "fa-solid fa-i-cursor";
|
|
4161
4391
|
};
|
|
4162
4392
|
readonly defaultStyle: {
|
|
4163
4393
|
readonly name: "Form Control";
|
|
@@ -4751,7 +4981,7 @@ declare const elementDeclarations: {
|
|
|
4751
4981
|
};
|
|
4752
4982
|
readonly content: {
|
|
4753
4983
|
readonly attributes: {
|
|
4754
|
-
readonly src: "
|
|
4984
|
+
readonly src: "";
|
|
4755
4985
|
readonly alt: "";
|
|
4756
4986
|
readonly decorative: false;
|
|
4757
4987
|
readonly fetchPriority: "auto";
|
|
@@ -4803,6 +5033,7 @@ declare const elementDeclarations: {
|
|
|
4803
5033
|
readonly settings: {};
|
|
4804
5034
|
};
|
|
4805
5035
|
} & ElementAttributesBrand<Partial<{
|
|
5036
|
+
resize?: boolean | undefined;
|
|
4806
5037
|
height?: number | undefined;
|
|
4807
5038
|
width?: number | undefined;
|
|
4808
5039
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
@@ -5070,7 +5301,7 @@ declare const elementDeclarations: {
|
|
|
5070
5301
|
readonly license: "MIT";
|
|
5071
5302
|
readonly website: "https://plitzi.com";
|
|
5072
5303
|
readonly backgroundColor: "#4422ee";
|
|
5073
|
-
readonly icon: "fa-solid fa-
|
|
5304
|
+
readonly icon: "fa-solid fa-grip-lines";
|
|
5074
5305
|
};
|
|
5075
5306
|
readonly defaultStyle: {
|
|
5076
5307
|
readonly name: "List Item";
|
|
@@ -5181,7 +5412,7 @@ declare const elementDeclarations: {
|
|
|
5181
5412
|
readonly settings: {};
|
|
5182
5413
|
};
|
|
5183
5414
|
} & ElementAttributesBrand<Partial<{
|
|
5184
|
-
content
|
|
5415
|
+
content?: string | undefined;
|
|
5185
5416
|
}>>;
|
|
5186
5417
|
readonly ModalContainer: {
|
|
5187
5418
|
readonly type: "modalContainer";
|
|
@@ -6078,7 +6309,7 @@ declare const elementDeclarations: {
|
|
|
6078
6309
|
readonly license: "MIT";
|
|
6079
6310
|
readonly website: "https://plitzi.com";
|
|
6080
6311
|
readonly backgroundColor: "#4422ee";
|
|
6081
|
-
readonly icon: "fa-solid fa-
|
|
6312
|
+
readonly icon: "fa-solid fa-file-lines";
|
|
6082
6313
|
};
|
|
6083
6314
|
readonly defaultStyle: {
|
|
6084
6315
|
readonly name: "Rich Text";
|
|
@@ -6335,7 +6566,7 @@ declare const elementDeclarations: {
|
|
|
6335
6566
|
readonly license: "MIT";
|
|
6336
6567
|
readonly website: "https://plitzi.com";
|
|
6337
6568
|
readonly backgroundColor: "#4422ee";
|
|
6338
|
-
readonly icon: "fa-
|
|
6569
|
+
readonly icon: "fa-regular fa-folder";
|
|
6339
6570
|
};
|
|
6340
6571
|
readonly defaultStyle: {
|
|
6341
6572
|
readonly name: "Tab Container Item";
|
|
@@ -6402,6 +6633,7 @@ declare const elementDeclarations: {
|
|
|
6402
6633
|
readonly settings: {};
|
|
6403
6634
|
};
|
|
6404
6635
|
} & ElementAttributesBrand<Partial<{
|
|
6636
|
+
title?: string | undefined;
|
|
6405
6637
|
content?: string | number | undefined;
|
|
6406
6638
|
}>>;
|
|
6407
6639
|
readonly ThemeToggle: {
|
|
@@ -6582,15 +6814,24 @@ export declare type ElementDefinition = {
|
|
|
6582
6814
|
anchor?: string;
|
|
6583
6815
|
/** How it arrives and whether it keeps moving, played by the SDK's stylesheet. See {@link ElementMotion}. */
|
|
6584
6816
|
motion?: ElementMotion;
|
|
6817
|
+
/**
|
|
6818
|
+
* The codes of the suggestions this element is not offered, because it is written this way on purpose —
|
|
6819
|
+
* `['repeated-shape']`. Read by the one place suggestions are made (`suggestSpace`), so authoring, the builder and
|
|
6820
|
+
* the MCP leave out the same ones. Never a problem's code.
|
|
6821
|
+
*/
|
|
6822
|
+
quiet?: string[];
|
|
6585
6823
|
};
|
|
6586
6824
|
|
|
6587
6825
|
/**
|
|
6588
6826
|
* The three ways to call a factory: props, children first, or — for anything with a `content` attribute — the
|
|
6589
6827
|
* content itself, which is what most of a page is.
|
|
6828
|
+
*
|
|
6829
|
+
* Props LAST: a call no overload accepts is reported by the last one, and an attribute the element does not have is
|
|
6830
|
+
* nearly always the reason — named against the props, not as "'id' does not exist in type ElementSpec[]".
|
|
6590
6831
|
*/
|
|
6591
6832
|
export declare type ElementFactory<A> = ContentShorthand<A> & {
|
|
6592
|
-
(props?: ElementProps<A>): ElementSpec;
|
|
6593
6833
|
(children: ElementSpec[], props?: ElementProps<A>): ElementSpec;
|
|
6834
|
+
(props?: ElementProps<A>): ElementSpec;
|
|
6594
6835
|
};
|
|
6595
6836
|
|
|
6596
6837
|
/**
|
|
@@ -6716,9 +6957,9 @@ export declare type ElementLoadStrategy = 'eager' | 'lazy' | 'visible';
|
|
|
6716
6957
|
declare interface ElementMotion {
|
|
6717
6958
|
/** How it arrives. */
|
|
6718
6959
|
enter?: MotionEnter;
|
|
6719
|
-
/** When it arrives: `load` (the default) or `
|
|
6960
|
+
/** When it arrives: `load` (the default), `view` (once, as it comes into view) or `scroll` (with the scroll). */
|
|
6720
6961
|
on?: MotionTrigger;
|
|
6721
|
-
/** How long it takes to arrive, in ms (600 by default). Ignored under `
|
|
6962
|
+
/** How long it takes to arrive, in ms (600 by default). Ignored under `scroll`, which follows the scroll. */
|
|
6722
6963
|
duration?: number;
|
|
6723
6964
|
/** How long it waits before it does, in ms. */
|
|
6724
6965
|
delay?: number;
|
|
@@ -6933,6 +7174,12 @@ export declare interface ElementSpec {
|
|
|
6933
7174
|
* on the server or in the browser. The flag is one {@link SpaceSpec.flags} declares.
|
|
6934
7175
|
*/
|
|
6935
7176
|
flag?: string;
|
|
7177
|
+
/**
|
|
7178
|
+
* Suggestions this element is not offered, because it is written this way on purpose — `quiet: ['repeated-shape']`
|
|
7179
|
+
* on the root a helper writes three menus from, each reading its own data. A suggestion about several elements is
|
|
7180
|
+
* quiet when any of them says so. Only suggestions: a problem is never quieted.
|
|
7181
|
+
*/
|
|
7182
|
+
quiet?: SuggestionCode[];
|
|
6936
7183
|
children?: ElementSpec[];
|
|
6937
7184
|
meta?: SpecMeta;
|
|
6938
7185
|
}
|
|
@@ -6979,7 +7226,7 @@ export declare type ElementTypeName = keyof DeclarationByType;
|
|
|
6979
7226
|
export declare const elementTypeNames: string[];
|
|
6980
7227
|
|
|
6981
7228
|
export declare const embed: {
|
|
6982
|
-
(props?: ElementProps<Partial<{
|
|
7229
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
6983
7230
|
title?: string | undefined;
|
|
6984
7231
|
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
6985
7232
|
src?: string | undefined;
|
|
@@ -6987,7 +7234,7 @@ export declare const embed: {
|
|
|
6987
7234
|
loading?: "lazy" | "eager" | undefined;
|
|
6988
7235
|
sandbox?: string | undefined;
|
|
6989
7236
|
}>> | undefined): ElementSpec;
|
|
6990
|
-
(
|
|
7237
|
+
(props?: ElementProps<Partial<{
|
|
6991
7238
|
title?: string | undefined;
|
|
6992
7239
|
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
6993
7240
|
src?: string | undefined;
|
|
@@ -7089,6 +7336,12 @@ export declare type Explanation = {
|
|
|
7089
7336
|
title: string;
|
|
7090
7337
|
description: string;
|
|
7091
7338
|
params: ParamInfo[];
|
|
7339
|
+
} | {
|
|
7340
|
+
kind: 'helper';
|
|
7341
|
+
name: string;
|
|
7342
|
+
signature: string;
|
|
7343
|
+
summary: string;
|
|
7344
|
+
example: string;
|
|
7092
7345
|
};
|
|
7093
7346
|
|
|
7094
7347
|
/** One explanation as text, for a person or an agent reading a terminal. */
|
|
@@ -7152,13 +7405,13 @@ export declare const flagSpecOf: (gate: ElementFlagGate) => string;
|
|
|
7152
7405
|
export declare const flowStepIds: (flows: StepSpec[][]) => string[][];
|
|
7153
7406
|
|
|
7154
7407
|
export declare const fontAwesome: {
|
|
7155
|
-
(props?: ElementProps<Partial<{
|
|
7408
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
7156
7409
|
size?: string | undefined;
|
|
7157
7410
|
label?: string | undefined;
|
|
7158
7411
|
icon?: string | undefined;
|
|
7159
7412
|
iconAnimation?: string | undefined;
|
|
7160
7413
|
}>> | undefined): ElementSpec;
|
|
7161
|
-
(
|
|
7414
|
+
(props?: ElementProps<Partial<{
|
|
7162
7415
|
size?: string | undefined;
|
|
7163
7416
|
label?: string | undefined;
|
|
7164
7417
|
icon?: string | undefined;
|
|
@@ -7196,7 +7449,7 @@ export { FontFace_2 as FontFace }
|
|
|
7196
7449
|
export declare type FontStyle = 'normal' | 'italic';
|
|
7197
7450
|
|
|
7198
7451
|
export declare const form: {
|
|
7199
|
-
(props?: ElementProps<Partial<{
|
|
7452
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
7200
7453
|
values: Record<string, unknown>;
|
|
7201
7454
|
method: "get" | "post";
|
|
7202
7455
|
noValidate: boolean;
|
|
@@ -7204,7 +7457,7 @@ export declare const form: {
|
|
|
7204
7457
|
managedByInteractions: boolean;
|
|
7205
7458
|
errors: Record<string, string>;
|
|
7206
7459
|
}>> | undefined): ElementSpec;
|
|
7207
|
-
(
|
|
7460
|
+
(props?: ElementProps<Partial<{
|
|
7208
7461
|
values: Record<string, unknown>;
|
|
7209
7462
|
method: "get" | "post";
|
|
7210
7463
|
noValidate: boolean;
|
|
@@ -7215,8 +7468,8 @@ export declare const form: {
|
|
|
7215
7468
|
};
|
|
7216
7469
|
|
|
7217
7470
|
export declare const formControl: {
|
|
7218
|
-
(props?: ElementProps< FormControlAttributes> | undefined): ElementSpec;
|
|
7219
7471
|
(children: ElementSpec[], props?: ElementProps< FormControlAttributes> | undefined): ElementSpec;
|
|
7472
|
+
(props?: ElementProps< FormControlAttributes> | undefined): ElementSpec;
|
|
7220
7473
|
};
|
|
7221
7474
|
|
|
7222
7475
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
@@ -7229,7 +7482,11 @@ declare type FormControlAttributes = AuthorableAttributes<FormControlProps, 'val
|
|
|
7229
7482
|
declare type FormControlProps = {
|
|
7230
7483
|
ref: RefObject<HTMLElement>;
|
|
7231
7484
|
className: string;
|
|
7232
|
-
subType: 'text' | 'number' | 'email' | 'password'
|
|
7485
|
+
subType: 'text' | 'number' | 'email' | 'password'
|
|
7486
|
+
/** A search box: the browser draws its clear button, and a phone shows its search key. */
|
|
7487
|
+
| 'search' | 'url'
|
|
7488
|
+
/** A phone number: a phone shows its dial pad. */
|
|
7489
|
+
| 'tel' | 'date' | 'time' | 'checkbox' | 'switch' | 'select' | 'textarea' | 'hidden'
|
|
7233
7490
|
/** The browser's own colour picker: its value is `#rrggbb`. */
|
|
7234
7491
|
| 'color';
|
|
7235
7492
|
name: string;
|
|
@@ -7376,7 +7633,8 @@ export declare type HostedFont = FontBase & {
|
|
|
7376
7633
|
declare type IconPlacement = 'before' | 'after';
|
|
7377
7634
|
|
|
7378
7635
|
export declare const image: {
|
|
7379
|
-
(props?: ElementProps<Partial<{
|
|
7636
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
7637
|
+
resize?: boolean | undefined;
|
|
7380
7638
|
height?: number | undefined;
|
|
7381
7639
|
width?: number | undefined;
|
|
7382
7640
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
@@ -7386,7 +7644,8 @@ export declare const image: {
|
|
|
7386
7644
|
decorative?: boolean | undefined;
|
|
7387
7645
|
loadMode?: "auto" | "eager" | "lazy" | undefined;
|
|
7388
7646
|
}>> | undefined): ElementSpec;
|
|
7389
|
-
(
|
|
7647
|
+
(props?: ElementProps<Partial<{
|
|
7648
|
+
resize?: boolean | undefined;
|
|
7390
7649
|
height?: number | undefined;
|
|
7391
7650
|
width?: number | undefined;
|
|
7392
7651
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
@@ -7626,6 +7885,11 @@ export declare type InteractionCallback<T extends Record<string, unknown> = Reco
|
|
|
7626
7885
|
export declare type InteractionCallbackContext = {
|
|
7627
7886
|
/** Id of the element this flow fired on. Absent for a flow with no host element. */
|
|
7628
7887
|
hostElementId?: string;
|
|
7888
|
+
/**
|
|
7889
|
+
* Aborted when the flow running this step is superseded — its trigger fired again under `whileRunning: 'latest'`. A
|
|
7890
|
+
* step waiting on something it can stop (a request, a server run) stops it; the flow starts no further step.
|
|
7891
|
+
*/
|
|
7892
|
+
signal?: AbortSignal;
|
|
7629
7893
|
};
|
|
7630
7894
|
|
|
7631
7895
|
export declare type InteractionCallbackParam<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
@@ -7640,6 +7904,11 @@ export declare type InteractionCallbackParam<T extends Record<string, unknown> =
|
|
|
7640
7904
|
} & ({
|
|
7641
7905
|
type: 'text';
|
|
7642
7906
|
defaultValue?: string | number;
|
|
7907
|
+
}
|
|
7908
|
+
/** Written as text — a number or a template — and handed to the callback as a number. */
|
|
7909
|
+
| {
|
|
7910
|
+
type: 'number';
|
|
7911
|
+
defaultValue?: number;
|
|
7643
7912
|
} | {
|
|
7644
7913
|
type: 'textarea';
|
|
7645
7914
|
defaultValue?: string | number;
|
|
@@ -7684,13 +7953,17 @@ export declare type InteractionCallbackParam<T extends Record<string, unknown> =
|
|
|
7684
7953
|
|
|
7685
7954
|
export declare type InteractionCallbackParamValues<T extends Record<string, unknown> = Record<string, unknown>> = T;
|
|
7686
7955
|
|
|
7687
|
-
|
|
7956
|
+
/**
|
|
7957
|
+
* What a field a step or a trigger hands its flow looks like — a sample, shown where a flow is written, never sent: `0`
|
|
7958
|
+
* for a count, `false` for a flag, `[]` for a list, as well as the text `''`.
|
|
7959
|
+
*/
|
|
7960
|
+
export declare type InteractionCallbackPreview = string | number | boolean | null | unknown[] | Record<string, unknown>;
|
|
7688
7961
|
|
|
7689
7962
|
export declare type InteractionCallbackPreviews = Record<string, InteractionCallbackPreview>;
|
|
7690
7963
|
|
|
7691
7964
|
export declare type InteractionCallbackType = 'trigger' | 'globalCallback' | 'callback' | 'utility' | 'task';
|
|
7692
7965
|
|
|
7693
|
-
export declare type InteractionParamType = 'boolean' | 'select' | 'text' | 'textarea' | 'codemirror-text' | 'codemirror-json' | 'elements';
|
|
7966
|
+
export declare type InteractionParamType = 'boolean' | 'select' | 'text' | 'number' | 'textarea' | 'codemirror-text' | 'codemirror-json' | 'elements';
|
|
7694
7967
|
|
|
7695
7968
|
export declare type InteractionPostCallback<T extends Record<string, unknown> = Record<string, unknown>> = (params: InteractionCallbackParamValues<T>, callbackResult?: unknown) => unknown;
|
|
7696
7969
|
|
|
@@ -7751,6 +8024,9 @@ export declare const isRuleSetSpec: (spec: StyleSpec) => spec is RuleSetSpec;
|
|
|
7751
8024
|
*/
|
|
7752
8025
|
export declare const isStyleDeclaration: (value: StyleSpec | StyleDeclaration) => value is StyleDeclaration;
|
|
7753
8026
|
|
|
8027
|
+
/** Whether a code is a suggestion's: what an element's `quiet` may name. */
|
|
8028
|
+
export declare const isSuggestionCode: (code: unknown) => code is SuggestionCode;
|
|
8029
|
+
|
|
7754
8030
|
/**
|
|
7755
8031
|
* A shortcut pressed the way the page will read it.
|
|
7756
8032
|
*
|
|
@@ -7858,8 +8134,8 @@ export declare function list(children: ElementSpec[], props?: ListProps): Elemen
|
|
|
7858
8134
|
declare type ListAttributes = AttributesOf<typeof elementDeclarations.List>;
|
|
7859
8135
|
|
|
7860
8136
|
export declare const listItem: {
|
|
7861
|
-
(props?: AuthoringProps | undefined): ElementSpec;
|
|
7862
8137
|
(children: ElementSpec[], props?: AuthoringProps | undefined): ElementSpec;
|
|
8138
|
+
(props?: AuthoringProps | undefined): ElementSpec;
|
|
7863
8139
|
};
|
|
7864
8140
|
|
|
7865
8141
|
declare type ListProps = ElementProps<Omit<ListAttributes, 'items'> & {
|
|
@@ -7883,6 +8159,25 @@ export declare interface ListRow {
|
|
|
7883
8159
|
};
|
|
7884
8160
|
}
|
|
7885
8161
|
|
|
8162
|
+
export declare interface LoadedImages {
|
|
8163
|
+
/** The pictures the page has. */
|
|
8164
|
+
images: number;
|
|
8165
|
+
/** Those still not drawn when the budget ran out — or that failed. */
|
|
8166
|
+
missing: number;
|
|
8167
|
+
}
|
|
8168
|
+
|
|
8169
|
+
/**
|
|
8170
|
+
* Runs in the page: every picture fetched and decoded before a picture of the whole page is taken. Self-contained — it
|
|
8171
|
+
* is serialised.
|
|
8172
|
+
*
|
|
8173
|
+
* A picture of the page is taken without scrolling, and a lazy image is fetched only once it is near the screen: below
|
|
8174
|
+
* 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
|
|
8175
|
+
* site's own (one that swaps `data-src` from an `IntersectionObserver`) and an arrival waiting to be seen react to the
|
|
8176
|
+
* scroll, not to an attribute — and back up; then `loading="lazy"` is made eager and the pictures are awaited, in
|
|
8177
|
+
* rounds while loading one turns up another (a blurred placeholder swapped for its picture), for `budgetMs` at most.
|
|
8178
|
+
*/
|
|
8179
|
+
export declare const loadImages: (budgetMs: number) => Promise<LoadedImages>;
|
|
8180
|
+
|
|
7886
8181
|
/**
|
|
7887
8182
|
* A driver's locator for an authored element, by name.
|
|
7888
8183
|
*
|
|
@@ -7913,7 +8208,7 @@ export declare type ManifestAsset = {
|
|
|
7913
8208
|
};
|
|
7914
8209
|
|
|
7915
8210
|
export declare const markdown: ElementFactory<Partial<{
|
|
7916
|
-
content
|
|
8211
|
+
content?: string | undefined;
|
|
7917
8212
|
}>>;
|
|
7918
8213
|
|
|
7919
8214
|
/** Declared params marked `required` that the agent did NOT supply, and whose `when` guard holds against the
|
|
@@ -7923,11 +8218,11 @@ export declare const markdown: ElementFactory<Partial<{
|
|
|
7923
8218
|
export declare const missingRequiredParams: (provided: Record<string, unknown>, effective: Record<string, unknown>, spec: ParamSpec) => string[];
|
|
7924
8219
|
|
|
7925
8220
|
export declare const modalContainer: {
|
|
7926
|
-
(props?: ElementProps<Partial<{
|
|
8221
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
7927
8222
|
title?: string | undefined;
|
|
7928
8223
|
autoHideAfterClick?: boolean | undefined;
|
|
7929
8224
|
}>> | undefined): ElementSpec;
|
|
7930
|
-
(
|
|
8225
|
+
(props?: ElementProps<Partial<{
|
|
7931
8226
|
title?: string | undefined;
|
|
7932
8227
|
autoHideAfterClick?: boolean | undefined;
|
|
7933
8228
|
}>> | undefined): ElementSpec;
|
|
@@ -7945,13 +8240,20 @@ export declare const modifierClassName: (elementId: string) => string;
|
|
|
7945
8240
|
* The one description the authoring package, the builder's Motion tab, the MCP and the validator all read; the
|
|
7946
8241
|
* stylesheet mirrors its presets and frames, and a test in `apps/sdk` holds the two together.
|
|
7947
8242
|
*/
|
|
7948
|
-
declare const MOTION_ENTERS: readonly ["fade", "fade-up", "fade-down", "slide-left", "slide-right", "scale"];
|
|
8243
|
+
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
8244
|
|
|
7950
|
-
/**
|
|
7951
|
-
|
|
8245
|
+
/**
|
|
8246
|
+
* A motion that repeats: a gentle rise and fall, a breath, a turn, a sway — a bounce, a wobble, a small orbit, a
|
|
8247
|
+
* heartbeat, a drift. Held until the page is live.
|
|
8248
|
+
*/
|
|
8249
|
+
export declare const MOTION_LOOPS: readonly ["float", "pulse", "spin", "sway", "bounce", "wobble", "orbit", "heartbeat", "drift"];
|
|
7952
8250
|
|
|
7953
|
-
/**
|
|
7954
|
-
|
|
8251
|
+
/**
|
|
8252
|
+
* When an arrival plays: as the page loads (`load`); once, as the element first comes into view, and then it stays
|
|
8253
|
+
* (`view`); or with the scroll itself, at the reader's pace — played backwards when the reader scrolls back up past it
|
|
8254
|
+
* (`scroll`).
|
|
8255
|
+
*/
|
|
8256
|
+
export declare const MOTION_TRIGGERS: readonly ["load", "view", "scroll"];
|
|
7955
8257
|
|
|
7956
8258
|
declare type MotionEnter = (typeof MOTION_ENTERS)[number];
|
|
7957
8259
|
|
|
@@ -8398,8 +8700,28 @@ export declare const openDialog: (target: string, metadata?: string) => StepSpec
|
|
|
8398
8700
|
*/
|
|
8399
8701
|
export declare const openModal: (target: string, metadata?: string) => StepSpec;
|
|
8400
8702
|
|
|
8703
|
+
/**
|
|
8704
|
+
* Opens a page and waits until it has settled: loaded, and nothing asked for in `quietMs` — the server data, the
|
|
8705
|
+
* images, the plugins it fetches after the HTML.
|
|
8706
|
+
*
|
|
8707
|
+
* What Playwright's `networkidle` would be if it knew a page with a live channel: `networkidle` counts the channel's
|
|
8708
|
+
* stream, which never ends, so on any page with a `channel` it never came — and every check of that page answered
|
|
8709
|
+
* that nothing was there. Answers what `goto` did: the response, or `null` when nothing answered.
|
|
8710
|
+
*/
|
|
8711
|
+
export declare const openPage: (page: SettlingPage, url: string, { quietMs, timeout }?: OpenPageOptions) => Promise<unknown>;
|
|
8712
|
+
|
|
8713
|
+
export declare interface OpenPageOptions {
|
|
8714
|
+
/** How long nothing may be asked for before the page counts as settled. 500 ms, as `networkidle`. */
|
|
8715
|
+
quietMs?: number;
|
|
8716
|
+
/** The longest it waits for that quiet, after the page loaded — then it goes on anyway. 15 s. */
|
|
8717
|
+
timeout?: number;
|
|
8718
|
+
}
|
|
8719
|
+
|
|
8401
8720
|
declare type Operator = '' | '=' | '!=' | '<' | '>' | '<=' | '>=' | 'contains' | 'doesNotContain' | 'beginsWith' | 'doesNotBeginWith' | 'endsWith' | 'doesNotEndWith' | 'empty' | 'notEmpty' | 'in' | 'notIn' | 'between' | 'notBetween';
|
|
8402
8721
|
|
|
8722
|
+
/** How many texts a page is read for: enough for a long page, few enough to stay quick. */
|
|
8723
|
+
export declare const PAGE_TEXT_LIMIT = 2000;
|
|
8724
|
+
|
|
8403
8725
|
/**
|
|
8404
8726
|
* A page a function can be evaluated in — Playwright's `Page`, Puppeteer's, or anything with the same method.
|
|
8405
8727
|
*
|
|
@@ -8409,6 +8731,46 @@ export declare interface PageEvaluator {
|
|
|
8409
8731
|
evaluate<R>(fn: (input: ProbeInput) => R, input: ProbeInput): Promise<R>;
|
|
8410
8732
|
}
|
|
8411
8733
|
|
|
8734
|
+
/** What every page of a family shares: where it lives, what frames it, how it is titled, and the shape of its body. */
|
|
8735
|
+
export declare interface PageFamily<Entry extends PageFamilyEntry> {
|
|
8736
|
+
folder?: string;
|
|
8737
|
+
layout?: LayoutRef;
|
|
8738
|
+
accessLevel?: PageSpec['accessLevel'];
|
|
8739
|
+
/** The document title: `entry => \`${entry.title} — Docs\``. The entry's own title when absent. */
|
|
8740
|
+
seoTitle?: (entry: Entry) => string;
|
|
8741
|
+
/**
|
|
8742
|
+
* One page's body, built inside `scope(entry.id, …)`: an `id` given here is the page's own (`id: 'title'` is
|
|
8743
|
+
* `<entry.id>-title`), and `ref` is the full name, for whatever names one — a binding, a step's target, a template.
|
|
8744
|
+
*/
|
|
8745
|
+
body: (entry: Entry, ref: (id: string) => string) => ElementSpec[];
|
|
8746
|
+
}
|
|
8747
|
+
|
|
8748
|
+
/**
|
|
8749
|
+
* Pages of one shape, each from its entry — the docs pages from their list, a menu's sections, a team's profiles.
|
|
8750
|
+
*
|
|
8751
|
+
* A function a space writes for itself does the same, and every space wrote the same one: the id, the slug, the titles,
|
|
8752
|
+
* the folder, the layout, and the prefix every id inside needs, because ids are one namespace for the whole space and
|
|
8753
|
+
* two pages of one shape give the same ones. Here it is once: the entries are data — an array in `src/data/`, typed —
|
|
8754
|
+
* and adding a page is adding an entry. Two entries with one id or one slug are refused as any two pages are.
|
|
8755
|
+
*
|
|
8756
|
+
* For one shape over a collection the visitor browses — a product, a post — a single page with a route param
|
|
8757
|
+
* (`slug: 'posts/:postId'`) reading the record is the answer instead: one page, as many addresses as records, and
|
|
8758
|
+
* nothing to author per record.
|
|
8759
|
+
*/
|
|
8760
|
+
export declare const pageFamily: <Entry extends PageFamilyEntry>({ folder, layout, accessLevel, seoTitle, body }: PageFamily<Entry>, entries: readonly Entry[]) => PageSpec[];
|
|
8761
|
+
|
|
8762
|
+
/** What one page of a family says that its siblings do not. */
|
|
8763
|
+
export declare interface PageFamilyEntry {
|
|
8764
|
+
/** The page's id — and the prefix of every id its body gives, so two pages of the family never share one. */
|
|
8765
|
+
id: string;
|
|
8766
|
+
/** Its name in the builder, and its document title unless the family words one (`seoTitle`). */
|
|
8767
|
+
title: string;
|
|
8768
|
+
/** Its path, relative to the family's folder. */
|
|
8769
|
+
slug: string;
|
|
8770
|
+
/** Its meta description, and its share preview's. */
|
|
8771
|
+
description?: string;
|
|
8772
|
+
}
|
|
8773
|
+
|
|
8412
8774
|
export declare type PageFolder = {
|
|
8413
8775
|
id: string;
|
|
8414
8776
|
name: string;
|
|
@@ -8535,8 +8897,41 @@ export declare interface PageSpec {
|
|
|
8535
8897
|
body: ElementSpec[];
|
|
8536
8898
|
}
|
|
8537
8899
|
|
|
8900
|
+
/**
|
|
8901
|
+
* The words of two pages paired — the same text on both — and what each pair does differently: its size, its weight,
|
|
8902
|
+
* its colour, the box around it, where it sits. What a picture comparison says as a percentage, said as the property
|
|
8903
|
+
* that makes it, so a page being matched to another is changed where it differs instead of measured by hand.
|
|
8904
|
+
*/
|
|
8905
|
+
/** One run of words on a page, with what decides how it looks. */
|
|
8906
|
+
export declare interface PageText {
|
|
8907
|
+
/** The words, with their spaces collapsed, cut at 120 characters: past them, the start is enough to tell two apart. */
|
|
8908
|
+
text: string;
|
|
8909
|
+
tag: string;
|
|
8910
|
+
/** Its box, on the whole page. */
|
|
8911
|
+
x: number;
|
|
8912
|
+
y: number;
|
|
8913
|
+
width: number;
|
|
8914
|
+
height: number;
|
|
8915
|
+
fontSize: number;
|
|
8916
|
+
fontWeight: string;
|
|
8917
|
+
lineHeight: string;
|
|
8918
|
+
letterSpacing: string;
|
|
8919
|
+
/** The first family the page names. */
|
|
8920
|
+
fontFamily: string;
|
|
8921
|
+
color: string;
|
|
8922
|
+
background: string;
|
|
8923
|
+
padding: string;
|
|
8924
|
+
radius: string;
|
|
8925
|
+
}
|
|
8926
|
+
|
|
8927
|
+
/**
|
|
8928
|
+
* Runs in the page: every element that holds words of its own and is drawn, with what decides how they look. Skips the
|
|
8929
|
+
* dev tools' own chrome, and what a visitor cannot see. Self-contained — it is serialised.
|
|
8930
|
+
*/
|
|
8931
|
+
export declare const pageTexts: (limit: number) => PageText[];
|
|
8932
|
+
|
|
8538
8933
|
export declare const pagination: {
|
|
8539
|
-
(props?: ElementProps<Partial<{
|
|
8934
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
8540
8935
|
mode?: "pages" | "loadMore" | undefined;
|
|
8541
8936
|
label?: string | undefined;
|
|
8542
8937
|
target?: "url" | "interaction" | undefined;
|
|
@@ -8547,7 +8942,7 @@ export declare const pagination: {
|
|
|
8547
8942
|
nextLabel?: string | undefined;
|
|
8548
8943
|
loadMoreLabel?: string | undefined;
|
|
8549
8944
|
}>> | undefined): ElementSpec;
|
|
8550
|
-
(
|
|
8945
|
+
(props?: ElementProps<Partial<{
|
|
8551
8946
|
mode?: "pages" | "loadMore" | undefined;
|
|
8552
8947
|
label?: string | undefined;
|
|
8553
8948
|
target?: "url" | "interaction" | undefined;
|
|
@@ -8596,18 +8991,44 @@ declare const PATH: unique symbol;
|
|
|
8596
8991
|
/** The route for a slug: authoring stores it bare, and everything that navigates wants it absolute. */
|
|
8597
8992
|
export declare const pathForSlug: (slug: string) => string;
|
|
8598
8993
|
|
|
8994
|
+
export declare interface PictureAlignment {
|
|
8995
|
+
/** For each region, in the order given, how far down `b` its rows are. */
|
|
8996
|
+
shifts: number[];
|
|
8997
|
+
/** For each row of `a`, how far down `b` the same row is — the smallest region holding the row decides. */
|
|
8998
|
+
rowShift: number[];
|
|
8999
|
+
/** The first region from the top that `b` has somewhere else, and how far. */
|
|
9000
|
+
drift?: {
|
|
9001
|
+
name: string;
|
|
9002
|
+
shift: number;
|
|
9003
|
+
};
|
|
9004
|
+
}
|
|
9005
|
+
|
|
8599
9006
|
export declare interface PictureDiff {
|
|
8600
9007
|
width: number;
|
|
8601
9008
|
height: number;
|
|
8602
9009
|
/** The share of pixels that differ, in percent, to one decimal. */
|
|
8603
9010
|
changed: number;
|
|
9011
|
+
/** Each region's share that differs — and, compared aligned, how far down the other picture it sits (`shift`). */
|
|
8604
9012
|
regions: {
|
|
8605
9013
|
name: string;
|
|
8606
9014
|
changed: number;
|
|
9015
|
+
shift?: number;
|
|
8607
9016
|
}[];
|
|
8608
9017
|
/** Both pictures beside each other, and the differences in red over a faded copy of the first — PNG data URLs. */
|
|
8609
9018
|
sideBySide: string;
|
|
8610
9019
|
diff: string;
|
|
9020
|
+
/** How tall each picture is. */
|
|
9021
|
+
heights: {
|
|
9022
|
+
a: number;
|
|
9023
|
+
b: number;
|
|
9024
|
+
};
|
|
9025
|
+
/** Compared aligned: the first region the other picture has somewhere else, and how far. */
|
|
9026
|
+
driftFrom?: {
|
|
9027
|
+
name: string;
|
|
9028
|
+
shift: number;
|
|
9029
|
+
};
|
|
9030
|
+
/** Compared aligned: for each row of the first picture, how far down the second the same row is. */
|
|
9031
|
+
rowShift?: number[];
|
|
8611
9032
|
}
|
|
8612
9033
|
|
|
8613
9034
|
export declare interface PictureDiffInput {
|
|
@@ -8617,6 +9038,11 @@ export declare interface PictureDiffInput {
|
|
|
8617
9038
|
regions: PictureRegion[];
|
|
8618
9039
|
/** How far apart two channels may be and still count as the same pixel (0–255) — anti-aliasing is not a change. */
|
|
8619
9040
|
tolerance: number;
|
|
9041
|
+
/**
|
|
9042
|
+
* For each row of `a`, how far down `b` the same row is (`alignPictures`): each section compared with where it sits
|
|
9043
|
+
* in the other picture. Left out, row for row.
|
|
9044
|
+
*/
|
|
9045
|
+
rowShift?: number[];
|
|
8620
9046
|
}
|
|
8621
9047
|
|
|
8622
9048
|
/** Anything that can run a function in a browser page — Playwright's `Page`, Puppeteer's. */
|
|
@@ -8629,8 +9055,9 @@ export declare interface PictureDriver {
|
|
|
8629
9055
|
* reads "footer 2 %, spotlight 14 %" instead of looking at two full screenshots, and opens a picture only where the
|
|
8630
9056
|
* numbers say something moved.
|
|
8631
9057
|
*
|
|
8632
|
-
* The
|
|
8633
|
-
* already has, so this package stays one that installs nothing.
|
|
9058
|
+
* The pixels are read in a browser page (any driver's `evaluate`): a canvas is the one image decoder every driver
|
|
9059
|
+
* already has, so this package stays one that installs nothing. What can be worked out from a little data — where each
|
|
9060
|
+
* section of one page sits in the other — is worked out here, in plain functions.
|
|
8634
9061
|
*/
|
|
8635
9062
|
/** A part of the page, by where it is in the picture: the landmarks a page is read by. */
|
|
8636
9063
|
export declare interface PictureRegion {
|
|
@@ -8652,7 +9079,7 @@ export declare interface PlannedFix {
|
|
|
8652
9079
|
code: string;
|
|
8653
9080
|
message: string;
|
|
8654
9081
|
elementId: string | null;
|
|
8655
|
-
/** Where the element was written: `src/
|
|
9082
|
+
/** Where the element was written: `src/space/pages/home.ts:42`. Absent for an element no factory wrote. */
|
|
8656
9083
|
at?: string;
|
|
8657
9084
|
/** The same place exactly — the factory's name, at its line and column — which is what the edit is made at. */
|
|
8658
9085
|
position?: WrittenPosition;
|
|
@@ -8864,17 +9291,38 @@ export declare interface ProbeFindings {
|
|
|
8864
9291
|
* Plain data both ways, because it crosses into the page as a serialized argument and comes back the same way.
|
|
8865
9292
|
*/
|
|
8866
9293
|
export declare interface ProbeInput {
|
|
9294
|
+
/** `list`: a list, whose box is only its rows — none drawn is a list with nothing in it, not one hidden. */
|
|
8867
9295
|
expected: {
|
|
8868
9296
|
id: string;
|
|
8869
9297
|
selector: string;
|
|
9298
|
+
list?: true;
|
|
8870
9299
|
}[];
|
|
8871
9300
|
images: boolean;
|
|
8872
9301
|
overflow: boolean;
|
|
8873
9302
|
legibility: boolean;
|
|
8874
9303
|
}
|
|
8875
9304
|
|
|
9305
|
+
/** Runs in the page: both pictures read as row profiles, which is what aligning them needs. Self-contained. */
|
|
9306
|
+
export declare const profilePictures: ({ a, b, columns }: {
|
|
9307
|
+
a: string;
|
|
9308
|
+
b: string;
|
|
9309
|
+
columns: number;
|
|
9310
|
+
}) => Promise<{
|
|
9311
|
+
a: RowProfile;
|
|
9312
|
+
b: RowProfile;
|
|
9313
|
+
}>;
|
|
9314
|
+
|
|
8876
9315
|
declare type ProviderPagination = 'none' | 'url' | 'append';
|
|
8877
9316
|
|
|
9317
|
+
/** How a provider's asking went — what every `apiContainer` publishes beside its answer. */
|
|
9318
|
+
export declare interface ProviderState {
|
|
9319
|
+
isLoading: boolean;
|
|
9320
|
+
isEmpty: boolean;
|
|
9321
|
+
hasError: boolean;
|
|
9322
|
+
errorMessage: string;
|
|
9323
|
+
isStale: boolean;
|
|
9324
|
+
}
|
|
9325
|
+
|
|
8878
9326
|
/**
|
|
8879
9327
|
* Says something on a `channel`, by id: every page on its topic hears it — `onMessage`, and the channel's source.
|
|
8880
9328
|
*
|
|
@@ -8895,11 +9343,11 @@ export declare const readDevToolsInPage: ({ state, element }: DevToolsInput) =>
|
|
|
8895
9343
|
export declare const reconcileParams: (params: Record<string, unknown>, spec: ParamSpec, strict: boolean) => Record<string, unknown>;
|
|
8896
9344
|
|
|
8897
9345
|
export declare const reference: {
|
|
8898
|
-
(props?: ElementProps<Partial<{
|
|
9346
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
8899
9347
|
referenceId: string;
|
|
8900
9348
|
referenceType: "element" | "component";
|
|
8901
9349
|
}>> | undefined): ElementSpec;
|
|
8902
|
-
(
|
|
9350
|
+
(props?: ElementProps<Partial<{
|
|
8903
9351
|
referenceId: string;
|
|
8904
9352
|
referenceType: "element" | "component";
|
|
8905
9353
|
}>> | undefined): ElementSpec;
|
|
@@ -9006,7 +9454,7 @@ export declare type ResponsiveBlock = Partial<Record<DisplayMode, StyleBlock>>;
|
|
|
9006
9454
|
|
|
9007
9455
|
/**
|
|
9008
9456
|
* 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` (
|
|
9457
|
+
* only `desktop`: `tablet` (48–64rem) and `mobile` (up to 48rem) are disjoint ranges, so a `tablet` rule never
|
|
9010
9458
|
* reaches a phone unless `mobile` repeats it.
|
|
9011
9459
|
*
|
|
9012
9460
|
* `compact` is both of them at once — everything narrower than a desktop: the dock that replaces a sidebar, the grid
|
|
@@ -9027,8 +9475,21 @@ export declare const richText: ElementFactory<Partial<{
|
|
|
9027
9475
|
mediaBaseUrl?: string | undefined;
|
|
9028
9476
|
}>>;
|
|
9029
9477
|
|
|
9478
|
+
/** What `answerAction` needs of a page — a Playwright `Page` is one. */
|
|
9479
|
+
export declare interface RoutingPage {
|
|
9480
|
+
route(url: string, handler: (route: AnsweredRoute) => Promise<void>): Promise<void>;
|
|
9481
|
+
}
|
|
9482
|
+
|
|
9030
9483
|
export declare const row: (gap: string, extra?: CssProps) => StyleRules;
|
|
9031
9484
|
|
|
9485
|
+
/** A picture read row by row: each row the mean colour of each of `columns` bands across it, `columns * 3` values. */
|
|
9486
|
+
export declare interface RowProfile {
|
|
9487
|
+
width: number;
|
|
9488
|
+
height: number;
|
|
9489
|
+
columns: number;
|
|
9490
|
+
rows: number[];
|
|
9491
|
+
}
|
|
9492
|
+
|
|
9032
9493
|
/** What a list's `row` function is: handed the row's names, it writes what the row renders. */
|
|
9033
9494
|
export declare type RowWriter<Row> = (row: Row) => ElementSpec | ElementSpec[];
|
|
9034
9495
|
|
|
@@ -9352,13 +9813,13 @@ export declare const SCROLL_CALLBACKS: {
|
|
|
9352
9813
|
type: "select";
|
|
9353
9814
|
description: string;
|
|
9354
9815
|
default: string;
|
|
9355
|
-
options: ("
|
|
9816
|
+
options: ("start" | "center" | "end" | "nearest")[];
|
|
9356
9817
|
};
|
|
9357
9818
|
inline: {
|
|
9358
9819
|
type: "select";
|
|
9359
9820
|
description: string;
|
|
9360
9821
|
default: string;
|
|
9361
|
-
options: ("
|
|
9822
|
+
options: ("start" | "center" | "end" | "nearest")[];
|
|
9362
9823
|
};
|
|
9363
9824
|
behavior: BuiltinParam;
|
|
9364
9825
|
};
|
|
@@ -9430,6 +9891,26 @@ export declare const setState: (params: {
|
|
|
9430
9891
|
value: unknown;
|
|
9431
9892
|
}) => StepSpec;
|
|
9432
9893
|
|
|
9894
|
+
/** The events `openPage` follows a page's requests by. */
|
|
9895
|
+
export declare type SettlingEvent = 'request' | 'requestfinished' | 'requestfailed';
|
|
9896
|
+
|
|
9897
|
+
/** What `openPage` needs of a page — a Playwright `Page` is one. */
|
|
9898
|
+
export declare interface SettlingPage {
|
|
9899
|
+
goto(url: string, options: {
|
|
9900
|
+
waitUntil: 'load';
|
|
9901
|
+
}): Promise<unknown>;
|
|
9902
|
+
on(event: SettlingEvent, listener: (request: SettlingRequest) => void): unknown;
|
|
9903
|
+
off(event: SettlingEvent, listener: (request: SettlingRequest) => void): unknown;
|
|
9904
|
+
waitForTimeout(milliseconds: number): Promise<void>;
|
|
9905
|
+
}
|
|
9906
|
+
|
|
9907
|
+
/** A request, as `openPage` reads it: enough to tell a stream that stays open from a request that ends. */
|
|
9908
|
+
export declare interface SettlingRequest {
|
|
9909
|
+
url(): string;
|
|
9910
|
+
resourceType(): string;
|
|
9911
|
+
headers(): Record<string, string>;
|
|
9912
|
+
}
|
|
9913
|
+
|
|
9433
9914
|
/** A shortcut as `onKey` writes it, as the key a driver presses. Refuses anything `onKey` would. */
|
|
9434
9915
|
export declare const shortcutKey: (shortcut: string, isMac: boolean) => string;
|
|
9435
9916
|
|
|
@@ -9660,7 +10141,7 @@ export declare interface SpaceHandles {
|
|
|
9660
10141
|
export declare type SpaceRefusal = {
|
|
9661
10142
|
/** The nearest named element and the steps from it — `"store-footer" › container[1]`. Empty for the space itself. */
|
|
9662
10143
|
place: string;
|
|
9663
|
-
/** The line of the author's own code that wrote it — `src/
|
|
10144
|
+
/** The line of the author's own code that wrote it — `src/space/layout.ts:417` — when a factory recorded one. */
|
|
9664
10145
|
at?: string;
|
|
9665
10146
|
/** What `authoring-errors.md` files it under — a code of `AUTHORING_CODES`, or a structural one of `validateSchema`. */
|
|
9666
10147
|
code?: string;
|
|
@@ -9773,9 +10254,9 @@ export declare interface SpaceSpec {
|
|
|
9773
10254
|
*/
|
|
9774
10255
|
settings?: Partial<Omit<Schema['settings'], 'customCss'>>;
|
|
9775
10256
|
/**
|
|
9776
|
-
* Server-resolved data for this space's `runtime: 'server'` elements
|
|
9777
|
-
*
|
|
9778
|
-
*
|
|
10257
|
+
* Server-resolved data for this space's `runtime: 'server'` elements: on unless a space turns it off. Left out,
|
|
10258
|
+
* authoring writes `{ enabled: true }` for a space that has a server element; `{ enabled: false }` with one is warned
|
|
10259
|
+
* (`server-data-without-rsc`).
|
|
9779
10260
|
*/
|
|
9780
10261
|
rsc?: Schema['rsc'];
|
|
9781
10262
|
mode?: Style['mode'];
|
|
@@ -10171,7 +10652,13 @@ declare const styleConstants: {
|
|
|
10171
10652
|
readonly CLIP_PATH: "clip-path";
|
|
10172
10653
|
readonly TRANSFORM: "transform";
|
|
10173
10654
|
readonly TRANSFORM_ORIGIN: "transform-origin";
|
|
10655
|
+
readonly TRANSLATE: "translate";
|
|
10656
|
+
readonly ROTATE: "rotate";
|
|
10657
|
+
readonly SCALE: "scale";
|
|
10658
|
+
readonly TRANSFORM_STYLE: "transform-style";
|
|
10174
10659
|
readonly PERSPECTIVE: "perspective";
|
|
10660
|
+
readonly PERSPECTIVE_ORIGIN: "perspective-origin";
|
|
10661
|
+
readonly BACKFACE_VISIBILITY: "backface-visibility";
|
|
10175
10662
|
readonly WILL_CHANGE: "will-change";
|
|
10176
10663
|
readonly OUTLINE_WIDTH: "outline-width";
|
|
10177
10664
|
readonly OUTLINE_STYLE: "outline-style";
|
|
@@ -10213,6 +10700,8 @@ declare const styleConstants: {
|
|
|
10213
10700
|
readonly OVERFLOW_Y: "overflow-y";
|
|
10214
10701
|
readonly SCROLLBAR_WIDTH: "scrollbar-width";
|
|
10215
10702
|
readonly SCROLLBAR_COLOR: "scrollbar-color";
|
|
10703
|
+
readonly CONTAINER_TYPE: "container-type";
|
|
10704
|
+
readonly CONTAINER_NAME: "container-name";
|
|
10216
10705
|
readonly OBJECT_FIT: "object-fit";
|
|
10217
10706
|
readonly OBJECT_POSITION: "object-position";
|
|
10218
10707
|
readonly COLUMN_WIDTH: "column-width";
|
|
@@ -10358,8 +10847,13 @@ export declare interface Suggestion {
|
|
|
10358
10847
|
/** The elements it is about, the first being the one to look at. Empty for one about the stylesheet. */
|
|
10359
10848
|
elementIds: string[];
|
|
10360
10849
|
saves: number;
|
|
10361
|
-
/** Where the first of them was written: `src/
|
|
10850
|
+
/** Where the first of them was written: `src/space/pages/home.ts:42`. Absent when no factory wrote it. */
|
|
10362
10851
|
at?: string;
|
|
10852
|
+
/**
|
|
10853
|
+
* The declarations a suggestion about the stylesheet or the components is about — the classes, tokens or components
|
|
10854
|
+
* it names — so whoever reports only what is new (the MCP, after a batch) can tell a new one from those said before.
|
|
10855
|
+
*/
|
|
10856
|
+
subjects?: string[];
|
|
10363
10857
|
}
|
|
10364
10858
|
|
|
10365
10859
|
export declare type SuggestionCode = {
|
|
@@ -10373,9 +10867,10 @@ export declare type SuggestionCode = {
|
|
|
10373
10867
|
* Not the linter. `lintSpace` reports what renders something other than what was written, and a space is refused or
|
|
10374
10868
|
* warned for it; nothing here is wrong — the page renders exactly as written. These are the platform's own ways to say
|
|
10375
10869
|
* it once instead of many times (layouts, components, lists, an element's own `content`, a class's states, the SDK's
|
|
10376
|
-
* defaults)
|
|
10377
|
-
* that did not know them, or a person who has not met them yet.
|
|
10378
|
-
* elements say how many it saves, which is what they are ranked
|
|
10870
|
+
* defaults), to move it cheaply (the compositor's properties), and what it declares and never uses or says twice —
|
|
10871
|
+
* offered to whoever wrote it the long way: an agent that did not know them, or a person who has not met them yet.
|
|
10872
|
+
* Each names what to write instead, and the ones about elements say how many it saves, which is what they are ranked
|
|
10873
|
+
* by.
|
|
10379
10874
|
*/
|
|
10380
10875
|
export declare const suggestSpace: ({ schema, style }: {
|
|
10381
10876
|
schema: Schema;
|
|
@@ -10400,23 +10895,23 @@ export declare type SystemFont = FontBase & {
|
|
|
10400
10895
|
};
|
|
10401
10896
|
|
|
10402
10897
|
export declare const tabContainer: {
|
|
10403
|
-
(props?: AuthoringProps | undefined): ElementSpec;
|
|
10404
10898
|
(children: ElementSpec[], props?: AuthoringProps | undefined): ElementSpec;
|
|
10899
|
+
(props?: AuthoringProps | undefined): ElementSpec;
|
|
10405
10900
|
};
|
|
10406
10901
|
|
|
10407
10902
|
export declare const tabContainerBody: {
|
|
10408
|
-
(props?: AuthoringProps | undefined): ElementSpec;
|
|
10409
10903
|
(children: ElementSpec[], props?: AuthoringProps | undefined): ElementSpec;
|
|
10904
|
+
(props?: AuthoringProps | undefined): ElementSpec;
|
|
10410
10905
|
};
|
|
10411
10906
|
|
|
10412
10907
|
export declare const tabContainerHeader: {
|
|
10413
|
-
(props?: AuthoringProps | undefined): ElementSpec;
|
|
10414
10908
|
(children: ElementSpec[], props?: AuthoringProps | undefined): ElementSpec;
|
|
10909
|
+
(props?: AuthoringProps | undefined): ElementSpec;
|
|
10415
10910
|
};
|
|
10416
10911
|
|
|
10417
10912
|
export declare const tabContainerItem: {
|
|
10418
|
-
(props?: AuthoringProps | undefined): ElementSpec;
|
|
10419
10913
|
(children: ElementSpec[], props?: AuthoringProps | undefined): ElementSpec;
|
|
10914
|
+
(props?: AuthoringProps | undefined): ElementSpec;
|
|
10420
10915
|
};
|
|
10421
10916
|
|
|
10422
10917
|
export declare type TagType = 'class' | 'element' | 'id';
|
|
@@ -10428,20 +10923,40 @@ export declare type TailwindColors = Readonly<Record<string, string>>;
|
|
|
10428
10923
|
export declare type TemplateReturns = 'text' | 'value';
|
|
10429
10924
|
|
|
10430
10925
|
export declare const text: ElementFactory<Partial<{
|
|
10926
|
+
title?: string | undefined;
|
|
10431
10927
|
content?: string | number | undefined;
|
|
10432
10928
|
}>>;
|
|
10433
10929
|
|
|
10930
|
+
export declare interface TextComparison {
|
|
10931
|
+
/** The texts found on both pages that look the same. */
|
|
10932
|
+
same: number;
|
|
10933
|
+
/** Those that do not, top to bottom on the first page. */
|
|
10934
|
+
differ: TextDifference[];
|
|
10935
|
+
/** Words only one of the two pages has. */
|
|
10936
|
+
onlyHere: string[];
|
|
10937
|
+
onlyThere: string[];
|
|
10938
|
+
}
|
|
10939
|
+
|
|
10940
|
+
/** A text on both pages, and what it does differently on the second: `font-size 68px → 60px`. */
|
|
10941
|
+
export declare interface TextDifference {
|
|
10942
|
+
tag: string;
|
|
10943
|
+
text: string;
|
|
10944
|
+
/** Where it is on the first page. */
|
|
10945
|
+
y: number;
|
|
10946
|
+
differences: string[];
|
|
10947
|
+
}
|
|
10948
|
+
|
|
10434
10949
|
export declare type Theme = 'dark' | 'light' | 'system';
|
|
10435
10950
|
|
|
10436
10951
|
export declare const themeToggle: {
|
|
10437
|
-
(props?: ElementProps<Partial<{
|
|
10952
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
10438
10953
|
subType?: "switch" | "segmented" | undefined;
|
|
10439
10954
|
lightLabel?: string | undefined;
|
|
10440
10955
|
darkLabel?: string | undefined;
|
|
10441
10956
|
systemLabel?: string | undefined;
|
|
10442
10957
|
showSystem?: boolean | undefined;
|
|
10443
10958
|
}>> | undefined): ElementSpec;
|
|
10444
|
-
(
|
|
10959
|
+
(props?: ElementProps<Partial<{
|
|
10445
10960
|
subType?: "switch" | "segmented" | undefined;
|
|
10446
10961
|
lightLabel?: string | undefined;
|
|
10447
10962
|
darkLabel?: string | undefined;
|
|
@@ -10640,6 +11155,27 @@ declare type TypedListProps<Item> = Omit<ListProps, 'items' | 'row'> & {
|
|
|
10640
11155
|
/** The triggers only some types fire, by action name — for a step builder that wants the title the builder shows. */
|
|
10641
11156
|
export declare const typeTriggerDefinitions: Record<string, InteractionCallback>;
|
|
10642
11157
|
|
|
11158
|
+
/**
|
|
11159
|
+
* Runs in the page: the document made as tall as what it holds, so a picture of the whole page is the whole page.
|
|
11160
|
+
* Self-contained — it is serialised.
|
|
11161
|
+
*
|
|
11162
|
+
* The SDK renders into `.plitzi-sdk` with a column of its own that scrolls, so the document never does and a driver's
|
|
11163
|
+
* full-page picture has nothing to extend: it is one screen. The column that scrolls, and every element up to `<html>`,
|
|
11164
|
+
* stops clipping and stops being held to a height. The viewport is left as it is on purpose: grown to the content, every
|
|
11165
|
+
* `vh` would mean that height and a `100vh` hero would be thousands of pixels tall. Answers the document's height.
|
|
11166
|
+
*/
|
|
11167
|
+
export declare const unrollPage: () => number;
|
|
11168
|
+
|
|
11169
|
+
/**
|
|
11170
|
+
* What a space declares and nothing uses — its classes, tokens and components — by the one rule the suggestions, the
|
|
11171
|
+
* builder's Usages panel and anything else that says "unused" read, so they never disagree.
|
|
11172
|
+
*/
|
|
11173
|
+
export declare const unusedDeclarations: (schema: Schema, style: Declared) => {
|
|
11174
|
+
classes: string[];
|
|
11175
|
+
tokens: string[];
|
|
11176
|
+
components: string[];
|
|
11177
|
+
};
|
|
11178
|
+
|
|
10643
11179
|
/**
|
|
10644
11180
|
* Changes one element's own attribute or state — the element `setState`, which is NOT the global one that writes
|
|
10645
11181
|
* `runtime.state`. Left without a target it runs against the element the flow is declared on.
|
|
@@ -10714,14 +11250,14 @@ export declare interface VariantSpec {
|
|
|
10714
11250
|
}
|
|
10715
11251
|
|
|
10716
11252
|
export declare const video: {
|
|
10717
|
-
(props?: ElementProps<Partial<{
|
|
11253
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
10718
11254
|
src?: string | undefined;
|
|
10719
11255
|
autoPlay?: boolean | undefined;
|
|
10720
11256
|
loop?: boolean | undefined;
|
|
10721
11257
|
muted?: boolean | undefined;
|
|
10722
11258
|
playsInline?: boolean | undefined;
|
|
10723
11259
|
}>> | undefined): ElementSpec;
|
|
10724
|
-
(
|
|
11260
|
+
(props?: ElementProps<Partial<{
|
|
10725
11261
|
src?: string | undefined;
|
|
10726
11262
|
autoPlay?: boolean | undefined;
|
|
10727
11263
|
loop?: boolean | undefined;
|
|
@@ -10861,15 +11397,18 @@ export declare const whenSucceeded: (stepId: string, step: StepSpec) => StepSpec
|
|
|
10861
11397
|
* - `skip` (the default): the new firing is ignored — what keeps a double click from submitting twice.
|
|
10862
11398
|
* - `parallel`: every firing runs its own flow, at the same time.
|
|
10863
11399
|
* - `queue`: every firing runs, one after another, in the order they came — none lost, none overlapping.
|
|
11400
|
+
* - `latest`: every firing runs, and the run before it stops — it starts no further step, and the step it is waiting
|
|
11401
|
+
* on stops if it can (a server action, a request). A search as you type: only the last question is answered.
|
|
10864
11402
|
*/
|
|
10865
|
-
export declare type WhileRunning = 'skip' | 'parallel' | 'queue';
|
|
11403
|
+
export declare type WhileRunning = 'skip' | 'parallel' | 'queue' | 'latest';
|
|
10866
11404
|
|
|
10867
11405
|
/**
|
|
10868
11406
|
* What a trigger does when it fires again while the flow it started still runs.
|
|
10869
11407
|
*
|
|
10870
11408
|
* `skip` is what happens without this: the new firing is ignored — which is what keeps a double click from submitting
|
|
10871
11409
|
* twice, and exactly wrong for a stream of events a flow must answer every one of. `queue` runs each firing after the
|
|
10872
|
-
* last, in order; `parallel` runs them all at once
|
|
11410
|
+
* last, in order; `parallel` runs them all at once; `latest` stops the run in progress — the server action or request
|
|
11411
|
+
* it waits on included — and runs the new one: a search as you type, where only the last question matters.
|
|
10873
11412
|
*
|
|
10874
11413
|
* ```ts
|
|
10875
11414
|
* [whileRunning('queue', named('arrived', on('onArrival'))), addNotification({ … }), delay(8000), …]
|