@gudhub/ssg-web-components-library 1.0.120 → 1.0.122

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gudhub/ssg-web-components-library",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -277,6 +277,7 @@ get-in-touch-form {
277
277
  font-size: 12px;
278
278
  line-height: 1.4;
279
279
  opacity: 0.7;
280
+ color: white;
280
281
  text-align: center;
281
282
  }
282
283
 
@@ -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;