@univerjs/core 0.1.0-beta.2 → 0.1.0-beta.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/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@univerjs/core",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.3",
4
+ "private": false,
4
5
  "description": "Core library for Univer.",
5
- "keywords": [],
6
6
  "author": "DreamNum <developer@univer.ai>",
7
- "main": "./lib/cjs/index.js",
8
- "module": "./lib/es/index.js",
9
- "types": "./lib/types/index.d.ts",
10
- "publishConfig": {
11
- "access": "public"
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
- "directories": {
26
- "lib": "lib"
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
- "private": false,
32
- "license": "Apache-2.0",
33
- "homepage": "https://github.com/dream-num/univer",
34
- "repository": {
35
- "type": "git",
36
- "url": "https://github.com/dream-num/univer.git"
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
- "@vitest/coverage-istanbul": "^1.1.1",
53
+ "@wendellhu/redi": "^0.12.13",
54
+ "rxjs": "^7.8.1",
48
55
  "typescript": "^5.3.3",
49
- "vite": "^5.0.10",
50
- "vite-plugin-dts": "^3.7.0",
51
- "vite-plugin-externals": "^0.6.2",
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.3"
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;