@embedreach/components 0.1.75 → 0.1.77

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
@@ -44,6 +44,15 @@ export declare const Engage: ({ iconDefinitions: mergedIconDefinitions, }: {
44
44
  iconDefinitions: IconDefinitionsType;
45
45
  }) => JSX_2.Element;
46
46
 
47
+ declare interface EngageTypedOverrides {
48
+ user: string;
49
+ user_other: string;
50
+ automation: string;
51
+ automation_other: string;
52
+ segment: string;
53
+ segment_other: string;
54
+ }
55
+
47
56
  /**
48
57
  * Represents the available features in our application.
49
58
  * Each feature corresponds to a specific section of the marketing hub.
@@ -102,8 +111,20 @@ export declare interface ReachConfig {
102
111
  feature?: FeatureKey;
103
112
  /** Debug configuration */
104
113
  debug?: boolean;
105
- /** Initial language code (e.g., 'en', 'es', 'fr') */
106
- language?: string;
114
+ language?: {
115
+ /** Initial language code (e.g., 'en', 'es', 'fr') */
116
+ default: string;
117
+ /**
118
+ * Optionally provide custom verbs to override the default ones
119
+ * For example if you call your 'users' -> 'contacts', or 'automations' -> 'flows'
120
+ */
121
+ overrides?: {
122
+ engage: {
123
+ en: EngageTypedOverrides;
124
+ es: EngageTypedOverrides;
125
+ };
126
+ };
127
+ };
107
128
  }
108
129
 
109
130
  declare type ReachMergeField = StaticMergeField;