@innovastudio/contentbuilder 1.5.79 → 1.5.80
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
|
@@ -1317,6 +1317,54 @@ button:focus-visible {
|
|
|
1317
1317
|
.is-ui .is-rte-pop.rte-color-picker .rte-color-picker-area > div {
|
|
1318
1318
|
padding-top: 5px !important;
|
|
1319
1319
|
}
|
|
1320
|
+
#_cbhtml .is-rte-pop.rte-color-picker._4lines.active,
|
|
1321
|
+
.is-ui .is-rte-pop.rte-color-picker._4lines.active {
|
|
1322
|
+
animation-name: colorpicker-slide-out-4lines;
|
|
1323
|
+
}
|
|
1324
|
+
@keyframes colorpicker-slide-out-4lines {
|
|
1325
|
+
from {
|
|
1326
|
+
height: 0;
|
|
1327
|
+
}
|
|
1328
|
+
to {
|
|
1329
|
+
height: 420px;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
#_cbhtml .is-rte-pop.rte-color-picker._4lines.deactive,
|
|
1333
|
+
.is-ui .is-rte-pop.rte-color-picker._4lines.deactive {
|
|
1334
|
+
animation-name: colorpicker-slide-in-4lines;
|
|
1335
|
+
}
|
|
1336
|
+
@keyframes colorpicker-slide-in-4lines {
|
|
1337
|
+
from {
|
|
1338
|
+
height: 420px;
|
|
1339
|
+
}
|
|
1340
|
+
to {
|
|
1341
|
+
height: 0;
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
#_cbhtml .is-rte-pop.rte-color-picker._5lines.active,
|
|
1345
|
+
.is-ui .is-rte-pop.rte-color-picker._5lines.active {
|
|
1346
|
+
animation-name: colorpicker-slide-out-5lines;
|
|
1347
|
+
}
|
|
1348
|
+
@keyframes colorpicker-slide-out-5lines {
|
|
1349
|
+
from {
|
|
1350
|
+
height: 0;
|
|
1351
|
+
}
|
|
1352
|
+
to {
|
|
1353
|
+
height: 451px;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
#_cbhtml .is-rte-pop.rte-color-picker._5lines.deactive,
|
|
1357
|
+
.is-ui .is-rte-pop.rte-color-picker._5lines.deactive {
|
|
1358
|
+
animation-name: colorpicker-slide-in-5lines;
|
|
1359
|
+
}
|
|
1360
|
+
@keyframes colorpicker-slide-in-5lines {
|
|
1361
|
+
from {
|
|
1362
|
+
height: 451px;
|
|
1363
|
+
}
|
|
1364
|
+
to {
|
|
1365
|
+
height: 0;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1320
1368
|
#_cbhtml .is-rte-pop.rte-icon-options,
|
|
1321
1369
|
.is-ui .is-rte-pop.rte-icon-options {
|
|
1322
1370
|
width: 270px;
|
|
@@ -63536,6 +63536,10 @@ class ColorPicker {
|
|
|
63536
63536
|
const poppicker = builderStuff.querySelector('.pop-picker');
|
|
63537
63537
|
poppicker.style.display = 'flex';
|
|
63538
63538
|
poppicker.style.opacity = 0;
|
|
63539
|
+
if (this.opts.colors.length <= 21) poppicker.style.height = '360px'; // 3 lines
|
|
63540
|
+
else if (this.opts.colors.length > 21 && this.opts.colors.length <= 28) poppicker.style.height = '390px'; // 4 lines
|
|
63541
|
+
else if (this.opts.colors.length > 28) poppicker.style.height = '420px'; // 5 lines
|
|
63542
|
+
|
|
63539
63543
|
const pickr = Pickr.create({
|
|
63540
63544
|
el: '._pop-colpick',
|
|
63541
63545
|
theme: 'nano',
|
|
@@ -67424,6 +67428,10 @@ class Rte {
|
|
|
67424
67428
|
btnRteColor.forEach(btn => {
|
|
67425
67429
|
btn.addEventListener('click', () => {
|
|
67426
67430
|
const pop = this.rteColorPicker;
|
|
67431
|
+
const numOfColors = this.builder.colors.length;
|
|
67432
|
+
if (numOfColors > 21 && numOfColors <= 28) pop.classList.add('_4lines'); // 4 lines
|
|
67433
|
+
else if (numOfColors > 28) pop.classList.add('_5lines'); // 5 lines
|
|
67434
|
+
|
|
67427
67435
|
if (!dom.hasClass(pop, 'active')) {
|
|
67428
67436
|
this.util.showRtePop(pop, () => {
|
|
67429
67437
|
const top = btn.getBoundingClientRect().top;
|
|
@@ -96531,7 +96539,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
96531
96539
|
*/
|
|
96532
96540
|
src = this.viewFileUrl + '?url=' + src;
|
|
96533
96541
|
}
|
|
96534
|
-
const width =
|
|
96542
|
+
const width = 768;
|
|
96535
96543
|
const height = 512;
|
|
96536
96544
|
const img = new Image();
|
|
96537
96545
|
img.src = src;
|
|
@@ -96577,7 +96585,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
96577
96585
|
model,
|
|
96578
96586
|
prompt: prompt,
|
|
96579
96587
|
negative_prompt,
|
|
96580
|
-
width:
|
|
96588
|
+
width: 768,
|
|
96581
96589
|
height: 512,
|
|
96582
96590
|
steps,
|
|
96583
96591
|
guidance,
|