@embedreach/components 0.1.21 → 0.1.22

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.d.ts CHANGED
@@ -11,38 +11,58 @@ declare interface CreateAutomationModalProps {
11
11
  * @param createdAutomation - The created automation id or false if the automation was not created, 'error' if there was an error
12
12
  */
13
13
  onClose?: (createdAutomation: string | false | 'error') => void;
14
- /**
15
- * Optional keys to override the default tailwind class definitions
16
- */
17
- tailwindClassDefinitions?: {
18
- [key in (typeof TailwindClassDefinitionsKeys)[number]]?: string;
19
- };
20
14
  /**
21
15
  * Optional keys to override the default icon definitions
22
16
  */
23
- iconDefinitions?: {
24
- [key in (typeof IconDefinitionsKeys)[number]]?: default_2.ReactNode;
25
- };
17
+ iconDefinitions?: IconDefinitionsType;
26
18
  }
27
19
 
20
+ export declare const Engage: default_2.FC<{
21
+ iconDefinitions: IconDefinitionsType;
22
+ }>;
23
+
28
24
  /**
29
25
  * Represents the available features in our application.
30
26
  * Each feature corresponds to a specific section of the marketing hub.
31
27
  */
32
- declare type FeatureKey = 'measure-dashboard' | 'measure-setup' | 'acquire-setup' | 'engage-segment-builder' | 'engage-automations-create-modal' | 'engage-automations-view-modal';
28
+ declare type FeatureKey = 'measure' | 'measure-setup' | 'acquire-setup' | 'engage-segment-builder' | 'engage-automations-create-modal' | 'engage-automations-view-modal' | 'engage';
33
29
 
34
30
  declare const IconDefinitions: {
35
31
  CloseButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
36
32
  DropdownMenuTrigger: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
37
33
  UserIcon: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
34
+ UsersIcon: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
35
+ UserEdit: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
38
36
  ScheduleButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
39
37
  SendButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
40
38
  BackButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
41
39
  NextButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
40
+ MergeField: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
41
+ PlusIcon: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
42
+ AlertCircleIcon: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
43
+ /**
44
+ * Types of automations
45
+ */
46
+ OneTimeBroadcast: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
47
+ PatronEntersList: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
48
+ DateMilestone: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
49
+ RealtimeActivity: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
50
+ /**
51
+ * Email and sms icons
52
+ */
53
+ EmailIcon: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
54
+ SmsIcon: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
55
+ /**
56
+ * Statistics icons
57
+ */
58
+ MessagesSent: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
59
+ LinksClicked: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
60
+ OpenRate: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
61
+ SpamComplies: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
62
+ TotalBounceRate: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
63
+ UnsubscribeRate: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
42
64
  };
43
65
 
44
- declare const IconDefinitionsKeys: string[];
45
-
46
66
  declare type IconDefinitionsType = typeof IconDefinitions;
47
67
 
48
68
  /**
@@ -59,6 +79,8 @@ export declare interface ReachConfig {
59
79
  feature?: FeatureKey;
60
80
  /** Debug configuration */
61
81
  debug?: boolean;
82
+ /** Initial language code (e.g., 'en', 'es', 'fr') */
83
+ language?: string;
62
84
  }
63
85
 
64
86
  export declare const ReachProvider: default_2.FC<ReachConfig & {
@@ -92,19 +114,15 @@ declare interface SegmentBuilderProps {
92
114
  */
93
115
  onClose?: (createdSegment: string | false | 'error') => void;
94
116
  /**
95
- * Optional keys to override the default tailwind class definitions
117
+ * Optionally pass in a segmentId to edit an existing segment
96
118
  */
97
- tailwindClassDefinitions?: {
98
- [key in (typeof TailwindClassDefinitionsKeys)[number]]?: string;
99
- };
119
+ segmentId?: string;
100
120
  /**
101
121
  * Optional keys to override the default icon definitions
102
122
  */
103
123
  iconDefinitions?: IconDefinitionsType;
104
124
  }
105
125
 
106
- declare const TailwindClassDefinitionsKeys: string[];
107
-
108
126
  /**
109
127
  * Theme initialization options that can be passed to ReachProvider
110
128
  */
@@ -149,6 +167,8 @@ declare interface ThemeStyles {
149
167
  'chart-4'?: string;
150
168
  'chart-5'?: string;
151
169
  radius?: string;
170
+ 'font-body'?: string;
171
+ 'font-heading'?: string;
152
172
  }
153
173
 
154
174
  export declare const ViewAutomationModal: default_2.FC<ViewAutomationModalProps>;
@@ -157,23 +177,23 @@ declare type ViewAutomationModalProps = {
157
177
  /**
158
178
  * The id of the automation to view
159
179
  */
160
- automationId: string;
180
+ automationId?: string;
161
181
  /**
162
182
  * Optionally auto open the edit automation popup
163
183
  */
164
184
  autoOpenEditPopup?: boolean;
165
185
  /**
166
- * Optional keys to override the default tailwind class definitions
186
+ * Optional keys to override the default icon definitions
167
187
  */
168
- tailwindClassDefinitions?: {
169
- [key in (typeof TailwindClassDefinitionsKeys)[number]]?: string;
170
- };
188
+ iconDefinitions?: IconDefinitionsType;
171
189
  /**
172
- * Optional keys to override the default icon definitions
190
+ * Optional keys to override the default show back button
191
+ */
192
+ showBackButton?: boolean;
193
+ /**
194
+ * Optional logo url to display in the top left corner
173
195
  */
174
- iconDefinitions?: {
175
- [key in (typeof IconDefinitionsKeys)[number]]?: default_2.ReactNode;
176
- };
196
+ logoUrl?: string;
177
197
  };
178
198
 
179
199
  export { }
package/dist/index.es.js CHANGED
@@ -1,7 +1,8 @@
1
- import { X, W, Y, Z } from "./chunks/index.js";
1
+ import { X, Y, W, Z, _ } from "./chunks/index.js";
2
2
  export {
3
3
  X as CreateAutomationModal,
4
+ Y as Engage,
4
5
  W as ReachProvider,
5
- Y as SegmentBuilder,
6
- Z as ViewAutomationModal
6
+ Z as SegmentBuilder,
7
+ _ as ViewAutomationModal
7
8
  };