@univerjs/sheets 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,16 +1,11 @@
1
1
  {
2
2
  "name": "@univerjs/sheets",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.3",
4
+ "private": false,
4
5
  "description": "UniverSheet normal base-sheets",
5
- "keywords": [],
6
6
  "author": "DreamNum <developer@univer.ai>",
7
7
  "license": "Apache-2.0",
8
- "main": "./lib/cjs/index.js",
9
- "module": "./lib/es/index.js",
10
- "types": "./lib/types/index.d.ts",
11
- "publishConfig": {
12
- "access": "public"
13
- },
8
+ "keywords": [],
14
9
  "exports": {
15
10
  ".": {
16
11
  "import": "./lib/es/index.js",
@@ -23,41 +18,47 @@
23
18
  "types": "./lib/types/index.d.ts"
24
19
  }
25
20
  },
21
+ "main": "./lib/cjs/index.js",
22
+ "module": "./lib/es/index.js",
23
+ "types": "./lib/types/index.d.ts",
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
26
27
  "directories": {
27
28
  "lib": "lib"
28
29
  },
29
30
  "files": [
30
31
  "lib"
31
32
  ],
32
- "private": false,
33
- "dependencies": {
34
- "@wendellhu/redi": "^0.12.13",
35
- "rxjs": "^7.8.1",
36
- "@univerjs/core": "0.1.0-beta.2",
37
- "@univerjs/engine-formula": "0.1.0-beta.2",
38
- "@univerjs/engine-render": "0.1.0-beta.2"
33
+ "engines": {
34
+ "node": ">=16.0.0",
35
+ "npm": ">=8.0.0"
39
36
  },
37
+ "peerDependencies": {
38
+ "@wendellhu/redi": ">=0.12.13",
39
+ "rxjs": ">=7.0.0",
40
+ "@univerjs/core": "0.1.0-beta.3",
41
+ "@univerjs/engine-formula": "0.1.0-beta.3",
42
+ "@univerjs/engine-render": "0.1.0-beta.3"
43
+ },
44
+ "dependencies": {},
40
45
  "devDependencies": {
41
- "@vitest/coverage-istanbul": "^1.1.1",
42
- "happy-dom": "^12.10.3",
46
+ "@wendellhu/redi": "^0.12.13",
43
47
  "less": "^4.2.0",
48
+ "rxjs": "^7.8.1",
44
49
  "typescript": "^5.3.3",
45
- "vite": "^5.0.10",
46
- "vite-plugin-dts": "^3.7.0",
47
- "vite-plugin-externals": "^0.6.2",
48
- "vitest": "^1.1.1"
49
- },
50
- "peerDependencies": {
51
- "@wendellhu/redi": ">=0.12.12",
52
- "rxjs": ">=7.0.0",
53
- "@univerjs/core": "0.1.0-beta.2",
54
- "@univerjs/engine-formula": "0.1.0-beta.2",
55
- "@univerjs/engine-render": "0.1.0-beta.2"
50
+ "vite": "^5.0.12",
51
+ "vitest": "^1.2.1",
52
+ "@univerjs/core": "0.1.0-beta.3",
53
+ "@univerjs/engine-formula": "0.1.0-beta.3",
54
+ "@univerjs/engine-render": "0.1.0-beta.3",
55
+ "@univerjs/shared": "0.1.0-beta.3"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",
59
59
  "test:watch": "vitest",
60
60
  "coverage": "vitest run --coverage",
61
+ "lint:types": "tsc --noEmit",
61
62
  "build": "tsc && vite build"
62
63
  }
63
64
  }
@@ -1,29 +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 { IMutation, IObjectMatrixPrimitiveType, IRange, ObjectMatrix } from '@univerjs/core';
17
- import { Dimension } from '@univerjs/core';
18
- import type { IAccessor } from '@wendellhu/redi';
19
- import type { IDeleteRangeMutationParams, IInsertRangeMutationParams } from '../../basics/interfaces/mutation-interface';
20
- /**
21
- * Generate undo mutation of a `InsertRangeMutation`
22
- *
23
- * @param {IAccessor} accessor - injector accessor
24
- * @param {IInsertRangeMutationParams} params - do mutation params
25
- * @returns {IDeleteRangeMutationParams} undo mutation params
26
- */
27
- export declare const InsertRangeUndoMutationFactory: (accessor: IAccessor, params: IInsertRangeMutationParams) => IDeleteRangeMutationParams;
28
- export declare const InsertRangeMutation: IMutation<IInsertRangeMutationParams, boolean>;
29
- export declare function handleInsertRangeMutation<T>(cellMatrix: ObjectMatrix<T>, range: IRange, lastEndRow: number, lastEndColumn: number, shiftDimension: Dimension, cellValue?: IObjectMatrixPrimitiveType<T>): void;