Skip to content

Commit aa32e8a

Browse files
committed
distribution build for v0.20.0
1 parent 39ba92c commit aa32e8a

21 files changed

+131457
-166607
lines changed

dist/index.html

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1 @@
1-
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui"><title>LexWebUi Demo</title><link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon"/><link href="lex-web-ui-loader.min.css" rel="stylesheet"><link rel="stylesheet" href="./custom-chatbot-style.css"></head><body><script src="lex-web-ui-loader.min.js"></script><script>// In the most simple form, you can load the component in a single statement:
2-
// new ChatBotUiLoader.FullPageLoader().load();
3-
4-
// The script below break the process into parts to further illustrate
5-
// the load process.
6-
7-
// The ChatBotUiLoader variable contains the FullPageLoader field which is a
8-
// constructor for the loader.
9-
var Loader = ChatBotUiLoader.FullPageLoader;
10-
11-
// The loader constructor supports various configurable options used to
12-
// control how the component configuration and dependencies are retrieved.
13-
// In this case, we are just passing one option (which doesn't changethe
14-
// default) for illustration purposes.
15-
var loaderOpts = {
16-
// The following option controls if the local config should be ignored
17-
// when running this page embedded in an iframe.
18-
// If set to true, only passes the parentOrigin field when run as an
19-
// iframe and delegates the config to the parent
20-
shouldIgnoreConfigWhenEmbedded: true,
21-
22-
// Controls if it should load minimized production dependecies
23-
// defaults to true for production builds and false in development
24-
shouldLoadMinDeps: true,
25-
};
26-
27-
// Instantiate the loader by optionally passing the loader options to
28-
// control its behavior. You may leave the options empty if you wish
29-
// to take the defaults which works in most cases.
30-
var loader = new Loader(loaderOpts);
31-
32-
// When loading the chatbot UI component, you can optionally pass it a
33-
// configuration object
34-
var chatbotUiConfig = {
35-
lex: {
36-
sessionAttributes: {
37-
/* QNAClientFilter: '', */
38-
userAgent: navigator.userAgent
39-
}
40-
}
41-
};
42-
43-
// Calling the load function of the loader does a few things:
44-
// 1. Loads JavaScript and CSS dependencies to the DOM
45-
// 2. Loads the chatbot UI configuration from various sources
46-
// (e.g. JSON file, event)
47-
// 3. Instantiates the chatbot UI component in the DOM
48-
loader
49-
.load(chatbotUiConfig)
50-
.then(function () { console.log('ChatBotUiLoader loaded'); })
51-
.catch(function (error) { console.error(error); });</script></body></html>
1+
<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="default-src 'self' blob: data:; worker-src blob: data:; img-src *; frame-src *; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; connect-src 'self' wss://*.amazonaws.com *.amazonaws.com *.amazoncognito.com; font-src 'self' fonts.gstatic.com; upgrade-insecure-requests;"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui"><title>LexWebUi Demo</title><link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon"/><link href="lex-web-ui-loader.min.css" rel="stylesheet"><link rel="stylesheet" href="./custom-chatbot-style.css"></head><body><script src="lex-web-ui-loader.min.js"></script><script src="./initiate-loader.js"></script></body></html>

dist/lex-web-ui-loader.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
/*!***************************************************************************************!*\
2+
!*** css ../../../node_modules/css-loader/dist/cjs.js!../css/lex-web-ui-fullpage.css ***!
3+
\***************************************************************************************/
14
#lex-web-ui-fullpage {
25
height: 100%;
36
width: 100%;
47
}
58

9+
/*!*************************************************************************************!*\
10+
!*** css ../../../node_modules/css-loader/dist/cjs.js!../css/lex-web-ui-iframe.css ***!
11+
\*************************************************************************************/
612
.lex-web-ui-iframe {
713
bottom: 1.5rem;
814
display: none; /* hidden by default changed once iframe is loaded */
@@ -94,5 +100,3 @@ and (max-width: 960px) {
94100
height: 100%;
95101
}
96102

97-
98-
/*# sourceMappingURL=lex-web-ui-loader.css.map*/

0 commit comments

Comments
 (0)