@univerjs-pro/edit-history
Product-agnostic history sessions, restore workflows, and semantic unit comparison for Univer SDK Pro.
TypeScript
import { UniverEditHistoryPlugin } from '@univerjs-pro/edit-history'import '@univerjs-pro/edit-history/facade'univer.registerPlugin(UniverEditHistoryPlugin, { historyServerUrl: '/universer-api/history', pageSize: 20,})Import the Facade entry to call univerAPI.compareUnitData(input). Register one of the product adapters—Sheets, Docs, Slides, Bases, or Boards history—so the comparison service can interpret that unit type.
Entry Points
- Facade:
@univerjs-pro/edit-history/facade
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
historyServerUrl | string | /universer-api/history | Base URL shared by history endpoints |
pageSize | number | 20 | Versions requested per page |
How is this guide?