@fileverse-dev/dsheet 3.0.1-yjs-7 → 3.0.1-yjs-8

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-78Xn_oml.js";
2
- import { ce as V, cf as X, cg as b, cl as z, bd as P, e as U, f as _, l as y, a as B, cW as O, cX as Y, aY as j, cY as G, cZ as H, d1 as J, d2 as Z, d4 as q, D as K, di as N, dJ as W, aR as Q } from "./executeStringFunction-BBLWRXOR.js";
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 L, w as A, x as T, z as w, A as I, B as v, D, E as k } from "./index-sIdumZnm.js";
2
+ import { cg as _, ch as V, ci as b, cn as z, bf as P, e as U, f as X, l as y, a as B, cY as O, cZ as j, a_ as G, c_ as H, c$ as Y, d3 as Z, d4 as q, d6 as J, D as K, dk as N, dL as $, aT as Q } from "./executeStringFunction-DiaE7AnQ.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 {
@@ -15,16 +15,16 @@ export {
15
15
  d as SupportedChain,
16
16
  c as TEMPLATES,
17
17
  i as api,
18
- V as clearColumnsCellsFormat,
18
+ _ as clearColumnsCellsFormat,
19
19
  S as clearFilter,
20
- X as clearRowsCellsFormat,
20
+ V as clearRowsCellsFormat,
21
21
  b as clearSelectedCellFormat,
22
22
  h as createFilter,
23
23
  z as deleteRowCol,
24
24
  P as deleteSelectedCellText,
25
25
  m as describeMatchedShortcut,
26
26
  U as executeStringFunction,
27
- _ as formulaResponseUiSync,
27
+ X as formulaResponseUiSync,
28
28
  y as getFlowdata,
29
29
  p as getRemoveDuplicatesErrorMessage,
30
30
  C as getRemoveDuplicatesPreview,
@@ -35,25 +35,25 @@ export {
35
35
  F as handleExportToJSON,
36
36
  x as handleExportToXLSX,
37
37
  O as handleFreeze,
38
- Y as handleHorizontalAlign,
39
- j as handleLink,
40
- G as handleMerge,
38
+ j as handleHorizontalAlign,
39
+ G as handleLink,
40
+ H as handleMerge,
41
41
  R as handlePasteByClick,
42
- H as handleSort,
43
- J as handleTextSize,
44
- Z as handleVerticalAlign,
42
+ Y as handleSort,
43
+ Z as handleTextSize,
44
+ q as handleVerticalAlign,
45
45
  f as importSpreadsheetFile,
46
- q as insertRowCol,
47
- A as isBrowserZoomShortcut,
48
- L as isFormulaListShortcut,
49
- w as isOpenShortcutsModalShortcut,
46
+ J as insertRowCol,
47
+ L as isBrowserZoomShortcut,
48
+ A as isFormulaListShortcut,
49
+ T as isOpenShortcutsModalShortcut,
50
50
  K as jfrefreshgrid,
51
51
  N as loadLocale,
52
- I as removeActiveImage,
53
- T as removeDuplicates,
52
+ w as removeActiveImage,
53
+ I as removeDuplicates,
54
54
  v as showImgChooser,
55
- W as toolbarItemClickHandler,
55
+ $ as toolbarItemClickHandler,
56
56
  Q as updateFormat,
57
57
  D as useEnsStatus,
58
- M as useXLSXImport
58
+ k as useXLSXImport
59
59
  };
@@ -20,6 +20,18 @@ export type CellFormatRange = {
20
20
  declare function rangesEqual(a: CellFormatRange[] | undefined, b: CellFormatRange[] | undefined): boolean;
21
21
  /** Merge overlapping/adjacent ranges that carry identical format attrs. */
22
22
  export declare function normalizeCellFormatRanges(ranges: CellFormatRange[] | undefined): CellFormatRange[];
23
+ /**
24
+ * Remap format ranges after a row or column permutation, such as header
25
+ * drag-and-drop. A contiguous source range can become multiple rectangles
26
+ * when the moved indices are no longer contiguous.
27
+ */
28
+ export declare function remapCellFormatRanges(ranges: CellFormatRange[] | undefined, axis: 'row' | 'column', indexMap: Record<number, number>): CellFormatRange[];
29
+ /**
30
+ * Move format ranges with a cut-and-paste cell block move. Formatting in both
31
+ * the old source and the overwritten destination is cleared; only the source
32
+ * intersection is translated to the target rectangle.
33
+ */
34
+ export declare function moveCellFormatRanges(ranges: CellFormatRange[] | undefined, source: Pick<CellFormatRange, 'row' | 'column'>, target: Pick<CellFormatRange, 'row' | 'column'>): CellFormatRange[];
23
35
  export declare function getCellFormatRangeGridBounds(ranges: CellFormatRange[] | undefined): {
24
36
  maxRow: number;
25
37
  maxCol: number;
@@ -1,6 +1,6 @@
1
- import { g as Ke } from "./executeStringFunction-BBLWRXOR.js";
1
+ import { g as Ke } from "./executeStringFunction-DiaE7AnQ.js";
2
2
  import * as et from "yjs";
3
- import { m as tt, y as rt, r as nt } from "./index-78Xn_oml.js";
3
+ import { m as tt, y as rt, r as nt } from "./index-sIdumZnm.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-BBLWRXOR.js";
6
- import { c as Ct } from "./index-78Xn_oml.js";
5
+ import { g as jt, c as xt, b as Wt } from "./executeStringFunction-DiaE7AnQ.js";
6
+ import { c as Ct } from "./index-sIdumZnm.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-7",
5
+ "version": "3.0.1-yjs-8",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {