@hmcts/media-viewer 4.0.8-exui-2388-rc1 → 4.0.8-exui-2537-rc2
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/assets/build/pdf.min.mjs +2 -2
- package/assets/build/pdf.mjs +6430 -5325
- package/assets/build/pdf.mjs.map +1 -1
- package/assets/build/pdf.sandbox.min.mjs +2 -2
- package/assets/build/pdf.sandbox.mjs +10 -7
- package/assets/build/pdf.sandbox.mjs.map +1 -1
- package/assets/build/pdf.worker.min.mjs +2 -2
- package/assets/build/pdf.worker.mjs +1432 -690
- package/assets/build/pdf.worker.mjs.map +1 -1
- package/assets/pdfjs/images/altText_add.svg +3 -0
- package/assets/pdfjs/images/altText_add.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/altText_disclaimer.svg +3 -0
- package/assets/pdfjs/images/altText_disclaimer.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/altText_done.svg +3 -0
- package/assets/pdfjs/images/altText_done.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/altText_spinner.svg +30 -0
- package/assets/pdfjs/images/altText_spinner.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/altText_warning.svg +3 -0
- package/assets/pdfjs/images/altText_warning.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-check.svg +11 -11
- package/assets/pdfjs/images/annotation-check.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-comment.svg +16 -16
- package/assets/pdfjs/images/annotation-comment.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-help.svg +26 -26
- package/assets/pdfjs/images/annotation-help.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-insert.svg +10 -10
- package/assets/pdfjs/images/annotation-insert.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-key.svg +11 -11
- package/assets/pdfjs/images/annotation-key.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-newparagraph.svg +11 -11
- package/assets/pdfjs/images/annotation-newparagraph.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-noicon.svg +7 -7
- package/assets/pdfjs/images/annotation-noicon.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-note.svg +42 -42
- package/assets/pdfjs/images/annotation-note.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-paperclip.svg +6 -0
- package/assets/pdfjs/images/annotation-paperclip.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-paragraph.svg +16 -16
- package/assets/pdfjs/images/annotation-paragraph.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/annotation-pushpin.svg +7 -0
- package/assets/pdfjs/images/annotation-pushpin.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/cursor-editorFreeHighlight.svg +6 -0
- package/assets/pdfjs/images/cursor-editorFreeHighlight.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/cursor-editorFreeText.svg +3 -0
- package/assets/pdfjs/images/cursor-editorFreeText.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/cursor-editorInk.svg +4 -0
- package/assets/pdfjs/images/cursor-editorInk.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/cursor-editorTextHighlight.svg +8 -0
- package/assets/pdfjs/images/cursor-editorTextHighlight.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/editor-toolbar-delete.svg +5 -0
- package/assets/pdfjs/images/editor-toolbar-delete.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/loading-icon.gif:Zone.Identifier +0 -0
- package/assets/pdfjs/images/messageBar_closingButton.svg +3 -0
- package/assets/pdfjs/images/messageBar_closingButton.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/messageBar_warning.svg +3 -0
- package/assets/pdfjs/images/messageBar_warning.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/toolbarButton-editorHighlight.svg +6 -0
- package/assets/pdfjs/images/toolbarButton-editorHighlight.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/images/toolbarButton-menuArrow.svg +3 -0
- package/assets/pdfjs/images/toolbarButton-menuArrow.svg:Zone.Identifier +0 -0
- package/assets/pdfjs/pdf_viewer.css +2982 -272
- package/assets/pdfjs/pdf_viewer.css:Zone.Identifier +0 -0
- package/assets/sass/pdf-viewer.scss +5 -38
- package/esm2022/lib/icp/icp-follower.service.mjs +3 -4
- package/esm2022/lib/icp/icp-presenter.service.mjs +3 -4
- package/esm2022/lib/icp/icp-session-api.service.mjs +3 -4
- package/esm2022/lib/icp/icp-update.service.mjs +3 -4
- package/esm2022/lib/icp/icp.service.mjs +3 -4
- package/esm2022/lib/icp/socket.service.mjs +3 -4
- package/esm2022/lib/media-viewer.module.mjs +21 -1
- package/esm2022/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.mjs +2 -2
- package/fesm2022/hmcts-media-viewer.mjs +42 -34
- package/fesm2022/hmcts-media-viewer.mjs.map +1 -1
- package/lib/media-viewer.module.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1637,7 +1637,7 @@ class PdfJsWrapper {
|
|
|
1637
1637
|
return Number(pageIndex) + 1;
|
|
1638
1638
|
}
|
|
1639
1639
|
downloadFile(url, filename) {
|
|
1640
|
-
this.downloadManager.
|
|
1640
|
+
this.downloadManager.download(url, filename, {});
|
|
1641
1641
|
}
|
|
1642
1642
|
setPageNumber(pageNumber) {
|
|
1643
1643
|
this.pdfViewer.currentPageNumber = pageNumber;
|
|
@@ -2168,11 +2168,10 @@ class SocketService {
|
|
|
2168
2168
|
return of(this.socket);
|
|
2169
2169
|
}
|
|
2170
2170
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SocketService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2171
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SocketService
|
|
2171
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SocketService }); }
|
|
2172
2172
|
}
|
|
2173
2173
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SocketService, decorators: [{
|
|
2174
|
-
type: Injectable
|
|
2175
|
-
args: [{ providedIn: 'root' }]
|
|
2174
|
+
type: Injectable
|
|
2176
2175
|
}], ctorParameters: () => [] });
|
|
2177
2176
|
|
|
2178
2177
|
class IcpUpdateService {
|
|
@@ -2230,11 +2229,10 @@ class IcpUpdateService {
|
|
|
2230
2229
|
return this.socket.listen(IcpEvents.SCREEN_UPDATED);
|
|
2231
2230
|
}
|
|
2232
2231
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpUpdateService, deps: [{ token: SocketService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2233
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpUpdateService
|
|
2232
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpUpdateService }); }
|
|
2234
2233
|
}
|
|
2235
2234
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpUpdateService, decorators: [{
|
|
2236
|
-
type: Injectable
|
|
2237
|
-
args: [{ providedIn: 'root' }]
|
|
2235
|
+
type: Injectable
|
|
2238
2236
|
}], ctorParameters: () => [{ type: SocketService }] });
|
|
2239
2237
|
|
|
2240
2238
|
class IcpPresenterService {
|
|
@@ -2278,11 +2276,10 @@ class IcpPresenterService {
|
|
|
2278
2276
|
this.socketService.updatePresenter(this.presenter);
|
|
2279
2277
|
}
|
|
2280
2278
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpPresenterService, deps: [{ token: ToolbarEventService }, { token: IcpUpdateService }, { token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2281
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpPresenterService
|
|
2279
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpPresenterService }); }
|
|
2282
2280
|
}
|
|
2283
2281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpPresenterService, decorators: [{
|
|
2284
|
-
type: Injectable
|
|
2285
|
-
args: [{ providedIn: 'root' }]
|
|
2282
|
+
type: Injectable
|
|
2286
2283
|
}], ctorParameters: () => [{ type: ToolbarEventService }, { type: IcpUpdateService }, { type: i1.Store }] });
|
|
2287
2284
|
|
|
2288
2285
|
class IcpFollowerService {
|
|
@@ -2330,11 +2327,10 @@ class IcpFollowerService {
|
|
|
2330
2327
|
});
|
|
2331
2328
|
}
|
|
2332
2329
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpFollowerService, deps: [{ token: ToolbarEventService }, { token: ViewerEventService }, { token: IcpUpdateService }, { token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2333
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpFollowerService
|
|
2330
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpFollowerService }); }
|
|
2334
2331
|
}
|
|
2335
2332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpFollowerService, decorators: [{
|
|
2336
|
-
type: Injectable
|
|
2337
|
-
args: [{ providedIn: 'root' }]
|
|
2333
|
+
type: Injectable
|
|
2338
2334
|
}], ctorParameters: () => [{ type: ToolbarEventService }, { type: ViewerEventService }, { type: IcpUpdateService }, { type: i1.Store }] });
|
|
2339
2335
|
|
|
2340
2336
|
class IcpService {
|
|
@@ -2413,11 +2409,10 @@ class IcpService {
|
|
|
2413
2409
|
this.socketService.removeParticipant(participantId);
|
|
2414
2410
|
}
|
|
2415
2411
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpService, deps: [{ token: ToolbarEventService }, { token: ViewerEventService }, { token: IcpUpdateService }, { token: IcpPresenterService }, { token: IcpFollowerService }, { token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2416
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpService
|
|
2412
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpService }); }
|
|
2417
2413
|
}
|
|
2418
2414
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpService, decorators: [{
|
|
2419
|
-
type: Injectable
|
|
2420
|
-
args: [{ providedIn: 'root' }]
|
|
2415
|
+
type: Injectable
|
|
2421
2416
|
}], ctorParameters: () => [{ type: ToolbarEventService }, { type: ViewerEventService }, { type: IcpUpdateService }, { type: IcpPresenterService }, { type: IcpFollowerService }, { type: i1.Store }] });
|
|
2422
2417
|
|
|
2423
2418
|
class ToolbarButtonVisibilityService {
|
|
@@ -6955,6 +6950,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
6955
6950
|
}]
|
|
6956
6951
|
}] });
|
|
6957
6952
|
|
|
6953
|
+
class IcpSessionApiService {
|
|
6954
|
+
constructor(httpClient) {
|
|
6955
|
+
this.httpClient = httpClient;
|
|
6956
|
+
this.ICP_SESSION_API = '/icp/sessions';
|
|
6957
|
+
}
|
|
6958
|
+
loadSession(payload) {
|
|
6959
|
+
return this.httpClient
|
|
6960
|
+
.get(`${this.ICP_SESSION_API}/${payload.caseId}/${payload.documentId}`, { observe: 'response', withCredentials: true })
|
|
6961
|
+
.pipe(map(response => response.body));
|
|
6962
|
+
}
|
|
6963
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpSessionApiService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6964
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpSessionApiService }); }
|
|
6965
|
+
}
|
|
6966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpSessionApiService, decorators: [{
|
|
6967
|
+
type: Injectable
|
|
6968
|
+
}], ctorParameters: () => [{ type: i1$1.HttpClient }] });
|
|
6969
|
+
|
|
6958
6970
|
class AnnotationEffects {
|
|
6959
6971
|
constructor(actions$, annotationApiService) {
|
|
6960
6972
|
this.actions$ = actions$;
|
|
@@ -7210,24 +7222,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
7210
7222
|
type: Injectable
|
|
7211
7223
|
}], ctorParameters: () => [{ type: i1$2.Actions }, { type: DocumentConversionApiService }, { type: RotationApiService }] });
|
|
7212
7224
|
|
|
7213
|
-
class IcpSessionApiService {
|
|
7214
|
-
constructor(httpClient) {
|
|
7215
|
-
this.httpClient = httpClient;
|
|
7216
|
-
this.ICP_SESSION_API = '/icp/sessions';
|
|
7217
|
-
}
|
|
7218
|
-
loadSession(payload) {
|
|
7219
|
-
return this.httpClient
|
|
7220
|
-
.get(`${this.ICP_SESSION_API}/${payload.caseId}/${payload.documentId}`, { observe: 'response', withCredentials: true })
|
|
7221
|
-
.pipe(map(response => response.body));
|
|
7222
|
-
}
|
|
7223
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpSessionApiService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7224
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpSessionApiService, providedIn: 'root' }); }
|
|
7225
|
-
}
|
|
7226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IcpSessionApiService, decorators: [{
|
|
7227
|
-
type: Injectable,
|
|
7228
|
-
args: [{ providedIn: 'root' }]
|
|
7229
|
-
}], ctorParameters: () => [{ type: i1$1.HttpClient }] });
|
|
7230
|
-
|
|
7231
7225
|
class IcpEffects {
|
|
7232
7226
|
constructor(actions$, icpApiService, icpUpdateService) {
|
|
7233
7227
|
this.actions$ = actions$;
|
|
@@ -7278,6 +7272,13 @@ class MediaViewerModule {
|
|
|
7278
7272
|
PdfJsWrapperFactory,
|
|
7279
7273
|
CommentService,
|
|
7280
7274
|
RedactionApiService,
|
|
7275
|
+
IcpSessionApiService,
|
|
7276
|
+
IcpUpdateService,
|
|
7277
|
+
SocketService,
|
|
7278
|
+
IcpService,
|
|
7279
|
+
IcpPresenterService,
|
|
7280
|
+
IcpFollowerService,
|
|
7281
|
+
RedactionApiService,
|
|
7281
7282
|
DocumentConversionApiService,
|
|
7282
7283
|
RotationApiService,
|
|
7283
7284
|
], imports: [CommonModule,
|
|
@@ -7336,6 +7337,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
7336
7337
|
PdfJsWrapperFactory,
|
|
7337
7338
|
CommentService,
|
|
7338
7339
|
RedactionApiService,
|
|
7340
|
+
IcpSessionApiService,
|
|
7341
|
+
IcpUpdateService,
|
|
7342
|
+
SocketService,
|
|
7343
|
+
IcpService,
|
|
7344
|
+
IcpPresenterService,
|
|
7345
|
+
IcpFollowerService,
|
|
7346
|
+
RedactionApiService,
|
|
7339
7347
|
DocumentConversionApiService,
|
|
7340
7348
|
RotationApiService,
|
|
7341
7349
|
],
|