@fileverse-dev/fortune-core 1.2.90-ydoc → 1.2.90-ydoc-1

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.
@@ -352,7 +352,9 @@ export function setCellValue(ctx, r, c, d, v) {
352
352
  ctx.luckysheet_selection_range = [];
353
353
  }
354
354
  if (ctx.hooks.afterUpdateCell) {
355
- (_o = (_m = ctx.hooks).afterUpdateCell) === null || _o === void 0 ? void 0 : _o.call(_m, r, c, null, cell);
355
+ var newCell = _.isPlainObject(cell) ? __assign({}, cell) : cell;
356
+ console.log("newCell ======== newCell", newCell, _.isPlainObject(cell));
357
+ (_o = (_m = ctx.hooks).afterUpdateCell) === null || _o === void 0 ? void 0 : _o.call(_m, r, c, null, newCell);
356
358
  }
357
359
  }
358
360
  export function getRealCellValue(r, c, data, attr) {
@@ -385,7 +385,9 @@ function setCellValue(ctx, r, c, d, v) {
385
385
  ctx.luckysheet_selection_range = [];
386
386
  }
387
387
  if (ctx.hooks.afterUpdateCell) {
388
- (_o = (_m = ctx.hooks).afterUpdateCell) === null || _o === void 0 ? void 0 : _o.call(_m, r, c, null, cell);
388
+ var newCell = _lodash.default.isPlainObject(cell) ? __assign({}, cell) : cell;
389
+ console.log("newCell ======== newCell", newCell, _lodash.default.isPlainObject(cell));
390
+ (_o = (_m = ctx.hooks).afterUpdateCell) === null || _o === void 0 ? void 0 : _o.call(_m, r, c, null, newCell);
389
391
  }
390
392
  }
391
393
  function getRealCellValue(r, c, data, attr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.90-ydoc",
3
+ "version": "1.2.90-ydoc-1",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",