stimulus-pdf-viewer-rails 0.6.0 → 0.7.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/README.md +1 -0
- data/app/assets/javascripts/stimulus-pdf-viewer.esm.js +569 -32
- data/app/assets/javascripts/stimulus-pdf-viewer.js +569 -32
- data/app/assets/stylesheets/stimulus-pdf-viewer.scss +32 -0
- data/lib/generators/stimulus_pdf_viewer/install/templates/views/_viewer.html.erb +5 -0
- data/lib/stimulus_pdf_viewer/rails/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48bd32f7b2a79bd0dda7fdebaf01985cebda00a40421abe00ba8ab8c5b653d8e
|
|
4
|
+
data.tar.gz: 50d6509cea6b6fed5e266758b7d734966d1bfddec230a204f55a0a9373c2dbfd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6714a33a74d7c1fec41122c10a9f8220b156c3d0332dba2540088c2e56a9fe7154597c07801fd4a28e25cd1636649eea54391909a62fd4ce320f6f52db22e08
|
|
7
|
+
data.tar.gz: 0d9a4057de8b3bbaaf6948374ef23c0eebd51e8e09fea30d1b7e338346374e0a7b4e3e4a42f8a36def6ba888c10cfe946a6bfb5951a649e7c9f227bc766184a5
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.7.0] - 2026-11-07
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- Updated stimulus-pdf-viewer to 0.7.0
|
|
9
|
+
|
|
10
|
+
Hyperlinks inside PDFs are now clickable in the viewer. A link written by
|
|
11
|
+
PowerPoint, Keynote, Word or InDesign (a YouTube URL on a slide, a table of
|
|
12
|
+
contents, a "see page 12" reference) used to be drawn on the page but couldn't
|
|
13
|
+
be clicked. Web and email links open in a new tab, and links to other pages
|
|
14
|
+
scroll to the exact spot they target. The PDF file was never altered, which is
|
|
15
|
+
why links always worked in a downloaded copy. See the upstream
|
|
16
|
+
[0.7.0 release notes](https://github.com/jhubert/stimulus-pdf-viewer/releases/tag/v0.7.0)
|
|
17
|
+
for details.
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- The `initial-destination-value` data attribute, and an `initial_destination`
|
|
21
|
+
local in the generated viewer partial, open the document at a named
|
|
22
|
+
destination: an anchor stored in the PDF. If the document doesn't define it,
|
|
23
|
+
the viewer falls back to `initial-page-value`. Named destinations survive the
|
|
24
|
+
document being regenerated, so they make better deep links than page numbers.
|
|
25
|
+
- A cancelable `pdf-viewer:link-clicked` event fires before a link in the PDF is
|
|
26
|
+
followed, so an app can open links itself.
|
|
27
|
+
|
|
28
|
+
### Upgrade notes
|
|
29
|
+
- The bundled stylesheet gains the `.link-layer` and `.pdf-link` rules that
|
|
30
|
+
links need. If your app copied the stylesheet instead of importing
|
|
31
|
+
`stimulus-pdf-viewer` from the gem, copy it again, or links won't be clickable.
|
|
32
|
+
|
|
5
33
|
## [0.6.0] - 2026-09-22
|
|
6
34
|
|
|
7
35
|
### Fixed
|
data/README.md
CHANGED
|
@@ -103,6 +103,7 @@ Or if you prefer to vendor the worker locally, copy it to your assets and refere
|
|
|
103
103
|
| `user-name-value` | User name for watermarks |
|
|
104
104
|
| `organization-name-value` | Organization name for watermarks |
|
|
105
105
|
| `initial-page-value` | Page to open on load |
|
|
106
|
+
| `initial-destination-value` | Named destination in the PDF to open at, falling back to `initial-page-value` if the document doesn't define it. Named destinations survive the document being regenerated, so they make better deep links than page numbers |
|
|
106
107
|
| `initial-annotation-value` | Annotation ID to highlight on load |
|
|
107
108
|
| `tracking-url-value` | Endpoint for time tracking |
|
|
108
109
|
|