thub-embed 9.1.2 → 9.1.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.
Files changed (43) hide show
  1. package/{.env.example → .env} +10 -9
  2. package/README.md +353 -342
  3. package/dist/components/Badge.d.ts.map +1 -1
  4. package/dist/components/Bot.d.ts +5 -1
  5. package/dist/components/Bot.d.ts.map +1 -1
  6. package/dist/components/bubbles/AgentReasoningBubble.d.ts +1 -1
  7. package/dist/components/bubbles/BotBubble.d.ts +1 -1
  8. package/dist/components/bubbles/GuestBubble.d.ts +1 -1
  9. package/dist/components/bubbles/LeadCaptureBubble.d.ts +1 -1
  10. package/dist/components/{SendButton.d.ts → buttons/CallButton.d.ts} +14 -12
  11. package/dist/components/buttons/CallButton.d.ts.map +1 -0
  12. package/dist/components/icons/CallIcon.d.ts +3 -0
  13. package/dist/components/icons/CallIcon.d.ts.map +1 -0
  14. package/dist/components/icons/IconPhoneCall.d.ts +3 -0
  15. package/dist/components/icons/IconPhoneCall.d.ts.map +1 -0
  16. package/dist/components/icons/IconPhoneOff.d.ts +3 -0
  17. package/dist/components/icons/IconPhoneOff.d.ts.map +1 -0
  18. package/dist/components/icons/index.d.ts +2 -0
  19. package/dist/components/icons/index.d.ts.map +1 -1
  20. package/dist/components/inputs/textInput/components/TextInput.d.ts +3 -0
  21. package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -1
  22. package/dist/features/bubble/components/Bubble.d.ts.map +1 -1
  23. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -1
  24. package/dist/features/bubble/types.d.ts +10 -0
  25. package/dist/features/bubble/types.d.ts.map +1 -1
  26. package/dist/features/full/components/Full.d.ts.map +1 -1
  27. package/dist/features/popup/components/DisclaimerPopup.d.ts +9 -0
  28. package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -1
  29. package/dist/queries/sendMessageQuery.d.ts +10 -10
  30. package/dist/utils/index.d.ts +3 -3
  31. package/dist/web.d.ts +2 -2
  32. package/dist/web.js +1 -1
  33. package/dist/web.umd.js +1 -0
  34. package/dist/window.d.ts +1 -1
  35. package/package.json +2 -1
  36. package/public/index.html +4 -4
  37. package/server.js +394 -402
  38. package/dist/components/ImageUploadButton.d.ts +0 -11
  39. package/dist/components/ImageUploadButton.d.ts.map +0 -1
  40. package/dist/components/RecordAudioButton.d.ts +0 -11
  41. package/dist/components/RecordAudioButton.d.ts.map +0 -1
  42. package/dist/components/SendButton.d.ts.map +0 -1
  43. package/images/proxyserver.png +0 -0
package/dist/window.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { observersConfigType } from './components/Bot';
2
2
  import { BubbleTheme } from './features/bubble/types';
3
3
  type BotProps = {
4
- chatflowid: string;
4
+ workflowid: string;
5
5
  apiHost?: string;
6
6
  onRequest?: (request: RequestInit) => Promise<void>;
7
7
  chatflowConfig?: Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thub-embed",
3
- "version": "9.1.2",
3
+ "version": "9.1.4",
4
4
  "description": "Javascript library to display THub chatbot on your website",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,6 +28,7 @@
28
28
  "express": "^4.21.1",
29
29
  "form-data": "^4.0.1",
30
30
  "lodash": "^4.17.21",
31
+ "microsoft-cognitiveservices-speech-sdk": "^1.42.0",
31
32
  "multer": "^1.4.5-lts.1",
32
33
  "node-fetch": "^3.3.2",
33
34
  "prettier": "^3.1.0",
package/public/index.html CHANGED
@@ -12,7 +12,7 @@
12
12
  <head>
13
13
  <meta charset="UTF-8">
14
14
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
15
- <title>THub Chatbot Widget</title>
15
+ <title>Flowise Chatbot Widget</title>
16
16
  </head>
17
17
 
18
18
  <body>
@@ -26,10 +26,10 @@
26
26
  // support=abc123-def456,https://example.com
27
27
  // salesbot=ghi123-jkl456,https://example.com
28
28
  //
29
- // Then use the environment variable name as chatflowid:
29
+ // Then use the environment variable name as workflowid:
30
30
  Chatbot.init({
31
- chatflowid: 'agent1', // or 'support', 'salesbot', etc.
32
- apiHost: window.location.origin
31
+ workflowid: "4e0bb2a5-cc69-4ba0-8cd1-6a5cc9f1b117",
32
+ apiHost: "http://localhost:3000",
33
33
  })
34
34
  </script>
35
35
  </body>