@coffer-org/plugin-webchat 3.1.0 → 4.0.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.
package/dist/web.js CHANGED
@@ -1,4 +1,4 @@
1
- import { definePluginUI } from "@coffer-org/web-sdk";
1
+ import { definePluginUI } from "@coffer-org/web-ui";
2
2
  //#region src/ui/ui.tsx
3
3
  /**
4
4
  * Web UI bundle of plugin-webchat. Federation loads this file only when the
@@ -11,7 +11,7 @@ import { definePluginUI } from "@coffer-org/web-sdk";
11
11
  var ui_default = definePluginUI({ slots: [{
12
12
  slot: "overlay",
13
13
  id: "webchat",
14
- load: () => import("./ChatWidget-Wxy33-Ei.js")
14
+ load: () => import("./ChatWidget-Bs8zrQVZ.js")
15
15
  }] });
16
16
  //#endregion
17
17
  export { ui_default as default };
@@ -0,0 +1,42 @@
1
+ {
2
+ "webchat": {
3
+ "plugin": {
4
+ "label": "Web chat",
5
+ "description": "In-browser chat with the agent."
6
+ },
7
+ "title": "Agent",
8
+ "open": "Open chat",
9
+ "close": "Close",
10
+ "expand": "Expand",
11
+ "collapse": "Collapse",
12
+ "newConversation": "New conversation",
13
+ "threads": "Conversations",
14
+ "empty": "No messages yet",
15
+ "suggestions": "Suggestions",
16
+ "placeholder": "Ask about your data…",
17
+ "send": "Send",
18
+ "stop": "Stop",
19
+ "attach": "Attach file",
20
+ "removeAttachment": "Remove {{name}}",
21
+ "uploading": "Uploading…",
22
+ "uploadProgress": "Upload progress",
23
+ "uploadTooLarge": "File is too large (maximum 25 MB).",
24
+ "uploadFailed": "Could not upload the file.",
25
+ "retryUpload": "Retry upload",
26
+ "dropFiles": "Drop files here",
27
+ "dropFilesHint": "The file will be attached to your next message",
28
+ "thinking": "Thinking…",
29
+ "error": "Error: {{message}}",
30
+ "reasoning": "Reasoning",
31
+ "agentPicker": "Agent and preset",
32
+ "level": "Level {{value}} of {{max}}",
33
+ "quality": "Quality {{value}} of 5",
34
+ "time": "Time {{value}} of 5",
35
+ "settings": {
36
+ "label": "Web chat",
37
+ "reasoning_display": "Reasoning display",
38
+ "reasoning_display_live": "Live block",
39
+ "reasoning_display_off": "Hidden"
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "webchat": {
3
+ "plugin": {
4
+ "label": "Чат на сайте",
5
+ "description": "Веб-чат для общения с агентом."
6
+ },
7
+ "title": "Агент",
8
+ "open": "Открыть чат",
9
+ "close": "Закрыть",
10
+ "expand": "Развернуть",
11
+ "collapse": "Свернуть",
12
+ "newConversation": "Новый разговор",
13
+ "threads": "Разговоры",
14
+ "empty": "Пока нет сообщений",
15
+ "suggestions": "Подсказки",
16
+ "placeholder": "Спроси о своих данных…",
17
+ "send": "Отправить",
18
+ "stop": "Стоп",
19
+ "attach": "Прикрепить файл",
20
+ "removeAttachment": "Удалить {{name}}",
21
+ "uploading": "Загрузка…",
22
+ "uploadProgress": "Прогресс загрузки",
23
+ "uploadTooLarge": "Файл слишком большой (максимум 25 МБ).",
24
+ "uploadFailed": "Не удалось загрузить файл.",
25
+ "retryUpload": "Повторить загрузку",
26
+ "dropFiles": "Перетащите файлы сюда",
27
+ "dropFilesHint": "Файл будет прикреплён к следующему сообщению",
28
+ "thinking": "Думает…",
29
+ "error": "Ошибка: {{message}}",
30
+ "reasoning": "Рассуждения",
31
+ "agentPicker": "Агент и пресет",
32
+ "level": "Уровень {{value}} из {{max}}",
33
+ "quality": "Качество {{value}} из 5",
34
+ "time": "Время {{value}} из 5",
35
+ "settings": {
36
+ "label": "Чат на сайте",
37
+ "reasoning_display": "Показ рассуждений",
38
+ "reasoning_display_live": "Живым блоком",
39
+ "reasoning_display_off": "Не показывать"
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "webchat": {
3
+ "plugin": {
4
+ "label": "Чат на сайті",
5
+ "description": "Вебчат для спілкування з агентом."
6
+ },
7
+ "title": "Агент",
8
+ "open": "Відкрити чат",
9
+ "close": "Закрити",
10
+ "expand": "Розгорнути",
11
+ "collapse": "Згорнути",
12
+ "newConversation": "Нова розмова",
13
+ "threads": "Розмови",
14
+ "empty": "Ще немає повідомлень",
15
+ "suggestions": "Підказки",
16
+ "placeholder": "Запитай про свої дані…",
17
+ "send": "Надіслати",
18
+ "stop": "Стоп",
19
+ "attach": "Додати файл",
20
+ "removeAttachment": "Видалити {{name}}",
21
+ "uploading": "Завантаження…",
22
+ "uploadProgress": "Прогрес завантаження",
23
+ "uploadTooLarge": "Файл завеликий (максимум 25 МБ).",
24
+ "uploadFailed": "Не вдалося завантажити файл.",
25
+ "retryUpload": "Повторити завантаження",
26
+ "dropFiles": "Перетягніть файли сюди",
27
+ "dropFilesHint": "Файл буде додано до наступного повідомлення",
28
+ "thinking": "Думає…",
29
+ "error": "Помилка: {{message}}",
30
+ "reasoning": "Міркування",
31
+ "agentPicker": "Агент і пресет",
32
+ "level": "Рівень {{value}} з {{max}}",
33
+ "quality": "Якість {{value}} з 5",
34
+ "time": "Час {{value}} з 5",
35
+ "settings": {
36
+ "label": "Чат на сайті",
37
+ "reasoning_display": "Показ міркувань",
38
+ "reasoning_display_live": "Живим блоком",
39
+ "reasoning_display_off": "Не показувати"
40
+ }
41
+ }
42
+ }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@coffer-org/plugin-webchat",
3
- "version": "3.1.0",
3
+ "version": "4.0.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24"
7
7
  },
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "locales"
10
11
  ],
11
12
  "exports": {
12
13
  ".": {
@@ -26,13 +27,14 @@
26
27
  "test:ui": "vitest run --root ."
27
28
  },
28
29
  "dependencies": {
29
- "@coffer-org/plugin-orchestrator": "^3.1.0",
30
- "@coffer-org/sdk": "^3.0.0",
31
- "@coffer-org/server": "^3.0.0",
30
+ "@coffer-org/sdk": "^4.0.0",
31
+ "@coffer-org/server": "^4.0.0",
32
+ "lucide-react": "^1.17.0",
32
33
  "react-markdown": "^10.1.0",
33
34
  "remark-gfm": "^4.0.1"
34
35
  },
35
36
  "coffer": {
37
+ "runtime": "node",
36
38
  "schema": "dist/schema.js"
37
39
  }
38
40
  }