@fileverse-dev/dsheet 1.2.87-toast-2 → 1.2.88-toast-6

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 -10
  2. package/package.json +3 -3
package/dist/index.es.js CHANGED
@@ -100600,7 +100600,7 @@ function wZ(e, t, r, i, n, a, l, c) {
100600
100600
  else if (v === "Escape")
100601
100601
  e.contextMenu = {};
100602
100602
  else if (v === "Delete" || v === "Backspace") {
100603
- if (console.log("Delete"), !m) return [2];
100603
+ if (!m) return [2];
100604
100604
  e.activeImg != null ? Hw(e) : Ow(e), ko(e, null, void 0), i.preventDefault();
100605
100605
  } else if (v === "ArrowUp" || v === "ArrowDown" || v === "ArrowLeft" || v === "ArrowRight")
100606
100606
  yZ(e, i);
@@ -169659,7 +169659,7 @@ const ckt = Dc(
169659
169659
  info: "info"
169660
169660
  },
169661
169661
  type: {
169662
- normal: "normal-toast space-x-4 border color-border-default group w-[320px] max-w-full",
169662
+ normal: "normal-toast space-x-4 border color-bg-default color-border-default group w-[320px] max-w-full",
169663
169663
  mini: "mini-toast gap-2 w-fit max-w-full border-0"
169664
169664
  },
169665
169665
  position: {
@@ -169675,7 +169675,7 @@ const ckt = Dc(
169675
169675
  {
169676
169676
  type: "normal",
169677
169677
  variant: "default",
169678
- className: "color-bg-default color-border-default"
169678
+ className: "color-border-default"
169679
169679
  },
169680
169680
  {
169681
169681
  type: "normal",
@@ -171919,16 +171919,12 @@ var k6 = function() {
171919
171919
  He.stopPropagation(), He.preventDefault();
171920
171920
  }, Pe = xr(function(Be) {
171921
171921
  var He, Se;
171922
- if (de.current || !v.current) {
171923
- me();
171924
- return;
171925
- }
171926
- if (m.current = new KeyboardEvent(Be.type, Be.nativeEvent), ve.current = v.current.innerText, Be.metaKey && (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) {
171922
+ 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) {
171927
171923
  var rt = Mp(v == null ? void 0 : v.current);
171928
171924
  W(rt);
171929
171925
  }
171930
171926
  var bt = !0;
171931
- (Be.key === "Delete" || Be.key === "Backspace") && (requestAnimationFrame(me), sq(v == null ? void 0 : v.current) === (v == null ? void 0 : v.current.innerText.length) && setTimeout(function() {
171927
+ (Be.key === "Delete" || Be.key === "Backspace") && (de.current && requestAnimationFrame(me), sq(v == null ? void 0 : v.current) === (v == null ? void 0 : v.current.innerText.length) && setTimeout(function() {
171932
171928
  yh(v == null ? void 0 : v.current);
171933
171929
  }, 5));
171934
171930
  var _e = ke.current;
@@ -172106,7 +172102,11 @@ var k6 = function() {
172106
172102
  onCompositionUpdate: function() {
172107
172103
  de.current = !0;
172108
172104
  },
172109
- onCompositionEnd: function() {
172105
+ onCompositionEnd: function(He) {
172106
+ if (He.data === "" && He.currentTarget.value === "") {
172107
+ de.current = !0;
172108
+ return;
172109
+ }
172110
172110
  me(), de.current = !1;
172111
172111
  },
172112
172112
  onMouseUp: function() {
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.87-toast-2",
5
+ "version": "1.2.88-toast-6",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -35,8 +35,8 @@
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-toast-2",
39
- "@fileverse/ui": "^4.2.1-toast-5",
38
+ "@fileverse-dev/fortune-react": "^1.2.91-toast-6",
39
+ "@fileverse/ui": "^4.2.1-toast-6",
40
40
  "classnames": "^2.5.1",
41
41
  "exceljs": "^4.4.0",
42
42
  "js-base64": "^3.7.7",