An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/9294
Vanessa803fb6def861
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.tsindex 229fef82fb..aace4e0a3f 100644--- a/app/src/protyle/render/av/action.ts+++ b/app/src/protyle/render/av/action.ts@@ -171,14 +171,21 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEleconst addRowElement = hasClosestByClassName(event.target, "av__row--add");if (addRowElement) {- if (protyle.hint.element.classList.contains("fn__none")) {- protyle.toolbar.range = document.createRange();- protyle.toolbar.range.selectNodeContents(blockElement.querySelector(".av__title"));- focusByRange(protyle.toolbar.range);- hintRef("", protyle, "av");- } else {- hideElements(["hint"], protyle);- }+ const avID = blockElement.getAttribute("data-av-id");+ const srcIDs = [Lute.NewNodeID()]+ const previousID = addRowElement.getAttribute("data-id") || "", ;+ transaction(protyle, [{+ action: "insertAttrViewBlock",+ avID,+ previousID,+ srcIDs,+ isDetached: true,+ }], [{+ action: "removeAttrViewBlock",+ srcIDs,+ avID,+ }]);+ insertAttrViewBlockAnimation(blockElement, 1, previousID);event.preventDefault();event.stopPropagation();return true;diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex b2be5d4459..e27bd035b6 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1605,14 +1605,7 @@ export class WYSIWYG {event});});-- const addRowElement = hasClosestByClassName(event.target, "av__row--add");- if (addRowElement) {- hideElements(["util"], protyle);- } else {- hideElements(["hint", "util"], protyle);- }-+ hideElements(["hint", "util"], protyle);const ctrlIsPressed = event.metaKey || event.ctrlKey;/// #if !MOBILEconst backlinkBreadcrumbItemElement = hasClosestByClassName(event.target, "protyle-breadcrumb__item");diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex dffa9ebcf0..7f45ba3a22 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -373,6 +373,7 @@ interface IOperation {previousID?: stringretData?: anynextID?: string // insert 专享+ isDetached?: boolean // insertAttrViewBlock 专享srcIDs?: string[] // insertAttrViewBlock 专享name?: string // addAttrViewCol 专享type?: TAVCol // addAttrViewCol 专享