@plitzi/sdk-authoring 0.39.3 → 0.39.6

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/index-src.js +1776 -1145
  3. package/dist/index.d.ts +139 -15
  4. package/dist/index.js +2 -2
  5. package/dist/node.d.ts +81 -6
  6. package/dist/node.js +1 -1
  7. package/dist/plugin.d.ts +2 -2
  8. package/package.json +9 -9
  9. package/skills/plitzi-authoring/recipes/accordion.ts +3 -1
  10. package/skills/plitzi-authoring/recipes/carousel.ts +68 -63
  11. package/skills/plitzi-authoring/recipes/detail-page.ts +43 -33
  12. package/skills/plitzi-authoring/recipes/embed-and-svg.ts +16 -11
  13. package/skills/plitzi-authoring/recipes/every-few-seconds.ts +52 -42
  14. package/skills/plitzi-authoring/recipes/feature-flag.ts +7 -2
  15. package/skills/plitzi-authoring/recipes/filter-a-list.ts +39 -31
  16. package/skills/plitzi-authoring/recipes/forms-and-modals.ts +34 -28
  17. package/skills/plitzi-authoring/recipes/from-tailwind.ts +11 -6
  18. package/skills/plitzi-authoring/recipes/link-to-a-section.ts +11 -6
  19. package/skills/plitzi-authoring/recipes/link-with-data.ts +21 -16
  20. package/skills/plitzi-authoring/recipes/marquee.ts +17 -12
  21. package/skills/plitzi-authoring/recipes/plugin.ts +16 -10
  22. package/skills/plitzi-authoring/recipes/scroll-a-row.ts +30 -25
  23. package/skills/plitzi-authoring/recipes/server-data.ts +15 -10
  24. package/skills/plitzi-authoring/recipes/show-data.ts +32 -24
  25. package/skills/plitzi-authoring/recipes/style-a-page.ts +9 -4
  26. package/skills/plitzi-authoring/recipes/typed-data.ts +26 -21
  27. package/skills/plitzi-authoring/recipes/usable-without-sight.ts +16 -11
  28. package/skills/plitzi-authoring/reference/authoring-errors.md +11 -4
  29. package/skills/plitzi-authoring/reference/efficiency.md +3 -1
  30. package/skills/plitzi-authoring/reference/layouts.md +2 -1
package/dist/index.d.ts CHANGED
@@ -380,6 +380,11 @@ export declare const addNotification: (params: {
380
380
  autoDismissTimeout?: number;
381
381
  }) => StepSpec;
382
382
 
383
+ /** The kinds, in the order a setting lists them: a tuple, so a schema validator can take it as its values. */
384
+ declare const AI_CRAWLER_KINDS: readonly ["training", "assistants", "search"];
385
+
386
+ declare type AiCrawlerKind = (typeof AI_CRAWLER_KINDS)[number];
387
+
383
388
  /**
384
389
  * Where each region of one picture sits in the other, from their row profiles — so two pages of different heights are
385
390
  * compared section by section, not row for row: one section 400 px taller pushes everything under it down, and compared
@@ -781,11 +786,41 @@ export declare const AUTHORING_CODES: {
781
786
  readonly means: "an `h4` right after an `h2` on a page as it is drawn — inside its layouts, with the headings a `markdown` writes, and without those that start hidden (`visible: false`): the outline misses a level (Lighthouse: \"not in a sequentially-descending order\")";
782
787
  readonly fix: "the next level down; size it with its class";
783
788
  };
789
+ readonly 'page-without-main': {
790
+ readonly kind: "suggested";
791
+ readonly means: "a page that draws no `main` landmark — neither it nor its layouts: a screen reader skipping to the content and a browser agent find no place where the page's own content starts (Lighthouse: \"Document does not have a main landmark\")";
792
+ readonly fix: "the container holding the page's content drawn as `main` (`container({ subType: 'main', children })`) — in the layout's slot when its pages share the shell — once a page";
793
+ };
784
794
  readonly 'repeated-on-pages': {
785
795
  readonly kind: "suggested";
786
796
  readonly means: "the same block — a header, a footer, a side panel — written into several pages";
787
797
  readonly fix: "a layout holding it once (`layouts`, and `layout: { id, slot }` on each page) — a component when only some pages of a layout carry it, written in its area’s folder and listed in the space’s `components`; a link marks its own page with the `current` state";
788
798
  };
799
+ readonly 'heavy-page': {
800
+ readonly kind: "suggested";
801
+ readonly means: "one page whose part of the document passes 250 KB — every visitor downloads it before the page is theirs — with the shapes written again most inside it, by what they weigh";
802
+ readonly fix: "the rows of data as one `list` of a component, read from the data (`list({ items, row })`), and a block written per state as one element whose state picks its content: the document then holds one copy — or, for an app's page heavy for how many elements it has, `quiet: ['heavy-page']` on the page, with why";
803
+ };
804
+ readonly 'desktop-only': {
805
+ readonly kind: "suggested";
806
+ readonly means: "a page, layout or component styled for the desktop alone where a phone (390 px) breaks — a width past 480 px with no `max-width` holding it; a grid whose fixed columns and gaps are wider than a phone, or three or more columns sharing its width a page’s parts apart (a gap of 16 px or more) and left narrower than 120 px each; type past 64 px — that no `mobile` rule of the classes on it sets again (a style’s `mobile` is laid over its `desktop` alone, so a `tablet` rule does not reach a phone). What a `mobile` rule hides is left out, as is a grid it lays out otherwise (`display: flex`), a width inside a box that clips or scrolls it sideways (`overflow-x: auto` round a table), a layout fluid on its own — wrapping flex, `%`, `min()`, `clamp()`, `repeat(auto-fit, minmax(…))` —, a row whose one column grows (`48px 1fr auto`), a dense widget’s many thin columns, and a space written mobile first";
807
+ readonly fix: "the phone's value in the class's `mobile` rules (`styles('card', { css: { desktop: { … }, mobile: { gridTemplateColumns: '1fr' } } })`), or a value fluid on its own — `width: 'min(960px, 100%)'`, `font-size: 'clamp(32px, 6vw, 72px)'`, `grid-template-columns: 'repeat(auto-fit, minmax(240px, 1fr))'` — or, for a surface only a desktop opens, `quiet: ['desktop-only']` on it, with why";
808
+ };
809
+ readonly 'heavy-layout': {
810
+ readonly kind: "suggested";
811
+ readonly means: "one layout whose own part of the document passes 250 KB — every page drawn in it is downloaded with it, the first a visitor opens at least — with how many pages carry it and what 10,000 first visits move for it";
812
+ readonly fix: "what only some of its pages show moved into those pages, or into a component they place; rows of data as one `list` of a component (`list({ items, row })`) — or, for a shell heavy on purpose, `quiet: ['heavy-layout']` on the layout, with why";
813
+ };
814
+ readonly 'many-elements': {
815
+ readonly kind: "suggested";
816
+ readonly means: "a page that builds more than 1,500 elements as it opens — its own, its layouts’ and its components’ once per instance, not those that start hidden with `loadStrategy` `lazy` or `visible` — with what a visit downloads for them: a phone builds, styles and lays out each before the page answers (Lighthouse flags a page past about 1,400)";
817
+ readonly fix: "`loadStrategy: 'lazy'` on what starts hidden until something shows it (`visible: false`) — a tab, a panel, a dialog — so it is built the first time it is shown (one a condition shows may be on screen at once, and is not named); rows of data as one `list`; a part few visitors reach as a page of its own — or, for an app's page rich on purpose, `quiet: ['many-elements']` on the page, with why";
818
+ };
819
+ readonly 'repeated-expression': {
820
+ readonly kind: "suggested";
821
+ readonly means: "the same long expression — its numbers and words aside — written into many bindings, steps or attributes: a sum or a choice worked out again in every copy, and carried by the document once per copy";
822
+ readonly fix: "what the copies share as a computed value (`computed: { chosen: '{{ … }}' }`, read as `computed.chosen`), answering `null` off the page that reads it (`navigation.currentPageId`), each copy keeping what differs; copies side by side as one `list` whose rows carry what differs (`list({ items, row })`)";
823
+ };
789
824
  readonly 'repeated-shape': {
790
825
  readonly kind: "suggested";
791
826
  readonly means: "the same structure written again and again with different words — cards, rows, tiles. Copies that read their data in a form of their own (their template) or render on the server are no repeats, and neither are copies side by side wired to different sources or state keys — controls written alike; copies apart that read different sources are one component, each instance handed its own";
@@ -850,6 +885,7 @@ export declare const AUTHORING_CODES: {
850
885
  readonly kind: "suggested";
851
886
  readonly means: "a space with no page of its own for an address no other page answers — a plain one was added, in the home page’s layout, sent with status 404";
852
887
  readonly fix: "a page whose slug is `'*'`: `{ id: 'not-found', name: 'Not found', slug: '*', layout: …, body: [...] }`";
888
+ readonly authoringOnly: "that the page was added: written, it is a page like any other";
853
889
  };
854
890
  readonly 'unused-plugin': {
855
891
  readonly kind: "suggested";
@@ -865,6 +901,7 @@ export declare const AUTHORING_CODES: {
865
901
  readonly kind: "suggested";
866
902
  readonly means: "one class's shorthand erasing the longhand another class on the same element writes out — `padding` over `padding-top` — or the same property set over the class listed after it — `gap` over `gap` — because the stylesheet writes it later: classes in the order they are first met, a breakpoint's rules after the base, never the order of a class list";
867
903
  readonly fix: "the longhands the shorthand means instead of it (`padding-left`, `padding-right`), so it leaves the other class's alone; the same property, left to one of the two or written on the element itself — or `quiet: ['class-overrides-class']` when the winner is meant to win";
904
+ readonly authoringOnly: "the shorthand a rule was written with — the stylesheet holds the longhands it stands for";
868
905
  };
869
906
  readonly 'test-unreadable': {
870
907
  readonly kind: "warned";
@@ -1330,6 +1367,7 @@ export declare const AUTHORING_CODES: {
1330
1367
  readonly kind: "warned";
1331
1368
  readonly means: "a plugin attribute named as one of the element’s own fields — a factory never hands it to the plugin";
1332
1369
  readonly fix: "rename it in the plugin, as the warning names it (`variant` → `kind`, `from` → `start`)";
1370
+ readonly authoringOnly: "the plugin's own declaration, which authoring is handed and a space's documents do not hold";
1333
1371
  };
1334
1372
  readonly 'unknown-variant': {
1335
1373
  readonly kind: "warned";
@@ -1668,7 +1706,7 @@ export declare const AUTHORING_CODES: {
1668
1706
  };
1669
1707
  readonly 'tablet-rule-skips-mobile': {
1670
1708
  readonly kind: "warned";
1671
- readonly means: "a tablet rule phones never get — mobile inherits desktop, not tablet";
1709
+ readonly means: "a tablet rule phones never get — mobile inherits desktop, not tablet (a grid’s columns are left alone where the phone is not a grid)";
1672
1710
  readonly fix: "write it under `compact` (tablet and mobile together)";
1673
1711
  };
1674
1712
  readonly 'tw-unknown-class': {
@@ -1851,6 +1889,11 @@ export declare const AUTHORING_CODES: {
1851
1889
  readonly means: "the page of every address no other answers (`slug: '*'`) marked the home";
1852
1890
  readonly fix: "`isDefault` on the page at `''`, or left out: the page at `''` is the home";
1853
1891
  };
1892
+ readonly 'not-found-twice': {
1893
+ readonly kind: "refused";
1894
+ readonly means: "two pages answering every address nothing else does (`slug: '*'`) in the same place — the space, or one folder: the router would pick one, and an address land on whichever it picked";
1895
+ readonly fix: "one per place: the other given a slug of its own, or moved to the folder whose addresses it answers (a folder's answers its own, the space's the rest)";
1896
+ };
1854
1897
  readonly 'page-route-reserved': {
1855
1898
  readonly kind: "refused";
1856
1899
  readonly means: "a page under `/fn`, where the space's functions answer";
@@ -2038,6 +2081,13 @@ export declare const AUTHORING_CODES: {
2038
2081
  };
2039
2082
  };
2040
2083
 
2084
+ /**
2085
+ * The codes only `authorSpace` can say, each with why (`authoringOnly`): every other code is said of the documents
2086
+ * alone — by `validateSpace` and `suggestSpace` — so the builder and the MCP, which read nothing else, say what
2087
+ * authoring says. A test holds every seed to it.
2088
+ */
2089
+ export declare const AUTHORING_ONLY_CODES: ReadonlySet<string>;
2090
+
2041
2091
  export declare type AuthoringCode = keyof Codes;
