@fileverse-dev/fortune-core 1.2.90-ydoc-7 → 1.2.90-ydoc-9

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.
@@ -93,9 +93,6 @@ export function addSheet(ctx, settings, newSheetID, isPivotTable, sheetName, she
93
93
  return;
94
94
  }
95
95
  ctx.luckysheetfile.push(sheetconfig);
96
- if (!newSheetID) {
97
- changeSheet(ctx, id, isPivotTable, true);
98
- }
99
96
  if (ctx.hooks.afterAddSheet) {
100
97
  (_d = (_c = ctx.hooks).afterAddSheet) === null || _d === void 0 ? void 0 : _d.call(_c, __assign({}, sheetconfig));
101
98
  }
package/es/settings.d.ts CHANGED
@@ -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
+ flvSheetLengthChange?: () => void;
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;
@@ -106,9 +106,6 @@ function addSheet(ctx, settings, newSheetID, isPivotTable, sheetName, sheetData)
106
106
  return;
107
107
  }
108
108
  ctx.luckysheetfile.push(sheetconfig);
109
- if (!newSheetID) {
110
- changeSheet(ctx, id, isPivotTable, true);
111
- }
112
109
  if (ctx.hooks.afterAddSheet) {
113
110
  (_d = (_c = ctx.hooks).afterAddSheet) === null || _d === void 0 ? void 0 : _d.call(_c, __assign({}, sheetconfig));
114
111
  }
package/lib/settings.d.ts CHANGED
@@ -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
+ flvSheetLengthChange?: () => void;
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": "@fileverse-dev/fortune-core",
3
- "version": "1.2.90-ydoc-7",
3
+ "version": "1.2.90-ydoc-9",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",