@fileverse-dev/dsheet 2.0.21 → 2.0.22-memory

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.
Files changed (2) hide show
  1. package/dist/index.es.js +5 -6
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -23506,7 +23506,7 @@ function tn(e, t, n, o, r) {
23506
23506
  const F = i.v;
23507
23507
  ((Z = i == null ? void 0 : i.ct) == null ? void 0 : Z.t) === "d" && ((q = i == null ? void 0 : i.ct) != null && q.fa) && !Gt(F) ? i.m = Xt(i.ct.fa, F) : typeof F == "number" ? ra(i) : typeof F == "boolean" ? i.m = F ? "TRUE" : "FALSE" : Gt(F) ? i.m = "" : i.m = String(F);
23508
23508
  }
23509
- _.isNil(i.f) || (s ? (i.ct || (i.ct = { fa: "General", t: "g" }), i.ct.s = s) : i != null && i.ct && delete i.ct.s), o[t][n] = i, e.luckysheet_selection_range && (e.luckysheet_selection_range = []);
23509
+ _.isNil(i.f) || (s ? (i.ct || (i.ct = { fa: "General", t: "g" }), i.ct.s = s) : i != null && i.ct && _.isPlainObject(r) && Object.prototype.hasOwnProperty.call(r, "ct") && delete i.ct.s), o[t][n] = i, e.luckysheet_selection_range && (e.luckysheet_selection_range = []);
23510
23510
  }
23511
23511
  function ku(e, t, n, o) {
23512
23512
  let r = Tt(e, t, n, "m");
@@ -65264,8 +65264,7 @@ const vC = (e, t, n = "Anonymous", o = !0, r = "") => {
65264
65264
  V.current,
65265
65265
  i,
65266
65266
  l,
65267
- u,
65268
- a
65267
+ u
65269
65268
  );
65270
65269
  De(() => {
65271
65270
  $ && T === "synced" && D.current && x((E) => E + 1);
@@ -71552,9 +71551,9 @@ const R8 = ({
71552
71551
  dsheetId: f,
71553
71552
  dataBlockCalcFunction: V
71554
71553
  });
71555
- }, [V]), De(() => {
71556
- window.editorRef = k.current, window.ydocRef = x.current, window.setForceRenderEditor = W, window.currentDataRef = R;
71557
- }, [o]);
71554
+ }, [V]), De(() => (window.editorRef = k.current, window.ydocRef = x.current, window.setForceRenderEditor = W, () => {
71555
+ delete window.editorRef, delete window.ydocRef, delete window.setForceRenderEditor;
71556
+ }), [o]);
71558
71557
  const { handleXLSXUpload: q } = R8({
71559
71558
  sheetEditorRef: k,
71560
71559
  ydocRef: x,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "2.0.21",
5
+ "version": "2.0.22-memory",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {