@innovastudio/contentbox 1.2.0 → 1.2.1

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.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "main": "public/contentbox/contentbox.esm.js",
6
6
  "files": [
@@ -39,7 +39,7 @@
39
39
  "webpack-dev-server": "^4.0.0"
40
40
  },
41
41
  "dependencies": {
42
- "@innovastudio/contentbuilder": "^1.1.3",
42
+ "@innovastudio/contentbuilder": "^1.1.4",
43
43
  "axios": "^0.21.4",
44
44
  "cors": "^2.8.5",
45
45
  "express": "^4.17.1",
@@ -26096,18 +26096,31 @@ const renderQuickAdd = builder => {
26096
26096
  elm = quickadd.querySelector('.add-button');
26097
26097
  if (elm) dom$F.addEventListener(elm, 'click', () => {
26098
26098
  const mode = quickadd.getAttribute('data-mode');
26099
- const html = `<div>
26099
+ let html = `<div>
26100
26100
  <a href="#" class="transition-all inline-block cursor-pointer no-underline border-2 border-solid border-transparent ml-1 mr-1 hover:border-transparent rounded bg-gray-200 hover:bg-gray-300 tracking-75 uppercase py-2 size-14 px-8 font-semibold text-gray-600">Read More</a>
26101
26101
  </div>`;
26102
+
26103
+ if (builder.opts.emailMode) {
26104
+ html = '<div><a href="#" style="margin-top: ;margin-right: ;margin-bottom: ;margin-left: ;display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border-style: solid; cursor: pointer; background-color: rgb(220, 220, 220); color: rgb(0, 0, 0); border-color: rgb(220, 220, 220); border-width: 2px; border-radius: 0px; padding: 13px 28px; line-height: 21px; text-transform: uppercase; font-weight: 400; font-size: 14px; letter-spacing: 3px;">Read More</a></div>';
26105
+ }
26106
+
26102
26107
  util.addContent(html, mode);
26103
26108
  });
26104
26109
  elm = quickadd.querySelector('.add-twobutton');
26105
26110
  if (elm) dom$F.addEventListener(elm, 'click', () => {
26106
26111
  const mode = quickadd.getAttribute('data-mode');
26107
- const html = `<div>
26112
+ let html = `<div>
26108
26113
  <a href="#" class="transition-all inline-block cursor-pointer no-underline border-2 border-solid border-transparent ml-1 mr-1 hover:border-transparent rounded bg-gray-200 hover:bg-gray-300 tracking-75 uppercase py-2 size-14 px-8 font-semibold text-gray-600">Read More</a>
26109
26114
  <a href="#" class="transition-all inline-block cursor-pointer no-underline border-2 border-solid ml-1 mr-1 rounded tracking-75 uppercase py-2 size-14 px-8 border-current hover:border-transparent hover:text-white font-semibold text-indigo-500 hover:bg-indigo-500">Get Started</a>
26110
26115
  </div>`;
26116
+
26117
+ if (builder.opts.emailMode) {
26118
+ html = `<div>
26119
+ <a href="#" style="margin-top: ;margin-right: ;margin-bottom: ;margin-left: ;display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border-style: solid; cursor: pointer; background-color: rgb(220, 220, 220); color: rgb(0, 0, 0); border-color: rgb(220, 220, 220); border-width: 2px; border-radius: 0px; padding: 13px 28px; line-height: 21px; text-transform: uppercase; font-weight: 400; font-size: 14px; letter-spacing: 3px;">Read More</a> &nbsp;
26120
+ <a href="#" style="display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border-style: solid; cursor: pointer; background-color: rgba(0, 0, 0, 0); border-color: rgb(53, 53, 53); border-width: 2px; border-radius: 0px; padding: 13px 28px; line-height: 21px; text-transform: uppercase; font-weight: 600; font-size: 14px; letter-spacing: 3px; color: rgb(53, 53, 53);">Get Started</a>
26121
+ </div>`;
26122
+ }
26123
+
26111
26124
  util.addContent(html, mode);
26112
26125
  });
26113
26126
  elm = quickadd.querySelector('.add-spacer');
@@ -80756,10 +80769,6 @@ class ContentBox {
80756
80769
  name: 'symbols',
80757
80770
  showInMainToolbar: true,
80758
80771
  showInElementToolbar: false
80759
- }, {
80760
- name: 'buttoneditor',
80761
- showInMainToolbar: false,
80762
- showInElementToolbar: false
80763
80772
  }],
80764
80773
  disableConfig: false,
80765
80774
  useLightbox: true,