@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
@@ -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, PRELOADER_LEVELS } 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, SCRUB_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
@@ -4972,6 +4972,15 @@ const ORDER = {
4972
4972
  function calmerChoice(axis, a, b) {
4973
4973
  return ORDER[axis].indexOf(a) <= ORDER[axis].indexOf(b) ? a : b;
4974
4974
  }
4975
+ /** A calm business: its type goes no further than below Standard (harness `MOTION_CEILINGS.subtle` — care and advice). The
4976
+ * ONE reading of "calm" — Motion's start, the style's cover and the body's edges (AW6 `ComposeContext.calm`) ask it. */
4977
+ function isCalmBusiness(type) {
4978
+ return !!type && calmerChoice('animate', type.ceiling, STANDARD) !== STANDARD;
4979
+ }
4980
+ /** A calm business, by its type's id (unknown or absent: not calm). */
4981
+ function isCalmBusinessType(id, types = BUSINESS_TYPES) {
4982
+ return isCalmBusiness(id ? types.find(t => t.id === id) : undefined);
4983
+ }
4975
4984
  const label = (axis, id) => TABLES[axis][id]?.label ?? id;
4976
4985
  const triple = (m) => `${label('scroll', m.scroll)} · ${label('animate', m.animate)} · ${label('between', m.between)}`;
4977
4986
  function motionFor(input, presetId, read = null, types = BUSINESS_TYPES, presets = STYLE_PRESETS) {
@@ -4980,7 +4989,7 @@ function motionFor(input, presetId, read = null, types = BUSINESS_TYPES, presets
4980
4989
  const base = type ? type.moves : preset.moves;
4981
4990
  const ref = read?.motion ? READ_ANIMATE[read.motion] : null;
4982
4991
  const wanted = ref ?? base.animate;
4983
- const calmType = !!type && calmerChoice('animate', type.ceiling, STANDARD) !== STANDARD;
4992
+ const calmType = isCalmBusiness(type);
4984
4993
  const styleCover = !!type && !calmType && preset.moves.between !== base.between
4985
4994
  && motionWordTier('cover', preset.moves.between) === MotionWordTier.Pro;
4986
4995
  let out = { scroll: base.scroll, animate: calmerChoice('animate', wanted, preset.moves.animate), between: styleCover ? preset.moves.between : base.between };
@@ -5701,7 +5710,7 @@ const GENERATION_LIMITS = {
5701
5710
  * when that colour passes AA in every mode the preset offers (`referenceSeed` — judged as used), and what the owner
5702
5711
  * 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
5712
  * 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.
5713
+ * movement" never opens with one. Its By the scroll (AW10) likewise, only on a Lively or Expressive start (AW10-D7).
5705
5714
  */
5706
5715
  function presetDesign(presetId, input, kept = {}, read = null) {
5707
5716
  const base = presetChoices(presetId);
@@ -5710,9 +5719,10 @@ function presetDesign(presetId, input, kept = {}, read = null) {
5710
5719
  const motionInput = typeof input === 'object' && input !== null ? input : { businessType: input };
5711
5720
  const start = motionFor(motionInput, presetId, read);
5712
5721
  const seed = referenceSeed(read, presetId);
5713
- const { preloader, ...rest } = base;
5722
+ const { preloader, scrub, ...rest } = base;
5714
5723
  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 };
5724
+ const scrubs = scrub && SCRUB_LEVELS.includes(start.animate) ? { scrub } : {};
5725
+ return { ...rest, ...opens, ...scrubs, ...(seed?.used ? { seed: seed.seed } : {}), scroll: start.scroll, animate: start.animate, between: start.between, ...kept };
5716
5726
  }
5717
5727
  /** The look a business starts from: its best-ranked style (with the references' boost), at its defaults. */
5718
5728
  function startingDesign(input, read = null) {
@@ -5738,5 +5748,5 @@ function startingDesign(input, read = null) {
5738
5748
  * Generated bundle index. Do not edit.
5739
5749
  */
5740
5750
 
5741
- export { ANIMATE_ADVICE_STEPS, AnalysisIssueCode, AnalysisLocale, AvoidCheck, BUSINESS_TYPES, BUSINESS_TYPE_IDS, BookingNeed, COPY_LENGTH_ORDER, ComposedPageState, CopyLength, GENERATION_LIMITS, HARNESS_SOURCE, LITTLE_MOVEMENT_AVOID, LITTLE_MOVEMENT_CAP, LintKind, MAX_ANALYSIS_MOODS, MAX_PIXEL_SAMPLES, MAX_READ_PICTURES, NEEDS, NEED_IDS, NeedSource, PALETTE_SIZE, PALETTE_THRESHOLDS, PRODUCTS_NEED, PictureRole, PicturesUnavailable, PlanChangeOutcome, PresetFit, RANK_WEIGHTS, READING_SHAPE, READ_ANIMATE, READ_WEIGHTS, RankReason, ReaderState, ReadingIssueCode, SITE_ANALYSIS_SCHEMA_NAME, SITE_READING_SCHEMA_NAME, SPEC_ANALYSIS_SHAPE, SPEC_BUSINESS_TYPES, SPEC_HARNESS_EXAMPLES, SPEC_HARNESS_SOURCE, SPEC_NEEDS, SPEC_STRUCTURES, SPEC_USER_AVOIDS, STRUCTURES, SellingNeed, SiteReadRefusal, StyleReadGround, StyleReadHeadings, StyleReadMotion, StyleReadSourceKind, USER_AVOID_IDS, VoiceFormality, VoicePerson, addressesIn, analysisFromWire, analysisPromptContext, analysisToWire, bestRankedPreset, businessTypeById, calmerChoice, decodeSiteReading, inferNeeds, isLookRule, lintDesign, lookMatches, mapStyleRead, matchBusinessType, matchBusinessTypes, measurePalette, mergeStyleReads, motionAdvice, motionFor, needsSell, normalizeAddress, offeredNeeds, oklchHue, paletteBrand, paletteGround, paletteSamples, pictureStyleRead, pixelSamples, presetDesign, presetHasSerifHeadings, presetLook, presetReason, presetsByFlavor, rankStylePresets, rankWithReferences, readPalette, referenceSeed, seedPassesPreset, siteAnalysisJsonSchema, siteReadingJsonSchema, startingDesign, structureFor, userAvoidRule, validateSiteAnalysis, validateSiteReading, withSellingNeed, withoutAddress };
5751
+ export { ANIMATE_ADVICE_STEPS, AnalysisIssueCode, AnalysisLocale, AvoidCheck, BUSINESS_TYPES, BUSINESS_TYPE_IDS, BookingNeed, COPY_LENGTH_ORDER, ComposedPageState, CopyLength, GENERATION_LIMITS, HARNESS_SOURCE, LITTLE_MOVEMENT_AVOID, LITTLE_MOVEMENT_CAP, LintKind, MAX_ANALYSIS_MOODS, MAX_PIXEL_SAMPLES, MAX_READ_PICTURES, NEEDS, NEED_IDS, NeedSource, PALETTE_SIZE, PALETTE_THRESHOLDS, PRODUCTS_NEED, PictureRole, PicturesUnavailable, PlanChangeOutcome, PresetFit, RANK_WEIGHTS, READING_SHAPE, READ_ANIMATE, READ_WEIGHTS, RankReason, ReaderState, ReadingIssueCode, SITE_ANALYSIS_SCHEMA_NAME, SITE_READING_SCHEMA_NAME, SPEC_ANALYSIS_SHAPE, SPEC_BUSINESS_TYPES, SPEC_HARNESS_EXAMPLES, SPEC_HARNESS_SOURCE, SPEC_NEEDS, SPEC_STRUCTURES, SPEC_USER_AVOIDS, STRUCTURES, SellingNeed, SiteReadRefusal, StyleReadGround, StyleReadHeadings, StyleReadMotion, StyleReadSourceKind, USER_AVOID_IDS, VoiceFormality, VoicePerson, addressesIn, analysisFromWire, analysisPromptContext, analysisToWire, bestRankedPreset, businessTypeById, calmerChoice, decodeSiteReading, inferNeeds, isCalmBusiness, isCalmBusinessType, isLookRule, lintDesign, lookMatches, mapStyleRead, matchBusinessType, matchBusinessTypes, measurePalette, mergeStyleReads, motionAdvice, motionFor, needsSell, normalizeAddress, offeredNeeds, oklchHue, paletteBrand, paletteGround, paletteSamples, pictureStyleRead, pixelSamples, presetDesign, presetHasSerifHeadings, presetLook, presetReason, presetsByFlavor, rankStylePresets, rankWithReferences, readPalette, referenceSeed, seedPassesPreset, siteAnalysisJsonSchema, siteReadingJsonSchema, startingDesign, structureFor, userAvoidRule, validateSiteAnalysis, validateSiteReading, withSellingNeed, withoutAddress };
5742
5752
  //# sourceMappingURL=vectoriox-iox-ui-harness-core.mjs.map