@vectoriox/iox-ui 5.113.0 → 5.115.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.
@@ -20,6 +20,11 @@ declare const SPEC_SITE_PLAN_SHAPE: {
20
20
  readonly "film?": "film — the owner's film as pictures (SC6b), set by the build and placed by placeFilm; never a model's";
21
21
  readonly "artDirection?": "artDirection — what every picture made for the site shares (M7): set by the generation from the business type and the look (generation-core artDirectionFor); never a model's";
22
22
  readonly "direction?": "direction — what the site is built around (M8 gate 2): written with the pages, shown on the Plan step; every composed page serves it";
23
+ readonly "mixes?": "mixes — the header and footer as mixes of ingredients (ingredients.md); a mix wins over its globals pattern";
24
+ };
25
+ readonly mixes: {
26
+ readonly "header?": "string[] — the header as <ingredient>:<word> words (site.layout.header; header ingredients HI1)";
27
+ readonly "footer?": "string[] — the footer as <ingredient>:<word> words (site.layout.footer; list ingredients LI5)";
23
28
  };
24
29
  readonly direction: {
25
30
  readonly idea: "string — one sentence: what this site is about and how it should feel";
@@ -1182,11 +1187,11 @@ declare const SPEC_SITE_PATTERNS: {
1182
1187
  }, {
1183
1188
  readonly t: "Text";
1184
1189
  readonly es: "small";
1185
- readonly ph: "phone";
1190
+ readonly ph: "email";
1186
1191
  }, {
1187
1192
  readonly t: "Text";
1188
1193
  readonly es: "small";
1189
- readonly ph: "email";
1194
+ readonly ph: "phone";
1190
1195
  }];
1191
1196
  }];
1192
1197
  }, {
@@ -4373,6 +4378,189 @@ declare const SPEC_SITE_PATTERNS: {
4373
4378
  };
4374
4379
  };
4375
4380
  };
