stimulus-pdf-viewer-rails 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 838e9d480a11d8bbf5a590bad2ab618624c1ec95284a1b7aa28b2c40468447ab
4
- data.tar.gz: 7296bfffca896a43fb16a50a3d271a790eab5541d3744aef8df90ae336e2767a
3
+ metadata.gz: 48bd32f7b2a79bd0dda7fdebaf01985cebda00a40421abe00ba8ab8c5b653d8e
4
+ data.tar.gz: 50d6509cea6b6fed5e266758b7d734966d1bfddec230a204f55a0a9373c2dbfd
5
5
  SHA512:
6
- metadata.gz: 32804a93259414ccee6b961564c6587204c6deadcbf5bf07de69d1872751eb125c89099ec5e69125934f7a4ca85974b9bdf5b2b620912725bccb599ce27e082e
7
- data.tar.gz: '099ea9e6b131bfba5f48b4a63818c03841e05b5da782f51adca84418bc9ee3538b8cc47982e169e76386acaa7c125278bb3794f53ac15a021efd152c1bbf9c37'
6
+ metadata.gz: b6714a33a74d7c1fec41122c10a9f8220b156c3d0332dba2540088c2e56a9fe7154597c07801fd4a28e25cd1636649eea54391909a62fd4ce320f6f52db22e08
7
+ data.tar.gz: 0d9a4057de8b3bbaaf6948374ef23c0eebd51e8e09fea30d1b7e338346374e0a7b4e3e4a42f8a36def6ba888c10cfe946a6bfb5951a649e7c9f227bc766184a5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,55 @@
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
+
33
+ ## [0.6.0] - 2026-09-22
34
+
35
+ ### Fixed
36
+ - Updated stimulus-pdf-viewer to 0.6.0
37
+
38
+ Annotated downloads now include everything shown on screen. Underlines were
39
+ never exported, because the download code expected an `annotation_type` of
40
+ `underline` while the underline tool created `line`. Comments on highlights,
41
+ underlines, and drawings are now exported too. Curly quotes, em dashes, and
42
+ non-Latin text in comments and notes no longer come out garbled. See the
43
+ upstream
44
+ [0.6.0 release notes](https://github.com/jhubert/stimulus-pdf-viewer/releases/tag/v0.6.0)
45
+ for details.
46
+
47
+ ### Upgrade notes
48
+ - New underlines are saved with `annotation_type: "underline"` instead of
49
+ `"line"`. Make sure your `Annotation` model accepts `underline`; with an
50
+ integer enum, rename the `line` key in place. Stored `"line"` records keep
51
+ working, but they are deprecated. The upstream release notes give the SQL to
52
+ migrate them.
53
+
5
54
  ## [0.5.0] - 2026-08-11
6
55
 
7
56
  ### Added
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