@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 CHANGED
@@ -1,29 +1,42 @@
1
1
  # @univerjs/docs-ui
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@univerjs/docs-ui?style=flat-square)](https://npmjs.com/package/@univerjs/docs-ui)
4
+ [![license](https://img.shields.io/npm/l/@univerjs/docs-ui?style=flat-square)](https://npmjs.com/package/@univerjs/docs-ui)
5
+ [![downloads](https://img.shields.io/npm/dm/@univerjs/docs-ui?style=flat-square)](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 Name | UMD Namespace | Version | License | Downloads | Contains CSS | Contains i18n locales |
6
- | --- | --- | --- | --- | --- | :---: | :---: |
7
- | `@univerjs/docs-ui` | `UniverDocsUi` | [![][npm-version-shield]][npm-version-link] | ![][npm-license-shield] | ![][npm-downloads-shield] | ⭕️ | ⭕️ |
11
+ | Package | UMD global | CSS | Locales | Facade entry |
12
+ | --- | --- | :---: | :---: | :---: |
13
+ | `@univerjs/docs-ui` | `UniverDocsUi` | Yes | Yes | Yes |
14
+
15
+ ## Installation
8
16
 
9
- ## Introduction
17
+ ```sh
18
+ pnpm add @univerjs/docs-ui
19
+ # or
20
+ npm install @univerjs/docs-ui
21
+ ```
10
22
 
11
- `@univerjs/docs-ui` package provides the User Interface for Docs.
23
+ Keep all `@univerjs/*` packages on the same version.
12
24
 
13
25
  ## Usage
14
26
 
15
- ### Installation
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
- ```shell
18
- # Using npm
19
- npm install @univerjs/docs-ui
32
+ univer.registerPlugin(UniverDocsUIPlugin);
20
33
 
21
- # Using pnpm
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
- <!-- Links -->
26
- [npm-version-shield]: https://img.shields.io/npm/v/@univerjs/docs-ui?style=flat-square
27
- [npm-version-link]: https://npmjs.com/package/@univerjs/docs-ui
28
- [npm-license-shield]: https://img.shields.io/npm/l/@univerjs/docs-ui?style=flat-square
29
- [npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/docs-ui?style=flat-square
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.124.0/helpers/typeof.js
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.124.0/helpers/toPrimitive.js
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.124.0/helpers/toPropertyKey.js
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.124.0/helpers/defineProperty.js
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.124.0/helpers/decorateParam.js
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.124.0/helpers/decorate.js
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);