@ray-js/t-agent-ui-ray 0.2.3-beta-2 → 0.2.3-beta-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.
- package/dist/LazyScrollView/LazyItem/index.d.ts +0 -1
- package/dist/LazyScrollView/LazyItem/index.js +6 -12
- package/dist/LazyScrollView/LazyItem/index.tyml +7 -7
- package/dist/LazyScrollView/get-visible-items.sjs +53 -0
- package/dist/LazyScrollView/index.d.ts +1 -0
- package/dist/LazyScrollView/index.js +18 -1
- package/dist/LazyScrollView/index.tyml +2 -0
- package/dist/LazyScrollView/lazy-item-context.sjs +90 -0
- package/dist/LazyScrollView/lazy-scroll-view.sjs +20 -256
- package/dist/LazyScrollView/ordered-list.sjs +57 -0
- package/dist/LazyScrollView/scroll-view-context.sjs +237 -0
- package/dist/MessageActionBar/back.svg +1 -0
- package/dist/MessageActionBar/delete.svg +1 -0
- package/dist/MessageActionBar/index.d.ts +4 -0
- package/dist/MessageActionBar/index.js +79 -0
- package/dist/MessageActionBar/index.less +68 -0
- package/dist/MessageInput/MessageInputAIStream/index.js +4 -3
- package/dist/MessageInput/MessageInputAssistant/asr.d.ts +30 -0
- package/dist/MessageInput/MessageInputAssistant/asr.js +126 -0
- package/dist/MessageInput/MessageInputAssistant/index.js +5 -2
- package/dist/MessageInput/MessageInputAssistant/useAsrInput.js +1 -1
- package/dist/MessageList/PartRender.d.ts +15 -0
- package/dist/MessageList/PartRender.js +25 -0
- package/dist/MessageList/ScrollBottomView.d.ts +1 -0
- package/dist/MessageList/ScrollBottomView.js +4 -0
- package/dist/MessageList/index.d.ts +3 -5
- package/dist/MessageList/index.js +30 -47
- package/dist/MessageList/index.less +2 -22
- package/dist/MessageRender/index.d.ts +1 -2
- package/dist/MessageRender/index.js +0 -4
- package/dist/hooks/context.js +0 -1
- package/dist/hooks/useLongPress.js +1 -1
- package/dist/i18n/strings.d.ts +48 -16
- package/dist/i18n/strings.js +48 -16
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/utils/abort.d.ts +38 -0
- package/dist/utils/abort.js +177 -0
- package/dist/utils/ttt.d.ts +98 -0
- package/dist/utils/ttt.js +54 -0
- package/package.json +2 -2
- package/dist/LazyScrollView/weak-ref.sjs +0 -45
|
@@ -114,6 +114,10 @@ const ScrollBottomView = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
114
114
|
hideScrollbar: props.hideScrollbar || false,
|
|
115
115
|
bindscroll: scrollViewProps.bindscroll,
|
|
116
116
|
binddone: scrollViewProps.binddone,
|
|
117
|
+
bindchanged: event => {
|
|
118
|
+
var _props$onChanged;
|
|
119
|
+
return (_props$onChanged = props.onChanged) === null || _props$onChanged === void 0 ? void 0 : _props$onChanged.call(props, event.detail.changes);
|
|
120
|
+
},
|
|
117
121
|
scrollViewId: scrollViewProps.scrollViewId,
|
|
118
122
|
scrollWithAnimation: scrollViewProps.scrollWithAnimation,
|
|
119
123
|
scrollIntoView: scrollViewProps.scrollIntoView
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import './index.less';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
notifyHeightChanged: () => void;
|
|
5
|
-
}
|
|
3
|
+
import { RenderPart } from './PartRender';
|
|
6
4
|
interface Props {
|
|
7
5
|
className?: string;
|
|
8
6
|
style?: React.CSSProperties;
|
|
9
7
|
wrapperClassName?: string;
|
|
10
8
|
wrapperStyle?: React.CSSProperties;
|
|
11
|
-
renderTop?:
|
|
12
|
-
renderBottom?:
|
|
9
|
+
renderTop?: RenderPart;
|
|
10
|
+
renderBottom?: RenderPart;
|
|
13
11
|
onScroll?: (event: any) => void;
|
|
14
12
|
hideScrollbar?: boolean;
|
|
15
13
|
roleSide?: {
|
|
@@ -10,8 +10,8 @@ import ScrollBottomView from './ScrollBottomView';
|
|
|
10
10
|
import { useStableCallback } from '../hooks/useStableCallback';
|
|
11
11
|
import { createResolvable, objectsId } from '../utils/object';
|
|
12
12
|
import { generateId } from '@ray-js/t-agent';
|
|
13
|
-
import LazyItem from '../LazyScrollView/LazyItem';
|
|
14
13
|
import { useSleep } from '../hooks/useSleep';
|
|
14
|
+
import { PartRender } from './PartRender';
|
|
15
15
|
const MessageList = props => {
|
|
16
16
|
const {
|
|
17
17
|
className,
|
|
@@ -46,33 +46,27 @@ const MessageList = props => {
|
|
|
46
46
|
const notifyHeightChanged = useStableCallback(() => {
|
|
47
47
|
setTick("".concat(Math.random()));
|
|
48
48
|
});
|
|
49
|
-
const [tickTop, setTickTop] = useState(() => "".concat(Math.random()));
|
|
50
|
-
const notifyHeightChangedTop = useStableCallback(() => {
|
|
51
|
-
notifyHeightChanged();
|
|
52
|
-
setTickTop("".concat(Math.random()));
|
|
53
|
-
});
|
|
54
|
-
const [tickBottom, setTickBottom] = useState(() => "".concat(Math.random()));
|
|
55
|
-
const notifyHeightChangedEnd = useStableCallback(() => {
|
|
56
|
-
notifyHeightChanged();
|
|
57
|
-
setTickBottom("".concat(Math.random()));
|
|
58
|
-
});
|
|
59
49
|
const showMapRef = useRef({
|
|
60
50
|
map: {},
|
|
61
51
|
pending: false
|
|
62
52
|
});
|
|
63
|
-
const [,
|
|
53
|
+
const [showMap, setShowMap] = useState(null);
|
|
64
54
|
const sleep = useSleep();
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
const onChanged = useStableCallback(changes => {
|
|
56
|
+
showMapRef.current.map = changes;
|
|
57
|
+
if (showMapRef.current.pending) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
showMapRef.current.pending = true;
|
|
61
|
+
sleep(100).then(() => {
|
|
62
|
+
showMapRef.current.pending = false;
|
|
63
|
+
setShowMap(showMapRef.current.map);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
71
66
|
return /*#__PURE__*/React.createElement(View, {
|
|
72
67
|
className: "t-agent-message-list ".concat(wrapperClassName || ''),
|
|
73
68
|
"data-testid": "t-agent-message-list",
|
|
74
|
-
style: wrapperStyle
|
|
75
|
-
id: "message-list"
|
|
69
|
+
style: wrapperStyle
|
|
76
70
|
}, /*#__PURE__*/React.createElement(ScrollBottomView, {
|
|
77
71
|
tick: tick,
|
|
78
72
|
scrollViewId: scrollViewId,
|
|
@@ -82,22 +76,24 @@ const MessageList = props => {
|
|
|
82
76
|
style: style,
|
|
83
77
|
onScroll: onScroll,
|
|
84
78
|
hideScrollbar: hideScrollbar,
|
|
85
|
-
loadedPromise: ref.current.loaded.promise
|
|
86
|
-
|
|
79
|
+
loadedPromise: ref.current.loaded.promise,
|
|
80
|
+
onChanged: onChanged
|
|
81
|
+
}, /*#__PURE__*/React.createElement(PartRender, {
|
|
87
82
|
scrollViewId: scrollViewId,
|
|
83
|
+
notifyHeightChanged: notifyHeightChanged,
|
|
84
|
+
index: 0,
|
|
88
85
|
itemId: "".concat(scrollViewId, "-top"),
|
|
89
86
|
key: "".concat(scrollViewId, "-top"),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
index: 0
|
|
93
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
94
|
-
className: "t-agent-message-list-padding-start"
|
|
95
|
-
}), top), messages.map((msg, index) => {
|
|
87
|
+
show: showMap == null ? true : !!showMap["".concat(scrollViewId, "-top")]
|
|
88
|
+
}, props.renderTop), messages.map((msg, index) => {
|
|
96
89
|
let side = roleSide === null || roleSide === void 0 ? void 0 : roleSide[msg.role];
|
|
97
90
|
if (!side) {
|
|
98
91
|
side = msg.role === 'user' ? 'end' : 'start';
|
|
99
92
|
}
|
|
100
93
|
const isLatestMessage = index === messages.length - 1;
|
|
94
|
+
|
|
95
|
+
// 保证最下面一屏(10条)消息一直展示,这样回到最底层时不会有白屏
|
|
96
|
+
const isLastScreen = index >= messages.length - 10;
|
|
101
97
|
return /*#__PURE__*/React.createElement(MessageRender, {
|
|
102
98
|
showSelect: showSelect,
|
|
103
99
|
key: msg.id,
|
|
@@ -107,28 +103,15 @@ const MessageList = props => {
|
|
|
107
103
|
notifyHeightChanged: notifyHeightChanged,
|
|
108
104
|
scrollViewId: scrollViewId,
|
|
109
105
|
index: index + 1,
|
|
110
|
-
show:
|
|
111
|
-
onShowChange: show => {
|
|
112
|
-
showMapRef.current.map[msg.id] = show;
|
|
113
|
-
if (showMapRef.current.pending) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
showMapRef.current.pending = true;
|
|
117
|
-
sleep(100).then(() => {
|
|
118
|
-
showMapRef.current.pending = false;
|
|
119
|
-
forceUpdate(Math.random());
|
|
120
|
-
});
|
|
121
|
-
}
|
|
106
|
+
show: showMap == null || isLastScreen ? true : !!showMap[msg.id]
|
|
122
107
|
});
|
|
123
|
-
}), /*#__PURE__*/React.createElement(
|
|
108
|
+
}), /*#__PURE__*/React.createElement(PartRender, {
|
|
124
109
|
scrollViewId: scrollViewId,
|
|
110
|
+
notifyHeightChanged: notifyHeightChanged,
|
|
111
|
+
index: messages.length + 1,
|
|
125
112
|
itemId: "".concat(scrollViewId, "-bottom"),
|
|
126
113
|
key: "".concat(scrollViewId, "-bottom"),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
index: messages.length + 1
|
|
130
|
-
}, bottom, /*#__PURE__*/React.createElement(View, {
|
|
131
|
-
className: "t-agent-message-list-padding"
|
|
132
|
-
}))));
|
|
114
|
+
show: true
|
|
115
|
+
}, props.renderBottom)));
|
|
133
116
|
};
|
|
134
117
|
export default MessageList;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.t-agent-message-list {
|
|
2
2
|
flex: 1;
|
|
3
|
-
overflow
|
|
4
|
-
overflow-x: hidden;
|
|
3
|
+
overflow: hidden;
|
|
5
4
|
position: relative;
|
|
6
5
|
background: var(--app-B1);
|
|
7
6
|
}
|
|
@@ -12,28 +11,9 @@
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
.t-agent-message-list-scroll-content {
|
|
15
|
-
padding:
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.t-agent-message-list-block {
|
|
19
|
-
border: 2rpx solid green;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.t-agent-message-list-padding-start {
|
|
23
|
-
height: 16rpx;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.t-agent-message-list-padding {
|
|
14
|
+
padding: 16rpx 32rpx 0;
|
|
27
15
|
}
|
|
28
16
|
|
|
29
17
|
.t-agent-message-list-loading {
|
|
30
18
|
opacity: 0;
|
|
31
19
|
}
|
|
32
|
-
|
|
33
|
-
.t-agent-message-list-history-tip {
|
|
34
|
-
width: 100%;
|
|
35
|
-
text-align: center;
|
|
36
|
-
padding: 20rpx 0;
|
|
37
|
-
font-size: 24rpx;
|
|
38
|
-
color: var(--app-F3, #999);
|
|
39
|
-
}
|
|
@@ -9,8 +9,7 @@ interface Props {
|
|
|
9
9
|
notifyHeightChanged: () => void;
|
|
10
10
|
scrollViewId?: string;
|
|
11
11
|
index: number;
|
|
12
|
-
onShowChange?: (show: boolean) => void;
|
|
13
12
|
show?: boolean;
|
|
14
13
|
}
|
|
15
|
-
export default function MessageRender({ message, isLatestMessage, side, showSelect, notifyHeightChanged, scrollViewId, index,
|
|
14
|
+
export default function MessageRender({ message, isLatestMessage, side, showSelect, notifyHeightChanged, scrollViewId, index, show, }: Props): React.JSX.Element;
|
|
16
15
|
export {};
|
|
@@ -20,7 +20,6 @@ export default function MessageRender(_ref) {
|
|
|
20
20
|
notifyHeightChanged,
|
|
21
21
|
scrollViewId = '',
|
|
22
22
|
index,
|
|
23
|
-
onShowChange,
|
|
24
23
|
show = true
|
|
25
24
|
} = _ref;
|
|
26
25
|
const {
|
|
@@ -85,9 +84,6 @@ export default function MessageRender(_ref) {
|
|
|
85
84
|
className: "t-agent-message-list-row-container",
|
|
86
85
|
update: tick,
|
|
87
86
|
scrollViewId: scrollViewId,
|
|
88
|
-
bindshow: event => {
|
|
89
|
-
onShowChange === null || onShowChange === void 0 || onShowChange(event.detail.show);
|
|
90
|
-
},
|
|
91
87
|
ready: message.status === ChatMessageStatus.FINISH,
|
|
92
88
|
bindclick: () => {
|
|
93
89
|
if (showSelect) {
|
package/dist/hooks/context.js
CHANGED
|
@@ -82,7 +82,7 @@ export function useLongPress() {
|
|
|
82
82
|
case 'multiSelect':
|
|
83
83
|
menuItems.push({
|
|
84
84
|
key: 'multiSelect',
|
|
85
|
-
label: t('t-agent.message.action.
|
|
85
|
+
label: t('t-agent.message.action.multi-select'),
|
|
86
86
|
action: () => {
|
|
87
87
|
agent.session.set('UIRay.multiSelect.show', !agent.session.get('UIRay.multiSelect.show'));
|
|
88
88
|
}
|
package/dist/i18n/strings.d.ts
CHANGED
|
@@ -28,13 +28,17 @@ declare const _default: {
|
|
|
28
28
|
't-agent.message.bubble.aborted': string;
|
|
29
29
|
't-agent.message.action.copy': string;
|
|
30
30
|
't-agent.message.action.delete': string;
|
|
31
|
-
't-agent.message.action.
|
|
32
|
-
't-agent.message.action.multiSelect': string;
|
|
31
|
+
't-agent.message.action.multi-select': string;
|
|
33
32
|
't-agent.message.like.success': string;
|
|
34
33
|
't-agent.message.unlike.success': string;
|
|
35
34
|
't-agent.message.action.like': string;
|
|
36
35
|
't-agent.message.action.unlike': string;
|
|
37
36
|
't-agent.message.delete.title': string;
|
|
37
|
+
't-agent.message.clear-history.title': string;
|
|
38
|
+
't-agent.message.clear-history.button': string;
|
|
39
|
+
't-agent.message.clear-history.content': string;
|
|
40
|
+
't-agent.message.multi-select-delete.title': string;
|
|
41
|
+
't-agent.message.multi-select-delete.content': string;
|
|
38
42
|
't-agent.message.delete.content': string;
|
|
39
43
|
't-agent.message.delete.confirm': string;
|
|
40
44
|
't-agent.message.delete.cancel': string;
|
|
@@ -114,12 +118,16 @@ declare const _default: {
|
|
|
114
118
|
't-agent.message.bubble.aborted': string;
|
|
115
119
|
't-agent.message.action.copy': string;
|
|
116
120
|
't-agent.message.action.delete': string;
|
|
117
|
-
't-agent.message.action.deleteByChannel': string;
|
|
118
121
|
't-agent.message.like.success': string;
|
|
119
122
|
't-agent.message.unlike.success': string;
|
|
120
123
|
't-agent.message.action.like': string;
|
|
121
124
|
't-agent.message.action.unlike': string;
|
|
122
125
|
't-agent.message.delete.title': string;
|
|
126
|
+
't-agent.message.clear-history.title': string;
|
|
127
|
+
't-agent.message.clear-history.button': string;
|
|
128
|
+
't-agent.message.clear-history.content': string;
|
|
129
|
+
't-agent.message.multi-select-delete.title': string;
|
|
130
|
+
't-agent.message.multi-select-delete.content': string;
|
|
123
131
|
't-agent.message.delete.content': string;
|
|
124
132
|
't-agent.message.delete.confirm': string;
|
|
125
133
|
't-agent.message.delete.cancel': string;
|
|
@@ -162,7 +170,7 @@ declare const _default: {
|
|
|
162
170
|
't-agent.input.asr.error.empty': string;
|
|
163
171
|
't-agent.input.asr.error.unknown': string;
|
|
164
172
|
't-agent.input.asr.error.timeout': string;
|
|
165
|
-
't-agent.message.action.
|
|
173
|
+
't-agent.message.action.multi-select': string;
|
|
166
174
|
't-agent.input.upload.source-type.camera': string;
|
|
167
175
|
't-agent.input.upload.source-type.camera.require-permission': string;
|
|
168
176
|
't-agent.input.upload.source-type.album': string;
|
|
@@ -214,13 +222,17 @@ declare const _default: {
|
|
|
214
222
|
't-agent.message.bubble.aborted': string;
|
|
215
223
|
't-agent.message.action.copy': string;
|
|
216
224
|
't-agent.message.action.delete': string;
|
|
217
|
-
't-agent.message.action.
|
|
218
|
-
't-agent.message.action.multiSelect': string;
|
|
225
|
+
't-agent.message.action.multi-select': string;
|
|
219
226
|
't-agent.message.like.success': string;
|
|
220
227
|
't-agent.message.unlike.success': string;
|
|
221
228
|
't-agent.message.action.like': string;
|
|
222
229
|
't-agent.message.action.unlike': string;
|
|
223
230
|
't-agent.message.delete.title': string;
|
|
231
|
+
't-agent.message.clear-history.title': string;
|
|
232
|
+
't-agent.message.clear-history.button': string;
|
|
233
|
+
't-agent.message.clear-history.content': string;
|
|
234
|
+
't-agent.message.multi-select-delete.title': string;
|
|
235
|
+
't-agent.message.multi-select-delete.content': string;
|
|
224
236
|
't-agent.message.delete.content': string;
|
|
225
237
|
't-agent.message.delete.confirm': string;
|
|
226
238
|
't-agent.message.delete.cancel': string;
|
|
@@ -299,12 +311,16 @@ declare const _default: {
|
|
|
299
311
|
't-agent.message.bubble.aborted': string;
|
|
300
312
|
't-agent.message.action.copy': string;
|
|
301
313
|
't-agent.message.action.delete': string;
|
|
302
|
-
't-agent.message.action.deleteByChannel': string;
|
|
303
314
|
't-agent.message.like.success': string;
|
|
304
315
|
't-agent.message.unlike.success': string;
|
|
305
316
|
't-agent.message.action.like': string;
|
|
306
317
|
't-agent.message.action.unlike': string;
|
|
307
318
|
't-agent.message.delete.title': string;
|
|
319
|
+
't-agent.message.clear-history.title': string;
|
|
320
|
+
't-agent.message.clear-history.button': string;
|
|
321
|
+
't-agent.message.clear-history.content': string;
|
|
322
|
+
't-agent.message.multi-select-delete.title': string;
|
|
323
|
+
't-agent.message.multi-select-delete.content': string;
|
|
308
324
|
't-agent.message.delete.content': string;
|
|
309
325
|
't-agent.message.delete.confirm': string;
|
|
310
326
|
't-agent.message.delete.cancel': string;
|
|
@@ -347,7 +363,7 @@ declare const _default: {
|
|
|
347
363
|
't-agent.input.asr.error.empty': string;
|
|
348
364
|
't-agent.input.asr.error.unknown': string;
|
|
349
365
|
't-agent.input.asr.error.timeout': string;
|
|
350
|
-
't-agent.message.action.
|
|
366
|
+
't-agent.message.action.multi-select': string;
|
|
351
367
|
't-agent.input.upload.source-type.camera': string;
|
|
352
368
|
't-agent.input.upload.source-type.camera.require-permission': string;
|
|
353
369
|
't-agent.input.upload.source-type.album': string;
|
|
@@ -392,12 +408,16 @@ declare const _default: {
|
|
|
392
408
|
't-agent.message.bubble.aborted': string;
|
|
393
409
|
't-agent.message.action.copy': string;
|
|
394
410
|
't-agent.message.action.delete': string;
|
|
395
|
-
't-agent.message.action.deleteByChannel': string;
|
|
396
411
|
't-agent.message.like.success': string;
|
|
397
412
|
't-agent.message.unlike.success': string;
|
|
398
413
|
't-agent.message.action.like': string;
|
|
399
414
|
't-agent.message.action.unlike': string;
|
|
400
415
|
't-agent.message.delete.title': string;
|
|
416
|
+
't-agent.message.delete.button': string;
|
|
417
|
+
't-agent.message.clear-history.title': string;
|
|
418
|
+
't-agent.message.clear-history.content': string;
|
|
419
|
+
't-agent.message.multi-select-delete.title': string;
|
|
420
|
+
't-agent.message.multi-select-delete.content': string;
|
|
401
421
|
't-agent.message.delete.content': string;
|
|
402
422
|
't-agent.message.delete.success': string;
|
|
403
423
|
't-agent.message.delete.confirm': string;
|
|
@@ -440,7 +460,7 @@ declare const _default: {
|
|
|
440
460
|
't-agent.input.asr.error.empty': string;
|
|
441
461
|
't-agent.input.asr.error.unknown': string;
|
|
442
462
|
't-agent.input.asr.error.timeout': string;
|
|
443
|
-
't-agent.message.action.
|
|
463
|
+
't-agent.message.action.multi-select': string;
|
|
444
464
|
't-agent.input.upload.source-type.camera': string;
|
|
445
465
|
't-agent.input.upload.source-type.camera.require-permission': string;
|
|
446
466
|
't-agent.input.upload.source-type.album': string;
|
|
@@ -485,12 +505,16 @@ declare const _default: {
|
|
|
485
505
|
't-agent.message.bubble.aborted': string;
|
|
486
506
|
't-agent.message.action.copy': string;
|
|
487
507
|
't-agent.message.action.delete': string;
|
|
488
|
-
't-agent.message.action.deleteByChannel': string;
|
|
489
508
|
't-agent.message.like.success': string;
|
|
490
509
|
't-agent.message.unlike.success': string;
|
|
491
510
|
't-agent.message.action.like': string;
|
|
492
511
|
't-agent.message.action.unlike': string;
|
|
493
512
|
't-agent.message.delete.title': string;
|
|
513
|
+
't-agent.message.delete.button': string;
|
|
514
|
+
't-agent.message.clear-history.title': string;
|
|
515
|
+
't-agent.message.clear-history.content': string;
|
|
516
|
+
't-agent.message.multi-select-delete.title': string;
|
|
517
|
+
't-agent.message.multi-select-delete.content': string;
|
|
494
518
|
't-agent.message.delete.content': string;
|
|
495
519
|
't-agent.message.delete.confirm': string;
|
|
496
520
|
't-agent.message.delete.cancel': string;
|
|
@@ -533,7 +557,7 @@ declare const _default: {
|
|
|
533
557
|
't-agent.input.asr.error.empty': string;
|
|
534
558
|
't-agent.input.asr.error.unknown': string;
|
|
535
559
|
't-agent.input.asr.error.timeout': string;
|
|
536
|
-
't-agent.message.action.
|
|
560
|
+
't-agent.message.action.multi-select': string;
|
|
537
561
|
't-agent.input.upload.source-type.camera': string;
|
|
538
562
|
't-agent.input.upload.source-type.camera.require-permission': string;
|
|
539
563
|
't-agent.input.upload.source-type.album': string;
|
|
@@ -578,12 +602,16 @@ declare const _default: {
|
|
|
578
602
|
't-agent.message.bubble.aborted': string;
|
|
579
603
|
't-agent.message.action.copy': string;
|
|
580
604
|
't-agent.message.action.delete': string;
|
|
581
|
-
't-agent.message.action.deleteByChannel': string;
|
|
582
605
|
't-agent.message.like.success': string;
|
|
583
606
|
't-agent.message.unlike.success': string;
|
|
584
607
|
't-agent.message.action.like': string;
|
|
585
608
|
't-agent.message.action.unlike': string;
|
|
586
609
|
't-agent.message.delete.title': string;
|
|
610
|
+
't-agent.message.delete.button': string;
|
|
611
|
+
't-agent.message.clear-history.title': string;
|
|
612
|
+
't-agent.message.clear-history.content': string;
|
|
613
|
+
't-agent.message.multi-select-delete.title': string;
|
|
614
|
+
't-agent.message.multi-select-delete.content': string;
|
|
587
615
|
't-agent.message.delete.content': string;
|
|
588
616
|
't-agent.message.delete.confirm': string;
|
|
589
617
|
't-agent.message.delete.cancel': string;
|
|
@@ -626,7 +654,7 @@ declare const _default: {
|
|
|
626
654
|
't-agent.input.asr.error.empty': string;
|
|
627
655
|
't-agent.input.asr.error.unknown': string;
|
|
628
656
|
't-agent.input.asr.error.timeout': string;
|
|
629
|
-
't-agent.message.action.
|
|
657
|
+
't-agent.message.action.multi-select': string;
|
|
630
658
|
't-agent.input.upload.source-type.camera': string;
|
|
631
659
|
't-agent.input.upload.source-type.camera.require-permission': string;
|
|
632
660
|
't-agent.input.upload.source-type.album': string;
|
|
@@ -671,12 +699,16 @@ declare const _default: {
|
|
|
671
699
|
't-agent.message.bubble.aborted': string;
|
|
672
700
|
't-agent.message.action.copy': string;
|
|
673
701
|
't-agent.message.action.delete': string;
|
|
674
|
-
't-agent.message.action.deleteByChannel': string;
|
|
675
702
|
't-agent.message.like.success': string;
|
|
676
703
|
't-agent.message.unlike.success': string;
|
|
677
704
|
't-agent.message.action.like': string;
|
|
678
705
|
't-agent.message.action.unlike': string;
|
|
679
706
|
't-agent.message.delete.title': string;
|
|
707
|
+
't-agent.message.delete.button': string;
|
|
708
|
+
't-agent.message.clear-history.title': string;
|
|
709
|
+
't-agent.message.clear-history.content': string;
|
|
710
|
+
't-agent.message.multi-select-delete.title': string;
|
|
711
|
+
't-agent.message.multi-select-delete.content': string;
|
|
680
712
|
't-agent.message.delete.content': string;
|
|
681
713
|
't-agent.message.delete.confirm': string;
|
|
682
714
|
't-agent.message.delete.cancel': string;
|
|
@@ -719,7 +751,7 @@ declare const _default: {
|
|
|
719
751
|
't-agent.input.asr.error.empty': string;
|
|
720
752
|
't-agent.input.asr.error.unknown': string;
|
|
721
753
|
't-agent.input.asr.error.timeout': string;
|
|
722
|
-
't-agent.message.action.
|
|
754
|
+
't-agent.message.action.multi-select': string;
|
|
723
755
|
't-agent.input.upload.source-type.camera': string;
|
|
724
756
|
't-agent.input.upload.source-type.camera.require-permission': string;
|
|
725
757
|
't-agent.input.upload.source-type.album': string;
|
package/dist/i18n/strings.js
CHANGED
|
@@ -28,13 +28,17 @@ export default {
|
|
|
28
28
|
't-agent.message.bubble.aborted': '用户中断',
|
|
29
29
|
't-agent.message.action.copy': '复制消息',
|
|
30
30
|
't-agent.message.action.delete': '删除消息',
|
|
31
|
-
't-agent.message.action.
|
|
32
|
-
't-agent.message.action.multiSelect': '多选',
|
|
31
|
+
't-agent.message.action.multi-select': '多选',
|
|
33
32
|
't-agent.message.like.success': '点赞成功',
|
|
34
33
|
't-agent.message.unlike.success': '取消点赞成功',
|
|
35
34
|
't-agent.message.action.like': '喜欢消息',
|
|
36
35
|
't-agent.message.action.unlike': '不喜欢消息',
|
|
37
36
|
't-agent.message.delete.title': '删除消息',
|
|
37
|
+
't-agent.message.clear-history.title': '清空历史',
|
|
38
|
+
't-agent.message.clear-history.button': '清空历史',
|
|
39
|
+
't-agent.message.clear-history.content': '确定要清空历史吗?',
|
|
40
|
+
't-agent.message.multi-select-delete.title': '删除选中消息',
|
|
41
|
+
't-agent.message.multi-select-delete.content': '确定要删除这些选中的消息吗?',
|
|
38
42
|
't-agent.message.delete.content': '确定要删除这条消息吗?',
|
|
39
43
|
't-agent.message.delete.confirm': '确认',
|
|
40
44
|
't-agent.message.delete.cancel': '取消',
|
|
@@ -114,12 +118,16 @@ export default {
|
|
|
114
118
|
't-agent.message.bubble.aborted': '用戶中斷',
|
|
115
119
|
't-agent.message.action.copy': '複製消息',
|
|
116
120
|
't-agent.message.action.delete': '刪除消息',
|
|
117
|
-
't-agent.message.action.deleteByChannel': '刪除所有渠道消息',
|
|
118
121
|
't-agent.message.like.success': '點贊成功',
|
|
119
122
|
't-agent.message.unlike.success': '取消點贊成功',
|
|
120
123
|
't-agent.message.action.like': '喜歡消息',
|
|
121
124
|
't-agent.message.action.unlike': '不喜歡消息',
|
|
122
125
|
't-agent.message.delete.title': '刪除消息',
|
|
126
|
+
't-agent.message.clear-history.title': '清空歷史',
|
|
127
|
+
't-agent.message.clear-history.button': '清空歷史',
|
|
128
|
+
't-agent.message.clear-history.content': '確定要清空歷史嗎?',
|
|
129
|
+
't-agent.message.multi-select-delete.title': '刪除選中消息',
|
|
130
|
+
't-agent.message.multi-select-delete.content': '確定要刪除這些選中的消息嗎?',
|
|
123
131
|
't-agent.message.delete.content': '確定要刪除這條消息嗎?',
|
|
124
132
|
't-agent.message.delete.confirm': '確認',
|
|
125
133
|
't-agent.message.delete.cancel': '取消',
|
|
@@ -162,7 +170,7 @@ export default {
|
|
|
162
170
|
't-agent.input.asr.error.empty': '未能從語音中識別到文字',
|
|
163
171
|
't-agent.input.asr.error.unknown': '語音識別失敗',
|
|
164
172
|
't-agent.input.asr.error.timeout': '語音識別已達時長限制,將直接發送',
|
|
165
|
-
't-agent.message.action.
|
|
173
|
+
't-agent.message.action.multi-select': '多選',
|
|
166
174
|
't-agent.input.upload.source-type.camera': '拍照',
|
|
167
175
|
't-agent.input.upload.source-type.camera.require-permission': '拍照需要相機權限,請在設置中開啟',
|
|
168
176
|
't-agent.input.upload.source-type.album': '從相冊中選擇',
|
|
@@ -214,13 +222,17 @@ export default {
|
|
|
214
222
|
't-agent.message.bubble.aborted': 'User Aborted',
|
|
215
223
|
't-agent.message.action.copy': 'Copy Message',
|
|
216
224
|
't-agent.message.action.delete': 'Delete Message',
|
|
217
|
-
't-agent.message.action.
|
|
218
|
-
't-agent.message.action.multiSelect': 'Multiple Selection',
|
|
225
|
+
't-agent.message.action.multi-select': 'Multiple Selection',
|
|
219
226
|
't-agent.message.like.success': 'Like Successful',
|
|
220
227
|
't-agent.message.unlike.success': 'Unlike Successful',
|
|
221
228
|
't-agent.message.action.like': 'Like Message',
|
|
222
229
|
't-agent.message.action.unlike': 'Unlike Message',
|
|
223
230
|
't-agent.message.delete.title': 'Delete Message',
|
|
231
|
+
't-agent.message.clear-history.title': 'Clear History',
|
|
232
|
+
't-agent.message.clear-history.button': 'Clear History',
|
|
233
|
+
't-agent.message.clear-history.content': 'Are you sure you want to clear the history?',
|
|
234
|
+
't-agent.message.multi-select-delete.title': 'Delete Selected Messages',
|
|
235
|
+
't-agent.message.multi-select-delete.content': 'Are you sure you want to delete these selected messages?',
|
|
224
236
|
't-agent.message.delete.content': 'Are you sure you want to delete this message?',
|
|
225
237
|
't-agent.message.delete.confirm': 'Confirm',
|
|
226
238
|
't-agent.message.delete.cancel': 'Cancel',
|
|
@@ -299,12 +311,16 @@ export default {
|
|
|
299
311
|
't-agent.message.bubble.aborted': 'ユーザーが中断しました',
|
|
300
312
|
't-agent.message.action.copy': 'メッセージをコピー',
|
|
301
313
|
't-agent.message.action.delete': 'メッセージを削除',
|
|
302
|
-
't-agent.message.action.deleteByChannel': 'すべてのチャネルメッセージを削除',
|
|
303
314
|
't-agent.message.like.success': 'いいねが成功しました',
|
|
304
315
|
't-agent.message.unlike.success': 'いいねを取り消しました',
|
|
305
316
|
't-agent.message.action.like': 'いいね',
|
|
306
317
|
't-agent.message.action.unlike': 'いいねを取り消す',
|
|
307
318
|
't-agent.message.delete.title': 'メッセージを削除',
|
|
319
|
+
't-agent.message.clear-history.title': '履歴をクリア',
|
|
320
|
+
't-agent.message.clear-history.button': '履歴をクリア',
|
|
321
|
+
't-agent.message.clear-history.content': '履歴をクリアしてもよろしいですか?',
|
|
322
|
+
't-agent.message.multi-select-delete.title': '選択したメッセージを削除',
|
|
323
|
+
't-agent.message.multi-select-delete.content': '選択したメッセージを削除してもよろしいですか?',
|
|
308
324
|
't-agent.message.delete.content': 'このメッセージを削除しますか?',
|
|
309
325
|
't-agent.message.delete.confirm': '確認',
|
|
310
326
|
't-agent.message.delete.cancel': 'キャンセル',
|
|
@@ -347,7 +363,7 @@ export default {
|
|
|
347
363
|
't-agent.input.asr.error.empty': '音声からテキストを認識できませんでした',
|
|
348
364
|
't-agent.input.asr.error.unknown': '音声認識に失敗しました',
|
|
349
365
|
't-agent.input.asr.error.timeout': '音声認識が制限時間に達しました、直接送信します',
|
|
350
|
-
't-agent.message.action.
|
|
366
|
+
't-agent.message.action.multi-select': '複数選択',
|
|
351
367
|
't-agent.input.upload.source-type.camera': '写真を撮る',
|
|
352
368
|
't-agent.input.upload.source-type.camera.require-permission': '写真撮影にはカメラ権限が必要です、設定で有効にしてください',
|
|
353
369
|
't-agent.input.upload.source-type.album': 'アルバムから選択',
|
|
@@ -392,12 +408,16 @@ export default {
|
|
|
392
408
|
't-agent.message.bubble.aborted': 'Benutzer abgebrochen',
|
|
393
409
|
't-agent.message.action.copy': 'Nachricht kopieren',
|
|
394
410
|
't-agent.message.action.delete': 'Nachricht löschen',
|
|
395
|
-
't-agent.message.action.deleteByChannel': 'Alle Kanalnachrichten löschen',
|
|
396
411
|
't-agent.message.like.success': 'Gefällt mir erfolgreich',
|
|
397
412
|
't-agent.message.unlike.success': 'Gefällt mir zurückgenommen',
|
|
398
413
|
't-agent.message.action.like': 'Gefällt mir',
|
|
399
414
|
't-agent.message.action.unlike': 'Gefällt mir zurücknehmen',
|
|
400
415
|
't-agent.message.delete.title': 'Nachricht löschen',
|
|
416
|
+
't-agent.message.delete.button': 'Nachricht löschen',
|
|
417
|
+
't-agent.message.clear-history.title': 'Verlauf löschen',
|
|
418
|
+
't-agent.message.clear-history.content': 'Möchten Sie den Verlauf wirklich löschen?',
|
|
419
|
+
't-agent.message.multi-select-delete.title': 'Ausgewählte Nachrichten löschen',
|
|
420
|
+
't-agent.message.multi-select-delete.content': 'Möchten Sie diese ausgewählten Nachrichten wirklich löschen?',
|
|
401
421
|
't-agent.message.delete.content': 'Soll diese Nachricht wirklich gelöscht werden?',
|
|
402
422
|
't-agent.message.delete.success': 'Nachricht wurde gelöscht',
|
|
403
423
|
't-agent.message.delete.confirm': 'Bestätigen',
|
|
@@ -440,7 +460,7 @@ export default {
|
|
|
440
460
|
't-agent.input.asr.error.empty': 'Kein Text aus der Sprache erkannt',
|
|
441
461
|
't-agent.input.asr.error.unknown': 'Spracherkennung fehlgeschlagen',
|
|
442
462
|
't-agent.input.asr.error.timeout': 'Spracherkennung hat das Zeitlimit erreicht, wird direkt gesendet',
|
|
443
|
-
't-agent.message.action.
|
|
463
|
+
't-agent.message.action.multi-select': 'Mehrfachauswahl',
|
|
444
464
|
't-agent.input.upload.source-type.camera': 'Foto aufnehmen',
|
|
445
465
|
't-agent.input.upload.source-type.camera.require-permission': 'Für Fotos wird eine Kameraberechtigung benötigt, bitte in den Einstellungen aktivieren',
|
|
446
466
|
't-agent.input.upload.source-type.album': 'Aus Album auswählen',
|
|
@@ -485,12 +505,16 @@ export default {
|
|
|
485
505
|
't-agent.message.bubble.aborted': 'Utilisateur interrompu',
|
|
486
506
|
't-agent.message.action.copy': 'Copier le message',
|
|
487
507
|
't-agent.message.action.delete': 'Supprimer le message',
|
|
488
|
-
't-agent.message.action.deleteByChannel': 'Supprimer tous les messages du canal',
|
|
489
508
|
't-agent.message.like.success': "J'aime réussi",
|
|
490
509
|
't-agent.message.unlike.success': "Je n'aime plus réussi",
|
|
491
510
|
't-agent.message.action.like': "J'aime",
|
|
492
511
|
't-agent.message.action.unlike': "Je n'aime plus",
|
|
493
512
|
't-agent.message.delete.title': 'Supprimer le message',
|
|
513
|
+
't-agent.message.delete.button': 'Supprimer le message',
|
|
514
|
+
't-agent.message.clear-history.title': "Effacer l'historique",
|
|
515
|
+
't-agent.message.clear-history.content': "Êtes-vous sûr de vouloir effacer l'historique?",
|
|
516
|
+
't-agent.message.multi-select-delete.title': 'Supprimer les messages sélectionnés',
|
|
517
|
+
't-agent.message.multi-select-delete.content': 'Êtes-vous sûr de vouloir supprimer ces messages sélectionnés?',
|
|
494
518
|
't-agent.message.delete.content': 'Voulez-vous vraiment supprimer ce message?',
|
|
495
519
|
't-agent.message.delete.confirm': 'Confirmer',
|
|
496
520
|
't-agent.message.delete.cancel': 'Annuler',
|
|
@@ -533,7 +557,7 @@ export default {
|
|
|
533
557
|
't-agent.input.asr.error.empty': 'Aucun texte reconnu à partir de la voix',
|
|
534
558
|
't-agent.input.asr.error.unknown': 'Échec de la reconnaissance vocale',
|
|
535
559
|
't-agent.input.asr.error.timeout': 'La reconnaissance vocale a atteint la limite de temps, envoi direct',
|
|
536
|
-
't-agent.message.action.
|
|
560
|
+
't-agent.message.action.multi-select': 'Sélection multiple',
|
|
537
561
|
't-agent.input.upload.source-type.camera': 'Prendre une photo',
|
|
538
562
|
't-agent.input.upload.source-type.camera.require-permission': "La prise de photo nécessite une autorisation de caméra, veuillez l'activer dans les paramètres",
|
|
539
563
|
't-agent.input.upload.source-type.album': "Choisir depuis l'album",
|
|
@@ -578,12 +602,16 @@ export default {
|
|
|
578
602
|
't-agent.message.bubble.aborted': 'Usuario abortado',
|
|
579
603
|
't-agent.message.action.copy': 'Copiar mensaje',
|
|
580
604
|
't-agent.message.action.delete': 'Eliminar mensaje',
|
|
581
|
-
't-agent.message.action.deleteByChannel': 'Eliminar todos los mensajes del canal',
|
|
582
605
|
't-agent.message.like.success': 'Me gusta exitoso',
|
|
583
606
|
't-agent.message.unlike.success': 'No me gusta exitoso',
|
|
584
607
|
't-agent.message.action.like': 'Me gusta',
|
|
585
608
|
't-agent.message.action.unlike': 'No me gusta',
|
|
586
609
|
't-agent.message.delete.title': 'Eliminar mensaje',
|
|
610
|
+
't-agent.message.delete.button': 'Eliminar mensaje',
|
|
611
|
+
't-agent.message.clear-history.title': 'Borrar historial',
|
|
612
|
+
't-agent.message.clear-history.content': '¿Está seguro de que desea borrar el historial?',
|
|
613
|
+
't-agent.message.multi-select-delete.title': 'Eliminar mensajes seleccionados',
|
|
614
|
+
't-agent.message.multi-select-delete.content': '¿Está seguro de que desea eliminar estos mensajes seleccionados?',
|
|
587
615
|
't-agent.message.delete.content': '¿Está seguro de querer eliminar este mensaje?',
|
|
588
616
|
't-agent.message.delete.confirm': 'Confirmar',
|
|
589
617
|
't-agent.message.delete.cancel': 'Cancelar',
|
|
@@ -626,7 +654,7 @@ export default {
|
|
|
626
654
|
't-agent.input.asr.error.empty': 'No se reconoció texto del habla',
|
|
627
655
|
't-agent.input.asr.error.unknown': 'Error en el reconocimiento de voz',
|
|
628
656
|
't-agent.input.asr.error.timeout': 'El reconocimiento de voz ha alcanzado el límite de tiempo, se enviará directamente',
|
|
629
|
-
't-agent.message.action.
|
|
657
|
+
't-agent.message.action.multi-select': 'Selección múltiple',
|
|
630
658
|
't-agent.input.upload.source-type.camera': 'Tomar una foto',
|
|
631
659
|
't-agent.input.upload.source-type.camera.require-permission': 'La toma de fotos requiere permiso de cámara, por favor actívalo en configuración',
|
|
632
660
|
't-agent.input.upload.source-type.album': 'Elegir del álbum',
|
|
@@ -671,12 +699,16 @@ export default {
|
|
|
671
699
|
't-agent.message.bubble.aborted': 'Utente interrotto',
|
|
672
700
|
't-agent.message.action.copy': 'Copia messaggio',
|
|
673
701
|
't-agent.message.action.delete': 'Elimina messaggio',
|
|
674
|
-
't-agent.message.action.deleteByChannel': 'Elimina tutti i messaggi del canale',
|
|
675
702
|
't-agent.message.like.success': 'Mi piace riuscito',
|
|
676
703
|
't-agent.message.unlike.success': 'Non mi piace riuscito',
|
|
677
704
|
't-agent.message.action.like': 'Mi piace',
|
|
678
705
|
't-agent.message.action.unlike': 'Non mi piace',
|
|
679
706
|
't-agent.message.delete.title': 'Elimina messaggio',
|
|
707
|
+
't-agent.message.delete.button': 'Elimina messaggio',
|
|
708
|
+
't-agent.message.clear-history.title': 'Cancella cronologia',
|
|
709
|
+
't-agent.message.clear-history.content': 'Sei sicuro di voler cancellare la cronologia?',
|
|
710
|
+
't-agent.message.multi-select-delete.title': 'Elimina i messaggi selezionati',
|
|
711
|
+
't-agent.message.multi-select-delete.content': 'Sei sicuro di voler eliminare questi messaggi selezionati?',
|
|
680
712
|
't-agent.message.delete.content': 'Vuoi davvero eliminare questo messaggio?',
|
|
681
713
|
't-agent.message.delete.confirm': 'Confermare',
|
|
682
714
|
't-agent.message.delete.cancel': 'Annullare',
|
|
@@ -719,7 +751,7 @@ export default {
|
|
|
719
751
|
't-agent.input.asr.error.empty': 'Nessun testo riconosciuto dalla voce',
|
|
720
752
|
't-agent.input.asr.error.unknown': 'Riconoscimento vocale fallito',
|
|
721
753
|
't-agent.input.asr.error.timeout': 'Il riconoscimento vocale ha raggiunto il limite di tempo, invio diretto',
|
|
722
|
-
't-agent.message.action.
|
|
754
|
+
't-agent.message.action.multi-select': 'Selezione multipla',
|
|
723
755
|
't-agent.input.upload.source-type.camera': 'Scatta una foto',
|
|
724
756
|
't-agent.input.upload.source-type.camera.require-permission': "Scattare foto richiede l'autorizzazione della fotocamera, abilitala nelle impostazioni",
|
|
725
757
|
't-agent.input.upload.source-type.album': "Scegli dall'album",
|