@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
|
@@ -5564,14 +5564,13 @@ var MediaViewerComponent = /** @class */ (function () {
|
|
|
5564
5564
|
if (changes.url) {
|
|
5565
5565
|
this.toolbarEvents.reset();
|
|
5566
5566
|
this.commentService.resetCommentSet();
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
this.store.dispatch(new SetDocumentId(documentId));
|
|
5567
|
+
this.documentId = this.extractDMStoreDocId(this.url);
|
|
5568
|
+
this.store.dispatch(new SetDocumentId(this.documentId));
|
|
5570
5569
|
if (this.enableAnnotations && !(this.multimediaContent || this.unsupportedContent)) {
|
|
5571
|
-
this.store.dispatch(new LoadAnnotationSet(documentId));
|
|
5570
|
+
this.store.dispatch(new LoadAnnotationSet(this.documentId));
|
|
5572
5571
|
}
|
|
5573
5572
|
if (this.enableRedactions && !(this.multimediaContent || this.unsupportedContent)) {
|
|
5574
|
-
this.store.dispatch(new LoadRedactions(documentId));
|
|
5573
|
+
this.store.dispatch(new LoadRedactions(this.documentId));
|
|
5575
5574
|
}
|
|
5576
5575
|
if (this.contentType === 'image') {
|
|
5577
5576
|
this.documentTitle = null;
|
|
@@ -5708,6 +5707,7 @@ var MediaViewerComponent = /** @class */ (function () {
|
|
|
5708
5707
|
*/
|
|
5709
5708
|
function (url) {
|
|
5710
5709
|
url = url.includes('/documents/') ? url.split('/documents/')[1] : url;
|
|
5710
|
+
url = url.includes('/documentsv2/') ? url.split('/documentsv2/')[1] : url;
|
|
5711
5711
|
return url.replace('/binary', '');
|
|
5712
5712
|
};
|
|
5713
5713
|
/**
|
|
@@ -5815,6 +5815,8 @@ if (false) {
|
|
|
5815
5815
|
MediaViewerComponent.prototype.typeException;
|
|
5816
5816
|
/** @type {?} */
|
|
5817
5817
|
MediaViewerComponent.prototype.hasDifferentPageSize$;
|
|
5818
|
+
/** @type {?} */
|
|
5819
|
+
MediaViewerComponent.prototype.documentId;
|
|
5818
5820
|
/**
|
|
5819
5821
|
* @type {?}
|
|
5820
5822
|
* @private
|