@plitzi/sdk-authoring 0.39.0 → 0.39.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -168,6 +168,14 @@ export declare type ActionLimits = {
168
168
  * response rather than per run, because it exists to stop one answer from being unbounded. 5 000 000 by default.
169
169
  */
170
170
  maxResponseBytes?: number;
171
+ /**
172
+ * Bytes all of one run's outbound responses may carry back together: 10 000 000 by default.
173
+ *
174
+ * `maxResponseBytes` bounds one answer; a flow that reads twenty answers just under it holds twenty of them, and a
175
+ * parsed answer holds several times its size in memory. Counted as the answers stream in, across every request the
176
+ * run makes, and refused the moment they go over — the run fails as `over_capacity`, naming this ceiling.
177
+ */
178
+ maxRunBytes?: number;
171
179
  };
172
180
 
173
181
  /** What an `apiContainer` fed by a server action publishes: the action's output at its root, beside its state. */
@@ -275,7 +283,7 @@ export declare interface ActionStepSpec {
275
283
  }
276
284
 
277
285
  /**
278
- * A task of the space's own as `taskAction` reads it — what a `FunctionTask` of `@plitzi/sdk-server/functions` is, and
286
+ * A task of the space's own as `taskAction` reads it — what a `FunctionTask` of `@plitzi/sdk-runtime` is, and
279
287
  * only what a way into it needs: its address, its words and its params. Structural, so any task is one.
280
288
  */
