@embedreach/components 0.1.17 → 0.1.19
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 +283 -198
- package/dist/index.d.ts +23 -29
- package/dist/index.umd.js +115 -115
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const CreateAutomationModal: default_2.FC<CreateAutomationModalPr
|
|
|
8
8
|
declare interface CreateAutomationModalProps {
|
|
9
9
|
/**
|
|
10
10
|
* Optional callback when the segment builder is closed
|
|
11
|
-
* @param
|
|
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
14
|
/**
|
|
@@ -50,7 +50,7 @@ declare type IconDefinitionsType = typeof IconDefinitions;
|
|
|
50
50
|
* @interface ReachConfig
|
|
51
51
|
*/
|
|
52
52
|
export declare interface ReachConfig {
|
|
53
|
-
theme?:
|
|
53
|
+
theme?: ThemeConfig;
|
|
54
54
|
authToken: string;
|
|
55
55
|
tenantExternalId: string;
|
|
56
56
|
/** Event callbacks */
|
|
@@ -105,39 +105,32 @@ declare interface SegmentBuilderProps {
|
|
|
105
105
|
|
|
106
106
|
declare const TailwindClassDefinitionsKeys: string[];
|
|
107
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
108
|
/**
|
|
122
109
|
* Theme initialization options that can be passed to ReachProvider
|
|
123
110
|
*/
|
|
124
111
|
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
112
|
/** Optional overrides for theme styles */
|
|
130
|
-
styles
|
|
113
|
+
styles: Partial<ThemeStyles>;
|
|
114
|
+
/** Dark mode toggle */
|
|
115
|
+
darkMode?: boolean;
|
|
131
116
|
}
|
|
132
117
|
|
|
133
118
|
/**
|
|
134
119
|
* Theme styles incorporating shadcn variables
|
|
120
|
+
*
|
|
121
|
+
* Matches what we say in our dev docs here:
|
|
122
|
+
* https://docs.embedreach.com/sdk/customization
|
|
123
|
+
*
|
|
135
124
|
* @interface ThemeStyles
|
|
136
125
|
*/
|
|
137
126
|
declare interface ThemeStyles {
|
|
138
|
-
|
|
139
|
-
background: string;
|
|
127
|
+
background?: string;
|
|
140
128
|
foreground?: string;
|
|
129
|
+
card?: string;
|
|
130
|
+
'card-foreground'?: string;
|
|
131
|
+
popover?: string;
|
|
132
|
+
'popover-foreground'?: string;
|
|
133
|
+
primary?: string;
|
|
141
134
|
'primary-foreground'?: string;
|
|
142
135
|
secondary?: string;
|
|
143
136
|
'secondary-foreground'?: string;
|
|
@@ -145,16 +138,17 @@ declare interface ThemeStyles {
|
|
|
145
138
|
'muted-foreground'?: string;
|
|
146
139
|
accent?: string;
|
|
147
140
|
'accent-foreground'?: string;
|
|
141
|
+
destructive?: string;
|
|
142
|
+
'destructive-foreground'?: string;
|
|
148
143
|
border?: string;
|
|
149
144
|
input?: string;
|
|
150
145
|
ring?: string;
|
|
151
|
-
|
|
152
|
-
'
|
|
153
|
-
|
|
154
|
-
'
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
[key: string]: string | undefined;
|
|
146
|
+
'chart-1'?: string;
|
|
147
|
+
'chart-2'?: string;
|
|
148
|
+
'chart-3'?: string;
|
|
149
|
+
'chart-4'?: string;
|
|
150
|
+
'chart-5'?: string;
|
|
151
|
+
radius?: string;
|
|
158
152
|
}
|
|
159
153
|
|
|
160
154
|
export declare const ViewAutomationModal: default_2.FC<ViewAutomationModalProps>;
|