- Implement FollowImageURLSchemeHandler for custom image loading and caching - Update ImagePreview to support loading images from URLs - Modify WebView configuration to use new image URL scheme handler - Remove deprecated image preview methods - Update bridge data structure for image preview - Refactor image preview logic across multiple modules Signed-off-by: Innei <tukon479@gmail.com>
16 lines
334 B
TypeScript
16 lines
334 B
TypeScript
import "vite/client"
|
|
import "../../../../packages/types/react-global"
|
|
import "../../../../packages/types/global"
|
|
|
|
interface Bridge {
|
|
measure: () => void
|
|
setContentHeight: (height: number) => void
|
|
previewImage: (data: { imageUrls: string[]; index: number }) => void
|
|
}
|
|
|
|
declare global {
|
|
export const bridge: Bridge
|
|
}
|
|
|
|
export {}
|