diff --git a/docs/porting-embed.md b/docs/porting-embed.md index 0811570..ee14432 100644 --- a/docs/porting-embed.md +++ b/docs/porting-embed.md @@ -48,37 +48,36 @@ embed.on('completed', ({ porting }) => { }) ``` -## Usage +- [Minimal example](#minimal-example) +- [Usage](#usage) + - [Show a loading spinner while the embed is initializing](#show-a-loading-spinner-while-the-embed-is-initializing) + - [Show UI depending on the current step](#show-ui-depending-on-the-current-step) + - [Use the included styling](#use-the-included-styling) + - [CSS customization](#css-customization) + - [Continue after all fields were filled out](#continue-after-all-fields-were-filled-out) + - [Show a loading state while the form is submitted](#show-a-loading-state-while-the-form-is-submitted) + - [Reacting to validation changes](#reacting-to-validation-changes) + - [Unsubscribe from event listeners](#unsubscribe-from-event-listeners) + - [Using a different form id](#using-a-different-form-id) + - [Updating options](#updating-options) + - [Unmount the embed](#unmount-the-embed) +- [Reference](#reference) + - [Initializing the Porting Embed](#initializing-the-porting-embed) + - [`connectSession`](#connectsession) + - [`project`](#project) + - [`options`](#options) + - [Methods](#methods) + - [`embed.mount(element)`](#embedmountelement) + - [`embed.update(options)`](#embedupdateoptions) + - [`embed.unmount()`](#embedunmount) + - [`embed.on(event, fn)`](#embedonevent-fn) + - [`embed.off(event, fn)`](#embedoffevent-fn) + - [`embed.currentStep(): Step`](#embedcurrentstep-step) + - [Values](#values) + - [Step](#step) + - [Field Names](#field-names) -- [Porting Embed](#porting-embed) - - [Minimal example](#minimal-example) - - [Usage](#usage) - - [Show a loading spinner while the embed is initializing](#show-a-loading-spinner-while-the-embed-is-initializing) - - [Show UI depending on the current step](#show-ui-depending-on-the-current-step) - - [Use the included styling](#use-the-included-styling) - - [CSS customization](#css-customization) - - [Continue after all fields were filled out](#continue-after-all-fields-were-filled-out) - - [Show a loading state while the form is submitted](#show-a-loading-state-while-the-form-is-submitted) - - [Reacting to validation changes](#reacting-to-validation-changes) - - [Unsubscribe from event listeners](#unsubscribe-from-event-listeners) - - [Using a different form id](#using-a-different-form-id) - - [Updating options](#updating-options) - - [Unmount the embed](#unmount-the-embed) - - [Reference](#reference) - - [Initializing the Porting Embed](#initializing-the-porting-embed) - - [`connectSession`](#connectsession) - - [`project`](#project) - - [`options`](#options) - - [Methods](#methods) - - [`embed.mount(element)`](#embedmountelement) - - [`embed.update(options)`](#embedupdateoptions) - - [`embed.unmount()`](#embedunmount) - - [`embed.on(event, fn)`](#embedonevent-fn) - - [`embed.off(event, fn)`](#embedoffevent-fn) - - [`embed.currentStep(): Step`](#embedcurrentstep-step) - - [Values](#values) - - [Step](#step) - - [Field Names](#field-names) +## Usage ### Show a loading spinner while the embed is initializing