@telia-ace/widget-conversation-flamingo 1.1.12-rc.0 → 1.1.12-rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/conversation-8e924136.js +572 -0
  2. package/conversation-a518bd92.mjs +2634 -0
  3. package/conversation-component.d.ts +2 -0
  4. package/conversation-platform.d.ts +9 -49
  5. package/conversation-session.d.ts +11 -0
  6. package/conversation.d.ts +23 -0
  7. package/entry.d.ts +9 -0
  8. package/group.d.ts +7 -0
  9. package/index-231900d1.mjs +780 -0
  10. package/index-592f145b.js +3 -0
  11. package/index-b34ddf78.js +1 -0
  12. package/{index-1ea0fde8.mjs → index-b5ca9962.mjs} +320 -319
  13. package/index.d.ts +6 -10
  14. package/index.js +1 -1
  15. package/index.mjs +7 -9
  16. package/{components/conversation/ui/message-types → message-types}/message-type-html.d.ts +3 -2
  17. package/models/agent.d.ts +8 -0
  18. package/models/conversation-entry.d.ts +11 -0
  19. package/models/conversation-provider.d.ts +19 -0
  20. package/models/conversation-session-state.d.ts +13 -0
  21. package/models/user.d.ts +8 -0
  22. package/package.json +5 -6
  23. package/types.d.ts +9 -123
  24. package/agent.d.ts +0 -20
  25. package/components/conversation/conversation.d.ts +0 -19
  26. package/components/conversation/plugin.d.ts +0 -45
  27. package/components/conversation/ui/message-list.d.ts +0 -9
  28. package/components/conversation/ui/message-types/message-type-link-list.d.ts +0 -8
  29. package/components/conversation/ui/message-types/message-type-separator.d.ts +0 -7
  30. package/components/conversation/ui/message.d.ts +0 -8
  31. package/components/conversation/utils.d.ts +0 -1
  32. package/conversation-17a64990.mjs +0 -1865
  33. package/conversation-b2f9f789.js +0 -446
  34. package/conversation-controller.d.ts +0 -118
  35. package/conversation-history.d.ts +0 -26
  36. package/conversation-provider.d.ts +0 -32
  37. package/index-c51d4b6a.js +0 -1
  38. package/index-ecfa0fe7.js +0 -156
  39. package/index-ffd77508.mjs +0 -3923
  40. package/send-18482cae.mjs +0 -4
  41. package/send-eb8b9428.js +0 -1
  42. package/store.d.ts +0 -31
  43. package/user.d.ts +0 -9
  44. package/utils/custom-message.d.ts +0 -2
  45. package/utils/index.d.ts +0 -1
  46. package/utils/open-chat-widget.d.ts +0 -4
  47. package/utils/swap-provider.d.ts +0 -8
package/send-18482cae.mjs DELETED
@@ -1,4 +0,0 @@
1
- const e = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' };
2
- export {
3
- e as s
4
- };
package/send-eb8b9428.js DELETED
@@ -1 +0,0 @@
1
- "use strict";const e={name:"send",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>'};exports.send=e;
package/store.d.ts DELETED
@@ -1,31 +0,0 @@
1
- import { Container } from '@webprovisions/platform';
2
- import { AgentSettings } from './agent';
3
- import { ConversationController } from './conversation-controller';
4
- type StoredConversationAgent = {
5
- id: string;
6
- name: string;
7
- avatar?: string;
8
- providerName: string;
9
- };
10
- type StoredConversationMessage = any;
11
- type StoredConversation = {
12
- agents: StoredConversationAgent[];
13
- messages: StoredConversationMessage[];
14
- };
15
- export declare const createSessionStorageKey: (id: string) => string;
16
- declare class Store {
17
- private container;
18
- private enabled;
19
- private sessionStorageKey;
20
- private locker;
21
- private initialStoredAgents;
22
- constructor(container: Container, conversation: ConversationController, enabled: boolean);
23
- setInitialData(data: {
24
- agents: AgentSettings[];
25
- }): void;
26
- isRehydrated(): Promise<boolean>;
27
- getStoredAgent(agentId: string): StoredConversationAgent | undefined;
28
- write(data: any, type: 'messages' | 'agents', action?: 'add' | 'update'): Promise<void>;
29
- read(): Promise<StoredConversation>;
30
- }
31
- export default Store;
package/user.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { ConversationController, ConversationEntry } from './conversation-controller';
2
- import { ConversationMessageSettings } from './types';
3
- export declare class User {
4
- private controller;
5
- constructor(controller: ConversationController);
6
- print: (settings: string | ConversationMessageSettings, options?: {
7
- key?: string;
8
- }) => ConversationEntry;
9
- }
@@ -1,2 +0,0 @@
1
- import { Container } from '@webprovisions/platform';
2
- export declare const registerCustomMessageComponent: (_container: Container, _type: string, componentImport: any) => Promise<void>;
package/utils/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { navigateToConversation, openChatWidget, shouldPreventDefault, } from './open-chat-widget';
@@ -1,4 +0,0 @@
1
- import { Container } from '@webprovisions/platform';
2
- export declare const shouldPreventDefault: (container: Container) => boolean;
3
- export declare const openChatWidget: (container: Container, contactMethod: any, triggerDOMTarget?: HTMLElement) => boolean | Promise<boolean> | Promise<void>;
4
- export declare const navigateToConversation: (container: Container, contactMethod: any, _routeName?: string) => any;
@@ -1,8 +0,0 @@
1
- import { Container } from '@webprovisions/platform';
2
- /**
3
- * This will put the current provider(s) in a queue and
4
- * swap current provider to another one based on the providerName.
5
- * When ConversationProvider.complete() is called, the provider(s) in the
6
- * queue will become active again
7
- */
8
- export declare const swapProvider: (container: Container, conversationId: string, providerName: string) => Promise<void>;