@univerjs/sheets 0.1.11 → 0.1.12

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/es/index.js CHANGED
@@ -3623,7 +3623,14 @@ const Qi = {
3623
3623
  autoHeightInfo: u
3624
3624
  };
3625
3625
  }, ta = (t, e) => {
3626
- const { unitId: o, subUnitId: n, rowsAutoHeightInfo: r } = e, i = t.get(p).getUniverSheetInstance(o), a = i == null ? void 0 : i.getSheetBySheetId(n), u = [], c = a.getRowManager();
3626
+ const { unitId: o, subUnitId: n, rowsAutoHeightInfo: r } = e, i = t.get(p).getUniverSheetInstance(o), a = i == null ? void 0 : i.getSheetBySheetId(n);
3627
+ if (!a)
3628
+ return {
3629
+ unitId: o,
3630
+ subUnitId: n,
3631
+ rowsAutoHeightInfo: []
3632
+ };
3633
+ const u = [], c = a.getRowManager();
3627
3634
  for (const d of r) {
3628
3635
  const { row: l } = d, { ah: g } = c.getRowOrCreate(l);
3629
3636
  u.push({
@@ -6195,7 +6202,7 @@ var Oi = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, Pi = (t, e
6195
6202
  (i = t[s]) && (r = (n ? i(e, o, r) : i(r)) || r);
6196
6203
  return n && r && Oi(e, o, r), r;
6197
6204
  }, Ht = (t, e) => (o, n) => e(o, n, t);
6198
- const Ti = "sheets";
6205
+ const Ti = "SHEET_PLUGIN";
6199
6206
  var Mt;
6200
6207
  let _n = (Mt = class extends Yo {
6201
6208
  constructor(t, e, o, n) {
@@ -114,7 +114,7 @@ export { type ISetWorkbookNameMutationParams, SetWorkbookNameMutation } from './
114
114
  export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, handleCommonDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommands, } from './services/ref-range/util';
115
115
  export { INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
116
116
  export { SheetInterceptorService } from './services/sheet-interceptor/sheet-interceptor.service';
117
- export type { ISheetLocation } from './services/sheet-interceptor/utils/interceptor';
117
+ export type { ISheetLocation, ISheetLocationBase, ISheetRowLocation } from './services/sheet-interceptor/utils/interceptor';
118
118
  export { MergeCellController } from './controllers/merge-cell.controller';
119
119
  export { AddMergeRedoSelectionsOperationFactory, AddMergeUndoSelectionsOperationFactory } from './commands/utils/handle-merge-operation';
120
120
  export { InsertDefinedNameCommand } from './commands/commands/insert-defined-name.command';
@@ -1,13 +1,15 @@
1
1
  import { Workbook, Worksheet } from '@univerjs/core';
2
2
 
3
- export interface ISheetLocation {
4
- workbook: Workbook;
5
- worksheet: Worksheet;
3
+ export interface ISheetLocationBase {
6
4
  unitId: string;
7
5
  subUnitId: string;
8
6
  row: number;
9
7
  col: number;
10
8
  }
9
+ export interface ISheetLocation extends ISheetLocationBase {
10
+ workbook: Workbook;
11
+ worksheet: Worksheet;
12
+ }
11
13
  export interface ISheetRowLocation {
12
14
  workbook: Workbook;
13
15
  worksheet: Worksheet;