New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@privyid/pena-angular

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@privyid/pena-angular

PrivyID's Official Client Integration Library for Angular

latest
npmnpm
Version
1.0.0
Version published
Maintainers
6
Created
Source

Pena ❤️ Angular

PrivyID's Official Client Integration Library for Angular

Installation

  • Add as dependencies to your package.json

NPM

npm install --save @privyid/pena-angular @privyid/pena

Yarn

yarn add @privyid/pena-angular @privyid/pena
  • Register the module.
import { PenaModule } from '@privyid/pena-angular'

@NgModule({
  /* ... */
  imports: [PenaModule],
  /* ... */
})
export class AppModule {}

Usage

import type { Placement, Payload } from '@privyid/pena'

@Component({
  selector: 'app-root',
  template: `
    <pena
      url="http://sign.document.com/doc/xxx"
      lang="en"
      layout="fixed"
      [signature]="signature"
      (afterAction)="onAfterAction($event)"
    />
  `,
  styles: [],
})
export class AppComponent {
  signature: Placement = {
    x    : 100,
    y    : 200,
    page : 1,
    fixed: false,
  }

  onAfterAction (event: Payload) {
    if (event.action === 'sign') {
      window.alert('Signed')
    }
  }
}

Options

Input Properties

NameTypeDefaultDescription
urlstring-(Required) Document's url
langstringenSet language, valid value is en or id
layoutstringfixedSet layout mode, valid value is fixed or fit, see the different
visibilitybooleantrueSet signature visibility
privyIdstring-Set recipient's privyId
signatureobject-Set signature placement
(Deprecated) use API to set placement when upload the document
xnumber-X Coordinate
ynumber-Y Coordinate
pagenumber-Target page
fixedbooleanfalseDisabled signature for moving
debugbooleanfalseEnable debug mode
rationumber210 / 297Ratio size (Layout fixed only)
needScrollTonumber | string-Force user to scroll to target page before doing an action (sign,review,etc). Valid value is a number, or set last to target the last page

Output Events

NameArgumentsDescription
afterActionPayloadAfter action hook

License

This project is licensed under the MIT License - see the LICENSE file for details

FAQs

Package last updated on 26 May 2023

Did you know?

Socket

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.

Install

Related posts