teamsync-pdf-viewer 1.0.3 → 1.2.0
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/CHANGELOG.md +82 -0
- package/LICENSE +96 -1
- package/README.md +186 -165
- package/dist/src/annotations/AnnotationManager.d.ts +90 -0
- package/dist/src/annotations/geometry.d.ts +51 -0
- package/dist/src/annotations/ids.d.ts +6 -0
- package/dist/src/annotations/types.d.ts +72 -0
- package/dist/src/annotations/xfdf.d.ts +18 -0
- package/dist/src/components/AboutModal.d.ts +6 -0
- package/dist/src/components/AnnotationContextMenu.d.ts +17 -0
- package/dist/src/components/DocumentViewer.d.ts +50 -0
- package/dist/src/components/Header.d.ts +36 -0
- package/dist/src/components/InsertLinkModal.d.ts +10 -0
- package/dist/src/components/LeftSidebar.d.ts +10 -0
- package/dist/src/components/PageContextMenu.d.ts +20 -0
- package/dist/src/components/PageRenderer.d.ts +40 -0
- package/dist/src/components/SettingsModal.d.ts +8 -0
- package/dist/src/components/Sidebar.d.ts +18 -0
- package/dist/src/components/TeamSyncViewer.d.ts +35 -0
- package/dist/src/components/TextSelectionMenu.d.ts +18 -0
- package/dist/src/core/ViewerInstance.d.ts +94 -0
- package/dist/src/core/busContext.d.ts +3 -0
- package/dist/src/core/createWebViewer.d.ts +5 -0
- package/dist/src/core/eventBus.d.ts +25 -0
- package/dist/src/core/export.d.ts +23 -0
- package/dist/src/core/pdfAssets.d.ts +27 -0
- package/dist/src/core/print.d.ts +12 -0
- package/dist/src/core/types.d.ts +108 -0
- package/dist/src/hooks/usePdfSearch.d.ts +23 -0
- package/dist/src/hooks/useShortcuts.d.ts +13 -0
- package/dist/src/hooks/useViewerBus.d.ts +7 -0
- package/dist/src/index.d.ts +29 -0
- package/dist/src/plugins/index.d.ts +1 -0
- package/dist/src/plugins/types.d.ts +26 -0
- package/dist/src/utils/findRegexRedactions.d.ts +6 -0
- package/dist/src/utils/rotationUtils.d.ts +32 -0
- package/dist/style.css +2 -0
- package/dist/teamsync-pdf-viewer.js +6177 -0
- package/dist/teamsync-pdf-viewer.js.map +1 -0
- package/package.json +48 -15
- package/dist/TeamSync.pdf +0 -0
- package/dist/ThirdPartyNotices.txt +0 -639
- package/dist/favicon.svg +0 -16
- package/dist/icons.svg +0 -24
- package/dist/index.d.ts +0 -1
- package/dist/teamsync-pdf-viewer.css +0 -2
- package/dist/teamsync-pdf-viewer.es.js +0 -51524
- package/dist/teamsync-pdf-viewer.umd.cjs +0 -327
- package/dist/webviewer.js +0 -92
package/package.json
CHANGED
|
@@ -1,22 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teamsync-pdf-viewer",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"license": "CPAL-1.0",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "TeamSync PDF Viewer SDK — client-side PDF viewing, annotation, search, redaction and watermarking for React.",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/*.css"
|
|
9
|
+
],
|
|
10
|
+
"main": "./dist/teamsync-pdf-viewer.js",
|
|
11
|
+
"module": "./dist/teamsync-pdf-viewer.js",
|
|
12
|
+
"types": "./dist/src/index.d.ts",
|
|
10
13
|
"exports": {
|
|
11
14
|
".": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
+
"types": "./dist/src/index.d.ts",
|
|
16
|
+
"import": "./dist/teamsync-pdf-viewer.js",
|
|
17
|
+
"default": "./dist/teamsync-pdf-viewer.js"
|
|
15
18
|
},
|
|
16
|
-
"./style.css": "./dist/style.css"
|
|
19
|
+
"./style.css": "./dist/style.css",
|
|
20
|
+
"./package.json": "./package.json"
|
|
17
21
|
},
|
|
18
22
|
"files": [
|
|
19
|
-
"dist"
|
|
23
|
+
"dist",
|
|
24
|
+
"CHANGELOG.md",
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"keywords": [
|
|
29
|
+
"pdf",
|
|
30
|
+
"pdf-viewer",
|
|
31
|
+
"react",
|
|
32
|
+
"pdfjs",
|
|
33
|
+
"annotations",
|
|
34
|
+
"redaction",
|
|
35
|
+
"watermark",
|
|
36
|
+
"teamsync"
|
|
20
37
|
],
|
|
21
38
|
"repository": {
|
|
22
39
|
"type": "git",
|
|
@@ -29,28 +46,44 @@
|
|
|
29
46
|
"publishConfig": {
|
|
30
47
|
"access": "public"
|
|
31
48
|
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=20"
|
|
51
|
+
},
|
|
32
52
|
"scripts": {
|
|
33
53
|
"dev": "vite",
|
|
54
|
+
"typecheck": "tsc -b",
|
|
34
55
|
"build": "tsc -b && vite build",
|
|
35
56
|
"build:app": "tsc -b && vite build --config vite.config.app.ts",
|
|
36
57
|
"lint": "oxlint",
|
|
58
|
+
"test": "vitest run",
|
|
59
|
+
"test:watch": "vitest",
|
|
60
|
+
"verify:package": "node scripts/verify-package.mjs",
|
|
37
61
|
"preview": "vite preview"
|
|
38
62
|
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"pdfjs-dist": "^6.2.0",
|
|
65
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
66
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
67
|
+
},
|
|
39
68
|
"dependencies": {
|
|
40
69
|
"lucide-react": "^1.28.0",
|
|
41
|
-
"pdf-lib": "^1.17.1"
|
|
42
|
-
"pdfjs-dist": "^6.2.108",
|
|
43
|
-
"react": "^19.2.8",
|
|
44
|
-
"react-dom": "^19.2.8"
|
|
70
|
+
"pdf-lib": "^1.17.1"
|
|
45
71
|
},
|
|
46
72
|
"devDependencies": {
|
|
73
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
47
74
|
"@types/node": "^24.13.3",
|
|
48
75
|
"@types/react": "^19.2.17",
|
|
49
76
|
"@types/react-dom": "^19.2.3",
|
|
50
77
|
"@vitejs/plugin-react": "^6.0.4",
|
|
78
|
+
"jsdom": "^26.1.0",
|
|
51
79
|
"oxlint": "^1.75.0",
|
|
80
|
+
"pdfjs-dist": "^6.2.108",
|
|
81
|
+
"publint": "^0.3.12",
|
|
82
|
+
"react": "^19.2.8",
|
|
83
|
+
"react-dom": "^19.2.8",
|
|
52
84
|
"typescript": "~6.0.2",
|
|
53
85
|
"vite": "^8.2.0",
|
|
54
|
-
"vite-plugin-dts": "^4.5.3"
|
|
86
|
+
"vite-plugin-dts": "^4.5.3",
|
|
87
|
+
"vitest": "^3.2.4"
|
|
55
88
|
}
|
|
56
89
|
}
|
package/dist/TeamSync.pdf
DELETED
|
Binary file
|