Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
feat(frontend:files): start implementing markdown viewer editor
johavenf36a2bc297b1
diff --git a/frontend/package.json b/frontend/package.jsonindex 98de819b..5082c5bc 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -40,6 +40,12 @@"@fortawesome/free-regular-svg-icons": "^7.0.0","@fortawesome/free-solid-svg-icons": "^7.0.0","@perfectmemory/ngx-contextmenu": "^20.0.0",+ "@tiptap/core": "^3.23.4",+ "@tiptap/extension-list": "^3.23.4",+ "@tiptap/extension-table": "^3.23.4",+ "@tiptap/extension-task-list": "^3.23.4",+ "@tiptap/markdown": "^3.23.4",+ "@tiptap/starter-kit": "^3.23.4","@videogular/ngx-videogular": "^20.0.0","angular-l10n": "^17.0.0","codemirror": "^6.0.2",@@ -47,6 +53,7 @@"ngx-bootstrap": "^20.0.0","ngx-clipboard": "^16.0.0","ngx-socket-io": "4.9.3",+ "ngx-tiptap": "^14.0.1","ngx-toastr": "^19.0.0","rxjs": "^7.8.2","tslib": "^2.7.0",diff --git a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.htmlindex 33420148..fe4ae4c2 100644--- a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html+++ b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.html@@ -38,13 +38,23 @@}}@default {- <app-files-viewer-text- [currentHeight]="currentHeight"- [file]="currentFile"- [isWriteable]="isWriteable"- [modalClosing]="modalClosing()"- [(isReadonly)]="isReadonly">- </app-files-viewer-text>+ @if (isMarkdownFile) {+ <app-files-viewer-markdown+ [currentHeight]="currentHeight"+ [file]="currentFile"+ [isWriteable]="isWriteable"+ [modalClosing]="modalClosing()"+ [(isReadonly)]="isReadonly">+ </app-files-viewer-markdown>+ } @else {+ <app-files-viewer-text+ [currentHeight]="currentHeight"+ [file]="currentFile"+ [isWriteable]="isWriteable"+ [modalClosing]="modalClosing()"+ [(isReadonly)]="isReadonly">+ </app-files-viewer-text>+ }}}</div>diff --git a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.tsindex cee5e45d..8b195a2e 100644--- a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts+++ b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts@@ -11,6 +11,7 @@ import { SHORT_MIME } from '../../files.constants'import { FileModel } from '../../models/file.model'import { FilesViewerCollaboraOnlineComponent } from '../viewers/files-viewer-collabora-online.component'import { FilesViewerImageComponent } from '../viewers/files-viewer-image.component'+import { FilesViewerMarkdownComponent } from '../viewers/files-viewer-markdown.component'import { FilesViewerMediaComponent } from '../viewers/files-viewer-media.component'import { FilesViewerOnlyOfficeComponent } from '../viewers/files-viewer-only-office.component'import { FilesViewerPdfComponent } from '../viewers/files-viewer-pdf.component'@@ -22,6 +23,7 @@ import { FilesViewerTextComponent } from '../viewers/files-viewer-text.componentFilesViewerPdfComponent,FilesViewerMediaComponent,FilesViewerTextComponent,+ FilesViewerMarkdownComponent,FilesViewerImageComponent,FaIconComponent,FilesViewerOnlyOfficeComponent,@@ -45,12 +47,17 @@ export class FilesViewerDialogComponent implements OnInit, OnDestroy {protected readonly icons = { faEye, faPen }protected directoryImages = computed(() => this.directoryFiles.filter((file) => file.isImage))protected canToggleViewer = false+ protected readonly markdownExtensions = new Set(['md', 'markdown', 'mdown', 'mkd', 'mkdn'])protected readonly store = inject(StoreService)private openedFile: { id: string | number; name: string; mimeUrl: string }private readonly layout = inject(LayoutService)private readonly subscription: Subscription = this.layout.resizeEvent.subscribe(() => this.onResize())private readonly offsetTop = 42+ protected get isMarkdownFile(): boolean {+ return this.markdownExtensions.has(this.currentFile?.getExtension())+ }+ngOnInit() {this.canToggleViewer = this.isWriteable && !!this.currentFile?.isEditable && this.hookedShortMime === SHORT_MIME.PDFthis.activeViewer.set(this.hookedShortMime)@@ -65,7 +72,7 @@ export class FilesViewerDialogComponent implements OnInit, OnDestroy {onClose() {if (this.currentFile.isEditable && this.hookedShortMime === SHORT_MIME.TEXT) {- // Prevent closing the modal without saving when using the text editor+ // Prevent closing the modal without saving when using text-based editorsthis.modalClosing.set(true)// Force the next state changesetTimeout(() => this.modalClosing.set(false), 1000)diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.html b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.htmlnew file mode 100644index 00000000..e56bca16--- /dev/null+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.html@@ -0,0 +1,344 @@+<div class="files-viewer-markdown" [style.height.px]="currentHeight()">+ <div class="app-top-menu files-markdown-toolbar">+ <button+ (click)="toggleReadonly()"+ [tooltip]="(isReadonly() || !isWriteable() ? 'Read-only' : 'Read-write') | translate:locale.language"+ [adaptivePosition]="true"+ class="btn btn-default me-1"+ type="button"+ [disabled]="!isSupported() || !isWriteable()">+ <fa-icon [icon]="isReadonly() ? icons.faLock : icons.faLockOpen"></fa-icon>+ </button>+ <button+ (click)="save()"+ [tooltip]="(canSave() ? 'Save' : undefined) | translate:locale.language"+ [isDisabled]="!canSave()"+ class="btn btn-default me-1"+ type="button"+ [disabled]="!canSave()">+ @if (isSaving()) {+ <fa-icon [icon]="icons.faSpinner" animation="spin"></fa-icon>+ } @else {+ <fa-icon [icon]="icons.faFloppyDisk"></fa-icon>+ }+ </button>+ <button+ (click)="onUndo()"+ [disabled]="!canUndo()"+ [tooltip]="'Undo' | translate:locale.language"+ class="d-none d-sm-block btn btn-custom me-1"+ type="button">+ <fa-icon [icon]="icons.faReply"></fa-icon>+ </button>+ <button+ (click)="onRedo()"+ [disabled]="!canRedo()"+ [tooltip]="'Redo' | translate:locale.language"+ class="d-none d-sm-block btn btn-custom me-1"+ type="button">+ <fa-icon [icon]="icons.faShare"></fa-icon>+ </button>++ <div class="files-markdown-mode-group">+ <div class="vr files-markdown-mode-separator files-markdown-mode-separator-start"></div>+ <button+ (click)="toggleViewMode()"+ [tooltip]="(isSourceMode() ? 'Visual Mode' : 'Code Mode') | translate:locale.language"+ class="btn btn-custom"+ type="button">+ <fa-icon [icon]="isSourceMode() ? icons.faKeyboard : icons.faCode"></fa-icon>+ </button>+ <div class="vr files-markdown-mode-separator files-markdown-mode-separator-end"></div>+ </div>++ @if (!isSourceMode()) {+ <div class="files-markdown-toolbar-group me-1">+ <div class="btn-group" dropdown>+ <button+ [disabled]="!canEditVisual()"+ [class.active]="isSelectionActive('heading')"+ [tooltip]="'Heading' | translate:locale.language"+ class="btn btn-custom dropdown-toggle files-markdown-heading-toggle"+ dropdownToggle+ type="button">+ <fa-icon [icon]="icons.faHeading"></fa-icon>+ </button>+ <ul *dropdownMenu class="dropdown-menu files-markdown-heading-menu" role="menu">+ <li role="menuitem">+ <a (click)="setParagraph()" [class.active]="editor.isActive('paragraph')" class="dropdown-item">+ <span class="files-markdown-heading-item">+ <span class="files-markdown-heading-level"><fa-icon [icon]="icons.faParagraph"></fa-icon></span>+ <span class="files-markdown-heading-name" l10nTranslate>Paragraph</span>+ </span>+ </a>+ </li>+ @for (level of headingLevels; track level) {+ <li role="menuitem">+ <a (click)="toggleHeading(level)" [class.active]="editor.isActive('heading', { level })" class="dropdown-item">+ <span class="files-markdown-heading-item">+ <span class="files-markdown-heading-level">H{{ level }}</span>+ <span class="files-markdown-heading-name">{{ 'Heading' | translate:locale.language }} {{ level }}</span>+ </span>+ </a>+ </li>+ }+ </ul>+ </div>+ <button+ (click)="toggleBold()"+ [disabled]="!canEditVisual()"+ [class.active]="isSelectionActive('bold')"+ [tooltip]="'Bold' | translate:locale.language"+ class="btn btn-custom"+ type="button">+ <fa-icon [icon]="icons.faBold"></fa-icon>+ </button>+ <button+ (click)="toggleItalic()"+ [disabled]="!canEditVisual()"+ [class.active]="isSelectionActive('italic')"+ [tooltip]="'Italic' | translate:locale.language"+ class="btn btn-custom"+ type="button">+ <fa-icon [icon]="icons.faItalic"></fa-icon>+ </button>+ <button+ (click)="toggleUnderline()"+ [disabled]="!canEditVisual()"+ [class.active]="isSelectionActive('underline')"+ [tooltip]="'Underline' | translate:locale.language"+ class="d-none d-md-block btn btn-custom"+ type="button">+ <fa-icon [icon]="icons.faUnderline"></fa-icon>+ </button>+ <button+ (click)="toggleStrike()"+ [disabled]="!canEditVisual()"+ [class.active]="isSelectionActive('strike')"+ [tooltip]="'Strikethrough' | translate:locale.language"+ class="d-none d-md-block btn btn-custom"+ type="button">+ <fa-icon [icon]="icons.faStrikethrough"></fa-icon>+ </button>++ <div class="d-none d-md-block vr files-markdown-toolbar-separator"></div>++ <div class="btn-group" dropdown>+ <button+ [disabled]="!canEditVisual()"+ [tooltip]="'List' | translate:locale.language"+ class="btn btn-custom dropdown-toggle"+ dropdownToggle+ type="button">+ <fa-icon [icon]="icons.faListUl"></fa-icon>+ </button>+ <ul *dropdownMenu class="dropdown-menu files-markdown-list-menu" role="menu">+ <li role="menuitem">+ <a (click)="toggleBulletList()" [class.active]="isSelectionActive('bulletList')" class="dropdown-item">+ <span class="files-markdown-list-item">+ <fa-icon [icon]="icons.faListUl"></fa-icon>+ <span l10nTranslate>Bullet List</span>+ </span>+ </a>+ </li>+ <li role="menuitem">+ <a (click)="toggleOrderedList()" [class.active]="isSelectionActive('orderedList')" class="dropdown-item">+ <span class="files-markdown-list-item">+ <fa-icon [icon]="icons.faListOl"></fa-icon>+ <span l10nTranslate>Ordered List</span>+ </span>+ </a>+ </li>+ <li role="menuitem">+ <a (click)="toggleTaskList()" [class.active]="isSelectionActive('taskList')" class="dropdown-item">+ <span class="files-markdown-list-item">+ <fa-icon [icon]="icons.faSquareCheck"></fa-icon>+ <span l10nTranslate>Task List</span>+ </span>+ </a>+ </li>+ </ul>+ </div>++ <div class="btn-group" dropdown>+ <button+ [disabled]="!canEditVisual()"+ [tooltip]="'Code' | translate:locale.language"+ class="btn btn-custom dropdown-toggle"+ dropdownToggle+ type="button">+ <fa-icon [icon]="icons.faCode"></fa-icon>+ </button>+ <ul *dropdownMenu class="dropdown-menu files-markdown-code-menu" role="menu">+ <li role="menuitem">+ <a (click)="toggleCode()" [class.active]="isSelectionActive('code')" class="dropdown-item">+ <span class="files-markdown-code-item">+ <fa-icon [icon]="icons.faCode"></fa-icon>+ <span l10nTranslate>Inline Code</span>+ </span>+ </a>+ </li>+ <li role="menuitem">+ <a (click)="toggleCodeBlock()" [class.active]="isSelectionActive('codeBlock')" class="dropdown-item">+ <span class="files-markdown-code-item">+ <fa-icon [icon]="icons.faCode"></fa-icon>+ <span l10nTranslate>Code Block</span>+ </span>+ </a>+ </li>+ </ul>+ </div>+ </div>++ <div class="files-markdown-toolbar-group me-1">+ <button+ (click)="toggleBlockquote()"+ [disabled]="!canEditVisual()"+ [class.active]="isSelectionActive('blockquote')"+ [tooltip]="'Blockquote' | translate:locale.language"+ class="d-none d-md-block btn btn-custom"+ type="button">+ <fa-icon [icon]="icons.faQuoteLeft"></fa-icon>+ </button>+ </div>++ <div class="files-markdown-toolbar-group me-1">+ <button+ (click)="setLink()"+ [disabled]="!canEditVisual()"+ [class.active]="isSelectionActive('link')"+ [tooltip]="'Link' | translate:locale.language"+ class="btn btn-custom"+ type="button">+ <fa-icon [icon]="icons.faLink"></fa-icon>+ </button>++ <div class="d-none d-lg-block btn-group" dropdown>+ <button+ [disabled]="!canEditVisual()"+ [tooltip]="'Table' | translate:locale.language"+ class="btn btn-custom dropdown-toggle"+ dropdownToggle+ type="button">+ <fa-icon [icon]="icons.faTable"></fa-icon>+ </button>+ <ul *dropdownMenu class="dropdown-menu files-markdown-table-menu" role="menu">+ <li role="menuitem">+ <a (click)="insertTable()" class="dropdown-item">+ <span><fa-icon [icon]="icons.faTable"></fa-icon><span class="ms-2" l10nTranslate>Create a table</span></span>+ </a>+ </li>+ <li class="dropdown-divider"></li>+ <li role="menuitem">+ <a (click)="addTableRow('above')" [class.disabled]="!canEditTable()" class="dropdown-item">+ <span><fa-icon [icon]="icons.faPlus"></fa-icon><span class="ms-2" l10nTranslate>Add row above</span></span>+ </a>+ </li>+ <li role="menuitem">+ <a (click)="addTableRow('below')" [class.disabled]="!canEditTable()" class="dropdown-item">+ <span><fa-icon [icon]="icons.faPlus"></fa-icon><span class="ms-2" l10nTranslate>Add row below</span></span>+ </a>+ </li>+ <li role="menuitem">+ <a (click)="deleteTableRow()" [class.disabled]="!canEditTable()" class="dropdown-item">+ <span><fa-icon [icon]="icons.faMinus"></fa-icon><span class="ms-2" l10nTranslate>Delete row</span></span>+ </a>+ </li>+ <li class="dropdown-divider"></li>+ <li role="menuitem">+ <a (click)="addTableColumn('left')" [class.disabled]="!canEditTable()" class="dropdown-item">+ <span><fa-icon [icon]="icons.faPlus"></fa-icon><span class="ms-2" l10nTranslate>Add column left</span></span>+ </a>+ </li>+ <li role="menuitem">+ <a (click)="addTableColumn('right')" [class.disabled]="!canEditTable()" class="dropdown-item">+ <span><fa-icon [icon]="icons.faPlus"></fa-icon><span class="ms-2" l10nTranslate>Add column right</span></span>+ </a>+ </li>+ <li role="menuitem">+ <a (click)="deleteTableColumn()" [class.disabled]="!canEditTable()" class="dropdown-item">+ <span><fa-icon [icon]="icons.faTrashCan"></fa-icon><span class="ms-2" l10nTranslate>Delete column</span></span>+ </a>+ </li>+ <li role="menuitem">+ <a (click)="deleteTable()" [class.disabled]="!canEditTable()" class="dropdown-item">+ <span><fa-icon [icon]="icons.faTrashCan"></fa-icon><span class="ms-2" l10nTranslate>Delete table</span></span>+ </a>+ </li>+ </ul>+ </div>++ <button+ (click)="setHorizontalRule()"+ [disabled]="!canEditVisual()"+ [tooltip]="'Horizontal Rule' | translate:locale.language"+ class="d-none d-lg-block btn btn-custom"+ type="button">+ <fa-icon [icon]="icons.faMinus"></fa-icon>+ </button>+ </div>+ }++ @if (isSourceMode()) {+ <button+ btnCheckbox+ [ngModel]="lineWrapping()"+ (ngModelChange)="lineWrapping.set($event)"+ [tooltip]="'Line Wrap' | translate:locale.language"+ class="btn btn-custom me-1"+ type="button">+ <fa-icon [icon]="icons.faArrowsLeftRightToLine"></fa-icon>+ </button>+ <button+ btnCheckbox+ [ngModel]="isSearchPanelOpen()"+ (ngModelChange)="toggleSearch()"+ [tooltip]="'Search' | translate:locale.language"+ class="d-none d-sm-block btn btn-custom me-1"+ type="button">+ <fa-icon [icon]="icons.faMagnifyingGlass"></fa-icon>+ </button>+ }++ @if (warnOnUnsavedChanges()) {+ <button (click)="save(true)"+ class="btn btn-primary me-2 ms-auto"+ type="button"+ l10nTranslate>Save And Exit+ </button>+ <button (click)="onClose()"+ class="btn btn-danger me-2"+ data-dismiss="modal" type="button"+ l10nTranslate>Close Without Saving+ </button>+ <button (click)="warnOnUnsavedChanges.set(false)"+ class="d-none d-sm-block btn btn-default"+ data-dismiss="modal" type="button"+ l10nTranslate>Cancel+ </button>+ }+ </div>++ <div class="files-markdown-content" [class.is-visual]="!isSourceMode()" [class.is-source]="isSourceMode()">+ <div class="files-markdown-visual-pane">+ <tiptap-editor+ class="files-markdown-visual-editor"+ [class.is-readonly]="isReadonly()"+ [editor]="editor">+ </tiptap-editor>+ </div>+ <div class="files-markdown-source-pane">+ <code-editor+ #sourceEditor+ [autoFocus]="false"+ [languages]="languages"+ [language]="currentLanguage"+ [(ngModel)]="sourceContent"+ (change)="sourceContentChange()"+ [theme]="currentTheme"+ [readonly]="!canEditContent()"+ [disabled]="!canEditContent()"+ [lineWrapping]="lineWrapping()" />+ </div>+ </div>+</div>diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.scss b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.scssnew file mode 100644index 00000000..48dfe78f--- /dev/null+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.scss@@ -0,0 +1,343 @@+.files-viewer-markdown {+ display: flex;+ flex-direction: column;+ min-height: 0;++ .files-markdown-toolbar {+ position: relative;+ z-index: 3;+ flex: 0 0 auto !important;+ flex-wrap: nowrap;+ gap: 4px 0;+ overflow: visible;+ }++ .files-markdown-toolbar-group,+ .files-markdown-mode-group {+ display: inline-flex;+ flex: 0 0 auto;+ align-items: center;+ }++ .files-markdown-toolbar-separator,+ .files-markdown-mode-separator {+ align-self: center;+ min-height: 1.45rem;+ }++ .files-markdown-toolbar-separator {+ margin: 0 0.5rem;+ }++ .files-markdown-mode-separator-start {+ margin-left: 0.25rem;+ margin-right: 0.5rem;+ }++ .files-markdown-mode-separator-end {+ margin-left: 0.5rem;+ margin-right: 0.5rem;+ }++ .files-markdown-heading-toggle {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ }++ .files-markdown-heading-menu,+ .files-markdown-list-menu,+ .files-markdown-code-menu,+ .files-markdown-table-menu {+ z-index: 4;+ }++ .files-markdown-heading-menu .dropdown-item,+ .files-markdown-list-menu .dropdown-item,+ .files-markdown-code-menu .dropdown-item {+ padding: 0.5rem 0.65rem;+ }++ .files-markdown-heading-menu .dropdown-item.active {+ background: var(--files-markdown-heading-active-bg, rgba(127, 127, 127, 0.18));+ color: inherit;+ }++ .files-markdown-heading-item {+ display: grid;+ grid-template-columns: 1.55rem max-content;+ column-gap: 0.45rem;+ align-items: center;+ }++ .files-markdown-heading-level,+ .files-markdown-heading-name {+ display: block;+ }++ .files-markdown-list-item,+ .files-markdown-code-item {+ display: grid;+ grid-template-columns: 1.35rem max-content;+ column-gap: 0.55rem;+ align-items: center;+ }++ .files-markdown-list-menu .dropdown-item fa-icon,+ .files-markdown-code-menu .dropdown-item fa-icon,+ .files-markdown-table-menu .dropdown-item fa-icon {+ width: 1.25rem;+ }++ .files-markdown-content {+ position: relative;+ z-index: 1;+ display: grid;+ flex: 1 1 auto;+ grid-template-columns: minmax(0, 1fr);+ min-height: 0;+ }++ .files-markdown-content.is-visual .files-markdown-source-pane,+ .files-markdown-content.is-source .files-markdown-visual-pane {+ display: none;+ }++ .files-markdown-visual-pane,+ .files-markdown-source-pane {+ min-height: 0;+ overflow: hidden;+ }++ .files-markdown-source-pane .code-editor {+ height: 100%;+ }++ .files-markdown-visual-editor {+ display: block;+ height: 100%;+ overflow: auto;+ background: #fff;++ &.is-readonly .ProseMirror {+ cursor: default;+ }+ }++ .ProseMirror {+ min-height: 100%;+ padding: 1rem 1.25rem 2rem;+ outline: none;+ font-size: 0.92rem;+ line-height: 1.58;++ h1,+ h2,+ h3,+ h4,+ .h1,+ .h2,+ .h3,+ .h4 {+ margin: 0.75rem 0 0.55rem;+ font-weight: 600;+ line-height: 1.25;+ }++ h1,+ .h1 {+ font-size: 1.75rem;+ }++ h2,+ .h2 {+ font-size: 1.45rem;+ }++ h3,+ .h3 {+ font-size: 1.2rem;+ }++ h4,+ .h4 {+ font-size: 1.05rem;+ }++ p,+ ul,+ ol,+ blockquote,+ pre,+ .tableWrapper {+ margin: 0 0 0.8rem;+ }++ ul[data-type='taskList'] {+ padding-left: 0;+ list-style: none;++ li {+ display: flex;+ gap: 0.55rem;+ align-items: flex-start;++ > label {+ flex: 0 0 auto;+ margin-top: 0.1rem;+ user-select: none;+ }++ > div {+ flex: 1 1 auto;+ min-width: 0;+ }+ }+ }++ blockquote {+ padding-left: 0.85rem;+ border-left: 3px solid #8aa4c8;+ color: #53657d;+ }++ pre {+ padding: 0.85rem 1rem;+ overflow: auto;+ border-radius: 6px;+ background: #172033;+ color: #eef3fb;++ code {+ padding: 0;+ background: transparent;+ }+ }++ code {+ padding: 0.08rem 0.28rem;+ border-radius: 4px;+ background: rgba(115, 132, 156, 0.16);+ }++ hr {+ margin: 1rem 0;+ border: 0;+ border-top: 1px solid rgba(128, 128, 128, 0.35);+ }++ .tableWrapper {+ overflow-x: auto;+ }++ table {+ width: 100%;+ table-layout: fixed;+ border-collapse: collapse;++ th,+ td {+ position: relative;+ min-width: 6rem;+ padding: 0.45rem 0.55rem;+ border: 1px solid rgba(128, 128, 128, 0.35);+ vertical-align: top;++ > *:last-child {+ margin-bottom: 0;+ }+ }++ th {+ background: rgba(115, 132, 156, 0.12);+ font-weight: 700;+ }++ .selectedCell::after {+ position: absolute;+ inset: 0;+ z-index: 2;+ pointer-events: none;+ content: '';+ background: rgba(95, 132, 189, 0.18);+ }++ .column-resize-handle {+ position: absolute;+ top: 0;+ right: -2px;+ bottom: 0;+ z-index: 3;+ width: 4px;+ pointer-events: none;+ background: #5f84bd;+ }+ }++ &.resize-cursor {+ cursor: col-resize;+ }+ }++ .cm-focused {+ outline: none !important;+ }++ .cm-panel.cm-search {+ display: flex;+ align-items: center;+ text-wrap: nowrap;++ label {+ display: flex;+ align-items: center;+ }++ button[aria-label='close'] {+ display: none;+ }+ }+}++body.theme-light {+ .files-viewer-markdown {+ .files-markdown-heading-menu .dropdown-item.active {+ --files-markdown-heading-active-bg: #f3f6f9;+ }+ }+}++body.theme-dark {+ .files-viewer-markdown {+ .files-markdown-heading-menu .dropdown-item.active {+ --files-markdown-heading-active-bg: rgba(92, 141, 202, 0.32);+ }++ .files-markdown-visual-editor {+ background: #161b22;+ color: #d7dde8;+ }++ .ProseMirror {+ blockquote {+ border-left-color: #58739a;+ color: #aeb9ca;+ }++ code {+ background: rgba(156, 171, 194, 0.18);+ }++ table {+ th,+ td {+ border-color: rgba(156, 171, 194, 0.28);+ }++ th {+ background: rgba(156, 171, 194, 0.12);+ }+ }+ }+ }+}diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.ts b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.tsnew file mode 100644index 00000000..bf7ebcd9--- /dev/null+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-markdown.component.ts@@ -0,0 +1,548 @@+import { CodeEditor } from '@acrodata/code-editor'+import { HttpClient, HttpErrorResponse } from '@angular/common/http'+import {+ Component,+ effect,+ HostListener,+ inject,+ input,+ model,+ OnDestroy,+ OnInit,+ signal,+ untracked,+ viewChild,+ ViewEncapsulation+} from '@angular/core'+import { FormsModule } from '@angular/forms'+import { redo, redoDepth, undo, undoDepth } from '@codemirror/commands'+import { LanguageDescription } from '@codemirror/language'+import { languages } from '@codemirror/language-data'+import { closeSearchPanel, openSearchPanel } from '@codemirror/search'+import { FaIconComponent } from '@fortawesome/angular-fontawesome'+import {+ faArrowsLeftRightToLine,+ faBold,+ faCode,+ faFloppyDisk,+ faHeading,+ faItalic,+ faKeyboard,+ faLink,+ faListOl,+ faListUl,+ faLock,+ faLockOpen,+ faMagnifyingGlass,+ faMinus,+ faParagraph,+ faPlus,+ faQuoteLeft,+ faReply,+ faShare,+ faSpinner,+ faSquareCheck,+ faStrikethrough,+ faTable,+ faTrashCan,+ faUnderline+} from '@fortawesome/free-solid-svg-icons'+import type { FileLockProps } from '@sync-in-server/backend/src/applications/files/interfaces/file-props.interface'+import { Editor } from '@tiptap/core'+import { TaskItem } from '@tiptap/extension-list'+import { TableKit } from '@tiptap/extension-table'+import { TaskList } from '@tiptap/extension-task-list'+import { Markdown } from '@tiptap/markdown'+import StarterKit from '@tiptap/starter-kit'+import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'+import { ButtonCheckboxDirective } from 'ngx-bootstrap/buttons'+import { BsDropdownModule } from 'ngx-bootstrap/dropdown'+import { TooltipModule } from 'ngx-bootstrap/tooltip'+import { TiptapEditorDirective } from 'ngx-tiptap'+import { firstValueFrom } from 'rxjs'+import { type AppWindow, themeDark } from '../../../../layout/layout.interfaces'+import { LayoutService } from '../../../../layout/layout.service'+import { FileModel } from '../../models/file.model'+import { FilesService } from '../../services/files.service'+import { FilesUploadService } from '../../services/files-upload.service'+import { fileLockPropsToString } from '../utils/file-lock.utils'++type MarkdownHeadingLevel = 1 | 2 | 3 | 4++@Component({+ selector: 'app-files-viewer-markdown',+ encapsulation: ViewEncapsulation.None,+ imports: [+ CodeEditor,+ TiptapEditorDirective,+ TooltipModule,+ FormsModule,+ ButtonCheckboxDirective,+ BsDropdownModule,+ FaIconComponent,+ L10nTranslatePipe,+ L10nTranslateDirective+ ],+ styleUrl: 'files-viewer-markdown.component.scss',+ templateUrl: 'files-viewer-markdown.component.html'+})+export class FilesViewerMarkdownComponent implements OnInit, OnDestroy {+ private readonly sourceEditor = viewChild<CodeEditor>('sourceEditor')+ currentHeight = input.required<number>()+ file = model.required<FileModel>()+ isWriteable = input.required<boolean>()+ isReadonly = model.required<boolean>()+ modalClosing = input.required<boolean>()+ protected isSupported = signal(false)+ protected isModified = signal(false)+ protected isSaving = signal(false)+ protected isSourceMode = signal(false)+ protected lineWrapping = signal(true)+ protected isSearchPanelOpen = signal(false)+ protected warnOnUnsavedChanges = signal(false)+ protected sourceContent = ''+ protected currentLanguage: string | undefined = undefined+ protected currentTheme: 'dark' | 'light' = 'light'+ protected readonly languages: LanguageDescription[] = languages+ protected readonly editor = new Editor({+ extensions: [+ StarterKit.configure({+ link: {+ openOnClick: false+ }+ }),+ TaskList,+ TaskItem.configure({+ nested: true+ }),+ TableKit.configure({+ table: {+ resizable: true+ }+ }),+ Markdown+ ],+ editable: false,+ content: '',+ contentType: 'markdown',+ onUpdate: () => this.markModifiedIfNeeded()+ })+ protected readonly icons = {+ faArrowsLeftRightToLine,+ faBold,+ faCode,+ faFloppyDisk,+ faHeading,+ faItalic,+ faKeyboard,+ faLink,+ faListOl,+ faListUl,+ faLock,+ faLockOpen,+ faMagnifyingGlass,+ faMinus,+ faParagraph,+ faPlus,+ faQuoteLeft,+ faReply,+ faShare,+ faSquareCheck,+ faSpinner,+ faStrikethrough,+ faTable,+ faTrashCan,+ faUnderline+ }+ protected readonly headingLevels: MarkdownHeadingLevel[] = [1, 2, 3, 4]+ protected readonly locale = inject<L10nLocale>(L10N_LOCALE)+ protected readonly layout = inject(LayoutService)+ private readonly http = inject(HttpClient)+ private readonly filesServices = inject(FilesService)+ private readonly filesUpload = inject(FilesUploadService)+ private readonly subscription = this.layout.switchTheme.subscribe((layout: string) => (this.currentTheme = layout === themeDark ? 'dark' : 'light'))+ private savedContent = ''++ constructor() {+ effect(() => {+ if (!this.modalClosing()) return+ const fileId = untracked(() => this.file().id)+ const modified = untracked(() => this.isModified())+ if (modified) {+ this.warnOnUnsavedChanges.set(true)+ if (this.layout.windows.getValue().find((w: AppWindow) => w.id === fileId)) {+ this.layout.restoreDialog(fileId)+ }+ } else {+ this.onClose().catch(console.error)+ }+ })+ effect(() => {+ const editable = !this.isReadonly() && this.isWriteable() && this.isSupported()+ if (!this.editor.isDestroyed) {+ this.editor.setEditable(editable, false)+ }+ })+ }++ @HostListener('document:keydown', ['$event'])+ onKeyDown(event: KeyboardEvent) {+ if (event.key === 'Escape' || event.key === 'Esc') {+ event.preventDefault()+ event.stopPropagation()+ if (this.isSourceMode() && this.isSearchPanelOpen()) {+ this.toggleSearch()+ } else if (this.warnOnUnsavedChanges()) {+ this.warnOnUnsavedChanges.set(false)+ } else if (this.isModified()) {+ this.warnOnUnsavedChanges.set(true)+ } else {+ this.onClose().catch(console.error)+ }+ return+ }++ if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 's') {+ event.preventDefault()+ this.save()+ return+ }++ if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'f' && this.isSourceMode()) {+ event.preventDefault()+ event.stopPropagation()+ this.toggleSearch()+ }+ }++ async ngOnInit() {+ const language: LanguageDescription = LanguageDescription.matchFilename(languages, this.file().name)+ this.currentLanguage = language?.name || 'Markdown'+ this.isSupported.set(true)+ this.loadContent().catch(console.error)+ }++ ngOnDestroy() {+ this.subscription.unsubscribe()+ this.editor.destroy()+ }++ protected async toggleReadonly() {+ if (this.isReadonly()) {+ if (await this.lockFile()) {+ this.isReadonly.set(false)+ }+ } else {+ await this.unlockFile()+ this.isReadonly.set(true)+ }+ }++ protected save(exit = false) {+ if (!this.canSave()) return+ this.isSaving.set(true)+ const content = this.currentMarkdown()+ this.filesUpload.uploadOneFile(this.file(), content, true).subscribe({+ next: () => {+ this.sourceContent = content+ this.savedContent = content+ this.isModified.set(false)+ this.isSaving.set(false)+ this.warnOnUnsavedChanges.set(false)+ if (exit) {+ this.onClose().catch(console.error)+ }+ this.file().updateHTimeAgo()+ },+ error: (e: HttpErrorResponse) => {+ this.isSaving.set(false)+ this.layout.sendNotification('error', 'Unable to save document', e.error.message)+ }+ })+ }++ protected canSave(): boolean {+ return this.canEditContent() && this.isModified() && !this.isSaving()+ }++ protected onUndo() {+ if (this.isSourceMode()) {+ this.runSourceHistory(undo)+ return+ }+ this.runEditorCommand(() => this.editor.chain().focus().undo().run())+ }++ protected onRedo() {+ if (this.isSourceMode()) {+ this.runSourceHistory(redo)+ return+ }+ this.runEditorCommand(() => this.editor.chain().focus().redo().run())+ }++ protected canUndo(): boolean {+ if (this.isSourceMode()) {+ return this.canRunSourceHistory(undoDepth)+ }+ return this.canEditVisual() && !this.editor.isDestroyed && this.editor.can().undo()+ }++ protected canRedo(): boolean {+ if (this.isSourceMode()) {+ return this.canRunSourceHistory(redoDepth)+ }+ return this.canEditVisual() && !this.editor.isDestroyed && this.editor.can().redo()+ }++ protected toggleViewMode() {+ this.setSourceMode(!this.isSourceMode())+ }++ protected setSourceMode(sourceMode: boolean) {+ if (sourceMode === this.isSourceMode()) return+ if (!this.isSourceMode()) {+ this.sourceContent = this.editor.getMarkdown()+ }+ if (!sourceMode) {+ if (this.isSearchPanelOpen()) {+ this.toggleSearch()+ }+ this.editor.commands.setContent(this.sourceContent, { emitUpdate: false, contentType: 'markdown' })+ }+ this.isSourceMode.set(sourceMode)+ setTimeout(() => {+ if (sourceMode) {+ this.sourceEditor()?.view?.requestMeasure?.()+ this.sourceEditor()?.view?.focus()+ }+ })+ }++ protected sourceContentChange() {+ if (this.isSourceMode()) {+ this.markModifiedIfNeeded()+ }+ }++ protected toggleSearch() {+ const view = this.sourceView+ if (!this.isSourceMode() || !view) return+ this.isSearchPanelOpen.update((value) => !value)+ if (this.isSearchPanelOpen()) {+ openSearchPanel(view)+ } else {+ closeSearchPanel(view)+ }+ }++ protected setParagraph() {+ this.runEditorCommand(() => this.editor.chain().focus().setParagraph().run())+ }++ protected toggleHeading(level: MarkdownHeadingLevel) {+ this.runEditorCommand(() => this.editor.chain().focus().toggleHeading({ level }).run())+ }++ protected toggleBold() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleBold().run())+ }++ protected toggleItalic() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleItalic().run())+ }++ protected toggleUnderline() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleUnderline().run())+ }++ protected toggleStrike() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleStrike().run())+ }++ protected toggleCode() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleCode().run())+ }++ protected toggleBulletList() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleBulletList().run())+ }++ protected toggleOrderedList() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleOrderedList().run())+ }++ protected toggleTaskList() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleTaskList().run())+ }++ protected toggleBlockquote() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleBlockquote().run())+ }++ protected toggleCodeBlock() {+ this.runEditorCommand(() => this.editor.chain().focus().toggleCodeBlock().run())+ }++ protected setHorizontalRule() {+ this.runEditorCommand(() => this.editor.chain().focus().setHorizontalRule().run())+ }++ protected setLink() {+ this.runEditorCommand(() => {+ const previousUrl = this.editor.getAttributes('link').href as string | undefined+ const url = window.prompt('URL', previousUrl || 'https://')+ if (url === null) return false+ if (!url.trim()) {+ return this.editor.chain().focus().extendMarkRange('link').unsetLink().run()+ }+ return this.editor.chain().focus().extendMarkRange('link').setLink({ href: url.trim() }).run()+ })+ }++ protected insertTable() {+ this.runEditorCommand(() => this.editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run())+ }++ protected addTableRow(position: 'above' | 'below') {+ this.runEditorCommand(() => {+ const command = this.editor.chain().focus()+ return position === 'above' ? command.addRowBefore().run() : command.addRowAfter().run()+ })+ }++ protected deleteTableRow() {+ this.runEditorCommand(() => this.editor.chain().focus().deleteRow().run())+ }++ protected addTableColumn(position: 'left' | 'right') {+ this.runEditorCommand(() => {+ const command = this.editor.chain().focus()+ return position === 'left' ? command.addColumnBefore().run() : command.addColumnAfter().run()+ })+ }++ protected deleteTableColumn() {+ this.runEditorCommand(() => this.editor.chain().focus().deleteColumn().run())+ }++ protected deleteTable() {+ this.runEditorCommand(() => this.editor.chain().focus().deleteTable().run())+ }++ protected canEditTable(): boolean {+ return this.canEditVisual() && this.editor.isActive('table')+ }++ protected isSelectionActive(name: string, attributes?: object): boolean {+ return this.editor.isFocused && this.editor.isActive(name, attributes)+ }++ protected async onClose() {+ if (!this.isReadonly()) {+ await this.unlockFile()+ }+ this.layout.closeDialog(null, this.file().id)+ }++ private runEditorCommand(command: () => boolean) {+ if (this.canEditVisual() && !this.editor.isDestroyed) {+ command()+ }+ }++ protected canEditVisual(): boolean {+ return !this.isSourceMode() && this.canEditContent()+ }++ protected canEditContent(): boolean {+ return !this.isReadonly() && this.isWriteable()+ }++ private get sourceView() {+ return this.sourceEditor()?.view || null+ }++ private runSourceHistory(command: typeof undo) {+ const view = this.sourceView+ if (view && this.canEditContent()) {+ command({ state: view.state, dispatch: view.dispatch })+ }+ }++ private canRunSourceHistory(depth: typeof undoDepth): boolean {+ const view = this.sourceView+ return this.canEditContent() && !!view && depth(view.state) > 0+ }++ private currentMarkdown(): string {+ if (this.isSourceMode()) {+ return this.sourceContent+ }+ this.sourceContent = this.editor.getMarkdown()+ return this.sourceContent+ }++ private markModifiedIfNeeded() {+ const content = this.isSourceMode() ? this.sourceContent : this.editor.getMarkdown()+ this.isModified.set(content !== this.savedContent)+ }++ private async loadContent() {+ if (!this.isReadonly()) {+ await this.lockFile()+ }+ this.http.get(this.file().dataUrl, { responseType: 'text' }).subscribe({+ next: (data: string) => {+ this.savedContent = data+ this.sourceContent = data+ this.editor.commands.setContent(data, { emitUpdate: false, contentType: 'markdown' })+ this.isModified.set(false)+ },+ error: (e: HttpErrorResponse) => this.layout.sendNotification('error', 'Unable to open document', this.file().name, e)+ })+ }++ private async lockFile(): Promise<boolean> {+ if (!this.isSupported() || !this.isWriteable()) return false+ try {+ const lock: FileLockProps = await firstValueFrom(this.filesServices.lock(this.file()))+ this.file.update((f) => {+ f.lock = lock+ return f+ })+ return true+ } catch (e) {+ this.lockError(e as HttpErrorResponse)+ return false+ }+ }++ private async unlockFile() {+ if (!this.isSupported() || !this.isWriteable()) return+ try {+ await firstValueFrom(this.filesServices.unlock(this.file()))+ this.file.update((f) => {+ delete f.lock+ return f+ })+ } catch (e) {+ this.lockError(e as HttpErrorResponse)+ }+ }++ private lockError(e: HttpErrorResponse) {+ this.isReadonly.set(true)+ this.isSupported.set(false)+ if (e.error?.owner) {+ const lock: FileLockProps = e.error+ this.file.update((f) => {+ f.lock = lock+ return f+ })+ this.layout.sendNotification('info', 'The file is locked', fileLockPropsToString(lock))+ } else {+ this.layout.sendNotification('warning', this.file().name, e.error.message)+ }+ }+}diff --git a/package-lock.json b/package-lock.jsonindex 4c75b23d..46214fe7 100644--- a/package-lock.json+++ b/package-lock.json@@ -168,6 +168,12 @@"@fortawesome/free-regular-svg-icons": "^7.0.0","@fortawesome/free-solid-svg-icons": "^7.0.0","@perfectmemory/ngx-contextmenu": "^20.0.0",+ "@tiptap/core": "^3.23.4",+ "@tiptap/extension-list": "^3.23.4",+ "@tiptap/extension-table": "^3.23.4",+ "@tiptap/extension-task-list": "^3.23.4",+ "@tiptap/markdown": "^3.23.4",+ "@tiptap/starter-kit": "^3.23.4","@videogular/ngx-videogular": "^20.0.0","angular-l10n": "^17.0.0","codemirror": "^6.0.2",@@ -175,6 +181,7 @@"ngx-bootstrap": "^20.0.0","ngx-clipboard": "^16.0.0","ngx-socket-io": "4.9.3",+ "ngx-tiptap": "^14.0.1","ngx-toastr": "^19.0.0","rxjs": "^7.8.2","tslib": "^2.7.0",@@ -4323,6 +4330,34 @@"glob": "^13.0.0"}},+ "node_modules/@floating-ui/core": {+ "version": "1.7.5",+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.5.tgz",+ "integrity": "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@floating-ui/utils": "^0.2.11"+ }+ },+ "node_modules/@floating-ui/dom": {+ "version": "1.7.6",+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.6.tgz",+ "integrity": "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@floating-ui/core": "^1.7.5",+ "@floating-ui/utils": "^0.2.11"+ }+ },+ "node_modules/@floating-ui/utils": {+ "version": "0.2.11",+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.11.tgz",+ "integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==",+ "license": "MIT",+ "peer": true+ },"node_modules/@fontsource-variable/inter": {"version": "5.2.8","resolved": "https://registry.npmjs.org/@fontsource-variable/inter/-/inter-5.2.8.tgz",@@ -10507,6 +10542,451 @@"resolved": "frontend","link": true},+ "node_modules/@tiptap/core": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/core/-/core-3.23.4.tgz",+ "integrity": "sha512-ni2LWE52bVeSt3L2HVBSmbBw+elc32ATej9C68EyKzN/8vR5ILxFn6RCdDTKm4asmwZyq2jys12dKmBdWMr9QA==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-blockquote": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-blockquote/-/extension-blockquote-3.23.4.tgz",+ "integrity": "sha512-7YjSibNlPcy9eGK+tHt5G/Njr7nPxl+rZ3rCC6TwtLIRLSHPnoGDsfFOgTPkXxaQcE1a/VQwemnYfWc3kdIjDQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-bold": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bold/-/extension-bold-3.23.4.tgz",+ "integrity": "sha512-3L9tnZ12i+98u5df2nV2zGu/sc3rhI87E3ocn1YYAO8PJUAgZnMwdet8JawCrS1uut5sRKlxo3SXEmdNfRVm/w==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-bubble-menu": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bubble-menu/-/extension-bubble-menu-3.23.4.tgz",+ "integrity": "sha512-EPTpL/IFp/aTGZErBq/Mc3dKznj6G/qNEkVYWjueOn1oKApyT0P6WVHGvu/vpMdErhzmoGDuFPPGVS6T8Upx2Q==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@floating-ui/dom": "^1.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4",+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-bullet-list": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bullet-list/-/extension-bullet-list-3.23.4.tgz",+ "integrity": "sha512-mXB2KZOz1R+E6VNTZ3vzdAk7ZDGKjPmsJEZIQg1B5qRycTKg49/rCCkLA2QnqAwX6BzS3mLLH1RWE2W0oXD7vg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/extension-list": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-code": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-3.23.4.tgz",+ "integrity": "sha512-C0TeRipMycUEBnV+Mzx6eLp/yZb6Vi/waP3Tkb0lO5/ikg7LWLB7AlmMunjIXEUcR/pJHID/aEh5PfJFpysUDg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-code-block": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-code-block/-/extension-code-block-3.23.4.tgz",+ "integrity": "sha512-UEU1w/85CSNKktbhESnIRmtjKcH7DeschReZA8err1wAnYLTKzid5ucnJSJ25iRg2V5Fnuws5gnPT5CVgdfXCQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4",+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-document": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-3.23.4.tgz",+ "integrity": "sha512-YC4G6VkxT629rlqUTwD6XvOpxjvghn7fxrK4RbyKVJY2C6E1vgmX0won1Ast6v+qTE6iONOMS6f6VyPxSGjg4w==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-dropcursor": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-3.23.4.tgz",+ "integrity": "sha512-ujJQUIENk0RwVFCh5g/TOSEv1a7Pnam/cjHmSUqHWUNZkYS9aOqjm+JfURJPCinRS2oHvo3AARul5mkKgDJYcA==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/extensions": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-floating-menu": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-floating-menu/-/extension-floating-menu-3.23.4.tgz",+ "integrity": "sha512-eAc72bKM26yIPx0jsU8qdjE71vFNVu5R9jGbdItBMFc0SPLS4qY8g+8RJ+iWoLwbcSEpgooLS9D9sLfdAU+Tvw==",+ "license": "MIT",+ "peer": true,+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@floating-ui/dom": "^1.0.0",+ "@tiptap/core": "3.23.4",+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-gapcursor": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-gapcursor/-/extension-gapcursor-3.23.4.tgz",+ "integrity": "sha512-RuyvOlIGP6UpVOc0Lw0L63jKLtYM49CNhPV2OMSfwwwbBZ3pJGos2/SqpYg71d3sn+qpsAopS4Pfr8iPZog73A==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/extensions": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-hard-break": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-hard-break/-/extension-hard-break-3.23.4.tgz",+ "integrity": "sha512-ODlpZCi7n136BH9luM09EFL8Pg+bbRCd0tzCQM5BKMXRkLitYZA8Gl/f5DLmGJ50wzFsDPXK2Br2g9UvZK7COg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-heading": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-heading/-/extension-heading-3.23.4.tgz",+ "integrity": "sha512-8W9Hqi0J69Xbqg08nPf4xRMJXMccaKFAgUE1tvy5PAWJSQxOMwkKQXgZXxwe+80sOMUnV8qveBqUy/ODMPgAxQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-horizontal-rule": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-3.23.4.tgz",+ "integrity": "sha512-EA4kK8ywZ4dQNOdxeZbplmDDs5T5LjMgHpqxRwukj9wwKiILOK5E3fcKm1fCKh9Q02w96jax6YVccHwmgJP3sQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4",+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-italic": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-italic/-/extension-italic-3.23.4.tgz",+ "integrity": "sha512-jUAHi+HZlg47BzgVIy6y/UH5vev7vPQ95jddhB5K3hC122kvWFMXlken7UOnqzbxNcHs2+4Oi/ZJirYMpT4P5w==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-link": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-link/-/extension-link-3.23.4.tgz",+ "integrity": "sha512-XjxltY7MomwfTs6jmN6Bw5bb/upb34lpyqv2RiXppFTK25Br7ipksRjUpWpB4/csZeg30qwrLGVKxCol38ffrw==",+ "license": "MIT",+ "dependencies": {+ "linkifyjs": "^4.3.3"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4",+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-list": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list/-/extension-list-3.23.4.tgz",+ "integrity": "sha512-yuauDm6qW/7q+ZO0YJBKQEGdnUm6DDTJM8AMp9bMZrT4jRf/zyUtNcZ91QEfFvBcyVuI+10PIOXtNPevhQ741Q==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4",+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-list-item": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list-item/-/extension-list-item-3.23.4.tgz",+ "integrity": "sha512-Q/JXosShD5oyDwukE6igdrZD2lb0ZgyoQTHYchk0pzU4frClFbn3RI1wKP+XeqKLhdO6KH2WZ9rERGH7PtDi7Q==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/extension-list": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-list-keymap": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list-keymap/-/extension-list-keymap-3.23.4.tgz",+ "integrity": "sha512-9FezifCfuoc0o+5K6l4QNOOfelqxnDGg/f9oL1D/LFZPC54bPxpWWft9QCWOqyqZgyLCLjbCjciAlbgkrFUmmw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/extension-list": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-ordered-list": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-ordered-list/-/extension-ordered-list-3.23.4.tgz",+ "integrity": "sha512-+3ofyssYnOTa1+nFWEmCAY1ngn8nAV1xo25JnNNC87NMU9WkSgr93jB7/uUJP0uui1C2dBLlaup3XXm108yarw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/extension-list": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-paragraph": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-paragraph/-/extension-paragraph-3.23.4.tgz",+ "integrity": "sha512-KbhXjCFzWphvFn5VU7E4dtmYDm+bssI1i0+CnXPWCXkjdaaX88ck68Xp1fKz8/bbI/CqlgiNDO/3TvqgtZ6woQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-strike": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-strike/-/extension-strike-3.23.4.tgz",+ "integrity": "sha512-Vnq5vW801zPbu1LtKeA5k4R241jY+hRjXeijYwIPxy15KzIiipY12518HiCf6/8kkRbMxgOfdYg9X4BRV3HV3g==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-table": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-table/-/extension-table-3.23.4.tgz",+ "integrity": "sha512-TRh6JMTRYXCWpwavGt3aAHH2f51ZzkhurfW3XvrURG3It8MvfuuY1xB1xba1ss5c0QLWlrKx6GVaSXrUCdFLlg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4",+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-task-list": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-task-list/-/extension-task-list-3.23.4.tgz",+ "integrity": "sha512-WIz4MHvPZssS5pNTTn2BuriCNrHA6jeS1XiRIqJFrvRXj7Kc9scXtGpne3GmisXDDeDKcP1IjREwQO9nlD8mVw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/extension-list": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-text": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-text/-/extension-text-3.23.4.tgz",+ "integrity": "sha512-q9kxver/MR18p66aWZHSPycnr9hcBFyVGeGj8gf+BQCzn5hpvtSYTfLvk1nq8GFhygdQ9/e3f7B5ovrm/jnpvw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extension-underline": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extension-underline/-/extension-underline-3.23.4.tgz",+ "integrity": "sha512-F1ocPT10LV+seky25R1TMCRdc/Iof99jLcDSYDGr6mNEDY4ct2RvOeSM8aDdYq6CkH+vXt3i3JDeRwV23KzswQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4"+ }+ },+ "node_modules/@tiptap/extensions": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/extensions/-/extensions-3.23.4.tgz",+ "integrity": "sha512-SlGPXauW8iKWG7wwuwC/0y/smLImp0h6GBIGgNnTBgIP/ThXQnjLMSZH0mW/REO87dQxkku01V3ARRywi+juhg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4",+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/markdown": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/markdown/-/markdown-3.23.4.tgz",+ "integrity": "sha512-jRh/oa7WyhnXo+vaiaiZ42a5h/m1vvsrEWJHy12vD1qMivRKfNmRJN+lZmYpBV+6h+5vhQpg7EMMIH82xvVWRQ==",+ "license": "MIT",+ "dependencies": {+ "marked": "^17.0.1"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ },+ "peerDependencies": {+ "@tiptap/core": "3.23.4",+ "@tiptap/pm": "3.23.4"+ }+ },+ "node_modules/@tiptap/pm": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/pm/-/pm-3.23.4.tgz",+ "integrity": "sha512-+C5ngcoza47n3MjtjVBqBEBICPC0McdbwzJ+X6SSCviCLoqnSYanv5mIX9HWG0Q4fJ4BkdNM3VibZUxQaTbKyQ==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-changeset": "^2.3.0",+ "prosemirror-commands": "^1.6.2",+ "prosemirror-dropcursor": "^1.8.1",+ "prosemirror-gapcursor": "^1.3.2",+ "prosemirror-history": "^1.4.1",+ "prosemirror-keymap": "^1.2.2",+ "prosemirror-model": "^1.24.1",+ "prosemirror-schema-list": "^1.5.0",+ "prosemirror-state": "^1.4.3",+ "prosemirror-tables": "^1.6.4",+ "prosemirror-transform": "^1.10.2",+ "prosemirror-view": "^1.38.1"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ }+ },+ "node_modules/@tiptap/starter-kit": {+ "version": "3.23.4",+ "resolved": "https://registry.npmjs.org/@tiptap/starter-kit/-/starter-kit-3.23.4.tgz",+ "integrity": "sha512-3VhU+NO6/ec9DMj/5Ej0nzARSq42cXnqW+QHCmTL3FNXkXQz+tw1KlfruT5GGJ3M0RssjWjRC0a39N/4S3qxeA==",+ "license": "MIT",+ "dependencies": {+ "@tiptap/core": "^3.23.4",+ "@tiptap/extension-blockquote": "^3.23.4",+ "@tiptap/extension-bold": "^3.23.4",+ "@tiptap/extension-bullet-list": "^3.23.4",+ "@tiptap/extension-code": "^3.23.4",+ "@tiptap/extension-code-block": "^3.23.4",+ "@tiptap/extension-document": "^3.23.4",+ "@tiptap/extension-dropcursor": "^3.23.4",+ "@tiptap/extension-gapcursor": "^3.23.4",+ "@tiptap/extension-hard-break": "^3.23.4",+ "@tiptap/extension-heading": "^3.23.4",+ "@tiptap/extension-horizontal-rule": "^3.23.4",+ "@tiptap/extension-italic": "^3.23.4",+ "@tiptap/extension-link": "^3.23.4",+ "@tiptap/extension-list": "^3.23.4",+ "@tiptap/extension-list-item": "^3.23.4",+ "@tiptap/extension-list-keymap": "^3.23.4",+ "@tiptap/extension-ordered-list": "^3.23.4",+ "@tiptap/extension-paragraph": "^3.23.4",+ "@tiptap/extension-strike": "^3.23.4",+ "@tiptap/extension-text": "^3.23.4",+ "@tiptap/extension-underline": "^3.23.4",+ "@tiptap/extensions": "^3.23.4",+ "@tiptap/pm": "^3.23.4"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/ueberdosis"+ }+ },"node_modules/@tokenizer/inflate": {"version": "0.4.1","resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.4.1.tgz",@@ -21849,6 +22329,12 @@"dev": true,"license": "MIT"},+ "node_modules/linkifyjs": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.3.3.tgz",+ "integrity": "sha512-P8aEP5U/D1/IlTY2OeYsErdwh9bGuLE30NcXtKEjgdHcahveQoQwM2yZNsioQHsWFz0P7KKudisbrzCgR0sDHg==",+ "license": "MIT"+ },"node_modules/listr2": {"version": "9.0.1","resolved": "https://registry.npmjs.org/listr2/-/listr2-9.0.1.tgz",@@ -22775,6 +23261,18 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/marked": {+ "version": "17.0.6",+ "resolved": "https://registry.npmjs.org/marked/-/marked-17.0.6.tgz",+ "integrity": "sha512-gB0gkNafnonOw0obSTEGZTT86IuhILt2Wfx0mWH/1Au83kybTayroZ/V6nS25mN7u8ASy+5fMhgB3XPNrOZdmA==",+ "license": "MIT",+ "bin": {+ "marked": "bin/marked.js"+ },+ "engines": {+ "node": ">= 20"+ }+ },"node_modules/math-intrinsics": {"version": "1.1.0","resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",@@ -23598,6 +24096,31 @@"rxjs": "^7.0.0"}},+ "node_modules/ngx-tiptap": {+ "version": "14.0.1",+ "resolved": "https://registry.npmjs.org/ngx-tiptap/-/ngx-tiptap-14.0.1.tgz",+ "integrity": "sha512-LOd8y+8H09Oi6jAE/UWy2sg68Mk5ZGTnPhnq7qeiDhU/QSZWD+SJ5vWkF4sguOCsHtPfde010xBf/zhy/b1P5A==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/sibiraj-s"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.3.0"+ },+ "peerDependencies": {+ "@angular/common": ">=20.0.0",+ "@angular/core": ">=20.0.0",+ "@angular/forms": ">=20.0.0",+ "@floating-ui/dom": "^1.0.0",+ "@tiptap/core": "^3.0.1",+ "@tiptap/extension-bubble-menu": "^3.0.1",+ "@tiptap/extension-floating-menu": "^3.0.1",+ "@tiptap/pm": "^3.0.1"+ }+ },"node_modules/ngx-toastr": {"version": "19.1.0","resolved": "https://registry.npmjs.org/ngx-toastr/-/ngx-toastr-19.1.0.tgz",@@ -24284,6 +24807,12 @@"license": "MIT","optional": true},+ "node_modules/orderedmap": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz",+ "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==",+ "license": "MIT"+ },"node_modules/p-cancelable": {"version": "4.0.1","resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-4.0.1.tgz",@@ -25255,6 +25784,135 @@"node": ">=10"}},+ "node_modules/prosemirror-changeset": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.4.1.tgz",+ "integrity": "sha512-96WBLhOaYhJ+kPhLg3uW359Tz6I/MfcrQfL4EGv4SrcqKEMC1gmoGrXHecPE8eOwTVCJ4IwgfzM8fFad25wNfw==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-transform": "^1.0.0"+ }+ },+ "node_modules/prosemirror-commands": {+ "version": "1.7.1",+ "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.7.1.tgz",+ "integrity": "sha512-rT7qZnQtx5c0/y/KlYaGvtG411S97UaL6gdp6RIZ23DLHanMYLyfGBV5DtSnZdthQql7W+lEVbpSfwtO8T+L2w==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-model": "^1.0.0",+ "prosemirror-state": "^1.0.0",+ "prosemirror-transform": "^1.10.2"+ }+ },+ "node_modules/prosemirror-dropcursor": {+ "version": "1.8.2",+ "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.2.tgz",+ "integrity": "sha512-CCk6Gyx9+Tt2sbYk5NK0nB1ukHi2ryaRgadV/LvyNuO3ena1payM2z6Cg0vO1ebK8cxbzo41ku2DE5Axj1Zuiw==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-state": "^1.0.0",+ "prosemirror-transform": "^1.1.0",+ "prosemirror-view": "^1.1.0"+ }+ },+ "node_modules/prosemirror-gapcursor": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/prosemirror-gapcursor/-/prosemirror-gapcursor-1.4.1.tgz",+ "integrity": "sha512-pMdYaEnjNMSwl11yjEGtgTmLkR08m/Vl+Jj443167p9eB3HVQKhYCc4gmHVDsLPODfZfjr/MmirsdyZziXbQKw==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-keymap": "^1.0.0",+ "prosemirror-model": "^1.0.0",+ "prosemirror-state": "^1.0.0",+ "prosemirror-view": "^1.0.0"+ }+ },+ "node_modules/prosemirror-history": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.5.0.tgz",+ "integrity": "sha512-zlzTiH01eKA55UAf1MEjtssJeHnGxO0j4K4Dpx+gnmX9n+SHNlDqI2oO1Kv1iPN5B1dm5fsljCfqKF9nFL6HRg==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-state": "^1.2.2",+ "prosemirror-transform": "^1.0.0",+ "prosemirror-view": "^1.31.0",+ "rope-sequence": "^1.3.0"+ }+ },+ "node_modules/prosemirror-keymap": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.3.tgz",+ "integrity": "sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-state": "^1.0.0",+ "w3c-keyname": "^2.2.0"+ }+ },+ "node_modules/prosemirror-model": {+ "version": "1.25.6",+ "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.25.6.tgz",+ "integrity": "sha512-RIm+e9BiqAaJ1mRECv3vR3C+VG8ELoTTI+47tVudGi82yLnFOx3G/p/iSPK1HmHQdKhkkrJ68NJqxh7S+FBVmQ==",+ "license": "MIT",+ "dependencies": {+ "orderedmap": "^2.0.0"+ }+ },+ "node_modules/prosemirror-schema-list": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/prosemirror-schema-list/-/prosemirror-schema-list-1.5.1.tgz",+ "integrity": "sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-model": "^1.0.0",+ "prosemirror-state": "^1.0.0",+ "prosemirror-transform": "^1.7.3"+ }+ },+ "node_modules/prosemirror-state": {+ "version": "1.4.4",+ "resolved": "https://registry.npmjs.org/prosemirror-state/-/prosemirror-state-1.4.4.tgz",+ "integrity": "sha512-6jiYHH2CIGbCfnxdHbXZ12gySFY/fz/ulZE333G6bPqIZ4F+TXo9ifiR86nAHpWnfoNjOb3o5ESi7J8Uz1jXHw==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-model": "^1.0.0",+ "prosemirror-transform": "^1.0.0",+ "prosemirror-view": "^1.27.0"+ }+ },+ "node_modules/prosemirror-tables": {+ "version": "1.8.5",+ "resolved": "https://registry.npmjs.org/prosemirror-tables/-/prosemirror-tables-1.8.5.tgz",+ "integrity": "sha512-V/0cDCsHKHe/tfWkeCmthNUcEp1IVO3p6vwN8XtwE9PZQLAZJigbw3QoraAdfJPir4NKJtNvOB8oYGKRl+t0Dw==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-keymap": "^1.2.3",+ "prosemirror-model": "^1.25.4",+ "prosemirror-state": "^1.4.4",+ "prosemirror-transform": "^1.10.5",+ "prosemirror-view": "^1.41.4"+ }+ },+ "node_modules/prosemirror-transform": {+ "version": "1.12.0",+ "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.12.0.tgz",+ "integrity": "sha512-GxboyN4AMIsoHNtz5uf2r2Ru551i5hWeCMD6E2Ib4Eogqoub0NflniaBPVQ4MrGE5yZ8JV9tUHg9qcZTTrcN4w==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-model": "^1.21.0"+ }+ },+ "node_modules/prosemirror-view": {+ "version": "1.41.8",+ "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.41.8.tgz",+ "integrity": "sha512-TnKDdohEatgyZNGCDWIdccOHXhYloJwbwU+phw/a23KBvJIR9lWQWW7WHHK3vBdOLDNuF7TaX98GObUZOWkOnA==",+ "license": "MIT",+ "dependencies": {+ "prosemirror-model": "^1.20.0",+ "prosemirror-state": "^1.0.0",+ "prosemirror-transform": "^1.1.0"+ }+ },"node_modules/proxy-addr": {"version": "2.0.7","resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",@@ -25932,6 +26590,12 @@"dev": true,"license": "MIT"},+ "node_modules/rope-sequence": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.4.tgz",+ "integrity": "sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==",+ "license": "MIT"+ },"node_modules/router": {"version": "2.2.0","resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",