@fileverse-dev/fortune-react 1.2.90-bold → 1.2.90-bold-1

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.
@@ -8,7 +8,7 @@ var __assign = this && this.__assign || function () {
8
8
  };
9
9
  return __assign.apply(this, arguments);
10
10
  };
11
- import { cancelNormalSelected, getCellValue, getInlineStringHTML, getStyleByCell, isInlineStringCell, moveToEnd, getFlowdata, handleFormulaInput, moveHighlightCell, escapeScriptTag, valueShowEs, createRangeHightlight, isShowHidenCR, israngeseleciton, escapeHTMLTag, isAllowEdit, getrangeseleciton, indexToColumnChar, handleBold, handleItalic, handleUnderline, handleStrikeThrough } from "@fileverse-dev/fortune-core";
11
+ import { cancelNormalSelected, getCellValue, getInlineStringHTML, getStyleByCell, isInlineStringCell, moveToEnd, getFlowdata, handleFormulaInput, moveHighlightCell, escapeScriptTag, valueShowEs, createRangeHightlight, isShowHidenCR, israngeseleciton, escapeHTMLTag, isAllowEdit, getrangeseleciton, indexToColumnChar, handleItalic, handleUnderline, handleStrikeThrough } from "@fileverse-dev/fortune-core";
12
12
  import React, { useContext, useEffect, useMemo, useRef, useCallback, useLayoutEffect, useState } from "react";
13
13
  import _ from "lodash";
14
14
  import { Tooltip } from "@fileverse/ui";
@@ -275,12 +275,8 @@ var InputBox = function InputBox() {
275
275
  lastKeyDownEventRef.current = new KeyboardEvent(e.type, e.nativeEvent);
276
276
  preText.current = inputRef.current.innerText;
277
277
  if (e.metaKey) {
278
- if (e.code === "KeyB") {
279
- handleBold(context, inputRef.current);
280
- stopPropagation(e);
281
- } else if (e.code === "KeyI") {
278
+ if (e.code === "KeyB") {} else if (e.code === "KeyI") {
282
279
  handleItalic(context, inputRef.current);
283
- stopPropagation(e);
284
280
  } else if (e.code === "KeyU") {
285
281
  handleUnderline(context, inputRef.current);
286
282
  stopPropagation(e);
@@ -284,12 +284,8 @@ var InputBox = function InputBox() {
284
284
  lastKeyDownEventRef.current = new KeyboardEvent(e.type, e.nativeEvent);
285
285
  preText.current = inputRef.current.innerText;
286
286
  if (e.metaKey) {
287
- if (e.code === "KeyB") {
288
- (0, _fortuneCore.handleBold)(context, inputRef.current);
289
- stopPropagation(e);
290
- } else if (e.code === "KeyI") {
287
+ if (e.code === "KeyB") {} else if (e.code === "KeyI") {
291
288
  (0, _fortuneCore.handleItalic)(context, inputRef.current);
292
- stopPropagation(e);
293
289
  } else if (e.code === "KeyU") {
294
290
  (0, _fortuneCore.handleUnderline)(context, inputRef.current);
295
291
  stopPropagation(e);
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-1",
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-1",
20
20
  "@fileverse/ui": "^4.1.7-patch-40",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",