@telia-ace/widget-conversation-flamingo 1.1.12-rc.0 → 1.1.12-rc.10
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation-1bf28a6e.js +572 -0
- package/conversation-7da6b954.mjs +2619 -0
- package/conversation-component.d.ts +2 -0
- package/conversation-platform.d.ts +10 -49
- package/conversation-session.d.ts +11 -0
- package/conversation.d.ts +23 -0
- package/entry.d.ts +9 -0
- package/group.d.ts +7 -0
- package/{index-1ea0fde8.mjs → index-217978bc.mjs} +320 -319
- package/index-43151bb4.js +1 -0
- package/index-494250de.js +3 -0
- package/index-4ba82b09.mjs +777 -0
- package/index.d.ts +6 -10
- package/index.js +1 -1
- package/index.mjs +7 -9
- package/{components/conversation/ui/message-types → message-types}/message-type-html.d.ts +3 -2
- package/models/agent.d.ts +8 -0
- package/models/conversation-entry.d.ts +11 -0
- package/models/conversation-provider.d.ts +19 -0
- package/models/conversation-session-state.d.ts +13 -0
- package/models/user.d.ts +8 -0
- package/package.json +5 -6
- package/types.d.ts +9 -123
- package/agent.d.ts +0 -20
- package/components/conversation/conversation.d.ts +0 -19
- package/components/conversation/plugin.d.ts +0 -45
- package/components/conversation/ui/message-list.d.ts +0 -9
- package/components/conversation/ui/message-types/message-type-link-list.d.ts +0 -8
- package/components/conversation/ui/message-types/message-type-separator.d.ts +0 -7
- package/components/conversation/ui/message.d.ts +0 -8
- package/components/conversation/utils.d.ts +0 -1
- package/conversation-17a64990.mjs +0 -1865
- package/conversation-b2f9f789.js +0 -446
- package/conversation-controller.d.ts +0 -118
- package/conversation-history.d.ts +0 -26
- package/conversation-provider.d.ts +0 -32
- package/index-c51d4b6a.js +0 -1
- package/index-ecfa0fe7.js +0 -156
- package/index-ffd77508.mjs +0 -3923
- package/send-18482cae.mjs +0 -4
- package/send-eb8b9428.js +0 -1
- package/store.d.ts +0 -31
- package/user.d.ts +0 -9
- package/utils/custom-message.d.ts +0 -2
- package/utils/index.d.ts +0 -1
- package/utils/open-chat-widget.d.ts +0 -4
- 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
|
-
}
|
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;
|
package/utils/swap-provider.d.ts
DELETED
@@ -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>;
|