@rokt/dcui-orchestrator 1.2.1-rc.26 → 1.2.1-rc.28

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.
@@ -21,14 +21,16 @@ export interface IGateway<State extends object, Action extends object> {
21
21
  onInteractivityChange(callback: (interactivity: Interactivity) => void): () => void;
22
22
  globalDispatch(action: Action): void;
23
23
  createChildPlugin: ChildPluginFactory;
24
+ scrollHostToViewportOffset?: (viewportOffsetY: number) => Promise<void>;
24
25
  }
25
26
  export interface IDisposable {
26
27
  dispose(): void;
27
28
  }
28
- export declare function makeGatewayFactory<State extends object, Action extends object>(globalStore: AbstractGlobalStore<State, Action>, createChildPlugin: ChildPluginFactory, onPartnerEvent: PartnerEventReceiver, getFonts?: GetFonts): GatewayFactory<State, Action>;
29
+ export declare function makeGatewayFactory<State extends object, Action extends object>(globalStore: AbstractGlobalStore<State, Action>, createChildPlugin: ChildPluginFactory, onPartnerEvent: PartnerEventReceiver, getFonts?: GetFonts, scrollHostToViewportOffset?: (viewportOffsetY: number) => Promise<void>): GatewayFactory<State, Action>;
29
30
  export declare class Gateway<State extends object, Action extends object> implements IGateway<State, Action>, IDisposable {
30
31
  #private;
31
- constructor(store: AbstractGlobalStore<State, Action>, createChildPlugin: ChildPluginFactory, context: GlobalStoreOfferContext, interactivityChannel: ISubscribable<Interactivity> & IClearable, onPartnerEvent: PartnerEventReceiver, getFonts?: GetFonts);
32
+ scrollHostToViewportOffset?: (viewportOffsetY: number) => Promise<void>;
33
+ constructor(store: AbstractGlobalStore<State, Action>, createChildPlugin: ChildPluginFactory, context: GlobalStoreOfferContext, interactivityChannel: ISubscribable<Interactivity> & IClearable, onPartnerEvent: PartnerEventReceiver, getFonts?: GetFonts, scrollHostToViewportOffset?: (viewportOffsetY: number) => Promise<void>);
32
34
  onGlobalStateChange(callback: (globalState: State) => void): () => void;
33
35
  onInteractivityChange(callback: (interactivity: Interactivity) => void): () => void;
34
36
  onEvent(...moduleEventListeners: Array<ModuleEventListener>): () => void;
@@ -1,6 +1,7 @@
1
1
  import { DisplayInterface, PluginInterface } from '@rokt/plugin';
2
2
  import { EventChannel } from 'redux-saga';
3
3
  export type DisplayService = Pick<DisplayInterface, 'setDisplaySettings'> & {
4
+ scrollHostToViewportOffset?(viewportOffsetY: number): Promise<void>;
4
5
  activeBreakpointEventChannel?(breakpoints: Record<string, number>): EventChannel<string>;
5
6
  };
6
7
  export declare const makeDisplayService: (pluginInterface: Pick<PluginInterface, 'display'>) => DisplayService;
@@ -112,6 +112,13 @@ export interface CatalogDevicePayButtonProps {
112
112
  testId?: string;
113
113
  }
114
114
  type CatalogDevicePayButtonStyles = NonNullable<CatalogDevicePayButtonProps['schema']['styles']>;
115
+ /**
116
+ * Whether the backend marked this catalog item as purchasable with PayPal. The
117
+ * flag rides in the item's `providerData` JSON and is omitted when false, so
118
+ * anything other than an explicit `true` (absent, malformed, wrong type) means
119
+ * the item is not PayPal-enabled.
120
+ */
121
+ export declare function isPayPalEnabled(providerData: string | undefined): boolean;
115
122
  export declare function getCatalogDevicePayButtonStyles(styles: CatalogDevicePayButtonProps['schema']['styles']): CatalogDevicePayButtonStyles;
116
123
  /**The CatalogDevicePayButton is a button node that generates a Call-to-Action button
117
124
  * for initiating a device payment transaction using the associated payment provider.
@@ -3,6 +3,7 @@ import { AppState } from '../../reducers';
3
3
  export declare function getDevicePayAvailability(state: AppState): DevicePayAvailabilityState;
4
4
  export declare function isApplePayAvailable(state: AppState): boolean;
5
5
  export declare function isAfterpayAvailable(state: AppState): boolean;
6
+ export declare function isPayPalAvailable(state: AppState): boolean;
6
7
  /**
7
8
  * Gate for the "no remaining usable payment option" branch in
8
9
  * processDevicePayAvailable. True when every entry in supportedPaymentMethods
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokt/dcui-orchestrator",
3
- "version": "1.2.1-rc.26",
3
+ "version": "1.2.1-rc.28",
4
4
  "description": "Rokt's DCUI rendering process",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",