@plitzi/sdk-authoring 0.39.4 → 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.
package/dist/index.d.ts CHANGED
@@ -801,6 +801,21 @@ export declare const AUTHORING_CODES: {
801
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
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
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
+ };
804
819
  readonly 'repeated-expression': {
805
820
  readonly kind: "suggested";
806
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";
@@ -870,6 +885,7 @@ export declare const AUTHORING_CODES: {
870
885
  readonly kind: "suggested";
871
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";
872
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";
873
889
  };
874
890
  readonly 'unused-plugin': {
875
891
  readonly kind: "suggested";
@@ -885,6 +901,7 @@ export declare const AUTHORING_CODES: {
885
901
  readonly kind: "suggested";
886
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";
887
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";
888
905
  };
889
906
  readonly 'test-unreadable': {
890
907
  readonly kind: "warned";
@@ -1350,6 +1367,7 @@ export declare const AUTHORING_CODES: {
1350
1367
  readonly kind: "warned";
1351
1368
  readonly means: "a plugin attribute named as one of the element’s own fields — a factory never hands it to the plugin";
1352
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";
1353
1371
  };
1354
1372
  readonly 'unknown-variant': {
1355
1373
  readonly kind: "warned";
@@ -1688,7 +1706,7 @@ export declare const AUTHORING_CODES: {
1688
1706
  };
1689
1707
  readonly 'tablet-rule-skips-mobile': {
1690
1708
  readonly kind: "warned";
1691
- 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)";
1692
1710
  readonly fix: "write it under `compact` (tablet and mobile together)";
1693
1711
  };
1694
1712
  readonly 'tw-unknown-class': {
@@ -1871,6 +1889,11 @@ export declare const AUTHORING_CODES: {
1871
1889
  readonly means: "the page of every address no other answers (`slug: '*'`) marked the home";
1872
1890
  readonly fix: "`isDefault` on the page at `''`, or left out: the page at `''` is the home";
1873
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
+ };
1874
1897
  readonly 'page-route-reserved': {
1875
1898
  readonly kind: "refused";
1876
1899
  readonly means: "a page under `/fn`, where the space's functions answer";
@@ -2058,6 +2081,13 @@ export declare const AUTHORING_CODES: {
2058
2081
  };
2059
2082
  };
2060
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
+
2061
2091
  export declare type AuthoringCode = keyof Codes;
2062
2092
 
2063
2093
  export declare type AuthoringCodeEntry = {
@@ -2070,6 +2100,11 @@ export declare type AuthoringCodeEntry = {
2070
2100
  means: string;
2071
2101
  /** What to write instead. */
2072
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;
2073
2108
  };
2074
2109
 
2075
2110
  /**
@@ -3977,7 +4012,7 @@ export declare const elementAttributeNames: {
3977
4012
  readonly tabContainer: readonly [];
3978
4013
  readonly tabContainerBody: readonly [];
3979
4014
  readonly tabContainerHeader: readonly [];
3980
- readonly tabContainerItem: readonly [];
4015
+ readonly tabContainerItem: readonly ["hash"];
3981
4016
  readonly text: readonly ["content", "decorative", "title"];
3982
4017
  readonly themeToggle: readonly ["darkLabel", "lightLabel", "showSystem", "subType", "systemLabel"];
3983
4018
  readonly video: readonly ["autoPlay", "loop", "muted", "playsInline", "src"];
@@ -4412,7 +4447,7 @@ declare const elementDeclarations: {
4412
4447
  readonly type: "blockJsx";
4413
4448
  readonly content: {
4414
4449
  readonly attributes: {
4415
- 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;";
4416
4451
  readonly props: "{\"content\": \"Hello\", \"content2\": \"World\"}";
4417
4452
  readonly contentCache: "aW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gInJlYWN0IjsKaW1wb3J0IHsgSnN4TWFuYWdlciB9IGZyb20gIkBwbGl0emkvcGxpdHppLXNkayI7CnZhciBCbG9ja0pzeCA9IGZ1bmN0aW9uIEJsb2NrSnN4KF9yZWYpIHsKICB2YXIgaW50ZXJuYWxQcm9wcyA9IF9yZWYuaW50ZXJuYWxQcm9wcywKICAgIGNvbnRlbnQgPSBfcmVmLmNvbnRlbnQsCiAgICBjb250ZW50MiA9IF9yZWYuY29udGVudDI7CiAgdmFyIGhhbmRsZUNsaWNrID0gdXNlQ2FsbGJhY2soZnVuY3Rpb24gKCkgewogICAgYWxlcnQoIkhlbGxvIFdvcmxkIik7CiAgfSwgW10pOwogIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudCgiZGl2IiwgewogICAgc3R5bGU6IHsKICAgICAgZGlzcGxheTogImZsZXgiLAogICAgICBnYXA6ICI0cHgiCiAgICB9CiAgfSwgLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoSnN4TWFuYWdlciwgewogICAgYXM6ICJIZWFkaW5nIiwKICAgIGludGVybmFsUHJvcHM6IGludGVybmFsUHJvcHMsCiAgICBjb250ZW50OiAiIi5jb25jYXQoY29udGVudCwgIiAiKS5jb25jYXQoY29udGVudDIpCiAgfSksIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KCJidXR0b24iLCB7CiAgICBvbkNsaWNrOiBoYW5kbGVDbGljaywKICAgIHN0eWxlOiB7CiAgICAgIGJvcmRlcjogIjFweCBncmF5IHNvbGlkIiwKICAgICAgY3Vyc29yOiAncG9pbnRlcicKICAgIH0KICB9LCAiQ2xpY2sgTWUiKSk7Cn07CmV4cG9ydCBkZWZhdWx0IEJsb2NrSnN4Ow==";
4418
4453
  readonly allowEmptyRender: false;
@@ -7913,7 +7948,9 @@ declare const elementDeclarations: {
7913
7948
  readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
7914
7949
  };
7915
7950
  readonly content: {
7916
- readonly attributes: {};
7951
+ readonly attributes: {
7952
+ readonly hash: "";
7953
+ };
7917
7954
  readonly definition: {
7918
7955
  readonly label: "Tab Container Item";
7919
7956
  readonly description: "One selectable tab (trigger + panel) inside a tabContainer.";
@@ -7935,7 +7972,9 @@ declare const elementDeclarations: {
7935
7972
  readonly subTypes: {};
7936
7973
  };
7937
7974
  };
7938
- }, unknown>;
7975
+ }, Partial<{
7976
+ hash?: string | undefined;
7977
+ }>>;
7939
7978
  readonly Text: DeclaredElement< {
7940
7979
  readonly type: "text";
7941
7980
  readonly contentAttributes: readonly ["content"];
@@ -11385,6 +11424,13 @@ export declare type PluginTriggerSpec = {
11385
11424
  params?: InteractionCallback['params'];
11386
11425
  };
11387
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
+
11388
11434
  /**
11389
11435
  * Why a press did not happen, out of Playwright's log: the element over it, still moving, hidden or disabled — never its
11390
11436
  * first line alone ("locator.click: Timeout 3000ms exceeded", which a run's agents met a dozen times and could not act
@@ -12612,7 +12658,7 @@ export declare type SpaceComponent = {
12612
12658
  flat: Record<Element_2['id'], Element_2>;
12613
12659
  };
12614
12660
 
12615
- export declare type SpaceCredentialProvider = 's3' | 'r2' | 'ssr' | 'custom' | 'smtp';
12661
+ export declare type SpaceCredentialProvider = 's3' | 'r2' | 'ssr' | 'custom' | 'smtp' | 'github' | 'cloudflare' | 'netlify' | 'vercel' | 'ftp';
12616
12662
 
12617
12663
  /**
12618
12664
  * Whether two pairs of space documents render the same space.
@@ -12957,6 +13003,9 @@ export declare const splitNotificationsCss: (customCss: string) => {
12957
13003
  customCss: string;
12958
13004
  };
12959
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
+
12960
13009
  /** Rules for the states a selector reacts to — `hover`, `focus`, `active` — each one plain or per breakpoint. */
12961
13010
  export declare type StatesSpec = Partial<Record<StyleState, CssSpec>>;
12962
13011
 
@@ -13572,8 +13621,12 @@ export declare const tabContainerHeader: {
13572
13621
  };
13573
13622
 
13574
13623
  export declare const tabContainerItem: {
13575
- (children: ElementSpec[], props?: AuthoringProps | undefined): ElementSpec;
13576
- (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;
13577
13630
  };
13578
13631
 
13579
13632
  export declare type TagType = 'class' | 'element' | 'id';
@@ -14317,7 +14370,11 @@ export declare const withNamedIds: (schema: Schema) => {
14317
14370
  /** The space's custom CSS with its notifications' rules after it; refuses a spec that is not sound. */
14318
14371
  export declare const withNotificationsCss: (customCss: string, spec: NotificationsSpec | undefined) => string;
14319
14372
 
14320
- /** 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
+ */
14321
14378
  export declare const withoutQuieted: (schema: Schema, suggestions: Suggestion[]) => Suggestion[];
14322
14379
 
14323
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
@@ -198,6 +198,21 @@ declare const AUTHORING_CODES: {
198
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
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
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
+ };
201
216
  readonly 'repeated-expression': {
202
217
  readonly kind: "suggested";
203
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";
@@ -267,6 +282,7 @@ declare const AUTHORING_CODES: {
267
282
  readonly kind: "suggested";
268
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";
269
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";
270
286
  };
271
287
  readonly 'unused-plugin': {
272
288
  readonly kind: "suggested";
@@ -282,6 +298,7 @@ declare const AUTHORING_CODES: {
282
298
  readonly kind: "suggested";
283
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";
284
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";
285
302
  };
286
303
  readonly 'test-unreadable': {
287
304
  readonly kind: "warned";
@@ -747,6 +764,7 @@ declare const AUTHORING_CODES: {
747
764
  readonly kind: "warned";
748
765
  readonly means: "a plugin attribute named as one of the element’s own fields — a factory never hands it to the plugin";
749
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";
750
768
  };
751
769
  readonly 'unknown-variant': {
752
770
  readonly kind: "warned";
@@ -1085,7 +1103,7 @@ declare const AUTHORING_CODES: {
1085
1103
  };
1086
1104
  readonly 'tablet-rule-skips-mobile': {
1087
1105
  readonly kind: "warned";
1088
- 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)";
1089
1107
  readonly fix: "write it under `compact` (tablet and mobile together)";
1090
1108
  };
1091
1109
  readonly 'tw-unknown-class': {
@@ -1268,6 +1286,11 @@ declare const AUTHORING_CODES: {
1268
1286
  readonly means: "the page of every address no other answers (`slug: '*'`) marked the home";
1269
1287
  readonly fix: "`isDefault` on the page at `''`, or left out: the page at `''` is the home";
1270
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
+ };
1271
1294
  readonly 'page-route-reserved': {
1272
1295
  readonly kind: "refused";
1273
1296
  readonly means: "a page under `/fn`, where the space's functions answer";
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";
package/dist/plugin.d.ts CHANGED
@@ -617,7 +617,7 @@ declare type RuleGroup = {
617
617
  */
618
618
  declare type RuleValue = Date | string | number | boolean | undefined | null | object;
619
619
 
620
- declare type SpaceCredentialProvider = 's3' | 'r2' | 'ssr' | 'custom' | 'smtp';
620
+ declare type SpaceCredentialProvider = 's3' | 'r2' | 'ssr' | 'custom' | 'smtp' | 'github' | 'cloudflare' | 'netlify' | 'vercel' | 'ftp';
621
621
 
622
622
  /**
623
623
  * The pseudo-elements a class can dress — parts of an element the page has no node for: the box drawn before or after
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-authoring",
3
- "version": "0.39.4",
3
+ "version": "0.39.6",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist/index.js",
@@ -66,17 +66,17 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@microsoft/api-extractor": "^7.60.1",
69
- "@plitzi/plitzi-ui": "^1.6.39",
70
- "@plitzi/sdk-elements": "0.39.4",
71
- "@plitzi/sdk-interactions": "0.39.4",
72
- "@plitzi/sdk-schema": "0.39.4",
73
- "@plitzi/sdk-shared": "0.39.4",
74
- "@plitzi/sdk-style": "0.39.4",
69
+ "@plitzi/plitzi-ui": "^1.6.40",
70
+ "@plitzi/sdk-elements": "0.39.6",
71
+ "@plitzi/sdk-interactions": "0.39.6",
72
+ "@plitzi/sdk-schema": "0.39.6",
73
+ "@plitzi/sdk-shared": "0.39.6",
74
+ "@plitzi/sdk-style": "0.39.6",
75
75
  "@types/react": "^19.3.0",
76
76
  "eslint": "^9.39.5",
77
- "prettier": "^3.9.10",
77
+ "prettier": "^3.10.1",
78
78
  "typescript": "^6.0.3",
79
- "vite": "^8.3.7",
79
+ "vite": "^8.3.8",
80
80
  "vite-plugin-dts": "^5.1.2",
81
81
  "vitest": "^5.1.0"
82
82
  }
@@ -108,6 +108,7 @@ The space is not written until these are fixed.
108
108
  | `no-pages` | a space with no pages | `pages: [{ id: 'home', name: 'Home', slug: '', body: [] }]` |
109
109
  | `not-found-in-browser` | `notFound` on a provider asked from the browser — its answer arrives after the page was sent with its status | `runtime: 'server'` on the provider, or `visible` on the page's "not found" part instead |
110
110
  | `not-found-not-a-template` | `notFound`, a provider's or a page's, that is not one `{{ expression }}` — never `true`, so never a 404 | `notFound: '{{ source.found == false }}'` |
111
+ | `not-found-twice` | 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 | 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) |
111
112
  | `notifications-shape` | `notifications` with a field it does not have, or a value that is not one CSS value | the field it suggests, or one it lists; one CSS value, like 'var(--card)', '12px' or '500' |
112
113
  | `og-type-unknown` | a page's `seoType` that Open Graph does not name | `seoType: 'article'`, `'profile'`, `'music.playlist'` — or leave it out, and the page is a `website` |
113
114
  | `outside-ancestor` | an element that reads the state of an element it is not inside | nest it in the element the message names |
@@ -242,7 +243,7 @@ The space renders, and renders something you probably did not mean. Fix every on
242
243
  | `page-path-unknown` | a link or `navigate` to a path no page of the space answers — a page not made yet, or a typo | a path a page answers (its folder and slug), the page's id, or `mode: 'external'` for one the server answers itself |
243
244
  | `painted-state-without-keep-state` | `paintedState` without `keepState` — nothing is kept for the server to draw with | `settings.keepState: true`, or remove `paintedState` |
244
245
  | `path-not-in-data` | a binding onto a provider whose answer the author could read (`data`), through a path that answer does not have | the path the message lists the keys for — `p.data.plans`, not `p.data.landing.plans` |
245
- | `plugin-attribute-reserved` | a plugin attribute named as one of the element’s own fields — a factory never hands it to the plugin | rename it in the plugin, as the warning names it (`variant` → `kind`, `from` → `start`) |
246
+ | `plugin-attribute-reserved` | a plugin attribute named as one of the element’s own fields — a factory never hands it to the plugin — said by `author` alone, which reads the plugin's own declaration, which authoring is handed and a space's documents do not hold | rename it in the plugin, as the warning names it (`variant` → `kind`, `from` → `start`) |
246
247
  | `popup-position-set` | a class on a `dropdownPopup` setting where it is drawn — `position`, `top`, `left`, `right`, `bottom`, `inset` or `transform` — over the place its dropdown puts it at, at the space's root | its look on the class, its place on the dropdown: `popupPlacement`, `containerTopOffset`, `containerLeftOffset`, and `popupWidth: "trigger"` for its width |
247
248
  | `provider-without-source` | an `apiContainer` that asks nothing | a `query` (or `action`, `connector`, `resource`) |
248
249
  | `required-message-unused` | a `requiredMessage` on a field nothing requires — fields are optional unless `required: true`, so it is never shown and an empty answer is sent | `required: true` on the field, or no message |
@@ -253,7 +254,7 @@ The space renders, and renders something you probably did not mean. Fix every on
253
254
  | `state-key-has-runtime-prefix` | a state key written with `runtime.state.` in front — the state callbacks already write below it | `key: 'cart'`, not `'runtime.state.cart'` |
254
255
  | `state-toggled-in-branches` | two `setState` of one key, each under a `when` on that key — the second flips back what the first wrote | `toggleState({ key })`; for something shown by default, a key named for hiding it |
255
256
  | `STYLE_WITHOUT_TAG` | style on a provider that renders no element of its own | `subType: 'div'` on the provider, or style its parent |
256
- | `tablet-rule-skips-mobile` | a tablet rule phones never get — mobile inherits desktop, not tablet | write it under `compact` (tablet and mobile together) |
257
+ | `tablet-rule-skips-mobile` | 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) | write it under `compact` (tablet and mobile together) |
257
258
  | `template-never-resolved` | a condition in an attribute, which only resolves `{{ name\|filter }}` — used as written | move it into `bindTemplate` |
258
259
  | `template-or-value` | a template's `or` (or `and`) beside a text or a number — `sort or 'listeners'` — which answers true or false, never the value | a fallback value with `??`: `sort ?? 'listeners'`; a test with `or` between two conditions |
259
260
  | `test-account-role-gone` | a test account holds a visitor role the space does not declare in `settings.visitorRoles` — removed since, or never there: a journey plays it without that role, and one that needed what it gave fails | one of the space’s roles for the account — or the role declared again |
@@ -271,18 +272,21 @@ Nothing is wrong: the page renders as written. Each is a shorter way to the same
271
272
 
272
273
  | Code | Written the long way | The short way |
273
274
  | --- | --- | --- |
274
- | `class-overrides-class` | 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 | 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 |
275
+ | `class-overrides-class` | 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 — said by `author` alone, which reads the shorthand a rule was written with — the stylesheet holds the longhands it stands for | 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 |
275
276
  | `content-attribute` | a button or a link whose children are only its words and an icon — a `text`, a `fontAwesome` — elements more than it needs | its own `content` and `icon` (`link({ href, content: 'Docs', icon: 'fa-solid fa-arrow-right', iconPlacement: 'after' })`); the icon's class goes on the `icon` slot, and what the text's class adds on the box's class, never the class itself |
276
277
  | `custom-css-class` | a `customCss` rule a class can hold — `.card:hover`, `.panel .icon` | the class's own `states` or `ancestors`, where the style editor reads it back and a breakpoint can change it |
277
278
  | `custom-css-notifications` | the toasts or their icon, close button or progress bar dressed with `.Toastify__*` rules in `customCss` | `notifications: { font, fontSize, fontWeight, minHeight, iconSize, closeColor, progressHeight, … }` |
278
279
  | `custom-css-sdk-default` | `customCss` repeating what the SDK already does for every space — less motion when asked, the theme toggle showing one icon | nothing: remove it |
279
280
  | `custom-css-slot` | a part of a built-in element dressed in `customCss` by the SDK's markup — a form control's `<input>`, a pager's buttons, a heading inside a markdown | a class on the slot of that part — `slots: { field: input }`, `elements.<type>.slots` — with its states |
281
+ | `desktop-only` | 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 | 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 |
280
282
  | `element-color-inherited` | `elements` giving a type — a heading, a text, a link — `color: inherit` or the page's own colour, which it takes by itself | remove it, and name the colour once on `elements.page`: every element reads in the page’s colour, a link’s words included |
281
283
  | `heading-level-skipped` | 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") | the next level down; size it with its class |
282
284
  | `heavy-animation` | keyframes animating what the browser repaints or lays out again on every frame — a size, a position, a blur, a shadow, or a colour in a loop — which stutters whenever the page is busy, most of all while it loads | `opacity` and `transform`: a size or a position is `translate`/`scale`, a blur or a shadow is the `opacity` of a layer carrying it; a loop that must animate anything else starts `paused` and runs under `[data-hydrated]` |
285
+ | `heavy-layout` | 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 | 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 |
283
286
  | `heavy-page` | 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 | 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 |
284
287
  | `literal-colour` | a colour written out in a class where the space has a token of that value — it stays put in the dark scheme | `var(--token)` when it should follow the scheme; a token of one value of its own when it must stay the same in both |
285
- | `not-found-page` | 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 | a page whose slug is `'*'`: `{ id: 'not-found', name: 'Not found', slug: '*', layout: …, body: [...] }` |
288
+ | `many-elements` | 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) | `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 |
289
+ | `not-found-page` | 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 — said by `author` alone, which reads that the page was added: written, it is a page like any other | a page whose slug is `'*'`: `{ id: 'not-found', name: 'Not found', slug: '*', layout: …, body: [...] }` |
286
290
  | `page-without-main` | 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") | 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 |
287
291
  | `plugin-custom-host` | a `custom` element naming, by `renderType`, a plugin whose declaration the space was handed | place it from its declaration — `const seatPicker = defineElement(declaration)`, then `seatPicker({ id, … })`: typed by what it declares (a `definePlugin` declaration carries its attributes), the element the builder adds too |
288
292
  | `repeated-expression` | 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 | 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 })`) |
@@ -20,7 +20,8 @@ is a bug to fix; a suggestion is a shorter way to the same page — take it unle
20
20
  reason is usually that the copies are about to diverge. `npx @plitzi/cli explain repeated-on-pages` explains any code.
21
21
 
22
22
  Left on purpose, say so where it is written — `quiet` on an element it is about (a component's instance too:
23
- `component(id, { quiet })`; a page for `heavy-page`, an app's page heavy for how many elements it has), and it is not
23
+ `component(id, { quiet })`; a page for `heavy-page`, an app's page heavy for how many elements it has; the one element
24
+ every element it is about sits in, for copies side by side — a row of plan cards), and it is not
24
25
  offered again, in the builder or over MCP either (it is kept in the
25
26
  document):
26
27
 
@@ -151,7 +151,8 @@ Every page is now its content and nothing else, and every page is guaranteed the
151
151
  status 404, in the layout you give it, so the visitor is still on the site with a way back. Its own address answers
152
152
  404 too.
153
153
  - **One per folder, if a section wants its own.** In a folder (`folder: 'docs'`) it answers that folder's unknown
154
- addresses; the deepest folder's wins, the space's takes the rest. A page whose `flag` is off shows it too.
154
+ addresses; the deepest folder's wins, the space's takes the rest. A page whose `flag` is off shows it too. Never two
155
+ in one place — the space, or one folder: the router would pick one, so `author` refuses it (`not-found-twice`).
155
156
  - **A space with none is given a plain one** — a title and a link home, in the home page's layout — and `author`
156
157
  suggests writing your own (`not-found-page`): say it in the space's words.
157
158
  - **A page that exists but finds nothing** — `/products/:slug` for a slug no product has — is sent with 404 too when