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.
@@ -9095,7 +9095,7 @@ var LinkPreview = __vue_component__$d;var script$7 = {
9095
9095
  LinkPreview: LinkPreview,
9096
9096
  Picker: Picker
9097
9097
  },
9098
- 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"],
9098
+ 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"],
9099
9099
  created: function created() {
9100
9100
  if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
9101
9101
  },
@@ -9191,6 +9191,7 @@ var LinkPreview = __vue_component__$d;var script$7 = {
9191
9191
  mounted: function mounted() {
9192
9192
  if (this.mapa) this.setMap();
9193
9193
  if (this.corMsg) this.setCorMsg();
9194
+ if (this.message_infos) this.setMessageInfos();
9194
9195
  this.validadeUrlToMsg();
9195
9196
  },
9196
9197
  methods: {
@@ -9233,6 +9234,25 @@ var LinkPreview = __vue_component__$d;var script$7 = {
9233
9234
  if (this.isMenuOpen) this.closeMenu();
9234
9235
  this.isEmojisOpen = !this.isEmojisOpen;
9235
9236
  },
9237
+ setMessageInfos: function setMessageInfos() {
9238
+ try {
9239
+ var REACTION = this.message_infos.REACTION;
9240
+ if (REACTION) {
9241
+ var hexa = REACTION.split("u").slice(1).map(function (code) {
9242
+ return "&#x".concat(code, ";");
9243
+ }).join('');
9244
+ var finalEmoji = REACTION.split("u").slice(1).map(function (code) {
9245
+ return String.fromCodePoint(parseInt(code, 16));
9246
+ }).join('');
9247
+ this.messageReaction = {
9248
+ hexa: hexa,
9249
+ finalEmoji: finalEmoji
9250
+ };
9251
+ }
9252
+ } catch (err) {
9253
+ console.error("Error setting message infos: ", err);
9254
+ }
9255
+ },
9236
9256
  addReaction: function addReaction(emoji) {
9237
9257
  this.messageReaction = this.messageReaction && this.messageReaction.hexa === emoji.hexa ? "" : {
9238
9258
  hexa: emoji.hexa,
@@ -9891,7 +9911,7 @@ var __vue_inject_styles__$7 = undefined;
9891
9911
  /* scoped */
9892
9912
  var __vue_scope_id__$7 = undefined;
9893
9913
  /* module identifier */
9894
- var __vue_module_identifier__$7 = "data-v-6cdc8014";
9914
+ var __vue_module_identifier__$7 = "data-v-37e8f466";
9895
9915
  /* functional template */
9896
9916
  var __vue_is_functional_template__$7 = false;
9897
9917
  /* style inject */
@@ -11345,7 +11365,7 @@ var __vue_inject_styles__$1 = undefined;
11345
11365
  /* scoped */
11346
11366
  var __vue_scope_id__$1 = undefined;
11347
11367
  /* module identifier */
11348
- var __vue_module_identifier__$1 = "data-v-e42c4b54";
11368
+ var __vue_module_identifier__$1 = "data-v-41069ed6";
11349
11369
  /* functional template */
11350
11370
  var __vue_is_functional_template__$1 = false;
11351
11371
  /* style inject */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.1.59",
3
+ "version": "1.1.60",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -13,12 +13,12 @@
13
13
  </div>
14
14
  <div class="email-custom-buttons" @click.stop>
15
15
  <template v-if="customButtons && customButtons.length">
16
- <span v-for="(button, index) in customButtons" :key="button.id || index" v-show="button.use"
17
- @click="button.callback ? button.callback(returnParams(button.params)) : $emit(button.emitName, returnParams(button.params))" :class="`${button.customClass || 'menu-mensagem'}`"
18
- v-tippy :content="button.tippyContent">
19
- <fa-icon :icon="['fas', button.icon || 'question-circle']" v-if="!button.svgIcon" />
20
- <span v-else v-html="button.svgIcon" :class="button.svgClass ? button.svgClass : ''"></span>
21
- </span>
16
+ <span v-for="(button, index) in customButtons" :key="button.id || index" v-show="button.use"
17
+ @click="button.callback ? button.callback(returnParams(button.params)) : $emit(button.emitName, returnParams(button.params))" :class="`${button.customClass || 'menu-mensagem'}`"
18
+ v-tippy :content="button.tippyContent">
19
+ <fa-icon :icon="['fas', button.icon || 'question-circle']" v-if="!button.svgIcon" />
20
+ <span v-else v-html="button.svgIcon" :class="button.svgClass ? button.svgClass : ''"></span>
21
+ </span>
22
22
  </template>
23
23
  <span
24
24
  v-if="isOpen && filteredFiles && filteredFiles.length"
@@ -226,6 +226,7 @@ export default {
226
226
  "showMenu",
227
227
  "id_ext_msg",
228
228
  "tipo_origem",
229
+ "message_infos"
229
230
  ],
230
231
  created() {
231
232
  if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
@@ -333,6 +334,7 @@ export default {
333
334
  mounted() {
334
335
  if (this.mapa) this.setMap();
335
336
  if (this.corMsg) this.setCorMsg();
337
+ if(this.message_infos) this.setMessageInfos()
336
338
  this.validadeUrlToMsg();
337
339
  },
338
340
  methods: {
@@ -372,6 +374,20 @@ export default {
372
374
  if (this.isMenuOpen) this.closeMenu();
373
375
  this.isEmojisOpen = !this.isEmojisOpen;
374
376
  },
377
+ setMessageInfos() {
378
+ try {
379
+ const { REACTION } = this.message_infos;
380
+
381
+ if (REACTION) {
382
+ const hexa = REACTION.split("u").slice(1).map(code => `&#x${code};`).join('');
383
+ const finalEmoji = REACTION.split("u").slice(1).map(code => String.fromCodePoint(parseInt(code, 16))).join('');
384
+ this.messageReaction = { hexa, finalEmoji };
385
+ }
386
+
387
+ } catch(err) {
388
+ console.error("Error setting message infos: ", err);
389
+ }
390
+ },
375
391
  addReaction(emoji) {
376
392
  this.messageReaction =
377
393
  this.messageReaction && this.messageReaction.hexa === emoji.hexa