@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.
- package/compiled_src/chatbox/ImageAttachments.js +4 -2
- package/compiled_src/plugin.js +1 -0
- package/dist/{841.js → 132.js} +628 -637
- package/dist/178.js +1 -1
- package/dist/18a02a9c54e.132.js +1 -0
- package/dist/18a02a9c54e.178.js +1 -0
- package/dist/18a02a9c54e.213.js +1 -0
- package/dist/18a02a9c54e.335.js +1 -0
- package/dist/{18bb951fa49.362.js → 18a02a9c54e.362.js} +1 -1
- package/dist/18a02a9c54e.441.js +1 -0
- package/dist/18a02a9c54e.605.js +1 -0
- package/dist/{18bb951fa49.782.js → 18a02a9c54e.782.js} +1 -1
- package/dist/18a02a9c54e.app.js +1 -0
- package/dist/{18bb951fa49.index.html → 18a02a9c54e.index.html} +4 -4
- package/dist/{18bb951fa49.library.html → 18a02a9c54e.library.html} +4 -4
- package/dist/18a02a9c54e.library.js +1 -0
- package/dist/{18bb951fa49.preview.html → 18a02a9c54e.preview.html} +1 -1
- package/dist/18a02a9c54e.preview.js +1 -0
- package/dist/18a02a9c54e.screenshoot.js +1 -0
- package/dist/18a02a9c54e.webview.js +1 -0
- package/dist/213.js +102 -118
- package/dist/335.js +25 -25
- package/dist/362.js +1 -1
- package/dist/441.js +2855 -0
- package/dist/605.js +50 -50
- package/dist/782.js +1 -1
- package/dist/HASH +1 -1
- package/dist/malicious-app.js +3 -8
- package/dist/screenshoot.html +1 -1
- package/dist/screenshoot.js +429 -450
- package/package.json +1 -1
- package/dist/18bb951fa49.178.js +0 -1
- package/dist/18bb951fa49.213.js +0 -1
- package/dist/18bb951fa49.335.js +0 -1
- package/dist/18bb951fa49.605.js +0 -1
- package/dist/18bb951fa49.841.js +0 -1
- package/dist/18bb951fa49.app.js +0 -1
- package/dist/18bb951fa49.library.js +0 -1
- package/dist/18bb951fa49.preview.js +0 -1
- package/dist/18bb951fa49.screenshoot.js +0 -1
- package/dist/18bb951fa49.webview.js +0 -1
- /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.
|
|
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:
|
|
99
|
+
href: trueUrl,
|
|
98
100
|
target: "_blank"
|
|
99
101
|
}, (0, _preact.h)("img", {
|
|
100
102
|
alt: true,
|
package/compiled_src/plugin.js
CHANGED
|
@@ -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();
|