This document provides information about changes, new features, and potential breaking changes between versions of the Lemonway Widget.
scrolling: 'auto' by default instead of conditional scrolling: 'no'/'auto' switchingonHeightChange callback to manage container heightonHeightChange callback usageLemonwayWidget.init('YOUR_ONBOARDING_URL', 'container-id', {
lang: 'en',
onHeightChange: (height) => {
const container = document.getElementById('container-id');
if (container) {
container.style.height = `${height}px`;
}
},
onPageChange: () => {
console.log('Page changed');
},
onMyAccount: () => {
console.log('My Account clicked');
},
onFinish: () => {
console.log('Onboarding finished');
},
onError: (error) => {
console.error(error);
}
});
onHeightChange callback is optional and only needed if you want to manually control container heightTheme Customization: Complete theming system allowing partners to customize the widget appearance
LemonwayWidget.init('YOUR_ONBOARDING_URL', 'container-id', {
lang: 'en',
theme: {
typography: {
h1Font: 'Playfair Display, serif',
bodyFont: 'Lato, sans-serif',
bodyFontSize: '1rem'
},
colors: {
primary: '#3643BA',
secondary: '#54CFA1'
},
buttons: {
primaryBackground: '#3643BA',
primaryText: '#ffffff',
radius: '0.5rem'
},
forms: {
radius: '0.5rem',
borderColor: '#e2e8f0',
borderColorFocus: '#3643BA'
}
}
});
px, rem, em, vh, vw, %'900px', '64rem', '4em', '80vh', '50vw', '75%''1200px' (maintains previous default)isSidebarMenuEnabled=trueisSidebarMenuEnabled=true when container width was less than 1200pxLemonwayWidget.destroy(targetId) to explicitly tear down an instance (removes iframe + listeners) and avoid duplicate callbacks when remounting the widget (no breaking changes; existing init usage is unchanged).Recommended: call LemonwayWidget.destroy('container-id') before mounting the widget again in the same container.
false, users are automatically redirected to the validation page, skipping the welcome screenstrue (maintains existing behavior)LemonwayWidget.init('YOUR_ONBOARDING_URL', 'container-id', {
isWelcomePageEnabled: false // Skip welcome pages
});
Add arePersonalFieldsReadonly to add readonly on personal fields
Add isSidebarMenuEnabled to activate/desactivate sidebar menu in the config
Initial release of the Lemonway Widget.
https://hosted-onboarding.lemonway.com/widget/0.1.0.min.jsFuture versions of the widget will be documented here with detailed descriptions of:
When updating to a new version, always review these release notes to understand what has changed and how it might impact your implementation.