@innovastudio/contentbuilder 1.5.159 → 1.5.160

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.5.159",
4
+ "version": "1.5.160",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -51513,20 +51513,22 @@ class Plugin {
51513
51513
  const plugin = e.target.closest('[data-cb-type]');
51514
51514
  if (plugin) {
51515
51515
  this.builder.activePlugin = plugin;
51516
- this.renderTool();
51517
- this.pluginTool.style.display = 'flex';
51518
- let _toolwidth = this.pluginTool.offsetWidth; //to get value, element must not hidden (display:none). So set display:flex before this.
51516
+ if (!this.builder.isContentBox) {
51517
+ this.renderTool();
51518
+ this.pluginTool.style.display = 'flex';
51519
+ let _toolwidth = this.pluginTool.offsetWidth; //to get value, element must not hidden (display:none). So set display:flex before this.
51519
51520
 
51520
- let w = plugin.offsetWidth * this.builder.opts.zoom;
51521
- let top = plugin.getBoundingClientRect().top + this.builder.win.pageYOffset;
51522
- let left = plugin.getBoundingClientRect().left - 2;
51523
- left = left + (w - _toolwidth);
51521
+ let w = plugin.offsetWidth * this.builder.opts.zoom;
51522
+ let top = plugin.getBoundingClientRect().top + this.builder.win.pageYOffset;
51523
+ let left = plugin.getBoundingClientRect().left - 2;
51524
+ left = left + (w - _toolwidth);
51524
51525
 
51525
- //Adjust left in case an element is outside the screen
51526
- const _screenwidth = window.innerWidth;
51527
- if (_toolwidth + left > _screenwidth) left = plugin.getBoundingClientRect().left;
51528
- this.pluginTool.style.top = top + 'px';
51529
- this.pluginTool.style.left = left + 'px';
51526
+ //Adjust left in case an element is outside the screen
51527
+ const _screenwidth = window.innerWidth;
51528
+ if (_toolwidth + left > _screenwidth) left = plugin.getBoundingClientRect().left;
51529
+ this.pluginTool.style.top = top + 'px';
51530
+ this.pluginTool.style.left = left + 'px';
51531
+ }
51530
51532
  } else {
51531
51533
  this.builder.activePlugin = null;
51532
51534
  if (this.pluginTool) this.pluginTool.style.display = '';
@@ -80816,6 +80818,9 @@ class ContentStuff {
80816
80818
  <div class="is-tool is-iframe-tool">
80817
80819
  <button title="${util.out('Settings')}" data-title="${util.out('Settings')}" style="width:40px;height:40px;background:none;"><svg class="is-icon-flex"><use xlink:href="#icon-cog"></use></svg></button>
80818
80820
  </div>
80821
+ <div class="is-tool is-plugin-tool">
80822
+ <button title="${util.out('Settings')}" data-title="${util.out('Settings')}" style="width:40px;height:40px;background:none;"><svg class="is-icon-flex"><use xlink:href="#icon-cog"></use></svg></button>
80823
+ </div>
80819
80824
  <div class="is-tool is-module-tool">
80820
80825
  <button class="btn-module-refresh" title="${util.out('Refresh')}" data-title="${util.out('Refresh')}" style="width:40px;height:40px;"><svg class="is-icon-flex"><use xlink:href="#icon-reload"></use></svg></button>
80821
80826
  <button class="btn-module-settings" title="${util.out('Settings')}" data-title="${util.out('Settings')}" style="width:40px;height:40px;"><svg class="is-icon-flex"><use xlink:href="#icon-cog"></use></svg></button>
@@ -81221,20 +81226,24 @@ class ContentStuff {
81221
81226
  /*
81222
81227
  .is-tool.is-video-tool,
81223
81228
  .is-tool.is-audio-tool,
81229
+ .is-tool.is-plugin-tool,
81224
81230
  .is-tool.is-iframe-tool {
81225
81231
  background: rgba(0, 0, 0, 0.15);
81226
81232
  border: transparent 1px solid;
81227
81233
  }
81228
81234
  .is-tool.is-video-tool > div,
81229
81235
  .is-tool.is-audio-tool > div,
81236
+ .is-tool.is-plugin-tool > div,
81230
81237
  .is-tool.is-iframe-tool > div,
81231
81238
  .is-tool.is-video-tool > button,
81232
81239
  .is-tool.is-audio-tool > button,
81240
+ .is-tool.is-plugin-tool > button,
81233
81241
  .is-tool.is-iframe-tool > button {
81234
81242
  background: transparent;
81235
81243
  }
81236
81244
  .is-tool.is-video-tool svg,
81237
81245
  .is-tool.is-audio-tool svg,
81246
+ .is-tool.is-plugin-tool svg,
81238
81247
  .is-tool.is-iframe-tool svg {
81239
81248
  fill: #fff;
81240
81249
  }
@@ -81244,6 +81253,7 @@ class ContentStuff {
81244
81253
  .is-tool.is-table-tool,
81245
81254
  .is-tool.is-code-tool,
81246
81255
  .is-tool.is-module-tool,
81256
+ .is-tool.is-plugin-tool,
81247
81257
  .is-tool#divLinkTool,
81248
81258
  .is-tool#divButtonTool,
81249
81259
  .is-tool.is-svg-tool {
@@ -81257,6 +81267,7 @@ class ContentStuff {
81257
81267
  .is-tool.is-table-tool > button,
81258
81268
  .is-tool.is-code-tool > button,
81259
81269
  .is-tool.is-module-tool > button,
81270
+ .is-tool.is-plugin-tool > button,
81260
81271
  .is-tool#divLinkTool > button,
81261
81272
  .is-tool#divButtonTool > button,
81262
81273
  .is-tool.is-svg-tool > button {
@@ -81269,6 +81280,7 @@ class ContentStuff {
81269
81280
  .is-tool.is-table-tool > button svg,
81270
81281
  .is-tool.is-code-tool > button svg,
81271
81282
  .is-tool.is-module-tool > button svg,
81283
+ .is-tool.is-plugin-tool > button svg,
81272
81284
  .is-tool#divLinkTool > button svg,
81273
81285
  .is-tool#divButtonTool > button svg,
81274
81286
  .is-tool.is-svg-tool > button svg {
@@ -81283,6 +81295,7 @@ class ContentStuff {
81283
81295
 
81284
81296
  .is-tool.is-video-tool,
81285
81297
  .is-tool.is-audio-tool,
81298
+ .is-tool.is-plugin-tool,
81286
81299
  .is-tool.is-iframe-tool {
81287
81300
  background: rgba(255, 255, 255, 0.97) !important;
81288
81301
  border: transparent 1px solid;
@@ -81294,6 +81307,7 @@ class ContentStuff {
81294
81307
  .is-tool.is-video-tool > button,
81295
81308
  .is-tool.is-audio-tool > div,
81296
81309
  .is-tool.is-audio-tool > button,
81310
+ .is-tool.is-plugin-tool > div,
81297
81311
  .is-tool.is-iframe-tool > div,
81298
81312
  .is-tool.is-iframe-tool > button {
81299
81313
  width: 35px !important;
@@ -81303,6 +81317,7 @@ class ContentStuff {
81303
81317
 
81304
81318
  .is-tool.is-video-tool svg,
81305
81319
  .is-tool.is-audio-tool svg,
81320
+ .is-tool.is-plugin-tool svg,
81306
81321
  .is-tool.is-iframe-tool svg {
81307
81322
  width: 17px;
81308
81323
  height: 17px;