@fileverse-dev/dsheet 1.2.86-new-bold-2 → 1.2.86-new-bold-3

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 +10 -12
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -100460,9 +100460,7 @@ function dO(e, t, r) {
100460
100460
  }
100461
100461
  }
100462
100462
  function gZ(e, t, r, i, n, a, l) {
100463
- var c, f, s, o;
100464
- console.log(r.code, "handleWithCtrlOrMetaKey");
100465
- var u = lr(e);
100463
+ var c, f, s, o, u = lr(e);
100466
100464
  if (u) {
100467
100465
  if (r.shiftKey) {
100468
100466
  if (e.luckysheet_shiftpositon = ce.cloneDeep((c = e.luckysheet_select_save) === null || c === void 0 ? void 0 : c[e.luckysheet_select_save.length - 1]), e.luckysheet_shiftkeydown = !0, ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(r.key))
@@ -100481,11 +100479,11 @@ function gZ(e, t, r, i, n, a, l) {
100481
100479
  } else if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(r.key))
100482
100480
  dO(e, r, !1);
100483
100481
  else if (r.code === "KeyB")
100484
- console.log(r.code, "handleBold"), Rk(e, i);
100482
+ Rk(e, i);
100485
100483
  else if (r.code === "KeyI")
100486
- console.log(r.code, "handleItalic"), Nk(e, i);
100484
+ Nk(e, i);
100487
100485
  else if (r.code === "KeyU")
100488
- console.log(r.code, "handleUnderline"), Ik(e, i);
100486
+ Ik(e, i);
100489
100487
  else if (r.code === "Backslash")
100490
100488
  aG(e);
100491
100489
  else if (r.code === "KeyC") {
@@ -100573,7 +100571,7 @@ function wZ(e, t, r, i, n, a, l, c) {
100573
100571
  return u5e(this, void 0, void 0, function() {
100574
100572
  var u, v, m, h, p, d, b, g, w, b, g, w;
100575
100573
  return v5e(this, function(x) {
100576
- if (console.log(i.code, "handleGlobalKeyDown"), i.shiftKey && i.code === "Space")
100574
+ if (i.shiftKey && i.code === "Space")
100577
100575
  return i.stopImmediatePropagation(), i.stopPropagation(), i.preventDefault(), [2];
100578
100576
  if ((i.ctrlKey || i.metaKey && i.shiftKey) && i.code === "KeyE" ? Ly(e, "center") : (i.ctrlKey || i.metaKey && i.shiftKey) && i.code === "KeyL" ? Ly(e, "left") : (i.ctrlKey || i.metaKey && i.shiftKey) && i.code === "KeyR" && Ly(e, "right"), (i.metaKey || i.ctrlKey) && i.code === "KeyK" && Bk(e), (i.metaKey || i.ctrlKey) && !i.shiftKey && i.code === "Semicolon" && lG(e), (i.metaKey || i.ctrlKey) && i.shiftKey && i.code === "Semicolon" && sG(e), (i.metaKey || i.ctrlKey) && i.code === "KeyR" && nG(e), (i.metaKey || i.ctrlKey) && i.code === "KeyD" && iG(e), e.luckysheet_select_status = !1, u = i.keyCode, v = i.key, !ce.isEmpty(e.contextMenu) || e.filterContextMenu)
100579
100577
  return [2];
@@ -100596,13 +100594,13 @@ function wZ(e, t, r, i, n, a, l, c) {
100596
100594
  Ls(e), Wl(e, "down", 0, "rangeOfSelect"), i.preventDefault();
100597
100595
  else {
100598
100596
  if (i.ctrlKey || i.metaKey)
100599
- return console.log(i.code, "handleWithCtrlOrMetaKey in handleGlobalKeyDown"), gZ(e, n, i, t, r, a, l), [2];
100597
+ return gZ(e, n, i, t, r, a, l), [2];
100600
100598
  if (i.shiftKey && (v === "ArrowUp" || v === "ArrowDown" || v === "ArrowLeft" || v === "ArrowRight"))
100601
- console.log(i.code, "handleShiftWithArrowKey in handleGlobalKeyDown"), m5e(e, i);
100599
+ m5e(e, i);
100602
100600
  else if (v === "Escape")
100603
100601
  e.contextMenu = {};
100604
100602
  else if (v === "Delete" || v === "Backspace") {
100605
- if (console.log("Delete"), !m) return [2];
100603
+ if (!m) return [2];
100606
100604
  e.activeImg != null ? Hw(e) : Ow(e), ko(e, null, void 0), i.preventDefault();
100607
100605
  } else if (v === "ArrowUp" || v === "ArrowDown" || v === "ArrowLeft" || v === "ArrowRight")
100608
100606
  yZ(e, i);
@@ -171812,7 +171810,7 @@ var k6 = function() {
171812
171810
  var He = v.current;
171813
171811
  if (He) {
171814
171812
  var Se = He.textContent;
171815
- console.log(Se, "yoooo"), (!Se || Se === fe) && (He.innerHTML = fe, yh(He));
171813
+ (!Se || Se === fe) && (He.innerHTML = fe, yh(He));
171816
171814
  }
171817
171815
  }, pe = function() {
171818
171816
  localStorage.setItem("formulaMore", String(ne)), se(!ne);
@@ -171915,7 +171913,7 @@ var k6 = function() {
171915
171913
  He.stopPropagation(), He.preventDefault();
171916
171914
  }, Pe = xr(function(Be) {
171917
171915
  var He, Se;
171918
- if (console.log(Be.code, "onKeyDown in InputBox"), m.current = new KeyboardEvent(Be.type, Be.nativeEvent), ve.current = v.current.innerText, Be.metaKey && s.luckysheetCellUpdate.length > 0 && (console.log(Be.code, "e.code"), Be.code === "KeyB" ? (Rk(s, v.current), Te(Be)) : Be.code === "KeyI" ? (Nk(s, v.current), Te(Be)) : Be.code === "KeyU" ? (console.log("underline"), Ik(s, v.current), Te(Be)) : Be.code === "KeyS" && (console.log("strikethrough"), $L(s, v.current), Te(Be))), !de.current) {
171916
+ if (m.current = new KeyboardEvent(Be.type, Be.nativeEvent), ve.current = v.current.innerText, Be.metaKey && s.luckysheetCellUpdate.length > 0 && (Be.code === "KeyB" ? (Rk(s, v.current), Te(Be)) : Be.code === "KeyI" ? (Nk(s, v.current), Te(Be)) : Be.code === "KeyU" ? (Ik(s, v.current), Te(Be)) : Be.code === "KeyS" && ($L(s, v.current), Te(Be))), !de.current) {
171919
171917
  var rt = Mp(v == null ? void 0 : v.current);
171920
171918
  W(rt);
171921
171919
  }
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.2.86-new-bold-2",
5
+ "version": "1.2.86-new-bold-3",
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.29",
37
37
  "@fileverse-dev/formulajs": "4.4.46",
38
- "@fileverse-dev/fortune-react": "^1.2.90-bold-2",
38
+ "@fileverse-dev/fortune-react": "^1.2.90-bold-3",
39
39
  "@fileverse/ui": "^4.1.7-patch-40",
40
40
  "classnames": "^2.5.1",
41
41
  "exceljs": "^4.4.0",