diff --git a/README.md b/README.md index 5c1cebb..88eb460 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ WebViewer comes with a 7-day trial without any feature limitations or trial key Before you begin, make sure your development environment includes [Node.js](https://nodejs.org/en/). +This sample requires Node version 18.0.0 or higher. To check your version, run `node -v` in a terminal/console window. + ## Install ``` diff --git a/package.json b/package.json index d1d2ca3..26421cb 100644 --- a/package.json +++ b/package.json @@ -2,35 +2,42 @@ "name": "webviewer-react-sample", "version": "1.0.0", "private": true, - "homepage": "https://pdftron.github.io/webviewer-react-sample", "dependencies": { - "react": "^16.6.0", - "react-dom": "^16.6.0", - "react-scripts": "2.1.1", - "@pdftron/webviewer": "^10.0.0" - }, - "devDependencies": { - "btoa": "^1.2.1", - "download": "^7.1.0", - "fs-extra": "^7.0.1", - "gh-pages": "^3.2.2" + "@pdftron/webviewer": "^10.6.0", + "@testing-library/jest-dom": "^5.17.0", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^13.5.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-scripts": "^5.0.1", + "web-vitals": "^2.1.4" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "postinstall": "node tools/copy-webviewer-files.js", - "predeploy": "npm run build", - "deploy": "gh-pages -d build" + "postinstall": "node tools/copy-webviewer-files.js" }, "eslintConfig": { - "extends": "react-app" + "extends": [ + "react-app", + "react-app/jest" + ] }, - "browserslist": [ - ">0.2%", - "not dead", - "not ie <= 11", - "not op_mini all" - ] -} \ No newline at end of file + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + }, + "devDependencies": { + "@babel/plugin-proposal-private-property-in-object": "^7.21.11" + } +} diff --git a/public/assets/favicon.ico b/public/assets/favicon.ico deleted file mode 100644 index a11777c..0000000 Binary files a/public/assets/favicon.ico and /dev/null differ diff --git a/public/index.html b/public/index.html index 5da44ef..3f8e9f7 100644 --- a/public/index.html +++ b/public/index.html @@ -1,16 +1,18 @@ -
- - - - - - - -