@fileverse-dev/fortune-react 1.2.98 → 1.2.99-ydoc

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.
Files changed (37) hide show
  1. package/es/components/ConditionFormat/ConditionRules.d.ts +0 -1
  2. package/es/components/ConditionFormat/ConditionRules.js +21 -12
  3. package/es/components/ConditionFormat/index.js +2 -2
  4. package/es/components/DataVerification/RangeDialog.js +19 -8
  5. package/es/components/Dialog/index.js +24 -10
  6. package/es/components/ErrorState/index.js +6 -3
  7. package/es/components/LinkEidtCard/index.js +22 -13
  8. package/es/components/SheetOverlay/FormulaHint/index.js +48 -33
  9. package/es/components/SheetTab/SheetItem.js +29 -16
  10. package/es/components/SheetTab/index.js +35 -20
  11. package/es/components/Toolbar/Button.js +10 -3
  12. package/es/components/Toolbar/Combo.js +10 -2
  13. package/es/components/Toolbar/CustomButton.js +12 -3
  14. package/es/components/Toolbar/Select.js +7 -1
  15. package/es/components/Workbook/api.d.ts +2 -3
  16. package/es/components/Workbook/api.js +4 -4
  17. package/es/components/Workbook/index.d.ts +2 -3
  18. package/es/components/Workbook/index.js +114 -0
  19. package/lib/components/ConditionFormat/ConditionRules.d.ts +0 -1
  20. package/lib/components/ConditionFormat/ConditionRules.js +21 -12
  21. package/lib/components/ConditionFormat/index.js +2 -2
  22. package/lib/components/DataVerification/RangeDialog.js +19 -8
  23. package/lib/components/Dialog/index.js +24 -10
  24. package/lib/components/ErrorState/index.js +6 -3
  25. package/lib/components/LinkEidtCard/index.js +22 -13
  26. package/lib/components/SheetOverlay/FormulaHint/index.js +48 -33
  27. package/lib/components/SheetTab/SheetItem.js +29 -16
  28. package/lib/components/SheetTab/index.js +35 -20
  29. package/lib/components/Toolbar/Button.js +10 -3
  30. package/lib/components/Toolbar/Combo.js +10 -2
  31. package/lib/components/Toolbar/CustomButton.js +12 -3
  32. package/lib/components/Toolbar/Select.js +7 -1
  33. package/lib/components/Workbook/api.d.ts +2 -3
  34. package/lib/components/Workbook/api.js +4 -4
  35. package/lib/components/Workbook/index.d.ts +2 -3
  36. package/lib/components/Workbook/index.js +114 -0
  37. package/package.json +2 -2
@@ -17,18 +17,25 @@ var Button = function Button(_a) {
17
17
  children = _a.children,
18
18
  style = _a.style,
19
19
  id = _a.id;
20
+ var iconIdClass = iconId.replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-");
20
21
  return /*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
21
22
  text: tooltip,
22
23
  placement: "bottom"
23
24
  }, /*#__PURE__*/_react.default.createElement("div", {
24
25
  id: id,
25
- className: "fortune-toolbar-button fortune-toolbar-item",
26
+ className: "fortune-toolbar-button fortune-toolbar-item fortune-toolbar-button__cta fortune-toolbar-button--".concat(iconIdClass),
27
+ "data-icon-id": iconId,
26
28
  onClick: onClick,
27
29
  tabIndex: 0,
28
30
  role: "button",
29
31
  style: selected ? {
30
32
  backgroundColor: "#FFDF0A"
31
- } : style
33
+ } : style,
34
+ "data-testid": "toolbar-cta-".concat(id !== null && id !== void 0 ? id : iconId)
35
+ }, /*#__PURE__*/_react.default.createElement("span", {
36
+ className: "fortune-toolbar-button__icon fortune-toolbar-button__icon--".concat(iconIdClass),
37
+ "data-icon-id": iconId,
38
+ "data-testid": "toolbar-icon-".concat(iconId)
32
39
  }, /*#__PURE__*/_react.default.createElement(_ui.LucideIcon, {
33
40
  name: (0, _.getLucideIcon)(iconId),
34
41
  width: 16,
@@ -36,6 +43,6 @@ var Button = function Button(_a) {
36
43
  style: disabled ? {
37
44
  opacity: 0.3
38
45
  } : {}
39
- }), children));
46
+ })), children));
40
47
  };
