@telia-ace/widget-conversation 1.0.16 → 1.0.19

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 (40) hide show
  1. package/README.md +82 -116
  2. package/dist/{ui → components}/conversation/conversation.d.ts +0 -0
  3. package/dist/{ui/conversation/conversation-component.d.ts → components/conversation/plugin.d.ts} +8 -2
  4. package/dist/components/conversation/ui/content.d.ts +2 -0
  5. package/dist/{ui/conversation/conversation-input.d.ts → components/conversation/ui/input.d.ts} +0 -0
  6. package/dist/{ui/conversation/conversation-loader.d.ts → components/conversation/ui/loader.d.ts} +1 -1
  7. package/dist/components/conversation/ui/message-list-items/button-list.d.ts +8 -0
  8. package/dist/{ui/conversation/message-types/custom-message-list-item.d.ts → components/conversation/ui/message-list-items/custom.d.ts} +2 -2
  9. package/dist/components/conversation/ui/message-list-items/html.d.ts +5 -0
  10. package/dist/components/conversation/ui/message-list-items/link-list.d.ts +8 -0
  11. package/dist/components/conversation/ui/message-list-items/separator.d.ts +2 -0
  12. package/dist/components/conversation/ui/message-list-items/text.d.ts +6 -0
  13. package/dist/{ui/conversation → components/conversation/ui}/message-types/agent.d.ts +1 -1
  14. package/dist/{ui/conversation → components/conversation/ui}/message-types/index.d.ts +0 -1
  15. package/dist/components/conversation/ui/message-types/message-list.d.ts +9 -0
  16. package/dist/{ui/conversation → components/conversation/ui}/message-types/system.d.ts +0 -0
  17. package/dist/{ui/conversation → components/conversation/ui}/message-types/timestamp.d.ts +0 -0
  18. package/dist/{ui/conversation → components/conversation/ui}/message-types/user.d.ts +0 -0
  19. package/dist/components/conversation/ui/message.d.ts +7 -0
  20. package/dist/components/conversation/ui/overlay-outlets.d.ts +13 -0
  21. package/dist/components/conversation/ui/styles.d.ts +27 -0
  22. package/dist/{ui/return-button/return-button-component.d.ts → components/return-button/plugin.d.ts} +1 -2
  23. package/dist/{ui → components}/return-button/return-button.d.ts +0 -0
  24. package/dist/conversation-platform.d.ts +1 -2
  25. package/dist/conversation.js +525 -559
  26. package/dist/conversation.js.map +1 -1
  27. package/dist/index.d.ts +2 -1
  28. package/dist/index.js +36 -19
  29. package/dist/index.js.map +1 -1
  30. package/dist/return-button.js.map +1 -1
  31. package/dist/types.d.ts +27 -26
  32. package/dist/utils/map-actions.d.ts +1 -0
  33. package/package.json +8 -8
  34. package/dist/ui/conversation/conversation-content.d.ts +0 -11
  35. package/dist/ui/conversation/conversation-message.d.ts +0 -7
  36. package/dist/ui/conversation/conversation-styles.d.ts +0 -11
  37. package/dist/ui/conversation/index.d.ts +0 -2
  38. package/dist/ui/conversation/message-types/custom.d.ts +0 -9
  39. package/dist/ui/index.d.ts +0 -2
  40. package/dist/ui/return-button/index.d.ts +0 -2
package/README.md CHANGED
@@ -2,21 +2,23 @@
2
2
 
3
3
  The Widget Conversation API provides support for reading and writing to a conversational component inside a widget.
4
4
 
5
- ## Explore the API
5
+ ## Sandbox
6
6
 
7
- You can try out and watch the Conversation API in action by clicking the button below.
8
- Keep in mind that this is for demonstration purposes only and may not be best practice.
9
- We do not recommend binding functions to the `Window` object.
7
+ For demonstration purposes, we've set up a sandbox for the Widget Conversational API so that you can see it in action. Keep in mind that this is for demonstration purposes only and may not reflect best practice.
8
+
9
+ > We do not recommend binding functions to the `window` object.
10
10
 
