{ "name": "polaris-doc-viewer", "version": "0.5.20", "description": "Document viewer for react. Renders online/local documents.", "author": "luchang", "files": [ "dist/**" ], "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/esm/index.d.ts", "dependencies": { "artplayer": "^5.1.1", "babel-loader": "6.1.0", "i18next": "^23.11.1", "i18next-browser-languagedetector": "^7.2.1", "i18next-http-backend": "^2.5.0", "pdfjs-dist": "2.4.456", "polaris-docx-preview": "0.3.2", "polaris-excel-viewer": "1.4.4", "polaris-icon": "^8.5.0", "polaris-offices-viewer": "0.1.3", "polaris-xmind-viewer": "1.2.6", "react-i18next": "^14.1.0", "react-pdf": "5.0.0", "styled-components": "^5.1.1", "wl-msg-reader": "^0.2.0", "xmind-embed-viewer": "^1.2.0" }, "peerDependencies": { "polaris-react-component": "*" }, "devDependencies": { "@storybook/react": "^8.0.5", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "@types/jest": "^24.0.0", "@types/node": "^12.0.0", "@types/pdfjs-dist": "2.1.5", "@types/react": "^16.9.46", "@types/react-dom": "^16.9.8", "@types/react-pdf": "4.0.5", "@types/styled-components": "^5.1.2", "generate-changelog": "^1.8.0", "prettier": "^2.0.0", "react": "^16.9.0", "react-dom": "^16.9.0", "react-scripts": "3.4.3", "typescript": "^4.7.4", "webpack": "5.91.0" }, "scripts": { "start": "react-scripts --openssl-legacy-provider start", "build": "rm -rf dist && npm run build:esm && npm run build:cjs", "build:esm": "tsc --noEmit false", "build:cjs": "tsc --noEmit false --module commonjs --outDir ./dist/cjs", "test": "react-scripts test", "eject": "react-scripts eject", "version:patch": "npm run version:pre && npm run version:changelog && npm version patch && npm run version:post", "version:minor": "npm run version:pre && npm run version:changelog && npm version minor && npm run version:post", "version:major": "npm run version:pre && npm run version:changelog && npm version major && npm run version:post", "version:pre": "if [ $(git rev-parse --abbrev-ref HEAD) != 'master' ]; then echo \"\\033[1m\\033[31mCurrently on $(git rev-parse --abbrev-ref HEAD) branch. Please checkout master.\\033[0m\"; exit 1; else exit 0; fi", "version:changelog": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md'", "version:post": "git push origin master && git push origin master --tags", "build-release:patch": "react-scripts test --watchAll=false && npm run build && npm run version:patch", "build-release:minor": "react-scripts test --watchAll=false && npm run build && npm run version:minor", "build-release:major": "react-scripts test --watchAll=false && npm run build && npm run version:major", "format": "prettier --write \"src/**/*.{ts,tsx}\"", "yalc-link": "pnpm run build && yalc publish --push" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }