refactor: find in page (#7086)

- refactor rxjs data flow
- use canvas text to mitigate searchable search box input text issue
This commit is contained in:
pengx17
2024-05-28 06:19:53 +00:00
parent bd9c929d05
commit 2ca77d9170
12 changed files with 276 additions and 192 deletions

View File

@@ -9,7 +9,6 @@ import type {
import type {
affine as exposedAffineGlobal,
appInfo as exposedAppInfo,
cmdFind as exposedCmdFind,
} from '@affine/electron/preload/electron-api';
type MainHandlers = typeof mainHandlers;
@@ -40,8 +39,5 @@ export const events = (globalThis as any).events as ClientEvents | null;
export const affine = (globalThis as any).affine as
| typeof exposedAffineGlobal
| null;
export const cmdFind = (globalThis as any).cmdFind as
| typeof exposedCmdFind
| null;
export type { UpdateMeta } from '@affine/electron/main/updater/event';