@smart-cloud/ai-kit-ui 1.3.0 → 1.3.3

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/src/i18n/ua.ts CHANGED
@@ -20,6 +20,9 @@ export const uaDict: Record<string, string> = {
20
20
  "Ask me": "Запитайте мене",
21
21
  Assistant: "Асистент",
22
22
  "Assistant is thinking…": "Асистент думає…",
23
+ "Audio message": "Аудіоповідомлення",
24
+ "Audio no longer available": "Аудіо більше недоступне",
25
+ "Audio recorded": "Аудіо записано",
23
26
  auto: "авто",
24
27
  "Auto-detect": "Автоматичне визначення",
25
28
  Cancel: "Скасувати",
@@ -28,6 +31,8 @@ export const uaDict: Record<string, string> = {
28
31
  casual: "повсякденний",
29
32
  "Checking capabilities…": "Перевірка можливостей…",
30
33
  Chinese: "китайська",
34
+ Clear: "Очистити",
35
+ "Clear audio": "Очистити аудіо",
31
36
  "Click again to confirm": "Натисніть ще раз, щоб підтвердити",
32
37
  Close: "Закрити",
33
38
  "Close chat": "Закрити чат",
@@ -72,6 +77,7 @@ export const uaDict: Record<string, string> = {
72
77
  HTML: "HTML",
73
78
  Hungarian: "Угорська",
74
79
  "I'm ready to assist you.": "Я готовий допомогти вам.",
80
+ "Image no longer available": "Зображення більше недоступне",
75
81
  Indonesian: "Індонезійська",
76
82
  "Initializing on-device AI…": "Ініціалізація штучного інтелекту на пристрої…",
77
83
  "Inlining images as base64": "Вбудовування зображень як base64",
@@ -123,6 +129,9 @@ export const uaDict: Record<string, string> = {
123
129
  "Ready.": "Готово.",
124
130
  "Received backend response.": "Отримано відповідь від сервера.",
125
131
  "Receiving response...": "Отримання відповіді...",
132
+ Record: "Записати",
133
+ "Record audio": "Записати аудіо",
134
+ "Recording...": "Запис...",
126
135
  Reference: "Посилання",
127
136
  References: "Посилання",
128
137
  Regenerate: "Регенерувати",
@@ -156,6 +165,7 @@ export const uaDict: Record<string, string> = {
156
165
  Sources: "Джерела",
157
166
  Spanish: "Іспанська",
158
167
  Stop: "СТІЙ",
168
+ "Stop recording": "Зупинити запис",
159
169
  "Suggested change": "Запропонована зміна",
160
170
  Summarize: "Підсумувати",
161
171
  "Summarize again": "Підсумуйте ще раз",
package/src/i18n/zh.ts CHANGED
@@ -18,6 +18,9 @@ export const zhDict: Record<string, string> = {
18
18
  "Ask me": "问我",
19
19
  Assistant: "助手",
20
20
  "Assistant is thinking…": "助手正在思考……",
21
+ "Audio message": "语音消息",
22
+ "Audio no longer available": "音频已不可用",
23
+ "Audio recorded": "音频已录制",
21
24
  auto: "汽车",
22
25
  "Auto-detect": "自动检测",
23
26
  Cancel: "取消",
@@ -26,6 +29,8 @@ export const zhDict: Record<string, string> = {
26
29
  casual: "随意的",
27
30
  "Checking capabilities…": "正在检查功能……",
28
31
  Chinese: "中国人",
32
+ Clear: "清除",
33
+ "Clear audio": "清除音频",
29
34
  "Click again to confirm": "再次点击以确认",
30
35
  Close: "关闭",
31
36
  "Close chat": "关闭聊天",
@@ -69,6 +74,7 @@ export const zhDict: Record<string, string> = {
69
74
  HTML: "HTML",
70
75
  Hungarian: "匈牙利",
71
76
  "I'm ready to assist you.": "我已准备好为你提供帮助。",
77
+ "Image no longer available": "图片已不可用",
72
78
  Indonesian: "印度尼西亚",
73
79
  "Initializing on-device AI…": "正在初始化设备端人工智能……",
74
80
  "Inlining images as base64": "将图像内联为 base64 格式",
@@ -119,6 +125,9 @@ export const zhDict: Record<string, string> = {
119
125
  "Ready.": "就绪。",
120
126
  "Received backend response.": "已收到后端响应。",
121
127
  "Receiving response...": "正在接收响应...",
128
+ Record: "录制",
129
+ "Record audio": "录制音频",
130
+ "Recording...": "录制中...",
122
131
  Reference: "参考",
123
132
  References: "参考资料",
124
133
  Regenerate: "再生",
@@ -152,6 +161,7 @@ export const zhDict: Record<string, string> = {
152
161
  Sources: "来源",
153
162
  Spanish: "西班牙语",
154
163
  Stop: "停止",
164
+ "Stop recording": "停止录制",
155
165
  "Suggested change": "建议的更改",
156
166
  Summarize: "总结",
157
167
  "Summarize again": "再次总结",
@@ -903,3 +903,55 @@
903
903
  transform: translateY(-4px);
904
904
  }
905
905
  }
906
+
907
+ /* Audio recording pulse animation */
908
+ @keyframes pulse {
909
+ 0% {
910
+ opacity: 1;
911
+ transform: scale(1);
912
+ }
913
+ 50% {
914
+ opacity: 0.7;
915
+ transform: scale(1.05);
916
+ }
917
+ 100% {
918
+ opacity: 1;
919
+ transform: scale(1);
920
+ }
921
+ }
922
+
923
+ /* Recording pulse button animation */
924
+ .recording-pulse {
925
+ animation: pulse 1.5s ease-in-out infinite !important;
926
+ }
927
+
928
+ /* Audio player styling */
929
+ .ai-kit-audio-player {
930
+ max-width: 100%;
931
+ max-height: 40px;
932
+ border-radius: var(--ai-kit-radius, 4px);
933
+ outline: none;
934
+ background: transparent;
935
+ border: none;
936
+ }
937
+
938
+ .ai-kit-audio-player::-webkit-media-controls-panel {
939
+ background: var(--ai-kit-color-surface-3, rgba(0, 0, 0, 0.03));
940
+ border: 1px solid var(--ai-kit-color-border, rgba(0, 0, 0, 0.12));
941
+ border-radius: var(--ai-kit-radius, 4px);
942
+ }
943
+
944
+ .ai-kit-audio-player::-webkit-media-controls-play-button,
945
+ .ai-kit-audio-player::-webkit-media-controls-mute-button {
946
+ background-color: transparent;
947
+ border-radius: 2px;
948
+ }
949
+
950
+ .ai-kit-audio-player::-webkit-media-controls-timeline {
951
+ border-radius: 2px;
952
+ }
953
+
954
+ .ai-kit-audio-player::-webkit-media-controls-current-time-display,
955
+ .ai-kit-audio-player::-webkit-media-controls-time-remaining-display {
956
+ border-radius: 0;
957
+ }