@vectoriox/iox-ui 4.18.0 → 4.19.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/package.json
CHANGED
|
@@ -1390,6 +1390,53 @@ declare class ContextStore {
|
|
|
1390
1390
|
static ɵprov: i0.ɵɵInjectableDeclaration<ContextStore>;
|
|
1391
1391
|
}
|
|
1392
1392
|
|
|
1393
|
+
/**
|
|
1394
|
+
* What a context action DOES on a given interaction pass — the single definition of the semantics,
|
|
1395
|
+
* shared by the builder's InteractionEngineService and the engine's ClientInteractionService so the
|
|
1396
|
+
* two runtimes cannot drift.
|
|
1397
|
+
*
|
|
1398
|
+
* ## Why a "pass"
|
|
1399
|
+
*
|
|
1400
|
+
* A `hover` interaction binds BOTH ends: `mouseenter` runs the actions forward, `mouseleave` replays
|
|
1401
|
+
* them on a reverse pass. For an animation, reverse means "play the keyframes backwards". A context
|
|
1402
|
+
* write has no backwards, so its reverse behaviour has to be stated explicitly — that is this table:
|
|
1403
|
+
*
|
|
1404
|
+
* | action | forward | reverse (mouseleave) |
|
|
1405
|
+
* |----------------|---------|---------------------------|
|
|
1406
|
+
* | `setContext` | set | clear, UNLESS `noReverse` |
|
|
1407
|
+
* | `clearContext` | clear | nothing |
|
|
1408
|
+
*
|
|
1409
|
+
* `noReverse` is what a repeater ROW sets. Without it, leaving a row clears the slot, so every
|
|
1410
|
+
* row-to-row move blinks and the gaps between rows blank the preview. Clearing belongs to the LIST
|
|
1411
|
+
* container, not the row. See element-context-state-plan.md §5.
|
|
1412
|
+
*
|
|
1413
|
+
* NOTE: this is unrelated to `INVERSE_ACTION`, which only auto-populates the reverse actions of a
|
|
1414
|
+
* CLICK-toggle (click sets, click again clears).
|
|
1415
|
+
*/
|
|
1416
|
+
type ContextActionEffect = {
|
|
1417
|
+
op: 'set';
|
|
1418
|
+
slot: string;
|
|
1419
|
+
value: ContextValueSpec;
|
|
1420
|
+
} | {
|
|
1421
|
+
op: 'clear';
|
|
1422
|
+
slot: string;
|
|
1423
|
+
};
|
|
1424
|
+
/** The action shape this reads — structural, so both runtimes can pass their own action objects. */
|
|
1425
|
+
interface ContextActionLike {
|
|
1426
|
+
type?: string;
|
|
1427
|
+
params?: Partial<SetContextParams> | Record<string, unknown> | null;
|
|
1428
|
+
}
|
|
1429
|
+
/** Action types this module handles. Anything else is not a context action. */
|
|
1430
|
+
declare const CONTEXT_ACTION_TYPES: readonly ["setContext", "clearContext"];
|
|
1431
|
+
declare function isContextAction(action: ContextActionLike | null | undefined): boolean;
|
|
1432
|
+
/**
|
|
1433
|
+
* Resolve an action + pass into the store operation to perform, or `null` for "do nothing".
|
|
1434
|
+
*
|
|
1435
|
+
* Returning `null` (rather than throwing or guessing) is what lets a runtime call this for every
|
|
1436
|
+
* action on every pass and simply skip the misses.
|
|
1437
|
+
*/
|
|
1438
|
+
declare function contextActionEffect(action: ContextActionLike | null | undefined, pass?: 'forward' | 'reverse'): ContextActionEffect | null;
|
|
1439
|
+
|
|
1393
1440
|
/**
|
|
1394
1441
|
* Cinematic page-transition presets — the SINGLE SOURCE OF TRUTH shared by the page builder
|
|
1395
1442
|
* (preview) and the SSR client engine (production). Pure, transport-agnostic: this module only
|
|
@@ -1653,5 +1700,5 @@ declare class GalleryLoop {
|
|
|
1653
1700
|
private emit;
|
|
1654
1701
|
}
|
|
1655
1702
|
|
|
1656
|
-
export { AOSService, AnalyticsService, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CMSClientInfraModule, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ConsentService, ContainerComponent, ContentService, ContextStore, DEFAULT_GALLERY_SCHEDULER, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_WIDTH_BY_TYPE, ENVIRONMENT, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, IOX_BUILDER_EVENTS, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxPageComponent, IoxPageModule, IoxUiModule, LinkedContainerComponent, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PIPE_DESCRIPTORS, PIPE_REGISTRY, PageScrollProvider, PrivacyModalComponent, PrivacyModalService, PrivacyModelEvent, RESERVED_ALIAS_PREFIX, SUPPRESSED_STYLE_PROPS_BY_TYPE, SectionComponent, TRANSITION_FEELS, TextBlockComponent, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, WebSettingsService, applyBindingPipes, applyFeel, buildDataSourceFilter, buildRelatedFilter, buildTargetedStateSelector, buildTransitionTimeline, collectReferencedAliases, compileDeclarations, composeVirtualTraits, computeRelative, contextSlotKeys, dataSourcePlanToRequest, declaredInputNames, effectiveTransitionId, excludeSelf, feelFor, getByPath, initialSlotValues, isReservedAlias, isValidSlotKey, legacyEnterToTransition, matchRouteParams, nearestCommonAncestorId, nodeCssId, nodeUsesContext, normalizeCollectionResult, parseUrlList, planDataSource, referencedDataSources, referencedDataSourcesDeep, renderDefaultDeclarations, resolveContextValue, resolveDerivedInto, resolveGalleryEffect, resolveGalleryUrls, resolvePageTransition, resolvePath, resolveRelativeInto, resolveRepeaterItems, resolveSiblings, resolveSingleItemId, rewriteViewportUnits, safeSetInput, stripSuppressedProps, styleKeyToKebab, withContextSlots };
|
|
1657
|
-
export type { BuildRelatedFilterOptions, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, DataSourceDomain, DataSourceEndpoints, DataSourceMode, DataSourcePlan, DataSourceQueryFilter, DataSourceRequest, DataSourceRequestSpec, DataSourceRouteFilter, DataSourceSpec, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, IBuilderEventEmitter, IoxContextSlot, IoxPipe, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, RelativeInputs, RelativeSourceKind, RelativeSourceSpec, ResolveSiblingsOptions, ResolvedPageTransition, RouteContext, SetContextParams, SiblingsResult, StyleTreeNode, TransitionFeel, TransitionPhase, TransitionTimelineInput };
|
|
1703
|
+
export { AOSService, AnalyticsService, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CMSClientInfraModule, CONTEXT_ACTION_TYPES, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ConsentService, ContainerComponent, ContentService, ContextStore, DEFAULT_GALLERY_SCHEDULER, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_WIDTH_BY_TYPE, ENVIRONMENT, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, IOX_BUILDER_EVENTS, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxPageComponent, IoxPageModule, IoxUiModule, LinkedContainerComponent, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PIPE_DESCRIPTORS, PIPE_REGISTRY, PageScrollProvider, PrivacyModalComponent, PrivacyModalService, PrivacyModelEvent, RESERVED_ALIAS_PREFIX, SUPPRESSED_STYLE_PROPS_BY_TYPE, SectionComponent, TRANSITION_FEELS, TextBlockComponent, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, WebSettingsService, applyBindingPipes, applyFeel, buildDataSourceFilter, buildRelatedFilter, buildTargetedStateSelector, buildTransitionTimeline, collectReferencedAliases, compileDeclarations, composeVirtualTraits, computeRelative, contextActionEffect, contextSlotKeys, dataSourcePlanToRequest, declaredInputNames, effectiveTransitionId, excludeSelf, feelFor, getByPath, initialSlotValues, isContextAction, isReservedAlias, isValidSlotKey, legacyEnterToTransition, matchRouteParams, nearestCommonAncestorId, nodeCssId, nodeUsesContext, normalizeCollectionResult, parseUrlList, planDataSource, referencedDataSources, referencedDataSourcesDeep, renderDefaultDeclarations, resolveContextValue, resolveDerivedInto, resolveGalleryEffect, resolveGalleryUrls, resolvePageTransition, resolvePath, resolveRelativeInto, resolveRepeaterItems, resolveSiblings, resolveSingleItemId, rewriteViewportUnits, safeSetInput, stripSuppressedProps, styleKeyToKebab, withContextSlots };
|
|
1704
|
+
export type { BuildRelatedFilterOptions, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, DataSourceDomain, DataSourceEndpoints, DataSourceMode, DataSourcePlan, DataSourceQueryFilter, DataSourceRequest, DataSourceRequestSpec, DataSourceRouteFilter, DataSourceSpec, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, IBuilderEventEmitter, IoxContextSlot, IoxPipe, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, RelativeInputs, RelativeSourceKind, RelativeSourceSpec, ResolveSiblingsOptions, ResolvedPageTransition, RouteContext, SetContextParams, SiblingsResult, StyleTreeNode, TransitionFeel, TransitionPhase, TransitionTimelineInput };
|