@subiz/widget-v4 4.1.48 → 4.1.49

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.
Files changed (42) hide show
  1. package/compiled_src/chatbox/ImageAttachments.js +4 -2
  2. package/compiled_src/plugin.js +1 -0
  3. package/dist/{841.js → 132.js} +628 -637
  4. package/dist/178.js +1 -1
  5. package/dist/18a02a9c54e.132.js +1 -0
  6. package/dist/18a02a9c54e.178.js +1 -0
  7. package/dist/18a02a9c54e.213.js +1 -0
  8. package/dist/18a02a9c54e.335.js +1 -0
  9. package/dist/{18bb951fa49.362.js → 18a02a9c54e.362.js} +1 -1
  10. package/dist/18a02a9c54e.441.js +1 -0
  11. package/dist/18a02a9c54e.605.js +1 -0
  12. package/dist/{18bb951fa49.782.js → 18a02a9c54e.782.js} +1 -1
  13. package/dist/18a02a9c54e.app.js +1 -0
  14. package/dist/{18bb951fa49.index.html → 18a02a9c54e.index.html} +4 -4
  15. package/dist/{18bb951fa49.library.html → 18a02a9c54e.library.html} +4 -4
  16. package/dist/18a02a9c54e.library.js +1 -0
  17. package/dist/{18bb951fa49.preview.html → 18a02a9c54e.preview.html} +1 -1
  18. package/dist/18a02a9c54e.preview.js +1 -0
  19. package/dist/18a02a9c54e.screenshoot.js +1 -0
  20. package/dist/18a02a9c54e.webview.js +1 -0
  21. package/dist/213.js +102 -118
  22. package/dist/335.js +25 -25
  23. package/dist/362.js +1 -1
  24. package/dist/441.js +2855 -0
  25. package/dist/605.js +50 -50
  26. package/dist/782.js +1 -1
  27. package/dist/HASH +1 -1
  28. package/dist/malicious-app.js +3 -8
  29. package/dist/screenshoot.html +1 -1
  30. package/dist/screenshoot.js +429 -450
  31. package/package.json +1 -1
  32. package/dist/18bb951fa49.178.js +0 -1
  33. package/dist/18bb951fa49.213.js +0 -1
  34. package/dist/18bb951fa49.335.js +0 -1
  35. package/dist/18bb951fa49.605.js +0 -1
  36. package/dist/18bb951fa49.841.js +0 -1
  37. package/dist/18bb951fa49.app.js +0 -1
  38. package/dist/18bb951fa49.library.js +0 -1
  39. package/dist/18bb951fa49.preview.js +0 -1
  40. package/dist/18bb951fa49.screenshoot.js +0 -1
  41. package/dist/18bb951fa49.webview.js +0 -1
  42. /package/dist/{18bb951fa49.678.js → 18a02a9c54e.678.js} +0 -0
@@ -74,7 +74,7 @@ class ImageAttachment extends _common.Com {
74
74
  return (0, _preact.h)("div", {
75
75
  class: `image-attachment image-attachment--${byType}`
76
76
  }, (0, _preact.h)("a", {
77
- href: this.props.store.replaceFileUrl(image.thumbnail_url || image.url),
77
+ href: this.props.store.replaceFileUrl(image.url),
78
78
  target: "_blank"
79
79
  }, (0, _preact.h)("img", {
80
80
  alt: true,
@@ -88,13 +88,15 @@ class ImageAttachment extends _common.Com {
88
88
  height
89
89
  } = this.calculateImageDimension(image);
90
90
  let url = this.props.store.replaceFileUrl(image.thumbnail_url || image.url);
91
+ let trueUrl = this.props.store.replaceFileUrl(image.url);
91
92
  if (this.state.errorIndecies.includes(index)) {
92
93
  url = require('../../assets/img/default.jpg');
94
+ trueUrl = url;
93
95
  }
94
96
  return (0, _preact.h)("div", {
95
97
  class: `image-attachment image-attachment--${byType}`
96
98
  }, (0, _preact.h)("a", {
97
- href: url,
99
+ href: trueUrl,
98
100
  target: "_blank"
99
101
  }, (0, _preact.h)("img", {
100
102
  alt: true,
@@ -18,6 +18,7 @@ function Plugin(plugin, store, $container, lib) {
18
18
  if (!$container) throw '$div must is a valid html node';
19
19
  var $div = document.createElement('div');
20
20
  $div.id = plugin.id;
21
+ $div.setAttribute('sbz-plugin-type', plugin.type);
21
22
  $container.appendChild($div);
22
23
  let _locale = common.getLocale(plugin, _index.default.detectLang());
23
24
  var domGate = new _index.default.Gate();