Notebooks: Add Support for Cell Attachment Images (#14449)

* Add to interfaces

* Works E2E

* Consolidate interface

* Add comments, cleanup

* Add some tests

* Cleanup

* interface cleanup

* Add more tests

* Add comments

* Add type for cell attachment

* wip
This commit is contained in:
Chris LaFreniere
2021-02-28 16:40:41 -08:00
committed by GitHub
parent 8ce32215ba
commit 48a63e1f50
12 changed files with 127 additions and 11 deletions

View File

@@ -49,3 +49,5 @@ export enum NotebookChangeType {
CellOutputCleared,
CellMetadataUpdated
}
export const ImageMimeTypes = ['image/bmp', 'image/png', 'image/jpeg', 'image/gif'];

View File

@@ -139,7 +139,8 @@ namespace v4 {
return {
cell_type: cell.cell_type,
source: cell.source,
metadata: cell.metadata
metadata: cell.metadata,
attachments: cell.attachments
};
}