@telia-ace/widget-conversation 1.0.32 → 1.0.33-next.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/agent.d.ts +1 -1
- package/dist/components/conversation/conversation.d.ts +1 -1
- package/dist/components/conversation/plugin.d.ts +4 -4
- package/dist/components/conversation/ui/input.d.ts +1 -1
- package/dist/components/conversation/ui/loader.d.ts +1 -1
- package/dist/components/conversation/ui/message-list-items/button-list.d.ts +1 -1
- package/dist/components/conversation/ui/message-list-items/custom.d.ts +1 -1
- package/dist/components/conversation/ui/message-list-items/html.d.ts +1 -1
- package/dist/components/conversation/ui/message-list-items/link-list.d.ts +1 -1
- package/dist/components/conversation/ui/message-list-items/text.d.ts +1 -1
- package/dist/components/conversation/ui/message-list-items/video-request.d.ts +1 -1
- package/dist/components/conversation/ui/message-types/agent.d.ts +1 -1
- package/dist/components/conversation/ui/message-types/message-list.d.ts +1 -1
- package/dist/components/conversation/ui/message-types/system.d.ts +1 -1
- package/dist/components/conversation/ui/message-types/timestamp.d.ts +1 -1
- package/dist/components/conversation/ui/message-types/user.d.ts +1 -1
- package/dist/components/conversation/ui/overlay-outlets.d.ts +2 -2
- package/dist/components/conversation/ui/styles.d.ts +1 -1
- package/dist/components/return-button/plugin.d.ts +1 -1
- package/dist/components/return-button/return-button.d.ts +1 -1
- package/dist/conversation-controller.d.ts +9 -9
- package/dist/conversation-platform.d.ts +4 -4
- package/dist/{conversation.4bd3eedd.js → conversation.bc31361a.js} +330 -305
- package/dist/{conversation.4bd3eedd.js.map → conversation.bc31361a.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/resolve-entity-value.d.ts +2 -2
- package/dist/{return-button.9c3eb2ec.js → return-button.fb63a16e.js} +14 -15
- package/dist/{return-button.9c3eb2ec.js.map → return-button.fb63a16e.js.map} +1 -1
- package/dist/store.d.ts +3 -3
- package/dist/types.d.ts +19 -19
- package/package.json +10 -10
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Form, FormBuilder } from '@telia-ace/widget-forms';
|
|
2
2
|
import { Symbol } from '@telia-ace/widget-ui';
|
|
3
|
-
export
|
|
3
|
+
export type ConversationMessageSettings = {
|
|
4
4
|
key?: string;
|
|
5
5
|
timestamp?: number;
|
|
6
6
|
title?: string;
|
|
@@ -13,18 +13,18 @@ export declare type ConversationMessageSettings = {
|
|
|
13
13
|
items?: ConversationMessageList[];
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type NormalizedMessageSettings = {
|
|
17
17
|
content: ConversationMessageContent;
|
|
18
18
|
key: string;
|
|
19
19
|
timestamp: number | null;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type ConversationMessageList = {
|
|
22
22
|
header?: string;
|
|
23
23
|
itemKey: string;
|
|
24
24
|
type?: ConversationMessageListType;
|
|
25
25
|
items: ConversationMessageListItem[];
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type ConversationMessageListItem = {
|
|
28
28
|
icon?: string;
|
|
29
29
|
type?: ConversationMessageListItemType;
|
|
30
30
|
actions?: {
|
|
@@ -35,7 +35,7 @@ export declare type ConversationMessageListItem = {
|
|
|
35
35
|
key: string;
|
|
36
36
|
[key: string]: any;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type ConversationMessageContent = {
|
|
39
39
|
title?: string;
|
|
40
40
|
body?: string;
|
|
41
41
|
actions?: {
|
|
@@ -45,11 +45,11 @@ export declare type ConversationMessageContent = {
|
|
|
45
45
|
form?: Form;
|
|
46
46
|
[key: string]: any;
|
|
47
47
|
};
|
|
48
|
-
export
|
|
49
|
-
export
|
|
48
|
+
export type ConverstationMessageItem<T, R = ItemPayload> = R extends [T, any] ? R : never;
|
|
49
|
+
export type ConversationMessageUpdateSettings = ConversationMessageContent & {
|
|
50
50
|
timestamp?: number;
|
|
51
51
|
};
|
|
52
|
-
export
|
|
52
|
+
export type ConversationMessageSender = {
|
|
53
53
|
name?: string;
|
|
54
54
|
avatar?: string | Symbol;
|
|
55
55
|
id?: string;
|
|
@@ -66,7 +66,7 @@ export declare enum ConversationMessageListItemType {
|
|
|
66
66
|
HTML = "html",
|
|
67
67
|
VideoRequest = "video-request"
|
|
68
68
|
}
|
|
69
|
-
export
|
|
69
|
+
export type LinkListProperties = {
|
|
70
70
|
header?: string;
|
|
71
71
|
actions: {
|
|
72
72
|
[key: string]: string;
|
|
@@ -76,10 +76,10 @@ export declare type LinkListProperties = {
|
|
|
76
76
|
data: any;
|
|
77
77
|
}[];
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
export
|
|
79
|
+
type LinkListItem = [ConversationMessageListItemType.LinkList, LinkListProperties];
|
|
80
|
+
type TextItem = [ConversationMessageListItemType.Text, string];
|
|
81
|
+
type SeparatorItem = [ConversationMessageListItemType.Separator, undefined];
|
|
82
|
+
export type ButtonListProperties = {
|
|
83
83
|
header?: string;
|
|
84
84
|
actions: {
|
|
85
85
|
[key: string]: string;
|
|
@@ -89,16 +89,16 @@ export declare type ButtonListProperties = {
|
|
|
89
89
|
data: any;
|
|
90
90
|
}[];
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
export
|
|
92
|
+
type ButtonListItem = [ConversationMessageListItemType.ButtonList, ButtonListProperties];
|
|
93
|
+
export type VideoRequestProperties = {
|
|
94
94
|
header?: string;
|
|
95
95
|
acceptLabel: string;
|
|
96
96
|
declineLabel: string;
|
|
97
97
|
};
|
|
98
|
-
|
|
99
|
-
export
|
|
98
|
+
type VideoRequestItem = [ConversationMessageListItemType.VideoRequest, VideoRequestProperties];
|
|
99
|
+
export type HtmlProperties = {
|
|
100
100
|
body: string;
|
|
101
101
|
};
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
type HtmlItem = [ConversationMessageListItemType.HTML, HtmlProperties];
|
|
103
|
+
type ItemPayload = LinkListItem | TextItem | SeparatorItem | ButtonListItem | HtmlItem | VideoRequestItem;
|
|
104
104
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-conversation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33-next.0",
|
|
4
4
|
"description": "ACE Widget Conversation Platform",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@telia-ace/widget-core": "^1.0.
|
|
25
|
-
"@telia-ace/widget-forms": "^1.0.
|
|
26
|
-
"@telia-ace/widget-plugins": "^1.0.
|
|
27
|
-
"@telia-ace/widget-routing": "^1.0.
|
|
28
|
-
"@telia-ace/widget-services": "^1.0.
|
|
29
|
-
"@telia-ace/widget-ui": "^1.0.
|
|
30
|
-
"@telia-ace/widget-utilities": "^1.0.
|
|
24
|
+
"@telia-ace/widget-core": "^1.0.20-next.0",
|
|
25
|
+
"@telia-ace/widget-forms": "^1.0.27-next.0",
|
|
26
|
+
"@telia-ace/widget-plugins": "^1.0.21-next.0",
|
|
27
|
+
"@telia-ace/widget-routing": "^1.0.21-next.0",
|
|
28
|
+
"@telia-ace/widget-services": "^1.0.20-next.0",
|
|
29
|
+
"@telia-ace/widget-ui": "^1.0.27-next.0",
|
|
30
|
+
"@telia-ace/widget-utilities": "^1.0.9-next.0",
|
|
31
31
|
"@webprovisions/platform": "^1.1.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@emotion/react": "^11.10.5",
|
|
35
35
|
"@emotion/styled": "^11.10.5",
|
|
36
|
-
"@telia-ace/widget-developer-tools": "^1.0.
|
|
37
|
-
"@types/react": "^18.0.
|
|
36
|
+
"@telia-ace/widget-developer-tools": "^1.0.15-next.0",
|
|
37
|
+
"@types/react": "^18.0.26",
|
|
38
38
|
"react": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|