@fileverse-dev/dsheet 1.2.59-sm-fix-patch-1 → 1.2.59-sm-fix-patch-3

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/dist/index.es.js CHANGED
@@ -184413,6 +184413,7 @@ const w7 = `$#,##0.${"0".repeat(2)}`, L2 = ({
184413
184413
  sheetEditorRef: t,
184414
184414
  dataBlockRow: c.row,
184415
184415
  dataBlockColumn: c.column,
184416
+ newValue: u,
184416
184417
  handleSmartContractQuery: n
184417
184418
  }).then((T) => {
184418
184419
  L2({
@@ -184680,9 +184681,9 @@ const rDt = (e) => {
184680
184681
  sheetEditorRef: t,
184681
184682
  dataBlockRow: r,
184682
184683
  dataBlockColumn: a,
184683
- handleSmartContractQuery: n
184684
+ handleSmartContractQuery: n,
184685
+ newValue: i
184684
184686
  }) => {
184685
- var i;
184686
184687
  try {
184687
184688
  const l = await Promise.resolve().then(() => ym), o = e == null ? void 0 : e.match(/^(\w+)\((.*)\)$/);
184688
184689
  if (!o)
@@ -184715,17 +184716,12 @@ const rDt = (e) => {
184715
184716
  sheetEditorRef: t,
184716
184717
  row: r,
184717
184718
  column: a,
184718
- newValue: (i = t == null ? void 0 : t.current) == null ? void 0 : i.getCellValue(
184719
- r,
184720
- a
184721
- ),
184719
+ newValue: i,
184722
184720
  formulaResponseUiSync: L2
184723
184721
  }, { callSignature: d } = v;
184724
184722
  await n(m)(d);
184725
184723
  return;
184726
184724
  }
184727
- if (v.type === "INVALID_PARAM")
184728
- throw new Error(v.message);
184729
184725
  return v;
184730
184726
  } else
184731
184727
  throw new Error(`Function ${f} not found in module`);
@@ -1,4 +1,4 @@
1
- import { WorkbookInstance } from '@fileverse-dev/fortune-react';
1
+ import { Cell, WorkbookInstance } from '@fileverse-dev/fortune-react';
2
2
  import { SmartContractQueryHandler } from './after-update-cell';
3
3
 
4
4
  /**
@@ -7,12 +7,13 @@ import { SmartContractQueryHandler } from './after-update-cell';
7
7
  * @param functionCallString - String representation of the function call
8
8
  * @returns {Promise<unknown>} - Result of the function execution
9
9
  */
10
- export declare const executeStringFunction: ({ functionCallString, sheetEditorRef, dataBlockRow, dataBlockColumn, handleSmartContractQuery, }: {
10
+ export declare const executeStringFunction: ({ functionCallString, sheetEditorRef, dataBlockRow, dataBlockColumn, handleSmartContractQuery, newValue, }: {
11
11
  functionCallString: string;
12
12
  sheetEditorRef?: React.RefObject<WorkbookInstance | null>;
13
13
  dataBlockRow?: number;
14
14
  dataBlockColumn?: number;
15
15
  handleSmartContractQuery?: SmartContractQueryHandler;
16
+ newValue?: Cell;
16
17
  }) => Promise<unknown>;
17
18
  /**
18
19
  * Parses a complex argument string into an array of properly typed arguments
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "1.2.59-sm-fix-patch-1",
5
+ "version": "1.2.59-sm-fix-patch-3",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {