Skip to content

Reverting all changes to development due to issues with sdk v3 #670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2024
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ This update removes all dependency vulnerabilities as of release date.
* BackButton
* MinimizedButtonContent
- Change initial speech mechanism to fetch and play mp3 files created during codebuild. Implement support for configured localeIds when creating the mp3 files. Create an mp3 for each configured localeId and use aws translate to generate text for the locale and use aws polly to create the mp3 files. When the user changes locale in the UI and clicks on the mic button, the initial speech for the selected locale will be played.
- Add support for Connect interactive messaging into Lex Web UI: [https://docs.aws.amazon.com/connect/latest/adminguide/interactive-messages.html](https://docs.aws.amazon.com/connect/latest/adminguide/interactive-messages.html). Both ListPicker and TimePicker are supported templateTypes and can be sent using the exact same JSON structure as Connect.
- Add support for Connect interactive messaging into Lex Web UI: [https://docs.aws.amazon.com/connect/latest/adminguide/interactive-messages.html](https://docs.aws.amazon.com/connect/latest/adminguide/interactive-messages.html). Both ListPicker and TimePicker are supported templateTypes and can be sent using the exact same JSON structure as Connect. Additionally, added support for a DateTimePicker templateType which will give the end user an open-ended selector for a date/time variable to send back to Lex.
- Fix handling the new ElicitIntent dialogAction type LexV2 response, which does not have some expected properties on the sessionState object

## [0.19.5] - 2022-07-17
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,24 @@ TimePicker in Web UI:

<img src="./img/interactive-message-datepicker.png" width=350>

Additionally, Lex Web UI supports a DateTimePicker templateType which will give the end user an open-ended selector for a date/time variable to send back to Lex. DateTimePicker format expected:

```
{
"templateType":"TimePicker", (mandatory)
"version":"1.0", (mandatory)
"data":{ (mandatory)
"content":{ (mandatory)
"title":"Schedule appointment", (mandatory)
}
}
}
```

DateTimePicker in Web UI:

<img src="./img/interactive-message-datetimepicker.png" width=400>

## Examples
The examples below are organized around the following use cases:
1. [Stand-Alone Page](#stand-alone-page)
Expand Down
10 changes: 5 additions & 5 deletions build/upload-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ pushd .
cd ..
git ls-files | xargs zip -u build/out/src-$version.zip
popd
aws s3 cp out/src-$version.zip \
aws s3 cp --acl public-read out/src-$version.zip \
"s3://${BOOTSTRAP_BUCKET_PATH}/src-$version.zip"

aws s3 cp out/custom-resources-$version.zip \
aws s3 cp --acl public-read out/custom-resources-$version.zip \
"s3://${BOOTSTRAP_BUCKET_PATH}/custom-resources-$version.zip"

aws s3 cp out/initiate-chat-lambda-$version.zip \
aws s3 cp --acl public-read out/initiate-chat-lambda-$version.zip \
"s3://${BOOTSTRAP_BUCKET_PATH}/initiate-chat-lambda-$version.zip"

aws s3 cp out/streaming-lambda-$version.zip \
aws s3 cp --acl public-read out/streaming-lambda-$version.zip \
"s3://${BOOTSTRAP_BUCKET_PATH}/streaming-lambda-$version.zip"

aws s3 sync --exclude "*" --include "*.yaml" \
aws s3 sync --acl public-read --exclude "*" --include "*.yaml" \
../templates "s3://${BOOTSTRAP_BUCKET_PATH}/templates/"

echo "[INFO] master template: https://s3.amazonaws.com/${BOOTSTRAP_BUCKET_PATH}/templates/master.yaml"
28 changes: 8 additions & 20 deletions dist/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,21 @@ all: copy-bundle build-loader
WEB_UI_DIR := ../lex-web-ui
WEB_UI_SRC_FILES := $(shell git ls-files $(WEB_UI_DIR)/src)
WEB_UI_BUNDLE_DIR := $(WEB_UI_DIR)/dist/bundle
WEB_UI_JS_DIR := $(WEB_UI_DIR)/dist/js
LIBRARY_SRC_BUNDLE_FILES := $(wildcard $(WEB_UI_BUNDLE_DIR)/lex-web-ui.*)
LIBRARY_SRC_BUNDLE_FILES += $(wildcard $(WEB_UI_BUNDLE_DIR)/*-worker.*)
LIBRARY_BUNDLE_FILES := $(patsubst $(WEB_UI_BUNDLE_DIR)/%,%,$(LIBRARY_SRC_BUNDLE_FILES))
LIBRARY_SRC_JS_FILES += $(wildcard $(WEB_UI_JS_DIR)/*.js)
LIBRARY_JS_FILES := $(patsubst $(WEB_UI_JS_DIR)/%,%,$(LIBRARY_SRC_JS_FILES))

LIBRARY_SRC_FILES := $(wildcard $(WEB_UI_BUNDLE_DIR)/lex-web-ui.*)
LIBRARY_SRC_FILES += $(wildcard $(WEB_UI_BUNDLE_DIR)/*-worker.*)
LIBRARY_FILES := $(patsubst $(WEB_UI_BUNDLE_DIR)/%,%,$(LIBRARY_SRC_FILES))

# build the application bundle
$(LIBRARY_SRC_BUNDLE_FILES): $(WEB_UI_SRC_FILES)
$(LIBRARY_SRC_FILES): $(WEB_UI_SRC_FILES)
@echo "[INFO] Building from dir [$(WEB_UI_DIR)]"
cd $(WEB_UI_DIR) && npm run build-dist

# Copy lex-web-ui/dist/bundle files to dist dir
$(LIBRARY_BUNDLE_FILES): $(LIBRARY_SRC_BUNDLE_FILES)
@echo "[INFO] Copying lex-web-ui/dist/bundle files to dist dir"
# copy library files to dist dir
$(LIBRARY_FILES): $(LIBRARY_SRC_FILES)
@echo "[INFO] Copying library files"
cp $(?) .

copy-bundle: $(LIBRARY_SRC_BUNDLE_FILES) $(LIBRARY_BUNDLE_FILES)

# Copy lex-web-ui/dist/js files to dist dir
$(LIBRARY_JS_FILES): $(LIBRARY_SRC_JS_FILES)
@echo "[INFO] Copying lex-web-ui/dist/js files to dist dir"
mkdir -p js
cp $(?) ./js

copy-bundle: $(LIBRARY_SRC_JS_FILES) $(LIBRARY_JS_FILES)
copy-bundle: $(LIBRARY_SRC_FILES) $(LIBRARY_FILES)

# copy website bot loader files from source to dist dir
SRC_DIR := ../src
Expand Down
Loading