@vectoriox/iox-ui 5.110.0 → 5.112.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/assist-core/index.d.ts +650 -0
- package/assist-core/package.json +3 -0
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +1144 -0
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -0
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +307 -122
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/generation-core/index.d.ts +280 -45
- package/package.json +5 -1
- package/src/assist-core/assist-locale.ts +73 -0
- package/src/assist-core/assist-turn.ts +240 -0
- package/src/assist-core/brief.ts +98 -0
- package/src/assist-core/budget.ts +34 -0
- package/src/assist-core/content-fields.ts +256 -0
- package/src/assist-core/field-edits.ts +178 -0
- package/src/assist-core/field-values.ts +42 -0
- package/src/assist-core/fields-schema.ts +117 -0
- package/src/assist-core/public-api.ts +24 -0
- package/src/assist-core/rich-text.ts +32 -0
- package/src/assist-core/route-schema.ts +49 -0
- package/src/assist-core/summarize-item.ts +219 -0
- package/src/assist-core/surfaces.ts +235 -0
- package/src/generation-core/ai-run.ts +34 -0
- package/src/generation-core/check-list.ts +8 -7
- package/src/generation-core/compose-layout.ts +54 -10
- package/src/generation-core/layout-wire.ts +8 -15
- package/src/generation-core/list-table.ts +39 -0
- package/src/generation-core/plan-words.ts +12 -3
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-spec.generated.ts +160 -76
- package/styles/iox-design.css +103 -0
|
@@ -5535,54 +5535,119 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
5535
5535
|
readonly "fresh-market": "warm-craft";
|
|
5536
5536
|
};
|
|
5537
5537
|
readonly list: {
|
|
5538
|
-
readonly
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5538
|
+
readonly ingredients: {
|
|
5539
|
+
readonly item: readonly ["photo", "card"];
|
|
5540
|
+
readonly arrange: readonly ["row", "grid", "masonry", "strips", "deck"];
|
|
5541
|
+
readonly who: readonly ["none", "middle", "first", "pointed"];
|
|
5542
|
+
readonly how: readonly ["bigger", "wider", "raised", "brighter"];
|
|
5543
|
+
readonly move: readonly ["arrows", "drag", "auto", "page"];
|
|
5544
|
+
readonly hover: readonly ["rise", "open", "zoom", "dim"];
|
|
5545
|
+
readonly arrive: readonly ["together", "one-by-one", "slide-in"];
|
|
5546
|
+
readonly phone: readonly ["swipe", "stack", "two-up"];
|
|
5547
|
+
};
|
|
5548
|
+
readonly many: readonly ["move", "hover"];
|
|
5546
5549
|
readonly meanings: {
|
|
5547
|
-
readonly photo: "pictures only";
|
|
5548
|
-
readonly card: "a card built from the list's own fields (its parts)";
|
|
5549
|
-
readonly row: "side by side in one line you move through";
|
|
5550
|
-
readonly grid: "a still grid";
|
|
5551
|
-
readonly masonry: "a still wall that keeps every picture's own shape";
|
|
5552
|
-
readonly strips: "tall strips, one always open wide with its whole story";
|
|
5553
|
-
readonly deck: "a stack, one card on top, the rest waiting behind";
|
|
5554
|
-
readonly
|
|
5555
|
-
readonly
|
|
5556
|
-
readonly
|
|
5557
|
-
readonly
|
|
5558
|
-
readonly
|
|
5559
|
-
readonly
|
|
5560
|
-
readonly
|
|
5561
|
-
readonly
|
|
5562
|
-
readonly
|
|
5563
|
-
readonly
|
|
5564
|
-
readonly
|
|
5565
|
-
readonly
|
|
5566
|
-
readonly
|
|
5567
|
-
readonly
|
|
5568
|
-
readonly
|
|
5569
|
-
readonly
|
|
5570
|
-
readonly "
|
|
5571
|
-
readonly "
|
|
5572
|
-
readonly
|
|
5573
|
-
readonly
|
|
5574
|
-
readonly "
|
|
5550
|
+
readonly "item.photo": "pictures only";
|
|
5551
|
+
readonly "item.card": "a card built from the list's own fields (its parts)";
|
|
5552
|
+
readonly "arrange.row": "side by side in one line you move through";
|
|
5553
|
+
readonly "arrange.grid": "a still grid";
|
|
5554
|
+
readonly "arrange.masonry": "a still wall that keeps every picture's own shape";
|
|
5555
|
+
readonly "arrange.strips": "tall strips, one always open wide with its whole story";
|
|
5556
|
+
readonly "arrange.deck": "a stack, one card on top, the rest waiting behind";
|
|
5557
|
+
readonly "who.none": "none stands out";
|
|
5558
|
+
readonly "who.middle": "the one in the middle of the row";
|
|
5559
|
+
readonly "who.first": "the first one";
|
|
5560
|
+
readonly "who.pointed": "the one the visitor points at or taps";
|
|
5561
|
+
readonly "how.bigger": "larger than the rest";
|
|
5562
|
+
readonly "how.wider": "open wide (strips only)";
|
|
5563
|
+
readonly "how.raised": "lifted above the rest";
|
|
5564
|
+
readonly "how.brighter": "the rest dimmed";
|
|
5565
|
+
readonly "move.arrows": "arrow buttons";
|
|
5566
|
+
readonly "move.drag": "dragged with a mouse or a finger";
|
|
5567
|
+
readonly "move.auto": "turns by itself (pauses under a mouse)";
|
|
5568
|
+
readonly "move.page": "the page's scroll carries it sideways (alone)";
|
|
5569
|
+
readonly "hover.rise": "an item rises under the mouse";
|
|
5570
|
+
readonly "hover.open": "a strip opens under the mouse (strips only)";
|
|
5571
|
+
readonly "hover.zoom": "the picture grows inside its frame";
|
|
5572
|
+
readonly "hover.dim": "the others dim";
|
|
5573
|
+
readonly "arrive.together": "all at once";
|
|
5574
|
+
readonly "arrive.one-by-one": "one after another";
|
|
5575
|
+
readonly "arrive.slide-in": "sliding in from the side";
|
|
5576
|
+
readonly "phone.swipe": "a row you swipe";
|
|
5577
|
+
readonly "phone.stack": "one under another";
|
|
5578
|
+
readonly "phone.two-up": "two across";
|
|
5579
|
+
};
|
|
5580
|
+
readonly waits: {
|
|
5581
|
+
readonly "arrange.deck": {
|
|
5582
|
+
readonly phase: "LI4";
|
|
5583
|
+
readonly drawnAs: "row";
|
|
5584
|
+
};
|
|
5585
|
+
readonly "who.middle": {
|
|
5586
|
+
readonly phase: "LI4";
|
|
5587
|
+
readonly drawnAs: "none";
|
|
5588
|
+
};
|
|
5589
|
+
readonly "how.bigger": {
|
|
5590
|
+
readonly phase: "LI4";
|
|
5591
|
+
readonly drawnAs: null;
|
|
5592
|
+
};
|
|
5593
|
+
readonly "how.raised": {
|
|
5594
|
+
readonly phase: "LI4";
|
|
5595
|
+
readonly drawnAs: null;
|
|
5596
|
+
};
|
|
5597
|
+
readonly "how.brighter": {
|
|
5598
|
+
readonly phase: "LI4";
|
|
5599
|
+
readonly drawnAs: null;
|
|
5600
|
+
};
|
|
5601
|
+
};
|
|
5602
|
+
readonly defaults: {
|
|
5603
|
+
readonly item: "card";
|
|
5604
|
+
readonly arrange: "grid";
|
|
5605
|
+
readonly who: "none";
|
|
5606
|
+
readonly how: "wider";
|
|
5607
|
+
readonly move: readonly [];
|
|
5608
|
+
readonly hover: readonly [];
|
|
5609
|
+
readonly arrive: "together";
|
|
5610
|
+
readonly phone: "stack";
|
|
5575
5611
|
};
|
|
5612
|
+
readonly fingerprint: readonly ["arrange", "who", "how", "move"];
|
|
5613
|
+
readonly references: readonly [{
|
|
5614
|
+
readonly id: "stories-strips";
|
|
5615
|
+
readonly after: "Doron's client-stories screenshot";
|
|
5616
|
+
readonly added: "2026-11-18";
|
|
5617
|
+
readonly mix: {
|
|
5618
|
+
readonly item: "card";
|
|
5619
|
+
readonly arrange: "strips";
|
|
5620
|
+
readonly who: "pointed";
|
|
5621
|
+
readonly how: "wider";
|
|
5622
|
+
readonly hover: readonly ["open", "dim"];
|
|
5623
|
+
readonly arrive: "one-by-one";
|
|
5624
|
+
readonly phone: "stack";
|
|
5625
|
+
};
|
|
5626
|
+
}, {
|
|
5627
|
+
readonly id: "products-row-middle-raised";
|
|
5628
|
+
readonly after: "Doron's product-cards screenshot";
|
|
5629
|
+
readonly added: "2026-11-18";
|
|
5630
|
+
readonly mix: {
|
|
5631
|
+
readonly item: "card";
|
|
5632
|
+
readonly arrange: "row";
|
|
5633
|
+
readonly who: "middle";
|
|
5634
|
+
readonly how: "raised";
|
|
5635
|
+
readonly move: readonly ["arrows", "drag"];
|
|
5636
|
+
readonly hover: readonly ["rise"];
|
|
5637
|
+
readonly arrive: "slide-in";
|
|
5638
|
+
readonly phone: "swipe";
|
|
5639
|
+
};
|
|
5640
|
+
}];
|
|
5576
5641
|
readonly rules: {
|
|
5577
5642
|
readonly minItems: 3;
|
|
5578
5643
|
readonly strips: readonly [3, 6];
|
|
5579
5644
|
readonly onlyStrips: {
|
|
5580
|
-
readonly
|
|
5581
|
-
readonly
|
|
5645
|
+
readonly how: readonly ["wider"];
|
|
5646
|
+
readonly hover: readonly ["open"];
|
|
5582
5647
|
};
|
|
5583
5648
|
readonly onlyRow: {
|
|
5584
|
-
readonly
|
|
5585
|
-
readonly
|
|
5649
|
+
readonly who: readonly ["middle"];
|
|
5650
|
+
readonly move: readonly ["page"];
|
|
5586
5651
|
};
|
|
5587
5652
|
readonly moving: readonly ["row", "deck"];
|
|
5588
5653
|
readonly neverSwipe: readonly ["grid", "masonry"];
|
|
@@ -7564,6 +7629,11 @@ declare enum LayoutListRole {
|
|
|
7564
7629
|
Dim = "list.dim",
|
|
7565
7630
|
Masonry = "list.masonry",
|
|
7566
7631
|
MasonryTwo = "list.masonry-two",
|
|
7632
|
+
/** LI3: strips (the Repeater) — stacked on a phone, two across, or a row to swipe; each row a strip item. */
|
|
7633
|
+
Strips = "list.strips",
|
|
7634
|
+
StripsTwo = "list.strips-two",
|
|
7635
|
+
StripsSwipe = "list.strips-swipe",
|
|
7636
|
+
StripItem = "list.strip-item",
|
|
7567
7637
|
Item = "list.item"
|
|
7568
7638
|
}
|
|
7569
7639
|
/** A list role → the Card v2 part that shows it (the title is the card's locked title; `link` links the card). */
|
|
@@ -8548,7 +8618,13 @@ declare enum AiStep {
|
|
|
8548
8618
|
CheckPictures = "imageReview",
|
|
8549
8619
|
NameStructures = "scanNaming",
|
|
8550
8620
|
/** M8 gate 2: each composed page's layout, one strict request a page, after the plan (M8-G2-D2). */
|
|
8551
|
-
ComposePages = "composePages"
|
|
8621
|
+
ComposePages = "composePages",
|
|
8622
|
+
/** AI Assist (A-D7): which edit families a sentence on a screen asks for — or that it cannot be done. Fast, small. */
|
|
8623
|
+
AssistRoute = "assistRoute",
|
|
8624
|
+
/** AI Assist: the edits themselves, one strict request per routed family. */
|
|
8625
|
+
AssistEdit = "assistEdit",
|
|
8626
|
+
/** AI Assist: photos read into content (≤ 6 a request, S3). */
|
|
8627
|
+
AssistRead = "assistRead"
|
|
8552
8628
|
}
|
|
8553
8629
|
declare const AI_STEPS: ReadonlyArray<AiStep>;
|
|
8554
8630
|
/** Each step's name on the wire (the control plane's `label`, the console) — the screens translate their own. */
|
|
@@ -8702,8 +8778,12 @@ interface AiMeter {
|
|
|
8702
8778
|
}
|
|
8703
8779
|
/** The plan entitlements AI reads (the control plane's `features` / `limits` keys) — ONE spelling. */
|
|
8704
8780
|
declare enum AiFeature {
|
|
8705
|
-
SiteGeneration = "aiSiteGeneration"
|
|
8781
|
+
SiteGeneration = "aiSiteGeneration",
|
|
8782
|
+
/** AI Assist on every screen (ai-assist-plan A-D6): its own switch, the plan's shared credits. */
|
|
8783
|
+
Assist = "aiAssist"
|
|
8706
8784
|
}
|
|
8785
|
+
/** The feature a step belongs to — the gate refuses a step whose feature the plan does not include. */
|
|
8786
|
+
declare const AI_STEP_FEATURE: Readonly<Record<AiStep, AiFeature>>;
|
|
8707
8787
|
declare enum AiLimit {
|
|
8708
8788
|
CreditsPerMonth = "aiCreditsPerMonth",
|
|
8709
8789
|
CreditsPerGeneration = "aiCreditsPerGeneration"
|
|
@@ -9064,6 +9144,11 @@ declare const HEBREW_PREFIXES = "[\u05D5\u05D4\u05D1\u05DC\u05DE\u05E9\u05DB]{0,
|
|
|
9064
9144
|
declare function wordPattern(word: string): RegExp;
|
|
9065
9145
|
/** Every price written in `text` (commerce C-D21: what a business sells never carries one — the owner sets prices). */
|
|
9066
9146
|
declare function pricesIn(text: string): string[];
|
|
9147
|
+
/**
|
|
9148
|
+
* The words to avoid and the facts never given, in any texts a model wrote — the plan's (`planWordIssues`) and an AI
|
|
9149
|
+
* Assist turn's field values (assist-core, R-H2): ONE judge of what a model may write.
|
|
9150
|
+
*/
|
|
9151
|
+
declare function factIssues(texts: ReadonlyArray<WrittenText>, ctx: PlanWordContext): PlanWordIssue[];
|
|
9067
9152
|
/** The words to avoid and the facts never given, in every written text of the plan. */
|
|
9068
9153
|
declare function planWordIssues(plan: SitePlan, ctx: PlanWordContext): PlanWordIssue[];
|
|
9069
9154
|
|
|
@@ -9887,6 +9972,12 @@ declare function layoutDialOf(animate: string | null | undefined, ceiling: strin
|
|
|
9887
9972
|
|
|
9888
9973
|
/** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
|
|
9889
9974
|
declare const LAYOUT_WIRE_AUTOPLAY_MS = 5000;
|
|
9975
|
+
/**
|
|
9976
|
+
* List ingredients (list-ingredients-plan.md §2, LI1): a list section's mix travels as ONE list of `<ingredient>:<word>`
|
|
9977
|
+
* words (`arrange:strips`, `hover:dim`) and its parts as `<list>.<role>` (`stories.quote`) — two properties, so the
|
|
9978
|
+
* request stays inside the 40 the budget allows, and the parts enum is generated from the plan's own lists: a model
|
|
9979
|
+
* cannot name a part its list does not have (R-H2).
|
|
9980
|
+
*/
|
|
9890
9981
|
declare enum LayoutMixIngredient {
|
|
9891
9982
|
Item = "item",
|
|
9892
9983
|
Arrange = "arrange",
|
|
@@ -9897,8 +9988,11 @@ declare enum LayoutMixIngredient {
|
|
|
9897
9988
|
Arrive = "arrive",
|
|
9898
9989
|
Phone = "phone"
|
|
9899
9990
|
}
|
|
9900
|
-
/** Every word
|
|
9991
|
+
/** Every word a stored mix may hold, ingredient by ingredient (a waiting word too: a stored answer still reads). */
|
|
9901
9992
|
declare const LAYOUT_MIX_WORDS: ReadonlyArray<string>;
|
|
9993
|
+
/** The words the wire OFFERS — the built ones only (ingredients.md §3.3): a waiting word would put its stand-in on every
|
|
9994
|
+
* site that asked for it. */
|
|
9995
|
+
declare const LAYOUT_MIX_OFFERED: ReadonlyArray<string>;
|
|
9902
9996
|
/** A list a composed page may show, as the wire's parts enum needs it (`layoutListShapes` gives these). */
|
|
9903
9997
|
interface LayoutWireList {
|
|
9904
9998
|
alias: string;
|
|
@@ -10411,6 +10505,147 @@ declare function checkList(mix: LayoutListMix, shape: LayoutListShape | null, la
|
|
|
10411
10505
|
/** Two list sections of one page never share an arrangement (list-ingredients §7): the later ones are the model's. */
|
|
10412
10506
|
declare function pageListIssues(page: LayoutPage): LayoutIssue[];
|
|
10413
10507
|
|
|
10508
|
+
/**
|
|
10509
|
+
* THE LIST TABLE (list-ingredients-plan.md; the contract's `layout.mjs` `LIST`, in the shape every mixed part shares —
|
|
10510
|
+
* ingredients.md §2): the words of each ingredient, what each means, and which wait for a later phase and are drawn as
|
|
10511
|
+
* a built word meanwhile. Everything that offers, says or draws a list word reads it here; nothing retypes one.
|
|
10512
|
+
*/
|
|
10513
|
+
declare const LIST_TABLE: {
|
|
10514
|
+
readonly ingredients: {
|
|
10515
|
+
readonly item: readonly ["photo", "card"];
|
|
10516
|
+
readonly arrange: readonly ["row", "grid", "masonry", "strips", "deck"];
|
|
10517
|
+
readonly who: readonly ["none", "middle", "first", "pointed"];
|
|
10518
|
+
readonly how: readonly ["bigger", "wider", "raised", "brighter"];
|
|
10519
|
+
readonly move: readonly ["arrows", "drag", "auto", "page"];
|
|
10520
|
+
readonly hover: readonly ["rise", "open", "zoom", "dim"];
|
|
10521
|
+
readonly arrive: readonly ["together", "one-by-one", "slide-in"];
|
|
10522
|
+
readonly phone: readonly ["swipe", "stack", "two-up"];
|
|
10523
|
+
};
|
|
10524
|
+
readonly many: readonly ["move", "hover"];
|
|
10525
|
+
readonly meanings: {
|
|
10526
|
+
readonly "item.photo": "pictures only";
|
|
10527
|
+
readonly "item.card": "a card built from the list's own fields (its parts)";
|
|
10528
|
+
readonly "arrange.row": "side by side in one line you move through";
|
|
10529
|
+
readonly "arrange.grid": "a still grid";
|
|
10530
|
+
readonly "arrange.masonry": "a still wall that keeps every picture's own shape";
|
|
10531
|
+
readonly "arrange.strips": "tall strips, one always open wide with its whole story";
|
|
10532
|
+
readonly "arrange.deck": "a stack, one card on top, the rest waiting behind";
|
|
10533
|
+
readonly "who.none": "none stands out";
|
|
10534
|
+
readonly "who.middle": "the one in the middle of the row";
|
|
10535
|
+
readonly "who.first": "the first one";
|
|
10536
|
+
readonly "who.pointed": "the one the visitor points at or taps";
|
|
10537
|
+
readonly "how.bigger": "larger than the rest";
|
|
10538
|
+
readonly "how.wider": "open wide (strips only)";
|
|
10539
|
+
readonly "how.raised": "lifted above the rest";
|
|
10540
|
+
readonly "how.brighter": "the rest dimmed";
|
|
10541
|
+
readonly "move.arrows": "arrow buttons";
|
|
10542
|
+
readonly "move.drag": "dragged with a mouse or a finger";
|
|
10543
|
+
readonly "move.auto": "turns by itself (pauses under a mouse)";
|
|
10544
|
+
readonly "move.page": "the page's scroll carries it sideways (alone)";
|
|
10545
|
+
readonly "hover.rise": "an item rises under the mouse";
|
|
10546
|
+
readonly "hover.open": "a strip opens under the mouse (strips only)";
|
|
10547
|
+
readonly "hover.zoom": "the picture grows inside its frame";
|
|
10548
|
+
readonly "hover.dim": "the others dim";
|
|
10549
|
+
readonly "arrive.together": "all at once";
|
|
10550
|
+
readonly "arrive.one-by-one": "one after another";
|
|
10551
|
+
readonly "arrive.slide-in": "sliding in from the side";
|
|
10552
|
+
readonly "phone.swipe": "a row you swipe";
|
|
10553
|
+
readonly "phone.stack": "one under another";
|
|
10554
|
+
readonly "phone.two-up": "two across";
|
|
10555
|
+
};
|
|
10556
|
+
readonly waits: {
|
|
10557
|
+
readonly "arrange.deck": {
|
|
10558
|
+
readonly phase: "LI4";
|
|
10559
|
+
readonly drawnAs: "row";
|
|
10560
|
+
};
|
|
10561
|
+
readonly "who.middle": {
|
|
10562
|
+
readonly phase: "LI4";
|
|
10563
|
+
readonly drawnAs: "none";
|
|
10564
|
+
};
|
|
10565
|
+
readonly "how.bigger": {
|
|
10566
|
+
readonly phase: "LI4";
|
|
10567
|
+
readonly drawnAs: null;
|
|
10568
|
+
};
|
|
10569
|
+
readonly "how.raised": {
|
|
10570
|
+
readonly phase: "LI4";
|
|
10571
|
+
readonly drawnAs: null;
|
|
10572
|
+
};
|
|
10573
|
+
readonly "how.brighter": {
|
|
10574
|
+
readonly phase: "LI4";
|
|
10575
|
+
readonly drawnAs: null;
|
|
10576
|
+
};
|
|
10577
|
+
};
|
|
10578
|
+
readonly defaults: {
|
|
10579
|
+
readonly item: "card";
|
|
10580
|
+
readonly arrange: "grid";
|
|
10581
|
+
readonly who: "none";
|
|
10582
|
+
readonly how: "wider";
|
|
10583
|
+
readonly move: readonly [];
|
|
10584
|
+
readonly hover: readonly [];
|
|
10585
|
+
readonly arrive: "together";
|
|
10586
|
+
readonly phone: "stack";
|
|
10587
|
+
};
|
|
10588
|
+
readonly fingerprint: readonly ["arrange", "who", "how", "move"];
|
|
10589
|
+
readonly references: readonly [{
|
|
10590
|
+
readonly id: "stories-strips";
|
|
10591
|
+
readonly after: "Doron's client-stories screenshot";
|
|
10592
|
+
readonly added: "2026-11-18";
|
|
10593
|
+
readonly mix: {
|
|
10594
|
+
readonly item: "card";
|
|
10595
|
+
readonly arrange: "strips";
|
|
10596
|
+
readonly who: "pointed";
|
|
10597
|
+
readonly how: "wider";
|
|
10598
|
+
readonly hover: readonly ["open", "dim"];
|
|
10599
|
+
readonly arrive: "one-by-one";
|
|
10600
|
+
readonly phone: "stack";
|
|
10601
|
+
};
|
|
10602
|
+
}, {
|
|
10603
|
+
readonly id: "products-row-middle-raised";
|
|
10604
|
+
readonly after: "Doron's product-cards screenshot";
|
|
10605
|
+
readonly added: "2026-11-18";
|
|
10606
|
+
readonly mix: {
|
|
10607
|
+
readonly item: "card";
|
|
10608
|
+
readonly arrange: "row";
|
|
10609
|
+
readonly who: "middle";
|
|
10610
|
+
readonly how: "raised";
|
|
10611
|
+
readonly move: readonly ["arrows", "drag"];
|
|
10612
|
+
readonly hover: readonly ["rise"];
|
|
10613
|
+
readonly arrive: "slide-in";
|
|
10614
|
+
readonly phone: "swipe";
|
|
10615
|
+
};
|
|
10616
|
+
}];
|
|
10617
|
+
readonly rules: {
|
|
10618
|
+
readonly minItems: 3;
|
|
10619
|
+
readonly strips: readonly [3, 6];
|
|
10620
|
+
readonly onlyStrips: {
|
|
10621
|
+
readonly how: readonly ["wider"];
|
|
10622
|
+
readonly hover: readonly ["open"];
|
|
10623
|
+
};
|
|
10624
|
+
readonly onlyRow: {
|
|
10625
|
+
readonly who: readonly ["middle"];
|
|
10626
|
+
readonly move: readonly ["page"];
|
|
10627
|
+
};
|
|
10628
|
+
readonly moving: readonly ["row", "deck"];
|
|
10629
|
+
readonly neverSwipe: readonly ["grid", "masonry"];
|
|
10630
|
+
};
|
|
10631
|
+
};
|
|
10632
|
+
type ListIngredient = keyof typeof LIST_TABLE.ingredients;
|
|
10633
|
+
/** The ingredients, in the table's order. */
|
|
10634
|
+
declare const LIST_INGREDIENTS: ListIngredient[];
|
|
10635
|
+
/** A word that is not drawn yet: the phase it waits for and the built word it is drawn as (null: drawn without it). */
|
|
10636
|
+
interface ListWait {
|
|
10637
|
+
phase: string;
|
|
10638
|
+
drawnAs: string | null;
|
|
10639
|
+
}
|
|
10640
|
+
/** Every word of an ingredient. */
|
|
10641
|
+
declare function listIngredientWords(k: ListIngredient): ReadonlyArray<string>;
|
|
10642
|
+
/** The wait of a word, or null when the product draws it. */
|
|
10643
|
+
declare function listWait(k: ListIngredient, word: string): ListWait | null;
|
|
10644
|
+
/** The words of an ingredient the product draws — the only ones the wire offers (ingredients.md §3.3). */
|
|
10645
|
+
declare function listBuiltWords(k: ListIngredient): string[];
|
|
10646
|
+
/** What a word means, in the words the model and the owner read (the word itself when the table has none). */
|
|
10647
|
+
declare function listMeaning(k: ListIngredient, word: string): string;
|
|
10648
|
+
|
|
10414
10649
|
/**
|
|
10415
10650
|
* The laptop the estimates are made on (the render check's 1440 × 900). A grid column is taken as 1440 / 12 px and a row
|
|
10416
10651
|
* as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
|
|
@@ -10664,5 +10899,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
|
|
|
10664
10899
|
/** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
|
|
10665
10900
|
declare function layoutRepairJsonSchema(): JsonSchema;
|
|
10666
10901
|
|
|
10667
|
-
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_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_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_LONG_WORDS, LIST_ROLE_WORDS, 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, 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, listTokenOf, listTokensOf, 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 };
|
|
10668
|
-
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, 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 };
|
|
10902
|
+
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 };
|
|
10903
|
+
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectoriox/iox-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.112.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=20.0.0",
|
|
6
6
|
"@angular/core": ">=20.0.0",
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"types": "./actions-core/index.d.ts",
|
|
24
24
|
"default": "./fesm2022/vectoriox-iox-ui-actions-core.mjs"
|
|
25
25
|
},
|
|
26
|
+
"./assist-core": {
|
|
27
|
+
"types": "./assist-core/index.d.ts",
|
|
28
|
+
"default": "./fesm2022/vectoriox-iox-ui-assist-core.mjs"
|
|
29
|
+
},
|
|
26
30
|
"./commerce-core": {
|
|
27
31
|
"types": "./commerce-core/index.d.ts",
|
|
28
32
|
"default": "./fesm2022/vectoriox-iox-ui-commerce-core.mjs"
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { AssistField } from './content-fields';
|
|
2
|
+
import { isEmptyFieldValue, isPlainRecord } from './field-values';
|
|
3
|
+
import { ContentRecord } from './summarize-item';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The ONE locale a content-item turn writes in (plan §3c rule 8, trap T5) — decided the same way by the server and the
|
|
7
|
+
* client: a multiLang field gets this key and no other. The sentence decides when it names a language ("translate the
|
|
8
|
+
* summary to English", "תרגם לאנגלית") — matched against the runtime's own language names (`Intl.DisplayNames`) in the
|
|
9
|
+
* languages the admin speaks, never a hand-kept list; the last one named wins. Otherwise the item's own language: the
|
|
10
|
+
* locale most of its multiLang fields are filled in (schema order breaks a tie); else the admin's; else the first.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/** The languages whose names a sentence may use — the admin's two UI languages. */
|
|
14
|
+
export const LOCALE_NAME_LANGUAGES: ReadonlyArray<string> = ['en', 'he'];
|
|
15
|
+
|
|
16
|
+
const DISPLAY_TYPE_LANGUAGE = 'language';
|
|
17
|
+
|
|
18
|
+
/** Every locale the type's multiLang fields hold, in schema order. */
|
|
19
|
+
export function itemLocales(fields: ReadonlyArray<AssistField>): string[] {
|
|
20
|
+
return [...new Set(fields.flatMap(f => f.locales ?? []))];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function displayName(locale: string, inLanguage: string): string | null {
|
|
24
|
+
try {
|
|
25
|
+
const name = new Intl.DisplayNames([inLanguage], { type: DISPLAY_TYPE_LANGUAGE }).of(locale);
|
|
26
|
+
return name && name !== locale ? name : null;
|
|
27
|
+
} catch {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function languageNames(locale: string, languages: ReadonlyArray<string>): string[] {
|
|
33
|
+
return languages.flatMap(lang => {
|
|
34
|
+
const name = displayName(locale, lang);
|
|
35
|
+
return name ? [name.toLowerCase()] : [];
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** The last position a locale's name appears at in the sentence, or -1. */
|
|
40
|
+
function lastMention(sentence: string, locale: string, languages: ReadonlyArray<string>): number {
|
|
41
|
+
const s = sentence.toLowerCase();
|
|
42
|
+
return Math.max(-1, ...languageNames(locale, languages).map(n => s.lastIndexOf(n)));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** The locale the sentence names; the last one named wins ("the Hebrew summary to English" → en). */
|
|
46
|
+
export function namedLocale(sentence: string, locales: ReadonlyArray<string>, languages: ReadonlyArray<string> = LOCALE_NAME_LANGUAGES): string | null {
|
|
47
|
+
const named = locales
|
|
48
|
+
.map(locale => ({ locale, at: lastMention(sentence, locale, languages) }))
|
|
49
|
+
.filter(m => m.at >= 0)
|
|
50
|
+
.sort((a, b) => b.at - a.at);
|
|
51
|
+
return named[0]?.locale ?? null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** The locale most of the item's multiLang fields are filled in (schema order breaks a tie); else the UI's; else the first. */
|
|
55
|
+
export function primaryLocale(fields: ReadonlyArray<AssistField>, values: ContentRecord, uiLang: string): string {
|
|
56
|
+
const locales = itemLocales(fields);
|
|
57
|
+
if (!locales.length) return uiLang;
|
|
58
|
+
const filled = (locale: string) => fields.filter(f => {
|
|
59
|
+
const v = values[f.key];
|
|
60
|
+
return f.locales?.includes(locale) && isPlainRecord(v) && !isEmptyFieldValue(v[locale]);
|
|
61
|
+
}).length;
|
|
62
|
+
const best = locales.reduce((a, b) => (filled(b) > filled(a) ? b : a));
|
|
63
|
+
if (filled(best) > 0) return best;
|
|
64
|
+
return locales.includes(uiLang) ? uiLang : locales[0];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** The write locale of a content-item turn. */
|
|
68
|
+
export function turnLocale(sentence: string, fields: ReadonlyArray<AssistField>, values: ContentRecord, uiLang: string): string {
|
|
69
|
+
return namedLocale(sentence, itemLocales(fields)) ?? primaryLocale(fields, values, uiLang);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** The language's own name in the admin's language (`en` → "English" / "אנגלית"). */
|
|
73
|
+
export const languageName = (locale: string, uiLang: string): string => displayName(locale, uiLang) ?? locale;
|