File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed
plugins/text-editor-resources Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 19
19
import { createEventDispatcher } from ' svelte'
20
20
import emojiReplaceDict from ' ./extension/emojiIdMap.json'
21
21
22
- export let query: string = ' '
22
+ export let query = ' '
23
23
24
24
let items = Object .entries (emojiReplaceDict )
25
25
Original file line number Diff line number Diff line change 17
17
import MentionPopup from ' ./MentionPopup.svelte'
18
18
import Popup from ' ./Popup.svelte'
19
19
20
- export let query: string = ' '
20
+ export let query = ' '
21
21
export let clientRect: () => ClientRect
22
22
export let command: (props : any ) => void
23
23
export let close: () => void
Original file line number Diff line number Diff line change 19
19
import { Label , ListView , resizeObserver } from ' @hcengineering/ui'
20
20
import { createEventDispatcher } from ' svelte'
21
21
22
- export let query: string = ' '
22
+ export let query = ' '
23
23
24
24
let items: SearchItem [] = []
25
25
29
29
let scrollContainer: HTMLElement
30
30
let selection = 0
31
31
32
- function dispatchItem (item : SearchResultDoc ): void {
32
+ function dispatchItem(item : SearchResultDoc ): void {
33
33
dispatch (' close' , {
34
34
id: item .id ,
35
35
label: item .shortTitle ?? item .title ,
36
36
objectclass: item .doc ._class
37
37
})
38
38
}
39
39
40
- export function onKeyDown (key : KeyboardEvent ): boolean {
40
+ export function onKeyDown(key : KeyboardEvent ): boolean {
41
41
if (key .key === ' ArrowDown' ) {
42
42
key .stopPropagation ()
43
43
key .preventDefault ()
Original file line number Diff line number Diff line change 18
18
import { onDestroy , onMount } from ' svelte'
19
19
import DummyPopup from ' ./DummyPopup.svelte'
20
20
21
- export let query: string = ' '
21
+ export let query = ' '
22
22
export let clientRect: () => ClientRect
23
23
export let command: (props : any ) => void
24
24
export let close: () => void
Original file line number Diff line number Diff line change 4
4
"compilerOptions" : {
5
5
"rootDir" : " ./src" ,
6
6
"outDir" : " ./lib" ,
7
- "declarationDir" : " ./types"
7
+ "declarationDir" : " ./types" ,
8
+ "resolveJsonModule" : true
8
9
}
9
- }
10
+ }
You can’t perform that action at this time.
0 commit comments