@univerjs/sheets-find-replace 0.6.2 → 0.6.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.
Files changed (2) hide show
  1. package/lib/es/index.js +5 -15
  2. package/package.json +8 -8
package/lib/es/index.js CHANGED
@@ -279,16 +279,10 @@ let W = class extends Ue {
279
279
  }
280
280
  _findInSelections(e, t, i, n) {
281
281
  const { findDirection: r } = i, s = r === b.ROW ? K : Q, o = /* @__PURE__ */ new Set();
282
- return { results: t.map((l) => this._findInRange(
283
- e,
284
- i,
285
- l.range,
286
- n,
287
- (a, d) => {
288
- const u = `${a}-${d}`;
289
- return o.has(u) ? !0 : (o.add(u), !1);
290
- }
291
- ).results).flat().sort((l, a) => s(l.range.range, a.range.range) ? -1 : 1) };
282
+ return { results: t.map((l) => this._findInRange(e, i, l.range, n, (a, d) => {
283
+ const u = `${a}-${d}`;
284
+ return o.has(u) ? !0 : (o.add(u), !1);
285
+ }).results).flat().sort((l, a) => s(l.range.range, a.range.range) ? -1 : 1) };
292
286
  }
293
287
  /** Find matches in a given worksheet. */
294
288
  _findInWorksheet(e, t, i) {
@@ -344,11 +338,7 @@ let W = class extends Ue {
344
338
  _focusMatch(e) {
345
339
  var i;
346
340
  const t = e.range.subUnitId;
347
- t !== ((i = this._workbook.getActiveSheet()) == null ? void 0 : i.getSheetId()) && this._commandService.executeCommand(
348
- Te.id,
349
- { unitId: this._workbook.getUnitId(), subUnitId: t },
350
- { fromFindReplace: !0 }
351
- ), this._commandService.executeCommand(
341
+ t !== ((i = this._workbook.getActiveSheet()) == null ? void 0 : i.getSheetId()) && this._commandService.executeCommand(Te.id, { unitId: this._workbook.getUnitId(), subUnitId: t }, { fromFindReplace: !0 }), this._commandService.executeCommand(
352
342
  $e.id,
353
343
  { range: e.range.range },
354
344
  { fromFindReplace: !0 }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-find-replace",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "private": false,
5
5
  "description": "UniverSheet find replace plugin",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -58,18 +58,18 @@
58
58
  "rxjs": ">=7.0.0"
59
59
  },
60
60
  "dependencies": {
61
- "@univerjs/core": "0.6.2",
62
- "@univerjs/sheets": "0.6.2",
63
- "@univerjs/engine-render": "0.6.2",
64
- "@univerjs/find-replace": "0.6.2",
65
- "@univerjs/sheets-ui": "0.6.2"
61
+ "@univerjs/core": "0.6.3",
62
+ "@univerjs/engine-render": "0.6.3",
63
+ "@univerjs/find-replace": "0.6.3",
64
+ "@univerjs/sheets-ui": "0.6.3",
65
+ "@univerjs/sheets": "0.6.3"
66
66
  },
67
67
  "devDependencies": {
68
68
  "rxjs": "^7.8.1",
69
- "typescript": "^5.7.3",
69
+ "typescript": "^5.8.2",
70
70
  "vite": "^6.2.0",
71
71
  "vitest": "^3.0.7",
72
- "@univerjs-infra/shared": "0.6.2"
72
+ "@univerjs-infra/shared": "0.6.3"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",