@univerjs/sheets 0.22.0 → 0.22.1-insiders.20260515-225d350

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/lib/cjs/facade.js CHANGED
@@ -6997,7 +6997,7 @@ let FWorkbook = class FWorkbook extends _univerjs_core_facade.FBaseInitialable {
6997
6997
  create(name, rows, columns, options) {
6998
6998
  var _options$sheet, _options$sheet2, _options$index;
6999
6999
  const newSheet = (0, _univerjs_core.mergeWorksheetSnapshotWithDefault)(_univerjs_core.Tools.deepClone((_options$sheet = options === null || options === void 0 ? void 0 : options.sheet) !== null && _options$sheet !== void 0 ? _options$sheet : {}));
7000
- newSheet.name = this._workbook.uniqueSheetName(name);
7000
+ newSheet.name = name;
7001
7001
  newSheet.rowCount = rows;
7002
7002
  newSheet.columnCount = columns;
7003
7003
  newSheet.id = options === null || options === void 0 || (_options$sheet2 = options.sheet) === null || _options$sheet2 === void 0 ? void 0 : _options$sheet2.id;
@@ -7110,7 +7110,8 @@ let FWorkbook = class FWorkbook extends _univerjs_core_facade.FBaseInitialable {
7110
7110
  insertSheet(sheetName, options) {
7111
7111
  var _options$sheet3, _options$sheet4, _options$index2;
7112
7112
  const newSheet = (0, _univerjs_core.mergeWorksheetSnapshotWithDefault)(_univerjs_core.Tools.deepClone((_options$sheet3 = options === null || options === void 0 ? void 0 : options.sheet) !== null && _options$sheet3 !== void 0 ? _options$sheet3 : {}));
7113
- newSheet.name = this._workbook.uniqueSheetName(sheetName);
7113
+ if (sheetName !== void 0) newSheet.name = sheetName;
7114
+ else delete newSheet.name;
7114
7115
  newSheet.id = options === null || options === void 0 || (_options$sheet4 = options.sheet) === null || _options$sheet4 === void 0 ? void 0 : _options$sheet4.id;
7115
7116
  const newSheetIndex = (_options$index2 = options === null || options === void 0 ? void 0 : options.index) !== null && _options$index2 !== void 0 ? _options$index2 : this._workbook.getSheets().length;
7116
7117
  this._commandService.syncExecuteCommand(_univerjs_sheets.InsertSheetCommand.id, {
package/lib/cjs/index.js CHANGED
@@ -12793,12 +12793,13 @@ const InsertSheetCommand = {
12793
12793
  let index = workbook.getSheets().length;
12794
12794
  const sheet = params === null || params === void 0 ? void 0 : params.sheet;
12795
12795
  const sheetId = sheet === null || sheet === void 0 ? void 0 : sheet.id;
12796
+ const sheetName = sheet === null || sheet === void 0 ? void 0 : sheet.name;
12796
12797
  const sheetConfig = (0, _univerjs_core.mergeWorksheetSnapshotWithDefault)(sheet || {});
12797
12798
  if (params) {
12798
12799
  var _params$index;
12799
12800
  index = (_params$index = params.index) !== null && _params$index !== void 0 ? _params$index : index;
12800
12801
  sheetConfig.id = sheetId || (0, _univerjs_core.generateRandomId)();
12801
- sheetConfig.name = (sheet === null || sheet === void 0 ? void 0 : sheet.name) || workbook.generateNewSheetName(`${localeService.t("sheets.tabs.sheet")}`);
12802
+ sheetConfig.name = sheetName ? workbook.uniqueSheetName(sheetName) : workbook.generateNewSheetName(`${localeService.t("sheets.tabs.sheet")}`);
12802
12803
  } else {
12803
12804
  sheetConfig.id = (0, _univerjs_core.generateRandomId)();
12804
12805
  sheetConfig.name = workbook.generateNewSheetName(`${localeService.t("sheets.tabs.sheet")}`);
@@ -18931,7 +18932,7 @@ let RangeProtectionCache = class RangeProtectionCache extends _univerjs_core.Dis
18931
18932
  });
18932
18933
  }
18933
18934
  _initUpdateCellInfoCache() {
18934
- this._permissionService.permissionPointUpdate$.pipe((0, rxjs.filter)((permission) => permission.type === _univerjs_protocol.UnitObject.SelectRange), (0, rxjs.map)((permission) => permission)).subscribe((permission) => {
18935
+ this.disposeWithMe(this._permissionService.permissionPointUpdate$.pipe((0, rxjs.filter)((permission) => permission.type === _univerjs_protocol.UnitObject.SelectRange), (0, rxjs.map)((permission) => permission)).subscribe((permission) => {
18935
18936
  const { subUnitId, unitId, permissionId } = permission;
18936
18937
  const ruleId = this._permissionIdCache.get(permissionId);
18937
18938
  if (!ruleId) return;
@@ -18942,8 +18943,8 @@ let RangeProtectionCache = class RangeProtectionCache extends _univerjs_core.Dis
18942
18943
  const { startRow, endRow, startColumn, endColumn } = range;
18943
18944
  for (let i = startRow; i <= endRow; i++) for (let j = startColumn; j <= endColumn; j++) cellInfoMap.delete(`${i}-${j}`);
18944
18945
  });
18945
- });
18946
- this._ruleModel.ruleChange$.subscribe((info) => {
18946
+ }));
18947
+ this.disposeWithMe(this._ruleModel.ruleChange$.subscribe((info) => {
18947
18948
  const { unitId, subUnitId } = info;
18948
18949
  const cellInfoMap = this._ensureCellInfoMap(unitId, subUnitId);
18949
18950
  info.rule.ranges.forEach((range) => {
@@ -18959,10 +18960,10 @@ let RangeProtectionCache = class RangeProtectionCache extends _univerjs_core.Dis
18959
18960
  });
18960
18961
  });
18961
18962
  }
18962
- });
18963
+ }));
18963
18964
  }
