@fileverse-dev/fortune-react 1.2.90-ydoc-10 → 1.2.90-ydoc-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.
@@ -401,7 +401,7 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
401
401
  return (_a = context === null || context === void 0 ? void 0 : context.luckysheetfile) === null || _a === void 0 ? void 0 : _a.find(function (sheet) {
402
402
  return sheet.id === (context === null || context === void 0 ? void 0 : context.currentSheetId);
403
403
  });
404
- }, [context === null || context === void 0 ? void 0 : context.luckysheetfile]);
404
+ }, [context === null || context === void 0 ? void 0 : context.luckysheetfile, context === null || context === void 0 ? void 0 : context.currentSheetId]);
405
405
  useEffect(function () {
406
406
  var _a;
407
407
  if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.calcChainChange) {
@@ -444,6 +444,12 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
444
444
  context.hooks.conditionFormatChange();
445
445
  }
446
446
  }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.luckysheet_conditionformat_save]);
447
+ useEffect(function () {
448
+ var _a;
449
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.hyperlinkChange) {
450
+ context.hooks.hyperlinkChange();
451
+ }
452
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.hyperlink]);
447
453
  useEffect(function () {
448
454
  if (!_.isEmpty(context.luckysheetfile)) {
449
455
  onChange === null || onChange === void 0 ? void 0 : onChange(context.luckysheetfile);
@@ -410,7 +410,7 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
410
410
  return (_a = context === null || context === void 0 ? void 0 : context.luckysheetfile) === null || _a === void 0 ? void 0 : _a.find(function (sheet) {
411
411
  return sheet.id === (context === null || context === void 0 ? void 0 : context.currentSheetId);
412
412
  });
413
- }, [context === null || context === void 0 ? void 0 : context.luckysheetfile]);
413
+ }, [context === null || context === void 0 ? void 0 : context.luckysheetfile, context === null || context === void 0 ? void 0 : context.currentSheetId]);
414
414
  (0, _react.useEffect)(function () {
415
415
  var _a;
416
416
  if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.calcChainChange) {
@@ -453,6 +453,12 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
453
453
  context.hooks.conditionFormatChange();
454
454
  }
455
455
  }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.luckysheet_conditionformat_save]);
456
+ (0, _react.useEffect)(function () {
457
+ var _a;
458
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.hyperlinkChange) {
459
+ context.hooks.hyperlinkChange();
460
+ }
461
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.hyperlink]);
456
462
  (0, _react.useEffect)(function () {
457
463
  if (!_lodash.default.isEmpty(context.luckysheetfile)) {
458
464
  onChange === null || onChange === void 0 ? void 0 : onChange(context.luckysheetfile);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-react",
3
- "version": "1.2.90-ydoc-10",
3
+ "version": "1.2.90-ydoc-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.2.90-ydoc-10",
19
+ "@fileverse-dev/fortune-core": "1.2.90-ydoc-12",
20
20
  "@fileverse/ui": "^4.1.7-patch-40",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",