4381
+ declare const SPEC_SITE_FOOTER_PARTS: {
4382
+ readonly section: {
4383
+ readonly t: "Section";
4384
+ readonly es: "section";
4385
+ readonly lay: {
4386
+ readonly display: "flex";
4387
+ readonly flexDirection: "column";
4388
+ readonly gap: "32px";
4389
+ };
4390
+ };
4391
+ readonly brand: {
4392
+ readonly t: "Container";
4393
+ readonly es: "box";
4394
+ readonly lay: {
4395
+ readonly display: "flex";
4396
+ readonly flexDirection: "column";
4397
+ readonly gap: "8px";
4398
+ };
4399
+ readonly c: readonly [{
4400
+ readonly t: "Heading";
4401
+ readonly es: "h3";
4402
+ readonly level: "h3";
4403
+ readonly slot: "brand";
4404
+ readonly max: 32;
4405
+ readonly fromBusiness: "name";
4406
+ }, {
4407
+ readonly t: "Text";
4408
+ readonly es: "small";
4409
+ readonly slot: "tagline";
4410
+ readonly max: 120;
4411
+ readonly fromBusiness: "tagline";
4412
+ readonly ph: "copy";
4413
+ }];
4414
+ };
4415
+ readonly pages: {
4416
+ readonly t: "Container";
4417
+ readonly es: "box";
4418
+ readonly lay: {
4419
+ readonly display: "flex";
4420
+ readonly flexDirection: "column";
4421
+ readonly gap: "8px";
4422
+ };
4423
+ readonly c: readonly [{
4424
+ readonly t: "Heading";
4425
+ readonly es: "eyebrow";
4426
+ readonly level: "h4";
4427
+ readonly slot: "pagesLabel";
4428
+ readonly max: 40;
4429
+ readonly text: "Pages";
4430
+ readonly textHe: "עמודים";
4431
+ }, {
4432
+ readonly t: "Link";
4433
+ readonly es: "link";
4434
+ readonly each: "$navPages";
4435
+ readonly bind: "page.name";
4436
+ readonly href: "$page.route";
4437
+ }];
4438
+ };
4439
+ readonly pageRow: {
4440
+ readonly t: "Container";
4441
+ readonly es: "box";
4442
+ readonly lay: {
4443
+ readonly display: "flex";
4444
+ readonly flexWrap: "wrap";
4445
+ readonly gap: "var(--iox-space-gap)";
4446
+ readonly alignItems: "center";
4447
+ readonly width: "auto";
4448
+ };
4449
+ readonly c: readonly [{
4450
+ readonly t: "Link";
4451
+ readonly es: "link";
4452
+ readonly each: "$navPages";
4453
+ readonly bind: "page.name";
4454
+ readonly href: "$page.route";
4455
+ }];
4456
+ };
4457
+ readonly contact: {
4458
+ readonly t: "Container";
4459
+ readonly es: "box";
4460
+ readonly lay: {
4461
+ readonly display: "flex";
4462
+ readonly flexDirection: "column";
4463
+ readonly gap: "8px";
4464
+ };
4465
+ readonly c: readonly [{
4466
+ readonly t: "Heading";
4467
+ readonly es: "eyebrow";
4468
+ readonly level: "h4";
4469
+ readonly slot: "contactLabel";
4470
+ readonly max: 40;
4471
+ readonly text: "Contact";
4472
+ readonly textHe: "יצירת קשר";
4473
+ }, {
4474
+ readonly t: "Text";
4475
+ readonly es: "small";
4476
+ readonly ph: "email";
4477
+ }, {
4478
+ readonly t: "Text";
4479
+ readonly es: "small";
4480
+ readonly ph: "phone";
4481
+ }, {
4482
+ readonly t: "Text";
4483
+ readonly es: "small";
4484
+ readonly ph: "city";
4485
+ }];
4486
+ };
4487
+ readonly visit: {
4488
+ readonly t: "Container";
4489
+ readonly es: "box";
4490
+ readonly lay: {
4491
+ readonly display: "flex";
4492
+ readonly flexDirection: "column";
4493
+ readonly gap: "8px";
4494
+ };
4495
+ readonly c: readonly [{
4496
+ readonly t: "Heading";
4497
+ readonly es: "eyebrow";
4498
+ readonly level: "h4";
4499
+ readonly slot: "visitLabel";
4500
+ readonly max: 40;
4501
+ readonly text: "Visit";
4502
+ readonly textHe: "ביקור";
4503
+ }, {
4504
+ readonly t: "Text";
4505
+ readonly es: "small";
4506
+ readonly ph: "address";
4507
+ }, {
4508
+ readonly t: "Text";
4509
+ readonly es: "small";
4510
+ readonly ph: "hours";
4511
+ }];
4512
+ };
4513
+ readonly call: {
4514
+ readonly t: "Container";
4515
+ readonly es: "box";
4516
+ readonly lay: {
4517
+ readonly display: "flex";
4518
+ readonly flexDirection: "column";
4519
+ readonly gap: "20px";
4520
+ readonly alignItems: "flex-start";
4521
+ };
4522
+ readonly c: readonly [{
4523
+ readonly t: "Heading";
4524
+ readonly es: "h2";
4525
+ readonly level: "h2";
4526
+ readonly slot: "closing";
4527
+ readonly max: 44;
4528
+ readonly text: "Let's talk.";
4529
+ readonly textHe: "בואו נדבר.";
4530
+ }, {
4531
+ readonly t: "ButtonBlock";
4532
+ readonly es: "button-primary";
4533
+ readonly href: "/contact";
4534
+ readonly slot: "closingAction";
4535
+ readonly max: 24;
4536
+ readonly text: "Get in touch";
4537
+ readonly textHe: "צרו קשר";
4538
+ }];
4539
+ };
4540
+ readonly name: {
4541
+ readonly t: "Heading";
4542
+ readonly es: "display";
4543
+ readonly level: "h2";
4544
+ readonly slot: "wordmark";
4545
+ readonly max: 32;
4546
+ readonly fromBusiness: "name";
4547
+ readonly lay: {
4548
+ readonly lineHeight: "0.9";
4549
+ readonly margin: "0px";
4550
+ };
4551
+ };
4552
+ readonly rule: {
4553
+ readonly t: "Divider";
4554
+ readonly es: "rule";
4555
+ };
4556
+ readonly copyright: {
4557
+ readonly t: "Text";
4558
+ readonly es: "small";
4559
+ readonly slot: "copyright";
4560
+ readonly max: 90;
4561
+ readonly text: "© {year} {business.name}";
4562
+ };
4563
+ };
4376
4564
  declare const SPEC_SITE_TEMPLATES: {
4377
4565
  readonly studio: {
4378
4566
  readonly id: "studio";
@@ -5831,6 +6019,54 @@ declare const SPEC_SITE_LAYOUT: {
5831
6019
  };
5832
6020
  }];
