@vectoriox/iox-ui 5.138.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.
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +59 -28
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +11 -2
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +28 -15
- package/harness-core/index.d.ts +6 -1
- package/package.json +1 -1
- package/src/generation-core/compose-site.ts +9 -3
- package/src/generation-core/plan-wire.ts +67 -22
- package/src/generation-core/site-spec.generated.ts +4 -4
- package/src/harness-core/motion.ts +12 -1
|
@@ -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 =
|
|
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 };
|
|
@@ -5739,5 +5748,5 @@ function startingDesign(input, read = null) {
|
|
|
5739
5748
|
* Generated bundle index. Do not edit.
|
|
5740
5749
|
*/
|
|
5741
5750
|
|
|
5742
|
-
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 };
|
|
5743
5752
|
//# sourceMappingURL=vectoriox-iox-ui-harness-core.mjs.map
|