cmcts-c-agent-embedding 1.0.56-vib → 1.0.57-vib

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmcts-c-agent-embedding",
3
- "version": "1.0.56-vib",
3
+ "version": "1.0.57-vib",
4
4
  "description": "Javascript library to display flowise chatbot on your website",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/public/index.html CHANGED
@@ -16,26 +16,11 @@
16
16
 
17
17
  <body>
18
18
  <div id="root">
19
- <!-- <flowise-fullchatbot></flowise-fullchatbot>-->
19
+ <!-- <flowise-fullchatbot></flowise-fullchatbot>-->
20
20
  </div>
21
21
  <script type="module">
22
22
  import Chatbot from './web.js';
23
23
 
24
- const customStringify = (obj) => {
25
- let stringified = JSON.stringify(obj, null, 4)
26
- .replace(/"([^"]+)":/g, '$1:')
27
- .replace(/: "([^"]+)"/g, (match, value) => (value.includes('<') ? `: "${value}"` : `: '${value}'`))
28
- .replace(/: "(true|false|\d+)"/g, ': $1')
29
- .replace(/customCSS: ""/g, 'customCSS: ``');
30
- return stringified
31
- .split('\n')
32
- .map((line, index) => {
33
- if (index === 0) return line;
34
- return ' '.repeat(8) + line;
35
- })
36
- .join('\n');
37
- };
38
-
39
24
  // Example initialization:
40
25
  // If your .env contains:
41
26
  // agent1=xyz789-uvw456,https://example.com