@univerjs-pro/sheets-history-ui
v1.0.3
Published
Sheet edit history UI integration for Univer Pro.
Readme
@univerjs-pro/sheets-history-ui
Sheets ribbon and UI integration for Univer Pro version history.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
| --- | --- | :---: | :---: | :---: |
| @univerjs-pro/sheets-history-ui | UniverProSheetsHistoryUi | Yes | Yes | No |
Installation
pnpm add @univerjs-pro/sheets-history-ui
# or
npm install @univerjs-pro/sheets-history-uiKeep all @univerjs/* and @univerjs-pro/* packages on the same version.
Usage
History service configuration
Configure historyServerUrl when registering the plugin after the host's Sheets and collaboration
plugins. This is the same option used by Docs, Slides, Bases and Boards history UI plugins.
import { UniverSheetsHistoryUIPlugin } from '@univerjs-pro/sheets-history-ui';
univer.registerPlugin(UniverSheetsHistoryUIPlugin, {
historyServerUrl: '/universer-api/history',
univerContainerId: 'univer-container',
});The URL is the prefix for the existing history list, creator and changeset endpoints. This option does not change the server API. Both desktop and mobile history viewers use it.
If omitted, the default is /universer-api/history.
Integration Notes
- Keep all
@univerjs/*and@univerjs-pro/*packages on the same version. - Import the package stylesheet once in your application.
- Merge the locale resources for each language enabled by your application.
- Register this plugin after the product UI, history, license, and collaboration plugins.
