@leankylin-sheet/core 3.1.12 → 3.1.13

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.
package/dist/index.esm.js CHANGED
@@ -58855,8 +58855,6 @@ function removeEditingComment(ctx, globalCache) {
58855
58855
  }
58856
58856
  function newComment(ctx, globalCache, r, c) {
58857
58857
  var _ctx$hooks$beforeInse, _ctx$hooks3;
58858
- var allowEdit = isAllowEdit(ctx);
58859
- if (!allowEdit) return;
58860
58858
  if (((_ctx$hooks$beforeInse = (_ctx$hooks3 = ctx.hooks).beforeInsertComment) === null || _ctx$hooks$beforeInse === void 0 ? void 0 : _ctx$hooks$beforeInse.call(_ctx$hooks3, r, c)) === false) {
58861
58859
  return;
58862
58860
  }
package/dist/index.js CHANGED
@@ -58865,8 +58865,6 @@ function removeEditingComment(ctx, globalCache) {
58865
58865
  }
58866
58866
  function newComment(ctx, globalCache, r, c) {
58867
58867
  var _ctx$hooks$beforeInse, _ctx$hooks3;
58868
- var allowEdit = isAllowEdit(ctx);
58869
- if (!allowEdit) return;
58870
58868
  if (((_ctx$hooks$beforeInse = (_ctx$hooks3 = ctx.hooks).beforeInsertComment) === null || _ctx$hooks$beforeInse === void 0 ? void 0 : _ctx$hooks$beforeInse.call(_ctx$hooks3, r, c)) === false) {
58871
58869
  return;
58872
58870
  }
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { Sheet, Selection, CellMatrix, Cell } from "./types";
3
3
  export type Hooks = {
4
+ showMenuBefore?: (ctx: any, selection: any) => boolean;
4
5
  beforeUpdateCell?: (r: number, c: number, value: any) => boolean;
5
6
  afterUpdateCell?: (row: number, column: number, oldValue: any, newValue: any) => void;
6
7
  afterSelectionChange?: (sheetId: string, selection: Selection) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "3.1.12",
3
+ "version": "3.1.13",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "build": "father-build"
14
14
  },
15
15
  "dependencies": {
16
- "@leankylin-sheet/formula-parser": "^3.1.12",
16
+ "@leankylin-sheet/formula-parser": "^3.1.13",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",