vue-intergrall-plugins 1.1.59 → 1.1.61

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.
@@ -3485,7 +3485,7 @@ var __vue_staticRenderFns__$z = [];
3485
3485
  /* style */
3486
3486
  const __vue_inject_styles__$z = function (inject) {
3487
3487
  if (!inject) return;
3488
- inject("data-v-233fe0bc_0", {
3488
+ inject("data-v-c64dc0a2_0", {
3489
3489
  source: ".box-shadow{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.sm-emoji-picker{width:306px;height:250px;z-index:2;border:1px solid #ccc;border-radius:5px;background-color:#fff;display:flex;flex-direction:column}.sm-emoji-picker.small{height:40px!important}.sm-emoji-picker.small .sm-emoji-scroll{height:100%;max-height:100%;overflow:hidden}.sm-emoji-picker.small .sm-emoji-scroll .sm-emoji-group.small{justify-content:center;align-items:center;flex-wrap:nowrap}.add-more{--size:26px;background:#f0f0f0;border:1px solid #ccc;border-radius:50%;width:var(--size);min-width:var(--size);height:var(--size);min-height:var(--size);display:flex;justify-content:center;align-items:center;font-size:16px;font-weight:700}.sm-emoji-header{width:100%;display:flex;align-items:center;justify-content:space-between;margin:10px 0;border-bottom:1px solid #ccc}.sm-emoji-link{padding:0 5px 5px 5px;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .2s;border-bottom:2px solid transparent}.sm-emoji-link>span svg{margin:0;padding:0;fill:#999}.sm-emoji-header .sm-emoji-link:nth-last-child(-n+2)>span svg,.sm-emoji-link>span svg[stroke]{fill:none!important}.sm-emoji-link.active>span svg:not([stroke]),.sm-emoji-link:hover>span svg:not([stroke]){opacity:1;fill:#666}.sm-emoji-link.active>span svg[stroke],.sm-emoji-link:hover>span svg[stroke]{opacity:1;fill:none!important;stroke:#666}.sm-emoji-scroll{width:100%;height:calc(100% - 52px);max-height:calc(100% - 52px);scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:8px;position:relative}.sm-emoji-scroll::-webkit-scrollbar{width:8px}.sm-emoji-scroll::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.sm-emoji-scroll::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#666}.sm-emoji-scroll::-webkit-scrollbar-thumb:hover{background-color:#555}.sm-emoji-search{width:100%;display:flex;align-items:center;justify-content:center;position:sticky;top:0;z-index:1;background:#fff;padding-bottom:10px}.sm-emoji-search>input{width:90%;outline:0;border:1px solid #ccc;border-radius:2.5px;padding:5px 10px;transition:border .2s}.sm-emoji-search>input:active,.sm-emoji-search>input:focus,.sm-emoji-search>input:hover{outline:0;border:1px solid #999}.sm-emoji-search.sticky{position:fixed;width:310px;background-color:#fff}.sm-emoji-selection{width:100%;margin-bottom:10px}.sm-emoji-title{width:100%;display:flex;justify-content:flex-start;align-items:center;background-color:#f7f7f7;padding:5px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sm-emoji-title svg{margin:0 5px}.sm-emoji-group{width:100%;display:flex;flex-wrap:wrap;font-size:22px}.sm-emoji-item{cursor:pointer;opacity:.8;transition:opacity .2s;margin:3.5px}.sm-emoji-item:hover{opacity:1}",
3490
3490
  map: undefined,
3491
3491
  media: undefined
@@ -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,12 +10221,39 @@ 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,
10226
10244
  finalEmoji: emoji.finalEmoji
10227
10245
  };
10228
10246
  this.isEmojisOpen = false;
10247
+ const ckEditorContext = document.querySelector('.ck-editor');
10248
+ if (ckEditorContext) {
10249
+ this.$emit("insert-emoji", {
10250
+ finalEmoji: emoji.finalEmoji,
10251
+ hexa: emoji.hexa,
10252
+ editorType: 'ckeditor'
10253
+ });
10254
+ } else {
10255
+ this.$emit("insert-emoji", emoji);
10256
+ }
10229
10257
  this.$emit("reagir-mensagem", {
10230
10258
  emoji,
10231
10259
  seq: this.seq,