aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx4
-rw-r--r--src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts7
2 files changed, 7 insertions, 4 deletions
diff --git a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
index d85f9d82e..f6b284bdb 100644
--- a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
+++ b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
@@ -481,13 +481,9 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
doc = DocCast(Docs.Create.SimulationDocument(options));
break;
case 'collection': {
- // const par = JSON.parse(data);
- // console.log('Parse #2: ' + par);
const arr = await this.createCollectionWithChildren(data);
options._layout_fitWidth = true;
options._freeform_backgroundGrid = true;
-
- // const opts = { _width: 500, _height: 800, _layout_fitWidth: true, _freeform_backgroundGrid: true };
doc = DocCast(Docs.Create.FreeformDocument(arr, options));
break;
}
diff --git a/src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts b/src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts
index 7b78ed510..810f763af 100644
--- a/src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts
+++ b/src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts
@@ -6,6 +6,13 @@ import { DocumentOptions } from '../../../../documents/Documents';
const example = [
{
+ doc_type: 'image',
+ title: 'experiment',
+ data: 'https://plus.unsplash.com/premium_photo-1694819488591-a43907d1c5cc?q=80&w=2628&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
+ width: 300,
+ height: 300,
+ },
+ {
doc_type: 'deck',
title: 'Chemistry',
data: [