2042
2092
 
2043
2093
  export declare type AuthoringCodeEntry = {
@@ -2050,6 +2100,11 @@ export declare type AuthoringCodeEntry = {
2050
2100
  means: string;
2051
2101
  /** What to write instead. */
2052
2102
  fix: string;
2103
+ /**
2104
+ * Why only `authorSpace` can say it — what it reads that the documents do not hold. Every other code is said of the
2105
+ * documents alone, so the builder and the MCP, which read nothing else, say what authoring says.
2106
+ */
2107
+ authoringOnly?: string;
2053
2108
  };
2054
2109
 
2055
2110
  /**
@@ -2270,6 +2325,15 @@ export declare interface AuthorSpaceOptions {
2270
2325
 
2271
2326
  export declare const authRefreshDetails: () => StepSpec;
2272
2327
 
2328
+ /**
2329
+ * What a field holds, as a browser and a password manager read `autocomplete` (WHATWG autofill tokens) — the ones a
2330
+ * sign-in, a sign-up and a contact form use. A password field said `off` for every space, so no password manager
2331
+ * filled a sign-in or offered to save a new password.
2332
+ */
2333
+ declare const AUTOFILL_FIELDS: readonly ["username", "current-password", "new-password", "one-time-code", "email", "name", "given-name", "family-name", "organization", "tel", "street-address", "postal-code", "country", "url"];
2334
+
2335
+ declare type AutofillField = (typeof AUTOFILL_FIELDS)[number];
2336
+
2273
2337
  /**
2274
2338
  * Waits for the space on the page to take its markup over (`data-hydrated`, put on its root by the SDK) — or says it did
2275
2339
  * not: a press before then does nothing, and what is read is the server's HTML. A page with no space has nothing to
@@ -3948,7 +4012,7 @@ export declare const elementAttributeNames: {
3948
4012
  readonly tabContainer: readonly [];
3949
4013
  readonly tabContainerBody: readonly [];
3950
4014
  readonly tabContainerHeader: readonly [];
3951
- readonly tabContainerItem: readonly [];
4015
+ readonly tabContainerItem: readonly ["hash"];
3952
4016
  readonly text: readonly ["content", "decorative", "title"];
3953
4017
  readonly themeToggle: readonly ["darkLabel", "lightLabel", "showSystem", "subType", "systemLabel"];
3954
4018
  readonly video: readonly ["autoPlay", "loop", "muted", "playsInline", "src"];
@@ -4383,7 +4447,7 @@ declare const elementDeclarations: {
4383
4447
  readonly type: "blockJsx";
4384
4448
  readonly content: {
4385
4449
  readonly attributes: {
4386
- readonly content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n const handleClick = useCallback(() => {\n alert(\"Hello World\");\n }, []);\n\n return (\n <div style={{ display: \"flex\", gap: \"4px\" }}>\n <JsxManager\n as=\"Heading\"\n internalProps={internalProps}\n content={`${content} ${content2}`}\n />\n <button onClick={handleClick} style={{ border: \"1px gray solid\", cursor: \"pointer\" }}>\n Click Me\n </button>\n </div>\n );\n};\n\nexport default BlockJsx;";
4450
+ readonly content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n const handleClick = useCallback(() => {\n alert(\"Hello World\");\n }, []);\n\n return (\n <div style={{ display: \"flex\", gap: \"4px\" }}>\n <JsxManager\n as=\"Heading\"\n internalProps={internalProps}\n content={`${content} ${content2}`}\n />\n <button onClick={handleClick} style={{ border: \"1px gray solid\", cursor: \"pointer\" }}>\n Click Me\n </button>\n </div>\n );\n};\n\nexport default BlockJsx;";
4387
4451
  readonly props: "{\"content\": \"Hello\", \"content2\": \"World\"}";
4388
4452
  readonly contentCache: "aW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gInJlYWN0IjsKaW1wb3J0IHsgSnN4TWFuYWdlciB9IGZyb20gIkBwbGl0emkvcGxpdHppLXNkayI7CnZhciBCbG9ja0pzeCA9IGZ1bmN0aW9uIEJsb2NrSnN4KF9yZWYpIHsKICB2YXIgaW50ZXJuYWxQcm9wcyA9IF9yZWYuaW50ZXJuYWxQcm9wcywKICAgIGNvbnRlbnQgPSBfcmVmLmNvbnRlbnQsCiAgICBjb250ZW50MiA9IF9yZWYuY29udGVudDI7CiAgdmFyIGhhbmRsZUNsaWNrID0gdXNlQ2FsbGJhY2soZnVuY3Rpb24gKCkgewogICAgYWxlcnQoIkhlbGxvIFdvcmxkIik7CiAgfSwgW10pOwogIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudCgiZGl2IiwgewogICAgc3R5bGU6IHsKICAgICAgZGlzcGxheTogImZsZXgiLAogICAgICBnYXA6ICI0cHgiCiAgICB9CiAgfSwgLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoSnN4TWFuYWdlciwgewogICAgYXM6ICJIZWFkaW5nIiwKICAgIGludGVybmFsUHJvcHM6IGludGVybmFsUHJvcHMsCiAgICBjb250ZW50OiAiIi5jb25jYXQoY29udGVudCwgIiAiKS5jb25jYXQoY29udGVudDIpCiAgfSksIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KCJidXR0b24iLCB7CiAgICBvbkNsaWNrOiBoYW5kbGVDbGljaywKICAgIHN0eWxlOiB7CiAgICAgIGJvcmRlcjogIjFweCBncmF5IHNvbGlkIiwKICAgICAgY3Vyc29yOiAncG9pbnRlcicKICAgIH0KICB9LCAiQ2xpY2sgTWUiKSk7Cn07CmV4cG9ydCBkZWZhdWx0IEJsb2NrSnN4Ow==";
4389
4453
  readonly allowEmptyRender: false;
@@ -5537,6 +5601,7 @@ declare const elementDeclarations: {
5537
5601
  readonly contentAttributes: readonly ["label", "placeholder", "options", "requiredMessage", "minLengthMessage", "maxLengthMessage", "minMessage", "maxMessage", "formatMessage", "patternMessage", "matchesMessage"];
5538
5602
  readonly attributeValues: {
5539
5603
  readonly subType: readonly ["text", "number", "email", "password", "search", "url", "tel", "date", "time", "checkbox", "switch", "select", "textarea", "hidden", "color", "file"];
5604
+ readonly autoComplete: readonly ["username", "current-password", "new-password", "one-time-code", "email", "name", "given-name", "family-name", "organization", "tel", "street-address", "postal-code", "country", "url"];
5540
5605
  };
5541
5606
  readonly triggers: {
5542
5607
  readonly onChange: {
@@ -7883,7 +7948,9 @@ declare const elementDeclarations: {
7883
7948
  readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
7884
7949
  };
7885
7950
  readonly content: {
7886
- readonly attributes: {};
7951
+ readonly attributes: {
7952
+ readonly hash: "";
7953
+ };
7887
7954
  readonly definition: {
7888
7955
  readonly label: "Tab Container Item";
7889
7956
  readonly description: "One selectable tab (trigger + panel) inside a tabContainer.";
@@ -7905,7 +7972,9 @@ declare const elementDeclarations: {
7905
7972
  readonly subTypes: {};
7906
7973
  };
7907
7974
  };
7908
- }, unknown>;
7975
+ }, Partial<{
7976
+ hash?: string | undefined;
7977
+ }>>;
7909
7978
  readonly Text: DeclaredElement< {
7910
7979
  readonly type: "text";
7911
7980
  readonly contentAttributes: readonly ["content"];
@@ -8947,7 +9016,12 @@ declare type FormControlProps = {
8947
9016
  placeholder: string;
8948
9017
  /** A `file` field's offer, as the browser reads `accept`: `image/png,image/jpeg`, `.pdf`. `''` for any file. */
8949
9018
  accept: string;
8950
- autoComplete: boolean;
9019
+ /**
9020
+ * What the browser may fill in: `true` lets it decide (on a password field, the account's current password), `false`
9021
+ * asks it not to, and a token names what the field holds — `username`, `new-password`, `one-time-code`, `email`…
9022
+ * (`AUTOFILL_FIELDS`), which is what a password manager reads to fill a sign-in and to save a new password.
9023
+ */
9024
+ autoComplete: boolean | AutofillField;
8951
9025
  /**
8952
9026
  * Takes the focus as it appears — a search box opened by a shortcut is typed into at once. With the control's
8953
9027
  * container shown only while wanted (`loadStrategy: 'visible'`), it appears each time it is opened.
@@ -10847,6 +10921,12 @@ export declare interface PageSpec {
10847
10921
  flag?: string;
10848
10922
  /** How the space's navigation lists it: see {@link PageNav}. */
10849
10923
  nav?: PageNav;
10924
+ /**
10925
+ * Suggestions this page is not offered, because it is written this way on purpose — `quiet: ['heavy-page']` on an
10926
+ * app's page that is heavy for how many elements it has, not for a shape written again. Only suggestions: a problem
10927
+ * is never quieted. Say why beside it.
10928
+ */
10929
+ quiet?: SuggestionCode[];
10850
10930
  body: ElementSpec[];
10851
10931
  }
