Skip to content

feat: add helpers for tappable links - #24

Open
AbhishekChorotiya wants to merge 1 commit into
juspay:mainfrom
AbhishekChorotiya:feat/message-content-helpers
Open

AbhishekChorotiya wants to merge 1 commit into
juspay:mainfrom
AbhishekChorotiya:feat/message-content-helpers

Conversation

@AbhishekChorotiya

@AbhishekChorotiya AbhishekChorotiya commented Dec 4, 2026 •

Copy link
Copy Markdown

Summary

  • Export MessageElement.action({ label, onClick, style }) and the messageContent tagged template, matching the React Native merchant API.
  • Add usage documentation and rebuild the ESM/CJS bundles.
  • Keep this release JavaScript-only; no TypeScript declarations are added.

Integration

Companion Web SDK PR: juspay/hyperswitch-web#1905

Requires those renderer and callback-dispatch changes. Pass paymentMethodsConfig to elements.create("payment", options).

Verification

  • npm run build passed.
  • Focused checks against both ESM and CJS exports passed for callbacks, styles, shallow-copy behavior, interpolation, empty strings, and input validation.
  • git diff --check passed.

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant