Skip to content

Commit 5a6eab2

Browse files
committed
Move xlsx to npm
1 parent 9e18d66 commit 5a6eab2

7 files changed

Lines changed: 10 additions & 11 deletions

File tree

package-lock.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"react-dropzone": "14.2.3",
6363
"react-icons": "4.8.0",
6464
"uuid": "^9.0.0",
65-
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz"
65+
"xlsx-ugnis": "0.19.3"
6666
},
6767
"devDependencies": {
6868
"@babel/core": "7.21.8",

src/steps/UploadFlow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useCallback, useState } from "react"
22
import { Progress, useToast } from "@chakra-ui/react"
3-
import type XLSX from "xlsx"
3+
import type XLSX from "xlsx-ugnis"
44
import { UploadStep } from "./UploadStep/UploadStep"
55
import { SelectHeaderStep } from "./SelectHeaderStep/SelectHeaderStep"
66
import { SelectSheetStep } from "./SelectSheetStep/SelectSheetStep"

src/steps/UploadStep/UploadStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type XLSX from "xlsx"
1+
import type XLSX from "xlsx-ugnis"
22
import { Box, Heading, ModalBody, Text, useStyleConfig } from "@chakra-ui/react"
33
import { DropZone } from "./components/DropZone"
44
import { useRsi } from "../../hooks/useRsi"

src/steps/UploadStep/components/DropZone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Box, Button, Text, useStyleConfig, useToast } from "@chakra-ui/react"
22
import { useDropzone } from "react-dropzone"
3-
import * as XLSX from "xlsx"
3+
import * as XLSX from "xlsx-ugnis"
44
import { useState } from "react"
55
import { getDropZoneBorder } from "../utils/getDropZoneBorder"
66
import { useRsi } from "../../../hooks/useRsi"

src/utils/exceedsMaxRecords.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type XLSX from "xlsx"
1+
import type XLSX from "xlsx-ugnis"
22

33
export const exceedsMaxRecords = (workSheet: XLSX.WorkSheet, maxRecords: number) => {
44
const [top, bottom] = workSheet["!ref"]?.split(":").map((position) => parseInt(position.replace(/\D/g, ""), 10)) || []

src/utils/mapWorkbook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as XLSX from "xlsx"
1+
import * as XLSX from "xlsx-ugnis"
22

33
export const mapWorkbook = (workbook: XLSX.WorkBook, sheetName?: string) => {
44
const worksheet = workbook.Sheets[sheetName || workbook.SheetNames[0]]

0 commit comments

Comments
 (0)