From d811b88c87f88ab490e964f4d141ea45ab989caf Mon Sep 17 00:00:00 2001 From: Artur Date: Fri, 13 Mar 2026 13:08:05 +0300 Subject: [PATCH] StartAction, Asc.Buttons --- sdkjs-plugins/v1/onlyoffice-types/index.d.ts | 5 +++++ sdkjs-plugins/v1/onlyoffice-types/src/word-methods.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sdkjs-plugins/v1/onlyoffice-types/index.d.ts b/sdkjs-plugins/v1/onlyoffice-types/index.d.ts index ec14deb5..aee5f0c2 100644 --- a/sdkjs-plugins/v1/onlyoffice-types/index.d.ts +++ b/sdkjs-plugins/v1/onlyoffice-types/index.d.ts @@ -22,6 +22,7 @@ interface Asc { scope: Object; PluginWindow: new () => PluginWindow; ButtonContextMenu: new () => ButtonContextMenu; + Buttons: Buttons; } interface AscPlugin { @@ -54,6 +55,10 @@ interface PluginWindow { command: (methodName: string, payload?: any) => void; } +interface Buttons { + registerContextMenu: () => void; +} + interface ButtonContextMenu { text: string; attachOnClick: (callback: () => void) => void; diff --git a/sdkjs-plugins/v1/onlyoffice-types/src/word-methods.d.ts b/sdkjs-plugins/v1/onlyoffice-types/src/word-methods.d.ts index afc42fe6..7a1fdaec 100644 --- a/sdkjs-plugins/v1/onlyoffice-types/src/word-methods.d.ts +++ b/sdkjs-plugins/v1/onlyoffice-types/src/word-methods.d.ts @@ -459,7 +459,7 @@ export type WordMethodArgs = { ShowButton: [sBtn: string, bVisible: boolean, sAlign?: string]; ShowError: [sType: string, sDescription: string, sMethod?: string]; ShowInputHelper: [sGuid: string, w: number, h: number, isKeyboardTake: boolean]; - StartAction: [sType: string, description: string | { lockScroll?: boolean }]; + StartAction: [sType: string, description: string | { lockScroll?: boolean, keepSelection?: boolean }]; // Methods U UnShowInputHelper: [sGuid: string, bIsKeyboardTake?: boolean];