aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx')
-rw-r--r--src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
index f6b284bdb..594736fbc 100644
--- a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
+++ b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
@@ -472,19 +472,37 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
doc = DocCast(Docs.Create.ImageDocument(data, options));
break;
case 'equation':
- doc = DocCast(Docs.Create.EquationDocument('', options));
+ // make more advanced
+ doc = DocCast(Docs.Create.EquationDocument(data, options));
break;
case 'noteboard':
+ // COME BACK
doc = DocCast(Docs.Create.NoteTakingDocument([], options));
break;
case 'simulation':
+ // make more advanced
doc = DocCast(Docs.Create.SimulationDocument(options));
break;
case 'collection': {
+ // COME BACK
const arr = await this.createCollectionWithChildren(data);
options._layout_fitWidth = true;
options._freeform_backgroundGrid = true;
- doc = DocCast(Docs.Create.FreeformDocument(arr, options));
+ if (options.type_collection == 'tree') {
+ doc = DocCast(Docs.Create.TreeDocument(arr, options));
+ } else if (options.type_collection == 'masonry') {
+ doc = DocCast(Docs.Create.MasonryDocument(arr, options));
+ } else if (options.type_collection == 'card') {
+ doc = DocCast(Docs.Create.CardDeckDocument(arr, options));
+ } else if (options.type_collection == 'carousel') {
+ doc = DocCast(Docs.Create.CarouselDocument(arr, options));
+ } else if (options.type_collection == '3d-carousel') {
+ doc = DocCast(Docs.Create.Carousel3DDocument(arr, options));
+ } else if (options.type_collection == 'multicolumn') {
+ doc = DocCast(Docs.Create.CarouselDocument(arr, options));
+ } else {
+ doc = DocCast(Docs.Create.FreeformDocument(arr, options));
+ }
break;
}
case 'web':
@@ -494,9 +512,11 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
doc = this.createComparison(data, options);
break;
case 'diagram':
+ // come back
doc = Docs.Create.DiagramDocument(options);
break;
case 'audio':
+ // come back
doc = Docs.Create.AudioDocument(data, options);
break;
case 'map':