@vectoriox/iox-ui 5.135.0 → 5.136.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 (38) hide show
  1. package/composite-core/index.d.ts +15 -2
  2. package/design-core/index.d.ts +153 -9
  3. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -36
  4. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +28 -1
  6. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-design-core.mjs +241 -48
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1257 -126
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +7 -3
  12. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  13. package/generation-core/index.d.ts +444 -59
  14. package/harness-core/index.d.ts +4 -2
  15. package/package.json +1 -1
  16. package/src/assist-core/page-sections.ts +4 -31
  17. package/src/composite-core/slider.ts +35 -0
  18. package/src/design-core/design-settings.ts +16 -3
  19. package/src/design-core/design-token.model.ts +3 -0
  20. package/src/design-core/flavor-spec.generated.ts +98 -25
  21. package/src/design-core/motion-language.ts +12 -9
  22. package/src/design-core/preloader.ts +129 -0
  23. package/src/design-core/public-api.ts +1 -0
  24. package/src/design-core/style-presets.ts +3 -1
  25. package/src/generation-core/carry.ts +37 -0
  26. package/src/generation-core/compose-site.ts +222 -9
  27. package/src/generation-core/node-baselines.generated.ts +2 -1
  28. package/src/generation-core/opening-edit.ts +240 -0
  29. package/src/generation-core/opening-mix.ts +639 -0
  30. package/src/generation-core/patterns.ts +3 -0
  31. package/src/generation-core/plan-wire.ts +26 -4
  32. package/src/generation-core/public-api.ts +2 -0
  33. package/src/generation-core/site-build-run.ts +23 -1
  34. package/src/generation-core/site-plan.model.ts +3 -1
  35. package/src/generation-core/site-spec.generated.ts +137 -56
  36. package/src/generation-core/validate-site-plan.ts +5 -3
  37. package/src/harness-core/starting-design.ts +8 -4
  38. package/styles/iox-design.css +32 -0
@@ -1,4 +1,4 @@
1
- import { MOOD_IDS, MOOD_LABELS, STYLE_PRESETS, SPEC_FLAVORS, flavorPackById, parseFontFamilies, SPEC_AXES, motionWordTier, MotionWordTier, parseHexColor, rgbToOklab, presetChoices, toHexColor, stylePresetById, resolveTokenValues, designTokenRows, wcagContrastRatio, auditDesignContrast } from '@vectoriox/iox-ui/design-core';
1
+ import { MOOD_IDS, MOOD_LABELS, STYLE_PRESETS, SPEC_FLAVORS, flavorPackById, parseFontFamilies, SPEC_AXES, motionWordTier, MotionWordTier, parseHexColor, rgbToOklab, presetChoices, toHexColor, stylePresetById, resolveTokenValues, designTokenRows, wcagContrastRatio, auditDesignContrast, PRELOADER_LEVELS } from '@vectoriox/iox-ui/design-core';
2
2
  import { shapeKeys, requiredShapeKeys, PathIssueCollector, isPlainObject, pathAt, FACT_KEYS, jsonText, jsonOneOf, jsonListOf, jsonShapedObject, describeShapeKey, SPEC_SITE_LIBRARY, patternById, SITE_FACT_LABELS, HEBREW_PREFIXES, SITE_TEMPLATES, STUDIO_TEMPLATE, jsonInteger } from '@vectoriox/iox-ui/generation-core';
3
3
 
4
4
  // GENERATED from iox-ai-guidance flavor-spec.v1.json — do not edit; re-run scripts/gen-flavor-spec.mjs
@@ -5699,7 +5699,9 @@ const GENERATION_LIMITS = {
5699
5699
  /**
5700
5700
  * A preset for this business: its choices, Motion from the business (`motionFor`), the references' colour as its seed
5701
5701
  * when that colour passes AA in every mode the preset offers (`referenceSeed` — judged as used), and what the owner
5702
- * already set kept. The ONE rule for a Look pick and for Build with these.
5702
+ * already set kept. The ONE rule for a Look pick and for Build with these. The style's first-visit preloader (AW5) is kept
5703
+ * only while the start is Lively or Expressive (PL-D6) — a calm business (its ceiling below Standard) or "little
5704
+ * movement" never opens with one.
5703
5705
  */
5704
5706
  function presetDesign(presetId, input, kept = {}, read = null) {
5705
5707
  const base = presetChoices(presetId);
@@ -5708,7 +5710,9 @@ function presetDesign(presetId, input, kept = {}, read = null) {
5708
5710
  const motionInput = typeof input === 'object' && input !== null ? input : { businessType: input };
5709
5711
  const start = motionFor(motionInput, presetId, read);
5710
5712
  const seed = referenceSeed(read, presetId);
5711
- return { ...base, ...(seed?.used ? { seed: seed.seed } : {}), scroll: start.scroll, animate: start.animate, between: start.between, ...kept };
5713
+ const { preloader, ...rest } = base;
5714
+ const opens = preloader && PRELOADER_LEVELS.includes(start.animate) ? { preloader } : {};
5715
+ return { ...rest, ...opens, ...(seed?.used ? { seed: seed.seed } : {}), scroll: start.scroll, animate: start.animate, between: start.between, ...kept };
5712
5716
  }
5713
5717
  /** The look a business starts from: its best-ranked style (with the references' boost), at its defaults. */
5714
5718
  function startingDesign(input, read = null) {