@telia-ace/widget-conversation 1.0.15 → 1.0.16

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.
Files changed (41) hide show
  1. package/LICENSE.txt +5 -5
  2. package/README.md +307 -256
  3. package/dist/agent.d.ts +17 -17
  4. package/dist/conversation-controller.d.ts +88 -88
  5. package/dist/conversation-form-adapter.d.ts +7 -7
  6. package/dist/conversation-platform.d.ts +50 -50
  7. package/dist/conversation-provider.d.ts +22 -22
  8. package/dist/conversation.js +783 -5
  9. package/dist/conversation.js.map +1 -1
  10. package/dist/index.d.ts +9 -9
  11. package/dist/index.js +868 -9
  12. package/dist/index.js.map +1 -1
  13. package/dist/resolve-entity-value.d.ts +10 -10
  14. package/dist/return-button.js.map +1 -1
  15. package/dist/types.d.ts +95 -110
  16. package/dist/ui/conversation/conversation-component.d.ts +37 -37
  17. package/dist/ui/conversation/conversation-content.d.ts +11 -12
  18. package/dist/ui/conversation/conversation-input.d.ts +6 -6
  19. package/dist/ui/conversation/conversation-loader.d.ts +8 -8
  20. package/dist/ui/conversation/conversation-message.d.ts +7 -7
  21. package/dist/ui/conversation/conversation-styles.d.ts +11 -11
  22. package/dist/ui/conversation/conversation.d.ts +6 -6
  23. package/dist/ui/conversation/index.d.ts +2 -3
  24. package/dist/ui/conversation/message-types/agent.d.ts +11 -11
  25. package/dist/ui/conversation/message-types/custom-message-list-item.d.ts +9 -9
  26. package/dist/ui/conversation/message-types/custom.d.ts +9 -9
  27. package/dist/ui/conversation/message-types/index.d.ts +5 -5
  28. package/dist/ui/conversation/message-types/system.d.ts +12 -12
  29. package/dist/ui/conversation/message-types/timestamp.d.ts +8 -8
  30. package/dist/ui/conversation/message-types/user.d.ts +8 -8
  31. package/dist/ui/index.d.ts +2 -2
  32. package/dist/ui/return-button/index.d.ts +2 -2
  33. package/dist/ui/return-button/return-button-component.d.ts +19 -19
  34. package/dist/ui/return-button/return-button.d.ts +6 -6
  35. package/dist/user.d.ts +7 -7
  36. package/dist/utils/custom-message.d.ts +3 -3
  37. package/dist/utils/index.d.ts +1 -1
  38. package/dist/utils/open-chat-widget.d.ts +4 -4
  39. package/package.json +8 -8
  40. package/dist/index2.js +0 -1678
  41. package/dist/index2.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- import { ConversationMessageSender } from '../../../types';