41
48
  var _default = exports.default = Button;
@@ -11,6 +11,9 @@ var _SVGIcon = _interopRequireDefault(require("../SVGIcon"));
11
11
  var _ = require(".");
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
+ var toCssId = function toCssId(s) {
15
+ return String(s).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-");
16
+ };
14
17
  var Combo = function Combo(_a) {
15
18
  var tooltip = _a.tooltip,
16
19
  _onClick = _a.onClick,
@@ -29,6 +32,7 @@ var Combo = function Combo(_a) {
29
32
  setOpen = _c[1];
30
33
  var buttonRef = (0, _react.useRef)(null);
31
34
  var ref = (0, _react.useRef)(null);
35
+ var iconIdClass = iconId ? toCssId(iconId) : "combo";
32
36
  if (!triggerRef) {
33
37
  triggerRef = ref;
34
38
  }
@@ -42,7 +46,9 @@ var Combo = function Combo(_a) {
42
46
  text: tooltip,
43
47
  placement: "bottom"
44
48
  }, /*#__PURE__*/_react.default.createElement("div", {
45
- className: "fortune-toolbar-combo-button",
49
+ className: "fortune-toolbar-combo-button fortune-toolbar-combo-button--".concat(iconIdClass),
50
+ "data-icon-id": iconId !== null && iconId !== void 0 ? iconId : undefined,
51
+ "data-testid": "toolbar-combo-".concat(iconId !== null && iconId !== void 0 ? iconId : "combo"),
46
52
  onClick: function onClick(e) {
47
53
  if (_onClick) {
48
54
  _onClick(e);
@@ -102,7 +108,9 @@ var Combo = function Combo(_a) {
102
108
  })))));
103
109
  return /*#__PURE__*/_react.default.createElement("div", {
104
110
  ref: buttonRef,
105
- className: "fortune-toolbar-item",
111
+ className: "fortune-toolbar-item fortune-toolbar-combo fortune-toolbar-combo--".concat(iconIdClass),
112
+ "data-icon-id": iconId !== null && iconId !== void 0 ? iconId : undefined,
113
+ "data-testid": "toolbar-combo-".concat(iconId !== null && iconId !== void 0 ? iconId : "combo"),
106
114
  onKeyDown: function onKeyDown(e) {
107
115
  e.stopPropagation();
108
116
  }
@@ -8,6 +8,9 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _ui = require("@fileverse/ui");
9
9
  var _CustomIcon = _interopRequireDefault(require("./CustomIcon"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ var toCssId = function toCssId(s) {
12
+ return String(s).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-");
13
+ };
11
14
  var CustomButton = function CustomButton(_a) {
12
15
  var tooltip = _a.tooltip,
13
16
  onClick = _a.onClick,
@@ -15,22 +18,28 @@ var CustomButton = function CustomButton(_a) {
15
18
  children = _a.children,
16
19
  iconName = _a.iconName,
17
20
  icon = _a.icon;
21
+ var iconNameClass = iconName ? toCssId(iconName) : "custom";
18
22
  return /*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
19
23
  text: tooltip,
20
24
  placement: "bottom"
21
25
  }, /*#__PURE__*/_react.default.createElement("div", {
22
- className: "fortune-toolbar-button fortune-toolbar-item",
26
+ className: "fortune-toolbar-button fortune-toolbar-item fortune-toolbar-button--".concat(iconNameClass),
27
+ "data-icon-name": iconName !== null && iconName !== void 0 ? iconName : undefined,
23
28
  onClick: onClick,
24
29
  tabIndex: 0,
25
30
  role: "button",
26
31
  style: selected ? {
27
32
  backgroundColor: "#FFDF0A"
28
- } : {}
33
+ } : {},
34
+ "data-testid": "toolbar-cta-".concat(iconName !== null && iconName !== void 0 ? iconName : "custom")
35
+ }, /*#__PURE__*/_react.default.createElement("span", {
36
+ className: "fortune-toolbar-button__icon fortune-toolbar-button__icon--".concat(iconNameClass),
37
+ "data-icon-name": iconName !== null && iconName !== void 0 ? iconName : undefined
29
38
  }, /*#__PURE__*/_react.default.createElement(_CustomIcon.default, {
30
39
  width: 16,
31
40
  height: 16,
32
41
  iconName: iconName,
33
42
  content: icon
34
- }), children));
43
+ })), children));
35
44
  };
