@embedreach/components 0.1.62 → 0.1.64
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/chunks/index.js +15535 -15346
- package/dist/index.d.ts +57 -0
- package/dist/index.es.js +6 -5
- package/dist/index.umd.js +111 -111
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,20 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
4
4
|
import { LucideProps } from 'lucide-react';
|
|
5
5
|
import { RefAttributes } from 'react';
|
|
6
6
|
|
|
7
|
+
declare enum AutomationTriggerType {
|
|
8
|
+
ONE_TIME = "one_time"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare function CreateAutomationDialog({ open, setOpen, onClose, iconDefinitions, automationType, }: CreateAutomationDialogProps): JSX_2.Element;
|
|
12
|
+
|
|
13
|
+
declare interface CreateAutomationDialogProps extends CreateAutomationModalProps {
|
|
14
|
+
/**
|
|
15
|
+
* Control the open state of the dialog
|
|
16
|
+
*/
|
|
17
|
+
open: boolean;
|
|
18
|
+
setOpen: (open: boolean) => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
7
21
|
export declare const CreateAutomationModal: default_2.FC<CreateAutomationModalProps>;
|
|
8
22
|
|
|
9
23
|
declare interface CreateAutomationModalProps {
|
|
@@ -16,6 +30,13 @@ declare interface CreateAutomationModalProps {
|
|
|
16
30
|
* Optional keys to override the default icon definitions
|
|
17
31
|
*/
|
|
18
32
|
iconDefinitions?: Partial<IconDefinitionsType>;
|
|
33
|
+
/**
|
|
34
|
+
* Optionally skip the selection of automation and jump to the automation type
|
|
35
|
+
* Currently only supports one time automation
|
|
36
|
+
*
|
|
37
|
+
* @Note This will remove the ability to select the automation type (e.g. the user will not be able to change the automation type)
|
|
38
|
+
*/
|
|
39
|
+
automationType?: AutomationTriggerType.ONE_TIME;
|
|
19
40
|
}
|
|
20
41
|
|
|
21
42
|
export declare const Engage: default_2.FC<{
|
|
@@ -84,6 +105,27 @@ export declare interface ReachConfig {
|
|
|
84
105
|
language?: string;
|
|
85
106
|
}
|
|
86
107
|
|
|
108
|
+
declare type ReachMergeField = StaticMergeField;
|
|
109
|
+
|
|
110
|
+
declare type ReachMergeFieldBase = {
|
|
111
|
+
/**
|
|
112
|
+
* The display name of the merge field.
|
|
113
|
+
*/
|
|
114
|
+
displayName: string;
|
|
115
|
+
/**
|
|
116
|
+
* Merge field template to display in the editor (e.g. {{dogs owned}})
|
|
117
|
+
*/
|
|
118
|
+
templateName: string;
|
|
119
|
+
/**
|
|
120
|
+
* The type of the merge field
|
|
121
|
+
*/
|
|
122
|
+
type: ReachMergeFieldTypeEnum;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
declare enum ReachMergeFieldTypeEnum {
|
|
126
|
+
STATIC = "static"
|
|
127
|
+
}
|
|
128
|
+
|
|
87
129
|
export declare const ReachProvider: default_2.FC<ReachConfig & {
|
|
88
130
|
children?: default_2.ReactNode;
|
|
89
131
|
}>;
|
|
@@ -125,6 +167,17 @@ declare interface SegmentBuilderDialogProps {
|
|
|
125
167
|
segmentId?: string;
|
|
126
168
|
}
|
|
127
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Static merge field
|
|
172
|
+
*/
|
|
173
|
+
declare type StaticMergeField = ReachMergeFieldBase & {
|
|
174
|
+
type: ReachMergeFieldTypeEnum.STATIC;
|
|
175
|
+
/**
|
|
176
|
+
* The static value of the merge field (e.g. "BLACKFRIDAYSALE50")
|
|
177
|
+
*/
|
|
178
|
+
staticValue: string;
|
|
179
|
+
};
|
|
180
|
+
|
|
128
181
|
/**
|
|
129
182
|
* Theme initialization options that can be passed to ReachProvider
|
|
130
183
|
*/
|
|
@@ -198,6 +251,10 @@ declare type ViewAutomationModalProps = {
|
|
|
198
251
|
* Optional logo url to display in the top left corner
|
|
199
252
|
*/
|
|
200
253
|
logoUrl?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Optional function to return extra merge fields for the automation
|
|
256
|
+
*/
|
|
257
|
+
getExtraMergeFields?: () => Promise<ReachMergeField[]>;
|
|
201
258
|
/**
|
|
202
259
|
* Optional callback when a duplication is created
|
|
203
260
|
*/
|
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { X, Y,
|
|
1
|
+
import { X, Y, Z, W, _, a0 } from "./chunks/index.js";
|
|
2
2
|
export {
|
|
3
|
-
X as
|
|
4
|
-
Y as
|
|
3
|
+
X as CreateAutomationDialog,
|
|
4
|
+
Y as CreateAutomationModal,
|
|
5
|
+
Z as Engage,
|
|
5
6
|
W as ReachProvider,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
_ as SegmentBuilderDialog,
|
|
8
|
+
a0 as ViewAutomationModal
|
|
8
9
|
};
|