@cornerstonejs/ai 5.1.3 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { getEnabledElementByViewportId } from '@cornerstonejs/core';
2
2
  import { LabelmapBaseTool } from '@cornerstonejs/tools';
3
- import ONNXSegmentationController from './ONNXSegmentationController';
3
+ import ONNXSegmentationController from './ONNXSegmentationController.js';
4
4
  class LabelmapSlicePropagationTool extends LabelmapBaseTool {
5
5
  constructor(toolProps = {}, defaultToolProps = {
6
6
  supportedInteractionTypes: ['Mouse', 'Touch'],
@@ -1,6 +1,6 @@
1
1
  import { getEnabledElementByViewportId } from '@cornerstonejs/core';
2
2
  import { LabelmapBaseTool, ToolGroupManager, annotation, ProbeTool, addTool, } from '@cornerstonejs/tools';
3
- import ONNXSegmentationController from './ONNXSegmentationController';
3
+ import ONNXSegmentationController from './ONNXSegmentationController.js';
4
4
  class MarkerLabelmapTool extends LabelmapBaseTool {
5
5
  constructor(toolProps = {}, defaultToolProps = {
6
6
  supportedInteractionTypes: ['Mouse', 'Touch'],
@@ -1,7 +1,7 @@
1
1
  import { utilities, eventTarget, Enums, triggerEvent, cache, } from '@cornerstonejs/core';
2
2
  import * as cornerstoneTools from '@cornerstonejs/tools';
3
3
  import { segmentation as cstSegmentation, LabelmapBaseTool, } from '@cornerstonejs/tools';
4
- import { Events as aiEvents } from './enums';
4
+ import { Events as aiEvents } from './enums/index.js';
5
5
  const { strategies } = cstSegmentation;
6
6
  const { fillInsideCircle } = strategies;
7
7
  import ort from 'onnxruntime-web/webgpu';
@@ -1,2 +1,2 @@
1
- import Events from './Events';
1
+ import Events from './Events.js';
2
2
  export { Events };
@@ -1,2 +1,2 @@
1
- import Events from './Events';
1
+ import Events from './Events.js';
2
2
  export { Events };
@@ -1,5 +1,5 @@
1
- import ONNXSegmentationController from './ONNXSegmentationController';
2
- import LabelmapSlicePropagationTool from './LabelmapSlicePropagationTool';
3
- import MarkerLabelmapTool from './MarkerLabelmapTool';
4
- import { Events } from './enums';
1
+ import ONNXSegmentationController from './ONNXSegmentationController.js';
2
+ import LabelmapSlicePropagationTool from './LabelmapSlicePropagationTool.js';
3
+ import MarkerLabelmapTool from './MarkerLabelmapTool.js';
4
+ import { Events } from './enums/index.js';
5
5
  export { ONNXSegmentationController, LabelmapSlicePropagationTool, MarkerLabelmapTool, Events, };
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import ONNXSegmentationController from './ONNXSegmentationController';
2
- import LabelmapSlicePropagationTool from './LabelmapSlicePropagationTool';
3
- import MarkerLabelmapTool from './MarkerLabelmapTool';
4
- import { Events } from './enums';
1
+ import ONNXSegmentationController from './ONNXSegmentationController.js';
2
+ import LabelmapSlicePropagationTool from './LabelmapSlicePropagationTool.js';
3
+ import MarkerLabelmapTool from './MarkerLabelmapTool.js';
4
+ import { Events } from './enums/index.js';
5
5
  export { ONNXSegmentationController, LabelmapSlicePropagationTool, MarkerLabelmapTool, Events, };
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1 +1 @@
1
- export declare const version = "5.1.3";
1
+ export declare const version = "5.2.0";
@@ -1 +1 @@
1
- export const version = '5.1.3';
1
+ export const version = '5.2.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/ai",
3
- "version": "5.1.3",
3
+ "version": "5.2.0",
4
4
  "description": "AI and ML Interfaces for Cornerstone3D",
5
5
  "files": [
6
6
  "dist"
@@ -12,14 +12,16 @@
12
12
  },
13
13
  "exports": {
14
14
  ".": {
15
+ "types": "./dist/esm/index.d.ts",
15
16
  "import": "./dist/esm/index.js",
16
- "types": "./dist/esm/index.d.ts"
17
+ "default": "./dist/esm/index.js"
17
18
  },
18
19
  "./version": {
19
- "node": "./dist/esm/version.js",
20
+ "types": "./dist/esm/version.d.ts",
20
21
  "import": "./dist/esm/version.js",
21
- "types": "./dist/esm/version.d.ts"
22
- }
22
+ "default": "./dist/esm/version.js"
23
+ },
24
+ "./package.json": "./package.json"
23
25
  },
24
26
  "publishConfig": {
25
27
  "access": "public"
@@ -30,8 +32,8 @@
30
32
  "clean": "rm -rf node_modules/.cache/storybook && shx rm -rf dist",
31
33
  "clean:deep": "pnpm run clean && shx rm -rf node_modules",
32
34
  "build": "pnpm run build:esm",
33
- "build:esm": "pnpm run prebuild && tsc --project ./tsconfig.json",
34
- "build:esm:watch": "tsc --project ./tsconfig.json --watch",
35
+ "build:esm": "pnpm run prebuild && tsc --project ./tsconfig.json && tsc-alias -p ./tsconfig.json --resolve-full-paths && node ../../scripts/write-dist-esm-package-json.js ./",
36
+ "build:esm:watch": "sh -c 'tsc-alias -p ./tsconfig.json --resolve-full-paths --watch & alias_pid=$!; node ../../scripts/write-dist-esm-package-json.js ./ --watch & writer_pid=$!; trap \"kill $alias_pid $writer_pid\" EXIT; tsc --project ./tsconfig.json --watch'",
35
37
  "dev": "tsc --project ./tsconfig.json --watch",
36
38
  "build:all": "pnpm run build:esm",
37
39
  "start": "tsc --project ./tsconfig.json --watch",
@@ -61,12 +63,12 @@
61
63
  "onnxruntime-web": "1.17.1"
62
64
  },
63
65
  "devDependencies": {
64
- "@cornerstonejs/core": "5.1.3",
65
- "@cornerstonejs/tools": "5.1.3"
66
+ "@cornerstonejs/core": "5.2.0",
67
+ "@cornerstonejs/tools": "5.2.0"
66
68
  },
67
69
  "peerDependencies": {
68
- "@cornerstonejs/core": "5.1.3",
69
- "@cornerstonejs/tools": "5.1.3"
70
+ "@cornerstonejs/core": "5.2.0",
71
+ "@cornerstonejs/tools": "5.2.0"
70
72
  },
71
- "gitHead": "e3694f1ab70dc631b251985c54364e65a5e90ea6"
73
+ "gitHead": "e3f8b2ba29ee50d4a7039e3f1e7e7fb49db58130"
72
74
  }