@univerjs/docs-ui 0.21.1 → 0.22.0-insiders.20260513-0b53885
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -16
- package/lib/cjs/facade.js +6 -6
- package/lib/cjs/index.js +152 -199
- package/lib/es/facade.js +6 -6
- package/lib/es/index.js +150 -197
- package/lib/facade.js +6 -6
- package/lib/index.css +12 -0
- package/lib/index.js +150 -197
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts +2 -2
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-univer.d.ts +2 -2
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts +2 -2
- package/lib/umd/index.js +9 -9
- package/package.json +19 -15
- package/LICENSE +0 -176
package/README.md
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
# @univerjs/docs-ui
|
|
2
2
|
|
|
3
|
+
[](https://npmjs.com/package/@univerjs/docs-ui)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs/docs-ui)
|
|
5
|
+
[](https://npmjs.com/package/@univerjs/docs-ui)
|
|
6
|
+
|
|
7
|
+
`@univerjs/docs-ui` provides the editor UI layer for Univer Docs, including selection rendering, clipboard support, menus, and document interaction services.
|
|
8
|
+
|
|
3
9
|
## Package Overview
|
|
4
10
|
|
|
5
|
-
| Package
|
|
6
|
-
| --- | --- |
|
|
7
|
-
| `@univerjs/docs-ui` | `UniverDocsUi` |
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs/docs-ui` | `UniverDocsUi` | Yes | Yes | Yes |
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
```sh
|
|
18
|
+
pnpm add @univerjs/docs-ui
|
|
19
|
+
# or
|
|
20
|
+
npm install @univerjs/docs-ui
|
|
21
|
+
```
|
|
10
22
|
|
|
11
|
-
`@univerjs
|
|
23
|
+
Keep all `@univerjs/*` packages on the same version.
|
|
12
24
|
|
|
13
25
|
## Usage
|
|
14
26
|
|
|
15
|
-
|
|
27
|
+
```ts
|
|
28
|
+
import '@univerjs/docs-ui/lib/index.css';
|
|
29
|
+
import EnUS from '@univerjs/docs-ui/locale/en-US';
|
|
30
|
+
import { UniverDocsUIPlugin } from '@univerjs/docs-ui';
|
|
16
31
|
|
|
17
|
-
|
|
18
|
-
# Using npm
|
|
19
|
-
npm install @univerjs/docs-ui
|
|
32
|
+
univer.registerPlugin(UniverDocsUIPlugin);
|
|
20
33
|
|
|
21
|
-
|
|
22
|
-
pnpm add @univerjs/docs-ui
|
|
34
|
+
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
23
35
|
```
|
|
24
36
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
37
|
+
## Resources
|
|
38
|
+
|
|
39
|
+
- [Documentation](https://docs.univer.ai)
|
|
40
|
+
- [NPM package](https://npmjs.com/package/@univerjs/docs-ui)
|
|
41
|
+
- [GitHub repository](https://github.com/dream-num/univer)
|
|
42
|
+
|
package/lib/cjs/facade.js
CHANGED
|
@@ -4,7 +4,7 @@ let _univerjs_core_facade = require("@univerjs/core/facade");
|
|
|
4
4
|
let _univerjs_docs_ui = require("@univerjs/docs-ui");
|
|
5
5
|
let _univerjs_engine_render = require("@univerjs/engine-render");
|
|
6
6
|
|
|
7
|
-
//#region \0@oxc-project+runtime@0.
|
|
7
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
|
|
8
8
|
function _typeof(o) {
|
|
9
9
|
"@babel/helpers - typeof";
|
|
10
10
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -15,7 +15,7 @@ function _typeof(o) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region \0@oxc-project+runtime@0.
|
|
18
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
|
|
19
19
|
function toPrimitive(t, r) {
|
|
20
20
|
if ("object" != _typeof(t) || !t) return t;
|
|
21
21
|
var e = t[Symbol.toPrimitive];
|
|
@@ -28,14 +28,14 @@ function toPrimitive(t, r) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region \0@oxc-project+runtime@0.
|
|
31
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
|
|
32
32
|
function toPropertyKey(t) {
|
|
33
33
|
var i = toPrimitive(t, "string");
|
|
34
34
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region \0@oxc-project+runtime@0.
|
|
38
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
|
|
39
39
|
function _defineProperty(e, r, t) {
|
|
40
40
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
41
41
|
value: t,
|
|
@@ -46,7 +46,7 @@ function _defineProperty(e, r, t) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
//#endregion
|
|
49
|
-
//#region \0@oxc-project+runtime@0.
|
|
49
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
|
|
50
50
|
function __decorateParam(paramIndex, decorator) {
|
|
51
51
|
return function(target, key) {
|
|
52
52
|
decorator(target, key, paramIndex);
|
|
@@ -54,7 +54,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region \0@oxc-project+runtime@0.
|
|
57
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
|
|
58
58
|
function __decorate(decorators, target, key, desc) {
|
|
59
59
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
60
60
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|