5833
6021
  };
6022
+ readonly footer: {
6023
+ readonly ingredients: {
6024
+ readonly arrange: readonly ["columns", "centred", "line"];
6025
+ readonly holds: readonly ["pages", "visit", "contact"];
6026
+ readonly closing: readonly ["none", "call", "name"];
6027
+ readonly ground: readonly ["inverse", "plain", "subtle", "accent"];
6028
+ };
6029
+ readonly many: readonly ["holds"];
6030
+ readonly meanings: {
6031
+ readonly "arrange.columns": "the name and its line at the start, a column for each block it holds";
6032
+ readonly "arrange.centred": "everything centred, one block under another";
6033
+ readonly "arrange.line": "one quiet line: the copyright beside the pages";
6034
+ readonly "holds.pages": "the pages";
6035
+ readonly "holds.contact": "how to reach the business (email, phone, city)";
6036
+ readonly "holds.visit": "where and when to visit (address, hours) — for a place people come to";
6037
+ readonly "closing.none": "nothing before the footer's blocks";
6038
+ readonly "closing.call": "a closing line and one button, above the blocks";
6039
+ readonly "closing.name": "the business name set huge across the width, under the blocks";
6040
+ readonly "ground.inverse": "a dark band";
6041
+ readonly "ground.plain": "the page's own ground, a hairline above";
6042
+ readonly "ground.subtle": "a soft band";
6043
+ readonly "ground.accent": "a band in the brand colour";
6044
+ };
6045
+ readonly waits: {};
6046
+ readonly defaults: {
6047
+ readonly arrange: "columns";
6048
+ readonly holds: readonly ["pages", "contact"];
6049
+ readonly closing: "none";
6050
+ readonly ground: "inverse";
6051
+ };
6052
+ readonly named: {
6053
+ readonly "footer.three-column": {};
6054
+ readonly "footer.mega": {
6055
+ readonly holds: readonly ["pages", "visit", "contact"];
6056
+ };
6057
+ readonly "footer.minimal": {
6058
+ readonly arrange: "line";
6059
+ readonly holds: readonly ["pages"];
6060
+ readonly ground: "plain";
6061
+ };
6062
+ };
6063
+ readonly fingerprint: readonly ["arrange", "closing", "ground"];
6064
+ readonly rules: {
6065
+ readonly lineHolds: readonly ["pages"];
6066
+ readonly minHolds: 1;
6067
+ };
6068
+ readonly references: readonly [];
6069
+ };
5834
6070
  };
5835
6071
 
5836
6072
  /** What an untouched node of one registered type saves as (`NODE_BASELINES`, generated from the live
@@ -6780,6 +7016,14 @@ interface SitePlan {
6780
7016
  readonly artDirection?: ArtDirection;
6781
7017
  /** M8 gate 2: what the site is built around, written with the pages and shown on the Plan step. */
6782
7018
  readonly direction?: PlanDirection;
7019
+ /** The header and footer as mixes of ingredients (ingredients.md): a mix wins over its `globals` pattern. */
7020
+ readonly mixes?: PlanMixes;
7021
+ }
7022
+ /** A part's mix as `<ingredient>:<word>` words (the contract's `site.layout.<part>`): the footer since list ingredients
7023
+ * LI5 (generation-core footer-mix.ts); the header joins at header ingredients HI1. */
7024
+ interface PlanMixes {
7025
+ readonly header?: ReadonlyArray<string>;
7026
+ readonly footer?: ReadonlyArray<string>;
6783
7027
  }
6784
7028
  /** M8 gate 2: the idea a site's composed pages serve — the usual site for the business, and what this one does instead. */
