@telia-ace/widget-conversation 1.0.23 → 1.0.26
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/README.md +110 -210
- package/dist/conversation.3981560b.js +1100 -0
- package/dist/conversation.3981560b.js.map +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +432 -760
- package/dist/index.js.map +1 -1
- package/dist/return-button.8773c0de.js +159 -0
- package/dist/return-button.8773c0de.js.map +1 -0
- package/dist/types.d.ts +41 -34
- package/dist/{components/conversation/plugin.d.ts → ui/conversation/conversation-component.d.ts} +2 -13
- package/dist/ui/conversation/conversation-content.d.ts +11 -0
- package/dist/{components/conversation/ui/input.d.ts → ui/conversation/conversation-input.d.ts} +0 -0
- package/dist/ui/conversation/conversation-loader.d.ts +8 -0
- package/dist/ui/conversation/conversation-message.d.ts +7 -0
- package/dist/ui/conversation/conversation-styles.d.ts +11 -0
- package/dist/{components → ui}/conversation/conversation.d.ts +0 -0
- package/dist/ui/conversation/index.d.ts +2 -0
- package/dist/{components/conversation/ui → ui/conversation}/message-types/agent.d.ts +1 -1
- package/dist/ui/conversation/message-types/custom.d.ts +9 -0
- package/dist/{components/conversation/ui → ui/conversation}/message-types/index.d.ts +1 -0
- package/dist/{components/conversation/ui → ui/conversation}/message-types/system.d.ts +0 -0
- package/dist/{components/conversation/ui → ui/conversation}/message-types/timestamp.d.ts +0 -0
- package/dist/{components/conversation/ui → ui/conversation}/message-types/user.d.ts +0 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/return-button/index.d.ts +2 -0
- package/dist/{components/return-button/plugin.d.ts → ui/return-button/return-button-component.d.ts} +2 -1
- package/dist/{components → ui}/return-button/return-button.d.ts +0 -0
- package/package.json +10 -10
- package/dist/components/conversation/ui/content.d.ts +0 -2
- package/dist/components/conversation/ui/loader.d.ts +0 -8
- package/dist/components/conversation/ui/message-list-items/button-list.d.ts +0 -8
- package/dist/components/conversation/ui/message-list-items/custom.d.ts +0 -9
- package/dist/components/conversation/ui/message-list-items/html.d.ts +0 -5
- package/dist/components/conversation/ui/message-list-items/link-list.d.ts +0 -8
- package/dist/components/conversation/ui/message-list-items/separator.d.ts +0 -2
- package/dist/components/conversation/ui/message-list-items/text.d.ts +0 -6
- package/dist/components/conversation/ui/message-list-items/video-request.d.ts +0 -8
- package/dist/components/conversation/ui/message-types/message-list.d.ts +0 -9
- package/dist/components/conversation/ui/message.d.ts +0 -7
- package/dist/components/conversation/ui/overlay-outlets.d.ts +0 -13
- package/dist/components/conversation/ui/styles.d.ts +0 -27
- package/dist/conversation.js +0 -1398
- package/dist/conversation.js.map +0 -1
- package/dist/return-button.js +0 -174
- package/dist/return-button.js.map +0 -1
- package/dist/utils/map-actions.d.ts +0 -1
package/dist/{components/conversation/plugin.d.ts → ui/conversation/conversation-component.d.ts}
RENAMED
|
@@ -18,12 +18,6 @@ export declare type ConversationContent = {
|
|
|
18
18
|
export declare type ConversationComponentProperties = {
|
|
19
19
|
providers: string[];
|
|
20
20
|
messages: BundledConversationMessage[];
|
|
21
|
-
overlay?: {
|
|
22
|
-
conversation: boolean;
|
|
23
|
-
secondary: boolean;
|
|
24
|
-
};
|
|
25
|
-
overlayConversationHeader?: string;
|
|
26
|
-
overlayConversationCloseLabel?: string;
|
|
27
21
|
loading: boolean;
|
|
28
22
|
inputPlaceholder: string;
|
|
29
23
|
inputDisabled: boolean;
|
|
@@ -33,11 +27,6 @@ export declare type ConversationComponentProperties = {
|
|
|
33
27
|
avatarSize: string;
|
|
34
28
|
typingActors: any[];
|
|
35
29
|
sendButtonLabel: string;
|
|
36
|
-
secondaryAction?: {
|
|
37
|
-
icon?: string;
|
|
38
|
-
action: string;
|
|
39
|
-
label: string;
|
|
40
|
-
};
|
|
41
30
|
};
|
|
42
|
-
|
|
43
|
-
export
|
|
31
|
+
declare const ConversationComponent: (container: Container) => Promise<void>;
|
|
32
|
+
export default ConversationComponent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConversationMessageContent } from '../../types';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
className?: string;
|
|
5
|
+
content: ConversationMessageContent;
|
|
6
|
+
isUser: boolean;
|
|
7
|
+
stacked?: string;
|
|
8
|
+
CustomComponent?: any;
|
|
9
|
+
};
|
|
10
|
+
declare const ConversationContent: React.FC<Props>;
|
|
11
|
+
export default ConversationContent;
|
package/dist/{components/conversation/ui/input.d.ts → ui/conversation/conversation-input.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConversationMessageSender } from '../../types';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
className?: string;
|
|
5
|
+
agentData?: ConversationMessageSender;
|
|
6
|
+
};
|
|
7
|
+
declare const ConversationLoader: React.FC<Props>;
|
|
8
|
+
export default ConversationLoader;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BundledConversationMessage } from './conversation-component';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
className?: string;
|
|
5
|
+
} & BundledConversationMessage;
|
|
6
|
+
declare const ConversationMessageComponent: React.FC<Props>;
|
|
7
|
+
export default ConversationMessageComponent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Avatar: import("styled-components").StyledComponent<"div", any, any, never>;
|
|
3
|
+
export declare const LoaderAnimation: import("styled-components").Keyframes;
|
|
4
|
+
export declare const Loader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const ContentBundle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const MessageTitle: import("styled-components").StyledComponent<import("react").FC<import("@telia-ace/widget-ui").TypographyProps>, any, {}, never>;
|
|
7
|
+
export declare const MessageContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const MessageContent: import("styled-components").StyledComponent<"div", any, any, never>;
|
|
9
|
+
export declare const MessageContentPart: import("styled-components").StyledComponent<"div", any, {
|
|
10
|
+
noPadding?: boolean | undefined;
|
|
11
|
+
}, never>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/{components/return-button/plugin.d.ts → ui/return-button/return-button-component.d.ts}
RENAMED
|
@@ -15,4 +15,5 @@ export declare type ReturnButtonProps = {
|
|
|
15
15
|
label?: string;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
declare const ConversationReturnButtonComponent: (container: Container) => Promise<void>;
|
|
19
|
+
export default ConversationReturnButtonComponent;
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-conversation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"description": "ACE Widget Conversation Platform",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"telia"
|
|
9
9
|
],
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"type": "module",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
14
14
|
"LICENSE.txt",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@telia-ace/widget-core": "^1.0.
|
|
29
|
-
"@telia-ace/widget-forms": "^1.0.
|
|
30
|
-
"@telia-ace/widget-plugins": "^1.0.
|
|
31
|
-
"@telia-ace/widget-routing": "^1.0.
|
|
32
|
-
"@telia-ace/widget-services": "^1.0.
|
|
33
|
-
"@telia-ace/widget-ui": "^1.0.
|
|
28
|
+
"@telia-ace/widget-core": "^1.0.13",
|
|
29
|
+
"@telia-ace/widget-forms": "^1.0.20",
|
|
30
|
+
"@telia-ace/widget-plugins": "^1.0.14",
|
|
31
|
+
"@telia-ace/widget-routing": "^1.0.14",
|
|
32
|
+
"@telia-ace/widget-services": "^1.0.13",
|
|
33
|
+
"@telia-ace/widget-ui": "^1.0.20",
|
|
34
34
|
"@telia-ace/widget-utilities": "^1.0.2",
|
|
35
35
|
"@webprovisions/platform": "^1.1.2"
|
|
36
36
|
},
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/react": "^16.8.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "199c3dc899e1e2a3c92dc82619278c3aa0e0814d"
|
|
45
45
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ConversationMessageSender } from '../../../types';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
className?: string;
|
|
5
|
-
agentData?: ConversationMessageSender;
|
|
6
|
-
};
|
|
7
|
-
declare const ConversationLoader: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export default ConversationLoader;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DispatchAction } from '@telia-ace/widget-ui';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { ButtonListProperties } from '../../../../types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
dispatch: DispatchAction;
|
|
6
|
-
} & ButtonListProperties;
|
|
7
|
-
export declare const ButtonList: FC<Props>;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DispatchAction } from '@telia-ace/widget-ui';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { LinkListProperties } from '../../../../types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
dispatch: DispatchAction;
|
|
6
|
-
} & LinkListProperties;
|
|
7
|
-
export declare const LinkList: FC<Props>;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DispatchAction } from '@telia-ace/widget-ui';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { VideoRequestProperties } from '../../../../types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
dispatch: DispatchAction;
|
|
6
|
-
} & VideoRequestProperties;
|
|
7
|
-
export declare const VideoRequest: FC<Props>;
|
|
8
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DispatchAction } from '@telia-ace/widget-ui';
|
|
3
|
-
import { ConverstationMessageItem } from '../../../../types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
items: ConverstationMessageItem<any>[];
|
|
6
|
-
dispatch: DispatchAction;
|
|
7
|
-
};
|
|
8
|
-
export declare const MessageList: FC<Props>;
|
|
9
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DispatchAction } from '@telia-ace/widget-ui';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
declare type OverlayOutletProps = {
|
|
4
|
-
dispatch: DispatchAction;
|
|
5
|
-
};
|
|
6
|
-
export declare const OverlayOutlet: FC<OverlayOutletProps>;
|
|
7
|
-
declare type ConversationOverlayProps = {
|
|
8
|
-
dispatch: DispatchAction;
|
|
9
|
-
header?: string;
|
|
10
|
-
buttonLabel?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const ConversationOverlayOutlet: FC<ConversationOverlayProps>;
|
|
13
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Avatar: import("styled-components").StyledComponent<"div", any, any, never>;
|
|
3
|
-
export declare const LoaderAnimation: import("styled-components").Keyframes;
|
|
4
|
-
export declare const Loader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const ContentBundle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const MessageTitle: import("styled-components").StyledComponent<import("react").FC<import("@telia-ace/widget-ui").TypographyProps>, any, {}, never>;
|
|
7
|
-
export declare const MessageContainer: import("styled-components").StyledComponent<"div", any, {
|
|
8
|
-
user?: boolean | undefined;
|
|
9
|
-
}, never>;
|
|
10
|
-
export declare type Stacked = 'first' | 'last' | 'middle';
|
|
11
|
-
export declare const MessageContent: import("styled-components").StyledComponent<"div", any, {
|
|
12
|
-
user?: boolean | undefined;
|
|
13
|
-
fullWidth?: boolean | undefined;
|
|
14
|
-
stacked?: Stacked | undefined;
|
|
15
|
-
}, never>;
|
|
16
|
-
export declare const MessageContentPart: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
-
export declare const messageContentPadding: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
|
18
|
-
export declare const StyledForm: import("styled-components").StyledComponent<import("react").FC<{
|
|
19
|
-
data?: import("@telia-ace/widget-forms").FormData | null | undefined;
|
|
20
|
-
className?: string | undefined;
|
|
21
|
-
onChange?: Function | undefined;
|
|
22
|
-
autoFocus?: boolean | undefined;
|
|
23
|
-
schema: import("@telia-ace/widget-forms/dist/form").FormSchema;
|
|
24
|
-
layout: import("@telia-ace/widget-forms/dist/form").FormLayout;
|
|
25
|
-
}>, any, {}, never>;
|
|
26
|
-
export declare const StyledActionList: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("@telia-ace/widget-ui").ListProps, "key" | "items" | keyof import("react").HTMLAttributes<HTMLUListElement> | "renderItem" | "renderLi"> & import("react").RefAttributes<HTMLUListElement>>, any, {}, never>;
|
|
27
|
-
export declare const StyledActionButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|