Skip to content

Commit 39922b8

Browse files
committed
fix: exports mapping and update dependencies
1 parent 85d5187 commit 39922b8

13 files changed

Lines changed: 728 additions & 877 deletions

File tree

package-lock.json

Lines changed: 689 additions & 839 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"version": "1.1.0",
55
"license": "MIT",
66
"type": "module",
7-
"exports": "./lib/component/main/index.js",
7+
"exports": {
8+
".": "./lib/component/main/index.js"
9+
},
810
"files": [
911
"lib",
1012
"src"
@@ -66,7 +68,7 @@
6668
"@zakodium/nmr-types": "^0.1.0",
6769
"@zakodium/nmrium-core": "^0.1.5",
6870
"@zakodium/nmrium-core-plugins": "^0.1.8",
69-
"@zip.js/zip.js": "^2.7.71",
71+
"@zip.js/zip.js": "^2.7.72",
7072
"cheminfo-font": "^1.13.1",
7173
"cheminfo-types": "^1.8.1",
7274
"clipboard-polyfill": "^4.1.1",
@@ -78,13 +80,13 @@
7880
"file-saver": "^2.0.5",
7981
"immer": "^10.1.1",
8082
"lodash": "^4.17.21",
81-
"mf-parser": "^3.5.0",
83+
"mf-parser": "^3.6.0",
8284
"ml-array-mean": "^1.1.6",
8385
"ml-array-median": "^1.1.6",
8486
"ml-conrec": "^5.0.3",
8587
"ml-gsd": "^13.0.1",
8688
"ml-signal-processing": "^2.0.0",
87-
"ml-spectra-processing": "^14.14.0",
89+
"ml-spectra-processing": "^14.15.0",
8890
"ml-tree-similarity": "^2.2.0",
8991
"nmr-correlation": "2.3.3",
9092
"nmr-processing": "^19.0.3",
@@ -114,17 +116,17 @@
114116
"@types/d3": "^7.4.3",
115117
"@types/dlv": "^1.1.5",
116118
"@types/lodash": "^4.17.20",
117-
"@types/node": "^24.1.0",
119+
"@types/node": "^24.2.1",
118120
"@types/papaparse": "^5.3.16",
119121
"@types/react": "^18.3.13",
120122
"@types/react-dom": "^18.3.1",
121123
"@types/react-table": "^7.7.20",
122-
"@vitejs/plugin-react": "^4.7.0",
124+
"@vitejs/plugin-react": "^5.0.0",
123125
"@vitest/coverage-v8": "^3.2.4",
124126
"@zakodium/tsconfig": "^1.0.2",
125127
"cross-env": "^10.0.0",
126128
"cspell": "^9.2.0",
127-
"eslint": "^9.32.0",
129+
"eslint": "^9.33.0",
128130
"eslint-config-cheminfo-react": "^17.0.1",
129131
"eslint-config-cheminfo-typescript": "^19.0.0",
130132
"knip": "^5.62.0",
@@ -134,17 +136,17 @@
134136
"rc-menu": "^9.16.1",
135137
"react": "^18.3.1",
136138
"react-dom": "^18.3.1",
137-
"react-router-dom": "^7.7.1",
139+
"react-router-dom": "^7.8.0",
138140
"rimraf": "^6.0.1",
139141
"rollup-plugin-analyzer": "^4.0.0",
140142
"serve": "^14.2.4",
141-
"stylelint": "^16.23.0",
142-
"stylelint-config-standard": "^38.0.0",
143+
"stylelint": "^16.23.1",
144+
"stylelint-config-standard": "^39.0.0",
143145
"typescript": "^5.9.2",
144-
"vite": "^7.0.6",
146+
"vite": "^7.1.2",
145147
"vitest": "^3.2.4"
146148
},
147149
"volta": {
148-
"node": "24.4.1"
150+
"node": "24.5.0"
149151
}
150152
}

src/component/1d/FloatingRanges.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function useMapRanges(ranges: Ranges['values']) {
7676
const { multiplicity, delta, js = [] } = signal;
7777
const coupling = js
7878
.map((jsItem) =>
79-
!Number.isNaN(Number(jsItem.coupling))
79+
!Number.isNaN(jsItem.coupling)
8080
? formatNumber(jsItem.coupling, preferences.coupling.format)
8181
: '',
8282
)

src/component/1d/multiplicityTree/MultiplicityTree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function Tree(props: TreeProps) {
154154
onClick: () => unAssignHandler(),
155155
intent: 'danger',
156156
title: 'Unassign range',
157-
visible: !!(isAssignmentActive || hasDiaIDs),
157+
visible: isAssignmentActive || hasDiaIDs,
158158
},
159159
];
160160

src/component/2d/zones/Signal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ function Signal({ signal }: SignalProps) {
7575
{showPeaks &&
7676
signal?.peaks?.map((peak, i) => (
7777
<circle
78-
key={String(signal.id + i)}
78+
// eslint-disable-next-line react/no-array-index-key
79+
key={signal.id + i}
7980
cx={scaleX(peak.x)}
8081
cy={scaleY(peak.y)}
8182
r={2}

src/component/2d/zones/SignalsGuideLines.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function IndicationLine(props: IndicationLineProps) {
241241
onClick: () => unAssignHandler(),
242242
intent: 'danger',
243243
title: 'Unassign range',
244-
visible: !!(isAssignmentActive || hasDiaIDs),
244+
visible: isAssignmentActive || hasDiaIDs,
245245
},
246246
{
247247
icon: <PiTextTBold />,

src/component/2d/zones/Zone.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ function Zone({ zoneData }: ZoneProps) {
8484
</g>
8585
)}
8686
{signals.map((_signal, i) => (
87-
<Signal key={String(id + i)} signal={_signal} />
87+
// eslint-disable-next-line react/no-array-index-key
88+
<Signal key={id + i} signal={_signal} />
8889
))}
8990
</g>
9091
</ActionsButtonsPopover>

src/component/elements/MoleculeSelection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function MoleculeSelection(props: MoleculeSelectionProps) {
9595
<p>
9696
{molecules &&
9797
molecules.length > 0 &&
98-
`${+(currentIndex + 1)} / ${molecules.length}`}{' '}
98+
`${currentIndex + 1} / ${molecules.length}`}{' '}
9999
</p>
100100
</BarContainer>
101101
<MoleculeContainer>

src/component/panels/SummaryPanel/SummaryPanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ function SummaryPanel() {
274274
(correlation) =>
275275
correlation.atomType === _selectedAdditionalColumnsAtomType,
276276
)
277+
// eslint-disable-next-line unicorn/no-array-reverse
277278
.reverse()
278279
: [],
279280
);

src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function resurrectSpectrumFromSignals(
9696
for (const signal of signals) {
9797
const { nbAtoms, atoms } = signal;
9898
if (nbAtoms !== undefined) {
99-
totalIntegration += Number(nbAtoms);
99+
totalIntegration += nbAtoms;
100100
} else if (atoms !== undefined) {
101101
totalIntegration += atoms.length;
102102
}

0 commit comments

Comments
 (0)