@fileverse-dev/fortune-react 1.3.9 → 1.3.10-copyPaste-2

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.
@@ -149,7 +149,7 @@ var Sheet = function Sheet(_a) {
149
149
  return function () {
150
150
  return cellFadeAnimator.setOnTick(null);
151
151
  };
152
- }, [context, refs.canvas, refs.globalCache.freezen, setContext, sheet.id]);
152
+ }, [context.scrollLeft, context.scrollTop, context.rowHeaderWidth, context.columnHeaderHeight, context.visibledatarow, context.visibledatacolumn, context.config, context.currentSheetId, context.luckysheetfile, context.zoomRatio, context.devicePixelRatio, context.showGridLines, context.luckysheetTableContentHW, context.defaultFontSize, context.defaultcollen, context.ch_width, context.luckysheetcurrentisPivotTable, context.hooks, refs.canvas, sheet.id]);
153
153
  useSmoothScroll(containerRef);
154
154
  return /*#__PURE__*/React.createElement("div", {
155
155
  ref: containerRef,
@@ -12,7 +12,6 @@ export var useSmoothScroll = function useSmoothScroll(scrollContainerRef) {
12
12
  return window.devicePixelRatio || 1;
13
13
  };
14
14
  }
15
- console.log("handleScroll called 6.2");
16
15
  var queuedXPixels = 0;
17
16
  var queuedYPixels = 0;
18
17
  var animationFrameId = 0;
@@ -345,7 +345,6 @@ export var CurrencySelector = function CurrencySelector(_a) {
345
345
  value: searchTerm,
346
346
  onValueChange: function onValueChange(value) {
347
347
  setSearchTerm(value);
348
- console.log(value, "djksfgnkjsedfngskjn");
349
348
  }
350
349
  })), /*#__PURE__*/React.createElement("div", {
351
350
  className: "px-4 py-2 border-b color-border-default flex items-center justify-between gap-2 text-body-sm color-text-default",
@@ -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;
@@ -134,12 +134,12 @@ export function generateAPIs(context, setContext, handleUndo, handleRedo, settin
134
134
  });
135
135
  });
136
136
  },
137
- setCellValue: function setCellValue(row, column, value, options) {
137
+ setCellValue: function setCellValue(row, column, value, options, callAfterUpdate) {
138
138
  if (options === void 0) {
139
139
  options = {};
140
140
  }
141
141
  return setContext(function (draftCtx) {
142
- return api.setCellValue(draftCtx, row, column, value, cellInput, options);
142
+ return api.setCellValue(draftCtx, row, column, value, cellInput, options, callAfterUpdate);
143
143
  });
144
144
  },
145
145
  setCellError: function setCellError(row, column, errorMessage) {
@@ -276,12 +276,12 @@ export function generateAPIs(context, setContext, handleUndo, handleRedo, settin
276
276
  return api.setSelection(draftCtx, range, options);
277
277
  });
278
278
  },
279
- setCellValuesByRange: function setCellValuesByRange(data, range, options) {
279
+ setCellValuesByRange: function setCellValuesByRange(data, range, options, cellAfter) {
280
280
  if (options === void 0) {
281
281
  options = {};
282
282
  }
283
283
  return setContext(function (draftCtx) {
284
- return api.setCellValuesByRange(draftCtx, data, range, cellInput, options);
284
+ return api.setCellValuesByRange(draftCtx, data, range, cellInput, options, cellAfter);
285
285
  });
286
286
  },
287
287
  setCellFormatByRange: function setCellFormatByRange(attr, value, range, options) {
@@ -390,7 +390,6 @@ export function generateAPIs(context, setContext, handleUndo, handleRedo, settin
390
390
  });
391
391
  },
392
392
  calculateCellReferencedSubSheetFormula: function calculateCellReferencedSubSheetFormula(id, refCell) {
393
- console.log("calculateCellReferencedSubSheetFormula", id, refCell);
394
393
  setContext(function (draftCtx) {
395
394
  api.calculateReferencedCellSheetFromula(draftCtx, id, refCell);
396
395
  });
@@ -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;
@@ -396,6 +396,120 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
396
396
  refs: refs
397
397
  };
398
398
  }, [context, handleRedo, handleUndo, mergedSettings, refs, setContextWithProduce]);
