Changelog
The list of changes for ONLYOFFICE Apps Plugins SDK.
Version 3.0
For migration instructions, see Updating a plugin to SDK 3.0.0.
- Added IArticleNavigationPlugin and IArticleNavigationItem to embed first-class navigation items in the article sidebar.
- Added the Section enum for the
appearsproperty of article navigation items. - Added the
componentproperty to IInfoPanelItem, IArticleButtonItem, IMediaViewer, and ISettings, anddialogBodyComponentto IModalDialog, so a React component can be passed instead of a declarative IBox tree. See React components. - Added the @onlyoffice/docspace-plugin-sdk/react hooks:
usePluginAPI,usePluginActions,usePluginSettings,useCurrentFile,useCurrentUser, andusePluginRuntime. - Added
PluginAPIClient(viausePluginAPI) for authenticated HTTP requests to the portal, andPluginApiError/isPluginApiErrorfor failed requests. - Deprecated
bodyinIInfoPanelItemandIArticleButtonItem,settingsinISettings,contentinIMediaViewer, anddialogBody/dialogFooterinIModalDialog. Usecomponent(dialogBodyComponentinIModalDialog) instead. - Deprecated
onLoadon those items and components. Load data withuseEffectinside the React component. - Replaced Webpack with Vite in the plugin template and build process.
- Raised
minDocSpaceVersionto"4.0.0". Plugins built with SDK 3.0.0 require ONLYOFFICE Apps 4.0.0 or later.
Version 2.1.1
- Added markdown documentation generation with TypeDoc
- Added LLM instructions for DocSpace Plugin SDK development
Version 2.1.0
- Removed
type: "module"from package.json - Updated Webpack config in template (add
"..."to minimizer array to save default minimizers) - Converted const enums to regular enums
- Added
Promise<void>return type to plugin methodsonClick(IFileItem, IInfoPanelItem, IMainButtonItem, IProfileMenuItem) - Made
onLoadprop optional in IInfoPanelItem - Made
onClickprop optional in IContextMenuItem - Switched from yarn to npm in
npx create-docspace-plugin - DEPRECATED
onClickin IContextMenuItem is now deprecated in favor ofonItemClick - DEPRECATED
onClickin IMainButtonItem is now deprecated in favor ofonItemClick - Added
onItemClickcallback to IContextMenuItem to support both string and number identifiers - Added
onItemClickcallback to IMainButtonItem to support both string and number identifiers - Added
PluginLocaleenum - Added
language,setLanguage,getLanguageproperties to IPlugin - Added
isHeaderVisibleproperty to IInfoPanelItem - Added support for CSS files
- Added
classNameproperty to components (IBox, IButton, ICheckbox, IComboBox, IFrame, IImage, IInput, ILabel, ISkeleton, IText, ITextArea, IToggleButton) - Added
idproperty to IBox - Added
onGroupClick,isGroupActionproperties to IContextMenuItem - Added
itemsproperty to IContextMenuItem - Added selector components (Base, Files, Groups, People, Room), enums (SelectorType, RoomSearchArea, RoomsType), and actions (
showSelector,updateSelector,closeSelector) - Added IFloatingOperationsButton component with progress tracking functionality and actions (
addFloatingOperationsButton,updateFloatingOperationsButton,removeFloatingOperationsButton) - Added IPostMessagePlugin, IPostMessageCallbackMessage util
- Added
navigate,openInfoPanelactions to Actions - Added IArticleButtonPlugin, IArticleButtonItem
- Added IconButton component
- Added ILink component
- Added IMediaViewer component, actions (
showMediaViewer,updateMediaViewer,closeMediaViewer) - Added
placementproperty to IContextMenuItem - Added
itemIdproperty to IContextMenuItem - Fixed
onClickid type in IMainButtonItem, IContextMenuItem
Version 2.0
- Separated file security into a new
FilesSecurityenum. - Added the
fileSecurityandsecurityproperties to IFileItem. - Added the
withoutBodyPaddingandwithoutHeaderMarginproperties to IModalDialog. - Added the
updateCreateDialogModalaction to Actions. - Added the
isAutoFocusOnError,errorText,onError,onChange,isCloseAfterCreate, andisCreateDisabledproperties to ICreateDialog. - Added the
itemSecurityproperty to IContextMenuItem.