cmcts-c-agent-embedding 1.0.64-vib → 1.0.65-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/.env.example +34 -34
- package/.eslintrc.cjs +14 -14
- package/.prettierignore +3 -3
- package/.prettierrc +8 -8
- package/README.md +349 -349
- package/base.json +21 -21
- package/dist/components/Bot.d.ts.map +1 -1
- package/dist/components/bubbles/BotBubble.d.ts.map +1 -1
- package/dist/components/buttons/ConsultationButton.d.ts +13 -0
- package/dist/components/buttons/ConsultationButton.d.ts.map +1 -0
- package/dist/components/buttons/CopyMessageButton.d.ts +10 -0
- package/dist/components/buttons/CopyMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/EditMessageButton.d.ts +8 -0
- package/dist/components/buttons/EditMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/PopupToast.d.ts +7 -0
- package/dist/components/buttons/PopupToast.d.ts.map +1 -0
- package/dist/components/buttons/ZaloChatButton.d.ts +16 -0
- package/dist/components/buttons/ZaloChatButton.d.ts.map +1 -0
- package/dist/components/demo/ZaloChatDemo.d.ts +2 -0
- package/dist/components/demo/ZaloChatDemo.d.ts.map +1 -0
- package/dist/components/dialogs/EditMessageDialog.d.ts +9 -0
- package/dist/components/dialogs/EditMessageDialog.d.ts.map +1 -0
- package/dist/components/icons/CheckIcon.d.ts +3 -0
- package/dist/components/icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/CopyIcon.d.ts +5 -0
- package/dist/components/icons/CopyIcon.d.ts.map +1 -0
- package/dist/components/icons/EditIcon.d.ts +5 -0
- package/dist/components/icons/EditIcon.d.ts.map +1 -0
- package/dist/components/icons/SupportIcon.d.ts +3 -0
- package/dist/components/icons/SupportIcon.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/TextInput.d.ts +9 -1
- package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -1
- package/dist/components/modals/QuickChatModal.d.ts +10 -0
- package/dist/components/modals/QuickChatModal.d.ts.map +1 -0
- package/dist/components/modals/ZaloHybridWidget.d.ts +9 -0
- package/dist/components/modals/ZaloHybridWidget.d.ts.map +1 -0
- package/dist/components/modals/ZaloOfficialWidget.d.ts +12 -0
- package/dist/components/modals/ZaloOfficialWidget.d.ts.map +1 -0
- package/dist/components/modals/ZaloQRModal.d.ts +8 -0
- package/dist/components/modals/ZaloQRModal.d.ts.map +1 -0
- package/dist/components/modals/ZaloSmartWidget.d.ts +9 -0
- package/dist/components/modals/ZaloSmartWidget.d.ts.map +1 -0
- package/dist/components/modals/ZaloWebChatWidget.d.ts +9 -0
- package/dist/components/modals/ZaloWebChatWidget.d.ts.map +1 -0
- package/dist/components/quickchat/AlwaysOpenChat.d.ts +13 -0
- package/dist/components/quickchat/AlwaysOpenChat.d.ts.map +1 -0
- package/dist/components/quickchat/QuickChatButton.d.ts +10 -0
- package/dist/components/quickchat/QuickChatButton.d.ts.map +1 -0
- package/dist/components/quickchat/QuickChatConfig.d.ts +9 -0
- package/dist/components/quickchat/QuickChatConfig.d.ts.map +1 -0
- package/dist/components/quickchat/QuickChatPanel.d.ts +10 -0
- package/dist/components/quickchat/QuickChatPanel.d.ts.map +1 -0
- package/dist/components/quickchat/QuickChatWidget.d.ts +32 -0
- package/dist/components/quickchat/QuickChatWidget.d.ts.map +1 -0
- package/dist/components/quickchat/index.d.ts +7 -0
- package/dist/components/quickchat/index.d.ts.map +1 -0
- package/dist/utils/transcriptApi.d.ts +8 -0
- package/dist/utils/transcriptApi.d.ts.map +1 -0
- package/dist/web.js +1 -1
- package/package.json +79 -79
- package/public/index.html +46 -46
- package/server.js +401 -401
- package/.env +0 -5
package/.env.example
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
# ==============================================
|
|
2
|
-
# REQUIRED CONFIGURATION
|
|
3
|
-
# ==============================================
|
|
4
|
-
|
|
5
|
-
# API Host URL (required)
|
|
6
|
-
# This should be the URL where your Flowise instance is running
|
|
7
|
-
# Example: https://your-flowise-instance.com
|
|
8
|
-
API_HOST=
|
|
9
|
-
|
|
10
|
-
# Flowise API Key (required)
|
|
11
|
-
# Generate this from your Flowise instance settings page
|
|
12
|
-
# Example: OxxGE-h_LaH7ZYorStjTOik1XY999RxxoHpCSYl8BXxc
|
|
13
|
-
FLOWISE_API_KEY=
|
|
14
|
-
|
|
15
|
-
# ==============================================
|
|
16
|
-
# CHATFLOWS CONFIGURATION (required)
|
|
17
|
-
# ==============================================
|
|
18
|
-
|
|
19
|
-
# Format: [identifier]=[chatflowId],[allowedDomain1],[allowedDomain2],...
|
|
20
|
-
#
|
|
21
|
-
# Each entry consists of:
|
|
22
|
-
# - identifier: Any name you choose (e.g., agent1, support, salesbot)
|
|
23
|
-
# - chatflowId: The UUID of your Flowise chatflow
|
|
24
|
-
# - allowedDomains: Comma-separated list of domains where this chat can be embedded
|
|
25
|
-
# Note: Wildcard domains (*) are not supported for security reasons
|
|
26
|
-
#
|
|
27
|
-
# Examples:
|
|
28
|
-
# agent1=20db97c6-64c9-4411-bab4-7d6202171600,https://example1.com
|
|
29
|
-
# support=1c28f529-a70f-5001-9bc5-4f4c5d03d8c0,https://example2.com,https://another-example2.com
|
|
30
|
-
# salesbot=3db97c6-64c9-4411-bab4-7d620217160a,https://sales.example.com
|
|
31
|
-
|
|
32
|
-
# Add your chatflows below:
|
|
33
|
-
chatflow_1=
|
|
34
|
-
chatflow_2=
|
|
1
|
+
# ==============================================
|
|
2
|
+
# REQUIRED CONFIGURATION
|
|
3
|
+
# ==============================================
|
|
4
|
+
|
|
5
|
+
# API Host URL (required)
|
|
6
|
+
# This should be the URL where your Flowise instance is running
|
|
7
|
+
# Example: https://your-flowise-instance.com
|
|
8
|
+
API_HOST=
|
|
9
|
+
|
|
10
|
+
# Flowise API Key (required)
|
|
11
|
+
# Generate this from your Flowise instance settings page
|
|
12
|
+
# Example: OxxGE-h_LaH7ZYorStjTOik1XY999RxxoHpCSYl8BXxc
|
|
13
|
+
FLOWISE_API_KEY=
|
|
14
|
+
|
|
15
|
+
# ==============================================
|
|
16
|
+
# CHATFLOWS CONFIGURATION (required)
|
|
17
|
+
# ==============================================
|
|
18
|
+
|
|
19
|
+
# Format: [identifier]=[chatflowId],[allowedDomain1],[allowedDomain2],...
|
|
20
|
+
#
|
|
21
|
+
# Each entry consists of:
|
|
22
|
+
# - identifier: Any name you choose (e.g., agent1, support, salesbot)
|
|
23
|
+
# - chatflowId: The UUID of your Flowise chatflow
|
|
24
|
+
# - allowedDomains: Comma-separated list of domains where this chat can be embedded
|
|
25
|
+
# Note: Wildcard domains (*) are not supported for security reasons
|
|
26
|
+
#
|
|
27
|
+
# Examples:
|
|
28
|
+
# agent1=20db97c6-64c9-4411-bab4-7d6202171600,https://example1.com
|
|
29
|
+
# support=1c28f529-a70f-5001-9bc5-4f4c5d03d8c0,https://example2.com,https://another-example2.com
|
|
30
|
+
# salesbot=3db97c6-64c9-4411-bab4-7d620217160a,https://sales.example.com
|
|
31
|
+
|
|
32
|
+
# Add your chatflows below:
|
|
33
|
+
chatflow_1=
|
|
34
|
+
chatflow_2=
|
package/.eslintrc.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:solid/typescript'],
|
|
4
|
-
plugins: ['@typescript-eslint', 'solid'],
|
|
5
|
-
parser: '@typescript-eslint/parser',
|
|
6
|
-
ignorePatterns: ['**/*.md'],
|
|
7
|
-
rules: {
|
|
8
|
-
'@next/next/no-img-element': 'off',
|
|
9
|
-
'@next/next/no-html-link-for-pages': 'off',
|
|
10
|
-
'solid/no-innerhtml': 'off',
|
|
11
|
-
'@typescript-eslint/no-namespace': 'off',
|
|
12
|
-
'@typescript-eslint/no-explicit-any': 'off'
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:solid/typescript'],
|
|
4
|
+
plugins: ['@typescript-eslint', 'solid'],
|
|
5
|
+
parser: '@typescript-eslint/parser',
|
|
6
|
+
ignorePatterns: ['**/*.md'],
|
|
7
|
+
rules: {
|
|
8
|
+
'@next/next/no-img-element': 'off',
|
|
9
|
+
'@next/next/no-html-link-for-pages': 'off',
|
|
10
|
+
'solid/no-innerhtml': 'off',
|
|
11
|
+
'@typescript-eslint/no-namespace': 'off',
|
|
12
|
+
'@typescript-eslint/no-explicit-any': 'off'
|
|
13
|
+
}
|
|
14
|
+
}
|
package/.prettierignore
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
node_modules
|
|
2
|
-
build
|
|
3
|
-
dist
|
|
1
|
+
node_modules
|
|
2
|
+
build
|
|
3
|
+
dist
|
package/.prettierrc
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"semi": true,
|
|
3
|
-
"singleQuote": true,
|
|
4
|
-
"tabWidth": 2,
|
|
5
|
-
"trailingComma": "all",
|
|
6
|
-
"printWidth": 150,
|
|
7
|
-
"endOfLine": "lf"
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"semi": true,
|
|
3
|
+
"singleQuote": true,
|
|
4
|
+
"tabWidth": 2,
|
|
5
|
+
"trailingComma": "all",
|
|
6
|
+
"printWidth": 150,
|
|
7
|
+
"endOfLine": "lf"
|
|
8
|
+
}
|