@fileverse-dev/fortune-react 1.0.11 → 1.0.12

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.
@@ -55,7 +55,8 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
55
55
  var onChange = _a.onChange,
56
56
  onOp = _a.onOp,
57
57
  originalData = _a.data,
58
- props = __rest(_a, ["onChange", "onOp", "data"]);
58
+ isFlvReadOnly = _a.isFlvReadOnly,
59
+ props = __rest(_a, ["onChange", "onOp", "data", "isFlvReadOnly"]);
59
60
  var globalCache = useRef({
60
61
  undoList: [],
61
62
  redoList: []
@@ -361,6 +362,7 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
361
362
  }
362
363
  draftCtx.lang = mergedSettings.lang;
363
364
  draftCtx.allowEdit = mergedSettings.allowEdit;
365
+ draftCtx.isFlvReadOnly = isFlvReadOnly !== null && isFlvReadOnly !== void 0 ? isFlvReadOnly : false;
364
366
  draftCtx.hooks = mergedSettings.hooks;
365
367
  if (_.isEmpty(draftCtx.currentSheetId)) {
366
368
  initSheetIndex(draftCtx);
@@ -64,7 +64,8 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
64
64
  var onChange = _a.onChange,
65
65
  onOp = _a.onOp,
66
66
  originalData = _a.data,
67
- props = __rest(_a, ["onChange", "onOp", "data"]);
67
+ isFlvReadOnly = _a.isFlvReadOnly,
68
+ props = __rest(_a, ["onChange", "onOp", "data", "isFlvReadOnly"]);
68
69
  var globalCache = (0, _react.useRef)({
69
70
  undoList: [],
70
71
  redoList: []
@@ -370,6 +371,7 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
370
371
  }
371
372
  draftCtx.lang = mergedSettings.lang;
372
373
  draftCtx.allowEdit = mergedSettings.allowEdit;
374
+ draftCtx.isFlvReadOnly = isFlvReadOnly !== null && isFlvReadOnly !== void 0 ? isFlvReadOnly : false;
373
375
  draftCtx.hooks = mergedSettings.hooks;
374
376
  if (_lodash.default.isEmpty(draftCtx.currentSheetId)) {
375
377
  (0, _fortuneCore.initSheetIndex)(draftCtx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-react",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
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.0.11",
19
+ "@fileverse-dev/fortune-core": "1.0.12",
20
20
  "@fileverse/ui": "^4.1.7-patch-16",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",