@plitzi/sdk-authoring 0.38.9 → 0.38.11

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
@@ -23,9 +23,9 @@ import { WheelEventHandler } from 'react';
23
23
  /**
24
24
  * Who may start a run this way. `'public'` and `'session'` are the two that carry nothing else.
25
25
  *
26
- * Required on every kind but `schedule`, and by the TYPE rather than by a check at run time: a trigger with no
27
- * rule is refused by the runner, so the alternative is a way in that authors fine and answers `forbidden` to
28
- * everybody. A clock has no caller and states none.
26
+ * Required on every kind but `schedule` and `later`, and by the TYPE rather than by a check at run time: a trigger
27
+ * with no rule is refused by the runner, so the alternative is a way in that authors fine and answers `forbidden` to
28
+ * everybody. A clock has no caller and states none, and a run set for later was let in by the run that set it.
29
29
  */
30
30
  export declare type AccessSpec = ActionAccess | 'public' | 'session';
31
31
 
@@ -271,6 +271,14 @@ export declare type ActionTriggerSpec = (TriggerCommon & {
271
271
  type: 'schedule';
272
272
  cron: string;
273
273
  timezone?: string;
274
+ })
275
+ /**
276
+ * Started by another run in so many seconds — `flow.later`, a function's `ctx.later` — on the server, whether or
277
+ * not a page is still open: a turn that runs out, a bot's move, a hold that lapses. Its `input` is what that run hands
278
+ * it.
279
+ */
280
+ | (TriggerCommon & {
281
+ type: 'later';
274
282
  });
275
283
 
276
284
  /**
@@ -413,25 +421,25 @@ export declare const apiContainer: {
413
421
  headers?: Record<string, string> | undefined;
414
422
  notFound?: string | undefined;
415
423
  subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "" | undefined;
424
+ credentials?: RequestCredentials | undefined;
425
+ staleTime?: number | string | undefined;
426
+ gcTime?: number | string | undefined;
427
+ pageParam?: string | undefined;
416
428
  query?: string | undefined;
417
429
  accessToken?: string | undefined;
418
430
  mockData?: (Record<string, unknown> | string) | undefined;
419
- credentials?: RequestCredentials | undefined;
431
+ singleRecord?: boolean | undefined;
432
+ pagination?: ProviderPagination | undefined;
433
+ renderWhileLoading?: boolean | undefined;
434
+ loadingSlot?: string | undefined;
435
+ refreshSeconds?: number | string | undefined;
420
436
  connector?: string | undefined;
421
437
  limit?: string | undefined;
422
- singleRecord?: boolean | undefined;
423
438
  filters?: {
424
439
  field: string;
425
440
  operator: string;
426
441
  value: string;
427
442
  }[] | undefined;
428
- pagination?: ProviderPagination | undefined;
429
- pageParam?: string | undefined;
430
- renderWhileLoading?: boolean | undefined;
431
- loadingSlot?: string | undefined;
432
- staleTime?: number | string | undefined;
433
- gcTime?: number | string | undefined;
434
- refreshSeconds?: number | string | undefined;
435
443
  }>> | undefined): ElementSpec;
436
444
  (props?: ElementProps<Partial<{
437
445
  when?: RuleGroup | undefined;
@@ -444,25 +452,25 @@ export declare const apiContainer: {
444
452
  headers?: Record<string, string> | undefined;
445
453
  notFound?: string | undefined;
446
454
  subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "" | undefined;
455
+ credentials?: RequestCredentials | undefined;
456
+ staleTime?: number | string | undefined;
457
+ gcTime?: number | string | undefined;
458
+ pageParam?: string | undefined;
447
459
  query?: string | undefined;
448
460
  accessToken?: string | undefined;
449
461
  mockData?: (Record<string, unknown> | string) | undefined;
450
- credentials?: RequestCredentials | undefined;
462
+ singleRecord?: boolean | undefined;
463
+ pagination?: ProviderPagination | undefined;
464
+ renderWhileLoading?: boolean | undefined;
465
+ loadingSlot?: string | undefined;
466
+ refreshSeconds?: number | string | undefined;
451
467
  connector?: string | undefined;
452
468
  limit?: string | undefined;
453
- singleRecord?: boolean | undefined;
454
469
  filters?: {
455
470
  field: string;
456
471
  operator: string;
457
472
  value: string;
458
473
  }[] | undefined;
459
- pagination?: ProviderPagination | undefined;
460
- pageParam?: string | undefined;
461
- renderWhileLoading?: boolean | undefined;
462
- loadingSlot?: string | undefined;
463
- staleTime?: number | string | undefined;
464
- gcTime?: number | string | undefined;
465
- refreshSeconds?: number | string | undefined;
466
474
  }>> | undefined): ElementSpec;
467
475
  };
468
476
 
@@ -733,10 +741,20 @@ export declare const AUTHORING_CODES: {
733
741
  readonly means: "a page that sends visitors it is not for to a page the space does not have";
734
742
  readonly fix: "a page's id or slug (`''` is the home page), or a full URL";
735
743
  };
744
+ readonly 'page-template': {
745
+ readonly kind: "refused";
746
+ readonly means: "a template in a page's `seoTitle`, `seoDescription` or `notFound` that reads what is not there when the server answers — anything but the page's `runtime: 'server'` providers and `navigation` — or cannot be read";
747
+ readonly fix: "read the record from a provider with `runtime: 'server'` on the page or its layout — `'{{ apiContainer_post.title }} — Blog'` — or words of its own";
748
+ };
749
+ readonly 'declared-callback-target': {
750
+ readonly kind: "refused";
751
+ readonly means: "a `declaredCallback` target with a key beside `on` and `params` — read nowhere, so the step runs without it";
752
+ readonly fix: "the value in `params`: `{ on: 'calendar', params: { date } }`";
753
+ };
736
754
  readonly 'folder-undeclared': {
737
755
  readonly kind: "refused";
738
756
  readonly means: "a page, a layout or a folder filed in a folder the space does not declare";
739
- readonly fix: "declare the folder, or the name it suggests";
757
+ readonly fix: "declare it on the space — `pageFolders: [{ id: 'docs', name: 'Docs' }]`, its slug starting its pages' addresses — or use the name it suggests";
740
758
  };
741
759
  readonly 'folder-cycle': {
742
760
  readonly kind: "refused";
@@ -833,6 +851,11 @@ export declare const AUTHORING_CODES: {
833
851
  readonly means: "a `slots` key the element type does not have — its class would dress nothing";
834
852
  readonly fix: "one of the slots `plitzi explain <type>` lists; the element itself takes `class`";
835
853
  };
854
+ readonly 'slot-not-class': {
855
+ readonly kind: "refused";
856
+ readonly means: "a `slots` entry that is not a class — rules written in place, or nothing — which a slot cannot wear";
857
+ readonly fix: "the rules as a `styles()` declaration, handed to the slot beside its other classes";
858
+ };
836
859
  readonly 'class-conflict': {
837
860
  readonly kind: "refused";
838
861
  readonly means: "two different declarations for one class name";
@@ -846,7 +869,7 @@ export declare const AUTHORING_CODES: {
846
869
  readonly 'class-and-css': {
847
870
  readonly kind: "refused";
848
871
  readonly means: "an element wearing a shared class AND `css` or `states` of its own — it has one base selector";
849
- readonly fix: "the rules on top of the class: `class: [card, { opacity: '0.5' }]` (needs an `id`) — or into the class";
872
+ readonly fix: "the rules on top of the class: `class: [card, { opacity: '0.5' }]` — or into the class";
850
873
  };
851
874
  readonly 'class-and-selector': {
852
875
  readonly kind: "refused";
@@ -858,11 +881,6 @@ export declare const AUTHORING_CODES: {
858
881
  readonly means: "more than one set of rules in a class list";
859
882
  readonly fix: "one set, after the classes: `class: [card, { opacity: '0.5', 'margin-top': '8px' }]`";
860
883
  };
861
- readonly 'modifier-without-id': {
862
- readonly kind: "refused";
863
- readonly means: "rules on top of a class on an element with no `id` — the id names the class they become";
864
- readonly fix: "`id: 'hero-bg'`";
865
- };
866
884
  readonly 'selector-invalid': {
867
885
  readonly kind: "refused";
868
886
  readonly means: "a `selector` that is not a CSS class name";
@@ -908,6 +926,11 @@ export declare const AUTHORING_CODES: {
908
926
  readonly means: "an ancestor condition keyed by something that is neither a class name nor `'>'` (the parent)";
909
927
  readonly fix: "`[card.name]` for a `styles()` declaration, or `'>'` for the parent whatever it wears";
910
928
  };
929
+ readonly 'focus-on-field-box': {
930
+ readonly kind: "warned";
931
+ readonly means: "a `focus` or `focus-visible` state on a text field's or a select's `input` slot — the box the field is drawn in, which never takes focus, so no ring is ever shown";
932
+ readonly fix: "`'focus-within'` on the same class, or the state on the `field` slot";
933
+ };
911
934
  readonly 'heading-level-overridden': {
912
935
  readonly kind: "warned";
913
936
  readonly means: "a markdown's or richText's `heading` slot and a level's (`heading3`) both setting one property, the general class written later in the stylesheet — the level's value is lost";
@@ -1138,6 +1161,11 @@ export declare const AUTHORING_CODES: {
1138
1161
  readonly means: "a `runtime: 'server'` element inside a component: the page server resolves a page's and its layouts', never a component's";
1139
1162
  readonly fix: "put the provider on the page, around the instance, and hand the component its rows as a prop";
1140
1163
  };
1164
+ readonly 'template-in-value': {
1165
+ readonly kind: "refused";
1166
+ readonly means: "a `{{ }}` inside an attribute that is an object or a list — a provider's `input`, a list's `items`, a plugin's settings: only an attribute that is text is evaluated";
1167
+ readonly fix: "a binding on the attribute (`bindTemplate(name, source, template, { returns: 'value' })`); for a provider's `input`, nothing for a route or query param — the action is already handed them as `input.<name>`";
1168
+ };
1141
1169
  readonly 'not-found-in-browser': {
1142
1170
  readonly kind: "refused";
1143
1171
  readonly means: "`notFound` on a provider asked from the browser — its answer arrives after the page was sent with its status";
@@ -1145,7 +1173,7 @@ export declare const AUTHORING_CODES: {
1145
1173
  };
1146
1174
  readonly 'not-found-not-a-template': {
1147
1175
  readonly kind: "refused";
1148
- readonly means: "`notFound` that is not one `{{ expression }}` against the answer — never `true`, so never a 404";
1176
+ readonly means: "`notFound`, a provider's or a page's, that is not one `{{ expression }}` — never `true`, so never a 404";
1149
1177
  readonly fix: "`notFound: '{{ source.found == false }}'`";
1150
1178
  };
1151
1179
  readonly 'server-data-in-browser': {
@@ -1168,6 +1196,11 @@ export declare const AUTHORING_CODES: {
1168
1196
  readonly means: "a control in a form with no `name` — its value never reaches `values`";
1169
1197
  readonly fix: "`formControl({ name: 'email', … })`";
1170
1198
  };
1199
+ readonly 'required-message-unused': {
1200
+ readonly kind: "warned";
1201
+ readonly means: "a `requiredMessage` on a field nothing requires — fields are optional unless `required: true`, so it is never shown and an empty answer is sent";
1202
+ readonly fix: "`required: true` on the field, or no message";
1203
+ };
1171
1204
  readonly 'form-control-name-taken': {
1172
1205
  readonly kind: "warned";
1173
1206
  readonly means: "two controls in one form with one name — one overwrites the other";
@@ -1940,7 +1973,7 @@ export declare type BindingTransformer = {
1940
1973
  * container({ bind: [bindTemplate('width', 'state.progress', '{{ source }}%', { category: 'style' })] });
1941
1974
  * ```
1942
1975
  */