6785
7029
  interface PlanDirection {
@@ -7424,6 +7668,8 @@ declare enum SitePlanIssueCode {
7424
7668
  RouteSource = "route-source",
7425
7669
  UnknownPattern = "unknown-pattern",
7426
7670
  GlobalPattern = "global-pattern",
7671
+ /** A header/footer mix (`mixes`) with a word its part's table lacks, or two words for a one-word ingredient. */
7672
+ Mix = "mix",
7427
7673
  UnknownSlot = "unknown-slot",
7428
7674
  UnknownOptionalPart = "unknown-optional-part",
7429
7675
  Binding = "binding",
@@ -7700,7 +7946,9 @@ declare enum ComposeIssueCode {
7700
7946
  LinkRemoved = "link-removed",
7701
7947
  /** A linked box to a page the plan leaves out, with no business email: it keeps its contents as a
7702
7948
  * plain Container and loses only the link. */
7703
- LinkUnlinked = "link-unlinked"
7949
+ LinkUnlinked = "link-unlinked",
7950
+ /** LI5: the footer's mix broke one of its table's rules and was mended (`checkFooter`): the detail says how. */
7951
+ FooterMended = "footer-mended"
7704
7952
  }
7705
7953
  /** The issues that are a dangling link (a route the plan has no page for) and what was done about it. */
7706
7954
  declare const DANGLING_LINK_CODES: ReadonlySet<ComposeIssueCode>;
@@ -9108,6 +9356,11 @@ interface PlanWordContext {
9108
9356
  avoidWords: ReadonlyArray<string>;
9109
9357
  /** The owner's own facts (the analysis's, as corrected) — the only ones a plan may carry. */
9110
9358
  facts: Readonly<Partial<Record<FactKey, string>>>;
9359
+ /**
9360
+ * Other texts whose facts are the owner's too (AI Assist, R-H2): the owner's sentence, and the words already on what
9361
+ * they are editing — a phone number on their own page is theirs to move or keep. Never a model's earlier answer.
9362
+ */
9363
+ known?: ReadonlyArray<string>;
9111
9364
  }
9112
9365
  /** A text a model wrote, and where. */
9113
9366
  interface WrittenText {
@@ -10680,6 +10933,140 @@ declare function layoutOpeningDisplayMend(page: Pick<LayoutPage, 'sections'>): {
10680
10933
  size?: `${LayoutSize}`;
10681
10934
  } | null;
10682
10935
 
10936
+ /** The ingredients, by the contract's keys (held equal to it by footer-mix.spec). */
10937
+ declare enum FooterIngredient {
10938
+ Arrange = "arrange",
10939
+ Holds = "holds",
10940
+ Closing = "closing",
10941
+ Ground = "ground"
10942
+ }
10943
+ declare enum FooterArrange {
10944
+ Columns = "columns",
10945
+ Centred = "centred",
10946
+ Line = "line"
10947
+ }
10948
+ declare enum FooterHold {
10949
+ Pages = "pages",
10950
+ Visit = "visit",
10951
+ Contact = "contact"
10952
+ }
10953
+ declare enum FooterClosing {
10954
+ None = "none",
10955
+ Call = "call",
10956
+ Name = "name"
10957
+ }
10958
+ declare enum FooterGround {
10959
+ Inverse = "inverse",
10960
+ Plain = "plain",
10961
+ Subtle = "subtle",
10962
+ Accent = "accent"
10963
+ }
10964
+ /** One word per ingredient; `holds` several, in the table's order. */
10965
+ interface FooterMix {
10966
+ readonly arrange: string;
10967
+ readonly holds: ReadonlyArray<string>;
10968
+ readonly closing: string;
10969
+ readonly ground: string;
10970
+ }
10971
+ declare class FooterMixError extends Error {
10972
+ }
10973
+ /** The footer pattern a plan names when it names none the table knows (the Studio footer). */
10974
+ declare const DEFAULT_FOOTER_PATTERN = "footer.three-column";
10975
+ /** The words an ingredient may take. */
10976
+ declare function footerWords(ingredient: `${FooterIngredient}`): ReadonlyArray<string>;
10977
+ /** What a word means, as the brief and the builder say it. */
10978
+ declare function footerMeaning(ingredient: `${FooterIngredient}`, word: string): string;
10979
+ /** A whole mix from part of one: what is not named is the default. Refuses a word the table lacks. */
10980
+ declare function footerMix(partial?: Partial<FooterMix>): FooterMix;
10981
+ /** The mix a stored footer pattern id stands for (`footer.three-column`, `footer.mega`, `footer.minimal`), or null. */
10982
+ declare function namedFooterMix(patternId: string): FooterMix | null;
10983
+ /** The stored footer pattern a mix is exactly, else null. */
10984
+ declare function footerPatternIdOf(mix: FooterMix): string | null;
10985
+ /** A mix on the wire: ONE list of `<ingredient>:<word>` words (the list wire's encoding), `holds` once per block. */
10986
+ declare function footerMixWords(mix: FooterMix): string[];
10987
+ /** Every `<ingredient>:<word>` the wire may carry (every footer word is drawn — the table's `waits` is empty). */
10988
+ declare function footerWireWords(): string[];
10989
+ /** The words back into a mix: an ingredient not named is the default; a `holds` named is the whole list. Refuses an unknown
10990
+ * word, and two words for a one-word ingredient. */
10991
+ declare function footerMixFromWords(words: ReadonlyArray<string>): FooterMix;
10992
+ /** The site plan's footer as a mix: its `mixes.footer` when it has one, else its `globals.footer` pattern read as a named
10993
+ * mix, else the Studio footer. */
10994
+ declare function footerMixOfPlan(plan: {
10995
+ readonly globals?: Readonly<Record<string, string>>;
10996
+ readonly mixes?: {
10997
+ readonly footer?: ReadonlyArray<string>;
10998
+ };
10999
+ }): FooterMix;
11000
+ /** The fingerprint's prefix for a footer. */
11001
+ declare const FOOTER_TOKEN = "footer";
11002
+ /** A footer as the fingerprint sees it: `footer:<arrange>/<closing>/<ground>` — what a visitor takes in at once, in the
11003
+ * contract's order. Two sites with the same token wear the same footer. */
11004
+ declare function footerTokenOf(mix: FooterMix): string;
11005
+ /** A footer token in words: `footer:columns/none/inverse` → "columns · none · inverse". */
11006
+ declare const footerTokenWords: (token: string) => string;
11007
+ /** Doron's reference footers, each as a whole mix. */
11008
+ declare function footerReferences(): ReadonlyArray<{
11009
+ id: string;
11010
+ after: string;
11011
+ added: string;
11012
+ mix: FooterMix;
11013
+ }>;
11014
+ declare enum FooterRepairCode {
11015
+ /** A one-line footer holds only the pages: the other blocks need room. */
11016
+ LineHolds = "line-holds",
11017
+ /** A footer that holds nothing and closes with nothing: it holds the pages. */
11018
+ Empty = "empty",
11019
+ /** The name is too long to stand across a phone's width at the smallest size: no closing name. */
11020
+ NameTooLong = "name-too-long",
11021
+ /** Another site already wears this footer: the nearest free one (`distinctFooter`). */
11022
+ Worn = "worn"
11023
+ }
11024
+ interface FooterRepair {
11025
+ code: FooterRepairCode;
11026
+ /** In plain words, for the wizard and the model's next turn. */
11027
+ said: string;
11028
+ }
11029
+ /** What the check needs of the site: the business name and the look it wears. */
11030
+ interface FooterContext {
11031
+ name: string;
11032
+ design: DesignChoices;
11033
+ }
11034
+ /**
11035
+ * The ONE judge of a footer mix: what the table's rules refuse is mended to the nearest mix that keeps them, and each mend
11036
+ * is said. Never throws on a well-formed mix. Pure.
11037
+ */
11038
+ declare function checkFooter(mix: FooterMix, ctx: FooterContext): {
11039
+ mix: FooterMix;
11040
+ repairs: FooterRepair[];
11041
+ };
11042
+ /** A footer mix as a pattern: what the composer stamps as the site's footer (global, after the page). Check it first. */
11043
+ declare function footerPattern(mix: FooterMix, ctx: FooterContext): SitePattern;
11044
+ /**
11045
+ * A footer no other site wears (R-H10): the mix when its token is free, else the nearest mix whose token is — one changed
11046
+ * ingredient before two, in `MEND_ORDER`, each word in the table's order — checked again (`checkFooter`), and said. When
11047
+ * every footer is worn, the mix as it is. Pure, deterministic.
11048
+ */
11049
+ declare function distinctFooter(mix: FooterMix, taken: ReadonlyArray<string>, ctx: FooterContext): {
11050
+ mix: FooterMix;
11051
+ repairs: FooterRepair[];
11052
+ };
11053
+ /** A plan's footer made distinct (R-H10): `distinctFooter` over the plan's own mix, the name and the look it wears; the
11054
+ * plan unchanged when nothing was mended, else with the new mix in `mixes.footer`. Pure. */
11055
+ declare function withDistinctFooter<P extends {
11056
+ readonly business: {
11057
+ readonly name: string;
11058
+ };
11059
+ readonly design: Readonly<Partial<DesignChoices>>;
11060
+ readonly globals?: Readonly<Record<string, string>>;
11061
+ readonly mixes?: {
11062
+ readonly header?: ReadonlyArray<string>;
11063
+ readonly footer?: ReadonlyArray<string>;
11064
+ };
11065
+ }>(plan: P, taken: ReadonlyArray<string>): {
11066
+ plan: P;
11067
+ repairs: FooterRepair[];
11068
+ };
11069
+
10683
11070
  /** The ingredients, by the contract's keys (held equal to it by header-mix.spec). */
10684
11071
  declare enum HeaderIngredient {
10685
11072
  Arrange = "arrange",
@@ -10785,6 +11172,9 @@ interface LayoutFingerprint {
10785
11172
  * named in the brief, never a refusal until the model chooses the header (HI1) — a refusal it cannot answer by
10786
11173
  * changing its page would only spend a repair. */
10787
11174
  header?: string;
11175
+ /** The site's footer (`footerTokenOf`, list ingredients LI5); absent on a fingerprint stored before it. Another site's
11176
+ * footer is never worn again: the plan's is mended to the nearest free one (`distinctFooter`). */
11177
+ footer?: string;
10788
11178
  }
10789
11179
  interface FingerprintedPage {
10790
11180
  name: string;
@@ -10810,9 +11200,11 @@ declare function listTokensOf(page: LayoutPage): string[];
10810
11200
  declare function signatureOf(s: LayoutSection | undefined): LayoutSignatureId;
10811
11201
  /** A place given to the plan's ready-made section (silent section fallback): its token in the sequence and the opening. */
10812
11202
  declare const LAYOUT_READY_MADE_TOKEN = "ready-made";
10813
- /** A page's fingerprint, worn in `preset` and `mode`, under the site's `header` when it is known. A photo ground opens on
11203
+ /** A page's fingerprint, worn in `preset` and `mode`, under the site's `header` and `footer` when they are known. A photo ground opens on
10814
11204
  * the page's own ground colour. */
10815
- declare function fingerprintOf(page: LayoutPage, preset: string, mode: 'light' | 'dark', header?: HeaderMix): LayoutFingerprint;
11205
+ declare function fingerprintOf(page: LayoutPage, preset: string, mode: 'light' | 'dark', header?: HeaderMix, footer?: FooterMix): LayoutFingerprint;
11206
+ /** A composed page's fingerprint under its site plan's header and footer — the ONE call every reader of a plan makes. */
11207
+ declare function fingerprintOfPlanPage(page: LayoutPage, preset: string, mode: 'light' | 'dark', plan: Parameters<typeof footerMixOfPlan>[0]): LayoutFingerprint;
10816
11208
  /** The share of the longer sequence two pages have in common. */
10817
11209
  declare function sequenceShare(a: ReadonlyArray<string>, b: ReadonlyArray<string>): number;
10818
11210
  /** A list token in words: `list:row/middle-raised/arrows` → "row · middle raised · arrows". */
@@ -10857,5 +11249,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
10857
11249
  /** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
10858
11250
  declare function layoutRepairJsonSchema(): JsonSchema;
10859
11251
 
10860
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, 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, 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_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, FilmUnplaced, 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_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, 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, 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, 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, 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, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, 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, 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, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
10861
- export type { AddBarItemResult, 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, FrameRegion, HeaderGap, HeaderMix, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, 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, 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 };
11252
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, 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, 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, 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, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, 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, 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 };
11253
+ export type { AddBarItemResult, 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, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.113.0",
3
+ "version": "5.115.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -0,0 +1,36 @@
1
+ import { factIssues, PlanWordContext, PlanWordIssueCode } from '@vectoriox/iox-ui/generation-core';
2
+
3
+ import { AssistIssue, AssistIssueCode } from './brief';
4
+
5
+ /**
6
+ * The fact gate of every Assist family (ai-assist-plan §3c rule 4, R-H2): generation-core's `factIssues` — the SAME judge
7
+ * the plan uses — over the words a model wrote. What counts as the owner's: their reading's facts, the sentence they
8
+ * typed, and the words already on what they are editing (a phone already on their page is theirs to keep or move).
9
+ */
10
+
11
+ /** The owner's words to avoid and own facts (the business reading); absent → none beyond the known texts. */
12
+ export type AssistWordContext = Partial<PlanWordContext>;
13
+
14
+ const CODES: Readonly<Record<string, AssistIssueCode>> = {
15
+ [PlanWordIssueCode.InventedFact]: AssistIssueCode.InventedFact,
16
+ [PlanWordIssueCode.AvoidWord]: AssistIssueCode.AvoidWord,
17
+ };
18
+
19
+ export interface WrittenWords {
20
+ readonly handle: string;
21
+ readonly text: string;
22
+ }
23
+
24
+ export function assistFactIssues(written: ReadonlyArray<WrittenWords>, ctx: {
25
+ readonly words?: AssistWordContext;
26
+ readonly sentence?: string;
27
+ /** The texts already on the thing being edited. */
28
+ readonly existing: ReadonlyArray<string>;
29
+ }): AssistIssue[] {
30
+ if (!written.length) return [];
31
+ return factIssues(written.map(w => ({ path: w.handle, text: w.text })), {
32
+ avoidWords: ctx.words?.avoidWords ?? [],
33
+ facts: ctx.words?.facts ?? {},
34
+ known: [...(ctx.words?.known ?? []), ...(ctx.sentence ? [ctx.sentence] : []), ...ctx.existing],
35
+ }).map(f => ({ code: CODES[f.code] ?? AssistIssueCode.InventedFact, handle: f.path, message: f.message }));
36
+ }
@@ -1,9 +1,12 @@
1
1
  import { AROUND_TEXT_CHARS, MEMORY_TURNS } from './budget';
2
2
  import { AssistIssue, AssistIssueCode, Brief, HandleMap } from './brief';
3
+ import type { SerializedNode } from '@vectoriox/iox-ui/generation-core';
4
+
3
5
  import { FieldChange } from './field-edits';
4
6
  import { FieldEdit } from './fields-schema';
7
+ import { WordChange, WordEdit } from './page-words';
5
8
  import { ContentRecord, clipText } from './summarize-item';
6
- import { AssistSurface, CommitKind, EditFamily, SURFACES, SurfaceStatus } from './surfaces';
9
+ import { AssistScope, AssistSurface, CommitKind, EditFamily, SURFACES, SurfaceStatus } from './surfaces';
7
10
 
8
11
  /**
9
12
  * The turn wire (plan §3d) — what cms-client posts and polls and iox-cms stores and answers, ONE definition both sides
@@ -48,8 +51,24 @@ export interface AssistTurnRequest {
48
51
  readonly values?: ContentRecord;
49
52
  /** Field keys the owner changed since the last AI turn — kept unless the sentence names them (rule 9). */
50
53
  readonly ownerEdited?: ReadonlyArray<string>;
54
+ /** A builder surface: the page the turn is about. */
55
+ readonly pageId?: string;
56
+ /** A builder surface: the page's layout as the canvas holds it now (it may be unsaved) — the saved shape. */
57
+ readonly layout?: ReadonlyArray<SerializedNode>;
58
+ /** A builder surface: the selected node ("this"), or none. */
59
+ readonly selectedId?: string | null;
60
+ /** The focus rung the owner widened to (the chip's ✕); absent = what the selection gives. */
61
+ readonly scope?: AssistScope;
62
+ /** A builder surface: the page as the owner names it. */
63
+ readonly page?: { readonly name: string; readonly route: string };
51
64
  }
52
65
 
66
+ /** What a turn proposes, per family: a field's value (`fields`) or a part's words (`words`). */
67
+ export type AssistEdit = FieldEdit | WordEdit;
68
+
69
+ /** What a turn changed, as the card says it. */
70
+ export type AssistChange = FieldChange | WordChange;
71
+
53
72
  /** POST's 202 answer. */
54
73
  export interface AssistTurnAccepted {
55
74
  readonly turnId: string;
@@ -91,9 +110,9 @@ export interface AssistTurn {
91
110
  readonly model?: string;
92
111
  readonly families?: ReadonlyArray<EditFamily>;
93
112
  readonly reply?: string;
94
- readonly edits?: ReadonlyArray<FieldEdit>;
95
- readonly changes?: ReadonlyArray<FieldChange>;
96
- readonly kept?: ReadonlyArray<FieldChange>;
113
+ readonly edits?: ReadonlyArray<AssistEdit>;
114
+ readonly changes?: ReadonlyArray<AssistChange>;
115
+ readonly kept?: ReadonlyArray<AssistChange>;
97
116
  readonly issues?: ReadonlyArray<AssistIssue>;
98
117
  readonly refusal?: AssistTurnRefusal;
99
118
  readonly credits?: number;
@@ -164,8 +183,8 @@ export interface AssistMemoryLine {
164
183
  const SENTENCE_IN_MEMORY_CHARS = 80;
165
184
 
166
185
  function outcome(turn: AssistTurn): string {
167
- const named = (list: ReadonlyArray<FieldChange> | undefined) =>
168
- (list ?? []).map(c => (c.locale ? `${c.label} (${c.locale})` : c.label)).join(', ');
186
+ const named = (list: ReadonlyArray<AssistChange> | undefined) =>
187
+ (list ?? []).map(c => ('locale' in c && c.locale ? `${c.label} (${c.locale})` : c.label)).join(', ');
169
188
  switch (turn.status) {
170
189
  case AssistTurnStatus.Refused: return `refused: ${turn.refusal?.message ?? ''}`.trim();
171
190
  case AssistTurnStatus.Failed: return 'failed';
@@ -234,6 +253,9 @@ export function validateTurnRequest(req: unknown): AssistIssue[] {
234
253
  ...(!isObject(brief) || brief['surface'] !== surface ? [issue(AssistIssueCode.BadRequest, `the brief is not a ${surface} brief`)] : []),
235
254
  ...(!isObject(req['handles']) || !Object.keys(req['handles']).length ? [issue(AssistIssueCode.MissingHandles, 'the brief\'s handles are missing')] : []),
236
255
  ...(spec.commit === CommitKind.FormFill && !isObject(req['values']) ? [issue(AssistIssueCode.MissingValues, 'a form-fill turn carries the form\'s values')] : []),
256
+ ...(spec.commit === CommitKind.BuilderStep && (!Array.isArray(req['layout']) || !req['layout'].length || !req['layout'].every(isObject))
257
+ ? [issue(AssistIssueCode.MissingValues, 'a builder turn carries the page\'s layout')] : []),
258
+ ...(spec.commit === CommitKind.BuilderStep && !nonEmpty(req['pageId']) ? [issue(AssistIssueCode.BadRequest, `${surface} names its page`)] : []),
237
259
  ...(!isOwnerEdited(req['ownerEdited']) ? [issue(AssistIssueCode.BadRequest, 'ownerEdited is a list of field keys')] : []),
238
260
  ...(spec.perContentType && !nonEmpty(req['contentType']) ? [issue(AssistIssueCode.BadRequest, `${surface} names its content type`)] : []),
239
261
  ];