@fileverse-dev/fortune-react 1.1.91 → 1.1.92
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/Toolbar/index.js +0 -4
- package/es/components/Workbook/api.d.ts +1 -0
- package/es/components/Workbook/api.js +2 -0
- package/es/components/Workbook/index.d.ts +1 -0
- package/lib/components/Toolbar/index.js +0 -4
- package/lib/components/Workbook/api.d.ts +1 -0
- package/lib/components/Workbook/api.js +2 -0
- package/lib/components/Workbook/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -136,7 +136,6 @@ import SVGIcon from "../SVGIcon";
|
|
|
136
136
|
import { useDialog } from "../../hooks/useDialog";
|
|
137
137
|
import { SplitColumn } from "../SplitColumn";
|
|
138
138
|
import { LocationCondition } from "../LocationCondition";
|
|
139
|
-
import DataVerification from "../DataVerification";
|
|
140
139
|
import ConditionalFormat from "../ConditionFormat";
|
|
141
140
|
import CustomButton from "./CustomButton";
|
|
142
141
|
import { CustomColor } from "./CustomColor";
|
|
@@ -534,9 +533,6 @@ var Toolbar = function Toolbar(_a) {
|
|
|
534
533
|
subMenu.style.display = "none";
|
|
535
534
|
}, []);
|
|
536
535
|
useEffect(function () {
|
|
537
|
-
window.getDataValidationComponent = function () {
|
|
538
|
-
return /*#__PURE__*/React.createElement(DataVerification, null);
|
|
539
|
-
};
|
|
540
536
|
var handleResize = function handleResize() {
|
|
541
537
|
setIsDesktop(window.innerWidth >= 1280);
|
|
542
538
|
};
|
|
@@ -4,6 +4,7 @@ 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): {
|
|
5
5
|
applyOp: (ops: Op[]) => void;
|
|
6
6
|
getCryptoPrice: typeof getCryptoPrice;
|
|
7
|
+
DataVerificationComponent: import("react").FC<{}>;
|
|
7
8
|
getCellValue: (row: number, column: number, options?: api.CommonOptions & {
|
|
8
9
|
type?: keyof Cell;
|
|
9
10
|
}) => any;
|
|
@@ -9,6 +9,7 @@ var __assign = this && this.__assign || function () {
|
|
|
9
9
|
return __assign.apply(this, arguments);
|
|
10
10
|
};
|
|
11
11
|
import { addSheet, api, deleteRowCol, deleteSheet, insertRowCol, opToPatch, createFilterOptions, getSheetIndex, locale, setCaretPosition, newComment } from "@fileverse-dev/fortune-core";
|
|
12
|
+
import DataVerification from "../DataVerification";
|
|
12
13
|
import { applyPatches } from "immer";
|
|
13
14
|
import _ from "lodash";
|
|
14
15
|
import { getCryptoPrice } from "../../utils/cryptoApi";
|
|
@@ -66,6 +67,7 @@ export function generateAPIs(context, setContext, handleUndo, handleRedo, settin
|
|
|
66
67
|
});
|
|
67
68
|
},
|
|
68
69
|
getCryptoPrice: getCryptoPrice,
|
|
70
|
+
DataVerificationComponent: DataVerification,
|
|
69
71
|
getCellValue: function getCellValue(row, column, options) {
|
|
70
72
|
if (options === void 0) {
|
|
71
73
|
options = {};
|
|
@@ -11,6 +11,7 @@ type AdditionalProps = {
|
|
|
11
11
|
declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalProps & React.RefAttributes<{
|
|
12
12
|
applyOp: (ops: Op[]) => void;
|
|
13
13
|
getCryptoPrice: typeof getCryptoPrice;
|
|
14
|
+
DataVerificationComponent: React.FC<{}>;
|
|
14
15
|
getCellValue: (row: number, column: number, options?: api.CommonOptions & {
|
|
15
16
|
type?: "error" | "rt" | "f" | "m" | "v" | "mc" | "ct" | "qp" | "spl" | "bg" | "lo" | "baseValue" | "baseCurrency" | "baseCurrencyPrice" | "isDataBlockFormula" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle | undefined;
|
|
16
17
|
}) => any;
|
|
@@ -19,7 +19,6 @@ var _SVGIcon = _interopRequireDefault(require("../SVGIcon"));
|
|
|
19
19
|
var _useDialog = require("../../hooks/useDialog");
|
|
20
20
|
var _SplitColumn = require("../SplitColumn");
|
|
21
21
|
var _LocationCondition = require("../LocationCondition");
|
|
22
|
-
var _DataVerification = _interopRequireDefault(require("../DataVerification"));
|
|
23
22
|
var _ConditionFormat = _interopRequireDefault(require("../ConditionFormat"));
|
|
24
23
|
var _CustomButton = _interopRequireDefault(require("./CustomButton"));
|
|
25
24
|
var _CustomColor = require("./CustomColor");
|
|
@@ -543,9 +542,6 @@ var Toolbar = function Toolbar(_a) {
|
|
|
543
542
|
subMenu.style.display = "none";
|
|
544
543
|
}, []);
|
|
545
544
|
(0, _react.useEffect)(function () {
|
|
546
|
-
window.getDataValidationComponent = function () {
|
|
547
|
-
return /*#__PURE__*/_react.default.createElement(_DataVerification.default, null);
|
|
548
|
-
};
|
|
549
545
|
var handleResize = function handleResize() {
|
|
550
546
|
setIsDesktop(window.innerWidth >= 1280);
|
|
551
547
|
};
|
|
@@ -4,6 +4,7 @@ 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): {
|
|
5
5
|
applyOp: (ops: Op[]) => void;
|
|
6
6
|
getCryptoPrice: typeof getCryptoPrice;
|
|
7
|
+
DataVerificationComponent: import("react").FC<{}>;
|
|
7
8
|
getCellValue: (row: number, column: number, options?: api.CommonOptions & {
|
|
8
9
|
type?: keyof Cell;
|
|
9
10
|
}) => any;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.generateAPIs = generateAPIs;
|
|
7
7
|
var _fortuneCore = require("@fileverse-dev/fortune-core");
|
|
8
|
+
var _DataVerification = _interopRequireDefault(require("../DataVerification"));
|
|
8
9
|
var _immer = require("immer");
|
|
9
10
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
11
|
var _cryptoApi = require("../../utils/cryptoApi");
|
|
@@ -73,6 +74,7 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
73
74
|
});
|
|
74
75
|
},
|
|
75
76
|
getCryptoPrice: _cryptoApi.getCryptoPrice,
|
|
77
|
+
DataVerificationComponent: _DataVerification.default,
|
|
76
78
|
getCellValue: function getCellValue(row, column, options) {
|
|
77
79
|
if (options === void 0) {
|
|
78
80
|
options = {};
|
|
@@ -11,6 +11,7 @@ type AdditionalProps = {
|
|
|
11
11
|
declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalProps & React.RefAttributes<{
|
|
12
12
|
applyOp: (ops: Op[]) => void;
|
|
13
13
|
getCryptoPrice: typeof getCryptoPrice;
|
|
14
|
+
DataVerificationComponent: React.FC<{}>;
|
|
14
15
|
getCellValue: (row: number, column: number, options?: api.CommonOptions & {
|
|
15
16
|
type?: "error" | "rt" | "f" | "m" | "v" | "mc" | "ct" | "qp" | "spl" | "bg" | "lo" | "baseValue" | "baseCurrency" | "baseCurrencyPrice" | "isDataBlockFormula" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle | undefined;
|
|
16
17
|
}) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.92",
|
|
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.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.1.92",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|