teamsync-pdf-viewer 2.2.0 → 2.2.1

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 CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to `teamsync-pdf-viewer` are documented here.
4
4
 
5
+ ## [2.2.1] — 2026-11-03
6
+
7
+ ### Security
8
+ - **Cryptographically Secure Identifier Generation**: Replaced pseudo-random number generator routines with cryptographically secure random values (`crypto.randomUUID()` and `crypto.getRandomValues()`) across fallback blob URLs, manual redactions, and form roles, resolving CodeQL alert CWE-338.
9
+ - **Vulnerability Patches & Dependency Updates**:
10
+ - Upgraded `vite` to `^8.3.5` resolving launch-editor command execution and filesystem bypass advisories.
11
+ - Upgraded `vitest` to `^5.0.5` (resolving to `5.1.0`) fixing `@vitest/mocker` code injection and path traversal advisories.
12
+ - Upgraded `vite-plugin-dts` to `^5.1.2` resolving `minimatch` glob amplification denial-of-service advisory.
13
+ - Upgraded `undici` to `^8.12.3` resolving cache poisoning, TLS options dropping, and DoS advisories.
14
+ - Upgraded `fast-uri` to `^3.1.9` and `source-map-js` to `^1.2.2`.
15
+ - Achieved clean `npm audit` with 0 reported vulnerabilities.
16
+
17
+ ## [2.2.0] — 2026-10-20
18
+
19
+ ### Added
20
+ - **Network Authentication Headers**: Added `httpHeaders` and `customHeaders` options to `WebViewerOptions` and `loadDocument(url, options)` allowing authenticated document requests with session tokens and custom HTTP headers.
21
+ - **Progressive Streaming Controls**: Added `rangeChunkSize`, `disableStream`, `disableAutoFetch`, and `disableRange` options to control document downloading behavior and prevent background bandwidth consumption.
22
+ - **Cross-Environment Compatibility**: Enhanced `createBlobUrl` fallback for environments lacking native `URL.createObjectURL(blob)` support (e.g. Node 22 / jsdom).
23
+
5
24
  ## [2.0.0] — 2026-09-26
6
25
 
7
26
  ### Added
package/README.md CHANGED
@@ -4,30 +4,32 @@
4
4
 
5
5
  ![TeamSync PDF Viewer UI](https://raw.githubusercontent.com/angelbot-ai/TeamSync-PDF-Viewer/main/docs/images/viewer_ui.png)
6
6
 
7
- ### **100% Open Source. 100% Client-Side. Enterprise SDK.**
7
+ ### Advanced Web PDF Viewer, Annotation and PDF Forms with PDF Enterprise SDK.
8
8
 
9
- [![License: CPAL-1.0](https://img.shields.io/badge/License-CPAL--1.0-blue.svg)](LICENSE)
10
9
  [![Live Demo](https://img.shields.io/badge/Live%20Demo-pdfviewer.teamsync.com-000000.svg)](https://pdfviewer.teamsync.com/)
11
10
  [![NPM Version](https://img.shields.io/badge/npm-teamsync--pdf--viewer-blue.svg)](https://www.npmjs.com/package/teamsync-pdf-viewer)
12
11
  [![React 19](https://img.shields.io/badge/React-19-61dafb.svg)](https://reactjs.org/)
13
12
  [![Vite 8](https://img.shields.io/badge/Vite-8.2-646cff.svg)](https://vitejs.dev/)
14
13
  [![TypeScript](https://img.shields.io/badge/TypeScript-6.0-blue.svg)](https://www.typescriptlang.org/)
15
14
 
16
- *No paywalls. No vendor lock-in. No server dependencies.*
17
15
  Try the **[Interactive Live Demo](https://pdfviewer.teamsync.com/)** or integrate the high-performance PDF Viewer SDK directly into your React applications.
18
16
 
19
17
  </div>
20
18
 
21
19
  ---
22
20
 
23
- ## 🚀 Why TeamSync PDF Viewer?
21
+ **TeamSync PDF Viewer** allows developers to embed advanced viewing, annotation, and forms capabilities directly into any web application.
22
+
23
+ ⚡ **Universal Document Viewing**: It accurately renders PDFs, Microsoft Office files (Word, Excel, PowerPoint), CAD drawings, and images directly in the browser. It handles massive, complex files smoothly with vector-based zooming and lightning-fast rendering.
24
+
25
+ • **True Client-Side Processing**: Because it processes everything locally using the browser's resources, sensitive files never leave the user's device. This makes it ideal for highly secure environments (like finance, healthcare, or legal apps) and significantly reduces server infrastructure costs.
26
+
27
+ • **Rich Annotation & Collaboration**: It provides built-in UI tools for highlighting text, adding sticky notes, drawing shapes, stamping, and text callouts. It supports real-time collaboration so multiple users can comment and mark up the same document simultaneously.
24
28
 
25
- Traditional commercial PDF viewers force developers into expensive per-domain licenses, opaque sales calls, and heavy server-side processing dependencies. **TeamSync PDF Viewer** is built from the ground up to solve these pain points.
29
+ • **Interactive Forms & Digital Signatures**: Users can fill out existing PDF forms, build new forms from scratch, and apply secure e-signatures or digital signatures.
30
+
31
+ • **Advanced Text Editing & Redaction**: It allows users to edit underlying text directly within a PDF as if they were in a word processor. It also features programmatic and manual redaction, permanently wiping sensitive data from the document's code.
26
32
 
27
- - 💰 **Zero-Cost, Transparent Licensing**: Uncapped usage, no per-server fees, and no commercial paywalls. 100% free and open-source under CPAL 1.0.
28
- - ⚡ **100% Client-Side PDF Processing**: Documents never leave the browser sandbox. Process, redact, and render PDFs entirely on the client.
29
- - 🔌 **Universal WebViewer API**: Clean, intuitive `WebViewer({...})` API interface that makes integrating into your web applications effortless.
30
- - 🎨 **Headless & Customizable**: Built for modern React 19 SPA lifecycles. No bloated iFrames to fight—customize toolbars, sidebars, context menus, and controls natively.
31
33
 
32
34
  ---
33
35
 
@@ -308,6 +310,8 @@ TeamSync-PDF-Viewer/
308
310
  Distributed under the **CPAL 1.0 (Common Public Attribution License)**.
309
311
  100% Free and Open Source for personal and commercial usage.
310
312
 
313
+ [![License: CPAL-1.0](https://img.shields.io/badge/License-CPAL--1.0-blue.svg)](LICENSE)
314
+
311
315
  ---
312
316
 
313
317
  <div align="center">
@@ -3,4 +3,5 @@
3
3
  * Stable, collision-free annotation ids. They double as the XFDF `name` attribute, which hosts use
4
4
  * to match persisted rows to live annotations, so they must never be timestamps.
5
5
  */
6
+ export declare function generateSecureId(prefix?: string): string;
6
7
  export declare function newAnnotationId(): string;