@fileverse-dev/fortune-react 1.1.5-patch.2 → 1.1.5-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/es/components/Workbook/api.d.ts +3 -13
- package/es/components/Workbook/api.js +2 -2
- package/es/components/Workbook/index.d.ts +2 -12
- package/es/components/index.d.ts +1 -1
- package/lib/components/Workbook/api.d.ts +3 -13
- package/lib/components/Workbook/api.js +2 -2
- package/lib/components/Workbook/index.d.ts +2 -12
- package/lib/components/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { api, Cell, Context, Op, Range, Selection, Presence, Settings, SingleRange, Sheet, CellMatrix, CellWithRowAndCol, GlobalCache } from "@fileverse-dev/fortune-core";
|
|
1
|
+
import { api, Cell, Context, Op, Range, Selection, Presence, Settings, SingleRange, Sheet, CellMatrix, CellWithRowAndCol, GlobalCache, LiveQueryData } from "@fileverse-dev/fortune-core";
|
|
2
2
|
import { getCryptoPrice } from "../../utils/cryptoApi";
|
|
3
3
|
import { SetContextOptions } from "../../context";
|
|
4
4
|
export declare function generateAPIs(context: Context, setContext: (recipe: (ctx: Context) => void, options?: SetContextOptions) => void, handleUndo: () => void, handleRedo: () => void, settings: Required<Settings>, cellInput: HTMLDivElement | null, scrollbarX: HTMLDivElement | null, scrollbarY: HTMLDivElement | null, globalCache: GlobalCache | null): {
|
|
@@ -9,12 +9,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
9
9
|
}) => any;
|
|
10
10
|
onboardingActiveCell: (functionName: string) => void;
|
|
11
11
|
initializeComment: (row: number, column: number) => void;
|
|
12
|
-
updateSheetLiveQueryList: (subsheetIndex: number,
|
|
13
|
-
function: string;
|
|
14
|
-
value: string;
|
|
15
|
-
row: number;
|
|
16
|
-
column: number;
|
|
17
|
-
}) => void;
|
|
12
|
+
updateSheetLiveQueryList: (subsheetIndex: number, _data: LiveQueryData) => void;
|
|
18
13
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
19
14
|
type?: keyof Cell;
|
|
20
15
|
}) => void;
|
|
@@ -115,12 +110,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
115
110
|
column_focus: number;
|
|
116
111
|
} | undefined;
|
|
117
112
|
} | undefined;
|
|
118
|
-
liveQueryList?: Record<string,
|
|
119
|
-
function: string;
|
|
120
|
-
value: string;
|
|
121
|
-
row: number;
|
|
122
|
-
column: number;
|
|
123
|
-
}> | undefined;
|
|
113
|
+
liveQueryList?: Record<string, LiveQueryData> | undefined;
|
|
124
114
|
};
|
|
125
115
|
addSheet: () => void;
|
|
126
116
|
deleteSheet: (options?: api.CommonOptions) => void;
|
|
@@ -113,12 +113,12 @@ export function generateAPIs(context, setContext, handleUndo, handleRedo, settin
|
|
|
113
113
|
newComment(ctx, undefined, row, column);
|
|
114
114
|
});
|
|
115
115
|
},
|
|
116
|
-
updateSheetLiveQueryList: function updateSheetLiveQueryList(subsheetIndex,
|
|
116
|
+
updateSheetLiveQueryList: function updateSheetLiveQueryList(subsheetIndex, _data) {
|
|
117
117
|
setContext(function (ctx) {
|
|
118
118
|
var _a;
|
|
119
119
|
var previousLiveQuery = ctx.luckysheetfile[subsheetIndex].liveQueryList;
|
|
120
120
|
ctx.luckysheetfile[subsheetIndex] = __assign(__assign({}, ctx.luckysheetfile[subsheetIndex]), {
|
|
121
|
-
liveQueryList: __assign(__assign({}, previousLiveQuery), (_a = {}, _a["".concat(data.row, "_").concat(data.column)] =
|
|
121
|
+
liveQueryList: __assign(__assign({}, previousLiveQuery), (_a = {}, _a["".concat(_data.data.row, "_").concat(_data.data.column)] = _data, _a))
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
},
|
|
@@ -16,12 +16,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
16
16
|
}) => any;
|
|
17
17
|
onboardingActiveCell: (functionName: string) => void;
|
|
18
18
|
initializeComment: (row: number, column: number) => void;
|
|
19
|
-
updateSheetLiveQueryList: (subsheetIndex: number,
|
|
20
|
-
function: string;
|
|
21
|
-
value: string;
|
|
22
|
-
row: number;
|
|
23
|
-
column: number;
|
|
24
|
-
}) => void;
|
|
19
|
+
updateSheetLiveQueryList: (subsheetIndex: number, _data: import("@fileverse-dev/fortune-core").LiveQueryData) => void;
|
|
25
20
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
26
21
|
type?: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "baseValue" | "baseCurrency" | "baseCurrencyPrice" | "isDataBlockFormula" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle | undefined;
|
|
27
22
|
}) => void;
|
|
@@ -122,12 +117,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
122
117
|
column_focus: number;
|
|
123
118
|
} | undefined;
|
|
124
119
|
} | undefined;
|
|
125
|
-
liveQueryList?: Record<string,
|
|
126
|
-
function: string;
|
|
127
|
-
value: string;
|
|
128
|
-
row: number;
|
|
129
|
-
column: number;
|
|
130
|
-
}> | undefined;
|
|
120
|
+
liveQueryList?: Record<string, import("@fileverse-dev/fortune-core").LiveQueryData> | undefined;
|
|
131
121
|
};
|
|
132
122
|
addSheet: () => void;
|
|
133
123
|
deleteSheet: (options?: api.CommonOptions) => void;
|
package/es/components/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import Workbook from "./Workbook";
|
|
|
2
2
|
export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from "@fileverse-dev/formulajs/crypto-constants";
|
|
3
3
|
export { Workbook };
|
|
4
4
|
export type { WorkbookInstance } from "./Workbook";
|
|
5
|
-
export type { Cell, Sheet } from "@fileverse-dev/fortune-core";
|
|
5
|
+
export type { Cell, Sheet, LiveQueryData } from "@fileverse-dev/fortune-core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { api, Cell, Context, Op, Range, Selection, Presence, Settings, SingleRange, Sheet, CellMatrix, CellWithRowAndCol, GlobalCache } from "@fileverse-dev/fortune-core";
|
|
1
|
+
import { api, Cell, Context, Op, Range, Selection, Presence, Settings, SingleRange, Sheet, CellMatrix, CellWithRowAndCol, GlobalCache, LiveQueryData } from "@fileverse-dev/fortune-core";
|
|
2
2
|
import { getCryptoPrice } from "../../utils/cryptoApi";
|
|
3
3
|
import { SetContextOptions } from "../../context";
|
|
4
4
|
export declare function generateAPIs(context: Context, setContext: (recipe: (ctx: Context) => void, options?: SetContextOptions) => void, handleUndo: () => void, handleRedo: () => void, settings: Required<Settings>, cellInput: HTMLDivElement | null, scrollbarX: HTMLDivElement | null, scrollbarY: HTMLDivElement | null, globalCache: GlobalCache | null): {
|
|
@@ -9,12 +9,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
9
9
|
}) => any;
|
|
10
10
|
onboardingActiveCell: (functionName: string) => void;
|
|
11
11
|
initializeComment: (row: number, column: number) => void;
|
|
12
|
-
updateSheetLiveQueryList: (subsheetIndex: number,
|
|
13
|
-
function: string;
|
|
14
|
-
value: string;
|
|
15
|
-
row: number;
|
|
16
|
-
column: number;
|
|
17
|
-
}) => void;
|
|
12
|
+
updateSheetLiveQueryList: (subsheetIndex: number, _data: LiveQueryData) => void;
|
|
18
13
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
19
14
|
type?: keyof Cell;
|
|
20
15
|
}) => void;
|
|
@@ -115,12 +110,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
115
110
|
column_focus: number;
|
|
116
111
|
} | undefined;
|
|
117
112
|
} | undefined;
|
|
118
|
-
liveQueryList?: Record<string,
|
|
119
|
-
function: string;
|
|
120
|
-
value: string;
|
|
121
|
-
row: number;
|
|
122
|
-
column: number;
|
|
123
|
-
}> | undefined;
|
|
113
|
+
liveQueryList?: Record<string, LiveQueryData> | undefined;
|
|
124
114
|
};
|
|
125
115
|
addSheet: () => void;
|
|
126
116
|
deleteSheet: (options?: api.CommonOptions) => void;
|
|
@@ -120,12 +120,12 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
120
120
|
(0, _fortuneCore.newComment)(ctx, undefined, row, column);
|
|
121
121
|
});
|
|
122
122
|
},
|
|
123
|
-
updateSheetLiveQueryList: function updateSheetLiveQueryList(subsheetIndex,
|
|
123
|
+
updateSheetLiveQueryList: function updateSheetLiveQueryList(subsheetIndex, _data) {
|
|
124
124
|
setContext(function (ctx) {
|
|
125
125
|
var _a;
|
|
126
126
|
var previousLiveQuery = ctx.luckysheetfile[subsheetIndex].liveQueryList;
|
|
127
127
|
ctx.luckysheetfile[subsheetIndex] = __assign(__assign({}, ctx.luckysheetfile[subsheetIndex]), {
|
|
128
|
-
liveQueryList: __assign(__assign({}, previousLiveQuery), (_a = {}, _a["".concat(data.row, "_").concat(data.column)] =
|
|
128
|
+
liveQueryList: __assign(__assign({}, previousLiveQuery), (_a = {}, _a["".concat(_data.data.row, "_").concat(_data.data.column)] = _data, _a))
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
131
|
},
|
|
@@ -16,12 +16,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
16
16
|
}) => any;
|
|
17
17
|
onboardingActiveCell: (functionName: string) => void;
|
|
18
18
|
initializeComment: (row: number, column: number) => void;
|
|
19
|
-
updateSheetLiveQueryList: (subsheetIndex: number,
|
|
20
|
-
function: string;
|
|
21
|
-
value: string;
|
|
22
|
-
row: number;
|
|
23
|
-
column: number;
|
|
24
|
-
}) => void;
|
|
19
|
+
updateSheetLiveQueryList: (subsheetIndex: number, _data: import("@fileverse-dev/fortune-core").LiveQueryData) => void;
|
|
25
20
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
26
21
|
type?: "rt" | "m" | "v" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "baseValue" | "baseCurrency" | "baseCurrencyPrice" | "isDataBlockFormula" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle | undefined;
|
|
27
22
|
}) => void;
|
|
@@ -122,12 +117,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
122
117
|
column_focus: number;
|
|
123
118
|
} | undefined;
|
|
124
119
|
} | undefined;
|
|
125
|
-
liveQueryList?: Record<string,
|
|
126
|
-
function: string;
|
|
127
|
-
value: string;
|
|
128
|
-
row: number;
|
|
129
|
-
column: number;
|
|
130
|
-
}> | undefined;
|
|
120
|
+
liveQueryList?: Record<string, import("@fileverse-dev/fortune-core").LiveQueryData> | undefined;
|
|
131
121
|
};
|
|
132
122
|
addSheet: () => void;
|
|
133
123
|
deleteSheet: (options?: api.CommonOptions) => void;
|
|
@@ -2,4 +2,4 @@ import Workbook from "./Workbook";
|
|
|
2
2
|
export { ERROR_MESSAGES_FLAG, SERVICES_API_KEY, } from "@fileverse-dev/formulajs/crypto-constants";
|
|
3
3
|
export { Workbook };
|
|
4
4
|
export type { WorkbookInstance } from "./Workbook";
|
|
5
|
-
export type { Cell, Sheet } from "@fileverse-dev/fortune-core";
|
|
5
|
+
export type { Cell, Sheet, LiveQueryData } from "@fileverse-dev/fortune-core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.1.5-patch.
|
|
3
|
+
"version": "1.1.5-patch.3",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.1.5-patch.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.1.5-patch.3",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|