This page describes the current source; use an SDK matching the Indiana deployment. npm 0.0.1 beta is published. Methods and DTOs for the current source come from this page and contracts; a workspace version is not a publication receipt.
Customer data and run state remain private. Preview, refresh and pagination execute no claims, payments or completion.
Current exports and methods
createFunnelRunController(options)Import from core; holds the gg_fr_ run credential. get/submit/retry/resume/link/subscribe/reset control the current run; retry replays the original command.
Returns FunnelRunController
showPaywall(container, { check, start, onAccessGranted?, ...options })Later source entry, absent from the published npm 0.0.1 exports. Match SDK/server versions, then check access and show the authored Paywall on denial. start obtains a backend run ticket; completion rechecks access and calls onAccessGranted only when allowed.
Returns { check, host }
showFunnelRun(container, options)Import from core and supply authentication, checkout, native-purchase and link callbacks. Each screen selects modal, panel, fullscreen or inline presentation.
Returns FunnelRunHandle
showPopup(document, options)A pure renderer from the popup entry: displays a current screen document without remote delivery, automatic claims or charges. Use Funnel for business experiences.
Returns PopupHandle
prepareScreen(document, window)Validate and sanitize the current screen format without mounting or executing business effects.
Returns ScreenDocument
handle.destroy()Remove UI, listeners and timers. Funnel closure is an explicit controller close command; destruction does not imply completion.
Returns void