@seamly/web-ui 19.1.2 → 19.1.5

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 ADDED
@@ -0,0 +1,627 @@
1
+ # Seamly Web UI Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ## 19.1.5 (17 August 2022)
6
+
7
+ ### Bugfixes
8
+ - Fix an issue where the interface would not be translated when translation had started before the user had sent a message.
9
+
10
+ ## 19.1.4 (16 February 2022)
11
+
12
+ ### Bug fixes
13
+ - Fix deep merging of `defaults` key in config when supplied by both implementation and in `init`.
14
+ - Fix carousel sliding in Safari
15
+ - Fix the aria-label of a slide to use the correct index
16
+ - Fix display of automatic translations in carousel messages.
17
+
18
+ ## 19.1.3 (16 February 2022)
19
+
20
+ ### Changes
21
+ - Extended and improved data of `errorCallback`.
22
+
23
+ ## 19.1.2 (26 January 2022)
24
+
25
+ ### Bug fixes
26
+ - Fix open/close state in styleguide for window layoutMode.
27
+
28
+ ## 19.1.0 (11 January 2022)
29
+ ### Changes
30
+ - Added an option to monitor errors by passing `errorCallback` to the config.
31
+
32
+ ### Bug fixes
33
+ - Do not display user input as Markdown or Mustache to prevent potential XSS attacks.
34
+ - Add translation dividers to styleguide
35
+ - Add all error types to styleguide
36
+ - Show time-indicators in styleguide
37
+
38
+ ## 19.0.0 (19 December 2021)
39
+ ### Breaking Changes
40
+ - Translation files will be loaded from the back-end and can be managed there. Translations will no longer be provided in this package.
41
+ - `setLocale` window API call has been removed. The locale can only be set at initialisation of a conversation.
42
+ - `setTranslation` now also triggers a translation of the UI
43
+ - 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`).
44
+ - The default locale for a conversation is provided by the server, but can be overridden through `config.context.locale` during `init`.
45
+
46
+ ### Changes
47
+ - Provide representative demo images for card and image messages to be used in styleguides.
48
+ - Increase inline window size. This also changes some of the Sass variables.
49
+ - 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.
50
+ - Updated @seamly/eslint-config to latest
51
+ - Updated @seamly/prettier-config to latest
52
+ - Styleguide: "Cobrowser bar" has been renamed to "Chat status bar"
53
+ - The locale for translations of the UI can now be changed to a different locale dynamically
54
+
55
+ ## 18.3.1 (22 November 2021)
56
+ ### Changes
57
+ - Add class for styling to the `activity-monitor` div.
58
+
59
+ ## 18.3.0 (20 October 2021)
60
+ ### Changes
61
+ - Improve entering send_transcript e-mail on mobile and desktop. Especially in combination with autocomplete on mobile.
62
+
63
+ ### Bug fixes
64
+ - Time indicators are properly shown before user messages.
65
+ - Links in messages by users in the default UI are now legible.
66
+ - Fix options dialog `max-height` issue to make implementations easier.
67
+ - Fix keyboard navigation and focus of carousel.
68
+ - Fix settings focus of input entry when windowed chat is opened.
69
+ - Make card description element a `div` instead of `p` to prevent invalid HTML nesting.
70
+
71
+ ## 18.2.0 (17 September 2021)
72
+ ### Changes
73
+ - Add default `secondary` category to be used with choice prompts
74
+ - ChoicePrompt `<li>`'s now have an additional class based on the choice category to aid styling of choices in client implementations
75
+ - Process card descriptions as markdown
76
+ - Don't process cta descriptions as Mustache templates as we won't ever have any variables
77
+
78
+ ### Bug fixes
79
+ - Remove redundant img alt attribute in cards
80
+
81
+ ## 18.1.1 (9 September 2021)
82
+ ### Bug fixes
83
+ - Fix translation menu automatically closing on focus-out by removing the close-on-focus-out from the Translations-Dialog.
84
+
85
+ ## 18.1.0 (8 September 2021)
86
+ ### Changes
87
+ - Add Carousel message type
88
+ - Add Card message type, the following three card types can be rendered:
89
+ - `ask` which contains a cta that sends a question into the conversation.
90
+ - `navigate` which contains a cta that navigates to a url.
91
+ - `topic` which contains a cta that sets the topic of the conversation.
92
+
93
+ ### Bug fixes
94
+ - Make uploads show correctly as not-deleted if they are still available.
95
+
96
+ ## 18.0.0 (30 August 2021)
97
+ ### Changes
98
+ - Added `Automatic Translation` feature to support live machine translations.
99
+ - Added `setTranslation` added to the window API (only works if the feature is enabled in the account).
100
+ - Added `@seamly/web-ui/index.debug` as a drop-in replacement for `@seamly/web-ui` to enable debug tools in client implementations
101
+ - `useChoicePrompt`'s return value now also contains `{ body, subEvent }`
102
+ - Exported `MessageContainer` for usage in client implementations
103
+ - Exported `useTranslations`, `useTranslatedEventData` and `useTranslationsContainer` for usage in client implementations
104
+
105
+ ### Breaking changes
106
+ - `useChoicePrompt` now requires the full event as a parameter instead of `event.payload`
107
+ - Drop support for IE11
108
+ - `useTranslation` is renamed to `useI18n` and exports a name function (`t`).
109
+ ```
110
+ // v17.x
111
+ import useTranslation from '@seamly/web-ui`
112
+
113
+ const t = useTranslation()
114
+
115
+ // v18.x
116
+ import useI18n from '@seamly/web-ui'
117
+
118
+ const { t } = useI18n()
119
+ ```
120
+ - Translation files now use a flattened structure and should be updated.
121
+ ```
122
+ // config.js v17.x
123
+ import nlInformal from '@seamly/web-ui/translations/nl-informal'
124
+
125
+ const translations = {
126
+ ...nlInformal,
127
+ toggleButton: {
128
+ ...nlInformal.toggleButton,
129
+ title: 'Chat',
130
+ resumeTitle: 'Chat',
131
+ subtitle: 'Start gesprek',
132
+ },
133
+ header: {
134
+ ...nlInformal.header,
135
+ title: 'Stel je vraag aan',
136
+ }
137
+ }
138
+
139
+ // config.js v18.x
140
+ import nlInformal from '@seamly/web-ui/translations/nl-informal'
141
+
142
+ const translations = {
143
+ ...nlInformal,
144
+ 'toggleButton.resumeTitle': 'Chat',
145
+ 'toggleButton.subtitle': 'Start gesprek',
146
+ 'toggleButton.title': 'Chat',
147
+ 'header.title': 'Stel je vraag aan'
148
+ }
149
+ ```
150
+
151
+ ### Bug fixes
152
+ * Fix timing issue between clearing entry and changing entry type based on incoming messages.
153
+ * Fix issue in i18n where default object for overrides was provided, but tested against undefined instead of keys.length
154
+
155
+ ## 17.2.0 (3 august 2021)
156
+ ### Changes
157
+ - Added app state information to `ui.beforeStart`, `ui.start` and `ui.visiblity` window.api events. App state contains `hasResponded`, `hasConversation`, `visiblity` and `unreadMessagecount`.
158
+ - Always show time indicator at beginning of conversation when enabled.
159
+ - Always show username/agent name when it is preceded by a time indicator.
160
+
161
+ ## 17.1.1 (13 july 2021)
162
+ ### Bug fixes
163
+ - Expose `useSeamlyConfig` & `useSeamlyVisibility` hooks for customer implementations.
164
+
165
+ ## 17.1.0 (29 june 2021)
166
+ ### Changes
167
+ - Replace default `api.*.seamly.ai` domains with `api.*.seamly-app.com`.
168
+ - Minor dependency updates
169
+
170
+ ### Bug fixes
171
+ - 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.
172
+ - Info messages no longer disable choice prompts
173
+ - Server-side triggered idle-timer elapse no longer doubly triggers detach-service action
174
+
175
+ ## 17.0.0 (7 june 2021)
176
+ ### Breaking changes
177
+ - The `system.service_changed` event has been renamed to `system.systemChanged`.
178
+ - For file uploads the following translation keys have been affected and should be changed if overrides or nonstandard translations are used:
179
+ - `srMessageIconText` has been removed.
180
+ - The text for `srFileUnavailableText` has been changed.
181
+ - Keys `srFileUploadedText` and `srFileDownloadText` have been added.
182
+
183
+ ### Changes
184
+ - File download messages without a `url` value are now supported and rendered correctly.
185
+ - Authenticate all conversation requests
186
+ - Now hides all chat content from being shown in the Google Search result snippet by applying the `data-nosnippet` attribute.
187
+ - A `system.userFirstResponse` event is now broadcast via the external api when a user responds for the first time in a conversation.
188
+ - Added `@seamly/web-ui/standalone` and `@seamly/web-ui/standalone.min.js` as standalone pre-built package exports which do not require .
189
+ - Update activeServiceSessionId on each incoming message
190
+ - Add pre-built `@seamly/web-ui/styles.css` to the package exports.
191
+
192
+ ### Bug fixes
193
+ - Remove `cvco-false` class from the options toggle button.
194
+ - The style guide will no longer display duplicate Preact key console errors.
195
+ - Load scss imports from `node_modules` without deprecated `~`.
196
+
197
+ ## 16.0.7 (18 may 2021)
198
+ ### Bug fixes
199
+ - Add missing styling for time indicators.
200
+
201
+ ## 16.0.6 (12 may 2021)
202
+ ### Bug fixes
203
+ - Add optional chaining to prevent error in time indicator display when locale doesn't match.
204
+
205
+ ## 16.0.5 (11 may 2021)
206
+ ### Bug fixes
207
+ - Export the following exports from the package as required by client implementations to enable upgrade to v16:
208
+ - `useSeamlyCommands`
209
+ - `useSeamlyIdleDetachCountdown`
210
+ - `useDispatch`
211
+ - `seamlyActions`
212
+ - `eventTypes`
213
+ - `AppFrame`
214
+ - `ChatFrame`
215
+ - `ToggleButton`
216
+ - `AgentInfo`
217
+ - `Header`
218
+ - `Conversation`
219
+ - `EntryContainer`
220
+ - `Interrupt`
221
+
222
+ ## 16.0.4 (10 may 2021)
223
+ ### Bug fixes
224
+ - Export `useSeamlyEvents` as `useEvents` for the package
225
+
226
+ ## 16.0.3 (10 may 2021)
227
+ ### Bug fixes
228
+ - Fix FAQ overflow on mobile screens with low height (especially an issue when the keyboard is open on Android)
229
+ - Fix image modal not expanding to full height in the inline layoutmode
230
+
231
+ ## 16.0.2 (4 may 2021)
232
+ ### Bug fixes
233
+ - Also export `useSeamlyChat` hook from the package.
234
+
235
+ ## 16.0.1 (22 april 2021)
236
+ ### Bug fixes
237
+ - Properly export all package files so you can use exports like `@seamly/web-ui/storage`
238
+
239
+ ## 16.0.0 (20 april 2021)
240
+ ### Changes
241
+ - Remove loading of `@include-media` in `index.scss` as this is now loaded through the `Web UI`.
242
+ - `FAQ` is now part of `Web UI` and can be deactivated with the `showFaq` setting in the configuration.
243
+ - An `action.click_cta` is now broadcast via the external api when the to action is clicked in a CTA message.
244
+ - Time Indicators can now be shown in a conversation when enabled in the configuration.
245
+ - Render `info` events of type `divider` when received over the websocket.
246
+ - Reorder events when an ACK is received
247
+ - Add `setTopic` action to the window API.
248
+ - A `system.system_changed` event is now broadcast via the external api when the current service changes.
249
+ - Add guide to documentation on how to add analytics to your implementation.
250
+ - All HTML buttons are now explicitly typed and safe for use inside wrapping forms (mainly classic ASP.NET applications).
251
+
252
+ ### Breaking changes
253
+ - 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.
254
+ - 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`.
255
+ - All direct references to `@seamly/web-ui/src/javascript/*` must be updated to reflect the new exports at `@seamly/web-ui`
256
+ - `@seamly/web-ui` must be transpiled in the webpack-config of the implementation to enable cross-browser support
257
+ - `preact` is now a peerDependency and must be included from the implementation
258
+
259
+ ### Bug fixes
260
+ - 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.
261
+
262
+ ## 15.0.1 (11 March 2021)
263
+ ### Changes
264
+ - `@babel/plugin-transform-react-jsx` now supports automatic transpilation of JSX without the need to import `preact`, `preact.h` or `preact.Fragment`.
265
+
266
+ ### Breaking changes
267
+ - Implementations must upgrade to Preact 10.5.12
268
+ - Implementation must update the **Babel** configuration for `@babel/plugin-transform-react-jsx` to `{ runtime: 'automatic', importSource: 'preact' }` in order to support automatic transpilation.
269
+
270
+ ## 15.0.0 (11 March 2021)
271
+ ### Changes
272
+ - Options, options dialogues, the upload button, as well as the Seamly modal version can now be animated with the same standard transition classes.
273
+ - Add configurable z-index for implementations via config.
274
+ - 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.
275
+ - Focus code has been consolidated to use hooks and helper functions. All focus code should use and expand on this implementation.
276
+ - Remove cog icon when just one specific option is shown in the bottom bar. Also add classes so the entry can be styled.
277
+
278
+ ### Breaking changes
279
+ - Implementations with options need to update the hide/show of the options menu, and the upload button to use the new transition classes.
280
+
281
+ ### Bug fixes
282
+ - Fix double rendering of upload bubbles on socket reconnect.
283
+
284
+ ## 14.0.2 (12 February 2021)
285
+ ### Changes
286
+ - Send transcript button now has it's own translation and explicitly says `Send`.
287
+
288
+ ### Bug fixes
289
+ - Fix typo in `de-informal` translations.
290
+
291
+ ## 14.0.1 (10 February 2021)
292
+ ### Bugfixes
293
+ - Transcript email validation now also allows capital letters.
294
+
295
+ ## 14.0.0 (27 January 2021)
296
+ ### Changes
297
+ - Build all translations as UJS modules and expose them in the NPM package in `@seamly/web-ui/dist/translations/*`.
298
+ - Use `description` field for rich text in CTA messages.
299
+ - Add `fileUpload.errors.virusFound` translation to indicate an uploaded file contains an unsafe file.
300
+ - All non-user downloads will open in a new window.
301
+ - Remove `inResponseTo` from the payload in a message as the back-end no longer uses it.
302
+ - The user can now request a transcript of the chat to be sent via email.
303
+ - Add German informal translations (`translations/de-informal.js`)
304
+ - 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.
305
+ - The current agent name is passed to the resume conversation prompt translation.
306
+
307
+ ### Breaking changes
308
+ - 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
309
+ - Upgrade webpack to v5. Implementations now have to upgrade to webpack 5 too. Things that need changing:
310
+ - Update `webpack.config.js` to work with Webpack 5
311
+ - Update `.eslintrc.js` resolver config. Replace `'import/resolver' : 'webpack'` with:
312
+ ```
313
+ 'import/resolver': {
314
+ webpack: {},
315
+ },
316
+ ```
317
+ - Update any calls to `yarn build -- --env.target=XX` to `yarn build --env target=XX`
318
+ - Removed the `/webpack/implementation_config.js` file. Custom implementations should use @seamly/doc-site package with a custom config instead.
319
+ - 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.
320
+ - All options now show as single option pop-over screens. Styling needs to be adapted.
321
+ - The screen sharing option is no longer implemented as a checkbox control but has become a toggle button. Styling needs to be adapted.
322
+ - 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.
323
+
324
+ ## 13.0.0 (9 December 2020)
325
+ ### Changes
326
+ - 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.
327
+ - Validations loaded on entry components can also now be adjusted via server message inside the `entry` property as per the previous point.
328
+
329
+ ### Breaking changes
330
+ - 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.
331
+ - The structure of the entry block has been changed. All custom views should update the JSX declaration:
332
+
333
+ ```
334
+ // Replace
335
+
336
+ <EntryContainer>
337
+ <Entry />
338
+ </EntryContainer>
339
+
340
+ //With
341
+
342
+ <EntryContainer />
343
+ ```
344
+ - 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.
345
+ - Any custom implementations of `Entry` will need to be recoded to follow the new structure in `Seamly Web UI`.
346
+ - 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.
347
+
348
+ ### Bugfixes
349
+ - 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.
350
+ - Fixed NL translation typo in the screen reader text of a configuration error.
351
+ - The package now uses the source Phoenix file as the dist file contains JavaScript that violates the `unsafe-eval` CSP policy.
352
+ - Send Content-Type header on POST requests to get config and to create a new conversation.
353
+
354
+ ## 12.4.0 (27 November 2020)
355
+ ### Changes
356
+ - Send timezone information to server if it can be determined (only works in modern browsers)
357
+ - Export new ViewWithFaq to use in implementations that use the bundled javascript.
358
+ - Add support for file uploads without a deleteAt.
359
+
360
+ ## 12.3.0 (19 November 2020)
361
+ ### Changes
362
+ - Add support for file upload messages from agents.
363
+ - Add support for securely downloading uploaded files.
364
+ - Clearly mark expired file upload links as such.
365
+
366
+ ## 12.2.0 (17 November 2020)
367
+ ### Changes
368
+ - Add new `api.externalId` configuration option to persist conversations when messaging is enabled.
369
+ - Add new `ResumeConversationPrompt` to ask users to continue or restart a conversation after returning to if after a while (when using messaging).
370
+
371
+ ### Bug fixes
372
+ - Always remove loader when initial events arrive from the server.
373
+ - To avoid multiple instances sending events via the same event bus instance a unique event bus is now used for each chat instance.
374
+ - Don't break on missing activeServiceSettings from a history call.
375
+
376
+ ## 12.1.0 (9 November 2020)
377
+ ### Changes
378
+ - The character limit is visible 50 characters before the limit will be reached instead of the previous 25 characters.
379
+ - History synchronisation with the server is now only performed when it results in new history.
380
+ - The `Privacy Disclaimer` is now shown at the top of the chat window and scrolls away.
381
+ - The Style Guide now accepts custom i18n files.
382
+ - 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).
383
+
384
+ ### Bug fixes
385
+ - In the Spanish language file, the `srStopCobrowsingText` language key has been repaired.
386
+ - 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.
387
+ - Client side message again have the ID set properly from the server ACKs.
388
+ - Incorrect height value for screen resolution in the browser environment context has been fixed.
389
+ - Add missing documentation for storage providers.
390
+
391
+ ### Breaking changes
392
+ - Hook `useSeamlyDisclaimerDelayedClose` no longer exists. Implementations with a custom `Entry` component should remove this.
393
+
394
+ ## 12.0.0 (25 September 2020)
395
+ ### Breaking changes
396
+ - Hook `useSeamlyContainerClassNames` has been renamed to `useSeamlyMessageContainerClassNames`.
397
+ - 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.
398
+ - 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.
399
+ - The `customViewComponent` configuration option has been moved to `customComponents.view`
400
+ - 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:
401
+ - Remove the wrapping `<ComponentProvider>`
402
+ - Pass the custom view components to config (see "Configuration" documentation and "Custom message components" documentation)
403
+ - 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.
404
+ - 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.
405
+ - File upload settings are now read from `entry.options.upload` configuration in service change events instead of `uploads`.
406
+ - Split `useText` component hooks in to `useTextRendering` and `useEventLinkClickHandler`. Any custom text message components should now use these hooks instead of the `useText` hook.
407
+
408
+ ### Changes
409
+ - 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.
410
+ - Do not show disabled option checkboxes.
411
+ - Improve icon accessibility.
412
+ - 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.
413
+ - 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.
414
+ - 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.
415
+ - Add support for character limit on text input.
416
+ - Add Call to Action (CTA) message type.
417
+
418
+ ### Bug fixes
419
+ - The participant displayed information is now cleared after an interrupt restart.
420
+ - Fix duplicate rendering of accessiblity text in image messages.
421
+ - Fix modification of the `body` data of messages when rendering them as rich text.
422
+ - Fix issue with socket reconnects that would result in messages appearing at the start of the chat
423
+
424
+ ## 11.1.0 (30 July 2020)
425
+ ### Bug fixes
426
+ - Fix history fetching when file uploads are disabled
427
+
428
+ ### Changes
429
+ - Clear waiting actions when destroying an instance
430
+
431
+ ## 11.0.0 (29 July 2020)
432
+ ### Bug fixes
433
+ - Focus outline will now always show, also in browsers with `:focus-visible` activated.
434
+ - Focus input when user clicked the restart button in the error interrupt.
435
+ - Hide cobrowsing bar, options and options toggle button when the UI is minimized
436
+
437
+ ### Breaking changes
438
+ - 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.
439
+ - 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.
440
+ - 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).
441
+
442
+ ### Changes
443
+ - The `Forms Data Engine` inside Seamly UI now supports multiple forms as well as the persistence of forms data.
444
+ - The `Forms Engine` now supports validation.
445
+ - `File uploads` are now supported in Seamly UI if the account configuration and service supports it.
446
+ - 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.
447
+
448
+ ## 10.0.1 (7 July 2020)
449
+ ### Bug fixes
450
+ - Export `useEntry` again (as `useInput` used to be exported).
451
+
452
+ ## 10.0.0 (3 July 2020)
453
+ ### Changes
454
+ - When the idle detach warning countdown starts the `idleTimer.start` window API event gets called and when the timer stops, the `idleTimer.stop` event.
455
+ - Add `sendCustomAction` action to the window API.
456
+ - Add generic Form engine for easier form handling and future extensibility for validation.
457
+ - Introduce options window. It will only show when the connected account actually has options.
458
+ - Introduce option for screensharing. This will also activate the screensharing warning when enabled.
459
+
460
+ ### Breaking changes
461
+ - The idle detach warning now displays the countdown as minutes and seconds. This will need styling changes in the implementation on upgrade.
462
+ - `Input` component has been replaced with a more generic `Entry` component. This is a drop-in replacement.
463
+ - Rename package to `@seamly/web-ui`. Updage your package.json files accordingly. Versioning will continue.
464
+
465
+ ## 9.3.0 (23 June 2020)
466
+ ### Changes
467
+ - FAQ click also sets `userResponded` to true
468
+
469
+ ## 9.2.0 (16 June 2020)
470
+ ### Changes
471
+ - Add the `appContainerClassName` configuration option to set custom class names on the container element.
472
+ - Add new ui.inputFocus event callback that is triggered whenever the input field gets focus.
473
+ - Emit faq question with `faqclick` custom action on click to aid implementations who need the faq question.
474
+ - The external API now support fetching the current visibility state with the `getVisibility` action.
475
+
476
+ ## 9.1.0 (5 June 2020)
477
+ ### Changes
478
+ - 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.
479
+ - Expired chats no longer show an interrupt screen but automatically restarts. The `sessionExpired` error key can be removed from all custom language files.
480
+
481
+ ### Breaking changes
482
+ - 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.
483
+
484
+ ## 9.0.0 (19 May 2020)
485
+ ### Changes
486
+ - Depending on server configuration, send user typed text to the Seamly server periodically.
487
+ - Prefetch api configuration prior to chat start.
488
+ - Prefetch initial chat state prior to chat start.
489
+ - Initialise unit testing of Seamly.
490
+ - Upgraded Preact to 10.4.1. Please align all custom implementations to this version.
491
+ - 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.
492
+ - Add `init` and `destroy` functionality to the external api to allow users to destroy or re-initialise the Seamly chat window.
493
+ - Remove the deprecated object API, you can only use the `window.seamly` API from now on.
494
+ - No longer automatically initialise an instance. You need to call the `init` action explicitly to render/start an instance.
495
+ - Sanitize user input from any executable HTML.
496
+
497
+ ### Breaking changes
498
+ - Migrate the UI to version 2 of the Seamly API.
499
+ - The exported Seamly function no longer returns an API
500
+ - You need to explicitly `init` an instance to start it
501
+ - 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.
502
+
503
+ ## 8.1.0 (24 April 2020)
504
+ ### Changes
505
+ - FAQ events will now be persisted over application reloads and only be cleared when intended by the Seamly server.
506
+
507
+ ## 8.0.1 (6 April 2020)
508
+ ### Bug fixes
509
+ - Repair text input labelling.
510
+
511
+ ## 8.0.0 (6 April 2020)
512
+ ### Changes
513
+ - The default FAQ component has been adjusted to handle more implementation requirements. Refer to `faq.md` for the latest API.
514
+ - 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.
515
+
516
+ ### Breaking changes
517
+ - 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:
518
+
519
+ ```jsx harmony
520
+ <EntryContainer>
521
+ <Input />
522
+ </EntryContainer>
523
+ ```
524
+
525
+ - Custom implementations using a custom `<ToggleButton>` component should align to the new version of the code.
526
+ - Custom implementations using a custom `<Input>` component should also align to the new version of the code.
527
+ - Any usages of the hook `useSkiplinkInputId` should be refactored to `useSkiplink`.
528
+ - Any usages of the hook `useInputFocusing` should be refactored to `useSkiplinkTargetFocusing`.
529
+
530
+ ## 7.1.0 (26 March 2020)
531
+ ### Bug fixes
532
+ - FAQ's selections will now show in history as the original event ID is now passed to the FAQ click action.
533
+ - Image and video elements will now also show the event participant, when appropriate.
534
+
535
+ ### Changes
536
+ - The current active participant will show as event participant on the chat loader bubble, when appropriate.
537
+
538
+ ## 7.0.0 (12 March 2020)
539
+ ### Bug fixes
540
+ - Avoid empty introductions from overwriting existing avatar intros.
541
+ - Update avatar in button/header to show initial state / active agent avatar.
542
+
543
+ ### Changes
544
+ - Display `info` messages in the chat windo when they are sent via the websocket.
545
+ - Upgrade Preact to v10.3.3. It is recommended to upgrade custom implementations to this version of Preact as well.
546
+ - The configuration object has been expanded with a new `defaults` object:
547
+
548
+ ```json
549
+ defaults: {
550
+ startChatIcon: imageUrl,
551
+ agentName: 'Seamly Bot',
552
+ agentIcon: imageUrl1,
553
+ userName: 'You',
554
+ },
555
+ ```
556
+
557
+ - The standard display name and avatar of the `user participant` will now be source from the `seamly-client-participant` participant message from the server.
558
+ - A default chat start icon can be set using the `startChatIcon` setting found in the new `defaults` object in the configuration object.
559
+ - A default agent icon can be set using the `agentIcon` setting found in the new `defaults` object in the configuration object.
560
+
561
+ ### Breaking Changes
562
+ - 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.
563
+ - 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.
564
+ - 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.
565
+ - Add privacy disclaimers will now auto close after 5000 milliseconds, unless the `disclaimerTimeout` is set in the config.
566
+ - Remove `toggleButton.openChat` and add `toggleButton.resumeTitle` in all custom language files.
567
+ - 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.
568
+ - Any implementations relying on an `agent defaultName` of `Bot` coming from the Seamly client itself, needs to implement this with the `userName` setting.
569
+ - Any implementations relying on a `user defaultName` of `You` coming from the Seamly client itself, needs to implement this with the `userName` setting.
570
+
571
+ ## 6.2.0 (3 March 2020)
572
+ ### Changes
573
+ - Upgrade Preact to v10.3.2. It is recommended to upgrade custom implementations to this version of Preact as well.
574
+
575
+ ### Bug fixes
576
+ - Avoid empty introductions from overwriting existing avatar intros.
577
+ - Fixed race condition that sometimes caused a double connect of the chat client.
578
+
579
+ ## 6.1.0 (17 February 2020)
580
+ ### Changes
581
+ - Allow links to open in new tabs via server configuration.
582
+
583
+ ### Other
584
+ - Fix image opening in lightbox after previous server change.
585
+
586
+ ## 6.0.0 (17 February 2020)
587
+ ### Bug fixes
588
+ - Choice Prompts with prompts other than type="text" now displays properly.
589
+
590
+ ### Changes
591
+ - Custom `Text`, `Video` and `Image` components now implement a `descriptorId` prop as `id` to decorate description containers.
592
+
593
+ ### Breaking Changes
594
+ - Custom ChoicePrompt components should now allow for custom prompt component injection via the `children` prop.
595
+ - Custom Text components should no longer use a `textBodyId` prop to decorate the text container via `id` but instead implement a `descriptorId` prop.
596
+
597
+ ## 5.1.1 (12 February 2020)
598
+
599
+ ### Bug fixes
600
+ - Fix misalignment of balloon agent icon.
601
+
602
+ ## 5.1.0 (7 February 2020)
603
+
604
+ ### Changes
605
+ - Expose new action events for `action.pick_choice`, `action.navigate` and `action.custom`.
606
+
607
+ ## 5.0.2 (31 January 2020)
608
+
609
+ ### Bug fixes
610
+ - Properly build and release Dutch I18N text for Choose Again.
611
+
612
+ ## 5.0.1 (31 January 2020)
613
+
614
+ ### Changes
615
+ - Adjust default Dutch I18N text for Choose Again.
616
+
617
+ ## 5.0.0 (29 January 2020)
618
+ ### New features
619
+ - Enable choose again of choice prompt values.
620
+
621
+ ### Bug fixes
622
+ - Repair semantics of the Choice Prompt list.
623
+
624
+ ### Breaking Changes
625
+ - 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.
626
+ - `Choice Prompts` will be rendered as a `<ul>` instead of `<div>`. Styling should be adjusted in implementations.
627
+ - 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.