@vectoriox/iox-ui 5.122.0 → 5.123.0
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/fesm2022/vectoriox-iox-ui-generation-core.mjs +2306 -1842
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/generation-core/index.d.ts +487 -228
- package/package.json +1 -1
- package/src/generation-core/compose-layout.ts +3 -5
- package/src/generation-core/compose-site.ts +60 -17
- package/src/generation-core/header-mix.ts +355 -4
- package/src/generation-core/layout-fingerprint.ts +3 -3
- package/src/generation-core/nav-shape.ts +49 -3
- package/src/generation-core/plan-wire.ts +30 -15
- package/src/generation-core/site-spec.generated.ts +104 -22
- package/src/generation-core/validate-site-plan.ts +2 -1
|
@@ -4561,6 +4561,97 @@ declare const SPEC_SITE_FOOTER_PARTS: {
|
|
|
4561
4561
|
readonly text: "© {year} {business.name}";
|
|
4562
4562
|
};
|
|
4563
4563
|
};
|
|
4564
|
+
declare const SPEC_SITE_HEADER_PARTS: {
|
|
4565
|
+
readonly root: {
|
|
4566
|
+
readonly t: "Container";
|
|
4567
|
+
readonly es: "nav";
|
|
4568
|
+
readonly tag: "nav";
|
|
4569
|
+
readonly role: "nav";
|
|
4570
|
+
};
|
|
4571
|
+
readonly brand: {
|
|
4572
|
+
readonly t: "LinkedContainer";
|
|
4573
|
+
readonly es: "box";
|
|
4574
|
+
readonly href: "/";
|
|
4575
|
+
readonly role: "nav.brand";
|
|
4576
|
+
readonly c: readonly [{
|
|
4577
|
+
readonly t: "Heading";
|
|
4578
|
+
readonly es: "h3";
|
|
4579
|
+
readonly level: "h3";
|
|
4580
|
+
readonly slot: "brand";
|
|
4581
|
+
readonly max: 32;
|
|
4582
|
+
readonly fromBusiness: "name";
|
|
4583
|
+
}];
|
|
4584
|
+
};
|
|
4585
|
+
readonly links: {
|
|
4586
|
+
readonly t: "Container";
|
|
4587
|
+
readonly es: "box";
|
|
4588
|
+
readonly role: "nav.links";
|
|
4589
|
+
readonly lay: {
|
|
4590
|
+
readonly display: "flex";
|
|
4591
|
+
readonly flexWrap: "wrap";
|
|
4592
|
+
readonly gap: "var(--iox-space-gap)";
|
|
4593
|
+
readonly alignItems: "center";
|
|
4594
|
+
readonly width: "auto";
|
|
4595
|
+
};
|
|
4596
|
+
};
|
|
4597
|
+
readonly link: {
|
|
4598
|
+
readonly t: "Link";
|
|
4599
|
+
readonly es: "link";
|
|
4600
|
+
readonly each: "$navPages";
|
|
4601
|
+
readonly bind: "page.name";
|
|
4602
|
+
readonly href: "$page.route";
|
|
4603
|
+
readonly role: "nav.link";
|
|
4604
|
+
};
|
|
4605
|
+
readonly button: {
|
|
4606
|
+
readonly t: "ButtonBlock";
|
|
4607
|
+
readonly es: "button-primary";
|
|
4608
|
+
readonly href: "/contact";
|
|
4609
|
+
readonly slot: "cta";
|
|
4610
|
+
readonly max: 24;
|
|
4611
|
+
readonly text: "Get in touch";
|
|
4612
|
+
readonly role: "nav.cta";
|
|
4613
|
+
readonly textHe: "צרו קשר";
|
|
4614
|
+
};
|
|
4615
|
+
readonly quiet: {
|
|
4616
|
+
readonly t: "Link";
|
|
4617
|
+
readonly es: "link";
|
|
4618
|
+
readonly href: "/contact";
|
|
4619
|
+
readonly slot: "cta";
|
|
4620
|
+
readonly max: 24;
|
|
4621
|
+
readonly text: "Get in touch";
|
|
4622
|
+
readonly role: "nav.cta";
|
|
4623
|
+
readonly textHe: "צרו קשר";
|
|
4624
|
+
};
|
|
4625
|
+
readonly outlined: {
|
|
4626
|
+
readonly t: "ButtonBlock";
|
|
4627
|
+
readonly es: "button-secondary";
|
|
4628
|
+
readonly href: "$shop";
|
|
4629
|
+
readonly slot: "cta2";
|
|
4630
|
+
readonly max: 24;
|
|
4631
|
+
readonly text: "Shop";
|
|
4632
|
+
readonly role: "nav.cta";
|
|
4633
|
+
readonly textHe: "לחנות";
|
|
4634
|
+
};
|
|
4635
|
+
readonly pinned: {
|
|
4636
|
+
readonly t: "Container";
|
|
4637
|
+
readonly es: "box";
|
|
4638
|
+
readonly role: "nav.pinned";
|
|
4639
|
+
readonly lay: {
|
|
4640
|
+
readonly display: "flex";
|
|
4641
|
+
readonly flexWrap: "wrap";
|
|
4642
|
+
readonly gap: "var(--iox-space-gap)";
|
|
4643
|
+
readonly alignItems: "center";
|
|
4644
|
+
readonly width: "auto";
|
|
4645
|
+
};
|
|
4646
|
+
readonly c: readonly [{
|
|
4647
|
+
readonly t: "Link";
|
|
4648
|
+
readonly es: "link";
|
|
4649
|
+
readonly each: "$pinnedPages";
|
|
4650
|
+
readonly bind: "page.name";
|
|
4651
|
+
readonly href: "$page.route";
|
|
4652
|
+
}];
|
|
4653
|
+
};
|
|
4654
|
+
};
|
|
4564
4655
|
declare const SPEC_SITE_TEMPLATES: {
|
|
4565
4656
|
readonly studio: {
|
|
4566
4657
|
readonly id: "studio";
|
|
@@ -5875,26 +5966,6 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
5875
5966
|
readonly "phone.full": "a full-screen index on a phone";
|
|
5876
5967
|
};
|
|
5877
5968
|
readonly waits: {
|
|
5878
|
-
readonly "arrange.between": {
|
|
5879
|
-
readonly phase: "HI1";
|
|
5880
|
-
readonly drawnAs: "centred";
|
|
5881
|
-
};
|
|
5882
|
-
readonly "menuSide.start": {
|
|
5883
|
-
readonly phase: "HI1";
|
|
5884
|
-
readonly drawnAs: "end";
|
|
5885
|
-
};
|
|
5886
|
-
readonly "pages.menu-pinned": {
|
|
5887
|
-
readonly phase: "HI1";
|
|
5888
|
-
readonly drawnAs: "menu";
|
|
5889
|
-
};
|
|
5890
|
-
readonly "action.link": {
|
|
5891
|
-
readonly phase: "HI1";
|
|
5892
|
-
readonly drawnAs: "button";
|
|
5893
|
-
};
|
|
5894
|
-
readonly "action.two": {
|
|
5895
|
-
readonly phase: "HI1";
|
|
5896
|
-
readonly drawnAs: "button";
|
|
5897
|
-
};
|
|
5898
5969
|
readonly "menu.full": {
|
|
5899
5970
|
readonly phase: "HI2";
|
|
5900
5971
|
readonly drawnAs: "drawer";
|
|
@@ -5954,7 +6025,6 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
5954
6025
|
readonly "nav.inline-cta": {};
|
|
5955
6026
|
readonly "nav.centered-logo": {
|
|
5956
6027
|
readonly arrange: "centred";
|
|
5957
|
-
readonly action: "none";
|
|
5958
6028
|
};
|
|
5959
6029
|
};
|
|
5960
6030
|
readonly navKinds: {
|
|
@@ -5980,6 +6050,13 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
5980
6050
|
};
|
|
5981
6051
|
};
|
|
5982
6052
|
readonly fingerprint: readonly ["arrange", "pages", "menu", "ground", "shape"];
|
|
6053
|
+
readonly rules: {
|
|
6054
|
+
readonly menuMinLinks: 3;
|
|
6055
|
+
readonly pinnedMax: 1;
|
|
6056
|
+
readonly inlineRoomPx: 1100;
|
|
6057
|
+
readonly betweenNameEm: 7;
|
|
6058
|
+
readonly betweenMinPages: 2;
|
|
6059
|
+
};
|
|
5983
6060
|
readonly references: readonly [{
|
|
5984
6061
|
readonly id: "islands-hanging-logo";
|
|
5985
6062
|
readonly after: "Delta Cafés";
|
|
@@ -7753,6 +7830,370 @@ declare function assertValidSitePlan(plan: unknown): void;
|
|
|
7753
7830
|
*/
|
|
7754
7831
|
declare function archetypeIssues(plan: SitePlan): SitePlanIssue[];
|
|
7755
7832
|
|
|
7833
|
+
/**
|
|
7834
|
+
* The phone shapes of a navigation bar (complex-components plan CC1, §7a + R1; boards 1–3). ONE pure tree
|
|
7835
|
+
* edit, `planNavShape`, turns a site's header into the shape the author (the Navigation bar's "Phone
|
|
7836
|
+
* menu" section) or the composer (`nav.inline-cta`'s `phoneMenu`) asks for:
|
|
7837
|
+
*
|
|
7838
|
+
* - **Drawer** — a menu button in the header opens a slide-in Dialog at the end edge that lists every
|
|
7839
|
+
* page (board 1). The drawer is a child of the Navigation bar.
|
|
7840
|
+
* - **Bottom bar** — an app-style bar fixed to the bottom of the screen with up to five pages, no drawer
|
|
7841
|
+
* (board 2). The phone header keeps only the brand (Q4).
|
|
7842
|
+
* - **Both** — the bar with four pages and More, which opens the drawer; the drawer is then its own
|
|
7843
|
+
* global, beside the Navigation bar (board 2's layer tree).
|
|
7844
|
+
*
|
|
7845
|
+
* Every part is a real node with a `role` (R2): editable, selectable, styled by its element style. Parts
|
|
7846
|
+
* a shape keeps are passed through untouched, so an author's edits survive a change of shape; the parts
|
|
7847
|
+
* it no longer has are removed (undo brings them back — the caller records ONE history step). Nothing
|
|
7848
|
+
* here reads a clock or a random source: ids come from `newId` (deterministic by default, so the
|
|
7849
|
+
* composer's output is byte-stable).
|
|
7850
|
+
*/
|
|
7851
|
+
declare enum NavShape {
|
|
7852
|
+
Drawer = "drawer",
|
|
7853
|
+
Bar = "bar",
|
|
7854
|
+
Both = "both"
|
|
7855
|
+
}
|
|
7856
|
+
/** The roles of a navigation's parts (the composite plan's `role` field, here for the nav). */
|
|
7857
|
+
declare enum NavRole {
|
|
7858
|
+
Root = "nav",
|
|
7859
|
+
Brand = "nav.brand",
|
|
7860
|
+
Links = "nav.links",
|
|
7861
|
+
Link = "nav.link",
|
|
7862
|
+
Cta = "nav.cta",
|
|
7863
|
+
MenuButton = "nav.menu-button",
|
|
7864
|
+
Drawer = "nav.drawer",
|
|
7865
|
+
DrawerHead = "nav.drawer-head",
|
|
7866
|
+
DrawerClose = "nav.drawer-close",
|
|
7867
|
+
DrawerLinks = "nav.drawer-links",
|
|
7868
|
+
DrawerLink = "nav.drawer-link",
|
|
7869
|
+
DrawerCta = "nav.drawer-cta",
|
|
7870
|
+
Bar = "nav.bar",
|
|
7871
|
+
BarItem = "nav.bar-item",
|
|
7872
|
+
More = "nav.more",
|
|
7873
|
+
/** HI1: the page(s) a menu header keeps in the bar beside its menu button (`pages: menu-pinned`). */
|
|
7874
|
+
Pinned = "nav.pinned",
|
|
7875
|
+
/** HI1: the header's calls to action when its pages are behind the menu (they stay in the bar). */
|
|
7876
|
+
Actions = "nav.actions",
|
|
7877
|
+
/** HI1: one of the two equal sides of a header whose name is centred (`between`, `centred` behind a menu): its parts
|
|
7878
|
+
* are the header's own, hidden on a phone as the root's are. */
|
|
7879
|
+
Cell = "nav.cell"
|
|
7880
|
+
}
|
|
7881
|
+
/** HI-D15: the side a header's menu button sits on. */
|
|
7882
|
+
declare enum MenuSide {
|
|
7883
|
+
Start = "start",
|
|
7884
|
+
End = "end"
|
|
7885
|
+
}
|
|
7886
|
+
/** The breakpoints a phone menu may switch at (the responsive Breakpoint ids; Q5: Mobile landscape). */
|
|
7887
|
+
declare enum PhoneMenuBreakpoint {
|
|
7888
|
+
Tablet = "tablet",
|
|
7889
|
+
Mobile = "mobile",
|
|
7890
|
+
Small = "small"
|
|
7891
|
+
}
|
|
7892
|
+
declare const DEFAULT_PHONE_MENU_BREAKPOINT = PhoneMenuBreakpoint.Mobile;
|
|
7893
|
+
/** The bar's item count, More included (Q2: 3–5; iOS and Material both cap at five). */
|
|
7894
|
+
declare const BAR_ITEMS_MIN = 3;
|
|
7895
|
+
declare const BAR_ITEMS_MAX = 5;
|
|
7896
|
+
interface NavShapeOptions {
|
|
7897
|
+
/** Where the phone shape takes over (≤ this breakpoint). Default Mobile landscape (≤767). */
|
|
7898
|
+
at?: PhoneMenuBreakpoint | `${PhoneMenuBreakpoint}`;
|
|
7899
|
+
/** Items in the bar, More included (3–5). Default: 5 for Bottom bar, 4 + More for Both. */
|
|
7900
|
+
barItems?: number;
|
|
7901
|
+
/** A new part's id (the builder passes its id generator). Default: `<nav id>-<suffix>`. */
|
|
7902
|
+
newId?: (suffix: string) => string;
|
|
7903
|
+
/** The studio's pages, for a header that links to none (a hand-built one): its menu lists these. */
|
|
7904
|
+
pages?: ReadonlyArray<NavPage>;
|
|
7905
|
+
/** Header ingredients (header-ingredients-plan.md HI-D8): the menu button and its drawer at EVERY width — the header's
|
|
7906
|
+
* links and call to action are hidden at every width and the pages live in the drawer (a "name and menu" header).
|
|
7907
|
+
* Drawer only. Default: what the header already does (`menuAtEveryWidth`), else phone widths only. */
|
|
7908
|
+
everyWidth?: boolean;
|
|
7909
|
+
/** HI-D15: the menu button at the start or the end of the bar (or of the side cell there). Default: where it already
|
|
7910
|
+
* is, else the end. */
|
|
7911
|
+
menuSide?: MenuSide | `${MenuSide}`;
|
|
7912
|
+
}
|
|
7913
|
+
interface NavShapeResult {
|
|
7914
|
+
/** The globals after the edit (the Navigation bar edited in place, the drawer/bar added or removed). */
|
|
7915
|
+
globals: SerializedNode[];
|
|
7916
|
+
shape: NavShape;
|
|
7917
|
+
at: PhoneMenuBreakpoint;
|
|
7918
|
+
/** The menu button shows at every width (`NavShapeOptions.everyWidth`). */
|
|
7919
|
+
everyWidth: boolean;
|
|
7920
|
+
}
|
|
7921
|
+
declare class NavShapeError extends Error {
|
|
7922
|
+
}
|
|
7923
|
+
/** The words the parts carry — site copy, editable like any other (the composer writes English copy). */
|
|
7924
|
+
declare const NAV_SHAPE_COPY: {
|
|
7925
|
+
readonly menu: "Menu";
|
|
7926
|
+
readonly closeMenu: "Close menu";
|
|
7927
|
+
readonly more: "More";
|
|
7928
|
+
readonly home: "Home";
|
|
7929
|
+
};
|
|
7930
|
+
/** The layer names of the parts (R2: the tree, the breadcrumb and the toolbar read them). */
|
|
7931
|
+
declare const NAV_PART_LABELS: Readonly<Record<string, string>>;
|
|
7932
|
+
declare function barIconForRoute(route: string): string;
|
|
7933
|
+
/** One page the navigation links to, read off its links. */
|
|
7934
|
+
interface NavPage {
|
|
7935
|
+
label: string;
|
|
7936
|
+
route: string;
|
|
7937
|
+
}
|
|
7938
|
+
/** The Navigation bar: the global with the root role, else the first global wearing the `nav` style. */
|
|
7939
|
+
declare function findNavRoot(globals: ReadonlyArray<SerializedNode>, navId?: string | null): SerializedNode | null;
|
|
7940
|
+
/** The shape a site's globals are in now, or null when there is no Navigation bar. */
|
|
7941
|
+
declare function navShapeOf(globals: ReadonlyArray<SerializedNode>): NavShape | null;
|
|
7942
|
+
/** The breakpoint the phone shape takes over at, read off the header's links row (default Mobile). */
|
|
7943
|
+
declare function navShapeBreakpoint(globals: ReadonlyArray<SerializedNode>): PhoneMenuBreakpoint;
|
|
7944
|
+
/** The pages the header links to, in order: its Links (W1.1 — one plain Link per page in the navigation). */
|
|
7945
|
+
declare function navPages(root: SerializedNode): NavPage[];
|
|
7946
|
+
/** Where a phone menu's pages come from: the header's own page Links, else the studio's pages. */
|
|
7947
|
+
declare enum NavPagesSource {
|
|
7948
|
+
Header = "header",
|
|
7949
|
+
Site = "site",
|
|
7950
|
+
None = "none"
|
|
7951
|
+
}
|
|
7952
|
+
/** The pages a phone menu lists: the header's (`navPages`), else `sitePages` — a hand-built header with no
|
|
7953
|
+
* page links still gets a working menu. */
|
|
7954
|
+
declare function phoneMenuPages(root: SerializedNode, sitePages?: ReadonlyArray<NavPage>): {
|
|
7955
|
+
pages: NavPage[];
|
|
7956
|
+
source: NavPagesSource;
|
|
7957
|
+
};
|
|
7958
|
+
/** Does the header show its menu button at every width (a "name and menu" header)? Read from the button itself, so a
|
|
7959
|
+
* later change of shape or breakpoint keeps it. */
|
|
7960
|
+
declare function menuAtEveryWidth(globals: ReadonlyArray<SerializedNode>, navId?: string | null): boolean;
|
|
7961
|
+
/**
|
|
7962
|
+
* Put a site's header into `shape`. The Navigation bar is `navId` or the global carrying the root role
|
|
7963
|
+
* (else the first Container wearing `nav`, which this then marks with roles). Returns new globals;
|
|
7964
|
+
* the input is not mutated.
|
|
7965
|
+
*/
|
|
7966
|
+
declare function planNavShape(globals: ReadonlyArray<SerializedNode>, shape: NavShape, options?: NavShapeOptions, navId?: string | null): NavShapeResult;
|
|
7967
|
+
interface AddBarItemResult {
|
|
7968
|
+
globals: SerializedNode[];
|
|
7969
|
+
/** False when the bar is full (5 items, More included — Q2) or there is no bar. */
|
|
7970
|
+
added: boolean;
|
|
7971
|
+
}
|
|
7972
|
+
/**
|
|
7973
|
+
* The bar's Items list "Add item" (board 2): one more item, before More — the next navigation page the
|
|
7974
|
+
* bar does not link to yet (Home when every page is there). Refused at five (Q2). Input not mutated.
|
|
7975
|
+
*/
|
|
7976
|
+
declare function addBarItem(globals: ReadonlyArray<SerializedNode>, options?: Pick<NavShapeOptions, 'newId' | 'pages'>): AddBarItemResult;
|
|
7977
|
+
interface BarItemsEditResult {
|
|
7978
|
+
globals: SerializedNode[];
|
|
7979
|
+
/** False when nothing changed: no bar, an unknown item, or the bar would drop below three items (Q2). */
|
|
7980
|
+
changed: boolean;
|
|
7981
|
+
}
|
|
7982
|
+
/**
|
|
7983
|
+
* The bar's Items list "Remove" (board 2): the item goes, More included — refused below three items (Q2:
|
|
7984
|
+
* 3–5), so the bar never shrinks into something a thumb cannot use. Input not mutated.
|
|
7985
|
+
*/
|
|
7986
|
+
declare function removeBarItem(globals: ReadonlyArray<SerializedNode>, itemId: string): BarItemsEditResult;
|
|
7987
|
+
/** The bar's Items list drag-to-reorder (board 2): item `from` moves to `to`. Input not mutated. */
|
|
7988
|
+
declare function moveBarItem(globals: ReadonlyArray<SerializedNode>, from: number, to: number): BarItemsEditResult;
|
|
7989
|
+
|
|
7990
|
+
/** The ingredients, by the contract's keys (held equal to it by header-mix.spec). */
|
|
7991
|
+
declare enum HeaderIngredient {
|
|
7992
|
+
Arrange = "arrange",
|
|
7993
|
+
MenuSide = "menuSide",
|
|
7994
|
+
Pages = "pages",
|
|
7995
|
+
Menu = "menu",
|
|
7996
|
+
MenuShows = "menuShows",
|
|
7997
|
+
Action = "action",
|
|
7998
|
+
Ground = "ground",
|
|
7999
|
+
Shape = "shape",
|
|
8000
|
+
Brand = "brand",
|
|
8001
|
+
Scroll = "scroll",
|
|
8002
|
+
Edge = "edge",
|
|
8003
|
+
Phone = "phone"
|
|
8004
|
+
}
|
|
8005
|
+
declare enum HeaderArrange {
|
|
8006
|
+
Split = "split",
|
|
8007
|
+
Centred = "centred",
|
|
8008
|
+
Between = "between",
|
|
8009
|
+
NameOnly = "name-only"
|
|
8010
|
+
}
|
|
8011
|
+
declare enum HeaderPages {
|
|
8012
|
+
Inline = "inline",
|
|
8013
|
+
Menu = "menu",
|
|
8014
|
+
MenuPinned = "menu-pinned"
|
|
8015
|
+
}
|
|
8016
|
+
declare enum HeaderAction {
|
|
8017
|
+
None = "none",
|
|
8018
|
+
Button = "button",
|
|
8019
|
+
Link = "link",
|
|
8020
|
+
Two = "two"
|
|
8021
|
+
}
|
|
8022
|
+
/** One word per ingredient. */
|
|
8023
|
+
type HeaderMix = Record<`${HeaderIngredient}`, string>;
|
|
8024
|
+
declare class HeaderMixError extends Error {
|
|
8025
|
+
}
|
|
8026
|
+
/** The header pattern a plan names when it names none the table knows (the Studio header). */
|
|
8027
|
+
declare const DEFAULT_HEADER_PATTERN = "nav.inline-cta";
|
|
8028
|
+
/** The words an ingredient may take. */
|
|
8029
|
+
declare function headerWords(ingredient: `${HeaderIngredient}`): ReadonlyArray<string>;
|
|
8030
|
+
/** What a word means, as the brief and the builder say it. */
|
|
8031
|
+
declare function headerMeaning(ingredient: `${HeaderIngredient}`, word: string): string;
|
|
8032
|
+
/** A whole mix from part of one: what is not named is the default (the Studio header). Refuses a word the table lacks. */
|
|
8033
|
+
declare function headerMix(partial?: Partial<HeaderMix>): HeaderMix;
|
|
8034
|
+
/** The mix a stored header pattern id stands for (`nav.inline-cta`, `nav.centered-logo`), or null for an unknown id. */
|
|
8035
|
+
declare function namedHeaderMix(patternId: string): HeaderMix | null;
|
|
8036
|
+
/** The mix a CL2 layout's `nav.kind` asks for (`bar` when it names none). */
|
|
8037
|
+
declare function headerMixOfNavKind(kind: string | undefined): HeaderMix;
|
|
8038
|
+
/** A word the product does not draw yet, with the phase it waits for and what is drawn instead. */
|
|
8039
|
+
interface HeaderGap {
|
|
8040
|
+
ingredient: `${HeaderIngredient}`;
|
|
8041
|
+
word: string;
|
|
8042
|
+
phase: string;
|
|
8043
|
+
drawnAs: string;
|
|
8044
|
+
}
|
|
8045
|
+
/** The mix the product DRAWS today: every waiting word becomes its built stand-in, and each one is said as a gap. */
|
|
8046
|
+
declare function drawnHeaderMix(mix: HeaderMix): {
|
|
8047
|
+
drawn: HeaderMix;
|
|
8048
|
+
gaps: HeaderGap[];
|
|
8049
|
+
};
|
|
8050
|
+
/** The fingerprint's prefix for a header. */
|
|
8051
|
+
declare const HEADER_TOKEN = "header";
|
|
8052
|
+
/** A header as the fingerprint sees it (§7): `header:<arrange>/<pages>/<menu>/<ground>/<shape>` — what a visitor takes in
|
|
8053
|
+
* at once, in the contract's order. Two sites with the same token wear the same header. */
|
|
8054
|
+
declare function headerTokenOf(mix: HeaderMix): string;
|
|
8055
|
+
/** A header token in words: `header:name-only/menu/drawer/solid/bar` → "name-only · menu · drawer · solid · bar". */
|
|
8056
|
+
declare const headerTokenWords: (token: string) => string;
|
|
8057
|
+
/** Doron's reference headers (§2b), each as a whole mix. */
|
|
8058
|
+
declare function headerReferences(): ReadonlyArray<{
|
|
8059
|
+
id: string;
|
|
8060
|
+
after: string;
|
|
8061
|
+
added: string;
|
|
8062
|
+
mix: HeaderMix;
|
|
8063
|
+
}>;
|
|
8064
|
+
/** The site plan's header as a mix: its `mixes.header` when it has one (HI1), else its `globals.header` pattern read as a
|
|
8065
|
+
* named mix (HI-D4), else the Studio header. */
|
|
8066
|
+
declare function headerMixOfPlan(plan: {
|
|
8067
|
+
readonly globals?: Readonly<Record<string, string>>;
|
|
8068
|
+
readonly mixes?: {
|
|
8069
|
+
readonly header?: ReadonlyArray<string>;
|
|
8070
|
+
};
|
|
8071
|
+
}): HeaderMix;
|
|
8072
|
+
/** A mix on the wire: one `<ingredient>:<word>` per ingredient, in the table's order. */
|
|
8073
|
+
declare function headerMixWords(mix: HeaderMix): string[];
|
|
8074
|
+
/** Every `<ingredient>:<word>` the wire may carry: only the words the product DRAWS (ingredients.md §3) — a waiting word
|
|
8075
|
+
* is never offered, so the model never chooses what the site would show as something else. */
|
|
8076
|
+
declare function headerWireWords(): string[];
|
|
8077
|
+
/** The words back into a mix: an ingredient not named is the default. Refuses an unknown word and two words for one
|
|
8078
|
+
* ingredient. */
|
|
8079
|
+
declare function headerMixFromWords(words: ReadonlyArray<string>): HeaderMix;
|
|
8080
|
+
/** The stored header pattern a mix is exactly (`nav.inline-cta`, `nav.centered-logo`), else null. */
|
|
8081
|
+
declare function headerPatternIdOf(mix: HeaderMix): string | null;
|
|
8082
|
+
declare enum HeaderRepairCode {
|
|
8083
|
+
/** A name-and-menu header has its pages behind the menu. */
|
|
8084
|
+
NameOnlyInline = "name-only-inline",
|
|
8085
|
+
/** The name at the start with the pages behind a menu IS the name-and-menu header. */
|
|
8086
|
+
SplitMenu = "split-menu",
|
|
8087
|
+
/** Pages either side of the name are pages in the bar: behind a menu the name is centred. */
|
|
8088
|
+
BetweenMenu = "between-menu",
|
|
8089
|
+
/** A menu for so few pages is a detour: they go in the bar. */
|
|
8090
|
+
FewPages = "few-pages",
|
|
8091
|
+
/** The pages do not fit beside the name on a laptop: they go behind a menu. */
|
|
8092
|
+
TooManyPages = "too-many-pages",
|
|
8093
|
+
/** The name is too long, or the pages too few, to sit between two halves: the name is centred above them. */
|
|
8094
|
+
BetweenUnbalanced = "between-unbalanced",
|
|
8095
|
+
/** Two actions need two destinations (the contact page and the shop): one button. */
|
|
8096
|
+
OneDestination = "one-destination",
|
|
8097
|
+
/** Another site already wears this header: the nearest free one (`distinctHeader`). */
|
|
8098
|
+
Worn = "worn"
|
|
8099
|
+
}
|
|
8100
|
+
interface HeaderRepair {
|
|
8101
|
+
code: HeaderRepairCode;
|
|
8102
|
+
/** In plain words, for the wizard and the model's next turn. */
|
|
8103
|
+
said: string;
|
|
8104
|
+
}
|
|
8105
|
+
/** A page the header links to (a page in the navigation, never Home — the name links there). */
|
|
8106
|
+
interface HeaderPage {
|
|
8107
|
+
readonly name: string;
|
|
8108
|
+
readonly route: string;
|
|
8109
|
+
}
|
|
8110
|
+
/** What the check and the recipe need of the site. */
|
|
8111
|
+
interface HeaderContext {
|
|
8112
|
+
readonly name: string;
|
|
8113
|
+
readonly design: DesignChoices;
|
|
8114
|
+
/** The pages in the navigation, in order. */
|
|
8115
|
+
readonly pages: ReadonlyArray<HeaderPage>;
|
|
8116
|
+
/** The shop's page when the site sells (the second action, and the page a shop pins — HI-D16). */
|
|
8117
|
+
readonly shop?: string | null;
|
|
8118
|
+
}
|
|
8119
|
+
/**
|
|
8120
|
+
* The ONE judge of a header mix against the site (§3): what the site cannot carry is mended to the nearest mix that it
|
|
8121
|
+
* can, and each mend is said. Judges the mix as DRAWN (`drawnHeaderMix` first). Never throws on a well-formed mix. Pure.
|
|
8122
|
+
*/
|
|
8123
|
+
declare function checkHeader(mix: HeaderMix, ctx: HeaderContext): {
|
|
8124
|
+
mix: HeaderMix;
|
|
8125
|
+
repairs: HeaderRepair[];
|
|
8126
|
+
};
|
|
8127
|
+
/** The page(s) a menu header keeps in the bar (HI-D16): a selling site's shop, else its first page. */
|
|
8128
|
+
declare function pinnedPagesOf(ctx: HeaderContext): HeaderPage[];
|
|
8129
|
+
/** What the composer stamps for a header mix: the pattern, its phone shape and where its menu button sits. Check it first
|
|
8130
|
+
* (`checkHeader` on the drawn mix). */
|
|
8131
|
+
interface HeaderRecipe {
|
|
8132
|
+
pattern: SitePattern;
|
|
8133
|
+
/** The pages are behind a menu at every width (HI-D8). */
|
|
8134
|
+
everyWidth: boolean;
|
|
8135
|
+
menuSide: MenuSide;
|
|
8136
|
+
}
|
|
8137
|
+
/** A header mix as a pattern: what the composer stamps as the site's header (global, before the page). A mix that IS a
|
|
8138
|
+
* stored header (`nav.inline-cta`, `nav.centered-logo`) composes byte-identical to it (R-H4). Pure. */
|
|
8139
|
+
declare function headerRecipe(mix: HeaderMix, ctx: HeaderContext): HeaderRecipe;
|
|
8140
|
+
/**
|
|
8141
|
+
* A header no other site wears: the mix when its token is free, else the nearest mix whose token is — one changed
|
|
8142
|
+
* ingredient before two, in `MEND_ORDER` — that the site can carry as it is (`checkHeader` mends nothing), and said. When
|
|
8143
|
+
* every header is worn, the mix as it is. Pure, deterministic.
|
|
8144
|
+
*/
|
|
8145
|
+
declare function distinctHeader(mix: HeaderMix, taken: ReadonlyArray<string>, ctx: HeaderContext): {
|
|
8146
|
+
mix: HeaderMix;
|
|
8147
|
+
repairs: HeaderRepair[];
|
|
8148
|
+
};
|
|
8149
|
+
type HeaderPlan = {
|
|
8150
|
+
readonly business: {
|
|
8151
|
+
readonly name: string;
|
|
8152
|
+
};
|
|
8153
|
+
readonly design?: Readonly<Partial<DesignChoices>>;
|
|
8154
|
+
readonly pages: ReadonlyArray<{
|
|
8155
|
+
readonly name: string;
|
|
8156
|
+
readonly route: string;
|
|
8157
|
+
readonly inNav?: boolean;
|
|
8158
|
+
readonly isHome?: boolean;
|
|
8159
|
+
readonly sections?: ReadonlyArray<{
|
|
8160
|
+
readonly binding?: string;
|
|
8161
|
+
}>;
|
|
8162
|
+
}>;
|
|
8163
|
+
};
|
|
8164
|
+
/** The shop's page of a selling plan: the page in the navigation that lists the store's products (else null). */
|
|
8165
|
+
declare function shopPageOfPlan(plan: HeaderPlan): string | null;
|
|
8166
|
+
/** The header context of a plan: its name, its look, its pages in the navigation and its shop page (found in the plan
|
|
8167
|
+
* when not given). */
|
|
8168
|
+
declare function headerContextOfPlan(plan: HeaderPlan, shop?: string | null): HeaderContext;
|
|
8169
|
+
/**
|
|
8170
|
+
* The header a plan's site WEARS (ONE rule for the composer, the fingerprint and the distinct check): its mix as the
|
|
8171
|
+
* product draws it, judged against the site when the mix was chosen (`mixes.header`) — a stored header pattern (no mix)
|
|
8172
|
+
* is worn as it always was (R-H4). With what was drawn as something else or mended, in words. Pure.
|
|
8173
|
+
*/
|
|
8174
|
+
declare function wornHeaderOfPlan(plan: HeaderPlan & {
|
|
8175
|
+
readonly globals?: Readonly<Record<string, string>>;
|
|
8176
|
+
readonly mixes?: {
|
|
8177
|
+
readonly header?: ReadonlyArray<string>;
|
|
8178
|
+
};
|
|
8179
|
+
}): {
|
|
8180
|
+
mix: HeaderMix;
|
|
8181
|
+
context: HeaderContext;
|
|
8182
|
+
said: string[];
|
|
8183
|
+
};
|
|
8184
|
+
/** A plan's header made distinct (R-H2): `distinctHeader` over the plan's own mix as drawn and checked; the plan unchanged
|
|
8185
|
+
* when nothing was mended, else with the new mix in `mixes.header`. Pure. */
|
|
8186
|
+
declare function withDistinctHeader<P extends HeaderPlan & {
|
|
8187
|
+
readonly globals?: Readonly<Record<string, string>>;
|
|
8188
|
+
readonly mixes?: {
|
|
8189
|
+
readonly header?: ReadonlyArray<string>;
|
|
8190
|
+
readonly footer?: ReadonlyArray<string>;
|
|
8191
|
+
};
|
|
8192
|
+
}>(plan: P, taken: ReadonlyArray<string>): {
|
|
8193
|
+
plan: P;
|
|
8194
|
+
repairs: HeaderRepair[];
|
|
8195
|
+
};
|
|
8196
|
+
|
|
7756
8197
|
/**
|
|
7757
8198
|
* THE layout composer (premium components M8, gate 1): a page written in the layout language (`layout-language.ts`) in,
|
|
7758
8199
|
* ordinary builder nodes out — the same `createSerializedNode` every composed page is made of, so the builder reloads it
|
|
@@ -7948,7 +8389,10 @@ declare enum ComposeIssueCode {
|
|
|
7948
8389
|
* plain Container and loses only the link. */
|
|
7949
8390
|
LinkUnlinked = "link-unlinked",
|
|
7950
8391
|
/** LI5: the footer's mix broke one of its table's rules and was mended (`checkFooter`): the detail says how. */
|
|
7951
|
-
FooterMended = "footer-mended"
|
|
8392
|
+
FooterMended = "footer-mended",
|
|
8393
|
+
/** HI1: the header's mix asked for what the site cannot carry (`checkHeader`), or for a word the product does not draw
|
|
8394
|
+
* yet (drawn as its stand-in): the detail says how. */
|
|
8395
|
+
HeaderMended = "header-mended"
|
|
7952
8396
|
}
|
|
7953
8397
|
/** The issues that are a dangling link (a route the plan has no page for) and what was done about it. */
|
|
7954
8398
|
declare const DANGLING_LINK_CODES: ReadonlySet<ComposeIssueCode>;
|
|
@@ -8114,6 +8558,13 @@ declare const SIGN_IN_DIALOG_ID = "sign-in";
|
|
|
8114
8558
|
* composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
|
|
8115
8559
|
*/
|
|
8116
8560
|
declare function composeSite(plan: SitePlan, context: ComposeContext): ComposedSite;
|
|
8561
|
+
/** A plan's header (HI1): its mix as the product draws it, checked against the site, and the recipe to stamp — with what
|
|
8562
|
+
* was mended or drawn as something else, in words. */
|
|
8563
|
+
declare function planHeader(plan: SitePlan): {
|
|
8564
|
+
recipe: HeaderRecipe;
|
|
8565
|
+
context: HeaderContext;
|
|
8566
|
+
said: string[];
|
|
8567
|
+
};
|
|
8117
8568
|
/** The header pattern the Studio template stamps — and the builder palette's "Navigation bar". */
|
|
8118
8569
|
declare const SITE_HEADER_PATTERN = "nav.inline-cta";
|
|
8119
8570
|
/** A page of the studio as the builder lists it. */
|
|
@@ -8129,6 +8580,15 @@ interface NavHeaderInput {
|
|
|
8129
8580
|
readonly pages: ReadonlyArray<SitePageRef>;
|
|
8130
8581
|
/** The site's language (`SiteLocale`): the header's own words (its call to action) in it. English when not given. */
|
|
8131
8582
|
readonly locale?: string;
|
|
8583
|
+
/** HI1: the header's mix (the palette's arrangement presets, Bindings ▸ Header). The Studio header when not given. */
|
|
8584
|
+
readonly mix?: HeaderMix;
|
|
8585
|
+
/** HI1: the look the header is measured in (`checkHeader`). The default look when not given. */
|
|
8586
|
+
readonly design?: Readonly<Partial<DesignChoices>>;
|
|
8587
|
+
/** HI1: the studio's shop page, when it sells (the second action; the page a menu header pins). */
|
|
8588
|
+
readonly shop?: string | null;
|
|
8589
|
+
/** HI1: draw the mix as asked, never repaired — the layout language's header, whose links are its SECTIONS (a corner
|
|
8590
|
+
* header with two section links is still the name and a menu, HI0). */
|
|
8591
|
+
readonly asAsked?: boolean;
|
|
8132
8592
|
}
|
|
8133
8593
|
interface NavHeaderOptions {
|
|
8134
8594
|
/** The header's id; its parts' ids derive from it (`<id>-0-1-…`), so a fresh id gives fresh parts. */
|
|
@@ -8140,6 +8600,8 @@ interface ComposedNavHeader {
|
|
|
8140
8600
|
/** The header — a global BEFORE element — carrying the pattern's phone shape (the drawer). */
|
|
8141
8601
|
header: SerializedNode;
|
|
8142
8602
|
issues: ComposeIssue[];
|
|
8603
|
+
/** HI1: the mix it was composed as, after the site's check (what Bindings ▸ Header shows). */
|
|
8604
|
+
mix: HeaderMix;
|
|
8143
8605
|
}
|
|
8144
8606
|
/** The pages a navigation links to: every page but Home (the brand links there) and template pages
|
|
8145
8607
|
* (a `/work/:slug` route has no single address), in the studio's order. */
|
|
@@ -8177,148 +8639,6 @@ interface ComposedSection {
|
|
|
8177
8639
|
*/
|
|
8178
8640
|
declare function composeSection(patternId: string, input: SectionInput, options: SectionOptions): ComposedSection;
|
|
8179
8641
|
|
|
8180
|
-
/**
|
|
8181
|
-
* The phone shapes of a navigation bar (complex-components plan CC1, §7a + R1; boards 1–3). ONE pure tree
|
|
8182
|
-
* edit, `planNavShape`, turns a site's header into the shape the author (the Navigation bar's "Phone
|
|
8183
|
-
* menu" section) or the composer (`nav.inline-cta`'s `phoneMenu`) asks for:
|
|
8184
|
-
*
|
|
8185
|
-
* - **Drawer** — a menu button in the header opens a slide-in Dialog at the end edge that lists every
|
|
8186
|
-
* page (board 1). The drawer is a child of the Navigation bar.
|
|
8187
|
-
* - **Bottom bar** — an app-style bar fixed to the bottom of the screen with up to five pages, no drawer
|
|
8188
|
-
* (board 2). The phone header keeps only the brand (Q4).
|
|
8189
|
-
* - **Both** — the bar with four pages and More, which opens the drawer; the drawer is then its own
|
|
8190
|
-
* global, beside the Navigation bar (board 2's layer tree).
|
|
8191
|
-
*
|
|
8192
|
-
* Every part is a real node with a `role` (R2): editable, selectable, styled by its element style. Parts
|
|
8193
|
-
* a shape keeps are passed through untouched, so an author's edits survive a change of shape; the parts
|
|
8194
|
-
* it no longer has are removed (undo brings them back — the caller records ONE history step). Nothing
|
|
8195
|
-
* here reads a clock or a random source: ids come from `newId` (deterministic by default, so the
|
|
8196
|
-
* composer's output is byte-stable).
|
|
8197
|
-
*/
|
|
8198
|
-
declare enum NavShape {
|
|
8199
|
-
Drawer = "drawer",
|
|
8200
|
-
Bar = "bar",
|
|
8201
|
-
Both = "both"
|
|
8202
|
-
}
|
|
8203
|
-
/** The roles of a navigation's parts (the composite plan's `role` field, here for the nav). */
|
|
8204
|
-
declare enum NavRole {
|
|
8205
|
-
Root = "nav",
|
|
8206
|
-
Brand = "nav.brand",
|
|
8207
|
-
Links = "nav.links",
|
|
8208
|
-
Link = "nav.link",
|
|
8209
|
-
Cta = "nav.cta",
|
|
8210
|
-
MenuButton = "nav.menu-button",
|
|
8211
|
-
Drawer = "nav.drawer",
|
|
8212
|
-
DrawerHead = "nav.drawer-head",
|
|
8213
|
-
DrawerClose = "nav.drawer-close",
|
|
8214
|
-
DrawerLinks = "nav.drawer-links",
|
|
8215
|
-
DrawerLink = "nav.drawer-link",
|
|
8216
|
-
DrawerCta = "nav.drawer-cta",
|
|
8217
|
-
Bar = "nav.bar",
|
|
8218
|
-
BarItem = "nav.bar-item",
|
|
8219
|
-
More = "nav.more"
|
|
8220
|
-
}
|
|
8221
|
-
/** The breakpoints a phone menu may switch at (the responsive Breakpoint ids; Q5: Mobile landscape). */
|
|
8222
|
-
declare enum PhoneMenuBreakpoint {
|
|
8223
|
-
Tablet = "tablet",
|
|
8224
|
-
Mobile = "mobile",
|
|
8225
|
-
Small = "small"
|
|
8226
|
-
}
|
|
8227
|
-
declare const DEFAULT_PHONE_MENU_BREAKPOINT = PhoneMenuBreakpoint.Mobile;
|
|
8228
|
-
/** The bar's item count, More included (Q2: 3–5; iOS and Material both cap at five). */
|
|
8229
|
-
declare const BAR_ITEMS_MIN = 3;
|
|
8230
|
-
declare const BAR_ITEMS_MAX = 5;
|
|
8231
|
-
interface NavShapeOptions {
|
|
8232
|
-
/** Where the phone shape takes over (≤ this breakpoint). Default Mobile landscape (≤767). */
|
|
8233
|
-
at?: PhoneMenuBreakpoint | `${PhoneMenuBreakpoint}`;
|
|
8234
|
-
/** Items in the bar, More included (3–5). Default: 5 for Bottom bar, 4 + More for Both. */
|
|
8235
|
-
barItems?: number;
|
|
8236
|
-
/** A new part's id (the builder passes its id generator). Default: `<nav id>-<suffix>`. */
|
|
8237
|
-
newId?: (suffix: string) => string;
|
|
8238
|
-
/** The studio's pages, for a header that links to none (a hand-built one): its menu lists these. */
|
|
8239
|
-
pages?: ReadonlyArray<NavPage>;
|
|
8240
|
-
/** Header ingredients (header-ingredients-plan.md HI-D8): the menu button and its drawer at EVERY width — the header's
|
|
8241
|
-
* links and call to action are hidden at every width and the pages live in the drawer (a "name and menu" header).
|
|
8242
|
-
* Drawer only. Default: what the header already does (`menuAtEveryWidth`), else phone widths only. */
|
|
8243
|
-
everyWidth?: boolean;
|
|
8244
|
-
}
|
|
8245
|
-
interface NavShapeResult {
|
|
8246
|
-
/** The globals after the edit (the Navigation bar edited in place, the drawer/bar added or removed). */
|
|
8247
|
-
globals: SerializedNode[];
|
|
8248
|
-
shape: NavShape;
|
|
8249
|
-
at: PhoneMenuBreakpoint;
|
|
8250
|
-
/** The menu button shows at every width (`NavShapeOptions.everyWidth`). */
|
|
8251
|
-
everyWidth: boolean;
|
|
8252
|
-
}
|
|
8253
|
-
declare class NavShapeError extends Error {
|
|
8254
|
-
}
|
|
8255
|
-
/** The words the parts carry — site copy, editable like any other (the composer writes English copy). */
|
|
8256
|
-
declare const NAV_SHAPE_COPY: {
|
|
8257
|
-
readonly menu: "Menu";
|
|
8258
|
-
readonly closeMenu: "Close menu";
|
|
8259
|
-
readonly more: "More";
|
|
8260
|
-
readonly home: "Home";
|
|
8261
|
-
};
|
|
8262
|
-
/** The layer names of the parts (R2: the tree, the breadcrumb and the toolbar read them). */
|
|
8263
|
-
declare const NAV_PART_LABELS: Readonly<Record<string, string>>;
|
|
8264
|
-
declare function barIconForRoute(route: string): string;
|
|
8265
|
-
/** One page the navigation links to, read off its links. */
|
|
8266
|
-
interface NavPage {
|
|
8267
|
-
label: string;
|
|
8268
|
-
route: string;
|
|
8269
|
-
}
|
|
8270
|
-
/** The Navigation bar: the global with the root role, else the first global wearing the `nav` style. */
|
|
8271
|
-
declare function findNavRoot(globals: ReadonlyArray<SerializedNode>, navId?: string | null): SerializedNode | null;
|
|
8272
|
-
/** The shape a site's globals are in now, or null when there is no Navigation bar. */
|
|
8273
|
-
declare function navShapeOf(globals: ReadonlyArray<SerializedNode>): NavShape | null;
|
|
8274
|
-
/** The breakpoint the phone shape takes over at, read off the header's links row (default Mobile). */
|
|
8275
|
-
declare function navShapeBreakpoint(globals: ReadonlyArray<SerializedNode>): PhoneMenuBreakpoint;
|
|
8276
|
-
/** The pages the header links to, in order: its Links (W1.1 — one plain Link per page in the navigation). */
|
|
8277
|
-
declare function navPages(root: SerializedNode): NavPage[];
|
|
8278
|
-
/** Where a phone menu's pages come from: the header's own page Links, else the studio's pages. */
|
|
8279
|
-
declare enum NavPagesSource {
|
|
8280
|
-
Header = "header",
|
|
8281
|
-
Site = "site",
|
|
8282
|
-
None = "none"
|
|
8283
|
-
}
|
|
8284
|
-
/** The pages a phone menu lists: the header's (`navPages`), else `sitePages` — a hand-built header with no
|
|
8285
|
-
* page links still gets a working menu. */
|
|
8286
|
-
declare function phoneMenuPages(root: SerializedNode, sitePages?: ReadonlyArray<NavPage>): {
|
|
8287
|
-
pages: NavPage[];
|
|
8288
|
-
source: NavPagesSource;
|
|
8289
|
-
};
|
|
8290
|
-
/** Does the header show its menu button at every width (a "name and menu" header)? Read from the button itself, so a
|
|
8291
|
-
* later change of shape or breakpoint keeps it. */
|
|
8292
|
-
declare function menuAtEveryWidth(globals: ReadonlyArray<SerializedNode>, navId?: string | null): boolean;
|
|
8293
|
-
/**
|
|
8294
|
-
* Put a site's header into `shape`. The Navigation bar is `navId` or the global carrying the root role
|
|
8295
|
-
* (else the first Container wearing `nav`, which this then marks with roles). Returns new globals;
|
|
8296
|
-
* the input is not mutated.
|
|
8297
|
-
*/
|
|
8298
|
-
declare function planNavShape(globals: ReadonlyArray<SerializedNode>, shape: NavShape, options?: NavShapeOptions, navId?: string | null): NavShapeResult;
|
|
8299
|
-
interface AddBarItemResult {
|
|
8300
|
-
globals: SerializedNode[];
|
|
8301
|
-
/** False when the bar is full (5 items, More included — Q2) or there is no bar. */
|
|
8302
|
-
added: boolean;
|
|
8303
|
-
}
|
|
8304
|
-
/**
|
|
8305
|
-
* The bar's Items list "Add item" (board 2): one more item, before More — the next navigation page the
|
|
8306
|
-
* bar does not link to yet (Home when every page is there). Refused at five (Q2). Input not mutated.
|
|
8307
|
-
*/
|
|
8308
|
-
declare function addBarItem(globals: ReadonlyArray<SerializedNode>, options?: Pick<NavShapeOptions, 'newId' | 'pages'>): AddBarItemResult;
|
|
8309
|
-
interface BarItemsEditResult {
|
|
8310
|
-
globals: SerializedNode[];
|
|
8311
|
-
/** False when nothing changed: no bar, an unknown item, or the bar would drop below three items (Q2). */
|
|
8312
|
-
changed: boolean;
|
|
8313
|
-
}
|
|
8314
|
-
/**
|
|
8315
|
-
* The bar's Items list "Remove" (board 2): the item goes, More included — refused below three items (Q2:
|
|
8316
|
-
* 3–5), so the bar never shrinks into something a thumb cannot use. Input not mutated.
|
|
8317
|
-
*/
|
|
8318
|
-
declare function removeBarItem(globals: ReadonlyArray<SerializedNode>, itemId: string): BarItemsEditResult;
|
|
8319
|
-
/** The bar's Items list drag-to-reorder (board 2): item `from` moves to `to`. Input not mutated. */
|
|
8320
|
-
declare function moveBarItem(globals: ReadonlyArray<SerializedNode>, from: number, to: number): BarItemsEditResult;
|
|
8321
|
-
|
|
8322
8642
|
/**
|
|
8323
8643
|
* What each page of a plan shows and where its data comes from (AI plan rev 3 §3d, `describePlanData`) — the
|
|
8324
8644
|
* Plan step's data lines, in the vocabulary the builder already uses. Pure and STRUCTURED: the screen words
|
|
@@ -11088,67 +11408,6 @@ declare function withDistinctFooter<P extends {
|
|
|
11088
11408
|
repairs: FooterRepair[];
|
|
11089
11409
|
};
|
|
11090
11410
|
|
|
11091
|
-
/** The ingredients, by the contract's keys (held equal to it by header-mix.spec). */
|
|
11092
|
-
declare enum HeaderIngredient {
|
|
11093
|
-
Arrange = "arrange",
|
|
11094
|
-
MenuSide = "menuSide",
|
|
11095
|
-
Pages = "pages",
|
|
11096
|
-
Menu = "menu",
|
|
11097
|
-
MenuShows = "menuShows",
|
|
11098
|
-
Action = "action",
|
|
11099
|
-
Ground = "ground",
|
|
11100
|
-
Shape = "shape",
|
|
11101
|
-
Brand = "brand",
|
|
11102
|
-
Scroll = "scroll",
|
|
11103
|
-
Edge = "edge",
|
|
11104
|
-
Phone = "phone"
|
|
11105
|
-
}
|
|
11106
|
-
/** One word per ingredient. */
|
|
11107
|
-
type HeaderMix = Record<`${HeaderIngredient}`, string>;
|
|
11108
|
-
declare class HeaderMixError extends Error {
|
|
11109
|
-
}
|
|
11110
|
-
/** The words an ingredient may take. */
|
|
11111
|
-
declare function headerWords(ingredient: `${HeaderIngredient}`): ReadonlyArray<string>;
|
|
11112
|
-
/** What a word means, as the brief and the builder say it. */
|
|
11113
|
-
declare function headerMeaning(ingredient: `${HeaderIngredient}`, word: string): string;
|
|
11114
|
-
/** A whole mix from part of one: what is not named is the default (the Studio header). Refuses a word the table lacks. */
|
|
11115
|
-
declare function headerMix(partial?: Partial<HeaderMix>): HeaderMix;
|
|
11116
|
-
/** The mix a stored header pattern id stands for (`nav.inline-cta`, `nav.centered-logo`), or null for an unknown id. */
|
|
11117
|
-
declare function namedHeaderMix(patternId: string): HeaderMix | null;
|
|
11118
|
-
/** The mix a CL2 layout's `nav.kind` asks for (`bar` when it names none). */
|
|
11119
|
-
declare function headerMixOfNavKind(kind: string | undefined): HeaderMix;
|
|
11120
|
-
/** A word the product does not draw yet, with the phase it waits for and what is drawn instead. */
|
|
11121
|
-
interface HeaderGap {
|
|
11122
|
-
ingredient: `${HeaderIngredient}`;
|
|
11123
|
-
word: string;
|
|
11124
|
-
phase: string;
|
|
11125
|
-
drawnAs: string;
|
|
11126
|
-
}
|
|
11127
|
-
/** The mix the product DRAWS today: every waiting word becomes its built stand-in, and each one is said as a gap. */
|
|
11128
|
-
declare function drawnHeaderMix(mix: HeaderMix): {
|
|
11129
|
-
drawn: HeaderMix;
|
|
11130
|
-
gaps: HeaderGap[];
|
|
11131
|
-
};
|
|
11132
|
-
/** The fingerprint's prefix for a header. */
|
|
11133
|
-
declare const HEADER_TOKEN = "header";
|
|
11134
|
-
/** A header as the fingerprint sees it (§7): `header:<arrange>/<pages>/<menu>/<ground>/<shape>` — what a visitor takes in
|
|
11135
|
-
* at once, in the contract's order. Two sites with the same token wear the same header. */
|
|
11136
|
-
declare function headerTokenOf(mix: HeaderMix): string;
|
|
11137
|
-
/** A header token in words: `header:name-only/menu/drawer/solid/bar` → "name-only · menu · drawer · solid · bar". */
|
|
11138
|
-
declare const headerTokenWords: (token: string) => string;
|
|
11139
|
-
/** Doron's reference headers (§2b), each as a whole mix. */
|
|
11140
|
-
declare function headerReferences(): ReadonlyArray<{
|
|
11141
|
-
id: string;
|
|
11142
|
-
after: string;
|
|
11143
|
-
added: string;
|
|
11144
|
-
mix: HeaderMix;
|
|
11145
|
-
}>;
|
|
11146
|
-
/** The site plan's header as a mix: its `globals.header` pattern read as a named mix (HI-D4), the Studio header when it
|
|
11147
|
-
* names none or one the table does not know. */
|
|
11148
|
-
declare function headerMixOfPlan(plan: {
|
|
11149
|
-
readonly globals?: Readonly<Record<string, string>>;
|
|
11150
|
-
}): HeaderMix;
|
|
11151
|
-
|
|
11152
11411
|
/**
|
|
11153
11412
|
* THE CROSS-SITE FINGERPRINT (premium components M8 gate 2, M8-G2-D7; the prototype's `fingerprint` + `sameness`,
|
|
11154
11413
|
* `code/cl2.mjs`): what makes two composed pages read as the same — how the page opens, the sequence of its sections, the
|
|
@@ -11225,7 +11484,7 @@ declare const LAYOUT_READY_MADE_TOKEN = "ready-made";
|
|
|
11225
11484
|
* the page's own ground colour. */
|
|
11226
11485
|
declare function fingerprintOf(page: LayoutPage, preset: string, mode: 'light' | 'dark', header?: HeaderMix, footer?: FooterMix): LayoutFingerprint;
|
|
11227
11486
|
/** A composed page's fingerprint under its site plan's header and footer — the ONE call every reader of a plan makes. */
|
|
11228
|
-
declare function fingerprintOfPlanPage(page: LayoutPage, preset: string, mode: 'light' | 'dark', plan: Parameters<typeof footerMixOfPlan>[0]): LayoutFingerprint;
|
|
11487
|
+
declare function fingerprintOfPlanPage(page: LayoutPage, preset: string, mode: 'light' | 'dark', plan: Parameters<typeof wornHeaderOfPlan>[0] & Parameters<typeof footerMixOfPlan>[0]): LayoutFingerprint;
|
|
11229
11488
|
/** The share of the longer sequence two pages have in common. */
|
|
11230
11489
|
declare function sequenceShare(a: ReadonlyArray<string>, b: ReadonlyArray<string>): number;
|
|
11231
11490
|
/** A list token in words: `list:row/middle-raised/arrows` → "row · middle raised · arrows". */
|
|
@@ -11324,5 +11583,5 @@ declare function adjustStepLabel(axis: AdjustAxis, step: string): string;
|
|
|
11324
11583
|
/** Every step id of every axis — the strict format's enum (which axis takes which step is the check's). */
|
|
11325
11584
|
declare const ADJUST_STEP_IDS: ReadonlyArray<string>;
|
|
11326
11585
|
|
|
11327
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderIngredient, HeaderMixError, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkLayout, checkList, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTokenOf, footerTokenWords, footerWireWords, footerWords, frameWords, headerMeaning, headerMix, headerMixOfNavKind, headerMixOfPlan, headerReferences, headerTokenOf, headerTokenWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitCssValue, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, withDistinctFooter, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
|
|
11328
|
-
export type { AddBarItemResult, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FrameRegion, HeaderGap, HeaderMix, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, ListIngredient, ListWait, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
|
11586
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTokenOf, footerTokenWords, footerWireWords, footerWords, frameWords, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitCssValue, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
11587
|
+
export type { AddBarItemResult, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FrameRegion, HeaderContext, HeaderGap, HeaderMix, HeaderPage, HeaderRecipe, HeaderRepair, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, ListIngredient, ListWait, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|