@rokt/dcui-orchestrator 1.2.1-rc.4 → 1.2.1-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.
@@ -6,10 +6,17 @@ export declare const TRIGGER_SELECT_ITEM = "CATALOG/TRIGGER_SELECT_ITEM";
6
6
  export type TriggerSelectItemAction = {
7
7
  type: typeof TRIGGER_SELECT_ITEM;
8
8
  payload: SetSelectedItemPayload;
9
+ preserveAttributeSelections?: boolean;
9
10
  };
10
11
  export declare const SET_SELECTED_ITEM = "CATALOG/SET_SELECTED_ITEM";
11
12
  export type SetSelectedItemAction = {
12
13
  type: typeof SET_SELECTED_ITEM;
13
14
  payload: SetSelectedItemPayload;
15
+ preserveAttributeSelections?: boolean;
14
16
  };
15
- export type CatalogSelectionActions = SetSelectedItemAction | TriggerSelectItemAction;
17
+ export declare const SET_CATALOG_ATTRIBUTE_SELECTIONS = "CATALOG/SET_ATTRIBUTE_SELECTIONS";
18
+ export type SetCatalogAttributeSelectionsAction = {
19
+ type: typeof SET_CATALOG_ATTRIBUTE_SELECTIONS;
20
+ payload: Record<string, string>;
21
+ };
22
+ export type CatalogSelectionActions = SetCatalogAttributeSelectionsAction | SetSelectedItemAction | TriggerSelectItemAction;
@@ -1,4 +1,6 @@
1
1
  import { AnyAction } from '@reduxjs/toolkit';
2
2
  import { CatalogSelectionState } from '../../models/state/catalog-selection';
3
+ export type CatalogAttributeSelectionsState = Record<string, string> | null;
4
+ export declare const catalogAttributeSelectionsReducer: (state: CatalogAttributeSelectionsState | undefined, action: AnyAction) => CatalogAttributeSelectionsState;
3
5
  export declare function makeInitialCatalogSelectionState(): CatalogSelectionState;
4
6
  export declare const catalogReducer: (state: CatalogSelectionState | undefined, action: AnyAction) => CatalogSelectionState;
@@ -1,6 +1,7 @@
1
1
  import { GlobalActions } from '../../../../libraries/domain/src/behaviors';
2
2
  import { ChildLayoutActions, childLayoutsReducer, ChildLayoutsState, StaticData, staticDataReducer, DynamicData, dynamicDataReducer } from '../../../../libraries/module-utils/src/index';
3
3
  import { CatalogSelectionState, DevicePayAvailabilityState, FulfillmentDetailsState, OfferLifecycleEventState, TaxAndShippingState } from '../models';
4
+ import { CatalogAttributeSelectionsState } from './catalog-selection/reducer';
4
5
  import { DevicePayRequestsState } from './device-pay-requests';
5
6
  import { PurchaseIdState } from './instant-purchase';
6
7
  import { PayPalTransactionDetailsState } from './paypal-transaction-details';
@@ -8,6 +9,7 @@ import { PayPalPurchaseContextState } from './paypal-purchase-context';
8
9
  export type AppState = {
9
10
  staticData: StaticData;
10
11
  selectedItem: CatalogSelectionState;
12
+ catalogAttributeSelections: CatalogAttributeSelectionsState;
11
13
  dynamicData: DynamicData;
12
14
  childLayouts: ChildLayoutsState;
13
15
  fulfillmentDetails: FulfillmentDetailsState;
@@ -23,6 +25,7 @@ export type StateActions = GlobalActions | ChildLayoutActions;
23
25
  export declare const appReducers: {
24
26
  staticData: typeof staticDataReducer;
25
27
  selectedItem: (state: CatalogSelectionState | undefined, action: import("redux").AnyAction) => CatalogSelectionState;
28
+ catalogAttributeSelections: (state: CatalogAttributeSelectionsState | undefined, action: import("redux").AnyAction) => CatalogAttributeSelectionsState;
26
29
  dynamicData: typeof dynamicDataReducer;
27
30
  childLayouts: typeof childLayoutsReducer;
28
31
  fulfillmentDetails: (state: FulfillmentDetailsState | undefined, action: import("redux").AnyAction) => FulfillmentDetailsState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokt/dcui-orchestrator",
3
- "version": "1.2.1-rc.4",
3
+ "version": "1.2.1-rc.6",
4
4
  "description": "Rokt's DCUI rendering process",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",