@univerjs/uniscript 0.2.1 → 0.2.3

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,9 +1,10 @@
1
1
  # @univerjs/uniscript
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@univerjs/uniscript)](https://npmjs.org/package/@univerjs/uniscript)
4
- [![license](https://img.shields.io/npm/l/@univerjs/uniscript)](https://img.shields.io/npm/l/@univerjs/uniscript)
5
- ![CSS Included](https://img.shields.io/badge/CSS_Included-blue?logo=CSS3)
6
- ![i18n](https://img.shields.io/badge/zh--CN%20%7C%20en--US-cornflowerblue?label=i18n)
3
+ ## Package Overview
4
+
5
+ | Package Name | UMD Namespace | Version | License | Downloads | Contains CSS | Contains i18n locales |
6
+ | --- | --- | --- | --- | --- | :---: | :---: |
7
+ | `@univerjs/uniscript` | `UniveUniscript` | [![][npm-version-shield]][npm-version-link] | ![][npm-license-shield] | ![][npm-downloads-shield] | ⭕️ | ⭕️ |
7
8
 
8
9
  ## Introduction
9
10
 
@@ -13,13 +14,11 @@
13
14
 
14
15
  Users can write business logic in the code editor to meet more flexible business requirements. For instance, as shown in the illustration, users can write a Uniscript to read identity card numbers from a selected area and validate their legality, and mark the background of invalid identity card numbers with red.
15
16
 
16
- :::caution
17
- The Uniscript is currently in the experimental stage, and it is not recommended to use it in production environments. You can refer to the [Roadmap](https://univer.ai/guides/sheet/roadmap) to understand the iteration plan of Uniscript.
18
- :::
17
+ > [!CAUTION]
18
+ > The Uniscript is currently in the experimental stage, and it is not recommended to use it in production environments. You can refer to the [Roadmap](https://univer.ai/guides/sheet/roadmap) to understand the iteration plan of Uniscript.
19
19
 
20
- :::tip
21
- Indeed, Uniscript's Domain-Specific Language (DSL) is a set of Facade APIs that encapsulate the internal implementation details of Univer. This API is defined [here](https://univer.ai/guides/sheet/facade/facade).
22
- :::
20
+ > [!TIP]
21
+ > Indeed, Uniscript's Domain-Specific Language (DSL) is a set of Facade APIs that encapsulate the internal implementation details of Univer. This API is defined [here](https://univer.ai/guides/sheet/facade/facade).
23
22
 
24
23
  ## Usage
25
24
 
@@ -54,3 +53,9 @@ export class YourModule {
54
53
  }
55
54
  }
56
55
  ```
56
+
57
+ <!-- Links -->
58
+ [npm-version-shield]: https://img.shields.io/npm/v/@univerjs/uniscript?style=flat-square
59
+ [npm-version-link]: https://npmjs.com/package/@univerjs/uniscript
60
+ [npm-license-shield]: https://img.shields.io/npm/l/@univerjs/uniscript?style=flat-square
61
+ [npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/uniscript?style=flat-square
@@ -0,0 +1,17 @@
1
+ {
2
+ "script-panel": {
3
+ "title": "Uniscript",
4
+ "tooltip": {
5
+ "menu-button": "Mở/Thu gọn bảng điều khiển Uniscript"
6
+ },
7
+ "panel": {
8
+ "execute": "Thực thi Uniscript"
9
+ }
10
+ },
11
+ "uniscript": {
12
+ "message": {
13
+ "success": "Thực thi thành công",
14
+ "failed": "Thực thi thất bại"
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "script-panel": {
3
+ "title": "Uniscript",
4
+ "tooltip": {
5
+ "menu-button": "打開收起 Uniscript 面板"
6
+ },
7
+ "panel": {
8
+ "execute": "執行 Uniscript"
9
+ }
10
+ },
11
+ "uniscript": {
12
+ "message": {
13
+ "success": "執行成功",
14
+ "failed": "執行失敗"
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/uniscript",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "description": "UI component library for building exceptional Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -54,15 +54,15 @@
54
54
  "monaco-editor": ">=0.44.0",
55
55
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
56
56
  "rxjs": ">=7.0.0",
57
- "@univerjs/core": "0.2.1",
58
- "@univerjs/design": "0.2.1",
59
- "@univerjs/facade": "0.2.1",
60
- "@univerjs/sheets": "0.2.1",
61
- "@univerjs/sheets-ui": "0.2.1",
62
- "@univerjs/ui": "0.2.1"
57
+ "@univerjs/core": "0.2.3",
58
+ "@univerjs/design": "0.2.3",
59
+ "@univerjs/sheets": "0.2.3",
60
+ "@univerjs/facade": "0.2.3",
61
+ "@univerjs/sheets-ui": "0.2.3",
62
+ "@univerjs/ui": "0.2.3"
63
63
  },
64
64
  "dependencies": {
65
- "@univerjs/protocol": "0.1.38-alpha.11"
65
+ "@univerjs/protocol": "0.1.38-alpha.18"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/react": "^18.3.3",
@@ -73,13 +73,13 @@
73
73
  "typescript": "^5.5.3",
74
74
  "vite": "^5.3.3",
75
75
  "vitest": "^1.6.0",
76
- "@univerjs/core": "0.2.1",
77
- "@univerjs/facade": "0.2.1",
78
- "@univerjs/shared": "0.2.1",
79
- "@univerjs/design": "0.2.1",
80
- "@univerjs/sheets-ui": "0.2.1",
81
- "@univerjs/ui": "0.2.1",
82
- "@univerjs/sheets": "0.2.1"
76
+ "@univerjs/core": "0.2.3",
77
+ "@univerjs/shared": "0.2.3",
78
+ "@univerjs/design": "0.2.3",
79
+ "@univerjs/sheets": "0.2.3",
80
+ "@univerjs/sheets-ui": "0.2.3",
81
+ "@univerjs/ui": "0.2.3",
82
+ "@univerjs/facade": "0.2.3"
83
83
  },
84
84
  "univerSpace": {
85
85
  ".": {