10852
10932
 
@@ -11344,6 +11424,13 @@ export declare type PluginTriggerSpec = {
11344
11424
  params?: InteractionCallback['params'];
11345
11425
  };
11346
11426
 
11427
+ /**
11428
+ * The element types a set of plugins adds, as the linter reads them: each one's own type, and the `custom` element that
11429
+ * hosts it (`custom:<type>`). What authoring hands the linter for the plugins it is given, and what any reader of a
11430
+ * space's stored documents hands it for the plugins installed there — the builder's — so both read the same.
11431
+ */
11432
+ export declare const pluginTypesOf: (types: readonly string[]) => string[];
11433
+
11347
11434
  /**
11348
11435
  * Why a press did not happen, out of Playwright's log: the element over it, still moving, hidden or disabled — never its
11349
11436
  * first line alone ("locator.click: Timeout 3000ms exceeded", which a run's agents met a dozen times and could not act
@@ -11815,7 +11902,7 @@ export declare interface RuleSetSpec extends VariantSpec {
11815
11902
 
11816
11903
  /**
11817
11904
  * A condition as Plitzi stores it — a flag's rules, an interaction's `when`, a binding's condition: the schema's own
11818
- * format, so sdk-shared defines it (RFC 0032, D13). plitzi-ui's QueryBuilder edits the same shape with prop types of its
11905
+ * format, so sdk-shared defines it (docs/en/server-packages.md, D13). plitzi-ui's QueryBuilder edits the same shape with prop types of its
11819
11906
  * own, and a type test in the builder, where the two meet, holds them assignable both ways.
11820
11907
  */
11821
11908
  declare type RuleValue = Date | string | number | boolean | undefined | null | object;
