@innovastudio/contentbuilder 1.5.63 → 1.5.65

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.63",
4
+ "version": "1.5.65",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -4694,6 +4694,11 @@ button:focus-visible {
4694
4694
  .is-ui .pickgradientcolor .label-saved {
4695
4695
  margin-top: 20px;
4696
4696
  }
4697
+ #_cbhtml .pickgradientcolor .label-gradient-colors,
4698
+ .is-ui .pickgradientcolor .label-gradient-colors {
4699
+ margin-top: 20px;
4700
+ margin-bottom: 10px;
4701
+ }
4697
4702
  #_cbhtml .pickgradientcolor .div-saved,
4698
4703
  .is-ui .pickgradientcolor .div-saved {
4699
4704
  display: flex;
@@ -4851,7 +4856,7 @@ button:focus-visible {
4851
4856
  width: 100%;
4852
4857
  max-width: 600px;
4853
4858
  height: 15px;
4854
- margin: 25px 0 15px -2px;
4859
+ margin: 20px 0 15px -2px;
4855
4860
  width: calc(100% - 28px);
4856
4861
  }
4857
4862
  #_cbhtml .gradient-slider-container .gradient-slider-container-shadow,
@@ -64237,7 +64237,7 @@ class GradientPicker {
64237
64237
  <div class="label-saved">${this.out('Saved')}:</div>
64238
64238
  <div class="div-saved"></div>
64239
64239
 
64240
- <div class="label-saved">${this.out('Gradient Colors')}:</div>
64240
+ <div class="label-gradient-colors">${this.out('Gradient Colors')}:</div>
64241
64241
 
64242
64242
  <div class="gradient-slider" role="application"></div>
64243
64243
 
@@ -74657,10 +74657,21 @@ function injectAssets(url, waitFor, callback) {
74657
74657
  };
74658
74658
  document.body.appendChild(script);
74659
74659
  }
74660
+
74661
+ // Modified:
74660
74662
  function isMobile$1() {
74663
+ if (typeof window === "undefined") {
74664
+ // This means we're on the server, return false or handle appropriately
74665
+ return false;
74666
+ }
74661
74667
  return 'navigator' in window && window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);
74662
74668
  }
74669
+ // Modified:
74663
74670
  function isTouch$1() {
74671
+ if (typeof document === "undefined") {
74672
+ // This means we're on the server, return false or handle appropriately
74673
+ return false;
74674
+ }
74664
74675
  return isMobile$1() !== null || document.createTouch !== undefined || 'ontouchstart' in window || 'onmsgesturechange' in window || navigator.msMaxTouchPoints;
74665
74676
  }
74666
74677
  function isFunction(f) {
@@ -76330,7 +76341,13 @@ class Slide {
76330
76341
  const version = '3.2.0';
76331
76342
  const isMobile = isMobile$1();
76332
76343
  const isTouch = isTouch$1();
76333
- const html = document.getElementsByTagName('html')[0];
76344
+
76345
+ // Modified:
76346
+ // let html = document.getElementsByTagName('html')[0];
76347
+ let html;
76348
+ if (typeof document === "undefined") ; else {
76349
+ html = document.getElementsByTagName('html')[0];
76350
+ }
76334
76351
  const defaults = {
76335
76352
  selector: '.glightbox',
76336
76353
  elements: null,