@vectoriox/iox-ui 5.88.0 → 5.90.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/design-core/index.d.ts +523 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +3 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +581 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +4692 -160
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +12 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +46 -6
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +6 -4
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +1611 -10
- package/harness-core/index.d.ts +52 -3
- package/package.json +1 -1
- package/scene-core/index.d.ts +28 -2
- package/src/composite-core/slider.ts +3 -2
- package/src/design-core/flavor-spec.generated.ts +500 -0
- package/src/design-core/font-metrics.ts +105 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/ai-run.ts +11 -0
- package/src/generation-core/audit-site.ts +5 -0
- package/src/generation-core/check-layout.ts +940 -0
- package/src/generation-core/compose-layout.ts +907 -0
- package/src/generation-core/compose-site.ts +136 -5
- package/src/generation-core/layout-drift.ts +78 -0
- package/src/generation-core/layout-edits.ts +122 -0
- package/src/generation-core/layout-fingerprint.ts +203 -0
- package/src/generation-core/layout-language.ts +537 -0
- package/src/generation-core/layout-look.ts +57 -0
- package/src/generation-core/layout-photos.ts +19 -0
- package/src/generation-core/layout-render-check.ts +275 -0
- package/src/generation-core/layout-section-fallback.ts +156 -0
- package/src/generation-core/layout-type.ts +48 -0
- package/src/generation-core/layout-wire.ts +282 -0
- package/src/generation-core/nav-shape.ts +23 -1
- package/src/generation-core/photo-inventory.ts +250 -0
- package/src/generation-core/plan-edits.ts +25 -2
- package/src/generation-core/plan-wire.ts +19 -2
- package/src/generation-core/public-api.ts +13 -0
- package/src/generation-core/site-plan.model.ts +16 -0
- package/src/generation-core/site-spec.generated.ts +759 -2
- package/src/generation-core/validate-site-plan.ts +55 -1
- package/src/harness-core/generation-view.ts +52 -1
- package/src/scene-core/scroll-driver.ts +14 -2
- package/src/scene-core/scroll-range.ts +37 -4
- package/styles/iox-design.css +17 -0
- package/styles/iox-forms.css +4 -0
|
@@ -10,7 +10,7 @@ import { SPEC_AXES, resolveDesignMotion, HeaderAttribute, HeaderBehaviour, heade
|
|
|
10
10
|
export * from '@vectoriox/iox-ui/design-core';
|
|
11
11
|
import Lenis from 'lenis';
|
|
12
12
|
import { SLIDER_WORDS, sliderPartElement, SliderRole, sliderWords, attachCarouselA11y, attachSliderBar, isSliderPart, MARQUEE_NODE_ATTRIBUTES, SLIDE_TYPE, SLIDE_CAPTION_TRAIT, marqueeRootAttributes, MarqueeRole } from '@vectoriox/iox-ui/composite-core';
|
|
13
|
-
import { SceneAttribute, SCENE_WAKE_EVENT, SCENE_REVEAL_DEFAULT, SceneRevealFrom, revealClipPath, TextRevealBy, playTextReveal, ScrollActionKind, lightMotionWanted, ScrollPlay, gentleFrames, SCENE_PHONE_MAX_WIDTH, normalizeParallaxDepth, parallaxShift, parallaxFrames, PROGRESS_BAR_FRAMES, outermostNodeOf, normalizeScrollRange, scrollPlayFor, ScrollRange } from '@vectoriox/iox-ui/scene-core';
|
|
13
|
+
import { SceneAttribute, SCENE_WAKE_EVENT, SCENE_REVEAL_DEFAULT, SceneRevealFrom, revealClipPath, TextRevealBy, playTextReveal, ScrollActionKind, lightMotionWanted, ScrollPlay, gentleFrames, SCENE_PHONE_MAX_WIDTH, normalizeParallaxDepth, normalizeParallaxPhone, parallaxShift, parallaxRest, parallaxFrames, PROGRESS_BAR_FRAMES, outermostNodeOf, normalizeScrollRange, scrollPlayFor, ScrollRange } from '@vectoriox/iox-ui/scene-core';
|
|
14
14
|
import { getByPath } from '@vectoriox/iox-ui/data-core';
|
|
15
15
|
export * from '@vectoriox/iox-ui/data-core';
|
|
16
16
|
import { runExitMotion, isExiting, popoverOpenersSelector, OpenerAttribute, cancelExit, POPOVER_NODE_TYPE, dialogOpenerAttributes, popoverOpenerAttributes, popoverDomId, dialogDomId, COUNT_UP_TRIGGERS, SCROLL_PROGRESS_TRIGGER } from '@vectoriox/iox-ui/actions-core';
|
|
@@ -9902,16 +9902,18 @@ function playerFor(el, action, kind, play, host, onRelease) {
|
|
|
9902
9902
|
if (isOperated(el))
|
|
9903
9903
|
return null;
|
|
9904
9904
|
const depth = normalizeParallaxDepth(action.params?.['depth']);
|
|
9905
|
+
const onPhone = normalizeParallaxPhone(action.params?.['phone']);
|
|
9905
9906
|
let shift = -1;
|
|
9906
9907
|
let phone = false;
|
|
9907
9908
|
// Planned again only when the geometry moved the shift (a resize): the page's width is read then, never per frame.
|
|
9908
9909
|
const framesFor = (geometry) => {
|
|
9909
|
-
const next = parallaxShift(geometry.distance, geometry.viewHeight, { phone });
|
|
9910
|
+
const next = parallaxShift(geometry.distance, geometry.viewHeight, { phone, onPhone });
|
|
9910
9911
|
if (shift < 0 || Math.abs(next - shift) > SHIFT_EPSILON_PX) {
|
|
9911
9912
|
phone = isPhone(host.page);
|
|
9912
|
-
shift = parallaxShift(geometry.distance, geometry.viewHeight, { phone });
|
|
9913
|
+
shift = parallaxShift(geometry.distance, geometry.viewHeight, { phone, onPhone });
|
|
9913
9914
|
}
|
|
9914
|
-
|
|
9915
|
+
const rest = parallaxRest(geometry.opening);
|
|
9916
|
+
return shift > 0 ? { key: `${depth}:${shift}:${rest}`, frames: parallaxFrames(depth, shift, rest) } : null;
|
|
9915
9917
|
};
|
|
9916
9918
|
return new ScrollPlayer(el, framesFor, EasingKeyword.Linear, null);
|
|
9917
9919
|
}
|