@vectoriox/iox-ui 5.198.0 → 5.200.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 (71) hide show
  1. package/actions-core/index.d.ts +7 -1
  2. package/data-core/index.d.ts +11 -3
  3. package/design-core/index.d.ts +479 -52
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +6 -1
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-data-core.mjs +30 -4
  7. package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs +704 -55
  9. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +5 -2
  11. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +16659 -15146
  13. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +653 -70
  15. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  16. package/fesm2022/vectoriox-iox-ui.mjs +5 -2
  17. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  18. package/generation-core/index.d.ts +883 -235
  19. package/harness-core/index.d.ts +372 -9
  20. package/package.json +1 -1
  21. package/src/actions-core/element-actions.ts +6 -0
  22. package/src/data-core/placeholder-rows.ts +29 -4
  23. package/src/design-core/brand-neutrals.ts +125 -3
  24. package/src/design-core/colour-words.ts +48 -0
  25. package/src/design-core/design-settings.ts +24 -5
  26. package/src/design-core/design-token.model.ts +8 -0
  27. package/src/design-core/flavor-fixtures.generated.ts +272 -2
  28. package/src/design-core/flavor-spec.generated.ts +310 -40
  29. package/src/design-core/flavor-tokens.ts +5 -1
  30. package/src/design-core/menu-look.ts +23 -0
  31. package/src/design-core/node-classes.ts +39 -0
  32. package/src/design-core/public-api.ts +2 -0
  33. package/src/design-core/signature-move.ts +107 -0
  34. package/src/design-core/style-presets.ts +9 -3
  35. package/src/design-core/token-css.ts +59 -1
  36. package/src/forms-core/form-presets.ts +5 -2
  37. package/src/generation-core/body-mix.ts +41 -0
  38. package/src/generation-core/check-free.ts +17 -9
  39. package/src/generation-core/check-layout.ts +17 -7
  40. package/src/generation-core/colour-mix.ts +53 -3
  41. package/src/generation-core/compose-free.ts +7 -2
  42. package/src/generation-core/compose-site.ts +298 -78
  43. package/src/generation-core/composition.ts +320 -0
  44. package/src/generation-core/footer-mix.ts +202 -16
  45. package/src/generation-core/footer-sign-up.ts +51 -0
  46. package/src/generation-core/free-opening.ts +13 -2
  47. package/src/generation-core/free-wire.ts +8 -0
  48. package/src/generation-core/header-edit.ts +15 -0
  49. package/src/generation-core/header-mix.ts +31 -2
  50. package/src/generation-core/legal.ts +24 -0
  51. package/src/generation-core/menu-shelves.ts +138 -0
  52. package/src/generation-core/nav-shape.ts +138 -15
  53. package/src/generation-core/node-baselines.generated.ts +1 -0
  54. package/src/generation-core/opening-edit.ts +17 -3
  55. package/src/generation-core/opening-mix.ts +69 -5
  56. package/src/generation-core/patterns.ts +7 -0
  57. package/src/generation-core/plan-wire.ts +23 -5
  58. package/src/generation-core/public-api.ts +3 -0
  59. package/src/generation-core/site-build-run.ts +11 -0
  60. package/src/generation-core/site-plan.model.ts +6 -0
  61. package/src/generation-core/site-spec.generated.ts +472 -166
  62. package/src/generation-core/type-led.ts +4 -2
  63. package/src/generation-core/validate-site-plan.ts +4 -1
  64. package/src/harness-core/business-types.ts +31 -0
  65. package/src/harness-core/harness-spec.generated.ts +564 -56
  66. package/src/harness-core/motion.ts +19 -2
  67. package/src/harness-core/popup-stance.ts +56 -3
  68. package/src/harness-core/run-compose-context.ts +32 -6
  69. package/src/harness-core/starting-design.ts +15 -7
  70. package/styles/iox-design.css +35 -0
  71. package/styles/iox-forms.css +53 -0
@@ -23,7 +23,9 @@ import { ContentRole, PagePlan, PageSectionPlan, roleField, ShopResource, SitePl
23
23
  * slot carried, never cut), an opening on a photo or film with nothing to show is left out (the page opens on its
24
24
  * type-led hero), a model-laid section's empty photo stands in its own place as a ground plate of the look's colour — a
