@vectoriox/iox-ui 5.133.0 → 5.135.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/commerce-core/index.d.ts +12 -1
- package/composite-core/index.d.ts +27 -22
- package/design-core/index.d.ts +436 -35
- package/domain-core/index.d.ts +353 -0
- package/domain-core/package.json +3 -0
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +2 -0
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -48
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +21 -0
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +68 -57
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +895 -416
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-domain-core.mjs +422 -0
- package/fesm2022/vectoriox-iox-ui-domain-core.mjs.map +1 -0
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +14039 -12067
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +9 -3
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-mail-core.mjs +210 -2
- package/fesm2022/vectoriox-iox-ui-mail-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +290 -16
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +1511 -432
- package/harness-core/index.d.ts +6 -1
- package/index.d.ts +139 -10
- package/mail-core/index.d.ts +190 -2
- package/package.json +5 -1
- package/src/actions-core/element-actions.ts +2 -0
- package/src/assist-core/page-sections.ts +7 -37
- package/src/commerce-core/shop-display.ts +21 -0
- package/src/composite-core/shop.ts +71 -57
- package/src/design-core/design-settings.ts +16 -0
- package/src/design-core/design-token.model.ts +7 -1
- package/src/design-core/flavor-spec.generated.ts +374 -35
- package/src/design-core/flavor-tokens.ts +12 -1
- package/src/design-core/header-behaviour.ts +32 -0
- package/src/design-core/motion-language.ts +115 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/style-presets.ts +3 -0
- package/src/domain-core/domain-vocabulary.ts +125 -0
- package/src/domain-core/domain-wire.ts +95 -0
- package/src/domain-core/org-path-redirect.ts +105 -0
- package/src/domain-core/public-api.ts +12 -0
- package/src/domain-core/web-domain.ts +251 -0
- package/src/generation-core/carry-fill.ts +36 -0
- package/src/generation-core/carry.ts +398 -0
- package/src/generation-core/check-carry.ts +216 -0
- package/src/generation-core/check-layout.ts +71 -5
- package/src/generation-core/compose-layout.ts +187 -28
- package/src/generation-core/compose-site.ts +154 -31
- package/src/generation-core/entrances.ts +66 -10
- package/src/generation-core/header-edit.ts +299 -0
- package/src/generation-core/header-mix.ts +64 -5
- package/src/generation-core/layout-fingerprint.ts +5 -1
- package/src/generation-core/layout-language.ts +20 -1
- package/src/generation-core/layout-space.ts +4 -4
- package/src/generation-core/layout-wire.ts +36 -1
- package/src/generation-core/node-baselines.generated.ts +1 -0
- package/src/generation-core/public-api.ts +7 -0
- package/src/generation-core/redesign-additions.ts +273 -0
- package/src/generation-core/redesign-run.ts +364 -0
- package/src/generation-core/refit-page.ts +151 -0
- package/src/generation-core/section-stamp.ts +4 -4
- package/src/generation-core/shop-plan.ts +15 -0
- package/src/generation-core/site-build-run.ts +67 -3
- package/src/generation-core/site-spec.generated.ts +194 -94
- package/src/generation-core/site-tree.ts +19 -5
- package/src/generation-core/validate-site-plan.ts +37 -3
- package/src/harness-core/motion.ts +13 -3
- package/src/harness-core/starting-design.ts +1 -1
- package/src/mail-core/mail-domain.ts +305 -0
- package/src/mail-core/mail-wire.ts +8 -0
- package/src/mail-core/public-api.ts +3 -1
- package/styles/iox-design.css +30 -1
package/harness-core/index.d.ts
CHANGED
|
@@ -2962,6 +2962,9 @@ declare function rankWithReferences(input: RankInput, read: StyleRead | null | u
|
|
|
2962
2962
|
* Scrolling and Between pages are the BUSINESS's (a spa scrolls softly whatever its look); How animated is the
|
|
2963
2963
|
* CALMER of the business's (or what the references show) and the style's — so a quiet serif look never gets
|
|
2964
2964
|
* bouncing cards. The owner's "little movement" caps all three. No matching type → the style's own.
|
|
2965
|
+
* A style whose language names a COVER (AW4: Flood, Wipe, Circle, Veil, Line, Controls) plays it between pages whatever
|
|
2966
|
+
* the business — the cover is the style's, like its Feel — except for a calm business (its ceiling below Standard) and
|
|
2967
|
+
* under "little movement". A lower plan wears it as Fade (`motionLanguageForPlan`).
|
|
2965
2968
|
*/
|
|
2966
2969
|
interface MotionInput {
|
|
2967
2970
|
businessType?: string | null;
|
|
@@ -2979,6 +2982,8 @@ interface MotionBasis {
|
|
|
2979
2982
|
littleMovement: boolean;
|
|
2980
2983
|
/** SC6: How animated was held at the type's ceiling (a law firm stays calm whatever the style or references). */
|
|
2981
2984
|
ceiling: boolean;
|
|
2985
|
+
/** AW4: Between pages is the style's own cover. */
|
|
2986
|
+
styleCover?: boolean;
|
|
2982
2987
|
}
|
|
2983
2988
|
interface MotionStart extends DesignMotion {
|
|
2984
2989
|
/** Why, in English — one line per step the start took. */
|
|
@@ -3656,7 +3661,7 @@ declare const GENERATION_LIMITS: {
|
|
|
3656
3661
|
* when that colour passes AA in every mode the preset offers (`referenceSeed` — judged as used), and what the owner
|
|
3657
3662
|
* already set kept. The ONE rule for a Look pick and for Build with these.
|
|
3658
3663
|
*/
|
|
3659
|
-
declare function presetDesign(presetId: string, input: MotionInput | string | null, kept?: Partial<Pick<DesignChoices, 'scroll' | 'animate' | 'between' | 'motion'>>, read?: StyleRead | null): DesignChoices | null;
|
|
3664
|
+
declare function presetDesign(presetId: string, input: MotionInput | string | null, kept?: Partial<Pick<DesignChoices, 'scroll' | 'animate' | 'between' | 'motion' | 'feel' | 'headings'>>, read?: StyleRead | null): DesignChoices | null;
|
|
3660
3665
|
interface StartingDesign {
|
|
3661
3666
|
presetId: string;
|
|
3662
3667
|
design: DesignChoices;
|
package/index.d.ts
CHANGED
|
@@ -2524,6 +2524,8 @@ interface A11yNodeSource extends OpenerNodeLike {
|
|
|
2524
2524
|
id?: string;
|
|
2525
2525
|
styleId?: string;
|
|
2526
2526
|
type?: string;
|
|
2527
|
+
/** A composite part's role (`nav.brand`…), on serialized and builder nodes alike. */
|
|
2528
|
+
role?: string | null;
|
|
2527
2529
|
props?: Readonly<Record<string, unknown>> | null;
|
|
2528
2530
|
traits?: ReadonlyArray<{
|
|
2529
2531
|
name?: string;
|
|
@@ -2618,8 +2620,12 @@ declare enum VisibilityActionType {
|
|
|
2618
2620
|
declare enum RevealActionType {
|
|
2619
2621
|
Clip = "clipReveal",
|
|
2620
2622
|
Zoom = "zoomOut",
|
|
2621
|
-
Text = "revealText"
|
|
2623
|
+
Text = "revealText",
|
|
2624
|
+
/** AW3 (`move: blur-in`): from a soft blur into focus, nothing travels. A small blur — never a large one (Emil). */
|
|
2625
|
+
Blur = "blurIn"
|
|
2622
2626
|
}
|
|
2627
|
+
/** How soft `blurIn` starts — small, so it reads as focus and stays cheap (Emil: blur only a little). */
|
|
2628
|
+
declare const BLUR_IN_START_PX = 4;
|
|
2623
2629
|
/**
|
|
2624
2630
|
* Actions the SCROLL plays (premium components M6, N7): a layer at a depth, a bar that fills as the page is read. They
|
|
2625
2631
|
* have no frames in time — `buildInteractionKeyframes` answers null for them — and play only under a `scrollProgress`
|
|
@@ -2716,7 +2722,7 @@ declare function keyframeStyleEntries(frame: InteractionKeyframe | null | undefi
|
|
|
2716
2722
|
* The inline pre-state an ENTRANCE action puts on its element before it plays — its first frame as
|
|
2717
2723
|
* CSS — so the server render ships it already hidden (no visible→hidden flash). `{}` for anything else.
|
|
2718
2724
|
*/
|
|
2719
|
-
declare function entrancePreStateStyle(type: string, params?: Readonly<Record<string, unknown>> | null): Record<string, string>;
|
|
2725
|
+
declare function entrancePreStateStyle(type: string, params?: Readonly<Record<string, unknown>> | null, reducedMotion?: boolean): Record<string, string>;
|
|
2720
2726
|
/** Triggers that play an entrance by themselves — the page loading or arriving, the element scrolling into view. */
|
|
2721
2727
|
declare const SELF_PLAYING_TRIGGERS: ReadonlySet<string>;
|
|
2722
2728
|
/**
|
|
@@ -2724,20 +2730,36 @@ declare const SELF_PLAYING_TRIGGERS: ReadonlySet<string>;
|
|
|
2724
2730
|
* until the click — except a self-playing one under reduced motion: it would only ever reveal what is already there,
|
|
2725
2731
|
* so it starts shown and never moves (M1-6b: "nothing moves and nothing stays hidden"). Both runtimes ask this.
|
|
2726
2732
|
*/
|
|
2727
|
-
declare function entranceStartsHidden(trigger: string,
|
|
2733
|
+
declare function entranceStartsHidden(trigger: string, _reducedMotion?: boolean): boolean;
|
|
2734
|
+
/**
|
|
2735
|
+
* THE REDUCED-MOTION FLOOR (award plan §5.5, AW-D6; MOTION `reduced`): an entrance under `prefers-reduced-motion` is a
|
|
2736
|
+
* fade — opacity only, at most `REDUCED_ENTRANCE_MAX_MS` — never removed: a fade still tells the eye something arrived.
|
|
2737
|
+
* `show` (a menu a click opens) keeps today's instant reveal, and nothing else changes (an exit is instant, a reverse
|
|
2738
|
+
* pass settles). Both interaction runtimes ask this ONE rule.
|
|
2739
|
+
*/
|
|
2740
|
+
declare const REDUCED_ENTRANCE_FRAMES: ReadonlyArray<InteractionKeyframe>;
|
|
2741
|
+
/** Whether `type` fades in under reduced motion (an entrance other than `show`). */
|
|
2742
|
+
declare function reducedEntranceFades(type: string): boolean;
|
|
2743
|
+
/** The run an action plays under reduced motion: the floor's fade (≤ 200 ms), or null — settle it at once. */
|
|
2744
|
+
declare function reducedEntranceRun(type: string, duration: number | null | undefined, reverse?: boolean): {
|
|
2745
|
+
type: string;
|
|
2746
|
+
frames: ReadonlyArray<InteractionKeyframe>;
|
|
2747
|
+
duration: number;
|
|
2748
|
+
} | null;
|
|
2728
2749
|
/** The attribute a SERVER render puts on an element it ships in its entrance's first frame (`entrancePreStateStyle`).
|
|
2729
2750
|
* The live runtime takes the element over — and drops the attribute — when it attaches; until then the fallback CSS
|
|
2730
2751
|
* below reads it. */
|
|
2731
2752
|
declare const ENTRANCE_PRESTATE_ATTRIBUTE = "data-iox-enter";
|
|
2732
2753
|
/**
|
|
2733
2754
|
* What keeps a server-rendered entrance from hiding content where nothing will play it (AI plan §5 "Entrances that hide
|
|
2734
|
-
* content"; M1-6b): under reduced motion
|
|
2755
|
+
* content"; M1-6b): under reduced motion nothing a pre-state moved stays moved (its opacity waits for the floor's fade,
|
|
2756
|
+
* AW-D6 — before AW3 it was shown at once and never entered); and if the
|
|
2735
2757
|
* runtime never takes an element over (a script that failed), it is revealed after a few seconds. One stylesheet for
|
|
2736
2758
|
* the engine's head — `ENTRANCE_NOSCRIPT_CSS` covers a visitor with no script at all.
|
|
2737
2759
|
*/
|
|
2738
2760
|
declare const ENTRANCE_FALLBACK_CSS: string;
|
|
2739
2761
|
/** The same, for a visitor with no script: every pre-stated element shown at once (served inside `<noscript>`). */
|
|
2740
|
-
declare const ENTRANCE_NOSCRIPT_CSS = "[data-iox-enter]{opacity:1!important;transform:none!important;clip-path:none!important;visibility:visible!important;pointer-events:auto!important;animation:none!important}";
|
|
2762
|
+
declare const ENTRANCE_NOSCRIPT_CSS = "[data-iox-enter]{opacity:1!important;transform:none!important;clip-path:none!important;filter:none!important;visibility:visible!important;pointer-events:auto!important;animation:none!important}";
|
|
2741
2763
|
/**
|
|
2742
2764
|
* The frame an animation comes to rest on (what reduced motion applies at once). A clip that has fully opened rests as
|
|
2743
2765
|
* no clip at all: `inset(0)` would still crop the element's shadow and stack it, for the rest of the visit.
|
|
@@ -3615,7 +3637,42 @@ declare const DEFAULT_PAGE_TRANSITION_DURATION = 1500;
|
|
|
3615
3637
|
declare const DEFAULT_PAGE_TRANSITION_EASING = "cubic-bezier(0.76, 0, 0.24, 1)";
|
|
3616
3638
|
/** Default preset used when a page has no transition configured at all. */
|
|
3617
3639
|
declare const DEFAULT_PAGE_TRANSITION = "parallax-up";
|
|
3618
|
-
type PageTransitionCategory = 'parallax' | 'reveal' | 'curtain' | 'move' | 'fade' | 'scale' | 'rotate';
|
|
3640
|
+
type PageTransitionCategory = 'parallax' | 'reveal' | 'curtain' | 'move' | 'fade' | 'scale' | 'rotate' | 'cover';
|
|
3641
|
+
/** AW4: what a cover's panel is painted with — always a token (R-H10), so a re-theme recolours it with no page saved. */
|
|
3642
|
+
declare enum CoverPaint {
|
|
3643
|
+
/** Flood: the look's accent. */
|
|
3644
|
+
Accent = "accent",
|
|
3645
|
+
/** Wipe: the site's dark ground (the inverse ground on a light look, the page ground on a dark one). */
|
|
3646
|
+
Dark = "dark",
|
|
3647
|
+
/** Line: the page ground, the next page's name in the display face. */
|
|
3648
|
+
Ground = "ground",
|
|
3649
|
+
/** Veil: the next page's opening picture under the look's scrim. */
|
|
3650
|
+
Picture = "picture"
|
|
3651
|
+
}
|
|
3652
|
+
/**
|
|
3653
|
+
* AW4 — a COVER between pages, played on the LOOK (award-ingredients-plan §5.3, Motion board 4): its own timing (never
|
|
3654
|
+
* the page's duration), the look's curves — it covers on the leave curve (`ease-exit`) and uncovers / arrives on the
|
|
3655
|
+
* arrive curve (`ease-enter`) — and a token colour. Within the contract's `coverMaxMs` (cover ≤ 400 · hold ≤ 120 ·
|
|
3656
|
+
* uncover ≤ 500 ms). The live site and every builder preview play the same resolved shape.
|
|
3657
|
+
*/
|
|
3658
|
+
interface PageCoverSpec {
|
|
3659
|
+
/** A panel cover's paint. Absent = no panel: the arriving page itself is the move (Circle, Controls). */
|
|
3660
|
+
paint?: CoverPaint;
|
|
3661
|
+
coverMs?: number;
|
|
3662
|
+
/** The panel holds this long once the screen is covered (the swap happens behind it). */
|
|
3663
|
+
holdMs?: number;
|
|
3664
|
+
uncoverMs?: number;
|
|
3665
|
+
/** No panel: the arriving page's own move, this long, on the arrive curve. */
|
|
3666
|
+
inMs?: number;
|
|
3667
|
+
/** The arriving page opens as a circle from where the visitor clicked (else the centre). */
|
|
3668
|
+
fromClick?: boolean;
|
|
3669
|
+
/** The panel carries the next page's name in the display face (Line — MB-D10: the name, never a sentence). */
|
|
3670
|
+
title?: boolean;
|
|
3671
|
+
/** The header's links fade back in after the swap (Controls; AW14's label roll replaces the fade). */
|
|
3672
|
+
labels?: boolean;
|
|
3673
|
+
/** Played instead when the cover cannot be drawn: a Veil with no opening picture fades (MB-D9). */
|
|
3674
|
+
fallback?: string;
|
|
3675
|
+
}
|
|
3619
3676
|
interface PageTransitionPreset {
|
|
3620
3677
|
category: PageTransitionCategory;
|
|
3621
3678
|
label: string;
|
|
@@ -3651,6 +3708,8 @@ interface PageTransitionPreset {
|
|
|
3651
3708
|
coverKeyframes: Keyframe[];
|
|
3652
3709
|
uncoverKeyframes: Keyframe[];
|
|
3653
3710
|
};
|
|
3711
|
+
/** AW4: a cover played on the look (`PageCoverSpec`). Only a design-system page's Between pages names one. */
|
|
3712
|
+
look?: PageCoverSpec;
|
|
3654
3713
|
}
|
|
3655
3714
|
/**
|
|
3656
3715
|
* A page that leaves from BEHIND the arriving one finishes in this share of the duration (M8 demo, the live bar): the
|
|
@@ -3690,6 +3749,18 @@ interface PageTransitionOptions {
|
|
|
3690
3749
|
easing?: string;
|
|
3691
3750
|
/** Container perspective (px); a preset-specific perspective still wins. */
|
|
3692
3751
|
perspective?: number | string;
|
|
3752
|
+
/** AW4: where the visitor clicked (viewport px) — a Circle grows from it; absent = the centre. */
|
|
3753
|
+
origin?: {
|
|
3754
|
+
x: number;
|
|
3755
|
+
y: number;
|
|
3756
|
+
} | null;
|
|
3757
|
+
/** AW4: the arriving page's opening picture (`openingPictureOf`) — a Veil without one plays its fallback. */
|
|
3758
|
+
picture?: string | null;
|
|
3759
|
+
/** AW4: the look's curves where the page wears them (`--iox-ease-enter` / `--iox-ease-exit`); absent = the contract's. */
|
|
3760
|
+
ease?: {
|
|
3761
|
+
enter?: string | null;
|
|
3762
|
+
exit?: string | null;
|
|
3763
|
+
} | null;
|
|
3693
3764
|
}
|
|
3694
3765
|
interface ResolvedPageTransition {
|
|
3695
3766
|
outFrames: Keyframe[];
|
|
@@ -3700,19 +3771,39 @@ interface ResolvedPageTransition {
|
|
|
3700
3771
|
perspective: number;
|
|
3701
3772
|
outTransformOrigin?: string;
|
|
3702
3773
|
inTransformOrigin?: string;
|
|
3703
|
-
/** Present only for curtain presets — each half runs for HALF the total duration. */
|
|
3774
|
+
/** Present only for curtain presets — each half runs for HALF the total duration (a cover: its own timing). */
|
|
3704
3775
|
overlay?: {
|
|
3705
3776
|
coverFrames: Keyframe[];
|
|
3706
3777
|
uncoverFrames: Keyframe[];
|
|
3707
3778
|
coverOptions: KeyframeAnimationOptions;
|
|
3708
3779
|
uncoverOptions: KeyframeAnimationOptions;
|
|
3780
|
+
/** The covered screen holds this long before it uncovers (0 for a curtain). */
|
|
3781
|
+
holdMs: number;
|
|
3709
3782
|
};
|
|
3783
|
+
/** AW4: a cover played on the look — what its panel is painted with and what it carries. */
|
|
3784
|
+
cover?: ResolvedPageCover;
|
|
3785
|
+
}
|
|
3786
|
+
/** What a consumer needs to draw a cover's panel (`createCoverPanel`) and finish its move. */
|
|
3787
|
+
interface ResolvedPageCover {
|
|
3788
|
+
paint?: CoverPaint;
|
|
3789
|
+
/** The Veil's picture. */
|
|
3790
|
+
picture?: string | null;
|
|
3791
|
+
title?: boolean;
|
|
3792
|
+
labels?: boolean;
|
|
3710
3793
|
}
|
|
3711
3794
|
/**
|
|
3712
3795
|
* Resolve a persisted preset id + timing into the two WAAPI animations the consumer runs.
|
|
3713
3796
|
* Returns `null` for unknown / 'none' presets (caller should skip the transition).
|
|
3714
3797
|
*/
|
|
3715
3798
|
declare function resolvePageTransition(name: string | null | undefined, opts?: PageTransitionOptions): ResolvedPageTransition | null;
|
|
3799
|
+
/**
|
|
3800
|
+
* A cover panel's paint as inline CSS — every colour a token (R-H10). `dark` = the look wears its dark mode, where the
|
|
3801
|
+
* site's dark ground IS the page ground. A picture is quoted (`url("…")`) under the look's scrim.
|
|
3802
|
+
*/
|
|
3803
|
+
declare function coverPanelStyle(paint: CoverPaint, ctx?: {
|
|
3804
|
+
dark?: boolean;
|
|
3805
|
+
picture?: string | null;
|
|
3806
|
+
}): Record<string, string>;
|
|
3716
3807
|
/**
|
|
3717
3808
|
* Reduced motion (CC1 R1, Emil: gentler, not zero): no page moves — the leaving page only fades out, briefly, over the
|
|
3718
3809
|
* arriving one standing still. The runtime plays it on the snapshot instead of the preset.
|
|
@@ -3819,12 +3910,50 @@ interface TransitionPreviewLayers {
|
|
|
3819
3910
|
out: HTMLElement | null;
|
|
3820
3911
|
/** The page that arrives. */
|
|
3821
3912
|
in: HTMLElement | null;
|
|
3822
|
-
|
|
3913
|
+
/** AW4: what a cover's panel carries — the arriving page's name (Line) and whether the look is dark (Wipe). */
|
|
3914
|
+
cover?: CoverPanelContext;
|
|
3915
|
+
}
|
|
3916
|
+
/** What only the player knows about the arriving page: its name (a Line says it) and the look's colour mode. */
|
|
3917
|
+
interface CoverPanelContext {
|
|
3918
|
+
title?: string | null;
|
|
3919
|
+
dark?: boolean;
|
|
3920
|
+
/** A curtain's colour (a page's own Route animation); a look's cover paints from tokens instead. */
|
|
3921
|
+
color?: string | null;
|
|
3922
|
+
/** A class that declares the look's tokens, put on the panel itself — a preview outside the canvas (the builder's
|
|
3923
|
+
* Page panel) wears the org's tokens through it (`.iox-token-scope`), never the admin's own. */
|
|
3924
|
+
scopeClass?: string | null;
|
|
3925
|
+
}
|
|
3926
|
+
/**
|
|
3927
|
+
* The ONE cover panel (AW4) — the live site's transition service and every builder preview draw it here: a box over the
|
|
3928
|
+
* whole stage (`fixed` on the site, `absolute` inside a preview stage), painted from the look's tokens (`coverPanelStyle`)
|
|
3929
|
+
* or, for a page's own curtain, its colour. A Line carries the next page's name; the panel is decoration
|
|
3930
|
+
* (`aria-hidden`) — the arriving page announces itself.
|
|
3931
|
+
*/
|
|
3932
|
+
declare function createCoverPanel(doc: Document, resolved: ResolvedPageTransition, ctx?: CoverPanelContext & {
|
|
3933
|
+
fixed?: boolean;
|
|
3934
|
+
zIndex?: number;
|
|
3935
|
+
}): HTMLElement;
|
|
3936
|
+
/**
|
|
3937
|
+
* The arriving page's OPENING picture (MB-D9: a Veil wears it): the first picture that has loaded a source, in reading
|
|
3938
|
+
* order — an `<img>` (its chosen source) or the first box painted with a background image. Null when the page opens
|
|
3939
|
+
* with none; the Veil then fades.
|
|
3940
|
+
*/
|
|
3941
|
+
declare function openingPictureOf(root: ParentNode | null | undefined, view?: Pick<Window, 'getComputedStyle'> | null): string | null;
|
|
3942
|
+
/**
|
|
3943
|
+
* The look's curves where an element wears them (`--iox-ease-enter` / `--iox-ease-exit` — the site's root, the builder's
|
|
3944
|
+
* `.iox-token-scope`): what a cover plays on (AW4). Unset → null, and the resolver takes the contract's.
|
|
3945
|
+
*/
|
|
3946
|
+
declare function lookEaseOf(el: Element | null | undefined, view: Pick<Window, 'getComputedStyle'> | null | undefined): {
|
|
3947
|
+
enter: string | null;
|
|
3948
|
+
exit: string | null;
|
|
3949
|
+
};
|
|
3823
3950
|
/**
|
|
3824
3951
|
* Play a resolved page change (`resolvePageTransition`) on two stacked layers — the ONE dual-layer preview the
|
|
3825
3952
|
* builder's Page panel and the Design step's specimen both play (rev 3.1 §3o). The live site plays the same
|
|
3826
3953
|
* frames through its own transition service. Resolves when the arriving layer has finished (or at once when
|
|
3827
3954
|
* there is no arriving layer). The layers are left at their last frame: the caller decides what to show after.
|
|
3955
|
+
* A cover or a curtain (AW4) draws its panel over the stage: cover → the arriving layer shows behind it → hold →
|
|
3956
|
+
* uncover; the panel is removed at the end.
|
|
3828
3957
|
*/
|
|
3829
3958
|
declare function playDualLayerTransition(resolved: ResolvedPageTransition, layers: TransitionPreviewLayers): Promise<void>;
|
|
3830
3959
|
|
|
@@ -4547,5 +4676,5 @@ declare function formToastsOnSend(form: Element | null | undefined): boolean;
|
|
|
4547
4676
|
/** Raise the form's Sent toast (from the form — its scope and its look). */
|
|
4548
4677
|
declare function raiseFormToast(form: Element): ToastHandle | null;
|
|
4549
4678
|
|
|
4550
|
-
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ELEMENT_STYLE_TRANSITION_EXTRAS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, animateAction, applyBindingPipes, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, entrancePreStateStyle, entranceStartsHidden, feelFor, fieldLanguage, finalKeyframe, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, interactionMarkerAttributes, isActionEnabled, isBoundProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, raiseFloatingLayer, raiseFormToast, rectInLayer, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, safeSetInput, scrollActionKind, scrollMotionEnv, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, viewportTransitionContext, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
4551
|
-
export type { A11yNodeSource, AnimateActionOptions, BoundValueSpec, BreakpointDef, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PressAction, RegisteredField, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
|
|
4679
|
+
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ELEMENT_STYLE_TRANSITION_EXTRAS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, animateAction, applyBindingPipes, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, entrancePreStateStyle, entranceStartsHidden, feelFor, fieldLanguage, finalKeyframe, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, interactionMarkerAttributes, isActionEnabled, isBoundProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, lookEaseOf, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, safeSetInput, scrollActionKind, scrollMotionEnv, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, viewportTransitionContext, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
4680
|
+
export type { A11yNodeSource, AnimateActionOptions, BoundValueSpec, BreakpointDef, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CoverPanelContext, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageCoverSpec, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PressAction, RegisteredField, ResolvedPageCover, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
|
package/mail-core/index.d.ts
CHANGED
|
@@ -169,6 +169,187 @@ declare function remindersStopped(standing: MailStanding): boolean;
|
|
|
169
169
|
/** A plain address a Reply-To may carry (`name@domain.tld`), trimmed — the admin's field and iox-cms's save both ask it. */
|
|
170
170
|
declare function isMailAddress(value: unknown): boolean;
|
|
171
171
|
|
|
172
|
+
/**
|
|
173
|
+
* A studio's OWN sending domain (iox-mail-plan ML4, ML-D2 (b), R-ML3): the owner names an address on its domain, adds the
|
|
174
|
+
* DNS records Mailjet gives, and IOX mail switches the From to that address only once Mailjet says the sender is active
|
|
175
|
+
* AND SPF AND DKIM are ok — never before, and back to `mail.iox.studio` the moment a recheck finds a record gone.
|
|
176
|
+
*
|
|
177
|
+
* ONE judge of Mailjet's `sender` + `dns` answers (`mailSenderProblems`), used by the relay for an IOX-mail domain and by
|
|
178
|
+
* iox-cms for a studio's own Mailjet key (commerce E4's sender check) — the two used to be one private copy each.
|
|
179
|
+
*/
|
|
180
|
+
/** Where a studio's own sending domain stands — what Settings ▸ Email ▸ "Send from my own domain" shows. */
|
|
181
|
+
declare enum MailDomainState {
|
|
182
|
+
/** no own domain — mail goes from `<studio>@mail.iox.studio` */
|
|
183
|
+
NotSet = "not-set",
|
|
184
|
+
/** named; Mailjet has not checked its records yet (never asked, or a check is running) */
|
|
185
|
+
Waiting = "waiting",
|
|
186
|
+
/** the sender is active and SPF + DKIM are ok — mail goes from the studio's own address */
|
|
187
|
+
Verified = "verified",
|
|
188
|
+
/** checked, and a record is missing or wrong — mail keeps going from `mail.iox.studio` */
|
|
189
|
+
Failed = "failed"
|
|
190
|
+
}
|
|
191
|
+
/** Why a sender is not verified — Mailjet's answers read (the values are commerce E4's, unchanged on the wire). */
|
|
192
|
+
declare enum MailSenderProblem {
|
|
193
|
+
/** no sender address at all */
|
|
194
|
+
NoAddress = "no-address",
|
|
195
|
+
/** Mailjet does not know the address as a sender, or has not activated it (the ownership record) */
|
|
196
|
+
SenderInactive = "sender-inactive",
|
|
197
|
+
/** the address's domain is not added to Mailjet */
|
|
198
|
+
DomainMissing = "domain-missing",
|
|
199
|
+
SpfMissing = "spf-missing",
|
|
200
|
+
DkimMissing = "dkim-missing"
|
|
201
|
+
}
|
|
202
|
+
/** The three records a domain needs — each one TXT. */
|
|
203
|
+
declare enum MailDnsRecordRole {
|
|
204
|
+
/** proves the domain is the studio's: Mailjet's ownership token */
|
|
205
|
+
Ownership = "ownership",
|
|
206
|
+
/** lets Mailjet's servers send for the domain */
|
|
207
|
+
Spf = "spf",
|
|
208
|
+
/** signs every message with the domain's key */
|
|
209
|
+
Dkim = "dkim"
|
|
210
|
+
}
|
|
211
|
+
/** One record to copy into the domain's DNS. */
|
|
212
|
+
interface MailDnsRecord {
|
|
213
|
+
role: MailDnsRecordRole;
|
|
214
|
+
type: 'TXT';
|
|
215
|
+
/** the full name — `mailjet._domainkey.alma.co.il` */
|
|
216
|
+
name: string;
|
|
217
|
+
/** the name as most DNS screens want it, relative to the domain (`mailjet._domainkey`; `@` for the domain itself) */
|
|
218
|
+
host: string;
|
|
219
|
+
value: string;
|
|
220
|
+
/** Mailjet's last word on it: true ok · false wrong or missing · null not checked yet */
|
|
221
|
+
ok: boolean | null;
|
|
222
|
+
/** what Mailjet found wrong, in its words (bounded) */
|
|
223
|
+
error?: string | null;
|
|
224
|
+
}
|
|
225
|
+
/** Why an address cannot become the studio's sending address. */
|
|
226
|
+
declare enum MailDomainRefusal {
|
|
227
|
+
/** not one plain address */
|
|
228
|
+
NotAnAddress = "not-an-address",
|
|
229
|
+
/** `iox.studio` or any domain under it — IOX's own */
|
|
230
|
+
PlatformDomain = "platform-domain",
|
|
231
|
+
/** a public mailbox (gmail.com, outlook.com…) — nobody but its provider can add records there */
|
|
232
|
+
PublicMailbox = "public-mailbox",
|
|
233
|
+
/** another studio sends from this domain */
|
|
234
|
+
Taken = "taken",
|
|
235
|
+
/** IOX mail is not on (no key, or the plan has none) */
|
|
236
|
+
NotEnabled = "not-enabled",
|
|
237
|
+
/** Mailjet could not be asked — try again */
|
|
238
|
+
Upstream = "upstream"
|
|
239
|
+
}
|
|
240
|
+
/** Mailjet's sender row (v3 REST `sender`) — only what is read. */
|
|
241
|
+
interface MailjetSenderRow {
|
|
242
|
+
ID?: number;
|
|
243
|
+
Email?: string;
|
|
244
|
+
/** `Inactive` · `Active` · `Deleted` */
|
|
245
|
+
Status?: string;
|
|
246
|
+
/** -1 while inactive */
|
|
247
|
+
DNSID?: number;
|
|
248
|
+
}
|
|
249
|
+
/** Mailjet's DNS row (v3 REST `dns/{id}`). Statuses: SPF `OK` · `Error` · `Not checked` · `Not found`; DKIM `OK` · `Error` · `Not checked`. */
|
|
250
|
+
interface MailjetDnsRow {
|
|
251
|
+
ID?: number;
|
|
252
|
+
Domain?: string;
|
|
253
|
+
SPFStatus?: string;
|
|
254
|
+
SPFRecordValue?: string;
|
|
255
|
+
DKIMStatus?: string;
|
|
256
|
+
DKIMRecordName?: string;
|
|
257
|
+
DKIMRecordValue?: string;
|
|
258
|
+
OwnerShipToken?: string;
|
|
259
|
+
OwnerShipTokenRecordName?: string;
|
|
260
|
+
IsCheckInProgress?: boolean;
|
|
261
|
+
LastCheckAt?: string;
|
|
262
|
+
}
|
|
263
|
+
/** Mailjet's `dns/{id}/check` answer — `OK` · `Error`, with its words. */
|
|
264
|
+
interface MailjetDnsCheckRow {
|
|
265
|
+
SPFStatus?: string;
|
|
266
|
+
SPFErrors?: string;
|
|
267
|
+
DKIMStatus?: string;
|
|
268
|
+
DKIMErrors?: string;
|
|
269
|
+
}
|
|
270
|
+
/** Mailjet's SPF include — merged into a domain's existing SPF record, never a second record beside it. */
|
|
271
|
+
declare const MAILJET_SPF_INCLUDE = "include:spf.mailjet.com";
|
|
272
|
+
/** How often the owner's "Check DNS" really asks Mailjet; a sooner press answers the last check. */
|
|
273
|
+
declare const MAIL_DOMAIN_CHECK_MIN_MS = 30000;
|
|
274
|
+
/** A verified domain is checked again this often — a removed record moves the From back to `mail.iox.studio`. */
|
|
275
|
+
declare const MAIL_DOMAIN_RECHECK_MS: number;
|
|
276
|
+
/** Domains IOX itself sends from — never a studio's own. */
|
|
277
|
+
declare const PLATFORM_MAIL_DOMAINS: readonly string[];
|
|
278
|
+
/** Public mailbox providers: an address there can never be verified by the studio (no access to the DNS). */
|
|
279
|
+
declare const PUBLIC_MAILBOX_DOMAINS: readonly string[];
|
|
280
|
+
/** The lower-cased domain of an address, or null. */
|
|
281
|
+
declare function mailDomainOf(email: string | null | undefined): string | null;
|
|
282
|
+
/** Why this address cannot be the studio's own sending address — null when it can (the relay adds `Taken`). */
|
|
283
|
+
declare function ownAddressRefusal(address: unknown, platformDomains?: readonly string[]): MailDomainRefusal | null;
|
|
284
|
+
/**
|
|
285
|
+
* THE judge of Mailjet's answers for one address: verified only with an active sender AND SPF ok AND DKIM ok.
|
|
286
|
+
* An empty list is verified. (commerce E4's sender check and the relay's own-domain check both ask this.)
|
|
287
|
+
*/
|
|
288
|
+
declare function mailSenderProblems(email: string | null, sender: MailjetSenderRow | null, dns: MailjetDnsRow | null): MailSenderProblem[];
|
|
289
|
+
/** A record's name relative to its domain — `@` for the domain itself. */
|
|
290
|
+
declare function relativeDnsHost(name: string | null | undefined, domain: string): string;
|
|
291
|
+
/**
|
|
292
|
+
* The SPF record to publish: the domain's existing `v=spf1` record with Mailjet's include added before its `all` term
|
|
293
|
+
* (a domain may hold only ONE SPF record — a second one fails both), or Mailjet's own value when there is none.
|
|
294
|
+
*/
|
|
295
|
+
declare function mergedSpf(existing: string | null | undefined, mailjetValue?: string): string;
|
|
296
|
+
/** The three records to copy, each with Mailjet's last word on it. `existingSpf` = the domain's own SPF, when read. */
|
|
297
|
+
declare function mailDnsRecords(domain: string, sender: MailjetSenderRow | null, dns: MailjetDnsRow | null, check?: MailjetDnsCheckRow | null, existingSpf?: string | null): MailDnsRecord[];
|
|
298
|
+
/** `GET /instances/me/mail/domain` (and every domain call's answer). Dates are ISO strings on the wire. */
|
|
299
|
+
interface MailDomainAnswer {
|
|
300
|
+
/** the owner's chosen sending address on its domain — `shop@alma.co.il`; null when none is set */
|
|
301
|
+
address: string | null;
|
|
302
|
+
domain: string | null;
|
|
303
|
+
state: MailDomainState;
|
|
304
|
+
records: MailDnsRecord[];
|
|
305
|
+
problems: MailSenderProblem[];
|
|
306
|
+
/** when Mailjet last checked the records */
|
|
307
|
+
checkedAt: string | null;
|
|
308
|
+
/** when the domain was first found verified */
|
|
309
|
+
verifiedAt: string | null;
|
|
310
|
+
/** set when a domain that WAS verified failed a later check — the From went back to `mail.iox.studio` */
|
|
311
|
+
lostAt: string | null;
|
|
312
|
+
/**
|
|
313
|
+
* The studio's IOX address (`<studio>@mail.iox.studio`) — where mail goes whenever the own domain does not send, so
|
|
314
|
+
* the screen can say it even while the domain is verified (when both Froms are the own address). Absent from a relay
|
|
315
|
+
* older than this field.
|
|
316
|
+
*/
|
|
317
|
+
ioxAddress?: string | null;
|
|
318
|
+
}
|
|
319
|
+
/** iox-cms's answer to Settings ▸ Email (`…/connectors/mailer/domain`): the relay's, plus who may change it. */
|
|
320
|
+
interface MailDomainView extends MailDomainAnswer {
|
|
321
|
+
/** the signed-in person may set or stop using the address — the INSTANCE owner (ML4-D2); admins read and Check DNS */
|
|
322
|
+
mayChange: boolean;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* A verified domain that a later check failed (ML4-D5): mail went back to the IOX address. THE rule for the bell's
|
|
326
|
+
* "Your own email domain stopped working" and the card's "DNS changed" — `lostAt` stays until it is verified again.
|
|
327
|
+
*/
|
|
328
|
+
declare function mailDomainLost(answer: Pick<MailDomainAnswer, 'state' | 'lostAt'> | null | undefined): boolean;
|
|
329
|
+
/** No own domain. */
|
|
330
|
+
declare const NO_MAIL_DOMAIN: MailDomainAnswer;
|
|
331
|
+
/**
|
|
332
|
+
* THE state rule: verified when nothing is wrong; waiting while nothing was checked yet (or Mailjet is checking now);
|
|
333
|
+
* failed once a check found a record missing or wrong.
|
|
334
|
+
*/
|
|
335
|
+
declare function mailDomainState(problems: readonly MailSenderProblem[], checked: boolean, inProgress?: boolean): MailDomainState;
|
|
336
|
+
/** May mail go from this domain now? Only a verified answer for exactly this address's domain (R-ML3). */
|
|
337
|
+
declare function mailDomainSends(answer: Pick<MailDomainAnswer, 'state' | 'address'> | null | undefined): string | null;
|
|
338
|
+
/** Is a verified domain due its daily recheck? */
|
|
339
|
+
declare function mailDomainRecheckDue(answer: Pick<MailDomainAnswer, 'state' | 'checkedAt'> | null | undefined, now: number): boolean;
|
|
340
|
+
/** The relay's own-domain routes. */
|
|
341
|
+
declare const RELAY_MAIL_DOMAIN_PATH = "/instances/me/mail/domain";
|
|
342
|
+
declare const RELAY_MAIL_DOMAIN_CHECK_PATH = "/instances/me/mail/domain/check";
|
|
343
|
+
/** `PUT /instances/me/mail/domain` — the address mail should come from. */
|
|
344
|
+
interface RelayDomainRequest {
|
|
345
|
+
address: string;
|
|
346
|
+
}
|
|
347
|
+
/** A refused domain call: `{ code, message }` with 400 (`not-an-address` · `platform-domain` · `public-mailbox`), 409 (`taken`), 403/503 (`not-enabled`), 502 (`upstream`). */
|
|
348
|
+
interface RelayDomainRefusalBody {
|
|
349
|
+
code: MailDomainRefusal;
|
|
350
|
+
message: string;
|
|
351
|
+
}
|
|
352
|
+
|
|
172
353
|
/**
|
|
173
354
|
* The relay's wire (iox-control-plane `src/mail/`, its `openapi.json` tag `instances`). The studio calls back with its
|
|
174
355
|
* instance token: `Authorization: Bearer <INSTANCE_TOKEN>`.
|
|
@@ -257,6 +438,11 @@ interface RelayUsage {
|
|
|
257
438
|
} | null;
|
|
258
439
|
/** where the studio's owner changes its plan (the portal's studio page); absent/null = nowhere to send them */
|
|
259
440
|
upgradeUrl?: string | null;
|
|
441
|
+
/**
|
|
442
|
+
* The studio's own sending domain (ML4) — absent from a relay older than ML4. While it is verified, both Froms above
|
|
443
|
+
* are its address (`mailDomainSends`).
|
|
444
|
+
*/
|
|
445
|
+
domain?: MailDomainAnswer | null;
|
|
260
446
|
}
|
|
261
447
|
interface RelayResponse {
|
|
262
448
|
results: RelayResult[];
|
|
@@ -291,6 +477,8 @@ interface MailerDetails {
|
|
|
291
477
|
/** this studio's emails refused for good in the last seven days (the outbox's own count) */
|
|
292
478
|
notSentThisWeek?: number;
|
|
293
479
|
upgradeUrl?: string | null;
|
|
480
|
+
/** IOX mode only: the own sending domain (ML4) — `NO_MAIL_DOMAIN` when none is set */
|
|
481
|
+
domain?: MailDomainAnswer | null;
|
|
294
482
|
}
|
|
295
483
|
/** At most this many test emails an hour, per studio (ML3-D3) — each counts against the month like any email. */
|
|
296
484
|
declare const MAIL_TEST_PER_HOUR = 5;
|
|
@@ -315,5 +503,5 @@ interface MailTestAnswer {
|
|
|
315
503
|
detail: string | null;
|
|
316
504
|
}
|
|
317
505
|
|
|
318
|
-
export { MAILER_REPLY_TO_KEY, MAIL_KIND_OF_SENDER, MAIL_LOW_SHARE, MAIL_TEST_PER_HOUR, MailKind, MailMode, MailRefusal, MailRelayCode, MailResultStatus, MailRoute, MailSender, MailSenderState, MailStanding, MailStream, MailTestOutcome, MarketingPauseReason, OWN_MAILER_KEYS, RELAY_ALLOWED_HEADERS, RELAY_MAIL_PATH, RELAY_MAIL_USAGE_PATH, RELAY_MAX_MESSAGES, RETRYABLE_REFUSALS, SuppressionReason, hasOwnMailerKeys, isMailAddress, isRetryableRefusal, mailEmailsLeft, mailEmailsUsed, mailKindOf, mailModeOf, mailStandingOf, planMailRoute, remindersStopped, requiredMailerKeys };
|
|
319
|
-
export type { MailRouteFacts, MailTestAnswer, MailerDetails, MailerRowLike, RelayAddress, RelayMessage, RelayMonth, RelayRequest, RelayResponse, RelayResult, RelayUsage };
|
|
506
|
+
export { MAILER_REPLY_TO_KEY, MAILJET_SPF_INCLUDE, MAIL_DOMAIN_CHECK_MIN_MS, MAIL_DOMAIN_RECHECK_MS, MAIL_KIND_OF_SENDER, MAIL_LOW_SHARE, MAIL_TEST_PER_HOUR, MailDnsRecordRole, MailDomainRefusal, MailDomainState, MailKind, MailMode, MailRefusal, MailRelayCode, MailResultStatus, MailRoute, MailSender, MailSenderProblem, MailSenderState, MailStanding, MailStream, MailTestOutcome, MarketingPauseReason, NO_MAIL_DOMAIN, OWN_MAILER_KEYS, PLATFORM_MAIL_DOMAINS, PUBLIC_MAILBOX_DOMAINS, RELAY_ALLOWED_HEADERS, RELAY_MAIL_DOMAIN_CHECK_PATH, RELAY_MAIL_DOMAIN_PATH, RELAY_MAIL_PATH, RELAY_MAIL_USAGE_PATH, RELAY_MAX_MESSAGES, RETRYABLE_REFUSALS, SuppressionReason, hasOwnMailerKeys, isMailAddress, isRetryableRefusal, mailDnsRecords, mailDomainLost, mailDomainOf, mailDomainRecheckDue, mailDomainSends, mailDomainState, mailEmailsLeft, mailEmailsUsed, mailKindOf, mailModeOf, mailSenderProblems, mailStandingOf, mergedSpf, ownAddressRefusal, planMailRoute, relativeDnsHost, remindersStopped, requiredMailerKeys };
|
|
507
|
+
export type { MailDnsRecord, MailDomainAnswer, MailDomainView, MailRouteFacts, MailTestAnswer, MailerDetails, MailerRowLike, MailjetDnsCheckRow, MailjetDnsRow, MailjetSenderRow, RelayAddress, RelayDomainRefusalBody, RelayDomainRequest, RelayMessage, RelayMonth, RelayRequest, RelayResponse, RelayResult, RelayUsage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectoriox/iox-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.135.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=20.0.0",
|
|
6
6
|
"@angular/core": ">=20.0.0",
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"types": "./design-core/index.d.ts",
|
|
48
48
|
"default": "./fesm2022/vectoriox-iox-ui-design-core.mjs"
|
|
49
49
|
},
|
|
50
|
+
"./domain-core": {
|
|
51
|
+
"types": "./domain-core/index.d.ts",
|
|
52
|
+
"default": "./fesm2022/vectoriox-iox-ui-domain-core.mjs"
|
|
53
|
+
},
|
|
50
54
|
"./forms-core": {
|
|
51
55
|
"types": "./forms-core/index.d.ts",
|
|
52
56
|
"default": "./fesm2022/vectoriox-iox-ui-forms-core.mjs"
|
|
@@ -61,6 +61,8 @@ export const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.fr
|
|
|
61
61
|
{ value: 'line', labelKey: 'builder.actions.params.byLine' },
|
|
62
62
|
{ value: 'word', labelKey: 'builder.actions.params.byWord' },
|
|
63
63
|
] }] },
|
|
64
|
+
// AW3 (Motion board, E5): a heading comes from a small blur into focus — the look's `blur-in` move; reduced → the fade.
|
|
65
|
+
{ type: 'blurIn', labelKey: 'builder.actions.blurIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },
|
|
64
66
|
// Premium M6 (N5): a number that counts up ONCE, the first time it comes into view (D4); its final value is always the
|
|
65
67
|
// node's own text, so it is what the page sends. Offered only where it can wait unseen for that moment.
|
|
66
68
|
{ type: 'countUp', labelKey: 'builder.actions.countUp', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: COUNT_UP_TRIGGERS,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
composeSection, jsonClosedObject, jsonListOf, jsonOneOf, JsonSchema, jsonText, patternById, SectionInput, SerializedNode,
|
|
2
|
+
BUTTON_LINK_PROPS, CarryKind, composeSection, jsonClosedObject, jsonListOf, jsonOneOf, JsonSchema, jsonText, patternById, SectionInput, SerializedNode,
|
|
3
|
+
SWAP_CARRY_KINDS, swapParts, walkSerialized,
|
|
3
4
|
} from '@vectoriox/iox-ui/generation-core';
|
|
4
5
|
|
|
5
6
|
import { assertAssistBudget } from './budget';
|
|
@@ -173,46 +174,15 @@ function swapBlocker(root: SerializedNode): string | null {
|
|
|
173
174
|
return blocker;
|
|
174
175
|
}
|
|
175
176
|
|
|
176
|
-
/** A section's parts a swap carries over, in reading order, by kind. */
|
|
177
|
-
enum CarryKind { Eyebrow = 'eyebrow', Heading = 'heading', Text = 'text', Button = 'button', Image = 'image' }
|
|
178
|
-
|
|
179
|
-
/** A button the owner's words and link travel in — never a tab, a price switch or a cart button (their recipe's own). */
|
|
180
|
-
const CARRIED_BUTTON_STYLES: ReadonlySet<string> = new Set(['button-primary', 'button-secondary', 'button-ghost']);
|
|
181
|
-
/** Words that belong to their recipe, not the owner's copy: a figure ("40+", a price), a badge — left where they are. */
|
|
182
|
-
const KEPT_TEXT_STYLES: ReadonlySet<string> = new Set(['price', 'badge-label']);
|
|
183
|
-
|
|
184
|
-
function carryKind(n: SerializedNode): CarryKind | null {
|
|
185
|
-
if (n.elementStyle === 'eyebrow' && (n.type === 'Heading' || n.type === 'Text')) return CarryKind.Eyebrow;
|
|
186
|
-
if (n.type === 'Heading') return CarryKind.Heading;
|
|
187
|
-
if (n.type === 'Text') return KEPT_TEXT_STYLES.has(n.elementStyle ?? '') ? null : CarryKind.Text;
|
|
188
|
-
if (n.type === 'Image') return CarryKind.Image;
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
function carryParts(root: SerializedNode): Record<CarryKind, SerializedNode[]> {
|
|
193
|
-
const out: Record<CarryKind, SerializedNode[]> = { eyebrow: [], heading: [], text: [], button: [], image: [] };
|
|
194
|
-
const visit = (n: SerializedNode) => {
|
|
195
|
-
if (n.type === 'ButtonBlock') {
|
|
196
|
-
if (CARRIED_BUTTON_STYLES.has(n.elementStyle ?? '')) out.button.push(n);
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
const kind = carryKind(n);
|
|
200
|
-
if (kind) out[kind].push(n);
|
|
201
|
-
for (const c of n.children ?? []) visit(c);
|
|
202
|
-
};
|
|
203
|
-
for (const c of root.children ?? []) visit(c);
|
|
204
|
-
return out;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
const BUTTON_LINK_PROPS = ['tag', 'linkType', 'href', 'pageRoute', 'url', 'target'];
|
|
208
177
|
const labelOf = (button: SerializedNode) => (button.children ?? []).find(c => c.type === 'Text');
|
|
209
178
|
|
|
210
|
-
/** The owner's words and pictures, placed into the new section part for part (kind by kind, in order); how many found no
|
|
179
|
+
/** The owner's words and pictures, placed into the new section part for part (kind by kind, in order); how many found no
|
|
180
|
+
* place. WHAT is carried is generation-core's carry rule (`swapParts` — the harvest's classifier, today's kinds only). */
|
|
211
181
|
function carryOver(from: SerializedNode, to: SerializedNode): number {
|
|
212
|
-
const old =
|
|
213
|
-
const fresh =
|
|
182
|
+
const old = swapParts(from);
|
|
183
|
+
const fresh = swapParts(to);
|
|
214
184
|
let notPlaced = 0;
|
|
215
|
-
for (const kind of
|
|
185
|
+
for (const kind of SWAP_CARRY_KINDS) {
|
|
216
186
|
old[kind].forEach((source, i) => {
|
|
217
187
|
const target = fresh[kind][i];
|
|
218
188
|
if (!target) {
|