@fileverse-dev/fortune-react 1.2.50-patch-2 → 1.2.50-patch-4

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,7 @@ var ContextMenu = function ContextMenu() {
282
280
  return /*#__PURE__*/React.createElement(Menu, {
283
281
  key: name,
284
282
  onClick: function onClick() {
285
- if (context.allowEdit === false) return;
286
- setContext(function (draftCtx) {
287
- draftCtx.contextMenu = {};
288
- });
289
- showDialog(/*#__PURE__*/React.createElement(DataVerification, null), undefined, toolbar.dataVerification);
283
+ window.dataVerificationClick(context.luckysheet_select_save);
290
284
  }
291
285
  }, /*#__PURE__*/React.createElement("div", {
292
286
  className: "context-item"
@@ -1667,6 +1667,7 @@ var Toolbar = function Toolbar(_a) {
1667
1667
  visible: showDataValidation
1668
1668
  }), /*#__PURE__*/React.createElement("input", {
1669
1669
  id: "fortune-img-upload",
1670
+ className: "test-fortune-img-upload",
1670
1671
  type: "file",
1671
1672
  accept: "image/*",
1672
1673
  style: {
@@ -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,7 @@ var ContextMenu = function ContextMenu() {
291
289
  return /*#__PURE__*/_react.default.createElement(_Menu.default, {
292
290
  key: name,
293
291
  onClick: function onClick() {
294
- if (context.allowEdit === false) return;
295
- setContext(function (draftCtx) {
296
- draftCtx.contextMenu = {};
297
- });
298
- showDialog(/*#__PURE__*/_react.default.createElement(_DataVerification.default, null), undefined, toolbar.dataVerification);
292
+ window.dataVerificationClick(context.luckysheet_select_save);
299
293
  }
300
294
  }, /*#__PURE__*/_react.default.createElement("div", {
301
295
  className: "context-item"
@@ -1676,6 +1676,7 @@ var Toolbar = function Toolbar(_a) {
1676
1676
  visible: showDataValidation
1677
1677
  }), /*#__PURE__*/_react.default.createElement("input", {
1678
1678
  id: "fortune-img-upload",
1679
+ className: "test-fortune-img-upload",
1679
1680
  type: "file",
1680
1681
  accept: "image/*",
1681
1682
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-react",
3
- "version": "1.2.50-patch-2",
3
+ "version": "1.2.50-patch-4",
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-2",
19
+ "@fileverse-dev/fortune-core": "1.2.50-patch-4",
20
20
  "@fileverse/ui": "^4.1.7-patch-40",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",