@@ -11926,11 +12013,25 @@ export declare type Schema = {
11926
12013
  */
11927
12014
  robotsTxt?: string;
11928
12015
  /**
11929
- * Keeps the crawlers that gather pages to train AI models (`AI_CRAWLERS`: GPTBot, ClaudeBot, Google-Extended…) out of
11930
- * the whole site: `/robots.txt` says `Disallow: /` to each, after whatever `robotsTxt` says. Search engines keep
11931
- * reading it. Left out, nobody is kept out.
12016
+ * The site's `/.well-known/security.txt` (RFC 9116), as a researcher who found a flaw reads it: where to write
12017
+ * (`Contact:`), until when the text holds (`Expires:`), and anything else the RFC names. Left out, the address answers
12018
+ * 404 — a site that says nothing is not given words it did not write.
11932
12019
  */
11933
- blockAiCrawlers?: boolean;
12020
+ securityTxt?: string;
12021
+ /**
12022
+ * The space's `/llms.txt` (llmstxt.org), as an assistant reads it to find its way around: the site's name, what it
12023
+ * is, and a link to each page with what it is for. Left out, the server writes one from the pages the sitemap lists
12024
+ * — each page's SEO title and description. A space that keeps `assistants` out (`blockAiCrawlers`) answers 404:
12025
+ * an index for them would invite what the site refuses.
12026
+ */
12027
+ llmsTxt?: string;
12028
+ /**
12029
+ * The kinds of AI crawler kept out of the whole site, each its owner's to decide (`AI_CRAWLERS`): `training` (GPTBot,
12030
+ * ClaudeBot, Google-Extended…), `assistants` fetching a page for a person (ChatGPT-User, Claude-User…) and AI
12031
+ * `search` indexes (OAI-SearchBot, PerplexityBot…). `/robots.txt` says `Disallow: /` to each agent of each kind named,
12032
+ * after whatever `robotsTxt` says. Search engines keep reading it. Left out, nobody is kept out.
12033
+ */
12034
+ blockAiCrawlers?: AiCrawlerKind[];
11934
12035
  /**
11935
12036
  * A move from page to page drawn as one view becoming the next (the browser's view transitions): the pages cross-fade,
11936
12037
  * and an element named the same on both by CSS — `view-transition-name: fighter-portrait` — moves from where it was
@@ -11948,6 +12049,11 @@ export declare type Schema = {
11948
12049
  * yours" there, as on any page. Left out, the platform's few words. A page with an `access` of its own cannot be it.
11949
12050
  */
11950
12051
  withheldPage?: string;
12052
+ /**
12053
+ * Sends the whole space with every page instead of in parts — the page's own elements and its layouts', the rest
12054
+ * fetched as a link to it is followed. For a space whose pages read each other's elements at run time.
12055
+ */
12056
+ wholeDocument?: boolean;
11951
12057
  /** The language its pages are written in, as a language tag (`en`, `es-MX`): `<html lang>` and `og:locale`. */
11952
12058
  language?: string;
11953
12059
  /** The tab's icon: a file of the site (`/favicon.svg`) or an address (`https://…`). Left out, Plitzi's. */
@@ -12043,6 +12149,13 @@ export declare type Schema = {
12043
12149
  pages: Element_2['id'][];
12044
12150
  pageFolders: PageFolder[];
12045
12151
  components: Record<SpaceComponent['id'], SpaceComponent>;
12152
+ /**
12153
+ * Only in a document a page server sends in parts (`splitSchema`): the roots — pages and layouts — whose elements are
12154
+ * not in `flat` yet, each by the name of the part that holds them, fetched before a page that needs it is drawn; `''`
12155
+ * for one this visitor is not sent, which only the server can draw. Absent, the document is whole: the SDK alone, the
12156
+ * builder, the MCP and a static deploy never see it.
12157
+ */
12158
+ parts?: Record<string, string>;
12046
12159
  };
12047
12160
 
12048
12161
  /**
@@ -12545,7 +12658,7 @@ export declare type SpaceComponent = {
12545
12658
  flat: Record<Element_2['id'], Element_2>;
12546
12659
  };
12547
12660
 
12548
- export declare type SpaceCredentialProvider = 's3' | 'r2' | 'ssr' | 'custom' | 'smtp';
12661
+ export declare type SpaceCredentialProvider = 's3' | 'r2' | 'ssr' | 'custom' | 'smtp' | 'github' | 'cloudflare' | 'netlify' | 'vercel' | 'ftp';
12549
12662
 
12550
12663
  /**
12551
12664
  * Whether two pairs of space documents render the same space.
@@ -12890,6 +13003,9 @@ export declare const splitNotificationsCss: (customCss: string) => {
12890
13003
  customCss: string;
12891
13004
  };
12892
13005
 
13006
+ /** A step's params that name a path under `runtime.state`, by action. */
13007
+ export declare const STATE_PATH_PARAMS: Record<string, readonly string[]>;
13008
+
12893
13009
  /** Rules for the states a selector reacts to — `hover`, `focus`, `active` — each one plain or per breakpoint. */
12894
13010
  export declare type StatesSpec = Partial<Record<StyleState, CssSpec>>;
12895
13011
 
@@ -13505,8 +13621,12 @@ export declare const tabContainerHeader: {
13505
13621
  };
13506
13622
 
13507
13623
  export declare const tabContainerItem: {
13508
- (children: ElementSpec[], props?: AuthoringProps | undefined): ElementSpec;
13509
- (props?: AuthoringProps | undefined): ElementSpec;
13624
+ (children: ElementSpec[], props?: ElementProps<Partial<{
13625
+ hash?: string | undefined;
13626
+ }>> | undefined): ElementSpec;
13627
+ (props?: ElementProps<Partial<{
13628
+ hash?: string | undefined;
13629
+ }>> | undefined): ElementSpec;
13510
13630
  };
13511
13631
 
13512
13632
  export declare type TagType = 'class' | 'element' | 'id';
@@ -14250,7 +14370,11 @@ export declare const withNamedIds: (schema: Schema) => {
14250
14370
  /** The space's custom CSS with its notifications' rules after it; refuses a spec that is not sound. */
14251
14371
  export declare const withNotificationsCss: (customCss: string, spec: NotificationsSpec | undefined) => string;
14252
14372
 
14253
- /** The suggestions no element they are about quiets — for those read beside the documents, too (authoring's own). */
14373
+ /**
14374
+ * The suggestions no element they are about quiets — for those read beside the documents, too (authoring's own). Nor
14375
+ * the one element all of them sit in: copies side by side are said alike on purpose once, on the row that holds them
14376
+ * (`quiet` on a plan picker's options, not on each plan's card).
14377
+ */
14254
14378
  export declare const withoutQuieted: (schema: Schema, suggestions: Suggestion[]) => Suggestion[];
14255
14379
 
14256
14380
  /**
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as readDevToolsInPage, $a as embed, $i as onDialogClose, $n as isRuleSetSpec, $o as AUTHORING_CODES, $r as addNotification, $t as journeyStartWarnings, A as pressShortcut, Aa as scrollBy, Ai as whileRunning, An as pressFailure, Ao as element, As as t$2, At as actionToSource, B as alignPictures, Ba as apiContainer, Bi as carouselPrevious, Bn as row, Bo as hasVisibilityBinding, Br as locate, Bs as t, Bt as suggestClassOverrides, C as unquoted, Ca as onThemeChange, Ci as authorFlow, Cn as HYDRATION_MS, Co as themeToggle, Cs as t$1, Ct as searchWords, D as readSpaceTests, Da as publishOn, Di as when, Dn as hoverElement, Do as defaultAttributes, Ds as i$2, Dt as specFromSpace, E as e2eStepProblems, Ea as openModal, Ei as named, En as fieldsOf, Eo as declaresAttribute, Es as e, Et as specToSource, F as compareTexts, Fa as updateElement, Fi as cancelApi, Fn as tokens, Fo as activeWhen, Fs as s, Ft as transformerCatalog, G as loadImages, Ga as carouselTrack, Gi as focus, Gn as isClassRef, Go as variantFrom, Gr as authoringCodesTable, Gt as familyOf, H as diffPictures, Ha as blockJsx, Hi as closeModal, Hn as classNames, Ho as resolveSource, Hr as selectorFor, Hs as i$3, Ht as PAGE_SPEC_FIELDS, I as pageTexts, Ia as elementsFromManifest, Ii as carouselGoTo, In as createTw, Io as authorBinding, Ir as digest, Is as c$1, It as assertSnippetValid, J as inspectPage, Ja as container, Ji as onApiSuccess, Jn as splitClassList, Jo as actionSource, Jt as withNotificationsCss, K as unrollPage, Ka as channel, Ki as on, Kn as isStyleDeclaration, Ko as visibleWhen, Kr as defineAction, Kt as pageFamily, L as PAGE_DECORATION_LIMIT, La as withPluginCatalogs, Li as carouselNext, Ln as tw, Lo as bindTemplate, Lr as slugify, Ls as n$2, Lt as assertSpaceValid, M as inspectRenders, Ma as scrollTo, Mi as applyBuiltinCallback, Mn as settle, Mo as COMPONENT_SOURCES, Ms as c, Mt as BUILTIN_TRANSFORMERS, N as summariseRenders, Na as setFieldValue, Ni as getGlobalCallback, Nn as targetId, No as GLOBAL_SOURCES, Ns as i$1, Nt as getTransformer, O as singlePageSpace, Oa as reloadApi, Oi as whenFailed, On as locateField, Oo as defaultLabel, Os as n$3, Ot as compareSpaces, P as PAGE_TEXT_LIMIT, Pa as toggleElement, Pi as announceOn, Pn as targetOf, Po as activeOn, Ps as o, Pt as suggestTransformer, Q as readDevTools, Qa as dropdownPopup, Qi as onDialogAccept, Qn as css, Qo as scope, Qr as SET_STATE_TYPES, Qt as e2eTestProblems, R as compareDecorations, Ra as d, Ri as carouselPause, Rn as column, Ro as boundAttribute, Rr as buildHandles, Rs as r$4, Rt as suggestSpace, S as stepLines, Sa as onSubmit, Si as webHook, Sn as FIELD, So as text, Ss as r, St as searchScore, T as unit, Ta as openDialog, Ti as flowStepIds, Tn as endlesslyMovedInPage, To as component, Ts as elementAttributeNames, Tt as SPACE_FIELDS, U as pageRegions, Ua as button, Ui as declaredCallback, Un as classRefs, Uo as scopedHint, Ur as flagGateOf, Us as o$1, Ut as SpaceRefusedError, V as comparePictures, Va as blockHtml, Vi as closeDialog, Vn as className, Vo as hiddenWhen, Vr as pathForSlug, Vs as a$2, Vt as unusedDeclarations, W as profilePictures, Wa as carousel, Wi as declaredTrigger, Wn as isClassModifier, Wo as toBindingSpecs, Wr as flagSpecOf, Wt as refusalOf, X as onScreenIfChosen, Xa as dialogContainer, Xi as onChange, Xn as BREAKPOINTS, Xo as twig, Xr as applyUtility, Xt as FIXABLE_CODES, Y as onScreen, Ya as custom, Yi as onBlur, Yn as styles, Yo as source, Yr as BUILTIN_UTILITIES, Yt as navOf, Z as failedFlowText, Za as dropdown, Zi as onClick, Zn as STYLE_STATES, Zo as closest, Zr as getUtility, Zt as unitTestProblems, _ as e2eStepText, _a as onMouseLeave, _i as setState, _n as dragElement, _o as svg, _s as typeTriggerDefinitions, _t as explain, a as locateClasses, aa as onFocus, ai as cancelServerAction, an as playE2eStep, ao as image, ar as expandShorthandPatch, as as elementCallbacks, at as catalogTemplateFiles, b as parseE2eStep, ba as onPointerDown, bi as toggleState, bn as shownCopy, bo as tabContainerHeader, bs as r$3, bt as explainSearch, c as validateSnippet, ca as onInvalid, ci as cycleState, cn as unitReportText, co as listItem, cr as ambiguousShorthands, cs as elementLeafTypes, ct as space$1, d as e2eResultText, da as onLeave, di as invalidateQueries, dn as EDGES, do as nodeHtml, dr as cssProperties, ds as elementPublishes, dt as importSlug, ea as onDialogOpen, ei as appendState, en as testAccountWarnings, eo as focusGroup, er as sameBlocks, es as AuthoringError, et as dataIssues, f as journeyAccount, fa as onLoad, fi as moveState, fn as parseRelation, fo as pagination, fr as cssPropertyName, fs as elementSlots, ft as importedFiles, g as durationMs, ga as onMouseEnter, gi as runServerActionOrNotify, gn as answered, go as richText, gr as suggestCssProperty, gs as typeCallbackDefinitions, gt as GLOBAL_CALLBACK_BUILDERS, h as MAX_WAIT_FOR_MS, ha as onModalOpen, hi as runServerAction, hn as sidePx, ho as reference, hr as replacedCssProperty, hs as elementTypeNames, ht as EXPLAIN_KINDS, i as lintSpace, ia as onFlowProgress, ii as authRefreshDetails, in as isExpectation, io as heading, ir as expandShorthand, is as elementAttributeValues, it as blankTemplateFiles, j as shortcutKey, ja as scrollIntoView, ji as BUILTIN_GLOBAL_CALLBACKS, jn as pressOnce, jo as inferredLinkMode, js as a, jt as withNamedIds, k as withElement, ka as resetForm, ki as whenSucceeded, kn as locateTarget, ko as defineElement, ks as r$1, kt as actionSpecFromEntry, l as validateSpace, la as onJoin, li as delay, ln as resolveElement, lo as markdown, lr as fontUnread, ls as elementMarks, lt as space, m as E2E_STEP_USAGE, ma as onModalClose, mi as removeState, mn as relationHolds, mo as plitziSdk, mr as isCustomProperty, ms as elementTriggers, mt as BUILDER_NAMES, n as authorSpace, na as onFlowEnd, ni as authLogout, nn as pageAt, no as form, nr as toResponsive, ns as isSuggestionCode, nt as CATALOG_TEMPLATE_IDENTITY, o as locateElements, oa as onHover, oi as clearState, on as runUnitTest, oo as link, or as expandShorthandTraced, os as elementCatalog, ot as emptyTemplateFiles, p as runE2eTest, pa as onMessage, pi as navigate, pn as relationElements, po as paragraph, pr as isCssProperty, ps as elementSourceTypes, pt as importProbe, q as inspectDocument, qa as chart, qi as onApiError, qn as modifierClassName, qo as withVisibility, qr as taskAction, qt as notificationsCss, r as fixSpace, ra as onFlowError, ri as authLogoutEverywhere, rn as bridge, ro as formControl, rr as cssShorthands, rs as elementAncestorTypes, rt as blankSpace, s as planFixes, sa as onInterval, si as copyToClipboard, sn as runUnitTests, so as list, sr as shorthandLonghands, ss as elementDefaultAttributes, st as toPortableSource, t as authorSnippet, ta as onDialogReject, ti as authLogin, tn as audienceAt, to as fontAwesome, tr as toBlocks, ts as authoringCodeEntry, tt as answerAction, u as compactSvg, ua as onKey, ui as hostAction, un as openPage, uo as modalContainer, ur as cssNumberValue, us as elementPartTypes, ut as darkScheme, v as isE2eStepWord, va as onPageChange, vi as stepState, vn as giveValue, vo as tabContainer, vt as explainKindOf, w as e2e, wa as onView, wi as authorFlows, wn as awaitHydration, wo as video, wt as ELEMENT_FIELDS, x as parseE2eSteps, xa as onScroll, xi as twigTemplate, xn as valueFieldIn, xo as tabContainerItem, xs as n$1, xt as explanationText, y as leadingTarget, ya as onPageLoad, yi as toggleInState, yn as hiddenAtWidth, yo as tabContainerBody, ys as n, yt as explainList, z as pageDecorations, za as i, zi as carouselPlay, zn as grid, zo as groupBindings, zr as instanceSelectorFor, zs as s$1, zt as withoutQuieted } from "./index-src.js";
1
+ import { $ as readDevToolsInPage, $a as dropdown, $i as onDialogAccept, $n as css, $o as closest, $r as SET_STATE_TYPES, $t as journeyStartWarnings, A as pressShortcut, Aa as resetForm, Ai as whenSucceeded, An as pressFailure, Ao as defaultLabel, As as i$2, At as actionToSource, B as alignPictures, Ba as d, Bi as carouselPlay, Bn as grid, Bo as boundAttribute, Br as instanceSelectorFor, Bs as n$2, Bt as suggestClassOverrides, C as unquoted, Ca as onSubmit, Ci as webHook, Cn as HYDRATION_MS, Co as tabContainerItem, Cs as r$3, Ct as searchWords, D as readSpaceTests, Da as openModal, Di as named, Dn as hoverElement, Do as component, Dt as specFromSpace, E as e2eStepProblems, Ea as openDialog, Ei as flowStepIds, En as fieldsOf, Eo as video, Es as t$1, Et as specToSource, F as compareTexts, Fa as toggleElement, Fi as announceOn, Fn as STATE_PATH_PARAMS, Fo as GLOBAL_SOURCES, Fs as c, Ft as transformerCatalog, G as loadImages, Ga as button, Gi as declaredTrigger, Gn as isClassModifier, Go as scopedHint, Gr as flagSpecOf, Gs as i$3, Gt as familyOf, H as diffPictures, Ha as apiContainer, Hi as closeDialog, Hn as className, Ho as hasVisibilityBinding, Hr as pathForSlug, Hs as s$1, Ht as PAGE_SPEC_FIELDS, I as pageTexts, Ia as updateElement, Ii as cancelApi, In as tokens, Io as activeOn, Is as i$1, It as assertSnippetValid, J as inspectPage, Ja as channel, Ji as onApiError, Jn as modifierClassName, Jo as visibleWhen, Jr as taskAction, Jt as withNotificationsCss, K as unrollPage, Ka as carousel, Ki as focus, Kn as isClassRef, Ko as toBindingSpecs, Kr as authoringCodesTable, Ks as o$1, Kt as pageFamily, L as PAGE_DECORATION_LIMIT, La as elementsFromManifest, Li as carouselGoTo, Ln as createTw, Lo as activeWhen, Lr as digest, Ls as o, Lt as assertSpaceValid, M as inspectRenders, Ma as scrollIntoView, Mi as BUILTIN_GLOBAL_CALLBACKS, Mn as settle, Mo as element, Ms as r$1, Mt as BUILTIN_TRANSFORMERS, N as summariseRenders, Na as scrollTo, Ni as applyBuiltinCallback, Nn as targetId, No as inferredLinkMode, Ns as t$2, Nt as getTransformer, O as singlePageSpace, Oa as publishOn, Oi as when, On as locateField, Oo as declaresAttribute, Os as elementAttributeNames, Ot as compareSpaces, P as PAGE_TEXT_LIMIT, Pa as setFieldValue, Pi as getGlobalCallback, Pn as targetOf, Po as COMPONENT_SOURCES, Ps as a, Pt as suggestTransformer, Q as readDevTools, Qa as dialogContainer, Qi as onClick, Qn as STYLE_STATES, Qo as twig, Qr as getUtility, Qt as e2eTestProblems, R as compareDecorations, Ra as pluginTypesOf, Ri as carouselNext, Rn as tw, Ro as authorBinding, Rr as slugify, Rs as s, Rt as suggestSpace, S as stepLines, Sa as onScroll, Si as twigTemplate, Sn as FIELD, So as tabContainerHeader, Ss as n, St as searchScore, T as unit, Ta as onView, Ti as authorFlows, Tn as endlesslyMovedInPage, To as themeToggle, Ts as r, Tt as SPACE_FIELDS, U as pageRegions, Ua as blockHtml, Ui as closeModal, Un as classNames, Uo as hiddenWhen, Ur as selectorFor, Us as t, Ut as SpaceRefusedError, V as comparePictures, Va as i, Vi as carouselPrevious, Vn as row, Vo as groupBindings, Vr as locate, Vs as r$4, Vt as unusedDeclarations, W as profilePictures, Wa as blockJsx, Wi as declaredCallback, Wn as classRefs, Wo as resolveSource, Wr as flagGateOf, Ws as a$2, Wt as refusalOf, X as onScreenIfChosen, Xa as container, Xi as onBlur, Xn as styles, Xo as actionSource, Xr as BUILTIN_UTILITIES, Xt as FIXABLE_CODES, Y as onScreen, Ya as chart, Yi as onApiSuccess, Yn as splitClassList, Yo as withVisibility, Yt as navOf, Z as failedFlowText, Za as custom, Zi as onChange, Zn as BREAKPOINTS, Zo as source, Zr as applyUtility, Zt as unitTestProblems, _ as e2eStepText, _a as onMouseEnter, _i as runServerActionOrNotify, _n as dragElement, _o as reference, _r as suggestCssProperty, _s as elementTriggers, _t as explain, a as locateClasses, aa as onFlowProgress, ai as authRefreshDetails, an as playE2eStep, ao as formControl, ar as expandShorthand, as as isSuggestionCode, at as catalogTemplateFiles, b as parseE2eStep, ba as onPageLoad, bi as toggleInState, bn as shownCopy, bo as tabContainer, bs as typeTriggerDefinitions, bt as explainSearch, c as validateSnippet, ca as onInterval, ci as copyToClipboard, cn as unitReportText, co as link, cr as shorthandLonghands, cs as elementCallbacks, ct as space$1, d as e2eResultText, da as onKey, di as hostAction, dn as EDGES, do as markdown, dr as cssNumberValue, ds as elementLeafTypes, dt as importSlug, ea as onDialogClose, ei as addNotification, en as testAccountWarnings, eo as dropdownPopup, er as isRuleSetSpec, es as scope, et as dataIssues, f as journeyAccount, fa as onLeave, fi as invalidateQueries, fn as parseRelation, fo as modalContainer, fr as cssProperties, fs as elementMarks, ft as importedFiles, g as durationMs, ga as onModalOpen, gi as runServerAction, gn as answered, go as plitziSdk, gr as replacedCssProperty, gs as elementSourceTypes, gt as GLOBAL_CALLBACK_BUILDERS, h as MAX_WAIT_FOR_MS, ha as onModalClose, hi as removeState, hn as sidePx, ho as paragraph, hr as isCustomProperty, hs as elementSlots, ht as EXPLAIN_KINDS, i as lintSpace, ia as onFlowError, ii as authLogoutEverywhere, in as isExpectation, io as form, ir as cssShorthands, is as authoringCodeEntry, it as blankTemplateFiles, j as shortcutKey, ja as scrollBy, ji as whileRunning, jn as pressOnce, jo as defineElement, js as n$3, jt as withNamedIds, k as withElement, ka as reloadApi, ki as whenFailed, kn as locateTarget, ko as defaultAttributes, ks as e, kt as actionSpecFromEntry, l as validateSpace, la as onInvalid, li as cycleState, ln as resolveElement, lo as list, lr as ambiguousShorthands, ls as elementCatalog, lt as space, m as E2E_STEP_USAGE, ma as onMessage, mi as navigate, mn as relationHolds, mo as pagination, mr as isCssProperty, ms as elementPublishes, mt as BUILDER_NAMES, n as authorSpace, na as onDialogReject, ni as authLogin, nn as pageAt, no as focusGroup, nr as toBlocks, ns as AUTHORING_ONLY_CODES, nt as CATALOG_TEMPLATE_IDENTITY, o as locateElements, oa as onFocus, oi as cancelServerAction, on as runUnitTest, oo as heading, or as expandShorthandPatch, os as elementAncestorTypes, ot as emptyTemplateFiles, p as runE2eTest, pa as onLoad, pi as moveState, pn as relationElements, po as nodeHtml, pr as cssPropertyName, ps as elementPartTypes, pt as importProbe, q as inspectDocument, qa as carouselTrack, qi as on, qn as isStyleDeclaration, qo as variantFrom, qr as defineAction, qt as notificationsCss, r as fixSpace, ra as onFlowEnd, ri as authLogout, rn as bridge, ro as fontAwesome, rr as toResponsive, rs as AuthoringError, rt as blankSpace, s as planFixes, sa as onHover, si as clearState, sn as runUnitTests, so as image, sr as expandShorthandTraced, ss as elementAttributeValues, st as toPortableSource, t as authorSnippet, ta as onDialogOpen, ti as appendState, tn as audienceAt, to as embed, tr as sameBlocks, ts as AUTHORING_CODES, tt as answerAction, u as compactSvg, ua as onJoin, ui as delay, un as openPage, uo as listItem, ur as fontUnread, us as elementDefaultAttributes, ut as darkScheme, v as isE2eStepWord, va as onMouseLeave, vi as setState, vn as giveValue, vo as richText, vs as elementTypeNames, vt as explainKindOf, w as e2e, wa as onThemeChange, wi as authorFlow, wn as awaitHydration, wo as text, ws as n$1, wt as ELEMENT_FIELDS, x as parseE2eSteps, xa as onPointerDown, xi as toggleState, xn as valueFieldIn, xo as tabContainerBody, xt as explanationText, y as leadingTarget, ya as onPageChange, yi as stepState, yn as hiddenAtWidth, yo as svg, ys as typeCallbackDefinitions, yt as explainList, z as pageDecorations, za as withPluginCatalogs, zi as carouselPause, zn as column, zo as bindTemplate, zr as buildHandles, zs as c$1, zt as withoutQuieted } from "./index-src.js";
2
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, o as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STYLE_STATES, SpaceRefusedError, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, c as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, endlesslyMovedInPage, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, focusGroup, fontAwesome, fontUnread, form, formControl, s as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, hoverElement, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, shortcutKey, shorthandLonghands, shownCopy, sidePx, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, targetId, targetOf, taskAction, testAccountWarnings, 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, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
3
+ export { AUTHORING_CODES, AUTHORING_ONLY_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, o as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STATE_PATH_PARAMS, STYLE_STATES, SpaceRefusedError, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, c as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, endlesslyMovedInPage, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, focusGroup, fontAwesome, fontUnread, form, formControl, s as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, hoverElement, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pluginTypesOf, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, shortcutKey, shorthandLonghands, shownCopy, sidePx, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, targetId, targetOf, taskAction, testAccountWarnings, 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, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
package/dist/node.d.ts CHANGED
@@ -140,6 +140,11 @@ declare type ActionLimits = {
140
140
  */
141
141
  export declare const actionsIn: (folder: string | URL) => Promise<ActionEntry[]>;
142
142
 
143
+ /** The kinds, in the order a setting lists them: a tuple, so a schema validator can take it as its values. */
144
+ declare const AI_CRAWLER_KINDS: readonly ["training", "assistants", "search"];
145
+
146
+ declare type AiCrawlerKind = (typeof AI_CRAWLER_KINDS)[number];
147
+
143
148
  /** What one ancestor condition changes: inside it always, in its states, or in its variants (and their states). */
144
149
  declare interface AncestorSpec {
145
150
  css?: CssSpec;
@@ -178,11 +183,41 @@ declare const AUTHORING_CODES: {
178
183
  readonly means: "an `h4` right after an `h2` on a page as it is drawn — inside its layouts, with the headings a `markdown` writes, and without those that start hidden (`visible: false`): the outline misses a level (Lighthouse: \"not in a sequentially-descending order\")";
179
184
  readonly fix: "the next level down; size it with its class";
180
185
  };
186
+ readonly 'page-without-main': {
187
+ readonly kind: "suggested";
188
+ readonly means: "a page that draws no `main` landmark — neither it nor its layouts: a screen reader skipping to the content and a browser agent find no place where the page's own content starts (Lighthouse: \"Document does not have a main landmark\")";
189
+ readonly fix: "the container holding the page's content drawn as `main` (`container({ subType: 'main', children })`) — in the layout's slot when its pages share the shell — once a page";
190
+ };
181
191
  readonly 'repeated-on-pages': {
182
192
  readonly kind: "suggested";
183
193
  readonly means: "the same block — a header, a footer, a side panel — written into several pages";
184
194
  readonly fix: "a layout holding it once (`layouts`, and `layout: { id, slot }` on each page) — a component when only some pages of a layout carry it, written in its area’s folder and listed in the space’s `components`; a link marks its own page with the `current` state";
185
195
  };
196
+ readonly 'heavy-page': {
197
+ readonly kind: "suggested";
198
+ readonly means: "one page whose part of the document passes 250 KB — every visitor downloads it before the page is theirs — with the shapes written again most inside it, by what they weigh";
199
+ readonly fix: "the rows of data as one `list` of a component, read from the data (`list({ items, row })`), and a block written per state as one element whose state picks its content: the document then holds one copy — or, for an app's page heavy for how many elements it has, `quiet: ['heavy-page']` on the page, with why";
200
+ };
201
+ readonly 'desktop-only': {
202
+ readonly kind: "suggested";
203
+ readonly means: "a page, layout or component styled for the desktop alone where a phone (390 px) breaks — a width past 480 px with no `max-width` holding it; a grid whose fixed columns and gaps are wider than a phone, or three or more columns sharing its width a page’s parts apart (a gap of 16 px or more) and left narrower than 120 px each; type past 64 px — that no `mobile` rule of the classes on it sets again (a style’s `mobile` is laid over its `desktop` alone, so a `tablet` rule does not reach a phone). What a `mobile` rule hides is left out, as is a grid it lays out otherwise (`display: flex`), a width inside a box that clips or scrolls it sideways (`overflow-x: auto` round a table), a layout fluid on its own — wrapping flex, `%`, `min()`, `clamp()`, `repeat(auto-fit, minmax(…))` —, a row whose one column grows (`48px 1fr auto`), a dense widget’s many thin columns, and a space written mobile first";
204
+ readonly fix: "the phone's value in the class's `mobile` rules (`styles('card', { css: { desktop: { … }, mobile: { gridTemplateColumns: '1fr' } } })`), or a value fluid on its own — `width: 'min(960px, 100%)'`, `font-size: 'clamp(32px, 6vw, 72px)'`, `grid-template-columns: 'repeat(auto-fit, minmax(240px, 1fr))'` — or, for a surface only a desktop opens, `quiet: ['desktop-only']` on it, with why";
205
+ };
206
+ readonly 'heavy-layout': {
207
+ readonly kind: "suggested";
208
+ readonly means: "one layout whose own part of the document passes 250 KB — every page drawn in it is downloaded with it, the first a visitor opens at least — with how many pages carry it and what 10,000 first visits move for it";
209
+ readonly fix: "what only some of its pages show moved into those pages, or into a component they place; rows of data as one `list` of a component (`list({ items, row })`) — or, for a shell heavy on purpose, `quiet: ['heavy-layout']` on the layout, with why";
210
+ };
211
+ readonly 'many-elements': {
212
+ readonly kind: "suggested";
213
+ readonly means: "a page that builds more than 1,500 elements as it opens — its own, its layouts’ and its components’ once per instance, not those that start hidden with `loadStrategy` `lazy` or `visible` — with what a visit downloads for them: a phone builds, styles and lays out each before the page answers (Lighthouse flags a page past about 1,400)";
214
+ readonly fix: "`loadStrategy: 'lazy'` on what starts hidden until something shows it (`visible: false`) — a tab, a panel, a dialog — so it is built the first time it is shown (one a condition shows may be on screen at once, and is not named); rows of data as one `list`; a part few visitors reach as a page of its own — or, for an app's page rich on purpose, `quiet: ['many-elements']` on the page, with why";
215
+ };
216
+ readonly 'repeated-expression': {
217
+ readonly kind: "suggested";
218
+ readonly means: "the same long expression — its numbers and words aside — written into many bindings, steps or attributes: a sum or a choice worked out again in every copy, and carried by the document once per copy";
219
+ readonly fix: "what the copies share as a computed value (`computed: { chosen: '{{ … }}' }`, read as `computed.chosen`), answering `null` off the page that reads it (`navigation.currentPageId`), each copy keeping what differs; copies side by side as one `list` whose rows carry what differs (`list({ items, row })`)";
220
+ };
186
221
  readonly 'repeated-shape': {
187
222
  readonly kind: "suggested";
188
223
  readonly means: "the same structure written again and again with different words — cards, rows, tiles. Copies that read their data in a form of their own (their template) or render on the server are no repeats, and neither are copies side by side wired to different sources or state keys — controls written alike; copies apart that read different sources are one component, each instance handed its own";
@@ -247,6 +282,7 @@ declare const AUTHORING_CODES: {
247
282
  readonly kind: "suggested";
248
283
  readonly means: "a space with no page of its own for an address no other page answers — a plain one was added, in the home page’s layout, sent with status 404";
249
284
  readonly fix: "a page whose slug is `'*'`: `{ id: 'not-found', name: 'Not found', slug: '*', layout: …, body: [...] }`";
285
+ readonly authoringOnly: "that the page was added: written, it is a page like any other";
250
286
  };
251
287
  readonly 'unused-plugin': {
252
288
  readonly kind: "suggested";
@@ -262,6 +298,7 @@ declare const AUTHORING_CODES: {
262
298
  readonly kind: "suggested";
263
299
  readonly means: "one class's shorthand erasing the longhand another class on the same element writes out — `padding` over `padding-top` — or the same property set over the class listed after it — `gap` over `gap` — because the stylesheet writes it later: classes in the order they are first met, a breakpoint's rules after the base, never the order of a class list";
264
300
  readonly fix: "the longhands the shorthand means instead of it (`padding-left`, `padding-right`), so it leaves the other class's alone; the same property, left to one of the two or written on the element itself — or `quiet: ['class-overrides-class']` when the winner is meant to win";
301
+ readonly authoringOnly: "the shorthand a rule was written with — the stylesheet holds the longhands it stands for";
265
302
  };
266
303
  readonly 'test-unreadable': {
267
304
  readonly kind: "warned";
@@ -727,6 +764,7 @@ declare const AUTHORING_CODES: {
727
764
  readonly kind: "warned";
728
765
  readonly means: "a plugin attribute named as one of the element’s own fields — a factory never hands it to the plugin";
729
766
  readonly fix: "rename it in the plugin, as the warning names it (`variant` → `kind`, `from` → `start`)";
767
+ readonly authoringOnly: "the plugin's own declaration, which authoring is handed and a space's documents do not hold";
730
768
  };
731
769
  readonly 'unknown-variant': {
732
770
  readonly kind: "warned";
@@ -1065,7 +1103,7 @@ declare const AUTHORING_CODES: {
1065
1103
  };
1066
1104
  readonly 'tablet-rule-skips-mobile': {
1067
1105
  readonly kind: "warned";
1068
- readonly means: "a tablet rule phones never get — mobile inherits desktop, not tablet";
1106
+ readonly means: "a tablet rule phones never get — mobile inherits desktop, not tablet (a grid’s columns are left alone where the phone is not a grid)";
1069
1107
  readonly fix: "write it under `compact` (tablet and mobile together)";
1070
1108
  };
1071
1109
  readonly 'tw-unknown-class': {
@@ -1248,6 +1286,11 @@ declare const AUTHORING_CODES: {
1248
1286
  readonly means: "the page of every address no other answers (`slug: '*'`) marked the home";
1249
1287
  readonly fix: "`isDefault` on the page at `''`, or left out: the page at `''` is the home";
1250
1288
  };
1289
+ readonly 'not-found-twice': {
1290
+ readonly kind: "refused";
1291
+ readonly means: "two pages answering every address nothing else does (`slug: '*'`) in the same place — the space, or one folder: the router would pick one, and an address land on whichever it picked";
1292
+ readonly fix: "one per place: the other given a slug of its own, or moved to the folder whose addresses it answers (a folder's answers its own, the space's the rest)";
1293
+ };
1251
1294
  readonly 'page-route-reserved': {
1252
1295
  readonly kind: "refused";
1253
1296
  readonly means: "a page under `/fn`, where the space's functions answer";
@@ -2648,6 +2691,12 @@ declare interface PageSpec {
2648
2691
  flag?: string;
2649
2692
  /** How the space's navigation lists it: see {@link PageNav}. */
2650
2693
  nav?: PageNav;
2694
+ /**
2695
+ * Suggestions this page is not offered, because it is written this way on purpose — `quiet: ['heavy-page']` on an
2696
+ * app's page that is heavy for how many elements it has, not for a shape written again. Only suggestions: a problem
2697
+ * is never quieted. Say why beside it.
2698
+ */
2699
+ quiet?: SuggestionCode[];
2651
2700
  body: ElementSpec[];
2652
2701
  }
2653
2702
 
@@ -2906,7 +2955,7 @@ declare interface RuleSetSpec extends VariantSpec {
2906
2955
 
2907
2956
  /**
2908
2957
  * A condition as Plitzi stores it — a flag's rules, an interaction's `when`, a binding's condition: the schema's own
2909
- * format, so sdk-shared defines it (RFC 0032, D13). plitzi-ui's QueryBuilder edits the same shape with prop types of its
2958
+ * format, so sdk-shared defines it (docs/en/server-packages.md, D13). plitzi-ui's QueryBuilder edits the same shape with prop types of its
2910
2959
  * own, and a type test in the builder, where the two meet, holds them assignable both ways.
2911
2960
  */
2912
2961
  declare type RuleValue = Date | string | number | boolean | undefined | null | object;
@@ -2959,11 +3008,25 @@ declare type Schema = {
2959
3008
  */
2960
3009
  robotsTxt?: string;
2961
3010
  /**
2962
- * Keeps the crawlers that gather pages to train AI models (`AI_CRAWLERS`: GPTBot, ClaudeBot, Google-Extended…) out of
2963
- * the whole site: `/robots.txt` says `Disallow: /` to each, after whatever `robotsTxt` says. Search engines keep
2964
- * reading it. Left out, nobody is kept out.
3011
+ * The site's `/.well-known/security.txt` (RFC 9116), as a researcher who found a flaw reads it: where to write
3012
+ * (`Contact:`), until when the text holds (`Expires:`), and anything else the RFC names. Left out, the address answers
3013
+ * 404 — a site that says nothing is not given words it did not write.
3014
+ */
3015
+ securityTxt?: string;
3016
+ /**
3017
+ * The space's `/llms.txt` (llmstxt.org), as an assistant reads it to find its way around: the site's name, what it
3018
+ * is, and a link to each page with what it is for. Left out, the server writes one from the pages the sitemap lists
3019
+ * — each page's SEO title and description. A space that keeps `assistants` out (`blockAiCrawlers`) answers 404:
3020
+ * an index for them would invite what the site refuses.
2965
3021
  */
2966
- blockAiCrawlers?: boolean;
3022
+ llmsTxt?: string;
3023
+ /**
3024
+ * The kinds of AI crawler kept out of the whole site, each its owner's to decide (`AI_CRAWLERS`): `training` (GPTBot,
3025
+ * ClaudeBot, Google-Extended…), `assistants` fetching a page for a person (ChatGPT-User, Claude-User…) and AI
3026
+ * `search` indexes (OAI-SearchBot, PerplexityBot…). `/robots.txt` says `Disallow: /` to each agent of each kind named,
3027
+ * after whatever `robotsTxt` says. Search engines keep reading it. Left out, nobody is kept out.
3028
+ */
3029
+ blockAiCrawlers?: AiCrawlerKind[];
2967
3030
  /**
2968
3031
  * A move from page to page drawn as one view becoming the next (the browser's view transitions): the pages cross-fade,
2969
3032
  * and an element named the same on both by CSS — `view-transition-name: fighter-portrait` — moves from where it was
@@ -2981,6 +3044,11 @@ declare type Schema = {
2981
3044
  * yours" there, as on any page. Left out, the platform's few words. A page with an `access` of its own cannot be it.
2982
3045
  */
2983
3046
  withheldPage?: string;
3047
+ /**
3048
+ * Sends the whole space with every page instead of in parts — the page's own elements and its layouts', the rest
3049
+ * fetched as a link to it is followed. For a space whose pages read each other's elements at run time.
3050
+ */
3051
+ wholeDocument?: boolean;
2984
3052
  /** The language its pages are written in, as a language tag (`en`, `es-MX`): `<html lang>` and `og:locale`. */
2985
3053
  language?: string;
2986
3054
  /** The tab's icon: a file of the site (`/favicon.svg`) or an address (`https://…`). Left out, Plitzi's. */
@@ -3076,6 +3144,13 @@ declare type Schema = {
3076
3144
  pages: Element_2['id'][];
3077
3145
  pageFolders: PageFolder[];
3078
3146
  components: Record<SpaceComponent['id'], SpaceComponent>;
3147
+ /**
3148
+ * Only in a document a page server sends in parts (`splitSchema`): the roots — pages and layouts — whose elements are
3149
+ * not in `flat` yet, each by the name of the part that holds them, fetched before a page that needs it is drawn; `''`
3150
+ * for one this visitor is not sent, which only the server can draw. Absent, the document is whole: the SDK alone, the
3151
+ * builder, the MCP and a static deploy never see it.
3152
+ */
3153
+ parts?: Record<string, string>;
3079
3154
  };
3080
3155
 
3081
3156
  /**
package/dist/node.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Ao as element, Ar as p$2, Cr as c$4, Dr as l$3, Er as g$1, Fr as y$1, Ja as container, Jr as c$3, Mr as t$1, Nr as u$3, Or as m$2, Pr as v$1, Rr as buildHandles, Sr as b$1, To as component, Tr as f$2, _r as C$1, br as P, jr as s$3, kr as o$3, l as validateSpace, n as authorSpace, u as compactSvg, vr as M$1, vs as Y, wr as d$2, ws as e$2, xr as _, yr as N$1 } from "./index-src.js";
1
+ import { Ar as o$3, Cr as b$1, Do as component, Dr as g$1, Ds as e$2, Er as f$2, Fr as v$1, Ir as y$1, Mo as element, Mr as s$3, Nr as t$1, Or as l$3, Pr as u$3, Sr as _, Tr as d$2, Xa as container, Yr as c$3, br as N$1, jr as p$2, kr as m$2, l as validateSpace, n as authorSpace, u as compactSvg, vr as C$1, wr as c$4, xr as P, xs as Y, yr as M$1, zr as buildHandles } from "./index-src.js";
2
2
  import { existsSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
3
3
  import { createRequire } from "node:module";
4
4
  import e from "node:path";