@rokt/dcui-orchestrator 0.0.2-rc.5 → 0.0.2-rc.6
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/dist/extensions/minimized-bottomsheet/src/hooks/useScrollTrap.d.ts +2 -0
- package/dist/index.cjs +38 -28
- package/dist/index.js +39 -29
- package/dist/libraries/dcui-components/src/components/child-layout-handler/child-layout-handler.d.ts +5 -0
- package/dist/libraries/dcui-components/src/components/child-layout-handler/index.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/index.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/partner-event-button-trigger/factory.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/partner-event-button-trigger/index.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/partner-event-button-trigger/partner-event-button-trigger.d.ts +6 -0
- package/dist/libraries/dcui-components/src/contexts/index.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/schema-version-context.d.ts +2 -0
- package/dist/libraries/domain/src/behaviors/child-layout.d.ts +6 -0
- package/dist/libraries/domain/src/behaviors/global-actions.d.ts +3 -1
- package/dist/libraries/domain/src/behaviors/index.d.ts +1 -0
- package/dist/libraries/domain/src/behaviors/offer-engagement.d.ts +1 -0
- package/dist/libraries/domain/src/behaviors/send-partner.d.ts +14 -2
- package/dist/libraries/domain/src/models/layout/index.d.ts +1 -0
- package/dist/libraries/domain/src/models/layout/layout-child-config.d.ts +4 -0
- package/dist/libraries/domain/src/models/layout/layout-child-layout.d.ts +8 -0
- package/dist/libraries/domain/src/models/layout/layout-variant.d.ts +3 -1
- package/dist/libraries/domain/src/models/partner-event.d.ts +1 -1
- package/dist/libraries/domain/src/models/plugin/index.d.ts +1 -0
- package/dist/libraries/domain/src/models/plugin/plugin-child-layout-model.d.ts +6 -2
- package/dist/libraries/domain/src/models/plugin/plugin-creative-response-option.d.ts +4 -0
- package/dist/libraries/domain/src/models/plugin/plugin-layout-child.d.ts +9 -0
- package/dist/libraries/domain/src/models/plugin/plugin-layout-variant.d.ts +2 -0
- package/dist/libraries/domain/src/models/plugin/plugin-offer.d.ts +3 -0
- package/dist/libraries/domain/src/models/signals.d.ts +7 -1
- package/dist/libraries/layout-renderer-utils/src/actions/custom-states.d.ts +1 -0
- package/dist/libraries/module-connector/src/main.d.ts +3 -3
- package/dist/libraries/module-connector/src/models/module-attributes.d.ts +3 -1
- package/dist/libraries/module-connector/src/models/module-connector-builder.d.ts +5 -3
- package/dist/libraries/module-connector/src/models/module.d.ts +1 -1
- package/dist/libraries/orchestrator/src/actions/domain-states.d.ts +1 -0
- package/dist/libraries/orchestrator/src/actions/index.d.ts +2 -2
- package/dist/libraries/orchestrator/src/actions/offer-lifecycle.d.ts +1 -0
- package/dist/modules/add-to-cart/src/models/state/index.d.ts +0 -1
- package/dist/modules/add-to-cart/src/reducers/index.d.ts +5 -3
- package/dist/modules/add-to-cart/src/sagas/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/channels/channel.d.ts +3 -3
- package/dist/modules/instant-purchase/src/components/drop-down/drop-down.d.ts +7 -6
- package/dist/modules/instant-purchase/src/components/image-gallery/image-gallery.d.ts +28 -0
- package/dist/modules/instant-purchase/src/hooks/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/hooks/use-image-mapper.d.ts +2 -0
- package/dist/modules/instant-purchase/src/reducers/index.d.ts +4 -3
- package/dist/modules/instant-purchase/src/sagas/error-codes.d.ts +2 -0
- package/dist/modules/instant-purchase/src/sagas/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/sagas/instant-purchase/sagas.d.ts +8 -3
- package/dist/modules/layouts-xp-sandbox/src/reducers/index.d.ts +6 -4
- package/dist/modules/layouts-xp-sandbox/src/sagas/index.d.ts +1 -0
- package/dist/modules/standard-marketing/src/reducers/index.d.ts +8 -4
- package/dist/modules/standard-marketing/src/sagas/error-codes.d.ts +2 -0
- package/dist/modules/standard-marketing/src/sagas/index.d.ts +1 -0
- package/dist/modules/standard-marketing/src/sagas/offer-engagement/channels.d.ts +8 -1
- package/dist/modules/standard-marketing/src/sagas/offer-engagement/sagas.d.ts +4 -3
- package/node_modules/@rokt/plugin/interface/child-plugin-factory.d.ts +1 -0
- package/node_modules/@rokt/plugin/interface/rdn.d.ts +1 -0
- package/node_modules/@rokt/plugin/package.json +1 -1
- package/package.json +2 -2
- package/dist/modules/add-to-cart/src/models/state/static-data.d.ts +0 -5
- package/dist/modules/add-to-cart/src/reducers/static-data/index.d.ts +0 -1
- package/dist/modules/add-to-cart/src/reducers/static-data/reducer.d.ts +0 -4
- package/dist/modules/instant-purchase/src/models/index.d.ts +0 -1
- package/dist/modules/instant-purchase/src/models/state/index.d.ts +0 -1
- package/dist/modules/instant-purchase/src/models/state/static-data.d.ts +0 -5
- package/dist/modules/instant-purchase/src/reducers/static-data/index.d.ts +0 -1
- package/dist/modules/instant-purchase/src/reducers/static-data/reducer.d.ts +0 -4
- package/dist/modules/layouts-xp-sandbox/src/reducers/mock/index.d.ts +0 -1
- package/dist/modules/layouts-xp-sandbox/src/reducers/mock/reducer.d.ts +0 -9
- package/dist/modules/standard-marketing/src/reducers/mock/index.d.ts +0 -1
- package/dist/modules/standard-marketing/src/reducers/mock/reducer.d.ts +0 -9
|
@@ -12,5 +12,6 @@ export declare const sagaActionTypes: {
|
|
|
12
12
|
readonly OPEN_LINK: "GLOBAL/OPEN_LINK";
|
|
13
13
|
readonly SET_PARTNER_VALIDATION_STATUS: "GLOBAL/SET_PARTNER_VALIDATION_STATUS";
|
|
14
14
|
readonly SET_GLOBAL_OFFER_DATA_CART: "GLOBAL/SET_GLOBAL_OFFER_DATA_CART";
|
|
15
|
+
readonly LAUNCH_CHILD_LAYOUT: "GLOBAL/LAUNCH_CHILD_LAYOUT";
|
|
15
16
|
};
|
|
16
17
|
export declare function appSagas(gateway: GlobalGateway, logger: (log: Log) => void): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").ForkEffect<never>>, void, unknown>;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { GlobalGateway } from '../../../../../libraries/module-connector/src/main';
|
|
1
2
|
import { ChildPluginFactoryInterface } from '@rokt/plugin';
|
|
3
|
+
import { EventChannel } from 'redux-saga';
|
|
2
4
|
type ChildPlugin = ReturnType<ChildPluginFactoryInterface['create']>;
|
|
3
5
|
export type ChildPluginResult = 'SUCCESS' | 'UNSPECIFIED' | 'CLOSED';
|
|
4
|
-
export declare function createChildPluginChannel(childPlugin: Pick<ChildPlugin, 'onClose' | 'onEvent'>):
|
|
6
|
+
export declare function createChildPluginChannel(childPlugin: Pick<ChildPlugin, 'onClose' | 'onEvent'>): EventChannel<ChildPluginResult>;
|
|
7
|
+
export type RealtimeFulfillmentEvent = {
|
|
8
|
+
eventName: string;
|
|
9
|
+
data: Record<string, string>;
|
|
10
|
+
};
|
|
11
|
+
export declare function makeRealtimeFulfillmentEventMessageChannel(gateway: Pick<GlobalGateway, 'onEvent'>): EventChannel<RealtimeFulfillmentEvent>;
|
|
5
12
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GlobalActions, OfferEngagement } from '../../../../../libraries/domain/src/behaviors';
|
|
2
2
|
import { Log } from '../../../../../libraries/domain/src/models';
|
|
3
3
|
import { GlobalGateway } from '../../../../../libraries/module-connector/src/main';
|
|
4
|
-
import { CallEffect, PutEffect } from 'redux-saga/effects';
|
|
5
|
-
import { ChildPluginResult } from './channels';
|
|
4
|
+
import { CallEffect, CancelledEffect, ChannelTakeEffect, PutEffect, TakeEffect } from 'redux-saga/effects';
|
|
5
|
+
import { ChildPluginResult, RealtimeFulfillmentEvent } from './channels';
|
|
6
6
|
import { EventChannel } from 'redux-saga';
|
|
7
|
-
export declare function listenToChildPluginChannel(channel: EventChannel<ChildPluginResult>, dispatch: (action: GlobalActions) => void): Generator<
|
|
7
|
+
export declare function listenToChildPluginChannel(channel: EventChannel<ChildPluginResult>, dispatch: (action: GlobalActions) => void): Generator<ChannelTakeEffect<"SUCCESS" | "UNSPECIFIED" | "CLOSED">, void, ChildPluginResult>;
|
|
8
|
+
export declare function listenForRealtimeFulfillmentEvent(gateway: GlobalGateway, logger: (log: Log) => void): Generator<TakeEffect | CallEffect | CancelledEffect | PutEffect | ChannelTakeEffect<RealtimeFulfillmentEvent>, void, RealtimeFulfillmentEvent>;
|
|
8
9
|
export declare function processOfferResponse(gateway: GlobalGateway, logger: (log: Log) => void, action: OfferEngagement): Generator<CallEffect | PutEffect, void, never>;
|
|
@@ -4,6 +4,7 @@ export type CreateChildPluginOptions = {
|
|
|
4
4
|
url?: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
config?: BasicObject;
|
|
7
|
+
targetElementSelector?: string;
|
|
7
8
|
};
|
|
8
9
|
export interface ChildPluginFactoryInterface {
|
|
9
10
|
create<T extends BasicObject>(options: CreateChildPluginOptions): ChildPluginInterface<T>;
|
|
@@ -9,6 +9,7 @@ export type IssueSignalOptions = {
|
|
|
9
9
|
objectData?: Record<string, string>;
|
|
10
10
|
overrideTimestamp?: Date;
|
|
11
11
|
transformedTrafficURL?: string;
|
|
12
|
+
creativeInstanceGuid?: string;
|
|
12
13
|
};
|
|
13
14
|
export interface RDNInterface {
|
|
14
15
|
issueSignal(eventType: string, parentGuid: string, options?: IssueSignalOptions): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokt/dcui-orchestrator",
|
|
3
|
-
"version": "0.0.2-rc.
|
|
3
|
+
"version": "0.0.2-rc.6",
|
|
4
4
|
"description": "Rokt's DCUI rendering process",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@rokt/dcui-layout-schema": "1.7.0-lnp907-alpha",
|
|
20
20
|
"@rokt/kit": "^6.6.4",
|
|
21
|
-
"@rokt/plugin": "^5.
|
|
21
|
+
"@rokt/plugin": "^5.9.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@rokt/partner-integration": "^4.7.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './reducer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './state';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './static-data';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './reducer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './reducer';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
|
-
export type MockState = null;
|
|
3
|
-
export declare function makeInitialMockState(): MockState;
|
|
4
|
-
export declare const MOCK_UPDATE = "MOCK/UPDATE";
|
|
5
|
-
export type MockUpdateAction = {
|
|
6
|
-
type: typeof MOCK_UPDATE;
|
|
7
|
-
};
|
|
8
|
-
export type MockActions = MockUpdateAction;
|
|
9
|
-
export declare function mockReducer(state: MockState | undefined, action: AnyAction): MockState;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './reducer';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
|
-
export type MockState = null;
|
|
3
|
-
export declare function makeInitialMockState(): MockState;
|
|
4
|
-
export declare const MOCK_UPDATE = "MOCK/UPDATE";
|
|
5
|
-
export type MockUpdateAction = {
|
|
6
|
-
type: typeof MOCK_UPDATE;
|
|
7
|
-
};
|
|
8
|
-
export type MockActions = MockUpdateAction;
|
|
9
|
-
export declare function mockReducer(state: MockState | undefined, action: AnyAction): MockState;
|