From cb5954e8c7c5669d30ba0220d3740f7b78015d48 Mon Sep 17 00:00:00 2001 From: contributor Date: Sat, 18 Oct 2025 13:55:03 +0300 Subject: [PATCH] fix typings for creating a note using mentions in ckeditor --- packages/ckeditor5/src/plugins/mention_customization.ts | 2 +- packages/commons/src/lib/create_note_actions.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/ckeditor5/src/plugins/mention_customization.ts b/packages/ckeditor5/src/plugins/mention_customization.ts index 9b8db2c5c..c8cd9f003 100644 --- a/packages/ckeditor5/src/plugins/mention_customization.ts +++ b/packages/ckeditor5/src/plugins/mention_customization.ts @@ -1,5 +1,5 @@ import { Command, Mention, Plugin, ModelRange, type ModelSelectable } from "ckeditor5"; -import { type CreateNoteAction } from "@triliumnext/commons" +import { CreateNoteAction } from "@triliumnext/commons" /** * Overrides the actions taken by the Mentions plugin (triggered by `@` in the text editor, or `~` & `#` in the attribute editor): diff --git a/packages/commons/src/lib/create_note_actions.ts b/packages/commons/src/lib/create_note_actions.ts index 6b6594963..beb1c96dd 100644 --- a/packages/commons/src/lib/create_note_actions.ts +++ b/packages/commons/src/lib/create_note_actions.ts @@ -1,6 +1,6 @@ export enum CreateNoteAction { - CreateNoteIntoInbox, - CreateNoteIntoPath, - CreateAndLinkNoteIntoInbox, - CreateAndLinkNoteIntoPath + CreateNoteIntoInbox = "create-note-into-inbox", + CreateNoteIntoPath = "create-note-into-path", + CreateAndLinkNoteIntoInbox = "create-and-link-note-into-inbox", + CreateAndLinkNoteIntoPath = "create-and-link-note-into-path" }