@vectoriox/iox-ui 5.164.0 → 5.164.1

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.
@@ -1,6 +1,6 @@
1
1
  import { localeDirection, LocaleDirection, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, isScrubId, columnWordOf, contentWidthOf, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape, setSectionShape, sectionShapeOf, setSectionEdge, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, decomposeCssFunctions, FILTER_FUNCTIONS, wcagContrastRatio, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, readDesignConfig, ANIMATE_IDS, auditDesignContrast, compositeOver, HeaderBehaviour, headerBehaviourOf, headerEdgeOf, COLUMN_IDS, COLUMN_SETTING } from '@vectoriox/iox-ui/design-core';
2
2
  export { HeaderInk } from '@vectoriox/iox-ui/design-core';
3
- import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, SceneRole, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, accordionWords, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, tabsWords, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
3
+ import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SceneRole, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, accordionWords, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, tabsWords, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
4
4
  import { formPresetById, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, FORM_ACTIONS_ROLE, channelOpensNewTab, FORM_CHANNEL_ROLE, presetFormActions, planFormPresetIds, collectFormSpec, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
5
5
  import { normalizeFrameSequence, filmScreensFor, VideoMode, VideoSource, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
6
6
  import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
@@ -30191,10 +30191,16 @@ const FRAMED_SHOWING = 60;
30191
30191
  * `yPercent 30`). Measured over the exit range, after the hold. */
30192
30192
  const WINDOW_SINK = { prop: SceneProp.Y, range: SceneRange.Exit, keys: [[0, 0], [1, 30]] };
30193
30193
  /** Reddottours S3: a walk's picture is over-scaled ×1.2 inside its frame and drifts against the row while it crosses the
30194
- * screen (theirs: `xPercent 0 → 20` over its own crossing). The drift's reach, as a share of the frame's width, keeps
30195
- * inside the over-scale's slack on both sides (0.08 × 1.2 < 0.1). */
30194
+ * screen (theirs: `xPercent 0 → 20` over its own crossing). */
30196
30195
  const WALK_DRIFT_SCALE = 0.2;
30197
- const WALK_DRIFT_SHARE = 0.08;
30196
+ /**
30197
+ * The drift's reach, a share of the FRAME's width — the frame is the size container (`SceneRole.WalkFrame`), so `cqw` there
30198
+ * is the frame's. It moves the picture inside the over-scaled box, so it shows ×(1 + scale): it must stay under the slack a
30199
+ * side, `scale / 2 / (1 + scale)` = 8.3%. A share of the stage (cqw of the stage, the col span's share) is NOT a share of
30200
+ * the frame — gutters and the content column make a frame narrower than its columns' share, and an edge showed
30201
+ * (vectoriox/iox-ui e2e:scenesites §2, 5.164.0: 0.103 of a frame against 0.1).
30202
+ */
30203
+ const WALK_DRIFT_SHARE = 0.07;
30198
30204
  /** The framed window: a held picture's opening clip, from the centre and from a frame, never from less. */
30199
30205
  function framedWindow(track) {
30200
30206
  const keys = track.keys.map(([at, v], i) => [at, i === 0 ? Math.max(FRAMED_SHOWING, v) : v]);
@@ -30206,9 +30212,10 @@ function opensWindow(l, lc) {
30206
30212
  return false;
30207
30213
  return (l.motion ?? []).some(t => t.prop === LayoutTrackProp.Clip && Number(t.to) >= 100 && Number(t.to) > Number(t.from));
30208
30214
  }
30209
- /** A walk's picture drifting inside its frame as it crosses the screen: ± its share of the frame's width, in cqw. */
30210
- function walkDrift(l) {
30211
- const reach = Math.round(((l.col[1] - l.col[0]) / GRID_COLUMNS) * 100 * WALK_DRIFT_SHARE * 100) / 100;
30215
+ /** A walk's picture drifting inside its frame as it crosses the screen: ± its share of the frame's width, in the frame's
30216
+ * cqw (the frame is the size container — `SceneRole.WalkFrame`). */
30217
+ function walkDrift() {
30218
+ const reach = Math.round(WALK_DRIFT_SHARE * 100 * 100) / 100;
30212
30219
  return { prop: SceneProp.X, range: SceneRange.CrossInline, keys: [[0, -reach], [1, reach]] };
30213
30220
  }
30214
30221
  /** The layout's eases the product's tracks can run (RT-D1); anything else is drawn as the property's own. */
@@ -30378,7 +30385,8 @@ function photoLayer(id, l, ctx, path, walking = false) {
30378
30385
  drift.children = [image];
30379
30386
  if (walking) {
30380
30387
  // On a phone the walk is a row the visitor swipes (RT-D4): the picture rests in its frame there.
30381
- image.sceneTracks = [walkDrift(l)];
30388
+ frame.role = SceneRole.WalkFrame;
30389
+ image.sceneTracks = [walkDrift()];
30382
30390
  image.scenePhoneTracks = restingTracks(image.sceneTracks);
30383
30391
  }
30384
30392
  else