pixel-react-excel-sheet 1.0.39 → 1.0.40

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/lib/index.js CHANGED
@@ -32679,6 +32679,8 @@ const INITIAL_STATE = {
32679
32679
  }
32680
32680
  };
32681
32681
  function reducer(state, action) {
32682
+ console.log(state.model);
32683
+ console.log(action.type);
32682
32684
  switch (action.type) {
32683
32685
  case SET_AUTO_FILL:
32684
32686
  {
@@ -35840,6 +35842,7 @@ const Spreadsheet = props => {
35840
35842
  onEvaluatedDataChange = () => {},
35841
35843
  contextOption
35842
35844
  } = props;
35845
+ console.log(props.data);
35843
35846
  const initialState = React__namespace.useMemo(() => {
35844
35847
  const createParser = props.createFormulaParser || createFormulaParser;
35845
35848
  const model = new Model(createParser, props.data);
@@ -36222,7 +36225,7 @@ const ExcelFile = ({
36222
36225
  if (payload) {
36223
36226
  const sheetNames = payload.map(e => e.sheetName);
36224
36227
  setSheetNames(sheetNames);
36225
- if (checkEmpty(sheetNames.length)) {
36228
+ if (!checkEmpty(sheetNames.length)) {
36226
36229
  pageRef.current = sheetNames[0] ? sheetNames[0] : ''; //Ternary is required, must use ''
36227
36230
  setSelectedSheet({
36228
36231
  name: sheetNames[0] ? sheetNames[0] : '',
@@ -36249,7 +36252,8 @@ const ExcelFile = ({
36249
36252
  }
36250
36253
  spreadsheetData[rowIndex][colIndex] = {
36251
36254
  value: checkVal(cell.value),
36252
- style: convertStyleToFrontend(cell?.style),
36255
+ style: convertStyleToFrontend(cell?.styles),
36256
+ //TODO remove 's' for Style
36253
36257
  type: true
36254
36258
  };
36255
36259
  }