The latest version of the LEAP Host SDK, version 4.0.0, has been released.
This release includes a breaking change to Precedent selection, in addition to some new functions to enrich LEAP developer integrations.
Breaking changes:
- document.selectPrecedent() response is now camelCase on LEAP Desktop - The document.selectPrecedent() function previously returned the raw host response with PascalCase property names (example: RecordId). The SDK now normalises the response to camelCase (example: recordId) to match the SelectPrecedentResponse TypeScript interface and LEAP Web behaviour.
New functions:
- document.createDocumentBasedOnURL - Allows users to create a document in LEAP from a remote URL.
- subscribeContextUpdate / unsubscribeContextUpdate - Listen for host context changes with automatic sdk.leapContext updates. This function allows users to switch the LEAP Host SDK context based on changes brought about while listening to user actions picked up.
LEAP Host SDK