@fileverse-dev/dsheet 1.1.29 → 1.1.30

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 +7 -7
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -90526,21 +90526,21 @@ function i2e(e, r) {
90526
90526
  }
90527
90527
  }
90528
90528
  function o2e(e, r) {
90529
- var t, a = new DOMParser(), n = a.parseFromString("<div>".concat((t = document.getElementById("luckysheet-rich-text-editor")) === null || t === void 0 ? void 0 : t.innerHTML, "</div>"), "text/html"), i = n.querySelectorAll("span"), o = i[i.length - 1];
90530
- if (!(o != null && o.innerText.includes(")") || !(o != null && o.innerText.includes("(")) && (o == null ? void 0 : o.innerText.length) > 2)) {
90531
- var c = Nue(e, r.key);
90529
+ var t, a, n = new DOMParser(), i = n.parseFromString("<div>".concat((t = document.getElementById("luckysheet-rich-text-editor")) === null || t === void 0 ? void 0 : t.innerHTML, "</div>"), "text/html"), o = i.querySelectorAll("span"), c = o[o.length - 1], f = !(!((a = document.getElementById("luckysheet-rich-text-editor")) === null || a === void 0) && a.innerText.includes("("));
90530
+ if (!(c != null && c.innerText.includes(")") || f && (c == null ? void 0 : c.innerText.length) > 3)) {
90531
+ var s = Nue(e, r.key);
90532
90532
  switch (r.key) {
90533
90533
  case "ArrowUp":
90534
- Oo(e, "down", -c);
90534
+ Oo(e, "down", -s);
90535
90535
  break;
90536
90536
  case "ArrowDown":
90537
- Oo(e, "down", c);
90537
+ Oo(e, "down", s);
90538
90538
  break;
90539
90539
  case "ArrowLeft":
90540
- Oo(e, "right", -c);
90540
+ Oo(e, "right", -s);
90541
90541
  break;
90542
90542
  case "ArrowRight":
90543
- Oo(e, "right", c);
90543
+ Oo(e, "right", s);
90544
90544
  break;
90545
90545
  }
90546
90546
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "1.1.29",
5
+ "version": "1.1.30",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@fileverse-dev/dsheets-templates": "^0.0.18",
37
37
  "@fileverse-dev/formulajs": "^4.4.18",
38
- "@fileverse-dev/fortune-react": "^1.1.35",
38
+ "@fileverse-dev/fortune-react": "^1.1.36",
39
39
  "@fileverse/ui": "^4.1.7-patch-21",
40
40
  "classnames": "^2.5.1",
41
41
  "exceljs": "^4.4.0",