Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.22.4] - 2025-08-09
- Fix issue where full page loader was pulling iniitate-loader as a dependency improperly
- Allow empty promptForNameMessage to skip prompting for a name (for Talkdesk integration only). This must be manually updated on the config file.
- Upgrade NodeJS Lambda function to v22 as v18 will be deprecated in the near future.

## [0.22.3] - 2025-06-26
- Fix issue where credentials were not available on web socket initiation in some instances of streaming
- Accessibility improvements

## [0.22.1] - 2025-05-19
## [0.22.2] - 2025-05-19
- Fix scenarios where cross origin requests did not have credentials passed before iframe loads

## [0.22.1] - 2025-05-10
Expand Down
3 changes: 0 additions & 3 deletions dist/lex-web-ui-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -44190,9 +44190,6 @@ __webpack_require__.r(__webpack_exports__);
*/
const dependenciesFullPage = {
script: [{
name: 'Loader',
url: './initiate-loader.js'
}, {
name: 'Vue',
url: './3.5.13_dist_vue.global.prod.js',
canUseMin: false
Expand Down
2 changes: 1 addition & 1 deletion dist/lex-web-ui-loader.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lex-web-ui-loader.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions dist/lex-web-ui-loader.min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* lex-web-ui v0.22.3
* lex-web-ui v0.22.4
* (c) 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Released under the Amazon Software License.
*/
Expand Down Expand Up @@ -34792,9 +34792,6 @@ const optionsIframe = {
*/
const dependenciesFullPage = {
script: [{
name: 'Loader',
url: './initiate-loader.js'
}, {
name: 'Vue',
url: './3.5.13_dist_vue.global.prod.js',
canUseMin: false
Expand Down
2 changes: 1 addition & 1 deletion dist/lex-web-ui-loader.min.js.map

Large diffs are not rendered by default.

68 changes: 35 additions & 33 deletions dist/lex-web-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lex-web-ui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lex-web-ui.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lex-web-ui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wav-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/wav-worker.min.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions lex-web-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lex-web-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lex-web-ui",
"version": "0.22.3",
"version": "0.22.4",
"description": "Amazon Lex Web Interface",
"author": "AWS",
"license": "Amazon Software License",
Expand Down
53 changes: 27 additions & 26 deletions lex-web-ui/src/lib/lex/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
import {
PostTextCommand,
DeleteSessionCommand as DeleteSessionCommandV1,
PutSessionCommand as PutSessionCommandV2,
PutSessionCommand as PutSessionCommandV1,
PostContentCommand
} from "@aws-sdk/client-lex-runtime-service";
import {
RecognizeTextCommand,
DeleteSessionCommand as DeleteSessionCommandV2,
PutSessionCommand as PutSessionCommandV1,
PutSessionCommand as PutSessionCommandV2,
RecognizeUtteranceCommand
} from "@aws-sdk/client-lex-runtime-v2";

Expand Down Expand Up @@ -115,33 +115,34 @@ export default class {
}

async startNewSession() {
let command;
if (this.isV2Bot) {
command = new PutSessionCommandV2({
botAliasId: this.botV2AliasId,
botId: this.botV2Id,
localeId: this.botV2LocaleId,
sessionId: this.userId,
sessionState: {
let command, res;
try {
if (this.isV2Bot) {
command = new PutSessionCommandV2({
botAliasId: this.botV2AliasId,
botId: this.botV2Id,
localeId: this.botV2LocaleId,
sessionId: this.userId,
sessionState: {
dialogAction: {
type: 'ElicitIntent',
},
},
});
const res = await this.lexRuntimeV2Client.send(command);
return res;
} else {
command = new PutSessionCommandV1({
botAlias: this.botAlias,
botName: this.botName,
userId: this.userId,
dialogAction: {
type: 'ElicitIntent',
},
},
});
} else {
command = new PutSessionCommandV1({
botAlias: this.botAlias,
botName: this.botName,
userId: this.userId,
dialogAction: {
type: 'ElicitIntent',
},
});
}

try {
const res = await this.lexRuntimeClient.send(command);
return res;
});
const res = await this.lexRuntimeClient.send(command);
return res;
}
} catch(err) {
console.log(err)
}
Expand Down
2 changes: 1 addition & 1 deletion lex-web-ui/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ export default {

requestLiveChat(context) {
console.info('requestLiveChat');
if (!context.getters.liveChatUserName()) {
if (!context.getters.liveChatUserName() && context.state.config.connect.promptForNameMessage.length > 0) {
context.commit('setLiveChatStatus', liveChatStatus.REQUEST_USERNAME);
context.commit(
'pushMessage',
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-lex-web-ui",
"version": "0.22.3",
"version": "0.22.4",
"description": "Sample Amazon Lex Web Interface",
"main": "dist/lex-web-ui.min.js",
"repository": {
Expand Down
4 changes: 0 additions & 4 deletions src/lex-web-ui-loader/js/defaults/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
*/
export const dependenciesFullPage = {
script: [
{
name: 'Loader',
url: './initiate-loader.js',
},
{
name: 'Vue',
url: './3.5.13_dist_vue.global.prod.js',
Expand Down
2 changes: 1 addition & 1 deletion templates/cognito.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ Resources:
Condition: ShouldAllowSignUpEmailDomain
Properties:
Handler: index.handler
Runtime: nodejs18.x
Runtime: nodejs22.x
Timeout: 3
Environment:
Variables:
Expand Down
16 changes: 8 additions & 8 deletions templates/master.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AWSTemplateFormatVersion: 2010-09-09
Description: |
Master Lex Web UI CloudFormation template (v0.22.3)
Master Lex Web UI CloudFormation template (v0.22.4)
The Lex Web Ui can be deployed to operate against either a Lex V2 Bot OR a Lex V1 Bot BUT NOT BOTH.
Please configure either the Lex V2 bot information OR the Lex V1 bot information and leave the other
version input parameters as defaulted.
Expand Down Expand Up @@ -760,7 +760,7 @@ Resources:
ShouldDeleteBot: !Ref ShouldDeleteBot
ParentStackName: !Ref "AWS::StackName"
SourceBucket: !Ref BootstrapBucket
QBusinessLambdaCodeObject: !Sub "${BootstrapPrefix}/qbusiness-lambda-v0.22.3.zip"
QBusinessLambdaCodeObject: !Sub "${BootstrapPrefix}/qbusiness-lambda-v0.22.4.zip"
AmazonQAppId: !Ref AmazonQAppId
IDCApplicationARN: !Ref IDCApplicationARN
VpcSubnetId: !Ref VpcSubnetId
Expand Down Expand Up @@ -804,10 +804,10 @@ Resources:
SourceBucket: !Ref BootstrapBucket
SourcePrefix: !Ref BootstrapPrefix
StreamingWebSocketEndpoint: !Ref StreamingWebSocketEndpoint
SourceObject: !Sub "${BootstrapPrefix}/src-v0.22.3.zip"
CustomResourceCodeObject: !Sub "${BootstrapPrefix}/custom-resources-v0.22.3.zip"
InitiateChatLambdaCodeObject: !Sub "${BootstrapPrefix}/initiate-chat-lambda-v0.22.3.zip"
StreamingLambdaCodeObject: !Sub "${BootstrapPrefix}/streaming-lambda-v0.22.3.zip"
SourceObject: !Sub "${BootstrapPrefix}/src-v0.22.4.zip"
CustomResourceCodeObject: !Sub "${BootstrapPrefix}/custom-resources-v0.22.4.zip"
InitiateChatLambdaCodeObject: !Sub "${BootstrapPrefix}/initiate-chat-lambda-v0.22.4.zip"
StreamingLambdaCodeObject: !Sub "${BootstrapPrefix}/streaming-lambda-v0.22.4.zip"
CleanupBuckets: !Ref CleanupBuckets
BotName:
!If
Expand Down Expand Up @@ -904,7 +904,7 @@ Resources:
UploadBucket: !Ref UploadBucket
VpcSubnetId: !Ref VpcSubnetId
VpcSecurityGroupId: !Ref VpcSecurityGroupId
Timestamp: 1750948781
Timestamp: 1754657573

CognitoIdentityPoolConfig:
Type: AWS::CloudFormation::Stack
Expand All @@ -920,7 +920,7 @@ Resources:
CognitoUserPoolClient: !GetAtt CognitoIdentityPool.Outputs.CognitoUserPoolClientId
VpcSubnetId: !Ref VpcSubnetId
VpcSecurityGroupId: !Ref VpcSecurityGroupId
Timestamp: 1750948781
Timestamp: 1754657573

##########################################################################
# Lambda that will validate if user has put in an invalid CSS color/Hex string and fail deployment
Expand Down
2 changes: 1 addition & 1 deletion templates/restapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Resources:
Description: AWS Lambda Function to initiate the chat with the end user
Handler: "index.handler"
Role: !GetAtt InitiateChatLambdaExecutionRole.Arn
Runtime: "nodejs18.x"
Runtime: "nodejs22.x"
MemorySize: 128
Timeout: 30
Environment:
Expand Down
2 changes: 1 addition & 1 deletion templates/streaming-support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Resources:
Description: AWS Lambda Function to initiate web socket connection for streaming
Handler: "index.handler"
Role: !GetAtt StreamingLambdaExecutionRole.Arn
Runtime: "nodejs18.x"
Runtime: "nodejs22.x"
MemorySize: 128
Timeout: 30
Environment:
Expand Down