diff --git a/packages/text-editor/src/components/ReferenceInput.svelte b/packages/text-editor/src/components/ReferenceInput.svelte index 754dcdaf94..04c60da67e 100644 --- a/packages/text-editor/src/components/ReferenceInput.svelte +++ b/packages/text-editor/src/components/ReferenceInput.svelte @@ -17,14 +17,13 @@ import { getClient } from '@hcengineering/presentation' import { AnySvelteComponent, + Button, + ButtonKind, EmojiPopup, - Icon, IconEmoji, - Spinner, handler, registerFocus, showPopup, - tooltip, deviceOptionsStore as deviceInfo, checkAdaptiveMatching } from '@hcengineering/ui' @@ -40,18 +39,22 @@ import RIMention from './icons/RIMention.svelte' import Send from './icons/Send.svelte' - const dispatch = createEventDispatcher() export let content: string = '' + export let showHeader = false + export let showActions = true export let showSend = true export let iconSend: Asset | AnySvelteComponent | undefined = undefined export let labelSend: IntlString | undefined = undefined + export let kindSend: ButtonKind = 'ghost' export let haveAttachment = false - export let withoutTopBorder = false export let placeholder: IntlString | undefined = undefined export let extraActions: RefAction[] | undefined = undefined export let loading: boolean = false + export let focusable: boolean = false const client = getClient() + const dispatch = createEventDispatcher() + const buttonSize = 'medium' let textEditor: TextEditor @@ -156,195 +159,131 @@ }) -