@univerjs/sheets 1.0.0-alpha.1 → 1.0.0-alpha.2

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/index.js CHANGED
@@ -12623,12 +12623,14 @@ function buildCopySheetMutations(accessor, workbook, worksheet, unitId, subUnitI
12623
12623
  unitId
12624
12624
  };
12625
12625
  const removeSheetMutationParams = InsertSheetUndoMutationFactory(accessor, insertSheetMutationParams);
12626
+ const copyContext = /* @__PURE__ */ new Map();
12626
12627
  const intercepted = sheetInterceptorService.onCommandExecute({
12627
12628
  id: COPY_SHEET_COMMAND_ID,
12628
12629
  params: {
12629
12630
  unitId,
12630
12631
  subUnitId,
12631
- targetSubUnitId: config.id
12632
+ targetSubUnitId: config.id,
12633
+ copyContext
12632
12634
  }
12633
12635
  });
12634
12636
  return {
@@ -19348,7 +19350,7 @@ RangeProtectionCache = __decorate([
19348
19350
  //#endregion
19349
19351
  //#region package.json
19350
19352
  var name = "@univerjs/sheets";
19351
- var version = "1.0.0-alpha.1";
19353
+ var version = "1.0.0-alpha.2";
19352
19354
 
19353
19355
  //#endregion
19354
19356
  //#region src/controllers/active-worksheet.controller.ts
package/lib/es/index.js CHANGED
@@ -12622,12 +12622,14 @@ function buildCopySheetMutations(accessor, workbook, worksheet, unitId, subUnitI
12622
12622
  unitId
12623
12623
  };
12624
12624
  const removeSheetMutationParams = InsertSheetUndoMutationFactory(accessor, insertSheetMutationParams);
12625
+ const copyContext = /* @__PURE__ */ new Map();
12625
12626
  const intercepted = sheetInterceptorService.onCommandExecute({
12626
12627
  id: COPY_SHEET_COMMAND_ID,
12627
12628
  params: {
12628
12629
  unitId,
12629
12630
  subUnitId,
12630
- targetSubUnitId: config.id
12631
+ targetSubUnitId: config.id,
12632
+ copyContext
12631
12633
  }
12632
12634
  });
12633
12635
  return {
@@ -19347,7 +19349,7 @@ RangeProtectionCache = __decorate([
19347
19349
  //#endregion
19348
19350
  //#region package.json
19349
19351
  var name = "@univerjs/sheets";
19350
- var version = "1.0.0-alpha.1";
19352
+ var version = "1.0.0-alpha.2";
19351
19353
 
19352
19354
  //#endregion
19353
19355
  //#region src/controllers/active-worksheet.controller.ts
package/lib/index.js CHANGED
@@ -12622,12 +12622,14 @@ function buildCopySheetMutations(accessor, workbook, worksheet, unitId, subUnitI
12622
12622
  unitId
12623
12623
  };
12624
12624
  const removeSheetMutationParams = InsertSheetUndoMutationFactory(accessor, insertSheetMutationParams);
12625
+ const copyContext = /* @__PURE__ */ new Map();
12625
12626
  const intercepted = sheetInterceptorService.onCommandExecute({
12626
12627
  id: COPY_SHEET_COMMAND_ID,
12627
12628
  params: {
12628
12629
  unitId,
12629
12630
  subUnitId,
12630
- targetSubUnitId: config.id
12631
+ targetSubUnitId: config.id,
12632
+ copyContext
12631
12633
  }
12632
12634
  });
12633
12635
  return {
@@ -19347,7 +19349,7 @@ RangeProtectionCache = __decorate([
19347
19349
  //#endregion
19348
19350
  //#region package.json
19349
19351
  var name = "@univerjs/sheets";
19350
- var version = "1.0.0-alpha.1";
19352
+ var version = "1.0.0-alpha.2";
19351
19353
 
19352
19354
  //#endregion
19353
19355
  //#region src/controllers/active-worksheet.controller.ts
@@ -19,5 +19,9 @@ export interface ICopySheetCommandParams {
19
19
  unitId?: string;
20
20
  subUnitId?: string;
21
21
  }
22
+ export interface ICopySheetCommandInterceptorParams extends ICopySheetCommandParams {
23
+ targetSubUnitId: string;
24
+ copyContext: Map<string, unknown>;
25
+ }
22
26
  export declare const CopySheetCommand: ICommand;
23
27
  export declare function getCopyUniqueSheetName(workbook: Workbook, localeService: LocaleService, name: string): string;
@@ -43,7 +43,7 @@ export type { IClearSelectionContentCommandParams } from './commands/commands/cl
43
43
  export { ClearSelectionFormatCommand } from './commands/commands/clear-selection-format.command';
44
44
  export type { IClearSelectionFormatCommandParams } from './commands/commands/clear-selection-format.command';
45
45
  export { CopySheetCommand } from './commands/commands/copy-worksheet.command';
46
- export type { ICopySheetCommandParams } from './commands/commands/copy-worksheet.command';
46
+ export type { ICopySheetCommandInterceptorParams, ICopySheetCommandParams } from './commands/commands/copy-worksheet.command';
47
47
  export { DeleteRangeMoveLeftCommand } from './commands/commands/delete-range-move-left.command';
48
48
  export type { IDeleteRangeMoveLeftCommandParams } from './commands/commands/delete-range-move-left.command';
49
49
  export { DeleteRangeMoveUpCommand } from './commands/commands/delete-range-move-up.command';