Skip to content

Commit d60792e

Browse files
authored
Merge branch 'development' into dependabot/npm_and_yarn/lex-web-ui/nanoid-3.3.8
2 parents df39df8 + 452b98d commit d60792e

34 files changed

+89369
-73705
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ 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.21.6] - 2024-09-20
7+
## [0.21.6] - 2025-01-23
8+
- Add heartbeat for streaming responses to prevent idle timeout of 10 mins
9+
10+
## [0.21.6] - 2024-12-18
811
- Updatae the Web UI to allow VPC integration with all Lambda functions. This requires your VPC to at a minimum be able to access S3, and additional optional functionality will require additional VPC endpoints to services.
912
- Package updates to address vulnerabilities.
1013

build/Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ VPATH := $(OUT)
2121

2222
# upload files to bootstrap bucket
2323
# NOTE: files uploaded with public read permissions
24-
upload: upload-templates upload-custom-resources-zip upload-src-zip upload-layers \
24+
upload: upload-templates upload-custom-resources-zip upload-src-zip \
2525
upload-response-card-image upload-initiate-chat-lambda upload-streaming-lambda upload-qbusiness-lambda
2626
.PHONY: upload
2727

@@ -37,15 +37,8 @@ upload-templates: $(TEMPLATES) | $(OUT)
3737
aws s3 sync --acl public-read --exclude "*" --include "*.yaml" \
3838
"$(TEMPLATES_DIR)" "s3://$(BOOTSTRAP_BUCKET_PATH)/templates/" \
3939
| tee "$(OUT)/$(@)"
40-
aws s3 cp "$(TEMPLATES_DIR)"/layers.zip \
41-
"s3://${BOOTSTRAP_BUCKET_PATH}/layers.zip"
4240
@echo "[INFO] master template: https://s3.amazonaws.com/$(BOOTSTRAP_BUCKET_PATH)/templates/master.yaml"
4341

44-
LAMBDA_LAYER_ZIP := $(TEMPLATES_DIR)/layers.zip
45-
46-
upload-layers:
47-
@echo "[INFO] Uploading lambda layer"
48-
aws s3 cp --acl public-read "$(LAMBDA_LAYER_ZIP)" "s3://${BOOTSTRAP_BUCKET_PATH}/layers.zip"
4942

5043
# cfn custom resource lambda files are found under this directory
5144
CUSTOM_RESOURCES_DIR := $(TEMPLATES_DIR)/custom-resources

build/update-lex-web-ui-config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ const lexV2BotLocaleVoices = {
147147
'CONNECT_START_LIVE_CHAT_ICON',
148148
'CONNECT_END_LIVE_CHAT_LABEL',
149149
'CONNECT_END_LIVE_CHAT_ICON',
150+
'CONNECT_END_LIVE_CHAT_UTTERANCE',
150151
'CONNECT_TRANSCRIPT_MESSAGE_DELAY_IN_MSEC',
152+
'CONNECT_TRANSCRIPT_REDACT_REGEX',
151153
'APP_DOMAIN_NAME',
152154
'UI_TOOLBAR_TITLE',
153155
'UI_TOOLBAR_LOGO',

config/base.env.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ module.exports = {
2323
chatEndedMessage: process.env.CONNECT_CHAT_ENDED_MESSAGE,
2424
attachChatTranscript: process.env.CONNECT_ATTACH_CHAT_TRANSCRIPT,
2525
liveChatTerms: process.env.CONNECT_LIVE_CHAT_TERMS,
26+
endLiveChatUtterance: process.env.CONNECT_END_LIVE_CHAT_UTTERANCE,
2627
transcriptMessageDelayInMsec: process.env.CONNECT_TRANSCRIPT_MESSAGE_DELAY_IN_MSEC,
28+
transcriptRedactRegex: process.env.CONNECT_TRANSCRIPT_REDACT_REGEX,
2729
},
2830
lex: {
2931
v2BotId: process.env.V2_BOT_ID,

config/env.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export CONNECT_START_LIVE_CHAT_LABEL ?= $()
3636
export CONNECT_START_LIVE_CHAT_ICON ?= $()
3737
export CONNECT_END_LIVE_CHAT_LABEL ?= $()
3838
export CONNECT_END_LIVE_CHAT_ICON ?= $()
39+
export CONNECT_END_LIVE_CHAT_UTTERANCE ?= $()
3940
export CONNECT_TRANSCRIPT_MESSAGE_DELAY_IN_MSEC ?= $()
41+
export CONNECT_TRANSCRIPT_REDACT_REGEX ?= $()
4042
export BOT_INITIAL_TEXT ?= $()
4143
export BOT_INITIAL_SPEECH ?= $()
4244
export BOT_INITIAL_UTTERANCE ?= $()

config/utils/merge-config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ module.exports = function mergeConfig(baseConfig, srcConfig) {
3333
key=== 'initialText' ||
3434
key=== 'avatarImageUrl' ||
3535
key=== 'toolbarLogo' ||
36+
key=== 'streamingWebSocketEndpoint' ||
37+
key=== 'streamingDynamoDbTable' ||
3638
!isEmpty(srcConfig[key]) ) {
3739
value = (typeof (baseConfig[key]) === 'object') ?
3840
// recursively merge sub-objects in both directions

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
font-src 'self' fonts.gstatic.com;
1515
upgrade-insecure-requests;">
1616
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
17-
<title>LexWebUi Demo</title>
17+
<title>LexWebUi</title>
1818
<!-- empty favicon to avoid 404 -->
1919
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />
2020

0 commit comments

Comments
 (0)