@plitzi/sdk-authoring 0.38.13 → 0.38.15

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
@@ -57,6 +57,9 @@ export declare type ActionAccess =
57
57
  /** What the action answers: its output, or a function of the input the page sent. */
58
58
  export declare type ActionAnswer = Record<string, unknown> | ((input: Record<string, unknown>) => Record<string, unknown>);
59
59
 
60
+ /** What a page hands an action: its `call` way in's fields, typed. */
61
+ export declare type ActionCallInput<Spec extends ActionSpec> = CallFieldsOf<Spec> extends Readonly<Record<string, ActionField>> ? ActionInputOf<CallFieldsOf<Spec>> : Record<string, unknown>;
62
+
60
63
  /**
61
64
  * A server action: a declarative flow, stored per space, executed by the server.
62
65
  *
@@ -123,6 +126,16 @@ export declare type ActionField = {
123
126
  */
124
127
  export declare type ActionFieldType = 'text' | 'number' | 'boolean' | 'date' | 'json' | 'file';
125
128
 
129
+ /** What a caller sends for a field of a type: text for `text`, `date` and `file`, anything parseable for `json`. */
130
+ declare type ActionFieldValue<T extends ActionFieldType> = T extends 'number' ? number : T extends 'boolean' ? boolean : T extends 'json' ? unknown : string;
131
+
132
+ /** The input a caller hands an action, from the fields it declares: those `required: true` must be there. */
133
+ declare type ActionInputOf<Fields extends Readonly<Record<string, ActionField>>> = {
134
+ -readonly [K in keyof Fields as Fields[K]['required'] extends true ? K : never]: ActionFieldValue<Fields[K]['type']>;
135
+ } & {
136
+ -readonly [K in keyof Fields as Fields[K]['required'] extends true ? never : K]?: ActionFieldValue<Fields[K]['type']>;
137
+ };
138
+
126
139
  /** Ceilings for one run. A per-action value may only tighten the deployment's own. */