18964
18965
  _initUpdateCellRuleCache() {
18965
- this._ruleModel.ruleChange$.subscribe((ruleChange) => {
18966
+ this.disposeWithMe(this._ruleModel.ruleChange$.subscribe((ruleChange) => {
18966
18967
  const { type } = ruleChange;
18967
18968
  if (type === "add") this._addCellRuleCache(ruleChange);
18968
18969
  else if (type === "delete") this._deleteCellRuleCache(ruleChange);
@@ -18973,7 +18974,7 @@ let RangeProtectionCache = class RangeProtectionCache extends _univerjs_core.Dis
18973
18974
  });
18974
18975
  this._addCellRuleCache(ruleChange);
18975
18976
  }
18976
- });
18977
+ }));
18977
18978
  }
18978
18979
  _ensureRuleMap(unitId, subUnitId) {
18979
18980
  let subUnitMap = this._cellRuleCache.get(unitId);
@@ -19106,7 +19107,7 @@ let RangeProtectionCache = class RangeProtectionCache extends _univerjs_core.Dis
19106
19107
  });
19107
19108
  }
19108
19109
  _initUpdateRowColInfoCache() {
19109
- this._permissionService.permissionPointUpdate$.pipe((0, rxjs.filter)((permission) => permission.type === _univerjs_protocol.UnitObject.SelectRange), (0, rxjs.map)((permission) => permission)).subscribe({ next: (permission) => {
19110
+ this.disposeWithMe(this._permissionService.permissionPointUpdate$.pipe((0, rxjs.filter)((permission) => permission.type === _univerjs_protocol.UnitObject.SelectRange), (0, rxjs.map)((permission) => permission)).subscribe({ next: (permission) => {
19110
19111
  const { subUnitId, unitId, permissionId } = permission;
19111
19112
  const ruleId = this._permissionIdCache.get(permissionId);
19112
19113
  if (!ruleId) return;
@@ -19128,8 +19129,8 @@ let RangeProtectionCache = class RangeProtectionCache extends _univerjs_core.Dis
19128
19129
  }
19129
19130
  }
19130
19131
  });
19131
- } });
19132
- this._ruleModel.ruleChange$.subscribe((info) => {
19132
+ } }));
19133
+ this.disposeWithMe(this._ruleModel.ruleChange$.subscribe((info) => {
19133
19134
  if (info.type === "delete") {
19134
19135
  const { unitId, subUnitId, rule } = info;
19135
19136
  const rowInfoMap = this._ensureRowColInfoMap(unitId, subUnitId, "row");
@@ -19146,7 +19147,7 @@ let RangeProtectionCache = class RangeProtectionCache extends _univerjs_core.Dis
19146
19147
  }
19147
19148
  });
19148
19149
  }
