@fileverse-dev/fortune-react 1.0.2-mod-5 → 1.0.2-mod-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.
package/dist/index.esm.js CHANGED
@@ -1082,7 +1082,7 @@ var InputBox = function InputBox() {
1082
1082
  return {};
1083
1083
  }, [context.luckysheetfile, context.currentSheetId, context.luckysheetCellUpdate, firstSelection]);
1084
1084
  useLayoutEffect(function () {
1085
- if (firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem('onboardingComplete') !== 'true') {
1085
+ if (firstSelection && firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem("onboardingComplete") !== "true") {
1086
1086
  var _inputRef$current;
1087
1087
  if (((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.innerHTML) !== "") return;
1088
1088
  var flowdata = getFlowdata(context);
@@ -1199,7 +1199,7 @@ var InputBox = function InputBox() {
1199
1199
  }
1200
1200
  }, [getActiveFormula, setContext]);
1201
1201
  var onKeyDown = useCallback(function (e) {
1202
- if (e.key === "Backspace" && firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem('onboardingComplete') !== 'true') {
1202
+ if (firstSelection && e.key === "Backspace" && firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem("onboardingComplete") !== "true") {
1203
1203
  inputRef.current.innerHTML = "";
1204
1204
  }
1205
1205
  lastKeyDownEventRef.current = new KeyboardEvent(e.type, e.nativeEvent);
@@ -1280,7 +1280,7 @@ var InputBox = function InputBox() {
1280
1280
  style: firstSelection && !((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) ? {
1281
1281
  left: firstSelection.left,
1282
1282
  top: firstSelection.top,
1283
- zIndex: _.isEmpty(context.luckysheetCellUpdate) ? firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem('onboardingComplete') !== 'true' ? 19 : -1 : 19,
1283
+ zIndex: _.isEmpty(context.luckysheetCellUpdate) ? firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem("onboardingComplete") !== "true" ? 19 : -1 : 19,
1284
1284
  display: "block"
1285
1285
  } : {
1286
1286
  left: -10000,
package/dist/index.js CHANGED
@@ -1093,7 +1093,7 @@ var InputBox = function InputBox() {
1093
1093
  return {};
1094
1094
  }, [context.luckysheetfile, context.currentSheetId, context.luckysheetCellUpdate, firstSelection]);
1095
1095
  React.useLayoutEffect(function () {
1096
- if (firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem('onboardingComplete') !== 'true') {
1096
+ if (firstSelection && firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem("onboardingComplete") !== "true") {
1097
1097
  var _inputRef$current;
1098
1098
  if (((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.innerHTML) !== "") return;
1099
1099
  var flowdata = fortuneCore.getFlowdata(context);
@@ -1210,7 +1210,7 @@ var InputBox = function InputBox() {
1210
1210
  }
1211
1211
  }, [getActiveFormula, setContext]);
1212
1212
  var onKeyDown = React.useCallback(function (e) {
1213
- if (e.key === "Backspace" && firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem('onboardingComplete') !== 'true') {
1213
+ if (firstSelection && e.key === "Backspace" && firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem("onboardingComplete") !== "true") {
1214
1214
  inputRef.current.innerHTML = "";
1215
1215
  }
1216
1216
  lastKeyDownEventRef.current = new KeyboardEvent(e.type, e.nativeEvent);
@@ -1291,7 +1291,7 @@ var InputBox = function InputBox() {
1291
1291
  style: firstSelection && !((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) ? {
1292
1292
  left: firstSelection.left,
1293
1293
  top: firstSelection.top,
1294
- zIndex: ___default['default'].isEmpty(context.luckysheetCellUpdate) ? firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem('onboardingComplete') !== 'true' ? 19 : -1 : 19,
1294
+ zIndex: ___default['default'].isEmpty(context.luckysheetCellUpdate) ? firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem("onboardingComplete") !== "true" ? 19 : -1 : 19,
1295
1295
  display: "block"
1296
1296
  } : {
1297
1297
  left: -10000,
package/dist/index.umd.js CHANGED
@@ -41155,7 +41155,7 @@
41155
41155
  return {};
41156
41156
  }, [context.luckysheetfile, context.currentSheetId, context.luckysheetCellUpdate, firstSelection]);
41157
41157
  React.useLayoutEffect(function () {
41158
- if (firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem('onboardingComplete') !== 'true') {
41158
+ if (firstSelection && firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem("onboardingComplete") !== "true") {
41159
41159
  var _inputRef$current;
41160
41160
  if (((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.innerHTML) !== "") return;
41161
41161
  var flowdata = getFlowdata(context);
@@ -41272,7 +41272,7 @@
41272
41272
  }
41273
41273
  }, [getActiveFormula, setContext]);
41274
41274
  var onKeyDown = React.useCallback(function (e) {
41275
- if (e.key === "Backspace" && firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem('onboardingComplete') !== 'true') {
41275
+ if (firstSelection && e.key === "Backspace" && firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem("onboardingComplete") !== "true") {
41276
41276
  inputRef.current.innerHTML = "";
41277
41277
  }
41278
41278
  lastKeyDownEventRef.current = new KeyboardEvent(e.type, e.nativeEvent);
@@ -41353,7 +41353,7 @@
41353
41353
  style: firstSelection && !((_context$rangeDialog = context.rangeDialog) === null || _context$rangeDialog === void 0 ? void 0 : _context$rangeDialog.show) ? {
41354
41354
  left: firstSelection.left,
41355
41355
  top: firstSelection.top,
41356
- zIndex: lodash.isEmpty(context.luckysheetCellUpdate) ? firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem('onboardingComplete') !== 'true' ? 19 : -1 : 19,
41356
+ zIndex: lodash.isEmpty(context.luckysheetCellUpdate) ? firstSelection.column_focus === 2 && firstSelection.row_focus === 4 && localStorage.getItem("onboardingComplete") !== "true" ? 19 : -1 : 19,
41357
41357
  display: "block"
41358
41358
  } : {
41359
41359
  left: -10000,