@vectoriox/iox-ui 5.137.0 → 5.139.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 (64) hide show
  1. package/assist-core/index.d.ts +22 -4
  2. package/composite-core/index.d.ts +10 -2
  3. package/design-core/index.d.ts +225 -20
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +12 -2
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +29 -5
  7. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +18 -2
  9. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-design-core.mjs +376 -61
  11. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1038 -251
  13. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +16 -6
  15. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  16. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +197 -28
  17. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  18. package/fesm2022/vectoriox-iox-ui.mjs +185 -11
  19. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  20. package/generation-core/index.d.ts +1124 -732
  21. package/harness-core/index.d.ts +8 -3
  22. package/index.d.ts +46 -2
  23. package/package.json +1 -1
  24. package/scene-core/index.d.ts +69 -13
  25. package/src/actions-core/element-actions.ts +14 -4
  26. package/src/assist-core/assist-turn.ts +3 -1
  27. package/src/assist-core/route-schema.ts +20 -5
  28. package/src/assist-core/surfaces.ts +12 -0
  29. package/src/composite-core/header.ts +18 -1
  30. package/src/design-core/design-settings.ts +14 -3
  31. package/src/design-core/design-token.model.ts +3 -0
  32. package/src/design-core/flavor-spec.generated.ts +64 -25
  33. package/src/design-core/graphemes.ts +16 -0
  34. package/src/design-core/header-behaviour.ts +20 -2
  35. package/src/design-core/motion-language.ts +11 -7
  36. package/src/design-core/node-classes.ts +10 -4
  37. package/src/design-core/preloader.ts +3 -4
  38. package/src/design-core/public-api.ts +3 -0
  39. package/src/design-core/scrub.ts +37 -0
  40. package/src/design-core/section-edge.ts +223 -0
  41. package/src/design-core/style-presets.ts +2 -0
  42. package/src/generation-core/body-mix.ts +443 -0
  43. package/src/generation-core/check-layout.ts +42 -4
  44. package/src/generation-core/compose-layout.ts +28 -6
  45. package/src/generation-core/compose-site.ts +34 -10
  46. package/src/generation-core/header-mix.ts +4 -0
  47. package/src/generation-core/layout-fingerprint.ts +19 -1
  48. package/src/generation-core/layout-language.ts +21 -1
  49. package/src/generation-core/layout-wire.ts +27 -2
  50. package/src/generation-core/node-baselines.generated.ts +7 -2
  51. package/src/generation-core/opening-mix.ts +32 -0
  52. package/src/generation-core/plan-wire.ts +67 -21
  53. package/src/generation-core/public-api.ts +2 -0
  54. package/src/generation-core/redesign-run.ts +27 -0
  55. package/src/generation-core/site-build-run.ts +24 -6
  56. package/src/generation-core/site-plan.model.ts +2 -0
  57. package/src/generation-core/site-spec.generated.ts +120 -58
  58. package/src/generation-core/text-scroll.ts +179 -0
  59. package/src/generation-core/validate-site-plan.ts +4 -2
  60. package/src/harness-core/motion.ts +12 -1
  61. package/src/harness-core/starting-design.ts +6 -5
  62. package/src/scene-core/scroll-range.ts +4 -0
  63. package/src/scene-core/split-text.ts +216 -28
  64. package/styles/iox-design.css +87 -0
@@ -2229,6 +2229,11 @@ const SPEC_MOTION_LANGUAGE = {
2229
2229
  "window",
2230
2230
  "lift"
2231
2231
  ],
