@fileverse-dev/dsheet 3.0.1-yjs-10 → 3.0.1-yjs-12

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.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as s, a as t, b as o, S as l, d as r, i as n, e as d, T as c, f as i, g as S, h, j as m, k as p, l as C, n as u, o as E, p as g, q as F, s as x, t as R, u as f, v as A, w as L, x as w, z as I, A as T, B as v, D, E as M } from "./index-BDIZu4U9.js";
2
- import { ch as U, ci as V, cj as _, co as b, bg as z, e as P, f as X, l as j, a as y, cZ as B, c_ as O, a$ as G, c$ as H, d0 as Z, d4 as $, d5 as q, d7 as J, D as K, dl as N, dM as Y, aU as Q } from "./executeStringFunction-DLKAY5dk.js";
1
+ import { C as s, a as t, b as o, S as l, d as r, i as d, e as n, T as i, f as c, g as S, h, j as m, k as p, l as C, n as u, o as E, p as g, q as F, s as x, t as R, u as f, v as A, w as L, x as w, z as I, A as T, B as v, D, E as k } from "./index-DK-aTG1C.js";
2
+ import { ci as U, cj as V, ck as _, cp as b, bg as z, e as P, f as X, l as j, a as y, c_ as B, c$ as O, a$ as G, d0 as H, d1 as N, d5 as $, d6 as q, d8 as J, D as K, dm as Y, dN as Z, aU as Q } from "./executeStringFunction-CVSty5Xh.js";
3
3
  import { FLVURL as ee } from "@fileverse-dev/formulajs";
4
4
  import { E as se, S as te } from "./constants-Cdz6oSCq.js";
5
5
  export {
@@ -10,11 +10,11 @@ export {
10
10
  r as DSheetSkeleton,
11
11
  se as ERROR_MESSAGES_FLAG,
12
12
  ee as FLVURL,
13
- n as FortuneCore,
13
+ d as FortuneCore,
14
14
  te as SERVICES_API_KEY,
15
- d as SupportedChain,
16
- c as TEMPLATES,
17
- i as api,
15
+ n as SupportedChain,
16
+ i as TEMPLATES,
17
+ c as api,
18
18
  U as clearColumnsCellsFormat,
19
19
  S as clearFilter,
20
20
  V as clearRowsCellsFormat,
@@ -39,7 +39,7 @@ export {
39
39
  G as handleLink,
40
40
  H as handleMerge,
41
41
  R as handlePasteByClick,
42
- Z as handleSort,
42
+ N as handleSort,
43
43
  $ as handleTextSize,
44
44
  q as handleVerticalAlign,
45
45
  f as importSpreadsheetFile,
@@ -48,12 +48,12 @@ export {
48
48
  L as isFormulaListShortcut,
49
49
  w as isOpenShortcutsModalShortcut,
50
50
  K as jfrefreshgrid,
51
- N as loadLocale,
51
+ Y as loadLocale,
52
52
  I as removeActiveImage,
53
53
  T as removeDuplicates,
54
54
  v as showImgChooser,
55
- Y as toolbarItemClickHandler,
55
+ Z as toolbarItemClickHandler,
56
56
  Q as updateFormat,
57
57
  D as useEnsStatus,
58
- M as useXLSXImport
58
+ k as useXLSXImport
59
59
  };
@@ -1,6 +1,7 @@
1
1
  import { Context } from '../context';
2
2
  import { Settings } from '../settings';
3
3
  import { CellMatrix, Sheet, SheetConfig } from '../types';
4
+ import { CellFormatRange } from '../utils/range-format';
4
5
 
5
6
  /**
6
7
  * Persist active ctx.config onto ONE sheet file only.
@@ -9,6 +10,14 @@ import { CellMatrix, Sheet, SheetConfig } from '../types';
9
10
  * Never touches other sheets.
10
11
  */
11
12
  export declare function assignActiveConfigToSheetFile(file: Sheet, activeConfig: SheetConfig | undefined): void;
13
+ /**
14
+ * Promote format-only cells in a rectangle into cellFormatRanges.
15
+ * Scans only [r1..r2]×[c1..c2]. Returns new ranges if anything changed.
16
+ *
17
+ * Writes through luckysheetfile[i].config (same as toolbar) so Immer undo
18
+ * history tracks the change and peers get the reverse via afterConfigChanges.
19
+ */
20
+ export declare function syncFormatOnlyRectIntoRanges(ctx: Context, cfg: SheetConfig | undefined, data: CellMatrix | null | undefined, r1: number, r2: number, c1: number, c2: number): CellFormatRange[] | null;
12
21
  export declare function storeSheetParamALL(ctx: Context): void;
13
22
  export declare function changeSheet(ctx: Context, id: string, isPivotInitial?: boolean, isNewSheet?: boolean, isCopySheet?: boolean): void;
14
23
  export declare function addSheet(ctx: Context, settings?: Required<Settings>, newSheetID?: string | undefined, // if action is from websocket, there will be a new sheetID
@@ -4,6 +4,12 @@ export type BorderSelection = {
4
4
  row: [number, number];
5
5
  column: [number, number];
6
6
  };
7
+ /**
8
+ * Remap borderInfo after a row/column reorder (header drag).
9
+ * Uses the same old→new index map as remapCellFormatRanges.
10
+ * O(border entries × span) — only runs on drag drop, not per-frame.
11
+ */
12
+ export declare function remapBorderInfo(borderInfo: any[] | undefined, axis: 'row' | 'column', indexMap: Record<number, number>): any[];
7
13
  /** Remove border entries overlapping a single selection (cell + range types). */
8
14
  export declare function removeBorderInfoForSelection(borderInfo: any[], rowSt: number, rowEd: number, colSt: number, colEd: number): any[];
9
15
  export declare function removeBorderInfoInSelections(borderInfo: any[] | undefined, selections: BorderSelection[]): any[];
@@ -1,6 +1,6 @@
1
- import { g as Ke } from "./executeStringFunction-DLKAY5dk.js";
1
+ import { g as Ke } from "./executeStringFunction-CVSty5Xh.js";
2
2
  import * as et from "yjs";
3
- import { m as tt, y as rt, r as nt } from "./index-BDIZu4U9.js";
3
+ import { m as tt, y as rt, r as nt } from "./index-DK-aTG1C.js";
4
4
  import { n as at } from "./xlsx-hyperlink-inline-DzewAypN.js";
5
5
  import { toast as Ge } from "@fileverse/ui";
6
6
  var Ze = { exports: {} };
@@ -2,8 +2,8 @@ import { utils as ht, write as Nt } from "xlsx-js-style";
2
2
  import { Workbook as Pt } from "exceljs";
3
3
  import { toast as Ut } from "@fileverse/ui";
4
4
  import { addFortuneImagesToWorksheet as Lt } from "./xlsx-image-utils-Cvg0qxRA.js";
5
- import { g as jt, c as xt, b as Wt } from "./executeStringFunction-DLKAY5dk.js";
6
- import { c as Ct } from "./index-BDIZu4U9.js";
5
+ import { g as jt, c as xt, b as Wt } from "./executeStringFunction-CVSty5Xh.js";
6
+ import { c as Ct } from "./index-DK-aTG1C.js";
7
7
  import { c as zt, g as Mt } from "./xlsx-hyperlink-inline-DzewAypN.js";
8
8
  const Zt = {
9
9
  1: "thin",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "3.0.1-yjs-10",
5
+ "version": "3.0.1-yjs-12",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {