✨ New Features
-
createOnboardingView(): added new optional
externalUrlsPresentationproperty of typeWebPresentationto control how external URLs are opened from onboarding. Defaults toWebPresentation.BrowserInAppconst view = await createOnboardingView(onboarding, { externalUrlsPresentation: WebPresentation.BrowserOutApp });
Possible values:
WebPresentation.BrowserOutApp- open in browser outside the appWebPresentation.BrowserInApp- open in browser inside the app
-
React component AdaptyOnboardingView: added new optional
externalUrlsPresentationprop of typeWebPresentation. -
adapty.openWebPaywall(): added new optional
openInparameter of typeWebPresentationto control how web paywalls are opened. Defaults toWebPresentation.BrowserOutApp
Fixes
- Fixed event handlers unsubscription when multiple views were created simultaneously
- mock mode:
onLatestProfileLoadevent payloads now correctly match TypeScript types - Onboarding events rework:
- ⚠️ breaking:
onAnalyticsandonStateUpdatedevent payloads now match TypeScript types with fields in camelCase. Fixed #224 - ⚠️ deprecated:
event.element_idinonAnalytics. Useevent.elementIdinstead
- ⚠️ breaking: