@botfabrik/engine-webclient 4.97.1 → 4.97.3-alpha.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.
@@ -13,8 +13,8 @@
13
13
  <meta name="theme-color" content="#000000" />
14
14
  <meta name="google" content="notranslate" />
15
15
  <title>Bubble Chat Client</title>
16
- <script type="module" crossorigin src="./assets/index-DZUwfXcY.js"></script>
17
- <link rel="stylesheet" crossorigin href="./assets/index-F7W-EPXW.css">
16
+ <script type="module" crossorigin src="./assets/index-hnXncAyS.js"></script>
17
+ <link rel="stylesheet" crossorigin href="./assets/index-0rBUklXv.css">
18
18
  </head>
19
19
 
20
20
  <body>
@@ -20,10 +20,18 @@ const loadPreviousConversations = async (store, sessionId) => {
20
20
  .limit(200)
21
21
  .toArray();
22
22
  // id hinzufügen, damit wir nicht zweimal die selbe meldung im state haben
23
- const messages = actionLogs.map((l) => Object.assign({}, l.message, {
24
- _id: l._id,
25
- reaction: l.reaction?.type || l.reaction, // TODO: handle reaction always as object
26
- }));
23
+ const messages = actionLogs.map((l) => {
24
+ return Object.assign({}, l.message, {
25
+ _id: l._id,
26
+ reaction: l.reaction
27
+ ? {
28
+ type: l.reaction.type || l.reaction,
29
+ category: l.reaction.category,
30
+ comment: l.reaction.comment,
31
+ }
32
+ : undefined, // TODO: handle reaction always as object
33
+ });
34
+ });
27
35
  return messages;
28
36
  };
29
37
  exports.default = loadPreviousConversations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.97.1",
3
+ "version": "4.97.3-alpha.0",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "dev:embed": "tsx --watch ./run-embed-local.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@botfabrik/engine-domain": "^4.97.0",
24
- "@botfabrik/engine-transcript-export": "^4.97.0",
25
- "@botfabrik/engine-utils": "^4.97.0",
23
+ "@botfabrik/engine-domain": "^4.97.3-alpha.0",
24
+ "@botfabrik/engine-transcript-export": "^4.97.3-alpha.0",
25
+ "@botfabrik/engine-utils": "^4.97.3-alpha.0",
26
26
  "@google-cloud/speech": "^7.2.0",
27
27
  "@node-saml/passport-saml": "^5.1.0",
28
28
  "accept-language-parser": "^1.5.0",
@@ -43,5 +43,5 @@
43
43
  "tsx": "^4.20.4",
44
44
  "typescript": "5.9.2"
45
45
  },
46
- "gitHead": "495f6071682390b2234e237f9baf59a1aa5b1631"
46
+ "gitHead": "7fce9f3f733fc11d9f97b3aa1d5c658e9f27f314"
47
47
  }