19149
- });
19150
+ }));
19150
19151
  }
19151
19152
  getCellInfo(unitId, subUnitId, row, col) {
19152
19153
  var _this$_cellRuleCache$;
@@ -19189,7 +19190,7 @@ RangeProtectionCache = __decorate([
19189
19190
  //#endregion
19190
19191
  //#region package.json
19191
19192
  var name = "@univerjs/sheets";
19192
- var version = "0.22.0";
19193
+ var version = "0.22.1-insiders.20260515-225d350";
19193
19194
 
19194
19195
  //#endregion
19195
19196
  //#region src/controllers/active-worksheet.controller.ts
package/lib/es/facade.js CHANGED
@@ -6996,7 +6996,7 @@ let FWorkbook = class FWorkbook extends FBaseInitialable {
6996
6996
  create(name, rows, columns, options) {
6997
6997
  var _options$sheet, _options$sheet2, _options$index;
6998
6998
  const newSheet = mergeWorksheetSnapshotWithDefault(Tools.deepClone((_options$sheet = options === null || options === void 0 ? void 0 : options.sheet) !== null && _options$sheet !== void 0 ? _options$sheet : {}));
6999
- newSheet.name = this._workbook.uniqueSheetName(name);
6999
+ newSheet.name = name;
7000
7000
  newSheet.rowCount = rows;
7001
7001
  newSheet.columnCount = columns;
7002
7002
  newSheet.id = options === null || options === void 0 || (_options$sheet2 = options.sheet) === null || _options$sheet2 === void 0 ? void 0 : _options$sheet2.id;
@@ -7109,7 +7109,8 @@ let FWorkbook = class FWorkbook extends FBaseInitialable {
7109
7109
  insertSheet(sheetName, options) {
7110
7110
  var _options$sheet3, _options$sheet4, _options$index2;
7111
7111
  const newSheet = mergeWorksheetSnapshotWithDefault(Tools.deepClone((_options$sheet3 = options === null || options === void 0 ? void 0 : options.sheet) !== null && _options$sheet3 !== void 0 ? _options$sheet3 : {}));
7112
- newSheet.name = this._workbook.uniqueSheetName(sheetName);
7112
+ if (sheetName !== void 0) newSheet.name = sheetName;
7113
+ else delete newSheet.name;
7113
7114
  newSheet.id = options === null || options === void 0 || (_options$sheet4 = options.sheet) === null || _options$sheet4 === void 0 ? void 0 : _options$sheet4.id;
7114
7115
  const newSheetIndex = (_options$index2 = options === null || options === void 0 ? void 0 : options.index) !== null && _options$index2 !== void 0 ? _options$index2 : this._workbook.getSheets().length;
7115
7116
  this._commandService.syncExecuteCommand(InsertSheetCommand.id, {
package/lib/es/index.js CHANGED
@@ -12792,12 +12792,13 @@ const InsertSheetCommand = {
12792
12792
  let index = workbook.getSheets().length;
12793
12793
  const sheet = params === null || params === void 0 ? void 0 : params.sheet;
12794
12794
  const sheetId = sheet === null || sheet === void 0 ? void 0 : sheet.id;
12795
+ const sheetName = sheet === null || sheet === void 0 ? void 0 : sheet.name;
12795
12796
  const sheetConfig = mergeWorksheetSnapshotWithDefault(sheet || {});
12796
12797
  if (params) {
12797
12798
  var _params$index;
12798
12799
  index = (_params$index = params.index) !== null && _params$index !== void 0 ? _params$index : index;
12799
12800
  sheetConfig.id = sheetId || generateRandomId();
12800
- sheetConfig.name = (sheet === null || sheet === void 0 ? void 0 : sheet.name) || workbook.generateNewSheetName(`${localeService.t("sheets.tabs.sheet")}`);
12801
+ sheetConfig.name = sheetName ? workbook.uniqueSheetName(sheetName) : workbook.generateNewSheetName(`${localeService.t("sheets.tabs.sheet")}`);
12801
12802
  } else {
12802
12803
  sheetConfig.id = generateRandomId();
12803
12804
  sheetConfig.name = workbook.generateNewSheetName(`${localeService.t("sheets.tabs.sheet")}`);
@@ -18930,7 +18931,7 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
18930
18931
  });
18931
18932
  }
18932
18933
  _initUpdateCellInfoCache() {
18933
- this._permissionService.permissionPointUpdate$.pipe(filter((permission) => permission.type === UnitObject$1.SelectRange), map((permission) => permission)).subscribe((permission) => {
18934
+ this.disposeWithMe(this._permissionService.permissionPointUpdate$.pipe(filter((permission) => permission.type === UnitObject$1.SelectRange), map((permission) => permission)).subscribe((permission) => {
18934
18935
  const { subUnitId, unitId, permissionId } = permission;
18935
18936
  const ruleId = this._permissionIdCache.get(permissionId);
18936
18937
  if (!ruleId) return;
@@ -18941,8 +18942,8 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
18941
18942
  const { startRow, endRow, startColumn, endColumn } = range;
18942
18943
  for (let i = startRow; i <= endRow; i++) for (let j = startColumn; j <= endColumn; j++) cellInfoMap.delete(`${i}-${j}`);
18943
18944
  });
18944
- });
18945
- this._ruleModel.ruleChange$.subscribe((info) => {
18945
+ }));
18946
+ this.disposeWithMe(this._ruleModel.ruleChange$.subscribe((info) => {
18946
18947
  const { unitId, subUnitId } = info;
18947
18948
  const cellInfoMap = this._ensureCellInfoMap(unitId, subUnitId);
18948
18949
  info.rule.ranges.forEach((range) => {
@@ -18958,10 +18959,10 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
18958
18959
  });
18959
18960
  });
18960
18961
  }
18961
- });
18962
+ }));
18962
18963
  }
18963
18964
  _initUpdateCellRuleCache() {
18964
- this._ruleModel.ruleChange$.subscribe((ruleChange) => {
18965
+ this.disposeWithMe(this._ruleModel.ruleChange$.subscribe((ruleChange) => {
18965
18966
  const { type } = ruleChange;
18966
18967
  if (type === "add") this._addCellRuleCache(ruleChange);
18967
18968
  else if (type === "delete") this._deleteCellRuleCache(ruleChange);
@@ -18972,7 +18973,7 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
18972
18973
  });
18973
18974
  this._addCellRuleCache(ruleChange);
18974
18975
  }
18975
- });
18976
+ }));
18976
18977
  }
18977
18978
  _ensureRuleMap(unitId, subUnitId) {
18978
18979
  let subUnitMap = this._cellRuleCache.get(unitId);
@@ -19105,7 +19106,7 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
19105
19106
  });
19106
19107
  }
19107
19108
  _initUpdateRowColInfoCache() {
19108
- this._permissionService.permissionPointUpdate$.pipe(filter((permission) => permission.type === UnitObject$1.SelectRange), map((permission) => permission)).subscribe({ next: (permission) => {
19109
+ this.disposeWithMe(this._permissionService.permissionPointUpdate$.pipe(filter((permission) => permission.type === UnitObject$1.SelectRange), map((permission) => permission)).subscribe({ next: (permission) => {
19109
19110
  const { subUnitId, unitId, permissionId } = permission;
19110
19111
  const ruleId = this._permissionIdCache.get(permissionId);
19111
19112
  if (!ruleId) return;
@@ -19127,8 +19128,8 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
19127
19128
  }
19128
19129
  }
19129
19130
  });
19130
- } });
19131
- this._ruleModel.ruleChange$.subscribe((info) => {
19131
+ } }));
19132
+ this.disposeWithMe(this._ruleModel.ruleChange$.subscribe((info) => {
19132
19133
  if (info.type === "delete") {
19133
19134
  const { unitId, subUnitId, rule } = info;
19134
19135
  const rowInfoMap = this._ensureRowColInfoMap(unitId, subUnitId, "row");
@@ -19145,7 +19146,7 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
19145
19146
  }
19146
19147
  });
19147
19148
  }
19148
- });
19149
+ }));
19149
19150
  }
