- accent:
string— Web Chat component accent color.
Default:#0063B1 - backgroundColor:
string— Transcript background color.
Default:White - subtle:
string— Secondary component color.
Default:#767676 - paddingRegular:
number— Default padding for most visual components.
Default:10 - paddingWide:
number— Padding for suggestedAction buttons.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // bundleConfiguration is a javascript object in the following format: | |
| // let bundleConfiguration = { | |
| // default: './server-bundle', | |
| // pwa: './server-bundle', | |
| // pwaremote: 'http://myserver.com/server-bundle.js' | |
| // }; | |
| // bundles is an empty onbject, i.e. let bundles = {}; | |
| // the function returns an array of promises to wait for: | |
| // bundleLoaderPromises = loadBundles(bundlesConfiguration, bundles); | |
| // Promise.all(bundleLoaderPromises).then(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| process.env.ComponentServerBundles = JSON.stringify({ | |
| default: './server-bundle', | |
| pwa: './server-bundle', | |
| pwaremote: 'http://myserver.com/server-bundle.js' | |
| }); | |
| // Handy for debugging to use a direct require so Visual Studio code can set breakpoints in the code | |
| // of the bundle we are debugging. | |
| let bundle_to_debug = require('./server-bundle'); | |
| if (process.env.NODE_ENV === 'production') { |
OlderNewer