@ray-js/t-agent-ui-ray 0.2.6-beta-5 → 0.2.6-beta-7

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.
@@ -11,7 +11,6 @@ import "core-js/modules/esnext.iterator.map.js";
11
11
  import "core-js/modules/web.dom-collections.iterator.js";
12
12
  import MarkdownIt from 'markdown-it';
13
13
  import { full as emoji } from 'markdown-it-emoji';
14
- import footnote from 'markdown-it-footnote';
15
14
  import { generateId } from '@ray-js/t-agent';
16
15
  const md = new MarkdownIt();
17
16
  function addClassToTag(MD) {
@@ -25,6 +24,10 @@ function addClassToTag(MD) {
25
24
  token.attrPush(['height', 'auto']);
26
25
  return;
27
26
  }
27
+ if (token.tag === 'hr') {
28
+ token.attrPush(['class', "h2w__hr"]);
29
+ return;
30
+ }
28
31
  if (token.children && token.children.length) {
29
32
  token.children.forEach(addClass);
30
33
  return;
@@ -258,4 +261,4 @@ export class BlockParser {
258
261
  return position;
259
262
  }
260
263
  }
261
- md.use(addClassToTag).use(tableWrapper).use(fenceWrapper).use(emoji).use(footnote).use(BlockParser.plugin);
264
+ md.use(addClassToTag).use(tableWrapper).use(fenceWrapper).use(emoji).use(BlockParser.plugin);
@@ -321,8 +321,10 @@
321
321
  }
322
322
 
323
323
  .h2w__hr {
324
- height: 8rpx;
325
- margin: 40rpx 0;
324
+ border-top: none;
325
+ border-left: none;
326
+ border-right: none;
327
+ border-bottom: 2rpx solid;
326
328
  }
327
329
 
328
330
  /**荧光标记**/
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  .h2w__dark .h2w__hr {
53
- background-color:#242424;
53
+ border-color: #3d3d3d;
54
54
  }
55
55
 
