@rokt/dcui-orchestrator 0.0.4-rc.30 → 0.0.4-rc.32
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 +23 -23
- package/dist/index.js +23 -23
- package/dist/modules/instant-purchase/src/actions/checkout-lifecycle.d.ts +10 -0
- package/dist/modules/instant-purchase/src/components/{image-gallery/image-gallery.d.ts → catalog-image-gallery/catalog-image-gallery.d.ts} +10 -11
- package/dist/modules/instant-purchase/src/components/checkout-state-button-trigger/checkout-state-button-trigger.d.ts +2 -0
- package/dist/modules/instant-purchase/src/sagas/checkout-lifecycle/sagas.d.ts +4 -3
- package/package.json +1 -1
- package/dist/modules/instant-purchase/src/hooks/index.d.ts +0 -1
- package/dist/modules/instant-purchase/src/hooks/use-image-mapper.d.ts +0 -2
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
import type { CompletionReason, DismissalReason } from '../../../../libraries/domain/src/behaviors';
|
|
1
2
|
export declare const CHECKOUT_LIFECYCLE = "CHECKOUT_LIFECYCLE";
|
|
2
3
|
export interface CheckoutLifecycle {
|
|
3
4
|
type: typeof CHECKOUT_LIFECYCLE;
|
|
4
5
|
payload: CheckoutLifecyclePayload;
|
|
5
6
|
}
|
|
7
|
+
export type CloseOfferData = {
|
|
8
|
+
event: 'Completed';
|
|
9
|
+
reason: CompletionReason;
|
|
10
|
+
} | {
|
|
11
|
+
event: 'Dismissed';
|
|
12
|
+
reason: DismissalReason;
|
|
13
|
+
};
|
|
14
|
+
export type CheckoutStateData = CloseOfferData;
|
|
6
15
|
export type CheckoutLifecyclePayload = {
|
|
7
16
|
event: 'Checkout';
|
|
8
17
|
targetStep: CheckoutStep;
|
|
9
18
|
offerPositionIndex: number;
|
|
19
|
+
data?: CheckoutStateData;
|
|
10
20
|
};
|
|
11
21
|
export type CheckoutStep = 'ViewOffer' | 'ViewTransactionDetails' | 'EditPayment' | 'EditShipping' | 'EditPaymentAndShipping' | 'CostBreakdown' | 'Confirmation' | 'CloseOffer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BackgroundStylingProperties, BasicStateStylingBlock, BorderStylingProperties, ConditionalStyleTransition, ContainerStylingProperties, DataImageStyles, DimensionStylingProperties, FlexChildStylingProperties, LayoutStyle, RowStyle, SpacingStylingProperties, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
-
interface
|
|
2
|
+
interface CatalogImageGalleryStyles {
|
|
3
3
|
container?: null | ContainerStylingProperties;
|
|
4
4
|
background?: null | BackgroundStylingProperties;
|
|
5
5
|
border?: null | BorderStylingProperties;
|
|
@@ -7,22 +7,21 @@ interface ImageGalleryStyles {
|
|
|
7
7
|
flexChild?: null | FlexChildStylingProperties;
|
|
8
8
|
spacing?: null | SpacingStylingProperties;
|
|
9
9
|
}
|
|
10
|
-
interface
|
|
11
|
-
own: BasicStateStylingBlock<
|
|
10
|
+
interface CatalogImageGalleryElements {
|
|
11
|
+
own: BasicStateStylingBlock<CatalogImageGalleryStyles>[];
|
|
12
12
|
mainImage: BasicStateStylingBlock<DataImageStyles>[];
|
|
13
13
|
thumbnailImage: BasicStateStylingBlock<DataImageStyles>[];
|
|
14
14
|
thumbnailList: BasicStateStylingBlock<RowStyle>[];
|
|
15
15
|
}
|
|
16
|
-
interface
|
|
17
|
-
own?: null |
|
|
16
|
+
interface CatalogImageGalleryTransitions {
|
|
17
|
+
own?: null | CatalogImageGalleryStyles;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
20
|
-
styles?: null | LayoutStyle<
|
|
21
|
-
imageKeys: Array<string>;
|
|
19
|
+
export interface CatalogImageGalleryModel<Predicates> {
|
|
20
|
+
styles?: null | LayoutStyle<CatalogImageGalleryElements, ConditionalStyleTransition<CatalogImageGalleryTransitions, Predicates>>;
|
|
22
21
|
}
|
|
23
|
-
export interface
|
|
24
|
-
schema:
|
|
22
|
+
export interface CatalogImageGalleryProps {
|
|
23
|
+
schema: CatalogImageGalleryModel<WhenPredicate>;
|
|
25
24
|
testId?: string;
|
|
26
25
|
}
|
|
27
|
-
export declare function
|
|
26
|
+
export declare function CatalogImageGallery(props: CatalogImageGalleryProps): import("react/jsx-runtime").JSX.Element | null;
|
|
28
27
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BackgroundStylingProperties, BorderStylingProperties, ConditionalStyleTransition, ContainerStylingProperties, DimensionStylingProperties, FlexChildStylingProperties, LayoutStyle, NonInteractableChildren, SpacingStylingProperties, StatelessStylingBlock, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
2
|
import { CheckoutStep } from '../../actions/checkout-lifecycle';
|
|
3
|
+
import type { CheckoutStateData } from '../../actions/checkout-lifecycle';
|
|
3
4
|
export interface CheckoutStateButtonTriggerStyles {
|
|
4
5
|
background?: null | BackgroundStylingProperties;
|
|
5
6
|
border?: null | BorderStylingProperties;
|
|
@@ -17,6 +18,7 @@ export interface CheckoutStateButtonTriggerElements {
|
|
|
17
18
|
export interface CheckoutStateButtonTriggerModel<Children, Predicates> {
|
|
18
19
|
a11yLabel?: null | string;
|
|
19
20
|
targetStep: CheckoutStep;
|
|
21
|
+
data?: CheckoutStateData;
|
|
20
22
|
styles?: null | LayoutStyle<CheckoutStateButtonTriggerElements, ConditionalStyleTransition<CheckoutStateButtonTriggerTransitions, Predicates>>;
|
|
21
23
|
children: Children[];
|
|
22
24
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { PutEffect } from 'redux-saga/effects';
|
|
2
|
-
import { CheckoutLifecycle } from '../../actions';
|
|
3
|
-
|
|
1
|
+
import { PutEffect, CallEffect } from 'redux-saga/effects';
|
|
2
|
+
import { CheckoutLifecycle } from '../../actions/checkout-lifecycle';
|
|
3
|
+
import { Log } from '../../../../../libraries/domain/src/models';
|
|
4
|
+
export declare function handleCheckoutLifecycle(logger: (log: Log) => void, action: CheckoutLifecycle): Generator<PutEffect | CallEffect, void, never>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './use-image-mapper';
|