@vectoriox/iox-ui 5.196.0 → 5.198.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 (67) hide show
  1. package/composite-core/index.d.ts +19 -2
  2. package/data-core/index.d.ts +101 -2
  3. package/design-core/index.d.ts +183 -30
  4. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +49 -10
  5. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-data-core.mjs +192 -2
  7. package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs +299 -74
  9. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +2287 -528
  11. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +3 -1
  13. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui.mjs +32 -2
  15. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  16. package/generation-core/index.d.ts +1454 -200
  17. package/harness-core/index.d.ts +1 -1
  18. package/package.json +1 -1
  19. package/src/composite-core/header.ts +34 -1
  20. package/src/composite-core/slider-runtime.ts +16 -8
  21. package/src/data-core/placeholder-rows.ts +220 -0
  22. package/src/data-core/public-api.ts +2 -1
  23. package/src/design-core/brand.ts +58 -5
  24. package/src/design-core/contrast-audit.ts +49 -22
  25. package/src/design-core/design-apply.ts +34 -3
  26. package/src/design-core/flavor-fixtures.generated.ts +123 -123
  27. package/src/design-core/flavor-spec.generated.ts +44 -4
  28. package/src/design-core/flavor-tokens.ts +1 -1
  29. package/src/design-core/header-behaviour.ts +82 -15
  30. package/src/design-core/motion-language.ts +5 -14
  31. package/src/design-core/node-links.ts +34 -0
  32. package/src/design-core/preloader.ts +4 -5
  33. package/src/generation-core/audit-site.ts +10 -1
  34. package/src/generation-core/audit-words.ts +5 -0
  35. package/src/generation-core/body-mix.ts +40 -102
  36. package/src/generation-core/check-free.ts +26 -5
  37. package/src/generation-core/check-layout.ts +10 -4
  38. package/src/generation-core/check-list.ts +3 -25
  39. package/src/generation-core/colour-mix.ts +296 -0
  40. package/src/generation-core/compose-free.ts +40 -18
  41. package/src/generation-core/compose-site.ts +124 -22
  42. package/src/generation-core/footer-mix.ts +102 -54
  43. package/src/generation-core/free-fallback.ts +6 -4
  44. package/src/generation-core/free-opening.ts +57 -0
  45. package/src/generation-core/free-parts.ts +87 -0
  46. package/src/generation-core/free-slot-words.ts +30 -0
  47. package/src/generation-core/generation-tier.ts +6 -17
  48. package/src/generation-core/header-mix.ts +125 -4
  49. package/src/generation-core/item-fill.ts +42 -0
  50. package/src/generation-core/layout-drawers.ts +3 -2
  51. package/src/generation-core/layout-wire.ts +10 -16
  52. package/src/generation-core/list-panel.ts +3 -3
  53. package/src/generation-core/list-table.ts +5 -14
  54. package/src/generation-core/list-words.ts +2 -1
  55. package/src/generation-core/nav-shape.ts +45 -16
  56. package/src/generation-core/node-baselines.generated.ts +1 -0
  57. package/src/generation-core/opening-mix.ts +16 -33
  58. package/src/generation-core/part-tier.ts +14 -0
  59. package/src/generation-core/plan-wire.ts +31 -43
  60. package/src/generation-core/public-api.ts +4 -0
  61. package/src/generation-core/site-build-run.ts +4 -0
  62. package/src/generation-core/site-spec.generated.ts +1127 -93
  63. package/src/generation-core/stock-search.ts +106 -18
  64. package/src/generation-core/type-led.ts +19 -4
  65. package/src/generation-core/validate-site-plan.ts +4 -5
  66. package/src/harness-core/run-compose-context.ts +3 -1
  67. package/styles/iox-design.css +139 -4
