diff --git a/package-lock.json b/package-lock.json index 3fa1fd7..c0ea783 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "BSD-3-Clause", "dependencies": { "@recogito/annotorious": "^2.7.8", - "@recogito/recogito-connections": "^0.1.5", + "@recogito/recogito-connections": "^0.1.6", "@recogito/recogito-js": "^1.8.0", "pdfjs-dist": "2.9.359", "react-icons": "^4.2.0", @@ -1979,9 +1979,9 @@ } }, "node_modules/@recogito/recogito-connections": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@recogito/recogito-connections/-/recogito-connections-0.1.5.tgz", - "integrity": "sha512-ZK29Mbjdgx1Qm7Kt7pmCMP/5kMRy+mVmwYj7hhHjrxA5Fyw8PAC5ZQRoGlumzvya8ch+QLKlugDaaKxZivu9fQ==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@recogito/recogito-connections/-/recogito-connections-0.1.6.tgz", + "integrity": "sha512-KE6F71AKxM9M9rs2huZ6OAsP0E/BVM40ar7MhU3bWM/wSEX8LOXwb8fo5tXp3MW9tBqkPwV/RoJV4wb9g+2VHg==", "dependencies": { "@flatten-js/core": "^1.3.1", "@recogito/recogito-client-core": "^1.6.0", @@ -8723,9 +8723,9 @@ } }, "@recogito/recogito-connections": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@recogito/recogito-connections/-/recogito-connections-0.1.5.tgz", - "integrity": "sha512-ZK29Mbjdgx1Qm7Kt7pmCMP/5kMRy+mVmwYj7hhHjrxA5Fyw8PAC5ZQRoGlumzvya8ch+QLKlugDaaKxZivu9fQ==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@recogito/recogito-connections/-/recogito-connections-0.1.6.tgz", + "integrity": "sha512-KE6F71AKxM9M9rs2huZ6OAsP0E/BVM40ar7MhU3bWM/wSEX8LOXwb8fo5tXp3MW9tBqkPwV/RoJV4wb9g+2VHg==", "requires": { "@flatten-js/core": "^1.3.1", "@recogito/recogito-client-core": "^1.6.0", diff --git a/package.json b/package.json index 5522be9..3489061 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "@recogito/annotorious": "^2.7.8", - "@recogito/recogito-connections": "^0.1.5", + "@recogito/recogito-connections": "^0.1.6", "@recogito/recogito-js": "^1.8.0", "pdfjs-dist": "2.9.359", "react-icons": "^4.2.0", diff --git a/src/pdf/PDFViewer.jsx b/src/pdf/PDFViewer.jsx index f7ab23f..c54e65d 100644 --- a/src/pdf/PDFViewer.jsx +++ b/src/pdf/PDFViewer.jsx @@ -22,7 +22,7 @@ const PDFViewer = props => { // Load PDF on mount useEffect(() => { // Init after DOM load - setConnections(new Connections()); + setConnections(new Connections([], { showLabels: true })); PDFJS.getDocument(props.url).promise .then(