teamsync-pdf-viewer 1.7.0 → 1.7.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 +8 -0
- package/dist/teamsync-pdf-viewer.js +610 -582
- package/dist/teamsync-pdf-viewer.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `teamsync-pdf-viewer` are documented here.
|
|
4
4
|
|
|
5
|
+
## [1.7.1] — 2026-09-15
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **Default Responsive Fit-Width**: Resolved an issue where omitting `initialScale` prevented `ResizeObserver` from auto-refitting the document when the browser window or viewer container resized. Now defaults to `'fit-width'` and `{ type: 'fit-width', ratio: 1.0 }` when no explicit numeric zoom is provided.
|
|
9
|
+
- **Dynamic Horizontal Page Centering**: Added live `containerDimensions` state tracking so that pages automatically re-center horizontally in real-time during window resize and sidebar toggles, eliminating stale pixel offsets and right-edge clipping.
|
|
10
|
+
- **Programmatic Zoom Tracking**: Fixed dangling programmatic scale flag when `newScale === scale` during minor resize steps so manual zoom interactions properly clear auto-fit mode.
|
|
11
|
+
- **Window Resize Event Listener**: Added window `resize` event listener alongside `ResizeObserver` for comprehensive container refitting across all viewport changes.
|
|
12
|
+
|
|
5
13
|
## [1.7.0] — 2026-09-15
|
|
6
14
|
|
|
7
15
|
### Added
|