Compare commits

..
Author SHA1 Message Date
ohif-bot be6f3db1ce chore(version): Update package versions [skip ci] 2025-10-17 00:07:14 +00:00
ohif-bot c41dbc8236 chore(version): version.json [skip ci] 2025-10-17 00:07:08 +00:00
53694da216 [Ready] fix 5288 removal of accept header options in retrieve metadata (#5293)
* chore: Minor adjustment to generateAcceptHeader function signature to reflect expected return type.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* fix: Added switch to skip the Accept header generation when requesting metadata. WADO metadata request is more likely to return JSON and some VNAs do not like the extra options in the Accept header. Also, passing an empty array is not sufficient because somewhere we still include a comma that breaks the Accept header. It's better to omit it for the metadata request only.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Added new HeadersInterface interface type docstrings.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Refactored getAuthorizationHeader() function signature so it is typed checked. Of course, I upgraded the module to a TypeScript module.
Moved the request header interfaces into its own TypeScript module (RequestHeaders.ts) in the core types.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Refactored the user logic to include a TypeScript interface. As a result, upgraded the source file to TypeScript.
Removed the User interface from RequestHeaders module and moved them to the user module.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Updated function signatures, user import, and confirmed unit tests are passing.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Minor stylistic adjustment to getAuthorizationHeader.test.ts

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Added missing comments.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore adjusted generateWadoHeader parameter's name and added comment about the expected default header.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* Just tweaking the interface a bit to be more consistent.

* fix authorization header signature change

---------

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>
Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
Co-authored-by: Alireza <ar.sedghi@gmail.com>
2025-10-16 20:01:34 -04:00
ohif-bot 9d68b6ef31 chore(version): Update package versions [skip ci] 2025-10-15 14:51:20 +00:00
ohif-bot 2300c70314 chore(version): version.json [skip ci] 2025-10-15 14:51:13 +00:00
Joe Boccanfuso 86e924fb88 fix(docker): Use bun version 1.2.23 for docker build. (#5501) 2025-10-15 10:46:47 -04:00
ohif-bot e988216b2b chore(version): Update package versions [skip ci] 2025-10-15 13:40:22 +00:00
ohif-bot 23c8fdca00 chore(version): version.json [skip ci] 2025-10-15 13:40:14 +00:00
Devu-trenser faea09e7ef fix: Segmentation not displayed and unable to draw segments in volume viewport after converting Labelmap to Surface (#5488)
* fix: unable to draw segment after 3d layout

* comment update

---------
2025-10-15 09:35:26 -04:00
81 changed files with 1108 additions and 226 deletions

No files matched your search

+30
View File
@@ -3,6 +3,36 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package ohif-monorepo-root
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
### Bug Fixes
* **docker:** Use bun version 1.2.23 for docker build. ([#5501](https://github.com/OHIF/Viewers/issues/5501)) ([86e924f](https://github.com/OHIF/Viewers/commit/86e924fb88cc146f91c7d826ee071e451de47942))
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
### Bug Fixes
* Segmentation not displayed and unable to draw segments in volume viewport after converting Labelmap to Surface ([#5488](https://github.com/OHIF/Viewers/issues/5488)) ([faea09e](https://github.com/OHIF/Viewers/commit/faea09e7ef2667aad5cef1efc2a6516677ca2915))
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
+1 -1
View File
@@ -49,7 +49,7 @@ RUN apt-get update && apt-get install -y build-essential python3
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
RUN npm install -g bun
RUN npm install -g bun@1.2.23
RUN npm install -g lerna@7.4.2
ENV PATH=/usr/src/app/node_modules/.bin:$PATH
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @externals/devDependencies
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @externals/devDependencies
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @externals/devDependencies
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**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.12.0-beta.62",
"version": "3.12.0-beta.65",
"license": "MIT",
"private": true,
"engines": {
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @externals/dicom-microscopy-viewer
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**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.12.0-beta.62",
"version": "3.12.0-beta.65",
"license": "MIT",
"dependencies": {
"dicom-microscopy-viewer": "0.48.6"
+1 -1
View File
@@ -1 +1 @@
3137aed0170196a61e16c6dac0c15bcc41691919
53694da2164809573a2f96eb8b7d870454bae39c
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-pmap
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-pmap",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "DICOM Parametric Map read workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/i18n": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/i18n": "3.12.0-beta.65",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-rt
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**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.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "DICOM RT read workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/i18n": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/i18n": "3.12.0-beta.65",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-seg
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-seg",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "DICOM SEG read workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,10 +33,10 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/i18n": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/i18n": "3.12.0-beta.65",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dicom-sr
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dicom-sr",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-measurement-tracking": "3.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-measurement-tracking": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"dcmjs": "0.43.1",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone-dynamic-volume
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone-dynamic-volume",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/i18n": "3.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/i18n": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"dcmjs": "0.43.1",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
+27
View File
@@ -3,6 +3,33 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-cornerstone
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-cornerstone
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
### Bug Fixes
* Segmentation not displayed and unable to draw segments in volume viewport after converting Labelmap to Surface ([#5488](https://github.com/OHIF/Viewers/issues/5488)) ([faea09e](https://github.com/OHIF/Viewers/commit/faea09e7ef2667aad5cef1efc2a6516677ca2915))
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "OHIF extension for Cornerstone",
"author": "OHIF",
"license": "MIT",
@@ -41,8 +41,8 @@
"@cornerstonejs/codec-openjpeg": "1.2.4",
"@cornerstonejs/codec-openjph": "2.4.7",
"@cornerstonejs/dicom-image-loader": "4.5.5",
"@ohif/core": "3.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"dcmjs": "0.43.1",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -65,13 +65,11 @@ const segmentationRepresentationModifiedCallback = async (
return;
}
// whatever type the source viewport has, we need to add that to the target viewport
const sourceViewportRepresentation = segmentationService.getSegmentationRepresentations(
sourceViewport.viewportId,
{ segmentationId }
);
const type = sourceViewportRepresentation[0].type;
// Ensure the segmentation representation aligns with the target viewport type.
const type: Enums.SegmentationRepresentations =
viewport.type === CoreEnums.ViewportType.VOLUME_3D
? Enums.SegmentationRepresentations.Surface
: Enums.SegmentationRepresentations.Labelmap;
await segmentationService.addSegmentationRepresentation(targetViewportId, {
segmentationId,
@@ -1336,17 +1336,12 @@ class CornerstoneViewportService extends PubSubService implements IViewportServi
const { segmentationId, type, hydrated } = presentationItem;
const { Labelmap, Surface } = csToolsEnums.SegmentationRepresentations;
const representationType = (() => {
if (type === Surface) {
if (viewport.type === csEnums.ViewportType.VOLUME_3D) {
return Surface;
} else {
return Labelmap;
}
}
const isVolume3D = viewport.type === csEnums.ViewportType.VOLUME_3D;
return type;
})();
// Determine the appropriate segmentation representation for the viewport.
// If the current type is Surface but the viewport is not 3D, fallback to Labelmap.
// Otherwise, use the existing type.
const representationType = type === Surface && !isVolume3D ? Labelmap : type;
if (hydrated) {
segmentationService.addSegmentationRepresentation(viewport.id, {
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-default
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-default
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-default
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-default
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-default",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/i18n": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/i18n": "3.12.0-beta.65",
"dcmjs": "0.43.1",
"dicomweb-client": "0.10.4",
"prop-types": "15.8.1",
@@ -16,6 +16,7 @@ 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';
const { DicomMetaDictionary, DicomDict } = dcmjs.data;
@@ -97,6 +98,20 @@ 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.
*/
export interface HeaderOptions {
includeTransferSyntax?: boolean;
}
/**
* Metadata and some other requests don't permit the transfer syntax to be included,
* so pass in the excludeTransferSyntax parameter.
*/
export const excludeTransferSyntax: HeaderOptions = { includeTransferSyntax: false };
/**
* Creates a DICOM Web API based on the provided configuration.
*
@@ -128,7 +143,7 @@ function createDicomWebApi(dicomWebConfig: DicomWebConfig, servicesManager) {
dicomWebConfigCopy = JSON.parse(JSON.stringify(dicomWebConfig));
getAuthorizationHeader = () => {
const xhrRequestHeaders = {};
const xhrRequestHeaders: HeadersInterface = {};
const authHeaders = userAuthenticationService.getAuthorizationHeader();
if (authHeaders && authHeaders.Authorization) {
xhrRequestHeaders.Authorization = authHeaders.Authorization;
@@ -136,19 +151,33 @@ function createDicomWebApi(dicomWebConfig: DicomWebConfig, servicesManager) {
return xhrRequestHeaders;
};
generateWadoHeader = () => {
/**
* Generates the wado header for requesting resources from DICOMweb.
* These are classified into those that are dependent on the transfer syntax
* and those that aren't, as defined by the include transfer syntax attribute.
*/
generateWadoHeader = (options: HeaderOptions): HeadersInterface => {
const authorizationHeader = getAuthorizationHeader();
//Generate accept header depending on config params
const formattedAcceptHeader = utils.generateAcceptHeader(
dicomWebConfig.acceptHeader,
dicomWebConfig.requestTransferSyntaxUID,
dicomWebConfig.omitQuotationForMultipartRequest
);
return {
...authorizationHeader,
Accept: formattedAcceptHeader,
};
if (options?.includeTransferSyntax!==false) {
//Generate accept header depending on config params
const formattedAcceptHeader = utils.generateAcceptHeader(
dicomWebConfig.acceptHeader,
dicomWebConfig.requestTransferSyntaxUID,
dicomWebConfig.omitQuotationForMultipartRequest
);
return {
...authorizationHeader,
Accept: formattedAcceptHeader,
};
} else {
// The base header will be included in the request. We simply skip customization options around
// transfer syntaxes and whether the request is multipart. In other words, a request in
// which the server expects Accept: application/dicom+json will still include that in the
// header.
return {
...authorizationHeader
};
}
};
qidoConfig = {
@@ -410,7 +439,7 @@ function createDicomWebApi(dicomWebConfig: DicomWebConfig, servicesManager) {
madeInClient
) => {
const enableStudyLazyLoad = false;
wadoDicomWebClient.headers = generateWadoHeader();
wadoDicomWebClient.headers = generateWadoHeader(excludeTransferSyntax);
// data is all SOPInstanceUIDs
const data = await retrieveStudyMetadata(
wadoDicomWebClient,
@@ -484,7 +513,7 @@ function createDicomWebApi(dicomWebConfig: DicomWebConfig, servicesManager) {
returnPromises = false
) => {
const enableStudyLazyLoad = true;
wadoDicomWebClient.headers = generateWadoHeader();
wadoDicomWebClient.headers = generateWadoHeader(excludeTransferSyntax);
// Get Series
const { preLoadData: seriesSummaryMetadata, promises: seriesPromises } =
await retrieveStudyMetadata(
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**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.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/i18n": "3.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/i18n": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**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.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"dcmjs": "0.43.1",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-dicom-video
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**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.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"dcmjs": "0.43.1",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-measurement-tracking
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-measurement-tracking",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "Tracking features and functionality for basic image viewing",
"author": "OHIF Core Team",
"license": "MIT",
@@ -34,10 +34,10 @@
"peerDependencies": {
"@cornerstonejs/core": "4.5.5",
"@cornerstonejs/tools": "4.5.5",
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"classnames": "2.5.1",
"dcmjs": "0.43.1",
"lodash.debounce": "4.0.8",
@@ -49,7 +49,7 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.65",
"@xstate/react": "3.2.2",
"xstate": "4.38.3"
}
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-test
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-test
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-test
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-test
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-test",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"dcmjs": "0.43.1",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-tmtv
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-tmtv
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-tmtv",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"dcmjs": "0.43.1",
"dicom-parser": "1.8.21",
"hammerjs": "2.0.8",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/extension-ultrasound-pleura-bline
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-ultrasound-pleura-bline
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-ultrasound-pleura-bline
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/extension-ultrasound-pleura-bline
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-ultrasound-pleura-bline",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "",
"author": "Rodrigo Basilio",
"license": "MIT",
@@ -44,11 +44,11 @@
"@babel/runtime": "7.28.2",
"@cornerstonejs/core": "4.5.5",
"@cornerstonejs/tools": "4.5.5",
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/i18n": "3.12.0-beta.62",
"@ohif/ui-next": "3.12.0-beta.62"
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/i18n": "3.12.0-beta.65",
"@ohif/ui-next": "3.12.0-beta.65"
},
"devDependencies": {
"@babel/core": "7.28.0",
+1 -1
View File
@@ -1,5 +1,5 @@
{
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"packages": ["extensions/*", "platform/*", "modes/*", "addOns/externals/*"],
"npmClient": "yarn"
}
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-basic-dev-mode
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**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.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/extension-dicom-pdf": "3.12.0-beta.62",
"@ohif/extension-dicom-video": "3.12.0-beta.62"
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/extension-dicom-pdf": "3.12.0-beta.65",
"@ohif/extension-dicom-video": "3.12.0-beta.65"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/mode-test
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-test
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-test
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-test
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-test",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/extension-dicom-pdf": "3.12.0-beta.62",
"@ohif/extension-dicom-video": "3.12.0-beta.62",
"@ohif/extension-measurement-tracking": "3.12.0-beta.62",
"@ohif/extension-test": "3.12.0-beta.62"
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/extension-dicom-pdf": "3.12.0-beta.65",
"@ohif/extension-dicom-video": "3.12.0-beta.65",
"@ohif/extension-measurement-tracking": "3.12.0-beta.65",
"@ohif/extension-test": "3.12.0-beta.65"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/mode-basic
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-basic
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-basic
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-basic
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-basic",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-rt": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/extension-dicom-pdf": "3.12.0-beta.62",
"@ohif/extension-dicom-video": "3.12.0-beta.62"
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-rt": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/extension-dicom-pdf": "3.12.0-beta.65",
"@ohif/extension-dicom-video": "3.12.0-beta.65"
},
"dependencies": {
"@babel/runtime": "7.28.2"
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-longitudinal
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-longitudinal
+10 -10
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-longitudinal",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "Longitudinal Workflow",
"author": "OHIF",
"license": "MIT",
@@ -34,15 +34,15 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-rt": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/extension-dicom-pdf": "3.12.0-beta.62",
"@ohif/extension-dicom-video": "3.12.0-beta.62",
"@ohif/extension-measurement-tracking": "3.12.0-beta.62"
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-rt": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/extension-dicom-pdf": "3.12.0-beta.65",
"@ohif/extension-dicom-video": "3.12.0-beta.65",
"@ohif/extension-measurement-tracking": "3.12.0-beta.65"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-microscopy
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-microscopy
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-microscopy",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/extension-dicom-microscopy": "3.12.0-beta.62"
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-dicom-microscopy": "3.12.0-beta.65"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-preclinical-4d
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**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.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "4D Workflow",
"author": "OHIF",
"license": "MIT",
@@ -33,12 +33,12 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dynamic-volume": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/extension-tmtv": "3.12.0-beta.62"
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dynamic-volume": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/extension-tmtv": "3.12.0-beta.65"
},
"dependencies": {
"@babel/runtime": "7.28.2"
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-segmentation
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-segmentation
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-segmentation",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "OHIF segmentation mode which enables labelmap segmentation read/edit/export",
"author": "@ohif",
"license": "MIT",
@@ -35,14 +35,14 @@
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
},
"peerDependencies": {
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-rt": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/extension-dicom-pdf": "3.12.0-beta.62",
"@ohif/extension-dicom-video": "3.12.0-beta.62"
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-rt": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/extension-dicom-pdf": "3.12.0-beta.65",
"@ohif/extension-dicom-video": "3.12.0-beta.65"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-tmtv
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-tmtv
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-tmtv",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"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.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/extension-dicom-pdf": "3.12.0-beta.62",
"@ohif/extension-dicom-video": "3.12.0-beta.62",
"@ohif/extension-measurement-tracking": "3.12.0-beta.62"
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/extension-dicom-pdf": "3.12.0-beta.65",
"@ohif/extension-dicom-video": "3.12.0-beta.65",
"@ohif/extension-measurement-tracking": "3.12.0-beta.65"
},
"dependencies": {
"@babel/runtime": "7.28.2",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/mode-ultrasound-pleura-bline
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-ultrasound-pleura-bline
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-ultrasound-pleura-bline
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/mode-ultrasound-pleura-bline
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/mode-ultrasound-pleura-bline",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "Allows users to annotate ultrasound images with pleura B-line annotations.",
"author": "OHIF",
"license": "MIT",
@@ -36,9 +36,9 @@
"@babel/runtime": "7.28.2",
"@cornerstonejs/core": "4.5.5",
"@cornerstonejs/tools": "4.5.5",
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.62",
"@ohif/extension-ultrasound-pleura-bline": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.65",
"@ohif/extension-ultrasound-pleura-bline": "3.12.0-beta.65",
"i18next": "17.3.1"
},
"devDependencies": {
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/app
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/app
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/app
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/app
+20 -20
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/app",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"productVersion": "3.4.0",
"description": "OHIF Viewer",
"author": "OHIF Contributors",
@@ -55,25 +55,25 @@
"@cornerstonejs/codec-openjph": "2.4.7",
"@cornerstonejs/dicom-image-loader": "4.5.5",
"@emotion/serialize": "1.3.3",
"@ohif/core": "3.12.0-beta.62",
"@ohif/extension-cornerstone": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-rt": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.62",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.62",
"@ohif/extension-default": "3.12.0-beta.62",
"@ohif/extension-dicom-microscopy": "3.12.0-beta.62",
"@ohif/extension-dicom-pdf": "3.12.0-beta.62",
"@ohif/extension-dicom-video": "3.12.0-beta.62",
"@ohif/extension-test": "3.12.0-beta.62",
"@ohif/extension-ultrasound-pleura-bline": "3.12.0-beta.62",
"@ohif/i18n": "3.12.0-beta.62",
"@ohif/mode-basic-dev-mode": "3.12.0-beta.62",
"@ohif/mode-longitudinal": "3.12.0-beta.62",
"@ohif/mode-microscopy": "3.12.0-beta.62",
"@ohif/mode-test": "3.12.0-beta.62",
"@ohif/mode-ultrasound-pleura-bline": "3.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/ui-next": "3.12.0-beta.62",
"@ohif/core": "3.12.0-beta.65",
"@ohif/extension-cornerstone": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-rt": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-seg": "3.12.0-beta.65",
"@ohif/extension-cornerstone-dicom-sr": "3.12.0-beta.65",
"@ohif/extension-default": "3.12.0-beta.65",
"@ohif/extension-dicom-microscopy": "3.12.0-beta.65",
"@ohif/extension-dicom-pdf": "3.12.0-beta.65",
"@ohif/extension-dicom-video": "3.12.0-beta.65",
"@ohif/extension-test": "3.12.0-beta.65",
"@ohif/extension-ultrasound-pleura-bline": "3.12.0-beta.65",
"@ohif/i18n": "3.12.0-beta.65",
"@ohif/mode-basic-dev-mode": "3.12.0-beta.65",
"@ohif/mode-longitudinal": "3.12.0-beta.65",
"@ohif/mode-microscopy": "3.12.0-beta.65",
"@ohif/mode-test": "3.12.0-beta.65",
"@ohif/mode-ultrasound-pleura-bline": "3.12.0-beta.65",
"@ohif/ui": "3.12.0-beta.65",
"@ohif/ui-next": "3.12.0-beta.65",
"@svgr/webpack": "8.1.0",
"@types/react": "18.3.23",
"classnames": "2.5.1",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/cli
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/cli
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/cli
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/cli
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/cli",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "A CLI to bootstrap new OHIF extension or mode",
"type": "module",
"main": "src/index.js",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/core
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/core
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/core
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/core
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/core",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "Generic business logic for web-based medical imaging applications",
"author": "OHIF Core Team",
"license": "MIT",
@@ -39,7 +39,7 @@
"@cornerstonejs/codec-openjph": "2.4.7",
"@cornerstonejs/core": "4.5.5",
"@cornerstonejs/dicom-image-loader": "4.5.5",
"@ohif/ui": "3.12.0-beta.62",
"@ohif/ui": "3.12.0-beta.65",
"cornerstone-math": "0.1.9",
"dicom-parser": "1.8.21"
},
@@ -1,7 +1,8 @@
import getAuthorizationHeader from './getAuthorizationHeader';
import user from './../user';
import { HeadersInterface, RequestOptions } from '../types/RequestHeaders';
jest.mock('./../user.js');
jest.mock('../user');
describe('getAuthorizationHeader', () => {
it('should return a HTTP Basic Auth when server contains requestOptions.auth', () => {
@@ -15,7 +16,7 @@ describe('getAuthorizationHeader', () => {
Authorization: `Basic ${btoa(validServer.requestOptions.auth)}`,
};
const authentication = getAuthorizationHeader(validServer);
const authentication: HeadersInterface = getAuthorizationHeader(validServer);
expect(authentication).toEqual(expectedAuthorizationHeader);
});
@@ -31,13 +32,13 @@ describe('getAuthorizationHeader', () => {
Authorization: `Basic ${btoa(validServerWithoutPassword.requestOptions.auth)}`,
};
const authentication = getAuthorizationHeader(validServerWithoutPassword);
const authentication: HeadersInterface = getAuthorizationHeader(validServerWithoutPassword);
expect(authentication).toEqual(expectedAuthorizationHeader);
});
it('should return a HTTP Basic Auth when server contains requestOptions.auth custom function', () => {
const validServerCustomAuth = {
const validServerCustomAuth: RequestOptions = {
requestOptions: {
auth: options => `Basic ${options.token}`,
token: 'ZHVtbXlfdXNlcjpkdW1teV9wYXNzd29yZA==',
@@ -48,13 +49,13 @@ describe('getAuthorizationHeader', () => {
Authorization: `Basic ${validServerCustomAuth.requestOptions.token}`,
};
const authentication = getAuthorizationHeader(validServerCustomAuth);
const authentication: HeadersInterface = getAuthorizationHeader(validServerCustomAuth);
expect(authentication).toEqual(expectedAuthorizationHeader);
});
it('should return an empty object when there is no either server.requestOptions.auth or accessToken', () => {
const authentication = getAuthorizationHeader({});
const authentication: HeadersInterface = getAuthorizationHeader({});
expect(authentication).toEqual({});
});
@@ -62,7 +63,7 @@ describe('getAuthorizationHeader', () => {
it('should return an Authorization with accessToken when server is not defined and there is an accessToken', () => {
user.getAccessToken.mockImplementationOnce(() => 'MOCKED_TOKEN');
const authentication = getAuthorizationHeader({}, user);
const authentication: HeadersInterface = getAuthorizationHeader({}, user);
const expectedHeaderBasedOnUserAccessToken = {
Authorization: 'Bearer MOCKED_TOKEN',
};
@@ -1,23 +1,29 @@
import 'isomorphic-base64';
import user from '../user';
import {UserAccountInterface} from '../user';
import { HeadersInterface, RequestOptions } from '../types/RequestHeaders';
/**
* Returns the Authorization header as part of an Object.
*
* @export
* @param {Object} [server={}]
* @param {Object} [server.requestOptions]
* @param {string|function} [server.requestOptions.auth]
* @param {Object} [requestOptions]
* @param {string|function} [requestOptions.auth]
* @param {Object} [user]
* @param {function} [user.getAccessToken]
* @returns {Object} { Authorization }
*/
export default function getAuthorizationHeader({ requestOptions } = {}, user) {
const headers = {};
export default function getAuthorizationHeader(
{requestOptions}: RequestOptions = {},
user: UserAccountInterface = {}): HeadersInterface
{
const headers: HeadersInterface = {};
// Check for OHIF.user since this can also be run on the server
const accessToken = user && user.getAccessToken && user.getAccessToken();
// Auth for a specific server
if (requestOptions && requestOptions.auth) {
if (requestOptions?.auth) {
if (typeof requestOptions.auth === 'function') {
// Custom Auth Header
headers.Authorization = requestOptions.auth(requestOptions);
@@ -25,9 +31,8 @@ export default function getAuthorizationHeader({ requestOptions } = {}, user) {
// HTTP Basic Auth (user:password)
headers.Authorization = `Basic ${btoa(requestOptions.auth)}`;
}
}
// Auth for the user's default
else if (accessToken) {
} else if (accessToken) {
// Auth for the user's default
headers.Authorization = `Bearer ${accessToken}`;
}
+1 -1
View File
@@ -1,5 +1,5 @@
import getAttribute from './getAttribute.js';
import getAuthorizationHeader from './getAuthorizationHeader.js';
import getAuthorizationHeader from './getAuthorizationHeader';
import getModalities from './getModalities.js';
import getName from './getName.js';
import getNumber from './getNumber.js';
+1 -1
View File
@@ -9,7 +9,7 @@ import errorHandler from './errorHandler.js';
import log from './log.js';
import object from './object.js';
import string from './string.js';
import user from './user.js';
import user from './user';
import utils from './utils';
import defaults from './defaults';
import * as Types from './types';
+35
View File
@@ -0,0 +1,35 @@
/**
* Interface to clearly present the expected fields to linters when building a request header.
*/
export interface HeadersInterface {
/**
* Request Accept options. For example,
* `['multipart/related; type=application/octet-stream; transfer-syntax=1.2.840.10008.1.2.1.99',]`.
*
* Defines to the server the formats it can use to deliver data to us.
*/
Accept?: string[];
/**
* Request Authorization field. It can be overridden with the `requestOptions.auth` config item.
* Contains the authorization credentials or tokens necessary to authorize the request with the
* server.
*/
Authorization?: string;
}
/**
* Interface to clearly present the expected fields to linters when passing the configuration's
* requestOptions struct.
*/
export interface RequestOptions {
requestOptions?: {
/**
* Authentication options to include. Can be a function.
*/
auth?: Function | string;
/**
* Authentication token. Satisfies the test requirement?
*/
token?: string;
}
}
-13
View File
@@ -1,13 +0,0 @@
// These should be overridden by the implementation
let user = {
userLoggedIn: () => false,
getUserId: () => null,
getName: () => null,
getAccessToken: () => null,
login: () => new Promise((resolve, reject) => reject()),
logout: () => new Promise((resolve, reject) => reject()),
getData: key => null,
setData: (key, value) => null,
};
export default user;
+31
View File
@@ -0,0 +1,31 @@
/**
* Global user information, to be replaced with a specific version which
* applies the methods.
*/
export let user = {
userLoggedIn: (): boolean => false,
getUserId: () => null,
getName: () => null,
getAccessToken: () => null,
login: () => new Promise((resolve, reject) => reject()),
logout: () => new Promise((resolve, reject) => reject()),
getData: key => null,
setData: (key, value) => null,
};
/**
* Interface to clearly present the expected fields to linters when passing the user account
* struct.
*/
export interface UserAccountInterface {
userLoggedIn?: () => boolean;
getUserId?: () => null;
getName?: () => null;
getAccessToken?: () => null;
login?: () => Promise<any>;
logout?: () => Promise<any>;
getData?: (key: any) => null;
setData?: (key: any, value: any) => null;
}
export default user;
@@ -1,5 +1,5 @@
const generateAcceptHeader = (
configAcceptHeader = [],
configAcceptHeader: string[] = [],
requestTransferSyntaxUID = '*', //default to accept all transfer syntax
omitQuotationForMultipartRequest = false
): string[] => {
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package ohif-docs
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package ohif-docs
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package ohif-docs
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package ohif-docs
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ohif-docs",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/i18n
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/i18n
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/i18n
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/i18n
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/i18n",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "Internationalization library for The OHIF Viewer",
"author": "OHIF",
"license": "MIT",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/ui-next
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/ui-next
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/ui-next
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/ui-next
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/ui-next",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "Next version of OHIF Viewers UI, more customizable using shadcn/ui",
"main": "dist/ohif-ui-next.umd.js",
"module": "src/index.ts",
+24
View File
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [3.12.0-beta.65](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.64...v3.12.0-beta.65) (2025-10-17)
**Note:** Version bump only for package @ohif/ui
# [3.12.0-beta.64](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.63...v3.12.0-beta.64) (2025-10-15)
**Note:** Version bump only for package @ohif/ui
# [3.12.0-beta.63](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.62...v3.12.0-beta.63) (2025-10-15)
**Note:** Version bump only for package @ohif/ui
# [3.12.0-beta.62](https://github.com/OHIF/Viewers/compare/v3.12.0-beta.61...v3.12.0-beta.62) (2025-10-15)
**Note:** Version bump only for package @ohif/ui
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@ohif/ui",
"version": "3.12.0-beta.62",
"version": "3.12.0-beta.65",
"description": "A set of React components for Medical Imaging Viewers",
"author": "OHIF Contributors",
"license": "MIT",
+2 -2
View File
@@ -1,4 +1,4 @@
{
"version": "3.12.0-beta.62",
"commit": "3137aed0170196a61e16c6dac0c15bcc41691919"
"version": "3.12.0-beta.65",
"commit": "53694da2164809573a2f96eb8b7d870454bae39c"
}
+1 -1
View File
@@ -1 +1 @@
3.12.0-beta.62
3.12.0-beta.65