@fileverse-dev/fortune-react 1.2.50-patch-3 → 1.2.50-patch-5
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.
|
@@ -121,7 +121,6 @@ import Tippy from "@tippyjs/react";
|
|
|
121
121
|
import { LucideIcon } from "@fileverse/ui";
|
|
122
122
|
import { SplitColumn } from "../SplitColumn";
|
|
123
123
|
import { ResetColumnWidth } from "../ResetColumnWidth";
|
|
124
|
-
import DataVerification from "../DataVerification";
|
|
125
124
|
import WorkbookContext from "../../context";
|
|
126
125
|
import { useAlert } from "../../hooks/useAlert";
|
|
127
126
|
import { useDialog } from "../../hooks/useDialog";
|
|
@@ -147,7 +146,6 @@ var ContextMenu = function ContextMenu() {
|
|
|
147
146
|
drag = _b.drag,
|
|
148
147
|
generalDialog = _b.generalDialog,
|
|
149
148
|
info = _b.info,
|
|
150
|
-
toolbar = _b.toolbar,
|
|
151
149
|
splitText = _b.splitText;
|
|
152
150
|
var _c = useState(""),
|
|
153
151
|
activeMenu = _c[0],
|
|
@@ -282,11 +280,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
282
280
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
283
281
|
key: name,
|
|
284
282
|
onClick: function onClick() {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
draftCtx.contextMenu = {};
|
|
288
|
-
});
|
|
289
|
-
showDialog(/*#__PURE__*/React.createElement(DataVerification, null), undefined, toolbar.dataVerification);
|
|
283
|
+
console.log("dataVerification clicked uoo");
|
|
284
|
+
window.dataVerificationClick(context.luckysheet_select_save);
|
|
290
285
|
}
|
|
291
286
|
}, /*#__PURE__*/React.createElement("div", {
|
|
292
287
|
className: "context-item"
|
|
@@ -4,7 +4,6 @@ import DataVerification from "../DataVerification";
|
|
|
4
4
|
var DataVerificationPortal = function DataVerificationPortal(_a) {
|
|
5
5
|
var visible = _a.visible;
|
|
6
6
|
var container = document.getElementById("placeholder-data-verification");
|
|
7
|
-
console.log(container, !visible, !container);
|
|
8
7
|
if (!visible || !container) return null;
|
|
9
8
|
return /*#__PURE__*/createPortal(/*#__PURE__*/React.createElement(DataVerification, null), container);
|
|
10
9
|
};
|
|
@@ -13,7 +13,6 @@ var _react2 = _interopRequireDefault(require("@tippyjs/react"));
|
|
|
13
13
|
var _ui = require("@fileverse/ui");
|
|
14
14
|
var _SplitColumn = require("../SplitColumn");
|
|
15
15
|
var _ResetColumnWidth = require("../ResetColumnWidth");
|
|
16
|
-
var _DataVerification = _interopRequireDefault(require("../DataVerification"));
|
|
17
16
|
var _context = _interopRequireDefault(require("../../context"));
|
|
18
17
|
var _useAlert = require("../../hooks/useAlert");
|
|
19
18
|
var _useDialog = require("../../hooks/useDialog");
|
|
@@ -156,7 +155,6 @@ var ContextMenu = function ContextMenu() {
|
|
|
156
155
|
drag = _b.drag,
|
|
157
156
|
generalDialog = _b.generalDialog,
|
|
158
157
|
info = _b.info,
|
|
159
|
-
toolbar = _b.toolbar,
|
|
160
158
|
splitText = _b.splitText;
|
|
161
159
|
var _c = (0, _react.useState)(""),
|
|
162
160
|
activeMenu = _c[0],
|
|
@@ -291,11 +289,8 @@ var ContextMenu = function ContextMenu() {
|
|
|
291
289
|
return /*#__PURE__*/_react.default.createElement(_Menu.default, {
|
|
292
290
|
key: name,
|
|
293
291
|
onClick: function onClick() {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
draftCtx.contextMenu = {};
|
|
297
|
-
});
|
|
298
|
-
showDialog(/*#__PURE__*/_react.default.createElement(_DataVerification.default, null), undefined, toolbar.dataVerification);
|
|
292
|
+
console.log("dataVerification clicked uoo");
|
|
293
|
+
window.dataVerificationClick(context.luckysheet_select_save);
|
|
299
294
|
}
|
|
300
295
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
301
296
|
className: "context-item"
|
|
@@ -11,7 +11,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
11
11
|
var DataVerificationPortal = function DataVerificationPortal(_a) {
|
|
12
12
|
var visible = _a.visible;
|
|
13
13
|
var container = document.getElementById("placeholder-data-verification");
|
|
14
|
-
console.log(container, !visible, !container);
|
|
15
14
|
if (!visible || !container) return null;
|
|
16
15
|
return /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react.default.createElement(_DataVerification.default, null), container);
|
|
17
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.2.50-patch-
|
|
3
|
+
"version": "1.2.50-patch-5",
|
|
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.2.50-patch-
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.2.50-patch-5",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-40",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|