@vectoriox/iox-ui 5.140.0 → 5.142.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.
Files changed (45) hide show
  1. package/assist-core/index.d.ts +19 -2
  2. package/design-core/index.d.ts +171 -2
  3. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +29 -3
  4. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs +358 -172
  6. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1671 -861
  8. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +49 -18
  10. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +32 -9
  12. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui.mjs +85 -4
  14. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  15. package/generation-core/index.d.ts +525 -144
  16. package/harness-core/index.d.ts +18 -18
  17. package/index.d.ts +92 -2
  18. package/package.json +1 -1
  19. package/scene-core/index.d.ts +17 -1
  20. package/src/assist-core/assist-turn.ts +34 -2
  21. package/src/design-core/flavor-spec.generated.ts +141 -0
  22. package/src/design-core/ink-on-ground.ts +36 -0
  23. package/src/design-core/list-classes.ts +37 -0
  24. package/src/design-core/node-classes.ts +3 -2
  25. package/src/design-core/public-api.ts +2 -0
  26. package/src/generation-core/check-layout.ts +23 -1
  27. package/src/generation-core/check-list.ts +144 -5
  28. package/src/generation-core/compose-layout.ts +188 -23
  29. package/src/generation-core/compose-site.ts +14 -2
  30. package/src/generation-core/header-edit.ts +15 -11
  31. package/src/generation-core/layout-fingerprint.ts +5 -1
  32. package/src/generation-core/layout-language.ts +10 -0
  33. package/src/generation-core/layout-wire.ts +64 -24
  34. package/src/generation-core/list-panel.ts +122 -0
  35. package/src/generation-core/list-space.ts +205 -0
  36. package/src/generation-core/list-table.ts +101 -0
  37. package/src/generation-core/node-baselines.generated.ts +3 -1
  38. package/src/generation-core/public-api.ts +2 -0
  39. package/src/generation-core/serialized-node.ts +2 -0
  40. package/src/generation-core/site-plan.model.ts +6 -0
  41. package/src/generation-core/site-spec.generated.ts +188 -70
  42. package/src/generation-core/validate-site-plan.ts +8 -4
  43. package/src/harness-core/harness-spec.generated.ts +49 -18
  44. package/src/scene-core/split-text.ts +31 -7
  45. package/styles/iox-design.css +438 -4
