@univerjs-pro/docs-sdt-ui
v1.2.0
Published
Structured document tag interactions for Univer Pro Docs.
Readme
@univerjs-pro/docs-sdt-ui
Content-control interactions for Univer Pro Docs. Register UniverDocsSdtUIPlugin after UniverDocsSdtPlugin and UniverDocsUIPlugin, and merge the package locale into the application's locale resources.
The plugin provides an insertion menu, contextual ribbon, properties dialog, checkbox interaction, date/list pickers, and selection/hover highlighting. Editable text stays in the document model; UI actions delegate persisted changes to commands. The plugin's optional menu configuration uses the shared Univer menu configuration contract.
Controls can occur in table cells. Supported interactions depend on the control kind and its content/removal locks. Building-block galleries and custom XML binding metadata do not provide a Word gallery service or an external XML data source by themselves.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
| --- | --- | :---: | :---: | :---: |
| @univerjs-pro/docs-sdt-ui | UniverProDocsSdtUi | Yes | Yes | No |
Installation
pnpm add @univerjs-pro/docs-sdt-ui
# or
npm install @univerjs-pro/docs-sdt-uiKeep all @univerjs/* and @univerjs-pro/* packages on the same version.
Usage
import { UniverDocsSdtUIPlugin } from '@univerjs-pro/docs-sdt-ui';
import EnUS from '@univerjs-pro/docs-sdt-ui/locale/en-US';
import '@univerjs-pro/docs-sdt-ui/lib/index.css';
univer.registerPlugin(UniverDocsSdtUIPlugin);Merge EnUS into your Univer locale map.
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.
