vue-intergrall-plugins 1.1.59 → 1.1.60
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.
|
@@ -10083,7 +10083,7 @@ var script$7 = {
|
|
|
10083
10083
|
LinkPreview,
|
|
10084
10084
|
Picker
|
|
10085
10085
|
},
|
|
10086
|
-
props: ["hasTranscription", "transcriptionText", "transcriptionLoading", "emitContactClick", "smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector", "replyMessage", "isReply", "defaultReplyMessage", "showReplyIcon", "showControlFiles", "showMenu", "id_ext_msg", "tipo_origem"],
|
|
10086
|
+
props: ["hasTranscription", "transcriptionText", "transcriptionLoading", "emitContactClick", "smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector", "replyMessage", "isReply", "defaultReplyMessage", "showReplyIcon", "showControlFiles", "showMenu", "id_ext_msg", "tipo_origem", "message_infos"],
|
|
10087
10087
|
created() {
|
|
10088
10088
|
if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
|
|
10089
10089
|
},
|
|
@@ -10178,6 +10178,7 @@ var script$7 = {
|
|
|
10178
10178
|
mounted() {
|
|
10179
10179
|
if (this.mapa) this.setMap();
|
|
10180
10180
|
if (this.corMsg) this.setCorMsg();
|
|
10181
|
+
if (this.message_infos) this.setMessageInfos();
|
|
10181
10182
|
this.validadeUrlToMsg();
|
|
10182
10183
|
},
|
|
10183
10184
|
methods: {
|
|
@@ -10220,6 +10221,23 @@ var script$7 = {
|
|
|
10220
10221
|
if (this.isMenuOpen) this.closeMenu();
|
|
10221
10222
|
this.isEmojisOpen = !this.isEmojisOpen;
|
|
10222
10223
|
},
|
|
10224
|
+
setMessageInfos() {
|
|
10225
|
+
try {
|
|
10226
|
+
const {
|
|
10227
|
+
REACTION
|
|
10228
|
+
} = this.message_infos;
|
|
10229
|
+
if (REACTION) {
|
|
10230
|
+
const hexa = REACTION.split("u").slice(1).map(code => `&#x${code};`).join('');
|
|
10231
|
+
const finalEmoji = REACTION.split("u").slice(1).map(code => String.fromCodePoint(parseInt(code, 16))).join('');
|
|
10232
|
+
this.messageReaction = {
|
|
10233
|
+
hexa,
|
|
10234
|
+
finalEmoji
|
|
10235
|
+
};
|
|
10236
|
+
}
|
|
10237
|
+
} catch (err) {
|
|
10238
|
+
console.error("Error setting message infos: ", err);
|
|
10239
|
+
}
|
|
10240
|
+
},
|
|
10223
10241
|
addReaction(emoji) {
|
|
10224
10242
|
this.messageReaction = this.messageReaction && this.messageReaction.hexa === emoji.hexa ? "" : {
|
|
10225
10243
|
hexa: emoji.hexa,
|