Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:twisted_rightwards_arrows: Merge origin/dev and preserve iOS native bridges https://github.com/siyuan-note/siyuan/issues/20691

Vanessacf3a5b2191f8
diff --cc app/src/types/index.d.ts
index 01a111c4ae,364d4e0df3..c6bb0ed61c
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@@ -165,7 -165,9 +165,10 @@@ interface Window
nativeCallbacks: { [key: string]: (id: number) => void },
messageHandlers: {
finishKeyboardComposition?: { postMessage: (data: string) => Promise<boolean> }
+ showTextMenu?: { postMessage: (data: string) => Promise<boolean> }
+ pickPhotos?: { postMessage: (data: string) => Promise<Array<{
+ name: string, mimeType: string, data: string, pair: string, kind: "photo" | "video"
+ }>> }
saveExportFile: { postMessage: (url: string) => void }
saveExportFileV2?: { postMessage: (data: {uri: string, requestID: string}) => void }
openLink: { postMessage: (url: string) => void }