3
- declare type Props = {
4
- className?: string;
5
- children: any;
6
- sender: ConversationMessageSender;
7
- timestamp: number | null;
8
- };
9
- declare const AgentMessage: React.FC<Props>;
10
- export declare const StyledAgentMessage: import("styled-components").StyledComponent<"div", any, any, never>;
11
- export default AgentMessage;
1
+ import React from 'react';
2
+ import { ConversationMessageSender } from '../../../types';
3
+ declare type Props = {
4
+ className?: string;
5
+ children: any;
6
+ sender: ConversationMessageSender;
7
+ timestamp: number | null;
8
+ };
9
+ declare const AgentMessage: React.FC<Props>;
10
+ export declare const StyledAgentMessage: import("styled-components").StyledComponent<"div", any, any, never>;
11
+ export default AgentMessage;
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- declare type Props = {
3
- type: string;
4
- content?: {
5
- [key: string]: any;
6
- };
7
- };
8
- declare const CustomMessageListItem: React.FC<Props>;
9
- export default CustomMessageListItem;
1
+ import React from 'react';
2
+ declare type Props = {
3
+ type: string;
4
+ content?: {
5
+ [key: string]: any;
6
+ };
7
+ };
8
+ declare const CustomMessageListItem: React.FC<Props>;
9
+ export default CustomMessageListItem;
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- export declare type Props = {
3
- type: any;
4
- content: any;
5
- isUser: any;
6
- stacked: any;
7
- };
8
- declare const CustomMessage: React.FC<Props>;
9
- export default CustomMessage;
1
+ import React from 'react';
2
+ export declare type Props = {
3
+ type: any;
4
+ content: any;
5
+ isUser: any;
6
+ stacked: any;
7
+ };
8
+ declare const CustomMessage: React.FC<Props>;
9
+ export default CustomMessage;
@@ -1,5 +1,5 @@
1
- export { default as AgentMessage } from './agent';
2
- export { default as CustomMessage } from './custom';
3
- export { default as SystemMessage } from './system';
4
- export { default as Timestamp } from './timestamp';
5
- export { default as UserMessage } from './user';
1
+ export { default as AgentMessage } from './agent';
2
+ export { default as CustomMessage } from './custom';
3
+ export { default as SystemMessage } from './system';
4
+ export { default as Timestamp } from './timestamp';
5
+ export { default as UserMessage } from './user';
@@ -1,12 +1,12 @@
1
- import React from 'react';
2
- export declare type Props = {
3
- className?: string;
4
- timestamp: number;
5
- discrete?: boolean;
6
- fullWidth?: boolean;
7
- children: any;
8
- };
9
- declare const SystemMessage: React.FC<Props>;
10
- export declare const StyledSystemMessage: import("styled-components").StyledComponent<"div", any, any, never>;
11
- export declare const Discrete: import("styled-components").StyledComponent<"div", any, {}, never>;
12
- export default SystemMessage;
1
+ import React from 'react';
2
+ export declare type Props = {
3
+ className?: string;
4
+ timestamp: number;
5
+ discrete?: boolean;
6
+ fullWidth?: boolean;
7
+ children: any;
8
+ };
9
+ declare const SystemMessage: React.FC<Props>;
10
+ export declare const StyledSystemMessage: import("styled-components").StyledComponent<"div", any, any, never>;
11
+ export declare const Discrete: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ export default SystemMessage;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- declare type Props = {
3
- className?: string;
4
- name?: string;
5
- timestamp?: number | null;
6
- };
7
- declare const Timestamp: React.FC<Props>;
8
- export default Timestamp;
1
+ import React from 'react';
2
+ declare type Props = {
3
+ className?: string;
4
+ name?: string;
5
+ timestamp?: number | null;
6
+ };
7
+ declare const Timestamp: React.FC<Props>;
8
+ export default Timestamp;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- export declare type Props = {
3
- className?: string;
4
- timestamp: number;
5
- children: any;
6
- };
7
- declare const UserMessage: React.FC<Props>;
8
- export default UserMessage;
1
+ import React from 'react';
2
+ export declare type Props = {
3
+ className?: string;
4
+ timestamp: number;
5
+ children: any;
6
+ };
7
+ declare const UserMessage: React.FC<Props>;
8
+ export default UserMessage;
@@ -1,2 +1,2 @@
1
- export { default as ConversationComponent, StyledButtonList } from './conversation';
2
- export { default as ConversationReturnButtonComponent } from './return-button';
1
+ export { default as ConversationComponent } from './conversation';
2
+ export { default as ConversationReturnButtonComponent } from './return-button';
@@ -1,2 +1,2 @@
1
- import ConversationReturnButtonComponent from './return-button-component';
2
- export default ConversationReturnButtonComponent;
1
+ import ConversationReturnButtonComponent from './return-button-component';
2
+ export default ConversationReturnButtonComponent;
@@ -1,19 +1,19 @@
1
- import { Symbol } from '@telia-ace/widget-ui';
2
- import { Container } from '@webprovisions/platform';
3
- export declare enum ButtonMode {
4
- flat = "flat",
5
- flashing = "flashing",
6
- flashingGradient = "flashingGradient"
7
- }
8
- export declare type ReturnButtonProps = {
9
- label: string;
10
- active: boolean;
11
- mode: ButtonMode;
12
- alert?: {
13
- symbol?: Symbol;
14
- show?: boolean;
15
- label?: string;
16
- };
17
- };
18
- declare const ConversationReturnButtonComponent: (container: Container) => Promise<void>;
19
- export default ConversationReturnButtonComponent;
1
+ import { Symbol } from '@telia-ace/widget-ui';
2
+ import { Container } from '@webprovisions/platform';
3
+ export declare enum ButtonMode {
4
+ flat = "flat",
5
+ flashing = "flashing",
6
+ flashingGradient = "flashingGradient"
7
+ }
8
+ export declare type ReturnButtonProps = {
9
+ label: string;
10
+ active: boolean;
11
+ mode: ButtonMode;
12
+ alert?: {
13
+ symbol?: Symbol;
14
+ show?: boolean;
15
+ label?: string;
16
+ };
17
+ };
18
+ declare const ConversationReturnButtonComponent: (container: Container) => Promise<void>;
19
+ export default ConversationReturnButtonComponent;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- declare type Props = {
3
- className: string;
4
- };
5
- declare const ReturnButton: React.SFC<Props>;
6
- export default ReturnButton;
1
+ import React from 'react';
2
+ declare type Props = {
3
+ className: string;
4
+ };
5
+ declare const ReturnButton: React.SFC<Props>;
6
+ export default ReturnButton;
package/dist/user.d.ts CHANGED
@@ -1,7 +1,7 @@
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) => ConversationEntry;
7
- }
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) => ConversationEntry;
7
+ }
@@ -1,3 +1,3 @@
1
- import { ReactComponent } from '@telia-ace/widget-core';
2
- import { Container } from '@webprovisions/platform';
3
- export declare const registerCustomMessageComponent: (container: Container, type: string, component: ReactComponent) => Promise<void>;
1
+ import { ReactComponent } from '@telia-ace/widget-core';
2
+ import { Container } from '@webprovisions/platform';
3
+ export declare const registerCustomMessageComponent: (container: Container, type: string, component: ReactComponent) => Promise<void>;
@@ -1 +1 @@
1
- export { navigateToConversation, openChatWidget, shouldPreventDefault } from './open-chat-widget';
1
+ export { navigateToConversation, openChatWidget, shouldPreventDefault } from './open-chat-widget';
@@ -1,4 +1,4 @@
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 | undefined) => boolean | Promise<void> | Promise<boolean>;
4
- export declare const navigateToConversation: (container: Container, contactMethod: any, routeName?: string) => any;
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 | undefined) => boolean | Promise<void> | Promise<boolean>;
4
+ export declare const navigateToConversation: (container: Container, contactMethod: any, routeName?: string) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-conversation",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "ACE Widget Conversation Platform",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@telia-ace/widget-core": "^1.0.7",
28
- "@telia-ace/widget-forms": "^1.0.11",
29
- "@telia-ace/widget-plugins": "^1.0.8",
30
- "@telia-ace/widget-routing": "^1.0.8",
31
- "@telia-ace/widget-services": "^1.0.7",
32
- "@telia-ace/widget-ui": "^1.0.11",
27
+ "@telia-ace/widget-core": "^1.0.8",
28
+ "@telia-ace/widget-forms": "^1.0.12",
29
+ "@telia-ace/widget-plugins": "^1.0.9",
30
+ "@telia-ace/widget-routing": "^1.0.9",
31
+ "@telia-ace/widget-services": "^1.0.8",
32
+ "@telia-ace/widget-ui": "^1.0.12",
33
33
  "@telia-ace/widget-utilities": "^1.0.2",
34
34
  "@webprovisions/platform": "^1.1.2"
35
35
  },
@@ -40,5 +40,5 @@
40
40
  "devDependencies": {
41
41
  "@types/react": "^16.8.0"
42
42
  },
43
- "gitHead": "0dfcfc79a4b6c45f98b7e62b71d5c0a30b907236"
43
+ "gitHead": "58ed2317a3d94d1eaae4747035949447e0a31d54"
44
44
  }