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.
Files changed (49) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/LICENSE +96 -1
  3. package/README.md +186 -165
  4. package/dist/src/annotations/AnnotationManager.d.ts +90 -0
  5. package/dist/src/annotations/geometry.d.ts +51 -0
  6. package/dist/src/annotations/ids.d.ts +6 -0
  7. package/dist/src/annotations/types.d.ts +72 -0
  8. package/dist/src/annotations/xfdf.d.ts +18 -0
  9. package/dist/src/components/AboutModal.d.ts +6 -0
  10. package/dist/src/components/AnnotationContextMenu.d.ts +17 -0
  11. package/dist/src/components/DocumentViewer.d.ts +50 -0
  12. package/dist/src/components/Header.d.ts +36 -0
  13. package/dist/src/components/InsertLinkModal.d.ts +10 -0
  14. package/dist/src/components/LeftSidebar.d.ts +10 -0
  15. package/dist/src/components/PageContextMenu.d.ts +20 -0
  16. package/dist/src/components/PageRenderer.d.ts +40 -0
  17. package/dist/src/components/SettingsModal.d.ts +8 -0
  18. package/dist/src/components/Sidebar.d.ts +18 -0
  19. package/dist/src/components/TeamSyncViewer.d.ts +35 -0
  20. package/dist/src/components/TextSelectionMenu.d.ts +18 -0
  21. package/dist/src/core/ViewerInstance.d.ts +94 -0
  22. package/dist/src/core/busContext.d.ts +3 -0
  23. package/dist/src/core/createWebViewer.d.ts +5 -0
  24. package/dist/src/core/eventBus.d.ts +25 -0
  25. package/dist/src/core/export.d.ts +23 -0
  26. package/dist/src/core/pdfAssets.d.ts +27 -0
  27. package/dist/src/core/print.d.ts +12 -0
  28. package/dist/src/core/types.d.ts +108 -0
  29. package/dist/src/hooks/usePdfSearch.d.ts +23 -0
  30. package/dist/src/hooks/useShortcuts.d.ts +13 -0
  31. package/dist/src/hooks/useViewerBus.d.ts +7 -0
  32. package/dist/src/index.d.ts +29 -0
  33. package/dist/src/plugins/index.d.ts +1 -0
  34. package/dist/src/plugins/types.d.ts +26 -0
  35. package/dist/src/utils/findRegexRedactions.d.ts +6 -0
  36. package/dist/src/utils/rotationUtils.d.ts +32 -0
  37. package/dist/style.css +2 -0
  38. package/dist/teamsync-pdf-viewer.js +6177 -0
  39. package/dist/teamsync-pdf-viewer.js.map +1 -0
  40. package/package.json +48 -15
  41. package/dist/TeamSync.pdf +0 -0
  42. package/dist/ThirdPartyNotices.txt +0 -639
  43. package/dist/favicon.svg +0 -16
  44. package/dist/icons.svg +0 -24
  45. package/dist/index.d.ts +0 -1
  46. package/dist/teamsync-pdf-viewer.css +0 -2
  47. package/dist/teamsync-pdf-viewer.es.js +0 -51524
  48. package/dist/teamsync-pdf-viewer.umd.cjs +0 -327
  49. 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",
3
+ "version": "1.2.0",
4
4
  "license": "CPAL-1.0",
5
- "description": "Enterprise PDF Viewer SDK - 100% Client-Side WebAssembly PDF Engine for React",
5
+ "description": "TeamSync PDF Viewer SDK — client-side PDF viewing, annotation, search, redaction and watermarking for React.",
6
6
  "type": "module",
7
- "main": "./dist/teamsync-pdf-viewer.umd.cjs",
8
- "module": "./dist/teamsync-pdf-viewer.es.js",
9
- "types": "./dist/index.d.ts",
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
- "import": "./dist/teamsync-pdf-viewer.es.js",
13
- "require": "./dist/teamsync-pdf-viewer.umd.cjs",
14
- "types": "./dist/index.d.ts"
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