@rokt/dcui-orchestrator 0.2.1-rc.30 → 0.2.1-rc.31
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 +19 -19
- package/dist/index.js +14 -14
- package/dist/modules/instant-purchase/src/components/escape-hatch/factory.d.ts +1 -1
- package/dist/modules/instant-purchase/src/components/escape-hatch/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/inline-container/factory.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/inline-container/inline-container.d.ts +40 -0
- package/dist/modules/instant-purchase/src/components/offer-lifecycle-timer/offer-lifecycle-timer.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/rich-text/factory.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/rich-text/rich-text.d.ts +60 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
|
|
2
|
-
export declare function tryMakeEscapeHatch(schema: LayoutSchemaModel): JSX.Element | undefined;
|
|
2
|
+
export declare function tryMakeEscapeHatch(schema: LayoutSchemaModel, isInline?: boolean): JSX.Element | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './factory';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { InlineContainerModel, LayoutSchemaModel, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
interface InlineContainerProps<Children extends LayoutSchemaModel> {
|
|
3
|
+
/**
|
|
4
|
+
* - `a11yLabel`: define a custom accessibility label for the screen reader
|
|
5
|
+
* - `children`: it can accept below nodes,
|
|
6
|
+
* * `BasicText (with inline styles only)`
|
|
7
|
+
* * `StaticLink (with inline styles only)`
|
|
8
|
+
* * `ToggleButtonStateTrigger (with inline styles only)`
|
|
9
|
+
* - `styles`:
|
|
10
|
+
* * `elements`:
|
|
11
|
+
* - `own`:
|
|
12
|
+
* * `container`
|
|
13
|
+
* * `dimension`
|
|
14
|
+
* * `flexChild`
|
|
15
|
+
* * `spacing`
|
|
16
|
+
* * `background`
|
|
17
|
+
* * `border`
|
|
18
|
+
* * `transitions`:
|
|
19
|
+
* - `type`: 'Conditional'
|
|
20
|
+
* - `transition`:
|
|
21
|
+
* * `predicates`: WhenPredicate[]
|
|
22
|
+
* * `duration`: number
|
|
23
|
+
* * `value`:
|
|
24
|
+
* - `own`:
|
|
25
|
+
* * `container`
|
|
26
|
+
* * `dimension`
|
|
27
|
+
* * `flexChild`
|
|
28
|
+
* * `spacing`
|
|
29
|
+
* * `background`
|
|
30
|
+
* * `border`
|
|
31
|
+
*/
|
|
32
|
+
schema: InlineContainerModel<Children, WhenPredicate>;
|
|
33
|
+
testId?: string;
|
|
34
|
+
}
|
|
35
|
+
/** The Inline Container is a layout node that organises and aligns content horizontally,
|
|
36
|
+
* treating every child as an inline element.<br>
|
|
37
|
+
* *Where can we use this: __outer layout__, __layout variant__*
|
|
38
|
+
* */
|
|
39
|
+
export declare function InlineContainer<Children extends LayoutSchemaModel>(props: InlineContainerProps<Children>): JSX.Element;
|
|
40
|
+
export {};
|
|
@@ -19,6 +19,7 @@ export interface OfferLifecycleTimerModel<Predicates> {
|
|
|
19
19
|
}
|
|
20
20
|
export interface OfferLifecycleTimerProps {
|
|
21
21
|
schema: OfferLifecycleTimerModel<WhenPredicate>;
|
|
22
|
+
isInline?: boolean;
|
|
22
23
|
testId?: string;
|
|
23
24
|
}
|
|
24
25
|
export declare function OfferLifecycleTimer(props: OfferLifecycleTimerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { BasicStateStylingBlock, InLineTextStyle, RichTextStyle, ConditionalStyleTransition, RichTextTransitions, LayoutStyle, LinkOpenTarget, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export interface RichTextElements {
|
|
3
|
+
own: BasicStateStylingBlock<RichTextStyle>[];
|
|
4
|
+
link?: null | BasicStateStylingBlock<InLineTextStyle>[];
|
|
5
|
+
}
|
|
6
|
+
interface RichTextModel<Predicates> {
|
|
7
|
+
styles?: null | LayoutStyle<RichTextElements, ConditionalStyleTransition<RichTextTransitions, Predicates>>;
|
|
8
|
+
openLinks?: null | LinkOpenTarget;
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
export interface RichTextProps {
|
|
12
|
+
/**
|
|
13
|
+
* - `openLinks`: 'internally' | 'externally'
|
|
14
|
+
* - `value`: the textual content. It supports:
|
|
15
|
+
* * plain text;
|
|
16
|
+
* * html: `<em>`, `<strong>`, `<a>`, '<br>', '<u>';
|
|
17
|
+
* * data expansion placeholder: e.g `%^DATA.creativeCopy.creative.title|^%`,
|
|
18
|
+
* `%^DATA.creativeCopy.creative.copy|^%`,
|
|
19
|
+
* `%^DATA.creativeLink.termsAndConditions|^%`,
|
|
20
|
+
* `%^DATA.creativeLink.privacyPolicy|^%`.
|
|
21
|
+
* - `styles`:
|
|
22
|
+
* * `elements`:
|
|
23
|
+
* - `own`:
|
|
24
|
+
* * `dimension`
|
|
25
|
+
* * `flexChild`
|
|
26
|
+
* * `spacing`
|
|
27
|
+
* * `background`
|
|
28
|
+
* * `text`
|
|
29
|
+
* - `link`:
|
|
30
|
+
* * `text`
|
|
31
|
+
*/
|
|
32
|
+
schema: RichTextModel<WhenPredicate>;
|
|
33
|
+
isInline?: boolean;
|
|
34
|
+
testId?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const sanitiseOptions: {
|
|
37
|
+
allowedTags: string[];
|
|
38
|
+
allowedAttributes: {
|
|
39
|
+
a: string[];
|
|
40
|
+
strong: never[];
|
|
41
|
+
em: never[];
|
|
42
|
+
br: never[];
|
|
43
|
+
u: never[];
|
|
44
|
+
p: never[];
|
|
45
|
+
ol: never[];
|
|
46
|
+
ul: never[];
|
|
47
|
+
li: never[];
|
|
48
|
+
span: never[];
|
|
49
|
+
};
|
|
50
|
+
allowedSchemes: string[];
|
|
51
|
+
};
|
|
52
|
+
export declare const insaneExceptionCharacters: Map<string, string>;
|
|
53
|
+
export declare const breaklinePattern: RegExp;
|
|
54
|
+
/**The RichText override-Node is meant to be used for testing new element-styling only.<br>
|
|
55
|
+
* If no additional functionality is required for an instance of RichText, it is recommended to use the base node in plugin.<br>
|
|
56
|
+
* It also supports data expansion with namespace 'creativeCopy'.<br>
|
|
57
|
+
* *Where can we use this: __outer layout__, __layout variant__*
|
|
58
|
+
* */
|
|
59
|
+
export declare function RichText(props: RichTextProps): import("react/jsx-runtime").JSX.Element | null;
|
|
60
|
+
export {};
|