@rokt/dcui-orchestrator 0.0.2-rc.4 → 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.
Files changed (72) hide show
  1. package/dist/extensions/minimized-bottomsheet/src/hooks/useScrollTrap.d.ts +2 -0
  2. package/dist/index.cjs +40 -30
  3. package/dist/index.js +43 -33
  4. package/dist/libraries/dcui-components/src/components/child-layout-handler/child-layout-handler.d.ts +5 -0
  5. package/dist/libraries/dcui-components/src/components/child-layout-handler/index.d.ts +1 -0
  6. package/dist/libraries/dcui-components/src/components/index.d.ts +1 -0
  7. package/dist/libraries/dcui-components/src/components/partner-event-button-trigger/factory.d.ts +2 -0
  8. package/dist/libraries/dcui-components/src/components/partner-event-button-trigger/index.d.ts +2 -0
  9. package/dist/libraries/dcui-components/src/components/partner-event-button-trigger/partner-event-button-trigger.d.ts +6 -0
  10. package/dist/libraries/dcui-components/src/contexts/index.d.ts +1 -1
  11. package/dist/libraries/dcui-components/src/contexts/schema-version-context.d.ts +2 -0
  12. package/dist/libraries/domain/src/behaviors/child-layout.d.ts +6 -0
  13. package/dist/libraries/domain/src/behaviors/global-actions.d.ts +3 -1
  14. package/dist/libraries/domain/src/behaviors/index.d.ts +1 -0
  15. package/dist/libraries/domain/src/behaviors/offer-engagement.d.ts +1 -0
  16. package/dist/libraries/domain/src/behaviors/send-partner.d.ts +14 -2
  17. package/dist/libraries/domain/src/models/layout/index.d.ts +1 -0
  18. package/dist/libraries/domain/src/models/layout/layout-child-config.d.ts +4 -0
  19. package/dist/libraries/domain/src/models/layout/layout-child-layout.d.ts +8 -0
  20. package/dist/libraries/domain/src/models/layout/layout-variant.d.ts +3 -1
  21. package/dist/libraries/domain/src/models/partner-event.d.ts +1 -1
  22. package/dist/libraries/domain/src/models/plugin/index.d.ts +1 -0
  23. package/dist/libraries/domain/src/models/plugin/plugin-child-layout-model.d.ts +6 -2
  24. package/dist/libraries/domain/src/models/plugin/plugin-creative-response-option.d.ts +4 -0
  25. package/dist/libraries/domain/src/models/plugin/plugin-layout-child.d.ts +9 -0
  26. package/dist/libraries/domain/src/models/plugin/plugin-layout-variant.d.ts +2 -0
  27. package/dist/libraries/domain/src/models/plugin/plugin-offer.d.ts +3 -0
  28. package/dist/libraries/domain/src/models/signals.d.ts +7 -1
  29. package/dist/libraries/layout-renderer-utils/src/actions/custom-states.d.ts +1 -0
  30. package/dist/libraries/module-connector/src/main.d.ts +3 -3
  31. package/dist/libraries/module-connector/src/models/module-attributes.d.ts +3 -1
  32. package/dist/libraries/module-connector/src/models/module-connector-builder.d.ts +5 -3
  33. package/dist/libraries/module-connector/src/models/module.d.ts +1 -1
  34. package/dist/libraries/orchestrator/src/actions/domain-states.d.ts +1 -0
  35. package/dist/libraries/orchestrator/src/actions/index.d.ts +2 -2
  36. package/dist/libraries/orchestrator/src/actions/offer-lifecycle.d.ts +1 -0
  37. package/dist/modules/add-to-cart/src/models/state/index.d.ts +0 -1
  38. package/dist/modules/add-to-cart/src/reducers/index.d.ts +5 -3
  39. package/dist/modules/add-to-cart/src/sagas/index.d.ts +1 -0
  40. package/dist/modules/instant-purchase/src/channels/channel.d.ts +3 -3
  41. package/dist/modules/instant-purchase/src/components/drop-down/drop-down.d.ts +7 -6
  42. package/dist/modules/instant-purchase/src/components/image-gallery/image-gallery.d.ts +28 -0
  43. package/dist/modules/instant-purchase/src/hooks/index.d.ts +1 -0
  44. package/dist/modules/instant-purchase/src/hooks/use-image-mapper.d.ts +2 -0
  45. package/dist/modules/instant-purchase/src/reducers/index.d.ts +4 -3
  46. package/dist/modules/instant-purchase/src/sagas/error-codes.d.ts +2 -0
  47. package/dist/modules/instant-purchase/src/sagas/index.d.ts +1 -0
  48. package/dist/modules/instant-purchase/src/sagas/instant-purchase/sagas.d.ts +8 -3
  49. package/dist/modules/layouts-xp-sandbox/src/reducers/index.d.ts +6 -4
  50. package/dist/modules/layouts-xp-sandbox/src/sagas/index.d.ts +1 -0
  51. package/dist/modules/standard-marketing/src/reducers/index.d.ts +8 -4
  52. package/dist/modules/standard-marketing/src/sagas/error-codes.d.ts +2 -0
  53. package/dist/modules/standard-marketing/src/sagas/index.d.ts +1 -0
  54. package/dist/modules/standard-marketing/src/sagas/offer-engagement/channels.d.ts +8 -1
  55. package/dist/modules/standard-marketing/src/sagas/offer-engagement/sagas.d.ts +4 -3
  56. package/node_modules/@rokt/plugin/interface/child-plugin-factory.d.ts +1 -0
  57. package/node_modules/@rokt/plugin/interface/rdn.d.ts +1 -0
  58. package/node_modules/@rokt/plugin/package.json +1 -1
  59. package/package.json +2 -2
  60. package/dist/libraries/dcui-components/src/contexts/when-visibility-context.d.ts +0 -6
  61. package/dist/modules/add-to-cart/src/models/state/static-data.d.ts +0 -5
  62. package/dist/modules/add-to-cart/src/reducers/static-data/index.d.ts +0 -1
  63. package/dist/modules/add-to-cart/src/reducers/static-data/reducer.d.ts +0 -4
  64. package/dist/modules/instant-purchase/src/models/index.d.ts +0 -1
  65. package/dist/modules/instant-purchase/src/models/state/index.d.ts +0 -1
  66. package/dist/modules/instant-purchase/src/models/state/static-data.d.ts +0 -5
  67. package/dist/modules/instant-purchase/src/reducers/static-data/index.d.ts +0 -1
  68. package/dist/modules/instant-purchase/src/reducers/static-data/reducer.d.ts +0 -4
  69. package/dist/modules/layouts-xp-sandbox/src/reducers/mock/index.d.ts +0 -1
  70. package/dist/modules/layouts-xp-sandbox/src/reducers/mock/reducer.d.ts +0 -9
  71. package/dist/modules/standard-marketing/src/reducers/mock/index.d.ts +0 -1
  72. package/dist/modules/standard-marketing/src/reducers/mock/reducer.d.ts +0 -9
