diff --git a/packages/tuikit-atomicx-vue3/package.json b/packages/tuikit-atomicx-vue3/package.json index 02ff5bb..1867972 100644 --- a/packages/tuikit-atomicx-vue3/package.json +++ b/packages/tuikit-atomicx-vue3/package.json @@ -1,6 +1,6 @@ { "name": "tuikit-atomicx-vue3", - "version": "6.2.2", + "version": "6.2.6", "type": "module", "main": "./dist/index.js", "module": "./dist/index.js", @@ -40,7 +40,7 @@ "@tencentcloud/lite-chat": "^1.6.15", "@tencentcloud/chat-uikit-engine-lite": "~1.0.7", "@tencentcloud/tui-core-lite": "~1.0.1", - "@tencentcloud/tuiroom-engine-js": "~4.1.2-beta.2", + "@tencentcloud/tuiroom-engine-js": "~4.1.2-beta.4", "@tencentcloud/uikit-base-component-vue3": "~1.4.4", "vue": "^3.4.0" }, diff --git a/packages/tuikit-atomicx-vue3/src/components/BarrageInput/constants.ts b/packages/tuikit-atomicx-vue3/src/components/BarrageInput/constants.ts index 5666389..25b0503 100644 --- a/packages/tuikit-atomicx-vue3/src/components/BarrageInput/constants.ts +++ b/packages/tuikit-atomicx-vue3/src/components/BarrageInput/constants.ts @@ -1,3 +1,12 @@ export const ERROR_MESSAGE = { 10017: 'BarrageInput.youHaveBeenMuted', + // Server-side moderation rejected the message because the text contains + // sensitive content (e.g. forbidden keywords). Surfaced as a TUIToast + // error in BarrageInput / TextEditor so the user knows the message was + // not delivered to the room. + 80001: 'BarrageInput.sensitiveContent', + // Server-side moderation rejected the message because attached media + // (image / audio / video) contains sensitive content. Distinct from + // 80001 (text) so the toast can tell the user which part was rejected. + 80004: 'BarrageInput.sensitiveMediaContent', }; diff --git a/packages/tuikit-atomicx-vue3/src/components/BarrageInput/i18n/en-US/index.ts b/packages/tuikit-atomicx-vue3/src/components/BarrageInput/i18n/en-US/index.ts index a1983b4..0427207 100644 --- a/packages/tuikit-atomicx-vue3/src/components/BarrageInput/i18n/en-US/index.ts +++ b/packages/tuikit-atomicx-vue3/src/components/BarrageInput/i18n/en-US/index.ts @@ -3,4 +3,6 @@ export const resource = { 'BarrageInput.youHaveBeenMuted': 'You have been muted', 'BarrageInput.Send': 'Send', 'BarrageInput.sendFailed': 'Send failed', + 'BarrageInput.sensitiveContent': 'The message contains sensitive content and cannot be sent.', + 'BarrageInput.sensitiveMediaContent': 'Images, audio, video or other media in the message contain sensitive content and cannot be sent.', }; diff --git a/packages/tuikit-atomicx-vue3/src/components/BarrageInput/i18n/zh-CN/index.ts b/packages/tuikit-atomicx-vue3/src/components/BarrageInput/i18n/zh-CN/index.ts index 43e3d2a..e401381 100644 --- a/packages/tuikit-atomicx-vue3/src/components/BarrageInput/i18n/zh-CN/index.ts +++ b/packages/tuikit-atomicx-vue3/src/components/BarrageInput/i18n/zh-CN/index.ts @@ -3,4 +3,6 @@ export const resource = { 'BarrageInput.youHaveBeenMuted': '您已被禁言', 'BarrageInput.Send': '发送', 'BarrageInput.sendFailed': '发送失败', + 'BarrageInput.sensitiveContent': '消息或者资料中文本存在敏感内容,禁止下发。', + 'BarrageInput.sensitiveMediaContent': '消息中图片、音频、视频等文件存在敏感内容,禁止下发。', }; diff --git a/packages/tuikit-atomicx-vue3/src/components/LiveGift/LiveGiftPC/LiveGift.vue b/packages/tuikit-atomicx-vue3/src/components/LiveGift/LiveGiftPC/LiveGift.vue index d60bd6c..ece6510 100644 --- a/packages/tuikit-atomicx-vue3/src/components/LiveGift/LiveGiftPC/LiveGift.vue +++ b/packages/tuikit-atomicx-vue3/src/components/LiveGift/LiveGiftPC/LiveGift.vue @@ -266,6 +266,11 @@ onUnmounted(() => { border-radius: 50%; background: var(--gift-more-button-color); cursor: pointer; + // The "More gifts" round button always uses a colored fill, so its inner + // icon (IconGift) must stay white regardless of light/dark theme to keep + // sufficient contrast. The icon renders with `fill: currentColor`, so we + // pin `color` on the wrapper instead of touching the icon component. + color: #fff; } span { diff --git a/packages/tuikit-atomicx-vue3/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue b/packages/tuikit-atomicx-vue3/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue index 36dbeb4..05e7fc0 100644 --- a/packages/tuikit-atomicx-vue3/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +++ b/packages/tuikit-atomicx-vue3/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue @@ -8,7 +8,11 @@ :key="`seat-${index}`" :style="item.region" > -
+
{{ t('LiveView.Connecting') }}