@hmcts/media-viewer 2.8.1 → 2.8.2
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/bundles/hmcts-media-viewer.umd.js +7 -5
- package/bundles/hmcts-media-viewer.umd.js.map +1 -1
- package/bundles/hmcts-media-viewer.umd.min.js +1 -1
- package/bundles/hmcts-media-viewer.umd.min.js.map +1 -1
- package/esm2015/lib/media-viewer.component.js +8 -6
- package/esm5/lib/media-viewer.component.js +8 -6
- package/fesm2015/hmcts-media-viewer.js +7 -5
- package/fesm2015/hmcts-media-viewer.js.map +1 -1
- package/fesm5/hmcts-media-viewer.js +7 -5
- package/fesm5/hmcts-media-viewer.js.map +1 -1
- package/hmcts-media-viewer-v2.8.2.tgz +0 -0
- package/hmcts-media-viewer.metadata.json +1 -1
- package/lib/media-viewer.component.d.ts +1 -0
- package/package.json +1 -1
- package/hmcts-media-viewer-v2.8.1.tgz +0 -0
|
@@ -5769,14 +5769,13 @@
|
|
|
5769
5769
|
if (changes.url) {
|
|
5770
5770
|
this.toolbarEvents.reset();
|
|
5771
5771
|
this.commentService.resetCommentSet();
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
this.store.dispatch(new SetDocumentId(documentId));
|
|
5772
|
+
this.documentId = this.extractDMStoreDocId(this.url);
|
|
5773
|
+
this.store.dispatch(new SetDocumentId(this.documentId));
|
|
5775
5774
|
if (this.enableAnnotations && !(this.multimediaContent || this.unsupportedContent)) {
|
|
5776
|
-
this.store.dispatch(new LoadAnnotationSet(documentId));
|
|
5775
|
+
this.store.dispatch(new LoadAnnotationSet(this.documentId));
|
|
5777
5776
|
}
|
|
5778
5777
|
if (this.enableRedactions && !(this.multimediaContent || this.unsupportedContent)) {
|
|
5779
|
-
this.store.dispatch(new LoadRedactions(documentId));
|
|
5778
|
+
this.store.dispatch(new LoadRedactions(this.documentId));
|
|
5780
5779
|
}
|
|
5781
5780
|
if (this.contentType === 'image') {
|
|
5782
5781
|
this.documentTitle = null;
|
|
@@ -5913,6 +5912,7 @@
|
|
|
5913
5912
|
*/
|
|
5914
5913
|
function (url) {
|
|
5915
5914
|
url = url.includes('/documents/') ? url.split('/documents/')[1] : url;
|
|
5915
|
+
url = url.includes('/documentsv2/') ? url.split('/documentsv2/')[1] : url;
|
|
5916
5916
|
return url.replace('/binary', '');
|
|
5917
5917
|
};
|
|
5918
5918
|
/**
|
|
@@ -6020,6 +6020,8 @@
|
|
|
6020
6020
|
MediaViewerComponent.prototype.typeException;
|
|
6021
6021
|
/** @type {?} */
|
|
6022
6022
|
MediaViewerComponent.prototype.hasDifferentPageSize$;
|
|
6023
|
+
/** @type {?} */
|
|
6024
|
+
MediaViewerComponent.prototype.documentId;
|
|
6023
6025
|
/**
|
|
6024
6026
|
* @type {?}
|
|
6025
6027
|
* @private
|