@fileverse-dev/dsheet 1.2.55 → 1.2.57

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 -9
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -176556,14 +176556,12 @@ var sMt = function(e, t, r, a) {
176556
176556
  }, [h.config, h.luckysheet_select_save, h.luckysheetfile, h.currentSheetId, b.globalCache, p]), L = Ot(function() {
176557
176557
  return document.querySelector(".luckysheet-formula-search-item-active");
176558
176558
  }, []), j = Ot(function(B) {
176559
- if (/^=+$/.test(b.fxInput.current.innerText)) {
176560
- var H = '<span dir="auto" class="luckysheet-formula-text-color">=</span><span dir="auto" class="luckysheet-formula-text-func">'.concat(B, '</span><span dir="auto" class="luckysheet-formula-text-lpar">(</span>');
176561
- b.fxInput.current.innerHTML = H;
176562
- var W = document.getElementById("luckysheet-rich-text-editor");
176563
- W && (W.innerHTML = H), mm(b.fxInput.current), p(function(K) {
176564
- K.functionCandidates = [], K.defaultCandidates = [], K.functionHint = B;
176565
- });
176566
- }
176559
+ var H = '<span dir="auto" class="luckysheet-formula-text-color">=</span><span dir="auto" class="luckysheet-formula-text-func">'.concat(B, '</span><span dir="auto" class="luckysheet-formula-text-lpar">(</span>');
176560
+ b.fxInput.current.innerHTML = H;
176561
+ var W = document.getElementById("luckysheet-rich-text-editor");
176562
+ W && (W.innerHTML = H), mm(b.fxInput.current), p(function(K) {
176563
+ K.functionCandidates = [], K.defaultCandidates = [], K.functionHint = B;
176564
+ });
176567
176565
  }, [p]), M = Ot(function() {
176568
176566
  var B = L();
176569
176567
  B && B.classList.remove("luckysheet-formula-search-item-active");
@@ -176583,7 +176581,7 @@ var sMt = function(e, t, r, a) {
176583
176581
  var W = Vm((H = b.fxInput) === null || H === void 0 ? void 0 : H.current);
176584
176582
  m(W), g.current = new KeyboardEvent(B.type, B.nativeEvent);
176585
176583
  var K = B.key;
176586
- if (S.current = b.fxInput.current.innerText, (K === "ArrowLeft" || K === "ArrowRight") && B.stopPropagation(), B.key === "Enter" && h.luckysheetCellUpdate.length > 0) {
176584
+ if (S.current = b.fxInput.current.innerText, (K === "ArrowLeft" || K === "ArrowRight") && B.stopPropagation(), (B.key === "Enter" || B.key === "Tab") && h.luckysheetCellUpdate.length > 0) {
176587
176585
  if (B.altKey || B.metaKey)
176588
176586
  document.execCommand("insertHTML", !1, `
176589
176587
  `), document.execCommand("delete", !1), B.stopPropagation();
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.55",
5
+ "version": "1.2.57",
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.28",
37
37
  "@fileverse-dev/formulajs": "^4.4.32",
38
- "@fileverse-dev/fortune-react": "^1.2.54",
38
+ "@fileverse-dev/fortune-react": "^1.2.56",
39
39
  "@fileverse/ui": "^4.1.7-patch-40",
40
40
  "classnames": "^2.5.1",
41
41
  "exceljs": "^4.4.0",