Technically not a breaking change, but there are new namespaces on the instance object for Core and UI. You can find more details and examples inside the migration guide.
WebViewer Core
New
Added the FormFieldCreationManager as well as several new tools to allow users to create form fields. Note that these new tools are used in the UI's new forms toolbar.
Added the ability to view doc, xls and ppt files completely on the client side
Added support for adding/editing/reorganizing bookmarks in the outline panel. Note that fullAPI: true needs to be enabled.
Added support for rotating freetext, stamp, rectangle and ellipse annotations
Added a new Core namespace which replaces the CoreControls namespace and now contains all the other namespaces (e.g. Annotations, Tools, etc). Note that the previous namespace structure is still usable but deprecated. See the migration guide for more details
Added support for adding 3D annotations to a document in WebViewer. Note that the annotations can be saved in XFDF but are not currently merged into the PDF when downloading.
Updated the three panel diff sample to have better performance, handle rotation better and show differences in annotations
Added the useStamp API on the RubberStampCreateTool. When called on an instance of this tool it will immediately create a stamp with the provided properties that can be added to the page.
Updated the setCustomData function to only take in strings, and the getCustomData function to only return strings. The CustomData property has been removed. This is for compatibility with other platforms and more information can be found in the migration guide
Added better crash reporting for office documents
Added support for displaying file attachment annotations created by Outlook
Added support for displaying the appearance of readonly text widgets
Added support for symmetric annotation resizing. Holding alt/option and resizing will maintain the center point while resizing in all directions. Holding alt/option and shift while resizing will do the same thing while also maintaining the aspect ratio.
Improving the zooming behavior so that annotations don't blink when changing the zoom level
Updated annotation NoZoom rendering to be consistent. Now all annotations will properly render with the NoZoom property set to true.
Added support for the documentFileName property in embedded JS
Added support for displaying different checkbox and radio button styles (e.g. circle, square, star, cross, rectangle, diamond)
Added the refreshAppearances API on field objects which will refresh the appearance of each widget associated with that field
When deselectAllAnnotations is called, now the annotationSelected event will return an array of the previously selected annotations, not null
Updated the expected property name of the parameter to documentViewer.select to be pageNumber instead of pageIndex
Updated the pageList parameter passed to setPagesUpdatedInternalAnnotationsTransform from 0-indexed page numbers to 1-indexed
Fixes
Fixed issue where a freetext annotation with a callout intent is treated as a normal freetext if there are no callout line values
Fixed issue where the measurement value for perimeter and area annotations wasn't being updated as the annotation was created
Fixed issue where using DocumentViewer directly inside an Angular project wouldn't fire iframe loading events properly because of how Angular changes the event handling
Fixed issue where the documentViewer.setViewportRenderMode API wasn't working properly
Fixed issue where the text height wasn't calculated properly for freetext annotations in Safari
Fixed issue where autosized freetext annotations didn't work correctly on rotated pages
Fixed issue with some embedded JS scripts in IE11
Fixed issue where undo didn't work in certain cases
Fixed issue with surrogate handling in XOD rendering
Fixed issue where Firefox and Safari were scaling down checkboxes unnecessarily
Fixed issue where page open actions for the first page wouldn't fire if the document loaded wasn't the first one
Fixed issue where the optimize script wouldn't work with the npm package
Fixed issue where signatures with a white background weren't able to be signed
Fixed issue where freetext annotations could be partially initialized in a bad state programmatically
Fixed issue where XOD canvas elements with opacity wouldn't be blended correctly
Fixed issue where WebViewer was capping the maximum font size for auto-sized text widgets
WebViewer UI
New
Added a new "Forms" toolbar which provides tools to create different form fields. A form style menu is also available to edit various styles on existing form fields.
Added a "Fill and Sign" toolbar which provides tools to more easily fill and sign documents that don't include fillable forms (e.g. scanned documents)
The legacy UI will no longer be updated to work with WebViewer Core 8.0 or newer versions
Added the UI namespace on the WebViewer instance object. This namespace includes all UI APIs and constants.
Changing the freetext fill and stroke will now update the icon color in the UI
Improved handling of nested and locked layers in the layers panel
Updated the page navigation component to automatically fade out after a period of inactivity so that it doesn't block the page content. It will return when scrolling or hovering. The instance.UI.disableFadePageNavigationComponent API is available if you would like to disable this behavior.
Added support for multiple page selection in the thumbnail panel with shift + click
Updated extract pages modal to allow the extracted pages to be removed at the same time
Added support for sorting and filtering by annotation color in the notes panel
Adjusted the behavior of the annotation style popup so that if there was not enough space on the bottom or top of the annotation it would position itself on whichever side had more space