Release Notes
This document provides information about changes, new features, and potential breaking changes between versions of the Lemonway Widget.
Version 1.3.0
Date: 2026-10-14
New Features
init / destroy also accept an HTML container reference, with the same API on npm and the CDN; existing container IDs remain supported
- Optional
onReady, loading text and readiness timeout, plus typed error codes for initialization, invalid links and expired sessions
- The widget is now available on npm:
npm install @lemonway/onboarding-widget. The package exports init, destroy, version, the LemonwayWidget class and TypeScript types, supports ESM and CommonJS, and can be imported during server-side rendering
- New
LemonwayWidget.version property exposing the loaded widget version
Improvements
- Playground settings are applied explicitly to keep the current journey open while editing; shared setups exclude onboarding links
- The iframe has an accessible title; loading messages are announced without moving keyboard focus
- npm and CDN releases are built from the same sources and published together with the same version number
- New widget playground, rebuilt with the Lemonway design system: switch between the CDN and npm builds of any version, live integration code (HTML, JavaScript, Vue, React), events log, checks and shareable setups
- Versioned CDN files are now immutable and cached for one year;
latest keeps a 5-minute cache
Compatibility
- No change for CDN integrations: the
<script> tag and the LemonwayWidget.init / LemonwayWidget.destroy API are unchanged
- The public npm package is named
@lemonway/onboarding-widget. CDN URLs, JavaScript exports and TypeScript type names remain unchanged
Bug Fixes
- Fixed-width containers keep automatic height adjustment, while explicit heights remain respected; cleanup restores widget-managed container styles and cancels pending timers
- Invalid initialization URLs and missing containers reach
onError; repeated ID/reference calls share one instance, and partner callback exceptions do not break widget cleanup
- Version bump verification resolves shipped paths from the repository root, including when invoked from the widget directory
- npm documentation links now point to the public Lemonway guides and release notes; installation examples no longer reference an unpublished version, and package verification rejects relative README links that would break on npm
- Repeated initialization keeps the active instance;
destroy also cancels pending initialization, supporting the React StrictMode mount/cleanup/mount cycle
- Existing onboarding URL query parameters and fragments are preserved when widget options are added
- Widget callbacks accept messages only from the embedded iframe and its exact origin; destroyed instances remove their unload listener
- Playground version selectors handle asynchronously loaded options, shared versions are preserved until availability is checked, and unavailable sources clear the previous preview
- Playground loading has a timeout and retry action, shared state ignores inherited keys, and integration snippets safely escape multiline values and inline script terminators
- Release verification includes the previously ignored bundle tests; publication stops on content conflicts and access failures, and prereleases use the npm
next tag
- The widget and its playground retain the iframe permission fix from 1.2.1
Version 1.2.1
Bug Fixes
- Added
clipboard-read, gyroscope, accelerometer, magnetometer, ch-ua-platform-version, ch-ua-model, and ch-ua-full-version to the iframe permissions for identity verification
- Permissions are configured before the iframe loads. Partners do not need to rewrite its
allow attribute or reload it
- Integrations pinned to an older widget version must update their script URL to
1.2.1.min.js after deployment to receive this fix
- If the host page embeds the widget inside another iframe or sets a restrictive
Permissions-Policy header, it must also permit the required features
Version 1.2.0
New Features
- Added Fontshare as an alternative font provider alongside Google Fonts
- New
theme.typography.fontProvider option ('google' | 'fontshare'), defaults to 'google' for backward compatibility
- Updated the widget demo with a font provider selector, additional presets, and provider-aware config export
Version 1.1.0
New Features
- Added Estonian, Romanian, Lithuanian, and Portuguese language support with
lang: 'et', lang: 'ro', lang: 'lt', and lang: 'pt'
- Removed the hardcoded widget language whitelist so future
lang values are forwarded without requiring a widget release
- Updated the widget demo and integration documentation for app-controlled locale support
Version 1.0.3
Bug Fixes
- Fixed an issue where
lang: 'nl' was not forwarded by the widget, causing Dutch content to fall back to French
Version 1.0.2
Bug Fixes
- Fixed issue where the scroll tip would not appear in widget mode
Version 1.0.1
New Features
- onHeightChange Callback: New optional callback that provides the widget's computed height to integrators
- Allows partners to dynamically adjust their container height to match the widget content
- Prevents double scrollbars when integrators want to control container sizing
- Returns the height in pixels (includes a 50px safety margin)
- Works in both auto-resize and fixed-dimension modes
Changes
- Simplified Scroll Management: Removed conditional scroll behavior system
- Iframe now uses
scrolling: 'auto' by default instead of conditional scrolling: 'no'/'auto' switching
- Widget container behavior is now more predictable and easier to integrate
- Integrators can choose to either let the widget auto-resize or use the
onHeightChange callback to manage container height
Improvements
- Demo Tool Enhancements:
- Added export configuration feature to generate ready-to-use code snippets
- Removed console logging system for cleaner demo experience
- Added host container behavior toggle to demonstrate
onHeightChange callback usage
- Export now includes all available callbacks with example implementations
Usage Example
LemonwayWidget.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);
}
});
Migration Notes
- No breaking changes - all existing implementations continue to work
- The
onHeightChange callback is optional and only needed if you want to manually control container height
- If you were relying on the previous scroll behavior, the widget now handles scrolling more automatically
Version 1.0.0
New Features
Breaking Changes
- None - All new features are opt-in and backward compatible
Usage Example
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'
}
}
});
Version 0.2.6
Bug Fixes
- Fixed multiple height handling issues causing unexpected scrollbars or cut content in embedded contexts
- Improved auto-resize logic in responsive mode to better fit container dimensions
- Ensured fixed-dimension mode consistently respects provided width/height with stable internal scrolling
- Reduced layout jumps on initialization and page changes
Version 0.2.5
New Features
- sidebarBreakpoint: New configuration option to control the responsive breakpoint for sidebar visibility
- Allows partners to customize when the sidebar menu appears based on screen width
- Supports multiple CSS units:
px, rem, em, vh, vw, %
- Examples:
'900px', '64rem', '4em', '80vh', '50vw', '75%'
- Default value:
'1200px' (maintains previous default)
- Works in conjunction with
isSidebarMenuEnabled=true
Bug Fixes
- Fixed issue where sidebar menu would not appear in widget mode even with
isSidebarMenuEnabled=true when container width was less than 1200px
Version 0.2.4
Changes
- Fix permissions for widget mode
Version 0.2.3
Changes
- Added a public global method
LemonwayWidget.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).
Usage
Recommended: call LemonwayWidget.destroy('container-id') before mounting the widget again in the same container.
Version 0.2.2
New Features
- isWelcomePageEnabled: New boolean configuration option to control whether welcome pages are displayed in the onboarding flow
- When set to
false, users are automatically redirected to the validation page, skipping the welcome screens
- Default value:
true (maintains existing behavior)
- Compatible with both individual and legal entity onboarding flows
Usage Example
LemonwayWidget.init('YOUR_ONBOARDING_URL', 'container-id', {
isWelcomePageEnabled: false // Skip welcome pages
});
Version 0.2.1
Add arePersonalFieldsReadonly to add readonly on personal fields
Version 0.2.0
Add isSidebarMenuEnabled to activate/desactivate sidebar menu in the config
Version 0.1.0
Initial release of the Lemonway Widget.
Features
- Basic onboarding flow implementation
- Support for iframe integration
- Event system for communication with parent window
- Responsive design
- Multiple language support
Implementation Notes
- This is the first versioned release of the widget
- The widget is now accessible via a versioned URL:
https://hosted-onboarding.lemonway.com/widget/0.1.0.min.js
Future Versions
Future versions of the widget will be documented here with detailed descriptions of:
- New features
- Bug fixes
- Performance improvements
- Breaking changes and migration guides
- Deprecated features
When updating to a new version, always review these release notes to understand what has changed and how it might impact your implementation.