(chore): update codebase
This commit is contained in:
parent
fd15215f15
commit
4e8d46b20e
106 changed files with 29936 additions and 1023 deletions
|
|
@ -16,9 +16,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@livekit/components-react": "^2.9.20",
|
||||
"@tanstack/react-query": "^5.0.0",
|
||||
"@tanstack/react-router": "^1.0.0",
|
||||
"@tanstack/react-virtual": "^3.0.0",
|
||||
"@tanstack/react-query": "^5.100.7",
|
||||
"@tanstack/react-router": "^1.169.1",
|
||||
"@tanstack/react-virtual": "^3.13.24",
|
||||
"@tauri-apps/api": "^2",
|
||||
"@tensamin/crypto": "workspace:*",
|
||||
"@tensamin/markdown": "workspace:*",
|
||||
|
|
@ -29,8 +29,8 @@
|
|||
"@tensamin/ui": "*",
|
||||
"@tensamin/user": "workspace:*",
|
||||
"deepfilternet3-noise-filter": "^1.2.1",
|
||||
"livekit-client": "^2.18.1",
|
||||
"lucide-react": "^0.564.0",
|
||||
"livekit-client": "^2.18.8",
|
||||
"lucide-react": "^1.14.0",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"recharts": "^3.8.1",
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ export default function ScreenShareDialog({
|
|||
|
||||
let active = true;
|
||||
|
||||
// eslint-disable-next-line
|
||||
setLoading(true);
|
||||
setSelectedSourceId(null);
|
||||
setSelectedAudioOutputId(NONE_AUDIO_OUTPUT);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
"@tensamin/markdown": "workspace:*",
|
||||
"@tensamin/shared": "workspace:*",
|
||||
"@tensamin/ui": "*",
|
||||
"lucide-react": "^0.564.0",
|
||||
"lucide-react": "^1.14.0",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"zod": "^4.3.6"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
"@codemirror/commands": "^6.10.2",
|
||||
"@codemirror/lang-markdown": "^6.5.0",
|
||||
"@codemirror/state": "^6.5.4",
|
||||
"@codemirror/view": "^6.39.15",
|
||||
"@codemirror/view": "^6.41.1",
|
||||
"@tensamin/ui": "*",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0"
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import {
|
|||
placeholder,
|
||||
ViewPlugin,
|
||||
type DecorationSet,
|
||||
type KeyBinding,
|
||||
type ViewUpdate,
|
||||
} from "@codemirror/view";
|
||||
import {
|
||||
|
|
@ -159,6 +160,12 @@ function createEditorExtensions(
|
|||
getInvertEnterBehavior: () => boolean,
|
||||
onSubmit: () => void,
|
||||
): Extension[] {
|
||||
const editorKeymap = [
|
||||
...defaultKeymap,
|
||||
...historyKeymap,
|
||||
indentWithTab,
|
||||
] as unknown as readonly KeyBinding[];
|
||||
|
||||
const customEnterKeymap = keymap.of([
|
||||
{
|
||||
key: "Shift-Enter",
|
||||
|
|
@ -187,7 +194,7 @@ function createEditorExtensions(
|
|||
return [
|
||||
history(),
|
||||
markdown(),
|
||||
keymap.of([...defaultKeymap, ...historyKeymap, indentWithTab]),
|
||||
keymap.of(editorKeymap),
|
||||
Prec.highest(customEnterKeymap),
|
||||
EditorView.lineWrapping,
|
||||
placeholder(getPlaceholder() ?? ""),
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@tensamin/ui": "*",
|
||||
"lucide-react": "^0.564.0",
|
||||
"lucide-react": "^1.14.0",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"sonner": "^1.0.0",
|
||||
"sonner": "^2.0.7",
|
||||
"zod": "^4.3.6"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ export const ttp = {
|
|||
contacts: z.array(
|
||||
z.object({
|
||||
calls: z
|
||||
.array(z.object({ id: z.uuidv4(), secret: z.base64() }))
|
||||
.array(z.object({ call_id: z.string(), call_secret: z.base64() }))
|
||||
.optional(),
|
||||
last_message_at: z.number(),
|
||||
user_id: z.number(),
|
||||
|
|
|
|||
|
|
@ -191,22 +191,23 @@ export function Provider(props: {
|
|||
* @param options Optional request id.
|
||||
* @returns A promise for the typed message payload.
|
||||
*/
|
||||
const send = useCallback<BoundSendFn<Schemas>>(
|
||||
((
|
||||
type: string,
|
||||
data?: Record<string, unknown>,
|
||||
options?: { id?: number },
|
||||
) => {
|
||||
const client = clientRef.current;
|
||||
const send: BoundSendFn<Schemas> = useMemo(
|
||||
() =>
|
||||
((
|
||||
type: string,
|
||||
data?: Record<string, unknown>,
|
||||
options?: { id?: number },
|
||||
) => {
|
||||
const client = clientRef.current;
|
||||
|
||||
if (!client) {
|
||||
return Promise.reject(new Error("ttp is not connected"));
|
||||
}
|
||||
if (!client) {
|
||||
return Promise.reject(new Error("ttp is not connected"));
|
||||
}
|
||||
|
||||
return client.send(type as keyof Schemas & string, data as never, {
|
||||
...options,
|
||||
});
|
||||
}) as BoundSendFn<Schemas>,
|
||||
return client.send(type as keyof Schemas & string, data as never, {
|
||||
...options,
|
||||
});
|
||||
}) as BoundSendFn<Schemas>,
|
||||
[],
|
||||
);
|
||||
|
||||
|
|
@ -350,6 +351,7 @@ export function Provider(props: {
|
|||
identificationStartedRef.current = false;
|
||||
setConnected(false);
|
||||
setIdentified(false);
|
||||
setIdentifying(false);
|
||||
},
|
||||
onClose: ({ error: closeError, intentional }) => {
|
||||
clearReconnectResetTimer();
|
||||
|
|
@ -412,8 +414,6 @@ export function Provider(props: {
|
|||
|
||||
useEffect(() => {
|
||||
if (!connected) {
|
||||
setIdentifying(false);
|
||||
setIdentified(false);
|
||||
identificationStartedRef.current = false;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue