An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bookmark: Release v3.5.5
Daniel43dab03e3612
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.mdindex c997b51851..9868b8dd5e 100644--- a/.github/CONTRIBUTING.md+++ b/.github/CONTRIBUTING.md@@ -7,7 +7,7 @@## NPM dependencies-Install pnpm: `npm install -g [email protected]`+Install pnpm: `npm install -g [email protected]`<details><summary>For China mainland</summary>diff --git a/.github/CONTRIBUTING_zh_CN.md b/.github/CONTRIBUTING_zh_CN.mdindex 0aa01951b3..c70e5375d2 100644--- a/.github/CONTRIBUTING_zh_CN.md+++ b/.github/CONTRIBUTING_zh_CN.md@@ -7,7 +7,7 @@## NPM 依赖-安装 pnpm:`npm install -g [email protected]`+安装 pnpm:`npm install -g [email protected]`<details><summary>适用于中国大陆</summary>diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex b00fb72c6c..ab558abddd 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -107,7 +107,7 @@ class App {const wysisygElement = hasClosestByClassName(event.target, "protyle-wysiwyg", true);let editElement: HTMLElement;if ((event.target.tagName === "TEXTAREA" ||- (event.target.tagName === "INPUT" && ["email", "number", "password", "search", "tel", "text", "url", ""].includes(event.target.getAttribute("type")))) &&+ (event.target.tagName === "INPUT" && ["email", "number", "password", "search", "tel", "text", "url", "", null].includes(event.target.getAttribute("type")))) &&event.target.getAttribute("readonly") !== "readonly") {editElement = event.target;} else if (wysisygElement && wysisygElement.getAttribute("data-readonly") === "false") {diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.tsindex 54730cb16f..b063a1b4e0 100644--- a/app/src/mobile/util/keyboardToolbar.ts+++ b/app/src/mobile/util/keyboardToolbar.ts@@ -439,12 +439,14 @@ export const showKeyboardToolbar = () => {}const range = getSelection().getRangeAt(0);const editor = getCurrentEditor();- if (editor && editor.protyle.wysiwyg.element.contains(range.startContainer)) {- editor.protyle.element.parentElement.style.paddingBottom = "48px";+ if (editor) {+ if (editor.protyle.wysiwyg.element.contains(range.startContainer)) {+ editor.protyle.element.parentElement.style.paddingBottom = "48px";+ }+ editor.protyle.app.plugins.forEach(item => {+ item.eventBus.emit("mobile-keyboard-show");+ });}- getCurrentEditor().protyle.app.plugins.forEach(item => {- item.eventBus.emit("mobile-keyboard-show");- });setTimeout(() => {const contentElement = hasClosestByClassName(range.startContainer, "protyle-content", true);if (contentElement) {@@ -475,14 +477,14 @@ export const hideKeyboardToolbar = () => {const editor = getCurrentEditor();if (editor) {editor.protyle.element.parentElement.style.paddingBottom = "";+ editor.protyle.app.plugins.forEach(item => {+ item.eventBus.emit("mobile-keyboard-hide");+ });}const modelElement = document.getElementById("model");if (modelElement.style.transform === "translateY(0px)") {modelElement.style.paddingBottom = "";}- getCurrentEditor().protyle.app.plugins.forEach(item => {- item.eventBus.emit("mobile-keyboard-hide");- });};export const activeBlur = () => {