19150
19151
  getCellInfo(unitId, subUnitId, row, col) {
19151
19152
  var _this$_cellRuleCache$;
@@ -19188,7 +19189,7 @@ RangeProtectionCache = __decorate([
19188
19189
  //#endregion
19189
19190
  //#region package.json
19190
19191
  var name = "@univerjs/sheets";
19191
- var version = "0.22.0";
19192
+ var version = "0.22.1-insiders.20260515-225d350";
19192
19193
 
19193
19194
  //#endregion
19194
19195
  //#region src/controllers/active-worksheet.controller.ts
package/lib/facade.js CHANGED
@@ -6996,7 +6996,7 @@ let FWorkbook = class FWorkbook extends FBaseInitialable {
6996
6996
  create(name, rows, columns, options) {
6997
6997
  var _options$sheet, _options$sheet2, _options$index;
6998
6998
  const newSheet = mergeWorksheetSnapshotWithDefault(Tools.deepClone((_options$sheet = options === null || options === void 0 ? void 0 : options.sheet) !== null && _options$sheet !== void 0 ? _options$sheet : {}));
6999
- newSheet.name = this._workbook.uniqueSheetName(name);
6999
+ newSheet.name = name;
7000
7000
  newSheet.rowCount = rows;
7001
7001
  newSheet.columnCount = columns;
7002
7002
  newSheet.id = options === null || options === void 0 || (_options$sheet2 = options.sheet) === null || _options$sheet2 === void 0 ? void 0 : _options$sheet2.id;
@@ -7109,7 +7109,8 @@ let FWorkbook = class FWorkbook extends FBaseInitialable {
7109
7109
  insertSheet(sheetName, options) {
7110
7110
  var _options$sheet3, _options$sheet4, _options$index2;
7111
7111
  const newSheet = mergeWorksheetSnapshotWithDefault(Tools.deepClone((_options$sheet3 = options === null || options === void 0 ? void 0 : options.sheet) !== null && _options$sheet3 !== void 0 ? _options$sheet3 : {}));
7112
- newSheet.name = this._workbook.uniqueSheetName(sheetName);
7112
+ if (sheetName !== void 0) newSheet.name = sheetName;
7113
+ else delete newSheet.name;
7113
7114
  newSheet.id = options === null || options === void 0 || (_options$sheet4 = options.sheet) === null || _options$sheet4 === void 0 ? void 0 : _options$sheet4.id;
7114
7115
  const newSheetIndex = (_options$index2 = options === null || options === void 0 ? void 0 : options.index) !== null && _options$index2 !== void 0 ? _options$index2 : this._workbook.getSheets().length;
7115
7116
  this._commandService.syncExecuteCommand(InsertSheetCommand.id, {
package/lib/index.js CHANGED
@@ -12792,12 +12792,13 @@ const InsertSheetCommand = {
12792
12792
  let index = workbook.getSheets().length;
12793
12793
  const sheet = params === null || params === void 0 ? void 0 : params.sheet;
12794
12794
  const sheetId = sheet === null || sheet === void 0 ? void 0 : sheet.id;
12795
+ const sheetName = sheet === null || sheet === void 0 ? void 0 : sheet.name;
12795
12796
  const sheetConfig = mergeWorksheetSnapshotWithDefault(sheet || {});
12796
12797
  if (params) {
12797
12798
  var _params$index;
12798
12799
  index = (_params$index = params.index) !== null && _params$index !== void 0 ? _params$index : index;
12799
12800
  sheetConfig.id = sheetId || generateRandomId();
12800
- sheetConfig.name = (sheet === null || sheet === void 0 ? void 0 : sheet.name) || workbook.generateNewSheetName(`${localeService.t("sheets.tabs.sheet")}`);
12801
+ sheetConfig.name = sheetName ? workbook.uniqueSheetName(sheetName) : workbook.generateNewSheetName(`${localeService.t("sheets.tabs.sheet")}`);
12801
12802
  } else {
12802
12803
  sheetConfig.id = generateRandomId();
12803
12804
  sheetConfig.name = workbook.generateNewSheetName(`${localeService.t("sheets.tabs.sheet")}`);
@@ -18930,7 +18931,7 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
18930
18931
  });
18931
18932
  }
18932
18933
  _initUpdateCellInfoCache() {
18933
- this._permissionService.permissionPointUpdate$.pipe(filter((permission) => permission.type === UnitObject$1.SelectRange), map((permission) => permission)).subscribe((permission) => {
18934
+ this.disposeWithMe(this._permissionService.permissionPointUpdate$.pipe(filter((permission) => permission.type === UnitObject$1.SelectRange), map((permission) => permission)).subscribe((permission) => {
18934
18935
  const { subUnitId, unitId, permissionId } = permission;
18935
18936
  const ruleId = this._permissionIdCache.get(permissionId);
18936
18937
  if (!ruleId) return;
@@ -18941,8 +18942,8 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
18941
18942
  const { startRow, endRow, startColumn, endColumn } = range;
18942
18943
  for (let i = startRow; i <= endRow; i++) for (let j = startColumn; j <= endColumn; j++) cellInfoMap.delete(`${i}-${j}`);
18943
18944
  });
18944
- });
18945
- this._ruleModel.ruleChange$.subscribe((info) => {
18945
+ }));
18946
+ this.disposeWithMe(this._ruleModel.ruleChange$.subscribe((info) => {
18946
18947
  const { unitId, subUnitId } = info;
18947
18948
  const cellInfoMap = this._ensureCellInfoMap(unitId, subUnitId);
18948
18949
  info.rule.ranges.forEach((range) => {
@@ -18958,10 +18959,10 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
18958
18959
  });
18959
18960
  });
18960
18961
  }
18961
- });
18962
+ }));
18962
18963
  }
18963
18964
  _initUpdateCellRuleCache() {
18964
- this._ruleModel.ruleChange$.subscribe((ruleChange) => {
18965
+ this.disposeWithMe(this._ruleModel.ruleChange$.subscribe((ruleChange) => {
18965
18966
  const { type } = ruleChange;
18966
18967
  if (type === "add") this._addCellRuleCache(ruleChange);
18967
18968
  else if (type === "delete") this._deleteCellRuleCache(ruleChange);
@@ -18972,7 +18973,7 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
18972
18973
  });
18973
18974
  this._addCellRuleCache(ruleChange);
18974
18975
  }
18975
- });
18976
+ }));
18976
18977
  }
