@innovastudio/contentbuilder 1.0.71 → 1.0.72

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": "@innovastudio/contentbuilder",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "",
5
5
  "main": "public/contentbuilder/contentbuilder.esm.js",
6
6
  "files": [
@@ -39298,11 +39298,12 @@ class Image {
39298
39298
  }
39299
39299
 
39300
39300
  util.showModal(modalImageSelect);
39301
- this.builder.targetInput = modalImageLink.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
39302
-
39303
- this.builder.targetCallback = null;
39304
- this.builder.targetAssetType = 'image';
39305
39301
  }
39302
+
39303
+ this.builder.targetInput = modalImageLink.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
39304
+
39305
+ this.builder.targetCallback = null;
39306
+ this.builder.targetAssetType = 'image';
39306
39307
  });
39307
39308
  elm = modalImageLink.querySelector('.input-select2');
39308
39309
  if (elm) dom$w.addEventListener(elm, 'click', () => {
@@ -39324,11 +39325,12 @@ class Image {
39324
39325
  }
39325
39326
 
39326
39327
  util.showModal(modalImageSelect);
39327
- this.builder.targetInput = modalImageLink.querySelector('.input-link'); // used by selectAsset() (see contentbuilder.js)
39328
-
39329
- this.builder.targetCallback = null;
39330
- this.builder.targetAssetType = 'media';
39331
39328
  }
39329
+
39330
+ this.builder.targetInput = modalImageLink.querySelector('.input-link'); // used by selectAsset() (see contentbuilder.js)
39331
+
39332
+ this.builder.targetCallback = null;
39333
+ this.builder.targetAssetType = 'media';
39332
39334
  });
39333
39335
  } else {
39334
39336
  dom$w.removeClass(divImageSrc, 'image-select');
@@ -41449,12 +41451,12 @@ class Hyperlink {
41449
41451
  }
41450
41452
 
41451
41453
  util.showModal(modalFileSelect, false, null, false);
41452
- this.builder.targetInput = modal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
41453
-
41454
- this.builder.targetCallback = null;
41455
- this.builder.targetAssetType = 'all';
41456
41454
  }
41457
41455
 
41456
+ this.builder.targetInput = modal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
41457
+
41458
+ this.builder.targetCallback = null;
41459
+ this.builder.targetAssetType = 'all';
41458
41460
  e.preventDefault();
41459
41461
  e.stopImmediatePropagation();
41460
41462
  });
@@ -41546,6 +41548,11 @@ class Hyperlink {
41546
41548
 
41547
41549
  util.showModal(modalFileSelect, false, null, false);
41548
41550
  }
41551
+
41552
+ this.builder.targetInput = modal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
41553
+
41554
+ this.builder.targetCallback = null;
41555
+ this.builder.targetAssetType = 'all';
41549
41556
  });
41550
41557
  } else {
41551
41558
  modal.querySelector('.input-select').style.display = 'none';
@@ -42978,11 +42985,12 @@ class Video {
42978
42985
  }
42979
42986
 
42980
42987
  util.showModal(modalVideoSelect);
42981
- this.builder.targetInput = videoModal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
42982
-
42983
- this.builder.targetCallback = null;
42984
- this.builder.targetAssetType = 'video';
42985
42988
  }
42989
+
42990
+ this.builder.targetInput = videoModal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
42991
+
42992
+ this.builder.targetCallback = null;
42993
+ this.builder.targetAssetType = 'video';
42986
42994
  });
42987
42995
  let fileLargerVideo = videoModal.querySelector('#fileVideo1');
42988
42996
  dom$p.addEventListener(fileLargerVideo, 'change', e => {
@@ -45812,11 +45820,12 @@ class ColumnTool {
45812
45820
  }
45813
45821
 
45814
45822
  util.showModal(modalImageSelect);
45815
- this.builder.targetInput = imageSource.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
45816
-
45817
- this.builder.targetCallback = null;
45818
- this.builder.targetAssetType = 'image';
45819
45823
  }
45824
+
45825
+ this.builder.targetInput = imageSource.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
45826
+
45827
+ this.builder.targetCallback = null;
45828
+ this.builder.targetAssetType = 'image';
45820
45829
  });
45821
45830
  } else {
45822
45831
  dom$l.removeClass(divImageSrc, 'image-select');
@@ -46199,6 +46208,15 @@ class ColumnTool {
46199
46208
  const inpSrc = this.cellSettings.querySelector('.input-src');
46200
46209
  elm = this.cellSettings.querySelector('.input-select');
46201
46210
  if (elm) dom$l.addEventListener(elm, 'click', () => {
46211
+ //---default
46212
+ this.builder.targetInput = inpSrc; // used by selectAsset() (see contentbuilder.js)
46213
+
46214
+ this.builder.targetCallback = () => {
46215
+ this.applyClick();
46216
+ };
46217
+
46218
+ this.builder.targetAssetType = 'media'; //---/default
46219
+
46202
46220
  if (this.builder.opts.onFileSelectClick) {
46203
46221
  this.builder.opts.onFileSelectClick({
46204
46222
  targetInput: inpSrc,
@@ -53671,11 +53689,12 @@ class Rte {
53671
53689
  }
53672
53690
 
53673
53691
  util.showModal(modalImageSelect);
53674
- this.builder.targetInput = modalInsertImage.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
53675
-
53676
- this.builder.targetCallback = null;
53677
- this.builder.targetAssetType = 'image';
53678
53692
  }
53693
+
53694
+ this.builder.targetInput = modalInsertImage.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
53695
+
53696
+ this.builder.targetCallback = null;
53697
+ this.builder.targetAssetType = 'image';
53679
53698
  });
53680
53699
  } else {
53681
53700
  dom$5.removeClass(inputImageInsertSrc, 'image-select');