@gudhub/ssg-web-components-library 1.0.120 → 1.0.121
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/package.json
CHANGED
|
@@ -105,6 +105,11 @@ class ImageComponent extends GHComponent {
|
|
|
105
105
|
|
|
106
106
|
await this.uploadImagePath(payload);
|
|
107
107
|
|
|
108
|
+
if (this.normalizedSrc) {
|
|
109
|
+
this.generatedImageSrc = this.normalizedSrc;
|
|
110
|
+
this.dataSrc = this.normalizedSrc;
|
|
111
|
+
}
|
|
112
|
+
|
|
108
113
|
await new Promise((resolve, reject) => {
|
|
109
114
|
this.image = new Image();
|
|
110
115
|
|
|
@@ -157,6 +162,7 @@ class ImageComponent extends GHComponent {
|
|
|
157
162
|
});
|
|
158
163
|
const data = await response.json();
|
|
159
164
|
this.placeholder = data?.base64_placeholder;
|
|
165
|
+
this.normalizedSrc = data?.normalizedSrc;
|
|
160
166
|
} catch (error) {
|
|
161
167
|
console.error('Error:', error);
|
|
162
168
|
return imageSrc;
|