@vectoriox/iox-builder 2.10.4 → 2.11.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
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ComponentRef, Type, ChangeDetectorRef, OnInit, AfterViewInit, OnChanges, OnDestroy, EventEmitter, ElementRef, ApplicationRef, SimpleChanges, ViewContainerRef, Injector, EnvironmentInjector, InjectionToken, TemplateRef, AfterContentInit, QueryList } from '@angular/core';
|
|
3
3
|
import * as i28 from '@vectoriox/iox-ui';
|
|
4
4
|
import { RelativeSourceSpec, DataSourceEndpoints } from '@vectoriox/iox-ui';
|
|
5
|
-
export { ComponentInstanceRegistryService, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
|
|
5
|
+
export { ComponentInstanceRegistryService, IoxContextSlot, SetContextParams, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
7
7
|
import { Subject, Subscription, BehaviorSubject, Observable } from 'rxjs';
|
|
8
8
|
import * as _vectoriox_iox_builder from '@vectoriox/iox-builder';
|
|
@@ -119,8 +119,9 @@ interface IoxDataSource {
|
|
|
119
119
|
params?: Record<string, any>;
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
+
|
|
122
123
|
type InteractionTrigger = 'pageLoad' | 'click' | 'hover' | 'viewportEnter' | 'scrollProgress' | 'pageLeave' | 'pageEnter' | 'swiperSlideChange' | 'swiperReachBeginning' | 'swiperReachEnd' | 'swiperAutoplayStart' | 'swiperAutoplayStop' | 'swiperSlideActive' | 'swiperSlideInactive';
|
|
123
|
-
type InteractionActionType = 'fadeIn' | 'fadeOut' | 'moveUp' | 'moveDown' | 'moveLeft' | 'moveRight' | 'scaleIn' | 'scaleOut' | 'rotate' | 'show' | 'hide' | 'toggleVisibility' | 'swiperNext' | 'swiperPrev' | 'swiperGoToSlide' | 'swiperAutoplayStart' | 'swiperAutoplayStop' | 'swiperAutoplayPause';
|
|
124
|
+
type InteractionActionType = 'fadeIn' | 'fadeOut' | 'moveUp' | 'moveDown' | 'moveLeft' | 'moveRight' | 'scaleIn' | 'scaleOut' | 'rotate' | 'show' | 'hide' | 'toggleVisibility' | 'setContext' | 'clearContext' | 'swiperNext' | 'swiperPrev' | 'swiperGoToSlide' | 'swiperAutoplayStart' | 'swiperAutoplayStop' | 'swiperAutoplayPause';
|
|
124
125
|
interface InteractionAction {
|
|
125
126
|
type: InteractionActionType;
|
|
126
127
|
/** 'self' targets the node that owns the interaction; otherwise a node ID. */
|
|
@@ -130,7 +131,12 @@ interface InteractionAction {
|
|
|
130
131
|
/** Delay in milliseconds before the action starts. */
|
|
131
132
|
delay: number;
|
|
132
133
|
easing: 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
133
|
-
/**
|
|
134
|
+
/**
|
|
135
|
+
* Extra parameters — `{ distance: 20 }` for move actions. For `setContext`/`clearContext` this
|
|
136
|
+
* holds a `SetContextParams` (`{ slot, value, noReverse? }`), read structurally by the shared
|
|
137
|
+
* `contextActionEffect` in @vectoriox/iox-ui. Kept as an index signature because animation
|
|
138
|
+
* actions access it by key (`params?.['degrees']`).
|
|
139
|
+
*/
|
|
134
140
|
params?: Record<string, any>;
|
|
135
141
|
/** If true, the action only plays once (relevant for viewport/scroll triggers). */
|
|
136
142
|
once?: boolean;
|