
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
hmcts-annotation-ui-lib
Advanced tools
PDF Viewer and ability to highlight text with and comment tracking
https://www.npmjs.com/package/hmcts-annotation-ui-lib
Import AnnotationUiLibModule from annotation-ui-lib in your app.module.ts and declare it in your NgModule imports.
For example:
import { AnnotationUiLibModule, ViewerComponent} from 'hmcts-annotation-ui-lib';
@NgModule({
imports: [
...
AnnotationUiLibModule
]
})
Reference the followings scripts in your angular.json.
"scripts": [
"node_modules/hmcts-annotation-ui-lib/assets/shared/pdf.js",
"node_modules/hmcts-annotation-ui-lib/assets/shared/pdf_viewer.js",
"node_modules/hmcts-annotation-ui-lib/assets/shared/pdf-annotate.js",
...
]
And styles
"styles": [
"node_modules/hmcts-annotation-ui-lib/_theme.scss",
...
],
Entry point is the ViewerComponent component. For example:
const appRoutes: Routes = [
{ path: '', component: ViewerComponent }
];
Make sure to pass a query parameter for the PDF location when you navigate to the component. For example: Copy your PDF into the root assets folder and reference it like http://localhost:4200?url=/assets/example.pdf
Run ng serve for a dev server. Navigate to http://localhost:4200/?url=/assets/example.pdf. The app will automatically reload if you change any of the source files.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
FAQs
PDF Viewer and ability to highlight text with and comment tracking
We found that hmcts-annotation-ui-lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.