@innovastudio/contentbuilder 1.5.182 → 1.5.184
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/index.d.ts
CHANGED
|
@@ -228,6 +228,12 @@ interface ContentBuilderOptions {
|
|
|
228
228
|
imageModel?: string;
|
|
229
229
|
imageSize?: string;
|
|
230
230
|
imageGenerationModels?: any[];
|
|
231
|
+
imageModels?: any[];
|
|
232
|
+
codeModels?: any[];
|
|
233
|
+
chatModels?: any[];
|
|
234
|
+
systemModel: string;
|
|
235
|
+
clearChatSettings?: boolean;
|
|
236
|
+
defaultChatSettings?: Record<string, any>;
|
|
231
237
|
|
|
232
238
|
//-- Asset Manager
|
|
233
239
|
listFilesUrl?: string;
|
package/package.json
CHANGED
|
@@ -17325,19 +17325,18 @@ class Draggable$2 {
|
|
|
17325
17325
|
});
|
|
17326
17326
|
}
|
|
17327
17327
|
dragStart(e) {
|
|
17328
|
-
|
|
17329
|
-
|
|
17328
|
+
// Find the draggable element (could be target or a parent)
|
|
17329
|
+
const draggableElement = e.target.closest('[draggable]');
|
|
17330
|
+
if (!draggableElement) return;
|
|
17330
17331
|
if (e.type === 'touchstart' && e.touches.length !== 1) {
|
|
17331
|
-
return;
|
|
17332
|
+
return;
|
|
17332
17333
|
}
|
|
17333
|
-
|
|
17334
17334
|
if (e.type === 'mousedown' && e.button !== 0) {
|
|
17335
|
-
return;
|
|
17335
|
+
return;
|
|
17336
17336
|
}
|
|
17337
|
-
|
|
17338
|
-
e.target.parentNode.style.transition = 'none';
|
|
17337
|
+
draggableElement.parentNode.style.transition = 'none';
|
|
17339
17338
|
this.dragActive = true;
|
|
17340
|
-
this.activeDraggableBox =
|
|
17339
|
+
this.activeDraggableBox = draggableElement.parentElement;
|
|
17341
17340
|
let xOffset;
|
|
17342
17341
|
let yOffset;
|
|
17343
17342
|
if (!this.activeDraggableBox.getAttribute('data-xOffset')) {
|
|
@@ -17366,10 +17365,10 @@ class Draggable$2 {
|
|
|
17366
17365
|
document.addEventListener('mousemove', this.drag, false);
|
|
17367
17366
|
}
|
|
17368
17367
|
dragEnd(e) {
|
|
17369
|
-
|
|
17370
|
-
|
|
17368
|
+
const draggableElement = e.target.closest('[draggable]');
|
|
17369
|
+
if (!draggableElement) return;
|
|
17371
17370
|
if (!this.activeDraggableBox) return;
|
|
17372
|
-
|
|
17371
|
+
draggableElement.parentNode.style.transition = '';
|
|
17373
17372
|
|
|
17374
17373
|
//Update
|
|
17375
17374
|
let currentX = this.activeDraggableBox.getAttribute('data-currentX');
|
|
@@ -97166,20 +97165,21 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
97166
97165
|
|
|
97167
97166
|
// Undo Redo
|
|
97168
97167
|
document.addEventListener('keydown', this.doDocumentKeydown = e => {
|
|
97169
|
-
|
|
97170
|
-
|
|
97171
|
-
|
|
97172
|
-
|
|
97173
|
-
|
|
97174
|
-
|
|
97175
|
-
|
|
97168
|
+
const activeElement = document.activeElement;
|
|
97169
|
+
const isInputElement = activeElement && (activeElement.tagName === 'INPUT' || activeElement.tagName === 'TEXTAREA');
|
|
97170
|
+
if (!isInputElement) {
|
|
97171
|
+
if (e.which === 90 && (e.ctrlKey || e.metaKey)) {
|
|
97172
|
+
//CTRL-Z
|
|
97173
|
+
if (e.shiftKey) this.uo.doRedo();else {
|
|
97174
|
+
if (!e.altKey) {
|
|
97175
|
+
this.uo.doUndo();
|
|
97176
|
+
}
|
|
97176
97177
|
}
|
|
97177
97178
|
}
|
|
97178
|
-
|
|
97179
|
-
|
|
97180
|
-
|
|
97181
|
-
|
|
97182
|
-
if (!e.altKey) this.uo.doRedo();
|
|
97179
|
+
if (e.which === 89 && e.ctrlKey) {
|
|
97180
|
+
//CTRL-Y
|
|
97181
|
+
if (!e.altKey) this.uo.doRedo();
|
|
97182
|
+
}
|
|
97183
97183
|
}
|
|
97184
97184
|
const isCmd = e.ctrlKey || e.metaKey;
|
|
97185
97185
|
if (isCmd && e.which === 191) {
|