cmcts-c-agent-embedding 1.1.10-cmcuni → 1.1.11-cmcuni

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.1.10-cmcuni",
3
+ "version": "1.1.11-cmcuni",
4
4
  "description": "Javascript library to display flowise chatbot on your website",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -9,13 +9,14 @@
9
9
  "dev": "cross-env NODE_ENV=development rollup --watch --config rollup.config.js",
10
10
  "build": "cross-env NODE_ENV=production rollup --config rollup.config.js",
11
11
  "type-check": "tsc --noEmit",
12
- "lint": "eslint \"src/**/*.ts*\"",
13
- "lint-fix": "eslint --fix \"src/**/*.ts*\"",
12
+ "lint": "eslint --quiet \"src/**/*.ts*\"",
13
+ "lint-fix": "eslint --quiet --fix \"src/**/*.ts*\"",
14
14
  "format": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
15
15
  "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
16
16
  "prepare": "husky install",
17
17
  "start": "node server.js",
18
- "build-and-publish": "yarn build && npm publish"
18
+ "build-and-publish": "yarn build && npm publish",
19
+ "prepublishOnly": "yarn run build"
19
20
  },
20
21
  "license": "MIT",
21
22
  "dependencies": {
@@ -78,4 +79,4 @@
78
79
  "uuid": "^9.0.1"
79
80
  },
80
81
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
81
- }
82
+ }
package/public/index.html CHANGED
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  NOTE: This .html file (and public folder) is optional and can be safely deleted.
3
3
  It serves only as a demo/test page.
4
-
4
+
5
5
  The chatbot can be embedded directly on any allowed domain using the embed script that
6
6
  is generated when starting the server.
7
7
  -->
@@ -17,7 +17,7 @@
17
17
 
18
18
  <body>
19
19
  <div id="root">
20
- <flowise-fullchatbot></flowise-fullchatbot>
20
+ <!--<flowise-fullchatbot></flowise-fullchatbot>-->
21
21
  </div>
22
22
  <script type="module">
23
23
  import Chatbot from './web.js';
@@ -44,7 +44,7 @@
44
44
  // salesbot=ghi123-jkl456,https://example.com
45
45
  //
46
46
  // Then use the environment variable name as chatflowid:
47
- Chatbot.initFull({
47
+ Chatbot.init({
48
48
  // chatflowid: '6a63bb88-88f7-4c4d-805e-9c027c85707b', // or 'support', 'salesbot', etc.
49
49
  // chatflowid: 'b573e66d-0e28-4798-8e4f-fbbaff8e236f', // or 'support', 'salesbot', etc.
50
50
  // chatflowid: '7ee803b4-e3f8-4f33-bf85-ef9ab9d6f693', // or 'support', 'salesbot', etc.
@@ -59,4 +59,4 @@
59
59
  </script>
60
60
  </body>
61
61
 
62
- </html>
62
+ </html>