@@ -1554,12 +1554,29 @@ interface AssistTarget {
1554
1554
  declare const NEW_TARGET = "new";
1555
1555
  /** `contentItem:projects:<itemId|new>` — each part encoded, so a value never carries the separator. */
1556
1556
  declare function assistSessionKey(surface: AssistSurface, target?: AssistTarget): string;
1557
+ /** What a remembered turn came to — the screen says it in the admin's language (iox-cms-client#85: the thread showed the
1558
+ * model's English "no change" on a Hebrew screen). */
1559
+ declare enum AssistMemoryOutcome {
1560
+ Changed = "changed",
1561
+ NoChange = "noChange",
1562
+ Drafted = "drafted",
1563
+ Refused = "refused",
1564
+ Failed = "failed",
1565
+ /** Still running, or a status this list does not name. */
1566
+ Other = "other"
1567
+ }
1557
1568
  interface AssistMemoryLine {
1558
1569
  readonly turnId: string;
1559
1570
  readonly createdAt: string;
1571
+ /** The line the NEXT TURN reads (the model's memory, English) — never shown to the owner as it is. */
1560
1572
  readonly line: string;
1573
+ /** What the owner asked, clipped as in `line`. */
1574
+ readonly asked?: string;
1575
+ /** What it came to, and how many things changed / were drafted — for the screen. */
1576
+ readonly outcome?: AssistMemoryOutcome;
1577
+ readonly count?: number;
1561
1578
  }
1562
- /** One line the next turn reads as memory — never a tree, a record or a value. */
1579
+ /** One line the next turn reads as memory — never a tree, a record or a value — and what the screen says of it. */
1563
1580
  declare function memoryLine(turn: AssistTurn): AssistMemoryLine;
1564
1581
  /** `GET …/ai/assist/sessions/:sessionKey` — the memory the next turn is sent. */
1565
1582
  interface AssistSession {
@@ -1595,5 +1612,5 @@ declare function turnLocale(sentence: string, fields: ReadonlyArray<AssistField>
1595
1612
  /** The language's own name in the admin's language (`en` → "English" / "אנגלית"). */
1596
1613
  declare const languageName: (locale: string, uiLang: string) => string;
1597
1614
 
1598
- export { AI_DRAFT_SOURCE, AROUND_ITEMS_MAX, AROUND_TEXT_CHARS, ASK_SECTION_PATTERNS, ASK_STYLE_SETS, ASSIST_MODEL_AUTO, ASSIST_POLL_MS, ASSIST_ROUTES, AssistBriefError, AssistBudgetError, AssistFieldKind, AssistHandOff, AssistIssueCode, AssistPathError, AssistPermission, AssistRefusalCode, AssistRouteKey, AssistRunStatus, AssistScope, AssistStep, AssistSurface, AssistTurnStatus, BOOLEAN_FALSE, BOOLEAN_TRUE, CommitKind, EditFamily, FIELDS_PER_PART, FIELD_HANDLE_PREFIX, FOCUS_TEXT_CHARS, FieldsAnswerKey, ItemSuggestionKind, LOCALE_NAME_LANGUAGES, LOOK_AXES, LOOK_AXIS_LABELS, LOOK_KEEP, LookAnswerKey, LookAxis, LookButtons, MAX_ASSIST_PHOTOS, MAX_ASSIST_PROPERTIES, MAX_ROUTE_PROPERTIES, MAX_SENTENCE_CHARS, MEMORY_TURNS, MODE_LABELS, NEW_TARGET, NONE_TEXT, NeverWriteReason, OWNER_FILL_MAX_CHARS, PAGE_WORD_SLOTS, PHOTOS_PER_READ, PHOTO_GROUP_HANDLE_PREFIX, PageChangeOp, PagePartKind, PageSuggestionKind, PhotoAnswerKey, PhotoGrouping, RouteAnswerKey, SECTION_START, SHORTEN_FROM_CHARS, SHORTEN_HEADING_FROM_CHARS, SHORTEN_TEXT_FROM_CHARS, SIBLING_HANDLE_PREFIX, SURFACES, SectionChangeKind, SectionsAnswerKey, StyleAnswerKey, SurfaceStatus, ValueSource, WORDS_PER_PART, WordsAnswerKey, adjustAxesOf, aiDraftStamp, applyFieldEdits, applyLookEdits, applyPageEdits, applySectionEdits, applyStyleEdits, applyWordEdits, askSectionPatternNames, askableStyles, assertAssistBudget, assistBudgetIssues, assistFactIssues, assistFields, assistPath, assistSession, assistSessionKey, builtSurfaces, clipText, commitOf, containsHtml, decodeFieldsAnswers, decodeLookAnswers, decodePhotoDraftAnswers, decodeSectionsAnswers, decodeStyleAnswers, decodeWordsAnswers, draftFromPhotos, escapeText, fieldHandle, fieldsJsonSchema, fieldsNamedIn, groupPhotos, isAiDraft, isEmptyFieldValue, isPlainRecord, isRunBusy, isSchemeEdit, isSectionEdit, isSessionOf, isSiteLookEdit, isSizeEdit, isStyleEdit, isTerminalTurn, isWritable, itemLocales, itemSuggestions, languageName, lookAxisValue, lookHex, lookJsonSchema, lookNames, memoryLine, namedLocale, ownerFillFields, ownerFillIssues, pageLooks, pageSuggestions, pageWriteLocale, paragraphsToRichText, photoDraftJsonSchema, photoGroupBrief, photoGroupHandle, photoReadCount, photoSlots, primaryLocale, readFieldValue, readLocaleValues, readRoute, readableWords, resolveHandle, richTextParagraphs, routeJsonSchema, sectionLabel, sectionPatternOf, sectionsJsonSchema, serializedBaselineStyles, sessionMemory, styleJsonSchema, suggestPhotoType, summarizeItem, summarizeLook, summarizePage, summarizePhotos, surfacePermissions, surfaceSpec, surfaceUndoPermissions, takesPhotos, titleField, turnLocale, unknownHandles, validateRunRequest, validateTurnRequest, withOwnerFill, wordsJsonSchema };
1615
+ export { AI_DRAFT_SOURCE, AROUND_ITEMS_MAX, AROUND_TEXT_CHARS, ASK_SECTION_PATTERNS, ASK_STYLE_SETS, ASSIST_MODEL_AUTO, ASSIST_POLL_MS, ASSIST_ROUTES, AssistBriefError, AssistBudgetError, AssistFieldKind, AssistHandOff, AssistIssueCode, AssistMemoryOutcome, AssistPathError, AssistPermission, AssistRefusalCode, AssistRouteKey, AssistRunStatus, AssistScope, AssistStep, AssistSurface, AssistTurnStatus, BOOLEAN_FALSE, BOOLEAN_TRUE, CommitKind, EditFamily, FIELDS_PER_PART, FIELD_HANDLE_PREFIX, FOCUS_TEXT_CHARS, FieldsAnswerKey, ItemSuggestionKind, LOCALE_NAME_LANGUAGES, LOOK_AXES, LOOK_AXIS_LABELS, LOOK_KEEP, LookAnswerKey, LookAxis, LookButtons, MAX_ASSIST_PHOTOS, MAX_ASSIST_PROPERTIES, MAX_ROUTE_PROPERTIES, MAX_SENTENCE_CHARS, MEMORY_TURNS, MODE_LABELS, NEW_TARGET, NONE_TEXT, NeverWriteReason, OWNER_FILL_MAX_CHARS, PAGE_WORD_SLOTS, PHOTOS_PER_READ, PHOTO_GROUP_HANDLE_PREFIX, PageChangeOp, PagePartKind, PageSuggestionKind, PhotoAnswerKey, PhotoGrouping, RouteAnswerKey, SECTION_START, SHORTEN_FROM_CHARS, SHORTEN_HEADING_FROM_CHARS, SHORTEN_TEXT_FROM_CHARS, SIBLING_HANDLE_PREFIX, SURFACES, SectionChangeKind, SectionsAnswerKey, StyleAnswerKey, SurfaceStatus, ValueSource, WORDS_PER_PART, WordsAnswerKey, adjustAxesOf, aiDraftStamp, applyFieldEdits, applyLookEdits, applyPageEdits, applySectionEdits, applyStyleEdits, applyWordEdits, askSectionPatternNames, askableStyles, assertAssistBudget, assistBudgetIssues, assistFactIssues, assistFields, assistPath, assistSession, assistSessionKey, builtSurfaces, clipText, commitOf, containsHtml, decodeFieldsAnswers, decodeLookAnswers, decodePhotoDraftAnswers, decodeSectionsAnswers, decodeStyleAnswers, decodeWordsAnswers, draftFromPhotos, escapeText, fieldHandle, fieldsJsonSchema, fieldsNamedIn, groupPhotos, isAiDraft, isEmptyFieldValue, isPlainRecord, isRunBusy, isSchemeEdit, isSectionEdit, isSessionOf, isSiteLookEdit, isSizeEdit, isStyleEdit, isTerminalTurn, isWritable, itemLocales, itemSuggestions, languageName, lookAxisValue, lookHex, lookJsonSchema, lookNames, memoryLine, namedLocale, ownerFillFields, ownerFillIssues, pageLooks, pageSuggestions, pageWriteLocale, paragraphsToRichText, photoDraftJsonSchema, photoGroupBrief, photoGroupHandle, photoReadCount, photoSlots, primaryLocale, readFieldValue, readLocaleValues, readRoute, readableWords, resolveHandle, richTextParagraphs, routeJsonSchema, sectionLabel, sectionPatternOf, sectionsJsonSchema, serializedBaselineStyles, sessionMemory, styleJsonSchema, suggestPhotoType, summarizeItem, summarizeLook, summarizePage, summarizePhotos, surfacePermissions, surfaceSpec, surfaceUndoPermissions, takesPhotos, titleField, turnLocale, unknownHandles, validateRunRequest, validateTurnRequest, withOwnerFill, wordsJsonSchema };
1599
1616
  export type { AiDraftStamp, AssistChange, AssistEdit, AssistField, AssistIssue, AssistMemoryLine, AssistModelChoice, AssistPhoto, AssistRoute, AssistRunRequest, AssistRunView, AssistSession, AssistTarget, AssistTurn, AssistTurnAccepted, AssistTurnProgress, AssistTurnRefusal, AssistTurnRequest, AssistWordContext, BaselineStyles, Brief, BriefRules, BriefValue, ContentControllerDef, ContentPropertyDef, ContentRecord, ContentTypeSchema, DraftValue, FieldChange, FieldEdit, FieldEditContext, FieldEditsOutcome, FieldsSchemaExtra, FieldsSchemaOptions, FieldsSchemas, HandleMap, HandleResolution, HandleTarget, ItemAround, ItemBrief, ItemBriefContext, ItemBriefField, ItemFocus, ItemSuggestion, ItemSummary, KeptDraft, LookEditsOutcome, LookMap, LookSchemas, LookSummary, LookTarget, NeverWrite, NodeStyleEdit, PageAround, PageBrief, PageBriefContext, PageChange, PageEdit, PageEditContext, PageEditsOutcome, PageFocus, PageLook, PagePart, PageSectionSummary, PageSuggestion, PhotoBriefField, PhotoDraft, PhotoDraftAnswer, PhotoDraftContext, PhotoDraftOutcome, PhotoGroup, PhotoSlots, PhotosAround, PhotosBrief, PhotosBriefContext, PhotosFocus, SchemeEdit, SectionAdd, SectionChange, SectionEdit, SectionEditContext, SectionEditsOutcome, SectionMap, SectionMove, SectionRemove, SectionSwap, SectionTarget, SiteLookChange, SiteLookEdit, SizeEdit, StyleChange, StyleEdit, StyleEditContext, StyleEditsOutcome, StyleSchemas, SummarizedItem, SummarizedPage, SummarizedPhotos, SurfaceSpec, WalkedLook, WordChange, WordEdit, WordEditContext, WordEditsOutcome, WordsSchemas, WrittenWords };
@@ -654,6 +654,18 @@ declare const SPEC_TIERS: {
654
654
  readonly name: "list-rise";
655
655
  readonly type: "size";
656
656
  readonly default: "-10px";
657
+ }, {
658
+ readonly name: "list-fan-step";
659
+ readonly type: "number";
660
+ readonly default: "9";
661
+ }, {
662
+ readonly name: "list-tilt";
663
+ readonly type: "number";
664
+ readonly default: "3";
665
+ }, {
666
+ readonly name: "list-tile";
667
+ readonly type: "color";
668
+ readonly default: "var(--iox-surface-2)";
657
669
  }, {
658
670
  readonly name: "panel-bg";
659
671
  readonly type: "color";
@@ -6029,6 +6041,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
6029
6041
  readonly type: "size";
6030
6042
  readonly group: "components";
6031
6043
  readonly value: "-10px";
6044
+ }, {
6045
+ readonly name: "list-fan-step";
6046
+ readonly tier: "component";
6047
+ readonly type: "number";
6048
+ readonly group: "components";
6049
+ readonly value: "9";
6050
+ }, {
6051
+ readonly name: "list-tilt";
6052
+ readonly tier: "component";
6053
+ readonly type: "number";
6054
+ readonly group: "components";
6055
+ readonly value: "3";
6056
+ }, {
6057
+ readonly name: "list-tile";
6058
+ readonly tier: "component";
6059
+ readonly type: "color";
6060
+ readonly group: "components";
6061
+ readonly value: "var(--iox-surface-2)";
6032
6062
  }, {
6033
6063
  readonly name: "panel-bg";
6034
6064
  readonly tier: "component";
@@ -8047,6 +8077,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
8047
8077
  readonly type: "size";
8048
8078
  readonly group: "components";
8049
8079
  readonly value: "-10px";
8080
+ }, {
8081
+ readonly name: "list-fan-step";
8082
+ readonly tier: "component";
8083
+ readonly type: "number";
8084
+ readonly group: "components";
8085
+ readonly value: "9";
8086
+ }, {
8087
+ readonly name: "list-tilt";
8088
+ readonly tier: "component";
8089
+ readonly type: "number";
8090
+ readonly group: "components";
8091
+ readonly value: "3";
8092
+ }, {
8093
+ readonly name: "list-tile";
8094
+ readonly tier: "component";
8095
+ readonly type: "color";
8096
+ readonly group: "components";
8097
+ readonly value: "var(--iox-surface-2)";
8050
8098
  }, {
8051
8099
  readonly name: "panel-bg";
8052
8100
  readonly tier: "component";
@@ -10071,6 +10119,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
10071
10119
  readonly type: "size";
10072
10120
  readonly group: "components";
10073
10121
  readonly value: "-10px";
10122
+ }, {
10123
+ readonly name: "list-fan-step";
10124
+ readonly tier: "component";
10125
+ readonly type: "number";
10126
+ readonly group: "components";
10127
+ readonly value: "9";
10128
+ }, {
10129
+ readonly name: "list-tilt";
10130
+ readonly tier: "component";
10131
+ readonly type: "number";
10132
+ readonly group: "components";
10133
+ readonly value: "3";
10134
+ }, {
10135
+ readonly name: "list-tile";
10136
+ readonly tier: "component";
10137
+ readonly type: "color";
10138
+ readonly group: "components";
10139
+ readonly value: "var(--iox-surface-2)";
10074
10140
  }, {
10075
10141
  readonly name: "panel-bg";
10076
10142
  readonly tier: "component";
@@ -12108,6 +12174,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
12108
12174
  readonly type: "size";
12109
12175
  readonly group: "components";
12110
12176
  readonly value: "-10px";
12177
+ }, {
12178
+ readonly name: "list-fan-step";
12179
+ readonly tier: "component";
12180
+ readonly type: "number";
12181
+ readonly group: "components";
12182
+ readonly value: "9";
12183
+ }, {
12184
+ readonly name: "list-tilt";
12185
+ readonly tier: "component";
12186
+ readonly type: "number";
12187
+ readonly group: "components";
12188
+ readonly value: "3";
12189
+ }, {
12190
+ readonly name: "list-tile";
12191
+ readonly tier: "component";
12192
+ readonly type: "color";
12193
+ readonly group: "components";
12194
+ readonly value: "var(--iox-surface-2)";
12111
12195
  }, {
12112
12196
  readonly name: "panel-bg";
12113
12197
  readonly tier: "component";
@@ -14150,6 +14234,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
14150
14234
  readonly type: "size";
14151
14235
  readonly group: "components";
14152
14236
  readonly value: "-10px";
14237
+ }, {
14238
+ readonly name: "list-fan-step";
14239
+ readonly tier: "component";
14240
+ readonly type: "number";
14241
+ readonly group: "components";
14242
+ readonly value: "9";
14243
+ }, {
14244
+ readonly name: "list-tilt";
14245
+ readonly tier: "component";
14246
+ readonly type: "number";
14247
+ readonly group: "components";
14248
+ readonly value: "3";
14249
+ }, {
14250
+ readonly name: "list-tile";
14251
+ readonly tier: "component";
14252
+ readonly type: "color";
14253
+ readonly group: "components";
14254
+ readonly value: "var(--iox-surface-2)";
14153
14255
  }, {
14154
14256
  readonly name: "panel-bg";
14155
14257
  readonly tier: "component";
@@ -16177,6 +16279,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
16177
16279
  readonly type: "size";
16178
16280
  readonly group: "components";
16179
16281
  readonly value: "-10px";
16282
+ }, {
16283
+ readonly name: "list-fan-step";
16284
+ readonly tier: "component";
16285
+ readonly type: "number";
16286
+ readonly group: "components";
16287
+ readonly value: "9";
16288
+ }, {
16289
+ readonly name: "list-tilt";
16290
+ readonly tier: "component";
16291
+ readonly type: "number";
16292
+ readonly group: "components";
16293
+ readonly value: "3";
16294
+ }, {
16295
+ readonly name: "list-tile";
16296
+ readonly tier: "component";
16297
+ readonly type: "color";
16298
+ readonly group: "components";
16299
+ readonly value: "var(--iox-surface-2)";
16180
16300
  }, {
16181
16301
  readonly name: "panel-bg";
16182
16302
  readonly tier: "component";
@@ -18544,6 +18664,55 @@ declare function schemeUnderBar(bands: ReadonlyArray<GroundBand>, barBottom: num
18544
18664
  /** The scheme an element wears, read back from its `iox-scheme-<id>` class — null for none. */
18545
18665
  declare function schemeOfClasses(classes: Iterable<string> | null | undefined): string | null;
18546
18666
 
18667
+ /**
18668
+ * A COMPOSED LIST'S MIX ON ITS FRAME (award-ingredients-plan §7.1f AW11, board award-lists): the words a list section was
18669
+ * composed as ride on its frame as ONE prop, `listMix` (`item:packshot arrange:grid hover:swap …`, the wire's words), and
18670
+ * become marker classes — `iox-list-item-packshot`, `iox-list-hover-swap` — that the shared iox-design.css draws. The
18671
+ * same decision in all three render paths (`nodeDesignClasses`), so a word is drawn by CSS alone and the canvas, both
18672
+ * engine paths and the raw SSR agree. Bindings ▸ List reads and writes the same prop. Pure.
18673
+ */
18674
+ /** The prop (a Container's trait) the mix is stored under. */
18675
+ declare const LIST_MIX_PROP = "listMix";
18676
+ /** Every class a mix writes starts with this — what a live re-sync removes. */
18677
+ declare const LIST_CLASS_PREFIX = "iox-list-";
18678
+ interface ListMixSource {
18679
+ props?: Readonly<Record<string, unknown>> | null;
18680
+ traits?: ReadonlyArray<{
18681
+ name?: string;
18682
+ default?: unknown;
18683
+ }> | null;
18684
+ }
18685
+ /** The stored mix's words (`item:packshot`), from `props` (saved) or the trait (builder); [] for none. */
18686
+ declare function listMixWordsOf(node: ListMixSource | null | undefined): string[];
18687
+ /** The marker classes a list frame renders (`iox-list-arrange-hang iox-list-hover-swap`), or '' for none. */
18688
+ declare function listMixClasses(node: ListMixSource | null | undefined): string;
18689
+ /** True for a class this module writes. */
18690
+ declare function isListMixClass(c: string): boolean;
18691
+
18692
+ /**
18693
+ * THE INK ON AN ITEM'S OWN GROUND (award-ingredients-plan §7.1f, AW11-D10, R-H-AW11-6): a colour block's ground is the
18694
+ * item's own colour (its `colour` field) — chosen by its owner, not the look — so the words on it are chosen when the
18695
+ * page is drawn, item by item, in both renderers: the ink that reads best, and when neither reaches AA, the ground moved
18696
+ * in lightness (its own hue and chroma) until it does. An owner's new item is checked like the samples. Pure.
18697
+ */
18698
+ /** The two inks a block may wear: the look's dark text and its light one (defaults: near-black and white). */
18699
+ interface GroundInks {
18700
+ readonly dark: string;
18701
+ readonly light: string;
18702
+ }
18703
+ declare const DEFAULT_GROUND_INKS: GroundInks;
18704
+ /** WCAG 2 AA for body text. */
18705
+ declare const GROUND_INK_MIN = 4.5;
18706
+ interface InkedGround {
18707
+ /** The ground drawn — the given one, or moved in lightness until the ink reads (AA). */
18708
+ readonly ground: string;
18709
+ readonly ink: string;
18710
+ /** True when the ground had to move. */
18711
+ readonly moved: boolean;
18712
+ }
18713
+ /** The ink for a ground (and the ground, moved only when no ink reaches `min`); null when the ground is no hex colour. */
18714
+ declare function inkOnGround(ground: string, inks?: GroundInks, min?: number): InkedGround | null;
18715
+
18547
18716
  /**
18548
18717
  * A rendered Field's classes and its error, in design-core because two entries write into a Field: forms-core (the
18549
18718
  * string renderer's markup, the form runtimes) and composite-core (the sign-in dialog). composite-core may not import
@@ -19822,5 +19991,5 @@ declare const isScrubId: (v: unknown) => v is `${ScrubId}`;
19822
19991
  /** The look's scrub as stored: a known word, else never (a row stored before AW10 reads never). */
19823
19992
  declare function scrubOfChoices(choices: Pick<DesignChoices, 'scrub'> | null | undefined): ScrubId;
19824
19993
 
19825
- export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BUTTON_VARIANT_TO_STYLE, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_EDGES, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MIRRORED_EDGES, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, SECTION_EDGES, SECTION_EDGE_TRAIT, SECTION_EDGE_TYPES, SECTION_FULL_STYLES, SECTION_SHAPE_TRAIT, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_MOTION_LANGUAGE, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SPRING_CURVE_TOKEN, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, ScrubId, SectionEdge, SectionShape, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, edgeFitsShape, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, planSectionShape, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitMotion, preloaderExitOf, preloaderGraphemes, preloaderLeaveAt, preloaderOfChoices, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, schemeOfClasses, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, textWidthEm, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeFieldError, writeOwnedTrait };
19826
- export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, AnimateId, ApplyElementStyleResult, ArriveId, BetweenId, ButtonBlockLinkProps, ColourCheck, ColourFlavor, ContrastFinding, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, DesignMotion, DesignRevertSnapshot, DesignTokenGroup, DesignTokenLike, DesignTokenRow, DesignTokenTier, DesignTokenType, ElementStyle, ElementStyleTarget, ElementStyleTraitLike, FlavorColours, FlavorPack, FlavorPackV2, FlavorPalette, FlavorRevertPlan, FlavorRevertSnapshot, FlavorRevertWrite, FlavorSeedOptions, FlavorSeedPlan, FlavorSpecToken, FlavorTintConfig, FlavorTokenDef, FontDescriptor, FontFamilyGroup, FontFamilyRemoval, FontFamilyToken, FontFormat, FontPair, FontRoleToken, FontStyle, FontWeight, FontWeightRange, FontsForTokensOptions, GroundBand, KeptEdit, LeaveId, LinearSpring, MenuLook, MenuTraitReader, MissingFontRole, MoodId, MotionId, MotionLanguage, MotionWordKind, MoveId, NodeLinkProps, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, PreloaderExitMotion, PreloaderInput, PreloaderPlan, PresetMode, PresetMotionLanguage, ResolvedMode, Rgb, Rgba, SchemeId, ScriptId, ScrollId, SectionEdgeSource, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StaggerSpec, StoredDesign, StoredDesignTokenRow, StylePreset, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, ThemeColorOptions, ThemeColors, TimedAction, TintId, TintLevel, TokenCssBlocks, TokenCssOptions, TypeFace };
19994
+ export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BUTTON_VARIANT_TO_STYLE, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_EDGES, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_GROUND_INKS, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, GROUND_INK_MIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LIST_CLASS_PREFIX, LIST_MIX_PROP, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MIRRORED_EDGES, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, SECTION_EDGES, SECTION_EDGE_TRAIT, SECTION_EDGE_TYPES, SECTION_FULL_STYLES, SECTION_SHAPE_TRAIT, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_MOTION_LANGUAGE, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SPRING_CURVE_TOKEN, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, ScrubId, SectionEdge, SectionShape, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, edgeFitsShape, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isListMixClass, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, listMixClasses, listMixWordsOf, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, planSectionShape, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitMotion, preloaderExitOf, preloaderGraphemes, preloaderLeaveAt, preloaderOfChoices, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, schemeOfClasses, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, textWidthEm, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeFieldError, writeOwnedTrait };
19995
+ export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, AnimateId, ApplyElementStyleResult, ArriveId, BetweenId, ButtonBlockLinkProps, ColourCheck, ColourFlavor, ContrastFinding, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, DesignMotion, DesignRevertSnapshot, DesignTokenGroup, DesignTokenLike, DesignTokenRow, DesignTokenTier, DesignTokenType, ElementStyle, ElementStyleTarget, ElementStyleTraitLike, FlavorColours, FlavorPack, FlavorPackV2, FlavorPalette, FlavorRevertPlan, FlavorRevertSnapshot, FlavorRevertWrite, FlavorSeedOptions, FlavorSeedPlan, FlavorSpecToken, FlavorTintConfig, FlavorTokenDef, FontDescriptor, FontFamilyGroup, FontFamilyRemoval, FontFamilyToken, FontFormat, FontPair, FontRoleToken, FontStyle, FontWeight, FontWeightRange, FontsForTokensOptions, GroundBand, GroundInks, InkedGround, KeptEdit, LeaveId, LinearSpring, MenuLook, MenuTraitReader, MissingFontRole, MoodId, MotionId, MotionLanguage, MotionWordKind, MoveId, NodeLinkProps, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, PreloaderExitMotion, PreloaderInput, PreloaderPlan, PresetMode, PresetMotionLanguage, ResolvedMode, Rgb, Rgba, SchemeId, ScriptId, ScrollId, SectionEdgeSource, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StaggerSpec, StoredDesign, StoredDesignTokenRow, StylePreset, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, ThemeColorOptions, ThemeColors, TimedAction, TintId, TintLevel, TokenCssBlocks, TokenCssOptions, TypeFace };
@@ -2835,6 +2835,18 @@ function assistSessionKey(surface, target = {}) {
2835
2835
  const parts = SESSION_TARGET_KEYS[surface].map(k => encodeURIComponent(target[k] || NEW_TARGET));
2836
2836
  return [surface, ...parts].join(SESSION_SEPARATOR);
2837
2837
  }
2838
+ /** What a remembered turn came to — the screen says it in the admin's language (iox-cms-client#85: the thread showed the
2839
+ * model's English "no change" on a Hebrew screen). */
2840
+ var AssistMemoryOutcome;
2841
+ (function (AssistMemoryOutcome) {
2842
+ AssistMemoryOutcome["Changed"] = "changed";
2843
+ AssistMemoryOutcome["NoChange"] = "noChange";
2844
+ AssistMemoryOutcome["Drafted"] = "drafted";
2845
+ AssistMemoryOutcome["Refused"] = "refused";
2846
+ AssistMemoryOutcome["Failed"] = "failed";
2847
+ /** Still running, or a status this list does not name. */
2848
+ AssistMemoryOutcome["Other"] = "other";
2849
+ })(AssistMemoryOutcome || (AssistMemoryOutcome = {}));
2838
2850
  const SENTENCE_IN_MEMORY_CHARS = 80;
2839
2851
  function outcome(turn) {
2840
2852
  const named = (list) => (list ?? []).map(c => (isLookChange(c) ? `${c.label} → ${c.after}` : 'locale' in c && c.locale ? `${c.label} (${c.locale})` : c.label)).join(', ');
@@ -2852,10 +2864,24 @@ function outcome(turn) {
2852
2864
  default: return turn.status;
2853
2865
  }
2854
2866
  }
2855
- /** One line the next turn reads as memory — never a tree, a record or a value. */
2867
+ /** What a turn came to, for the screen (`AssistMemoryLine.outcome`). */
2868
+ function outcomeKind(turn) {
2869
+ switch (turn.status) {
2870
+ case AssistTurnStatus.Refused: return { outcome: AssistMemoryOutcome.Refused, count: 0 };
2871
+ case AssistTurnStatus.Failed: return { outcome: AssistMemoryOutcome.Failed, count: 0 };
2872
+ case AssistTurnStatus.Done: {
2873
+ if (turn.drafts?.length)
2874
+ return { outcome: AssistMemoryOutcome.Drafted, count: turn.drafts.length };
2875
+ const changed = turn.changes?.length ?? 0;
2876
+ return { outcome: changed ? AssistMemoryOutcome.Changed : AssistMemoryOutcome.NoChange, count: changed };
2877
+ }
2878
+ default: return { outcome: AssistMemoryOutcome.Other, count: 0 };
2879
+ }
2880
+ }
2881
+ /** One line the next turn reads as memory — never a tree, a record or a value — and what the screen says of it. */
2856
2882
  function memoryLine(turn) {
2857
2883
  const asked = clipText(turn.sentence.replace(/\s+/g, ' ').trim(), SENTENCE_IN_MEMORY_CHARS);
2858
- return { turnId: turn.id, createdAt: turn.createdAt, line: clipText(`"${asked}" → ${outcome(turn)}`, AROUND_TEXT_CHARS) };
2884
+ return { turnId: turn.id, createdAt: turn.createdAt, line: clipText(`"${asked}" → ${outcome(turn)}`, AROUND_TEXT_CHARS), asked, ...outcomeKind(turn) };
2859
2885
  }
2860
2886
  /** A session's answer from its stored turns (those of another session are ignored). */
2861
2887
  function assistSession(sessionKey, turns) {
@@ -2944,5 +2970,5 @@ function validateTurnRequest(req) {
2944
2970
  * Generated bundle index. Do not edit.
2945
2971
  */
2946
2972
 
2947
- export { AI_DRAFT_SOURCE, AROUND_ITEMS_MAX, AROUND_TEXT_CHARS, ASK_SECTION_PATTERNS, ASK_STYLE_SETS, ASSIST_MODEL_AUTO, ASSIST_POLL_MS, ASSIST_ROUTES, AssistBriefError, AssistBudgetError, AssistFieldKind, AssistHandOff, AssistIssueCode, AssistPathError, AssistPermission, AssistRefusalCode, AssistRouteKey, AssistRunStatus, AssistScope, AssistStep, AssistSurface, AssistTurnStatus, BOOLEAN_FALSE, BOOLEAN_TRUE, CommitKind, EditFamily, FIELDS_PER_PART, FIELD_HANDLE_PREFIX, FOCUS_TEXT_CHARS, FieldsAnswerKey, ItemSuggestionKind, LOCALE_NAME_LANGUAGES, LOOK_AXES, LOOK_AXIS_LABELS, LOOK_KEEP, LookAnswerKey, LookAxis, LookButtons, MAX_ASSIST_PHOTOS, MAX_ASSIST_PROPERTIES, MAX_ROUTE_PROPERTIES, MAX_SENTENCE_CHARS, MEMORY_TURNS, MODE_LABELS, NEW_TARGET, NONE_TEXT, NeverWriteReason, OWNER_FILL_MAX_CHARS, PAGE_WORD_SLOTS, PHOTOS_PER_READ, PHOTO_GROUP_HANDLE_PREFIX, PageChangeOp, PagePartKind, PageSuggestionKind, PhotoAnswerKey, PhotoGrouping, RouteAnswerKey, SECTION_START, SHORTEN_FROM_CHARS, SHORTEN_HEADING_FROM_CHARS, SHORTEN_TEXT_FROM_CHARS, SIBLING_HANDLE_PREFIX, SURFACES, SectionChangeKind, SectionsAnswerKey, StyleAnswerKey, SurfaceStatus, ValueSource, WORDS_PER_PART, WordsAnswerKey, adjustAxesOf, aiDraftStamp, applyFieldEdits, applyLookEdits, applyPageEdits, applySectionEdits, applyStyleEdits, applyWordEdits, askSectionPatternNames, askableStyles, assertAssistBudget, assistBudgetIssues, assistFactIssues, assistFields, assistPath, assistSession, assistSessionKey, builtSurfaces, clipText, commitOf, containsHtml, decodeFieldsAnswers, decodeLookAnswers, decodePhotoDraftAnswers, decodeSectionsAnswers, decodeStyleAnswers, decodeWordsAnswers, draftFromPhotos, escapeText, fieldHandle, fieldsJsonSchema, fieldsNamedIn, groupPhotos, isAiDraft, isEmptyFieldValue, isPlainRecord, isRunBusy, isSchemeEdit, isSectionEdit, isSessionOf, isSiteLookEdit, isSizeEdit, isStyleEdit, isTerminalTurn, isWritable, itemLocales, itemSuggestions, languageName, lookAxisValue, lookHex, lookJsonSchema, lookNames, memoryLine, namedLocale, ownerFillFields, ownerFillIssues, pageLooks, pageSuggestions, pageWriteLocale, paragraphsToRichText, photoDraftJsonSchema, photoGroupBrief, photoGroupHandle, photoReadCount, photoSlots, primaryLocale, readFieldValue, readLocaleValues, readRoute, readableWords, resolveHandle, richTextParagraphs, routeJsonSchema, sectionLabel, sectionPatternOf, sectionsJsonSchema, serializedBaselineStyles, sessionMemory, styleJsonSchema, suggestPhotoType, summarizeItem, summarizeLook, summarizePage, summarizePhotos, surfacePermissions, surfaceSpec, surfaceUndoPermissions, takesPhotos, titleField, turnLocale, unknownHandles, validateRunRequest, validateTurnRequest, withOwnerFill, wordsJsonSchema };
2973
+ export { AI_DRAFT_SOURCE, AROUND_ITEMS_MAX, AROUND_TEXT_CHARS, ASK_SECTION_PATTERNS, ASK_STYLE_SETS, ASSIST_MODEL_AUTO, ASSIST_POLL_MS, ASSIST_ROUTES, AssistBriefError, AssistBudgetError, AssistFieldKind, AssistHandOff, AssistIssueCode, AssistMemoryOutcome, AssistPathError, AssistPermission, AssistRefusalCode, AssistRouteKey, AssistRunStatus, AssistScope, AssistStep, AssistSurface, AssistTurnStatus, BOOLEAN_FALSE, BOOLEAN_TRUE, CommitKind, EditFamily, FIELDS_PER_PART, FIELD_HANDLE_PREFIX, FOCUS_TEXT_CHARS, FieldsAnswerKey, ItemSuggestionKind, LOCALE_NAME_LANGUAGES, LOOK_AXES, LOOK_AXIS_LABELS, LOOK_KEEP, LookAnswerKey, LookAxis, LookButtons, MAX_ASSIST_PHOTOS, MAX_ASSIST_PROPERTIES, MAX_ROUTE_PROPERTIES, MAX_SENTENCE_CHARS, MEMORY_TURNS, MODE_LABELS, NEW_TARGET, NONE_TEXT, NeverWriteReason, OWNER_FILL_MAX_CHARS, PAGE_WORD_SLOTS, PHOTOS_PER_READ, PHOTO_GROUP_HANDLE_PREFIX, PageChangeOp, PagePartKind, PageSuggestionKind, PhotoAnswerKey, PhotoGrouping, RouteAnswerKey, SECTION_START, SHORTEN_FROM_CHARS, SHORTEN_HEADING_FROM_CHARS, SHORTEN_TEXT_FROM_CHARS, SIBLING_HANDLE_PREFIX, SURFACES, SectionChangeKind, SectionsAnswerKey, StyleAnswerKey, SurfaceStatus, ValueSource, WORDS_PER_PART, WordsAnswerKey, adjustAxesOf, aiDraftStamp, applyFieldEdits, applyLookEdits, applyPageEdits, applySectionEdits, applyStyleEdits, applyWordEdits, askSectionPatternNames, askableStyles, assertAssistBudget, assistBudgetIssues, assistFactIssues, assistFields, assistPath, assistSession, assistSessionKey, builtSurfaces, clipText, commitOf, containsHtml, decodeFieldsAnswers, decodeLookAnswers, decodePhotoDraftAnswers, decodeSectionsAnswers, decodeStyleAnswers, decodeWordsAnswers, draftFromPhotos, escapeText, fieldHandle, fieldsJsonSchema, fieldsNamedIn, groupPhotos, isAiDraft, isEmptyFieldValue, isPlainRecord, isRunBusy, isSchemeEdit, isSectionEdit, isSessionOf, isSiteLookEdit, isSizeEdit, isStyleEdit, isTerminalTurn, isWritable, itemLocales, itemSuggestions, languageName, lookAxisValue, lookHex, lookJsonSchema, lookNames, memoryLine, namedLocale, ownerFillFields, ownerFillIssues, pageLooks, pageSuggestions, pageWriteLocale, paragraphsToRichText, photoDraftJsonSchema, photoGroupBrief, photoGroupHandle, photoReadCount, photoSlots, primaryLocale, readFieldValue, readLocaleValues, readRoute, readableWords, resolveHandle, richTextParagraphs, routeJsonSchema, sectionLabel, sectionPatternOf, sectionsJsonSchema, serializedBaselineStyles, sessionMemory, styleJsonSchema, suggestPhotoType, summarizeItem, summarizeLook, summarizePage, summarizePhotos, surfacePermissions, surfaceSpec, surfaceUndoPermissions, takesPhotos, titleField, turnLocale, unknownHandles, validateRunRequest, validateTurnRequest, withOwnerFill, wordsJsonSchema };
2948
2974
  //# sourceMappingURL=vectoriox-iox-ui-assist-core.mjs.map