25
25
  * composed page KEEPS its composition (2026-11-25, iox-ui#129 × #131): it is never handed back to ready-made sections —
26
- * and a list whose items have no picture at all shows its cards without the picture part. Nothing is dropped from a
26
+ * and a list whose items have no picture shows its cards without the picture part — decided per ITEM as the page renders
27
+ * (iox-ui#191: the card keeps its bound picture part and the shared CSS leaves it out where the item has none, so the
28
+ * owner's photos saved after the build show at once; `pictureless` only records the types). Nothing is dropped from a
27
29
  * page: plan indices, section ids and every other slot's node id stay as they were, so the caller's filled slots and its
28
30
  * placements still name the same nodes.
29
31
  *
@@ -122,7 +124,7 @@ export interface TypeLed {
122
124
  /** The plan as composed (the stored plan is never rewritten). */
123
125
  plan: SitePlan;
124
126
  changes: TypeLedChange[];
125
- /** Content types whose items show no picture (their cards are composed without one). */
127
+ /** Content types whose items show no picture yet. Their cards still bind each item's picture (iox-ui#191): the shared CSS leaves the part out per item. */
126
128
  pictureless: string[];
127
129
  /** The home page's type-led first screen, when it opens on one. */
128
130
  opening?: TypeLedOpening;
@@ -20,6 +20,7 @@ import { footerMixFromWords } from './footer-mix';
20
20
  import { headerMixFromWords } from './header-mix';
21
21
  import { openingMixFromWords } from './opening-mix';
22
22
  import { bodyMixFromWords } from './body-mix';
23
+ import { colourMixFromWords } from './colour-mix';
23
24
  import { popupMixFromWords } from './popup-plan';
24
25
  import { patternListGap } from './recipe-fields';
25
26
  import { freeSlotIssues } from './check-free';
@@ -233,6 +234,8 @@ function validateBusiness(c: Collector, business: unknown): void {
233
234
  c.keys(business, BUSINESS_KEYS, 'business');
234
235
  if (!isNonEmptyString(business['name'])) c.add(SitePlanIssueCode.MissingBusinessName, 'business.name', 'the business name is required');
235
236
  if (business['tagline'] !== undefined && typeof business['tagline'] !== 'string') c.add(SitePlanIssueCode.Shape, 'business.tagline', 'must be a string');
237
+ const social = business['social'];
238
+ if (social !== undefined && (!Array.isArray(social) || social.some(a => typeof a !== 'string'))) c.add(SitePlanIssueCode.Shape, 'business.social', 'must be a list of web addresses');
236
239
  const facts = business['facts'];
237
240
  if (facts === undefined) return;
238
241
  if (!isObject(facts)) return c.add(SitePlanIssueCode.Shape, 'business.facts', 'must be an object');
@@ -781,7 +784,7 @@ function validateGlobals(c: Collector, globals: unknown): void {
781
784
 
782
785
  /** The parts a plan may carry as a mix, and how each reads its words (only the footer until header ingredients HI1). */
783
786
  const MIX_READERS: Readonly<Record<string, (words: ReadonlyArray<string>) => unknown>> = { header: headerMixFromWords, footer: footerMixFromWords, opening: openingMixFromWords, body: bodyMixFromWords,
784
- popup: popupMixFromWords };
787
+ popup: popupMixFromWords, colour: colourMixFromWords };
785
788
 
786
789
  /** `mixes`: each part's words parse in its table (list ingredients LI5); absent is fine. */
787
790
  function validateMixes(c: Collector, mixes: unknown): void {
@@ -145,6 +145,25 @@ export interface BusinessTypeHeader {
145
145
  readonly sayHe: ReadonlyArray<string>;
146
146
  }
147
147
 
148
+ /** AW-D20 (harness ART_NEVER): the art direction a type's site never takes — the preloader kinds, covers, seams, textures and
149
+ * signatures it refuses, merged over every rule naming it. */
150
+ export interface BusinessTypeArt {
151
+ readonly preloader: ReadonlyArray<string>;
152
+ readonly cover: ReadonlyArray<string>;
153
+ readonly seam: ReadonlyArray<string>;
154
+ readonly texture: ReadonlyArray<string>;
155
+ readonly signatures: ReadonlyArray<string>;
156
+ readonly secondScene: boolean;
157
+ readonly say: ReadonlyArray<string>;
158
+ }
159
+
160
+ /** Motion reach (MR-D1, MR-D4; harness SIGNATURE_MOVES): the moves a type's generated site signs with, best first, and the
161
+ * level a Still start is lifted to (design-core `withSignatureMove`). */
162
+ export interface BusinessTypeSignature {
163
+ readonly moves: ReadonlyArray<string>;
164
+ readonly floor: string;
165
+ }
166
+
148
167
  /** Award §0b + §0b.7 (AW-D26, AW-D32): how a type's opening film is suggested, and what it may show (`filmIdeaFor`). */
149
168
  export interface BusinessTypeFilm {
150
169
  /** offer · ifAsked · never — the default the owner's words move one step. */
@@ -205,6 +224,18 @@ export interface BusinessType {
205
224
  readonly stock: boolean;
206
225
  readonly booking: `${BookingNeed}`;
207
226
  readonly sells: `${SellingNeed}`;
227
+ /** Pictures first (harness OPENING_PICTURE, the 2026-11-28 reference baseline): the opening words its Home takes when
228
+ * the plan names none — the references for the type open on a picture (`frame:full`) or keep the words first beside one
229
+ * (`frame:inset`). Null: the Home opens as its plan writes. */
230
+ readonly opening: ReadonlyArray<string> | null;
231
+ /** AW-D20: the art direction it never takes (harness ART_NEVER). */
232
+ readonly art: BusinessTypeArt;
233
+ /** Motion reach (MR-D1): the moves its generated site signs with. Optional until the contract regen carries it — a type
234
+ * without one is left as its look starts. */
235
+ readonly signature?: BusinessTypeSignature;
236
+ /** AW12 newsletter (harness FOOTER_SIGNUP, team/reference-cards row 6): its references close with a sign-up — its footer
237
+ * holds one when the plan's has none, and the type is a reason to write (AW12-D6). */
238
+ readonly signUp: boolean;
208
239
  }
209
240
 
210
241
  /** The 30, in the board's order. Assignment here proves the generated data fits the type. */