281
289
  export declare interface ActionTask {
@@ -486,10 +494,10 @@ export declare interface AnsweredRoute {
486
494
  export declare const apiContainer: {
487
495
  (children: ElementSpec[], props?: ElementProps<Partial<{
488
496
  when?: RuleGroup | undefined;
489
- action?: string | undefined;
490
497
  cache?: boolean | undefined;
491
498
  endpoint?: string | undefined;
492
499
  input?: (Record<string, unknown> | string) | undefined;
500
+ action?: string | undefined;
493
501
  method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
494
502
  resource?: string | undefined;
495
503
  headers?: Record<string, string> | undefined;
@@ -517,10 +525,10 @@ export declare const apiContainer: {
517
525
  }>> | undefined): ElementSpec;
518
526
  (props?: ElementProps<Partial<{
519
527
  when?: RuleGroup | undefined;
520
- action?: string | undefined;
521
528
  cache?: boolean | undefined;
522
529
  endpoint?: string | undefined;
523
530
  input?: (Record<string, unknown> | string) | undefined;
531
+ action?: string | undefined;
524
532
  method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
525
533
  resource?: string | undefined;
526
534
  headers?: Record<string, string> | undefined;
@@ -768,6 +776,11 @@ export declare const authorFlows: (flows: StepSpec[][], host?: string) => Record
768
776
 
769
777
  /** Every code authoring and its lint answer with — what each means and what to write instead: `plitzi explain <code>`. */
770
778
  export declare const AUTHORING_CODES: {
779
+ readonly 'heading-level-skipped': {
780
+ readonly kind: "suggested";
781
+ readonly means: "an `h4` right after an `h2` on a page as it is drawn — inside its layouts, with the headings a `markdown` writes, and without those that start hidden (`visible: false`): the outline misses a level (Lighthouse: \"not in a sequentially-descending order\")";
782
+ readonly fix: "the next level down; size it with its class";
783
+ };
771
784
  readonly 'repeated-on-pages': {
772
785
  readonly kind: "suggested";
773
786
  readonly means: "the same block — a header, a footer, a side panel — written into several pages";
@@ -775,8 +788,8 @@ export declare const AUTHORING_CODES: {
775
788
  };
776
789
  readonly 'repeated-shape': {
777
790
  readonly kind: "suggested";
778
- readonly means: "the same structure written again and again with different words — cards, rows, tiles; copies that bind different data, read their own template or render on the server are controls, not repeats";
779
- readonly fix: "a component with props (`components`, `component(id, { props })`), or one `list` when they are rows of data side by side — a few cards a person rewords on the canvas can stay cards";
791
+ readonly means: "the same structure written again and again with different words — cards, rows, tiles. Copies that read their data in a form of their own (their template) or render on the server are no repeats, and neither are copies side by side wired to different sources or state keys — controls written alike; copies apart that read different sources are one component, each instance handed its own";
792
+ readonly fix: "a component with props (`components`, `component(id, { props })`) — a source a copy reads handed in as a bound `json` prop (`component(id, { bind: [{ to: 'items', source }] })`, read inside as `props.items`) — or one `list` when they are rows of data side by side; a few cards a person rewords on the canvas can stay cards";
780
793
  };
781
794
  readonly 'element-color-inherited': {
782
795
  readonly kind: "suggested";
@@ -888,11 +901,6 @@ export declare const AUTHORING_CODES: {
888
901
  readonly means: "a click flow on a container, text, heading, image or list item — no keyboard reaches it";
889
902
  readonly fix: "the flow on a `button` (it holds children) or a `link`";
890
903
  };
891
- readonly 'heading-level-skipped': {
892
- readonly kind: "warned";
893
- readonly means: "an `h4` right after an `h2` — the outline misses a level";
894
- readonly fix: "the next level down; size it with its class";
895
- };
896
904
  readonly 'label-ignored': {
897
905
  readonly kind: "warned";
898
906
  readonly means: "a `label` on a container whose tag is named by what it holds (`li`, a heading)";
@@ -1490,7 +1498,7 @@ export declare const AUTHORING_CODES: {
1490
1498
  };
1491
1499
  readonly 'server-query-unresolved': {
1492
1500
  readonly kind: "refused";
1493
- readonly means: "a `runtime: 'server'` provider whose `query` the page server cannot read — bound, a template reading what the browser alone holds (anything but the space's variables and `navigation`), the visitor's cookies (`credentials: 'include'`), another method than GET, or neither an address (`https://…`) nor a path (`/…`) — so it draws empty";
1501
+ readonly means: "a `runtime: 'server'` provider whose `query` the page server cannot read — bound, a template reading what the browser alone holds (anything but the space's variables, `navigation` and the state the space paints, `state.<key>`), another method than GET, or neither an address (`https://…`) nor a path (`/…`) — so it draws empty";
1494
1502
  readonly fix: "write it over the space's variables and `navigation` (`'{{ apiUrl }}/posts/{{ navigation.routeParams.id }}'`); an `action` for what the browser holds; or no `runtime: 'server'`, and the browser asks it";
1495
1503
  };
1496
1504
  readonly 'server-when-unknown': {
@@ -1878,6 +1886,11 @@ export declare const AUTHORING_CODES: {
1878
1886
  readonly means: "a page that sends visitors it is not for to a page the space does not have";
1879
1887
  readonly fix: "a page's id or slug (`''` is the home page), or a full URL";
1880
1888
  };
1889
+ readonly 'when-refused-conflict': {
1890
+ readonly kind: "refused";
1891
+ readonly means: "a page's `whenRefused: 'notFound'` beside `unauthorizedRedirect`, or on a page nobody is refused";
1892
+ readonly fix: "keep the redirect or the not found; give the page `access` or `accessLevel: 'authenticated'`";
1893
+ };
1881
1894
  readonly 'robots-unknown': {
1882
1895
  readonly kind: "refused";
1883
1896
  readonly means: "a page's `robots` with a directive no search engine reads, or none";
@@ -1960,7 +1973,7 @@ export declare const AUTHORING_CODES: {
1960
1973
  };
1961
1974
  readonly 'state-key-list': {
1962
1975
  readonly kind: "refused";
1963
- readonly means: "`settings.transientState` / `paintedState` that is not a list of top-level state keys";
1976
+ readonly means: "`settings.transientState` / `paintedState` / `browserState` that is not a list of top-level state keys";
1964
1977
  readonly fix: "`transientState: ['demoStep']` — a dotted path names its top key";
1965
1978
  };
1966
1979
  readonly 'state-painted-and-transient': {
@@ -1978,6 +1991,11 @@ export declare const AUTHORING_CODES: {
1978
1991
  readonly means: "a `paintedState` key that `keptState` does not keep — the server draws with what is kept";
1979
1992
  readonly fix: "add it to `keptState`, or leave it out of `paintedState`";
1980
1993
  };
1994
+ readonly 'state-browser-not-kept': {
1995
+ readonly kind: "refused";
1996
+ readonly means: "a `browserState` key the space does not keep — transient, or not in `keptState`";
1997
+ readonly fix: "keep it, or leave it out of `browserState`";
1998
+ };
1981
1999
  readonly 'kept-state-without-keep-state': {
1982
2000
  readonly kind: "warned";
1983
2001
  readonly means: "`keptState` without `keepState` — nothing is kept in the first place";
@@ -1993,6 +2011,11 @@ export declare const AUTHORING_CODES: {
1993
2011
  readonly means: "`paintedState` without `keepState` — nothing is kept for the server to draw with";
1994
2012
  readonly fix: "`settings.keepState: true`, or remove `paintedState`";
1995
2013
  };
2014
+ readonly 'browser-state-without-keep-state': {
2015
+ readonly kind: "warned";
2016
+ readonly means: "`browserState` without `keepState` — nothing is kept in the first place";
2017
+ readonly fix: "`settings.keepState: true`, or remove `browserState`";
2018
+ };
1996
2019
  readonly 'visitor-roles': {
1997
2020
  readonly kind: "refused";
1998
2021
  readonly means: "`settings.visitorRoles` written in a shape the runtime does not read";
@@ -2715,26 +2738,32 @@ export declare type ChannelDeclarations = Record<string, ChannelDeclaration>;
2715
2738
 
2716
2739
  export declare const chart: {
2717
2740
  (children: ElementSpec[], props?: ElementProps<Partial<{
2718
- format?: "number" | "percent" | "compact" | undefined;
2719
2741
  kind?: "bar" | "line" | "area" | "donut" | undefined;
2742
+ format?: "number" | "percent" | "compact" | undefined;
2743
+ sync?: string | undefined;
2720
2744
  label?: string | undefined;
2721
2745
  max?: number | undefined;
2722
2746
  items?: unknown;
2723
2747
  height?: number | undefined;
2724
2748
  labelField?: string | undefined;
2725
2749
  valueField?: string | undefined;
2750
+ titleField?: string | undefined;
2751
+ series?: unknown;
2726
2752
  showValues?: boolean | undefined;
2727
2753
  emptyText?: string | undefined;
2728
2754
  }>> | undefined): ElementSpec;
2729
2755
  (props?: ElementProps<Partial<{
2730
- format?: "number" | "percent" | "compact" | undefined;
2731
2756
  kind?: "bar" | "line" | "area" | "donut" | undefined;
2757
+ format?: "number" | "percent" | "compact" | undefined;
2758
+ sync?: string | undefined;
2732
2759
  label?: string | undefined;
2733
2760
  max?: number | undefined;
2734
2761
  items?: unknown;
2735
2762
  height?: number | undefined;
2736
2763
  labelField?: string | undefined;
2737
2764
  valueField?: string | undefined;
2765
+ titleField?: string | undefined;
2766
+ series?: unknown;
2738
2767
  showValues?: boolean | undefined;
2739
2768
  emptyText?: string | undefined;
2740
2769
  }>> | undefined): ElementSpec;
@@ -2799,6 +2828,8 @@ export declare const column: (gap: string, extra?: CssProps) => StyleRules;
2799
2828
 
2800
2829
  declare type Combinator = 'and' | 'or';
2801
2830
 
2831
+ declare type Combinator_2 = 'and' | 'or';
2832
+
2802
2833
  /**
2803
2834
  * An SVG as it is worth carrying in a space: what a design tool wrote for itself taken out — the XML prolog and doctype,
2804
2835
  * comments, `<metadata>`, an editor's own elements and attributes (Inkscape, Sodipodi, Sketch, Figma's `data-name`) —
@@ -3572,12 +3603,14 @@ export declare interface E2eElement {
3572
3603
  y: number;
3573
3604
  };
3574
3605
  }): Promise<void>;
3606
+ /** `force`: pointed at where it is now, without Playwright's wait for it to hold still (`hoverElement`). */
3575
3607
  hover(options: {
3576
3608
  timeout: number;
3577
3609
  position?: {
3578
3610
  x: number;
3579
3611
  y: number;
3580
3612
  };
3613
+ force?: boolean;
3581
3614
  }): Promise<void>;
3582
3615
  fill(text: string, options: {
3583
3616
  timeout: number;
@@ -3883,16 +3916,17 @@ export declare const elementAttributeNames: {
3883
3916
  readonly carousel: readonly ["autoplay", "itemKey", "items", "label", "loop", "mode", "pauseOnHover", "speed", "transition"];
3884
3917
  readonly carouselTrack: readonly [];
3885
3918
  readonly channel: readonly ["grant", "keep", "presence", "subType", "topic"];
3886
- readonly chart: readonly ["emptyText", "format", "height", "items", "kind", "label", "labelField", "max", "showValues", "valueField"];
3919
+ readonly chart: readonly ["emptyText", "format", "height", "items", "kind", "label", "labelField", "max", "series", "showValues", "sync", "titleField", "valueField"];
3887
3920
  readonly container: readonly ["decorative", "label", "live", "open", "subType", "title"];
3888
3921
  readonly custom: null;
3889
3922
  readonly dialogContainer: readonly ["acceptButtonLabel", "acceptButtonLabelLoading", "autoHideAfterClick", "headerLabel", "rejectButtonLabel"];
3890
3923
  readonly dropdown: readonly ["backgroundDisabled", "closeOnClickBackground", "closeOnClickPopup", "containerLeftOffset", "containerTopOffset", "disabled", "openPopup", "popupPlacement", "popupWidth"];
3891
3924
  readonly dropdownPopup: readonly [];
3892
3925
  readonly embed: readonly ["allow", "loading", "referrerPolicy", "sandbox", "src", "title"];
3926
+ readonly focusGroup: readonly ["label", "subType"];
3893
3927
  readonly fontAwesome: readonly ["icon", "iconAnimation", "label", "size"];
3894
3928
  readonly form: readonly ["actionUrl", "errors", "managedByInteractions", "method", "noValidate", "values"];
3895
- readonly formControl: readonly ["autoComplete", "autoFocus", "defaultValue", "disabled", "formatMessage", "hideLabel", "label", "matches", "matchesMessage", "max", "maxLength", "maxLengthMessage", "maxMessage", "min", "minLength", "minLengthMessage", "minMessage", "name", "options", "pattern", "patternMessage", "placeholder", "previewError", "readOnly", "required", "requiredMessage", "step", "subType"];
3929
+ readonly formControl: readonly ["accept", "autoComplete", "autoFocus", "defaultValue", "disabled", "formatMessage", "hideLabel", "label", "matches", "matchesMessage", "max", "maxLength", "maxLengthMessage", "maxMessage", "min", "minLength", "minLengthMessage", "minMessage", "name", "options", "pattern", "patternMessage", "placeholder", "previewError", "readOnly", "required", "requiredMessage", "step", "subType"];
3896
3930
  readonly heading: readonly ["content", "subType"];
3897
3931
  readonly image: readonly ["alt", "decorative", "fetchPriority", "height", "loadMode", "resize", "sizes", "src", "width"];
3898
3932
  readonly layoutContainer: readonly ["layout", "layoutContainer", "subType"];
@@ -3944,7 +3978,7 @@ export declare type ElementBinding = {
3944
3978
  id: string;
3945
3979
  source: string;
3946
3980
  transformers?: BindingTransformer[];
3947
- when?: RuleGroup;
3981
+ when?: RuleGroup_2;
3948
3982
  enabled?: boolean;
3949
3983
  to: string;
3950
3984
  };
@@ -4291,10 +4325,10 @@ declare const elementDeclarations: {
4291
4325
  };
4292
4326
  }, Partial<{
4293
4327
  when?: RuleGroup | undefined;
4294
- action?: string | undefined;
4295
4328
  cache?: boolean | undefined;
4296
4329
  endpoint?: string | undefined;
4297
4330
  input?: (Record<string, unknown> | string) | undefined;
4331
+ action?: string | undefined;
4298
4332
  method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
4299
4333
  resource?: string | undefined;
4300
4334
  headers?: Record<string, string> | undefined;
@@ -5140,6 +5174,37 @@ declare const elementDeclarations: {
5140
5174
  acceptButtonLabelLoading?: string | undefined;
5141
5175
  rejectButtonLabel?: string | undefined;
5142
5176
  }>>;
5177
+ readonly FocusGroup: DeclaredElement< {
5178
+ readonly type: "focusGroup";
5179
+ readonly attributeValues: {
5180
+ readonly subType: readonly string[];
5181
+ };
5182
+ readonly content: {
5183
+ readonly attributes: {
5184
+ readonly subType: "div";
5185
+ };
5186
+ readonly definition: {
5187
+ readonly label: "Focus Group";
5188
+ readonly description: string;
5189
+ readonly items: [];
5190
+ };
5191
+ readonly market: {
5192
+ readonly category: "structure";
5193
+ readonly icon: "fa-solid fa-arrows-up-down";
5194
+ };
5195
+ readonly defaultStyle: {
5196
+ readonly style: {
5197
+ readonly base: {
5198
+ readonly default: {};
5199
+ };
5200
+ };
5201
+ readonly subTypes: {};
5202
+ };
5203
+ };
5204
+ }, Partial<{
5205
+ label?: string | undefined;
5206
+ subType?: "div" | "nav" | "section" | undefined;
5207
+ }>>;
5143
5208
  readonly Dropdown: DeclaredElement< {
5144
5209
  readonly type: "dropdown";
5145
5210
  readonly attributeValues: {
@@ -5316,10 +5381,10 @@ declare const elementDeclarations: {
5316
5381
  };
5317
5382
  }, Partial<{
5318
5383
  title?: string | undefined;
5319
- referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
5320
5384
  src?: string | undefined;
5321
5385
  allow?: string | undefined;
5322
5386
  loading?: "lazy" | "eager" | undefined;
5387
+ referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
5323
5388
  sandbox?: string | undefined;
5324
5389
  }>>;
5325
5390
  readonly FontAwesome: DeclaredElement< {
@@ -5471,7 +5536,7 @@ declare const elementDeclarations: {
5471
5536
  readonly type: "formControl";
5472
5537
  readonly contentAttributes: readonly ["label", "placeholder", "options", "requiredMessage", "minLengthMessage", "maxLengthMessage", "minMessage", "maxMessage", "formatMessage", "patternMessage", "matchesMessage"];
5473
5538
  readonly attributeValues: {
5474
- readonly subType: readonly string[];
5539
+ readonly subType: readonly ["text", "number", "email", "password", "search", "url", "tel", "date", "time", "checkbox", "switch", "select", "textarea", "hidden", "color", "file"];
5475
5540
  };
5476
5541
  readonly triggers: {
5477
5542
  readonly onChange: {
@@ -5493,6 +5558,7 @@ declare const elementDeclarations: {
5493
5558
  readonly label: "Label";
5494
5559
  readonly hideLabel: false;
5495
5560
  readonly placeholder: "";
5561
+ readonly accept: "";
5496
5562
  readonly defaultValue: "";
5497
5563
  readonly autoComplete: true;
5498
5564
  readonly autoFocus: false;
@@ -6015,6 +6081,49 @@ declare const elementDeclarations: {
6015
6081
  };
6016
6082
  };
6017
6083
  };
6084
+ readonly file: {
6085
+ name: string;
6086
+ displayMode: "desktop";
6087
+ style: {
6088
+ label: {
6089
+ default: {
6090
+ 'margin-bottom': string;
6091
+ display: string;
6092
+ cursor: string;
6093
+ 'font-weight': string;
6094
+ 'font-size': string;
6095
+ 'line-height': string;
6096
+ color: string;
6097
+ 'user-select': string;
6098
+ };
6099
+ };
6100
+ requiredMark: {
6101
+ default: {
6102
+ color: string;
6103
+ 'margin-left': string;
6104
+ };
6105
+ };
6106
+ error: {
6107
+ default: {
6108
+ display: string;
6109
+ color: string;
6110
+ 'margin-top': string;
6111
+ };
6112
+ };
6113
+ icon?: {
6114
+ default: Record<string, string>;
6115
+ } | undefined;
6116
+ field?: {
6117
+ default: Record<string, string>;
6118
+ } | undefined;
6119
+ base: {
6120
+ default: {};
6121
+ };
6122
+ input: {
6123
+ default: Record<string, string>;
6124
+ };
6125
+ };
6126
+ };
6018
6127
  readonly textarea: {
6019
6128
  name: string;
6020
6129
  displayMode: "desktop";
@@ -6380,10 +6489,10 @@ declare const elementDeclarations: {
6380
6489
  width?: number | undefined;
6381
6490
  resize?: boolean | undefined;
6382
6491
  height?: number | undefined;
6383
- fetchPriority?: "high" | "low" | "auto" | undefined;
6384
6492
  sizes?: string | undefined;
6385
6493
  src?: string | undefined;
6386
6494
  alt?: string | undefined;
6495
+ fetchPriority?: "high" | "low" | "auto" | undefined;
6387
6496
  decorative?: boolean | undefined;
6388
6497
  loadMode?: "auto" | "eager" | "lazy" | undefined;
6389
6498
  }>>;
@@ -7507,6 +7616,9 @@ declare const elementDeclarations: {
7507
7616
  readonly kind: "bar";
7508
7617
  readonly labelField: "label";
7509
7618
  readonly valueField: "value";
7619
+ readonly series: "";
7620
+ readonly titleField: "";
7621
+ readonly sync: "";
7510
7622
  readonly label: "";
7511
7623
  readonly format: "number";
7512
7624
  readonly showValues: false;
@@ -7528,6 +7640,7 @@ declare const elementDeclarations: {
7528
7640
  readonly axisLabel: "";
7529
7641
  readonly valueLabel: "";
7530
7642
  readonly legend: "";
7643
+ readonly tooltip: "";
7531
7644
  readonly empty: "";
7532
7645
  };
7533
7646
  };
@@ -7609,8 +7722,8 @@ declare const elementDeclarations: {
7609
7722
  readonly 'row-gap': "4px";
7610
7723
  readonly 'list-style-type': "none";
7611
7724
  readonly 'padding-left': "0px";
7612
- readonly 'margin-top': "12px";
7613
- readonly 'font-size': "14px";
7725
+ readonly 'margin-top': "8px";
7726
+ readonly 'font-size': "12px";
7614
7727
  };
7615
7728
  };
7616
7729
  readonly empty: {
@@ -7623,14 +7736,17 @@ declare const elementDeclarations: {
7623
7736
  };
7624
7737
  };
7625
7738
  }, Partial<{
7626
- format?: "number" | "percent" | "compact" | undefined;
7627
7739
  kind?: "bar" | "line" | "area" | "donut" | undefined;
7740
+ format?: "number" | "percent" | "compact" | undefined;
7741
+ sync?: string | undefined;
7628
7742
  label?: string | undefined;
7629
7743
  max?: number | undefined;
7630
7744
  items?: unknown;
7631
7745
  height?: number | undefined;
7632
7746
  labelField?: string | undefined;
7633
7747
  valueField?: string | undefined;
7748
+ titleField?: string | undefined;
7749
+ series?: unknown;
7634
7750
  showValues?: boolean | undefined;
7635
7751
  emptyText?: string | undefined;
7636
7752
  }>>;
@@ -8115,7 +8231,7 @@ export declare type ElementInteraction<T extends Record<string, unknown> = Recor
8115
8231
  afterNode: string;
8116
8232
  flowId: string;
8117
8233
  enabled: boolean;
8118
- when?: RuleGroup;
8234
+ when?: RuleGroup_2;
8119
8235
  /** On a trigger only: what a firing does while this flow is still running. `skip` when absent. */
8120
8236
  whileRunning?: WhileRunning;
8121
8237
  };
@@ -8440,18 +8556,18 @@ export declare const elementTypeNames: string[];
8440
8556
  export declare const embed: {
8441
8557
  (children: ElementSpec[], props?: ElementProps<Partial<{
8442
8558
  title?: string | undefined;
8443
- referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
8444
8559
  src?: string | undefined;
8445
8560
  allow?: string | undefined;
8446
8561
  loading?: "lazy" | "eager" | undefined;
8562
+ referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
8447
8563
  sandbox?: string | undefined;
8448
8564
  }>> | undefined): ElementSpec;
8449
8565
  (props?: ElementProps<Partial<{
8450
8566
  title?: string | undefined;
8451
- referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
8452
8567
  src?: string | undefined;
8453
8568
  allow?: string | undefined;
8454
8569
  loading?: "lazy" | "eager" | undefined;
8570
+ referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
8455
8571
  sandbox?: string | undefined;
8456
8572
  }>> | undefined): ElementSpec;
8457
8573
  };
@@ -8469,6 +8585,9 @@ export declare const emptyTemplateFiles: ({ name, dir }?: {
8469
8585
  dir?: string;
8470
8586
  }) => Record<string, string>;
8471
8587
 
8588
+ /** Run in the page: whether an animation that never ends moves the element — on it, inside it or around it. */
8589
+ export declare const endlesslyMovedInPage: (node: Element) => boolean;
8590
+
8472
8591
  declare type Environment = 'production' | 'staging' | 'development' | 'main';
8473
8592
 
8474
8593
  /**
@@ -8713,6 +8832,17 @@ export declare const FOCUS_CALLBACKS: {
8713
8832
  };
8714
8833
  };
8715
8834
 
8835
+ export declare const focusGroup: {
8836
+ (children: ElementSpec[], props?: ElementProps<Partial<{
8837
+ label?: string | undefined;
8838
+ subType?: "div" | "nav" | "section" | undefined;
8839
+ }>> | undefined): ElementSpec;
8840
+ (props?: ElementProps<Partial<{
8841
+ label?: string | undefined;
8842
+ subType?: "div" | "nav" | "section" | undefined;
8843
+ }>> | undefined): ElementSpec;
8844
+ };
8845
+
8716
8846
  export declare const fontAwesome: {
8717
8847
  (children: ElementSpec[], props?: ElementProps<Partial<{
8718
8848
  size?: string | undefined;
@@ -8783,6 +8913,12 @@ export declare const form: {
8783
8913
  }>> | undefined): ElementSpec;
8784
8914
  };
8785
8915
 
8916
+ /**
8917
+ * Every kind of field a `formControl` is, as its `subType` — the one list: the component's props, the field-value HOC,
8918
+ * the builder's settings and the declaration authoring reads all take their type from here.
8919
+ */
8920
+ declare const FORM_CONTROL_SUBTYPES: readonly ["text", "number", "email", "password", "search", "url", "tel", "date", "time", "checkbox", "switch", "select", "textarea", "hidden", "color", "file"];
8921
+
8786
8922
  export declare const formControl: {
8787
8923
  (children: ElementSpec[], props?: ElementProps< FormControlAttributes> | undefined): ElementSpec;
8788
8924
  (props?: ElementProps< FormControlAttributes> | undefined): ElementSpec;
@@ -8790,7 +8926,8 @@ export declare const formControl: {
8790
8926
 
8791
8927
  /** What this element can be authored with — its component's own props, minus what the runtime supplies. */
8792
8928
  declare type FormControlAttributes = AuthorableAttributes<FormControlProps, 'value' | 'error' | 'handleChange' | 'handleValidate'> & {
8793
- defaultValue?: string;
8929
+ /** Text, or a number bound to it, which the field shows as its digits. */
8930
+ defaultValue?: string | number;
8794
8931
  /** Read by `withFieldValue`, not by the component: shows the control in its error state while editing. */
8795
8932
  previewError?: boolean;
8796
8933
  };
@@ -8798,13 +8935,7 @@ declare type FormControlAttributes = AuthorableAttributes<FormControlProps, 'val
8798
8935
  declare type FormControlProps = {
8799
8936
  ref: RefObject<HTMLElement>;
8800
8937
  className: string;
8801
- subType: 'text' | 'number' | 'email' | 'password'
8802
- /** A search box: the browser draws its clear button, and a phone shows its search key. */
8803
- | 'search' | 'url'
8804
- /** A phone number: a phone shows its dial pad. */
8805
- | 'tel' | 'date' | 'time' | 'checkbox' | 'switch' | 'select' | 'textarea' | 'hidden'
8806
- /** The browser's own colour picker: its value is `#rrggbb`. */
8807
- | 'color';
8938
+ subType: FormControlSubType;
8808
8939
  name: string;
8809
8940
  label: string;
8810
8941
  /**
@@ -8814,6 +8945,8 @@ declare type FormControlProps = {
8814
8945
  */
8815
8946
  hideLabel: boolean;
8816
8947
  placeholder: string;
8948
+ /** A `file` field's offer, as the browser reads `accept`: `image/png,image/jpeg`, `.pdf`. `''` for any file. */
8949
+ accept: string;
8817
8950
  autoComplete: boolean;
8818
8951
  /**
8819
8952
  * Takes the focus as it appears — a search box opened by a shortcut is typed into at once. With the control's
@@ -8853,7 +8986,8 @@ declare type FormControlProps = {
8853
8986
  matches: string;
8854
8987
  matchesMessage: string;
8855
8988
  readOnly: boolean;
8856
- value: string;
8989
+ /** Text for every type but `file`, whose value is the `File` picked. */
8990
+ value: string | File;
8857
8991
  error: string;
8858
8992
  /**
8859
8993
  * Supplied by `withFieldValue`, with or without a form around the control.
@@ -8865,6 +8999,8 @@ declare type FormControlProps = {
8865
8999
  handleValidate?: () => void;
8866
9000
  };
8867
9001
 
9002
+ declare type FormControlSubType = (typeof FORM_CONTROL_SUBTYPES)[number];
9003
+
8868
9004
  /** The built-in element callback for an action, or undefined when the action is not a known built-in (an
8869
9005
  * element-type-specific/plugin callback whose schema is not knowable here). */
8870
9006
  export declare const getElementCallback: (action: string) => BuiltinElementCallback | undefined;
@@ -8880,10 +9016,15 @@ export declare const getTransformer: (action: string) => BuiltinTransformer | un
8880
9016
  export declare const getUtility: (action: string) => BuiltinUtility | undefined;
8881
9017
 
8882
9018
  /**
8883
- * Gives `text` to a field that is not typed into — a select's option chosen, a date or a range set — and says it did;
8884
- * `false` for a field a visitor types in, left to the caller.
9019
+ * Gives `text` to a field that is not typed into — a select's option chosen, a date or a range set, a file field the
9020
+ * file `text` names (`sampleFile`) — and says it did: `given`, or why it could not; `undefined` for a field a visitor
9021
+ * types in, left to the caller.
8885
9022
  */
8886
- export declare const giveValue: (page: Pick<E2ePage, "evaluate" | "locator">, selector: string, text: string, copy?: Copy) => Promise<boolean>;
9023
+ export declare const giveValue: (page: Pick<E2ePage, "evaluate" | "locator">, selector: string, text: string, copy?: Copy) => Promise<{
9024
+ given: true;
9025
+ } | {
9026
+ problem: string;
9027
+ } | undefined>;
8887
9028
 
8888
9029
  /**
8889
9030
  * The builder of a global callback not named after its action. Apart from {@link BUILDER_NAMES} because that table is
@@ -8956,6 +9097,19 @@ export declare type HostedFont = FontBase & {
8956
9097
  })[];
8957
9098
  };
8958
9099
 
9100
+ /**
9101
+ * The pointer put over an element, as a visitor's is. Playwright first waits for it to hold still, which one an endless
9102
+ * animation moves — a pulse ring on it, a marquee it rides in — never does: a run's hover of a map's region timed out
9103
+ * "still moving" every time. Such an element is pointed at where it is now; whatever else keeps a hover off it is said.
9104
+ */
9105
+ export declare const hoverElement: (element: Pick<E2eElement, "hover" | "evaluate">, options: {
9106
+ timeout: number;
9107
+ position?: {
9108
+ x: number;
9109
+ y: number;
9110
+ };
9111
+ }) => Promise<void>;
9112
+
8959
9113
  /** How long a space's page may take to take presses after it loads: a dev server compiles a page on its first request. */
8960
9114
  export declare const HYDRATION_MS = 30000;
8961
9115
 
@@ -8966,10 +9120,10 @@ export declare const image: {
8966
9120
  width?: number | undefined;
8967
9121
  resize?: boolean | undefined;
8968
9122
  height?: number | undefined;
8969
- fetchPriority?: "high" | "low" | "auto" | undefined;
8970
9123
  sizes?: string | undefined;
8971
9124
  src?: string | undefined;
8972
9125
  alt?: string | undefined;
9126
+ fetchPriority?: "high" | "low" | "auto" | undefined;
8973
9127
  decorative?: boolean | undefined;
8974
9128
  loadMode?: "auto" | "eager" | "lazy" | undefined;
8975
9129
  }>> | undefined): ElementSpec;
@@ -8977,10 +9131,10 @@ export declare const image: {
8977
9131
  width?: number | undefined;
8978
9132
  resize?: boolean | undefined;
8979
9133
  height?: number | undefined;
8980
- fetchPriority?: "high" | "low" | "auto" | undefined;
8981
9134
  sizes?: string | undefined;
8982
9135
  src?: string | undefined;
8983
9136
  alt?: string | undefined;
9137
+ fetchPriority?: "high" | "low" | "auto" | undefined;
8984
9138
  decorative?: boolean | undefined;
8985
9139
  loadMode?: "auto" | "eager" | "lazy" | undefined;
8986
9140
  }>> | undefined): ElementSpec;
@@ -10354,6 +10508,8 @@ export declare interface OpenPageOptions {
10354
10508
 
10355
10509
  declare type Operator = '' | '=' | '!=' | '<' | '>' | '<=' | '>=' | 'contains' | 'doesNotContain' | 'beginsWith' | 'doesNotBeginWith' | 'endsWith' | 'doesNotEndWith' | 'empty' | 'notEmpty' | 'in' | 'notIn' | 'between' | 'notBetween';
10356
10510
 
10511
+ declare type Operator_2 = '' | '=' | '!=' | '<' | '>' | '<=' | '>=' | 'contains' | 'doesNotContain' | 'beginsWith' | 'doesNotBeginWith' | 'endsWith' | 'doesNotEndWith' | 'empty' | 'notEmpty' | 'in' | 'notIn' | 'between' | 'notBetween';
10512
+
10357
10513
  /** How many layers a page is read for: enough for a long, dressed page, few enough to stay quick. */
10358
10514
  export declare const PAGE_DECORATION_LIMIT = 3000;
10359
10515
 
@@ -10656,6 +10812,13 @@ export declare interface PageSpec {
10656
10812
  access?: {
10657
10813
  permissions: string[];
10658
10814
  };
10815
+ /**
10816
+ * What a visitor this page is not for is answered — by `accessLevel` or `access` — when it is not sent elsewhere
10817
+ * (`unauthorizedRedirect`). Unsaid, its refusal: 401 or 403 and `settings.withheldPage`. `'notFound'` answers as if
10818
+ * it did not exist — the space's 404 — and sends nothing of it, not its name nor its path: a back-office, whose
10819
+ * refusal would tell whoever probes the path that something is there. The builder's "Unauthorized Behaviour".
10820
+ */
10821
+ whenRefused?: 'refusal' | 'notFound';
10659
10822
  /**
10660
10823
  * Where a visitor this page is not for is sent — a page's id or slug (`login`; `''` is the home page), its path, or a
10661
10824
  * full URL for somewhere off this space. Resolved to the page's id, and refused when it names no page.
@@ -11582,6 +11745,19 @@ export declare interface RowProfile {
11582
11745
  export declare type RowWriter<Row> = (row: Row) => ElementSpec | ElementSpec[];
11583
11746
 
11584
11747
  export declare type Rule = {
11748
+ id?: string;
11749
+ field: string;
11750
+ operator: Operator_2;
11751
+ enabled?: boolean;
11752
+ } & ({
11753
+ isBinding: true;
11754
+ value: string;
11755
+ } | {
11756
+ isBinding?: false;
11757
+ value: RuleValue_2;
11758
+ });
11759
+
11760
+ declare type Rule_2 = {
11585
11761
  id?: string;
11586
11762
  field: string;
11587
11763
  operator: Operator;
@@ -11596,11 +11772,18 @@ export declare type Rule = {
11596
11772
 
11597
11773
  export declare type RuleGroup = {
11598
11774
  id?: string;
11599
- combinator: Combinator;
11775
+ combinator: Combinator_2;
11600
11776
  rules: (Rule | RuleGroup)[];
11601
11777
  enabled?: boolean;
11602
11778
  };
11603
11779
 
11780
+ declare type RuleGroup_2 = {
11781
+ id?: string;
11782
+ combinator: Combinator;
11783
+ rules: (Rule_2 | RuleGroup_2)[];
11784
+ enabled?: boolean;
11785
+ };
11786
+
11604
11787
  /** The keys of a rule set's object form: none is a CSS property. */
11605
11788
  declare type RuleSetKey = keyof RuleSetSpec;
11606
11789
 
@@ -11630,8 +11813,15 @@ export declare interface RuleSetSpec extends VariantSpec {
11630
11813
  conditions?: Record<string, ConditionSpec>;
11631
11814
  }
11632
11815
 
11816
+ /**
11817
+ * A condition as Plitzi stores it — a flag's rules, an interaction's `when`, a binding's condition: the schema's own
11818
+ * format, so sdk-shared defines it (RFC 0032, D13). plitzi-ui's QueryBuilder edits the same shape with prop types of its
11819
+ * own, and a type test in the builder, where the two meet, holds them assignable both ways.
11820
+ */
11633
11821
  declare type RuleValue = Date | string | number | boolean | undefined | null | object;
11634
11822
 
11823
+ declare type RuleValue_2 = Date | string | number | boolean | undefined | null | object;
11824
+
11635
11825
  /** One e2e test run on a page: opened, its steps played and held in turn, the first that fails the last played. */
11636
11826
  export declare const runE2eTest: (page: E2ePage, test: E2eTest, options: E2eRunOptions) => Promise<E2eResult>;
11637
11827
 
@@ -11722,6 +11912,13 @@ export declare type Schema = {
11722
11912
  * `keepState`; a key cannot be both painted and transient. Top-level keys, as `setState` writes them.
11723
11913
  */
11724
11914
  paintedState?: string[];
11915
+ /**
11916
+ * Kept keys of `runtime.state` that are the browser's rather than whoever is signed in — the cookie consent, a choice
11917
+ * made of the browser itself: kept in an entry of their own, and not taken away by signing in, out, or as somebody
11918
+ * else, which forgets the rest of what the previous owner kept. Needs `keepState`; a key cannot be both the browser's
11919
+ * and transient. Top-level keys, as `setState` writes them.
11920
+ */
11921
+ browserState?: string[];
11725
11922
  /**
11726
11923
  * The space's `/robots.txt`, as search engines read it: what they may crawl, and where its sitemap is. Left out, the
11727
11924
  * server answers that everything may be — `User-agent: *` then `Allow: /`. A page kept out of search says it on the
@@ -11868,7 +12065,7 @@ export declare type SchemaFlag = {
11868
12065
 
11869
12066
  /** A value a flag takes where its `when` matches. The first rule that matches decides. */
11870
12067
  export declare type SchemaFlagRule = {
11871
- when: RuleGroup;
12068
+ when: RuleGroup_2;
11872
12069
  value: boolean;
11873
12070
  };
11874
12071
 
@@ -11918,7 +12115,7 @@ declare type SchemaVariableBase<TType extends string, TValue> = {
11918
12115
  type: TType;
11919
12116
  value: TValue;
11920
12117
  subValues: {
11921
- when: RuleGroup;
12118
+ when: RuleGroup_2;
11922
12119
  value: TValue;
11923
12120
  }[];
11924
12121
  };
@@ -12835,7 +13032,13 @@ export declare type Style = {
12835
13032
  * because nothing else in the system loads a face. Optional because a document written before the manifest
12836
13033
  * existed has none, and that is a real state every reader has to survive rather than a bug. */
12837
13034
  fonts?: SpaceFont[];
13035
+ /** The compiled stylesheet. Empty on a server-rendered page that links it as `cacheHref` instead. */
12838
13036
  cache: string;
13037
+ /**
13038
+ * Where a server-rendered page's stylesheet is served (`/_plitzi/style/<hash>.css`), when it links the compiled
13039
+ * stylesheet rather than carrying it: `cache` is then empty, and the page draws a `<link>` to this.
13040
+ */
13041
+ cacheHref?: string;
12839
13042
  };
12840
13043
 
12841
13044
  /**
@@ -13244,7 +13447,7 @@ export declare type SuggestionCode = {
13244
13447
 
13245
13448
  /**
13246
13449
  * A shorter way to the same page: what a space's documents could say with fewer elements or less CSS — or, for its
13247
- * animations, a lighter one.
13450
+ * animations, a lighter one, and for its headings, an outline a screen reader reads whole.
13248
13451
  *
13249
13452
  * Not the linter. `lintSpace` reports what renders something other than what was written, and a space is refused or
13250
13453
  * warned for it; nothing here is wrong — the page renders exactly as written. These are the platform's own ways to say
@@ -13784,11 +13987,12 @@ export declare const validateSpace: (space: SpaceDocuments, options?: SpaceValid
13784
13987
 
13785
13988
  /**
13786
13989
  * Runs in the page: the field a value is given to rather than typed in — a select, chosen; a date, a time, a colour or a
13787
- * range, set — the element itself or the one field of that kind inside it (a form control wraps its own). Serialised.
13990
+ * range, set; a file field, given a file — the element itself or the one field of that kind inside it (a form control
13991
+ * wraps its own). Serialised.
13788
13992
  */
13789
13993
  export declare const valueFieldIn: (selector: string) => {
13790
13994
  selector: string;
13791
- how: "select" | "value";
13995
+ how: "select" | "value" | "file";
13792
13996
  } | undefined;
13793
13997
 
13794
13998
  /**