1943
- export declare const bindTemplate: (to: string, source: string, template: string, options?: BindTemplateOptions) => BindingSpec;
1976
+ export declare const bindTemplate: (to: string, source: SourceName, template: string, options?: BindTemplateOptions) => BindingSpec;
1944
1977
 
1945
1978
  export declare interface BindTemplateOptions {
1946
1979
  /** Where the value goes: an attribute (the default), a style property (`style`), or element state. */
@@ -2152,8 +2185,8 @@ export declare const carousel: {
2152
2185
  items?: unknown[] | undefined;
2153
2186
  speed?: number | undefined;
2154
2187
  loop?: boolean | undefined;
2155
- autoplay?: number | undefined;
2156
2188
  pauseOnHover?: boolean | undefined;
2189
+ autoplay?: number | undefined;
2157
2190
  transition?: CarouselTransition | undefined;
2158
2191
  itemKey?: string | undefined;
2159
2192
  }>, "items"> & {
@@ -2165,8 +2198,8 @@ export declare const carousel: {
2165
2198
  items?: unknown[] | undefined;
2166
2199
  speed?: number | undefined;
2167
2200
  loop?: boolean | undefined;
2168
- autoplay?: number | undefined;
2169
2201
  pauseOnHover?: boolean | undefined;
2202
+ autoplay?: number | undefined;
2170
2203
  transition?: CarouselTransition | undefined;
2171
2204
  itemKey?: string | undefined;
2172
2205
  }>, "items"> & {
@@ -2223,16 +2256,16 @@ export declare const catalogTemplateFiles: ({ name, mode }?: {
2223
2256
  export declare const channel: {
2224
2257
  (children: ElementSpec[], props?: ElementProps<Partial<{
2225
2258
  subType?: "" | "div" | "section" | "aside" | "main" | undefined;
2226
- topic?: string | undefined;
2227
2259
  grant?: string | undefined;
2228
2260
  presence?: unknown;
2261
+ topic?: string | undefined;
2229
2262
  keep?: number | string | undefined;
2230
2263
  }>> | undefined): ElementSpec;
2231
2264
  (props?: ElementProps<Partial<{
2232
2265
  subType?: "" | "div" | "section" | "aside" | "main" | undefined;
2233
- topic?: string | undefined;
2234
2266
  grant?: string | undefined;
2235
2267
  presence?: unknown;
2268
+ topic?: string | undefined;
2236
2269
  keep?: number | string | undefined;
2237
2270
  }>> | undefined): ElementSpec;
2238
2271
  };
@@ -2852,7 +2885,7 @@ export declare const elementAttributeNames: {
2852
2885
  readonly modalContainer: readonly ["autoHideAfterClick", "title"];
2853
2886
  readonly nodeHtml: readonly ["about", "accessKey", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-braillelabel", "aria-brailleroledescription", "aria-busy", "aria-checked", "aria-colcount", "aria-colindex", "aria-colindextext", "aria-colspan", "aria-controls", "aria-current", "aria-describedby", "aria-description", "aria-details", "aria-disabled", "aria-dropeffect", "aria-errormessage", "aria-expanded", "aria-flowto", "aria-grabbed", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-modal", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder", "aria-posinset", "aria-pressed", "aria-readonly", "aria-relevant", "aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex", "aria-rowindextext", "aria-rowspan", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "autoCapitalize", "autoCorrect", "autoFocus", "autoSave", "color", "content", "contentEditable", "contextMenu", "dangerouslySetInnerHTML", "datatype", "defaultChecked", "defaultValue", "dir", "draggable", "enterKeyHint", "exportparts", "hidden", "inert", "inlist", "inputMode", "is", "itemID", "itemProp", "itemRef", "itemScope", "itemType", "lang", "nonce", "onAbort", "onAbortCapture", "onAnimationEnd", "onAnimationEndCapture", "onAnimationIteration", "onAnimationIterationCapture", "onAnimationStart", "onAnimationStartCapture", "onAuxClick", "onAuxClickCapture", "onBeforeInput", "onBeforeInputCapture", "onBeforeToggle", "onBlur", "onBlurCapture", "onCanPlay", "onCanPlayCapture", "onCanPlayThrough", "onCanPlayThroughCapture", "onChange", "onChangeCapture", "onClick", "onClickCapture", "onCompositionEnd", "onCompositionEndCapture", "onCompositionStart", "onCompositionStartCapture", "onCompositionUpdate", "onCompositionUpdateCapture", "onContextMenu", "onContextMenuCapture", "onCopy", "onCopyCapture", "onCut", "onCutCapture", "onDoubleClick", "onDoubleClickCapture", "onDrag", "onDragCapture", "onDragEnd", "onDragEndCapture", "onDragEnter", "onDragEnterCapture", "onDragExit", "onDragExitCapture", "onDragLeave", "onDragLeaveCapture", "onDragOver", "onDragOverCapture", "onDragStart", "onDragStartCapture", "onDrop", "onDropCapture", "onDurationChange", "onDurationChangeCapture", "onEmptied", "onEmptiedCapture", "onEncrypted", "onEncryptedCapture", "onEnded", "onEndedCapture", "onError", "onErrorCapture", "onFocus", "onFocusCapture", "onGotPointerCapture", "onGotPointerCaptureCapture", "onInput", "onInputCapture", "onInvalid", "onInvalidCapture", "onKeyDown", "onKeyDownCapture", "onKeyPress", "onKeyPressCapture", "onKeyUp", "onKeyUpCapture", "onLoad", "onLoadCapture", "onLoadedData", "onLoadedDataCapture", "onLoadedMetadata", "onLoadedMetadataCapture", "onLoadStart", "onLoadStartCapture", "onLostPointerCapture", "onLostPointerCaptureCapture", "onMouseDown", "onMouseDownCapture", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseMoveCapture", "onMouseOut", "onMouseOutCapture", "onMouseOver", "onMouseOverCapture", "onMouseUp", "onMouseUpCapture", "onPaste", "onPasteCapture", "onPause", "onPauseCapture", "onPlay", "onPlayCapture", "onPlaying", "onPlayingCapture", "onPointerCancel", "onPointerCancelCapture", "onPointerDown", "onPointerDownCapture", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerMoveCapture", "onPointerOut", "onPointerOutCapture", "onPointerOver", "onPointerOverCapture", "onPointerUp", "onPointerUpCapture", "onProgress", "onProgressCapture", "onRateChange", "onRateChangeCapture", "onReset", "onResetCapture", "onScroll", "onScrollCapture", "onScrollEnd", "onScrollEndCapture", "onSeeked", "onSeekedCapture", "onSeeking", "onSeekingCapture", "onSelect", "onSelectCapture", "onStalled", "onStalledCapture", "onSubmit", "onSubmitCapture", "onSuspend", "onSuspendCapture", "onTimeUpdate", "onTimeUpdateCapture", "onToggle", "onTouchCancel", "onTouchCancelCapture", "onTouchEnd", "onTouchEndCapture", "onTouchMove", "onTouchMoveCapture", "onTouchStart", "onTouchStartCapture", "onTransitionCancel", "onTransitionCancelCapture", "onTransitionEnd", "onTransitionEndCapture", "onTransitionRun", "onTransitionRunCapture", "onTransitionStart", "onTransitionStartCapture", "onVolumeChange", "onVolumeChangeCapture", "onWaiting", "onWaitingCapture", "onWheel", "onWheelCapture", "part", "popover", "popoverTarget", "popoverTargetAction", "prefix", "property", "radioGroup", "rel", "resource", "results", "rev", "role", "security", "slot", "spellCheck", "style", "subType", "suppressContentEditableWarning", "suppressHydrationWarning", "tabIndex", "title", "translate", "typeof", "unselectable", "vocab"];
2854
2887
  readonly notFound: readonly [];
2855
- readonly page: readonly ["layout", "layoutContainer", "seoEnabled", "seoPageDescription", "seoPageTitle"];
2888
+ readonly page: readonly ["layout", "layoutContainer", "notFound", "seoEnabled", "seoPageDescription", "seoPageTitle"];
2856
2889
  readonly pagination: readonly ["label", "loadMoreLabel", "mode", "nextLabel", "pageInfo", "pageParam", "previousLabel", "target", "windowSize"];
2857
2890
  readonly paragraph: readonly ["content"];
2858
2891
  readonly reference: readonly ["referenceId", "referenceType"];
@@ -2969,6 +3002,14 @@ export declare interface ElementDeclarationData {
2969
3002
  * `plitzi page check`), which would otherwise wait for it to be on screen and report it hidden.
2970
3003
  */
2971
3004
  drawsNothing?: boolean;
3005
+ /**
3006
+ * The attributes the page server evaluates against a context of its own, never where the element renders: a
3007
+ * provider's `notFound`, read against its answer; a page's title and description, read against its server providers.
3008
+ * Interpolated in the element's own scope they resolved to nothing — a `|default(…)` to its fallback — before the
3009
+ * reader that has their names could see them. Read by the element runtime, which leaves them as written, and by the
3010
+ * authoring lint, which holds them to that context.
3011
+ */
3012
+ serverTemplates?: readonly string[];
2972
3013
  content?: {
2973
3014
  attributes?: Record<string, unknown>;
2974
3015
  definition?: {
@@ -2989,6 +3030,7 @@ declare const elementDeclarations: {
2989
3030
  readonly pagination: readonly string[];
2990
3031
  };
2991
3032
  readonly sourceType: "apiContainer";
3033
+ readonly serverTemplates: readonly ["notFound"];
2992
3034
  readonly triggers: {
2993
3035
  readonly onApiError: {
2994
3036
  readonly action: "onApiError";
@@ -3152,25 +3194,25 @@ declare const elementDeclarations: {
3152
3194
  headers?: Record<string, string> | undefined;
3153
3195
  notFound?: string | undefined;
3154
3196
  subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "" | undefined;
3197
+ credentials?: RequestCredentials | undefined;
3198
+ staleTime?: number | string | undefined;
3199
+ gcTime?: number | string | undefined;
3200
+ pageParam?: string | undefined;
3155
3201
  query?: string | undefined;
3156
3202
  accessToken?: string | undefined;
3157
3203
  mockData?: (Record<string, unknown> | string) | undefined;
3158
- credentials?: RequestCredentials | undefined;
3204
+ singleRecord?: boolean | undefined;
3205
+ pagination?: ProviderPagination | undefined;
3206
+ renderWhileLoading?: boolean | undefined;
3207
+ loadingSlot?: string | undefined;
3208
+ refreshSeconds?: number | string | undefined;
3159
3209
  connector?: string | undefined;
3160
3210
  limit?: string | undefined;
3161
- singleRecord?: boolean | undefined;
3162
3211
  filters?: {
3163
3212
  field: string;
3164
3213
  operator: string;
3165
3214
  value: string;
3166
3215
  }[] | undefined;
3167
- pagination?: ProviderPagination | undefined;
3168
- pageParam?: string | undefined;
3169
- renderWhileLoading?: boolean | undefined;
3170
- loadingSlot?: string | undefined;
3171
- staleTime?: number | string | undefined;
3172
- gcTime?: number | string | undefined;
3173
- refreshSeconds?: number | string | undefined;
3174
3216
  }>>;
3175
3217
  readonly BlockHtml: {
3176
3218
  readonly type: "blockHtml";
@@ -3543,8 +3585,8 @@ declare const elementDeclarations: {
3543
3585
  items?: unknown[] | undefined;
3544
3586
  speed?: number | undefined;
3545
3587
  loop?: boolean | undefined;
3546
- autoplay?: number | undefined;
3547
3588
  pauseOnHover?: boolean | undefined;
3589
+ autoplay?: number | undefined;
3548
3590
  transition?: CarouselTransition | undefined;
3549
3591
  itemKey?: string | undefined;
3550
3592
  }>>;
@@ -3617,6 +3659,7 @@ declare const elementDeclarations: {
3617
3659
  readonly from: "";
3618
3660
  readonly user: "";
3619
3661
  readonly at: "";
3662
+ readonly echo: false;
3620
3663
  };
3621
3664
  };
3622
3665
  readonly onJoin: {
@@ -3659,6 +3702,11 @@ declare const elementDeclarations: {
3659
3702
  readonly defaultValue: "";
3660
3703
  readonly type: "text";
3661
3704
  };
3705
+ readonly echo: {
3706
+ readonly label: "Heard on this page too";
3707
+ readonly defaultValue: false;
3708
+ readonly type: "boolean";
3709
+ };
3662
3710
  };
3663
3711
  };
3664
3712
  readonly setPresence: {
@@ -3727,9 +3775,9 @@ declare const elementDeclarations: {
3727
3775
  };
3728
3776
  } & ElementAttributesBrand<Partial<{
3729
3777
  subType?: "" | "div" | "section" | "aside" | "main" | undefined;
3730
- topic?: string | undefined;
3731
3778
  grant?: string | undefined;
3732
3779
  presence?: unknown;
3780
+ topic?: string | undefined;
3733
3781
  keep?: number | string | undefined;
3734
3782
  }>>;
3735
3783
  readonly Container: {
@@ -4002,8 +4050,7 @@ declare const elementDeclarations: {
4002
4050
  readonly top: "0";
4003
4051
  readonly position: "absolute";
4004
4052
  readonly 'z-index': "210";
4005
- readonly 'background-color': "black";
4006
- readonly opacity: "0.5";
4053
+ readonly 'background-color': "rgb(0 0 0 / 50%)";
4007
4054
  };
4008
4055
  };
4009
4056
  readonly rootContainer: {
@@ -5977,7 +6024,7 @@ declare const elementDeclarations: {
5977
6024
  readonly definition: {
5978
6025
  readonly label: "Modal Container";
5979
6026
  readonly type: "modalContainer";
5980
- readonly description: "A modal overlay container opened and closed through interactions; use for dialogs over the page.";
6027
+ readonly description: string;
5981
6028
  readonly items: readonly [];
5982
6029
  readonly bindings: {};
5983
6030
  readonly loadStrategy: "lazy";
@@ -6034,8 +6081,7 @@ declare const elementDeclarations: {
6034
6081
  readonly top: "0";
6035
6082
  readonly position: "absolute";
6036
6083
  readonly 'z-index': "210";
6037
- readonly 'background-color': "black";
6038
- readonly opacity: "0.5";
6084
+ readonly 'background-color': "rgb(0 0 0 / 50%)";
6039
6085
  };
6040
6086
  };
6041
6087
  readonly rootContainer: {
@@ -6520,6 +6566,7 @@ declare const elementDeclarations: {
6520
6566
  } & ElementAttributesBrand<unknown>;
6521
6567
  readonly Page: {
6522
6568
  readonly type: "page";
6569
+ readonly serverTemplates: readonly ["seoPageTitle", "seoPageDescription", "notFound"];
6523
6570
  readonly triggers: {
6524
6571
  readonly onPageLoad: {
6525
6572
  readonly action: "onPageLoad";
@@ -6600,6 +6647,7 @@ declare const elementDeclarations: {
6600
6647
  };
6601
6648
  } & ElementAttributesBrand<Partial<{
6602
6649
  layout?: string | undefined;
6650
+ notFound?: string | undefined;
6603
6651
  layoutContainer?: string | undefined;
6604
6652
  seoEnabled?: boolean | undefined;
6605
6653
  seoPageTitle?: string | undefined;
@@ -7968,6 +8016,15 @@ export declare const explanationText: (explanation: Explanation) => string;
7968
8016
  /** A failed flow in one line, with the steps that failed under it. */
7969
8017
  export declare const failedFlowText: (flow: DevToolsFlow) => string;
7970
8018
 
8019
+ /**
8020
+ * The family a page was written by, when it was: one object shared by its pages and no others. Carried unseen — a
8021
+ * page spec is the author's, and what it says is all a document is made of.
8022
+ */
8023
+ export declare const familyOf: (page: PageSpec) => object | undefined;
8024
+
8025
+ /** The operators that ask about the field alone — whether it holds anything — and so compare it with no value. */
8026
+ declare type FieldOnlyOperator = 'empty' | 'notEmpty';
8027
+
7971
8028
  /** The lint codes `fixSpace` knows how to settle: what the builder offers to fix, and what the server will fix. */
7972
8029
  export declare const FIXABLE_CODES: ReadonlySet<string>;
7973
8030
 
@@ -8235,7 +8292,7 @@ export declare const hiddenParams: (provided: Record<string, unknown>, effective
8235
8292
  * is a field per question whose only reason to exist is the missing word, and it puts "when is this hidden?" in
8236
8293
  * whatever service produced the data rather than in the page that hides it. This inverts the value on the way in.
8237
8294
  */
8238
- export declare const hiddenWhen: (source: string) => BindingSpec;
8295
+ export declare const hiddenWhen: (source: SourceName) => BindingSpec;
8239
8296
 
8240
8297
  /**
8241
8298
  * Asks the application AROUND this space to do something — open one of its screens, sign out, quit.
@@ -8629,6 +8686,12 @@ export declare const invalidParams: (provided: Record<string, unknown>, effectiv
8629
8686
  /** An entry of an element's class list that is rules of its own rather than a class. */
8630
8687
  export declare const isClassModifier: (entry: ClassRef | StyleSpec) => entry is StyleSpec;
8631
8688
 
8689
+ /**
8690
+ * Whether a value is a class at all — a name, or a `styles()` declaration. The types say a class list holds nothing
8691
+ * else, but a space written in JavaScript, or rebuilt from JSON, arrives without them.
8692
+ */
8693
+ export declare const isClassRef: (value: unknown) => value is ClassRef;
8694
+
8632
8695
  export declare const isCssProperty: (key: string) => boolean;
8633
8696
 
8634
8697
  /**
@@ -9536,8 +9599,20 @@ export declare interface PageSpec {
9536
9599
  /** Route, without a leading slash. Empty is the home page. */
9537
9600
  slug: string;
9538
9601
  isDefault?: boolean;
9602
+ /**
9603
+ * The page's title and description in the head, for search engines and link previews. Either may be a template over
9604
+ * the page's server providers (`runtime: 'server'`, its layouts' too) and `navigation` — `'{{ apiContainer_post.title
9605
+ * }} — Blog'` — which the server evaluates as it writes the head.
9606
+ */
9539
9607
  seoTitle?: string;
9540
9608
  seoDescription?: string;
9609
+ /**
9610
+ * One expression over the same answers that says this address shows nothing — a record that is not there: the page is
9611
+ * sent with status 404, rendered as written. For a record read by a provider the page shares with others, in its
9612
+ * layout, whose own `notFound` cannot say it for one page: `'{{ not (apiContainer_feed.topics|find('slug',
9613
+ * navigation.routeParams.slug)) }}'`.
9614
+ */
9615
+ notFound?: string;
9541
9616
  /**
9542
9617
  * Who this page is FOR, and the trap is that omitting it is not the same as `public`.
9543
9618
  *
@@ -9963,8 +10038,10 @@ export declare interface ProbeFindings {
9963
10038
  id: string;
9964
10039
  pixels: number;
9965
10040
  }[];
10041
+ /** Words that cannot be told from what is behind them, with their contrast against it (WCAG's ratio, 1 to 21). */
9966
10042
  illegible: {
9967
10043
  text: string;
10044
+ contrast: number;
9968
10045
  elementId?: string;
9969
10046
  }[];
9970
10047
  }
@@ -10026,12 +10103,16 @@ export declare type PseudoSpec = CssSpec | PseudoRulesSpec;
10026
10103
  export declare type PseudosSpec = Partial<Record<StylePseudo, PseudoSpec>>;
10027
10104
 
10028
10105
  /**
10029
- * Says something on a `channel`, by id: every page on its topic hears it — `onMessage`, and the channel's source.
10106
+ * Says something on a `channel`, by id: every OTHER page on its topic hears it — `onMessage`, and the channel's source.
10107
+ * The page that said it hears it too with `{ echo: true }` — a reaction, a chat line: what the sender shows the moment
10108
+ * it sends — once the server took it, its `from` the channel's `me`.
10030
10109
  *
10031
10110
  * `data` is what they receive: a template (`'{{ state.draft }}'`) or JSON text. `type` is yours to name — `chat`,
10032
10111
  * `wave`, `move` — and a flow on `onMessage` tells them apart with `when({ field: '<step>.type', … })`.
10033
10112
  */
10034
- export declare const publishOn: (target: string, type: string, data?: unknown) => StepSpec;
10113
+ export declare const publishOn: (target: string, type: string, data?: unknown, { echo }?: {
10114
+ echo?: boolean;
10115
+ }) => StepSpec;
10035
10116
 
10036
10117
  /** The page's dev tools, read: the flows that ran and, when asked, the state, the sources and one element. */
10037
10118
  export declare const readDevTools: (driver: DevToolsDriver, input: DevToolsInput) => Promise<DevToolsReport>;
@@ -10747,10 +10828,18 @@ export declare type SourcePath<T> = SourceBrand & (T extends readonly (infer Ite
10747
10828
  readonly [Key in keyof T]-?: SourcePath<T[Key]>;
10748
10829
  } : unknown);
10749
10830
 
10750
- /** The row of a list fed by a typed source: its item as the sample's item, its position as a number. */
10831
+ /**
10832
+ * The row of a list fed by a typed source: its item as the sample's item, its position as a number — both already the
10833
+ * full names a template reads (`` `{{ ${r.item.slug} }}` ``), and `inTemplate` the same names as text, as an untyped
10834
+ * row has them.
10835
+ */
10751
10836
  export declare interface SourceRow<Item> {
10752
10837
  item: SourcePath<Item>;
10753
10838
  index: SourcePath<number>;
10839
+ inTemplate: {
10840
+ item: string;
10841
+ index: string;
10842
+ };
10754
10843
  }
10755
10844
 
10756
10845
  /**
@@ -11648,10 +11737,11 @@ export declare type SuggestionCode = {
11648
11737
  export declare const suggestSpace: ({ schema, style }: {
11649
11738
  schema: Schema;
11650
11739
  style: Style;
11651
- },
11652
- /** The CSS the pages load besides the space's own — its plugins' stylesheets: a token read there is read. */
11653
- { stylesheets }?: {
11740
+ }, { stylesheets, families }?: {
11741
+ /** The CSS the pages load besides the space's own — its plugins' stylesheets: a token read there is read. */
11654
11742
  stylesheets?: readonly string[];
11743
+ /** The pages each `pageFamily` wrote, by id: what they share is written once, never a copy. */
11744
+ families?: readonly (readonly string[])[];
11655
11745
  }) => Suggestion[];
11656
11746
 
11657
11747
  /** The closest known transformer action to a mistyped one (substring match either way), so a wrong action like
@@ -12008,7 +12098,7 @@ declare type VariableName<Variables> = {
12008
12098
  * declaration, the key cannot drift from the class it means. The value at `source` names the variant, or `template`
12009
12099
  * turns it into one.
12010
12100
  */
12011
- export declare const variantFrom: (cls: ClassRef, source: string, options?: VariantFromOptions) => BindingSpec;
12101
+ export declare const variantFrom: (cls: ClassRef, source: SourceName, options?: VariantFromOptions) => BindingSpec;
12012
12102
 
12013
12103
  /** What {@link variantFrom} takes beyond the class and the source. */
12014
12104
  export declare interface VariantFromOptions {
@@ -12072,7 +12162,7 @@ export declare type VisibleInput = Omit<VisibleCondition, 'source'> & {
12072
12162
  * and getting it wrong writes a `visibility` attribute no element reads, so the element stays visible and nothing
12073
12163
  * reports anything.
12074
12164
  */
12075
- export declare const visibleWhen: (source: string, template?: string) => BindingSpec;
12165
+ export declare const visibleWhen: (source: SourceName, template?: string) => BindingSpec;
12076
12166
 
12077
12167
  export declare type WarningCode = {
12078
12168
  [Code in AuthoringCode]: Codes[Code]['kind'] extends 'warned' ? Code : never;
@@ -12151,7 +12241,7 @@ export declare interface WebhookVerifySpec {
12151
12241
  * Written out, a condition is a query-builder group: a combinator and a list of rules, four levels of nesting for
12152
12242
  * "did that work?". Here it is the rule.
12153
12243
  */
12154
- export declare const when: (rules: Rule | Rule[], step: StepSpec, combinator?: "and" | "or") => StepSpec;
12244
+ export declare const when: (rules: WhenRule | WhenRule[], step: StepSpec, combinator?: "and" | "or") => StepSpec;
12155
12245
 
12156
12246
  /**
12157
12247
  * Runs a step only if the named server action did NOT complete.
@@ -12164,6 +12254,15 @@ export declare const when: (rules: Rule | Rule[], step: StepSpec, combinator?: "
12164
12254
  */
12165
12255
  export declare const whenFailed: (stepId: string, step: StepSpec) => StepSpec;
12166
12256
 
12257
+ /** A rule as {@link when} takes it: `{ field, operator: 'empty' }` needs no `value`, which nothing would read. */
12258
+ export declare type WhenRule = Rule | {
12259
+ id?: string;
12260
+ field: string;
12261
+ operator: FieldOnlyOperator;
12262
+ enabled?: boolean;
12263
+ isBinding?: false;
12264
+ };
12265
+
12167
12266
  /**
12168
12267
  * Runs a step only if the named server action completed.
12169
12268
  *
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as GLOBAL_CALLBACK_BUILDERS, $i as AUTHORING_CODES, $n as setState, $r as container, $t as isCssProperty, A as unrollPage, Ai as defaultLabel, An as whenFailed, Ar as onScroll, At as className, B as blankSpace, Bi as groupBindings, Bn as authLogout, Br as setFieldValue, Bt as css, C as pageTexts, Ca as c, Ci as tabContainerHeader, Cn as authoringCodesTable, Cr as onFlowError, Ct as unusedDeclarations, D as pageRegions, Da as t, Di as video, Dn as flowStepIds, Dr as onLoad, Dt as column, E as diffPictures, Ea as s$1, Ei as themeToggle, En as authorFlows, Er as onKey, Et as tw, F as readDevTools, Fi as GLOBAL_SOURCES, Fn as getUtility, Fr as reloadApi, Ft as modifierClassName, G as space$1, Gi as variantFrom, Gn as cycleState, Gt as cssShorthands, H as catalogTemplateFiles, Hi as hiddenWhen, Hn as cancelServerAction, Hr as updateElement, Ht as sameBlocks, I as readDevToolsInPage, Ii as activeOn, In as SET_STATE_TYPES, Ir as resetForm, It as splitClassList, J as importSlug, Ji as actionSource, Jn as invalidateQueries, Jr as blockJsx, Jt as expandShorthandTraced, K as space, Ki as visibleWhen, Kn as delay, Kr as apiContainer, Kt as expandShorthand, L as dataIssues, Li as activeWhen, Ln as addNotification, Lr as scrollBy, Lt as styles, M as inspectPage, Mi as element, Mn as whileRunning, Mr as openDialog, Mt as classRefs, N as onScreen, Ni as inferredLinkMode, Nn as BUILTIN_UTILITIES, Nr as openModal, Nt as isClassModifier, O as profilePictures, Oi as component, On as named, Or as onPageLoad, Ot as grid, P as failedFlowText, Pi as COMPONENT_SOURCES, Pn as applyUtility, Pr as publishOn, Pt as isStyleDeclaration, Q as EXPLAIN_KINDS, Qi as scope, Qn as runServerAction, Qr as channel, Qt as cssPropertyName, R as answerAction, Ri as authorBinding, Rn as appendState, Rr as scrollIntoView, Rt as BREAKPOINTS, S as compareTexts, Sa as s, Si as tabContainerBody, Sn as flagSpecOf, Sr as onFlowEnd, St as suggestClassOverrides, T as comparePictures, Ta as r$1, Ti as text, Tn as authorFlow, Tr as onInterval, Tt as createTw, U as emptyTemplateFiles, Ui as resolveSource, Un as clearState, Ur as elementsFromManifest, Ut as toBlocks, V as blankTemplateFiles, Vi as hasVisibilityBinding, Vn as authRefreshDetails, Vr as toggleElement, Vt as isRuleSetSpec, W as toPortableSource, Wi as toBindingSpecs, Wn as copyToClipboard, Wr as withPluginCatalogs, Wt as toResponsive, X as importProbe, Xi as twig, Xn as navigate, Xr as carousel, Xt as cssNumberValue, Y as importedFiles, Yi as source, Yn as moveState, Yr as button, Yt as shorthandLonghands, Z as BUILDER_NAMES, Zi as closest, Zn as removeState, Zr as carouselTrack, Zt as cssProperties, _ as shortcutKey, _a as t$2, _i as paragraph, _n as instanceSelectorFor, _r as closeModal, _t as assertSnippetValid, a as locateClasses, aa as elementCallbacks, ai as fontAwesome, an as notificationsCss, ar as BUILTIN_GLOBAL_CALLBACKS, at as SPACE_FIELDS, b as summariseRenders, ba as i$1, bi as svg, bn as selectorFor, br as on, bt as suggestSpace, c as validateSnippet, ca as elementLeafTypes, ci as heading, cn as i, cr as e, ct as specFromSpace, d as i$2, da as elementSourceTypes, di as list, dn as r, dr as carouselGoTo, dt as actionToSource, ea as AuthoringError, ei as custom, en as isCustomProperty, er as stepState, et as explain, f as o$1, fa as elementTriggers, fi as listItem, fn as t$1, fr as carouselNext, ft as withNamedIds, g as pressShortcut, ga as e$1, gi as pagination, gn as buildHandles, gr as closeDialog, gt as transformerCatalog, h as withElement, ha as typeTriggerDefinitions, hi as nodeHtml, hn as slugify, hr as carouselPrevious, ht as suggestTransformer, i as lintSpace, ia as elementAttributeValues, ii as embed, in as pageFamily, ir as webHook, it as ELEMENT_FIELDS, j as inspectDocument, ji as defineElement, jn as whenSucceeded, jr as onSubmit, jt as classNames, k as loadImages, ki as defaultAttributes, kn as when, kr as onPointerDown, kt as row, l as validateSpace, la as elementPartTypes, li as image, ln as FIXABLE_CODES, lr as announceOn, lt as compareSpaces, m as singlePageSpace, ma as typeCallbackDefinitions, mi as modalContainer, mn as digest, mr as carouselPlay, mt as getTransformer, n as authorSpace, na as isSuggestionCode, ni as dropdown, nn as SpaceRefusedError, nr as toggleState, nt as explainList, o as locateElements, oa as elementCatalog, oi as form, on as withNotificationsCss, or as applyBuiltinCallback, ot as specToSource, p as compactSvg, pa as elementTypeNames, pi as markdown, pr as carouselPause, pt as BUILTIN_TRANSFORMERS, q as darkScheme, qi as withVisibility, qn as hostAction, qr as blockHtml, qt as expandShorthandPatch, r as fixSpace, ra as elementAncestorTypes, ri as dropdownPopup, rn as refusalOf, rr as twigTemplate, rt as explanationText, s as planFixes, sa as elementDefaultAttributes, si as formControl, sn as d, sr as getGlobalCallback, st as SCHEMA_SETTINGS, t as authorSnippet, ta as authoringCodeEntry, ti as dialogContainer, tn as suggestCssProperty, tr as toggleInState, tt as explainKindOf, u as a$1, ua as elementSlots, ui as link, un as n, ur as cancelApi, ut as actionSpecFromEntry, v as openPage, va as elementAttributeNames, vi as reference, vn as locate, vr as declaredCallback, vt as PAGE_SPEC_FIELDS, w as alignPictures, wa as n$1, wi as tabContainerItem, wn as defineAction, wr as onFlowProgress, wt as tokens, x as PAGE_TEXT_LIMIT, xa as o, xi as tabContainer, xn as flagGateOf, xr as onClick, xt as withoutQuieted, y as inspectRenders, ya as a, yi as richText, yn as pathForSlug, yr as declaredTrigger, yt as assertSpaceValid, z as CATALOG_TEMPLATE_IDENTITY, zi as bindTemplate, zn as authLogin, zr as scrollTo, zt as STYLE_STATES } from "./index-src.js";
2
- export { AUTHORING_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, a as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIXABLE_CODES, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, SCHEMA_SETTINGS, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STYLE_STATES, SpaceRefusedError, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, announceOn, answerAction, apiContainer, appendState, applyBuiltinCallback, s as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, authLogin, authLogout, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, defaultAttributes, defaultLabel, defineAction, defineElement, delay, dialogContainer, diffPictures, digest, dropdown, dropdownPopup, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, t$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementPartTypes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explanationText, failedFlowText, fixSpace, flagGateOf, flagSpecOf, flowStepIds, fontAwesome, form, formControl, o as getElementCallback, getGlobalCallback, getTransformer, getUtility, grid, groupBindings, hasVisibilityBinding, heading, n$1 as hiddenParams, hiddenWhen, hostAction, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isCssProperty, isCustomProperty, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, markdown, r$1 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navigate, nodeHtml, notificationsCss, on, onClick, onFlowEnd, onFlowError, onFlowProgress, onInterval, onKey, onLoad, onPageLoad, onPointerDown, onScreen, onScroll, onSubmit, openDialog, openModal, openPage, pageFamily, pageRegions, pageTexts, pagination, paragraph, pathForSlug, planFixes, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, c as reconcileParams, reference, refusalOf, reloadApi, removeState, resetForm, resolveSource, richText, row, runServerAction, sameBlocks, scope, scrollBy, scrollIntoView, scrollTo, selectorFor, setFieldValue, setState, shortcutKey, shorthandLonghands, singlePageSpace, slugify, source, e as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, text, themeToggle, toBindingSpecs, toBlocks, i$2 as toBuilderParams, a$1 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, e$1 as valuesOf, variantFrom, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
1
+ import { $ as GLOBAL_CALLBACK_BUILDERS, $i as closest, $n as removeState, $r as carouselTrack, $t as css, A as unrollPage, Ai as component, An as named, Ar as onPageLoad, At as d, B as blankSpace, Bi as authorBinding, Bn as appendState, Br as scrollIntoView, Bt as grid, C as pageTexts, Ca as o, Ci as tabContainer, Cn as flagGateOf, Cr as onClick, Ct as unusedDeclarations, D as pageRegions, Da as r$1, Di as text, Dn as authorFlow, Dr as onInterval, Dt as pageFamily, E as diffPictures, Ea as n$1, Ei as tabContainerItem, En as defineAction, Er as onFlowProgress, Et as familyOf, F as readDevTools, Fi as inferredLinkMode, Fn as BUILTIN_UTILITIES, Fr as openModal, Ft as t$1, G as space$1, Gi as resolveSource, Gn as clearState, Gr as elementsFromManifest, Gt as isClassModifier, H as catalogTemplateFiles, Hi as groupBindings, Hn as authLogout, Hr as setFieldValue, Ht as className, I as readDevToolsInPage, Ii as COMPONENT_SOURCES, In as applyUtility, Ir as publishOn, It as tokens, J as importSlug, Ji as visibleWhen, Jn as delay, Jr as apiContainer, Jt as modifierClassName, K as space, Ki as toBindingSpecs, Kn as copyToClipboard, Kr as withPluginCatalogs, Kt as isClassRef, L as dataIssues, Li as GLOBAL_SOURCES, Ln as getUtility, Lr as reloadApi, Lt as createTw, M as inspectPage, Mi as defaultLabel, Mn as whenFailed, Mr as onScroll, Mt as FIXABLE_CODES, N as onScreen, Ni as defineElement, Nn as whenSucceeded, Nr as onSubmit, Nt as n, O as profilePictures, Oa as s$1, Oi as themeToggle, On as authorFlows, Or as onKey, Ot as notificationsCss, P as failedFlowText, Pi as element, Pn as whileRunning, Pr as openDialog, Pt as r, Q as EXPLAIN_KINDS, Qi as twig, Qn as navigate, Qr as carousel, Qt as STYLE_STATES, R as answerAction, Ri as activeOn, Rn as SET_STATE_TYPES, Rr as resetForm, Rt as tw, S as compareTexts, Sa as i$1, Si as svg, Sn as selectorFor, Sr as on, St as suggestClassOverrides, T as comparePictures, Ta as c, Ti as tabContainerHeader, Tn as authoringCodesTable, Tr as onFlowError, Tt as refusalOf, U as emptyTemplateFiles, Ui as hasVisibilityBinding, Un as authRefreshDetails, Ur as toggleElement, Ut as classNames, V as blankTemplateFiles, Vi as bindTemplate, Vn as authLogin, Vr as scrollTo, Vt as row, W as toPortableSource, Wi as hiddenWhen, Wn as cancelServerAction, Wr as updateElement, Wt as classRefs, X as importProbe, Xi as actionSource, Xn as invalidateQueries, Xr as blockJsx, Xt as styles, Y as importedFiles, Yi as withVisibility, Yn as hostAction, Yr as blockHtml, Yt as splitClassList, Z as BUILDER_NAMES, Zi as source, Zn as moveState, Zr as button, Zt as BREAKPOINTS, _ as shortcutKey, _a as typeTriggerDefinitions, _i as nodeHtml, _n as slugify, _r as carouselPrevious, _t as assertSnippetValid, a as locateClasses, aa as elementAncestorTypes, ai as dropdownPopup, an as expandShorthand, ar as twigTemplate, at as SPACE_FIELDS, b as summariseRenders, ba as elementAttributeNames, bi as reference, bn as locate, br as declaredCallback, bt as suggestSpace, c as validateSnippet, ca as elementCatalog, ci as form, cn as shorthandLonghands, cr as applyBuiltinCallback, ct as specFromSpace, d as i$2, da as elementPartTypes, di as image, dn as cssPropertyName, dr as announceOn, dt as actionToSource, ea as scope, ei as channel, en as isRuleSetSpec, er as runServerAction, et as explain, f as o$1, fa as elementSlots, fi as link, fn as isCssProperty, fr as cancelApi, ft as withNamedIds, g as pressShortcut, ga as typeCallbackDefinitions, gi as modalContainer, gn as digest, gr as carouselPlay, gt as transformerCatalog, h as withElement, ha as elementTypeNames, hi as markdown, hr as carouselPause, ht as suggestTransformer, i as lintSpace, ia as isSuggestionCode, ii as dropdown, in as cssShorthands, ir as toggleState, it as ELEMENT_FIELDS, j as inspectDocument, ji as defaultAttributes, jn as when, jr as onPointerDown, jt as i, k as loadImages, ka as t, ki as video, kn as flowStepIds, kr as onLoad, kt as withNotificationsCss, l as validateSpace, la as elementDefaultAttributes, li as formControl, ln as cssNumberValue, lr as getGlobalCallback, lt as compareSpaces, m as singlePageSpace, ma as elementTriggers, mi as listItem, mn as suggestCssProperty, mr as carouselNext, mt as getTransformer, n as authorSpace, na as AuthoringError, ni as custom, nn as toBlocks, nr as stepState, nt as explainList, o as locateElements, oa as elementAttributeValues, oi as embed, on as expandShorthandPatch, or as webHook, ot as specToSource, p as compactSvg, pa as elementSourceTypes, pi as list, pn as isCustomProperty, pr as carouselGoTo, pt as BUILTIN_TRANSFORMERS, q as darkScheme, qi as variantFrom, qn as cycleState, qt as isStyleDeclaration, r as fixSpace, ra as authoringCodeEntry, ri as dialogContainer, rn as toResponsive, rr as toggleInState, rt as explanationText, s as planFixes, sa as elementCallbacks, si as fontAwesome, sn as expandShorthandTraced, sr as BUILTIN_GLOBAL_CALLBACKS, st as SCHEMA_SETTINGS, t as authorSnippet, ta as AUTHORING_CODES, ti as container, tn as sameBlocks, tr as setState, tt as explainKindOf, u as a$1, ua as elementLeafTypes, ui as heading, un as cssProperties, ur as e, ut as actionSpecFromEntry, v as openPage, va as e$1, vi as pagination, vn as buildHandles, vr as closeDialog, vt as PAGE_SPEC_FIELDS, w as alignPictures, wa as s, wi as tabContainerBody, wn as flagSpecOf, wr as onFlowEnd, wt as SpaceRefusedError, x as PAGE_TEXT_LIMIT, xa as a, xi as richText, xn as pathForSlug, xr as declaredTrigger, xt as withoutQuieted, y as inspectRenders, ya as t$2, yi as paragraph, yn as instanceSelectorFor, yr as closeModal, yt as assertSpaceValid, z as CATALOG_TEMPLATE_IDENTITY, zi as activeWhen, zn as addNotification, zr as scrollBy, zt as column } from "./index-src.js";
2
+ export { AUTHORING_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, a as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIXABLE_CODES, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, SCHEMA_SETTINGS, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STYLE_STATES, SpaceRefusedError, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, announceOn, answerAction, apiContainer, appendState, applyBuiltinCallback, s as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, authLogin, authLogout, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, defaultAttributes, defaultLabel, defineAction, defineElement, delay, dialogContainer, diffPictures, digest, dropdown, dropdownPopup, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, t$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementPartTypes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explanationText, failedFlowText, familyOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, fontAwesome, form, formControl, o as getElementCallback, getGlobalCallback, getTransformer, getUtility, grid, groupBindings, hasVisibilityBinding, heading, n$1 as hiddenParams, hiddenWhen, hostAction, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, markdown, r$1 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navigate, nodeHtml, notificationsCss, on, onClick, onFlowEnd, onFlowError, onFlowProgress, onInterval, onKey, onLoad, onPageLoad, onPointerDown, onScreen, onScroll, onSubmit, openDialog, openModal, openPage, pageFamily, pageRegions, pageTexts, pagination, paragraph, pathForSlug, planFixes, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, c as reconcileParams, reference, refusalOf, reloadApi, removeState, resetForm, resolveSource, richText, row, runServerAction, sameBlocks, scope, scrollBy, scrollIntoView, scrollTo, selectorFor, setFieldValue, setState, shortcutKey, shorthandLonghands, singlePageSpace, slugify, source, e as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, text, themeToggle, toBindingSpecs, toBlocks, i$2 as toBuilderParams, a$1 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, e$1 as valuesOf, variantFrom, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };