@rokt/dcui-orchestrator 0.0.2-rc.6 → 0.0.2-rc.7
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 +22 -22
- package/dist/libraries/dcui-components/src/components/copy-to-clipboard-button/copy-to-clipboard-button.d.ts +48 -0
- package/dist/libraries/dcui-components/src/components/copy-to-clipboard-button/factory.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/copy-to-clipboard-button/index.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/index.d.ts +1 -0
- package/dist/libraries/domain/src/behaviors/offer-engagement.d.ts +0 -1
- package/dist/libraries/domain/src/models/plugin/plugin-creative-response-option.d.ts +0 -4
- package/dist/libraries/domain/src/models/signals.d.ts +1 -7
- package/dist/libraries/layout-renderer-utils/src/actions/custom-states.d.ts +0 -1
- package/dist/libraries/orchestrator/src/actions/domain-states.d.ts +0 -1
- package/dist/libraries/orchestrator/src/actions/offer-lifecycle.d.ts +0 -1
- package/node_modules/@rokt/plugin/interface/child-plugin-factory.d.ts +0 -1
- package/node_modules/@rokt/plugin/interface/rdn.d.ts +0 -1
- package/node_modules/@rokt/plugin/package.json +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LayoutSchemaModel, CopyToClipboardButtonModel, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export interface CopyToClipboardButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* - `a11yLabel`: the aria-label for the button
|
|
5
|
+
* - `value`: the text to be copied to the clipboard
|
|
6
|
+
* - `customStateKey`: the name of the custom state that should be updated.
|
|
7
|
+
* - `children`: it can accept below nodes,
|
|
8
|
+
* * `Row`
|
|
9
|
+
* * `FlowRow`
|
|
10
|
+
* * `Column`
|
|
11
|
+
* * `ZStack`
|
|
12
|
+
* * `BasicText`
|
|
13
|
+
* * `StaticImage`
|
|
14
|
+
* * `StaticIcon`
|
|
15
|
+
* * `DataImage` -> When present in Layout Variant
|
|
16
|
+
* * `DataIcon` -> When present in Layout Variant
|
|
17
|
+
* * `When`
|
|
18
|
+
* * `InlineContainer`
|
|
19
|
+
* - `styles`:
|
|
20
|
+
* * `elements`:
|
|
21
|
+
* * `own`:
|
|
22
|
+
* - `container`
|
|
23
|
+
* - `background`
|
|
24
|
+
* - `border`
|
|
25
|
+
* - `dimension`
|
|
26
|
+
* - `flexChild`
|
|
27
|
+
* - `spacing`
|
|
28
|
+
* * `transitions`:
|
|
29
|
+
* - `type`: 'Conditional'
|
|
30
|
+
* - `transition`:
|
|
31
|
+
* * `predicates`: WhenPredicate[]
|
|
32
|
+
* * `duration`: number
|
|
33
|
+
* * `value`:
|
|
34
|
+
* * `own`:
|
|
35
|
+
* - `container`
|
|
36
|
+
* - `background`
|
|
37
|
+
* - `border`
|
|
38
|
+
* - `dimension`
|
|
39
|
+
* - `flexChild`
|
|
40
|
+
* - `spacing`
|
|
41
|
+
*/
|
|
42
|
+
schema: CopyToClipboardButtonModel<LayoutSchemaModel, WhenPredicate>;
|
|
43
|
+
testId?: string;
|
|
44
|
+
}
|
|
45
|
+
/**The CopyToClipboardButton is a button that copies a text to the clipboard on click.<br>
|
|
46
|
+
* *Where can we use this: __outer layout__, __layout variant__ & __child layout__*
|
|
47
|
+
* */
|
|
48
|
+
export declare function CopyToClipboardButton(props: CopyToClipboardButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,7 +15,6 @@ export interface OfferEngagementFulfillmentPayload {
|
|
|
15
15
|
export interface OfferEngagementUrlPayload extends PluginCreativeUrlResponseOption {
|
|
16
16
|
accountID: string;
|
|
17
17
|
referralCreativeID?: string;
|
|
18
|
-
creativeInstanceGuid?: string;
|
|
19
18
|
}
|
|
20
19
|
export type OfferEngagementCaptureOnlyPayload = PluginCreativeCaptureOnlyResponseOption;
|
|
21
20
|
export type OfferEngagementExternalPayload = PluginCreativeExternalResponseOption;
|
|
@@ -14,7 +14,6 @@ export interface PluginCreativeFulfillmentResponseOption {
|
|
|
14
14
|
isPositive: boolean;
|
|
15
15
|
url?: string;
|
|
16
16
|
urlBehavior?: PluginUrlBehavior;
|
|
17
|
-
creativeInstanceGuid?: string;
|
|
18
17
|
}
|
|
19
18
|
export interface PluginCreativeUrlResponseOption {
|
|
20
19
|
id: string;
|
|
@@ -29,7 +28,6 @@ export interface PluginCreativeUrlResponseOption {
|
|
|
29
28
|
urlBehavior?: PluginUrlBehavior;
|
|
30
29
|
conversionType?: PluginConversionType;
|
|
31
30
|
rclid?: string;
|
|
32
|
-
creativeInstanceGuid?: string;
|
|
33
31
|
}
|
|
34
32
|
export interface PluginCreativeCaptureOnlyResponseOption {
|
|
35
33
|
id: string;
|
|
@@ -42,7 +40,6 @@ export interface PluginCreativeCaptureOnlyResponseOption {
|
|
|
42
40
|
isPositive: boolean;
|
|
43
41
|
url?: string;
|
|
44
42
|
urlBehavior?: PluginUrlBehavior;
|
|
45
|
-
creativeInstanceGuid?: string;
|
|
46
43
|
}
|
|
47
44
|
export interface PluginCreativeExternalResponseOption {
|
|
48
45
|
id: string;
|
|
@@ -51,7 +48,6 @@ export interface PluginCreativeExternalResponseOption {
|
|
|
51
48
|
signalType: PluginSignalType;
|
|
52
49
|
isPositive: boolean;
|
|
53
50
|
externalKey?: string;
|
|
54
|
-
creativeInstanceGuid?: string;
|
|
55
51
|
}
|
|
56
52
|
export declare function makePluginResponseOption(data?: Partial<PluginCreativeResponseOption>): PluginCreativeResponseOption;
|
|
57
53
|
export declare function makeUrlPluginResponseOption(data?: Partial<PluginCreativeUrlResponseOption>): PluginCreativeUrlResponseOption;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PluginCreativeResponseActionType } from './plugin';
|
|
2
|
-
export type Signals =
|
|
3
|
-
creativeInstanceGuid?: string;
|
|
4
|
-
};
|
|
2
|
+
export type Signals = CoreSignals | CartSignals;
|
|
5
3
|
export type CoreSignals = LoadStart | LoadComplete | Activation | Impression | Response | Dismissal | UserInteraction | InstantPurchaseDismissal;
|
|
6
4
|
export type ResponseActionPayload = CaptureOnlyAction | UrlAction | ExternalAction | FulfillmentAction;
|
|
7
5
|
export type CartSignals = CartItemInstantPurchaseInitiated | CartItemInstantPurchase | CartItemInstantPurchaseFailure | CartItemQuantitySelected;
|
|
@@ -85,20 +83,16 @@ export interface UserInteraction {
|
|
|
85
83
|
}
|
|
86
84
|
export interface CaptureOnlyAction {
|
|
87
85
|
name: PluginCreativeResponseActionType.CaptureOnly;
|
|
88
|
-
creativeInstanceGuid?: string;
|
|
89
86
|
}
|
|
90
87
|
export interface UrlAction {
|
|
91
88
|
name: PluginCreativeResponseActionType.Url;
|
|
92
89
|
transformedTrafficURL: string;
|
|
93
|
-
creativeInstanceGuid?: string;
|
|
94
90
|
}
|
|
95
91
|
export interface FulfillmentAction {
|
|
96
92
|
name: PluginCreativeResponseActionType.Fulfillment;
|
|
97
|
-
creativeInstanceGuid?: string;
|
|
98
93
|
}
|
|
99
94
|
export interface ExternalAction {
|
|
100
95
|
name: PluginCreativeResponseActionType.External;
|
|
101
96
|
externalKey: string;
|
|
102
|
-
creativeInstanceGuid?: string;
|
|
103
97
|
}
|
|
104
98
|
export declare const REPEATABLE_SIGNALS: ReadonlyArray<RepeatableSignal['name']>;
|
|
@@ -4,7 +4,6 @@ export type CreateChildPluginOptions = {
|
|
|
4
4
|
url?: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
config?: BasicObject;
|
|
7
|
-
targetElementSelector?: string;
|
|
8
7
|
};
|
|
9
8
|
export interface ChildPluginFactoryInterface {
|
|
10
9
|
create<T extends BasicObject>(options: CreateChildPluginOptions): ChildPluginInterface<T>;
|
|
@@ -9,7 +9,6 @@ export type IssueSignalOptions = {
|
|
|
9
9
|
objectData?: Record<string, string>;
|
|
10
10
|
overrideTimestamp?: Date;
|
|
11
11
|
transformedTrafficURL?: string;
|
|
12
|
-
creativeInstanceGuid?: string;
|
|
13
12
|
};
|
|
14
13
|
export interface RDNInterface {
|
|
15
14
|
issueSignal(eventType: string, parentGuid: string, options?: IssueSignalOptions): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokt/dcui-orchestrator",
|
|
3
|
-
"version": "0.0.2-rc.
|
|
3
|
+
"version": "0.0.2-rc.7",
|
|
4
4
|
"description": "Rokt's DCUI rendering process",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@rokt/dcui-layout-schema": "1.7.0-lnp907-alpha",
|
|
20
20
|
"@rokt/kit": "^6.6.4",
|
|
21
|
-
"@rokt/plugin": "^5.
|
|
21
|
+
"@rokt/plugin": "^5.8.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@rokt/partner-integration": "^4.7.0",
|