56
56
  .h2w__dark .h2w__mark {
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  .h2w__light .h2w__hr {
53
- background-color: #eee;
53
+ border-color: #eee;
54
54
  }
55
55
 
56
56
  .h2w__light .h2w__mark {
@@ -95,6 +95,7 @@ declare const _default: {
95
95
  't-agent.error.stream-exists': string;
96
96
  't-agent.error.timeout': string;
97
97
  't-agent.error.asr-empty': string;
98
+ 't-agent.message.delete.button': string;
98
99
  };
99
100
  'zh-Hant': {
100
101
  't-agent.build-in.button.create_scene_manually': string;
@@ -192,6 +193,7 @@ declare const _default: {
192
193
  't-agent.error.stream-exists': string;
193
194
  't-agent.error.timeout': string;
194
195
  't-agent.error.asr-empty': string;
196
+ 't-agent.message.delete.button': string;
195
197
  };
196
198
  en: {
197
199
  't-agent.build-in.button.create_scene_manually': string;
@@ -275,6 +277,7 @@ declare const _default: {
275
277
  't-agent.input.upload.image.max-reached': string;
276
278
  't-agent.input.upload.video.max-reached': string;
277
279
  't-agent.file-tile.unknown-filename': string;
280
+ 't-agent.error.unknown-error': string;
278
281
  't-agent.error.network-offline': string;
279
282
  't-agent.error.invalid-params': string;
280
283
  't-agent.error.session-create-failed': string;
@@ -288,6 +291,7 @@ declare const _default: {
288
291
  't-agent.error.stream-exists': string;
289
292
  't-agent.error.timeout': string;
290
293
  't-agent.error.asr-empty': string;
294
+ 't-agent.message.delete.button': string;
291
295
  };
292
296
  ja: {
293
297
  't-agent.build-in.button.create_scene_manually': string;
@@ -385,6 +389,7 @@ declare const _default: {
385
389
  't-agent.error.stream-exists': string;
386
390
  't-agent.error.timeout': string;
387
391
  't-agent.error.asr-empty': string;
392
+ 't-agent.message.delete.button': string;
388
393
  };
389
394
  de: {
390
395
  't-agent.build-in.button.create_scene_manually': string;
@@ -482,6 +487,7 @@ declare const _default: {
482
487
  't-agent.error.stream-exists': string;
483
488
  't-agent.error.timeout': string;
484
489
  't-agent.error.asr-empty': string;
490
+ 't-agent.message.clear-history.button': string;
485
491
  };
486
492
  fr: {
487
493
  't-agent.build-in.button.create_scene_manually': string;
@@ -579,6 +585,7 @@ declare const _default: {
579
585
  't-agent.error.stream-exists': string;
580
586
  't-agent.error.timeout': string;
581
587
  't-agent.error.asr-empty': string;
588
+ 't-agent.message.clear-history.button': string;
582
589
  };
583
590
  es: {
584
591
  't-agent.build-in.button.create_scene_manually': string;
@@ -676,6 +683,7 @@ declare const _default: {
676
683
  't-agent.error.stream-exists': string;
677
684
  't-agent.error.timeout': string;
678
685
  't-agent.error.asr-empty': string;
686
+ 't-agent.message.clear-history.button': string;
679
687
  };
680
688
  it: {
681
689
  't-agent.build-in.button.create_scene_manually': string;
@@ -773,6 +781,7 @@ declare const _default: {
773
781
  't-agent.error.stream-exists': string;
774
782
  't-agent.error.timeout': string;
775
783
  't-agent.error.asr-empty': string;
784
+ 't-agent.message.clear-history.button': string;
776
785
  };
777
786
  };
778
787
  export default _default;
@@ -94,7 +94,8 @@ export default {
94
94
  't-agent.error.event-no-data-code': '消息发送异常,请稍后再试',
95
95
  't-agent.error.stream-exists': '消息发送异常,请稍后再试',
96
96
  't-agent.error.timeout': '发送超时',
97
- 't-agent.error.asr-empty': '语音识别结果为空'
97
+ 't-agent.error.asr-empty': '语音识别结果为空',
98
+ 't-agent.message.delete.button': '删除消息'
98
99
  },
99
100
  'zh-Hant': {
100
101
  't-agent.build-in.button.create_scene_manually': '手動創建場景',
@@ -191,7 +192,8 @@ export default {
191
192
  't-agent.error.event-no-data-code': '消息發送異常,請稍後再試',
192
193
  't-agent.error.stream-exists': '消息發送異常,請稍後再試',
193
194
  't-agent.error.timeout': '發送超時',
194
- 't-agent.error.asr-empty': '語音識別結果為空'
195
+ 't-agent.error.asr-empty': '語音識別結果為空',
196
+ 't-agent.message.delete.button': '刪除消息'
195
197
  },
196
198
  en: {
197
199
  't-agent.build-in.button.create_scene_manually': 'Create Scene Manually',
@@ -216,7 +218,7 @@ export default {
216
218
  't-agent.input.asr.ptt': 'Press & hold to talk',
217
219
  't-agent.input.asr.error.too-short': 'Speaking time too short',
218
220
  't-agent.input.asr.error.empty': 'No text recognized from voice',
219
- 't-agent.input.asr.error.unknown': 'Text recognized failed',
221
+ 't-agent.input.asr.error.unknown': 'Voice recognition failed',
220
222
  't-agent.input.asr.error.timeout': 'Voice recognition has reached time limit, sending directly',
221
223
  't-agent.message.feedback.success': 'Feedback Successful',
222
224
  't-agent.message.bubble.aborted': 'User Aborted',
@@ -275,6 +277,7 @@ export default {
275
277
  't-agent.input.upload.image.max-reached': 'Image upload limit reached',
276
278
  't-agent.input.upload.video.max-reached': 'Video upload limit reached',
277
279
  't-agent.file-tile.unknown-filename': 'File',
280
+ 't-agent.error.unknown-error': 'Unknown error',
278
281
  't-agent.error.network-offline': 'Network disconnected, please check your connection',
279
282
  't-agent.error.invalid-params': 'Invalid parameters, please try again',
280
283
  't-agent.error.session-create-failed': 'Connection failed, please try again',
@@ -287,7 +290,8 @@ export default {
287
290
  't-agent.error.event-no-data-code': 'Message sending exception, please try again later',
288
291
  't-agent.error.stream-exists': 'Message sending exception, please try again later',
289
292
  't-agent.error.timeout': 'Sending timeout',
290
- 't-agent.error.asr-empty': 'Voice recognition result is empty'
293
+ 't-agent.error.asr-empty': 'Voice recognition result is empty',
294
+ 't-agent.message.delete.button': 'Delete Message'
291
295
  },
292
296
  ja: {
293
297
  't-agent.build-in.button.create_scene_manually': 'シーンを手動で作成',
@@ -384,7 +388,8 @@ export default {
384
388
  't-agent.error.event-no-data-code': 'メッセージ送信例外、後でもう一度お試しください',
385
389
  't-agent.error.stream-exists': 'メッセージ送信例外、後でもう一度お試しください',
386
390
  't-agent.error.timeout': '送信タイムアウト',
387
- 't-agent.error.asr-empty': '音声認識結果が空です'
391
+ 't-agent.error.asr-empty': '音声認識結果が空です',
392
+ 't-agent.message.delete.button': 'メッセージを削除'
388
393
  },
389
394
  de: {
390
395
  't-agent.build-in.button.create_scene_manually': 'Szene manuell erstellen',
@@ -481,7 +486,8 @@ export default {
481
486
  't-agent.error.event-no-data-code': 'Nachrichtensendeausnahme, bitte später erneut versuchen',
482
487
  't-agent.error.stream-exists': 'Nachrichtensendeausnahme, bitte später erneut versuchen',
483
488
  't-agent.error.timeout': 'Sendetimeout',
484
- 't-agent.error.asr-empty': 'Spracherkennungsergebnis ist leer'
489
+ 't-agent.error.asr-empty': 'Spracherkennungsergebnis ist leer',
490
+ 't-agent.message.clear-history.button': 'Verlauf löschen'
485
491
  },
486
492
  fr: {
487
493
  't-agent.build-in.button.create_scene_manually': 'Créer une scène manuellement',
@@ -578,7 +584,8 @@ export default {
578
584
  't-agent.error.event-no-data-code': "Exception d'envoi de message, veuillez réessayer plus tard",
579
585
  't-agent.error.stream-exists': "Exception d'envoi de message, veuillez réessayer plus tard",
580
586
  't-agent.error.timeout': "Délai d'envoi dépassé",
581
- 't-agent.error.asr-empty': 'Le résultat de la reconnaissance vocale est vide'
587
+ 't-agent.error.asr-empty': 'Le résultat de la reconnaissance vocale est vide',
588
+ 't-agent.message.clear-history.button': "Effacer l'historique"
582
589
  },
583
590
  es: {
584
591
  't-agent.build-in.button.create_scene_manually': 'Crear escena manualmente',
@@ -675,7 +682,8 @@ export default {
675
682
  't-agent.error.event-no-data-code': 'Excepción al enviar mensaje, por favor intenta más tarde',
676
683
  't-agent.error.stream-exists': 'Excepción al enviar mensaje, por favor intenta más tarde',
677
684
  't-agent.error.timeout': 'Tiempo de envío agotado',
678
- 't-agent.error.asr-empty': 'El resultado del reconocimiento de voz está vacío'
685
+ 't-agent.error.asr-empty': 'El resultado del reconocimiento de voz está vacío',
686
+ 't-agent.message.clear-history.button': 'Borrar historial'
679
687
  },
680
688
  it: {
681
689
  't-agent.build-in.button.create_scene_manually': 'Crea scena manualmente',
@@ -772,6 +780,7 @@ export default {
772
780
  't-agent.error.event-no-data-code': "Eccezione nell'invio del messaggio, riprova più tardi",
773
781
  't-agent.error.stream-exists': "Eccezione nell'invio del messaggio, riprova più tardi",
774
782
  't-agent.error.timeout': 'Timeout di invio',
775
- 't-agent.error.asr-empty': 'Il risultato del riconoscimento vocale è vuoto'
783
+ 't-agent.error.asr-empty': 'Il risultato del riconoscimento vocale è vuoto',
784
+ 't-agent.message.clear-history.button': 'Cancella cronologia'
776
785
  }
777
786
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/t-agent-ui-ray",
3
- "version": "0.2.6-beta-5",
3
+ "version": "0.2.6-beta-7",
4
4
  "author": "Tuya.inc",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -40,5 +40,5 @@
40
40
  "@types/echarts": "^4.9.22",
41
41
  "@types/markdown-it": "^14.1.1"
42
42
  },
43
- "gitHead": "60f0d3f33a78b76aae90b22942d9bf64c430e565"
43
+ "gitHead": "d76b6bc9d2d7b69b12cc1b741a8638f2dd671db2"
44
44
  }