@fileverse-dev/fortune-core 1.2.56-patch-6 → 1.2.56-patch-7

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.
@@ -1910,6 +1910,13 @@ export function updateDropCell(ctx) {
1910
1910
  var v = formula.execfunction(ctx, f, j, i);
1911
1911
  formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
1912
1912
  cell.v = v[1], cell.f = v[2];
1913
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
1914
+ if (afterUpdateCell) {
1915
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
1916
+ v: v[1] instanceof Promise ? v[1] : cell.v,
1917
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
1918
+ }));
1919
+ }
1913
1920
  if (cell.spl != null) {
1914
1921
  cell.spl = v[3].data;
1915
1922
  } else if (cell.v != null) {
@@ -1990,6 +1997,13 @@ export function updateDropCell(ctx) {
1990
1997
  var v = formula.execfunction(ctx, f, i, j);
1991
1998
  formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
1992
1999
  cell.v = v[1], cell.f = v[2];
2000
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
2001
+ if (afterUpdateCell) {
2002
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
2003
+ v: v[1] instanceof Promise ? v[1] : cell.v,
2004
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
2005
+ }));
2006
+ }
1993
2007
  if (cell.spl != null) {
1994
2008
  cell.spl = v[3].data;
1995
2009
  } else if (cell.v != null) {
@@ -2063,6 +2077,13 @@ export function updateDropCell(ctx) {
2063
2077
  var v = formula.execfunction(ctx, f, i, j);
2064
2078
  formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
2065
2079
  cell.v = v[1], cell.f = v[2];
2080
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
2081
+ if (afterUpdateCell) {
2082
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
2083
+ v: v[1] instanceof Promise ? v[1] : cell.v,
2084
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
2085
+ }));
2086
+ }
2066
2087
  if (cell.spl != null) {
2067
2088
  cell.spl = v[3].data;
2068
2089
  } else if (cell.v != null) {
@@ -1926,6 +1926,13 @@ function updateDropCell(ctx) {
1926
1926
  var v = formula.execfunction(ctx, f, j, i);
1927
1927
  formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
1928
1928
  cell.v = v[1], cell.f = v[2];
1929
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
1930
+ if (afterUpdateCell) {
1931
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
1932
+ v: v[1] instanceof Promise ? v[1] : cell.v,
1933
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
1934
+ }));
1935
+ }
1929
1936
  if (cell.spl != null) {
1930
1937
  cell.spl = v[3].data;
1931
1938
  } else if (cell.v != null) {
@@ -2006,6 +2013,13 @@ function updateDropCell(ctx) {
2006
2013
  var v = formula.execfunction(ctx, f, i, j);
2007
2014
  formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
2008
2015
  cell.v = v[1], cell.f = v[2];
2016
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
2017
+ if (afterUpdateCell) {
2018
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
2019
+ v: v[1] instanceof Promise ? v[1] : cell.v,
2020
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
2021
+ }));
2022
+ }
2009
2023
  if (cell.spl != null) {
2010
2024
  cell.spl = v[3].data;
2011
2025
  } else if (cell.v != null) {
@@ -2079,6 +2093,13 @@ function updateDropCell(ctx) {
2079
2093
  var v = formula.execfunction(ctx, f, i, j);
2080
2094
  formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
2081
2095
  cell.v = v[1], cell.f = v[2];
2096
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
2097
+ if (afterUpdateCell) {
2098
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
2099
+ v: v[1] instanceof Promise ? v[1] : cell.v,
2100
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
2101
+ }));
2102
+ }
2082
2103
  if (cell.spl != null) {
2083
2104
  cell.spl = v[3].data;
2084
2105
  } else if (cell.v != null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.56-patch-6",
3
+ "version": "1.2.56-patch-7",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",