@embedreach/components 0.1.16 → 0.1.17
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/B4MFY5CR.js +252 -478
- package/dist/chunks/index.js +1212 -1396
- package/dist/index.d.ts +185 -12
- package/dist/index.umd.js +125 -125
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,193 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ThemeConfig } from './types';
|
|
6
|
-
import { default as ViewAutomationModal } from '../common/components/automations/ViewAutomationModal/ViewAutomationModal';
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { LucideProps } from 'lucide-react';
|
|
4
|
+
import { RefAttributes } from 'react';
|
|
7
5
|
|
|
8
|
-
export
|
|
6
|
+
export declare const CreateAutomationModal: default_2.FC<CreateAutomationModalProps>;
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
declare interface CreateAutomationModalProps {
|
|
9
|
+
/**
|
|
10
|
+
* Optional callback when the segment builder is closed
|
|
11
|
+
* @param createdSegment - The created automation id or false if the automation was not created, 'error' if there was an error
|
|
12
|
+
*/
|
|
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
|
+
/**
|
|
21
|
+
* Optional keys to override the default icon definitions
|
|
22
|
+
*/
|
|
23
|
+
iconDefinitions?: {
|
|
24
|
+
[key in (typeof IconDefinitionsKeys)[number]]?: default_2.ReactNode;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
11
27
|
|
|
12
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Represents the available features in our application.
|
|
30
|
+
* Each feature corresponds to a specific section of the marketing hub.
|
|
31
|
+
*/
|
|
32
|
+
declare type FeatureKey = 'measure-dashboard' | 'measure-setup' | 'acquire-setup' | 'engage-segment-builder' | 'engage-automations-create-modal' | 'engage-automations-view-modal';
|
|
13
33
|
|
|
14
|
-
|
|
34
|
+
declare const IconDefinitions: {
|
|
35
|
+
CloseButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
36
|
+
DropdownMenuTrigger: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
37
|
+
UserIcon: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
38
|
+
ScheduleButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
39
|
+
SendButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
40
|
+
BackButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
41
|
+
NextButton: ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
42
|
+
};
|
|
15
43
|
|
|
16
|
-
|
|
44
|
+
declare const IconDefinitionsKeys: string[];
|
|
17
45
|
|
|
18
|
-
|
|
46
|
+
declare type IconDefinitionsType = typeof IconDefinitions;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Complete SDK configuration interface
|
|
50
|
+
* @interface ReachConfig
|
|
51
|
+
*/
|
|
52
|
+
export declare interface ReachConfig {
|
|
53
|
+
theme?: Theme;
|
|
54
|
+
authToken: string;
|
|
55
|
+
tenantExternalId: string;
|
|
56
|
+
/** Event callbacks */
|
|
57
|
+
callbacks?: SDKCallbacks;
|
|
58
|
+
/** Initial feature to load */
|
|
59
|
+
feature: FeatureKey;
|
|
60
|
+
/** Debug configuration */
|
|
61
|
+
debug?: boolean;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export declare const ReachProvider: default_2.FC<ReachConfig & {
|
|
65
|
+
children?: default_2.ReactNode;
|
|
66
|
+
}>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Callback function for requesting new token from parent
|
|
70
|
+
* @callback ReauthCallback@callback ReauthCallback
|
|
71
|
+
* @returns {Promise<string> | void} New JWT token or void if sending message from iframe
|
|
72
|
+
*/
|
|
73
|
+
declare type ReauthCallback = () => Promise<string> | void;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Callback configuration for SDK events
|
|
77
|
+
* @interface SDKCallbacks
|
|
78
|
+
*/
|
|
79
|
+
declare interface SDKCallbacks {
|
|
80
|
+
/** Called when reauthentication is required */
|
|
81
|
+
onReauthRequested: ReauthCallback;
|
|
82
|
+
/** Called when tenant information is requested */
|
|
83
|
+
onTenantInformationRequested: () => void;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export declare const SegmentBuilder: default_2.FC<SegmentBuilderProps>;
|
|
87
|
+
|
|
88
|
+
declare interface SegmentBuilderProps {
|
|
89
|
+
/**
|
|
90
|
+
* Optional callback when the segment builder is closed
|
|
91
|
+
* @param createdSegment - The created segment id or false if the segment was not created, 'error' if there was an error
|
|
92
|
+
*/
|
|
93
|
+
onClose?: (createdSegment: string | false | 'error') => void;
|
|
94
|
+
/**
|
|
95
|
+
* Optional keys to override the default tailwind class definitions
|
|
96
|
+
*/
|
|
97
|
+
tailwindClassDefinitions?: {
|
|
98
|
+
[key in (typeof TailwindClassDefinitionsKeys)[number]]?: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Optional keys to override the default icon definitions
|
|
102
|
+
*/
|
|
103
|
+
iconDefinitions?: IconDefinitionsType;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare const TailwindClassDefinitionsKeys: string[];
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Theme configuration interface
|
|
110
|
+
* @interface Theme
|
|
111
|
+
*/
|
|
112
|
+
declare interface Theme {
|
|
113
|
+
/** Unique theme identifier */
|
|
114
|
+
id: string;
|
|
115
|
+
/** Theme display name */
|
|
116
|
+
name: string;
|
|
117
|
+
/** Theme style properties */
|
|
118
|
+
styles: ThemeStyles;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Theme initialization options that can be passed to ReachProvider
|
|
123
|
+
*/
|
|
124
|
+
export declare interface ThemeConfig {
|
|
125
|
+
/** Theme ID can be provided to fetch a predefined theme */
|
|
126
|
+
id?: string;
|
|
127
|
+
/** Optional theme name */
|
|
128
|
+
name?: string;
|
|
129
|
+
/** Optional overrides for theme styles */
|
|
130
|
+
styles?: Partial<ThemeStyles>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Theme styles incorporating shadcn variables
|
|
135
|
+
* @interface ThemeStyles
|
|
136
|
+
*/
|
|
137
|
+
declare interface ThemeStyles {
|
|
138
|
+
primary: string;
|
|
139
|
+
background: string;
|
|
140
|
+
foreground?: string;
|
|
141
|
+
'primary-foreground'?: string;
|
|
142
|
+
secondary?: string;
|
|
143
|
+
'secondary-foreground'?: string;
|
|
144
|
+
muted?: string;
|
|
145
|
+
'muted-foreground'?: string;
|
|
146
|
+
accent?: string;
|
|
147
|
+
'accent-foreground'?: string;
|
|
148
|
+
border?: string;
|
|
149
|
+
input?: string;
|
|
150
|
+
ring?: string;
|
|
151
|
+
destructive?: string;
|
|
152
|
+
'destructive-foreground'?: string;
|
|
153
|
+
card?: string;
|
|
154
|
+
'card-foreground'?: string;
|
|
155
|
+
popover?: string;
|
|
156
|
+
'popover-foreground'?: string;
|
|
157
|
+
[key: string]: string | undefined;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export declare const ViewAutomationModal: default_2.FC<ViewAutomationModalProps>;
|
|
161
|
+
|
|
162
|
+
declare type ViewAutomationModalProps = {
|
|
163
|
+
/**
|
|
164
|
+
* The id of the automation to view
|
|
165
|
+
*/
|
|
166
|
+
automationId: string;
|
|
167
|
+
/**
|
|
168
|
+
* Optionally auto open the edit automation popup
|
|
169
|
+
*/
|
|
170
|
+
autoOpenEditPopup?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Optional keys to override the default tailwind class definitions
|
|
173
|
+
*/
|
|
174
|
+
tailwindClassDefinitions?: {
|
|
175
|
+
[key in (typeof TailwindClassDefinitionsKeys)[number]]?: string;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Optional keys to override the default icon definitions
|
|
179
|
+
*/
|
|
180
|
+
iconDefinitions?: {
|
|
181
|
+
[key in (typeof IconDefinitionsKeys)[number]]?: default_2.ReactNode;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
19
184
|
|
|
20
185
|
export { }
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
declare module 'i18next' {
|
|
189
|
+
interface CustomTypeOptions {
|
|
190
|
+
defaultNS: 'common';
|
|
191
|
+
resources: typeof defaultTranslations;
|
|
192
|
+
}
|
|
193
|
+
}
|