pdfjs-annotation-extension-for-react 0.1.2

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/package.json ADDED
@@ -0,0 +1,119 @@
1
+ {
2
+ "name": "pdfjs-annotation-extension-for-react",
3
+ "version": "0.1.2",
4
+ "description": "A modern, extensible React PDF viewer and annotator built on top of PDF.js, designed for enterprise-grade document reading and annotation scenarios.",
5
+ "keywords": [
6
+ "pdf",
7
+ "viewer",
8
+ "annotation",
9
+ "react",
10
+ "pdfjs"
11
+ ],
12
+ "author": "Laomai<codefee@foxmail.com>",
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/Laomai-codefee/react-pdf-viewer-plus.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/Laomai-codefee/react-pdf-viewer-plus/issues"
20
+ },
21
+ "homepage": "https://github.com/Laomai-codefee/react-pdf-viewer-plus#readme",
22
+ "type": "module",
23
+ "main": "dist/index.cjs.js",
24
+ "module": "dist/index.es.js",
25
+ "types": "dist/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "import": "./dist/index.es.js",
30
+ "require": "./dist/index.cjs.js"
31
+ },
32
+ "./style": "./dist/react-pdf-viewer-plus.css"
33
+ },
34
+ "sideEffects": [
35
+ "*.css",
36
+ "*.scss"
37
+ ],
38
+ "files": [
39
+ "dist",
40
+ "README.md",
41
+ "LICENSE"
42
+ ],
43
+ "scripts": {
44
+ "dev": "vite",
45
+ "build": "tsc && vite build",
46
+ "build:lib": "vite build",
47
+ "build:docs": "vitepress build docs",
48
+ "preview": "vite preview",
49
+ "storybook": "storybook dev -p 6006",
50
+ "build-storybook": "storybook build",
51
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
52
+ "lint:fix": "eslint . --ext ts,tsx --fix",
53
+ "format": "prettier --write \"src/**/*.{ts,tsx,css,md}\"",
54
+ "test": "jest --passWithNoTests",
55
+ "test:watch": "jest --watch",
56
+ "test:coverage": "jest --coverage",
57
+ "prepare": "husky install",
58
+ "prepublishOnly": "npm run build && npm run test"
59
+ },
60
+ "dependencies": {
61
+ "@floating-ui/dom": "^1.7.4",
62
+ "@radix-ui/themes": "^3.2.1",
63
+ "exceljs": "^4.4.0",
64
+ "file-saver": "^2.0.5",
65
+ "i18next": "^25.6.3",
66
+ "konva": "^9.3.14",
67
+ "nanoid": "^5.1.6",
68
+ "pdf-lib": "^1.17.1",
69
+ "pdfjs-dist": "~4.3.136",
70
+ "react-colorful": "^5.6.1",
71
+ "react-i18next": "^16.3.4",
72
+ "react-icons": "^5.5.0",
73
+ "web-highlighter": "^0.7.4",
74
+ "zustand": "^4.4.4"
75
+ },
76
+ "peerDependencies": {
77
+ "react": "^18.0.0",
78
+ "react-dom": "^18.0.0"
79
+ },
80
+ "devDependencies": {
81
+ "@testing-library/jest-dom": "^6.1.4",
82
+ "@testing-library/react": "^13.4.0",
83
+ "@testing-library/user-event": "^14.5.1",
84
+ "@types/file-saver": "^2.0.7",
85
+ "@types/jest": "^29.5.8",
86
+ "@types/react": "^18.2.37",
87
+ "@types/react-dom": "^18.2.15",
88
+ "@typescript-eslint/eslint-plugin": "^6.10.0",
89
+ "@typescript-eslint/parser": "^6.10.0",
90
+ "@vitejs/plugin-react": "^4.1.1",
91
+ "autoprefixer": "^10.4.16",
92
+ "eslint": "^8.53.0",
93
+ "eslint-plugin-react-hooks": "^4.6.0",
94
+ "eslint-plugin-react-refresh": "^0.4.4",
95
+ "husky": "^8.0.3",
96
+ "jest": "^29.7.0",
97
+ "jest-environment-jsdom": "^29.7.0",
98
+ "lint-staged": "^15.0.2",
99
+ "postcss": "^8.4.31",
100
+ "prettier": "^3.0.3",
101
+ "react": "^18.2.0",
102
+ "react-dom": "^18.2.0",
103
+ "sass-embedded": "^1.93.3",
104
+ "ts-jest": "^29.1.1",
105
+ "typescript": "^5.2.2",
106
+ "vite": "^7.2.2",
107
+ "vite-plugin-dts": "^3.6.3",
108
+ "vitepress": "^1.0.0-rc.25"
109
+ },
110
+ "lint-staged": {
111
+ "*.{js,jsx,ts,tsx}": [
112
+ "eslint --fix",
113
+ "prettier --write"
114
+ ],
115
+ "*.{json,css,md}": [
116
+ "prettier --write"
117
+ ]
118
+ }
119
+ }