@innovastudio/contentbuilder 1.5.167 → 1.5.168
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
|
@@ -47578,6 +47578,8 @@ class ButtonEditor {
|
|
|
47578
47578
|
<span>${util.out('Padding Left/Right')}</span>:
|
|
47579
47579
|
</div>
|
|
47580
47580
|
<div class="flex flex-row" style="margin-top:5px">
|
|
47581
|
+
<button title="2" data-command="0" class="paddingx-command" style="margin-right:4px">0</button>
|
|
47582
|
+
<button title="2" data-command="1" class="paddingx-command" style="margin-right:4px">1</button>
|
|
47581
47583
|
<button title="2" data-command="2" class="paddingx-command" style="margin-right:4px">2</button>
|
|
47582
47584
|
<button title="3" data-command="3" class="paddingx-command" style="margin-right:4px">3</button>
|
|
47583
47585
|
<button title="4" data-command="4" class="paddingx-command" style="margin-right:4px">4</button>
|
|
@@ -48083,6 +48085,12 @@ class ButtonEditor {
|
|
|
48083
48085
|
const val = btn.getAttribute('data-command');
|
|
48084
48086
|
const activeButton = this.builder.activeButton || this.builder.activeLinkButton || this.builder.activeLink;
|
|
48085
48087
|
dom.removeClassesByPrefix(activeButton, 'px-');
|
|
48088
|
+
if (val === '0') {
|
|
48089
|
+
dom.addClass(activeButton, 'px-0');
|
|
48090
|
+
}
|
|
48091
|
+
if (val === '1') {
|
|
48092
|
+
dom.addClass(activeButton, 'px-1');
|
|
48093
|
+
}
|
|
48086
48094
|
if (val === '2') {
|
|
48087
48095
|
dom.addClass(activeButton, 'px-2');
|
|
48088
48096
|
}
|
|
@@ -49150,6 +49158,144 @@ class ButtonEditor {
|
|
|
49150
49158
|
bg: 'rgba(191, 245, 110, 1)',
|
|
49151
49159
|
hoverBg: 'rgba(183, 236, 103, 1)'
|
|
49152
49160
|
},
|
|
49161
|
+
// Square buttons
|
|
49162
|
+
{
|
|
49163
|
+
type: 'solid',
|
|
49164
|
+
shape: 'square',
|
|
49165
|
+
text: 'Read More',
|
|
49166
|
+
color: 'rgb(24, 24, 27)',
|
|
49167
|
+
bg: 'transparent',
|
|
49168
|
+
hoverBg: 'transparent',
|
|
49169
|
+
customClasses: 'underline px-0'
|
|
49170
|
+
}, {
|
|
49171
|
+
type: 'outline',
|
|
49172
|
+
shape: 'square',
|
|
49173
|
+
text: 'Read More'
|
|
49174
|
+
}, {
|
|
49175
|
+
type: 'solid',
|
|
49176
|
+
shape: 'square',
|
|
49177
|
+
text: 'Read More',
|
|
49178
|
+
color: 'rgb(24, 24, 27)',
|
|
49179
|
+
bg: 'rgb(240, 240, 241)',
|
|
49180
|
+
hoverBg: 'rgb(236, 236, 238)'
|
|
49181
|
+
}, {
|
|
49182
|
+
type: 'solid',
|
|
49183
|
+
shape: 'square',
|
|
49184
|
+
text: 'Read More',
|
|
49185
|
+
color: 'rgb(250, 250, 250)',
|
|
49186
|
+
bg: 'rgb(24, 24, 27)',
|
|
49187
|
+
hoverBg: 'rgb(63, 63, 70)'
|
|
49188
|
+
}, {
|
|
49189
|
+
type: 'outline',
|
|
49190
|
+
shape: 'square',
|
|
49191
|
+
text: 'Read More',
|
|
49192
|
+
color: 'rgb(250, 250, 250)',
|
|
49193
|
+
bg: 'transparent',
|
|
49194
|
+
hoverBg: 'transparent'
|
|
49195
|
+
}, {
|
|
49196
|
+
type: 'solid',
|
|
49197
|
+
shape: 'square',
|
|
49198
|
+
text: 'Read More',
|
|
49199
|
+
color: '#ffffff',
|
|
49200
|
+
bg: 'rgba(13, 151, 255, 1)',
|
|
49201
|
+
hoverBg: 'rgba(7, 138, 237, 1)'
|
|
49202
|
+
}, {
|
|
49203
|
+
type: 'solid',
|
|
49204
|
+
shape: 'square',
|
|
49205
|
+
text: 'Read More',
|
|
49206
|
+
color: '#ffffff',
|
|
49207
|
+
bg: '#3b82f6',
|
|
49208
|
+
hoverBg: 'rgba(47, 116, 228, 1)'
|
|
49209
|
+
}, {
|
|
49210
|
+
type: 'solid',
|
|
49211
|
+
shape: 'square',
|
|
49212
|
+
text: 'Read More',
|
|
49213
|
+
color: 'rgb(24, 24, 27)',
|
|
49214
|
+
bg: '#fff',
|
|
49215
|
+
hoverBg: 'rgba(248, 248, 250, 1)'
|
|
49216
|
+
},
|
|
49217
|
+
// Colors
|
|
49218
|
+
{
|
|
49219
|
+
type: 'solid',
|
|
49220
|
+
shape: 'square',
|
|
49221
|
+
size: 'medium',
|
|
49222
|
+
text: 'Read More',
|
|
49223
|
+
color: 'rgb(24, 24, 27)',
|
|
49224
|
+
bg: 'rgba(111, 235, 255, 1)',
|
|
49225
|
+
hoverBg: 'rgba(98, 230, 252, 1)'
|
|
49226
|
+
}, {
|
|
49227
|
+
type: 'solid',
|
|
49228
|
+
shape: 'square',
|
|
49229
|
+
size: 'medium',
|
|
49230
|
+
text: 'Read More',
|
|
49231
|
+
color: '#ffffff',
|
|
49232
|
+
bg: 'rgba(19, 166, 27, 1)',
|
|
49233
|
+
hoverBg: 'rgba(17, 155, 25, 1)'
|
|
49234
|
+
}, {
|
|
49235
|
+
type: 'solid',
|
|
49236
|
+
shape: 'square',
|
|
49237
|
+
size: 'medium',
|
|
49238
|
+
text: 'Read More',
|
|
49239
|
+
color: 'rgb(24, 24, 27)',
|
|
49240
|
+
bg: 'rgba(254, 235, 101, 1)',
|
|
49241
|
+
hoverBg: 'rgba(249, 229, 85, 1)'
|
|
49242
|
+
}, {
|
|
49243
|
+
type: 'solid',
|
|
49244
|
+
shape: 'square',
|
|
49245
|
+
size: 'medium',
|
|
49246
|
+
text: 'Read More',
|
|
49247
|
+
color: '#ffffff',
|
|
49248
|
+
bg: 'rgba(251, 45, 45, 1)',
|
|
49249
|
+
hoverBg: 'rgba(239, 38, 36, 1)'
|
|
49250
|
+
}, {
|
|
49251
|
+
type: 'solid',
|
|
49252
|
+
shape: 'square',
|
|
49253
|
+
size: 'medium',
|
|
49254
|
+
text: 'Read More',
|
|
49255
|
+
color: '#ffffff',
|
|
49256
|
+
bg: 'rgba(255, 122, 0, 1)',
|
|
49257
|
+
hoverBg: 'rgba(248, 109, 2, 1)'
|
|
49258
|
+
}, {
|
|
49259
|
+
type: 'solid',
|
|
49260
|
+
shape: 'square',
|
|
49261
|
+
size: 'medium',
|
|
49262
|
+
text: 'Read More',
|
|
49263
|
+
color: '#ffffff',
|
|
49264
|
+
bg: 'rgba(255, 68, 179, 1)',
|
|
49265
|
+
hoverBg: 'rgba(240, 46, 169, 1)'
|
|
49266
|
+
}, {
|
|
49267
|
+
type: 'solid',
|
|
49268
|
+
shape: 'square',
|
|
49269
|
+
size: 'medium',
|
|
49270
|
+
text: 'Read More',
|
|
49271
|
+
color: 'rgb(24, 24, 27)',
|
|
49272
|
+
bg: 'rgba(148, 251, 208, 1)',
|
|
49273
|
+
hoverBg: 'rgba(133, 244, 198, 1)'
|
|
49274
|
+
}, {
|
|
49275
|
+
type: 'solid',
|
|
49276
|
+
shape: 'square',
|
|
49277
|
+
size: 'medium',
|
|
49278
|
+
text: 'Read More',
|
|
49279
|
+
color: '#ffffff',
|
|
49280
|
+
bg: 'rgba(91, 73, 228, 1)',
|
|
49281
|
+
hoverBg: 'rgba(77, 59, 208, 1)'
|
|
49282
|
+
}, {
|
|
49283
|
+
type: 'solid',
|
|
49284
|
+
shape: 'square',
|
|
49285
|
+
size: 'medium',
|
|
49286
|
+
text: 'Read More',
|
|
49287
|
+
color: '#ffffff',
|
|
49288
|
+
bg: 'rgba(142, 67, 237, 1)',
|
|
49289
|
+
hoverBg: 'rgba(122, 52, 212, 1)'
|
|
49290
|
+
}, {
|
|
49291
|
+
type: 'solid',
|
|
49292
|
+
shape: 'square',
|
|
49293
|
+
size: 'medium',
|
|
49294
|
+
text: 'Read More',
|
|
49295
|
+
color: 'rgb(24, 24, 27)',
|
|
49296
|
+
bg: 'rgba(191, 245, 110, 1)',
|
|
49297
|
+
hoverBg: 'rgba(183, 236, 103, 1)'
|
|
49298
|
+
},
|
|
49153
49299
|
// Rounded buttons - Small
|
|
49154
49300
|
{
|
|
49155
49301
|
type: 'solid',
|
|
@@ -49733,6 +49879,152 @@ class ButtonEditor {
|
|
|
49733
49879
|
color: 'rgb(24, 24, 27)',
|
|
49734
49880
|
bg: 'rgba(191, 245, 110, 1)',
|
|
49735
49881
|
hoverBg: 'rgba(183, 236, 103, 1)'
|
|
49882
|
+
},
|
|
49883
|
+
// Square buttons - Large
|
|
49884
|
+
{
|
|
49885
|
+
type: 'solid',
|
|
49886
|
+
shape: 'square',
|
|
49887
|
+
size: 'large',
|
|
49888
|
+
text: 'Read More',
|
|
49889
|
+
color: 'rgb(24, 24, 27)',
|
|
49890
|
+
bg: 'transparent',
|
|
49891
|
+
hoverBg: 'transparent',
|
|
49892
|
+
customClasses: 'underline'
|
|
49893
|
+
}, {
|
|
49894
|
+
type: 'outline',
|
|
49895
|
+
shape: 'square',
|
|
49896
|
+
size: 'large',
|
|
49897
|
+
text: 'Read More'
|
|
49898
|
+
}, {
|
|
49899
|
+
type: 'solid',
|
|
49900
|
+
shape: 'square',
|
|
49901
|
+
size: 'large',
|
|
49902
|
+
text: 'Read More',
|
|
49903
|
+
color: 'rgb(24, 24, 27)',
|
|
49904
|
+
bg: 'rgb(240, 240, 241)',
|
|
49905
|
+
hoverBg: 'rgb(236, 236, 238)'
|
|
49906
|
+
}, {
|
|
49907
|
+
type: 'solid',
|
|
49908
|
+
shape: 'square',
|
|
49909
|
+
size: 'large',
|
|
49910
|
+
text: 'Read More',
|
|
49911
|
+
color: 'rgb(250, 250, 250)',
|
|
49912
|
+
bg: 'rgb(24, 24, 27)',
|
|
49913
|
+
hoverBg: 'rgb(63, 63, 70)'
|
|
49914
|
+
}, {
|
|
49915
|
+
type: 'outline',
|
|
49916
|
+
shape: 'square',
|
|
49917
|
+
size: 'large',
|
|
49918
|
+
text: 'Read More',
|
|
49919
|
+
color: 'rgb(250, 250, 250)',
|
|
49920
|
+
bg: 'transparent',
|
|
49921
|
+
hoverBg: 'transparent'
|
|
49922
|
+
}, {
|
|
49923
|
+
type: 'solid',
|
|
49924
|
+
shape: 'square',
|
|
49925
|
+
size: 'large',
|
|
49926
|
+
text: 'Read More',
|
|
49927
|
+
color: '#ffffff',
|
|
49928
|
+
bg: 'rgba(13, 151, 255, 1)',
|
|
49929
|
+
hoverBg: 'rgba(7, 138, 237, 1)'
|
|
49930
|
+
}, {
|
|
49931
|
+
type: 'solid',
|
|
49932
|
+
shape: 'square',
|
|
49933
|
+
size: 'large',
|
|
49934
|
+
text: 'Read More',
|
|
49935
|
+
color: '#ffffff',
|
|
49936
|
+
bg: '#3b82f6',
|
|
49937
|
+
hoverBg: 'rgba(47, 116, 228, 1)'
|
|
49938
|
+
}, {
|
|
49939
|
+
type: 'solid',
|
|
49940
|
+
shape: 'square',
|
|
49941
|
+
size: 'large',
|
|
49942
|
+
text: 'Read More',
|
|
49943
|
+
color: 'rgb(24, 24, 27)',
|
|
49944
|
+
bg: '#fff',
|
|
49945
|
+
hoverBg: 'rgba(248, 248, 250, 1)'
|
|
49946
|
+
},
|
|
49947
|
+
// Colors
|
|
49948
|
+
{
|
|
49949
|
+
type: 'solid',
|
|
49950
|
+
shape: 'square',
|
|
49951
|
+
size: 'large',
|
|
49952
|
+
text: 'Read More',
|
|
49953
|
+
color: 'rgb(24, 24, 27)',
|
|
49954
|
+
bg: 'rgba(111, 235, 255, 1)',
|
|
49955
|
+
hoverBg: 'rgba(98, 230, 252, 1)'
|
|
49956
|
+
}, {
|
|
49957
|
+
type: 'solid',
|
|
49958
|
+
shape: 'square',
|
|
49959
|
+
size: 'large',
|
|
49960
|
+
text: 'Read More',
|
|
49961
|
+
color: '#ffffff',
|
|
49962
|
+
bg: 'rgba(19, 166, 27, 1)',
|
|
49963
|
+
hoverBg: 'rgba(17, 155, 25, 1)'
|
|
49964
|
+
}, {
|
|
49965
|
+
type: 'solid',
|
|
49966
|
+
shape: 'square',
|
|
49967
|
+
size: 'large',
|
|
49968
|
+
text: 'Read More',
|
|
49969
|
+
color: 'rgb(24, 24, 27)',
|
|
49970
|
+
bg: 'rgba(254, 235, 101, 1)',
|
|
49971
|
+
hoverBg: 'rgba(249, 229, 85, 1)'
|
|
49972
|
+
}, {
|
|
49973
|
+
type: 'solid',
|
|
49974
|
+
shape: 'square',
|
|
49975
|
+
size: 'large',
|
|
49976
|
+
text: 'Read More',
|
|
49977
|
+
color: '#ffffff',
|
|
49978
|
+
bg: 'rgba(251, 45, 45, 1)',
|
|
49979
|
+
hoverBg: 'rgba(239, 38, 36, 1)'
|
|
49980
|
+
}, {
|
|
49981
|
+
type: 'solid',
|
|
49982
|
+
shape: 'square',
|
|
49983
|
+
size: 'large',
|
|
49984
|
+
text: 'Read More',
|
|
49985
|
+
color: '#ffffff',
|
|
49986
|
+
bg: 'rgba(255, 122, 0, 1)',
|
|
49987
|
+
hoverBg: 'rgba(248, 109, 2, 1)'
|
|
49988
|
+
}, {
|
|
49989
|
+
type: 'solid',
|
|
49990
|
+
shape: 'square',
|
|
49991
|
+
size: 'large',
|
|
49992
|
+
text: 'Read More',
|
|
49993
|
+
color: '#ffffff',
|
|
49994
|
+
bg: 'rgba(255, 68, 179, 1)',
|
|
49995
|
+
hoverBg: 'rgba(240, 46, 169, 1)'
|
|
49996
|
+
}, {
|
|
49997
|
+
type: 'solid',
|
|
49998
|
+
shape: 'square',
|
|
49999
|
+
size: 'large',
|
|
50000
|
+
text: 'Read More',
|
|
50001
|
+
color: 'rgb(24, 24, 27)',
|
|
50002
|
+
bg: 'rgba(148, 251, 208, 1)',
|
|
50003
|
+
hoverBg: 'rgba(133, 244, 198, 1)'
|
|
50004
|
+
}, {
|
|
50005
|
+
type: 'solid',
|
|
50006
|
+
shape: 'square',
|
|
50007
|
+
size: 'large',
|
|
50008
|
+
text: 'Read More',
|
|
50009
|
+
color: '#ffffff',
|
|
50010
|
+
bg: 'rgba(91, 73, 228, 1)',
|
|
50011
|
+
hoverBg: 'rgba(77, 59, 208, 1)'
|
|
50012
|
+
}, {
|
|
50013
|
+
type: 'solid',
|
|
50014
|
+
shape: 'square',
|
|
50015
|
+
size: 'large',
|
|
50016
|
+
text: 'Read More',
|
|
50017
|
+
color: '#ffffff',
|
|
50018
|
+
bg: 'rgba(142, 67, 237, 1)',
|
|
50019
|
+
hoverBg: 'rgba(122, 52, 212, 1)'
|
|
50020
|
+
}, {
|
|
50021
|
+
type: 'solid',
|
|
50022
|
+
shape: 'square',
|
|
50023
|
+
size: 'large',
|
|
50024
|
+
text: 'Read More',
|
|
50025
|
+
color: 'rgb(24, 24, 27)',
|
|
50026
|
+
bg: 'rgba(191, 245, 110, 1)',
|
|
50027
|
+
hoverBg: 'rgba(183, 236, 103, 1)'
|
|
49736
50028
|
}];
|
|
49737
50029
|
let templates = buttonConfigs.map(config => this.generateButton(config));
|
|
49738
50030
|
const moreTemplates = [];
|
|
@@ -50848,7 +51140,7 @@ class SettingsUIGenerator {
|
|
|
50848
51140
|
const plugin = this.runtime.getPlugin(pluginName);
|
|
50849
51141
|
if (!plugin || !plugin.settings) {
|
|
50850
51142
|
console.warn(`Plugin "${pluginName}" has no settings schema`);
|
|
50851
|
-
return this.createEmptyForm();
|
|
51143
|
+
if (!plugin.editor) return this.createEmptyForm();
|
|
50852
51144
|
}
|
|
50853
51145
|
const form = document.createElement('div');
|
|
50854
51146
|
form.className = 'cb-settings-form';
|
|
@@ -98000,7 +98292,21 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
98000
98292
|
newCol.children[0].click();
|
|
98001
98293
|
}, 400);
|
|
98002
98294
|
} else {
|
|
98003
|
-
newCol.
|
|
98295
|
+
const spacer = newCol.querySelector('.spacer');
|
|
98296
|
+
setTimeout(() => {
|
|
98297
|
+
try {
|
|
98298
|
+
if (spacer) {
|
|
98299
|
+
if (newCol.parentNode.nextElementSibling) {
|
|
98300
|
+
const elm = newCol.parentNode.nextElementSibling.querySelector('h1,h2,h3,h4,h5,h6,p,img,iframe');
|
|
98301
|
+
if (elm) elm.click();else newCol.click();
|
|
98302
|
+
}
|
|
98303
|
+
} else {
|
|
98304
|
+
newCol.children[0].click(); // Focus on first element
|
|
98305
|
+
}
|
|
98306
|
+
} catch (e) {
|
|
98307
|
+
// Do Nothing
|
|
98308
|
+
}
|
|
98309
|
+
}, 400);
|
|
98004
98310
|
}
|
|
98005
98311
|
}
|
|
98006
98312
|
}
|