@fileverse-dev/dsheet 4.1.7 → 4.1.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.
@@ -27475,8 +27475,9 @@ const mc = (e, t) => {
27475
27475
  (i = t == null ? void 0 : t.data) != null && i[u] && (u === r && s === a ? t.data[u][s] = { ...t.data[u][s] || {}, mc: { r, c: a, rs: l, cs: o } } : t.data[u][s] = { ...t.data[u][s] || {}, mc: { r, c: a } });
27476
27476
  });
27477
27477
  }, va = (e) => {
27478
+ var n;
27478
27479
  const t = { ...e };
27479
- return delete t.v, delete t.m, delete t.f, delete t.ps, delete t.hl, t;
27480
+ return delete t.v, delete t.m, delete t.f, delete t.ps, delete t.hl, ((n = t.ct) == null ? void 0 : n.t) === "inlineStr" && (delete t.ct, delete t.fc, delete t.un), t;
27480
27481
  };
27481
27482
  function hp(e, t, n, r) {
27482
27483
  var o, i, u;
package/dist/formula.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FLVURL as r } from "@fileverse-dev/formulajs";
2
- import { e as t, f } from "./executeStringFunction-BfLGPmcB.js";
2
+ import { e as t, f } from "./executeStringFunction-V_hu5VRM.js";
3
3
  export {
4
4
  r as FLVURL,
5
5
  t as executeStringFunction,
@@ -3,7 +3,7 @@ var Og = (e, t, l) => t in e ? Mg(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var xe = (e, t, l) => Og(e, typeof t != "symbol" ? t + "" : t, l);
4
4
  import { jsx as a, jsxs as v, Fragment as Wt } from "react/jsx-runtime";
5
5
  import Ft, { useRef as we, useContext as dt, useState as We, useMemo as it, useEffect as Ve, useCallback as ge, useLayoutEffect as bl, forwardRef as sh, createElement as Kd, useSyncExternalStore as zg, useImperativeHandle as Eg, createContext as ch, memo as Dg } from "react";
6
- import { g as Xo, a as Ue, d as Pt, r as At, h as ic, j as Ot, k as za, i as cn, l as je, m as Nr, n as Md, o as AZ, p as $l, q as Ea, s as lo, S as Da, t as Ec, v as Pg, u as rh, w as Ag, x as pn, y as jg, z as Bn, A as vt, B as Ti, C as ah, D as Ks, E as Qg, F as Ms, G as qg, H as Gt, I as Kt, J as jZ, K as el, L as ri, M as _g, N as Ur, O as Pl, P as Rn, Q as Yl, R as jt, T as Cn, U as G1, V as dh, W as $g, X as Os, Y as ro, Z as ai, _ as g1, $ as Ri, a0 as eW, a1 as QZ, a2 as zs, a3 as Kr, a4 as qZ, a5 as wn, a6 as tW, a7 as ao, a8 as lW, a9 as Hn, aa as uh, ab as hh, ac as ml, ad as Zl, ae as Vo, af as Dc, ag as nW, ah as rn, ai as mh, aj as bh, ak as iW, al as _Z, am as $Z, an as ep, ao as tp, ap as lp, aq as Pc, ar as Od, as as np, at as ip, au as Ac, av as op, aw as sp, ax as oW, ay as So, az as cp, aA as rp, aB as ap, aC as dp, aD as up, aE as hp, aF as sW, aG as mp, aH as bp, aI as Zp, aJ as pp, aK as cW, aL as Ip, aM as yp, aN as Zh, aO as uo, aP as ho, aQ as fp, aR as ph, aS as Gp, aT as gp, aU as Wp, aV as Xp, aW as rW, aX as Mr, aY as aW, aZ as Vp, a_ as Or, a$ as Fn, b0 as oc, b1 as dW, b2 as Ih, b3 as no, b4 as jn, b5 as uW, b6 as hW, b7 as Is, b8 as mW, b9 as bW, ba as Pa, bb as yh, bc as ZW, bd as pW, be as IW, bf as yW, bg as fW, bh as zr, bi as Dl, bj as xl, bk as tl, bl as mo, bm as fh, bn as ys, bo as $t, bp as GW, bq as Er, br as bo, bs as Gh, bt as El, bu as Dr, bv as di, bw as Pr, bx as jc, by as Ni, bz as gW, bA as gh, bB as Wh, bC as Xh, bD as WW, bE as Si, bF as Kl, bG as Ar, bH as XW, bI as jr, bJ as Sp, bK as bn, bL as Ci, bM as qi, bN as Qc, bO as VW, bP as SW, bQ as Vl, bR as YW, bS as fs, bT as xW, bU as kn, bV as Ui, bW as Qr, bX as ul, bY as qt, bZ as Es, b_ as Ds, b$ as Yp, c0 as xp, c1 as Yi, c2 as qr, c3 as wW, c4 as LW, c5 as RW, c6 as CW, c7 as vW, c8 as BW, c9 as HW, ca as kW, cb as FW, cc as qc, cd as Tl, ce as JW, cf as wp, cg as Lp, ch as TW, ci as NW, cj as Rp, ck as _i, cl as zd, cm as UW, cn as Cp, co as vp, cp as KW, cq as Bp, cr as Vh, cs as Hp, ct as kp, cu as MW, cv as _r, cw as Fp, cx as Sh, cy as Jp, cz as Tp, cA as Np, cB as Up, cC as Kp, cD as Yh, cE as $r, cF as Mp, cG as Ol, cH as xh, cI as wh, cJ as OW, cK as Op, cL as zp, cM as li, cN as vn, cO as ea, cP as zW, cQ as Ep, cR as ni, cS as ii, cT as Rc, cU as EW, cV as _c, cW as DW, cX as Dp, cY as Pp, cZ as PW, c_ as $c, c$ as Lh, d0 as Ap, d1 as AW, d2 as jp, d3 as Qp, d4 as qp, d5 as jW, d6 as QW, d7 as _p, d8 as Ed, d9 as $p, da as eI, db as qW, dc as _W, dd as tI, de as $W, df as e5, dg as Dd, dh as ta, di as Pd, dj as lI, dk as $i, dl as t5, dm as l5, dn as nI, dp as iI, dq as oI, dr as sI, ds as cI, dt as In, du as n5, dv as i5, dw as rI, dx as aI, dy as dI, dz as Rh, dA as uI, dB as o5, dC as s5, dD as er, dE as hI, dF as c5, dG as r5, dH as a5, dI as mI, dJ as Ad, dK as bI, dL as Pn, dM as ZI, dN as pI, dO as II, dP as d5, dQ as jd, dR as Gs, dS as u5, dT as yI, dU as fI, dV as Qd, dW as h5, dX as qd, dY as m5, dZ as tr, d_ as Ch, d$ as vh, e0 as Bh, e1 as _d, e2 as GI, e3 as gI, e4 as WI, e5 as b5, e6 as Z5, e7 as p5, e8 as I5, e9 as y5, ea as gs, eb as Ws, ec as eo, ed as XI, ee as f5, ef as VI, eg as SI, eh as $d, ei as YI, ej as xI, ek as G5, el as wI, em as LI, en as RI, eo as CI, ep as vI, eq as BI, c as Qn, er as g5, es as W5, et as X5, eu as V5, ev as S5, ew as Aa, ex as Y5, ey as x5, ez as w5, eA as L5, eB as R5, eC as C5, eD as v5, e as Hh, f as la, eE as B5, eF as H5, eG as W1, eH as X1, eI as V1, eJ as S1, eK as k5, eL as F5, eM as Y1 } from "./executeStringFunction-BfLGPmcB.js";
6
+ import { g as Xo, a as Ue, d as Pt, r as At, h as ic, j as Ot, k as za, i as cn, l as je, m as Nr, n as Md, o as AZ, p as $l, q as Ea, s as lo, S as Da, t as Ec, v as Pg, u as rh, w as Ag, x as pn, y as jg, z as Bn, A as vt, B as Ti, C as ah, D as Ks, E as Qg, F as Ms, G as qg, H as Gt, I as Kt, J as jZ, K as el, L as ri, M as _g, N as Ur, O as Pl, P as Rn, Q as Yl, R as jt, T as Cn, U as G1, V as dh, W as $g, X as Os, Y as ro, Z as ai, _ as g1, $ as Ri, a0 as eW, a1 as QZ, a2 as zs, a3 as Kr, a4 as qZ, a5 as wn, a6 as tW, a7 as ao, a8 as lW, a9 as Hn, aa as uh, ab as hh, ac as ml, ad as Zl, ae as Vo, af as Dc, ag as nW, ah as rn, ai as mh, aj as bh, ak as iW, al as _Z, am as $Z, an as ep, ao as tp, ap as lp, aq as Pc, ar as Od, as as np, at as ip, au as Ac, av as op, aw as sp, ax as oW, ay as So, az as cp, aA as rp, aB as ap, aC as dp, aD as up, aE as hp, aF as sW, aG as mp, aH as bp, aI as Zp, aJ as pp, aK as cW, aL as Ip, aM as yp, aN as Zh, aO as uo, aP as ho, aQ as fp, aR as ph, aS as Gp, aT as gp, aU as Wp, aV as Xp, aW as rW, aX as Mr, aY as aW, aZ as Vp, a_ as Or, a$ as Fn, b0 as oc, b1 as dW, b2 as Ih, b3 as no, b4 as jn, b5 as uW, b6 as hW, b7 as Is, b8 as mW, b9 as bW, ba as Pa, bb as yh, bc as ZW, bd as pW, be as IW, bf as yW, bg as fW, bh as zr, bi as Dl, bj as xl, bk as tl, bl as mo, bm as fh, bn as ys, bo as $t, bp as GW, bq as Er, br as bo, bs as Gh, bt as El, bu as Dr, bv as di, bw as Pr, bx as jc, by as Ni, bz as gW, bA as gh, bB as Wh, bC as Xh, bD as WW, bE as Si, bF as Kl, bG as Ar, bH as XW, bI as jr, bJ as Sp, bK as bn, bL as Ci, bM as qi, bN as Qc, bO as VW, bP as SW, bQ as Vl, bR as YW, bS as fs, bT as xW, bU as kn, bV as Ui, bW as Qr, bX as ul, bY as qt, bZ as Es, b_ as Ds, b$ as Yp, c0 as xp, c1 as Yi, c2 as qr, c3 as wW, c4 as LW, c5 as RW, c6 as CW, c7 as vW, c8 as BW, c9 as HW, ca as kW, cb as FW, cc as qc, cd as Tl, ce as JW, cf as wp, cg as Lp, ch as TW, ci as NW, cj as Rp, ck as _i, cl as zd, cm as UW, cn as Cp, co as vp, cp as KW, cq as Bp, cr as Vh, cs as Hp, ct as kp, cu as MW, cv as _r, cw as Fp, cx as Sh, cy as Jp, cz as Tp, cA as Np, cB as Up, cC as Kp, cD as Yh, cE as $r, cF as Mp, cG as Ol, cH as xh, cI as wh, cJ as OW, cK as Op, cL as zp, cM as li, cN as vn, cO as ea, cP as zW, cQ as Ep, cR as ni, cS as ii, cT as Rc, cU as EW, cV as _c, cW as DW, cX as Dp, cY as Pp, cZ as PW, c_ as $c, c$ as Lh, d0 as Ap, d1 as AW, d2 as jp, d3 as Qp, d4 as qp, d5 as jW, d6 as QW, d7 as _p, d8 as Ed, d9 as $p, da as eI, db as qW, dc as _W, dd as tI, de as $W, df as e5, dg as Dd, dh as ta, di as Pd, dj as lI, dk as $i, dl as t5, dm as l5, dn as nI, dp as iI, dq as oI, dr as sI, ds as cI, dt as In, du as n5, dv as i5, dw as rI, dx as aI, dy as dI, dz as Rh, dA as uI, dB as o5, dC as s5, dD as er, dE as hI, dF as c5, dG as r5, dH as a5, dI as mI, dJ as Ad, dK as bI, dL as Pn, dM as ZI, dN as pI, dO as II, dP as d5, dQ as jd, dR as Gs, dS as u5, dT as yI, dU as fI, dV as Qd, dW as h5, dX as qd, dY as m5, dZ as tr, d_ as Ch, d$ as vh, e0 as Bh, e1 as _d, e2 as GI, e3 as gI, e4 as WI, e5 as b5, e6 as Z5, e7 as p5, e8 as I5, e9 as y5, ea as gs, eb as Ws, ec as eo, ed as XI, ee as f5, ef as VI, eg as SI, eh as $d, ei as YI, ej as xI, ek as G5, el as wI, em as LI, en as RI, eo as CI, ep as vI, eq as BI, c as Qn, er as g5, es as W5, et as X5, eu as V5, ev as S5, ew as Aa, ex as Y5, ey as x5, ez as w5, eA as L5, eB as R5, eC as C5, eD as v5, e as Hh, f as la, eE as B5, eF as H5, eG as W1, eH as X1, eI as V1, eJ as S1, eK as k5, eL as F5, eM as Y1 } from "./executeStringFunction-V_hu5VRM.js";
7
7
  import * as Fe from "yjs";
8
8
  import { b as J5, i as T5, a as N5, m as U5, p as eu, E as HI, C as ja, c as x1, T as K5, H as M5, d as O5, D as kI } from "./constants-8Ij49Lxv.js";
9
9
  import { t as Wl, f as on, m as z5, s as E5, u as D5, a as P5 } from "./persistence-utils-BXFajzvq.js";
@@ -50496,7 +50496,7 @@ const vN = ({
50496
50496
  }, S.readAsText(b);
50497
50497
  });
50498
50498
  }, WZ = async (e, t, l, n) => {
50499
- const { handleExportToXLSX: i } = await import("./xlsx-export-impl-Cjh1IQVi.js");
50499
+ const { handleExportToXLSX: i } = await import("./xlsx-export-impl-YSSLVP-V.js");
50500
50500
  return i(e, t, l, n);
50501
50501
  }, Fd = (e) => {
50502
50502
  kh({
@@ -50588,7 +50588,7 @@ const vN = ({
50588
50588
  const [s, r] = We(!1);
50589
50589
  return { handleXLSXUpload: ge(
50590
50590
  async (d, h, m) => {
50591
- const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-mxEtz-60.js");
50591
+ const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-CkHRRbtb.js");
50592
50592
  return b(
50593
50593
  {
50594
50594
  sheetEditorRef: e,
@@ -51197,7 +51197,7 @@ const s8 = /* @__PURE__ */ Xo(o8), lh = (e) => s8(e), c8 = (e, t) => {
51197
51197
  const G = new Fe.Array(), S = Array.isArray(
51198
51198
  Z.luckysheet_conditionformat_save
51199
51199
  ) ? Z.luckysheet_conditionformat_save : [];
51200
- G.insert(0, S), I.set("luckysheet_conditionformat_save", G), Z.showGridLines != null && I.set("showGridLines", Z.showGridLines), Z.images != null && I.set("images", Z.images), Z.iframes != null && I.set("iframes", Z.iframes), Z.frozen != null && I.set("frozen", Z.frozen), Z.hide != null && I.set("hide", Z.hide), Z.color != null && I.set("color", Z.color), (f = t.current) == null || f.transact(() => {
51200
+ G.insert(0, S), I.set("luckysheet_conditionformat_save", G), Z.showGridLines != null && I.set("showGridLines", Z.showGridLines), Z.images != null && I.set("images", Z.images), Z.iframes != null && I.set("iframes", Z.iframes), Z.frozen != null && I.set("frozen", Z.frozen), Z.hide != null && I.set("hide", Z.hide), Z.color != null && I.set("color", Z.color), Z.defaultRowHeight != null && I.set("defaultRowHeight", Z.defaultRowHeight), Z.defaultColWidth != null && I.set("defaultColWidth", Z.defaultColWidth), Z.zoomRatio != null && I.set("zoomRatio", Z.zoomRatio), (f = t.current) == null || f.transact(() => {
51201
51201
  o.push([I]);
51202
51202
  }), (y = e.current) == null || y.activateSheet({ id: Z.id }), i();
51203
51203
  }, 50);
@@ -56188,7 +56188,7 @@ async function HO(e, t) {
56188
56188
  { suppressUiWarnings: !0 }
56189
56189
  );
56190
56190
  else {
56191
- const { runXlsxFileUpload: h } = await import("./use-xlsx-import-impl-mxEtz-60.js");
56191
+ const { runXlsxFileUpload: h } = await import("./use-xlsx-import-impl-CkHRRbtb.js");
56192
56192
  await h(
56193
56193
  {
56194
56194
  sheetEditorRef: c,
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as c, k as i, l as S, n as m, o as h, p, q as C, t as u, u as F, v as E, w as g, x as R, z as x, A as f, B as A, D as I, E as L, F as w, G as y, H as T, I as v, J as M, K as b, L as k, M as D, N as z, O as V } from "./index-3Pi4crPa.js";
2
- import { cy as K, cz as O, cA as P, cG as U, bs as X, e as _, f as j, l as B, a as H, di as q, dj as J, bb as N, dk as Y, dl as Z, dq as Q, dr as W, dt as $, I as ee, dI as ae, ef as se, b4 as oe } from "./executeStringFunction-BfLGPmcB.js";
1
+ import { C as s, d as o, f as t, S as r, g as l, h as n, j as d, T as c, k as i, l as S, n as m, o as h, p, q as C, t as u, u as F, v as E, w as g, x as R, z as x, A as f, B as A, D as I, E as L, F as w, G as y, H as T, I as v, J as M, K as b, L as k, M as D, N as z, O as V } from "./index-GBqDuF2T.js";
2
+ import { cy as K, cz as O, cA as P, cG as U, bs as X, e as _, f as j, l as B, a as H, di as q, dj as J, bb as N, dk as Y, dl as Z, dq as Q, dr as W, dt as $, I as ee, dI as ae, ef as se, b4 as oe } from "./executeStringFunction-V_hu5VRM.js";
3
3
  import { FLVURL as re } from "@fileverse-dev/formulajs";
4
4
  import { E as ne, S as de } from "./constants-8Ij49Lxv.js";
5
5
  export {
@@ -1,10 +1,10 @@
1
1
  import * as BZ from "yjs";
2
- import { i as Yl, a as ul, s as eZ, r as hl, y as Il, b as pl, m as Rl } from "./index-3Pi4crPa.js";
3
- import { g as sl } from "./executeStringFunction-BfLGPmcB.js";
2
+ import { i as Yl, a as ul, s as eZ, r as hl, y as Il, b as pl, m as Rl } from "./index-GBqDuF2T.js";
3
+ import { g as sl } from "./executeStringFunction-V_hu5VRM.js";
4
4
  import { Workbook as al } from "exceljs";
5
5
  import Kl from "luckyexcel";
6
- import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-D0c7KJyS.js";
7
- import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-CV1qn7_-.js";
6
+ import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-CY7B4A0C.js";
7
+ import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-CBoWA_1s.js";
8
8
  import { toast as fZ } from "@fileverse/ui";
9
9
  var Zl = { exports: {} };
10
10
  (function(c) {
@@ -1,5 +1,5 @@
1
- import { i as w } from "./executeStringFunction-BfLGPmcB.js";
2
- import { J as x } from "./xlsx-hyperlink-inline-D0c7KJyS.js";
1
+ import { i as w } from "./executeStringFunction-V_hu5VRM.js";
2
+ import { J as x } from "./xlsx-hyperlink-inline-CY7B4A0C.js";
3
3
  function g(o) {
4
4
  return o.startsWith("_xlnm.");
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import { utils as F, write as it } from "xlsx-js-style";
2
2
  import { Workbook as ct } from "exceljs";
3
3
  import { toast as nt } from "@fileverse/ui";
4
- import { J as ft, c as X, g as ut, a as pt } from "./xlsx-hyperlink-inline-D0c7KJyS.js";
5
- import { b as dt } from "./executeStringFunction-BfLGPmcB.js";
6
- import { e as ht } from "./index-3Pi4crPa.js";
4
+ import { J as ft, c as X, g as ut, a as pt } from "./xlsx-hyperlink-inline-CY7B4A0C.js";
5
+ import { b as dt } from "./executeStringFunction-V_hu5VRM.js";
6
+ import { e as ht } from "./index-GBqDuF2T.js";
7
7
  const mt = {
8
8
  1: "thin",
9
9
  2: "hair",
@@ -810,7 +810,7 @@ const Y = (e) => {
810
810
  D
811
811
  );
812
812
  });
813
- const { applyDefinedNamesToExcelWorkbook: ot } = await import("./xlsx-defined-names-CV1qn7_-.js");
813
+ const { applyDefinedNamesToExcelWorkbook: ot } = await import("./xlsx-defined-names-CBoWA_1s.js");
814
814
  ot(
815
815
  j,
816
816
  (T = (a = (d = e.current).getWorkbookContext) == null ? void 0 : a.call(d)) == null ? void 0 : T.definedNames,
@@ -1,5 +1,5 @@
1
- import { g as Rt, c as yt } from "./executeStringFunction-BfLGPmcB.js";
2
- import { c as wt } from "./index-3Pi4crPa.js";
1
+ import { g as Rt, c as yt } from "./executeStringFunction-V_hu5VRM.js";
2
+ import { c as wt } from "./index-GBqDuF2T.js";
3
3
  function jt(J, nt) {
4
4
  const g = J.getImages();
5
5
  if (!g.length) return [];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "4.1.7",
5
+ "version": "4.1.8",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/fileverse/fileverse-dsheets.git"