@fileverse-dev/fortune-react 1.1.99-patch-2 → 1.2.0-patch-1

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 (45) hide show
  1. package/es/components/ContextMenu/Menu.d.ts +1 -0
  2. package/es/components/ContextMenu/Menu.js +5 -2
  3. package/es/components/ContextMenu/index.css +4 -1
  4. package/es/components/ContextMenu/index.js +37 -10
  5. package/es/components/DataVerification/ColorPicker.js +31 -7
  6. package/es/components/DataVerification/DropdownList.js +20 -1
  7. package/es/components/DataVerification/DropdownOption.js +5 -2
  8. package/es/components/DataVerification/RangeDialog.js +1 -5
  9. package/es/components/DataVerification/index.css +21 -1
  10. package/es/components/DataVerification/index.js +31 -5
  11. package/es/components/SheetOverlay/ColumnHeader.js +89 -7
  12. package/es/components/SheetOverlay/FormulaHint/index.js +13 -2
  13. package/es/components/SheetOverlay/FormulaSearch/index.css +0 -1
  14. package/es/components/SheetOverlay/FormulaSearch/index.js +1 -1
  15. package/es/components/SheetOverlay/RowHeader.js +83 -7
  16. package/es/components/SheetOverlay/index.css +26 -7
  17. package/es/components/Toolbar/Combo.js +5 -2
  18. package/es/components/Toolbar/index.css +17 -1
  19. package/es/components/Toolbar/index.d.ts +1 -1
  20. package/es/components/Toolbar/index.js +28 -19
  21. package/es/components/Workbook/index.d.ts +1 -1
  22. package/es/components/Workbook/index.js +5 -0
  23. package/lib/components/ContextMenu/Menu.d.ts +1 -0
  24. package/lib/components/ContextMenu/Menu.js +5 -2
  25. package/lib/components/ContextMenu/index.css +4 -1
  26. package/lib/components/ContextMenu/index.js +36 -9
  27. package/lib/components/DataVerification/ColorPicker.js +30 -6
  28. package/lib/components/DataVerification/DropdownList.js +20 -1
  29. package/lib/components/DataVerification/DropdownOption.js +5 -2
  30. package/lib/components/DataVerification/RangeDialog.js +1 -5
  31. package/lib/components/DataVerification/index.css +21 -1
  32. package/lib/components/DataVerification/index.js +31 -5
  33. package/lib/components/SheetOverlay/ColumnHeader.js +87 -6
  34. package/lib/components/SheetOverlay/FormulaHint/index.js +13 -2
  35. package/lib/components/SheetOverlay/FormulaSearch/index.css +0 -1
  36. package/lib/components/SheetOverlay/FormulaSearch/index.js +1 -1
  37. package/lib/components/SheetOverlay/RowHeader.js +81 -6
  38. package/lib/components/SheetOverlay/index.css +26 -7
  39. package/lib/components/Toolbar/Combo.js +4 -1
  40. package/lib/components/Toolbar/index.css +17 -1
  41. package/lib/components/Toolbar/index.d.ts +1 -1
  42. package/lib/components/Toolbar/index.js +27 -19
  43. package/lib/components/Workbook/index.d.ts +1 -1
  44. package/lib/components/Workbook/index.js +5 -0
  45. package/package.json +2 -2
@@ -57,7 +57,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
57
57
  getHtmlByRange: (range: import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => string | null;
58
58
  setSelection: (range: import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => void;
59
59
  setCellValuesByRange: (data: any[][], range: import("@fileverse-dev/fortune-core").SingleRange, options?: api.CommonOptions) => void;
60
- 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").SingleRange | import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => void;
60
+ 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;
61
61
  mergeCells: (ranges: import("@fileverse-dev/fortune-core").Range, type: string, options?: api.CommonOptions) => void;
62
62
  cancelMerge: (ranges: import("@fileverse-dev/fortune-core").Range, options?: api.CommonOptions) => void;
63
63
  getAllSheets: () => SheetType[];
@@ -656,6 +656,11 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
656
656
  }
657
657
  });
658
658
  }
659
+ setContextWithProduce(function (ctx) {
660
+ if (ctx.luckysheet_selection_range) {
661
+ ctx.luckysheet_selection_range = [];
662
+ }
663
+ });
659
664
  }, [context, setContextWithProduce]);
660
665
  var onMoreToolbarItemsClose = (0, _react.useCallback)(function () {
661
666
  setMoreToolbarItems(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-react",
3
- "version": "1.1.99-patch-2",
3
+ "version": "1.2.0-patch-1",
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.1.99-patch-2",
19
+ "@fileverse-dev/fortune-core": "1.2.0-patch-1",
20
20
  "@fileverse/ui": "^4.1.7-patch-21",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",