refactor: Naming (#27001)

This commit is contained in:
Aleksander Grygier
2026-08-13 19:45:32 +02:00
committed by GitHub
parent 9c5531e2bf
commit fa4ec4590c
28 changed files with 275 additions and 212 deletions
@@ -0,0 +1,27 @@
<script lang="ts">
import ChatFormInputRich from '$lib/components/app/chat/ChatForm/ChatFormInput/ChatFormInputRich.svelte';
import { untrack } from 'svelte';
interface Props {
value?: string;
}
let { value: initial = '' }: Props = $props();
let value = $state(untrack(() => initial));
let inputRef: ChatFormInputRich | undefined = $state(undefined);
export function getValue() {
return value;
}
export function getCaretOffset() {
return inputRef?.getCaretOffset();
}
export function setCaretOffset(offset: number) {
inputRef?.setCaretOffset(offset);
}
</script>
<ChatFormInputRich bind:this={inputRef} bind:value />