@univerjs/sheets-find-replace 0.5.3-experimental.20250106-e3b7a39 → 0.5.3-experimental.20250107-3e6579c
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.
|
@@ -6,7 +6,6 @@ export interface IFTextFinder {
|
|
|
6
6
|
* get all the matched range in the univer
|
|
7
7
|
* @returns all the matched range
|
|
8
8
|
* @throws if the find operation is not completed
|
|
9
|
-
*
|
|
10
9
|
* @example
|
|
11
10
|
* ```typescript
|
|
12
11
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -22,7 +21,6 @@ export interface IFTextFinder {
|
|
|
22
21
|
* @returns the next matched range
|
|
23
22
|
* @throws if the find operation is not completed
|
|
24
23
|
* @returns null if no more match
|
|
25
|
-
*
|
|
26
24
|
* @example
|
|
27
25
|
* ```typescript
|
|
28
26
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -38,7 +36,6 @@ export interface IFTextFinder {
|
|
|
38
36
|
* @returns the previous matched range
|
|
39
37
|
* @throws if the find operation is not completed
|
|
40
38
|
* @returns null if no more match
|
|
41
|
-
*
|
|
42
39
|
* @example
|
|
43
40
|
* ```typescript
|
|
44
41
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -53,7 +50,6 @@ export interface IFTextFinder {
|
|
|
53
50
|
* get the current matched range in the univer
|
|
54
51
|
* @returns the current matched range
|
|
55
52
|
* @throws if the find operation is not completed
|
|
56
|
-
*
|
|
57
53
|
* @example
|
|
58
54
|
* ```typescript
|
|
59
55
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -68,7 +64,6 @@ export interface IFTextFinder {
|
|
|
68
64
|
* set the match case option
|
|
69
65
|
* @param {boolean} matchCase whether to match case
|
|
70
66
|
* @returns text-finder instance
|
|
71
|
-
*
|
|
72
67
|
* @example
|
|
73
68
|
* ```typescript
|
|
74
69
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -80,7 +75,6 @@ export interface IFTextFinder {
|
|
|
80
75
|
* set the match entire cell option
|
|
81
76
|
* @param {boolean} matchEntireCell whether to match entire cell
|
|
82
77
|
* @returns text-finder instance
|
|
83
|
-
*
|
|
84
78
|
* @example
|
|
85
79
|
* ```typescript
|
|
86
80
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -92,7 +86,6 @@ export interface IFTextFinder {
|
|
|
92
86
|
* set the match formula text option
|
|
93
87
|
* @param {boolean} matchFormulaText whether to match formula text
|
|
94
88
|
* @returns text-finder instance
|
|
95
|
-
*
|
|
96
89
|
* @example
|
|
97
90
|
* ```typescript
|
|
98
91
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -105,7 +98,6 @@ export interface IFTextFinder {
|
|
|
105
98
|
* @param {string} replaceText the text to replace
|
|
106
99
|
* @returns the number of replaced text
|
|
107
100
|
* @throws if the find operation is not completed
|
|
108
|
-
*
|
|
109
101
|
* @example
|
|
110
102
|
* ```typescript
|
|
111
103
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -119,7 +111,6 @@ export interface IFTextFinder {
|
|
|
119
111
|
* @param {string} replaceText the text to replace
|
|
120
112
|
* @returns whether the replace is successful
|
|
121
113
|
* @throws if the find operation is not completed
|
|
122
|
-
*
|
|
123
114
|
* @example
|
|
124
115
|
* ```typescript
|
|
125
116
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -131,7 +122,6 @@ export interface IFTextFinder {
|
|
|
131
122
|
/**
|
|
132
123
|
* ensure the find operation is completed
|
|
133
124
|
* @returns the find complete result
|
|
134
|
-
*
|
|
135
125
|
* @example
|
|
136
126
|
* ```typescript
|
|
137
127
|
* const textFinder = await univerAPI.createTextFinderAsync('hello');
|
|
@@ -3,11 +3,8 @@ import { FTextFinder } from './f-text-finder';
|
|
|
3
3
|
export interface IFUniverFindReplaceMixin {
|
|
4
4
|
/**
|
|
5
5
|
* Create a text-finder for the current univer.
|
|
6
|
-
*
|
|
7
6
|
* @param {string} text - The text to find.
|
|
8
|
-
*
|
|
9
7
|
* @returns {Promise<FTextFinder | null>} A promise that resolves to the text-finder instance.
|
|
10
|
-
*
|
|
11
8
|
* @example
|
|
12
9
|
* ```typescript
|
|
13
10
|
* const textFinder = await univerAPI.createTextFinderAsync('Hello');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/sheets-find-replace",
|
|
3
|
-
"version": "0.5.3-experimental.
|
|
3
|
+
"version": "0.5.3-experimental.20250107-3e6579c",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet find replace plugin",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"rxjs": ">=7.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs/core": "0.5.3-experimental.
|
|
62
|
-
"@univerjs/engine-render": "0.5.3-experimental.
|
|
63
|
-
"@univerjs/find-replace": "0.5.3-experimental.
|
|
64
|
-
"@univerjs/sheets-ui": "0.5.3-experimental.
|
|
65
|
-
"@univerjs/sheets": "0.5.3-experimental.
|
|
61
|
+
"@univerjs/core": "0.5.3-experimental.20250107-3e6579c",
|
|
62
|
+
"@univerjs/engine-render": "0.5.3-experimental.20250107-3e6579c",
|
|
63
|
+
"@univerjs/find-replace": "0.5.3-experimental.20250107-3e6579c",
|
|
64
|
+
"@univerjs/sheets-ui": "0.5.3-experimental.20250107-3e6579c",
|
|
65
|
+
"@univerjs/sheets": "0.5.3-experimental.20250107-3e6579c"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"rxjs": "^7.8.1",
|