@@ -4099,6 +4099,7 @@ export const SPEC_SCHEMES = {
4099
4099
  "section-bg": "{{accent}}",
4100
4100
  "bg": "{{accent}}",
4101
4101
  "nav-bg": "{{accent}}",
4102
+ "nav-glass-bg": "{{accent}}",
4102
4103
  "surface": "{{accent-hover}}",
4103
4104
  "surface-2": "{{accent-hover}}",
4104
4105
  "surface-glass": "{{accent-hover}}",
@@ -4126,6 +4127,7 @@ export const SPEC_SCHEMES = {
4126
4127
  "section-bg": "{{text-muted}}",
4127
4128
  "bg": "{{text-muted}}",
4128
4129
  "nav-bg": "{{text-muted}}",
4130
+ "nav-glass-bg": "{{text-muted}}",
4129
4131
  "surface": "{{text-muted}}",
4130
4132
  "surface-2": "{{text-muted}}",
4131
4133
  "surface-glass": "{{text-muted}}",
@@ -6219,11 +6221,33 @@ export const SPEC_CONTRAST_AUDIT = {
6219
6221
  "floatingGrounds": [
6220
6222
  {
6221
6223
  "ground": "nav-bg",
6222
- "ink": "text"
6224
+ "ink": "text",
6225
+ "scope": "header"
6226
+ },
6227
+ {
6228
+ "ground": "nav-bg",
6229
+ "ink": "link-color",
6230
+ "scope": "header"
6231
+ },
6232
+ {
6233
+ "ground": "nav-bg",
6234
+ "ink": "link-current-color",
6235
+ "scope": "header"
6223
6236
  },
6224
6237
  {
6225
6238
  "ground": "nav-glass-bg",
6226
- "ink": "text"
6239
+ "ink": "text",
6240
+ "scope": "header"
6241
+ },
6242
+ {
6243
+ "ground": "nav-glass-bg",
6244
+ "ink": "link-color",
6245
+ "scope": "header"
6246
+ },
6247
+ {
6248
+ "ground": "nav-glass-bg",
6249
+ "ink": "link-current-color",
6250
+ "scope": "header"
6227
6251
  },
6228
6252
  {
6229
6253
  "ground": "dialog-bg",
@@ -6236,8 +6260,24 @@ export const SPEC_CONTRAST_AUDIT = {
6236
6260
  {
6237
6261
  "ground": "surface-glass-strong",
6238
6262
  "ink": "text"
6263
+ },
6264
+ {
6265
+ "ground": "tabbar-bg",
6266
+ "ink": "tabbar-item-ink"
6239
6267
  }
6240
- ]
6268
+ ],
6269
+ "headerInkScope": {
6270
+ "selectors": [
6271
+ ".iox-es-nav > *",
6272
+ "[data-iox-header] > *"
6273
+ ],
6274
+ "set": {
6275
+ "link-color": "currentColor",
6276
+ "link-current-color": "currentColor",
6277
+ "link-hover-color": "var(--iox-accent-text)",
6278
+ "button-ghost-ink": "currentColor"
6279
+ }
6280
+ }
6241
6281
  } as const;
6242
6282
 
6243
6283
  export const SPEC_LEGACY_ALIASES = {
@@ -15582,7 +15622,7 @@ export const SPEC_FLAVOR_PACKS = [
15582
15622
  "tier": "component",
15583
15623
  "type": "color",
15584
15624
  "group": "components",
15585
- "value": "var(--iox-surface-glass-strong)",
15625
+ "value": "color-mix(in srgb, var(--iox-surface) 92%, transparent)",
15586
15626
  "overridden": true
15587
15627
  },
15588
15628
  {
@@ -148,7 +148,7 @@ export function legacyFlavorTokens(pack: FlavorPackV2, choices: DesignChoices):
148
148
  else delete row.values;
149
149
  }
150
150
  if (choices.seed && choices.seed.toLowerCase() !== pack.seed.toLowerCase()) {
151
- for (const accent of deriveAccentTokens(choices.seed, preTintAccentGrounds(pack.palette))) {
151
+ for (const accent of deriveAccentTokens(choices.seed, preTintAccentGrounds(pack.palette), {}, { keepSeed: false })) {
152
152
  const row = byName.get(accent.name);
153
153
  if (!row) continue;
154
154
  row.value = accent.value;
@@ -39,6 +39,10 @@ export enum HeaderTrait {
39
39
  /** HI3 slice 1 (HI3-D1): what the header stands on — `glass` | `over` | `over-glass`. Absent / `solid`: its own ground,
40
40
  * as before. Written by the Header studio ▸ Around the bar and the composer (`ground:<word>`). */
41
41
  Ground = 'headerGround',
42
+ /** HI3 slice 2 (HI3-D16/D18): its outline — `pill` | `islands`. Absent / `bar`: a full-width bar, as before. */
43
+ Shape = 'headerShape',
44
+ /** HI3 slice 2 (HI3-D21/D22): how its name sits — `hangs` | `later`. Absent / `fits`: the name fits the bar. */
45
+ Brand = 'headerBrand',
42
46
  }
43
47
 
44
48
  /** Whose colours the header wears (contract HEADER `ink`): the page's opening, or every section as it passes under it. */
@@ -61,6 +65,11 @@ export enum HeaderAttribute {
61
65
  * CSS draws the ground on ONE `::before` faded by opacity, gives the bar's height back over a pictured opening and
62
66
  * lays the veil under its words at rest. Absent: the bar's own ground, as before. */
63
67
  Ground = 'data-iox-header-ground',
68
+ /** `pill` | `islands` on a header that floats (HI3 slice 2): the shared CSS draws its ground as one inset bar, or one
69
+ * pill per part, from the top. Absent: a full-width bar. */
70
+ Shape = 'data-iox-header-shape',
71
+ /** `hangs` | `later` (HI3 slice 2): a logo taller than the bar, or a name that arrives once the page moves. */
72
+ Brand = 'data-iox-header-brand',
64
73
  }
65
74
 
66
75
  /** What a composed header gets (the `nav.*` patterns' `header`, the palette's Navigation bar). */
@@ -93,19 +102,67 @@ export function headerInkOf(value: unknown): HeaderInk {
93
102
  }
94
103
 
95
104
  /** The attributes a header renders, from its trait values — `{}` for a header that keeps today's behaviour. A header on
96
- * glass draws no scroll edge (HI3-D9: its set carries its own hairline and shadow), whatever edge it stores. */
97
- export function headerAttributes(behaviour: unknown, edge: unknown, ink?: unknown, ground?: unknown): Record<string, string> {
105
+ * glass draws no scroll edge (HI3-D9: its set carries its own hairline and shadow), whatever edge it stores; nor does a
106
+ * floating one (HI3-D20: a pill has no edge under it). A floating header on `over` floats on the look's glass from the
107
+ * top (HI3-D17: never a clear pill), so it writes `over-glass`. */
108
+ export function headerAttributes(behaviour: unknown, edge: unknown, ink?: unknown, ground?: unknown, shape?: unknown, brand?: unknown): Record<string, string> {
98
109
  const out: Record<string, string> = {};
99
110
  if (headerInkOf(ink) === HeaderInk.Follows) out[HeaderAttribute.Ink] = HeaderInk.Follows;
100
111
  const b = headerBehaviourOf(behaviour);
101
112
  if (b !== HeaderBehaviour.Scrolls) out[HeaderAttribute.Behaviour] = b;
102
- const g = headerGroundOf(ground);
103
- if (g !== HeaderGround.Solid) out[HeaderAttribute.Ground] = g;
113
+ const sh = headerShapeOf(shape);
114
+ const floats = sh !== HeaderShape.Bar;
115
+ const stood = headerGroundOf(ground);
116
+ const g = floats && stood === HeaderGround.Over ? HeaderGround.OverGlass : stood;
117
+ // A floating header always draws its ground on the ground layer — a solid one too (`solid`: the look's own bar).
118
+ if (g !== HeaderGround.Solid || floats) out[HeaderAttribute.Ground] = g;
119
+ if (floats) out[HeaderAttribute.Shape] = sh;
120
+ const br = headerBrandOf(brand);
121
+ if (br !== HeaderBrand.Fits) out[HeaderAttribute.Brand] = br;
104
122
  const e = headerEdgeOf(edge);
105
- if (e && !headerGroundIsGlass(g)) out[HeaderAttribute.Edge] = e;
123
+ if (e && !headerGroundIsGlass(g) && !floats) out[HeaderAttribute.Edge] = e;
106
124
  return out;
107
125
  }
108
126
 
127
+ // ── Its outline and its name (HI3 slice 2: pill · islands · hangs · later, board hi3-shapes) ──────────────────────────
128
+
129
+ /** The header's outline (contract HEADER `shape`). */
130
+ export enum HeaderShape {
131
+ /** A full-width bar (every header before HI3 slice 2). */
132
+ Bar = 'bar',
133
+ /** One floating bar inset from the window, as wide as the content column, its corner the look's button corner. */
134
+ Pill = 'pill',
135
+ /** Each part of the bar (the name, the pages, the action) a floating pill of its own. */
136
+ Islands = 'islands',
137
+ }
138
+
139
+ /** How the header's name sits (contract HEADER `brand`). */
140
+ export enum HeaderBrand {
141
+ Fits = 'fits',
142
+ /** A logo picture taller than the bar, breaking its lower edge (only with a logo picture). */
143
+ Hangs = 'hangs',
144
+ /** No name at the top of the opening (which names the business); it arrives once the page moves or a menu opens. */
145
+ Later = 'later',
146
+ }
147
+
148
+ const SHAPES = new Set<string>(Object.values(HeaderShape));
149
+ const BRANDS = new Set<string>(Object.values(HeaderBrand));
150
+
151
+ /** A stored shape, or Bar for anything else. */
152
+ export function headerShapeOf(value: unknown): HeaderShape {
153
+ return typeof value === 'string' && SHAPES.has(value) ? value as HeaderShape : HeaderShape.Bar;
154
+ }
155
+
156
+ /** A stored brand, or Fits for anything else. */
157
+ export function headerBrandOf(value: unknown): HeaderBrand {
158
+ return typeof value === 'string' && BRANDS.has(value) ? value as HeaderBrand : HeaderBrand.Fits;
159
+ }
160
+
161
+ /** True for a shape that floats (pill, islands): its ground shows from the top, and it has no scroll edge. */
162
+ export function headerShapeFloats(shape: unknown): boolean {
163
+ return headerShapeOf(shape) !== HeaderShape.Bar;
164
+ }
165
+
109
166
  // ── What the header stands on (HI3 slice 1: over · over-glass · glass) ───────────────────────────────────────────────
110
167
 
111
168
  /**
@@ -223,22 +280,31 @@ export interface HeaderMoment {
223
280
  * shared CSS draws it through `HEADER_AT_REST_SELECTOR` (held equal to this by header-behaviour.spec), the canvas's
224
281
  * "At the top · Scrolled" pair asks it. Pure.
225
282
  */
226
- export function headerFirm(ground: unknown, moment: HeaderMoment = {}): boolean {
227
- if (!headerGroundIsOver(ground)) return true;
283
+ export function headerFirm(ground: unknown, moment: HeaderMoment = {}, shape?: unknown): boolean {
284
+ // HI3-D17: a floating shape wears its ground from the top — never a clear pill over the picture.
285
+ if (!headerGroundIsOver(ground) || headerShapeFloats(shape)) return true;
228
286
  return !(moment.openingMedia === OpeningMediaKind.Picture && !moment.scrolled && !moment.menuOpen);
229
287
  }
230
288
 
231
- /** Whether the header gives its height back to the page (HI3-D7): it does not stand on its own solid ground, over a page
232
- * that opens on a picture — the picture starts at the top of the page, under the bar. */
233
- export function headerGivesBack(ground: unknown, openingMedia: unknown): boolean {
234
- return headerGroundOf(ground) !== HeaderGround.Solid && openingMedia === OpeningMediaKind.Picture;
289
+ /** Whether the header gives its height back to the page (HI3-D7): it does not stand on its own solid ground (or it floats,
290
+ * HI3-D17), over a page that opens on a picture — the picture starts at the top of the page, under the bar. */
291
+ export function headerGivesBack(ground: unknown, openingMedia: unknown, shape?: unknown): boolean {
292
+ return (headerGroundOf(ground) !== HeaderGround.Solid || headerShapeFloats(shape)) && openingMedia === OpeningMediaKind.Picture;
235
293
  }
236
294
 
237
295
  /** The Page scrolled state's attribute (main entry `SCROLLED_ATTRIBUTE`; spelled here — design-core reads no Angular
238
296
  * entry; held equal by the scrolled spec). */
239
297
  export const HEADER_SCROLLED_ATTRIBUTE = 'data-iox-scrolled';
240
- /** An open menu inside the header (the drawer / full / panel Dialog is the header's own child — T2). */
241
- export const HEADER_OPEN_MENU_SELECTOR = 'dialog[open]';
298
+ /**
299
+ * Written on the builder canvas's open Dialog stage (`app-builder-dialog`'s `div.dialog-stage`) — the canvas twin of an
300
+ * open `<dialog>`, which the canvas does not use (vectoriox/iox-ui#181).
301
+ */
302
+ export const HEADER_MENU_OPEN_ATTRIBUTE = 'data-iox-menu-open';
303
+ /**
304
+ * An open menu inside the header (the drawer / full / panel Dialog is the header's own child — T2): a real open
305
+ * `<dialog>` on the live site, the stage carrying `HEADER_MENU_OPEN_ATTRIBUTE` on the canvas.
306
+ */
307
+ export const HEADER_OPEN_MENU_SELECTOR = `:is(dialog[open], [${HEADER_MENU_OPEN_ATTRIBUTE}])`;
242
308
  /** The CSS custom property the header runtime writes its height in (`watchHeaderHeight`), on the scope around it. */
243
309
  export const HEADER_HEIGHT_VAR = '--header-h';
244
310
 
@@ -247,10 +313,11 @@ const onPicture = `:is([${OPENING_MEDIA_ATTRIBUTE}="${OpeningMediaKind.Picture}"
247
313
 
248
314
  /**
249
315
  * The header AT REST (not firm), as a compound selector on the header's own element — `headerFirm`'s twin in CSS: an over
250
- * ground, inside a page that opens on a picture, not inside a scrolled page, holding no open menu.
316
+ * ground on a header that does not float (HI3-D17), inside a page that opens on a picture, not inside a scrolled page,
317
+ * holding no open menu.
251
318
  */
252
319
  export const HEADER_AT_REST_SELECTOR =
253
- `${groundIs(OVER_GROUNDS)}${onPicture}:not([${HEADER_SCROLLED_ATTRIBUTE}] *):not(:has(${HEADER_OPEN_MENU_SELECTOR}))`;
320
+ `${groundIs(OVER_GROUNDS)}:not([${HeaderAttribute.Shape}])${onPicture}:not([${HEADER_SCROLLED_ATTRIBUTE}] *):not(:has(${HEADER_OPEN_MENU_SELECTOR}))`;
254
321
 
255
322
  /** The header that gives its height back (`headerGivesBack`'s twin): any ground word, inside a page that opens on a picture. */
256
323
  export const HEADER_GIVES_BACK_SELECTOR = `[${HeaderAttribute.Ground}]${onPicture}`;
@@ -54,7 +54,6 @@ const LEAVE_FOR = L.leaveFor as Readonly<Record<ArriveId, LeaveId>>;
54
54
  * the first-visit preloader (AW5), By the scroll (AW10). */
55
55
  export type MotionWordKind = 'arrive' | 'leave' | 'move' | 'cover' | 'preloader' | 'scrub';
56
56
  const TIERS = L.tiers as Readonly<Record<MotionWordKind, Readonly<Record<string, `${MotionWordTier}`>>>>;
57
- const PLAN_FALLBACK = L.planFallback as Readonly<{ arrive: ArriveId; move: MoveId; cover: string; preloader: string; scrub: string }>;
58
57
 
59
58
  /** A style preset's own language (its Feel, Headings arrive and first-visit preloader with its exit) — undefined for an
60
59
  * unknown id. */
@@ -92,20 +91,12 @@ export function motionCurve(word: ArriveId | LeaveId, tokenValue: (name: string)
92
91
  }
93
92
 
94
93
  /**
95
- * What a lower plan wears of a language (AW-D23, MB-D6): a Pro word is drawn as the plan's own (the contract's
96
- * `planFallback`) — Feel today's arrival, a Pro move a fade, a Pro cover (AW4) a fade between pages, a preloader (AW5)
97
- * none, By the scroll (AW10) never. Applied where a look is CHOSEN (a Look pick, a build); a built site keeps its words.
94
+ * What a plan wears of a language: since AW-D42 (Doron, 2026-11-28 — the award parts are every tier's) EVERY plan wears
95
+ * the whole language — a Pro Feel, move, cover (AW4), preloader (AW5) and By the scroll (AW10) included. It once drew a
96
+ * lower plan's Pro words as the contract's `planFallback` (AW-D23, MB-D6); `pro` is kept so its callers still read.
98
97
  */
99
- export function motionLanguageForPlan<T extends Pick<DesignChoices, 'feel' | 'headings'> & { between?: DesignChoices['between']; preloader?: DesignChoices['preloader']; scrub?: DesignChoices['scrub'] }>(choices: T, pro: boolean): T {
100
- if (pro) return choices;
101
- const proWord = (kind: MotionWordKind, word: unknown) => typeof word === 'string' && motionWordTier(kind, word) === MotionWordTier.Pro;
102
- const feel = isArriveId(choices.feel) && proWord('arrive', choices.feel) ? PLAN_FALLBACK.arrive : choices.feel;
103
- const headings = isMoveId(choices.headings) && proWord('move', choices.headings) ? PLAN_FALLBACK.move : choices.headings;
104
- const out = { ...choices, feel, headings };
105
- if (proWord('cover', choices.between)) out.between = PLAN_FALLBACK.cover as DesignChoices['between'];
106
- if (proWord('preloader', choices.preloader)) out.preloader = PLAN_FALLBACK.preloader;
107
- if (proWord('scrub', choices.scrub)) out.scrub = PLAN_FALLBACK.scrub;
108
- return out;
98
+ export function motionLanguageForPlan<T extends Pick<DesignChoices, 'feel' | 'headings'> & { between?: DesignChoices['between']; preloader?: DesignChoices['preloader']; scrub?: DesignChoices['scrub'] }>(choices: T, _pro?: boolean): T {
99
+ return choices;
109
100
  }
110
101
 
111
102
  /** The reduced-motion floor (AW-D6): an entrance is a fade this long at most — gentler, never zero. */
@@ -59,3 +59,37 @@ export function headingHref(props: NodeLinkProps, pageHref: (route: string) => s
59
59
  if (props.linkType === LinkType.External) return String(props.url ?? '').trim() || null;
60
60
  return null;
61
61
  }
62
+
63
+ /** The prop a node's route params are stored under — `routeParam:<name>`, a static value or a binding (both land there). */
64
+ export const ROUTE_PARAM_PREFIX = 'routeParam:';
65
+
66
+ /** A node's route params by name, from its `routeParam:<name>` props (`{ 'routeParam:slug': 'soap' }` → `{ slug: 'soap' }`). */
67
+ export function routeParamValues(props: Readonly<Record<string, unknown>> | null | undefined): Record<string, unknown> {
68
+ const out: Record<string, unknown> = {};
69
+ for (const [key, value] of Object.entries(props ?? {})) {
70
+ if (key.startsWith(ROUTE_PARAM_PREFIX)) out[key.slice(ROUTE_PARAM_PREFIX.length)] = value;
71
+ }
72
+ return out;
73
+ }
74
+
75
+ const ROUTE_PARAM = /:([a-zA-Z_][a-zA-Z0-9_]*)/g;
76
+
77
+ /**
78
+ * A page route with its `:params` filled: each from `values` (URL-encoded), an unfilled one leaving no gap
79
+ * (`/shop/:slug/reviews` with no slug → `/shop/reviews`). The engine's `resolvePageHref` substitution, shared so the builder's
80
+ * Preview links where the live site does — a product card read `/shop/:slug` there (vectoriox/iox-ui#176). The route's
81
+ * leading slash is kept; the engine makes it base-relative itself.
82
+ */
83
+ export function fillRouteParams(route: string, values: Readonly<Record<string, unknown>>): string {
84
+ return String(route ?? '')
85
+ .replace(ROUTE_PARAM, (_m, name: string) => {
86
+ const value = values[name];
87
+ return value === undefined || value === null || value === '' ? '' : encodeURIComponent(String(value));
88
+ })
89
+ .replace(/\/{2,}/g, '/');
90
+ }
91
+
92
+ /** Does the route still name a `:param` (one nothing filled)? */
93
+ export function routeHasParams(route: string): boolean {
94
+ return new RegExp(ROUTE_PARAM.source).test(String(route ?? ''));
95
+ }
@@ -1,5 +1,5 @@
1
1
  import { SPEC_MOTION_LANGUAGE } from './flavor-spec.generated';
2
- import { MotionWordTier, motionWordTier, presetMotionLanguage } from './motion-language';
2
+ import { presetMotionLanguage } from './motion-language';
3
3
  import { graphemes } from './graphemes';
4
4
 
5
5
  /**
@@ -74,9 +74,9 @@ export interface PreloaderInput {
74
74
  readonly animate: string | null | undefined;
75
75
  /** The style preset the look came from — its exit (`MOTION.presets`); absent or exit-less → Fade. */
76
76
  readonly presetId?: string | null;
77
- /** The studio's plan carries the Pro words (`GenerationTier.Award`). A built site keeps its word (AW-D23): pass true
78
- * for a stored design — the clamp happens where a look is CHOSEN (`motionLanguageForPlan`). */
79
- readonly pro: boolean;
77
+ /** The studio's plan carries the Pro words. Since AW-D42 every plan opens on its preloader; optional, kept so its
78
+ * callers still read. */
79
+ readonly pro?: boolean;
80
80
  /** The visitor asked for reduced motion. */
81
81
  readonly reducedMotion: boolean;
82
82
  /** This is the session's first page in this tab, not reached from another page of the site (`isFirstVisit`). */
@@ -89,7 +89,6 @@ export function planPreloader(input: PreloaderInput): PreloaderPlan | null {
89
89
  if (!isPreloaderKind(kind) || kind === PreloaderKind.None) return null;
90
90
  if (input.reducedMotion || !input.firstVisit) return null;
91
91
  if (!PRELOADER_LEVELS.includes(String(input.animate ?? ''))) return null;
92
- if (!input.pro && motionWordTier('preloader', kind) === MotionWordTier.Pro) return null;
93
92
  return { kind: kind as PreloaderPlan['kind'], exit: preloaderExitOf(input.presetId), capMs: PRELOADER_CAP_MS };
94
93
  }
95
94
 
@@ -1,6 +1,7 @@
1
1
  import { ELEMENT_ACTION_DESCRIPTORS, POPUP_RULES, popupEnded, resolveActionAvailability } from '@vectoriox/iox-ui/actions-core';
2
2
  import { CheckoutGateCode, CheckoutGateRefusal, labelIn } from '@vectoriox/iox-ui/commerce-core';
3
3
  import { PopupArrive, PopupForm, popupFormOf, PopupRole, PopupTrait, ShopRole } from '@vectoriox/iox-ui/composite-core';
4
+ import { isNumberedPlaceholderTitle } from '@vectoriox/iox-ui/data-core';
4
5
  import { auditDesignContrast, DesignTokenLike } from '@vectoriox/iox-ui/design-core';
5
6
  import { ConsentActionType } from '@vectoriox/iox-ui/composite-core';
6
7
  import { collectFormSpec, FORM_CHANNEL_ROLE, FORM_NODE_TYPE, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
@@ -62,6 +63,10 @@ export enum SiteFindingCode {
62
63
  ContactMissing = 'contact-missing',
63
64
  CopyPlaceholder = 'copy-placeholder',
64
65
  SampleItems = 'sample-items',
66
+ /** iox-ui#178: a sample item still titled like a numbered placeholder ("Product 2", "Room 2") — the builder draws it as
67
+ * a ghost card and the live site never lists it alone, but it is the owner's to name or remove. Asks ("Publish
68
+ * anyway", Doron 2026-11-28) — said instead of SampleItems (`isNumberedPlaceholderTitle`). */
69
+ PlaceholderTitle = 'placeholder-title',
65
70
  /** Commerce G1 (shop-aware §3i): a sample product the build added still has no price — a price is a fact a buyer is
66
71
  * held to, so the owner sets it (or removes the sample) before the store goes live. */
67
72
  SamplePrice = 'sample-price',
@@ -130,6 +135,7 @@ export const FINDING_SEVERITY: Readonly<Record<SiteFindingCode, CheckSeverity>>
130
135
  [SiteFindingCode.ContactMissing]: CheckSeverity.Warn,
131
136
  [SiteFindingCode.CopyPlaceholder]: CheckSeverity.Ask,
132
137
  [SiteFindingCode.SampleItems]: CheckSeverity.Ask,
138
+ [SiteFindingCode.PlaceholderTitle]: CheckSeverity.Ask,
133
139
  [SiteFindingCode.SamplePrice]: CheckSeverity.Block,
134
140
  [SiteFindingCode.SampleStock]: CheckSeverity.Block,
135
141
  [SiteFindingCode.StoreFact]: CheckSeverity.Block,
@@ -170,6 +176,7 @@ const CHECK_OF: Readonly<Record<SiteFindingCode, SiteCheckId>> = {
170
176
  [SiteFindingCode.ContactMissing]: SiteCheckId.Facts,
171
177
  [SiteFindingCode.CopyPlaceholder]: SiteCheckId.Facts,
172
178
  [SiteFindingCode.SampleItems]: SiteCheckId.Facts,
179
+ [SiteFindingCode.PlaceholderTitle]: SiteCheckId.Facts,
173
180
  [SiteFindingCode.SamplePrice]: SiteCheckId.Facts,
174
181
  [SiteFindingCode.SampleStock]: SiteCheckId.Facts,
175
182
  [SiteFindingCode.StoreFact]: SiteCheckId.Facts,
@@ -505,7 +512,9 @@ function checkFacts(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArray<
505
512
  else if (blocksPublish(p.kind)) add(ctx, SiteFindingCode.UnfilledFact, { text: String(p.text || p.kind) }, where);
506
513
  else if (p.kind === PlaceholderKind.Copy) add(ctx, SiteFindingCode.CopyPlaceholder, null, where);
507
514
  }
508
- for (const s of snapshot.samples ?? []) add(ctx, SiteFindingCode.SampleItems, { name: s.label ?? s.id }, { nodeId: s.id });
515
+ for (const s of snapshot.samples ?? []) {
516
+ add(ctx, isNumberedPlaceholderTitle(s.label) ? SiteFindingCode.PlaceholderTitle : SiteFindingCode.SampleItems, { name: s.label ?? s.id }, { nodeId: s.id });
517
+ }
509
518
  // iox-cms#98: what the shop lacks holds only the pages that show the shop — never the Home of a site that also sells.
510
519
  const shopShown = pages.some(pageShowsShop);
511
520
  for (const s of shopShown ? snapshot.unpricedSamples ?? [] : []) add(ctx, SiteFindingCode.SamplePrice, { name: s.label ?? s.id }, { nodeId: s.id });
@@ -97,6 +97,11 @@ export const SITE_FINDING_WORDS: Readonly<Record<`${SiteFindingCode}`, FindingWo
97
97
  many: S('{n} sample items — replace them with yours or remove them.', '{n} פריטים לדוגמה — החליפו אותם בשלכם או הסירו אותם.'),
98
98
  group: FindingGrouping.Site,
99
99
  },
100
+ 'placeholder-title': {
101
+ one: S('"{name}" is still a numbered placeholder — give it its own name, or remove it.', '"{name}" עדיין שם זמני ממוספר — תנו לו שם משלכם, או הסירו אותו.'),
102
+ many: S('{n} items are still numbered placeholders — give each its own name, or remove them.', '{n} פריטים עדיין בשמות זמניים ממוספרים — תנו לכל אחד שם משלכם, או הסירו אותם.'),
103
+ group: FindingGrouping.Site,
104
+ },
100
105
  // Each sample product is fixed on its own page (the screen links to it), so they are never one row.
101
106
  'sample-price': {
102
107
  one: S('"{name}" has no price yet — set yours, or remove the sample.', 'ל-"{name}" עדיין אין מחיר — קבעו מחיר או הסירו את הדוגמה.'),