vue-intergrall-plugins 0.0.198 → 0.0.199

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.
@@ -11257,7 +11257,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11257
11257
  return _this2.$httpRequest({
11258
11258
  method: 'get',
11259
11259
  url: "".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev) // headers: {
11260
- // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
11260
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
11261
11261
  // }
11262
11262
 
11263
11263
  });
@@ -11299,7 +11299,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11299
11299
  if (og) {
11300
11300
  image = og.image, site_name = og.site_name, title = og.title, author = og.author;
11301
11301
  if (image) _this2.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
11302
- if (author || site_name || title) _this2.linkPreview.author = author ? author : site_name ? site_name : title;
11302
+ if (author || site_name || title) _this2.linkPreview.author = title ? title : author ? author : site_name ? site_name : "";
11303
11303
  if (og.description) _this2.linkPreview.description = og.description;
11304
11304
  }
11305
11305
 
@@ -11348,7 +11348,9 @@ var __vue_render__$4 = function __vue_render__() {
11348
11348
  return _vm.openUrl();
11349
11349
  }
11350
11350
  }
11351
- }, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-2c2d6aa4><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-2c2d6aa4></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div class=\"link-preview-author\" data-v-2c2d6aa4><h1 data-v-2c2d6aa4>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-2c2d6aa4>" + (_vm.linkPreview.description ? "<p data-v-2c2d6aa4>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
11351
+ }, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-0ab9360e><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-0ab9360e></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div" + _vm._ssrClass("link-preview-author", {
11352
+ 'mb-0': _vm.linkPreview.description
11353
+ }) + " data-v-0ab9360e><h1 data-v-0ab9360e>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-0ab9360e>" + (_vm.linkPreview.description ? "<p data-v-0ab9360e>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
11352
11354
  };
11353
11355
 
11354
11356
  var __vue_staticRenderFns__$4 = [];
@@ -11356,8 +11358,8 @@ var __vue_staticRenderFns__$4 = [];
11356
11358
 
11357
11359
  var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11358
11360
  if (!inject) return;
11359
- inject("data-v-2c2d6aa4_0", {
11360
- source: ".link-preview[data-v-2c2d6aa4]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin:5px 0;border-radius:5px;opacity:.95;transition:opacity .3s ease-in-out}.link-preview-image[data-v-2c2d6aa4]{display:flex;justify-content:center;align-items:center;padding:10px;margin-bottom:5px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author[data-v-2c2d6aa4]{margin:5px;font-size:.615em}.link-preview-author h1[data-v-2c2d6aa4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-2c2d6aa4]{min-width:100px;max-width:200px}.link-preview-infos[data-v-2c2d6aa4]{background-color:#2626261a;padding:5px;margin:0 5px 5px 5px;font-size:.8rem;border-radius:5px}.link-preview[data-v-2c2d6aa4]:hover{opacity:1}.link-preview:hover .link-preview-infos p[data-v-2c2d6aa4]{text-decoration:underline}",
11361
+ inject("data-v-0ab9360e_0", {
11362
+ source: ".link-preview[data-v-0ab9360e]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin:5px 0;border-radius:5px;opacity:.95;transition:opacity .3s ease-in-out;font-size:.85rem}.link-preview-image[data-v-0ab9360e]{display:flex;justify-content:center;align-items:center;padding:1px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author[data-v-0ab9360e]{margin:5px;font-size:.615em;font-weight:700}.link-preview-author.mb-0[data-v-0ab9360e]{margin-bottom:0}.link-preview-author h1[data-v-0ab9360e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-0ab9360e]{min-width:100px;max-width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-infos[data-v-0ab9360e]{background-color:#2626261a;padding:5px;margin:5px;font-size:.83em;border-radius:5px}.link-preview[data-v-0ab9360e]:hover{opacity:1}.link-preview:hover .link-preview-infos p[data-v-0ab9360e]{text-decoration:underline}",
11361
11363
  map: undefined,
11362
11364
  media: undefined
11363
11365
  });
@@ -11365,10 +11367,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11365
11367
  /* scoped */
11366
11368
 
11367
11369
 
11368
- var __vue_scope_id__$4 = "data-v-2c2d6aa4";
11370
+ var __vue_scope_id__$4 = "data-v-0ab9360e";
11369
11371
  /* module identifier */
11370
11372
 
11371
- var __vue_module_identifier__$4 = "data-v-2c2d6aa4";
11373
+ var __vue_module_identifier__$4 = "data-v-0ab9360e";
11372
11374
  /* functional template */
11373
11375
 
11374
11376
  var __vue_is_functional_template__$4 = false;
@@ -11579,11 +11581,7 @@ var __vue_render__$3 = function __vue_render__() {
11579
11581
  mapa: _vm.mapa,
11580
11582
  'hist-msg': _vm.histMsg
11581
11583
  }
11582
- }, [_vm.link && !_vm.mapa ? _c('LinkPreview', {
11583
- attrs: {
11584
- "message": _vm.message
11585
- }
11586
- }) : _vm._e(), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
11584
+ }, [_vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
11587
11585
  return _c('div', {
11588
11586
  key: index,
11589
11587
  staticClass: "mensagem-anexo"
@@ -11639,7 +11637,11 @@ var __vue_render__$3 = function __vue_render__() {
11639
11637
  "icon": ['fas', 'map-marker-alt']
11640
11638
  }
11641
11639
  })], 1)], 2);