2232
+ "scrub": [
2233
+ "never",
2234
+ "words",
2235
+ "entrances"
2236
+ ],
2232
2237
  "tiers": {
2233
2238
  "arrive": {
2234
2239
  "enter": "all",
@@ -2267,6 +2272,11 @@ const SPEC_MOTION_LANGUAGE = {
2267
2272
  "mark": "pro",
2268
2273
  "counter": "pro",
2269
2274
  "letters": "pro"
2275
+ },
2276
+ "scrub": {
2277
+ "never": "all",
2278
+ "words": "pro",
2279
+ "entrances": "pro"
2270
2280
  }
2271
2281
  },
2272
2282
  "meanings": {
@@ -2293,168 +2303,192 @@ const SPEC_MOTION_LANGUAGE = {
2293
2303
  "leave": "quart-out",
2294
2304
  "move": "rise",
2295
2305
  "preloader": "none",
2296
- "preloaderExit": "none"
2306
+ "preloaderExit": "none",
2307
+ "scrub": "never"
2297
2308
  },
2298
2309
  "swiss-grid": {
2299
2310
  "arrive": "quart-out",
2300
2311
  "leave": "quart-out",
2301
2312
  "move": "clip",
2302
2313
  "preloader": "none",
2303
- "preloaderExit": "none"
2314
+ "preloaderExit": "none",
2315
+ "scrub": "never"
2304
2316
  },
2305
2317
  "trusted-advisor": {
2306
2318
  "arrive": "quart-out",
2307
2319
  "leave": "quart-out",
2308
2320
  "move": "rise",
2309
2321
  "preloader": "none",
2310
- "preloaderExit": "none"
2322
+ "preloaderExit": "none",
2323
+ "scrub": "never"
2311
2324
  },
2312
2325
  "fresh-practice": {
2313
2326
  "arrive": "expo-out",
2314
2327
  "leave": "quart-out",
2315
2328
  "move": "fade",
2316
2329
  "preloader": "none",
2317
- "preloaderExit": "none"
2330
+ "preloaderExit": "none",
2331
+ "scrub": "never"
2318
2332
  },
2319
2333
  "gallery-minimal": {
2320
2334
  "arrive": "expo-out",
2321
2335
  "leave": "quart-out",
2322
2336
  "move": "fade",
2323
2337
  "preloader": "none",
2324
- "preloaderExit": "none"
2338
+ "preloaderExit": "none",
2339
+ "scrub": "never"
2325
2340
  },
2326
2341
  "warm-editorial": {
2327
2342
  "arrive": "quart-out",
2328
2343
  "leave": "quart-out",
2329
2344
  "move": "mask-rise",
2330
2345
  "preloader": "none",
2331
- "preloaderExit": "none"
2346
+ "preloaderExit": "none",
2347
+ "scrub": "never"
2332
2348
  },
2333
2349
  "soft-spa": {
2334
2350
  "arrive": "expo-out",
2335
2351
  "leave": "quart-out",
2336
2352
  "move": "blur-in",
2337
2353
  "preloader": "none",
2338
- "preloaderExit": "none"
2354
+ "preloaderExit": "none",
2355
+ "scrub": "never"
2339
2356
  },
2340
2357
  "quiet-luxury": {
2341
2358
  "arrive": "expo-out",
2342
2359
  "leave": "expo-out",
2343
2360
  "move": "fade",
2344
2361
  "preloader": "none",
2345
- "preloaderExit": "none"
2362
+ "preloaderExit": "none",
2363
+ "scrub": "never"
2346
2364
  },
2347
2365
  "after-dark": {
2348
2366
  "arrive": "expo-out",
2349
2367
  "leave": "quart-out",
2350
2368
  "move": "mask-rise",
2351
2369
  "preloader": "mark",
2352
- "preloaderExit": "lift"
2370
+ "preloaderExit": "lift",
2371
+ "scrub": "words"
2353
2372
  },
2354
2373
  "ink-studio": {
2355
2374
  "arrive": "quart-out",
2356
2375
  "leave": "quart-out",
2357
2376
  "move": "mask-rise",
2358
2377
  "preloader": "none",
2359
- "preloaderExit": "none"
2378
+ "preloaderExit": "none",
2379
+ "scrub": "never"
2360
2380
  },
2361
2381
  "night-gallery": {
2362
2382
  "arrive": "expo-out",
2363
2383
  "leave": "quart-out",
2364
2384
  "move": "blur-in",
2365
2385
  "preloader": "none",
2366
- "preloaderExit": "none"
2386
+ "preloaderExit": "none",
2387
+ "scrub": "never"
2367
2388
  },
2368
2389
  "tech-studio": {
2369
2390
  "arrive": "quart-out",
2370
2391
  "leave": "quart-out",
2371
2392
  "move": "words-lit",
2372
2393
  "preloader": "counter",
2373
- "preloaderExit": "window"
2394
+ "preloaderExit": "window",
2395
+ "scrub": "entrances"
2374
2396
  },
2375
2397
  "morning-glass": {
2376
2398
  "arrive": "expo-out",
2377
2399
  "leave": "quart-out",
2378
2400
  "move": "blur-in",
2379
2401
  "preloader": "none",
2380
- "preloaderExit": "none"
2402
+ "preloaderExit": "none",
2403
+ "scrub": "never"
2381
2404
  },
2382
2405
  "holiday-light": {
2383
2406
  "arrive": "spring",
2384
2407
  "leave": "quart-out",
2385
2408
  "move": "rise",
2386
2409
  "preloader": "none",
2387
- "preloaderExit": "none"
2410
+ "preloaderExit": "none",
2411
+ "scrub": "never"
2388
2412
  },
2389
2413
  "frosted-portfolio": {
2390
2414
  "arrive": "expo-out",
2391
2415
  "leave": "quart-out",
2392
2416
  "move": "blur-in",
2393
2417
  "preloader": "none",
2394
- "preloaderExit": "none"
2418
+ "preloaderExit": "none",
2419
+ "scrub": "never"
2395
2420
  },
2396
2421
  "coral-studio": {
2397
2422
  "arrive": "pop",
2398
2423
  "leave": "quart-out",
2399
2424
  "move": "rise",
2400
2425
  "preloader": "none",
2401
- "preloaderExit": "none"
2426
+ "preloaderExit": "none",
2427
+ "scrub": "never"
2402
2428
  },
2403
2429
  "corner-cafe": {
2404
2430
  "arrive": "spring",
2405
2431
  "leave": "quart-out",
2406
2432
  "move": "rise",
2407
2433
  "preloader": "mark",
2408
- "preloaderExit": "fade"
2434
+ "preloaderExit": "fade",
2435
+ "scrub": "never"
2409
2436
  },
2410
2437
  "kind-community": {
2411
2438
  "arrive": "quart-out",
2412
2439
  "leave": "quart-out",
2413
2440
  "move": "rise",
2414
2441
  "preloader": "none",
2415
- "preloaderExit": "none"
2442
+ "preloaderExit": "none",
2443
+ "scrub": "never"
2416
2444
  },
2417
2445
  "little-ones": {
2418
2446
  "arrive": "pop",
2419
2447
  "leave": "quart-out",
2420
2448
  "move": "rise",
2421
2449
  "preloader": "none",
2422
- "preloaderExit": "none"
2450
+ "preloaderExit": "none",
2451
+ "scrub": "never"
2423
2452
  },
2424
2453
  "garden-party": {
2425
2454
  "arrive": "spring",
2426
2455
  "leave": "quart-out",
2427
2456
  "move": "rise",
2428
2457
  "preloader": "none",
2429
- "preloaderExit": "none"
2458
+ "preloaderExit": "none",
2459
+ "scrub": "never"
2430
2460
  },
2431
2461
  "bold-maker": {
2432
2462
  "arrive": "pop",
2433
2463
  "leave": "quart-out",
2434
2464
  "move": "mask-rise",
2435
2465
  "preloader": "counter",
2436
- "preloaderExit": "sweep"
2466
+ "preloaderExit": "sweep",
2467
+ "scrub": "words"
2437
2468
  },
2438
2469
  "festival": {
2439
2470
  "arrive": "pop",
2440
2471
  "leave": "quart-out",
2441
2472
  "move": "rise",
2442
2473
  "preloader": "letters",
2443
- "preloaderExit": "fade"
2474
+ "preloaderExit": "fade",
2475
+ "scrub": "never"
2444
2476
  },
2445
2477
  "zine": {
2446
2478
  "arrive": "quart-out",
2447
2479
  "leave": "quart-out",
2448
2480
  "move": "clip",
2449
2481
  "preloader": "letters",
2450
- "preloaderExit": "sweep"
2482
+ "preloaderExit": "sweep",
2483
+ "scrub": "entrances"
2451
2484
  },
2452
2485
  "fresh-market": {
2453
2486
  "arrive": "spring",
2454
2487
  "leave": "quart-out",
2455
2488
  "move": "rise",
2456
2489
  "preloader": "none",
2457
- "preloaderExit": "none"
2490
+ "preloaderExit": "none",
2491
+ "scrub": "never"
2458
2492
  }
2459
2493
  },
2460
2494
  "leaveFor": {
@@ -2481,7 +2515,8 @@ const SPEC_MOTION_LANGUAGE = {
2481
2515
  "arrive": "enter",
2482
2516
  "move": "fade",
2483
2517
  "cover": "fade",
2484
- "preloader": "none"
2518
+ "preloader": "none",
2519
+ "scrub": "never"
2485
2520
  },
2486
2521
  "coverMaxMs": {
2487
2522
  "cover": 400,
@@ -2493,6 +2528,10 @@ const SPEC_MOTION_LANGUAGE = {
2493
2528
  "lively",
2494
2529
  "expressive"
2495
2530
  ],
2531
+ "scrubLevels": [
2532
+ "lively",
2533
+ "expressive"
2534
+ ],
2496
2535
  "reduced": {
2497
2536
  "enter": "fade",
2498
2537
  "enterMaxMs": 200
@@ -20785,6 +20824,204 @@ function applyHeadingLevelRule(target, oldLevel, newLevel, baseline = {}) {
20785
20824
  return switchElementStyle(target, from, to, baseline);
20786
20825
  }
20787
20826
 
20827
+ /**
20828
+ * A section's EDGE into the section above it, and its SHAPE (award-ingredients plan §7.1d, AW6 — board award-body,
20829
+ * AW6-D1…D11). Two content traits on a Section, edited in Bindings ▸ Section edge and stamped by the composer, and ONE
20830
+ * answer every renderer applies: the classes below, through design-core's node-class helper (`nodeDesignClasses`), which
20831
+ * the shared CSS (`iox-design.css`) paints.
20832
+ *
20833
+ * - The edge belongs to the LOWER section (AW6-D2): its `::before` — filled with its own ground — rises into the one
20834
+ * above by the seam's depth (contract `BODY.seams`, laptop · phone). Nothing moves: the shape is painted, never laid
20835
+ * out (`rules.seamPaintsOnly`, R-H16). Two neighbours on the same ground paint nothing visible (AW6-D3).
20836
+ * - `rounded` paints the upper section's lower corners away in this section's ground (AW6-D4: the upper looks laid
20837
+ * over this one, radius from the table, depth 0).
20838
+ * - Drip and torn are asymmetric: a right-to-left section draws them mirrored (AW6-D5, R-H18) — decided HERE from the
20839
+ * section's own Text Direction (`iox-seam-mirrored`), never by `:dir(rtl)`: a composed Hebrew page carries its
20840
+ * direction as the CSS `direction` of each section (which `:dir()` cannot see), and the builder canvas sits inside the
20841
+ * ADMIN's `<html dir>` — a Hebrew admin would mirror an English site's seams.
20842
+ * - The shape `card` insets the section from the window with the look's gutter and card radius (AW6-D11); a card takes
20843
+ * only Straight or Rounded, and its rounding is its own corners — so a card wears no seam class at all.
20844
+ *
20845
+ * Framework-free: the composer (generation-core), the builder's panels and both renderers read it.
20846
+ */
20847
+ /** The seams — the contract's `BODY.ingredients.seam` (generation-core `BodySeam` is this vocabulary). */
20848
+ var SectionEdge;
20849
+ (function (SectionEdge) {
20850
+ SectionEdge["Straight"] = "straight";
20851
+ SectionEdge["Wave"] = "wave";
20852
+ SectionEdge["Drip"] = "drip";
20853
+ SectionEdge["Torn"] = "torn";
20854
+ SectionEdge["Rounded"] = "rounded";
20855
+ })(SectionEdge || (SectionEdge = {}));
20856
+ /** A section's shape: edge to edge, or a rounded card on the page's ground (contract `sections.inset-card`). */
20857
+ var SectionShape;
20858
+ (function (SectionShape) {
20859
+ SectionShape["Full"] = "full";
20860
+ SectionShape["Card"] = "card";
20861
+ })(SectionShape || (SectionShape = {}));
20862
+ /** The content traits (stored in `props`, like `colorScheme`). No default is saved: a section without them is straight and full. */
20863
+ const SECTION_EDGE_TRAIT = 'seam';
20864
+ const SECTION_SHAPE_TRAIT = 'sectionShape';
20865
+ /** The node types that offer an edge and a shape (a Container only as a page's direct child — the panel decides). */
20866
+ const SECTION_EDGE_TYPES = ['Section', 'Container'];
20867
+ /** Every edge in contract order. */
20868
+ const SECTION_EDGES = Object.values(SectionEdge);
20869
+ /** The edges a CARD may take (AW6-D11). */
20870
+ const CARD_EDGES = [SectionEdge.Straight, SectionEdge.Rounded];
20871
+ /** The asymmetric edges — the ones a right-to-left section draws mirrored (the contract's `mirrors`). */
20872
+ const MIRRORED_EDGES = [SectionEdge.Drip, SectionEdge.Torn];
20873
+ const SEAM_CLASS_PREFIX = 'iox-seam-';
20874
+ /** Beside an asymmetric edge's class on a right-to-left section (AW6-D5). */
20875
+ const SEAM_MIRRORED_CLASS = 'iox-seam-mirrored';
20876
+ const SECTION_CARD_CLASS = 'iox-section-card';
20877
+ const EDGE_IDS = new Set(SECTION_EDGES);
20878
+ const SHAPE_IDS = new Set(Object.values(SectionShape));
20879
+ function traitOf(node, name) {
20880
+ if (!node)
20881
+ return undefined;
20882
+ if (node.props && name in node.props)
20883
+ return node.props[name];
20884
+ return node.traits?.find(t => t?.name === name)?.default;
20885
+ }
20886
+ /** A node's stored edge — Straight for none or anything unknown. */
20887
+ function sectionEdgeOf(node) {
20888
+ const v = traitOf(node, SECTION_EDGE_TRAIT);
20889
+ return typeof v === 'string' && EDGE_IDS.has(v) ? v : SectionEdge.Straight;
20890
+ }
20891
+ /** A node's stored shape — Full for none or anything unknown. */
20892
+ function sectionShapeOf(node) {
20893
+ const v = traitOf(node, SECTION_SHAPE_TRAIT);
20894
+ return typeof v === 'string' && SHAPE_IDS.has(v) ? v : SectionShape.Full;
20895
+ }
20896
+ /** True when an edge is one a section of `shape` can wear (a card: Straight or Rounded). */
20897
+ function edgeFitsShape(edge, shape) {
20898
+ return shape !== SectionShape.Card || CARD_EDGES.includes(edge);
20899
+ }
20900
+ /** `iox-seam-<edge>` for a known, non-straight edge — else null (an unknown word never reaches a class attribute). */
20901
+ function sectionEdgeClass(edge) {
20902
+ return typeof edge === 'string' && edge !== SectionEdge.Straight && EDGE_IDS.has(edge) ? `${SEAM_CLASS_PREFIX}${edge}` : null;
20903
+ }
20904
+ const RTL = 'rtl';
20905
+ /** The Text Direction trait and where it used to live (style-compiler `TEXT_DIRECTION_KEY` / `LEGACY_DIRECTION_KEY`). */
20906
+ const DIRECTION_KEYS = ['textDirection', 'direction'];
20907
+ /** True when the section's OWN Text Direction is right-to-left (a saved node's styleProps, a builder node's style
20908
+ * traits). A section with no direction of its own reads left-to-right. */
20909
+ function sectionIsRtl(node) {
20910
+ if (!node)
20911
+ return false;
20912
+ for (const key of DIRECTION_KEYS) {
20913
+ if (node.styleProps && key in node.styleProps)
20914
+ return node.styleProps[key] === RTL;
20915
+ }
20916
+ for (const group of node.styleTraits ?? []) {
20917
+ const t = group?.traits?.find(x => x?.name === DIRECTION_KEYS[0]);
20918
+ if (t)
20919
+ return t.default === RTL;
20920
+ }
20921
+ return false;
20922
+ }
20923
+ /**
20924
+ * The classes a section renders for its edge and shape: `iox-seam-wave`, `iox-seam-drip iox-seam-mirrored` (a
20925
+ * right-to-left section), `iox-section-card`, or `''`. A card wears no seam (its rounding is its own corners); an edge
20926
+ * stored on a card that cannot take it is kept and drawn as nothing.
20927
+ */
20928
+ function sectionDesignClasses(node) {
20929
+ if (sectionShapeOf(node) === SectionShape.Card)
20930
+ return SECTION_CARD_CLASS;
20931
+ const edge = sectionEdgeOf(node);
20932
+ const cls = sectionEdgeClass(edge);
20933
+ if (!cls)
20934
+ return '';
20935
+ return MIRRORED_EDGES.includes(edge) && sectionIsRtl(node) ? `${cls} ${SEAM_MIRRORED_CLASS}` : cls;
20936
+ }
20937
+ /** True for a class this module writes (so a re-sync removes a stale one). */
20938
+ function isSectionDesignClass(c) {
20939
+ return c === SECTION_CARD_CLASS || c.startsWith(SEAM_CLASS_PREFIX);
20940
+ }
20941
+ function writeTrait(node, name, value) {
20942
+ if (!node)
20943
+ return false;
20944
+ if (Array.isArray(node.traits)) {
20945
+ const trait = node.traits.find(t => t?.name === name);
20946
+ if (!trait)
20947
+ return false;
20948
+ if (trait.default === value)
20949
+ return false;
20950
+ trait.default = value;
20951
+ return true;
20952
+ }
20953
+ if (node.props?.[name] === value)
20954
+ return false;
20955
+ node.props = { ...(node.props ?? {}), [name]: value };
20956
+ return true;
20957
+ }
20958
+ /** Write a section's edge — THE one writer (Bindings ▸ Section edge, "every section", the composer). False when
20959
+ * nothing changed: an unknown edge, the edge it holds, or a builder node with no such trait. */
20960
+ function setSectionEdge(node, edge) {
20961
+ if (!EDGE_IDS.has(edge))
20962
+ return false;
20963
+ return writeTrait(node, SECTION_EDGE_TRAIT, edge);
20964
+ }
20965
+ /** The style props a card shape writes (the look's gutter either side, the card's radius — token references, so a
20966
+ * re-theme reaches it), and what Full width puts back. */
20967
+ const SECTION_CARD_STYLES = {
20968
+ margin: '0px var(--iox-space-gutter) 0px var(--iox-space-gutter)',
20969
+ borderRadius: 'var(--iox-card-radius)',
20970
+ };
20971
+ const SECTION_FULL_STYLES = {
20972
+ margin: '0px 0px 0px 0px',
20973
+ borderRadius: '0px',
20974
+ };
20975
+ /**
20976
+ * What choosing a shape writes, judged against what the section wears now: the trait, and the style props — Card
20977
+ * writes {@link SECTION_CARD_STYLES}; Full width puts {@link SECTION_FULL_STYLES} back only where the section still
20978
+ * holds the card's own value (an author's margin or radius is theirs and stays). `styles` is `{}` when nothing changes.
20979
+ */
20980
+ function planSectionShape(shape, current = {}) {
20981
+ if (!SHAPE_IDS.has(shape))
20982
+ return null;
20983
+ const styles = {};
20984
+ if (shape === SectionShape.Card) {
20985
+ for (const [k, v] of Object.entries(SECTION_CARD_STYLES))
20986
+ if (current[k] !== v)
20987
+ styles[k] = v;
20988
+ }
20989
+ else {
20990
+ for (const [k, v] of Object.entries(SECTION_FULL_STYLES))
20991
+ if (current[k] === SECTION_CARD_STYLES[k])
20992
+ styles[k] = v;
20993
+ }
20994
+ return { shape: shape, styles };
20995
+ }
20996
+ /** Write a section's shape trait (the style props are the caller's, from {@link planSectionShape}). */
20997
+ function setSectionShape(node, shape) {
20998
+ if (!SHAPE_IDS.has(shape))
20999
+ return false;
21000
+ return writeTrait(node, SECTION_SHAPE_TRAIT, shape);
21001
+ }
21002
+ /**
21003
+ * The non-default scheme of the band under the header's bottom edge — the 1px line just above `barBottom` — or null
21004
+ * (a default band, or nothing there). Pure: the boxes come from the renderer (the window's scroll on the site, the
21005
+ * canvas's own driver in the builder). The first band that holds the line wins (bands are the page's sections, in order).
21006
+ */
21007
+ function schemeUnderBar(bands, barBottom) {
21008
+ if (!Number.isFinite(barBottom))
21009
+ return null;
21010
+ const line = barBottom - 0.5;
21011
+ const hit = bands.find(b => b.top <= line && line < b.bottom);
21012
+ return hit && colorSchemeClass(hit.scheme) ? hit.scheme : null;
21013
+ }
21014
+ const SCHEME_CLASS = /^iox-scheme-([a-z][a-z0-9-]*)$/;
21015
+ /** The scheme an element wears, read back from its `iox-scheme-<id>` class — null for none. */
21016
+ function schemeOfClasses(classes) {
21017
+ for (const c of classes ?? []) {
21018
+ const m = SCHEME_CLASS.exec(c);
21019
+ if (m && colorSchemeClass(m[1]))
21020
+ return m[1];
21021
+ }
21022
+ return null;
21023
+ }
21024
+
20788
21025
  /**
20789
21026
  * The design-system classes a node renders, in BOTH renderers (builder canvas, engine component
20790
21027
  * path, engine string path) — ONE helper, so the three can never disagree about which class a node
@@ -20796,7 +21033,9 @@ function applyHeadingLevelRule(target, oldLevel, newLevel, baseline = {}) {
20796
21033
  * `compileSchemeCss` re-declares tokens on, so everything inside re-resolves;
20797
21034
  * - the composite ROLE `iox-role-<role>` (`card.media` → `iox-role-card-media`; composite-components
20798
21035
  * plan §3, Card v2) — what the shared CSS keys a part's structural rules on (the badge's corner, the
20799
- * card's stretched link), so a role is never a renderer's private knowledge.
21036
+ * card's stretched link), so a role is never a renderer's private knowledge;
21037
+ * - a Section's edge and shape `iox-seam-<edge>` / `iox-section-card` (AW6, `section-edge.ts`) — what the shared CSS
21038
+ * paints a seam on.
20800
21039
  *
20801
21040
  * Renderers read `elementStyle`, `colorScheme` and `role` for exactly this and nothing else.
20802
21041
  */
@@ -20945,13 +21184,16 @@ function setColorScheme(node, id) {
20945
21184
  function hasElementStyleMarker(node) {
20946
21185
  return elementStyleClass(node?.elementStyle) !== null;
20947
21186
  }
20948
- /** The classes a node renders: `'iox-es iox-es-card iox-scheme-inverse'` (+ a bottom bar's reserve class), or `''` for none. */
21187
+ /** The classes a node renders: `'iox-es iox-es-card iox-scheme-inverse'` (+ a bottom bar's reserve class, a section's
21188
+ * edge or shape), or `''` for none. */
20949
21189
  function nodeDesignClasses(node) {
20950
21190
  const marker = elementStyleClass(node?.elementStyle);
20951
- return [marker ? `${ELEMENT_STYLE_MARKER_CLASS} ${marker}` : '', colorSchemeClass(colorSchemeOf(node)) ?? '', roleClass(node?.role) ?? '', barReserveClass(node) ?? '']
21191
+ return [marker ? `${ELEMENT_STYLE_MARKER_CLASS} ${marker}` : '', colorSchemeClass(colorSchemeOf(node)) ?? '', roleClass(node?.role) ?? '', barReserveClass(node) ?? '',
21192
+ sectionDesignClasses(node)]
20952
21193
  .filter(Boolean).join(' ');
20953
21194
  }
20954
- const isDesignClass = (c) => c === ELEMENT_STYLE_MARKER_CLASS || c.startsWith(MARKER_PREFIX) || c.startsWith(SCHEME_PREFIX) || c.startsWith(ROLE_PREFIX) || c.startsWith(BAR_RESERVE_CLASS);
21195
+ const isDesignClass = (c) => c === ELEMENT_STYLE_MARKER_CLASS || c.startsWith(MARKER_PREFIX) || c.startsWith(SCHEME_PREFIX) || c.startsWith(ROLE_PREFIX) || c.startsWith(BAR_RESERVE_CLASS)
21196
+ || isSectionDesignClass(c);
20955
21197
  /** Make an element's design classes match the node — the live switch on the canvas and the
20956
21198
  * component path's one-time stamp. Removes stale ones; touches no other class. */
20957
21199
  function syncNodeDesignClasses(el, node) {
@@ -21382,7 +21624,16 @@ var HeaderTrait;
21382
21624
  /** HI1b (HS-5): the mix the header was composed as — its `<ingredient>:<word>` words, space-separated (generation-core
21383
21625
  * `stampHeaderMix`). Read by Bindings ▸ Header and the Header studio; no renderer reads it. */
21384
21626
  HeaderTrait["Mix"] = "headerMix";
21627
+ /** AW6 (AW6-D10): `follows` — its colours follow the section under it as the page scrolls. Absent / `opening`: it
21628
+ * wears the page's opening (#71), as before. Written by the Header studio ▸ Ground and the composer (`ink:follows`). */
21629
+ HeaderTrait["Ink"] = "headerInk";
21385
21630
  })(HeaderTrait || (HeaderTrait = {}));
21631
+ /** Whose colours the header wears (contract HEADER `ink`): the page's opening, or every section as it passes under it. */
21632
+ var HeaderInk;
21633
+ (function (HeaderInk) {
21634
+ HeaderInk["Opening"] = "opening";
21635
+ HeaderInk["Follows"] = "follows";
21636
+ })(HeaderInk || (HeaderInk = {}));
21386
21637
  var HeaderAttribute;
21387
21638
  (function (HeaderAttribute) {
21388
21639
  /** `stays` | `hides` on a header that stays at the top. Absent: it scrolls away. */
@@ -21391,6 +21642,9 @@ var HeaderAttribute;
21391
21642
  HeaderAttribute["Edge"] = "data-iox-header-edge";
21392
21643
  /** Written by the header runtime while a `hides` header has stepped aside. */
21393
21644
  HeaderAttribute["Hidden"] = "data-iox-header-hidden";
21645
+ /** `follows` on a header whose colours follow the section under it (the header ink runtime writes the page's
21646
+ * `data-iox-opening` as each section passes; the shared CSS cross-fades). Absent: it wears the opening. */
21647
+ HeaderAttribute["Ink"] = "data-iox-header-ink";
21394
21648
  })(HeaderAttribute || (HeaderAttribute = {}));
21395
21649
  /** What a composed header gets (the `nav.*` patterns' `header`, the palette's Navigation bar). */
21396
21650
  const COMPOSED_HEADER = {
@@ -21411,9 +21665,15 @@ function headerEdgeOf(value) {
21411
21665
  function headerStaysAtTop(behaviour) {
21412
21666
  return headerBehaviourOf(behaviour) !== HeaderBehaviour.Scrolls;
21413
21667
  }
21414
- /** The attributes a header renders, from its two trait values — `{}` for a header that keeps today's behaviour. */
21415
- function headerAttributes(behaviour, edge) {
21668
+ /** A stored ink, or Opening for anything else. */
21669
+ function headerInkOf(value) {
21670
+ return value === HeaderInk.Follows ? HeaderInk.Follows : HeaderInk.Opening;
21671
+ }
21672
+ /** The attributes a header renders, from its trait values — `{}` for a header that keeps today's behaviour. */
21673
+ function headerAttributes(behaviour, edge, ink) {
21416
21674
  const out = {};
21675
+ if (headerInkOf(ink) === HeaderInk.Follows)
21676
+ out[HeaderAttribute.Ink] = HeaderInk.Follows;
21417
21677
  const b = headerBehaviourOf(behaviour);
21418
21678
  if (b !== HeaderBehaviour.Scrolls)
21419
21679
  out[HeaderAttribute.Behaviour] = b;
@@ -23451,10 +23711,10 @@ function missingFontRoles(tokens, uploaded) {
23451
23711
  * arrival, the fast ease-out leave of MB-D1) and NO move, so every level keeps its own heading entrance (MB-D8 — a
23452
23712
  * built page keeps what it was stamped with until a look is applied).
23453
23713
  */
23454
- const L$1 = SPEC_MOTION_LANGUAGE;
23455
- const ARRIVE_IDS = L$1.arrive;
23456
- const LEAVE_IDS = L$1.leave;
23457
- const MOVE_IDS = L$1.move;
23714
+ const L$2 = SPEC_MOTION_LANGUAGE;
23715
+ const ARRIVE_IDS = L$2.arrive;
23716
+ const LEAVE_IDS = L$2.leave;
23717
+ const MOVE_IDS = L$2.move;
23458
23718
  /** The plan tier a word is offered on (AW-D23): `all` every plan, `pro` Pro and Studio. */
23459
23719
  var MotionWordTier;
23460
23720
  (function (MotionWordTier) {
@@ -23466,10 +23726,10 @@ const SPRING_CURVE_TOKEN = 'ease-spring';
23466
23726
  const SPRING_REF = /^\{\{([a-z0-9-]+)\}\}$/;
23467
23727
  const isArriveId = (v) => typeof v === 'string' && ARRIVE_IDS.includes(v);
23468
23728
  const isMoveId = (v) => typeof v === 'string' && MOVE_IDS.includes(v);
23469
- const PRESET_LANGUAGE = L$1.presets;
23470
- const LEAVE_FOR = L$1.leaveFor;
23471
- const TIERS = L$1.tiers;
23472
- const PLAN_FALLBACK = L$1.planFallback;
23729
+ const PRESET_LANGUAGE = L$2.presets;
23730
+ const LEAVE_FOR = L$2.leaveFor;
23731
+ const TIERS = L$2.tiers;
23732
+ const PLAN_FALLBACK = L$2.planFallback;
23473
23733
  /** A style preset's own language (its Feel, Headings arrive and first-visit preloader with its exit) — undefined for an
23474
23734
  * unknown id. */
23475
23735
  function presetMotionLanguage(presetId) {
@@ -23481,30 +23741,30 @@ function motionWordTier(kind, word) {
23481
23741
  }
23482
23742
  /** `pop` overshoots: only a Lively or Expressive look arrives on it (contract `popLevels`). */
23483
23743
  function popAllowed(animate) {
23484
- return L$1.popLevels.includes(String(animate ?? ''));
23744
+ return L$2.popLevels.includes(String(animate ?? ''));
23485
23745
  }
23486
23746
  /**
23487
23747
  * The language a set of choices wears. The leave follows Feel (MB-D5): the preset's own pair when Feel is still its
23488
23748
  * arrival, else the contract's `leaveFor`. A `pop` Feel on a level that may not overshoot settles as expo-out.
23489
23749
  */
23490
23750
  function motionLanguageOf(choices, presetId) {
23491
- let arrive = isArriveId(choices.feel) ? choices.feel : L$1.defaults.arrive;
23751
+ let arrive = isArriveId(choices.feel) ? choices.feel : L$2.defaults.arrive;
23492
23752
  if (arrive === 'pop' && choices.animate !== undefined && !popAllowed(choices.animate))
23493
23753
  arrive = 'expo-out';
23494
23754
  const own = presetMotionLanguage(presetId ?? null);
23495
- const leave = own && own.arrive === arrive ? own.leave : (LEAVE_FOR[arrive] ?? L$1.defaults.leave);
23755
+ const leave = own && own.arrive === arrive ? own.leave : (LEAVE_FOR[arrive] ?? L$2.defaults.leave);
23496
23756
  return { arrive, leave, move: isMoveId(choices.headings) ? choices.headings : null };
23497
23757
  }
23498
23758
  /** The CSS timing function of an arrive / leave word; `spring` reads the look's own spring row. */
23499
23759
  function motionCurve(word, tokenValue = () => undefined) {
23500
- const curve = L$1.curves[word] ?? '';
23760
+ const curve = L$2.curves[word] ?? '';
23501
23761
  const ref = SPRING_REF.exec(curve);
23502
23762
  return ref ? (tokenValue(ref[1]) ?? 'linear') : curve;
23503
23763
  }
23504
23764
  /**
23505
23765
  * 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
23506
23766
  * `planFallback`) — Feel today's arrival, a Pro move a fade, a Pro cover (AW4) a fade between pages, a preloader (AW5)
23507
- * none. Applied where a look is CHOSEN (a Look pick, a build); a built site keeps its words.
23767
+ * none, By the scroll (AW10) never. Applied where a look is CHOSEN (a Look pick, a build); a built site keeps its words.
23508
23768
  */
23509
23769
  function motionLanguageForPlan(choices, pro) {
23510
23770
  if (pro)
@@ -23517,18 +23777,35 @@ function motionLanguageForPlan(choices, pro) {
23517
23777
  out.between = PLAN_FALLBACK.cover;
23518
23778
  if (proWord('preloader', choices.preloader))
23519
23779
  out.preloader = PLAN_FALLBACK.preloader;
23780
+ if (proWord('scrub', choices.scrub))
23781
+ out.scrub = PLAN_FALLBACK.scrub;
23520
23782
  return out;
23521
23783
  }
23522
23784
  /** The reduced-motion floor (AW-D6): an entrance is a fade this long at most — gentler, never zero. */
23523
- const REDUCED_ENTRANCE_MAX_MS = L$1.reduced.enterMaxMs;
23785
+ const REDUCED_ENTRANCE_MAX_MS = L$2.reduced.enterMaxMs;
23524
23786
  /** MB-D7: a travelling move plays its quiet form on these levels (rise 8 px, mask lines together, clip from 85 %). */
23525
- const QUIET_LEVELS = L$1.quietLevels;
23526
- const QUIET_MOVE = L$1.quiet;
23787
+ const QUIET_LEVELS = L$2.quietLevels;
23788
+ const QUIET_MOVE = L$2.quiet;
23527
23789
  /** An exit takes about this share of its entrance's time (Emil: exits faster than entrances). */
23528
- const LEAVE_SHARE = L$1.leaveShare;
23790
+ const LEAVE_SHARE = L$2.leaveShare;
23529
23791
  /** Every preset id the contract gives a language to — all 24 (build-spec refuses one without). */
23530
23792
  const MOTION_LANGUAGE_PRESET_IDS = SPEC_STYLE_PRESETS.map(p => p.id).filter(id => id in PRESET_LANGUAGE);
23531
23793
 
23794
+ /**
23795
+ * Text as a reader sees its letters (AW5 preloader, AW10 letter split): a Hebrew letter keeps its points, an emoji its
23796
+ * joiners, a flag its pair (`Intl.Segmenter`). ONE reading for every surface that counts or splits letters. Pure.
23797
+ */
23798
+ /** A letter with the marks written on it: the fallback where `Intl.Segmenter` is missing (no joiners, no flags). */
23799
+ const LETTER_WITH_MARKS = /\P{M}\p{M}*|\p{M}+/gu;
23800
+ function graphemes(text) {
23801
+ if (!text)
23802
+ return [];
23803
+ const Seg = Intl.Segmenter;
23804
+ if (!Seg)
23805
+ return text.match(LETTER_WITH_MARKS) ?? [];
23806
+ return Array.from(new Seg(undefined, { granularity: 'grapheme' }).segment(text), s => s.segment);
23807
+ }
23808
+
23532
23809
  /**
23533
23810
  * THE FIRST-VISIT PRELOADER (award-ingredients-plan §5.3, AW5; Preloader board PL-D1…PL-D9) — pure, framework-free.
23534
23811
  *
@@ -23539,7 +23816,7 @@ const MOTION_LANGUAGE_PRESET_IDS = SPEC_STYLE_PRESETS.map(p => p.id).filter(id =
23539
23816
  * under reduced motion, never on a return visit. The page's words are always painted under it (T1); it never holds the
23540
23817
  * scroll — a scroll, key or tap ends it (PL-D4).
23541
23818
  */
23542
- const L = SPEC_MOTION_LANGUAGE;
23819
+ const L$1 = SPEC_MOTION_LANGUAGE;
23543
23820
  /** What opens the first visit (`design.preloader`). */
23544
23821
  var PreloaderKind;
23545
23822
  (function (PreloaderKind) {
@@ -23563,12 +23840,12 @@ var PreloaderExit;
23563
23840
  /** The whole layer rises away. */
23564
23841
  PreloaderExit["Lift"] = "lift";
23565
23842
  })(PreloaderExit || (PreloaderExit = {}));
23566
- const PRELOADER_IDS = L.preloader;
23567
- const PRELOADER_EXIT_IDS = L.preloaderExit;
23843
+ const PRELOADER_IDS = L$1.preloader;
23844
+ const PRELOADER_EXIT_IDS = L$1.preloaderExit;
23568
23845
  /** AW-D7: a preloader leaves at the first screen's readiness or this many ms, whichever first. */
23569
- const PRELOADER_CAP_MS = L.preloaderCapMs;
23846
+ const PRELOADER_CAP_MS = L$1.preloaderCapMs;
23570
23847
  /** The How animated levels a preloader is offered on. */
23571
- const PRELOADER_LEVELS = L.preloaderLevels;
23848
+ const PRELOADER_LEVELS = L$1.preloaderLevels;
23572
23849
  /** A preloader's exit takes at most this long (Emil: exits are short; ≤ the covers' uncover). */
23573
23850
  const PRELOADER_EXIT_MAX_MS = 500;
23574
23851
  /** Letters shows the opening heading only while it is this short (PL-D2); a longer one shows the business name. */
@@ -23624,12 +23901,9 @@ const EXIT_MOTION = {
23624
23901
  function preloaderExitMotion(exit) {
23625
23902
  return EXIT_MOTION[exit] ?? EXIT_MOTION[PreloaderExit.Fade];
23626
23903
  }
23627
- /** A text as a reader sees its letters — a Hebrew letter keeps its points, an emoji its joiners (`Intl.Segmenter`). */
23904
+ /** A text as a reader sees its letters — `graphemes`, kept under the name the preloader has always used. */
23628
23905
  function preloaderGraphemes(text) {
23629
- const Seg = Intl.Segmenter;
23630
- if (!Seg)
23631
- return Array.from(text);
23632
- return Array.from(new Seg(undefined, { granularity: 'grapheme' }).segment(text), s => s.segment);
23906
+ return graphemes(text);
23633
23907
  }
23634
23908
  /**
23635
23909
  * PL-D5: a first visit is the session's first page in this tab AND not reached from another page of the same site
@@ -23665,6 +23939,37 @@ function preloaderWords(heading, businessName) {
23665
23939
  return String(businessName ?? '').replace(/\s+/g, ' ').trim() || preloaderGraphemes(h).slice(0, PRELOADER_LETTERS_MAX).join('');
23666
23940
  }
23667
23941
 
23942
+ /**
23943
+ * THE LOOK'S BY THE SCROLL (award-ingredients-plan §7.1e, AW10; board `award-text-scroll`, AW10-D5…D8) — pure,
23944
+ * framework-free. What may follow the scroll instead of playing once as it arrives: nothing, text (a text reveal lights
23945
+ * by the scroll), or every entrance. Stored as ONE `settings.design` row (`scrub`, absent = never); a style preset
23946
+ * carries its own word (the contract's `MOTION.presets`), kept by a start only on a Lively or Expressive look
23947
+ * (`SCRUB_LEVELS`, AW10-D7 — a calm business never scrubs), drawn as never on a lower plan. The first screen never
23948
+ * scrubs (AW10-D8): its scroll motion is copy-out. The stamps are generation-core's (`scrubbedEntrance`); the runtime is
23949
+ * the ONE `scrollProgress` runtime.
23950
+ */
23951
+ const L = SPEC_MOTION_LANGUAGE;
23952
+ /** The look's scrub (contract MOTION `ingredients.scrub`): what may follow the scroll. */
23953
+ var ScrubId;
23954
+ (function (ScrubId) {
23955
+ /** Everything plays once as it arrives. */
23956
+ ScrubId["Never"] = "never";
23957
+ /** Text may light by the scroll: a text reveal follows it, lighting from dim. */
23958
+ ScrubId["Words"] = "words";
23959
+ /** Entrances may follow the scroll exactly: every entrance, a text reveal rising as it does on time. */
23960
+ ScrubId["Entrances"] = "entrances";
23961
+ })(ScrubId || (ScrubId = {}));
23962
+ /** Every word, in the contract's order. */
23963
+ const SCRUB_IDS = L.scrub;
23964
+ /** The How animated levels a look's By the scroll is kept on (AW10-D7). */
23965
+ const SCRUB_LEVELS = L.scrubLevels;
23966
+ const isScrubId = (v) => typeof v === 'string' && SCRUB_IDS.includes(v);
23967
+ /** The look's scrub as stored: a known word, else never (a row stored before AW10 reads never). */
23968
+ function scrubOfChoices(choices) {
23969
+ const scrub = choices?.scrub;
23970
+ return isScrubId(scrub) ? scrub : ScrubId.Never;
23971
+ }
23972
+
23668
23973
  /**
23669
23974
  * The `settings.design` row (design-system plan §3f), read and written by ONE pair of functions so
23670
23975
  * the builder, the server's public page read (the engine's mode) and the site build agree on what a
@@ -23694,6 +23999,8 @@ var DesignConfigKey;
23694
23999
  DesignConfigKey["Headings"] = "headings";
23695
24000
  /** AW5: the first-visit preloader (a `PreloaderKind`); absent = none. */
23696
24001
  DesignConfigKey["Preloader"] = "preloader";
24002
+ /** AW10: the look's By the scroll (a `ScrubId`); absent = never. */
24003
+ DesignConfigKey["Scrub"] = "scrub";
23697
24004
  DesignConfigKey["Revert"] = "revert";
23698
24005
  })(DesignConfigKey || (DesignConfigKey = {}));
23699
24006
  const MODES = SPEC_AXES.modes;
@@ -23775,17 +24082,20 @@ function resolveDesignChoices(partial) {
23775
24082
  ...resolveMotionLanguageChoices(partial),
23776
24083
  };
23777
24084
  }
23778
- /** The look's motion language as stored: a known Feel / Headings word (AW3) or first-visit preloader (AW5) is kept,
23779
- * anything else is absent. */
24085
+ /** The look's motion language as stored: a known Feel / Headings word (AW3), first-visit preloader (AW5) or By the
24086
+ * scroll word (AW10) is kept, anything else is absent. */
23780
24087
  function resolveMotionLanguageChoices(partial) {
23781
24088
  const feel = asString(partial?.feel);
23782
24089
  const headings = asString(partial?.headings);
23783
24090
  const preloader = asString(partial?.preloader);
24091
+ const scrub = asString(partial?.scrub);
23784
24092
  return {
23785
24093
  ...(isArriveId(feel) ? { feel } : {}),
23786
24094
  ...(isMoveId(headings) ? { headings } : {}),
23787
24095
  // AW5: a known kind other than none is kept; none, unknown or absent reads absent (= nothing opens the visit).
23788
24096
  ...(isPreloaderKind(preloader) && preloader !== PreloaderKind.None ? { preloader } : {}),
24097
+ // AW10: a known word other than never is kept; never, unknown or absent reads absent (= everything plays once).
24098
+ ...(isScrubId(scrub) && scrub !== ScrubId.Never ? { scrub } : {}),
23789
24099
  };
23790
24100
  }
23791
24101
  /** The look's motion, completed: an absent or unknown choice reads `PRE_MOTION` — what the site already does. */
@@ -23839,6 +24149,7 @@ function readDesignConfig(config, hasRow = !!config) {
23839
24149
  feel: asString(map.get(DesignConfigKey.Feel)) ?? undefined,
23840
24150
  headings: asString(map.get(DesignConfigKey.Headings)) ?? undefined,
23841
24151
  preloader: asString(map.get(DesignConfigKey.Preloader)) ?? undefined,
24152
+ scrub: asString(map.get(DesignConfigKey.Scrub)) ?? undefined,
23842
24153
  });
23843
24154
  return {
23844
24155
  choices,
@@ -23877,6 +24188,7 @@ function designConfigEntries(choices, flavorVersion, revert) {
23877
24188
  ...(c.feel ? [{ key: DesignConfigKey.Feel, value: c.feel }] : []),
23878
24189
  ...(c.headings ? [{ key: DesignConfigKey.Headings, value: c.headings }] : []),
23879
24190
  ...(c.preloader ? [{ key: DesignConfigKey.Preloader, value: c.preloader }] : []),
24191
+ ...(c.scrub ? [{ key: DesignConfigKey.Scrub, value: c.scrub }] : []),
23880
24192
  ...(c.fonts ? [{ key: DesignConfigKey.Fonts, value: JSON.stringify(c.fonts) }] : []),
23881
24193
  ...(revert ? [{ key: DesignConfigKey.Revert, value: JSON.stringify(revert) }] : []),
23882
24194
  ];
@@ -23891,6 +24203,7 @@ function sameDesignChoices(a, b) {
23891
24203
  && x.scroll === y.scroll && x.animate === y.animate && x.between === y.between
23892
24204
  && (x.feel ?? '') === (y.feel ?? '') && (x.headings ?? '') === (y.headings ?? '')
23893
24205
  && (x.preloader ?? '') === (y.preloader ?? '')
24206
+ && (x.scrub ?? '') === (y.scrub ?? '')
23894
24207
  && JSON.stringify(x.fonts ?? {}) === JSON.stringify(y.fonts ?? {});
23895
24208
  }
23896
24209
 
@@ -23924,6 +24237,8 @@ function presetChoices(id, mode) {
23924
24237
  // preloader (PL-D1 — the exit is the preset's, never stored).
23925
24238
  feel: presetMotionLanguage(preset.id)?.arrive, headings: presetMotionLanguage(preset.id)?.move,
23926
24239
  preloader: presetMotionLanguage(preset.id)?.preloader,
24240
+ // AW10: its By the scroll (never reads absent).
24241
+ scrub: presetMotionLanguage(preset.id)?.scrub,
23927
24242
  });
23928
24243
  }
23929
24244
  /**
@@ -24721,5 +25036,5 @@ function designPreloaderOf(config) {
24721
25036
  * Generated bundle index. Do not edit.
24722
25037
  */
24723
25038
 
24724
- 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_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, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, 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, 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, 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, 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, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isMoveId, isPreloaderKind, isRetiredFlavorId, 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, 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, scriptsForLocale, setColorScheme, 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 };
25039
+ 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 };
24725
25040
  //# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map