11
11
  [![Edit elegant-jones-rnyrd](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/elegant-jones-rnyrd?fontsize=14&hidenavigation=1&theme=dark)
12
12
 
13
13
  ## Accessing the API
14
14
 
15
- Inside a plugin, access the global instance of `ConversationPlatform` by passing in the current `Container` to the `getInstance()` method. It will return a `Promise` that is resolved to the `ConversationPlatform` instance. On the instance, register a provider and pass in a name and handler by calling the `registerProvider()` function as shown below.
15
+ In order to access the API you need to have a widget with a conversational component.
16
16
 
17
- The handler function will be called once a conversational component for the specified provider is activated in the widget. Use the provider to interact with the conversation.
17
+ ### Creating the plugin
18
18
 
19
- ##### Example
19
+ You need to register the conversational provider in the `providers`-property in the component. To access the global instance of `ConversationPlatform`, you pass in the current `Container` to the `getInstance()` method. It will return a `Promise` that is resolved to the `ConversationPlatform` instance. In the instance, register a provider and pass in name and handler by calling the `registerProvider()` function as shown below.
20
+
21
+ The handler function will be called once a conversational component for the specified provider is activated in the widget. Use the provider to interact with the conversation.
20
22
 
21
23
  ```ts
22
24
  import { ConversationPlatform } from '@telia-ace/widget-conversation';
@@ -30,34 +32,39 @@ const MyPlugin = async (container) => {
30
32
  };
31
33
  ```
32
34
 
33
- ## Writing to the conversation
35
+ You also need to register the provider inside the widget configuration:
34
36
 
35
- When writing content to the conversation you will first need to create an `Agent` object and then use its `print()` function. Specify the type of entry to print and pass in the content.
36
-
37
- ### `print(content: object)`
37
+ ```JSON
38
+ "my-conversation-component": {
39
+ "type": "conversation",
40
+ "properties": {
41
+ "providers": ["my-chat"],
42
+ // ...
43
+ },
44
+ "context": {}
45
+ },
46
+ ```
38
47
 
39
- Returns a `ConversationEntry` message that can be used to update and/or remove the content from the conversation at a later stage.
48
+ ### Creating an agent in the conversation
40
49
 
41
- ##### Example
50
+ When using `createAgent` you can specify both a name and an avatar. These will then be displayed in the conversation alongside that agent's entries.
42
51
 
43
52
  ```ts
44
- const agent = conversation.createAgent();
45
- const entry = agent.print('Lorem ipsum');
46
-
47
- entry.update({
48
- // ...
53
+ const agent = conversation.createAgent({
54
+ name: 'Agent Smith',
55
+ avatar: 'https://www.site.com/avatar.jpg',
49
56
  });
50
-
51
- entry.remove();
52
57
  ```
53
58
 
54
- ### Messages
59
+ ## Writing to the conversation
60
+
61
+ ### Posting, updating and removing content
55
62
 
56
- #### Simple text message
63
+ When managing content in the conversation you'll first need to create an `Agent`-object and then use its `print()` function. There are serveral types of entries in order to accommedate different types of content.
57
64
 
58
- Used to render plain text without HTML-formatting.
65
+ The `print(content: object)` function let's you return a `ConversationEntry` message that can be used to update and/or remove the content from the conversation.
59
66
 
60
- ##### Example
67
+ ##### Example of simple text message
61
68
 
62
69
  ```ts
63
70
  // print user message
@@ -68,9 +75,22 @@ const agent = conversation.createAgent();
68
75
  agent.print('Lorem ipsum');
69
76
  ```
70
77
 
71
- #### Message with list of actions
78
+ ##### Example of updating or removing content
72
79
 
73
- Example of how to render a list with actions. Is only supported on `Agent` and as system message.
80
+ ```ts
81
+ const agent = conversation.createAgent();
82
+ const entry = agent.print('Hello world!');
83
+
84
+ entry.update({
85
+ // ...
86
+ });
87
+
88
+ entry.remove();
89
+ ```
90
+
91
+ ### Entry with list of actions
92
+
93
+ You can post an entry into the conversation with actions. You can specify a title, body and available actions. This is only supported for the `Agent` and will be displayed as a system message.
74
94
 
75
95
  | Name | Type | Description |
76
96
  | --------- | -------- | ------------------------------------------------------------- |
@@ -78,7 +98,7 @@ Example of how to render a list with actions. Is only supported on `Agent` and a
78
98
  | `body` | `string` | Body content for the entry. Supports HTML. |
79
99
  | `actions` | `object` | Key-value-pairs representing available actions for the entry. |
80
100
 
81
- ##### Example
101
+ ##### Example of a list of actions
82
102
 
83
103
  ```ts
84
104
  agent.print({
@@ -92,9 +112,9 @@ agent.print({
92
112
  });
93
113
  ```
94
114
 
95
- #### Message with a form
115
+ ### Entry with a form
96
116
 
97
- Example of how to render a form that can be handled by the `conversation.form` event. Is only supported on `Agent` and as system message.
117
+ You can also post a message with a form attached. This uses the `FormBuilder`-method. This is handled by the `conversation.form` event. It is only supported for `Agent` and will be displayed as a system message.
98
118
 
99
119
  | Name | Type | Description |
100
120
  | ------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -103,7 +123,7 @@ Example of how to render a form that can be handled by the `conversation.form` e
103
123
  | `form` | `(FormBuilder) => void` | A callback function for building the form. Refer to the [`@telia-ace/widget-forms`](https://www.npmjs.com/package/@telia-ace/widget-forms) package for more information about `FormBuilder`. |
104
124
  | `key` | `string` | The key used to refer to the form when validating and submitting the form. |
105
125
 
106
- ##### Example
126
+ ##### Example of an entry with a form
107
127
 
108
128
  ```ts
109
129
  agent.print({
@@ -132,47 +152,13 @@ agent.print({
132
152
  });
133
153
  ```
134
154
 
135
- ### Specify a sender name and/or avatar
136
-
137
- To create an agent with a name and avatar use the `createAgent` method on the conversation.
138
-
139
- ##### Example
140
-
141
- ```ts
142
- const agent = conversation.createAgent({
143
- name: 'Mr. Agent',
144
- avatar: 'https://www.site.com/avatar.jpg',
145
- });
146
-
147
- agent.print({
148
- title: 'I found the following invoices associated to your account:',
149
- actions: {
150
- action1: 'Action 1',
151
- action2: 'Action 2',
152
- action3: 'Action 3',
153
- },
154
- });
155
- ```
156
-
157
- ### Writing system messages
158
-
159
- In order to print a system message to the conversation you invoke the `print` method on the `conversation`. The `print` method accepts the same arguments as on the `Agent`.
160
-
161
- #### Example
162
-
163
- ```ts
164
- conversation.print('Lorem ipsum');
165
- ```
166
-
167
- ### Loading/typing indicator
168
-
169
- In many cases you will likely fetch data from an external resource before the content is written to the conversation. In this case you should use the `loading()` function on the `ConversationProvider` to inform the user that something is about to happen. Even in cases when the response is available immediately it gives a better user experience to present a loading indicator for a short while.
155
+ ### The loading and typing indicators
170
156
 
171
- In cases where you want to notify the user that the agent is currently typing, you should use the `typing` function on `Agent`.
157
+ When you need to fetch data from external resource you should use the `loading()` function on the `ConversationProvider` to inform the user that something is about to happen. Even in cases when the response is available immediately it gives a better user experience to present a loading indicator for a short while.
172
158
 
173
- #### Example
159
+ When you need to make the user aware that your agent is currently typing, you should use the `typing` function on `Agent`.
174
160
 
175
- ##### Loading
161
+ #### Example of `loading`
176
162
 
177
163
  ```ts
178
164
  const done = conversation.loading();
@@ -180,7 +166,7 @@ const done = conversation.loading();
180
166
  done(); // remove loader
181
167
  ```
182
168
 
183
- ##### Typing indicator
169
+ #### Example of `typing`
184
170
 
185
171
  ```ts
186
172
  const done = agent.typing();
@@ -188,51 +174,34 @@ const done = agent.typing();
188
174
  done(); // remove loader
189
175
  ```
190
176
 
191
- ## Reading from the conversation
192
-
193
- The second parameter to your provider handler is a `ComponentNode` instance representing the conversational component. On it you can read the component's properties and react to action emitted by the component.
194
-
195
- ### Actions
196
-
197
- The following actions are emitted from the conversational component.
198
-
199
- **Important**: For default actions it is important to call `next()` unless you want to completely stop the execution flow for the particular action. Not doing so will stop any succeeding handlers and may unintentionally break functionality.
200
-
201
- #### `conversation.user-typing`
177
+ ## Writing system messages
202
178
 
203
- Is emitted when the user´s typing indicator is changed.
179
+ System message in the conversation are sent by using the `print` method on the `conversation`. The `print` method accepts the same arguments as on the `Agent`.
204
180
 
205
- | Name | Type | Description |
206
- | ------------ | -------- | ---------------------------------------------- |
207
- | `textLength` | `number` | The current text length of the user's message. |
208
-
209
- #### `conversation.user-submit`
210
-
211
- Is emitted when the user submits a message.
212
-
213
- | Name | Type | Description |
214
- | ------ | -------- | ------------------- |
215
- | `text` | `string` | The submitted text. |
181
+ #### Example
216
182
 
217
- #### `conversation.action`
183
+ ```ts
184
+ conversation.print('Hello world!');
185
+ ```
218
186
 
219
- Is emitted when the user clicks on an action.
187
+ ## Reading from the conversation
220
188
 
221
- | Name | Type | Description |
222
- | ------ | -------- | ---------------------------- |
223
- | `text` | `string` | Key of the submitted action. |
189
+ The second parameter to your provider handler is a `ComponentNode` instance representing the conversational component. From it you can read the component's properties and react to action emitted by the component.
224
190
 
225
- #### `conversation.form`
191
+ The following actions are emitted from the conversational component:
226
192
 
227
- Is emitted when the data of a form is changed.
193
+ > For default actions it is necessary to call `next()` unless you want to completely stop the execution flow for the particular action. Not doing so will stop any succeeding handlers and may unintentionally break functionality.
228
194
 
229
- | Name | Type | Description |
230
- | ----------- | ---------- | --------------------------------------------------------- |
231
- | `data` | `FormData` | The form data. |
232
- | `formKey` | `string` | The unique key for the form. |
233
- | `actionKey` | `string` | The key of the form component responsible for the change. |
195
+ | Action | Name | Type | Description |
196
+ | -------------------------- | ------------ | ---------- | --------------------------------------------------------- |
197
+ | `conversation.user-typing` | `textLength` | `number` | The current text length of the user's message. |
198
+ | `conversation.user-submit` | `text` | `string` | The submitted text. |
199
+ | `conversation.action` | `text` | `string` | Key of the submitted action. |
200
+ | `conversation.form` | `data` | `FormData` | The form data. |
201
+ | `conversation.form` | `formKey` | `string` | The unique key for the form. |
202
+ | `conversation.form` | `actionKey` | `string` | The key of the form component responsible for the change. |
234
203
 
235
- In order to subscribe to any of these actions you have access to the `ComponentNodeController`. Below is an example how to subscribe to the `conversation.form` action.
204
+ If you want to subscribe to any of the `conversation.form`-actions you have access to the `ComponentNodeController`. Example below:
236
205
 
237
206
  ```ts
238
207
  component.actions.watch('conversation.form', (input, next) => {
@@ -242,7 +211,7 @@ component.actions.watch('conversation.form', (input, next) => {
242
211
 
243
212
  ### Submitting forms
244
213
 
245
- In order to listen for form events you should subscribe to the `conversation.form` event. By passing a `key` to the form, you are able to target the form in this listener.
214
+ If you want to listen for form events you should subscribe to the `conversation.form` event. By passing a `key` to the form, you are able to target the form in this listener.
246
215
 
247
216
  ```ts
248
217
  component.actions.watch('conversation.form', (input, next) => {
@@ -257,24 +226,21 @@ component.actions.watch('conversation.form', (input, next) => {
257
226
 
258
227
  ### Adding custom list items
259
228
 
260
- In order to add custom list items to the conversation you may register your own custom React component, which will be mapped to a key also provided by you.
229
+ You can add custom list items to the conversation. To do so you have to register your own custom React component, which will be mapped to a key also provided by you.
261
230
 
262
- You register the component like below:
231
+ #### Example of custom list items
263
232
 
264
233
  ```ts
265
- const platform = await ConversationPlatform.getInstance(container);
234
+ import { registerCustomMessageComponent } from '@telia-ace/widget-conversation';
266
235
 
267
- platform.registerConversationItem('my-custom-list-item', import('./my-custom-list-item'));
236
+ registerCustomMessageComponent(container, 'my-custom-list-item', import('./my-custom-list-item'));
268
237
  ```
269
238
 
270
239
  Once the component has been registered it will be available to be used as any other item in the `print` method on the Conversation API.
271
240
 
272
- ### Secondary action
273
-
274
- You may add a secondary action next to the user input field, which will fire a custom event that you provide.
241
+ ## Custom secondary action
275
242
 
276
- In order to accomplish this you need to add the `secondaryAction` property to the conversation component in the configuration.
277
- It accepts an object with the following properties:
243
+ You can add a secondary action button that's displayed next to the user input field. This button can run any event that you write. You need to add the `secondaryAction` property to the conversation component in the configuration. It accepts an object with the following properties:
278
244
 
279
245
  | Name | Type | Description |
280
246
  | -------- | -------- | ------------------------------------------------------------------- |
@@ -296,7 +262,7 @@ It accepts an object with the following properties:
296
262
  }
297
263
  ```
298
264
 
299
- When you have added this property to the component, you may listen to it in your code.
265
+ When you have added this property to the component, you can create an event for it in your code:
300
266
 
301
267
  ```ts
302
268
  component.actions.watch('conversation.action', (input, next) => {
@@ -18,6 +18,12 @@ 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;
21
27
  loading: boolean;
22
28
  inputPlaceholder: string;
23
29
  inputDisabled: boolean;
@@ -33,5 +39,5 @@ export declare type ConversationComponentProperties = {
33
39
  label: string;
34
40
  };
35
41
  };
36
- declare const ConversationComponent: (container: Container) => Promise<void>;
37
- export default ConversationComponent;
42
+ export declare const ConversationComponent: (container: Container) => Promise<void>;
43
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ConversationContent: React.FC;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ConversationMessageSender } from '../../types';
2
+ import { ConversationMessageSender } from '../../../types';
3
3
  declare type Props = {
4
4
  className?: string;
5
5
  agentData?: ConversationMessageSender;
@@ -0,0 +1,8 @@
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 {};
@@ -5,5 +5,5 @@ declare type Props = {
5
5
  [key: string]: any;
6
6
  };
7
7
  };
8
- declare const CustomMessageListItem: React.FC<Props>;
9
- export default CustomMessageListItem;
8
+ export declare const Custom: React.FC<Props>;
9
+ export {};
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { HtmlProperties } from '../../../../types';
3
+ declare type Props = HtmlProperties;
4
+ export declare const Html: FC<Props>;
5
+ export {};
@@ -0,0 +1,8 @@
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 {};
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Separator: FC;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ declare type Props = {
3
+ text: string;
4
+ };
5
+ export declare const Text: FC<Props>;
6
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ConversationMessageSender } from '../../../types';
2
+ import { ConversationMessageSender } from '../../../../types';
3
3
  declare type Props = {
4
4
  className?: string;
5
5
  children: any;
@@ -1,5 +1,4 @@
1
1
  export { default as AgentMessage } from './agent';
2
- export { default as CustomMessage } from './custom';
3
2
  export { default as SystemMessage } from './system';
4
3
  export { default as Timestamp } from './timestamp';
5
4
  export { default as UserMessage } from './user';
@@ -0,0 +1,9 @@
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 {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { BundledConversationMessage } from '../plugin';
3
+ declare type Props = {
4
+ className?: string;
5
+ } & BundledConversationMessage;
6
+ export declare const ConversationMessage: React.FC<Props>;
7
+ export {};
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,27 @@
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>;
@@ -15,5 +15,4 @@ export declare type ReturnButtonProps = {
15
15
  label?: string;
16
16
  };
17
17
  };
18
- declare const ConversationReturnButtonComponent: (container: Container) => Promise<void>;
19
- export default ConversationReturnButtonComponent;
18
+ export declare const ConversationReturnButtonComponent: (container: Container) => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { ComponentNodeController, ComponentPlatform, ReactComponent } from '@telia-ace/widget-core';
1
+ import { ComponentNodeController, ComponentPlatform } from '@telia-ace/widget-core';
2
2
  import { RouteData } from '@telia-ace/widget-routing';
3
3
  import { Container, EventManager, EventSubscriptionCancellation } from '@webprovisions/platform';
4
4
  import { ConversationController } from './conversation-controller';
@@ -38,7 +38,6 @@ export declare class ConversationPlatform {
38
38
  navigateToConversationIfActive(id: string): Promise<void>;
39
39
  setConversationEndedBehavior(behavior: ConversationEndedBehavior): Promise<void>;
40
40
  createController(id: string): ConversationController;
41
- registerConversationItem(name: string, component: ReactComponent): Promise<void>;
42
41
  registerProvider(name: string, handler: ConversationHandler): void;
43
42
  registerController(conversation: ConversationController, component: ComponentNodeController): boolean;
44
43
  private writeToComponents;