11642
- }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('p', {
11640
+ }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.link && !_vm.mapa ? _c('LinkPreview', {
11641
+ attrs: {
11642
+ "message": _vm.message
11643
+ }
11644
+ }) : _vm._e(), _vm._v(" "), _c('p', {
11643
11645
  domProps: {
11644
11646
  "innerHTML": _vm._s(_vm.validateInterativity() ? '' : _vm.formatMsg(_vm.message))
11645
11647
  }
@@ -11836,7 +11838,7 @@ var __vue_staticRenderFns__$3 = [];
11836
11838
 
11837
11839
  var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11838
11840
  if (!inject) return;
11839
- inject("data-v-20d99c88_0", {
11841
+ inject("data-v-257d4492_0", {
11840
11842
  source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
11841
11843
  map: undefined,
11842
11844
  media: undefined
@@ -11848,7 +11850,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11848
11850
  var __vue_scope_id__$3 = undefined;
11849
11851
  /* module identifier */
11850
11852
 
11851
- var __vue_module_identifier__$3 = "data-v-20d99c88";
11853
+ var __vue_module_identifier__$3 = "data-v-257d4492";
11852
11854
  /* functional template */
11853
11855
 
11854
11856
  var __vue_is_functional_template__$3 = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.198",
3
+ "version": "0.0.199",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -6,7 +6,6 @@
6
6
  :dictionary="dictionary"
7
7
  />
8
8
  <div v-else class="mensagem" :class="{mapa, 'hist-msg' : histMsg}">
9
- <LinkPreview v-if="link && !mapa" :message="message" />
10
9
  <template v-if="anexos && anexos.length">
11
10
  <div class="mensagem-anexo" v-for="(anexo, index) in anexos" :key="index">
12
11
  <AnexoMensagem :dictionary="dictionary" :anexo="anexo" :origemExterna="origemExterna" :dominio="dominio" @abrir-imagem="abrirImagem"/>
@@ -30,6 +29,7 @@
30
29
  </li>
31
30
  </ul>
32
31
  </div>
32
+ <LinkPreview v-if="link && !mapa" :message="message" />
33
33
  <p v-html="validateInterativity() ? '' : formatMsg(message)"></p>
34
34
  <InteratividadeBotoes
35
35
  v-if="interatividade"
@@ -12,7 +12,7 @@
12
12
  >
13
13
  <img :src="linkPreview.imageSource" alt="Imagem referente ao link" />
14
14
  </div>
15
- <div class="link-preview-author" v-if="linkPreview.author">
15
+ <div class="link-preview-author" :class="{'mb-0' : linkPreview.description}" v-if="linkPreview.author">
16
16
  <h1 v-text="linkPreview.author"></h1>
17
17
  </div>
18
18
  <div v-if="linkPreview.description" class="link-preview-infos">
@@ -68,7 +68,7 @@ export default {
68
68
  method: 'get',
69
69
  url: `${baseURL}/preview?url=${encodedURL}${dev}`,
70
70
  // headers: {
71
- // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
71
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
72
72
  // }
73
73
  })
74
74
  if(typeof response != "object" || typeof response.data != "object") throw "Retorno incorreto"
@@ -82,7 +82,7 @@ export default {
82
82
  if(og) {
83
83
  const { image, site_name, title, author } = og
84
84
  if(image) this.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image
85
- if(author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title
85
+ if(author || site_name || title) this.linkPreview.author = title ? title : author ? author : site_name ? site_name : ""
86
86
  if(og.description) this.linkPreview.description = og.description
87
87
  }
88
88
  if(theme_color) this.linkPreview.colorTheme = theme_color
@@ -112,21 +112,25 @@ export default {
112
112
  border-radius: 5px;
113
113
  opacity: .95;
114
114
  transition: opacity 300ms ease-in-out;
115
+ font-size: .85rem;
115
116
  }
116
117
 
117
118
  .link-preview-image {
118
119
  display: flex;
119
120
  justify-content: center;
120
121
  align-items: center;
121
- padding: 10px;
122
- margin-bottom: 5px;
122
+ padding: 1px;
123
123
  border-top-left-radius: 5px;
124
124
  border-top-right-radius: 5px;
125
125
  }
126
126
 
127
127
  .link-preview-author {
128
128
  margin: 5px;
129
- font-size: .615em
129
+ font-size: .615em;
130
+ font-weight: bold;
131
+ }
132
+ .link-preview-author.mb-0 {
133
+ margin-bottom: 0;
130
134
  }
131
135
  .link-preview-author h1 {
132
136
  overflow: hidden;
@@ -136,14 +140,16 @@ export default {
136
140
 
137
141
  .link-preview-image img {
138
142
  min-width: 100px;
139
- max-width: 200px;
143
+ max-width: 100%;
144
+ border-top-left-radius: 5px;
145
+ border-top-right-radius: 5px;
140
146
  }
141
147
 
142
148
  .link-preview-infos {
143
149
  background-color: #2626261a;
144
150
  padding: 5px;
145
- margin: 0 5px 5px 5px;
146
- font-size: .8rem;
151
+ margin: 5px;
152
+ font-size: .83em;
147
153
  border-radius: 5px;
148
154
  }
149
155