Compare commits

..
194 changed files with 9717 additions and 1877 deletions

No files matched your search

+41
View File
@@ -3,6 +3,47 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
### Features
* **WorkList:** New Study List (WorkList based on ui-next); old study list renamed to LegacyWorklist ([#6005](https://github.com/OHIF/Viewers/issues/6005)) ([daae4c1](https://github.com/OHIF/Viewers/commit/daae4c144e7cb80bbee7c05d9fceef8b332ed2a0))
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
### Bug Fixes
* **security:** Add tmp as a resolution to fix security vulnerability. ([#6044](https://github.com/OHIF/Viewers/issues/6044)) ([bdcafc1](https://github.com/OHIF/Viewers/commit/bdcafc12de5e4f73a1a96cab9c0830d49315c044))
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
### Bug Fixes
* **segmentation:** restore navigation for duplicated contour segments ([#6038](https://github.com/OHIF/Viewers/issues/6038)) ([0c1ca6b](https://github.com/OHIF/Viewers/commit/0c1ca6b04a6c1aef478c7a7d9f360f9b9c50f188))
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package ohif-monorepo-root
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @externals/devDependencies
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @externals/devDependencies
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @externals/devDependencies
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @externals/devDependencies
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @externals/devDependencies
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@externals/devDependencies",
"description": "External dev dependencies - put dev build dependencies here",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"license": "MIT",
"private": true,
"engines": {
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@externals/dicom-microscopy-viewer",
"description": "External reference to dicom-microscopy-viewer",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"license": "MIT",
"dependencies": {
"dicom-microscopy-viewer": "0.48.17"
+204 -198
View File
@@ -50,7 +50,7 @@
},
"addOns/externals/devDependencies": {
"name": "@externals/devDependencies",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@kitware/vtk.js": "34.15.1",
@@ -131,22 +131,22 @@
},
"addOns/externals/dicom-microscopy-viewer": {
"name": "@externals/dicom-microscopy-viewer",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"dicom-microscopy-viewer": "0.48.17",
},
},
"extensions/cornerstone": {
"name": "@ohif/extension-cornerstone",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/adapters": "4.22.8",
"@cornerstonejs/ai": "4.22.8",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/labelmap-interpolation": "4.22.8",
"@cornerstonejs/polymorphic-segmentation": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@cornerstonejs/adapters": "4.22.10",
"@cornerstonejs/ai": "4.22.10",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/labelmap-interpolation": "4.22.10",
"@cornerstonejs/polymorphic-segmentation": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"@icr/polyseg-wasm": "0.4.0",
"@itk-wasm/morphological-contour-interpolation": "1.1.0",
"@kitware/vtk.js": "34.15.1",
@@ -164,9 +164,9 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.2",
"@cornerstonejs/codec-openjpeg": "1.3.0",
"@cornerstonejs/codec-openjph": "2.4.7",
"@cornerstonejs/dicom-image-loader": "4.22.8",
"@ohif/core": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.74",
"@cornerstonejs/dicom-image-loader": "4.22.10",
"@ohif/core": "3.13.0-beta.84",
"@ohif/ui": "3.13.0-beta.84",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -178,18 +178,18 @@
},
"extensions/cornerstone-dicom-pmap": {
"name": "@ohif/extension-cornerstone-dicom-pmap",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/adapters": "4.22.8",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/adapters": "4.22.10",
"@cornerstonejs/core": "4.22.10",
"@kitware/vtk.js": "34.15.1",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/i18n": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/i18n": "3.13.0-beta.83",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -200,15 +200,15 @@
},
"extensions/cornerstone-dicom-rt": {
"name": "@ohif/extension-cornerstone-dicom-rt",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/i18n": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/i18n": "3.13.0-beta.83",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -219,18 +219,18 @@
},
"extensions/cornerstone-dicom-seg": {
"name": "@ohif/extension-cornerstone-dicom-seg",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/adapters": "4.22.8",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/adapters": "4.22.10",
"@cornerstonejs/core": "4.22.10",
"@kitware/vtk.js": "34.15.1",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/i18n": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/i18n": "3.13.0-beta.83",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -241,19 +241,19 @@
},
"extensions/cornerstone-dicom-sr": {
"name": "@ohif/extension-cornerstone-dicom-sr",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/adapters": "4.22.8",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@cornerstonejs/adapters": "4.22.10",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"classnames": "2.5.1",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-measurement-tracking": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.84",
"@ohif/extension-cornerstone": "3.13.0-beta.84",
"@ohif/extension-measurement-tracking": "3.13.0-beta.84",
"@ohif/ui": "3.13.0-beta.84",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -263,19 +263,19 @@
},
"extensions/cornerstone-dynamic-volume": {
"name": "@ohif/extension-cornerstone-dynamic-volume",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"classnames": "2.5.1",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/i18n": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/i18n": "3.13.0-beta.83",
"@ohif/ui": "3.13.0-beta.83",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -285,7 +285,7 @@
},
"extensions/default": {
"name": "@ohif/extension-default",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/calculate-suv": "1.1.0",
@@ -294,8 +294,8 @@
"react-color": "2.19.3",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/i18n": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.84",
"@ohif/i18n": "3.13.0-beta.84",
"dcmjs": "0.49.4",
"dicomweb-client": "0.10.4",
"prop-types": "15.8.1",
@@ -309,7 +309,7 @@
},
"extensions/dicom-microscopy": {
"name": "@ohif/extension-dicom-microscopy",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/codec-charls": "1.2.3",
@@ -320,10 +320,10 @@
"mathjs": "12.4.3",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/i18n": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/i18n": "3.13.0-beta.83",
"@ohif/ui": "3.13.0-beta.83",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -334,14 +334,14 @@
},
"extensions/dicom-pdf": {
"name": "@ohif/extension-dicom-pdf",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"classnames": "2.5.1",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/ui": "3.13.0-beta.83",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -351,14 +351,14 @@
},
"extensions/dicom-video": {
"name": "@ohif/extension-dicom-video",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"classnames": "2.5.1",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/ui": "3.13.0-beta.83",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -368,20 +368,20 @@
},
"extensions/measurement-tracking": {
"name": "@ohif/extension-measurement-tracking",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@ohif/ui": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.84",
"@xstate/react": "3.2.2",
"xstate": "4.38.3",
},
"peerDependencies": {
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.74",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"@ohif/core": "3.13.0-beta.84",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.84",
"@ohif/extension-default": "3.13.0-beta.84",
"@ohif/ui": "3.13.0-beta.84",
"classnames": "2.5.1",
"dcmjs": "0.49.4",
"lodash.debounce": "4.0.8",
@@ -394,14 +394,14 @@
},
"extensions/test-extension": {
"name": "@ohif/extension-test",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"classnames": "2.5.1",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/ui": "3.13.0-beta.83",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -411,14 +411,14 @@
},
"extensions/tmtv": {
"name": "@ohif/extension-tmtv",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"classnames": "2.5.1",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.68",
"@ohif/ui": "3.13.0-beta.68",
"@ohif/core": "3.13.0-beta.83",
"@ohif/ui": "3.13.0-beta.83",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -428,16 +428,16 @@
},
"extensions/usAnnotation": {
"name": "@ohif/extension-ultrasound-pleura-bline",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/i18n": "3.13.0-beta.74",
"@ohif/ui-next": "3.13.0-beta.74",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/i18n": "3.13.0-beta.83",
"@ohif/ui-next": "3.13.0-beta.83",
},
"devDependencies": {
"@babel/core": "7.28.0",
@@ -476,7 +476,7 @@
},
"modes/basic": {
"name": "@ohif/mode-basic",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
},
@@ -485,19 +485,19 @@
"webpack-merge": "5.10.0",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/extension-dicom-pdf": "3.13.0-beta.74",
"@ohif/extension-dicom-video": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/extension-dicom-pdf": "3.13.0-beta.83",
"@ohif/extension-dicom-video": "3.13.0-beta.83",
},
},
"modes/basic-dev-mode": {
"name": "@ohif/mode-basic-dev-mode",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"i18next": "17.3.1",
@@ -507,17 +507,17 @@
"webpack-merge": "5.10.0",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/extension-dicom-pdf": "3.13.0-beta.74",
"@ohif/extension-dicom-video": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/extension-dicom-pdf": "3.13.0-beta.83",
"@ohif/extension-dicom-video": "3.13.0-beta.83",
},
},
"modes/basic-test-mode": {
"name": "@ohif/mode-test",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"i18next": "17.3.1",
@@ -527,19 +527,19 @@
"webpack-merge": "5.10.0",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/extension-dicom-pdf": "3.13.0-beta.74",
"@ohif/extension-dicom-video": "3.13.0-beta.74",
"@ohif/extension-measurement-tracking": "3.13.0-beta.74",
"@ohif/extension-test": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/extension-dicom-pdf": "3.13.0-beta.83",
"@ohif/extension-dicom-video": "3.13.0-beta.83",
"@ohif/extension-measurement-tracking": "3.13.0-beta.83",
"@ohif/extension-test": "3.13.0-beta.83",
},
},
"modes/longitudinal": {
"name": "@ohif/mode-longitudinal",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"i18next": "17.3.1",
@@ -549,33 +549,33 @@
"webpack-merge": "5.10.0",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/extension-dicom-pdf": "3.13.0-beta.74",
"@ohif/extension-dicom-video": "3.13.0-beta.74",
"@ohif/extension-measurement-tracking": "3.13.0-beta.74",
"@ohif/mode-basic": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/extension-dicom-pdf": "3.13.0-beta.83",
"@ohif/extension-dicom-video": "3.13.0-beta.83",
"@ohif/extension-measurement-tracking": "3.13.0-beta.83",
"@ohif/mode-basic": "3.13.0-beta.83",
},
},
"modes/microscopy": {
"name": "@ohif/mode-microscopy",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"i18next": "17.3.1",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-dicom-microscopy": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-dicom-microscopy": "3.13.0-beta.83",
},
},
"modes/preclinical-4d": {
"name": "@ohif/mode-preclinical-4d",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
},
@@ -584,17 +584,17 @@
"webpack-merge": "5.10.0",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.68",
"@ohif/extension-cornerstone": "3.13.0-beta.68",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.68",
"@ohif/extension-cornerstone-dynamic-volume": "3.13.0-beta.68",
"@ohif/extension-default": "3.13.0-beta.68",
"@ohif/extension-tmtv": "3.13.0-beta.68",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dynamic-volume": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/extension-tmtv": "3.13.0-beta.83",
},
},
"modes/segmentation": {
"name": "@ohif/mode-segmentation",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"i18next": "17.3.1",
@@ -623,20 +623,20 @@
"webpack-merge": "5.10.0",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/extension-dicom-pdf": "3.13.0-beta.74",
"@ohif/extension-dicom-video": "3.13.0-beta.74",
"@ohif/mode-basic": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/extension-dicom-pdf": "3.13.0-beta.83",
"@ohif/extension-dicom-video": "3.13.0-beta.83",
"@ohif/mode-basic": "3.13.0-beta.83",
},
},
"modes/tmtv": {
"name": "@ohif/mode-tmtv",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"i18next": "17.3.1",
@@ -646,25 +646,25 @@
"webpack-merge": "5.10.0",
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.68",
"@ohif/extension-cornerstone": "3.13.0-beta.68",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.68",
"@ohif/extension-default": "3.13.0-beta.68",
"@ohif/extension-dicom-pdf": "3.13.0-beta.68",
"@ohif/extension-dicom-video": "3.13.0-beta.68",
"@ohif/extension-measurement-tracking": "3.13.0-beta.68",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/extension-dicom-pdf": "3.13.0-beta.83",
"@ohif/extension-dicom-video": "3.13.0-beta.83",
"@ohif/extension-measurement-tracking": "3.13.0-beta.83",
},
},
"modes/usAnnotation": {
"name": "@ohif/mode-ultrasound-pleura-bline",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.74",
"@ohif/extension-ultrasound-pleura-bline": "3.13.0-beta.74",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.83",
"@ohif/extension-ultrasound-pleura-bline": "3.13.0-beta.83",
"i18next": "17.3.1",
},
"devDependencies": {
@@ -693,34 +693,34 @@
},
"platform/app": {
"name": "@ohif/app",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/codec-charls": "1.2.3",
"@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.2",
"@cornerstonejs/codec-openjpeg": "1.3.0",
"@cornerstonejs/codec-openjph": "2.4.7",
"@cornerstonejs/dicom-image-loader": "4.22.8",
"@cornerstonejs/dicom-image-loader": "4.22.10",
"@emotion/serialize": "1.3.3",
"@ohif/core": "3.13.0-beta.74",
"@ohif/extension-cornerstone": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.74",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.74",
"@ohif/extension-default": "3.13.0-beta.74",
"@ohif/extension-dicom-microscopy": "3.13.0-beta.74",
"@ohif/extension-dicom-pdf": "3.13.0-beta.74",
"@ohif/extension-dicom-video": "3.13.0-beta.74",
"@ohif/extension-test": "3.13.0-beta.74",
"@ohif/extension-ultrasound-pleura-bline": "3.13.0-beta.74",
"@ohif/i18n": "3.13.0-beta.74",
"@ohif/mode-basic-dev-mode": "3.13.0-beta.74",
"@ohif/mode-longitudinal": "3.13.0-beta.74",
"@ohif/mode-microscopy": "3.13.0-beta.74",
"@ohif/mode-test": "3.13.0-beta.74",
"@ohif/mode-ultrasound-pleura-bline": "3.13.0-beta.74",
"@ohif/ui": "3.13.0-beta.74",
"@ohif/ui-next": "3.13.0-beta.74",
"@ohif/core": "3.13.0-beta.83",
"@ohif/extension-cornerstone": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.83",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.83",
"@ohif/extension-default": "3.13.0-beta.83",
"@ohif/extension-dicom-microscopy": "3.13.0-beta.83",
"@ohif/extension-dicom-pdf": "3.13.0-beta.83",
"@ohif/extension-dicom-video": "3.13.0-beta.83",
"@ohif/extension-test": "3.13.0-beta.83",
"@ohif/extension-ultrasound-pleura-bline": "3.13.0-beta.83",
"@ohif/i18n": "3.13.0-beta.83",
"@ohif/mode-basic-dev-mode": "3.13.0-beta.83",
"@ohif/mode-longitudinal": "3.13.0-beta.83",
"@ohif/mode-microscopy": "3.13.0-beta.83",
"@ohif/mode-test": "3.13.0-beta.83",
"@ohif/mode-ultrasound-pleura-bline": "3.13.0-beta.83",
"@ohif/ui": "3.13.0-beta.83",
"@ohif/ui-next": "3.13.0-beta.83",
"@svgr/webpack": "8.1.0",
"@types/react": "18.3.23",
"classnames": "2.5.1",
@@ -772,7 +772,7 @@
},
"platform/cli": {
"name": "@ohif/cli",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"bin": {
"ohif-cli": "src/index.js",
},
@@ -796,7 +796,7 @@
},
"platform/core": {
"name": "@ohif/core",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"dcmjs": "0.49.4",
@@ -821,16 +821,16 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.2",
"@cornerstonejs/codec-openjpeg": "1.3.0",
"@cornerstonejs/codec-openjph": "2.4.7",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/dicom-image-loader": "4.22.8",
"@ohif/ui": "3.13.0-beta.74",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/dicom-image-loader": "4.22.10",
"@ohif/ui": "3.13.0-beta.84",
"cornerstone-math": "0.1.10",
"dicom-parser": "1.8.21",
},
},
"platform/i18n": {
"name": "@ohif/i18n",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@babel/runtime": "7.28.2",
"i18next-locize-backend": "2.2.2",
@@ -855,7 +855,7 @@
},
"platform/ui": {
"name": "@ohif/ui",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@testing-library/react": "13.4.0",
"browser-detect": "0.2.28",
@@ -905,7 +905,7 @@
},
"platform/ui-next": {
"name": "@ohif/ui-next",
"version": "3.13.0-beta.74",
"version": "3.13.0-beta.84",
"dependencies": {
"@radix-ui/react-accordion": "1.2.11",
"@radix-ui/react-checkbox": "1.3.2",
@@ -926,15 +926,16 @@
"@radix-ui/react-toggle": "1.1.9",
"@radix-ui/react-toggle-group": "1.1.10",
"@radix-ui/react-tooltip": "1.2.7",
"@tanstack/react-table": "8.21.3",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"cmdk": "1.1.1",
"date-fns": "3.6.0",
"date-fns": "4.1.0",
"framer-motion": "6.2.4",
"lucide-react": "0.379.0",
"next-themes": "0.3.0",
"react": "18.3.1",
"react-day-picker": "8.10.1",
"react-day-picker": "9.12.0",
"react-resizable-panels": "2.1.9",
"react-shepherd": "6.1.1",
"shepherd.js": "13.0.3",
@@ -976,6 +977,7 @@
"svgo": "3.3.3",
"tapable": "2.2.2",
"tar": "7.5.11",
"tmp": "0.2.6",
"trim": "1.0.1",
"trim-newlines": "5.0.0",
"webpack": "5.105.0",
@@ -1245,9 +1247,9 @@
"@bcoe/v8-coverage": ["@bcoe/v8-coverage@0.2.3", "", {}, "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw=="],
"@cornerstonejs/adapters": ["@cornerstonejs/adapters@4.22.8", "", { "dependencies": { "@babel/runtime-corejs2": "7.26.10", "buffer": "6.0.3", "dcmjs": "0.49.4", "gl-matrix": "3.4.3", "ndarray": "1.0.19" }, "peerDependencies": { "@cornerstonejs/core": "4.22.8", "@cornerstonejs/tools": "4.22.8" } }, "sha512-WUphdrsQVGqUN5KPt75FN4a7/tL49k41eCLa5fW8FmhNoi/NkmCPlr91z0ixf07P2dMtzv/eSmJ3IZI6W+FIrw=="],
"@cornerstonejs/adapters": ["@cornerstonejs/adapters@4.22.10", "", { "dependencies": { "@babel/runtime-corejs2": "7.26.10", "buffer": "6.0.3", "dcmjs": "0.49.4", "gl-matrix": "3.4.3", "ndarray": "1.0.19" }, "peerDependencies": { "@cornerstonejs/core": "4.22.10", "@cornerstonejs/tools": "4.22.10" } }, "sha512-XRZ/tB+BsXm7+hicnuC3kb11RpEWHjl1p0howpZxSWx6lM3URjq76uhfKSmvKmUI186rZoOakiJgcXuwK+G2Qg=="],
"@cornerstonejs/ai": ["@cornerstonejs/ai@4.22.8", "", { "dependencies": { "@babel/runtime-corejs2": "7.26.10", "buffer": "6.0.3", "dcmjs": "0.49.4", "gl-matrix": "3.4.3", "lodash.clonedeep": "4.5.0", "ndarray": "1.0.19", "onnxruntime-common": "1.17.1", "onnxruntime-web": "1.17.1" }, "peerDependencies": { "@cornerstonejs/core": "4.22.8", "@cornerstonejs/tools": "4.22.8" } }, "sha512-rN/7nicjphDsOWqPGTzbq/BTJD8dy2r7XW4P46FnyEPRmO8KVisTOvHaEEu3EklMVqvodbRzigW73kO1mh7eNw=="],
"@cornerstonejs/ai": ["@cornerstonejs/ai@4.22.10", "", { "dependencies": { "@babel/runtime-corejs2": "7.26.10", "buffer": "6.0.3", "dcmjs": "0.49.4", "gl-matrix": "3.4.3", "lodash.clonedeep": "4.5.0", "ndarray": "1.0.19", "onnxruntime-common": "1.17.1", "onnxruntime-web": "1.17.1" }, "peerDependencies": { "@cornerstonejs/core": "4.22.10", "@cornerstonejs/tools": "4.22.10" } }, "sha512-cCeMJ6+KX92ELLGnYpvjP1Tmgl0R4vSoCXQIz5av7mbls+b+fTShzkJbZSlA1rkROqZY9oi61VpcpnEj/6jAxg=="],
"@cornerstonejs/calculate-suv": ["@cornerstonejs/calculate-suv@1.1.0", "", {}, "sha512-Q9XraiDJif9aMFArD2iEuDO/HXbcRVCqB7KfaHgDrdTTjgDFovS91Psbdim7crypRSvE6dh/+HKeFNHdvNkA6w=="],
@@ -1259,15 +1261,15 @@
"@cornerstonejs/codec-openjph": ["@cornerstonejs/codec-openjph@2.4.7", "", {}, "sha512-qvP4q4JDib7mi9r7LqKOwqz7YZ8gjtDX4ZCezeYf8+eb7MBXCz5uXAMeVF3yz9Axw4XiIMdB/pqXkm8tqCl13w=="],
"@cornerstonejs/core": ["@cornerstonejs/core@4.22.8", "", { "dependencies": { "@kitware/vtk.js": "34.15.1", "comlink": "4.4.2", "gl-matrix": "3.4.3", "loglevel": "1.9.2" } }, "sha512-GOv8sTwV3hqhZpAYSFH/yhNj15TgcWh364ndIegT29g87FURHu8Ql9cF6irOamAuehJ3YKfbPxUZzqiXtfyPDg=="],
"@cornerstonejs/core": ["@cornerstonejs/core@4.22.10", "", { "dependencies": { "@kitware/vtk.js": "34.15.1", "comlink": "4.4.2", "gl-matrix": "3.4.3", "loglevel": "1.9.2" } }, "sha512-RfcTws05PGAbxQbb50IdWTpMxyZlWfha6eKQRtP3QOqQs/1AmtW51wtWnMWolqYGaWxbKaBXgvw/tTykytDZzQ=="],
"@cornerstonejs/dicom-image-loader": ["@cornerstonejs/dicom-image-loader@4.22.8", "", { "dependencies": { "@cornerstonejs/codec-charls": "1.2.3", "@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.2", "@cornerstonejs/codec-openjpeg": "1.3.0", "@cornerstonejs/codec-openjph": "2.4.7", "comlink": "4.4.2", "dicom-parser": "1.8.21", "jpeg-lossless-decoder-js": "2.1.2", "pako": "2.1.0", "uuid": "9.0.1" }, "peerDependencies": { "@cornerstonejs/core": "4.22.8" } }, "sha512-3Bb3xJiO9ddDCeT/wHL8R0G1t8W4+aYY8N9YGV+eMUI1WTkRES3WH3N7U8EtjLYXKqfc15NIEe78Otf2qS+CgQ=="],
"@cornerstonejs/dicom-image-loader": ["@cornerstonejs/dicom-image-loader@4.22.10", "", { "dependencies": { "@cornerstonejs/codec-charls": "1.2.3", "@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.2", "@cornerstonejs/codec-openjpeg": "1.3.0", "@cornerstonejs/codec-openjph": "2.4.7", "comlink": "4.4.2", "dicom-parser": "1.8.21", "jpeg-lossless-decoder-js": "2.1.2", "pako": "2.1.0", "uuid": "9.0.1" }, "peerDependencies": { "@cornerstonejs/core": "4.22.10" } }, "sha512-zGn50v4HhEJn61KQP6HTCTfcYlJd1Vz5GQendxSwE66IMOS0ds7y7TZoWVfjTjhb4UDZGVfmOYjAx4HugOZQxw=="],
"@cornerstonejs/labelmap-interpolation": ["@cornerstonejs/labelmap-interpolation@4.22.8", "", { "dependencies": { "@itk-wasm/morphological-contour-interpolation": "1.1.0", "itk-wasm": "1.0.0-b.165" }, "peerDependencies": { "@cornerstonejs/core": "4.22.8", "@cornerstonejs/tools": "4.22.8", "@kitware/vtk.js": "34.15.1" } }, "sha512-GKr123lPCr6Tl3GDOFMjm0m+gexDvAJjYYGshCcSx6/pT6PT30ALRXi0pXXdcGr1kbk9SKEMM1uzxFLXJs6uIQ=="],
"@cornerstonejs/labelmap-interpolation": ["@cornerstonejs/labelmap-interpolation@4.22.10", "", { "dependencies": { "@itk-wasm/morphological-contour-interpolation": "1.1.0", "itk-wasm": "1.0.0-b.165" }, "peerDependencies": { "@cornerstonejs/core": "4.22.10", "@cornerstonejs/tools": "4.22.10", "@kitware/vtk.js": "34.15.1" } }, "sha512-Pk/8aSlknY/7a+7pVGckKGSTzPUpILfvQmAO+rX0EBNW0gsd7ptSs3Fm/nG8cMmVNg/rkz2KlHB3mzrxlqTkfg=="],
"@cornerstonejs/polymorphic-segmentation": ["@cornerstonejs/polymorphic-segmentation@4.22.8", "", { "dependencies": { "@icr/polyseg-wasm": "0.4.0" }, "peerDependencies": { "@cornerstonejs/core": "4.22.8", "@cornerstonejs/tools": "4.22.8", "@kitware/vtk.js": "34.15.1" } }, "sha512-cLliz/E4BjKKw7rnyYvDprc8BK011LwaCwvWv6h9iUGWm2j72NhsRLf2jdcpEav3wyUJtWDHlvXO3QBzlHHW0A=="],
"@cornerstonejs/polymorphic-segmentation": ["@cornerstonejs/polymorphic-segmentation@4.22.10", "", { "dependencies": { "@icr/polyseg-wasm": "0.4.0" }, "peerDependencies": { "@cornerstonejs/core": "4.22.10", "@cornerstonejs/tools": "4.22.10", "@kitware/vtk.js": "34.15.1" } }, "sha512-M4IBQm59cQ/4uySIuxFBG9tK0hnmouEJypk0nWvFiZm2wfv+uIp/0KI6claRAsAsyeX2Ieh5ZOjK44fFOKtZ0w=="],
"@cornerstonejs/tools": ["@cornerstonejs/tools@4.22.8", "", { "dependencies": { "@types/offscreencanvas": "2019.7.3", "comlink": "4.4.2", "lodash.get": "4.4.2" }, "peerDependencies": { "@cornerstonejs/core": "4.22.8", "@kitware/vtk.js": "34.15.1", "@types/d3-array": "3.2.1", "@types/d3-interpolate": "3.0.4", "d3-array": "3.2.4", "d3-interpolate": "3.0.1", "gl-matrix": "3.4.3" } }, "sha512-vDTMIOJ+oZJyPixg/iQbYNM9XFz2Ud+VGMAf6mAP3LhpH7ofCh0Phkf9BtJiCjKT+IQqloFSvWjy6aoLd8KNJA=="],
"@cornerstonejs/tools": ["@cornerstonejs/tools@4.22.10", "", { "dependencies": { "@types/offscreencanvas": "2019.7.3", "comlink": "4.4.2", "lodash.get": "4.4.2" }, "peerDependencies": { "@cornerstonejs/core": "4.22.10", "@kitware/vtk.js": "34.15.1", "@types/d3-array": "3.2.1", "@types/d3-interpolate": "3.0.4", "d3-array": "3.2.4", "d3-interpolate": "3.0.1", "gl-matrix": "3.4.3" } }, "sha512-pQfpwBLMLMSl5BOAl3qw5c2+vsh1LW5f2QYXHYQ4wHeM/l7No0UjPj4ECQCctXDIneA4VHXOZ6VXiTGrmYMRHQ=="],
"@cspotcode/source-map-support": ["@cspotcode/source-map-support@0.8.1", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.9" } }, "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw=="],
@@ -1305,6 +1307,8 @@
"@cypress/xvfb": ["@cypress/xvfb@1.2.4", "", { "dependencies": { "debug": "^3.1.0", "lodash.once": "^4.1.1" } }, "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q=="],
"@date-fns/tz": ["@date-fns/tz@1.5.0", "", {}, "sha512-lwYN/vDPeNRULcepoE/LO2Pgx+7/RV+S9ARfbc9lr2DtGkOD7pAiruHvbR1RX3Qyf6ja47EWJDMsNK5vK08DJg=="],
"@discoveryjs/json-ext": ["@discoveryjs/json-ext@0.5.7", "", {}, "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw=="],
"@emnapi/core": ["@emnapi/core@1.4.5", "", { "dependencies": { "@emnapi/wasi-threads": "1.0.4", "tslib": "^2.4.0" } }, "sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q=="],
@@ -1943,6 +1947,10 @@
"@swc/types": ["@swc/types@0.1.23", "", { "dependencies": { "@swc/counter": "^0.1.3" } }, "sha512-u1iIVZV9Q0jxY+yM2vw/hZGDNudsN85bBpTqzAQ9rzkxW9D+e3aEM4Han+ow518gSewkXgjmEK0BD79ZcNVgPw=="],
"@tanstack/react-table": ["@tanstack/react-table@8.21.3", "", { "dependencies": { "@tanstack/table-core": "8.21.3" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" } }, "sha512-5nNMTSETP4ykGegmVkhjcS8tTLW6Vl4axfEGQN3v0zdHYbK4UfoqfPChclTrJ4EoK9QynqAu9oUf8VEmrpZ5Ww=="],
"@tanstack/table-core": ["@tanstack/table-core@8.21.3", "", {}, "sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg=="],
"@testing-library/dom": ["@testing-library/dom@8.20.1", "", { "dependencies": { "@babel/code-frame": "^7.10.4", "@babel/runtime": "^7.12.5", "@types/aria-query": "^5.0.1", "aria-query": "5.1.3", "chalk": "^4.1.0", "dom-accessibility-api": "^0.5.9", "lz-string": "^1.5.0", "pretty-format": "^27.0.2" } }, "sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g=="],
"@testing-library/react": ["@testing-library/react@13.4.0", "", { "dependencies": { "@babel/runtime": "^7.12.5", "@testing-library/dom": "^8.5.0", "@types/react-dom": "^18.0.0" }, "peerDependencies": { "react": "^18.0.0", "react-dom": "^18.0.0" } }, "sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw=="],
@@ -2755,7 +2763,9 @@
"data-view-byte-offset": ["data-view-byte-offset@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-data-view": "^1.0.1" } }, "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ=="],
"date-fns": ["date-fns@3.6.0", "", {}, "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww=="],
"date-fns": ["date-fns@4.1.0", "", {}, "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg=="],
"date-fns-jalali": ["date-fns-jalali@4.1.0-0", "", {}, "sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg=="],
"dateformat": ["dateformat@3.0.3", "", {}, "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q=="],
@@ -4125,8 +4135,6 @@
"os-browserify": ["os-browserify@0.3.0", "", {}, "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A=="],
"os-tmpdir": ["os-tmpdir@1.0.2", "", {}, "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g=="],
"ospath": ["ospath@1.2.2", "", {}, "sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA=="],
"own-keys": ["own-keys@1.0.1", "", { "dependencies": { "get-intrinsic": "^1.2.6", "object-keys": "^1.1.1", "safe-push-apply": "^1.0.0" } }, "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg=="],
@@ -4485,7 +4493,7 @@
"react-dates": ["react-dates@21.8.0", "", { "dependencies": { "airbnb-prop-types": "^2.15.0", "consolidated-events": "^1.1.1 || ^2.0.0", "enzyme-shallow-equal": "^1.0.0", "is-touch-device": "^1.0.1", "lodash": "^4.1.1", "object.assign": "^4.1.0", "object.values": "^1.1.0", "prop-types": "^15.7.2", "raf": "^3.4.1", "react-moment-proptypes": "^1.6.0", "react-outside-click-handler": "^1.2.4", "react-portal": "^4.2.0", "react-with-direction": "^1.3.1", "react-with-styles": "^4.1.0", "react-with-styles-interface-css": "^6.0.0" }, "peerDependencies": { "@babel/runtime": "^7.0.0", "moment": "^2.18.1", "react": "^0.14 || ^15.5.4 || ^16.1.1", "react-dom": "^0.14 || ^15.5.4 || ^16.1.1" } }, "sha512-PPriGqi30CtzZmoHiGdhlA++YPYPYGCZrhydYmXXQ6RAvAsaONcPtYgXRTLozIOrsQ5mSo40+DiA5eOFHnZ6xw=="],
"react-day-picker": ["react-day-picker@8.10.1", "", { "peerDependencies": { "date-fns": "^2.28.0 || ^3.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, "sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA=="],
"react-day-picker": ["react-day-picker@9.12.0", "", { "dependencies": { "@date-fns/tz": "^1.4.1", "date-fns": "^4.1.0", "date-fns-jalali": "^4.1.0-0" }, "peerDependencies": { "react": ">=16.8.0" } }, "sha512-t8OvG/Zrciso5CQJu5b1A7yzEmebvST+S3pOVQJWxwjjVngyG/CA2htN/D15dLI4uTEuLLkbZyS4YYt480FAtA=="],
"react-dnd": ["react-dnd@14.0.2", "", { "dependencies": { "@react-dnd/invariant": "^2.0.0", "@react-dnd/shallowequal": "^2.0.0", "dnd-core": "14.0.0", "fast-deep-equal": "^3.1.3", "hoist-non-react-statics": "^3.3.2" }, "peerDependencies": { "@types/hoist-non-react-statics": ">= 3.3.1", "@types/node": ">= 12", "@types/react": ">= 16", "react": ">= 16.14" }, "optionalPeers": ["@types/hoist-non-react-statics", "@types/node", "@types/react"] }, "sha512-JoEL78sBCg8SzjOKMlkR70GWaPORudhWuTNqJ56lb2P8Vq0eM2+er3ZrMGiSDhOmzaRPuA9SNBz46nHCrjn11A=="],
@@ -4923,7 +4931,7 @@
"tldts-core": ["tldts-core@6.1.86", "", {}, "sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA=="],
"tmp": ["tmp@0.2.3", "", {}, "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w=="],
"tmp": ["tmp@0.2.6", "", {}, "sha512-5sJPdPjfI5Kx+qbrDesxkglRBxW//g7hCsqspEjwkewGvBMGIKMOTKzLt1hFVJzyadba3lDUN20O9qhvbQUSTA=="],
"tmpl": ["tmpl@1.0.5", "", {}, "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw=="],
@@ -5869,8 +5877,6 @@
"external-editor/iconv-lite": ["iconv-lite@0.4.24", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA=="],
"external-editor/tmp": ["tmp@0.0.33", "", { "dependencies": { "os-tmpdir": "~1.0.2" } }, "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw=="],
"extract-css-chunks-webpack-plugin/schema-utils": ["schema-utils@1.0.0", "", { "dependencies": { "ajv": "^6.1.0", "ajv-errors": "^1.0.0", "ajv-keywords": "^3.1.0" } }, "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g=="],
"extract-zip/get-stream": ["get-stream@5.2.0", "", { "dependencies": { "pump": "^3.0.0" } }, "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="],
+1 -1
View File
@@ -1 +1 @@
2258c7957a18ed0f1a75d2bd5d379006797b2882
daae4c144e7cb80bbee7c05d9fceef8b332ed2a0
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-pmap",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "DICOM Parametric Map read workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/i18n": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/i18n": "3.13.0-beta.85",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -46,8 +46,8 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/adapters": "4.22.8",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/adapters": "4.22.10",
"@cornerstonejs/core": "4.22.10",
"@kitware/vtk.js": "34.15.1"
}
}
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-rt",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "DICOM RT read workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/i18n": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/i18n": "3.13.0-beta.85",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-seg",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "DICOM SEG read workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/i18n": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/i18n": "3.13.0-beta.85",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -46,8 +46,8 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/adapters": "4.22.8",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/adapters": "4.22.10",
"@cornerstonejs/core": "4.22.10",
"@kitware/vtk.js": "34.15.1"
}
}
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-sr",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF extension for an SR Cornerstone Viewport",
"author": "OHIF",
"license": "MIT",
@@ -34,10 +34,10 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-measurement-tracking": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-measurement-tracking": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -46,9 +46,9 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/adapters": "4.22.8",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@cornerstonejs/adapters": "4.22.10",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"classnames": "2.5.1"
}
}
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dynamic-volume",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF extension for 4D volumes data",
"author": "OHIF",
"license": "MIT",
@@ -29,11 +29,11 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/i18n": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/i18n": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -42,8 +42,8 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"classnames": "2.5.1"
}
}
+35
View File
@@ -3,6 +3,41 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-cornerstone
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-cornerstone
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
### Bug Fixes
* **segmentation:** restore navigation for duplicated contour segments ([#6038](https://github.com/OHIF/Viewers/issues/6038)) ([0c1ca6b](https://github.com/OHIF/Viewers/commit/0c1ca6b04a6c1aef478c7a7d9f360f9b9c50f188))
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-cornerstone
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-cornerstone
+10 -10
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF extension for Cornerstone",
"author": "OHIF",
"license": "MIT",
@@ -40,9 +40,9 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.2",
"@cornerstonejs/codec-openjpeg": "1.3.0",
"@cornerstonejs/codec-openjph": "2.4.7",
"@cornerstonejs/dicom-image-loader": "4.22.8",
"@ohif/core": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@cornerstonejs/dicom-image-loader": "4.22.10",
"@ohif/core": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -53,12 +53,12 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/adapters": "4.22.8",
"@cornerstonejs/ai": "4.22.8",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/labelmap-interpolation": "4.22.8",
"@cornerstonejs/polymorphic-segmentation": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@cornerstonejs/adapters": "4.22.10",
"@cornerstonejs/ai": "4.22.10",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/labelmap-interpolation": "4.22.10",
"@cornerstonejs/polymorphic-segmentation": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"@icr/polyseg-wasm": "0.4.0",
"@itk-wasm/morphological-contour-interpolation": "1.1.0",
"@kitware/vtk.js": "34.15.1",
@@ -2403,14 +2403,25 @@ function commandsModule({
targetSegmentInfo?: SegmentInfo;
}) => {
if (!targetSegmentInfo) {
const sourceSegmentation = segmentationService.getSegmentation(
sourceSegmentInfo.segmentationId
);
const sourceCachedStats =
sourceSegmentation?.segments?.[sourceSegmentInfo.segmentIndex]?.cachedStats;
targetSegmentInfo = {
segmentationId: sourceSegmentInfo.segmentationId,
segmentIndex: segmentationService.getNextAvailableSegmentIndex(
sourceSegmentInfo.segmentationId
),
};
// Copy source cachedStats so jump-to-segment navigation works on the duplicate segment.
segmentationService.addSegment(targetSegmentInfo.segmentationId, {
segmentIndex: targetSegmentInfo.segmentIndex,
...(sourceCachedStats && {
cachedStats: csUtils.deepClone(sourceCachedStats) as Record<string, unknown>,
}),
});
}
@@ -896,6 +896,7 @@ class SegmentationService extends PubSubService {
active?: boolean;
color?: csTypes.Color; // Add color type
visibility?: boolean; // Add visibility option
cachedStats?: Record<string, unknown>;
} = {}
): void {
if (config?.segmentIndex === 0) {
+35
View File
@@ -3,6 +3,41 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
### Features
* **WorkList:** New Study List (WorkList based on ui-next); old study list renamed to LegacyWorklist ([#6005](https://github.com/OHIF/Viewers/issues/6005)) ([daae4c1](https://github.com/OHIF/Viewers/commit/daae4c144e7cb80bbee7c05d9fceef8b332ed2a0))
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-default
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-default
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-default
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-default
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-default",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "Common/default features and functionality for basic image viewing",
"author": "OHIF Core Team",
"license": "MIT",
@@ -34,8 +34,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/i18n": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/i18n": "3.13.0-beta.85",
"dcmjs": "0.49.4",
"dicomweb-client": "0.10.4",
"prop-types": "15.8.1",
@@ -1,6 +1,17 @@
import React, { ReactElement, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Icons, useModal } from '@ohif/ui-next';
import {
Icons,
useModal,
Button,
HoverCard,
HoverCardTrigger,
HoverCardContent,
Card,
CardHeader,
CardDescription,
CardContent,
} from '@ohif/ui-next';
import { Types } from '@ohif/core';
import DataSourceConfigurationModalComponent from './DataSourceConfigurationModalComponent';
@@ -18,6 +29,8 @@ function DataSourceConfigurationComponent({
const [configuredItems, setConfiguredItems] =
useState<Array<Types.BaseDataSourceConfigurationAPIItem>>();
const [itemLabels, setItemLabels] = useState<Array<string>>([]);
useEffect(() => {
let shouldUpdate = true;
@@ -38,6 +51,7 @@ function DataSourceConfigurationComponent({
const configAPI = configurationAPIFactory(activeDataSourceDef.sourceName);
setConfigurationAPI(configAPI);
setItemLabels(configAPI.getItemLabels());
// New configuration API means that the existing configured items must be cleared.
setConfiguredItems(null);
@@ -87,31 +101,42 @@ function DataSourceConfigurationComponent({
}, [configurationAPI, configuredItems, showConfigurationModal]);
return configuredItems ? (
<div className="text-muted-foreground flex items-center overflow-hidden">
<Icons.Settings
className="mr-2.5 h-3.5 w-3.5 shrink-0 cursor-pointer"
onClick={showConfigurationModal}
/>
{configuredItems.map((item, itemIndex) => {
return (
<div
key={itemIndex}
className="flex overflow-hidden"
>
<div
key={itemIndex}
className="overflow-hidden text-ellipsis whitespace-nowrap"
>
{item.name}
</div>
{itemIndex !== configuredItems.length - 1 && <div className="px-2.5">|</div>}
</div>
);
})}
</div>
) : (
<></>
);
<HoverCard>
<HoverCardTrigger asChild>
<Button
variant="ghost"
size="sm"
className="gap-1 text-sm"
onClick={showConfigurationModal}
>
<Icons.CloudSettings className="h-5 w-5" />
Source
</Button>
</HoverCardTrigger>
<HoverCardContent
align="center"
className="w-72 p-0"
>
<Card className="border-0 shadow-none">
<CardHeader className="p-3 pb-1">
<CardDescription className="text-sm">
<span className="text-foreground font-semibold">{t('Data Source')}:</span>{' '}
{t('Configure the server connection and storage settings')}
</CardDescription>
</CardHeader>
<CardContent className="grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 p-3 pt-0 text-sm">
<div className="bg-input col-span-2 my-2 h-px" />
{itemLabels.map((label, index) => (
<React.Fragment key={label}>
<span className="text-muted-foreground">{t(label)}</span>
<span>{configuredItems[index]?.name ?? '—'}</span>
</React.Fragment>
))}
</CardContent>
</Card>
</HoverCardContent>
</HoverCard>
) : null;
}
export default DataSourceConfigurationComponent;
@@ -16,7 +16,8 @@ import { retrieveStudyMetadata, deleteStudyMetadataPromise } from './retrieveStu
import StaticWadoClient from './utils/StaticWadoClient';
import getDirectURL from '../utils/getDirectURL';
import { fixBulkDataURI } from './utils/fixBulkDataURI';
import {HeadersInterface} from '@ohif/core/src/types/RequestHeaders';
import { HeadersInterface } from '@ohif/core/src/types/RequestHeaders';
import { getGetThumbnailSrc, ThumbnailContext } from './retrieveThumbnail';
const { DicomMetaDictionary, DicomDict } = dcmjs.data;
@@ -47,6 +48,15 @@ export type DicomWebConfig = {
thumbnail - render using the thumbnail endpoint on wadors using bulkDataURI, passing authentication params to the url.
rendered - should use the rendered endpoint instead of the thumbnail endpoint
*/
thumbnailRequestStrategy?: 'bulkDataRetrieve' | 'fetch';
/**
* Thumbnail data request strategy when `thumbnailRendering` is `thumbnail`/`rendered`; ignored for `wadors`/`thumbnailDirect`.
*
* - `bulkDataRetrieve` (default): Uses the DICOMweb client's bulk data retrieve API (`retrieveBulkData`)
* - `fetch`: `GET` the WADO-RS thumbnail or rendered resource URL with auth headers and use the
* response body as a JPEG blob URL. For series-level context, if that `GET` fails, a single
* QIDO instances query (`limit=1`) is used to obtain `SOPInstanceUID` and the fetch is retried once.
*/
/** Whether the server supports reject calls (i.e. DCM4CHEE) */
supportsReject?: boolean;
/** indicates if the retrieves can fetch singlepart. Options are bulkdata, video, image, or true */
@@ -98,6 +108,7 @@ export type BulkDataURIConfig = {
relativeResolution?: 'studies' | 'series';
};
/**
* The header options are the options passed into the generateWadoHeader
* command. This takes an extensible set of attributes to allow future enhancements.
@@ -158,7 +169,7 @@ function createDicomWebApi(dicomWebConfig: DicomWebConfig, servicesManager) {
*/
generateWadoHeader = (options: HeaderOptions): HeadersInterface => {
const authorizationHeader = getAuthorizationHeader();
if (options?.includeTransferSyntax!==false) {
if (options?.includeTransferSyntax !== false) {
//Generate accept header depending on config params
const formattedAcceptHeader = utils.generateAcceptHeader(
dicomWebConfig.acceptHeader,
@@ -175,7 +186,7 @@ function createDicomWebApi(dicomWebConfig: DicomWebConfig, servicesManager) {
// which the server expects Accept: application/dicom+json will still include that in the
// header.
return {
...authorizationHeader
...authorizationHeader,
};
}
};
@@ -261,70 +272,16 @@ function createDicomWebApi(dicomWebConfig: DicomWebConfig, servicesManager) {
* or is already retrieved, or a promise to a URL for such use if a BulkDataURI
*/
getGetThumbnailSrc: function (instance, imageId) {
if (dicomWebConfig.thumbnailRendering === 'wadors') {
return function getThumbnailSrc(options) {
if (!imageId) {
return null;
}
if (!options?.getImageSrc) {
return null;
}
return options.getImageSrc(imageId);
};
}
if (dicomWebConfig.thumbnailRendering === 'thumbnailDirect') {
return function getThumbnailSrc() {
return this.directURL({
instance: instance,
defaultPath: '/thumbnail',
defaultType: 'image/jpeg',
singlepart: true,
tag: 'Absent',
});
}.bind(this);
}
if (dicomWebConfig.thumbnailRendering === 'thumbnail') {
return async function getThumbnailSrc() {
const { StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID } = instance;
const bulkDataURI = `${dicomWebConfig.wadoRoot}/studies/${StudyInstanceUID}/series/${SeriesInstanceUID}/instances/${SOPInstanceUID}/thumbnail?accept=image/jpeg`;
return URL.createObjectURL(
new Blob(
[
await this.bulkDataURI({
BulkDataURI: bulkDataURI.replace('wadors:', ''),
defaultType: 'image/jpeg',
mediaTypes: ['image/jpeg'],
thumbnail: true,
}),
],
{ type: 'image/jpeg' }
)
);
}.bind(this);
}
if (dicomWebConfig.thumbnailRendering === 'rendered') {
return async function getThumbnailSrc() {
const { StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID } = instance;
const bulkDataURI = `${dicomWebConfig.wadoRoot}/studies/${StudyInstanceUID}/series/${SeriesInstanceUID}/instances/${SOPInstanceUID}/rendered?accept=image/jpeg`;
return URL.createObjectURL(
new Blob(
[
await this.bulkDataURI({
BulkDataURI: bulkDataURI.replace('wadors:', ''),
defaultType: 'image/jpeg',
mediaTypes: ['image/jpeg'],
thumbnail: true,
}),
],
{ type: 'image/jpeg' }
)
);
}.bind(this);
}
getGetThumbnailSrc: function (thumbnailContext: ThumbnailContext, imageId) {
return getGetThumbnailSrc({
thumbnailContext,
imageId,
config: dicomWebConfig,
getAuthorizationHeader,
qidoDicomWebClient,
retrieve: this,
});
},
directURL: params => {
return getDirectURL(
{
@@ -55,6 +55,7 @@ function processResults(qidoStudies) {
instances: Number(getString(qidoStudy['00201208'])) || 0, // number
description: getString(qidoStudy['00081030']) || '',
modalities: getString(getModalities(qidoStudy['00080060'], qidoStudy['00080061'])) || '',
referringPhysicianName: utils.formatPN(getName(qidoStudy['00080090'])) || '', // Referring Physician's Name
})
);
@@ -151,6 +152,7 @@ function mapParams(params, options = {}) {
const commaSeparatedFields = [
'00081030', // Study Description
'00080060', // Modality
'00080090', // Referring Physician's Name
// Add more fields here if you want them in the result
].join(',');
@@ -0,0 +1,346 @@
import { HeadersInterface } from '@ohif/core/src/types/RequestHeaders';
export type ThumbnailContext = {
StudyInstanceUID?: string;
SeriesInstanceUID?: string;
SOPInstanceUID?: string;
};
type ThumbnailFetchRequestResult = {
url: string;
endpointPath: string;
headers: Record<string, string>;
};
type GetThumbnailSrcOptions = {
signal?: AbortSignal;
getImageSrc?: (imageId: unknown) => unknown;
};
type QidoClient = {
headers: HeadersInterface;
searchForInstances: (opts: unknown) => Promise<unknown[]>;
};
/**
* The subset of the data source's `retrieve` object the thumbnail strategies
* call back into for the directURL and bulkData-backed renderings.
*/
type RetrieveApi = {
directURL: (params: unknown) => unknown;
bulkDataURI: (params: unknown) => Promise<BlobPart>;
};
type ThumbnailConfig = {
thumbnailRendering?: string;
thumbnailRequestStrategy?: 'bulkDataRetrieve' | 'fetch';
wadoRoot?: string;
};
type GetGetThumbnailSrcDeps = {
thumbnailContext: ThumbnailContext;
imageId: unknown;
config: ThumbnailConfig;
getAuthorizationHeader: () => HeadersInterface;
qidoDicomWebClient: QidoClient;
retrieve: RetrieveApi;
};
/**
* Builds the `getThumbnailSrc` function for a given thumbnail context,
* selecting the strategy from `config.thumbnailRendering` /
* `config.thumbnailRequestStrategy`.
*
* Extracted from the DICOMweb data source so the thumbnail strategies live
* apart from the data source wiring. The `retrieve` dependency provides the
* `directURL` and `bulkDataURI` callbacks the data source used to reach via
* `this`.
*/
export function getGetThumbnailSrc({
thumbnailContext,
imageId,
config,
getAuthorizationHeader,
qidoDicomWebClient,
retrieve,
}: GetGetThumbnailSrcDeps) {
const thumbnailRendering = config.thumbnailRendering;
if (!thumbnailRendering) {
return function getThumbnailSrc() {
console.warn('thumbnailRendering is not configured; returning null thumbnail src.');
return null;
};
}
if (thumbnailRendering === 'wadors') {
return function getThumbnailSrc(options?: GetThumbnailSrcOptions) {
if (!imageId) {
return null;
}
if (!options?.getImageSrc) {
return null;
}
// Note: options.signal (Cornerstone-backed loadImageToCanvas via getImageSrc) does
// not currently expose an AbortSignal hook, so abort is not propagated to the
// underlying image load. We short-circuit only if already aborted at call time.
if (options?.signal?.aborted) {
return null;
}
return options.getImageSrc(imageId);
};
}
// thumbnailDirect is for plain <img src> URLs without auth headers; never use fetch here.
// No network call happens at this layer (the <img> element loads the URL later), so
// options.signal is not applicable here.
if (thumbnailRendering === 'thumbnailDirect') {
return function getThumbnailSrc() {
return retrieve.directURL({
instance: thumbnailContext,
defaultPath: '/thumbnail',
defaultType: 'image/jpeg',
singlepart: true,
tag: 'Absent',
});
};
}
const thumbnailRequestStrategy = config.thumbnailRequestStrategy || 'bulkDataRetrieve';
if (thumbnailRequestStrategy === 'fetch') {
return async function getThumbnailSrc(options?: { signal?: AbortSignal }) {
return fetchThumbnailWithQidoFallbackForSeries(
thumbnailContext,
thumbnailRendering,
config.wadoRoot,
getAuthorizationHeader,
qidoDicomWebClient,
options?.signal
);
};
}
if (thumbnailRendering === 'thumbnail') {
return async function getThumbnailSrc(options?: { signal?: AbortSignal }) {
// Note: this path goes through bulkDataURI -> dicomweb-client retrieveBulkData,
// which is XHR-based and does NOT honor AbortSignal. The underlying request will
// run to completion server-side even if signal aborts; we only short-circuit
// before kicking it off if already aborted.
if (options?.signal?.aborted) {
return null;
}
const endpoint = buildThumbnailEndpointPath(
thumbnailContext,
thumbnailRendering,
new URLSearchParams({ accept: 'image/jpeg' })
);
const bulkDataURI = `${config.wadoRoot}${endpoint}`;
return URL.createObjectURL(
new Blob(
[
await retrieve.bulkDataURI({
BulkDataURI: bulkDataURI.replace('wadors:', ''),
defaultType: 'image/jpeg',
mediaTypes: ['image/jpeg'],
thumbnail: true,
}),
],
{ type: 'image/jpeg' }
)
);
};
}
if (thumbnailRendering === 'rendered') {
return async function getThumbnailSrc(options?: { signal?: AbortSignal }) {
// Note: this path goes through bulkDataURI -> dicomweb-client retrieveBulkData,
// which is XHR-based and does NOT honor AbortSignal. The underlying request will
// run to completion server-side even if signal aborts; we only short-circuit
// before kicking it off if already aborted.
if (options?.signal?.aborted) {
return null;
}
const endpoint = buildThumbnailEndpointPath(
thumbnailContext,
thumbnailRendering,
new URLSearchParams({ accept: 'image/jpeg' })
);
const bulkDataURI = `${config.wadoRoot}${endpoint}`;
return URL.createObjectURL(
new Blob(
[
await retrieve.bulkDataURI({
BulkDataURI: bulkDataURI.replace('wadors:', ''),
defaultType: 'image/jpeg',
mediaTypes: ['image/jpeg'],
thumbnail: true,
}),
],
{ type: 'image/jpeg' }
)
);
};
}
return function getThumbnailSrc() {
console.warn(
`Unsupported thumbnailRendering "${thumbnailRendering}"; returning null thumbnail src.`
);
return null;
};
}
function buildThumbnailEndpointPath(
thumbnailContext: ThumbnailContext,
thumbnailRendering: string,
queryParams?: URLSearchParams
): string {
const { StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID } = thumbnailContext;
const basePath =
SeriesInstanceUID && SOPInstanceUID
? `/studies/${StudyInstanceUID}/series/${SeriesInstanceUID}/instances/${SOPInstanceUID}/${thumbnailRendering}`
: SeriesInstanceUID
? `/studies/${StudyInstanceUID}/series/${SeriesInstanceUID}/${thumbnailRendering}`
: `/studies/${StudyInstanceUID}/${thumbnailRendering}`;
if (!queryParams) {
return basePath;
}
const queryString = queryParams.toString();
return queryString ? `${basePath}?${queryString}` : basePath;
}
function getThumbnailFetchRequest(
thumbnailContext: ThumbnailContext,
thumbnailRendering: string,
wadoRoot: string | undefined,
getAuthorizationHeader: () => HeadersInterface
): ThumbnailFetchRequestResult {
const endpointPath = buildThumbnailEndpointPath(
thumbnailContext,
thumbnailRendering,
// Thumbnails for some data source (e.g. dcm4chee) are pixelated by default, so we need to set the viewport to 256,256 to get a better thumbnail.
new URLSearchParams({ viewport: '256,256' })
);
const headers: Record<string, string> = {
...(getAuthorizationHeader() as Record<string, string>),
Accept: 'image/jpeg',
};
return {
url: `${wadoRoot}${endpointPath}`,
endpointPath,
headers,
};
}
async function fetchThumbnailObjectURL(
thumbnailContext: ThumbnailContext,
thumbnailRendering: string,
wadoRoot: string | undefined,
getAuthorizationHeader: () => HeadersInterface,
signal?: AbortSignal
): Promise<string | null> {
const fetchRequest = getThumbnailFetchRequest(
thumbnailContext,
thumbnailRendering,
wadoRoot,
getAuthorizationHeader
);
try {
const response = await fetch(fetchRequest.url, {
method: 'GET',
headers: fetchRequest.headers,
signal,
});
if (!response.ok) {
console.warn(
`thumbnail fetch failed with status ${response.status} for ${fetchRequest.endpointPath}`
);
return null;
}
const blob = await response.blob();
return URL.createObjectURL(blob);
} catch (error) {
if ((error as { name?: string })?.name === 'AbortError') {
return null;
}
console.warn('thumbnail fetch failed', error);
return null;
}
}
/**
* When thumbnailRequestStrategy is fetch: try WADO GET for the given context; if it fails and the
* context is series-level (no SOPInstanceUID), QIDO one instance and retry fetch once.
*/
async function fetchThumbnailWithQidoFallbackForSeries(
thumbnailContext: ThumbnailContext,
thumbnailRendering: string,
wadoRoot: string | undefined,
getAuthorizationHeader: () => HeadersInterface,
qidoClient: QidoClient,
signal?: AbortSignal
): Promise<string | null> {
const sopInstanceUidTag = '00080018';
const initialThumbnailUrl = await fetchThumbnailObjectURL(
thumbnailContext,
thumbnailRendering,
wadoRoot,
getAuthorizationHeader,
signal
);
if (initialThumbnailUrl) {
return initialThumbnailUrl;
}
if (signal?.aborted) {
return null;
}
if (thumbnailContext.SOPInstanceUID) {
return null;
}
if (!thumbnailContext.StudyInstanceUID || !thumbnailContext.SeriesInstanceUID) {
return null;
}
try {
qidoClient.headers = getAuthorizationHeader();
// Note: qidoClient.searchForInstances is XHR-based (dicomweb-client) and does not honor
// AbortSignal. If signal aborts mid-request the network call still completes; we just
// short-circuit before issuing a follow-up fetch below.
const instances = await qidoClient.searchForInstances({
studyInstanceUID: thumbnailContext.StudyInstanceUID,
seriesInstanceUID: thumbnailContext.SeriesInstanceUID,
queryParams: {
limit: 1,
includefield: sopInstanceUidTag,
},
});
if (signal?.aborted) {
return null;
}
const firstInstance = instances?.[0] as Record<string, unknown> | undefined;
const sopAttr = firstInstance?.[sopInstanceUidTag] as { Value?: string[] } | undefined;
const sopValues = sopAttr?.Value;
const SOPInstanceUID =
Array.isArray(sopValues) && sopValues.length ? String(sopValues[0]) : undefined;
if (!SOPInstanceUID) {
return null;
}
return fetchThumbnailObjectURL(
{ ...thumbnailContext, SOPInstanceUID },
thumbnailRendering,
wadoRoot,
getAuthorizationHeader,
signal
);
} catch (error) {
console.warn('thumbnail fetch QIDO fallback failed', error);
return null;
}
}
@@ -50,6 +50,7 @@ function createDicomWebProxyApi(dicomWebProxyConfig, servicesManager: AppTypes.S
},
},
retrieve: {
getGetThumbnailSrc: (...args) => dicomWebDelegate.retrieve.getGetThumbnailSrc(...args),
directURL: (...args) => dicomWebDelegate.retrieve.directURL(...args),
series: {
metadata: async (...args) => dicomWebDelegate.retrieve.series.metadata(...args),
@@ -219,6 +219,13 @@ function createMergeDataSourceApi(
},
},
retrieve: {
getGetThumbnailSrc: (...args: unknown[]) =>
callForDefaultDataSource({
path: 'retrieve.getGetThumbnailSrc',
args,
defaultDataSourceName,
extensionManager,
}),
bulkDataURI: (...args: unknown[]) =>
callForAllDataSourcesAsync({
mergeMap,
@@ -8,11 +8,10 @@ import { defaultActionIcons } from './constants';
import MoreDropdownMenu from '../../Components/MoreDropdownMenu';
import { CallbackCustomization } from 'platform/core/src/types';
import { type TabsProps } from '@ohif/core/src/utils/createStudyBrowserTabs';
import { thumbnailNoImageModalities } from '@ohif/core/src/utils/thumbnailNoImageModalities';
const { sortStudyInstances, formatDate, createStudyBrowserTabs } = utils;
const thumbnailNoImageModalities = ['SR', 'SEG', 'RTSTRUCT', 'RTPLAN', 'RTDOSE', 'DOC', 'PMAP'];
/**
* Study Browser component that displays and manages studies and their display sets
*/
@@ -0,0 +1,87 @@
import { StudyList } from '@ohif/ui-next';
/**
* Default customization values for the WorkList study-list route.
*
* - `workList.variant`: `'default' | 'legacy'` (default: `'default'`)
* Selects which study-list route is mounted at `/`.
* - `'default'`: the new ui-next WorkList.
* - `'legacy'`: the pre-3.13 WorkList (now `LegacyWorkList`). Useful as an
* opt-out while integrators migrate to the new study list.
*
* - `workList.previewSeriesView`: `'all' | 'thumbnails' | 'list'` (default: `'all'`)
* Controls which series views are available in the preview panel.
* - `'all'`: thumbnails/list toggle is visible; defaults to thumbnails.
* - `'thumbnails'`: toggle hidden; locked to thumbnails view.
* - `'list'`: toggle hidden; locked to list view.
* Note: the preview is forced to `'list'` when the active data source either:
* - declares `thumbnailRendering` as `'wadors'` or `'thumbnailDirect'`, or
* - declares `thumbnailRequestStrategy` as `'bulkDataRetrieve'` (default value).
* Currently only applies when `workList.variant` is `'default'`.
*
* - `workList.columns`: `ColumnDef[]` (default: `StudyList.defaultColumns`)
* The column set for the WorkList table, as a value (not a function). Because
* it is a plain array, override it with immutability-helper commands:
* - reorder / insert / remove: `$splice`
* - relabel / resize / reprioritize (all plain data in `meta`): `$set` / `$merge`
* - replace a renderer: `$set` a new `cell` / `header` function
* - `$apply: (cols) => ColumnDef[]`: receive the current columns and return the
* new array. Use it for anything the other commands don't express cleanly —
* moves, conditional inserts, or any edit keyed off a column's `id` rather
* than its position (e.g. `cols.find(c => c.id === 'modalities')`).
* Use `StudyList.textColumn(id, label, meta?)` to build a simple display-only
* column without writing the accessor/header/cell wiring.
*
* Gotchas / limitations:
* - A `ColumnDef`'s `accessorFn` / `cell` / `header` / `filterFn` / `sortingFn`
* are functions: `$set`/`$push` accept them, but they are not serializable,
* so columns that render anything beyond plain text still need code.
* - The trailing `actions` column should stay last for correct layout (its
* hover menu is right-aligned to sit at the row end) — this is cosmetic,
* not a hard requirement. Insert new columns *before* it with `$splice`
* (a `$push` lands after it, leaving the actions menu mid-row).
* - Index-based commands (e.g. `{ 2: { meta: { label: { $set: '…' } } } }`)
* are position-fragile; prefer `$apply` for id-based edits.
* If the merged value is not an array, WorkList falls back to the defaults.
* Currently only applies when `workList.variant` is `'default'`.
*
* - `workList.renderPreviewContent`: `(React, props) => ReactNode` (default: undefined)
* Render function for the preview panel content. Receives the host React and
* `{ study, series, seriesView, onThumbnailImageError }`:
* - `study`: the selected `StudyRow` (`null` when nothing is selected).
* - `series`: the study's series; each item has the raw data-source fields
* (`seriesInstanceUid`, `modality`, `description`, `seriesDate`,
* `seriesNumber`, `numSeriesInstances`, etc.) plus `thumbnailStatus` added
* by the shell, which is one of `{ status: 'loading' }`,
* `{ status: 'ready', src }`, `{ status: 'notAvailable' }`, or
* `{ status: 'notApplicable' }`. The `src` in the `'ready'` form is the
* URL to render in an `<img>`.
* - `seriesView`: `'all' | 'thumbnails' | 'list'`, resolved from
* `workList.previewSeriesView` with `'list'` forced for data sources that
* can't produce thumbnails. Honor it if your layout has both views.
* - `onThumbnailImageError(seriesUID)`: call when an `<img>` you render fails
* to load. The shell marks that series as `notAvailable` and revokes its
* blob URL if needed.
* Use this to change the preview layout while keeping the fetch/abort/thumbnail
* logic intact. When unset (or not a function), the built-in
* `<StudyList.PreviewContainer>` layout is used.
* Currently only applies when `workList.variant` is `'default'`.
*
* - `workList.settingsMenuItems`: `(defaults) => SettingsMenuItem[]` (default: identity)
* Builds the items in the WorkList settings popover. Receives the default
* items (`about`, `userPreferences`, and `logout` when OIDC is configured)
* and must return a
* `SettingsMenuItem[]`. Each item is `{ id, label, onClick }`. Use this to
* reorder, remove, or insert items without rebuilding the popover shell. If
* the returned value is not an array, WorkList falls back to the defaults.
* Currently only applies when `workList.variant` is `'default'`.
*/
export default function getWorkListCustomization() {
return {
'workList.variant': 'default',
'workList.previewSeriesView': 'all',
'workList.columns': StudyList.defaultColumns,
'workList.renderPreviewContent': undefined,
'workList.settingsMenuItems': (defaults: unknown) => defaults,
};
}
@@ -23,6 +23,7 @@ import reportDialogCustomization from './customizations/reportDialogCustomizatio
import hotkeyBindingsCustomization from './customizations/hotkeyBindingsCustomization';
import onboardingCustomization from './customizations/onboardingCustomization';
import instanceSortingCriteriaCustomization from './customizations/instanceSortingCriteriaCustomization';
import getWorkListCustomization from './customizations/workListCustomization';
/**
*
* Note: this is an example of how the customization module can be used
@@ -71,6 +72,7 @@ export default function getCustomizationModule({ servicesManager, extensionManag
...hotkeyBindingsCustomization,
...onboardingCustomization,
...instanceSortingCriteriaCustomization,
...getWorkListCustomization(),
},
},
];
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-microscopy",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF extension for DICOM microscopy",
"author": "Bill Wallace, md-prog",
"license": "MIT",
@@ -30,10 +30,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/i18n": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/i18n": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-pdf",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF extension for PDF display",
"author": "OHIF",
"license": "MIT",
@@ -30,8 +30,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-dicom-video
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-video",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF extension for video display",
"author": "OHIF",
"license": "MIT",
@@ -30,8 +30,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -3,6 +3,41 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
### Features
* **WorkList:** New Study List (WorkList based on ui-next); old study list renamed to LegacyWorklist ([#6005](https://github.com/OHIF/Viewers/issues/6005)) ([daae4c1](https://github.com/OHIF/Viewers/commit/daae4c144e7cb80bbee7c05d9fceef8b332ed2a0))
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-measurement-tracking",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "Tracking features and functionality for basic image viewing",
"author": "OHIF Core Team",
"license": "MIT",
@@ -32,12 +32,12 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"classnames": "2.5.1",
"dcmjs": "0.49.4",
"lodash.debounce": "4.0.8",
@@ -49,7 +49,7 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@ohif/ui": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.85",
"@xstate/react": "3.2.2",
"xstate": "4.38.3"
}
@@ -1,12 +1,11 @@
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { useSystem } from '@ohif/core';
import { thumbnailNoImageModalities } from '@ohif/core/src/utils/thumbnailNoImageModalities';
import PanelStudyBrowser from '@ohif/extension-default/src/Panels/StudyBrowser/PanelStudyBrowser';
import { UntrackSeriesModal } from './untrackSeriesModal';
import { useTrackedMeasurements } from '../../getContextModule';
const thumbnailNoImageModalities = ['SR', 'SEG', 'RTSTRUCT', 'RTPLAN', 'RTDOSE', 'PMAP'];
/**
* Panel component for the Study Browser with tracking capabilities
*/
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-test
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-test
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-test
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-test
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-test
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-test",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF extension used inside e2e testing",
"author": "OHIF",
"license": "MIT",
@@ -30,8 +30,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-tmtv
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-tmtv",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF extension for Total Metabolic Tumor Volume",
"author": "OHIF",
"license": "MIT",
@@ -30,8 +30,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"dcmjs": "0.49.4",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/extension-ultrasound-pleura-bline
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/extension-ultrasound-pleura-bline
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/extension-ultrasound-pleura-bline
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/extension-ultrasound-pleura-bline
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/extension-ultrasound-pleura-bline
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-ultrasound-pleura-bline",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "",
"author": "Rodrigo Basilio",
"license": "MIT",
@@ -42,13 +42,13 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/i18n": "3.13.0-beta.81",
"@ohif/ui-next": "3.13.0-beta.81"
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/i18n": "3.13.0-beta.85",
"@ohif/ui-next": "3.13.0-beta.85"
},
"devDependencies": {
"@babel/core": "7.28.0",
+1 -1
View File
@@ -1,5 +1,5 @@
{
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"packages": ["extensions/*", "platform/*", "modes/*", "addOns/externals/*"],
"npmClient": "yarn"
}
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-basic-dev-mode",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "Basic OHIF Viewer Using Cornerstone",
"author": "OHIF",
"license": "MIT",
@@ -31,12 +31,12 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/extension-dicom-pdf": "3.13.0-beta.81",
"@ohif/extension-dicom-video": "3.13.0-beta.81"
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/extension-dicom-pdf": "3.13.0-beta.85",
"@ohif/extension-dicom-video": "3.13.0-beta.85"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/mode-test
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/mode-test
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/mode-test
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/mode-test
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/mode-test
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-test",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "Basic mode for testing",
"author": "OHIF",
"license": "MIT",
@@ -34,14 +34,14 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/extension-dicom-pdf": "3.13.0-beta.81",
"@ohif/extension-dicom-video": "3.13.0-beta.81",
"@ohif/extension-measurement-tracking": "3.13.0-beta.81",
"@ohif/extension-test": "3.13.0-beta.81"
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/extension-dicom-pdf": "3.13.0-beta.85",
"@ohif/extension-dicom-video": "3.13.0-beta.85",
"@ohif/extension-measurement-tracking": "3.13.0-beta.85",
"@ohif/extension-test": "3.13.0-beta.85"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/mode-basic
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/mode-basic
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/mode-basic
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/mode-basic
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/mode-basic
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-basic",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "A basic mode used to build other modes on top of",
"author": "OHIF Contributors",
"license": "MIT",
@@ -21,14 +21,14 @@
"yarn": ">=1.16.0"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/extension-dicom-pdf": "3.13.0-beta.81",
"@ohif/extension-dicom-video": "3.13.0-beta.81"
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/extension-dicom-pdf": "3.13.0-beta.85",
"@ohif/extension-dicom-video": "3.13.0-beta.85"
},
"dependencies": {
"@babel/runtime": "7.28.2"
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/mode-longitudinal
+11 -11
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-longitudinal",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "Longitudinal Workflow",
"author": "OHIF",
"license": "MIT",
@@ -34,16 +34,16 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/extension-dicom-pdf": "3.13.0-beta.81",
"@ohif/extension-dicom-video": "3.13.0-beta.81",
"@ohif/extension-measurement-tracking": "3.13.0-beta.81",
"@ohif/mode-basic": "3.13.0-beta.81"
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/extension-dicom-pdf": "3.13.0-beta.85",
"@ohif/extension-dicom-video": "3.13.0-beta.85",
"@ohif/extension-measurement-tracking": "3.13.0-beta.85",
"@ohif/mode-basic": "3.13.0-beta.85"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/mode-microscopy
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-microscopy",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF mode for DICOM microscopy",
"author": "OHIF",
"license": "MIT",
@@ -35,8 +35,8 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-dicom-microscopy": "3.13.0-beta.81"
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-dicom-microscopy": "3.13.0-beta.85"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-preclinical-4d",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "4D Workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,12 +33,12 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dynamic-volume": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/extension-tmtv": "3.13.0-beta.81"
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dynamic-volume": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/extension-tmtv": "3.13.0-beta.85"
},
"dependencies": {
"@babel/runtime": "7.28.2"
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/mode-segmentation
+10 -10
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-segmentation",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "OHIF segmentation mode which enables labelmap segmentation read/edit/export",
"author": "@ohif",
"license": "MIT",
@@ -35,15 +35,15 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/extension-dicom-pdf": "3.13.0-beta.81",
"@ohif/extension-dicom-video": "3.13.0-beta.81",
"@ohif/mode-basic": "3.13.0-beta.81"
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/extension-dicom-pdf": "3.13.0-beta.85",
"@ohif/extension-dicom-video": "3.13.0-beta.85",
"@ohif/mode-basic": "3.13.0-beta.85"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/mode-tmtv
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-tmtv",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "Total Metabolic Tumor Volume Workflow",
"author": "OHIF",
"license": "MIT",
@@ -34,13 +34,13 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/extension-dicom-pdf": "3.13.0-beta.81",
"@ohif/extension-dicom-video": "3.13.0-beta.81",
"@ohif/extension-measurement-tracking": "3.13.0-beta.81"
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/extension-dicom-pdf": "3.13.0-beta.85",
"@ohif/extension-dicom-video": "3.13.0-beta.85",
"@ohif/extension-measurement-tracking": "3.13.0-beta.85"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/mode-ultrasound-pleura-bline
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/mode-ultrasound-pleura-bline
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/mode-ultrasound-pleura-bline
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/mode-ultrasound-pleura-bline
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/mode-ultrasound-pleura-bline
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-ultrasound-pleura-bline",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "Allows users to annotate ultrasound images with pleura B-line annotations.",
"author": "OHIF",
"license": "MIT",
@@ -34,11 +34,11 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/core": "4.22.8",
"@cornerstonejs/tools": "4.22.8",
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.81",
"@ohif/extension-ultrasound-pleura-bline": "3.13.0-beta.81",
"@cornerstonejs/core": "4.22.10",
"@cornerstonejs/tools": "4.22.10",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.85",
"@ohif/extension-ultrasound-pleura-bline": "3.13.0-beta.85",
"i18next": "17.3.1"
},
"devDependencies": {
+2 -1
View File
@@ -170,7 +170,8 @@
"flatted": "3.4.2",
"handlebars": "4.7.9",
"protobufjs": "7.5.7",
"@babel/plugin-transform-modules-systemjs": "7.29.4"
"@babel/plugin-transform-modules-systemjs": "7.29.4",
"tmp": "0.2.6"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
+3 -1
View File
@@ -44,7 +44,9 @@ const setHeaders = (res, path) => {
} else if (path.indexOf('.br') !== -1) {
res.setHeader('Content-Encoding', 'br');
}
if (path.indexOf('.pdf') !== -1) {
if (path.indexOf('thumbnail') !== -1) {
res.setHeader('Content-Type', 'image/jpeg');
} else if (path.indexOf('.pdf') !== -1) {
res.setHeader('Content-Type', 'application/pdf');
} else if (path.indexOf('mp4') !== -1) {
res.setHeader('Content-Type', 'video/mp4');
+35
View File
@@ -3,6 +3,41 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
### Features
* **WorkList:** New Study List (WorkList based on ui-next); old study list renamed to LegacyWorklist ([#6005](https://github.com/OHIF/Viewers/issues/6005)) ([daae4c1](https://github.com/OHIF/Viewers/commit/daae4c144e7cb80bbee7c05d9fceef8b332ed2a0))
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/app
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/app
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/app
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/app
@@ -1,184 +0,0 @@
//We are keeping the hardcoded results values for the study list tests
//this is intended to be running in a controlled docker environment with test data.
describe('OHIF Study List', function () {
context('Desktop resolution', function () {
beforeEach(function () {
Cypress.on('uncaught:exception', () => false);
cy.window().then(win => win.sessionStorage.clear());
cy.openStudyList();
cy.viewport(1750, 720);
cy.initStudyListAliasesOnDesktop();
//Clear all text fields
cy.get('@PatientName').clear();
cy.get('@MRN').clear();
cy.get('@AccessionNumber').clear();
cy.get('@StudyDescription').clear();
});
afterEach(function () {
cy.window().then(win => win.sessionStorage.clear());
});
it('Displays several studies initially', function () {
cy.waitStudyList();
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.greaterThan(1);
expect($list).to.contain('Juno');
expect($list).to.contain('832040');
});
});
it('searches Patient Name with exact string', function () {
cy.get('@PatientName').type('Juno');
//Wait result list to be displayed
cy.waitStudyList();
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.eq(1);
expect($list).to.contain('Juno');
});
});
it('maintains Patient Name filter upon return from viewer', function () {
cy.get('@PatientName').type('Juno');
//Wait result list to be displayed
cy.waitStudyList();
cy.get('[data-cy="studyRow-1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1"]').click();
cy.get(
'[data-cy="mode-basic-test-1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1"]'
).click();
cy.get('[data-cy="return-to-work-list"]').click();
cy.wait(2000);
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.eq(1);
expect($list).to.contain('Juno');
});
});
it('searches MRN with exact string', function () {
cy.get('@MRN').type('0000003');
//Wait result list to be displayed
cy.waitStudyList();
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.eq(1);
expect($list).to.contain('0000003');
});
});
it('maintains MRN filter upon return from viewer', function () {
cy.get('@MRN').type('0000003');
//Wait result list to be displayed
cy.waitStudyList();
cy.get('[data-cy="studyRow-1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1"]').click();
cy.get(
'[data-cy="mode-basic-test-1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1"]'
).click();
cy.get('[data-cy="return-to-work-list"]').click();
cy.wait(2000);
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.eq(1);
expect($list).to.contain('0000003');
});
});
it('searches Accession with exact string', function () {
cy.get('@AccessionNumber').type('321');
//Wait result list to be displayed
cy.waitStudyList();
cy.wait(2000);
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.eq(1);
expect($list).to.contain('321');
});
});
it('maintains Accession filter upon return from viewer', function () {
cy.get('@AccessionNumber').type('0000155811');
//Wait result list to be displayed
cy.waitStudyList();
cy.wait(2000);
cy.get('[data-cy="studyRow-1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1"]').click();
cy.get(
'[data-cy="mode-basic-test-1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1"]'
).click();
cy.get('[data-cy="return-to-work-list"]').click();
cy.wait(2000);
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.eq(1);
expect($list).to.contain('0000155811');
});
});
it('searches Description with exact string', function () {
cy.get('@StudyDescription').type('PETCT');
//Wait result list to be displayed
cy.waitStudyList();
cy.wait(2000);
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.eq(1);
expect($list).to.contain('PETCT');
});
});
it('maintains Description filter upon return from viewer', function () {
cy.get('@StudyDescription').type('PETCT');
//Wait result list to be displayed
cy.waitStudyList();
cy.wait(2000);
cy.get('[data-cy="studyRow-1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1"]').click();
cy.get(
'[data-cy="mode-basic-test-1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1"]'
).click();
cy.get('[data-cy="return-to-work-list"]').click();
cy.wait(2000);
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.eq(1);
expect($list).to.contain('PETCT');
});
});
/* Todo: fix react select
it('searches Modality with camel case', function() {
cy.get('@modalities').type('Ct');
// Wait result list to be displayed
cy.waitStudyList();
cy.get('@searchResult2').should($list => {
expect($list.length).to.be.greaterThan(1);
expect($list).to.contain('CT');
});
});
it('changes Rows per page and checks the study count', function() {
//Show Rows per page options
const pageRows = [25, 50, 100];
//Check all options of Rows
pageRows.forEach(numRows => {
cy.get('select').select(numRows.toString()); //Select Rows per page option
//Wait result list to be displayed
cy.waitStudyList().then(() => {
//Compare the search result with the Study Count on the table header
cy.get('@numStudies')
.should(numStudies => {
expect(parseInt(numStudies.text())).to.be.at.most(numRows); //less than or equals to
})
.then(numStudies => {
//Compare to the number of Rows in the search result
cy.get('@searchResult2').then($searchResult => {
let countResults = $searchResult.length;
expect(numStudies.text()).to.be.eq(countResults.toString());
});
});
});
});
});
*/
});
});
+21 -21
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/app",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"productVersion": "3.4.0",
"description": "OHIF Viewer",
"author": "OHIF Contributors",
@@ -54,27 +54,27 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.2",
"@cornerstonejs/codec-openjpeg": "1.3.0",
"@cornerstonejs/codec-openjph": "2.4.7",
"@cornerstonejs/dicom-image-loader": "4.22.8",
"@cornerstonejs/dicom-image-loader": "4.22.10",
"@emotion/serialize": "1.3.3",
"@ohif/core": "3.13.0-beta.81",
"@ohif/extension-cornerstone": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.81",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.81",
"@ohif/extension-default": "3.13.0-beta.81",
"@ohif/extension-dicom-microscopy": "3.13.0-beta.81",
"@ohif/extension-dicom-pdf": "3.13.0-beta.81",
"@ohif/extension-dicom-video": "3.13.0-beta.81",
"@ohif/extension-test": "3.13.0-beta.81",
"@ohif/extension-ultrasound-pleura-bline": "3.13.0-beta.81",
"@ohif/i18n": "3.13.0-beta.81",
"@ohif/mode-basic-dev-mode": "3.13.0-beta.81",
"@ohif/mode-longitudinal": "3.13.0-beta.81",
"@ohif/mode-microscopy": "3.13.0-beta.81",
"@ohif/mode-test": "3.13.0-beta.81",
"@ohif/mode-ultrasound-pleura-bline": "3.13.0-beta.81",
"@ohif/ui": "3.13.0-beta.81",
"@ohif/ui-next": "3.13.0-beta.81",
"@ohif/core": "3.13.0-beta.85",
"@ohif/extension-cornerstone": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-rt": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-seg": "3.13.0-beta.85",
"@ohif/extension-cornerstone-dicom-sr": "3.13.0-beta.85",
"@ohif/extension-default": "3.13.0-beta.85",
"@ohif/extension-dicom-microscopy": "3.13.0-beta.85",
"@ohif/extension-dicom-pdf": "3.13.0-beta.85",
"@ohif/extension-dicom-video": "3.13.0-beta.85",
"@ohif/extension-test": "3.13.0-beta.85",
"@ohif/extension-ultrasound-pleura-bline": "3.13.0-beta.85",
"@ohif/i18n": "3.13.0-beta.85",
"@ohif/mode-basic-dev-mode": "3.13.0-beta.85",
"@ohif/mode-longitudinal": "3.13.0-beta.85",
"@ohif/mode-microscopy": "3.13.0-beta.85",
"@ohif/mode-test": "3.13.0-beta.85",
"@ohif/mode-ultrasound-pleura-bline": "3.13.0-beta.85",
"@ohif/ui": "3.13.0-beta.85",
"@ohif/ui-next": "3.13.0-beta.85",
"@svgr/webpack": "8.1.0",
"@types/react": "18.3.23",
"classnames": "2.5.1",
+4 -3
View File
@@ -20,7 +20,7 @@ window.config = {
allowMultiSelectExport: false,
maxNumRequests: {
interaction: 100,
thumbnail: 75,
thumbnail: 5,
// Prefetch number is dependent on the http protocol. For http 2 or
// above, the number of requests can be go a lot higher.
prefetch: 25,
@@ -111,10 +111,11 @@ window.config = {
wadoRoot: 'https://d14fa38qiwhyfd.cloudfront.net/dicomweb',
qidoSupportsIncludeField: false,
imageRendering: 'wadors',
thumbnailRendering: 'wadors',
thumbnailRendering: 'thumbnail',
thumbnailRequestStrategy: 'fetch',
enableStudyLazyLoad: true,
supportsFuzzyMatching: true,
supportsWildcard: false,
supportsWildcard: true,
staticWado: true,
singlepart: 'bulkdata,video',
// whether the data source should use retrieveBulkData to grab metadata,
+1 -1
View File
@@ -19,7 +19,7 @@ window.config = {
useNorm16Texture: true,
maxNumRequests: {
interaction: 100,
thumbnail: 75,
thumbnail: 5,
// Prefetch number is dependent on the http protocol. For http 2 or
// above, the number of requests can be go a lot higher.
prefetch: 25,
@@ -13,7 +13,7 @@ window.config = {
groupEnabledModesFirst: true,
maxNumRequests: {
interaction: 100,
thumbnail: 75,
thumbnail: 5,
prefetch: 25,
},
defaultDataSourceName: 'dicomweb',
+2 -1
View File
@@ -113,7 +113,8 @@ window.config = {
wadoRoot: '/viewer-testdata',
qidoSupportsIncludeField: false,
imageRendering: 'wadors',
thumbnailRendering: 'wadors',
thumbnailRendering: 'thumbnail',
thumbnailRequestStrategy: 'fetch',
enableStudyLazyLoad: true,
supportsFuzzyMatching: false,
supportsWildcard: true,
+2 -1
View File
@@ -45,7 +45,8 @@ window.config = {
'https://healthcare.googleapis.com/v1/projects/ohif-cloud-healthcare/locations/us-east4/datasets/ohif-qa-dataset/dicomStores/ohif-qa-2/dicomWeb',
qidoSupportsIncludeField: true,
imageRendering: 'wadors',
thumbnailRendering: 'wadors',
thumbnailRendering: 'rendered',
thumbnailRequestStrategy: 'fetch',
enableStudyLazyLoad: true,
supportsFuzzyMatching: true,
supportsWildcard: false,
+1 -1
View File
@@ -18,7 +18,7 @@ window.config = {
groupEnabledModesFirst: true,
maxNumRequests: {
interaction: 100,
thumbnail: 75,
thumbnail: 5,
// Prefetch number is dependent on the http protocol. For http 2 or
// above, the number of requests can be go a lot higher.
prefetch: 25,
+3 -1
View File
@@ -23,7 +23,9 @@ window.config = {
qidoSupportsIncludeField: true,
imageRendering: 'wadors',
enableStudyLazyLoad: true,
thumbnailRendering: 'wadors',
thumbnailRendering: 'thumbnail',
thumbnailRequestStrategy: 'fetch',
supportsWildcard: true,
requestOptions: {
auth: 'admin:admin',
},
+2 -1
View File
@@ -25,7 +25,8 @@ window.config = {
supportsReject: true,
dicomUploadEnabled: true,
imageRendering: 'wadors',
thumbnailRendering: 'wadors',
thumbnailRendering: 'rendered',
thumbnailRequestStrategy: 'fetch',
enableStudyLazyLoad: true,
supportsFuzzyMatching: true,
supportsWildcard: true,
+2 -1
View File
@@ -26,7 +26,8 @@ window.config = {
wadoRoot: 'https://d14fa38qiwhyfd.cloudfront.net/dicomweb',
qidoSupportsIncludeField: false,
imageRendering: 'wadors',
thumbnailRendering: 'wadors',
thumbnailRendering: 'thumbnail',
thumbnailRequestStrategy: 'fetch',
enableStudyLazyLoad: true,
supportsFuzzyMatching: false,
supportsWildcard: true,
+12 -1
View File
@@ -1,4 +1,15 @@
import useDebounce from './useDebounce';
import useSearchParams from './useSearchParams';
import { useStudyListStateSync } from './useStudyListStateSync';
import { useSeriesFetch } from './useSeriesFetch';
import { useWorkListToolbarActions } from './useWorkListToolbarActions';
import { useStudyListQuery } from './useStudyListQuery';
export { useDebounce, useSearchParams };
export {
useDebounce,
useSearchParams,
useStudyListStateSync,
useSeriesFetch,
useWorkListToolbarActions,
useStudyListQuery,
};
+12 -1
View File
@@ -1,4 +1,15 @@
import useDebounce from './useDebounce';
import useSearchParams from './useSearchParams';
import { useStudyListStateSync } from './useStudyListStateSync';
import { useSeriesFetch } from './useSeriesFetch';
import { useWorkListToolbarActions } from './useWorkListToolbarActions';
import { useStudyListQuery } from './useStudyListQuery';
export { useDebounce, useSearchParams };
export {
useDebounce,
useSearchParams,
useStudyListStateSync,
useSeriesFetch,
useWorkListToolbarActions,
useStudyListQuery,
};
+204
View File
@@ -0,0 +1,204 @@
import { useCallback, useEffect, useRef, useState } from 'react';
import { useAppConfig } from '@state';
import { utils } from '@ohif/core';
import { thumbnailNoImageModalities } from '@ohif/core/src/utils/thumbnailNoImageModalities';
import {
PreviewThumbnailStatusState,
type PreviewThumbnailStatus,
type StudyRow,
} from '@ohif/ui-next';
// A series row carries arbitrary DICOM fields plus the thumbnail status this
// panel tracks. Only the latter is typed; the rest stays open.
type PreviewSeries = Record<string, any> & { thumbnailStatus: PreviewThumbnailStatus };
// Series rows may carry the UID under either casing depending on the data
// source; read it through one place so callers can't forget a variant.
function getSeriesUID(row: Record<string, any>): string | undefined {
return row.seriesInstanceUid || row.SeriesInstanceUID;
}
/**
* Runs `worker` over `items` with at most `maxParallel` in flight at once,
* stopping early if `signal` aborts. A shared cursor hands each worker the
* next item, so a slow fetch doesn't hold up the rest.
*/
async function runThumbnailPool<T>(
items: T[],
maxParallel: number,
signal: AbortSignal,
worker: (item: T) => Promise<void>
): Promise<void> {
let nextIndex = 0;
const runWorker = async () => {
while (!signal.aborted) {
const idx = nextIndex++;
if (idx >= items.length) {
return;
}
await worker(items[idx]);
}
};
await Promise.all(Array.from({ length: Math.min(maxParallel, items.length) }, runWorker));
}
/**
* Fetches the series for the selected study and, where applicable, their
* thumbnails, exposing the resulting list and an image-error handler.
*
* Owns the blob-URL lifecycle for thumbnails produced by the `fetch` strategy:
* every created `blob:` URL is tracked and revoked on study change / unmount,
* and `onThumbnailImageError` revokes a single failed thumbnail's URL.
*/
export function useSeriesFetch({
dataSource,
selected,
}: {
dataSource: any;
selected: StudyRow | null;
}): {
series: PreviewSeries[];
onThumbnailImageError: (seriesUID: string) => void;
} {
const [series, setSeries] = useState<PreviewSeries[]>([]);
// Blob URLs created by this panel (via the `fetch` thumbnail strategy).
// Tracked so we can URL.revokeObjectURL them on study change / unmount —
// otherwise every fetched series leaks one blob worth of memory.
const ownedBlobUrlsRef = useRef<string[]>([]);
const [appConfig] = useAppConfig();
const { sortBySeriesDate } = utils as any;
useEffect(() => {
// Drives cancellation when the selection changes or the panel unmounts: stops the
// worker pool from scheduling new fetches and aborts in-flight requests that honor
// AbortSignal (the `fetch` thumbnail strategy; the bulkDataURI XHR path cannot abort).
const abortController = new AbortController();
const { signal } = abortController;
const run = async () => {
const studyInstanceUID = (selected as any)?.studyInstanceUid;
if (!studyInstanceUID) {
setSeries([]);
return;
}
try {
const seriesList = await dataSource.query.series.search(studyInstanceUID);
if (signal.aborted) {
return;
}
const sortedSeriesList = sortBySeriesDate?.(seriesList) ?? [];
const normalizedSeriesList = sortedSeriesList.map(row => {
const modality = String(row.modality || row.Modality || '').toUpperCase();
const thumbnailStatus: PreviewThumbnailStatus = thumbnailNoImageModalities.includes(
modality
)
? { status: PreviewThumbnailStatusState.NotApplicable }
: { status: PreviewThumbnailStatusState.Loading };
return {
...row,
thumbnailStatus,
};
});
setSeries(normalizedSeriesList);
const fetchTargets = normalizedSeriesList.filter((row: PreviewSeries) => {
if (!getSeriesUID(row)) {
return false;
}
return row.thumbnailStatus?.status !== PreviewThumbnailStatusState.NotApplicable;
});
// Bound parallel thumbnail fetches so studies with many series don't
// saturate the connection and stall later viewer navigation. Mirrors
// CS3D's imageLoadPoolManager.maxNumRequests.thumbnail.
const maxParallelRequests = Math.max(1, appConfig?.maxNumRequests?.thumbnail ?? 5);
const fetchThumbnail = async (row: (typeof fetchTargets)[number]) => {
const seriesUID = getSeriesUID(row);
let src: string | null = null;
try {
const getThumbnailSrc = dataSource?.retrieve?.getGetThumbnailSrc?.(
{ StudyInstanceUID: studyInstanceUID, SeriesInstanceUID: seriesUID },
undefined
);
src = (await getThumbnailSrc?.({ signal })) ?? null;
} catch {
src = null;
}
// Track ownership of blob URLs before the abort check so URLs that
// arrive just after abort are still revoked on cleanup.
if (src?.startsWith('blob:')) {
ownedBlobUrlsRef.current.push(src);
}
if (signal.aborted) {
return;
}
setSeries(prev =>
prev.map(seriesItem => {
if (getSeriesUID(seriesItem) !== seriesUID) {
return seriesItem;
}
return {
...seriesItem,
thumbnailStatus: src
? { status: PreviewThumbnailStatusState.Ready, src }
: { status: PreviewThumbnailStatusState.NotAvailable },
};
})
);
};
await runThumbnailPool(fetchTargets, maxParallelRequests, signal, fetchThumbnail);
} catch (e) {
if (!signal.aborted) {
console.warn('Failed to load preview series/thumbnails for selected study.', e);
setSeries([]);
}
}
};
void run();
return () => {
abortController.abort();
// Revoke blob URLs this run created. Safe even though the old series
// may still be in the DOM briefly: revokeObjectURL only invalidates
// future loads, the already-rendered <img> keeps its pixels.
const urls = ownedBlobUrlsRef.current;
ownedBlobUrlsRef.current = [];
urls.forEach(url => {
try {
URL.revokeObjectURL(url);
} catch {}
});
};
}, [dataSource, selected, appConfig?.maxNumRequests?.thumbnail]);
const onThumbnailImageError = useCallback((seriesUID: string) => {
setSeries(prevSeriesList =>
prevSeriesList.map(seriesItem => {
if (getSeriesUID(seriesItem) !== seriesUID) {
return seriesItem;
}
const thumbnailStatus = seriesItem.thumbnailStatus as PreviewThumbnailStatus | undefined;
if (
thumbnailStatus?.status === PreviewThumbnailStatusState.Ready &&
thumbnailStatus.src?.startsWith('blob:')
) {
try {
URL.revokeObjectURL(thumbnailStatus.src);
} catch {}
}
return {
...seriesItem,
thumbnailStatus: { status: PreviewThumbnailStatusState.NotAvailable },
};
})
);
}, []);
return { series, onThumbnailImageError };
}
@@ -0,0 +1,182 @@
import React, { useCallback, useEffect, useState } from 'react';
import { useLocation, useParams } from 'react-router';
import { Enums, log } from '@ohif/core';
import { Button } from '@ohif/ui-next';
import { shallowEqualIgnoringArrayOrder } from '../utils/shallowEqualIgnoringArrayOrder';
import { URL_KEYS, getUrlParam } from '../utils/studyListFilterContract';
const DEFAULT_DATA = {
studies: [],
queryFilterValues: null,
};
/**
* Queries the data source for the study list and manages the result lifecycle:
* refetch-on-filter-change, loading / first-fetch flags, and surfacing
* connection errors (a modal with a Retry action). Pagination changes do not
* trigger refetches — the study list paginates client-side.
*
* `refresh` invalidates the cached result and re-arms the first-fetch gate,
* causing the next render to re-query. It also clears the loading flag, so the
* caller can use it as the single reset when the active data source changes.
*/
export function useStudyListQuery({
dataSource,
isDataSourceInitialized,
servicesManager,
}: {
dataSource: any;
isDataSourceInitialized: boolean;
servicesManager: AppTypes.ServicesManager;
}): {
studies: any[];
isLoading: boolean;
hasFetchedOnce: boolean;
refresh: () => void;
} {
const location = useLocation();
const params = useParams();
const [data, setData] = useState(DEFAULT_DATA);
const [isLoading, setIsLoading] = useState(false);
const [hasFetchedOnce, setHasFetchedOnce] = useState(false);
const refresh = useCallback(() => {
setIsLoading(false);
setHasFetchedOnce(false);
setData(DEFAULT_DATA);
}, []);
useEffect(() => {
if (!isDataSourceInitialized) {
return;
}
// Per-data-source result cap, passed to servers that honor the `limit`
// query parameter. Defaults to 101 when the data source doesn't set it.
const studiesLimit = dataSource.getConfig?.()?.queryLimit ?? 101;
const queryFilterValues = _getQueryFilterValues(location.search, studiesLimit);
// 204: no content
async function getData() {
setIsLoading(true);
log.time(Enums.TimingEnum.SEARCH_TO_LIST);
try {
const studies = await dataSource.query.studies.search(queryFilterValues);
setData({
studies: studies || [],
queryFilterValues,
});
log.timeEnd(Enums.TimingEnum.SCRIPT_TO_VIEW);
log.timeEnd(Enums.TimingEnum.SEARCH_TO_LIST);
} catch (e) {
console.error(e);
// Record that we attempted these filter values even though the fetch
// failed. Without this, the effect's `filtersChanged` check would
// remain true on the next render and immediately retry the same
// failing query in a tight loop.
setData(prev => ({ ...prev, queryFilterValues }));
// If there is a data source configuration API, the Worklist will pop
// up its own dialog to attempt to configure it. Otherwise surface the
// failure via a modal with a Retry action.
const { configurationAPI, friendlyName } = dataSource.getConfig();
if (!configurationAPI) {
const { uiModalService } = servicesManager.services;
uiModalService.show({
title: 'Data Source Connection Error',
content: () => (
<div className="text-foreground">
<p className="text-red-600">Error: {(e as Error).message}</p>
<p>
Please ensure the following data source is configured correctly or is running:
</p>
<div className="mt-2 font-bold">{friendlyName}</div>
<div className="mt-4 flex justify-end">
<Button
onClick={() => {
uiModalService.hide();
refresh();
}}
>
Retry
</Button>
</div>
</div>
),
});
}
} finally {
setIsLoading(false);
setHasFetchedOnce(true);
}
}
// Refetch when the filter set has actually changed. Filters can include
// array-valued fields like `modalitiesInStudy` whose element order
// doesn't matter, so we compare with an unordered-array shallow equal
// rather than reference equality — otherwise a re-render that
// re-creates the array with the same contents would force a refetch.
// Pagination changes alone don't invalidate the data (we paginate
// client-side).
const filtersChanged = !shallowEqualIgnoringArrayOrder(
data.queryFilterValues,
queryFilterValues
);
const isDataInvalid = !isLoading && filtersChanged;
if (isDataInvalid) {
getData();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [data, location, params, isLoading, dataSource, isDataSourceInitialized]);
return {
studies: data.studies,
isLoading,
hasFetchedOnce,
refresh,
};
}
/**
* Translates the URL query string into the filter shape expected by the
* data source (`patientId`, `patientName`, `modalitiesInStudy`, …).
*
* URL keys come from the centralized contract in `studyListFilterContract.ts`,
* which is also what WorkList's URL serializer writes — so the read/write
* sides can't drift.
*
* @param {*} query - URL search string or `URLSearchParams`
*/
function _getQueryFilterValues(query, queryLimit) {
const params = new URLSearchParams(query);
const modalities = getUrlParam(params, URL_KEYS.modalities);
const queryFilterValues = {
// DCM
patientId: getUrlParam(params, URL_KEYS.mrn),
patientName: getUrlParam(params, URL_KEYS.patientName),
studyDescription: getUrlParam(params, URL_KEYS.description),
modalitiesInStudy: modalities ? modalities.split(',') : null,
accessionNumber: getUrlParam(params, URL_KEYS.accession),
//
startDate: getUrlParam(params, URL_KEYS.startDate),
endDate: getUrlParam(params, URL_KEYS.endDate),
// Rarely supported server-side
sortBy: getUrlParam(params, URL_KEYS.sortBy),
sortDirection: getUrlParam(params, URL_KEYS.sortDirection),
// So many different servers out there that we can't rely on them to support offset/limit.
// So we just query for everything up to the queryLimit for those that support it.
// For those that don't we will just assume we get everything back.
offset: 0,
limit: queryLimit,
};
// Delete null/undefined keys
Object.keys(queryFilterValues).forEach(
key => queryFilterValues[key] == null && delete queryFilterValues[key]
);
return queryFilterValues;
}
@@ -0,0 +1,219 @@
import * as React from 'react';
import { useMemo, useState } from 'react';
import { useNavigate, useLocation } from 'react-router-dom';
import type { SortingState, PaginationState, ColumnFiltersState } from '@tanstack/react-table';
import qs from 'query-string';
import useSearchParams from './useSearchParams';
import useDebounce from './useDebounce';
import {
useSessionStorage,
COLUMN_IDS,
TEXT_FILTER_COLUMN_IDS,
type StudyDateRangeFilter,
} from '@ohif/ui-next';
import { preserveQueryStrings } from '../utils/preserveQueryParameters';
import {
URL_KEYS,
getUrlParam,
urlKeyForTextFilter,
} from '../utils/studyListFilterContract';
export type StudyListState = {
sorting: SortingState;
pagination: PaginationState;
filters: ColumnFiltersState;
dataSources?: string;
};
/**
* Hook that syncs study list table state (sorting, pagination, filters) between:
* - URL query parameters (source of truth, takes precedence)
* - Session storage (fallback/persistence)
* - Component state (for reactivity)
*/
export function useStudyListStateSync() {
const navigate = useNavigate();
const location = useLocation();
const searchParams = useSearchParams({ lowerCaseKeys: true });
const [sessionState, updateSessionState] = useSessionStorage({
key: 'studyList.tableState',
defaultValue: {},
clearOnUnload: true,
});
const [pagination, setPagination] = useState<PaginationState>(
sessionState.pagination || parsePaginationFromURL(searchParams)
);
const [filters, setFilters] = useState<ColumnFiltersState>(
sessionState.filters || parseFiltersFromURL(searchParams)
);
const [sorting, setSorting] = useState<SortingState>(
sessionState.sorting || parseSortingFromURL(searchParams)
);
const dataSources = sessionState.dataSources || getUrlParam(searchParams, URL_KEYS.dataSources);
const state = useMemo(
() => ({ sorting, pagination, filters, dataSources }),
[sorting, pagination, filters, dataSources]
);
// Debounce state for URL updates
const debouncedState = useDebounce(state, 200);
// Sync to sessionStorage on state change
React.useEffect(() => {
updateSessionState(state);
}, [state, updateSessionState]);
// Sync to URL on debounced state change
React.useEffect(() => {
const query = buildQueryFromState(debouncedState);
const newSearch = query ? `?${query}` : '';
// Only navigate if the search string actually changed
if (newSearch !== location.search) {
navigate(
{
pathname: location.pathname,
search: newSearch,
},
{ replace: true }
);
}
}, [debouncedState, navigate, location.pathname, location.search]);
return {
sorting,
pagination,
filters,
setSorting,
setPagination,
setFilters,
};
}
/**
* Parse sorting state from URL query parameters
*/
function parseSortingFromURL(params: URLSearchParams): SortingState {
const sortBy = getUrlParam(params, URL_KEYS.sortBy);
const sortDirection = getUrlParam(params, URL_KEYS.sortDirection);
if (!sortBy) {
return [];
}
return [
{
id: sortBy,
desc: sortDirection === 'desc' || sortDirection === 'descending',
},
];
}
/**
* Parse pagination state from URL query parameters
*/
function parsePaginationFromURL(params: URLSearchParams): PaginationState {
const page = getUrlParam(params, URL_KEYS.pageNumber);
const perPage = getUrlParam(params, URL_KEYS.resultsPerPage);
return {
pageIndex: page ? parseInt(page, 10) - 1 : 0,
pageSize: perPage ? parseInt(perPage, 10) : 50,
};
}
/**
* Parse filters from URL query parameters
* Note: This is a simplified version. You may need to extend this based on your filter structure.
*/
function parseFiltersFromURL(params: URLSearchParams): ColumnFiltersState {
const filters: ColumnFiltersState = [];
const modalities = getUrlParam(params, URL_KEYS.modalities);
if (modalities) {
const modalityList = modalities.split(',').filter(Boolean);
if (modalityList.length > 0) {
filters.push({
id: COLUMN_IDS.MODALITIES,
value: modalityList,
});
}
}
const startDate = getUrlParam(params, URL_KEYS.startDate);
const endDate = getUrlParam(params, URL_KEYS.endDate);
if (startDate || endDate) {
filters.push({
id: COLUMN_IDS.STUDY_DATE_TIME,
value: {
...(startDate ? { startDate } : {}),
...(endDate ? { endDate } : {}),
},
});
}
// Text filters (patient name, MRN, accession, description). URL keys come
// from the centralized contract — see studyListFilterContract.ts.
TEXT_FILTER_COLUMN_IDS.forEach(id => {
const value = getUrlParam(params, urlKeyForTextFilter(id));
if (value) {
filters.push({
id,
value,
});
}
});
return filters;
}
/**
* Build URL query string from study list state preserving key query parameters.
*/
function buildQueryFromState(state: StudyListState): string {
const query: Record<string, string> = {};
// Sorting
if (state.sorting.length > 0) {
const sort = state.sorting[0];
query[URL_KEYS.sortBy] = sort.id;
query[URL_KEYS.sortDirection] = sort.desc ? 'desc' : 'asc';
}
// Pagination
if (state.pagination.pageIndex > 0) {
query[URL_KEYS.pageNumber] = String(state.pagination.pageIndex + 1);
}
if (state.pagination.pageSize !== 50) {
query[URL_KEYS.resultsPerPage] = String(state.pagination.pageSize);
}
// Filters
state.filters.forEach(filter => {
if (filter.id === COLUMN_IDS.MODALITIES && Array.isArray(filter.value)) {
query[URL_KEYS.modalities] = filter.value.join(',');
} else if (filter.id === COLUMN_IDS.STUDY_DATE_TIME) {
const dateRange = filter.value as StudyDateRangeFilter | undefined;
if (dateRange?.startDate) {
query[URL_KEYS.startDate] = dateRange.startDate;
}
if (dateRange?.endDate) {
query[URL_KEYS.endDate] = dateRange.endDate;
}
} else if (typeof filter.value === 'string' && filter.value) {
query[urlKeyForTextFilter(filter.id)] = filter.value;
}
});
if (state.dataSources) {
query[URL_KEYS.dataSources] = state.dataSources;
}
preserveQueryStrings(query);
return qs.stringify(query, { skipNull: true, skipEmptyString: true });
}
@@ -0,0 +1,66 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Button, Icons, useModal } from '@ohif/ui-next';
import { ServicesManager } from '@ohif/core';
export function useWorkListToolbarActions(
servicesManager: ServicesManager,
dataSource: any,
onRefresh: () => void
): React.ReactNode {
const { t } = useTranslation();
const { show, hide } = useModal();
const { customizationService } = servicesManager.services;
const DicomUploadComponent = customizationService.getCustomization('dicomUploadComponent') as any;
const dataSourceConfigurationComponent = customizationService.getCustomization(
'ohif.dataSourceConfigurationComponent'
) as any;
const uploadEnabled = DicomUploadComponent && dataSource.getConfig()?.dicomUploadEnabled;
const dataSourceConfigElement = dataSourceConfigurationComponent?.();
if (!uploadEnabled && !dataSourceConfigElement) {
return undefined;
}
const uploadProps = uploadEnabled
? {
title: 'Upload files',
containerClassName: DicomUploadComponent?.containerClassName,
closeButton: true,
shouldCloseOnEsc: false,
shouldCloseOnOverlayClick: false,
content: () => (
<DicomUploadComponent
dataSource={dataSource}
onComplete={() => {
hide();
onRefresh();
}}
onStarted={() => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
show({ ...uploadProps, closeButton: false } as any);
}}
/>
),
}
: undefined;
return (
<div className="flex items-center gap-1">
{uploadProps && (
<Button
variant="ghost"
size="sm"
className="gap-1"
onClick={() => show(uploadProps as any)}
>
<Icons.Upload className="h-4 w-4" />
{t('Upload')}
</Button>
)}
{dataSourceConfigElement}
</div>
);
}
+19 -175
View File
@@ -1,23 +1,13 @@
/* eslint-disable react/jsx-props-no-spreading */
import React, { useCallback, useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { Enums, ExtensionManager, MODULE_TYPES, log } from '@ohif/core';
import { ExtensionManager, MODULE_TYPES } from '@ohif/core';
//
import { extensionManager } from '../App';
import { useParams, useLocation } from 'react-router';
import { useNavigate } from 'react-router-dom';
import { useParams } from 'react-router';
import useSearchParams from '../hooks/useSearchParams';
/**
* Determines if two React Router location objects are the same.
*/
const areLocationsTheSame = (location0, location1) => {
return (
location0.pathname === location1.pathname &&
location0.search === location1.search &&
location0.hash === location1.hash
);
};
import { useAppConfig } from '@state';
import { useStudyListQuery } from '../hooks';
/**
* Uses route properties to determine the data source that should be passed
@@ -29,32 +19,24 @@ const areLocationsTheSame = (location0, location1) => {
*/
function DataSourceWrapper(props: withAppTypes) {
const { servicesManager } = props;
const navigate = useNavigate();
const { children: LayoutTemplate, ...rest } = props;
const params = useParams();
const location = useLocation();
const lowerCaseSearchParams = useSearchParams({ lowerCaseKeys: true });
const query = useSearchParams();
const [appConfig] = useAppConfig();
// Route props --> studies.mapParams
// mapParams --> studies.search
// studies.search --> studies.processResults
// studies.processResults --> <LayoutTemplate studies={} />
// But only for LayoutTemplate type of 'list'?
// Or no data fetching here, and just hand down my source
const STUDIES_LIMIT = 101;
const DEFAULT_DATA = {
studies: [],
total: 0,
resultsPerPage: 25,
pageNumber: 1,
location: 'Not a valid location, causes first load to occur',
};
const getInitialDataSourceName = useCallback(() => {
// TODO - get the variable from the props all the time...
let dataSourceName = lowerCaseSearchParams.get('datasources');
if (!dataSourceName && window.config.defaultDataSourceName) {
if (!dataSourceName && appConfig.defaultDataSourceName) {
return '';
}
@@ -103,8 +85,11 @@ function DataSourceWrapper(props: withAppTypes) {
return dataSource;
});
const [data, setData] = useState(DEFAULT_DATA);
const [isLoading, setIsLoading] = useState(false);
const { studies, isLoading, hasFetchedOnce, refresh } = useStudyListQuery({
dataSource,
isDataSourceInitialized,
servicesManager,
});
/**
* The effect to initialize the data source whenever it changes. Similar to
@@ -125,12 +110,12 @@ function DataSourceWrapper(props: withAppTypes) {
useEffect(() => {
const dataSourceChangedCallback = () => {
setIsLoading(false);
setIsDataSourceInitialized(false);
setDataSourcePath('');
setDataSource(extensionManager.getActiveDataSource()[0]);
// Setting data to DEFAULT_DATA triggers a new query just like it does for the initial load.
setData(DEFAULT_DATA);
// Resets the cached data, the loading flag, and the first-fetch gate,
// then triggers a new query just like the initial load.
refresh();
};
const sub = extensionManager.subscribe(
@@ -140,97 +125,17 @@ function DataSourceWrapper(props: withAppTypes) {
return () => sub.unsubscribe();
}, []);
useEffect(() => {
if (!isDataSourceInitialized) {
return;
}
const queryFilterValues = _getQueryFilterValues(location.search, STUDIES_LIMIT);
// 204: no content
async function getData() {
setIsLoading(true);
log.time(Enums.TimingEnum.SEARCH_TO_LIST);
const studies = await dataSource.query.studies.search(queryFilterValues);
setData({
studies: studies || [],
total: studies.length,
resultsPerPage: queryFilterValues.resultsPerPage,
pageNumber: queryFilterValues.pageNumber,
location,
});
log.timeEnd(Enums.TimingEnum.SCRIPT_TO_VIEW);
log.timeEnd(Enums.TimingEnum.SEARCH_TO_LIST);
setIsLoading(false);
}
try {
// Cache invalidation :thinking:
// - Anytime change is not just next/previous page
// - And we didn't cross a result offset range
const isSamePage = data.pageNumber === queryFilterValues.pageNumber;
const previousOffset =
Math.floor((data.pageNumber * data.resultsPerPage) / STUDIES_LIMIT) * (STUDIES_LIMIT - 1);
const newOffset =
Math.floor(
(queryFilterValues.pageNumber * queryFilterValues.resultsPerPage) / STUDIES_LIMIT
) *
(STUDIES_LIMIT - 1);
// Simply checking data.location !== location is not sufficient because even though the location href (i.e. entire URL)
// has not changed, the React Router still provides a new location reference and would result in two study queries
// on initial load. Alternatively, window.location.href could be used.
const isLocationUpdated =
typeof data.location === 'string' || !areLocationsTheSame(data.location, location);
const isDataInvalid =
!isSamePage || (!isLoading && (newOffset !== previousOffset || isLocationUpdated));
if (isDataInvalid) {
getData().catch(e => {
console.error(e);
const { configurationAPI, friendlyName } = dataSource.getConfig();
// If there is a data source configuration API, then the Worklist will popup the dialog to attempt to configure it
// and attempt to resolve this issue.
if (configurationAPI) {
return;
}
servicesManager.services.uiModalService.show({
title: 'Data Source Connection Error',
content: () => {
return (
<div className="text-foreground">
<p className="text-red-600">Error: {e.message}</p>
<p>
Please ensure the following data source is configured correctly or is running:
</p>
<div className="mt-2 font-bold">{friendlyName}</div>
</div>
);
},
});
});
}
} catch (ex) {
console.warn(ex);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [data, location, params, isLoading, setIsLoading, dataSource, isDataSourceInitialized]);
// queryFilterValues
// TODO: Better way to pass DataSource?
return (
<LayoutTemplate
{...rest}
data={data.studies}
data={studies}
dataTotal={studies.length}
dataPath={dataSourcePath}
dataTotal={data.total}
dataSource={dataSource}
isLoadingData={isLoading}
// To refresh the data, simply reset it to DEFAULT_DATA which invalidates it and triggers a new query to fetch the data.
onRefresh={() => setData(DEFAULT_DATA)}
hasFetchedOnce={hasFetchedOnce}
onRefresh={refresh}
/>
);
}
@@ -241,64 +146,3 @@ DataSourceWrapper.propTypes = {
};
export default DataSourceWrapper;
/**
* Duplicated in `workList`
* Need generic that can be shared? Isn't this what qs is for?
* @param {*} query
*/
function _getQueryFilterValues(query, queryLimit) {
query = new URLSearchParams(query);
const newParams = new URLSearchParams();
for (const [key, value] of query) {
newParams.set(key.toLowerCase(), value);
}
query = newParams;
const pageNumber = _tryParseInt(query.get('pagenumber'), 1);
const resultsPerPage = _tryParseInt(query.get('resultsperpage'), 25);
const queryFilterValues = {
// DCM
patientId: query.get('mrn'),
patientName: query.get('patientname'),
studyDescription: query.get('description'),
modalitiesInStudy: query.get('modalities') && query.get('modalities').split(','),
accessionNumber: query.get('accession'),
//
startDate: query.get('startdate'),
endDate: query.get('enddate'),
page: _tryParseInt(query.get('page'), undefined),
pageNumber,
resultsPerPage,
// Rarely supported server-side
sortBy: query.get('sortby'),
sortDirection: query.get('sortdirection'),
// Offset...
offset: Math.floor((pageNumber * resultsPerPage) / queryLimit) * (queryLimit - 1),
config: query.get('configurl'),
};
// patientName: good
// studyDescription: good
// accessionNumber: good
// Delete null/undefined keys
Object.keys(queryFilterValues).forEach(
key => queryFilterValues[key] == null && delete queryFilterValues[key]
);
return queryFilterValues;
function _tryParseInt(str, defaultValue) {
let retValue = defaultValue;
if (str !== null) {
if (str.length > 0) {
if (!isNaN(str)) {
retValue = parseInt(str);
}
}
}
return retValue;
}
}
@@ -0,0 +1,685 @@
import React, { useState, useEffect, useMemo } from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
import { Link, useNavigate } from 'react-router-dom';
import qs from 'query-string';
import isEqual from 'lodash.isequal';
import { useTranslation } from 'react-i18next';
//
import filtersMeta from './filtersMeta.js';
import { useAppConfig } from '@state';
import { useDebounce, useSearchParams } from '../../hooks';
import { utils, Types as coreTypes } from '@ohif/core';
import {
StudyListExpandedRow,
EmptyStudies,
StudyListTable,
StudyListPagination,
StudyListFilter,
Button,
ButtonEnums,
} from '@ohif/ui';
import {
Header,
Icons,
Tooltip,
TooltipTrigger,
TooltipContent,
Clipboard,
useModal,
useSessionStorage,
Onboarding,
ScrollArea,
InvestigationalUseDialog,
formatDICOMDate,
formatDICOMTime,
parseStudyDateTimestamp,
} from '@ohif/ui-next';
import { Types } from '@ohif/ui';
import { preserveQueryParameters, preserveQueryStrings } from '../../utils/preserveQueryParameters';
const PatientInfoVisibility = Types.PatientInfoVisibility;
const { sortBySeriesDate } = utils;
const seriesInStudiesMap = new Map();
/**
* TODO:
* - debounce `setFilterValues` (150ms?)
*/
function LegacyWorkList({
data: studies,
dataTotal: studiesTotal,
isLoadingData,
dataSource,
hotkeysManager,
dataPath,
onRefresh,
servicesManager,
}: withAppTypes) {
const { show, hide } = useModal();
const { t } = useTranslation();
// ~ Modes
const [appConfig] = useAppConfig();
// ~ Filters
const searchParams = useSearchParams();
const navigate = useNavigate();
const STUDIES_LIMIT = 101;
const queryFilterValues = _getQueryFilterValues(searchParams);
const [sessionQueryFilterValues, updateSessionQueryFilterValues] = useSessionStorage({
key: 'queryFilterValues',
defaultValue: queryFilterValues,
// ToDo: useSessionStorage currently uses an unload listener to clear the filters from session storage
// so on systems that do not support unload events a user will NOT be able to alter any existing filter
// in the URL, load the page and have it apply.
clearOnUnload: true,
});
const [filterValues, _setFilterValues] = useState({
...defaultFilterValues,
...sessionQueryFilterValues,
});
const debouncedFilterValues = useDebounce(filterValues, 200);
const { resultsPerPage, pageNumber, sortBy, sortDirection } = filterValues;
/*
* The default sort value keep the filters synchronized with runtime conditional sorting
* Only applied if no other sorting is specified and there are less than 101 studies
*/
const canSort = studiesTotal < STUDIES_LIMIT;
const shouldUseDefaultSort = sortBy === '' || !sortBy;
const sortModifier = sortDirection === 'descending' ? 1 : -1;
const defaultSortValues =
shouldUseDefaultSort && canSort ? { sortBy: 'studyDate', sortDirection: 'ascending' } : {};
const { customizationService } = servicesManager.services;
const sortedStudies = useMemo(() => {
if (!canSort) {
return studies;
}
return [...studies].sort((s1, s2) => {
if (shouldUseDefaultSort) {
const ascendingSortModifier = -1;
return (
(parseStudyDateTimestamp(s1.date, s1.time) - parseStudyDateTimestamp(s2.date, s2.time)) *
ascendingSortModifier
);
}
const s1Prop = s1[sortBy];
const s2Prop = s2[sortBy];
if (typeof s1Prop === 'string' && typeof s2Prop === 'string') {
return s1Prop.localeCompare(s2Prop) * sortModifier;
} else if (typeof s1Prop === 'number' && typeof s2Prop === 'number') {
return (s1Prop > s2Prop ? 1 : -1) * sortModifier;
} else if (!s1Prop && s2Prop) {
return -1 * sortModifier;
} else if (!s2Prop && s1Prop) {
return 1 * sortModifier;
} else if (sortBy === 'studyDate') {
return (
(parseStudyDateTimestamp(s1.date, s1.time) - parseStudyDateTimestamp(s2.date, s2.time)) *
sortModifier
);
}
return 0;
});
}, [canSort, studies, shouldUseDefaultSort, sortBy, sortModifier]);
// ~ Rows & Studies
const [expandedRows, setExpandedRows] = useState([]);
const [studiesWithSeriesData, setStudiesWithSeriesData] = useState([]);
const numOfStudies = studiesTotal;
const querying = useMemo(() => {
return isLoadingData || expandedRows.length > 0;
}, [isLoadingData, expandedRows]);
const setFilterValues = val => {
if (filterValues.pageNumber === val.pageNumber) {
val.pageNumber = 1;
}
_setFilterValues(val);
updateSessionQueryFilterValues(val);
setExpandedRows([]);
};
const onPageNumberChange = newPageNumber => {
const oldPageNumber = filterValues.pageNumber;
const rollingPageNumberMod = Math.floor(101 / filterValues.resultsPerPage);
const rollingPageNumber = oldPageNumber % rollingPageNumberMod;
const isNextPage = newPageNumber > oldPageNumber;
const hasNextPage = Math.max(rollingPageNumber, 1) * resultsPerPage < numOfStudies;
if (isNextPage && !hasNextPage) {
return;
}
setFilterValues({ ...filterValues, pageNumber: newPageNumber });
};
const onResultsPerPageChange = newResultsPerPage => {
setFilterValues({
...filterValues,
pageNumber: 1,
resultsPerPage: Number(newResultsPerPage),
});
};
// Set body style
useEffect(() => {
document.body.classList.add('bg-black');
return () => {
document.body.classList.remove('bg-black');
};
}, []);
// Sync URL query parameters with filters
useEffect(() => {
if (!debouncedFilterValues) {
return;
}
const queryString = {};
Object.keys(defaultFilterValues).forEach(key => {
const defaultValue = defaultFilterValues[key];
const currValue = debouncedFilterValues[key];
// TODO: nesting/recursion?
if (key === 'studyDate') {
if (currValue.startDate && defaultValue.startDate !== currValue.startDate) {
queryString.startDate = currValue.startDate;
}
if (currValue.endDate && defaultValue.endDate !== currValue.endDate) {
queryString.endDate = currValue.endDate;
}
} else if (key === 'modalities' && currValue.length) {
queryString.modalities = currValue.join(',');
} else if (currValue !== defaultValue) {
queryString[key] = currValue;
}
});
preserveQueryStrings(queryString);
const search = qs.stringify(queryString, {
skipNull: true,
skipEmptyString: true,
});
navigate({
pathname: '/',
search: search ? `?${search}` : undefined,
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [debouncedFilterValues]);
// Query for series information
useEffect(() => {
const fetchSeries = async studyInstanceUid => {
try {
const series = await dataSource.query.series.search(studyInstanceUid);
seriesInStudiesMap.set(studyInstanceUid, sortBySeriesDate(series));
setStudiesWithSeriesData([...studiesWithSeriesData, studyInstanceUid]);
} catch (ex) {
// TODO: UI Notification Service
console.warn(ex);
}
};
// TODO: WHY WOULD YOU USE AN INDEX OF 1?!
// Note: expanded rows index begins at 1
for (let z = 0; z < expandedRows.length; z++) {
const expandedRowIndex = expandedRows[z] - 1;
const studyInstanceUid = sortedStudies[expandedRowIndex].studyInstanceUid;
if (studiesWithSeriesData.includes(studyInstanceUid)) {
continue;
}
fetchSeries(studyInstanceUid);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [expandedRows, studies]);
const isFiltering = (filterValues, defaultFilterValues) => {
return !isEqual(filterValues, defaultFilterValues);
};
const rollingPageNumberMod = Math.floor(101 / resultsPerPage);
const rollingPageNumber = (pageNumber - 1) % rollingPageNumberMod;
const offset = resultsPerPage * rollingPageNumber;
const offsetAndTake = offset + resultsPerPage;
const tableDataSource = sortedStudies.map((study, key) => {
const rowKey = key + 1;
const isExpanded = expandedRows.some(k => k === rowKey);
const {
studyInstanceUid,
accession,
modalities,
instances,
description,
mrn,
patientName,
date,
time,
} = study;
const studyDate = formatDICOMDate(date, { fallbackFormat: 'MMM-DD-YYYY', invalidFallback: '' });
const studyTime = formatDICOMTime(time, { invalidFallback: '' });
const makeCopyTooltipCell = textValue => {
if (!textValue) {
return '';
}
return (
<Tooltip>
<TooltipTrigger asChild>
<span className="cursor-pointer truncate">{textValue}</span>
</TooltipTrigger>
<TooltipContent side="bottom">
<div className="flex items-center justify-between gap-2">
{textValue}
<Clipboard>{textValue}</Clipboard>
</div>
</TooltipContent>
</Tooltip>
);
};
return {
dataCY: `studyRow-${studyInstanceUid}`,
clickableCY: studyInstanceUid,
row: [
{
key: 'patientName',
content: patientName ? makeCopyTooltipCell(patientName) : null,
gridCol: 4,
},
{
key: 'mrn',
content: makeCopyTooltipCell(mrn),
gridCol: 3,
},
{
key: 'studyDate',
content: (
<>
{studyDate && <span className="mr-4">{studyDate}</span>}
{studyTime && <span>{studyTime}</span>}
</>
),
title: `${studyDate || ''} ${studyTime || ''}`,
gridCol: 5,
},
{
key: 'description',
content: makeCopyTooltipCell(description),
gridCol: 4,
},
{
key: 'modality',
content: modalities,
title: modalities,
gridCol: 3,
},
{
key: 'accession',
content: makeCopyTooltipCell(accession),
gridCol: 3,
},
{
key: 'instances',
content: (
<>
<Icons.GroupLayers
className={classnames('mr-2 inline-flex w-4', {
'text-primary': isExpanded,
'text-secondary-light': !isExpanded,
})}
/>
{instances}
</>
),
title: (instances || 0).toString(),
gridCol: 2,
},
],
// Todo: This is actually running for all rows, even if they are
// not clicked on.
expandedContent: (
<StudyListExpandedRow
seriesTableColumns={{
description: t('StudyList:Description'),
seriesNumber: t('StudyList:Series'),
modality: t('StudyList:Modality'),
instances: t('StudyList:Instances'),
}}
seriesTableDataSource={
seriesInStudiesMap.has(studyInstanceUid)
? seriesInStudiesMap.get(studyInstanceUid).map(s => {
return {
description: s.description || '(empty)',
seriesNumber: s.seriesNumber ?? '',
modality: s.modality || '',
instances: s.numSeriesInstances || '',
};
})
: []
}
>
<div className="flex flex-row gap-2">
{(appConfig.groupEnabledModesFirst
? appConfig.loadedModes.sort((a, b) => {
const isValidA = a.isValidMode({
modalities: modalities.replaceAll('/', '\\'),
study,
}).valid;
const isValidB = b.isValidMode({
modalities: modalities.replaceAll('/', '\\'),
study,
}).valid;
return isValidB - isValidA;
})
: appConfig.loadedModes
).map((mode, i) => {
if (mode.hide) {
// Hide this mode from display
return null;
}
const modalitiesToCheck = modalities.replaceAll('/', '\\');
const { valid: isValidMode, description: invalidModeDescription } = mode.isValidMode({
modalities: modalitiesToCheck,
study,
});
if (isValidMode === null) {
// Hide this as a computed result.
return null;
}
// TODO: Modes need a default/target route? We mostly support a single one for now.
// We should also be using the route path, but currently are not
// mode.routeName
// mode.routes[x].path
// Don't specify default data source, and it should just be picked up... (this may not currently be the case)
// How do we know which params to pass? Today, it's just StudyInstanceUIDs and configUrl if exists
const query = new URLSearchParams();
if (filterValues.configUrl) {
query.append('configUrl', filterValues.configUrl);
}
query.append('StudyInstanceUIDs', studyInstanceUid);
preserveQueryParameters(query);
return (
mode.displayName && (
<Link
className={isValidMode ? '' : 'cursor-not-allowed'}
key={i}
to={`${mode.routeName}${dataPath || ''}?${query.toString()}`}
onClick={event => {
// In case any event bubbles up for an invalid mode, prevent the navigation.
// For example, the event bubbles up when the icon embedded in the disabled button is clicked.
if (!isValidMode) {
event.preventDefault();
}
}}
// to={`${mode.routeName}/dicomweb?StudyInstanceUIDs=${studyInstanceUid}`}
>
{/* TODO revisit the completely rounded style of buttons used for launching a mode from the worklist later */}
<Button
type={ButtonEnums.type.primary}
size={ButtonEnums.size.smallTall}
disabled={!isValidMode}
startIconTooltip={
!isValidMode ? (
<div className="font-inter flex w-[206px] whitespace-normal text-left text-xs font-normal text-white">
{invalidModeDescription}
</div>
) : null
}
startIcon={
isValidMode ? (
<Icons.LaunchArrow className="!h-[20px] !w-[20px] text-black" />
) : (
<Icons.LaunchInfo className="!h-[20px] !w-[20px] text-black" />
)
}
onClick={() => {}}
dataCY={`mode-${mode.routeName}-${studyInstanceUid}`}
className={!isValidMode && 'bg-[#222d44]'}
>
{mode.displayName}
</Button>
</Link>
)
);
})}
</div>
</StudyListExpandedRow>
),
onClickRow: () =>
setExpandedRows(s => (isExpanded ? s.filter(n => rowKey !== n) : [...s, rowKey])),
isExpanded,
};
});
const hasStudies = numOfStudies > 0;
const AboutModal = customizationService.getCustomization(
'ohif.aboutModal'
) as coreTypes.MenuComponentCustomization;
const UserPreferencesModal = customizationService.getCustomization(
'ohif.userPreferencesModal'
) as coreTypes.MenuComponentCustomization;
const menuOptions = [
{
title: AboutModal?.menuTitle ?? t('Header:About'),
icon: 'info',
onClick: () =>
show({
content: AboutModal,
title: AboutModal?.title ?? t('AboutModal:About OHIF Viewer'),
containerClassName: AboutModal?.containerClassName ?? 'max-w-md',
}),
},
{
title: UserPreferencesModal.menuTitle ?? t('Header:Preferences'),
icon: 'settings',
onClick: () =>
show({
content: UserPreferencesModal as React.ComponentType,
title: UserPreferencesModal.title ?? t('UserPreferencesModal:User preferences'),
containerClassName:
UserPreferencesModal?.containerClassName ?? 'flex max-w-4xl p-6 flex-col',
}),
},
];
if (appConfig.oidc) {
menuOptions.push({
icon: 'power-off',
title: t('Header:Logout'),
onClick: () => {
navigate(`/logout?redirect_uri=${encodeURIComponent(window.location.href)}`);
},
});
}
const LoadingIndicatorProgress = customizationService.getCustomization(
'ui.loadingIndicatorProgress'
);
const DicomUploadComponent = customizationService.getCustomization('dicomUploadComponent');
const uploadProps =
DicomUploadComponent && dataSource.getConfig()?.dicomUploadEnabled
? {
title: 'Upload files',
containerClassName: DicomUploadComponent?.containerClassName,
closeButton: true,
shouldCloseOnEsc: false,
shouldCloseOnOverlayClick: false,
content: () => (
<DicomUploadComponent
dataSource={dataSource}
onComplete={() => {
hide();
onRefresh();
}}
onStarted={() => {
show({
...uploadProps,
// when upload starts, hide the default close button as closing the dialogue must be handled by the upload dialogue itself
closeButton: false,
});
}}
/>
),
}
: undefined;
const dataSourceConfigurationComponent = customizationService.getCustomization(
'ohif.dataSourceConfigurationComponent'
);
return (
<div className="flex h-screen flex-col bg-black">
<Header
isSticky
menuOptions={menuOptions}
isReturnEnabled={false}
WhiteLabeling={appConfig.whiteLabeling}
showPatientInfo={PatientInfoVisibility.DISABLED}
/>
<Onboarding />
<InvestigationalUseDialog dialogConfiguration={appConfig?.investigationalUseDialog} />
<div className="flex h-full flex-col overflow-y-auto">
<ScrollArea>
<div className="flex grow flex-col">
<StudyListFilter
numOfStudies={pageNumber * resultsPerPage > 100 ? 101 : numOfStudies}
filtersMeta={filtersMeta}
filterValues={{ ...filterValues, ...defaultSortValues }}
onChange={setFilterValues}
clearFilters={() => setFilterValues(defaultFilterValues)}
isFiltering={isFiltering(filterValues, defaultFilterValues)}
onUploadClick={uploadProps ? () => show(uploadProps) : undefined}
getDataSourceConfigurationComponent={
dataSourceConfigurationComponent
? () => dataSourceConfigurationComponent()
: undefined
}
/>
</div>
{hasStudies ? (
<div className="flex grow flex-col">
<StudyListTable
tableDataSource={tableDataSource.slice(offset, offsetAndTake)}
numOfStudies={numOfStudies}
querying={querying}
filtersMeta={filtersMeta}
/>
<div className="grow">
<StudyListPagination
onChangePage={onPageNumberChange}
onChangePerPage={onResultsPerPageChange}
currentPage={pageNumber}
perPage={resultsPerPage}
/>
</div>
</div>
) : (
<div className="flex flex-col items-center justify-center pt-48">
{appConfig.showLoadingIndicator && isLoadingData ? (
<LoadingIndicatorProgress className={'h-full w-full bg-black'} />
) : (
<EmptyStudies />
)}
</div>
)}
</ScrollArea>
</div>
</div>
);
}
LegacyWorkList.propTypes = {
data: PropTypes.array.isRequired,
dataSource: PropTypes.shape({
query: PropTypes.object.isRequired,
getConfig: PropTypes.func,
}).isRequired,
isLoadingData: PropTypes.bool.isRequired,
servicesManager: PropTypes.object.isRequired,
};
const defaultFilterValues = {
patientName: '',
mrn: '',
studyDate: {
startDate: null,
endDate: null,
},
description: '',
modalities: [],
accession: '',
sortBy: '',
sortDirection: 'none',
pageNumber: 1,
resultsPerPage: 25,
datasources: '',
};
function _tryParseInt(str, defaultValue) {
let retValue = defaultValue;
if (str && str.length > 0) {
if (!isNaN(str)) {
retValue = parseInt(str);
}
}
return retValue;
}
function _getQueryFilterValues(params) {
const newParams = new URLSearchParams();
for (const [key, value] of params) {
newParams.set(key.toLowerCase(), value);
}
params = newParams;
const queryFilterValues = {
patientName: params.get('patientname'),
mrn: params.get('mrn'),
studyDate: {
startDate: params.get('startdate') || null,
endDate: params.get('enddate') || null,
},
description: params.get('description'),
modalities: params.get('modalities') ? params.get('modalities').split(',') : [],
accession: params.get('accession'),
sortBy: params.get('sortby'),
sortDirection: params.get('sortdirection'),
pageNumber: _tryParseInt(params.get('pagenumber'), undefined),
resultsPerPage: _tryParseInt(params.get('resultsperpage'), undefined),
datasources: params.get('datasources'),
configUrl: params.get('configurl'),
};
// Delete null/undefined keys
Object.keys(queryFilterValues).forEach(
key => queryFilterValues[key] == null && delete queryFilterValues[key]
);
return queryFilterValues;
}
export default LegacyWorkList;
@@ -0,0 +1 @@
export { default } from './LegacyWorkList';
@@ -0,0 +1,90 @@
import React from 'react';
import { StudyList, type StudyRow } from '@ohif/ui-next';
import { useSeriesFetch } from '../../hooks';
import { StudyListSettingsPopover } from './StudyListSettingsPopover';
type PreviewSeriesView = 'all' | 'thumbnails' | 'list';
const ALLOWED_PREVIEW_SERIES_VIEWS: ReadonlyArray<PreviewSeriesView> = [
'all',
'thumbnails',
'list',
];
export function SidePanelPreview({
dataSource,
selected,
servicesManager,
}: {
dataSource: any;
selected: StudyRow | null;
servicesManager: AppTypes.ServicesManager;
}) {
const { series, onThumbnailImageError } = useSeriesFetch({ dataSource, selected });
const { customizationService } = servicesManager.services;
const thumbnailRendering = dataSource?.getConfig?.()?.thumbnailRendering;
const thumbnailRequestStrategy =
dataSource?.getConfig?.()?.thumbnailRequestStrategy || 'bulkDataRetrieve';
const forceListView =
thumbnailRendering === 'wadors' ||
thumbnailRendering === 'thumbnailDirect' ||
thumbnailRequestStrategy === 'bulkDataRetrieve';
const customizationSeriesView = customizationService.getCustomization(
'workList.previewSeriesView'
);
const configuredSeriesView: PreviewSeriesView = ALLOWED_PREVIEW_SERIES_VIEWS.includes(
customizationSeriesView as PreviewSeriesView
)
? (customizationSeriesView as PreviewSeriesView)
: 'all';
const seriesView: PreviewSeriesView = forceListView ? 'list' : configuredSeriesView;
const previewProps: PreviewContentProps = {
study: selected as StudyRow | null,
series,
seriesView,
onThumbnailImageError,
};
const renderPreviewContent = customizationService.getCustomization('workList.renderPreviewContent');
if (typeof renderPreviewContent === 'function') {
return <>{(renderPreviewContent as RenderPreviewContent)(React, previewProps)}</>;
}
return <DefaultPreviewContent {...previewProps} />;
}
export type PreviewContentProps = {
study: StudyRow | null;
series: any[];
seriesView: PreviewSeriesView;
onThumbnailImageError: (seriesUID: string) => void;
};
export type RenderPreviewContent = (
React: typeof import('react'),
props: PreviewContentProps
) => React.ReactNode;
function DefaultPreviewContent({
study,
series,
seriesView,
onThumbnailImageError,
}: PreviewContentProps) {
return (
<StudyList.PreviewContainer>
<StudyList.PreviewHeader>
<StudyListSettingsPopover />
<StudyList.ClosePreviewButton />
</StudyList.PreviewHeader>
<StudyList.PreviewContent
study={study}
series={series}
seriesView={seriesView}
onThumbnailImageError={onThumbnailImageError}
/>
</StudyList.PreviewContainer>
);
}
@@ -0,0 +1,128 @@
import React from 'react';
import { useNavigate, type NavigateFunction } from 'react-router-dom';
import { useTranslation, type TFunction } from 'react-i18next';
import { useAppConfig } from '@state';
import { useSystem } from '@ohif/core';
import { StudyList, Icons, Button, useModal } from '@ohif/ui-next';
export type SettingsMenuItem = {
id: string;
label: React.ReactNode;
onClick: () => void;
};
type DefaultItemsContext = {
t: TFunction;
navigate: NavigateFunction;
customizationService: any;
show: ReturnType<typeof useModal>['show'];
appConfig: ReturnType<typeof useAppConfig>[0];
};
export function defaultSettingsMenuItems({
t,
navigate,
customizationService,
show,
appConfig,
}: DefaultItemsContext): SettingsMenuItem[] {
const items: SettingsMenuItem[] = [
{
id: 'about',
label: 'About OHIF Viewer',
onClick: () => {
const AboutModal = customizationService.getCustomization('ohif.aboutModal');
show({
content: AboutModal,
title: AboutModal?.title ?? t('AboutModal:About OHIF Viewer'),
containerClassName: AboutModal?.containerClassName ?? 'max-w-md',
});
},
},
{
id: 'userPreferences',
label: 'User Preferences',
onClick: () => {
const UserPreferencesModal = customizationService.getCustomization(
'ohif.userPreferencesModal'
);
show({
content: UserPreferencesModal,
title: UserPreferencesModal?.title ?? t('UserPreferencesModal:User preferences'),
containerClassName:
UserPreferencesModal?.containerClassName ?? 'flex max-w-4xl p-6 flex-col',
});
},
},
];
if (appConfig.oidc) {
items.push({
id: 'logout',
label: t('Header:Logout'),
onClick: () => {
navigate(`/logout?redirect_uri=${encodeURIComponent(window.location.href)}`);
},
});
}
return items;
}
export function StudyListSettingsPopover() {
// SettingsPopover.Workflow now uses useStudyListWorkflows internally
const { t } = useTranslation();
const [appConfig] = useAppConfig();
const navigate = useNavigate();
const { servicesManager } = useSystem();
const { customizationService } = servicesManager.services as any;
const { show } = useModal();
const defaults = defaultSettingsMenuItems({
t,
navigate,
customizationService,
show,
appConfig,
});
const buildItems = customizationService.getCustomization('workList.settingsMenuItems');
const items: SettingsMenuItem[] =
typeof buildItems === 'function'
? (() => {
const result = (
buildItems as (defaults: SettingsMenuItem[]) => SettingsMenuItem[]
)(defaults);
return Array.isArray(result) ? result : defaults;
})()
: defaults;
return (
<StudyList.SettingsPopover>
<StudyList.SettingsPopover.Trigger>
<Button
variant="ghost"
size="icon"
aria-label="Open settings"
>
<Icons.SettingsStudyList
aria-hidden="true"
className="h-4 w-4"
/>
</Button>
</StudyList.SettingsPopover.Trigger>
<StudyList.SettingsPopover.Content>
<StudyList.SettingsPopover.Workflow />
<StudyList.SettingsPopover.Divider />
{items.map(item => (
<StudyList.SettingsPopover.Item
key={item.id}
onClick={item.onClick}
>
{item.label}
</StudyList.SettingsPopover.Item>
))}
</StudyList.SettingsPopover.Content>
</StudyList.SettingsPopover>
);
}
+114 -672
View File
@@ -1,699 +1,141 @@
import React, { useState, useEffect, useMemo } from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
import { Link, useNavigate } from 'react-router-dom';
import moment from 'moment';
import qs from 'query-string';
import isEqual from 'lodash.isequal';
import { useTranslation } from 'react-i18next';
//
import filtersMeta from './filtersMeta.js';
import React, { useEffect, useMemo, useState } from 'react';
import { useAppConfig } from '@state';
import { useDebounce, useSearchParams } from '../../hooks';
import { utils, Types as coreTypes } from '@ohif/core';
import { preserveQueryParameters } from '../../utils/preserveQueryParameters';
import { useStudyListStateSync, useWorkListToolbarActions } from '../../hooks';
import {
StudyListExpandedRow,
EmptyStudies,
StudyListTable,
StudyListPagination,
StudyListFilter,
Button,
ButtonEnums,
} from '@ohif/ui';
import { StudyList, Icons, InvestigationalUseDialog, type StudyRow } from '@ohif/ui-next';
import { StudyListSettingsPopover } from './StudyListSettingsPopover';
import { SidePanelPreview } from './SidePanelPreview';
import {
Header,
Icons,
Tooltip,
TooltipTrigger,
TooltipContent,
Clipboard,
useModal,
useSessionStorage,
Onboarding,
ScrollArea,
InvestigationalUseDialog,
} from '@ohif/ui-next';
type Props = withAppTypes & {
data: any[];
dataSource: any;
isLoadingData: boolean;
hasFetchedOnce?: boolean;
dataPath?: string;
onRefresh: () => void;
};
import { Types } from '@ohif/ui';
import { preserveQueryParameters, preserveQueryStrings } from '../../utils/preserveQueryParameters';
const PatientInfoVisibility = Types.PatientInfoVisibility;
const { sortBySeriesDate } = utils;
const seriesInStudiesMap = new Map();
/**
* TODO:
* - debounce `setFilterValues` (150ms?)
*/
function WorkList({
data: studies,
dataTotal: studiesTotal,
isLoadingData,
export default function WorkList({
data,
dataSource,
hotkeysManager,
isLoadingData,
hasFetchedOnce = false,
dataPath,
onRefresh,
servicesManager,
}: withAppTypes) {
const { show, hide } = useModal();
const { t } = useTranslation();
// ~ Modes
extensionManager,
}: Props) {
const [appConfig] = useAppConfig();
// ~ Filters
const searchParams = useSearchParams();
const navigate = useNavigate();
const STUDIES_LIMIT = 101;
const queryFilterValues = _getQueryFilterValues(searchParams);
const [sessionQueryFilterValues, updateSessionQueryFilterValues] = useSessionStorage({
key: 'queryFilterValues',
defaultValue: queryFilterValues,
// ToDo: useSessionStorage currently uses an unload listener to clear the filters from session storage
// so on systems that do not support unload events a user will NOT be able to alter any existing filter
// in the URL, load the page and have it apply.
clearOnUnload: true,
});
const [filterValues, _setFilterValues] = useState({
...defaultFilterValues,
...sessionQueryFilterValues,
});
const debouncedFilterValues = useDebounce(filterValues, 200);
const { resultsPerPage, pageNumber, sortBy, sortDirection } = filterValues;
/*
* The default sort value keep the filters synchronized with runtime conditional sorting
* Only applied if no other sorting is specified and there are less than 101 studies
*/
const canSort = studiesTotal < STUDIES_LIMIT;
const shouldUseDefaultSort = sortBy === '' || !sortBy;
const sortModifier = sortDirection === 'descending' ? 1 : -1;
const defaultSortValues =
shouldUseDefaultSort && canSort ? { sortBy: 'studyDate', sortDirection: 'ascending' } : {};
const { customizationService } = servicesManager.services;
const sortedStudies = useMemo(() => {
if (!canSort) {
return studies;
}
return [...studies].sort((s1, s2) => {
if (shouldUseDefaultSort) {
const ascendingSortModifier = -1;
return _sortStringDates(s1, s2, ascendingSortModifier);
}
const s1Prop = s1[sortBy];
const s2Prop = s2[sortBy];
if (typeof s1Prop === 'string' && typeof s2Prop === 'string') {
return s1Prop.localeCompare(s2Prop) * sortModifier;
} else if (typeof s1Prop === 'number' && typeof s2Prop === 'number') {
return (s1Prop > s2Prop ? 1 : -1) * sortModifier;
} else if (!s1Prop && s2Prop) {
return -1 * sortModifier;
} else if (!s2Prop && s1Prop) {
return 1 * sortModifier;
} else if (sortBy === 'studyDate') {
return _sortStringDates(s1, s2, sortModifier);
}
return 0;
});
}, [canSort, studies, shouldUseDefaultSort, sortBy, sortModifier]);
// ~ Rows & Studies
const [expandedRows, setExpandedRows] = useState([]);
const [studiesWithSeriesData, setStudiesWithSeriesData] = useState([]);
const numOfStudies = studiesTotal;
const querying = useMemo(() => {
return isLoadingData || expandedRows.length > 0;
}, [isLoadingData, expandedRows]);
const setFilterValues = val => {
if (filterValues.pageNumber === val.pageNumber) {
val.pageNumber = 1;
}
_setFilterValues(val);
updateSessionQueryFilterValues(val);
setExpandedRows([]);
};
const onPageNumberChange = newPageNumber => {
const oldPageNumber = filterValues.pageNumber;
const rollingPageNumberMod = Math.floor(101 / filterValues.resultsPerPage);
const rollingPageNumber = oldPageNumber % rollingPageNumberMod;
const isNextPage = newPageNumber > oldPageNumber;
const hasNextPage = Math.max(rollingPageNumber, 1) * resultsPerPage < numOfStudies;
if (isNextPage && !hasNextPage) {
return;
}
setFilterValues({ ...filterValues, pageNumber: newPageNumber });
};
const onResultsPerPageChange = newResultsPerPage => {
setFilterValues({
...filterValues,
pageNumber: 1,
resultsPerPage: Number(newResultsPerPage),
});
};
// Set body style
useEffect(() => {
document.body.classList.add('bg-black');
return () => {
document.body.classList.remove('bg-black');
};
}, []);
// Sync URL query parameters with filters
useEffect(() => {
if (!debouncedFilterValues) {
return;
}
const queryString = {};
Object.keys(defaultFilterValues).forEach(key => {
const defaultValue = defaultFilterValues[key];
const currValue = debouncedFilterValues[key];
// TODO: nesting/recursion?
if (key === 'studyDate') {
if (currValue.startDate && defaultValue.startDate !== currValue.startDate) {
queryString.startDate = currValue.startDate;
}
if (currValue.endDate && defaultValue.endDate !== currValue.endDate) {
queryString.endDate = currValue.endDate;
}
} else if (key === 'modalities' && currValue.length) {
queryString.modalities = currValue.join(',');
} else if (currValue !== defaultValue) {
queryString[key] = currValue;
}
});
preserveQueryStrings(queryString);
const search = qs.stringify(queryString, {
skipNull: true,
skipEmptyString: true,
});
navigate({
pathname: '/',
search: search ? `?${search}` : undefined,
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [debouncedFilterValues]);
// Query for series information
useEffect(() => {
const fetchSeries = async studyInstanceUid => {
try {
const series = await dataSource.query.series.search(studyInstanceUid);
seriesInStudiesMap.set(studyInstanceUid, sortBySeriesDate(series));
setStudiesWithSeriesData([...studiesWithSeriesData, studyInstanceUid]);
} catch (ex) {
// TODO: UI Notification Service
console.warn(ex);
}
};
// TODO: WHY WOULD YOU USE AN INDEX OF 1?!
// Note: expanded rows index begins at 1
for (let z = 0; z < expandedRows.length; z++) {
const expandedRowIndex = expandedRows[z] - 1;
const studyInstanceUid = sortedStudies[expandedRowIndex].studyInstanceUid;
if (studiesWithSeriesData.includes(studyInstanceUid)) {
continue;
}
fetchSeries(studyInstanceUid);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [expandedRows, studies]);
const isFiltering = (filterValues, defaultFilterValues) => {
return !isEqual(filterValues, defaultFilterValues);
};
const rollingPageNumberMod = Math.floor(101 / resultsPerPage);
const rollingPageNumber = (pageNumber - 1) % rollingPageNumberMod;
const offset = resultsPerPage * rollingPageNumber;
const offsetAndTake = offset + resultsPerPage;
const tableDataSource = sortedStudies.map((study, key) => {
const rowKey = key + 1;
const isExpanded = expandedRows.some(k => k === rowKey);
const {
studyInstanceUid,
accession,
modalities,
instances,
description,
mrn,
patientName,
date,
time,
} = study;
const studyDate =
date &&
moment(date, ['YYYYMMDD', 'YYYY.MM.DD'], true).isValid() &&
moment(date, ['YYYYMMDD', 'YYYY.MM.DD']).format(t('Common:localDateFormat', 'MMM-DD-YYYY'));
const studyTime =
time &&
moment(time, ['HH', 'HHmm', 'HHmmss', 'HHmmss.SSS']).isValid() &&
moment(time, ['HH', 'HHmm', 'HHmmss', 'HHmmss.SSS']).format(
t('Common:localTimeFormat', 'hh:mm A')
);
const makeCopyTooltipCell = textValue => {
if (!textValue) {
return '';
}
return (
<Tooltip>
<TooltipTrigger asChild>
<span className="cursor-pointer truncate">{textValue}</span>
</TooltipTrigger>
<TooltipContent side="bottom">
<div className="flex items-center justify-between gap-2">
{textValue}
<Clipboard>{textValue}</Clipboard>
</div>
</TooltipContent>
</Tooltip>
);
};
return {
dataCY: `studyRow-${studyInstanceUid}`,
clickableCY: studyInstanceUid,
row: [
{
key: 'patientName',
content: patientName ? makeCopyTooltipCell(patientName) : null,
gridCol: 4,
},
{
key: 'mrn',
content: makeCopyTooltipCell(mrn),
gridCol: 3,
},
{
key: 'studyDate',
content: (
<>
{studyDate && <span className="mr-4">{studyDate}</span>}
{studyTime && <span>{studyTime}</span>}
</>
),
title: `${studyDate || ''} ${studyTime || ''}`,
gridCol: 5,
},
{
key: 'description',
content: makeCopyTooltipCell(description),
gridCol: 4,
},
{
key: 'modality',
content: modalities,
title: modalities,
gridCol: 3,
},
{
key: 'accession',
content: makeCopyTooltipCell(accession),
gridCol: 3,
},
{
key: 'instances',
content: (
<>
<Icons.GroupLayers
className={classnames('mr-2 inline-flex w-4', {
'text-primary': isExpanded,
'text-secondary-light': !isExpanded,
})}
/>
{instances}
</>
),
title: (instances || 0).toString(),
gridCol: 2,
},
],
// Todo: This is actually running for all rows, even if they are
// not clicked on.
expandedContent: (
<StudyListExpandedRow
seriesTableColumns={{
description: t('StudyList:Description'),
seriesNumber: t('StudyList:Series'),
modality: t('StudyList:Modality'),
instances: t('StudyList:Instances'),
}}
seriesTableDataSource={
seriesInStudiesMap.has(studyInstanceUid)
? seriesInStudiesMap.get(studyInstanceUid).map(s => {
return {
description: s.description || '(empty)',
seriesNumber: s.seriesNumber ?? '',
modality: s.modality || '',
instances: s.numSeriesInstances || '',
};
})
: []
}
>
<div className="flex flex-row gap-2">
{(appConfig.groupEnabledModesFirst
? appConfig.loadedModes.sort((a, b) => {
const isValidA = a.isValidMode({
modalities: modalities.replaceAll('/', '\\'),
study,
}).valid;
const isValidB = b.isValidMode({
modalities: modalities.replaceAll('/', '\\'),
study,
}).valid;
return isValidB - isValidA;
})
: appConfig.loadedModes
).map((mode, i) => {
if (mode.hide) {
// Hide this mode from display
return null;
}
const modalitiesToCheck = modalities.replaceAll('/', '\\');
const { valid: isValidMode, description: invalidModeDescription } = mode.isValidMode({
modalities: modalitiesToCheck,
study,
});
if (isValidMode === null) {
// Hide this as a computed result.
return null;
}
// TODO: Modes need a default/target route? We mostly support a single one for now.
// We should also be using the route path, but currently are not
// mode.routeName
// mode.routes[x].path
// Don't specify default data source, and it should just be picked up... (this may not currently be the case)
// How do we know which params to pass? Today, it's just StudyInstanceUIDs and configUrl if exists
const query = new URLSearchParams();
if (filterValues.configUrl) {
query.append('configUrl', filterValues.configUrl);
}
query.append('StudyInstanceUIDs', studyInstanceUid);
preserveQueryParameters(query);
return (
mode.displayName && (
<Link
className={isValidMode ? '' : 'cursor-not-allowed'}
key={i}
to={`${mode.routeName}${dataPath || ''}?${query.toString()}`}
onClick={event => {
// In case any event bubbles up for an invalid mode, prevent the navigation.
// For example, the event bubbles up when the icon embedded in the disabled button is clicked.
if (!isValidMode) {
event.preventDefault();
}
}}
// to={`${mode.routeName}/dicomweb?StudyInstanceUIDs=${studyInstanceUid}`}
>
{/* TODO revisit the completely rounded style of buttons used for launching a mode from the worklist later */}
<Button
type={ButtonEnums.type.primary}
size={ButtonEnums.size.smallTall}
disabled={!isValidMode}
startIconTooltip={
!isValidMode ? (
<div className="font-inter flex w-[206px] whitespace-normal text-left text-xs font-normal text-white">
{invalidModeDescription}
</div>
) : null
}
startIcon={
isValidMode ? (
<Icons.LaunchArrow className="!h-[20px] !w-[20px] text-black" />
) : (
<Icons.LaunchInfo className="!h-[20px] !w-[20px] text-black" />
)
}
onClick={() => {}}
dataCY={`mode-${mode.routeName}-${studyInstanceUid}`}
className={!isValidMode && 'bg-[#222d44]'}
>
{mode.displayName}
</Button>
</Link>
)
);
})}
</div>
</StudyListExpandedRow>
),
onClickRow: () =>
setExpandedRows(s => (isExpanded ? s.filter(n => rowKey !== n) : [...s, rowKey])),
isExpanded,
};
});
const hasStudies = numOfStudies > 0;
const AboutModal = customizationService.getCustomization(
'ohif.aboutModal'
) as coreTypes.MenuComponentCustomization;
const UserPreferencesModal = customizationService.getCustomization(
'ohif.userPreferencesModal'
) as coreTypes.MenuComponentCustomization;
const menuOptions = [
{
title: AboutModal?.menuTitle ?? t('Header:About'),
icon: 'info',
onClick: () =>
show({
content: AboutModal,
title: AboutModal?.title ?? t('AboutModal:About OHIF Viewer'),
containerClassName: AboutModal?.containerClassName ?? 'max-w-md',
}),
},
{
title: UserPreferencesModal.menuTitle ?? t('Header:Preferences'),
icon: 'settings',
onClick: () =>
show({
content: UserPreferencesModal as React.ComponentType,
title: UserPreferencesModal.title ?? t('UserPreferencesModal:User preferences'),
containerClassName:
UserPreferencesModal?.containerClassName ?? 'flex max-w-4xl p-6 flex-col',
}),
},
];
if (appConfig.oidc) {
menuOptions.push({
icon: 'power-off',
title: t('Header:Logout'),
onClick: () => {
navigate(`/logout?redirect_uri=${encodeURIComponent(window.location.href)}`);
},
});
}
const LoadingIndicatorProgress = customizationService.getCustomization(
'ui.loadingIndicatorProgress'
) as React.ComponentType<{ className?: string }> | undefined;
const [isFilterPending, setIsFilterPending] = useState(false);
const showStudyListLoading = Boolean(
(appConfig.showLoadingIndicator && isLoadingData) || !hasFetchedOnce || isFilterPending
);
const DicomUploadComponent = customizationService.getCustomization('dicomUploadComponent');
const uploadProps =
DicomUploadComponent && dataSource.getConfig()?.dicomUploadEnabled
? {
title: 'Upload files',
containerClassName: DicomUploadComponent?.containerClassName,
closeButton: true,
shouldCloseOnEsc: false,
shouldCloseOnOverlayClick: false,
content: () => (
<DicomUploadComponent
dataSource={dataSource}
onComplete={() => {
hide();
onRefresh();
}}
onStarted={() => {
show({
...uploadProps,
// when upload starts, hide the default close button as closing the dialogue must be handled by the upload dialogue itself
closeButton: false,
});
}}
/>
),
}
: undefined;
// Sync table state (sorting, pagination, filters) with URL and sessionStorage
const { sorting, pagination, filters, setSorting, setPagination, setFilters } =
useStudyListStateSync();
const dataSourceConfigurationComponent = customizationService.getCustomization(
'ohif.dataSourceConfigurationComponent'
// Default sorting if no URL state exists
const defaultSorting = useMemo(() => [{ id: 'studyDateTime', desc: true }], []);
const [selected, setSelected] = useState<StudyRow | null>(null);
const [isPreviewOpen, setPreviewOpen] = useState(true);
const columns = useMemo(() => {
// `workList.columns` is registered as a value (StudyList.defaultColumns) and
// merged via customization commands, so we read the result directly.
const customized = customizationService.getCustomization('workList.columns');
return Array.isArray(customized) ? customized : StudyList.defaultColumns;
}, [customizationService]);
const logoComponent = appConfig?.whiteLabeling?.createLogoComponentFn?.(React) ?? (
<Icons.OHIFLogoHorizontal
aria-label="OHIF logo"
className="h-[22px] w-[232px]"
/>
);
const toolbarActions = useWorkListToolbarActions(servicesManager, dataSource, onRefresh);
const previewDefaultSize = useMemo(() => {
if (typeof window !== 'undefined' && window.innerWidth > 0) {
const percent = (325 / window.innerWidth) * 100;
return Math.min(Math.max(percent, 15), 50);
}
return 30;
}, []);
useEffect(() => {
if (isLoadingData) {
return;
}
setIsFilterPending(false);
}, [isLoadingData, data]);
return (
<div className="flex h-screen flex-col bg-black">
<Header
isSticky
menuOptions={menuOptions}
isReturnEnabled={false}
WhiteLabeling={appConfig.whiteLabeling}
showPatientInfo={PatientInfoVisibility.DISABLED}
/>
<Onboarding />
<div className="flex h-screen min-h-0 flex-col overflow-hidden bg-black">
<InvestigationalUseDialog dialogConfiguration={appConfig?.investigationalUseDialog} />
<div className="flex h-full flex-col overflow-y-auto">
<ScrollArea>
<div className="flex grow flex-col">
<StudyListFilter
numOfStudies={pageNumber * resultsPerPage > 100 ? 101 : numOfStudies}
filtersMeta={filtersMeta}
filterValues={{ ...filterValues, ...defaultSortValues }}
onChange={setFilterValues}
clearFilters={() => setFilterValues(defaultFilterValues)}
isFiltering={isFiltering(filterValues, defaultFilterValues)}
onUploadClick={uploadProps ? () => show(uploadProps) : undefined}
getDataSourceConfigurationComponent={
dataSourceConfigurationComponent
? () => dataSourceConfigurationComponent()
: undefined
<div className="flex h-full min-h-0 flex-col">
<div className="flex min-h-0 flex-1 flex-col">
<StudyList
loadedModes={appConfig?.loadedModes ?? []}
preserveQueryParameters={preserveQueryParameters}
dataPath={dataPath}
isPreviewOpen={isPreviewOpen}
onIsPreviewOpenChange={setPreviewOpen}
defaultPreviewSizePercent={previewDefaultSize}
className="h-full w-full"
>
<StudyList.Table
columns={columns}
data={data as StudyRow[]}
sorting={sorting.length > 0 ? sorting : defaultSorting}
pagination={pagination}
filters={filters}
onSortingChange={setSorting}
onPaginationChange={setPagination}
onFiltersChange={updater => {
setIsFilterPending(true);
setFilters(updater);
}}
isLoading={showStudyListLoading}
loadingComponent={
LoadingIndicatorProgress ? (
<LoadingIndicatorProgress className="!relative bg-black" />
) : (
<div className="h-8 w-8" />
)
}
title={'Study List'}
onSelectionChange={sel => setSelected((sel as StudyRow[])[0] ?? null)}
toolbarLeftComponent={logoComponent}
toolbarRightActionsComponent={toolbarActions}
toolbarRightComponent={
!isPreviewOpen ? (
<div className="relative -top-px mt-1 ml-2 flex items-center gap-1">
<StudyListSettingsPopover />
<StudyList.OpenPreviewButton />
</div>
) : undefined
}
/>
</div>
{hasStudies ? (
<div className="flex grow flex-col">
<StudyListTable
tableDataSource={tableDataSource.slice(offset, offsetAndTake)}
numOfStudies={numOfStudies}
querying={querying}
filtersMeta={filtersMeta}
<StudyList.Preview>
<SidePanelPreview
dataSource={dataSource}
selected={selected}
servicesManager={servicesManager}
/>
<div className="grow">
<StudyListPagination
onChangePage={onPageNumberChange}
onChangePerPage={onResultsPerPageChange}
currentPage={pageNumber}
perPage={resultsPerPage}
/>
</div>
</div>
) : (
<div className="flex flex-col items-center justify-center pt-48">
{appConfig.showLoadingIndicator && isLoadingData ? (
<LoadingIndicatorProgress className={'h-full w-full bg-black'} />
) : (
<EmptyStudies />
)}
</div>
)}
</ScrollArea>
</StudyList.Preview>
</StudyList>
</div>
</div>
</div>
);
}
WorkList.propTypes = {
data: PropTypes.array.isRequired,
dataSource: PropTypes.shape({
query: PropTypes.object.isRequired,
getConfig: PropTypes.func,
}).isRequired,
isLoadingData: PropTypes.bool.isRequired,
servicesManager: PropTypes.object.isRequired,
};
const defaultFilterValues = {
patientName: '',
mrn: '',
studyDate: {
startDate: null,
endDate: null,
},
description: '',
modalities: [],
accession: '',
sortBy: '',
sortDirection: 'none',
pageNumber: 1,
resultsPerPage: 25,
datasources: '',
};
function _tryParseInt(str, defaultValue) {
let retValue = defaultValue;
if (str && str.length > 0) {
if (!isNaN(str)) {
retValue = parseInt(str);
}
}
return retValue;
}
function _getQueryFilterValues(params) {
const newParams = new URLSearchParams();
for (const [key, value] of params) {
newParams.set(key.toLowerCase(), value);
}
params = newParams;
const queryFilterValues = {
patientName: params.get('patientname'),
mrn: params.get('mrn'),
studyDate: {
startDate: params.get('startdate') || null,
endDate: params.get('enddate') || null,
},
description: params.get('description'),
modalities: params.get('modalities') ? params.get('modalities').split(',') : [],
accession: params.get('accession'),
sortBy: params.get('sortby'),
sortDirection: params.get('sortdirection'),
pageNumber: _tryParseInt(params.get('pagenumber'), undefined),
resultsPerPage: _tryParseInt(params.get('resultsperpage'), undefined),
datasources: params.get('datasources'),
configUrl: params.get('configurl'),
};
// Delete null/undefined keys
Object.keys(queryFilterValues).forEach(
key => queryFilterValues[key] == null && delete queryFilterValues[key]
);
return queryFilterValues;
}
function _sortStringDates(s1, s2, sortModifier) {
// TODO: Delimiters are non-standard. Should we support them?
const s1Date = moment(s1.date, ['YYYYMMDD', 'YYYY.MM.DD'], true);
const s2Date = moment(s2.date, ['YYYYMMDD', 'YYYY.MM.DD'], true);
if (s1Date.isValid() && s2Date.isValid()) {
return (s1Date.toISOString() > s2Date.toISOString() ? 1 : -1) * sortModifier;
} else if (s1Date.isValid()) {
return sortModifier;
} else if (s2Date.isValid()) {
return -1 * sortModifier;
}
}
export default WorkList;
@@ -1 +0,0 @@
export { default } from './WorkList';
+9 -2
View File
@@ -3,8 +3,12 @@ import { Routes, Route, Link, useNavigate } from 'react-router-dom';
import { ErrorBoundary } from '@ohif/ui-next';
// Route Components
// Study list variants are selected by the `workList.variant` customization:
// - `'legacy'` → LegacyWorkList (the pre-3.13 study list)
// - anything else (including `'default'`) → WorkList (ui-next study list)
import WorkList from './WorkList/WorkList';
import LegacyWorkList from './LegacyWorkList/LegacyWorkList';
import DataSourceWrapper from './DataSourceWrapper';
import WorkList from './WorkList';
import Local from './Local';
import Debug from './Debug';
import NotFound from './NotFound';
@@ -120,11 +124,14 @@ const createRoutes = ({
console.log('Registering worklist route', routerBasename, path);
const workListVariant = customizationService.getCustomization('workList.variant');
const WorkListComponent = workListVariant === 'legacy' ? LegacyWorkList : WorkList;
const WorkListRoute = {
path: '/',
children: DataSourceWrapper,
private: true,
props: { children: WorkList, servicesManager, extensionManager },
props: { children: WorkListComponent, servicesManager, extensionManager },
};
const customRoutes = customizationService.getCustomization('routes.customRoutes');
@@ -0,0 +1,85 @@
import { shallowEqualIgnoringArrayOrder } from './shallowEqualIgnoringArrayOrder';
describe('shallowEqualIgnoringArrayOrder', () => {
describe('null / undefined handling', () => {
it('treats two nullish values with strict equality', () => {
expect(shallowEqualIgnoringArrayOrder(null, null)).toBe(true);
expect(shallowEqualIgnoringArrayOrder(undefined, undefined)).toBe(true);
// null !== undefined
expect(shallowEqualIgnoringArrayOrder(null, undefined)).toBe(false);
});
it('returns false when only one side is nullish', () => {
expect(shallowEqualIgnoringArrayOrder(null, {})).toBe(false);
expect(shallowEqualIgnoringArrayOrder({}, null)).toBe(false);
expect(shallowEqualIgnoringArrayOrder({ a: 1 }, undefined)).toBe(false);
});
});
describe('scalar values', () => {
it('returns true for equal flat records', () => {
expect(shallowEqualIgnoringArrayOrder({ a: 1, b: 'x' }, { a: 1, b: 'x' })).toBe(true);
});
it('returns true for two empty objects', () => {
expect(shallowEqualIgnoringArrayOrder({}, {})).toBe(true);
});
it('returns false when a scalar value differs', () => {
expect(shallowEqualIgnoringArrayOrder({ a: 1 }, { a: 2 })).toBe(false);
});
it('compares scalars with strict equality (no coercion)', () => {
expect(shallowEqualIgnoringArrayOrder({ a: 1 }, { a: '1' })).toBe(false);
});
});
describe('keys present on only one side', () => {
it('returns false when one object has an extra defined key', () => {
expect(shallowEqualIgnoringArrayOrder({ a: 1 }, { a: 1, b: 2 })).toBe(false);
expect(shallowEqualIgnoringArrayOrder({ a: 1, b: 2 }, { a: 1 })).toBe(false);
});
it('treats a missing key as equal to an explicit undefined value', () => {
// b.y is absent, a.y is undefined — both read as undefined, so equal.
expect(shallowEqualIgnoringArrayOrder({ x: 1, y: undefined }, { x: 1 })).toBe(true);
});
});
describe('array values (order-insensitive)', () => {
it('treats arrays as equal regardless of element order', () => {
expect(shallowEqualIgnoringArrayOrder({ m: [1, 2, 3] }, { m: [3, 1, 2] })).toBe(true);
expect(shallowEqualIgnoringArrayOrder({ m: ['CT', 'MR'] }, { m: ['MR', 'CT'] })).toBe(true);
});
it('returns false when arrays have different lengths', () => {
expect(shallowEqualIgnoringArrayOrder({ m: [1, 2] }, { m: [1, 2, 3] })).toBe(false);
});
it('returns false when arrays of equal length have different elements', () => {
expect(shallowEqualIgnoringArrayOrder({ m: [1, 2] }, { m: [1, 3] })).toBe(false);
});
it('returns false when one value is an array and the other is not', () => {
expect(shallowEqualIgnoringArrayOrder({ m: [1] }, { m: 1 })).toBe(false);
expect(shallowEqualIgnoringArrayOrder({ m: 'CT' }, { m: ['CT'] })).toBe(false);
});
});
describe('shallow-only semantics (documented limitations)', () => {
it('compares nested objects by reference, not structurally', () => {
const shared = { nested: true };
expect(shallowEqualIgnoringArrayOrder({ o: shared }, { o: shared })).toBe(true);
// Equal-looking but distinct references are NOT considered equal.
expect(shallowEqualIgnoringArrayOrder({ o: { nested: true } }, { o: { nested: true } })).toBe(
false
);
});
it('compares arrays as sets, so differing duplicate counts can still be "equal"', () => {
// Same length and same distinct elements, but different multisets.
// The Set-based comparison cannot tell these apart.
expect(shallowEqualIgnoringArrayOrder({ m: [1, 1, 2] }, { m: [1, 2, 2] })).toBe(true);
});
});
});
@@ -0,0 +1,45 @@
/**
* Shallow equality for two flat record-shaped objects, with one twist:
* array values are compared as unordered sets (so `[1, 2]` is equal to
* `[2, 1]`). Scalar values are compared with strict `===`.
*
* Limitation: this is a *shallow* comparison. Nested objects are compared
* by reference; this function does not recurse. It is intended for flat
* records whose values are primitives or arrays of primitives.
*
* @param {object} a - First object
* @param {object} b - Second object
* @returns {boolean} True if the two are equal under the rules above.
*/
export function shallowEqualIgnoringArrayOrder(a, b): boolean {
if (!a || !b) {
return a === b;
}
const allKeys = new Set([...Object.keys(a), ...Object.keys(b)]);
for (const key of allKeys) {
const val1 = a[key];
const val2 = b[key];
if (Array.isArray(val1) && Array.isArray(val2)) {
if (val1.length !== val2.length) {
return false;
}
const s1 = new Set(val1);
const s2 = new Set(val2);
if (s1.size !== s2.size) {
return false;
}
for (const v of s2.values()) {
if (!s1.has(v)) {
return false;
}
}
} else if (val1 !== val2) {
return false;
}
}
return true;
}
@@ -0,0 +1,68 @@
import { COLUMN_IDS } from '@ohif/ui-next';
/**
* Canonical URL query keys for study-list filters, sorting, and pagination.
*
* This is the single source of truth for the URL contract documented in
* `platform/docs/docs/configuration/url.md`. WorkList's URL serializer and
* URL parser use these constants, as does
* `DataSourceWrapper._getQueryFilterValues`, so the writer and reader stay
* in lockstep.
*
* Values use the documented camelCase form (`patientName` rather than
* `patientname`), so URLs produced by the serializer render as
* `?patientName=…` and match what's documented. URL parsing is
* case-insensitive in this codebase (the readers lowercase before lookup),
* so bookmarks using any casing still work. To read a URL parameter by its
* canonical key, use `getUrlParam` below.
*/
export const URL_KEYS = {
// Filter values
patientName: 'patientName',
mrn: 'mrn',
description: 'description',
accession: 'accession',
modalities: 'modalities',
startDate: 'startDate',
endDate: 'endDate',
// Sorting + pagination
sortBy: 'sortBy',
sortDirection: 'sortDirection',
pageNumber: 'pageNumber',
resultsPerPage: 'resultsPerPage',
// Misc
dataSources: 'dataSources',
} as const;
/**
* Read a URL parameter by its canonical key, case-insensitively. Pass a
* value from `URL_KEYS`. Matches regardless of how the params were
* constructed — callers don't need to pre-lowercase keys.
*/
export function getUrlParam(params: URLSearchParams, key: string): string | null {
const target = key.toLowerCase();
for (const [k, v] of params) {
if (k.toLowerCase() === target) {
return v;
}
}
return null;
}
/**
* Column ID → canonical URL key for text-filter columns. Listed explicitly
* so adding a new text-filter column requires registering its URL key here
* — that's the whole point of centralizing the contract.
*/
const TEXT_FILTER_URL_KEYS: Record<string, string> = {
[COLUMN_IDS.PATIENT]: URL_KEYS.patientName,
[COLUMN_IDS.MRN]: URL_KEYS.mrn,
[COLUMN_IDS.DESCRIPTION]: URL_KEYS.description,
[COLUMN_IDS.ACCESSION]: URL_KEYS.accession,
};
export function urlKeyForTextFilter(columnId: string): string {
return TEXT_FILTER_URL_KEYS[columnId] ?? columnId.toLowerCase();
}
+32
View File
@@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.13.0-beta.85](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.84...v3.13.0-beta.85) (2026-05-28)
**Note:** Version bump only for package @ohif/cli
# [3.13.0-beta.84](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.83...v3.13.0-beta.84) (2026-05-27)
**Note:** Version bump only for package @ohif/cli
# [3.13.0-beta.83](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.82...v3.13.0-beta.83) (2026-05-26)
**Note:** Version bump only for package @ohif/cli
# [3.13.0-beta.82](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.81...v3.13.0-beta.82) (2026-05-22)
**Note:** Version bump only for package @ohif/cli
# [3.13.0-beta.81](https://github.com/OHIF/Viewers/compare/v3.13.0-beta.80...v3.13.0-beta.81) (2026-05-21)
**Note:** Version bump only for package @ohif/cli
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/cli",
"version": "3.13.0-beta.81",
"version": "3.13.0-beta.85",
"description": "A CLI to bootstrap new OHIF extension or mode",
"type": "module",
"main": "src/index.js",
Loaded 100 of 194 files, more files were not shown because too many files have changed in this diff. Show more