18977
18978
  _ensureRuleMap(unitId, subUnitId) {
18978
18979
  let subUnitMap = this._cellRuleCache.get(unitId);
@@ -19105,7 +19106,7 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
19105
19106
  });
19106
19107
  }
19107
19108
  _initUpdateRowColInfoCache() {
19108
- this._permissionService.permissionPointUpdate$.pipe(filter((permission) => permission.type === UnitObject$1.SelectRange), map((permission) => permission)).subscribe({ next: (permission) => {
19109
+ this.disposeWithMe(this._permissionService.permissionPointUpdate$.pipe(filter((permission) => permission.type === UnitObject$1.SelectRange), map((permission) => permission)).subscribe({ next: (permission) => {
19109
19110
  const { subUnitId, unitId, permissionId } = permission;
19110
19111
  const ruleId = this._permissionIdCache.get(permissionId);
19111
19112
  if (!ruleId) return;
@@ -19127,8 +19128,8 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
19127
19128
  }
19128
19129
  }
19129
19130
  });
19130
- } });
19131
- this._ruleModel.ruleChange$.subscribe((info) => {
19131
+ } }));
19132
+ this.disposeWithMe(this._ruleModel.ruleChange$.subscribe((info) => {
19132
19133
  if (info.type === "delete") {
19133
19134
  const { unitId, subUnitId, rule } = info;
19134
19135
  const rowInfoMap = this._ensureRowColInfoMap(unitId, subUnitId, "row");
@@ -19145,7 +19146,7 @@ let RangeProtectionCache = class RangeProtectionCache extends Disposable {
19145
19146
  }
19146
19147
  });
19147
19148
  }
19148
- });
19149
+ }));
19149
19150
  }
19150
19151
  getCellInfo(unitId, subUnitId, row, col) {
19151
19152
  var _this$_cellRuleCache$;
@@ -19188,7 +19189,7 @@ RangeProtectionCache = __decorate([
19188
19189
  //#endregion
19189
19190
  //#region package.json
19190
19191
  var name = "@univerjs/sheets";
19191
- var version = "0.22.0";
19192
+ var version = "0.22.1-insiders.20260515-225d350";
19192
19193
 
19193
19194
  //#endregion
19194
19195
  //#region src/controllers/active-worksheet.controller.ts