@rokt/dcui-orchestrator 0.2.1-rc.36 → 0.2.1-rc.37
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 +36 -36
- package/dist/index.js +14 -14
- package/dist/modules/instant-purchase/src/components/catalog-discount-callout-tag/catalog-discount-callout-tag.d.ts +90 -0
- package/dist/modules/instant-purchase/src/components/offer-lifecycle-timer/offer-lifecycle-timer.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { BackgroundStylingProperties, BasicStateStylingBlock, BorderStylingProperties, ConditionalStyleTransition, DimensionStylingProperties, ContainerStylingProperties, FlexChildStylingProperties, LayoutStyle, SpacingStylingProperties, WhenPredicate, TextStylingProperties, NonInteractableChildren } from '@rokt/dcui-layout-schema';
|
|
2
|
+
import { PluginCatalogItem } from '@rokt/domain/src/models';
|
|
3
|
+
export interface CatalogDiscountCalloutTagStyles {
|
|
4
|
+
container?: null | ContainerStylingProperties;
|
|
5
|
+
background?: null | BackgroundStylingProperties;
|
|
6
|
+
border?: null | BorderStylingProperties;
|
|
7
|
+
dimension?: null | DimensionStylingProperties;
|
|
8
|
+
flexChild?: null | FlexChildStylingProperties;
|
|
9
|
+
spacing?: null | SpacingStylingProperties;
|
|
10
|
+
/**
|
|
11
|
+
* TODO [utyp-857] - Remove once catalogItem model is updated and when Numeric
|
|
12
|
+
* predicates support dynamic predicate values for
|
|
13
|
+
*/
|
|
14
|
+
text?: null | TextStylingProperties;
|
|
15
|
+
}
|
|
16
|
+
export interface CatalogDiscountCalloutTagTransitions {
|
|
17
|
+
own?: null | CatalogDiscountCalloutTagStyles;
|
|
18
|
+
}
|
|
19
|
+
export interface CatalogDiscountCalloutTagElements {
|
|
20
|
+
own: BasicStateStylingBlock<CatalogDiscountCalloutTagStyles>[];
|
|
21
|
+
/**
|
|
22
|
+
* TODO [utyp-857] - Remove once catalogItem model is updated and when Numeric
|
|
23
|
+
* predicates support dynamic predicate values for
|
|
24
|
+
*/
|
|
25
|
+
originalPrice?: BasicStateStylingBlock<CatalogDiscountCalloutTagStyles>[];
|
|
26
|
+
}
|
|
27
|
+
export interface CatalogDiscountCalloutTagModel<Predicates> {
|
|
28
|
+
discountThreshold: number;
|
|
29
|
+
children: NonInteractableChildren[];
|
|
30
|
+
styles?: null | LayoutStyle<CatalogDiscountCalloutTagElements, ConditionalStyleTransition<CatalogDiscountCalloutTagTransitions, Predicates>>;
|
|
31
|
+
}
|
|
32
|
+
export interface CatalogDiscountCalloutTagProps {
|
|
33
|
+
/**
|
|
34
|
+
* - `children`: it can accept below nodes,
|
|
35
|
+
* * `Row`
|
|
36
|
+
* * `FlowRow
|
|
37
|
+
* * `Column`
|
|
38
|
+
* * `ZStack`
|
|
39
|
+
* * `BasicText`
|
|
40
|
+
* * `StaticImage`
|
|
41
|
+
* * `DataImage`
|
|
42
|
+
* * `When`
|
|
43
|
+
* * `DataIcon`
|
|
44
|
+
* * `StaticIcon`
|
|
45
|
+
* * `EscapeHatch`
|
|
46
|
+
* - `discountThreshold`:
|
|
47
|
+
* * `number`
|
|
48
|
+
* - `styles`:
|
|
49
|
+
* * `elements`:
|
|
50
|
+
* * `own`:
|
|
51
|
+
* - `container`
|
|
52
|
+
* - `background`
|
|
53
|
+
* - `border`
|
|
54
|
+
* - `dimension`
|
|
55
|
+
* - `flexChild`
|
|
56
|
+
* - `spacing`
|
|
57
|
+
* * `transitions`:
|
|
58
|
+
* - `type`: 'Conditional'
|
|
59
|
+
* - `transition`:
|
|
60
|
+
* * `predicates`: WhenPredicate[]
|
|
61
|
+
* * `duration`: number
|
|
62
|
+
* * `value`:
|
|
63
|
+
* * `own`:
|
|
64
|
+
* - `container`
|
|
65
|
+
* - `background`
|
|
66
|
+
* - `border`
|
|
67
|
+
* - `dimension`
|
|
68
|
+
* - `flexChild`
|
|
69
|
+
* - `spacing`
|
|
70
|
+
*/
|
|
71
|
+
schema: CatalogDiscountCalloutTagModel<WhenPredicate>;
|
|
72
|
+
testId?: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* TODO [utyp-857] - Remove once catalogItem model is updated and when Numeric
|
|
76
|
+
* predicates support dynamic predicate values for
|
|
77
|
+
*/
|
|
78
|
+
export interface ExtendedCatalogItem extends PluginCatalogItem {
|
|
79
|
+
originalPrice: number;
|
|
80
|
+
originalPriceFormatted: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* TODO [utyp-857] - Remove once catalogItem model is updated and when Numeric
|
|
84
|
+
* predicates support dynamic predicate values for
|
|
85
|
+
*
|
|
86
|
+
* Temporary implementation of a discount callout tag. see:
|
|
87
|
+
* https://chat.google.com/room/AAAAyw1UKdw/NO4XvPCB3Wg/NO4XvPCB3Wg?cls=10
|
|
88
|
+
*/
|
|
89
|
+
export declare function TempCatalogDiscountCalloutTag(props: CatalogDiscountCalloutTagProps): import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
export declare function CatalogDiscountCalloutTag(props: CatalogDiscountCalloutTagProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,7 @@ export interface OfferLifecycleTimerTransitions {
|
|
|
14
14
|
}
|
|
15
15
|
export interface OfferLifecycleTimerModel<Predicates> {
|
|
16
16
|
durationInSeconds: number;
|
|
17
|
+
key: string;
|
|
17
18
|
format?: 'M:SS' | 'S';
|
|
18
19
|
styles?: LayoutStyle<OfferLifecycleTimerElements, ConditionalStyleTransition<OfferLifecycleTimerTransitions, Predicates>>;
|
|
19
20
|
}
|