-
Notifications
You must be signed in to change notification settings - Fork 2
New @anvilco/anvil-embed-frame
package
#12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job on the PR, thanks for being super thorough in the main post!
Tested manually embedding Checked that all events are received:
|
Haven't included TypeScript support yet -- think I should include in this PR? |
Yeah if possible, good catch |
Description of the change
Build a new
AnvilEmbedFrame
react component that can be used for embedding Etch e-signatures, Workflows, and Editors, now that the app have a uniform protocol forwindow.postMessage(object)
. All events are handled by theonEvent
callback.Once this package is published, we can deprecate
@anvil/react-signature-frame
and@anvilco/react-signature-modal
.Works for standalone Etch

Can be embedded
Gets

signerComplete
eventGets

signerError
eventWorks for Workflows

Can be embedded
Gets

forgeSubmitPage
andforgeComplete
eventsWorks for Editors




Can be embedded
Gets

embeddedError
eventGets

castEdit
eventGets

etchPacketSent
eventGets

weldCreate
eventGets

weldEdit
eventType of change
Related issues
Fixes anvilco/public-repos#18
Dev Checklist