@fileverse-dev/fortune-react 1.2.90-bold-2 → 1.2.90-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.
|
@@ -71,7 +71,6 @@ var InputBox = function InputBox() {
|
|
|
71
71
|
var el = inputRef.current;
|
|
72
72
|
if (!el) return;
|
|
73
73
|
var text = el.textContent;
|
|
74
|
-
console.log(text, "yoooo");
|
|
75
74
|
if (!text || text === ZWSP) {
|
|
76
75
|
el.innerHTML = ZWSP;
|
|
77
76
|
moveCursorToEnd(el);
|
|
@@ -269,11 +268,9 @@ var InputBox = function InputBox() {
|
|
|
269
268
|
};
|
|
270
269
|
var onKeyDown = useCallback(function (e) {
|
|
271
270
|
var _a, _b;
|
|
272
|
-
console.log(e.code, "onKeyDown in InputBox");
|
|
273
271
|
lastKeyDownEventRef.current = new KeyboardEvent(e.type, e.nativeEvent);
|
|
274
272
|
preText.current = inputRef.current.innerText;
|
|
275
273
|
if (e.metaKey && context.luckysheetCellUpdate.length > 0) {
|
|
276
|
-
console.log(e.code, "e.code");
|
|
277
274
|
if (e.code === "KeyB") {
|
|
278
275
|
handleBold(context, inputRef.current);
|
|
279
276
|
stopPropagation(e);
|
|
@@ -281,11 +278,9 @@ var InputBox = function InputBox() {
|
|
|
281
278
|
handleItalic(context, inputRef.current);
|
|
282
279
|
stopPropagation(e);
|
|
283
280
|
} else if (e.code === "KeyU") {
|
|
284
|
-
console.log("underline");
|
|
285
281
|
handleUnderline(context, inputRef.current);
|
|
286
282
|
stopPropagation(e);
|
|
287
283
|
} else if (e.code === "KeyS") {
|
|
288
|
-
console.log("strikethrough");
|
|
289
284
|
handleStrikeThrough(context, inputRef.current);
|
|
290
285
|
stopPropagation(e);
|
|
291
286
|
}
|
|
@@ -80,7 +80,6 @@ var InputBox = function InputBox() {
|
|
|
80
80
|
var el = inputRef.current;
|
|
81
81
|
if (!el) return;
|
|
82
82
|
var text = el.textContent;
|
|
83
|
-
console.log(text, "yoooo");
|
|
84
83
|
if (!text || text === ZWSP) {
|
|
85
84
|
el.innerHTML = ZWSP;
|
|
86
85
|
(0, _helper.moveCursorToEnd)(el);
|
|
@@ -278,11 +277,9 @@ var InputBox = function InputBox() {
|
|
|
278
277
|
};
|
|
279
278
|
var onKeyDown = (0, _react.useCallback)(function (e) {
|
|
280
279
|
var _a, _b;
|
|
281
|
-
console.log(e.code, "onKeyDown in InputBox");
|
|
282
280
|
lastKeyDownEventRef.current = new KeyboardEvent(e.type, e.nativeEvent);
|
|
283
281
|
preText.current = inputRef.current.innerText;
|
|
284
282
|
if (e.metaKey && context.luckysheetCellUpdate.length > 0) {
|
|
285
|
-
console.log(e.code, "e.code");
|
|
286
283
|
if (e.code === "KeyB") {
|
|
287
284
|
(0, _fortuneCore.handleBold)(context, inputRef.current);
|
|
288
285
|
stopPropagation(e);
|
|
@@ -290,11 +287,9 @@ var InputBox = function InputBox() {
|
|
|
290
287
|
(0, _fortuneCore.handleItalic)(context, inputRef.current);
|
|
291
288
|
stopPropagation(e);
|
|
292
289
|
} else if (e.code === "KeyU") {
|
|
293
|
-
console.log("underline");
|
|
294
290
|
(0, _fortuneCore.handleUnderline)(context, inputRef.current);
|
|
295
291
|
stopPropagation(e);
|
|
296
292
|
} else if (e.code === "KeyS") {
|
|
297
|
-
console.log("strikethrough");
|
|
298
293
|
(0, _fortuneCore.handleStrikeThrough)(context, inputRef.current);
|
|
299
294
|
stopPropagation(e);
|
|
300
295
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.2.90-bold-
|
|
3
|
+
"version": "1.2.90-bold-3",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.2.90-bold-
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.2.90-bold-3",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-40",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|