@fileverse-dev/fortune-core 1.3.10-yjs-7 → 1.3.10-yjs-9

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/es/api/sheet.js CHANGED
@@ -13,7 +13,7 @@ import _ from "lodash";
13
13
  import { v4 as uuidv4 } from "uuid";
14
14
  import { dataToCelldata, getSheet } from "./common";
15
15
  import { getSheetIndex } from "../utils";
16
- import { api, execfunction, getFlowdata, insertUpdateFunctionGroup, locale, spillSortResult } from "..";
16
+ import { api, changeSheet, execfunction, getFlowdata, insertUpdateFunctionGroup, locale, spillSortResult } from "..";
17
17
  function isCellReferenced(formulaString, cell) {
18
18
  function colToNumber(col) {
19
19
  var num = 0;
@@ -183,6 +183,7 @@ export function copySheet(ctx, sheetId) {
183
183
  var sheetOrderList = {};
184
184
  sheetOrderList[newSheetId] = order;
185
185
  api.setSheetOrder(ctx, sheetOrderList);
186
+ changeSheet(ctx, newSheetId, undefined, true, true);
186
187
  if ((_d = ctx === null || ctx === void 0 ? void 0 : ctx.hooks) === null || _d === void 0 ? void 0 : _d.updateAllCell) {
187
188
  ctx.hooks.updateAllCell(newSheetId);
188
189
  } else if ((_e = ctx === null || ctx === void 0 ? void 0 : ctx.hooks) === null || _e === void 0 ? void 0 : _e.updateCellYdoc) {
package/lib/api/sheet.js CHANGED
@@ -201,6 +201,7 @@ function copySheet(ctx, sheetId) {
201
201
  var sheetOrderList = {};
202
202
  sheetOrderList[newSheetId] = order;
203
203
  _2.api.setSheetOrder(ctx, sheetOrderList);
204
+ (0, _2.changeSheet)(ctx, newSheetId, undefined, true, true);
204
205
  if ((_d = ctx === null || ctx === void 0 ? void 0 : ctx.hooks) === null || _d === void 0 ? void 0 : _d.updateAllCell) {
205
206
  ctx.hooks.updateAllCell(newSheetId);
206
207
  } else if ((_e = ctx === null || ctx === void 0 ? void 0 : ctx.hooks) === null || _e === void 0 ? void 0 : _e.updateCellYdoc) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.3.10-yjs-7",
3
+ "version": "1.3.10-yjs-9",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",