@innovastudio/contentbuilder 1.4.120 → 1.4.122
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
|
@@ -10713,7 +10713,7 @@ class HtmlUtil {
|
|
|
10713
10713
|
// Do not use imgUrl directly, change base to [%PATH%] instead
|
|
10714
10714
|
// (to prevent auto converting back to relative path)
|
|
10715
10715
|
|
|
10716
|
-
let urlBase = location.href.substring(0, location.href.lastIndexOf('/'));
|
|
10716
|
+
let urlBase = window.location.href.substring(0, window.location.href.lastIndexOf('/'));
|
|
10717
10717
|
return imgUrl.replace(urlBase, '[%PATH%]');
|
|
10718
10718
|
|
|
10719
10719
|
// Example:
|
|
@@ -11718,30 +11718,38 @@ const prepareSvgIcons = builder => {
|
|
|
11718
11718
|
<path d="M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"></path>
|
|
11719
11719
|
<line x1="16" y1="9" x2="18" y2="9"></line>
|
|
11720
11720
|
</symbol>
|
|
11721
|
-
<symbol id="icon-device-desktop" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11721
|
+
<symbol id="icon-device-desktop" viewBox="0 0 24 24" stroke-width="1.2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11722
11722
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
11723
11723
|
<rect x="3" y="4" width="18" height="12" rx="1"></rect>
|
|
11724
11724
|
<line x1="7" y1="20" x2="17" y2="20"></line>
|
|
11725
11725
|
<line x1="9" y1="16" x2="9" y2="20"></line>
|
|
11726
11726
|
<line x1="15" y1="16" x2="15" y2="20"></line>
|
|
11727
11727
|
</symbol>
|
|
11728
|
-
<symbol id="icon-device-mobile" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11728
|
+
<symbol id="icon-device-mobile" viewBox="0 0 24 24" stroke-width="1.2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11729
11729
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
11730
11730
|
<rect x="6" y="3" width="12" height="18" rx="2"></rect>
|
|
11731
11731
|
<line x1="11" y1="4" x2="13" y2="4"></line>
|
|
11732
11732
|
<line x1="12" y1="17" x2="12" y2="17.01"></line>
|
|
11733
11733
|
</symbol>
|
|
11734
|
-
<symbol id="icon-device-laptop" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11734
|
+
<symbol id="icon-device-laptop" viewBox="0 0 24 24" stroke-width="1.2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11735
11735
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
11736
11736
|
<line x1="3" y1="19" x2="21" y2="19"></line>
|
|
11737
11737
|
<rect x="5" y="6" width="14" height="10" rx="1"></rect>
|
|
11738
11738
|
</symbol>
|
|
11739
|
-
<symbol id="icon-device-tablet" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11739
|
+
<symbol id="icon-device-tablet" viewBox="0 0 24 24" stroke-width="1.2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11740
11740
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
11741
11741
|
<rect x="5" y="3" width="14" height="18" rx="1"></rect>
|
|
11742
11742
|
<circle cx="12" cy="17" r="1"></circle>
|
|
11743
11743
|
</symbol>
|
|
11744
11744
|
|
|
11745
|
+
<symbol id="icon-fullview" viewBox="0 0 24 24" stroke-width="1.2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11746
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
11747
|
+
<path d="M4 8v-2a2 2 0 0 1 2 -2h2"></path>
|
|
11748
|
+
<path d="M4 16v2a2 2 0 0 0 2 2h2"></path>
|
|
11749
|
+
<path d="M16 4h2a2 2 0 0 1 2 2v2"></path>
|
|
11750
|
+
<path d="M16 20h2a2 2 0 0 0 2 -2v-2"></path>
|
|
11751
|
+
</symbol>
|
|
11752
|
+
|
|
11745
11753
|
<symbol id="icon-eye" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11746
11754
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
11747
11755
|
<path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0m13 0c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7"></path>
|
|
@@ -11790,12 +11798,20 @@ const prepareSvgIcons = builder => {
|
|
|
11790
11798
|
<path d="M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"></path>
|
|
11791
11799
|
</symbol>
|
|
11792
11800
|
|
|
11793
|
-
<symbol id="icon-undo" viewBox="0 0
|
|
11801
|
+
<symbol id="icon-undo" viewBox="0 0 512 512">
|
|
11802
|
+
<path d="M447.9 368.2c0-16.8 3.6-83.1-48.7-135.7-35.2-35.4-80.3-53.4-143.3-56.2V96L64 224l192 128v-79.8c40 1.1 62.4 9.1 86.7 20 30.9 13.8 55.3 44 75.8 76.6l19.2 31.2H448c0-10.1-.1-22.9-.1-31.8z"></path>
|
|
11803
|
+
</symbol>
|
|
11804
|
+
<symbol id="icon-redo" viewBox="0 0 512 512">
|
|
11805
|
+
<path d="M64 400h10.3l19.2-31.2c20.5-32.7 44.9-62.8 75.8-76.6 24.4-10.9 46.7-18.9 86.7-20V352l192-128L256 96v80.3c-63 2.8-108.1 20.7-143.3 56.2C60.4 285.2 64 351.5 64 368.2c.1 8.9 0 21.7 0 31.8z"></path>
|
|
11806
|
+
</symbol>
|
|
11807
|
+
|
|
11808
|
+
|
|
11809
|
+
<symbol id="icon-undo2" viewBox="0 0 24 24" stroke-width="1.4" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11794
11810
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
11795
11811
|
<path d="M9 14l-4 -4l4 -4"></path>
|
|
11796
11812
|
<path d="M5 10h11a4 4 0 1 1 0 8h-1"></path>
|
|
11797
11813
|
</symbol>
|
|
11798
|
-
<symbol id="icon-
|
|
11814
|
+
<symbol id="icon-redo2" viewBox="0 0 24 24" stroke-width="1.4" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11799
11815
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
11800
11816
|
<path d="M15 14l4 -4l-4 -4"></path>
|
|
11801
11817
|
<path d="M19 10h-11a4 4 0 1 0 0 8h1"></path>
|
|
@@ -11811,6 +11827,11 @@ const prepareSvgIcons = builder => {
|
|
|
11811
11827
|
<path d="M9 14l-4 -4l4 -4"></path>
|
|
11812
11828
|
<path d="M5 10h11a4 4 0 1 1 0 8h-1"></path>
|
|
11813
11829
|
</symbol>
|
|
11830
|
+
<symbol id="icon-publish" viewBox="0 0 24 24" stroke-width="1.4" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11831
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
11832
|
+
<path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path>
|
|
11833
|
+
<path d="M9 12l2 2l4 -4"></path>
|
|
11834
|
+
</symbol>
|
|
11814
11835
|
|
|
11815
11836
|
|
|
11816
11837
|
</defs>
|
|
@@ -18993,7 +19014,7 @@ function getOffset(element) {
|
|
|
18993
19014
|
top: box.top + (window.pageYOffset - document.documentElement.clientTop)
|
|
18994
19015
|
};
|
|
18995
19016
|
}
|
|
18996
|
-
var location
|
|
19017
|
+
var location = WINDOW.location;
|
|
18997
19018
|
var REGEXP_ORIGINS = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
|
|
18998
19019
|
/**
|
|
18999
19020
|
* Check if the given URL is a cross origin URL.
|
|
@@ -19003,7 +19024,7 @@ var REGEXP_ORIGINS = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
|
|
|
19003
19024
|
|
|
19004
19025
|
function isCrossOriginURL(url) {
|
|
19005
19026
|
var parts = url.match(REGEXP_ORIGINS);
|
|
19006
|
-
return parts !== null && (parts[1] !== location
|
|
19027
|
+
return parts !== null && (parts[1] !== location.protocol || parts[2] !== location.hostname || parts[3] !== location.port);
|
|
19007
19028
|
}
|
|
19008
19029
|
/**
|
|
19009
19030
|
* Add timestamp to the given URL.
|
|
@@ -69888,7 +69909,7 @@ class Lightbox {
|
|
|
69888
69909
|
|
|
69889
69910
|
// in case opened in an iframe (ex. preview)
|
|
69890
69911
|
if (window.frameElement && !lightbox) {
|
|
69891
|
-
lightbox = parent.document.querySelector('.is-lightbox.lightbox-edit');
|
|
69912
|
+
lightbox = window.parent.document.querySelector('.is-lightbox.lightbox-edit');
|
|
69892
69913
|
}
|
|
69893
69914
|
if (!this.programmatically) {
|
|
69894
69915
|
const list = this.getList();
|
|
@@ -69961,7 +69982,7 @@ class Lightbox {
|
|
|
69961
69982
|
|
|
69962
69983
|
// in case opened in an iframe (ex. preview)
|
|
69963
69984
|
if (window.frameElement && !lightbox) {
|
|
69964
|
-
lightbox = parent.document.querySelector('.is-lightbox.lightbox-edit');
|
|
69985
|
+
lightbox = window.parent.document.querySelector('.is-lightbox.lightbox-edit');
|
|
69965
69986
|
}
|
|
69966
69987
|
if (!this.programmatically) {
|
|
69967
69988
|
const list = this.getList();
|
|
@@ -70038,7 +70059,7 @@ class Lightbox {
|
|
|
70038
70059
|
|
|
70039
70060
|
// in case opened in an iframe (ex. preview)
|
|
70040
70061
|
if (window.frameElement && !lightbox) {
|
|
70041
|
-
lightbox = parent.document.querySelector('.is-lightbox.lightbox-edit');
|
|
70062
|
+
lightbox = window.parent.document.querySelector('.is-lightbox.lightbox-edit');
|
|
70042
70063
|
}
|
|
70043
70064
|
if (!this.programmatically) {
|
|
70044
70065
|
const list = this.getList();
|
|
@@ -74899,7 +74920,9 @@ class Dictation {
|
|
|
74899
74920
|
let lang = this.builder.speechRecognitionLang;
|
|
74900
74921
|
this.recognition.lang = lang;
|
|
74901
74922
|
this.recognition.start();
|
|
74902
|
-
|
|
74923
|
+
|
|
74924
|
+
// this.speechTimeout;
|
|
74925
|
+
|
|
74903
74926
|
this.builder.commandText = '';
|
|
74904
74927
|
let finalTranscripts = '';
|
|
74905
74928
|
this.recognition.onresult = event => {
|
|
@@ -77658,7 +77681,7 @@ class ContentBuilder {
|
|
|
77658
77681
|
output = output.replaceAll('[%PATH%]', options.path);
|
|
77659
77682
|
} else {
|
|
77660
77683
|
let urlBase;
|
|
77661
|
-
urlBase = location.href.substring(0, location.href.lastIndexOf('/'));
|
|
77684
|
+
urlBase = window.location.href.substring(0, window.location.href.lastIndexOf('/'));
|
|
77662
77685
|
output = output.replaceAll('[%PATH%]', urlBase);
|
|
77663
77686
|
}
|
|
77664
77687
|
|