API Reference

@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

OptionTypeDefaultDescription
historyServerUrlstring/universer-api/historyBase URL shared by history endpoints
pageSizenumber20Versions requested per page

How is this guide?

© 2026 DreamNum Co., Ltd.