@botfabrik/engine-webclient 4.67.3 → 4.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,9 @@
3
3
  * Dazu kann eine eigene CSS Datei namens 'custom.css' im Verzeichnis 'public/${name-meines-webclients}/' abgelegt werden.
4
4
  */
5
5
 
6
+ /* import design set in cms */
7
+ @import url('/cms/chatbot/design/styles.css');
8
+
6
9
  @import url(//fonts.googleapis.com/css?family=Roboto:400,300,700,500,100,200);
7
10
 
8
11
  .bubble-chat {
package/dist/index.js CHANGED
@@ -84,6 +84,15 @@ exports.default = (clientName, environment, props) => async (bot) => {
84
84
  });
85
85
  }
86
86
  bot.webserver.express.use(`/${clientName}/embed`, express.static(__dirname + '/embed', serveStaticOptions));
87
+ bot.webserver.express.get(`/${clientName}/logo.svg`, (_req, res) => {
88
+ res.redirect(`/cms/chatbot/design/logo.svg?client=${clientName}`);
89
+ });
90
+ bot.webserver.express.get(`/${clientName}/bot.svg`, (_req, res) => {
91
+ res.redirect(`/cms/chatbot/design/bot.svg?client=${clientName}`);
92
+ });
93
+ bot.webserver.express.get(`/${clientName}/fab.svg`, (_req, res) => {
94
+ res.redirect(`/cms/chatbot/design/fab.svg?client=${clientName}`);
95
+ });
87
96
  // serve chat client resources
88
97
  bot.webserver.express.use(`/${clientName}`, express.static(__dirname + '/client', serveStaticOptions));
89
98
  logger.info(`Webclient will be available on route: /${clientName}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.67.3",
3
+ "version": "4.68.0",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -40,5 +40,5 @@
40
40
  "tsx": "^4.16.3",
41
41
  "typescript": "5.1.6"
42
42
  },
43
- "gitHead": "e6096ac13c97e41197a69c861569d21a115a9343"
43
+ "gitHead": "e64f95bd095221855680a9d0c895b5622179afe3"
44
44
  }