@innovastudio/contentbuilder 1.4.39 → 1.4.40

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.4.39",
4
+ "version": "1.4.40",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -77288,6 +77288,24 @@ class Responsive {
77288
77288
 
77289
77289
  readTarget(area) {
77290
77290
  const inp = area.querySelector('.input-device.on');
77291
+ const target = inp.getAttribute('data-value');
77292
+
77293
+ if (target === '') {
77294
+ this.builder.livePreview.resizePreview(1920);
77295
+ }
77296
+
77297
+ if (target === 'md') {
77298
+ this.builder.livePreview.resizePreview(1024);
77299
+ }
77300
+
77301
+ if (target === 'sm') {
77302
+ this.builder.livePreview.resizePreview(768);
77303
+ }
77304
+
77305
+ if (target === 'xs') {
77306
+ this.builder.livePreview.resizePreview(375);
77307
+ }
77308
+
77291
77309
  return inp.getAttribute('data-value');
77292
77310
  }
77293
77311