Feat: lookup in context menu (#595)
* add lookup widget * add lookup result * refactor * refactor * add translate widget * make translate widget works * refactor locales * typo * remove deprecated component * refactor lookup prompt
This commit is contained in:
15
enjoy/src/types/enjoy-app.d.ts
vendored
15
enjoy/src/types/enjoy-app.d.ts
vendored
@@ -73,6 +73,21 @@ type EnjoyAppType = {
|
||||
onNotification: (
|
||||
callback: (event, notification: NotificationType) => void
|
||||
) => void;
|
||||
onLookup: (
|
||||
callback: (
|
||||
event,
|
||||
selection: string,
|
||||
position: { x: number; y: number }
|
||||
) => void
|
||||
) => void;
|
||||
offLookup: () => void;
|
||||
onTranslate: (
|
||||
callback: (
|
||||
event,
|
||||
selection: string,
|
||||
position: { x: number; y: number }
|
||||
) => void
|
||||
) => void;
|
||||
shell: {
|
||||
openExternal: (url: string) => Promise<void>;
|
||||
openPath: (path: string) => Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user