@univerjs/core 0.1.0-beta.2 → 0.1.0-beta.4
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/{LICENSE.txt → LICENSE} +0 -2
- package/lib/cjs/index.js +4 -10
- package/lib/es/index.js +2124 -2563
- package/lib/types/{sheets/r1c1-reference.d.ts → common/function.d.ts} +1 -2
- package/lib/types/docs/data-model/{mutation-types.d.ts → action-types.d.ts} +13 -8
- package/lib/types/docs/data-model/document-data-model.d.ts +3 -3
- package/lib/types/docs/data-model/text-x/__tests__/compose.spec.d.ts +16 -0
- package/lib/types/docs/data-model/text-x/__tests__/text-x.spec.d.ts +16 -0
- package/lib/types/docs/data-model/text-x/__tests__/utils.spec.d.ts +16 -0
- package/lib/types/docs/data-model/text-x/action-iterator.d.ts +29 -0
- package/lib/types/docs/data-model/text-x/text-x.d.ts +28 -0
- package/lib/types/docs/data-model/text-x/utils.d.ts +21 -0
- package/lib/types/docs/data-model/types.d.ts +1 -1
- package/lib/types/index.d.ts +6 -4
- package/lib/types/services/command/command.service.d.ts +1 -0
- package/lib/types/services/context/__tests__/context.service.spec.d.ts +16 -0
- package/lib/types/services/context/context.d.ts +3 -1
- package/lib/types/services/context/context.service.d.ts +9 -3
- package/lib/types/services/locale/locale.service.d.ts +2 -2
- package/lib/types/shared/generate.d.ts +5 -5
- package/lib/types/shared/object-matrix.d.ts +5 -1
- package/lib/types/sheets/column-manager.d.ts +13 -0
- package/lib/types/sheets/row-manager.d.ts +13 -0
- package/lib/types/sheets/worksheet.d.ts +10 -0
- package/lib/types/types/enum/text-style.d.ts +9 -15
- package/lib/types/types/interfaces/i-cell-data.d.ts +3 -3
- package/lib/types/types/interfaces/i-row-data.d.ts +1 -1
- package/lib/umd/index.js +5 -11
- package/package.json +31 -28
- package/lib/types/sheets/reference.d.ts +0 -64
- /package/lib/types/{sheets/__tests__/r1c1-reference.spec.d.ts → docs/data-model/__tests__/common.spec.d.ts} +0 -0
- /package/lib/types/{sheets/__tests__/reference.spec.d.ts → docs/data-model/text-x/__tests__/action-iterator.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/core",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.4",
|
|
4
|
+
"private": false,
|
|
4
5
|
"description": "Core library for Univer.",
|
|
5
|
-
"keywords": [],
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"homepage": "https://github.com/dream-num/univer",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/dream-num/univer.git"
|
|
12
12
|
},
|
|
13
|
+
"keywords": [],
|
|
13
14
|
"exports": {
|
|
14
15
|
".": {
|
|
15
16
|
"import": "./lib/es/index.js",
|
|
@@ -22,43 +23,45 @@
|
|
|
22
23
|
"types": "./lib/types/index.d.ts"
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
"main": "./lib/cjs/index.js",
|
|
27
|
+
"module": "./lib/es/index.js",
|
|
28
|
+
"types": "./lib/types/index.d.ts",
|
|
28
29
|
"files": [
|
|
29
30
|
"lib"
|
|
30
31
|
],
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=16.0.0",
|
|
34
|
+
"npm": ">=8.0.0"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"directories": {
|
|
40
|
+
"lib": "lib"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@wendellhu/redi": ">=0.12.13",
|
|
44
|
+
"rxjs": ">=7.0.0"
|
|
37
45
|
},
|
|
38
46
|
"dependencies": {
|
|
39
|
-
"@wendellhu/redi": "^0.12.13",
|
|
40
47
|
"dayjs": "^1.11.10",
|
|
41
48
|
"nanoid": "5.0.4",
|
|
42
|
-
"numeral": "^2.0.6"
|
|
43
|
-
"rxjs": "^7.8.1"
|
|
49
|
+
"numeral": "^2.0.6"
|
|
44
50
|
},
|
|
45
51
|
"devDependencies": {
|
|
46
52
|
"@types/numeral": "^2.0.5",
|
|
47
|
-
"@
|
|
53
|
+
"@wendellhu/redi": "^0.12.13",
|
|
54
|
+
"rxjs": "^7.8.1",
|
|
48
55
|
"typescript": "^5.3.3",
|
|
49
|
-
"vite": "^5.0.
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"vitest": "^1.1.1"
|
|
53
|
-
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"@wendellhu/redi": ">=0.12.12",
|
|
56
|
-
"rxjs": ">=7.0.0"
|
|
56
|
+
"vite": "^5.0.12",
|
|
57
|
+
"vitest": "^1.2.1",
|
|
58
|
+
"@univerjs/shared": "0.1.0-beta.4"
|
|
57
59
|
},
|
|
58
60
|
"scripts": {
|
|
59
61
|
"test": "vitest run",
|
|
60
62
|
"test:watch": "vitest",
|
|
61
63
|
"coverage": "vitest run --coverage",
|
|
64
|
+
"lint:types": "tsc --noEmit",
|
|
62
65
|
"build": "tsc && vite build"
|
|
63
66
|
}
|
|
64
67
|
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IRange } from '../types/interfaces/i-range';
|
|
17
|
-
import { AbsoluteRefType } from '../types/interfaces/i-range';
|
|
18
|
-
export declare const UNIT_NAME_REGEX = "'?\\[((?![\\/?:\"<>|*\\\\]).)*?\\]";
|
|
19
|
-
export interface IGridRangeName {
|
|
20
|
-
unitId: string;
|
|
21
|
-
sheetName: string;
|
|
22
|
-
range: IRange;
|
|
23
|
-
}
|
|
24
|
-
export interface IAbsoluteRefTypeForRange {
|
|
25
|
-
startAbsoluteRefType: AbsoluteRefType;
|
|
26
|
-
endAbsoluteRefType?: AbsoluteRefType;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param singleRefString for example A1 or B10, not A1:B10
|
|
31
|
-
*/
|
|
32
|
-
export declare function getAbsoluteRefTypeWithSingleString(singleRefString: string): AbsoluteRefType;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @param refString for example A1:B10
|
|
36
|
-
*/
|
|
37
|
-
export declare function getAbsoluteRefTypeWitString(refString: string): IAbsoluteRefTypeForRange;
|
|
38
|
-
/**
|
|
39
|
-
* Serialize an `IRange` into a string.
|
|
40
|
-
* @param range The `IRange` to be serialized
|
|
41
|
-
*/
|
|
42
|
-
export declare function serializeRange(range: IRange): string;
|
|
43
|
-
/**
|
|
44
|
-
* Serialize an `IRange` and a sheetID into a string.
|
|
45
|
-
* @param sheetName
|
|
46
|
-
* @param range
|
|
47
|
-
* @returns
|
|
48
|
-
*/
|
|
49
|
-
export declare function serializeRangeWithSheet(sheetName: string, range: IRange): string;
|
|
50
|
-
/**
|
|
51
|
-
* Serialize an `IRange` and a sheetID into a string.
|
|
52
|
-
* @param unit unitId or unitName
|
|
53
|
-
* @param sheetName
|
|
54
|
-
* @param range
|
|
55
|
-
* @returns
|
|
56
|
-
*/
|
|
57
|
-
export declare function serializeRangeWithSpreadsheet(unit: string, sheetName: string, range: IRange): string;
|
|
58
|
-
export declare function serializeRangeToRefString(gridRangeName: IGridRangeName): string;
|
|
59
|
-
export declare function handleRefStringInfo(refString: string): {
|
|
60
|
-
refBody: string;
|
|
61
|
-
sheetName: string;
|
|
62
|
-
unitId: string;
|
|
63
|
-
};
|
|
64
|
-
export declare function deserializeRangeWithSheet(refString: string): IGridRangeName;
|
|
File without changes
|