@botfabrik/engine-webclient 4.15.2 → 4.15.4

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.
package/README.md CHANGED
@@ -126,6 +126,20 @@ const webclientProps = {
126
126
  bot.addClient(Webclient('webclient', webclientProps));
127
127
  ```
128
128
 
129
+ ### pdfExportEnabled (optional)
130
+
131
+ Erlaubt es, den Chatverlauf als PDF herunterzuladen. Siehe auch @botfabrik/engine-transcript-export.
132
+
133
+ Beispiel:
134
+
135
+ ```typescript
136
+ const webclientProps = {
137
+ pdfExportEnabled: true,
138
+ };
139
+
140
+ bot.addClient(Webclient('webclient', webclientProps));
141
+ ```
142
+
129
143
  ### showGeneralConditions (optional)
130
144
 
131
145
  Mit dieser Option können allgemeine Bedingungen zu Beginn des Chats angezeigt werden.
@@ -163,13 +177,21 @@ Beispiel (de.json)
163
177
  "webclient": {
164
178
  "message-input-label": "Nachricht eingeben ...",
165
179
  "export-transcript": {
166
- "titel": "Konversation erhalten",
167
- "description": "Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.",
168
- "cancel": "Abbrechen",
169
- "send": "Senden",
170
- "email-placeholder": "Ihre E-Mail-Adresse",
171
- "email-invalid": "Bitte gültige E-Mail-Adresse eingeben.",
172
- "success": "Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.",
180
+ "email":{
181
+ "title": "Konversation per E-Mail versenden",
182
+ "description": "Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.",
183
+ "cancel": "Abbrechen",
184
+ "send": "Senden",
185
+ "placeholder": "Ihre E-Mail-Adresse",
186
+ "invalid": "Bitte gültige E-Mail-Adresse eingeben.",
187
+ "success": "Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.",
188
+ },
189
+ "pdf":{
190
+ "title": "Konversation als PDF",
191
+ "description": "Laden Sie die Konversation als PDF herunter.",
192
+ "cancel": "Abbrechen",
193
+ "download":"Herunterladen",
194
+ }
173
195
  },
174
196
  "general-conditions": {
175
197
  "header": "**Nutzungsbedingungen**",
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "./static/css/main.2f39f3ab.chunk.css",
4
- "main.js": "./static/js/main.b9062568.chunk.js",
5
- "main.js.map": "./static/js/main.b9062568.chunk.js.map",
4
+ "main.js": "./static/js/main.f14f9bef.chunk.js",
5
+ "main.js.map": "./static/js/main.f14f9bef.chunk.js.map",
6
6
  "runtime-main.js": "./static/js/runtime-main.bca41576.js",
7
7
  "runtime-main.js.map": "./static/js/runtime-main.bca41576.js.map",
8
- "static/js/2.6576c709.chunk.js": "./static/js/2.6576c709.chunk.js",
9
- "static/js/2.6576c709.chunk.js.map": "./static/js/2.6576c709.chunk.js.map",
8
+ "static/js/2.d22c518a.chunk.js": "./static/js/2.d22c518a.chunk.js",
9
+ "static/js/2.d22c518a.chunk.js.map": "./static/js/2.d22c518a.chunk.js.map",
10
10
  "index.html": "./index.html",
11
11
  "static/css/main.2f39f3ab.chunk.css.map": "./static/css/main.2f39f3ab.chunk.css.map",
12
- "static/js/2.6576c709.chunk.js.LICENSE.txt": "./static/js/2.6576c709.chunk.js.LICENSE.txt"
12
+ "static/js/2.d22c518a.chunk.js.LICENSE.txt": "./static/js/2.d22c518a.chunk.js.LICENSE.txt"
13
13
  },
14
14
  "entrypoints": [
15
15
  "static/js/runtime-main.bca41576.js",
16
- "static/js/2.6576c709.chunk.js",
16
+ "static/js/2.d22c518a.chunk.js",
17
17
  "static/css/main.2f39f3ab.chunk.css",
18
- "static/js/main.b9062568.chunk.js"
18
+ "static/js/main.f14f9bef.chunk.js"
19
19
  ]
20
20
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en" translate="no" class="notranslate"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><meta name="google" content="notranslate"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Botfabrik Chat Client</title><link href="./static/css/main.2f39f3ab.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><link rel="stylesheet" href="./custom.css"><script>!function(e){function t(t){for(var n,l,i=t[0],f=t[1],a=t[2],p=0,s=[];p<i.length;p++)l=i[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(c&&c(t);s.length;)s.shift()();return u.push.apply(u,a||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,i=1;i<r.length;i++){var f=r[i];0!==o[f]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="./";var i=this.webpackJsonpclient=this.webpackJsonpclient||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var c=f;r()}([])</script><script src="./static/js/2.6576c709.chunk.js"></script><script src="./static/js/main.b9062568.chunk.js"></script></body></html>
1
+ <!doctype html><html lang="en" translate="no" class="notranslate"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><meta name="google" content="notranslate"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Botfabrik Chat Client</title><link href="./static/css/main.2f39f3ab.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><link rel="stylesheet" href="./custom.css"><script>!function(e){function t(t){for(var n,l,i=t[0],f=t[1],a=t[2],p=0,s=[];p<i.length;p++)l=i[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(c&&c(t);s.length;)s.shift()();return u.push.apply(u,a||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,i=1;i<r.length;i++){var f=r[i];0!==o[f]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="./";var i=this.webpackJsonpclient=this.webpackJsonpclient||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var c=f;r()}([])</script><script src="./static/js/2.d22c518a.chunk.js"></script><script src="./static/js/main.f14f9bef.chunk.js"></script></body></html>