@seamly/web-ui 20.2.0-alpha.3 → 20.3.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/CHANGELOG.md +729 -0
- package/build/dist/lib/deprecated-view.css +1 -1
- package/build/dist/lib/index.debug.js +270 -260
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +64 -60
- package/build/dist/lib/index.js +4487 -3568
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +2 -2
- package/build/dist/lib/standalone.js +11945 -9368
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/style-guide.js +7462 -7267
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/styles.css +1 -1
- package/package.json +15 -14
- package/src/javascripts/api/index.js +5 -4
- package/src/javascripts/domains/app/actions.js +22 -10
- package/src/javascripts/domains/config/reducer.js +2 -2
- package/src/javascripts/domains/forms/reducer.js +1 -1
- package/src/javascripts/domains/i18n/reducer.js +1 -1
- package/src/javascripts/domains/interrupt/reducer.js +1 -1
- package/src/javascripts/domains/translations/components/chat-status.js +10 -9
- package/src/javascripts/domains/translations/components/options-button.js +8 -3
- package/src/javascripts/domains/translations/components/options-dialog/form.js +6 -5
- package/src/javascripts/domains/translations/components/options-dialog/index.js +5 -2
- package/src/javascripts/domains/translations/hooks.js +15 -1
- package/src/javascripts/domains/translations/middleware.js +5 -2
- package/src/javascripts/domains/translations/reducer.js +2 -2
- package/src/javascripts/domains/visibility/actions.js +1 -1
- package/src/javascripts/lib/debug.js +1 -0
- package/src/javascripts/lib/external-api/index.js +29 -4
- package/src/javascripts/style-guide/components/app.js +1 -1
- package/src/javascripts/style-guide/components/static-core.js +1 -4
- package/src/javascripts/ui/components/conversation/conversation.js +2 -2
- package/src/javascripts/ui/components/conversation/event/card-component.js +4 -1
- package/src/javascripts/ui/components/conversation/event/carousel-component/index.js +1 -1
- package/src/javascripts/ui/components/conversation/event/conversation-suggestions.js +18 -10
- package/src/javascripts/ui/components/conversation/event/cta.js +1 -1
- package/src/javascripts/ui/components/conversation/event/divider/variants/new-translation.js +4 -9
- package/src/javascripts/ui/components/conversation/event/image.js +1 -1
- package/src/javascripts/ui/components/conversation/event/participant.js +3 -8
- package/src/javascripts/ui/components/conversation/event/text.js +2 -2
- package/src/javascripts/ui/components/conversation/loader.js +1 -1
- package/src/javascripts/ui/components/conversation/message-container.js +1 -1
- package/src/javascripts/ui/components/core/seamly-activity-monitor.js +1 -1
- package/src/javascripts/ui/components/core/seamly-core.js +2 -2
- package/src/javascripts/ui/components/core/seamly-file-upload.js +1 -1
- package/src/javascripts/ui/components/core/seamly-instance-functions-loader.js +6 -2
- package/src/javascripts/ui/components/core/seamly-live-region.js +2 -2
- package/src/javascripts/ui/components/entry/entry-container.js +2 -2
- package/src/javascripts/ui/components/entry/text-entry/hooks.js +1 -4
- package/src/javascripts/ui/components/entry/text-entry/text-entry-form.js +1 -1
- package/src/javascripts/ui/components/form-controls/select.js +1 -1
- package/src/javascripts/ui/components/layout/agent-info.js +1 -1
- package/src/javascripts/ui/components/layout/header.js +1 -1
- package/src/javascripts/ui/components/options/options-button.js +1 -1
- package/src/javascripts/ui/components/options/options.js +1 -1
- package/src/javascripts/ui/components/options/transcript/index.js +1 -1
- package/src/javascripts/ui/components/suggestions/suggestions-item.js +1 -1
- package/src/javascripts/ui/components/warnings/resume-conversation-prompt.js +1 -1
- package/src/javascripts/ui/components/widgets/lightbox.js +1 -1
- package/src/javascripts/ui/hooks/file-upload-hooks.js +2 -3
- package/src/javascripts/ui/hooks/focus-helper-hooks.js +2 -2
- package/src/javascripts/ui/hooks/seamly-entry-hooks.js +1 -1
- package/src/javascripts/ui/hooks/seamly-option-hooks.js +1 -1
- package/src/javascripts/ui/hooks/use-seamly-chat.js +2 -2
- package/src/javascripts/ui/hooks/use-seamly-commands.js +7 -7
- package/src/javascripts/ui/hooks/use-seamly-idle-detach-countdown.js +4 -4
- package/src/javascripts/ui/hooks/use-seamly-resume-conversation-prompt.js +2 -2
- package/src/javascripts/ui/hooks/use-single-file-upload.js +1 -1
- package/src/javascripts/ui/utils/general-utils.js +1 -1
- package/src/javascripts/ui/utils/seamly-utils.js +1 -0
- package/src/stylesheets/1-settings/_animations.scss +1 -1
- package/src/stylesheets/1-settings/_config.scss +17 -2
- package/src/stylesheets/2-tools/_functions.scss +4 -4
- package/src/stylesheets/2-tools/_mixins.scss +16 -14
- package/src/stylesheets/3-chat/_chat.scss +1 -1
- package/src/stylesheets/5-components/_choice-prompt.scss +1 -1
- package/src/stylesheets/5-components/_collapse-button.scss +1 -1
- package/src/stylesheets/5-components/_input.scss +1 -1
- package/src/stylesheets/5-components/_loader.scss +2 -2
- package/src/stylesheets/5-components/_message-carousel.scss +1 -1
- package/src/stylesheets/5-components/_message-count.scss +1 -1
- package/src/stylesheets/5-components/_message.scss +1 -2
- package/src/stylesheets/5-components/_modal.scss +1 -1
- package/src/stylesheets/5-components/_options.scss +3 -3
- package/src/stylesheets/5-components/_suggestions.scss +4 -5
- package/src/stylesheets/5-components/_upload.scss +1 -1
- package/src/stylesheets/7-deprecated/1-settings/_animations.scss +1 -1
- package/src/stylesheets/7-deprecated/1-settings/_config.scss +10 -7
- package/src/stylesheets/7-deprecated/2-tools/_functions.scss +2 -2
- package/src/stylesheets/7-deprecated/2-tools/_mixins.scss +6 -4
- package/src/stylesheets/7-deprecated/3-app/_app.scss +2 -2
- package/src/stylesheets/7-deprecated/4-base/_formelements.scss +1 -0
- package/src/stylesheets/7-deprecated/5-components/_chat-status.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_collapse-button.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_disclaimer.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_input.scss +2 -1
- package/src/stylesheets/7-deprecated/5-components/_loader.scss +2 -2
- package/src/stylesheets/7-deprecated/5-components/_message-count.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_message.scss +3 -4
- package/src/stylesheets/7-deprecated/5-components/_modal.scss +1 -1
- package/src/stylesheets/7-deprecated/5-components/_options.scss +2 -2
- package/src/stylesheets/7-deprecated/5-components/_upload.scss +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,729 @@
|
|
|
1
|
+
# Seamly Web UI Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 20.3.0 (22 June 2022)
|
|
6
|
+
|
|
7
|
+
### Changes
|
|
8
|
+
- The `preact` peerDependency has been upgraded to version `10.7.3`. This should also be used in client implementations.
|
|
9
|
+
- Allow initial topic to be set through configuration or by calling the `setTopic` window API call before initialization.
|
|
10
|
+
- When the `setVariables` window API call is called before initialization it will be merged with the variables set through configuration.
|
|
11
|
+
- Added support for using locale native name in translation button label. This concerns the `translations.settings.openButtonText` label.
|
|
12
|
+
For instance, change the `message` to:
|
|
13
|
+
```
|
|
14
|
+
{hasLanguage, select, true {Language: {language}} other {Translation}}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Bugfixes
|
|
18
|
+
- Fix support for sending in both an `apiKey` and an `externalId` as query parameter on the demo pages.
|
|
19
|
+
- Fix ensuring conversation suggestions remain hidden in the window variant after user interaction.
|
|
20
|
+
- Fix classes to match BEM convention (modifier classes) in suggestions-item component.
|
|
21
|
+
- Fix missing translation locale and variables during initialization.
|
|
22
|
+
|
|
23
|
+
## 20.2.0 (10 May 2022)
|
|
24
|
+
|
|
25
|
+
### Changes
|
|
26
|
+
- Allow setting the automatic translation of the conversation upon initialization.
|
|
27
|
+
|
|
28
|
+
### Bugfixes
|
|
29
|
+
- Fix inline interface to be open by default if the user has responded.
|
|
30
|
+
- Fix agent name as subtitle of the header in the `DeprecatedView`.
|
|
31
|
+
- Fix missing variables for the client name and client version.
|
|
32
|
+
- Fix incorrect class name `icon` to `avatar` on agent and user avatar.
|
|
33
|
+
- Fix default participant icon when switching to a service without an agent avatar.
|
|
34
|
+
|
|
35
|
+
## 20.1.0 (26 April 2022)
|
|
36
|
+
|
|
37
|
+
### Changes
|
|
38
|
+
- The upload component has been rearranged to remove the redundant div container.
|
|
39
|
+
- Expose `SeamlyStaticCore` component from styleguide in package.
|
|
40
|
+
- All components that need disabled states now use aria-disabled for consistency across the board.
|
|
41
|
+
- Added `message` to the Error object in the `errorCallback` when the error originates from the back-end.
|
|
42
|
+
- Expose client name and client version to the server.
|
|
43
|
+
- Expose layoutMode to the server.
|
|
44
|
+
|
|
45
|
+
### Bugfixes
|
|
46
|
+
- Fix scrolling to top of inline interface in style guide.
|
|
47
|
+
|
|
48
|
+
## 20.0.0 (4 April 2022)
|
|
49
|
+
|
|
50
|
+
### The new interface
|
|
51
|
+
Version 20.0.0 contains a major upgrade of the look and feel. The most noticeable improvements are:
|
|
52
|
+
|
|
53
|
+
* The inline interface now starts in a collapsed state so it uses less screen real-estate on load and allows for a more call-to-action based interaction.
|
|
54
|
+
* The chat button for the window variant shows pre-chat messages which makes it possible to have different call-to-action triggers based on the users need/location.
|
|
55
|
+
* All UI variants have more screen real-estate for chat as the fixed header has been redesigned.
|
|
56
|
+
* FAQ/suggestion handling is now part of the chat-flow in the window and app variants making it a more natural interaction.
|
|
57
|
+
|
|
58
|
+
::: box--important
|
|
59
|
+
**Important**
|
|
60
|
+
The old UI has been deprecated and will be removed in a future version. New implementations should not use the deprecated style.
|
|
61
|
+
:::
|
|
62
|
+
|
|
63
|
+
### Changes
|
|
64
|
+
- Add `.cvco-form` class to form component.
|
|
65
|
+
- Add `.cvco-form--submitted`, `.cvco-form--valid`, `.cvco-form--invalid` modifier classes to form component.
|
|
66
|
+
- Add `onError` handler to form component.
|
|
67
|
+
- Add error classes when an error occurs in a form.
|
|
68
|
+
- Legacy feature cobrowsing has been removed.
|
|
69
|
+
- Emit warning on console if a translation label is missing.
|
|
70
|
+
- Add Splash message component
|
|
71
|
+
- Initializing a web-ui instance in the same parentElement will destroy the existing instance first
|
|
72
|
+
- Add `app` layoutmode
|
|
73
|
+
- Move initialisation of UI in IOS webviews to the app side. This fixes a bug in newer IOS versions where the storage data would arrive too late.
|
|
74
|
+
- All demo pages on https://developers.seamly.ai/clients/web-ui now accept an `apiKey` parameter to connect to different accounts for demo purposes.
|
|
75
|
+
- Add `context.channelName` to the Seamly initialization configuration options.
|
|
76
|
+
|
|
77
|
+
### Breaking changes
|
|
78
|
+
- Remove `modal` window variant
|
|
79
|
+
- Non-structural implementation specific styling is now in a separate stylesheet (`src/stylesheets/styles-default-implementation.scss` or pre-built: `styles-default-implementation.css`). If you depend on styling for hover/scrollbars on these you need to load this stylesheet as well.
|
|
80
|
+
- The `inline` and `window` UI has been completely revamped. The old UI can still be used by using the deprecated views. If you wish to retain the old UI when updating you need to:
|
|
81
|
+
- Add `<DeprecatedView />` as `<CustomView />` to the client.
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
import { DeprecatedView } from '@seamly/web-ui'
|
|
85
|
+
|
|
86
|
+
const config = {
|
|
87
|
+
customComponents: {
|
|
88
|
+
view: DeprecatedView,
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
- Add deprecated stylesheet and remove the default stylesheet:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
@import '~@seamly/web-ui/src/stylesheets/deprecated-view';
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
- To use the deprecated view in the styleguide, add `isDeprecated: true` to styleguide config:
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
initStyleGuide({
|
|
103
|
+
...defaultConfig,
|
|
104
|
+
isDeprecated: true,
|
|
105
|
+
})
|
|
106
|
+
```
|
|
107
|
+
- To mark the conversation's connection as ready we used to watch for a message of type `join_conversation_succeeded`, but this has been changed to type `attach_channel_succeeded`. If you depend on messages of type `join_conversation_succeeded` you should switch over to the new type.
|
|
108
|
+
- Replace `defaults.startChatIcon`, `defaults.agentName`, `defaults.agentIcon` in config, with server-side equivalents.
|
|
109
|
+
- Replace `defaults.userName` with a translation label, allowing per language labels.
|
|
110
|
+
|
|
111
|
+
## 19.1.4 (16 February 2022)
|
|
112
|
+
|
|
113
|
+
### Bug fixes
|
|
114
|
+
- Fix deep merging of `defaults` key in config when supplied by both implementation and in `init`.
|
|
115
|
+
- Fix carousel sliding in Safari
|
|
116
|
+
- Fix the aria-label of a slide to use the correct index
|
|
117
|
+
- Fix display of automatic translations in carousel messages.
|
|
118
|
+
- Fix resetting of translation and other state after remote conversation crash.
|
|
119
|
+
|
|
120
|
+
## 19.1.3 (16 February 2022)
|
|
121
|
+
|
|
122
|
+
### Changes
|
|
123
|
+
- Extended and improved data of `errorCallback`.
|
|
124
|
+
|
|
125
|
+
## 19.1.2 (26 January 2022)
|
|
126
|
+
|
|
127
|
+
### Bug fixes
|
|
128
|
+
- Fix open/close state in styleguide for window layoutMode.
|
|
129
|
+
|
|
130
|
+
## 19.1.0 (11 January 2022)
|
|
131
|
+
### Changes
|
|
132
|
+
- Added an option to monitor errors by passing `errorCallback` to the config.
|
|
133
|
+
|
|
134
|
+
### Bug fixes
|
|
135
|
+
- Do not display user input as Markdown or Mustache to prevent potential XSS attacks.
|
|
136
|
+
- Add translation dividers to styleguide
|
|
137
|
+
- Add all error types to styleguide
|
|
138
|
+
- Show time-indicators in styleguide
|
|
139
|
+
|
|
140
|
+
## 19.0.0 (19 December 2021)
|
|
141
|
+
### Breaking Changes
|
|
142
|
+
- Translation files will be loaded from the back-end and can be managed there. Translations will no longer be provided in this package.
|
|
143
|
+
- `setLocale` window API call has been removed. The locale can only be set at initialisation of a conversation.
|
|
144
|
+
- `setTranslation` now also triggers a translation of the UI
|
|
145
|
+
- The key for the store (sessionStorage, cookie, etc) will include the locale which is provided through the context. Any implementation using the storage directly will need to be adjusted accordingly. (Old format: `cvco.NAMESPACE.connection`, new format: `cvco.NAMESPACE.connection.LOCALE`).
|
|
146
|
+
- The default locale for a conversation is provided by the server, but can be overridden through `config.context.locale` during `init`.
|
|
147
|
+
|
|
148
|
+
### Changes
|
|
149
|
+
- Provide representative demo images for card and image messages to be used in styleguides.
|
|
150
|
+
- Increase inline window size. This also changes some of the Sass variables.
|
|
151
|
+
- Determination of `userResponded` has been moved to the server. This also means the key `userResponded` in the Storage is no longer available. If you need to know the state on startup you can use the appstate parameter on the `ui.start` or `ui.beforeStart` events.
|
|
152
|
+
- Updated @seamly/eslint-config to latest
|
|
153
|
+
- Updated @seamly/prettier-config to latest
|
|
154
|
+
- Styleguide: "Cobrowser bar" has been renamed to "Chat status bar"
|
|
155
|
+
- The locale for translations of the UI can now be changed to a different locale dynamically
|
|
156
|
+
|
|
157
|
+
## 18.3.1 (22 November 2021)
|
|
158
|
+
### Changes
|
|
159
|
+
- Add class for styling to the `activity-monitor` div.
|
|
160
|
+
|
|
161
|
+
## 18.3.0 (20 October 2021)
|
|
162
|
+
### Changes
|
|
163
|
+
- Improve entering send_transcript e-mail on mobile and desktop. Especially in combination with autocomplete on mobile.
|
|
164
|
+
|
|
165
|
+
### Bug fixes
|
|
166
|
+
- Time indicators are properly shown before user messages.
|
|
167
|
+
- Links in messages by users in the default UI are now legible.
|
|
168
|
+
- Fix options dialog `max-height` issue to make implementations easier.
|
|
169
|
+
- Fix keyboard navigation and focus of carousel.
|
|
170
|
+
- Fix settings focus of input entry when windowed chat is opened.
|
|
171
|
+
- Make card description element a `div` instead of `p` to prevent invalid HTML nesting.
|
|
172
|
+
|
|
173
|
+
## 18.2.0 (17 September 2021)
|
|
174
|
+
### Changes
|
|
175
|
+
- Add default `secondary` category to be used with choice prompts
|
|
176
|
+
- ChoicePrompt `<li>`'s now have an additional class based on the choice category to aid styling of choices in client implementations
|
|
177
|
+
- Process card descriptions as markdown
|
|
178
|
+
- Don't process cta descriptions as Mustache templates as we won't ever have any variables
|
|
179
|
+
|
|
180
|
+
### Bug fixes
|
|
181
|
+
- Remove redundant img alt attribute in cards
|
|
182
|
+
|
|
183
|
+
## 18.1.1 (9 September 2021)
|
|
184
|
+
### Bug fixes
|
|
185
|
+
- Fix translation menu automatically closing on focus-out by removing the close-on-focus-out from the Translations-Dialog.
|
|
186
|
+
|
|
187
|
+
## 18.1.0 (8 September 2021)
|
|
188
|
+
### Changes
|
|
189
|
+
- Add Carousel message type
|
|
190
|
+
- Add Card message type, the following three card types can be rendered:
|
|
191
|
+
- `ask` which contains a cta that sends a question into the conversation.
|
|
192
|
+
- `navigate` which contains a cta that navigates to a url.
|
|
193
|
+
- `topic` which contains a cta that sets the topic of the conversation.
|
|
194
|
+
|
|
195
|
+
### Bug fixes
|
|
196
|
+
- Make uploads show correctly as not-deleted if they are still available.
|
|
197
|
+
|
|
198
|
+
## 18.0.0 (30 August 2021)
|
|
199
|
+
### Changes
|
|
200
|
+
- Added `Automatic Translation` feature to support live machine translations.
|
|
201
|
+
- Added `setTranslation` added to the window API (only works if the feature is enabled in the account).
|
|
202
|
+
- Added `@seamly/web-ui/index.debug` as a drop-in replacement for `@seamly/web-ui` to enable debug tools in client implementations
|
|
203
|
+
- `useChoicePrompt`'s return value now also contains `{ body, subEvent }`
|
|
204
|
+
- Exported `MessageContainer` for usage in client implementations
|
|
205
|
+
- Exported `useTranslations`, `useTranslatedEventData` and `useTranslationsContainer` for usage in client implementations
|
|
206
|
+
|
|
207
|
+
### Breaking changes
|
|
208
|
+
- `useChoicePrompt` now requires the full event as a parameter instead of `event.payload`
|
|
209
|
+
- Drop support for IE11
|
|
210
|
+
- `useTranslation` is renamed to `useI18n` and exports a name function (`t`).
|
|
211
|
+
```
|
|
212
|
+
// v17.x
|
|
213
|
+
import useTranslation from '@seamly/web-ui`
|
|
214
|
+
|
|
215
|
+
const t = useTranslation()
|
|
216
|
+
|
|
217
|
+
// v18.x
|
|
218
|
+
import useI18n from '@seamly/web-ui'
|
|
219
|
+
|
|
220
|
+
const { t } = useI18n()
|
|
221
|
+
```
|
|
222
|
+
- Translation files now use a flattened structure and should be updated.
|
|
223
|
+
```
|
|
224
|
+
// config.js v17.x
|
|
225
|
+
import nlInformal from '@seamly/web-ui/translations/nl-informal'
|
|
226
|
+
|
|
227
|
+
const translations = {
|
|
228
|
+
...nlInformal,
|
|
229
|
+
toggleButton: {
|
|
230
|
+
...nlInformal.toggleButton,
|
|
231
|
+
title: 'Chat',
|
|
232
|
+
resumeTitle: 'Chat',
|
|
233
|
+
subtitle: 'Start gesprek',
|
|
234
|
+
},
|
|
235
|
+
header: {
|
|
236
|
+
...nlInformal.header,
|
|
237
|
+
title: 'Stel je vraag aan',
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// config.js v18.x
|
|
242
|
+
import nlInformal from '@seamly/web-ui/translations/nl-informal'
|
|
243
|
+
|
|
244
|
+
const translations = {
|
|
245
|
+
...nlInformal,
|
|
246
|
+
'toggleButton.resumeTitle': 'Chat',
|
|
247
|
+
'toggleButton.subtitle': 'Start gesprek',
|
|
248
|
+
'toggleButton.title': 'Chat',
|
|
249
|
+
'header.title': 'Stel je vraag aan'
|
|
250
|
+
}
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Bug fixes
|
|
254
|
+
* Fix timing issue between clearing entry and changing entry type based on incoming messages.
|
|
255
|
+
* Fix issue in i18n where default object for overrides was provided, but tested against undefined instead of keys.length
|
|
256
|
+
|
|
257
|
+
## 17.2.0 (3 august 2021)
|
|
258
|
+
### Changes
|
|
259
|
+
- Added app state information to `ui.beforeStart`, `ui.start` and `ui.visiblity` window.api events. App state contains `hasResponded`, `hasConversation`, `visiblity` and `unreadMessagecount`.
|
|
260
|
+
- Always show time indicator at beginning of conversation when enabled.
|
|
261
|
+
- Always show username/agent name when it is preceded by a time indicator.
|
|
262
|
+
|
|
263
|
+
## 17.1.1 (13 july 2021)
|
|
264
|
+
### Bug fixes
|
|
265
|
+
- Expose `useSeamlyConfig` & `useSeamlyVisibility` hooks for customer implementations.
|
|
266
|
+
|
|
267
|
+
## 17.1.0 (29 june 2021)
|
|
268
|
+
### Changes
|
|
269
|
+
- Replace default `api.*.seamly.ai` domains with `api.*.seamly-app.com`.
|
|
270
|
+
- Minor dependency updates
|
|
271
|
+
|
|
272
|
+
### Bug fixes
|
|
273
|
+
- Replace all `/` used for division in SCSS files with fractions. The `/` for division is being deprecated by Sass, as it is technically a seperator in CSS. In future, it will be either `calc()`, `math.div()` or we can use a fraction.
|
|
274
|
+
- Info messages no longer disable choice prompts
|
|
275
|
+
- Server-side triggered idle-timer elapse no longer doubly triggers detach-service action
|
|
276
|
+
|
|
277
|
+
## 17.0.0 (7 june 2021)
|
|
278
|
+
### Breaking changes
|
|
279
|
+
- The `system.service_changed` event has been renamed to `system.systemChanged`.
|
|
280
|
+
- For file uploads the following translation keys have been affected and should be changed if overrides or nonstandard translations are used:
|
|
281
|
+
- `srMessageIconText` has been removed.
|
|
282
|
+
- The text for `srFileUnavailableText` has been changed.
|
|
283
|
+
- Keys `srFileUploadedText` and `srFileDownloadText` have been added.
|
|
284
|
+
|
|
285
|
+
### Changes
|
|
286
|
+
- File download messages without a `url` value are now supported and rendered correctly.
|
|
287
|
+
- Authenticate all conversation requests
|
|
288
|
+
- Now hides all chat content from being shown in the Google Search result snippet by applying the `data-nosnippet` attribute.
|
|
289
|
+
- A `system.userFirstResponse` event is now broadcast via the external api when a user responds for the first time in a conversation.
|
|
290
|
+
- Added `@seamly/web-ui/standalone` and `@seamly/web-ui/standalone.min.js` as standalone pre-built package exports which do not require .
|
|
291
|
+
- Update activeServiceSessionId on each incoming message
|
|
292
|
+
- Add pre-built `@seamly/web-ui/styles.css` to the package exports.
|
|
293
|
+
|
|
294
|
+
### Bug fixes
|
|
295
|
+
- Remove `cvco-false` class from the options toggle button.
|
|
296
|
+
- The style guide will no longer display duplicate Preact key console errors.
|
|
297
|
+
- Load scss imports from `node_modules` without deprecated `~`.
|
|
298
|
+
|
|
299
|
+
## 16.0.7 (18 may 2021)
|
|
300
|
+
### Bug fixes
|
|
301
|
+
- Add missing styling for time indicators.
|
|
302
|
+
|
|
303
|
+
## 16.0.6 (12 may 2021)
|
|
304
|
+
### Bug fixes
|
|
305
|
+
- Add optional chaining to prevent error in time indicator display when locale doesn't match.
|
|
306
|
+
|
|
307
|
+
## 16.0.5 (11 may 2021)
|
|
308
|
+
### Bug fixes
|
|
309
|
+
- Export the following exports from the package as required by client implementations to enable upgrade to v16:
|
|
310
|
+
- `useSeamlyCommands`
|
|
311
|
+
- `useSeamlyIdleDetachCountdown`
|
|
312
|
+
- `useDispatch`
|
|
313
|
+
- `seamlyActions`
|
|
314
|
+
- `eventTypes`
|
|
315
|
+
- `AppFrame`
|
|
316
|
+
- `ChatFrame`
|
|
317
|
+
- `ToggleButton`
|
|
318
|
+
- `AgentInfo`
|
|
319
|
+
- `Header`
|
|
320
|
+
- `Conversation`
|
|
321
|
+
- `EntryContainer`
|
|
322
|
+
- `Interrupt`
|
|
323
|
+
|
|
324
|
+
## 16.0.4 (10 may 2021)
|
|
325
|
+
### Bug fixes
|
|
326
|
+
- Export `useSeamlyEvents` as `useEvents` for the package
|
|
327
|
+
|
|
328
|
+
## 16.0.3 (10 may 2021)
|
|
329
|
+
### Bug fixes
|
|
330
|
+
- Fix FAQ overflow on mobile screens with low height (especially an issue when the keyboard is open on Android)
|
|
331
|
+
- Fix image modal not expanding to full height in the inline layoutmode
|
|
332
|
+
|
|
333
|
+
## 16.0.2 (4 may 2021)
|
|
334
|
+
### Bug fixes
|
|
335
|
+
- Also export `useSeamlyChat` hook from the package.
|
|
336
|
+
|
|
337
|
+
## 16.0.1 (22 april 2021)
|
|
338
|
+
### Bug fixes
|
|
339
|
+
- Properly export all package files so you can use exports like `@seamly/web-ui/storage`
|
|
340
|
+
|
|
341
|
+
## 16.0.0 (20 april 2021)
|
|
342
|
+
### Changes
|
|
343
|
+
- Remove loading of `@include-media` in `index.scss` as this is now loaded through the `Web UI`.
|
|
344
|
+
- `FAQ` is now part of `Web UI` and can be deactivated with the `showFaq` setting in the configuration.
|
|
345
|
+
- An `action.click_cta` is now broadcast via the external api when the to action is clicked in a CTA message.
|
|
346
|
+
- Time Indicators can now be shown in a conversation when enabled in the configuration.
|
|
347
|
+
- Render `info` events of type `divider` when received over the websocket.
|
|
348
|
+
- Reorder events when an ACK is received
|
|
349
|
+
- Add `setTopic` action to the window API.
|
|
350
|
+
- A `system.system_changed` event is now broadcast via the external api when the current service changes.
|
|
351
|
+
- Add guide to documentation on how to add analytics to your implementation.
|
|
352
|
+
- All HTML buttons are now explicitly typed and safe for use inside wrapping forms (mainly classic ASP.NET applications).
|
|
353
|
+
|
|
354
|
+
### Breaking changes
|
|
355
|
+
- Regardless of whether `FAQ` is activated in `Web UI` or not, the main application is now wrapped in class `cvco-app-wrapper` which reguires styling adjustment in all implementations.
|
|
356
|
+
- All implementations already containing `FAQ` should migrate to the internal implementation. This is mostly the removal of the flex styling on certain breakpoints, and making sure `position: absolute` is possible on the `faqs`.
|
|
357
|
+
- All direct references to `@seamly/web-ui/src/javascript/*` must be updated to reflect the new exports at `@seamly/web-ui`
|
|
358
|
+
- `@seamly/web-ui` must be transpiled in the webpack-config of the implementation to enable cross-browser support
|
|
359
|
+
- `preact` is now a peerDependency and must be included from the implementation
|
|
360
|
+
|
|
361
|
+
### Bug fixes
|
|
362
|
+
- Don't render the skip link when minimized. This fixes the issue where you could focus the skip-link when only the button was visible.
|
|
363
|
+
|
|
364
|
+
## 15.0.1 (11 March 2021)
|
|
365
|
+
### Changes
|
|
366
|
+
- `@babel/plugin-transform-react-jsx` now supports automatic transpilation of JSX without the need to import `preact`, `preact.h` or `preact.Fragment`.
|
|
367
|
+
|
|
368
|
+
### Breaking changes
|
|
369
|
+
- Implementations must upgrade to Preact 10.5.12
|
|
370
|
+
- Implementation must update the **Babel** configuration for `@babel/plugin-transform-react-jsx` to `{ runtime: 'automatic', importSource: 'preact' }` in order to support automatic transpilation.
|
|
371
|
+
|
|
372
|
+
## 15.0.0 (11 March 2021)
|
|
373
|
+
### Changes
|
|
374
|
+
- Options, options dialogues, the upload button, as well as the Seamly modal version can now be animated with the same standard transition classes.
|
|
375
|
+
- Add configurable z-index for implementations via config.
|
|
376
|
+
- Add `overscroll-behaviour: contain` to windowed chat so scrolling a windowed chat will not automatically scroll the whole page when the user has reached the bottom of the chat.
|
|
377
|
+
- Focus code has been consolidated to use hooks and helper functions. All focus code should use and expand on this implementation.
|
|
378
|
+
- Remove cog icon when just one specific option is shown in the bottom bar. Also add classes so the entry can be styled.
|
|
379
|
+
|
|
380
|
+
### Breaking changes
|
|
381
|
+
- Implementations with options need to update the hide/show of the options menu, and the upload button to use the new transition classes.
|
|
382
|
+
|
|
383
|
+
### Bug fixes
|
|
384
|
+
- Fix double rendering of upload bubbles on socket reconnect.
|
|
385
|
+
|
|
386
|
+
## 14.0.2 (12 February 2021)
|
|
387
|
+
### Changes
|
|
388
|
+
- Send transcript button now has it's own translation and explicitly says `Send`.
|
|
389
|
+
|
|
390
|
+
### Bug fixes
|
|
391
|
+
- Fix typo in `de-informal` translations.
|
|
392
|
+
|
|
393
|
+
## 14.0.1 (10 February 2021)
|
|
394
|
+
### Bugfixes
|
|
395
|
+
- Transcript email validation now also allows capital letters.
|
|
396
|
+
|
|
397
|
+
## 14.0.0 (27 January 2021)
|
|
398
|
+
### Changes
|
|
399
|
+
- Build all translations as UJS modules and expose them in the NPM package in `@seamly/web-ui/dist/translations/*`.
|
|
400
|
+
- Use `description` field for rich text in CTA messages.
|
|
401
|
+
- Add `fileUpload.errors.virusFound` translation to indicate an uploaded file contains an unsafe file.
|
|
402
|
+
- All non-user downloads will open in a new window.
|
|
403
|
+
- Remove `inResponseTo` from the payload in a message as the back-end no longer uses it.
|
|
404
|
+
- The user can now request a transcript of the chat to be sent via email.
|
|
405
|
+
- Add German informal translations (`translations/de-informal.js`)
|
|
406
|
+
- Any use of `:first-child` on `.cvco-conversation` may be removed from client implementations. This should've been removed when we moved the privacy disclaimer into the conversation stream.
|
|
407
|
+
- The current agent name is passed to the resume conversation prompt translation.
|
|
408
|
+
|
|
409
|
+
### Breaking changes
|
|
410
|
+
- Update the `marked` depdendency to 0.8.2, this fixes multiple security issue. Unfortunately this means implementations need to process `marked` by babel as it exports ES6
|
|
411
|
+
- Upgrade webpack to v5. Implementations now have to upgrade to webpack 5 too. Things that need changing:
|
|
412
|
+
- Update `webpack.config.js` to work with Webpack 5
|
|
413
|
+
- Update `.eslintrc.js` resolver config. Replace `'import/resolver' : 'webpack'` with:
|
|
414
|
+
```
|
|
415
|
+
'import/resolver': {
|
|
416
|
+
webpack: {},
|
|
417
|
+
},
|
|
418
|
+
```
|
|
419
|
+
- Update any calls to `yarn build -- --env.target=XX` to `yarn build --env target=XX`
|
|
420
|
+
- Removed the `/webpack/implementation_config.js` file. Custom implementations should use @seamly/doc-site package with a custom config instead.
|
|
421
|
+
- Options are now shown as pop-over screen driven by a menu button for multiple options, and an action button for single options. Styling needs to be adapted.
|
|
422
|
+
- All options now show as single option pop-over screens. Styling needs to be adapted.
|
|
423
|
+
- The screen sharing option is no longer implemented as a checkbox control but has become a toggle button. Styling needs to be adapted.
|
|
424
|
+
- The file upload button will now only show when uploads are available. This may affect the display of the entry container in implementations. Styling needs to be adapted.
|
|
425
|
+
|
|
426
|
+
## 13.0.0 (9 December 2020)
|
|
427
|
+
### Changes
|
|
428
|
+
- The entry component can now be set via the `entry` property on messages. Currently this is available for `upload` entry types but this can be extended via the same mechanism for all entry types where required.
|
|
429
|
+
- Validations loaded on entry components can also now be adjusted via server message inside the `entry` property as per the previous point.
|
|
430
|
+
|
|
431
|
+
### Breaking changes
|
|
432
|
+
- The import path for `EntryContainer` has changed to `@seamly/web-ui/src/javascripts/ui/components/entry/entry_container`. This should be adjusted in all custom views.
|
|
433
|
+
- The structure of the entry block has been changed. All custom views should update the JSX declaration:
|
|
434
|
+
|
|
435
|
+
```
|
|
436
|
+
// Replace
|
|
437
|
+
|
|
438
|
+
<EntryContainer>
|
|
439
|
+
<Entry />
|
|
440
|
+
</EntryContainer>
|
|
441
|
+
|
|
442
|
+
//With
|
|
443
|
+
|
|
444
|
+
<EntryContainer />
|
|
445
|
+
```
|
|
446
|
+
- As the entry block has been closed in JSX, custom implementations of the `Entry` component should now use the standard `customComponents` interface in the configuration as described in the documentation.
|
|
447
|
+
- Any custom implementations of `Entry` will need to be recoded to follow the new structure in `Seamly Web UI`.
|
|
448
|
+
- All implementations using the src from the `@seamly/web-ui` package should transpile the `phoenix` package to ES5 if IE11 support is required. If you use webpack, you should make sure `node_modules/phoenix` is not excluded from transpilation in webpack.config.js.
|
|
449
|
+
|
|
450
|
+
### Bugfixes
|
|
451
|
+
- An edge case existed in the forms system where form element components could re-initialize if the upper application state changed thereby losing preloaded forms data. This has been fixed.
|
|
452
|
+
- Fixed NL translation typo in the screen reader text of a configuration error.
|
|
453
|
+
- The package now uses the source Phoenix file as the dist file contains JavaScript that violates the `unsafe-eval` CSP policy.
|
|
454
|
+
- Send Content-Type header on POST requests to get config and to create a new conversation.
|
|
455
|
+
|
|
456
|
+
## 12.4.0 (27 November 2020)
|
|
457
|
+
### Changes
|
|
458
|
+
- Send timezone information to server if it can be determined (only works in modern browsers)
|
|
459
|
+
- Export new ViewWithFaq to use in implementations that use the bundled javascript.
|
|
460
|
+
- Add support for file uploads without a deleteAt.
|
|
461
|
+
|
|
462
|
+
## 12.3.0 (19 November 2020)
|
|
463
|
+
### Changes
|
|
464
|
+
- Add support for file upload messages from agents.
|
|
465
|
+
- Add support for securely downloading uploaded files.
|
|
466
|
+
- Clearly mark expired file upload links as such.
|
|
467
|
+
|
|
468
|
+
## 12.2.0 (17 November 2020)
|
|
469
|
+
### Changes
|
|
470
|
+
- Add new `api.externalId` configuration option to persist conversations when messaging is enabled.
|
|
471
|
+
- Add new `ResumeConversationPrompt` to ask users to continue or restart a conversation after returning to if after a while (when using messaging).
|
|
472
|
+
|
|
473
|
+
### Bug fixes
|
|
474
|
+
- Always remove loader when initial events arrive from the server.
|
|
475
|
+
- To avoid multiple instances sending events via the same event bus instance a unique event bus is now used for each chat instance.
|
|
476
|
+
- Don't break on missing activeServiceSettings from a history call.
|
|
477
|
+
|
|
478
|
+
## 12.1.0 (9 November 2020)
|
|
479
|
+
### Changes
|
|
480
|
+
- The character limit is visible 50 characters before the limit will be reached instead of the previous 25 characters.
|
|
481
|
+
- History synchronisation with the server is now only performed when it results in new history.
|
|
482
|
+
- The `Privacy Disclaimer` is now shown at the top of the chat window and scrolls away.
|
|
483
|
+
- The Style Guide now accepts custom i18n files.
|
|
484
|
+
- Add `appStorageProvider` with support for iOS, Android and React Native. This makes integration with those platform work out of the box (if implemented correctly on the app side).
|
|
485
|
+
|
|
486
|
+
### Bug fixes
|
|
487
|
+
- In the Spanish language file, the `srStopCobrowsingText` language key has been repaired.
|
|
488
|
+
- All event sorting is now based on the `occurredAt` timestamp on events. This ensures proper merging of history and current event streams in all cases.
|
|
489
|
+
- Client side message again have the ID set properly from the server ACKs.
|
|
490
|
+
- Incorrect height value for screen resolution in the browser environment context has been fixed.
|
|
491
|
+
- Add missing documentation for storage providers.
|
|
492
|
+
|
|
493
|
+
### Breaking changes
|
|
494
|
+
- Hook `useSeamlyDisclaimerDelayedClose` no longer exists. Implementations with a custom `Entry` component should remove this.
|
|
495
|
+
|
|
496
|
+
## 12.0.0 (25 September 2020)
|
|
497
|
+
### Breaking changes
|
|
498
|
+
- Hook `useSeamlyContainerClassNames` has been renamed to `useSeamlyMessageContainerClassNames`.
|
|
499
|
+
- Chat bubbles are no longer full width. Most client implementations do not use this full width, so needed escaping every time. For clients who do have full width bubbles this needs checking.
|
|
500
|
+
- The `api.defaults` configuration option has been moved to `context` on the main configuration level. Within this configuration object any usages of `meta` or `settingsProfile` should be removed if still present in implementations as these are dead options.
|
|
501
|
+
- The `customViewComponent` configuration option has been moved to `customComponents.view`
|
|
502
|
+
- Allow setting of custom implementation specific view components in the config. The `ComponentProvider` component no longer exists. Custom components should now be passed via the `customComponents` key in the init configuration. To upgrad:
|
|
503
|
+
- Remove the wrapping `<ComponentProvider>`
|
|
504
|
+
- Pass the custom view components to config (see "Configuration" documentation and "Custom message components" documentation)
|
|
505
|
+
- Various `layoutModes` with the same `namespace` no longer share a `visibility` setting in the storage, but have been separated. Therefore it can no longer be assumed that a windowed variant will open just because an inline variant had been active.
|
|
506
|
+
- The `visible` config setting has been moved to the `defaults` object in the configuration. The function has remained unchanged. To upgrade, move this setting in the configuration.
|
|
507
|
+
- File upload settings are now read from `entry.options.upload` configuration in service change events instead of `uploads`.
|
|
508
|
+
- Split `useText` component hooks in to `useTextRendering` and `useEventLinkClickHandler`. Any custom text message components should now use these hooks instead of the `useText` hook.
|
|
509
|
+
|
|
510
|
+
### Changes
|
|
511
|
+
- Add two `on` events to the window API for the idle detach warning: `'idleTimer.selectContinue` is sent when the user clicks on the `Continue coversation` button and `idleTimer.selectEnd` is sent when the user clicks on the `End conversation` button.
|
|
512
|
+
- Do not show disabled option checkboxes.
|
|
513
|
+
- Improve icon accessibility.
|
|
514
|
+
- Add style guide to public site. The style guide contains a list of most common states for the UI. The style guide application can also be used in implementation to speed up styling.
|
|
515
|
+
- Add support for custom message type. Custom messages allow you to pass arbitrary data from a back-end service to the UI. You can create custom rendering components to render these custom messages. Custom message components can be passed to the Seamly engine via the `customComponents.message.custom` configuration key.
|
|
516
|
+
- The visibility mutations of the UI can now be overridden and managed with a custom `visibilityCallback` function set as value of the config property with the same name.
|
|
517
|
+
- Add support for character limit on text input.
|
|
518
|
+
- Add Call to Action (CTA) message type.
|
|
519
|
+
|
|
520
|
+
### Bug fixes
|
|
521
|
+
- The participant displayed information is now cleared after an interrupt restart.
|
|
522
|
+
- Fix duplicate rendering of accessiblity text in image messages.
|
|
523
|
+
- Fix modification of the `body` data of messages when rendering them as rich text.
|
|
524
|
+
- Fix issue with socket reconnects that would result in messages appearing at the start of the chat
|
|
525
|
+
|
|
526
|
+
## 11.1.0 (30 July 2020)
|
|
527
|
+
### Bug fixes
|
|
528
|
+
- Fix history fetching when file uploads are disabled
|
|
529
|
+
|
|
530
|
+
### Changes
|
|
531
|
+
- Clear waiting actions when destroying an instance
|
|
532
|
+
|
|
533
|
+
## 11.0.0 (29 July 2020)
|
|
534
|
+
### Bug fixes
|
|
535
|
+
- Focus outline will now always show, also in browsers with `:focus-visible` activated.
|
|
536
|
+
- Focus input when user clicked the restart button in the error interrupt.
|
|
537
|
+
- Hide cobrowsing bar, options and options toggle button when the UI is minimized
|
|
538
|
+
|
|
539
|
+
### Breaking changes
|
|
540
|
+
- Implementations with custom `Entry`, `ChatFrame` or `EntryContainer` components should re-align the implementations of these components to that inside Seamly UI in order to support `File uploads` and function with the adjusted `Multi Forms Data Engine` inside Seamly UI.
|
|
541
|
+
- Classname for the icon in the lightbox/modal has been changed. From `cvco-model__icon` to `cvco-icon` to be consistent with all other icons.
|
|
542
|
+
- All icons are now outlined, so any implementations that use `stroke` in the css (for instance to change color or width) should be fixed to use `fill` instead. Implementations that target specific parts of any `svg` will need tweaking, because all icons are now compound shapes (as few different paths as possible).
|
|
543
|
+
|
|
544
|
+
### Changes
|
|
545
|
+
- The `Forms Data Engine` inside Seamly UI now supports multiple forms as well as the persistence of forms data.
|
|
546
|
+
- The `Forms Engine` now supports validation.
|
|
547
|
+
- `File uploads` are now supported in Seamly UI if the account configuration and service supports it.
|
|
548
|
+
- An `aria-live` window API event has been added for testing the main `ARIA Live region` in Seamly UI. Any texts added to this live region will be broadcast via this event.
|
|
549
|
+
|
|
550
|
+
## 10.0.1 (7 July 2020)
|
|
551
|
+
### Bug fixes
|
|
552
|
+
- Export `useEntry` again (as `useInput` used to be exported).
|
|
553
|
+
|
|
554
|
+
## 10.0.0 (3 July 2020)
|
|
555
|
+
### Changes
|
|
556
|
+
- When the idle detach warning countdown starts the `idleTimer.start` window API event gets called and when the timer stops, the `idleTimer.stop` event.
|
|
557
|
+
- Add `sendCustomAction` action to the window API.
|
|
558
|
+
- Add generic Form engine for easier form handling and future extensibility for validation.
|
|
559
|
+
- Introduce options window. It will only show when the connected account actually has options.
|
|
560
|
+
- Introduce option for screensharing. This will also activate the screensharing warning when enabled.
|
|
561
|
+
|
|
562
|
+
### Breaking changes
|
|
563
|
+
- The idle detach warning now displays the countdown as minutes and seconds. This will need styling changes in the implementation on upgrade.
|
|
564
|
+
- `Input` component has been replaced with a more generic `Entry` component. This is a drop-in replacement.
|
|
565
|
+
- Rename package to `@seamly/web-ui`. Updage your package.json files accordingly. Versioning will continue.
|
|
566
|
+
|
|
567
|
+
## 9.3.0 (23 June 2020)
|
|
568
|
+
### Changes
|
|
569
|
+
- FAQ click also sets `userResponded` to true
|
|
570
|
+
|
|
571
|
+
## 9.2.0 (16 June 2020)
|
|
572
|
+
### Changes
|
|
573
|
+
- Add the `appContainerClassName` configuration option to set custom class names on the container element.
|
|
574
|
+
- Add new ui.inputFocus event callback that is triggered whenever the input field gets focus.
|
|
575
|
+
- Emit faq question with `faqclick` custom action on click to aid implementations who need the faq question.
|
|
576
|
+
- The external API now support fetching the current visibility state with the `getVisibility` action.
|
|
577
|
+
|
|
578
|
+
## 9.1.0 (5 June 2020)
|
|
579
|
+
### Changes
|
|
580
|
+
- Removed custom focus styles on disclaimer close, modal enlarge, modal close, input etc. These get in the way when doing custom styling for clients. Remove any CSS that escapes this now removed styling.
|
|
581
|
+
- Expired chats no longer show an interrupt screen but automatically restarts. The `sessionExpired` error key can be removed from all custom language files.
|
|
582
|
+
|
|
583
|
+
### Breaking changes
|
|
584
|
+
- Chat now starts at the bottom of the window container. This severely improves visibility of initial chat messages in smaller views. This adds an extra container div. Test if scrolling/window visibility is still ok after updating.
|
|
585
|
+
|
|
586
|
+
## 9.0.0 (19 May 2020)
|
|
587
|
+
### Changes
|
|
588
|
+
- Depending on server configuration, send user typed text to the Seamly server periodically.
|
|
589
|
+
- Prefetch api configuration prior to chat start.
|
|
590
|
+
- Prefetch initial chat state prior to chat start.
|
|
591
|
+
- Initialise unit testing of Seamly.
|
|
592
|
+
- Upgraded Preact to 10.4.1. Please align all custom implementations to this version.
|
|
593
|
+
- Add the `hideOnNoUserResponse` configuration option to allow chats to only render if the user has previously replied via a chat interface using the same namespace.
|
|
594
|
+
- Add `init` and `destroy` functionality to the external api to allow users to destroy or re-initialise the Seamly chat window.
|
|
595
|
+
- Remove the deprecated object API, you can only use the `window.seamly` API from now on.
|
|
596
|
+
- No longer automatically initialise an instance. You need to call the `init` action explicitly to render/start an instance.
|
|
597
|
+
- Sanitize user input from any executable HTML.
|
|
598
|
+
|
|
599
|
+
### Breaking changes
|
|
600
|
+
- Migrate the UI to version 2 of the Seamly API.
|
|
601
|
+
- The exported Seamly function no longer returns an API
|
|
602
|
+
- You need to explicitly `init` an instance to start it
|
|
603
|
+
- The adjacent sibling combinator (`+`) has been removed in favour of the `cvco-conversation__item--new-participant` class on messages. Many implementations have either classes that override this default styling, or are using the adjacent sibling combinator themselves. This will need checking and potentially fixes on update.
|
|
604
|
+
|
|
605
|
+
## 8.1.0 (24 April 2020)
|
|
606
|
+
### Changes
|
|
607
|
+
- FAQ events will now be persisted over application reloads and only be cleared when intended by the Seamly server.
|
|
608
|
+
|
|
609
|
+
## 8.0.1 (6 April 2020)
|
|
610
|
+
### Bug fixes
|
|
611
|
+
- Repair text input labelling.
|
|
612
|
+
|
|
613
|
+
## 8.0.0 (6 April 2020)
|
|
614
|
+
### Changes
|
|
615
|
+
- The default FAQ component has been adjusted to handle more implementation requirements. Refer to `faq.md` for the latest API.
|
|
616
|
+
- An Idle Detach Warning will be shown if the user is connected to a live agent, inactive for a set amount of time and the server configuration allows for this.
|
|
617
|
+
|
|
618
|
+
### Breaking changes
|
|
619
|
+
- The form element component used inside the view should now be wrapped inside a new `<EntryContainer>` component. All custom implementation should upgrade the custom view with this component:
|
|
620
|
+
|
|
621
|
+
```jsx harmony
|
|
622
|
+
<EntryContainer>
|
|
623
|
+
<Input />
|
|
624
|
+
</EntryContainer>
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
- Custom implementations using a custom `<ToggleButton>` component should align to the new version of the code.
|
|
628
|
+
- Custom implementations using a custom `<Input>` component should also align to the new version of the code.
|
|
629
|
+
- Any usages of the hook `useSkiplinkInputId` should be refactored to `useSkiplink`.
|
|
630
|
+
- Any usages of the hook `useInputFocusing` should be refactored to `useSkiplinkTargetFocusing`.
|
|
631
|
+
|
|
632
|
+
## 7.1.0 (26 March 2020)
|
|
633
|
+
### Bug fixes
|
|
634
|
+
- FAQ's selections will now show in history as the original event ID is now passed to the FAQ click action.
|
|
635
|
+
- Image and video elements will now also show the event participant, when appropriate.
|
|
636
|
+
|
|
637
|
+
### Changes
|
|
638
|
+
- The current active participant will show as event participant on the chat loader bubble, when appropriate.
|
|
639
|
+
|
|
640
|
+
## 7.0.0 (12 March 2020)
|
|
641
|
+
### Bug fixes
|
|
642
|
+
- Avoid empty introductions from overwriting existing avatar intros.
|
|
643
|
+
- Update avatar in button/header to show initial state / active agent avatar.
|
|
644
|
+
|
|
645
|
+
### Changes
|
|
646
|
+
- Display `info` messages in the chat windo when they are sent via the websocket.
|
|
647
|
+
- Upgrade Preact to v10.3.3. It is recommended to upgrade custom implementations to this version of Preact as well.
|
|
648
|
+
- The configuration object has been expanded with a new `defaults` object:
|
|
649
|
+
|
|
650
|
+
```json
|
|
651
|
+
defaults: {
|
|
652
|
+
startChatIcon: imageUrl,
|
|
653
|
+
agentName: 'Seamly Bot',
|
|
654
|
+
agentIcon: imageUrl1,
|
|
655
|
+
userName: 'You',
|
|
656
|
+
},
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
- The standard display name and avatar of the `user participant` will now be source from the `seamly-client-participant` participant message from the server.
|
|
660
|
+
- A default chat start icon can be set using the `startChatIcon` setting found in the new `defaults` object in the configuration object.
|
|
661
|
+
- A default agent icon can be set using the `agentIcon` setting found in the new `defaults` object in the configuration object.
|
|
662
|
+
|
|
663
|
+
### Breaking Changes
|
|
664
|
+
- Any custom implementations using `component overrides` should migrate to the `ComponentProvider` component instead. Passing custom components to the `Conversation` component is no longer supported and will be ignored.
|
|
665
|
+
- The container classes are no longer exposed as `containerClassNames` by the internal component hooks. Any view components relying on this should import the new `useSeamlyContainerClassNames` hook to resolve the same classes.
|
|
666
|
+
- The `choose again` divider will no longer render in history if used with a version of the server API that does not support info messages.
|
|
667
|
+
- Add privacy disclaimers will now auto close after 5000 milliseconds, unless the `disclaimerTimeout` is set in the config.
|
|
668
|
+
- Remove `toggleButton.openChat` and add `toggleButton.resumeTitle` in all custom language files.
|
|
669
|
+
- The `defaultName` settings for both `user` as well as `agent` no longer exists. Instead use the `userName` setting for the `user` and the `agentName` setting for the `agent`. Both are contained in a new main `defaults` object in the config.
|
|
670
|
+
- Any implementations relying on an `agent defaultName` of `Bot` coming from the Seamly client itself, needs to implement this with the `userName` setting.
|
|
671
|
+
- Any implementations relying on a `user defaultName` of `You` coming from the Seamly client itself, needs to implement this with the `userName` setting.
|
|
672
|
+
|
|
673
|
+
## 6.2.0 (3 March 2020)
|
|
674
|
+
### Changes
|
|
675
|
+
- Upgrade Preact to v10.3.2. It is recommended to upgrade custom implementations to this version of Preact as well.
|
|
676
|
+
|
|
677
|
+
### Bug fixes
|
|
678
|
+
- Avoid empty introductions from overwriting existing avatar intros.
|
|
679
|
+
- Fixed race condition that sometimes caused a double connect of the chat client.
|
|
680
|
+
|
|
681
|
+
## 6.1.0 (17 February 2020)
|
|
682
|
+
### Changes
|
|
683
|
+
- Allow links to open in new tabs via server configuration.
|
|
684
|
+
|
|
685
|
+
### Other
|
|
686
|
+
- Fix image opening in lightbox after previous server change.
|
|
687
|
+
|
|
688
|
+
## 6.0.0 (17 February 2020)
|
|
689
|
+
### Bug fixes
|
|
690
|
+
- Choice Prompts with prompts other than type="text" now displays properly.
|
|
691
|
+
|
|
692
|
+
### Changes
|
|
693
|
+
- Custom `Text`, `Video` and `Image` components now implement a `descriptorId` prop as `id` to decorate description containers.
|
|
694
|
+
|
|
695
|
+
### Breaking Changes
|
|
696
|
+
- Custom ChoicePrompt components should now allow for custom prompt component injection via the `children` prop.
|
|
697
|
+
- Custom Text components should no longer use a `textBodyId` prop to decorate the text container via `id` but instead implement a `descriptorId` prop.
|
|
698
|
+
|
|
699
|
+
## 5.1.1 (12 February 2020)
|
|
700
|
+
|
|
701
|
+
### Bug fixes
|
|
702
|
+
- Fix misalignment of balloon agent icon.
|
|
703
|
+
|
|
704
|
+
## 5.1.0 (7 February 2020)
|
|
705
|
+
|
|
706
|
+
### Changes
|
|
707
|
+
- Expose new action events for `action.pick_choice`, `action.navigate` and `action.custom`.
|
|
708
|
+
|
|
709
|
+
## 5.0.2 (31 January 2020)
|
|
710
|
+
|
|
711
|
+
### Bug fixes
|
|
712
|
+
- Properly build and release Dutch I18N text for Choose Again.
|
|
713
|
+
|
|
714
|
+
## 5.0.1 (31 January 2020)
|
|
715
|
+
|
|
716
|
+
### Changes
|
|
717
|
+
- Adjust default Dutch I18N text for Choose Again.
|
|
718
|
+
|
|
719
|
+
## 5.0.0 (29 January 2020)
|
|
720
|
+
### New features
|
|
721
|
+
- Enable choose again of choice prompt values.
|
|
722
|
+
|
|
723
|
+
### Bug fixes
|
|
724
|
+
- Repair semantics of the Choice Prompt list.
|
|
725
|
+
|
|
726
|
+
### Breaking Changes
|
|
727
|
+
- When services are setup to allow `Choose Again` of `Choice Prompts`, a choose again button will now be shown in the chat interface. New topic dividers will also be shown after choosing again. Styling should be adjusted to allow for this in implementations.
|
|
728
|
+
- `Choice Prompts` will be rendered as a `<ul>` instead of `<div>`. Styling should be adjusted in implementations.
|
|
729
|
+
- To align divider views the class postfix `divider__icon` in the `Participant` component has been adjusted to `divider__graphic`. Styling should be adjusted in implementations.
|