wip: live video events

This commit is contained in:
Alejandro Gómez
2025-12-17 11:44:12 +01:00
parent c9a6df928e
commit 97c89142ae
45 changed files with 1450 additions and 433 deletions

View File

@@ -56,7 +56,12 @@ export const createWorkspace = (
*/
export const addWindow = (
state: GrimoireState,
payload: { appId: string; props: any; commandString?: string; customTitle?: string },
payload: {
appId: string;
props: any;
commandString?: string;
customTitle?: string;
},
): GrimoireState => {
const activeId = state.activeWorkspaceId;
const ws = state.workspaces[activeId];
@@ -329,7 +334,10 @@ export const updateWindow = (
state: GrimoireState,
windowId: string,
updates: Partial<
Pick<WindowInstance, "props" | "title" | "customTitle" | "commandString" | "appId">
Pick<
WindowInstance,
"props" | "title" | "customTitle" | "commandString" | "appId"
>
>,
): GrimoireState => {
const window = state.windows[windowId];

View File

@@ -148,7 +148,10 @@ export const useGrimoire = () => {
(
windowId: string,
updates: Partial<
Pick<WindowInstance, "props" | "title" | "customTitle" | "commandString" | "appId">
Pick<
WindowInstance,
"props" | "title" | "customTitle" | "commandString" | "appId"
>
>,
) => setState((prev) => Logic.updateWindow(prev, windowId, updates)),
[setState],