Document Viewer v1.0.0
Initial stable release of the Legalesign Document Viewer web component.
New
- Web component (
<ls-document-viewer>) and React (<LsDocumentViewer>) integration - Three modes:
editor,compose, andpreview templateidandtokenrequired attributes- Authentication via SRP JWT,
generateComponentTokenGraphQL mutation, or REST component token endpoint filtertoolboxattribute to restrict available field typesrecipientsattribute for compose mode — accepts JSON array withemail,firstname,lastname,signerIndex, and optionalroleandphonenumber- Witness role support — add 100 to the signer's
signerIndexfor the witness (e.g. witness for signer 2 =signerIndex: 102) - Custom toolbar buttons via
left-buttonandright-buttonslots updateevent — fired when the template is changedvalidateevent — fired when template validity changes, includesvalidbooleanselectFieldsevent — fired when a field is selectedaddParticipantevent — fired when a participant role is added