@@ -1,10 +1,14 @@
1
1
  import { GlobalActions } from '../../../../libraries/domain/src/behaviors';
2
- import { mockReducer, MockState } from './mock';
2
+ import { ChildLayoutActions, childLayoutsReducer, ChildLayoutsState, StaticData, staticDataReducer, DynamicData, dynamicDataReducer } from '@rokt/module-utils';
3
3
  export type AppState = {
4
- mock: MockState;
4
+ staticData: StaticData;
5
+ dynamicData: DynamicData;
6
+ childLayouts: ChildLayoutsState;
5
7
  };
6
- export type StateActions = GlobalActions;
8
+ export type StateActions = GlobalActions | ChildLayoutActions;
7
9
  export declare const appReducers: {
8
- mock: typeof mockReducer;
10
+ staticData: typeof staticDataReducer;
11
+ dynamicData: typeof dynamicDataReducer;
12
+ childLayouts: typeof childLayoutsReducer;
9
13
  };
10
14
  export declare function makeAppInitialState(data?: Partial<AppState>): AppState;
@@ -0,0 +1,2 @@
1
+ export declare const FAILED_TO_PROCESS_REALTIME_OFFER_FULFILLMENT_EVENT = "FAILED_TO_PROCESS_REALTIME_OFFER_FULFILLMENT_EVENT";
2
+ export declare const UNKNOWN_REALTIME_OFFER_FULFILLMENT_EVENT = "UNKNOWN_REALTIME_OFFER_FULFILLMENT_EVENT";
@@ -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'>): import("redux-saga").EventChannel<ChildPluginResult>;
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<import("redux-saga/effects").ChannelTakeEffect<"SUCCESS" | "UNSPECIFIED" | "CLOSED">, void, ChildPluginResult>;
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>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokt/plugin",
3
- "version": "5.8.0",
3
+ "version": "5.9.1",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "license": "SEE LICENSE IN license",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokt/dcui-orchestrator",
3
- "version": "0.0.2-rc.4",
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.8.0"
21
+ "@rokt/plugin": "^5.9.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@rokt/partner-integration": "^4.7.0",
@@ -1,6 +0,0 @@
1
- export type WhenVisibility = 'HIDDEN' | 'VISIBLE';
2
- export declare const WhenVisibilityContext: import("react").Context<string>;
3
- export declare const useWhenVisibilityContext: () => string;
4
- export declare function useVisibilityStyles(): {
5
- display: string;
6
- } | undefined;
@@ -1,5 +0,0 @@
1
- import { PluginOffer } from '../../../../../libraries/domain/src/models';
2
- export type StaticData = null | {
3
- offer: PluginOffer;
4
- position: number;
5
- };
@@ -1 +0,0 @@
1
- export * from './reducer';
@@ -1,4 +0,0 @@
1
- import { AnyAction } from '@reduxjs/toolkit';
2
- import { StaticData } from '../../models';
3
- export declare function makeInitialStaticData(): StaticData;
4
- export declare function staticDataReducer(state: StaticData | undefined, _action: AnyAction): StaticData;
@@ -1 +0,0 @@
1
- export * from './state';
@@ -1 +0,0 @@
1
- export * from './static-data';
@@ -1,5 +0,0 @@
1
- import { PluginOffer } from '../../../../../libraries/domain/src/models';
2
- export type StaticData = null | {
3
- offer: PluginOffer;
4
- position: number;
5
- };
@@ -1 +0,0 @@
1
- export * from './reducer';
@@ -1,4 +0,0 @@
1
- import { AnyAction } from '@reduxjs/toolkit';
2
- import { StaticData } from '../../models';
3
- export declare function makeInitialStaticData(): StaticData;
4
- export declare function staticDataReducer(state: StaticData | undefined, _action: AnyAction): StaticData;
@@ -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;