消息
This commit is contained in:
1
unpackage/dist/dev/.sourcemap/mp-weixin/TUIKit/plugins/extension-server/callkit.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/TUIKit/plugins/extension-server/callkit.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/.sourcemap/mp-weixin/TUIKit/plugins/plugin-components/index.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/TUIKit/plugins/plugin-components/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["TUIKit/plugins/plugin-components/index.ts"],"sourcesContent":["import TUIChatEngine, { IMessageModel } from '@tencentcloud/chat-uikit-engine';\nimport { isCustomerServicePluginMessage } from './message-customer/index';\nimport { JSONToObject } from '../../utils/type-check';\n\nexport function isCallMessage(message: IMessageModel): boolean {\n const payloadData = JSONToObject(message?.payload?.data);\n if (payloadData?.businessID === 1 && payloadData?.data) {\n const payloadDataData = JSONToObject(payloadData.data);\n if (payloadDataData.businessID === 'av_call') {\n return true;\n }\n }\n return false;\n}\n\nexport function isRoomSignalingMessage(message: IMessageModel): boolean {\n const payloadData = JSONToObject(message?.payload?.data);\n return (\n payloadData?.businessID === 'ROOM_INVITE_ACTION'\n || payloadData?.businessID === 'tuikit_engine_room'\n );\n}\n\nexport function isRoomCardMessage(message: IMessageModel): boolean {\n const payloadData = JSONToObject(message?.payload?.data);\n return payloadData?.businessID === 'group_room_message';\n}\n\nexport function isPluginMessage(message: IMessageModel): boolean {\n return (\n message.type === TUIChatEngine.TYPES.MSG_CUSTOM\n && (isCallMessage(message)\n || isCustomerServicePluginMessage(message as any)\n || isRoomCardMessage(message)\n || isRoomSignalingMessage(message))\n );\n}\n"],"names":["JSONToObject","TUIChatEngine","isCustomerServicePluginMessage"],"mappings":";;;;AAIO,SAAS,cAAc,SAAiC;;AAC7D,QAAM,cAAcA,uBAAA,cAAa,wCAAS,YAAT,mBAAkB,IAAI;AACvD,OAAI,2CAAa,gBAAe,MAAK,2CAAa,OAAM;AAChD,UAAA,kBAAkBA,uBAAAA,aAAa,YAAY,IAAI;AACjD,QAAA,gBAAgB,eAAe,WAAW;AACrC,aAAA;AAAA,IACT;AAAA,EACF;AACO,SAAA;AACT;AAEO,SAAS,uBAAuB,SAAiC;;AACtE,QAAM,cAAcA,uBAAA,cAAa,wCAAS,YAAT,mBAAkB,IAAI;AACvD,UACE,2CAAa,gBAAe,yBACzB,2CAAa,gBAAe;AAEnC;AAEO,SAAS,kBAAkB,SAAiC;;AACjE,QAAM,cAAcA,uBAAA,cAAa,wCAAS,YAAT,mBAAkB,IAAI;AACvD,UAAO,2CAAa,gBAAe;AACrC;AAEO,SAAS,gBAAgB,SAAiC;AAC/D,SACE,QAAQ,SAASC,cAAAA,GAAc,MAAM,eACjC,cAAc,OAAO,KACtBC,sDAAAA,+BAA+B,OAAc,KAC7C,kBAAkB,OAAO,KACzB,uBAAuB,OAAO;AAErC;;;;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"message-call-c2c.js","sources":["TUIKit/plugins/plugin-components/message-call/message-call-c2c.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9UVUlLaXQvcGx1Z2lucy9wbHVnaW4tY29tcG9uZW50cy9tZXNzYWdlLWNhbGwvbWVzc2FnZS1jYWxsLWMyYy52dWU"],"sourcesContent":["<template>\n <div\n v-if=\"isCallMessage && conversationType === TYPES.CONV_C2C\"\n class=\"call\"\n :class=\"['call-' + conversationType, message.flow === 'out' && 'call-reverse']\"\n @click=\"callAgain\"\n >\n <div :class=\"['icon', message.flow === 'out' && callInfo.type === 2 && 'icon-reverse']\">\n <Icon :file=\"callInfo.icon\" />\n </div>\n <span class=\"call-content\">{{ custom }}</span>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport TUICore, { TUIConstants } from '@tencentcloud/tui-core';\nimport TUIChatEngine from '@tencentcloud/chat-uikit-engine';\nimport { computed, ref } from '../../../adapter-vue';\nimport { JSONToObject } from '../../../utils/index';\nimport Icon from '../../../components/common/Icon.vue';\nimport callVideoSVG from '../../../assets/icon/call-video.svg';\nimport callVoiceSVG from '../../../assets/icon/call-voice.svg';\nimport OfflinePushInfoManager, { PUSH_SCENE } from '../../../components/TUIChat/offlinePushInfoManager/index';\nconst props = defineProps({\n message: {\n type: Object,\n default: () => ({}),\n },\n signalingInfo: {\n type: Object,\n default: () => ({}),\n },\n customContent: {\n type: Object,\n default: () => ({}),\n },\n});\nconst TYPES = ref(TUIChatEngine.TYPES);\nconst isCallMessage = computed(() => props.signalingInfo != null);\nconst callInfo = computed((): { type: number; icon: string } => {\n const callType = JSONToObject(props.signalingInfo?.data)?.call_type;\n switch (callType) {\n case 1:\n return {\n type: 1,\n icon: callVoiceSVG,\n };\n case 2:\n return {\n type: 2,\n icon: callVideoSVG,\n };\n default:\n break;\n }\n return {\n type: 0,\n icon: '',\n };\n});\nconst conversationType = computed(() => props.message?.conversationType);\nconst custom = computed(() => props.customContent?.custom);\n\nconst callAgain = () => {\n if (conversationType.value === TUIChatEngine.TYPES.CONV_C2C) {\n const userID = props.message?.flow === 'out' ? props.message?.to : props.message?.from;\n TUICore.callService({\n serviceName: TUIConstants.TUICalling.SERVICE.NAME,\n method: TUIConstants.TUICalling.SERVICE.METHOD.START_CALL,\n params: {\n userIDList: [userID],\n type: callInfo?.value?.type,\n callParams: {\n offlinePushInfo: OfflinePushInfoManager.getOfflinePushInfo(PUSH_SCENE.CALL),\n },\n },\n });\n }\n};\n</script>\n<style scoped lang=\"scss\">\n.call {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n &-C2C {\n cursor: pointer;\n }\n\n &-GROUP {\n cursor: default;\n }\n\n &-content {\n padding-left: 5px;\n }\n\n .icon {\n width: 20px;\n height: 20px;\n }\n\n &-reverse {\n flex-direction: row-reverse;\n\n .icon-reverse {\n transform: rotate(180deg);\n }\n\n .call-content {\n padding-right: 5px;\n padding-left: 0;\n }\n }\n}\n</style>\n","import Component from 'D:/项目/tk-mini-program/TUIKit/plugins/plugin-components/message-call/message-call-c2c.vue'\nwx.createComponent(Component)"],"names":["ref","TUIChatEngine","computed","JSONToObject","callVoiceSVG","callVideoSVG","TUICore","TUIConstants","OfflinePushInfoManager","PUSH_SCENE"],"mappings":";;;;;;;;;;AAkBA,MAAA,OAAiB,MAAA;;;;;;;;;;;;;;;;;;AAIjB,UAAM,QAAQ;AAcR,UAAA,QAAQA,cAAAA,IAAIC,cAAA,GAAc,KAAK;AACrC,UAAM,gBAAgBC,cAAAA,SAAS,MAAM,MAAM,iBAAiB,IAAI;AAC1D,UAAA,WAAWA,cAAAA,SAAS,MAAsC;;AAC9D,YAAM,YAAWC,4BAAAA,cAAa,WAAM,kBAAN,mBAAqB,IAAI,MAAtCA,mBAAyC;AAC1D,cAAQ,UAAU;AAAA,QAChB,KAAK;AACI,iBAAA;AAAA,YACL,MAAM;AAAA,YACN,MAAMC,cAAA;AAAA,UAAA;AAAA,QAEV,KAAK;AACI,iBAAA;AAAA,YACL,MAAM;AAAA,YACN,MAAMC,cAAA;AAAA,UAAA;AAAA,MAIZ;AACO,aAAA;AAAA,QACL,MAAM;AAAA,QACN,MAAM;AAAA,MAAA;AAAA,IACR,CACD;AACD,UAAM,mBAAmBH,cAAAA,SAAS,MAAA;;AAAM,yBAAM,YAAN,mBAAe;AAAA,KAAgB;AACvE,UAAM,SAASA,cAAAA,SAAS,MAAA;;AAAM,yBAAM,kBAAN,mBAAqB;AAAA,KAAM;AAEzD,UAAM,YAAY,MAAM;;AACtB,UAAI,iBAAiB,UAAUD,iBAAc,MAAM,UAAU;AACrD,cAAA,WAAS,WAAM,YAAN,mBAAe,UAAS,SAAQ,WAAM,YAAN,mBAAe,MAAK,WAAM,YAAN,mBAAe;AAClFK,sBAAAA,EAAQ,YAAY;AAAA,UAClB,aAAaC,cAAa,EAAA,WAAW,QAAQ;AAAA,UAC7C,QAAQA,cAAAA,EAAa,WAAW,QAAQ,OAAO;AAAA,UAC/C,QAAQ;AAAA,YACN,YAAY,CAAC,MAAM;AAAA,YACnB,OAAM,0CAAU,UAAV,mBAAiB;AAAA,YACvB,YAAY;AAAA,cACV,iBAAiBC,uDAAA,uBAAuB,mBAAmBC,uDAAAA,WAAW,IAAI;AAAA,YAC5E;AAAA,UACF;AAAA,QAAA,CACD;AAAA,MACH;AAAA,IAAA;;;;;;;;;;;;;;;;;;AC3EF,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"message-call-group.js","sources":["TUIKit/plugins/plugin-components/message-call/message-call-group.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9UVUlLaXQvcGx1Z2lucy9wbHVnaW4tY29tcG9uZW50cy9tZXNzYWdlLWNhbGwvbWVzc2FnZS1jYWxsLWdyb3VwLnZ1ZQ"],"sourcesContent":["<template>\n <div\n v-if=\"isCallMessage && conversationType === TYPES.CONV_GROUP\"\n :class=\"{ 'blink-text': isBlink }\"\n >\n {{ custom }}\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from '../../../adapter-vue';\nimport TUIChatEngine, { IMessageModel } from '@tencentcloud/chat-uikit-engine';\n\ninterface IProps {\n message: IMessageModel;\n signalingInfo: any;\n customContent: any;\n blinkMessageIDList?: string[];\n}\n\nconst props = withDefaults(defineProps<IProps>(), {\n message: () => ({}) as IMessageModel,\n signalingInfo: () => ({}),\n customContent: () => ({}),\n blinkMessageIDList: () => [],\n});\n\nconst TYPES = TUIChatEngine.TYPES;\nconst isCallMessage = computed(() => !!props.signalingInfo);\nconst conversationType = computed(() => props.message?.conversationType);\nconst custom = computed(() => props.customContent?.custom);\n\nconst isBlink = computed(() => {\n if (props.message?.ID) {\n return props.blinkMessageIDList?.includes(props.message.ID);\n }\n return false;\n});\n</script>\n\n<style scoped lang=\"scss\">\n@keyframes blink-text {\n 50% {\n color: #ff9c19;\n }\n}\n\n.blink-text {\n animation: blinkText 1s linear 3;\n}\n</style>\n","import Component from 'D:/项目/tk-mini-program/TUIKit/plugins/plugin-components/message-call/message-call-group.vue'\nwx.createComponent(Component)"],"names":["TUIChatEngine","computed"],"mappings":";;;;;;;;;;;;AAoBA,UAAM,QAAQ;AAOd,UAAM,QAAQA,cAAc,GAAA;AAC5B,UAAM,gBAAgBC,cAAAA,SAAS,MAAM,CAAC,CAAC,MAAM,aAAa;AAC1D,UAAM,mBAAmBA,cAAAA,SAAS,MAAA;;AAAM,yBAAM,YAAN,mBAAe;AAAA,KAAgB;AACvE,UAAM,SAASA,cAAAA,SAAS,MAAA;;AAAM,yBAAM,kBAAN,mBAAqB;AAAA,KAAM;AAEnD,UAAA,UAAUA,cAAAA,SAAS,MAAM;;AACzB,WAAA,WAAM,YAAN,mBAAe,IAAI;AACrB,gBAAO,WAAM,uBAAN,mBAA0B,SAAS,MAAM,QAAQ;AAAA,MAC1D;AACO,aAAA;AAAA,IAAA,CACR;;;;;;;;;;;;ACpCD,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["TUIKit/tui-customer-service-plugin/index.ts"],"sourcesContent":["import TUICustomerPluginServer from './server';\nimport { isMessageInvisible } from './utils/index';\n\nconst TUICustomerServer = TUICustomerPluginServer.getInstance();\n\n// 判断消息是否为客服号的自定义消息\nconst isCustomerServicePluginMessage = TUICustomerServer.isCustomerServicePluginMessage.bind(TUICustomerServer);\n// 设置客服号\nconst setCustomerServiceAccounts = TUICustomerServer.setCustomerServiceAccounts.bind(TUICustomerServer);\n// 获取客服号\nconst getCustomerServiceAccounts = TUICustomerServer.getCustomerServiceAccounts.bind(TUICustomerServer);\n\nexport {\n isCustomerServicePluginMessage,\n isMessageInvisible,\n setCustomerServiceAccounts,\n getCustomerServiceAccounts,\n};\n"],"names":["TUICustomerPluginServer"],"mappings":";;AAGA,MAAM,oBAAoBA,uCAAAA,kBAAwB;AAGlD,MAAM,iCAAiC,kBAAkB,+BAA+B,KAAK,iBAAiB;AAE3E,kBAAkB,2BAA2B,KAAK,iBAAiB;AAEnE,kBAAkB,2BAA2B,KAAK,iBAAiB;;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"message-customer-service.js","sources":["TUIKit/plugins/plugin-components/message-customer/message-customer-service.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9UVUlLaXQvcGx1Z2lucy9wbHVnaW4tY29tcG9uZW50cy9tZXNzYWdlLWN1c3RvbWVyL21lc3NhZ2UtY3VzdG9tZXItc2VydmljZS52dWU"],"sourcesContent":["<template>\n <TUICustomerServicePlugin :message=\"props.message\" />\n</template>\n<script setup lang=\"ts\">\nimport { IMessageModel } from '@tencentcloud/chat-uikit-engine';\nimport TUICustomerServicePlugin from '../../../tui-customer-service-plugin/index.vue';\ninterface IProps {\n message: IMessageModel;\n}\nconst props = withDefaults(defineProps<IProps>(), {\n message: () => ({} as IMessageModel),\n});\n</script>\n<style lang=\"scss\" scoped>\n/* stylelint-disable-next-line no-empty-source */\n</style>\n","import Component from 'D:/项目/tk-mini-program/TUIKit/plugins/plugin-components/message-customer/message-customer-service.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;AAKA,MAAA,2BAAqC,MAAA;;;;;;;AAIrC,UAAM,QAAQ;;;;;;;;;;;ACRd,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"message-plugin-layout.js","sources":["TUIKit/plugins/plugin-components/message-plugin-layout.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9UVUlLaXQvcGx1Z2lucy9wbHVnaW4tY29tcG9uZW50cy9tZXNzYWdlLXBsdWdpbi1sYXlvdXQudnVl"],"sourcesContent":["<template>\n <div class=\"message-plugin\">\n <!-- The following is displayed in the form of messageTip -->\n <div\n v-if=\"props.showStyle === 'tip'\"\n class=\"message-plugin-tip\"\n >\n <slot name=\"messageTip\" />\n </div>\n <!-- The following is displayed in the form of messageBubble -->\n <div\n v-else-if=\"props.showStyle === 'bubble'\"\n class=\"message-plugin-bubble-content\"\n @longpress=\"handleToggleMessageItem($event, messageModel, true)\"\n @click.prevent.right=\"handleToggleMessageItem($event, messageModel)\"\n @touchstart=\"handleH5LongPress($event, messageModel, 'touchstart')\"\n @touchend=\"handleH5LongPress($event, messageModel, 'touchend')\"\n @mouseover=\"handleH5LongPress($event, messageModel, 'touchend')\"\n >\n <MessageBubble\n :messageItem=\"messageModel\"\n :content=\"messageModel.getMessageContent()\"\n :blinkMessageIDList=\"props.blinkMessageIDList\"\n :classNameList=\"props.bubbleClassNameList\"\n @resendMessage=\"resendMessage(messageModel)\"\n >\n <!-- web message-bubble is a named slot, content area slotName is messageElement -->\n <template #messageElement>\n <slot\n v-if=\"!isUniFrameWork\"\n name=\"messageBubble\"\n />\n </template>\n <!-- uni-app message-bubble is an anonymous slot, no slotName -->\n <slot\n v-if=\"isUniFrameWork\"\n name=\"messageBubble\"\n />\n </MessageBubble>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from '../../adapter-vue';\nimport { TUIStore, IMessageModel } from '@tencentcloud/chat-uikit-engine';\nimport MessageBubble from '../../components/TUIChat/message-list/message-elements/message-bubble.vue';\nimport { isUniFrameWork } from '../../utils/env';\n\ninterface IProps {\n message: IMessageModel;\n showStyle: string;\n bubbleClassNameList?: string[];\n blinkMessageIDList?: string[];\n}\n\nconst props = withDefaults(defineProps<IProps>(), {\n message: () => ({} as IMessageModel),\n showStyle: '',\n bubbleClassNameList: () => [] as string[],\n blinkMessageIDList: () => [] as string[],\n});\n\nconst emits = defineEmits(['resendMessage', 'handleToggleMessageItem', 'handleH5LongPress']);\nconst messageModel = computed(() => TUIStore.getMessageModel(props.message?.ID));\n\n// The following is for external interaction such as messageTool, no special processing is required, do not change\nconst resendMessage = (message: IMessageModel) => {\n emits('resendMessage', message);\n};\nconst handleToggleMessageItem = (e: any, message: IMessageModel, isLongpress = false) => {\n emits('handleToggleMessageItem', e, message, isLongpress);\n};\nconst handleH5LongPress = (e: any, message: IMessageModel, type: string) => {\n emits('handleH5LongPress', e, message, type);\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.message-plugin-tip {\n color: #999;\n font-size: 12px;\n overflow-wrap: anywhere;\n display: flex;\n place-content: center center;\n align-items: center;\n text-align: center;\n margin: 0 10px 10px;\n}\n\n.message-tip-highlight {\n animation: highlight 1000ms infinite;\n\n @keyframes highlight {\n 50% {\n color: #ff9c19;\n }\n }\n\n @keyframes highlight {\n 50% {\n color: #ff9c19;\n }\n }\n}\n\n:deep(.message-bubble-room) {\n .message-bubble-main-content {\n .message-body {\n .message-body-main {\n .message-body-content {\n &.content-in,\n &.content-out {\n background-color: transparent;\n border-radius: 0;\n padding: 0;\n }\n }\n }\n }\n }\n}\n</style>\n","import Component from 'D:/项目/tk-mini-program/TUIKit/plugins/plugin-components/message-plugin-layout.vue'\nwx.createComponent(Component)"],"names":["computed","TUIStore"],"mappings":";;;;;;;AA8CA,MAAA,gBAA0B,MAAA;;;;;;;;;;;AAU1B,UAAM,QAAQ;AAOd,UAAM,QAAQ;AACR,UAAA,eAAeA,uBAAS;;AAAMC,2BAAA,GAAS,iBAAgB,WAAM,YAAN,mBAAe,EAAE;AAAA,KAAC;AAGzE,UAAA,gBAAgB,CAAC,YAA2B;AAChD,YAAM,iBAAiB,OAAO;AAAA,IAAA;AAEhC,UAAM,0BAA0B,CAAC,GAAQ,SAAwB,cAAc,UAAU;AACjF,YAAA,2BAA2B,GAAG,SAAS,WAAW;AAAA,IAAA;AAE1D,UAAM,oBAAoB,CAAC,GAAQ,SAAwB,SAAiB;AACpE,YAAA,qBAAqB,GAAG,SAAS,IAAI;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzE7C,GAAG,gBAAgB,SAAS;"}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"message-room-default.js","sources":["TUIKit/plugins/plugin-components/message-room/message-room-default.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9UVUlLaXQvcGx1Z2lucy9wbHVnaW4tY29tcG9uZW50cy9tZXNzYWdlLXJvb20vbWVzc2FnZS1yb29tLWRlZmF1bHQudnVl"],"sourcesContent":["<template>\n <div\n :class=\"[\n 'room-default',\n isUniFrameWork && 'room-default-uni',\n props.message.flow === 'in' ? 'room-default-in' : 'room-default-out',\n ]\"\n >\n {{ TUITranslateService.t(\"message.custom.自定义消息\") }}\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { TUITranslateService, IMessageModel } from '@tencentcloud/chat-uikit-engine';\nimport { isUniFrameWork } from '../../../utils/env';\n\ninterface IProps {\n message: IMessageModel;\n}\nconst props = withDefaults(defineProps<IProps>(), {\n message: () => ({} as IMessageModel),\n});\n</script>\n<style lang=\"scss\" scoped>\n.room-default {\n padding: 12px;\n font-size: 14px;\n\n &-uni{\n padding: 0;\n }\n\n &-in {\n background: #fbfbfb;\n border-radius: 0 10px;\n }\n\n &-out {\n background: #dceafd;\n border-radius: 10px 0 10px 10px;\n }\n}\n</style>\n","import Component from 'D:/项目/tk-mini-program/TUIKit/plugins/plugin-components/message-room/message-room-default.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;AAkBA,UAAM,QAAQ;;;;;;;;;;;ACjBd,GAAG,gBAAgB,SAAS;"}
|
||||
Reference in New Issue
Block a user