Add gif support to web (#6433)

* add gif support to web

* rm set dimensions

* rm effect from preview

* rm log

* rm use of {cause: error}

* fix lint
This commit is contained in:
Samuel Newman
2024-11-22 17:58:29 +00:00
committed by GitHub
parent 76ca72cf72
commit 3781074921
9 changed files with 183 additions and 114 deletions
-13
View File
@@ -36,12 +36,6 @@ export type VideoAction =
signal: AbortSignal
}
| {type: 'update_progress'; progress: number; signal: AbortSignal}
| {
type: 'update_dimensions'
width: number
height: number
signal: AbortSignal
}
| {
type: 'update_alt_text'
altText: string
@@ -185,13 +179,6 @@ export function videoReducer(
progress: action.progress,
}
}
} else if (action.type === 'update_dimensions') {
if (state.asset) {
return {
...state,
asset: {...state.asset, width: action.width, height: action.height},
}
}
} else if (action.type === 'update_alt_text') {
return {
...state,