36
45
  var _default = exports.default = CustomButton;
@@ -15,16 +15,22 @@ var Select = function Select(_a) {
15
15
  style: style
16
16
  }, children);
17
17
  };
18
+ var toCssId = function toCssId(s) {
19
+ return String(s).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-");
20
+ };
18
21
  var Option = exports.Option = function Option(_a) {
19
22
  var iconId = _a.iconId,
20
23
  onClick = _a.onClick,
21
24
  children = _a.children,
22
25
  _onMouseLeave = _a.onMouseLeave,
23
26
  _onMouseEnter = _a.onMouseEnter;
27
+ var iconIdClass = iconId ? toCssId(iconId) : "option";
24
28
  return /*#__PURE__*/_react.default.createElement("div", {
25
29
  onClick: onClick,
26
30
  tabIndex: 0,
27
- className: "fortune-toolbar-select-option",
31
+ className: "fortune-toolbar-select-option fortune-toolbar-select-option--".concat(iconIdClass),
32
+ "data-icon-id": iconId !== null && iconId !== void 0 ? iconId : undefined,
33
+ "data-testid": "toolbar-select-option-".concat(iconId !== null && iconId !== void 0 ? iconId : "option"),
28
34
  onMouseLeave: function onMouseLeave(e) {
29
35
  return _onMouseLeave === null || _onMouseLeave === void 0 ? void 0 : _onMouseLeave(e);
30
36
  },
@@ -14,7 +14,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
14
14
  removeFromLiveQueryList: (subSheetIndex: number, id: string) => void;
15
15
  setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
16
16
  type?: keyof Cell;
17
- }) => void;
17
+ }, callAfterUpdate?: boolean) => void;
18
18
  setCellError: (row: number, column: number, errorMessage: {
19
19
  title: string;
20
20
  message: string;
@@ -51,7 +51,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
51
51
  getCellsByRange: (range: Selection, options?: api.CommonOptions) => (Cell | null)[][];
52
52
  getHtmlByRange: (range: Range, options?: api.CommonOptions) => string | null;
53
53
  setSelection: (range: Range, options?: api.CommonOptions) => void;
54
- setCellValuesByRange: (data: any[][], range: SingleRange, options?: api.CommonOptions) => void;
54
+ setCellValuesByRange: (data: any[][], range: SingleRange, options?: api.CommonOptions, cellAfter?: boolean) => void;
55
55
  setCellFormatByRange: (attr: keyof Cell, value: any, range: Range | SingleRange, options?: api.CommonOptions) => void;
56
56
  mergeCells: (ranges: Range, type: string, options?: api.CommonOptions) => void;
57
57
  cancelMerge: (ranges: Range, options?: api.CommonOptions) => void;
@@ -1199,7 +1199,6 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
1199
1199
  getShowDialog: () => typeof useDialog;
1200
1200
  getSplitColComponent: () => import("react").FC<{}>;
1201
1201
  getConditionalFormatComponent: () => import("react").FC<{
1202
- type?: string | undefined;
1203
1202
  context?: any;
1204
1203
  }>;
1205
1204
  };
@@ -141,12 +141,12 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
141
141
  });
142
142
  });
143
143
  },
