From 5978a03dcb084054afa2dbf7e9300b2bf7562119 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 8 Nov 2024 01:17:22 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/plugin-sample/issues/24 --- CHANGELOG.md | 2 ++ siyuan.d.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f54bd0..7e37c9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## v1.0.6 2024-11 +* [Add plugin method `updateProtyleToolbar`](https://github.com/siyuan-note/plugin-sample/issues/24) + ## v1.0.5 2024-11-05 * [Add `renderElement` and `blockElement` for `open-noneditableblock`](https://github.com/siyuan-note/siyuan/issues/12955) diff --git a/siyuan.d.ts b/siyuan.d.ts index fcf200f..d2026bb 100644 --- a/siyuan.d.ts +++ b/siyuan.d.ts @@ -20,6 +20,7 @@ import { App, Files, Tab, Model, + IMenuItem, } from "./types"; export * from "./types"; @@ -396,6 +397,8 @@ export abstract class Plugin { }): void; updateCards(options: ICardData): Promise | ICardData; + + updateProtyleToolbar(toolbar: Array) : Array; } export class Setting {