@vectoriox/iox-ui 4.20.0 → 4.22.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
|
@@ -953,6 +953,22 @@ declare function resolveSingleItemId(req: DataSourceRequestSpec | undefined, rou
|
|
|
953
953
|
* the builder's getContentById.
|
|
954
954
|
*/
|
|
955
955
|
declare function planDataSource(ds: DataSourceSpec | undefined, routeParams?: Record<string, any>, queryParams?: Record<string, any>): DataSourcePlan;
|
|
956
|
+
/**
|
|
957
|
+
* The aliases on a page that are VARIABLES — runtime-written resources, not fetched data.
|
|
958
|
+
*
|
|
959
|
+
* Shared so the builder and the SSR engine agree on which aliases start empty and are filled by
|
|
960
|
+
* interactions. See element-context-state-plan.md.
|
|
961
|
+
*/
|
|
962
|
+
declare function variableAliases(dataSources: readonly {
|
|
963
|
+
alias?: string;
|
|
964
|
+
type?: string;
|
|
965
|
+
}[] | undefined): Set<string>;
|
|
966
|
+
/** The source alias whose items a variable holds, if it declares one (for field suggestions). */
|
|
967
|
+
declare function variableItemsFrom(dataSources: readonly {
|
|
968
|
+
alias?: string;
|
|
969
|
+
type?: string;
|
|
970
|
+
request?: any;
|
|
971
|
+
}[] | undefined, alias: string): string | undefined;
|
|
956
972
|
/**
|
|
957
973
|
* Normalise a collection response into the shape a source expects: unwraps `{items}`/`{data}`
|
|
958
974
|
* envelopes, then returns the first item for a `single` source or the whole array for a `list`.
|
|
@@ -1448,7 +1464,29 @@ declare function contextActionEffect(action: ContextActionLike | null | undefine
|
|
|
1448
1464
|
* Union of declared + in-use, so a declared-but-unused slot still seeds its default, and a slot used
|
|
1449
1465
|
* by a symbol dropped onto a page that never declared it still works (it just has no default).
|
|
1450
1466
|
*/
|
|
1451
|
-
declare function collectContextSlotKeys(nodes: readonly unknown[] | undefined,
|
|
1467
|
+
declare function collectContextSlotKeys(nodes: readonly unknown[] | undefined,
|
|
1468
|
+
/** Declared VARIABLES — page resources of `type: 'variable'`, or legacy slot declarations. */
|
|
1469
|
+
declared?: readonly (IoxContextSlot | {
|
|
1470
|
+
alias?: string;
|
|
1471
|
+
type?: string;
|
|
1472
|
+
})[]): Set<string>;
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* Whether an interaction action is switched ON.
|
|
1476
|
+
*
|
|
1477
|
+
* An author can disable a single action inside an interaction (the switch on its accordion row)
|
|
1478
|
+
* without deleting it — useful while tuning a multi-action sequence. Disabling must hold in BOTH
|
|
1479
|
+
* runtimes, so the rule lives here and the builder engine and the SSR engine both read it: a
|
|
1480
|
+
* disabled action must not animate, must not write context, and must not receive a PRE-STATE
|
|
1481
|
+
* (otherwise it would leave the element hidden with nothing left to reveal it).
|
|
1482
|
+
*/
|
|
1483
|
+
interface ToggleableAction {
|
|
1484
|
+
disabled?: boolean;
|
|
1485
|
+
}
|
|
1486
|
+
/** Default is ENABLED — `disabled` is absent on every action authored before the switch existed. */
|
|
1487
|
+
declare function isActionEnabled(action: ToggleableAction | null | undefined): boolean;
|
|
1488
|
+
/** The actions that should actually run, preserving order. */
|
|
1489
|
+
declare function activeActions<T extends ToggleableAction>(actions: readonly T[] | undefined): T[];
|
|
1452
1490
|
|
|
1453
1491
|
/**
|
|
1454
1492
|
* Cinematic page-transition presets — the SINGLE SOURCE OF TRUTH shared by the page builder
|
|
@@ -1713,5 +1751,5 @@ declare class GalleryLoop {
|
|
|
1713
1751
|
private emit;
|
|
1714
1752
|
}
|
|
1715
1753
|
|
|
1716
|
-
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, collectContextSlotKeys, 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 };
|
|
1717
|
-
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 };
|
|
1754
|
+
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, activeActions, applyBindingPipes, applyFeel, buildDataSourceFilter, buildRelatedFilter, buildTargetedStateSelector, buildTransitionTimeline, collectContextSlotKeys, collectReferencedAliases, compileDeclarations, composeVirtualTraits, computeRelative, contextActionEffect, contextSlotKeys, dataSourcePlanToRequest, declaredInputNames, effectiveTransitionId, excludeSelf, feelFor, getByPath, initialSlotValues, isActionEnabled, 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, variableAliases, variableItemsFrom, withContextSlots };
|
|
1755
|
+
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, ToggleableAction, TransitionFeel, TransitionPhase, TransitionTimelineInput };
|