144
- setCellValue: function setCellValue(row, column, value, options) {
144
+ setCellValue: function setCellValue(row, column, value, options, callAfterUpdate) {
145
145
  if (options === void 0) {
146
146
  options = {};
147
147
  }
148
148
  return setContext(function (draftCtx) {
149
- return _fortuneCore.api.setCellValue(draftCtx, row, column, value, cellInput, options);
149
+ return _fortuneCore.api.setCellValue(draftCtx, row, column, value, cellInput, options, callAfterUpdate);
150
150
  });
151
151
  },
152
152
  setCellError: function setCellError(row, column, errorMessage) {
@@ -283,12 +283,12 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
283
283
  return _fortuneCore.api.setSelection(draftCtx, range, options);
284
284
  });
285
285
  },
286
- setCellValuesByRange: function setCellValuesByRange(data, range, options) {
286
+ setCellValuesByRange: function setCellValuesByRange(data, range, options, cellAfter) {
287
287
  if (options === void 0) {
288
288
  options = {};
289
289
  }
290
290
  return setContext(function (draftCtx) {
291
- return _fortuneCore.api.setCellValuesByRange(draftCtx, data, range, cellInput, options);
291
+ return _fortuneCore.api.setCellValuesByRange(draftCtx, data, range, cellInput, options, cellAfter);
292
292
  });
293
293
  },
294
294
  setCellFormatByRange: function setCellFormatByRange(attr, value, range, options) {
@@ -21,7 +21,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
21
21
  removeFromLiveQueryList: (subSheetIndex: number, id: string) => void;
22
22
  setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
23
23
  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;
24
- }) => void;
24
+ }, callAfterUpdate?: boolean | undefined) => void;
25
25
  setCellError: (row: number, column: number, errorMessage: {
26
26
  title: string;
27
27
  message: string;
@@ -58,7 +58,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
58
58
  getCellsByRange: (range: import("@fileverse-dev/fortune-core").Selection, options?: api.CommonOptions) => (import("@fileverse-dev/fortune-core").Cell | null)[][];
59
59
  getHtmlByRange: (range: import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => string | null;
60
60
  setSelection: (range: import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => void;
61
- setCellValuesByRange: (data: any[][], range: import("@fileverse-dev/fortune-core").SingleRange, options?: api.CommonOptions) => void;
61
+ setCellValuesByRange: (data: any[][], range: import("@fileverse-dev/fortune-core").SingleRange, options?: api.CommonOptions, cellAfter?: boolean | undefined) => void;
62
62
  setCellFormatByRange: (attr: "error" | "rt" | "f" | "m" | "v" | "mc" | "ct" | "qp" | "spl" | "bg" | "lo" | "baseValue" | "baseCurrency" | "baseCurrencyPrice" | "isDataBlockFormula" | "ps" | "hl" | keyof import("@fileverse-dev/fortune-core").CellStyle, value: any, range: import("@fileverse-dev/fortune-core").Range | import("@fileverse-dev/fortune-core").SingleRange, options?: api.CommonOptions) => void;
63
63
  mergeCells: (ranges: import("@fileverse-dev/fortune-core").Range, type: string, options?: api.CommonOptions) => void;
64
64
  cancelMerge: (ranges: import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => void;
@@ -1206,7 +1206,6 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
1206
1206
  getShowDialog: () => typeof import("../../hooks/useDialog").useDialog;
1207
1207
  getSplitColComponent: () => React.FC<{}>;
1208
1208
  getConditionalFormatComponent: () => React.FC<{
1209
- type?: string | undefined;
1210
1209
  context?: any;
1211
1210
  }>;
1212
1211
  }>>;
@@ -399,6 +399,120 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
399
399
  refs: refs
400
400
  };
401
401
  }, [context, handleRedo, handleUndo, mergedSettings, refs, setContextWithProduce]);
402
+ (0, _react.useEffect)(function () {
403
+ var _a;
404
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.sheetLengthChange) {
405
+ context.hooks.sheetLengthChange();
406
+ }
407
+ }, [context.luckysheetfile.length]);
408
+ var currentSheet = (0, _react.useMemo)(function () {
409
+ var _a;
410
+ return (_a = context === null || context === void 0 ? void 0 : context.luckysheetfile) === null || _a === void 0 ? void 0 : _a.find(function (sheet) {
411
+ return sheet.id === (context === null || context === void 0 ? void 0 : context.currentSheetId);
412
+ });
413
+ }, [context === null || context === void 0 ? void 0 : context.luckysheetfile, context === null || context === void 0 ? void 0 : context.currentSheetId]);
414
+ (0, _react.useEffect)(function () {
415
+ var _a;
416
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.calcChainChange) {
417
+ context.hooks.calcChainChange();
418
+ }
419
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.calcChain]);
420
+ (0, _react.useEffect)(function () {
421
+ var _a;
422
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterImagesChange) {
423
+ context.hooks.afterImagesChange();
424
+ }
425
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.images]);
426
+ (0, _react.useEffect)(function () {
427
+ var _a;
428
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterIframesChange) {
429
+ context.hooks.afterIframesChange();
430
+ }
431
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.iframes]);
432
+ (0, _react.useEffect)(function () {
433
+ var _a;
434
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterFrozenChange) {
435
+ context.hooks.afterFrozenChange();
436
+ }
437
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.frozen]);
438
+ (0, _react.useEffect)(function () {
439
+ var _a;
440
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterOrderChanges) {
441
+ context.hooks.afterOrderChanges();
442
+ }
443
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.order]);
444
+ (0, _react.useEffect)(function () {
445
+ var _a;
446
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterConfigChanges) {
447
+ context.hooks.afterConfigChanges();
448
+ }
449
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.config]);
450
+ (0, _react.useEffect)(function () {
451
+ var _a;
452
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterColRowChanges) {
453
+ context.hooks.afterColRowChanges();
454
+ }
455
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.row, currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.column]);
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.afterShowGridLinesChange) {
459
+ context.hooks.afterShowGridLinesChange();
460
+ }
461
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.showGridLines]);
462
+ (0, _react.useEffect)(function () {
463
+ var _a;
464
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterNameChanges) {
465
+ context.hooks.afterNameChanges();
466
+ }
467
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.name]);
468
+ (0, _react.useEffect)(function () {
469
+ var _a;
470
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterStatusChanges) {
471
+ context.hooks.afterStatusChanges();
472
+ }
473
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.status]);
474
+ (0, _react.useEffect)(function () {
475
+ var _a;
476
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.dataVerificationChange) {
477
+ context.hooks.dataVerificationChange();
478
+ }
479
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.dataVerification]);
480
+ (0, _react.useEffect)(function () {
481
+ var _a;
482
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.liveQueryChange) {
483
+ context.hooks.liveQueryChange();
484
+ }
485
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.liveQueryList]);
486
+ (0, _react.useEffect)(function () {
487
+ var _a;
488
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.imageListChange) {
489
+ context.hooks.imageListChange();
490
+ }
491
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.images]);
492
+ (0, _react.useEffect)(function () {
493
+ var _a;
494
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.iframeListChange) {
495
+ context.hooks.iframeListChange();
496
+ }
497
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.iframes]);
498
+ (0, _react.useEffect)(function () {
499
+ var _a;
500
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.conditionRulesChange) {
501
+ context.hooks.conditionRulesChange();
502
+ }
503
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.conditionRules]);
504
+ (0, _react.useEffect)(function () {
505
+ var _a;
506
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.conditionFormatChange) {
507
+ context.hooks.conditionFormatChange();
508
+ }
509
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.luckysheet_conditionformat_save]);
510
+ (0, _react.useEffect)(function () {
511
+ var _a;
512
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.hyperlinkChange) {
513
+ context.hooks.hyperlinkChange();
514
+ }
515
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.hyperlink]);
402
516
  (0, _react.useEffect)(function () {
403
517
  if (!_lodash.default.isEmpty(context.luckysheetfile)) {
404
518
  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.98",
3
+ "version": "1.2.99-ydoc",
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.98",
19
+ "@fileverse-dev/fortune-core": "1.2.99-ydoc",
20
20
  "@fileverse/ui": "5.0.0",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",