This release primarily features accessibility improvements for the annotation editor and fixes for the type definitions.
Changes since v3.10.111
- Bump versions in
pdfjs.config
by @timvandermeij in #16876 - Add tagged annotations in the structure tree (bug 1850797) by @calixteman in #16886
- Fix the id used in aria-controls used to make a relationship between the popup and its parent by @calixteman in #16889
- Fix JSDoc types by @stof in #16888
- Ignore null-chars when using structTree-data in the viewer by @Snuffleupagus in #16891
- Stop using
removeNullCharacters
in theaddLinkAttributes
helper function by @Snuffleupagus in #16892 - [Type-definitions] Fix type generator to support import maps by @stof in #16890
- Update packages and translations by @Snuffleupagus in #16895
- A couple of small
InternalRenderTask
changes by @Snuffleupagus in #16881 - Drop redundant styles from .grab-to-pan-grab:active by @Rob--W in #16896
- Make annotations focusable (bug 1851489) by @calixteman in #16898
- Unconditionally render non-form annotations in the annotation layer (bug 1851498) by @calixteman in #16899
- Support downloading FileAttachment annotations with the keyboard by @Snuffleupagus in #16902
- Only call the focus/blur callbacks when it's necessary (bug 1851517) by @calixteman in #16905
- Bump actions/checkout from 3 to 4 by @dependabot in #16897
- [Editor] Avoid to use parent of editors in destroyed pages by @calixteman in #16911
- Construct the correct field name and strip out classes when searching by @calixteman in #16915
- [Editor] Add the parent tag id (if any) to the serialized editors (bug 1845087) by @calixteman in #16916
- Simplify writeObject function by @calixteman in #16921
- Slightly reduce asynchronicity when parsing Annotations by @Snuffleupagus in #16920
- Update packages and translations by @timvandermeij in #16925
- Enable unit test "creates pdf doc from non-existent URL" by @timvandermeij in #16932
- [Editor] Only get back the focus when it has been lost after an editor has been moved in the DOM by @calixteman in #16940
- Ensure that the entire PDF document is loaded before we begin saving it by @Snuffleupagus in #16941
- [Editor] Move an editor in the DOM just after having moved it on the screen by @calixteman in #16944
- [Editor] Change the style of the bounding box and the resizers (bug 1852897) by @calixteman in #16943
- [Editor] Change the colors of the outline and the resizers for selected editors in HCM by @calixteman in #16950
- Make it possible to clear the cache, used by the
getB
function insrc/core/pattern.js
by @Snuffleupagus in #16951 - Remove the remaining closures in the
src/core/colorspace.js
file by @Snuffleupagus in #16954 - Simplify the
EvaluatorPreprocessor.opMap
getter a little bit by @Snuffleupagus in #16956 - Use
await
even more in the "SaveDocument" worker-thread handler by @Snuffleupagus in #16957 - Update Puppeteer to version 21.2.1 by @timvandermeij in #16958
- Remove the closure from the
CipherTransformFactory
class by @Snuffleupagus in #16959 - Remove (some) closures from
web/debugger.js
by @Snuffleupagus in #16961 - Fix integration test "Interaction in bug1844576.pdf must check that a field has the correct formatted value" by @timvandermeij in #16962
- Fix integration test "FreeText Editor Move several FreeTexts must move several annotations" by @timvandermeij in #16964
- [Editor] Add the ability to create/update the structure tree when saving a pdf containing newly added annotations (bug 1845087) by @calixteman in #16938
- [Editor] Add a button to trigger a dialog for adding an alt text (bug 1844952) by @calixteman in #16955
- [Editor] Avoid to have some transparency in the icon used in the 'Alt text' button by @calixteman in #16972
- Fix a CSS linter issue in removing a useless comma by @calixteman in #16974
- [Editor] Use the same height as in the svg for icons for the alt-text button by @calixteman in #16975
- [Editor] Add a dialog box in order to get alt-text data (bug 1844952) by @calixteman in #16952
- [Editor] Make the border of the resizers slightly rounded by @calixteman in #16980
- [Editor] Update alt text dialog description by @calixteman in #16979
- Ignore optional content with missing /Type-entries by @Snuffleupagus in #16981
- [Editor] Allow the user to add and save an alt-text for images (bug 1844952) by @calixteman in #16977
- [Editor] Remove copy/paste listener when alt text dialog is displayed by @calixteman in #16982
- [Editor] Add a tooltip showing the alt text when hovering the alt-text button (bug 1844952) by @calixteman in #16983
- Don't try to close the
altText
dialog if it's not open (PR 16977 follow-up) by @Snuffleupagus in #16984 - [Editor] Add more telemetry for the 'add image' feature (bug 1853960) by @calixteman in #16987
- [Editor] Change some strings in the alt-text dialog by @calixteman in #16986
- [Editor] Change the colors for the disabled Save button in alt text dialoag in HCM by @calixteman in #16985
- Use the new "reporttelemetry" event in more viewer components by @Snuffleupagus in #16989
- [Editor] Add an aria-label to the alt-text button depending on its state by @calixteman in #16990
- [Editor] Tweak few values after review from UX by @calixteman in #16988
- Ensure that all "alt_text_*" save-telemetry values are boolean (PR 16987 follow-up) by @Snuffleupagus in #16991
- Enable the Stylelint
declaration-block-no-duplicate-properties
rule (issue 16995) by @Snuffleupagus in #16996 - Make one of the m-c linters happy by @calixteman in #16998
- [GeckoView] Avoid bundling the
AltTextManager
class, since it's unused by @Snuffleupagus in #16993 - [GeckoView] Exclude
annotation_editor_layer_builder.css
in the build (issue 16994) by @Snuffleupagus in #16999 - Restore the
collectFields
parameter in the Annotation code (issue 17000) by @Snuffleupagus in #17003 - Prevent wheel/touch zooming in the viewer when a dialog is open by @Snuffleupagus in #17004
- [Editor] Avoid to darken the current editor when opening the alt-text dialog by @calixteman in #17002
- [Editor] Make the altText dialog labels part of telemetry (PR 16987 follow-up) by @Snuffleupagus in #17009
- [Editor] Darken the toolbar when the alt-text dialog is opened by @calixteman in #17010
- Don't bother trying to unregister the "reporttelemetry" event listener by @Snuffleupagus in #17014
- [Editor] Tweak the save flow in the alt-text dialog by @calixteman in #17005
- [Editor] Let the Save button always enabled in the alt-text dialog by @calixteman in #17015
- Don't reset
this.#currentEditor
when destroying the dialog by @Snuffleupagus in #17011 - [Editor] Report telemetry when closing the altText dialog with
Esc
(PR 16987 follow-up) by @Snuffleupagus in #17012 - [Editor] Disable context menu on alt-text button and in the associated dialog by @calixteman in #17016
- Fix integration test "FreeText Editor FreeText (edit existing in double clicking on it) must move an annotation" by @timvandermeij in #16967
- Fix integration test "Interaction in issue15053.pdf must check that a button and text field with a border are hidden" by @timvandermeij in #16970
- Use one
noContextMenu
function in both the src/- and web/-folders by @Snuffleupagus in #17017 - Update packages and translations by @Snuffleupagus in #17020
- [Editor] The ::before containter containing the border of a selected editor mustn't catch mouse events (bug 1854818) by @calixteman in #17019
- Fix integration test "Interaction in autoprint.pdf must check if printing is triggered when the document is open" by @timvandermeij in #17021
- [Editor] Add an integration test for the new alt-text flow by @calixteman in #17018
- [Editor] Add padding to the altText-button to account for different locales by @Snuffleupagus in #17023
- Fix integration test "Interaction in issue14307.pdf (1) must check input for US zip format" by @timvandermeij in #17022