@espejo/browser 0.1.0 → 0.2.0

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/chat.d.cts CHANGED
@@ -21,6 +21,7 @@ type AgentWidgetSection = 'home' | 'support' | 'tickets' | 'guides';
21
21
  interface ChatIdentity {
22
22
  email: string;
23
23
  hash: string;
24
+ name?: string;
24
25
  }
25
26
  interface ChatQueueItem {
26
27
  id: number;
@@ -225,6 +226,28 @@ declare const DEFAULT_CHAT_TEXT: {
225
226
  ticketsEmpty: string;
226
227
  openTicket: string;
227
228
  ticketsWaiting: string;
229
+ minimize: string;
230
+ expand: string;
231
+ collapse: string;
232
+ dock: string;
233
+ undock: string;
234
+ more: string;
235
+ copy: string;
236
+ copied: string;
237
+ copyCode: string;
238
+ regenerate: string;
239
+ regenerateShort: string;
240
+ goodResponse: string;
241
+ badResponse: string;
242
+ notSent: string;
243
+ resend: string;
244
+ stopped: string;
245
+ jumpLatest: string;
246
+ hintSend: string;
247
+ hintQueue: string;
248
+ hintNewline: string;
249
+ helloNamed: string;
250
+ errorUnavailable: string;
228
251
  };
229
252
  type ChatText = typeof DEFAULT_CHAT_TEXT;
230
253
  type ChatLang = 'en' | 'es' | 'pt';
@@ -260,7 +283,7 @@ interface ChatWidgetHandle {
260
283
  open(): void;
261
284
  close(): void;
262
285
  destroy(): void;
263
- identify(email: string | null, hash?: string): void;
286
+ identify(email: string | null, hash?: string, name?: string): void;
264
287
  readonly client: ChatClient;
265
288
  }
266
289
  declare const CHAT_HOST_ATTRIBUTE = "data-espejo-chat";
package/dist/chat.d.ts CHANGED
@@ -21,6 +21,7 @@ type AgentWidgetSection = 'home' | 'support' | 'tickets' | 'guides';
21
21
  interface ChatIdentity {
22
22
  email: string;
23
23
  hash: string;
24
+ name?: string;
24
25
  }
25
26
  interface ChatQueueItem {
26
27
  id: number;
@@ -225,6 +226,28 @@ declare const DEFAULT_CHAT_TEXT: {
225
226
  ticketsEmpty: string;
226
227
  openTicket: string;
227
228
  ticketsWaiting: string;
229
+ minimize: string;
230
+ expand: string;
231
+ collapse: string;
232
+ dock: string;
233
+ undock: string;
234
+ more: string;
235
+ copy: string;
236
+ copied: string;
237
+ copyCode: string;
238
+ regenerate: string;
239
+ regenerateShort: string;
240
+ goodResponse: string;
241
+ badResponse: string;
242
+ notSent: string;
243
+ resend: string;
244
+ stopped: string;
245
+ jumpLatest: string;
246
+ hintSend: string;
247
+ hintQueue: string;
248
+ hintNewline: string;
249
+ helloNamed: string;
250
+ errorUnavailable: string;
228
251
  };
229
252
  type ChatText = typeof DEFAULT_CHAT_TEXT;
230
253
  type ChatLang = 'en' | 'es' | 'pt';
@@ -260,7 +283,7 @@ interface ChatWidgetHandle {
260
283
  open(): void;
261
284
  close(): void;
262
285
  destroy(): void;
263
- identify(email: string | null, hash?: string): void;
286
+ identify(email: string | null, hash?: string, name?: string): void;
264
287
  readonly client: ChatClient;
265
288
  }
266
289
  declare const CHAT_HOST_ATTRIBUTE = "data-espejo-chat";