127
140
  export declare type ActionLimits = {
128
141
  timeoutMs?: number;
@@ -561,6 +574,25 @@ export declare const assertSnippetValid: (snippet: Snippet, context: string, opt
561
574
  */
562
575
  export declare const assertSpaceValid: (space: SpaceDocuments, context: string, options?: SpaceValidationOptions, allow?: readonly AllowedBreak[]) => SchemaValidationError[];
563
576
 
577
+ declare type Asset = {
578
+ id: string;
579
+ type: 'link';
580
+ params: {
581
+ href: string;
582
+ type: 'text/css';
583
+ rel: 'stylesheet';
584
+ } & Record<string, string>;
585
+ isMain?: boolean;
586
+ } | {
587
+ id: string;
588
+ type: 'script';
589
+ params: {
590
+ src: string;
591
+ type: 'text/javascript';
592
+ } & Record<string, string>;
593
+ isMain?: boolean;
594
+ };
595
+
564
596
  /**
565
597
  * The attributes of one built-in element, by type name — `Attributes<'heading'>['subType']`.
566
598
  *
@@ -1885,6 +1917,12 @@ export declare interface AuthorSpaceOptions {
1885
1917
  * type or `custom:<renderType>`. Their handles are `boxless`, so a page check does not wait for them on screen.
1886
1918
  */
1887
1919
  drawsNothingTypes?: readonly string[];
1920
+ /**
1921
+ * The types that show only some of their children, chosen as they run (a plugin's `choosesChildren`), under the name
1922
+ * a space uses them by. Everything inside them is `conditional`, so a page check owes none of it on screen — until it
1923
+ * is drawn: then its handle's `shownWith` makes it owed like the rest of the page.
1924
+ */
1925
+ choosesChildrenTypes?: readonly string[];
1888
1926
  /**
1889
1927
  * Plugin type → the attributes it declares under a name authoring keeps for the element itself (`variant`, `class`,
1890
1928
  * `id`…): a factory reads those as the element's, so the plugin is never handed them. Derived from `plugins`.
@@ -2070,6 +2108,12 @@ declare type BlockJsxProps = {
2070
2108
  contentCache?: string;
2071
2109
  };
2072
2110
 
2111
+ /**
2112
+ * The attribute a binding writes, from where it lands: `offlineData.schema` writes part of `offlineData` — the runtime
2113
+ * sets the path — so it is `offlineData` an element has to read.
2114
+ */
2115
+ export declare const boundAttribute: (to: string) => string;
2116
+
2073
2117
  /** The breakpoints a rule set can be written for, widest first — the order they cascade in. */
2074
2118
  export declare const BREAKPOINTS: DisplayMode[];
2075
2119
 
@@ -2187,8 +2231,36 @@ export declare const button: ElementFactory<Partial<{
2187
2231
  ariaPressed?: boolean | undefined;
2188
2232
  }>>;
2189
2233
 
2234
+ /**
2235
+ * The key a typed action's input and output ride under, in its type only — nothing holds it at run time. Exported so a
2236
+ * package that emits declarations can name the type of an action it exports (`export const actions = [defineAction(…)]`):
2237
+ * a symbol it cannot import is one its `.d.ts` cannot write (TS4023).
2238
+ */
2239
+ export declare const CALL_TYPES: unique symbol;
2240
+
2190
2241
  declare type CallbackName<D extends DeclaresInteractions> = keyof NonNullable<D['callbacks']> & string;
2191
2242
 
2243
+ /** The fields an action's `call` way in declares — the one a page runs — or none, for an action with no such way. */
2244
+ declare type CallFieldsOf<Spec extends ActionSpec> = Extract<Spec['trigger'] extends readonly (infer Trigger)[] ? Trigger : Spec['trigger'], {
2245
+ type: 'call';
2246
+ }> extends {
2247
+ input?: infer Fields;
2248
+ } ? Fields : undefined;
2249
+
2250
+ /** The input an action's `call` way in takes, from its type — any object, for an action whose type does not say. */
2251
+ export declare type CallInputOf<Action> = Action extends {
2252
+ readonly [CALL_TYPES]?: {
2253
+ input: infer Input;
2254
+ };
2255
+ } ? unknown extends Input ? Record<string, unknown> : Input : Record<string, unknown>;
2256
+
2257
+ /** What an action answers, from its type — `unknown` for one whose type does not say. */
2258
+ export declare type CallOutputOf<Action> = Action extends {
2259
+ readonly [CALL_TYPES]?: {
2260
+ output: infer Output;
2261
+ };
2262
+ } ? Output : unknown;
2263
+
2192
2264
  /**
2193
2265
  * Stops an `apiContainer`'s request in flight, by id — a STOP for a slow report: the request is dropped, on the
2194
2266
  * server too, and what the container shows stays. Its `isLoading` turns false.
@@ -2321,6 +2393,13 @@ export declare type ChannelDeclaration = {
2321
2393
  * a locked board.
2322
2394
  */
2323
2395
  grant?: boolean;
2396
+ /**
2397
+ * Whether the server keeps the latest message of each type on a topic, and hands them to every page that joins: state
2398
+ * all the screens share — a dashboard's lists, a board's settings — said once by the server (`ctx.publish`, a flow's
2399
+ * `realtime.publish`) and there for a page that opens later, as `<channel>.retained.<type>`. Kept until the next of
2400
+ * its type; `null` forgets it. Only on a channel the server alone publishes on (`publish: 'server'`).
2401
+ */
2402
+ retain?: boolean;
2324
2403
  /** The largest `data` a page may send, as JSON bytes. 4 KB when absent. */
2325
2404
  maxMessageBytes?: number;
2326
2405
  /** How many messages one connection may send a second. 30 when absent. */
@@ -2439,6 +2518,22 @@ export declare const component: (componentId: string, instance?: ComponentInstan
2439
2518
  /** What an element inside a component can read besides its own tree: the globals, and what its instance hands in. */
2440
2519
  export declare const COMPONENT_SOURCES: string[];
2441
2520
 
2521
+ declare type ComponentDefinition = Pick<PluginSchema, 'attributes' | 'builder' | 'definition' | 'defaultStyle' | 'initialItems'> & {
2522
+ assets: Asset[];
2523
+ assetsSettings: Omit<Asset, 'isMain'>[];
2524
+ manifest: PluginManifest;
2525
+ market: Omit<PluginManifest, 'name'> & {
2526
+ category: string;
2527
+ };
2528
+ settings: {
2529
+ [key: string]: string | number | boolean;
2530
+ };
2531
+ type: string;
2532
+ subPlugins: string[];
2533
+ resource: string;
2534
+ isMain?: boolean;
2535
+ } & PluginManifest['runtime'];
2536
+
2442
2537
  /** How an instance is authored: what it hands in, what fills its slots, and the authoring fields any element takes. */
2443
2538
  export declare type ComponentInstanceProps = Pick<AuthoringProps, 'id' | 'class' | 'css' | 'states' | 'selector' | 'bind' | 'visible' | 'flows' | 'meta' | 'quiet'> & {
2444
2539
  /** The props the component declares, by name. A prop is an attribute of the instance: `bind` can land on one too. */
@@ -2738,7 +2833,7 @@ export declare const defaultAttributes: (type: string) => Record<string, unknown
2738
2833
  /** The name a factory gives an element of this type in the builder's tree, unless the author gave it another. */
2739
2834
  export declare const defaultLabel: (type: string) => string;
2740
2835
 
2741
- export declare const defineAction: (spec: ActionSpec) => ActionEntry;
2836
+ export declare const defineAction: <const Spec extends ActionSpec>(spec: Spec) => TypedActionEntry<ActionCallInput<Spec>>;
2742
2837
 
2743
2838
  /** What {@link definePlugin} answers: the declaration, its events and actions named, and its attributes in its type. */
2744
2839
  export declare type DefinedPlugin<A extends object, T extends Record<string, PluginTriggerSpec>, C extends Record<string, PluginCallbackSpec>> = Omit<PluginDeclaration<A>, 'triggers' | 'callbacks'> & {
@@ -2859,9 +2954,17 @@ export declare const digest: (value: string, length: number) => string;
2859
2954
 
2860
2955
  export declare type DisplayMode = 'desktop' | 'tablet' | 'mobile';
2861
2956
 
2957
+ /**
2958
+ * How the document holding a page moves under a finger or a wheel, when the page says so — see
2959
+ * `PageProps.documentScroll`. Read by the authoring surface to refuse anything else.
2960
+ */
2961
+ export declare const DOCUMENT_SCROLLS: readonly ["locked", "noBounce"];
2962
+
2862
2963
  /** Checks that need no space: what any rendered page owes, whoever wrote it. */
2863
2964
  export declare type DocumentChecks = Pick<InspectOptions, 'skip' | 'timeout'>;
2864
2965
 
2966
+ export declare type DocumentScroll = (typeof DOCUMENT_SCROLLS)[number];
2967
+
2865
2968
  export declare const dropdown: {
2866
2969
  (children: ElementSpec[], props?: ElementProps<Partial<{
2867
2970
  disabled?: boolean | undefined;
@@ -2962,9 +3065,10 @@ export declare const elementAttributeNames: {
2962
3065
  readonly modalContainer: readonly ["autoHideAfterClick", "title"];
2963
3066
  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"];
2964
3067
  readonly notFound: readonly [];
2965
- readonly page: readonly ["layout", "layoutContainer", "notFound", "seoEnabled", "seoPageDescription", "seoPageTitle"];
3068
+ readonly page: readonly ["documentScroll", "layout", "layoutContainer", "notFound", "seoEnabled", "seoPageDescription", "seoPageTitle"];
2966
3069
  readonly pagination: readonly ["label", "loadMoreLabel", "mode", "nextLabel", "pageInfo", "pageParam", "previousLabel", "target", "windowSize"];
2967
3070
  readonly paragraph: readonly ["content"];
3071
+ readonly plitziSdk: readonly ["environment", "offlineData", "spaceKey"];
2968
3072
  readonly reference: readonly ["referenceId", "referenceType"];
2969
3073
  readonly richText: readonly ["content", "format", "mediaBaseUrl"];
2970
3074
  readonly svg: readonly ["content", "label"];
@@ -3144,6 +3248,13 @@ export declare interface ElementDeclarationData {
3144
3248
  * `plitzi page check`), which would otherwise wait for it to be on screen and report it hidden.
3145
3249
  */
3146
3250
  drawsNothing?: boolean;
3251
+ /**
3252
+ * Whether the element shows only some of the children put inside it, chosen as it runs — a dashboard showing the
3253
+ * panels of the layout saved for this device, a wizard its current step. Read by the page checks, which then owe none
3254
+ * of them on screen; the ones it draws are checked like the rest of the page — there, visible, and what is named
3255
+ * inside them too.
3256
+ */
3257
+ choosesChildren?: boolean;
3147
3258
  /**
3148
3259
  * The attributes the page server evaluates against a context of its own, never where the element renders: a
3149
3260
  * provider's `notFound`, read against its answer; a page's title and description, read against its server providers.
@@ -6079,6 +6190,9 @@ declare const elementDeclarations: {
6079
6190
  readonly Page: DeclaredElement< {
6080
6191
  readonly type: "page";
6081
6192
  readonly serverTemplates: readonly ["seoPageTitle", "seoPageDescription", "notFound"];
6193
+ readonly attributeValues: {
6194
+ readonly documentScroll: readonly ["locked", "noBounce"];
6195
+ };
6082
6196
  readonly triggers: {
6083
6197
  readonly onPageLoad: {
6084
6198
  readonly action: "onPageLoad";
@@ -6144,6 +6258,7 @@ declare const elementDeclarations: {
6144
6258
  seoEnabled?: boolean | undefined;
6145
6259
  seoPageTitle?: string | undefined;
6146
6260
  seoPageDescription?: string | undefined;
6261
+ documentScroll?: (DocumentScroll | "") | undefined;
6147
6262
  }>>;
6148
6263
  readonly Pagination: DeclaredElement< {
6149
6264
  readonly type: "pagination";
@@ -6241,6 +6356,30 @@ declare const elementDeclarations: {
6241
6356
  }, Partial<{
6242
6357
  content?: string | number | undefined;
6243
6358
  }>>;
6359
+ readonly PlitziSdk: DeclaredElement< {
6360
+ readonly type: "plitziSdk";
6361
+ readonly content: {
6362
+ readonly attributes: {
6363
+ readonly spaceKey: "";
6364
+ readonly environment: "main";
6365
+ };
6366
+ readonly definition: {
6367
+ readonly label: "Plitzi Sdk";
6368
+ readonly description: "Another space drawn inside this one, as a widget — its home page, no router of its own: by its key, or from its documents (`offlineData`), bound to UI generated on the fly.";
6369
+ };
6370
+ readonly market: {
6371
+ readonly category: "advanced";
6372
+ readonly icon: "https://cdn.plitzi.com/resources/img/favicon.svg";
6373
+ };
6374
+ readonly defaultStyle: {
6375
+ readonly style: {
6376
+ readonly base: {
6377
+ readonly default: {};
6378
+ };
6379
+ };
6380
+ };
6381
+ };
6382
+ }, PlitziSdkAttributes>;
6244
6383
  readonly Reference: DeclaredElement< {
6245
6384
  readonly type: "reference";
6246
6385
  readonly content: {
@@ -6769,6 +6908,12 @@ export declare interface ElementHandle {
6769
6908
  * Present only when true: almost nothing on a page is conditional, and the handles are serialized.
6770
6909
  */
6771
6910
  conditional?: true;
6911
+ /**
6912
+ * For an element an element that chooses its children (`choosesChildren`) may draw — one of those children, or what
6913
+ * is inside one under no condition of its own: that child, by id. It is `conditional`, since a bare visit owes none
6914
+ * of it; once the child is drawn, it and everything it holds are owed like the rest of the page.
6915
+ */
6916
+ shownWith?: string;
6772
6917
  /**
6773
6918
  * Whether this element sits inside a list's row, so it renders once per row — several times, or not at all while the
6774
6919
  * list is empty. Its selector matches every copy: address one with the driver's `.first()` / `.nth()`.
@@ -7134,6 +7279,8 @@ export declare const emptyTemplateFiles: ({ name, dir }?: {
7134
7279
  dir?: string;
7135
7280
  }) => Record<string, string>;
7136
7281
 
7282
+ declare type Environment = 'production' | 'staging' | 'development' | 'main';
7283
+
7137
7284
  /**
7138
7285
  * Expand supported CSS shorthands to their longhand keys, in declaration order: the later declaration wins, as it
7139
7286
  * does in a stylesheet. `{ padding: 8, 'padding-left': 0 }` keeps `padding-left: 0`, and
@@ -7939,6 +8086,8 @@ export declare const isCssProperty: (key: string) => boolean;
7939
8086
  */
7940
8087
  export declare const isCustomProperty: (key: string) => boolean;
7941
8088
 
8089
+ export declare const isDocumentScroll: (value: unknown) => value is DocumentScroll;
8090
+
7942
8091
  /**
7943
8092
  * Whether a style is the object form rather than plain CSS.
7944
8093
  *
@@ -8521,6 +8670,34 @@ export declare const nodeHtml: ElementFactory<Partial<{
8521
8670
  subType?: "span" | undefined;
8522
8671
  }>>;
8523
8672
 
8673
+ /** How a notification looks: the `addNotification` step's `appearance`, and `useNotify`'s. */
8674
+ export declare const NOTIFICATION_APPEARANCES: readonly ["success", "danger", "warning", "info"];
8675
+
8676
+ /** The defaults of a notification, the step's and the hook's alike. */
8677
+ export declare const NOTIFICATION_DEFAULTS: {
8678
+ readonly placement: "top-right";
8679
+ readonly appearance: "success";
8680
+ readonly autoDismiss: true;
8681
+ readonly autoDismissTimeout: 5000;
8682
+ };
8683
+
8684
+ /** Where a notification may appear: the `addNotification` step's `placement`, and `useNotify`'s. */
8685
+ export declare const NOTIFICATION_PLACEMENTS: readonly ["top-right", "top-center", "top-left", "bottom-right", "bottom-center", "bottom-left"];
8686
+
8687
+ export declare type NotificationAppearance = (typeof NOTIFICATION_APPEARANCES)[number];
8688
+
8689
+ /** What a notification takes besides its text — every one with the default the `addNotification` step has. */
8690
+ declare type NotificationOptions_2 = {
8691
+ placement?: NotificationPlacement;
8692
+ appearance?: NotificationAppearance;
8693
+ autoDismiss?: boolean;
8694
+ /** Milliseconds before it dismisses itself, with `autoDismiss`. */
8695
+ autoDismissTimeout?: number;
8696
+ };
8697
+ export { NotificationOptions_2 as NotificationOptions }
8698
+
8699
+ export declare type NotificationPlacement = (typeof NOTIFICATION_PLACEMENTS)[number];
8700
+
8524
8701
  /** Every field `notifications` takes — what an editor of the setting (the builder, the MCP server's `patchSettings`) offers. */
8525
8702
  export declare const NOTIFICATIONS_FIELDS: readonly (keyof NotificationsSpec)[];
8526
8703
 
@@ -8575,6 +8752,22 @@ export declare interface NotificationsSpec {
8575
8752
  progressHeight?: string;
8576
8753
  }
8577
8754
 
8755
+ declare type OfflineDataRaw = {
8756
+ schema: Schema;
8757
+ style: Style;
8758
+ plugins?: PluginRaw[];
8759
+ };
8760
+
8761
+ /**
8762
+ * `on('onClick')`, and the same for every other trigger — a plugin's too (`on('onPick')`). What the event carries is
8763
+ * read through the step's id, so name it: `[named('picked', on('onPick')), setState({ key: 'seat', type: 'text', value:
8764
+ * '{{ picked.seat }}' })]`.
8765
+ *
8766
+ * The basic set every element registers is named and autocompletes; any other string is accepted because a TYPE
8767
+ * may publish triggers of its own — a form's `onSubmit`, a provider's page change — and refusing those would make
8768
+ * the builders useless for exactly the flows that matter most. A plugin's, typed by its declaration:
8769
+ * `declaredTrigger(declaration, 'onPick')`.
8770
+ */
8578
8771
  export declare const on: (trigger: ElementTriggerName | (string & {}), params?: Record<string, unknown>) => StepSpec;
8579
8772
 
8580
8773
  export declare const onClick: (params?: {
@@ -8630,6 +8823,12 @@ export declare const onPointerDown: (params?: {
8630
8823
  */
8631
8824
  export declare const onScreen: (handles: SpaceHandles, page: string, options?: OnScreenOptions) => ElementHandle[];
8632
8825
 
8826
+ /**
8827
+ * What a page owes only if an element that chooses its children draws them (`shownWith`): left out of `onScreen`,
8828
+ * since a bare visit may show none, and owed like the rest once the child they come with is on screen.
8829
+ */
8830
+ export declare const onScreenIfChosen: (handles: SpaceHandles, page: string, options?: OnScreenOptions) => ElementHandle[];
8831
+
8633
8832
  export declare interface OnScreenOptions {
8634
8833
  /**
8635
8834
  * Which elements a freshly opened page owes: `named` (the default) is what an author bothered to name — the contract
@@ -8810,7 +9009,10 @@ export declare const pageRegions: () => PictureRegion[];
8810
9009
  export declare interface PageReport {
8811
9010
  /** The page that was inspected, by id. */
8812
9011
  page: string;
8813
- /** How many elements were owed and checked. */
9012
+ /**
9013
+ * How many elements were owed and checked — what an element that chooses its children drew counted in, and what it
9014
+ * did not draw left out.
9015
+ */
8814
9016
  checked: number;
8815
9017
  /**
8816
9018
  * Everything wrong, one sentence each, naming the element and the reason — empty when the page is whole.
@@ -8849,6 +9051,14 @@ export declare interface PageSpec {
8849
9051
  * navigation.routeParams.slug)) }}'`.
8850
9052
  */
8851
9053
  notFound?: string;
9054
+ /**
9055
+ * How the document moves while this page is on it. Left out, it scrolls as any page does. `'noBounce'` keeps the
9056
+ * scroll and takes away what a finger pulls past either end — iOS's rubber band, pull-to-refresh. `'locked'` holds it
9057
+ * still: a screen that fills the window — a dashboard, a board — where only the panels that scroll on their own
9058
+ * (`overflow: 'auto'`) move, and a finger dragged anywhere else no longer pulls the whole page. Never written onto a
9059
+ * document the space is embedded in.
9060
+ */
9061
+ documentScroll?: DocumentScroll;
8852
9062
  /**
8853
9063
  * Who this page is FOR, and the trap is that omitting it is not the same as `public`.
8854
9064
  *
@@ -9084,6 +9294,41 @@ export declare interface PlanProblem {
9084
9294
  message: string;
9085
9295
  }
9086
9296
 
9297
+ /** Another space drawn inside this one, as a widget: `plitziSdk({ id: 'card', bind: { offlineData: 'view.data' } })`. */
9298
+ export declare const plitziSdk: {
9299
+ (children: ElementSpec[], props?: ElementProps< PlitziSdkAttributes> | undefined): ElementSpec;
9300
+ (props?: ElementProps< PlitziSdkAttributes> | undefined): ElementSpec;
9301
+ };
9302
+
9303
+ /** What this element can be authored with. */
9304
+ declare type PlitziSdkAttributes = {
9305
+ /** The space drawn, fetched by its key. */
9306
+ spaceKey?: string;
9307
+ environment?: Environment;
9308
+ /**
9309
+ * The space drawn from its documents instead — `schema` and `style` with its compiled `cache`, what `plitzi_render`
9310
+ * answers — with no backend behind it: UI generated on the fly, a preview. Usually bound: whole, to an
9311
+ * `apiContainer`'s answer or a runtime's route, or `offlineData.schema` and `offlineData.style` from two elements.
9312
+ * With it, `spaceKey` is not read.
9313
+ */
9314
+ offlineData?: OfflineDataRaw;
9315
+ };
9316
+
9317
+ declare type Plugin_2 = {
9318
+ assets: Asset[];
9319
+ assetsSettings: Omit<Asset, 'isMain'>[];
9320
+ attributes: ComponentDefinition['attributes'];
9321
+ builder: PluginBuilder;
9322
+ defaultStyle: ComponentDefinition['defaultStyle'];
9323
+ isMain?: boolean;
9324
+ manifest: PluginManifest;
9325
+ market: ComponentDefinition['market'];
9326
+ resource: string;
9327
+ settings: Record<string, unknown>;
9328
+ subPlugins?: string[];
9329
+ type: string;
9330
+ };
9331
+
9087
9332
  export declare type PluginBuilder = {
9088
9333
  canDelete?: boolean;
9089
9334
  canDragDrop?: boolean;
@@ -9146,6 +9391,11 @@ export declare interface PluginDeclarationData {
9146
9391
  sourceType?: string;
9147
9392
  /** Behaviour rather than content: it draws nothing on a page, so no check waits for it on screen. */
9148
9393
  drawsNothing?: boolean;
9394
+ /**
9395
+ * It shows only some of its children, chosen as it runs: no check waits for any of them on screen, and the ones it
9396
+ * draws are checked like the rest of the page.
9397
+ */
9398
+ choosesChildren?: boolean;
9149
9399
  /** The events it fires beyond the ones every element does, by action. */
9150
9400
  triggers?: Readonly<Record<string, {
9151
9401
  action: string;
@@ -9229,6 +9479,12 @@ export declare type PluginManifest = {
9229
9479
  version: string;
9230
9480
  };
9231
9481
 
9482
+ declare type PluginRaw = {
9483
+ resource: string;
9484
+ settings: Plugin_2['settings'];
9485
+ type: string;
9486
+ };
9487
+
9232
9488
  export declare type PluginSchema = {
9233
9489
  attributes: Element_2['attributes'];
9234
9490
  builder: PluginBuilder;
@@ -9304,6 +9560,8 @@ export declare interface ProbeFindings {
9304
9560
  id: string;
9305
9561
  reason: string;
9306
9562
  }[];
9563
+ /** Owed only with an element that chooses its children drawing it, and not drawn: not checked, and not a problem. */
9564
+ notDrawn: string[];
9307
9565
  /** Owed, and hidden at this width by a breakpoint on purpose — checked at the width it shows at, not a problem. */
9308
9566
  byWidth: string[];
9309
9567
  /** Each with the element it is in, by id, when one of the space's holds it. */
@@ -9336,11 +9594,15 @@ export declare interface ProbeFindings {
9336
9594
  * Plain data both ways, because it crosses into the page as a serialized argument and comes back the same way.
9337
9595
  */
9338
9596
  export declare interface ProbeInput {
9339
- /** `list`: a list, whose box is only its rows — none drawn is a list with nothing in it, not one hidden. */
9597
+ /**
9598
+ * `list`: a list, whose box is only its rows — none drawn is a list with nothing in it, not one hidden. `shownWith`:
9599
+ * the selector of the element an element that chooses its children drew it with — owed only while that one shows.
9600
+ */
9340
9601
  expected: {
9341
9602
  id: string;
9342
9603
  selector: string;
9343
9604
  list?: true;
9605
+ shownWith?: string;
9344
9606
  }[];
9345
9607
  images: boolean;
9346
9608
  overflow: boolean;
@@ -9404,6 +9666,15 @@ export declare const readDevTools: (driver: DevToolsDriver, input: DevToolsInput
9404
9666
  /** Runs in the page. Self-contained — it is serialised — and it trusts nothing it reads off `window`. */
9405
9667
  export declare const readDevToolsInPage: ({ state, element }: DevToolsInput) => DevToolsReport;
9406
9668
 
9669
+ /**
9670
+ * What a notification was handed, kept to what it takes — a flow's values arrive as written, and a plugin may be plain
9671
+ * JavaScript — with each field set aside named, so the caller says so rather than showing the default in silence.
9672
+ */
9673
+ export declare const readNotificationOptions: (given: Readonly<Record<string, unknown>>) => {
9674
+ options: NotificationOptions_2;
9675
+ ignored: string[];
9676
+ };
9677
+
9407
9678
  /** Reconcile supplied params to a catalog schema: drop unknown keys when the set is CLOSED (strict), then fill the
9408
9679
  * builder's defaults for any declared param the agent omitted whose `when` guard holds. Mirrors what the builder
9409
9680
  * stores, so the persisted node round-trips cleanly. */
@@ -11089,19 +11360,7 @@ export declare type TagType = 'class' | 'element' | 'id';
11089
11360
  /** Colour names beside the palette: a space's tokens (`surface: 'var(--surface)'`), or a palette name redefined. */
11090
11361
  export declare type TailwindColors = Readonly<Record<string, string>>;
11091
11362
 
11092
- /**
11093
- * A server action that runs one of the space's tasks and answers its result — the way in a task is reached by from a
11094
- * page (`call`), the HTML (`render`) or anywhere else, written once: the task's params are the action's input, its
11095
- * title and description the action's, its address the id.
11096
- *
11097
- * ```ts
11098
- * export const make = taskAction(tasks.make, { trigger: { type: 'call', access: 'public' } });
11099
- * runServerAction({ actionId: make.id, input: { title: '{{ state.title }}' } });
11100
- * ```
11101
- *
11102
- * An action of more than one step, or one whose input is not the task's params, is a `defineAction`.
11103
- */
11104
- export declare const taskAction: (task: ActionTask, { trigger, id, name, description, output, limits }: TaskActionOptions) => ActionEntry;
11363
+ export declare const taskAction: <Task extends ActionTask>(task: Task, { trigger, id, name, description, output, limits }: TaskActionOptions) => TypedActionEntry<TaskInput<Task>, TaskOutput<Task>>;
11105
11364
 
11106
11365
  export declare interface TaskActionOptions {
11107
11366
  trigger: TaskActionTrigger | TaskActionTrigger[];
@@ -11121,6 +11380,28 @@ export declare type TaskActionTrigger = ActionTriggerSpec extends infer Trigger
11121
11380
  input?: Record<string, ActionField>;
11122
11381
  } : never : never;
11123
11382
 
11383
+ /**
11384
+ * A server action that runs one of the space's tasks and answers its result — the way in a task is reached by from a
11385
+ * page (`call`), the HTML (`render`) or anywhere else, written once: the task's params are the action's input, its
11386
+ * title and description the action's, its address the id.
11387
+ *
11388
+ * ```ts
11389
+ * export const make = taskAction(tasks.make, { trigger: { type: 'call', access: 'public' } });
11390
+ * runServerAction({ actionId: make.id, input: { title: '{{ state.title }}' } });
11391
+ * ```
11392
+ *
11393
+ * An action of more than one step, or one whose input is not the task's params, is a `defineAction`.
11394
+ */
11395
+ /** What a task takes, from its `run` — any object, for a task described without one. */
11396
+ declare type TaskInput<Task> = Task extends {
11397
+ run: (params: infer Params, ...rest: never[]) => unknown;
11398
+ } ? Params : Record<string, unknown>;
11399
+
11400
+ /** What a task answers, from its `run` — awaited: a page receives the value, never the promise. */
11401
+ declare type TaskOutput<Task> = Task extends {
11402
+ run: (...args: never[]) => infer Result;
11403
+ } ? Awaited<Result> : unknown;
11404
+
11124
11405
  /** What a binding's template hands its attribute: its rendered text, or the value of its one `{{ expression }}`. */
11125
11406
  export declare type TemplateReturns = 'text' | 'value';
11126
11407
 
@@ -11349,6 +11630,18 @@ export declare interface TwOptions {
11349
11630
  /** The callbacks only some types answer to, by action name — with their params, for whatever explains or checks one. */
11350
11631
  export declare const typeCallbackDefinitions: Record<string, InteractionCallback>;
11351
11632
 
11633
+ /**
11634
+ * An action whose `call` way in is known to the types — what it takes and what it answers: what `defineAction` and
11635
+ * `taskAction` answer, so a page that runs it (`useServerAction<typeof saveHabit>('save-habit')`) is held to the input
11636
+ * it declares and handed the output typed. Nothing of it exists at run time — the action is the same document.
11637
+ */
11638
+ export declare type TypedActionEntry<Input, Output = unknown> = ActionEntry & {
11639
+ readonly [CALL_TYPES]?: {
11640
+ input: Input;
11641
+ output: Output;
11642
+ };
11643
+ };
11644
+
11352
11645
  /** A list fed by a typed source: its `row` is handed the item typed as the sample's (`g => text({ from: g.item.title })`). */
11353
11646
  declare type TypedListProps<Item> = Omit<ListProps, 'items' | 'row'> & {
11354
11647
  items: SourcePath<readonly Item[]>;
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as GLOBAL_CALLBACK_BUILDERS, $i as source, $n as twigTemplate, $r as button, $t as css, A as unrollPage, Ai as themeToggle, An as getUtility, Ar as onKey, At as d, B as blankSpace, Bi as activeOn, Bn as cycleState, Br as resetForm, Bt as grid, C as pageTexts, Ca as o, Ci as richText, Cn as flagGateOf, Cr as declaredTrigger, Ct as unusedDeclarations, D as pageRegions, Da as r$2, Di as tabContainerHeader, Dn as taskAction, Dr as onFlowError, Dt as pageFamily, E as diffPictures, Ea as n$1, Ei as tabContainerBody, En as defineAction, Er as onFlowEnd, Et as familyOf, F as readDevTools, Fi as defineElement, Fn as authLogout, Fr as onSubmit, Ft as t$1, G as space$1, Gi as hasVisibilityBinding, Gn as navigate, Gr as toggleElement, Gt as isClassModifier, H as catalogTemplateFiles, Hi as authorBinding, Hn as hostAction, Hr as scrollIntoView, Ht as className, I as readDevToolsInPage, Ii as element, In as authRefreshDetails, Ir as openDialog, It as tokens, J as importSlug, Ji as toBindingSpecs, Jn as runServerActionOrNotify, Jr as withPluginCatalogs, Jt as modifierClassName, K as space, Ki as hiddenWhen, Kn as removeState, Kr as updateElement, Kt as isClassRef, L as dataIssues, Li as inferredLinkMode, Ln as cancelServerAction, Lr as openModal, Lt as createTw, M as inspectPage, Mi as component, Mn as addNotification, Mr as onPageLoad, Mt as FIXABLE_CODES, N as onScreen, Ni as defaultAttributes, Nn as appendState, Nr as onPointerDown, Nt as n, O as profilePictures, Oa as s$1, Oi as tabContainerItem, On as BUILTIN_UTILITIES, Or as onFlowProgress, Ot as notificationsCss, P as failedFlowText, Pi as defaultLabel, Pn as authLogin, Pr as onScroll, Pt as r, Q as EXPLAIN_KINDS, Qi as actionSource, Qn as toggleState, Qr as blockJsx, Qt as STYLE_STATES, R as answerAction, Ri as COMPONENT_SOURCES, Rn as clearState, Rr as publishOn, Rt as tw, S as compareTexts, Sa as i$1, Si as reference, Sn as selectorFor, Sr as declaredCallback, St as suggestClassOverrides, T as comparePictures, Ta as c, Ti as tabContainer, Tn as authoringCodesTable, Tr as onClick, Tt as refusalOf, U as emptyTemplateFiles, Ui as bindTemplate, Un as invalidateQueries, Ur as scrollTo, Ut as classNames, V as blankTemplateFiles, Vi as activeWhen, Vn as delay, Vr as scrollBy, Vt as row, W as toPortableSource, Wi as groupBindings, Wn as moveState, Wr as setFieldValue, Wt as classRefs, X as importProbe, Xi as visibleWhen, Xn as stepState, Xr as apiContainer, Xt as styles, Y as importedFiles, Yi as variantFrom, Yn as setState, Yt as splitClassList, Z as BUILDER_NAMES, Zi as withVisibility, Zn as toggleInState, Zr as blockHtml, Zt as BREAKPOINTS, _ as shortcutKey, _a as elementTypeNames, _i as markdown, _n as slugify, _r as carouselPause, _t as assertSnippetValid, a as locateClasses, aa as authoringCodeEntry, ai as dialogContainer, an as expandShorthand, ar as when, at as SPACE_FIELDS, b as summariseRenders, ba as elementAttributeNames, bi as pagination, bn as locate, br as closeDialog, bt as suggestSpace, c as validateSnippet, ca as elementAttributeValues, ci as embed, cn as shorthandLonghands, cr as whileRunning, ct as specFromSpace, d as i$2, da as elementDefaultAttributes, di as formControl, dn as cssPropertyName, dr as getGlobalCallback, dt as actionToSource, ea as twig, ei as carousel, en as isRuleSetSpec, er as webHook, et as explain, f as o$1, fa as elementLeafTypes, fi as heading, fn as isCssProperty, fr as e, ft as withNamedIds, g as pressShortcut, ga as elementTriggers, gi as listItem, gn as digest, gr as carouselNext, gt as transformerCatalog, h as withElement, ha as elementSourceTypes, hi as list, hr as carouselGoTo, ht as suggestTransformer, i as lintSpace, ia as AuthoringError, ii as custom, in as cssShorthands, ir as named, it as ELEMENT_FIELDS, j as inspectDocument, ji as video, jn as SET_STATE_TYPES, jr as onLoad, jt as i, k as loadImages, ka as t, ki as text, kn as applyUtility, kr as onInterval, kt as withNotificationsCss, l as validateSpace, la as elementCallbacks, li as fontAwesome, ln as cssNumberValue, lr as BUILTIN_GLOBAL_CALLBACKS, lt as compareSpaces, m as singlePageSpace, ma as elementSlots, mi as link, mn as suggestCssProperty, mr as cancelApi, mt as getTransformer, n as authorSpace, na as scope, ni as channel, nn as toBlocks, nr as authorFlows, nt as explainList, o as locateElements, oa as isSuggestionCode, oi as dropdown, on as expandShorthandPatch, or as whenFailed, ot as specToSource, p as compactSvg, pa as elementPartTypes, pi as image, pn as isCustomProperty, pr as announceOn, pt as BUILTIN_TRANSFORMERS, q as darkScheme, qi as resolveSource, qn as runServerAction, qr as elementsFromManifest, qt as isStyleDeclaration, r as fixSpace, ra as AUTHORING_CODES, ri as container, rn as toResponsive, rr as flowStepIds, rt as explanationText, s as planFixes, sa as elementAncestorTypes, si as dropdownPopup, sn as expandShorthandTraced, sr as whenSucceeded, st as SCHEMA_SETTINGS, t as authorSnippet, ta as closest, ti as carouselTrack, tn as sameBlocks, tr as authorFlow, tt as explainKindOf, u as a$2, ua as elementCatalog, ui as form, un as cssProperties, ur as applyBuiltinCallback, ut as actionSpecFromEntry, v as openPage, va as typeCallbackDefinitions, vi as modalContainer, vn as buildHandles, vr as carouselPlay, vt as PAGE_SPEC_FIELDS, w as alignPictures, wa as s, wi as svg, wn as flagSpecOf, wr as on, wt as SpaceRefusedError, x as PAGE_TEXT_LIMIT, xa as a, xi as paragraph, xn as pathForSlug, xr as closeModal, xt as withoutQuieted, y as inspectRenders, ya as typeTriggerDefinitions, yi as nodeHtml, yn as instanceSelectorFor, yr as carouselPrevious, yt as assertSpaceValid, z as CATALOG_TEMPLATE_IDENTITY, zi as GLOBAL_SOURCES, zn as copyToClipboard, zr as reloadApi, zt as column } from "./index-src.js";
2
- import { n as e$1, r as r$1, t as a$1 } from "./index-declare.js";
3
- 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, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, dropdown, dropdownPopup, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$1 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$2 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, runServerActionOrNotify, 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, taskAction, text, themeToggle, toBindingSpecs, toBlocks, i$2 as toBuilderParams, a$2 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 EXPLAIN_KINDS, $i as hiddenWhen, $n as toggleState, $r as withPluginCatalogs, $t as STYLE_STATES, A as unrollPage, Aa as a, Ai as svg, An as applyUtility, Ar as onClick, At as withNotificationsCss, B as CATALOG_TEMPLATE_IDENTITY, Bi as defaultLabel, Bn as copyToClipboard, Br as onSubmit, Bt as column, C as pageTexts, Ca as elementTriggers, Ci as modalContainer, Cn as selectorFor, Cr as carouselPlay, Ct as suggestClassOverrides, D as pageRegions, Da as n$2, Di as plitziSdk, Dn as defineAction, Dr as declaredCallback, Dt as familyOf, E as diffPictures, Ea as typeTriggerDefinitions, Ei as paragraph, En as authoringCodesTable, Er as closeModal, Et as refusalOf, F as failedFlowText, Fa as n$1, Fi as text, Fn as authLogin, Fr as onKey, Ft as r, G as toPortableSource, Gi as GLOBAL_SOURCES, Gn as moveState, Gr as resetForm, Gt as classRefs, H as blankTemplateFiles, Hi as element, Hn as delay, Hr as openModal, Ht as row, I as readDevTools, Ia as r$3, Ii as themeToggle, In as authLogout, Ir as onLoad, It as t$2, J as darkScheme, Ji as authorBinding, Jn as runServerAction, Jr as scrollTo, Jt as isStyleDeclaration, K as space$1, Ki as activeOn, Kn as navigate, Kr as scrollBy, Kt as isClassModifier, L as readDevToolsInPage, La as s$1, Li as video, Ln as authRefreshDetails, Lr as onPageLoad, Lt as tokens, M as inspectPage, Ma as o, Mi as tabContainerBody, Mn as SET_STATE_TYPES, Mr as onFlowError, Mt as i, N as onScreen, Na as s, Ni as tabContainerHeader, Nn as addNotification, Nr as onFlowProgress, Nt as FIXABLE_CODES, O as profilePictures, Oa as t$1, Oi as reference, On as taskAction, Or as declaredTrigger, Ot as pageFamily, P as onScreenIfChosen, Pa as c, Pi as tabContainerItem, Pn as appendState, Pr as onInterval, Pt as n, Q as BUILDER_NAMES, Qi as hasVisibilityBinding, Qn as toggleInState, Qr as elementsFromManifest, Qt as BREAKPOINTS, R as dataIssues, Ra as t, Ri as component, Rn as cancelServerAction, Rr as onPointerDown, Rt as createTw, S as compareTexts, Sa as elementSourceTypes, Si as markdown, Sn as pathForSlug, Sr as carouselPause, St as withoutQuieted, T as comparePictures, Ta as typeCallbackDefinitions, Ti as pagination, Tn as flagSpecOf, Tr as closeDialog, Tt as SpaceRefusedError, U as catalogTemplateFiles, Ui as inferredLinkMode, Un as hostAction, Ur as publishOn, Ut as className, V as blankSpace, Vi as defineElement, Vn as cycleState, Vr as openDialog, Vt as grid, W as emptyTemplateFiles, Wi as COMPONENT_SOURCES, Wn as invalidateQueries, Wr as reloadApi, Wt as classNames, X as importedFiles, Xi as boundAttribute, Xn as setState, Xr as toggleElement, Xt as splitClassList, Y as importSlug, Yi as bindTemplate, Yn as runServerActionOrNotify, Yr as setFieldValue, Yt as modifierClassName, Z as importProbe, Zi as groupBindings, Zn as stepState, Zr as updateElement, Zt as styles, _ as shortcutKey, _a as elementCatalog, _i as heading, _n as digest, _r as t$3, _t as transformerCatalog, a as locateClasses, aa as actionSource, ai as carousel, an as cssShorthands, ar as named, at as ELEMENT_FIELDS, b as summariseRenders, ba as elementPartTypes, bi as list, bn as instanceSelectorFor, br as carouselGoTo, bt as assertSpaceValid, c as validateSnippet, ca as closest, ci as container, cn as expandShorthandTraced, cr as whenSucceeded, ct as SCHEMA_SETTINGS, d as i$3, da as AuthoringError, di as dropdown, dn as cssProperties, dr as applyBuiltinCallback, dt as actionSpecFromEntry, ea as resolveSource, en as css, er as twigTemplate, et as GLOBAL_CALLBACK_BUILDERS, f as o$1, fa as authoringCodeEntry, fi as dropdownPopup, fn as cssPropertyName, fr as getGlobalCallback, ft as actionToSource, g as pressShortcut, ga as elementCallbacks, gi as formControl, gr as r$1, gt as suggestTransformer, h as withElement, ha as elementAttributeValues, hi as form, hn as suggestCssProperty, hr as n$3, ht as getTransformer, i as lintSpace, ia as withVisibility, ii as button, in as toResponsive, ir as flowStepIds, it as explanationText, j as inspectDocument, ja as i$1, ji as tabContainer, jn as getUtility, jr as onFlowEnd, jt as d, k as loadImages, ka as elementAttributeNames, ki as richText, kn as BUILTIN_UTILITIES, kr as on, kt as notificationsCss, l as validateSpace, la as scope, li as custom, ln as shorthandLonghands, lr as whileRunning, lt as specFromSpace, m as singlePageSpace, ma as elementAncestorTypes, mi as fontAwesome, mn as isCustomProperty, mr as i$2, mt as BUILTIN_TRANSFORMERS, n as authorSpace, na as variantFrom, ni as blockHtml, nn as sameBlocks, nr as authorFlow, nt as explainKindOf, o as locateElements, oa as source, oi as carouselTrack, on as expandShorthand, or as when, ot as SPACE_FIELDS, p as compactSvg, pa as isSuggestionCode, pi as embed, pn as isCssProperty, pr as e, pt as withNamedIds, q as space, qi as activeWhen, qn as removeState, qr as scrollIntoView, qt as isClassRef, r as fixSpace, ra as visibleWhen, ri as blockJsx, rn as toBlocks, rr as authorFlows, rt as explainList, s as planFixes, sa as twig, si as channel, sn as expandShorthandPatch, sr as whenFailed, st as specToSource, t as authorSnippet, ta as toBindingSpecs, ti as apiContainer, tn as isRuleSetSpec, tr as webHook, tt as explain, u as a$2, ua as AUTHORING_CODES, ui as dialogContainer, un as cssNumberValue, ur as BUILTIN_GLOBAL_CALLBACKS, ut as compareSpaces, v as openPage, va as elementDefaultAttributes, vi as image, vn as slugify, vr as announceOn, vt as assertSnippetValid, w as alignPictures, wa as elementTypeNames, wi as nodeHtml, wn as flagGateOf, wr as carouselPrevious, wt as unusedDeclarations, x as PAGE_TEXT_LIMIT, xa as elementSlots, xi as listItem, xn as locate, xr as carouselNext, xt as suggestSpace, y as inspectRenders, ya as elementLeafTypes, yi as link, yn as buildHandles, yr as cancelApi, yt as PAGE_SPEC_FIELDS, z as answerAction, zi as defaultAttributes, zn as clearState, zr as onScroll, zt as tw } from "./index-src.js";
2
+ import { n as e$1, r as r$2, t as a$1 } from "./index-declare.js";
3
+ 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, t$1 as DOCUMENT_SCROLLS, ELEMENT_FIELDS, EXPLAIN_KINDS, FIXABLE_CODES, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, t$2 as MOTION_ENTERS, r as MOTION_LOOPS, n as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$3 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, 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, boundAttribute, 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, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, dropdown, dropdownPopup, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$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, n$2 as isDocumentScroll, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, markdown, r$3 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navigate, nodeHtml, notificationsCss, on, onClick, onFlowEnd, onFlowError, onFlowProgress, onInterval, onKey, onLoad, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, openDialog, openModal, openPage, pageFamily, pageRegions, pageTexts, pagination, paragraph, pathForSlug, planFixes, plitziSdk, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, c as reconcileParams, reference, refusalOf, reloadApi, removeState, resetForm, resolveSource, richText, row, runServerAction, runServerActionOrNotify, sameBlocks, scope, scrollBy, scrollIntoView, scrollTo, selectorFor, setFieldValue, setState, shortcutKey, shorthandLonghands, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, taskAction, text, themeToggle, toBindingSpecs, toBlocks, i$3 as toBuilderParams, a$2 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 };