@innovastudio/contentbox 1.0.58 → 1.0.59

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/contentbox",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "",
5
5
  "main": "public/contentbox/contentbox.esm.js",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "webpack-dev-server": "^4.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@innovastudio/contentbuilder": "^1.0.77",
41
+ "@innovastudio/contentbuilder": "^1.0.78",
42
42
  "axios": "^0.21.4",
43
43
  "cors": "^2.8.5",
44
44
  "express": "^4.17.1",
@@ -21185,8 +21185,8 @@ const renderQuickAdd = builder => {
21185
21185
  const html = `<div class="is-pop quickadd arrow-right" style="z-index:10003;">
21186
21186
  <div class="is-pop-close" style="display:none;z-index:1;width:40px;height:40px;position:absolute;top:0px;right:0px;box-sizing:border-box;padding:0;line-height:40px;font-size: 12px;color:#777;text-align:center;cursor:pointer;"><svg class="is-icon-flex" style="width:40px;height:40px;"><use xlink:href="#ion-ios-close-empty"></use></svg></div>
21187
21187
  <div class="is-pop-tabs">
21188
- <div class="is-pop-tab-item active" data-value="left">${util.out('Add to Left')}</div>
21189
- <div class="is-pop-tab-item" data-value="right">${util.out('Add to Right')}</div>
21188
+ <div class="is-pop-tab-item" data-value="left">${util.out('Add to Left')}</div>
21189
+ <div class="is-pop-tab-item active" data-value="right">${util.out('Add to Right')}</div>
21190
21190
  </div>
21191
21191
  <div style="padding:12px;display:flex;flex-direction:row;flex-flow: wrap;justify-content: center;align-items: center;">
21192
21192
  <button title="${util.out('Paragraph')}" class="add-paragraph"><span style="display:block;margin:0 0 8px;"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#icon-align-full"></use></svg></span>${util.out('Paragraph')}</button>
@@ -49120,9 +49120,9 @@ class Image {
49120
49120
  <button title="4x6" data-crop-size="0.6666" style="width: 40px;height: 60px;">4x6</button>
49121
49121
  <button title="${util.out('Free')}" data-crop-size="" style="width: 60px;height: 45px;">${util.out('Free')}</button>
49122
49122
  </div>
49123
- <div class="imageedit-preview" style="max-width:1000px;width: 100%;max-height: 550px;height: 100%;">
49123
+ <div class="imageedit-preview" style="max-width:1000px;width:100%;max-height:550px;">
49124
49124
  </div>
49125
- <div style="margin-top:7px;text-align:right;align-self:flex-end;">
49125
+ <div style="margin-top:15px;text-align:right;align-self:flex-end;">
49126
49126
  <button title="${util.out('Cancel')}" class="input-cancel classic-secondary">${util.out('Cancel')}</button>
49127
49127
  <button title="${util.out('Apply')}" class="input-ok classic-primary">${util.out('Apply')}</button>
49128
49128
  </div>
@@ -49656,6 +49656,7 @@ class Image {
49656
49656
  let preview = modalImageEdit.querySelector('.imageedit-preview');
49657
49657
  const maxW = 800;
49658
49658
  const maxH = 550;
49659
+ preview.style.height = '';
49659
49660
 
49660
49661
  if (img.offsetWidth < maxW && img.offsetHeight < maxH) {
49661
49662
  preview.style.width = img.offsetWidth + 'px';