diff --git a/plugins/text-editor-resources/src/components/EmojiPopup.svelte b/plugins/text-editor-resources/src/components/EmojiPopup.svelte index 9e6b899cc7..6aef27d9db 100644 --- a/plugins/text-editor-resources/src/components/EmojiPopup.svelte +++ b/plugins/text-editor-resources/src/components/EmojiPopup.svelte @@ -19,7 +19,7 @@ import { createEventDispatcher } from 'svelte' import emojiReplaceDict from './extension/emojiIdMap.json' - export let query: string = '' + export let query = '' let items = Object.entries(emojiReplaceDict) diff --git a/plugins/text-editor-resources/src/components/MentionList.svelte b/plugins/text-editor-resources/src/components/MentionList.svelte index 6dd2e37d7e..262a8db2c6 100644 --- a/plugins/text-editor-resources/src/components/MentionList.svelte +++ b/plugins/text-editor-resources/src/components/MentionList.svelte @@ -17,7 +17,7 @@ import MentionPopup from './MentionPopup.svelte' import Popup from './Popup.svelte' - export let query: string = '' + export let query = '' export let clientRect: () => ClientRect export let command: (props: any) => void export let close: () => void diff --git a/plugins/text-editor-resources/src/components/MentionPopup.svelte b/plugins/text-editor-resources/src/components/MentionPopup.svelte index 26ce8aad39..8c75927116 100644 --- a/plugins/text-editor-resources/src/components/MentionPopup.svelte +++ b/plugins/text-editor-resources/src/components/MentionPopup.svelte @@ -19,7 +19,7 @@ import { Label, ListView, resizeObserver } from '@hcengineering/ui' import { createEventDispatcher } from 'svelte' - export let query: string = '' + export let query = '' let items: SearchItem[] = [] @@ -29,7 +29,7 @@ let scrollContainer: HTMLElement let selection = 0 - function dispatchItem (item: SearchResultDoc): void { + function dispatchItem(item: SearchResultDoc): void { dispatch('close', { id: item.id, label: item.shortTitle ?? item.title, @@ -37,7 +37,7 @@ }) } - export function onKeyDown (key: KeyboardEvent): boolean { + export function onKeyDown(key: KeyboardEvent): boolean { if (key.key === 'ArrowDown') { key.stopPropagation() key.preventDefault() diff --git a/plugins/text-editor-resources/src/components/Popup.svelte b/plugins/text-editor-resources/src/components/Popup.svelte index 52c3e432a8..4ed88029dc 100644 --- a/plugins/text-editor-resources/src/components/Popup.svelte +++ b/plugins/text-editor-resources/src/components/Popup.svelte @@ -18,7 +18,7 @@ import { onDestroy, onMount } from 'svelte' import DummyPopup from './DummyPopup.svelte' - export let query: string = '' + export let query = '' export let clientRect: () => ClientRect export let command: (props: any) => void export let close: () => void diff --git a/plugins/text-editor-resources/tsconfig.json b/plugins/text-editor-resources/tsconfig.json index fb6ccb2d18..a8c0d35ee5 100644 --- a/plugins/text-editor-resources/tsconfig.json +++ b/plugins/text-editor-resources/tsconfig.json @@ -4,6 +4,7 @@ "compilerOptions": { "rootDir": "./src", "outDir": "./lib", - "declarationDir": "./types" + "declarationDir": "./types", + "resolveJsonModule": true } -} \ No newline at end of file +}