@ohif/app 3.9.1 → 3.9.3

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.
Files changed (51) hide show
  1. package/dist/{1185.bundle.023fe7179faaa50019d3.js → 1185.bundle.9f4c770baf52abcf3c6d.js} +120 -53
  2. package/dist/{1266.bundle.e9abd5c45b5236544151.js → 1266.bundle.0097d9c4ba974905a833.js} +8 -3
  3. package/dist/{1374.bundle.019bbc010eeb66109e8b.js → 1374.bundle.2e1fa65e28731d98969a.js} +2 -2
  4. package/dist/{1436.bundle.773756cd51b69e887bac.js → 1436.bundle.be39664239aa2bbca527.js} +234 -274
  5. package/dist/{1927.bundle.49539e3ab5b0aad1399c.js → 1927.bundle.2b2fa0b539d6ac5b0dc3.js} +1 -1
  6. package/dist/{213.bundle.e663335fb0884edde6d8.js → 213.bundle.c0c23f7fd4b66d78d0fe.js} +2 -2
  7. package/dist/{5807.bundle.dac5ce36534a71c77723.js → 2343.bundle.f096450c21417279d4cc.js} +270 -1
  8. package/dist/{2424.bundle.b7da298db43541d3a7c0.js → 2424.bundle.d73e8d67dc2aace299d2.js} +2 -2
  9. package/dist/{2701.bundle.8c1ff2e0faaa7d2f4716.js → 2701.bundle.c8271fa4986a45fea350.js} +17 -24
  10. package/dist/{2825.bundle.b04c941a87fd580deb6d.js → 2825.bundle.0612b1b8ab3e8ee01b93.js} +1 -1
  11. package/dist/{3198.bundle.c82b7424070ffd02faf1.js → 3198.bundle.7a18515cfe4113417251.js} +10 -6
  12. package/dist/{3200.bundle.a12825fb5aec200d33e2.js → 3200.bundle.e46dca03aa824998973a.js} +18 -10
  13. package/dist/3326.bundle.d01046d6c2c31654c125.js +265 -0
  14. package/dist/{149.bundle.ce5596fc563276036744.js → 3900.bundle.0e4e29374e221b260ed1.js} +35 -59
  15. package/dist/{8295.bundle.4ecb27f9e58526f12bcb.js → 3902.bundle.8ae7b2e27f760af997dd.js} +20 -1
  16. package/dist/3902.css +2 -0
  17. package/dist/{4202.bundle.5c8120ed4841da0af211.js → 4202.bundle.497702023d73202f4f39.js} +2 -1
  18. package/dist/{3121.bundle.d3e7092e305cf6cecdb5.js → 4438.bundle.a945f803d0eeb11d081f.js} +24 -4
  19. package/dist/{4571.bundle.3b1691730b3c57bf4d35.js → 4571.bundle.a37be49663df2f4a2c8a.js} +99 -89
  20. package/dist/4759.bundle.1e982897292fc19ecd7c.js +265 -0
  21. package/dist/{4834.bundle.aad44c2628cdefb7a4dd.js → 4834.bundle.92ba088cc62a6b791000.js} +2 -2
  22. package/dist/{5139.bundle.367a6827071448e2923d.js → 5139.bundle.70d3be7dd1896f245d7b.js} +3 -3
  23. package/dist/{5247.bundle.6dc2a50f21821b2ffdf5.js → 5247.bundle.4e8669e41fd28813e643.js} +5 -5
  24. package/dist/{5252.bundle.5ec502c53a9cc877ed8d.js → 5252.bundle.f2675336275573a288d5.js} +13 -1
  25. package/dist/{1520.bundle.97dbd9bfa83148e5334d.js → 5630.bundle.44d0ca81d77b7ae5193b.js} +63 -58
  26. package/dist/{5687.bundle.5731ec23dd9eb43a083e.js → 5687.bundle.50b800a714486557b243.js} +5 -5
  27. package/dist/{5717.bundle.848e13f256818475f57f.js → 5717.bundle.9218cb67ad1994cd1a99.js} +305 -64
  28. package/dist/{3970.bundle.31942cc0c12a008e7ba0.js → 5758.bundle.cd1599b81bdb1f735f9d.js} +270 -1
  29. package/dist/{717.bundle.0f32b7b57347b5141248.js → 7013.bundle.979d3a29f6142e8c1290.js} +264 -4
  30. package/dist/7013.css +4 -0
  31. package/dist/{7197.bundle.c28453cdb392072d8bf8.js → 7197.bundle.30f8969751309ab5235c.js} +6 -6
  32. package/dist/{7955.bundle.6a255705b1ef5906f4a8.js → 7955.bundle.9264a10437f0a67e6057.js} +3 -3
  33. package/dist/{8008.bundle.5bf7b274246be10e2f05.js → 8008.bundle.6772a210a995b568f8d0.js} +2 -2
  34. package/dist/{8228.bundle.55ac03d7165248f47d4e.js → 8228.bundle.2c1e61eec1f9f4b3b613.js} +8 -26
  35. package/dist/{8259.bundle.623c29b26b170a8a085b.js → 8259.bundle.9cf9ef151893ede068bb.js} +2 -2
  36. package/dist/{8523.bundle.648334132159465cdc41.js → 8523.bundle.c0ec85de98ba380ebeb4.js} +55 -13
  37. package/dist/{8558.bundle.01d05fd73da5db8e60f9.js → 8558.bundle.9c22f000a404f1006a41.js} +10 -5
  38. package/dist/{9551.bundle.6c260a9869e14dcc3543.js → 9551.bundle.3507bb1d4353df13bf3a.js} +3 -3
  39. package/dist/{9611.bundle.767595c93877e5166c03.js → 9611.bundle.9f1aa9041196d77f2b7e.js} +2 -2
  40. package/dist/{app.bundle.d02143bec2df7fec9964.js → app.bundle.9af5a6d7ff3a778d05b7.js} +278 -150
  41. package/dist/app.bundle.css +2 -2
  42. package/dist/index.html +1 -1
  43. package/dist/{polySeg.bundle.b79ae514989e86301c71.js → polySeg.bundle.6e85073e3abf2e6e6078.js} +1 -1
  44. package/dist/serve.json +1 -10
  45. package/dist/{suv-peak-worker.bundle.31c3b3b957204af93b7e.js → suv-peak-worker.bundle.e2e8e46de3e958a1a3db.js} +3 -3
  46. package/dist/sw.js +1 -1
  47. package/package.json +19 -19
  48. /package/dist/{1801.css → 3326.css} +0 -0
  49. /package/dist/{717.css → 4438.css} +0 -0
  50. /package/dist/{2591.css → 4759.css} +0 -0
  51. /package/dist/{9862.bundle.7146682e56aa66130ae6.js → 9862.bundle.aa2f8e0010f1be1bc87d.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (self["webpackChunk"] = self["webpackChunk"] || []).push([[1520],{
2
+ (self["webpackChunk"] = self["webpackChunk"] || []).push([[5630],{
3
3
 
4
- /***/ 71520:
4
+ /***/ 55630:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -29,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  useHangingProtocolStageIndexStore: () => (/* reexport */ useHangingProtocolStageIndexStore),
30
30
  usePatientInfo: () => (/* reexport */ hooks_usePatientInfo),
31
31
  useToggleHangingProtocolStore: () => (/* reexport */ useToggleHangingProtocolStore),
32
- useToggleOneUpViewportGridStore: () => (/* reexport */ useToggleOneUpViewportGridStore/* useToggleOneUpViewportGridStore */.Y),
32
+ useToggleOneUpViewportGridStore: () => (/* reexport */ useToggleOneUpViewportGridStore),
33
33
  useUIStateStore: () => (/* reexport */ useUIStateStore),
34
34
  useViewportGridStore: () => (/* reexport */ useViewportGridStore),
35
35
  useViewportsByPositionStore: () => (/* reexport */ useViewportsByPositionStore),
@@ -59,8 +59,8 @@ __webpack_require__.d(src_utils_namespaceObject, {
59
59
 
60
60
  // EXTERNAL MODULE: ../../../node_modules/dicomweb-client/build/dicomweb-client.es.js
61
61
  var dicomweb_client_es = __webpack_require__(83562);
62
- // EXTERNAL MODULE: ../../core/src/index.ts + 71 modules
63
- var src = __webpack_require__(29463);
62
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
63
+ var src = __webpack_require__(80818);
64
64
  // EXTERNAL MODULE: ../../core/src/utils/sortStudy.ts
65
65
  var sortStudy = __webpack_require__(45476);
66
66
  ;// CONCATENATED MODULE: ../../../extensions/default/src/DicomWebDataSource/qido.js
@@ -1726,23 +1726,35 @@ function createDicomWebApi(dicomWebConfig, servicesManager) {
1726
1726
  naturalizedInstances.forEach(instance => {
1727
1727
  instance.wadoRoot = dicomWebConfig.wadoRoot;
1728
1728
  instance.wadoUri = dicomWebConfig.wadoUri;
1729
- const imageId = implementation.getImageIdsForInstance({
1730
- instance
1731
- });
1729
+ const {
1730
+ StudyInstanceUID,
1731
+ SeriesInstanceUID,
1732
+ SOPInstanceUID
1733
+ } = instance;
1734
+ const numberOfFrames = instance.NumberOfFrames || 1;
1735
+ // Process all frames consistently, whether single or multiframe
1736
+ for (let i = 0; i < numberOfFrames; i++) {
1737
+ const frameNumber = i + 1;
1738
+ const frameImageId = implementation.getImageIdsForInstance({
1739
+ instance,
1740
+ frame: frameNumber
1741
+ });
1742
+ // Add imageId specific mapping to this data as the URL isn't necessarily WADO-URI.
1743
+ metadataProvider.addImageIdToUIDs(frameImageId, {
1744
+ StudyInstanceUID,
1745
+ SeriesInstanceUID,
1746
+ SOPInstanceUID,
1747
+ frameNumber: numberOfFrames > 1 ? frameNumber : undefined
1748
+ });
1749
+ }
1732
1750
 
1733
1751
  // Adding imageId to each instance
1734
1752
  // Todo: This is not the best way I can think of to let external
1735
1753
  // metadata handlers know about the imageId that is stored in the store
1736
- instance.imageId = imageId;
1737
-
1738
- // Adding UIDs to metadataProvider
1739
- // Note: storing imageURI in metadataProvider since stack viewports
1740
- // will use the same imageURI
1741
- metadataProvider.addImageIdToUIDs(imageId, {
1742
- StudyInstanceUID,
1743
- SeriesInstanceUID: instance.SeriesInstanceUID,
1744
- SOPInstanceUID: instance.SOPInstanceUID
1754
+ const imageId = implementation.getImageIdsForInstance({
1755
+ instance
1745
1756
  });
1757
+ instance.imageId = imageId;
1746
1758
  });
1747
1759
  src/* DicomMetadataStore */.H8.addInstances(naturalizedInstances, madeInClient);
1748
1760
  }
@@ -1964,7 +1976,7 @@ function createDicomJSONApi(dicomJsonConfig) {
1964
1976
  query
1965
1977
  } = query_string.parseUrl(instance.url);
1966
1978
 
1967
- // Add imageId specific mapping to this data as the URL isn't necessarliy WADO-URI.
1979
+ // Add imageId specific mapping to this data as the URL isn't necessarily WADO-URI.
1968
1980
  DicomJSONDataSource_metadataProvider.addImageIdToUIDs(imageId, {
1969
1981
  StudyInstanceUID,
1970
1982
  SeriesInstanceUID,
@@ -2388,9 +2400,12 @@ function createDicomLocalApi(dicomLocalConfig) {
2388
2400
  instance,
2389
2401
  frame
2390
2402
  }) {
2391
- if (instance.imageId) {
2392
- return instance.imageId;
2393
- }
2403
+ // Important: Never use instance.imageId because it might be multiframe,
2404
+ // which would make it an invalid imageId.
2405
+ // if (instance.imageId) {
2406
+ // return instance.imageId;
2407
+ // }
2408
+
2394
2409
  const {
2395
2410
  StudyInstanceUID,
2396
2411
  SeriesInstanceUID,
@@ -2918,7 +2933,7 @@ function usePatientInfo(servicesManager) {
2918
2933
  }
2919
2934
  setPatientInfo({
2920
2935
  PatientID: instance.PatientID || null,
2921
- PatientName: instance.PatientName ? formatPN(instance.PatientName.Alphabetic) : null,
2936
+ PatientName: instance.PatientName ? formatPN(instance.PatientName) : null,
2922
2937
  PatientSex: instance.PatientSex || null,
2923
2938
  PatientDOB: formatDate(instance.PatientBirthDate) || null
2924
2939
  });
@@ -3056,8 +3071,8 @@ function ViewerHeader({
3056
3071
  hotkeyDefinitions,
3057
3072
  hotkeyDefaults
3058
3073
  } = hotkeysManager;
3059
- const versionNumber = "3.9.1";
3060
- const commitHash = "610faa5a2738da5eabc40e57e338c359f481e852";
3074
+ const versionNumber = "3.9.3";
3075
+ const commitHash = "5d4f2e2a8e62f8de97d56a4e3f17be6018e9f2eb";
3061
3076
  const menuOptions = [{
3062
3077
  title: t('Header:About'),
3063
3078
  icon: 'info',
@@ -3859,6 +3874,7 @@ function WrappedPanelStudyBrowser({
3859
3874
  const _requestDisplaySetCreationForStudy = Panels_requestDisplaySetCreationForStudy.bind(null, dataSource);
3860
3875
  return /*#__PURE__*/react.createElement(StudyBrowser_PanelStudyBrowser, {
3861
3876
  servicesManager: servicesManager,
3877
+ commandsManager: commandsManager,
3862
3878
  dataSource: dataSource,
3863
3879
  getImageSrc: _getImageSrcFromImageId,
3864
3880
  getStudiesForPatientByMRN: _getStudiesForPatientByMRN,
@@ -6301,7 +6317,7 @@ const reuseCachedLayout = (state, hangingProtocolService) => {
6301
6317
 
6302
6318
 
6303
6319
  const useViewportsByPositionStore_PRESENTATION_TYPE_ID = 'viewportsByPositionId';
6304
- const useViewportsByPositionStore_DEBUG_STORE = true;
6320
+ const useViewportsByPositionStore_DEBUG_STORE = false;
6305
6321
 
6306
6322
  /**
6307
6323
  * Represents the state and actions for managing viewports by position.
@@ -6495,8 +6511,21 @@ const createToggleHangingProtocolStore = set => ({
6495
6511
  const useToggleHangingProtocolStore = (0,zustand_esm/* create */.vt)()(useToggleHangingProtocolStore_DEBUG_STORE ? (0,middleware/* devtools */.lt)(createToggleHangingProtocolStore, {
6496
6512
  name: 'ToggleHangingProtocolStore'
6497
6513
  }) : createToggleHangingProtocolStore);
6498
- // EXTERNAL MODULE: ../../../extensions/default/src/stores/useToggleOneUpViewportGridStore.ts
6499
- var useToggleOneUpViewportGridStore = __webpack_require__(73325);
6514
+ ;// CONCATENATED MODULE: ../../../extensions/default/src/stores/useToggleOneUpViewportGridStore.ts
6515
+
6516
+ const useToggleOneUpViewportGridStore_PRESENTATION_TYPE_ID = 'toggleOneUpViewportGridId';
6517
+ // Stores the entire ViewportGridService getState when toggling to one up
6518
+ // (e.g. via a double click) so that it can be restored when toggling back.
6519
+ const useToggleOneUpViewportGridStore = (0,zustand_esm/* create */.vt)(set => ({
6520
+ toggleOneUpViewportGridStore: null,
6521
+ type: useToggleOneUpViewportGridStore_PRESENTATION_TYPE_ID,
6522
+ setToggleOneUpViewportGridStore: state => set({
6523
+ toggleOneUpViewportGridStore: state
6524
+ }),
6525
+ clearToggleOneUpViewportGridStore: () => set({
6526
+ toggleOneUpViewportGridStore: null
6527
+ })
6528
+ }));
6500
6529
  ;// CONCATENATED MODULE: ../../../extensions/default/src/commandsModule.ts
6501
6530
 
6502
6531
 
@@ -6798,7 +6827,7 @@ const commandsModule = ({
6798
6827
  // The viewer is in one-up. Check if there is a state to restore/toggle back to.
6799
6828
  const {
6800
6829
  toggleOneUpViewportGridStore
6801
- } = useToggleOneUpViewportGridStore/* useToggleOneUpViewportGridStore */.Y.getState();
6830
+ } = useToggleOneUpViewportGridStore.getState();
6802
6831
  if (!toggleOneUpViewportGridStore) {
6803
6832
  return;
6804
6833
  }
@@ -6854,7 +6883,7 @@ const commandsModule = ({
6854
6883
  // Store the current viewport grid state so we can toggle it back later.
6855
6884
  const {
6856
6885
  setToggleOneUpViewportGridStore
6857
- } = useToggleOneUpViewportGridStore/* useToggleOneUpViewportGridStore */.Y.getState();
6886
+ } = useToggleOneUpViewportGridStore.getState();
6858
6887
  setToggleOneUpViewportGridStore(viewportGridState);
6859
6888
 
6860
6889
  // one being toggled to one up.
@@ -7107,7 +7136,7 @@ const hpMN = {
7107
7136
  // It has no affect if nothing is specified in the URL.
7108
7137
  {
7109
7138
  attribute: 'isDisplaySetFromUrl',
7110
- weight: 10,
7139
+ weight: 20,
7111
7140
  constraint: {
7112
7141
  equals: true
7113
7142
  }
@@ -7344,7 +7373,7 @@ const defaultDisplaySetSelector = {
7344
7373
  // It has no affect if nothing is specified in the URL.
7345
7374
  {
7346
7375
  attribute: 'isDisplaySetFromUrl',
7347
- weight: 10,
7376
+ weight: 20,
7348
7377
  constraint: {
7349
7378
  equals: true
7350
7379
  }
@@ -7375,7 +7404,7 @@ const priorDisplaySetSelector = {
7375
7404
  // It has no affect if nothing is specified in the URL.
7376
7405
  {
7377
7406
  attribute: 'isDisplaySetFromUrl',
7378
- weight: 10,
7407
+ weight: 20,
7379
7408
  constraint: {
7380
7409
  equals: true
7381
7410
  }
@@ -7865,7 +7894,7 @@ const hpScale = {
7865
7894
  // It has no affect if nothing is specified in the URL.
7866
7895
  {
7867
7896
  attribute: 'isDisplaySetFromUrl',
7868
- weight: 10,
7897
+ weight: 20,
7869
7898
  constraint: {
7870
7899
  equals: true
7871
7900
  }
@@ -8001,7 +8030,7 @@ const defaultProtocol = {
8001
8030
  // It has no affect if nothing is specified in the URL.
8002
8031
  {
8003
8032
  attribute: 'isDisplaySetFromUrl',
8004
- weight: 10,
8033
+ weight: 20,
8005
8034
  constraint: {
8006
8035
  equals: true
8007
8036
  }
@@ -9620,30 +9649,6 @@ const defaultExtension = {
9620
9649
  /* harmony default export */ const default_src = (defaultExtension);
9621
9650
 
9622
9651
 
9623
- /***/ }),
9624
-
9625
- /***/ 73325:
9626
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9627
-
9628
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9629
- /* harmony export */ Y: () => (/* binding */ useToggleOneUpViewportGridStore)
9630
- /* harmony export */ });
9631
- /* harmony import */ var zustand__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95759);
9632
-
9633
- const PRESENTATION_TYPE_ID = 'toggleOneUpViewportGridId';
9634
- // Stores the entire ViewportGridService getState when toggling to one up
9635
- // (e.g. via a double click) so that it can be restored when toggling back.
9636
- const useToggleOneUpViewportGridStore = (0,zustand__WEBPACK_IMPORTED_MODULE_0__/* .create */ .vt)(set => ({
9637
- toggleOneUpViewportGridStore: null,
9638
- type: PRESENTATION_TYPE_ID,
9639
- setToggleOneUpViewportGridStore: state => set({
9640
- toggleOneUpViewportGridStore: state
9641
- }),
9642
- clearToggleOneUpViewportGridStore: () => set({
9643
- toggleOneUpViewportGridStore: null
9644
- })
9645
- }));
9646
-
9647
9652
  /***/ })
9648
9653
 
9649
9654
  }]);
@@ -73,8 +73,8 @@ __webpack_require__.d(__webpack_exports__, {
73
73
 
74
74
  // EXTERNAL MODULE: ../../../node_modules/react/index.js
75
75
  var react = __webpack_require__(86326);
76
- // EXTERNAL MODULE: ../../core/src/index.ts + 71 modules
77
- var src = __webpack_require__(29463);
76
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
77
+ var src = __webpack_require__(80818);
78
78
  // EXTERNAL MODULE: ../../../extensions/cornerstone/src/index.tsx + 105 modules
79
79
  var cornerstone_src = __webpack_require__(11185);
80
80
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 61 modules
@@ -1987,7 +1987,7 @@ function getTrackingUniqueIdentifiersForElement(element) {
1987
1987
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1988
1988
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
1989
1989
  /* harmony export */ });
1990
- /* harmony import */ var _ohif_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29463);
1990
+ /* harmony import */ var _ohif_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80818);
1991
1991
 
1992
1992
  const ImageSet = _ohif_core__WEBPACK_IMPORTED_MODULE_0__/* .classes */ .Ly.ImageSet;
1993
1993
  const findInstance = (measurement, displaySetService) => {
@@ -2089,8 +2089,8 @@ __webpack_require__.d(__webpack_exports__, {
2089
2089
 
2090
2090
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js
2091
2091
  var esm = __webpack_require__(81985);
2092
- // EXTERNAL MODULE: ../../core/src/index.ts + 71 modules
2093
- var src = __webpack_require__(29463);
2092
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
2093
+ var src = __webpack_require__(80818);
2094
2094
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 61 modules
2095
2095
  var dist_esm = __webpack_require__(33970);
2096
2096
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/getLabelFromDCMJSImportedToolData.js