Skip to content

Commit 44680ac

Browse files
authored
Merge pull request #838 from aws-samples/development
Release 0.23.0
2 parents 3bb2d93 + f6da65d commit 44680ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1461
-2632
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [0.23.0] - 2025-10-3
8+
- Remove all reference to Lex v1 as it has been deprecated
9+
- Revamp how token refreshes work to resolve some issues that were introduced when migrating to SDKv3
10+
- Add example CSS files to repo for users who want an easier starting point.
11+
712
## [0.22.5] - 2025-09-10
813
- Update live chat text transcription applying redaction when required.
914
- Fix issue with live chat not closing on browser or window closing.

README-css-style.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,7 @@ button.end-live-chat-button.btn {
220220
#### Other
221221
Other CSS can be applied to the classes above in addition to what is listed. Be creative and
222222
create a compelling style for your site.
223+
224+
#### Lex Web Ui Example CSS Files
225+
some examples for custom css styles are available [here](example-css)
226+
![Sample CSS Files LexWebUi](./img/example-css.png)

README-qbusiness.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This feature supports integration with file attachments, enable both to allow QB
1414
### Deploy the Web UI
1515
1. A deployment of the Lex Web UI with login enabled is required for Q Business integration. To launch a new deployment of the Web UI, go to the main [README](https://github.com/aws-samples/aws-lex-web-ui/blob/master/README.md) and select `Launch` for the region where your Q Business app is deployed.
1616

17-
2. The other bot fields for both V1 & V2 bots must be empty for the template to create the Q Business integration bot, please ensure that `Lex V1 Bot Configuration Parameters` and `Lex V2 Bot Configuration Parameters` are blank.
17+
2. The other bot fields for both V2 bots must be empty for the template to create the Q Business integration bot, please ensure that the `Lex V2 Bot Configuration Parameters` are blank.
1818

1919
3. To enable login, set `EnableCognitoLogin` to true. To force users to login to your bot, set `ForceCognitoLogin` to true. The ForceCognitoLogin setting will automatically redirect users to the login page if they are not logged in to the bot.
2020

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ to the latest supported versions.
278278
},
279279
lex: {
280280
// Lex Bot Name in your account
281-
botName: '<your lex bot name>'
281+
v2BotId: '<your lex bot id>'
282282
}
283283
};
284284
// load the LexWebUi component
@@ -373,7 +373,7 @@ page](#stand-alone-page) section.
373373
},
374374
lex: {
375375
// Lex Bot Name in your account
376-
botName: '<your lex bot name>'
376+
v2BotId: '<your lex bot id>'
377377
}
378378
};
379379
@@ -431,7 +431,7 @@ and Lex Bot name. For example, set the appropriate values in the
431431
"poolId": "us-east-1:deadbeef-fade-babe-cafe-0123456789ab"
432432
},
433433
lex: {
434-
"botName": "myHelpBot"
434+
"v2BotId": "ABC123"
435435
}
436436
...
437437
```

config/base.env.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ module.exports = {
3131
v2BotId: process.env.V2_BOT_ID,
3232
v2BotAliasId: process.env.V2_BOT_ALIAS_ID,
3333
v2BotLocaleId: process.env.V2_BOT_LOCALE_ID,
34-
botName: process.env.BOT_NAME,
35-
botAlias: process.env.BOT_ALIAS,
3634
initialText: process.env.BOT_INITIAL_TEXT,
3735
initialSpeechInstruction: process.env.BOT_INITIAL_SPEECH,
3836
initialUtterance: process.env.BOT_INITIAL_UTTERANCE,

dist/lex-web-ui-loader.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44266,9 +44266,7 @@ __webpack_require__.r(__webpack_exports__);
4426644266

4426744267
const configBase = {
4426844268
region: '',
44269-
lex: {
44270-
botName: ''
44271-
},
44269+
lex: {},
4427244270
cognito: {
4427344271
poolId: ''
4427444272
},
@@ -45769,11 +45767,16 @@ class IframeComponentLoader {
4576945767
},
4577045768
// requests credentials from the parent
4577145769
getCredentials(evt) {
45772-
const tcreds = JSON.parse(JSON.stringify(this.credentials));
45773-
return evt.ports[0].postMessage({
45774-
event: 'resolve',
45775-
type: evt.data.event,
45776-
data: tcreds
45770+
const {
45771+
poolId: cognitoPoolId
45772+
} = this.config.cognito;
45773+
const region = this.config.cognito.region;
45774+
this.getCredentials(cognitoPoolId, region).then(creds => {
45775+
return evt.ports[0].postMessage({
45776+
event: 'resolve',
45777+
type: evt.data.event,
45778+
data: creds
45779+
});
4577745780
});
4577845781
},
4577945782
// requests chatbot UI config

dist/lex-web-ui-loader.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lex-web-ui-loader.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lex-web-ui-loader.min.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* lex-web-ui v0.22.5
2+
* lex-web-ui v0.23.0
33
* (c) 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
* Released under the Amazon Software License.
55
*/
@@ -34681,9 +34681,7 @@ var runtime = __webpack_require__(10490);
3468134681

3468234682
const configBase = {
3468334683
region: '',
34684-
lex: {
34685-
botName: ''
34686-
},
34684+
lex: {},
3468734685
cognito: {
3468834686
poolId: ''
3468934687
},
@@ -37863,11 +37861,16 @@ class IframeComponentLoader {
3786337861
},
3786437862
// requests credentials from the parent
3786537863
getCredentials(evt) {
37866-
const tcreds = JSON.parse(JSON.stringify(this.credentials));
37867-
return evt.ports[0].postMessage({
37868-
event: 'resolve',
37869-
type: evt.data.event,
37870-
data: tcreds
37864+
const {
37865+
poolId: cognitoPoolId
37866+
} = this.config.cognito;
37867+
const region = this.config.cognito.region;
37868+
this.getCredentials(cognitoPoolId, region).then(creds => {
37869+
return evt.ports[0].postMessage({
37870+
event: 'resolve',
37871+
type: evt.data.event,
37872+
data: creds
37873+
});
3787137874
});
3787237875
},
3787337876
// requests chatbot UI config

dist/lex-web-ui-loader.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)