diff --git a/packages/web/src/javascripts/Components/RevisionHistoryModal/SelectedRevisionContent.tsx b/packages/web/src/javascripts/Components/RevisionHistoryModal/SelectedRevisionContent.tsx index b42efde8f..023d5d185 100644 --- a/packages/web/src/javascripts/Components/RevisionHistoryModal/SelectedRevisionContent.tsx +++ b/packages/web/src/javascripts/Components/RevisionHistoryModal/SelectedRevisionContent.tsx @@ -1,10 +1,14 @@ import { WebApplication } from '@/Application/Application' -import { ContentType, SNNote } from '@standardnotes/snjs' +import { ContentType, NoteType, SNNote } from '@standardnotes/snjs' import { observer } from 'mobx-react-lite' import { FunctionComponent, useEffect, useMemo } from 'react' import ComponentView from '@/Components/ComponentView/ComponentView' import { NotesController } from '@/Controllers/NotesController/NotesController' import { NoteHistoryController } from '@/Controllers/NoteHistory/NoteHistoryController' +import { ErrorBoundary } from '@/Utils/ErrorBoundary' +import { BlocksEditorComposer, BlocksEditor } from '@standardnotes/blocks-editor' +import { FileNode } from '../NoteView/SuperEditor/Plugins/EncryptedFilePlugin/Nodes/FileNode' +import { BubbleNode } from '../NoteView/SuperEditor/Plugins/ItemBubblePlugin/Nodes/BubbleNode' const ABSOLUTE_CENTER_CLASSNAME = 'absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2' @@ -54,7 +58,27 @@ const SelectedRevisionContent: FunctionComponent =
{selectedRevision?.payload.content.title}
- {!componentViewer && ( + {componentViewer ? ( +
+ +
+ ) : note?.noteType === NoteType.Super ? ( + +
+ + + +
+
+ ) : (
{selectedRevision?.payload.content.text.length ? (