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

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,14 @@ 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
+ console.log(j, i);
2001
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
2002
+ if (afterUpdateCell) {
2003
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
2004
+ v: v[1] instanceof Promise ? v[1] : cell.v,
2005
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
2006
+ }));
2007
+ }
1993
2008
  if (cell.spl != null) {
1994
2009
  cell.spl = v[3].data;
1995
2010
  } else if (cell.v != null) {
@@ -2063,6 +2078,13 @@ export function updateDropCell(ctx) {
2063
2078
  var v = formula.execfunction(ctx, f, i, j);
2064
2079
  formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
2065
2080
  cell.v = v[1], cell.f = v[2];
2081
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
2082
+ if (afterUpdateCell) {
2083
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
2084
+ v: v[1] instanceof Promise ? v[1] : cell.v,
2085
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
2086
+ }));
2087
+ }
2066
2088
  if (cell.spl != null) {
2067
2089
  cell.spl = v[3].data;
2068
2090
  } else if (cell.v != null) {
@@ -2318,7 +2318,6 @@ export function functionCopy(ctx, txt, mode, step) {
2318
2318
  dquote: 0
2319
2319
  };
2320
2320
  while (i < funcstack.length) {
2321
- console.log(funcstack);
2322
2321
  var s = funcstack[i];
2323
2322
  if (s === "(" && matchConfig.dquote === 0) {
2324
2323
  matchConfig.bracket += 1;
@@ -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,14 @@ 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
+ console.log(j, i);
2017
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
2018
+ if (afterUpdateCell) {
2019
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
2020
+ v: v[1] instanceof Promise ? v[1] : cell.v,
2021
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
2022
+ }));
2023
+ }
2009
2024
  if (cell.spl != null) {
2010
2025
  cell.spl = v[3].data;
2011
2026
  } else if (cell.v != null) {
@@ -2079,6 +2094,13 @@ function updateDropCell(ctx) {
2079
2094
  var v = formula.execfunction(ctx, f, i, j);
2080
2095
  formula.execFunctionGroup(ctx, j, i, v[1], undefined, d);
2081
2096
  cell.v = v[1], cell.f = v[2];
2097
+ var afterUpdateCell = ctx.hooks.afterUpdateCell;
2098
+ if (afterUpdateCell) {
2099
+ afterUpdateCell(j, i, null, __assign(__assign({}, cell), {
2100
+ v: v[1] instanceof Promise ? v[1] : cell.v,
2101
+ m: v[1] instanceof Promise ? "[object Promise]" : v[1]
2102
+ }));
2103
+ }
2082
2104
  if (cell.spl != null) {
2083
2105
  cell.spl = v[3].data;
2084
2106
  } else if (cell.v != null) {
@@ -2348,7 +2348,6 @@ function functionCopy(ctx, txt, mode, step) {
2348
2348
  dquote: 0
2349
2349
  };
2350
2350
  while (i < funcstack.length) {
2351
- console.log(funcstack);
2352
2351
  var s = funcstack[i];
2353
2352
  if (s === "(" && matchConfig.dquote === 0) {
2354
2353
  matchConfig.bracket += 1;
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-8",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",