Add components for user onboarding #330
Open
+2,283
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new embedded user onboarding flow to both the JavaScript API and React SDKs, enabling admin-initiated user invites and end-user invite acceptance with a modernized, component-based UI. It includes new API methods, React components, styles, and supporting model updates to support the full onboarding lifecycle for invited users.
Develop App Component



InviteUserGate App Component

AcceptInviteKey changes:
API Layer Enhancements
executeEmbeddedUserOnboardingFlowV2to the JavaScript API, providing a unified method for both admin (invite) and end-user (accept invite) onboarding flows, with error handling and payload validation. Also exported the response type for type safety. [1] [2]EmbeddedFlowTypeenum to includeUserOnboarding, enabling the new onboarding flow type in the API models.React SDK: Invite User & Accept Invite Components
InviteUser,BaseInviteUser) and end-user accept invite flow (AcceptInvite,BaseAcceptInvite). These components provide customizable, render-prop-based UIs and handle flow state, error management, and API integration. [1] [2] [3]Component Rendering Utilities
renderInviteUserComponentsutility to render onboarding form steps dynamically from backend-provided component definitions, supporting both the invite and accept invite flows.These changes provide a robust foundation for embedded user onboarding, with clear separation of admin and end-user experiences, extensible UI, and improved API ergonomics.