@univerjs/sheets-find-replace 0.1.3 → 0.1.5

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
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@univerjs/sheets-find-replace)](https://npmjs.org/package/@univerjs/sheets-find-replace)
4
4
  [![license](https://img.shields.io/npm/l/@univerjs/sheets-find-replace)](https://img.shields.io/npm/l/@univerjs/sheets-find-replace)
5
+ ![i18n](https://img.shields.io/badge/zh--CN%20%7C%20en--US-cornflowerblue?label=i18n)
5
6
 
6
7
  ## Introduction
7
8
 
@@ -1,20 +1,6 @@
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 { ICellData, ICommand, IObjectArrayPrimitiveType } from '@univerjs/core';
17
- import type { IReplaceAllResult } from '@univerjs/find-replace';
1
+ import { IReplaceAllResult } from '@univerjs/find-replace';
2
+ import { ICellData, ICommand, IObjectArrayPrimitiveType } from '@univerjs/core';
3
+
18
4
  export interface ISheetReplaceCommandParams {
19
5
  unitId: string;
20
6
  replacements: ISheetReplacement[];
@@ -1,26 +1,10 @@
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 { Disposable, ICommandService, IContextService, IUniverInstanceService, ThemeService } from '@univerjs/core';
17
- import type { ICellData, IRange, Nullable, Workbook, Worksheet } from '@univerjs/core';
18
- import { IRenderManagerService } from '@univerjs/engine-render';
19
- import type { IFindComplete, IFindMatch, IFindMoveParams, IFindQuery, IReplaceAllResult } from '@univerjs/find-replace';
20
- import { FindModel, FindReplaceController, IFindReplaceService } from '@univerjs/find-replace';
21
- import { SelectionManagerService } from '@univerjs/sheets';
1
+ import { IDisposable, Injector } from '@wendellhu/redi';
22
2
  import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
23
- import { type IDisposable, Injector } from '@wendellhu/redi';
3
+ import { SelectionManagerService } from '@univerjs/sheets';
4
+ import { IFindComplete, IFindMatch, IFindMoveParams, IFindQuery, IReplaceAllResult, FindModel, FindReplaceController, IFindReplaceService } from '@univerjs/find-replace';
5
+ import { IRenderManagerService } from '@univerjs/engine-render';
6
+ import { Disposable, ICommandService, IContextService, IUniverInstanceService, ThemeService, ICellData, IRange, Nullable, Workbook, Worksheet } from '@univerjs/core';
7
+
24
8
  export declare class SheetsFindReplaceController extends Disposable implements IDisposable {
25
9
  private readonly _injector;
26
10
  private readonly _findReplaceController;
@@ -57,9 +41,9 @@ export declare class SheetFindModel extends FindModel {
57
41
  private readonly _sheetSkeletonManagerService;
58
42
  private readonly _selectionManagerService;
59
43
  private readonly _matchesUpdate$;
60
- readonly matchesUpdate$: import("rxjs").Observable<ISheetCellMatch[]>;
44
+ readonly matchesUpdate$: import('rxjs').Observable<ISheetCellMatch[]>;
61
45
  private readonly _activelyChangingMatch$;
62
- readonly activelyChangingMatch$: import("rxjs").Observable<ISheetCellMatch>;
46
+ readonly activelyChangingMatch$: import('rxjs').Observable<ISheetCellMatch>;
63
47
  /** Hold matches by the worksheet they are in. Make it easier to track the next (or previous) match when searching in the whole workbook. */
64
48
  private _matchesByWorksheet;
65
49
  /** Hold all matches in the currently searching scope. */
@@ -1,20 +1,6 @@
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, type Worksheet } from '@univerjs/core';
17
- import type { ISelectionWithStyle } from '@univerjs/sheets';
1
+ import { ISelectionWithStyle } from '@univerjs/sheets';
2
+ import { IRange, Worksheet } from '@univerjs/core';
3
+
18
4
  export declare function isSamePosition(range1: IRange, range2: IRange): boolean;
19
5
  /**
20
6
  * Tell if `range2` is after (or the same as) `range1` with row direction is at priority.
@@ -1,20 +1,6 @@
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 { Plugin, PluginType } from '@univerjs/core';
17
1
  import { Injector } from '@wendellhu/redi';
2
+ import { Plugin, PluginType } from '@univerjs/core';
3
+
18
4
  export interface IFindPluginConfig {
19
5
  }
20
6
  export declare class UniverSheetsFindReplacePlugin extends Plugin {
@@ -1,21 +1,6 @@
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 { IRgbColor, Nullable } from '@univerjs/core';
17
- import type { IShapeProps } from '@univerjs/engine-render';
18
- import { Shape } from '@univerjs/engine-render';
1
+ import { IShapeProps, Shape } from '@univerjs/engine-render';
2
+ import { IRgbColor, Nullable } from '@univerjs/core';
3
+
19
4
  export interface ISheetFindReplaceHighlightShapeProps extends IShapeProps {
20
5
  inHiddenRange: boolean;
21
6
  color: IRgbColor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-find-replace",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "description": "UniverSheet find replace plugin",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -17,7 +17,9 @@
17
17
  "bugs": {
18
18
  "url": "https://github.com/dream-num/univer/issues"
19
19
  },
20
- "keywords": [],
20
+ "keywords": [
21
+ "univer"
22
+ ],
21
23
  "exports": {
22
24
  ".": {
23
25
  "import": "./lib/es/index.js",
@@ -50,27 +52,25 @@
50
52
  "peerDependencies": {
51
53
  "@wendellhu/redi": "0.13.0",
52
54
  "rxjs": ">=7.0.0",
53
- "@univerjs/engine-render": "0.1.3",
54
- "@univerjs/core": "0.1.3",
55
- "@univerjs/find-replace": "0.1.3",
56
- "@univerjs/sheets": "0.1.3",
57
- "@univerjs/sheets-ui": "0.1.3"
55
+ "@univerjs/core": "0.1.5",
56
+ "@univerjs/engine-render": "0.1.5",
57
+ "@univerjs/sheets": "0.1.5",
58
+ "@univerjs/find-replace": "0.1.5",
59
+ "@univerjs/sheets-ui": "0.1.5"
58
60
  },
59
61
  "devDependencies": {
60
62
  "@wendellhu/redi": "^0.13.0",
61
- "less": "^4.2.0",
62
- "react": "^18.2.0",
63
63
  "rxjs": "^7.8.1",
64
- "typescript": "^5.4.2",
65
- "vite": "^5.1.6",
66
- "vitest": "^1.3.1",
67
- "@univerjs/core": "0.1.3",
68
- "@univerjs/engine-formula": "0.1.3",
69
- "@univerjs/engine-render": "0.1.3",
70
- "@univerjs/find-replace": "0.1.3",
71
- "@univerjs/shared": "0.1.3",
72
- "@univerjs/sheets-ui": "0.1.3",
73
- "@univerjs/sheets": "0.1.3"
64
+ "typescript": "^5.4.3",
65
+ "vite": "^5.2.6",
66
+ "vitest": "^1.4.0",
67
+ "@univerjs/core": "0.1.5",
68
+ "@univerjs/engine-formula": "0.1.5",
69
+ "@univerjs/engine-render": "0.1.5",
70
+ "@univerjs/find-replace": "0.1.5",
71
+ "@univerjs/shared": "0.1.5",
72
+ "@univerjs/sheets": "0.1.5",
73
+ "@univerjs/sheets-ui": "0.1.5"
74
74
  },
75
75
  "scripts": {
76
76
  "test": "vitest run",