399
+ useEffect(function () {
400
+ var _a;
401
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.sheetLengthChange) {
402
+ context.hooks.sheetLengthChange();
403
+ }
404
+ }, [context.luckysheetfile.length]);
405
+ var currentSheet = useMemo(function () {
406
+ var _a;
407
+ return (_a = context === null || context === void 0 ? void 0 : context.luckysheetfile) === null || _a === void 0 ? void 0 : _a.find(function (sheet) {
408
+ return sheet.id === (context === null || context === void 0 ? void 0 : context.currentSheetId);
409
+ });
410
+ }, [context === null || context === void 0 ? void 0 : context.luckysheetfile, context === null || context === void 0 ? void 0 : context.currentSheetId]);
411
+ useEffect(function () {
412
+ var _a;
413
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.calcChainChange) {
414
+ context.hooks.calcChainChange();
415
+ }
416
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.calcChain]);
417
+ useEffect(function () {
418
+ var _a;
419
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterImagesChange) {
420
+ context.hooks.afterImagesChange();
421
+ }
422
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.images]);
423
+ useEffect(function () {
424
+ var _a;
425
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterIframesChange) {
426
+ context.hooks.afterIframesChange();
427
+ }
428
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.iframes]);
429
+ useEffect(function () {
430
+ var _a;
431
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterFrozenChange) {
432
+ context.hooks.afterFrozenChange();
433
+ }
434
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.frozen]);
435
+ useEffect(function () {
436
+ var _a;
437
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterOrderChanges) {
438
+ context.hooks.afterOrderChanges();
439
+ }
440
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.order]);
441
+ useEffect(function () {
442
+ var _a;
443
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterConfigChanges) {
444
+ context.hooks.afterConfigChanges();
445
+ }
446
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.config]);
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.afterColRowChanges) {
450
+ context.hooks.afterColRowChanges();
451
+ }
452
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.row, currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.column]);
453
+ useEffect(function () {
454
+ var _a;
455
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterShowGridLinesChange) {
456
+ context.hooks.afterShowGridLinesChange();
457
+ }
458
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.showGridLines]);
459
+ useEffect(function () {
460
+ var _a;
461
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterNameChanges) {
462
+ context.hooks.afterNameChanges();
463
+ }
464
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.name]);
465
+ useEffect(function () {
466
+ var _a;
467
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.afterStatusChanges) {
468
+ context.hooks.afterStatusChanges();
469
+ }
470
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.status]);
471
+ useEffect(function () {
472
+ var _a;
473
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.dataVerificationChange) {
474
+ context.hooks.dataVerificationChange();
475
+ }
476
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.dataVerification]);
477
+ useEffect(function () {
478
+ var _a;
479
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.liveQueryChange) {
480
+ context.hooks.liveQueryChange();
481
+ }
482
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.liveQueryList]);
483
+ useEffect(function () {
484
+ var _a;
485
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.imageListChange) {
486
+ context.hooks.imageListChange();
487
+ }
488
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.images]);
489
+ useEffect(function () {
490
+ var _a;
491
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.iframeListChange) {
492
+ context.hooks.iframeListChange();
493
+ }
494
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.iframes]);
495
+ useEffect(function () {
496
+ var _a;
497
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.conditionRulesChange) {
498
+ context.hooks.conditionRulesChange();
499
+ }
500
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.conditionRules]);
501
+ useEffect(function () {
502
+ var _a;
503
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.conditionFormatChange) {
504
+ context.hooks.conditionFormatChange();
505
+ }
506
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.luckysheet_conditionformat_save]);
507
+ useEffect(function () {
508
+ var _a;
509
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.hyperlinkChange) {
510
+ context.hooks.hyperlinkChange();
511
+ }
512
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.hyperlink]);
399
513
  useEffect(function () {
400
514
  if (!_.isEmpty(context.luckysheetfile)) {
401
515
  onChange === null || onChange === void 0 ? void 0 : onChange(context.luckysheetfile);
@@ -158,7 +158,7 @@ var Sheet = function Sheet(_a) {
158
158
  return function () {
159
159
  return _fortuneCore.cellFadeAnimator.setOnTick(null);
160
160
  };
161
- }, [context, refs.canvas, refs.globalCache.freezen, setContext, sheet.id]);
161
+ }, [context.scrollLeft, context.scrollTop, context.rowHeaderWidth, context.columnHeaderHeight, context.visibledatarow, context.visibledatacolumn, context.config, context.currentSheetId, context.luckysheetfile, context.zoomRatio, context.devicePixelRatio, context.showGridLines, context.luckysheetTableContentHW, context.defaultFontSize, context.defaultcollen, context.ch_width, context.luckysheetcurrentisPivotTable, context.hooks, refs.canvas, sheet.id]);
162
162
  (0, _useSmoothScroll.useSmoothScroll)(containerRef);
163
163
  return /*#__PURE__*/_react.default.createElement("div", {
164
164
  ref: containerRef,
@@ -19,7 +19,6 @@ var useSmoothScroll = exports.useSmoothScroll = function useSmoothScroll(scrollC
19
19
  return window.devicePixelRatio || 1;
20
20
  };
21
21
  }
22
- console.log("handleScroll called 6.2");
23
22
  var queuedXPixels = 0;
24
23
  var queuedYPixels = 0;
25
24
  var animationFrameId = 0;
@@ -354,7 +354,6 @@ var CurrencySelector = exports.CurrencySelector = function CurrencySelector(_a)
354
354
  value: searchTerm,
355
355
  onValueChange: function onValueChange(value) {
356
356
  setSearchTerm(value);
357
- console.log(value, "djksfgnkjsedfngskjn");
358
357
  }
359
358
  })), /*#__PURE__*/_react.default.createElement("div", {
360
359
  className: "px-4 py-2 border-b color-border-default flex items-center justify-between gap-2 text-body-sm color-text-default",
@@ -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;
@@ -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) {
@@ -397,7 +397,6 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
397
397
  });
398
398
  },
399
399
  calculateCellReferencedSubSheetFormula: function calculateCellReferencedSubSheetFormula(id, refCell) {
400
- console.log("calculateCellReferencedSubSheetFormula", id, refCell);
401
400
  setContext(function (draftCtx) {
402
401
  _fortuneCore.api.calculateReferencedCellSheetFromula(draftCtx, id, refCell);
403
402
  });
@@ -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;
@@ -405,6 +405,120 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
405
405
  refs: refs
406
406
  };
407
407
  }, [context, handleRedo, handleUndo, mergedSettings, refs, setContextWithProduce]);
408
+ (0, _react.useEffect)(function () {
409
+ var _a;
410
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.sheetLengthChange) {
411
+ context.hooks.sheetLengthChange();
412
+ }
413
+ }, [context.luckysheetfile.length]);
414
+ var currentSheet = (0, _react.useMemo)(function () {
415
+ var _a;
416
+ return (_a = context === null || context === void 0 ? void 0 : context.luckysheetfile) === null || _a === void 0 ? void 0 : _a.find(function (sheet) {
417
+ return sheet.id === (context === null || context === void 0 ? void 0 : context.currentSheetId);
418
+ });
419
+ }, [context === null || context === void 0 ? void 0 : context.luckysheetfile, context === null || context === void 0 ? void 0 : context.currentSheetId]);
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.calcChainChange) {
423
+ context.hooks.calcChainChange();
424
+ }
425
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.calcChain]);
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.afterImagesChange) {
429
+ context.hooks.afterImagesChange();
430
+ }
431
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.images]);
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.afterIframesChange) {
435
+ context.hooks.afterIframesChange();
436
+ }
437
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.iframes]);
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.afterFrozenChange) {
441
+ context.hooks.afterFrozenChange();
442
+ }
443
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.frozen]);
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.afterOrderChanges) {
447
+ context.hooks.afterOrderChanges();
448
+ }
449
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.order]);
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.afterConfigChanges) {
453
+ context.hooks.afterConfigChanges();
454
+ }
455
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.config]);
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.afterColRowChanges) {
459
+ context.hooks.afterColRowChanges();
460
+ }
461
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.row, currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.column]);
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.afterShowGridLinesChange) {
465
+ context.hooks.afterShowGridLinesChange();
466
+ }
467
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.showGridLines]);
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.afterNameChanges) {
471
+ context.hooks.afterNameChanges();
472
+ }
473
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.name]);
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.afterStatusChanges) {
477
+ context.hooks.afterStatusChanges();
478
+ }
479
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.status]);
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.dataVerificationChange) {
483
+ context.hooks.dataVerificationChange();
484
+ }
485
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.dataVerification]);
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.liveQueryChange) {
489
+ context.hooks.liveQueryChange();
490
+ }
491
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.liveQueryList]);
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.imageListChange) {
495
+ context.hooks.imageListChange();
496
+ }
497
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.images]);
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.iframeListChange) {
501
+ context.hooks.iframeListChange();
502
+ }
503
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.iframes]);
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.conditionRulesChange) {
507
+ context.hooks.conditionRulesChange();
508
+ }
509
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.conditionRules]);
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.conditionFormatChange) {
513
+ context.hooks.conditionFormatChange();
514
+ }
515
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.luckysheet_conditionformat_save]);
516
+ (0, _react.useEffect)(function () {
517
+ var _a;
518
+ if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.hyperlinkChange) {
519
+ context.hooks.hyperlinkChange();
520
+ }
521
+ }, [currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.hyperlink]);
408
522
  (0, _react.useEffect)(function () {
409
523
  if (!_lodash.default.isEmpty(context.luckysheetfile)) {
410
524
  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.3.9",
3
+ "version": "1.3.10-copyPaste-2",
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.3.9",
19
+ "@fileverse-dev/fortune-core": "1.3.10-copyPaste-2",
20
20
  "@fileverse/ui": "5.0.0",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",