@rokt/dcui-orchestrator 0.0.4-rc.26 → 0.0.4-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.
- package/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/dist/libraries/module-connector/src/models/module-attributes.d.ts +1 -0
- package/dist/libraries/module-connector/src/models/module-connector-builder.d.ts +1 -0
- package/dist/libraries/orchestrator/src/models/state/global-offer-data-state.d.ts +1 -6
- package/dist/libraries/orchestrator/src/selectors/global-offer-data-state/selectors.d.ts +3 -0
- package/dist/modules/add-to-cart/src/models/state/appSettingsOfferState.d.ts +8 -0
- package/dist/modules/add-to-cart/src/models/state/index.d.ts +1 -0
- package/dist/modules/add-to-cart/src/reducers/cart/index.d.ts +1 -0
- package/dist/modules/add-to-cart/src/reducers/cart/reducer.d.ts +2 -2
- package/dist/modules/add-to-cart/src/reducers/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,3 +2,6 @@ import { GlobalOfferDataState } from '../../models';
|
|
|
2
2
|
export declare function getTotalCartQty(state: {
|
|
3
3
|
globalOfferDataState: GlobalOfferDataState;
|
|
4
4
|
}): number;
|
|
5
|
+
export declare function getOfferState(state: {
|
|
6
|
+
globalOfferDataState: GlobalOfferDataState;
|
|
7
|
+
}, position: number): unknown;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type AppSettingsOfferState = {
|
|
2
|
+
cart: Array<AppSettingsCartItemState>;
|
|
3
|
+
};
|
|
4
|
+
export type AppSettingsCartItemState = {
|
|
5
|
+
cartItemId: string;
|
|
6
|
+
quantity: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function isAppSettingsOfferState(offerState: unknown): offerState is AppSettingsOfferState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './reducer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { CartState } from '../../models';
|
|
3
|
-
export declare function makeInitialCartState(): CartState;
|
|
2
|
+
import { CartState, AppSettingsCartItemState } from '../../models';
|
|
3
|
+
export declare function makeInitialCartState(cart: Array<AppSettingsCartItemState>): CartState;
|
|
4
4
|
export declare function cartReducer(state: CartState | undefined, action: AnyAction): CartState;
|