UNPKG

@revenuecat/purchases-ui-js

Version:

Web components for Paywalls. Powered by RevenueCat

37 lines (36 loc) 1.92 kB
import type { CompleteWorkflowNavigateArgs } from "../../types/components/button"; import type { ColorScheme } from "../../types/colors"; import type { InitialInputSelections } from "../../stores/inputValidation"; import type { OnComponentInteraction } from "../../types/paywall-component-interaction"; import type { WorkflowScreen } from "../../types/workflow"; import type { PackageInfo, VariableDictionary } from "../../types/variables"; import type { WalletButtonRender } from "../../types/wallet"; import type { UIConfig } from "../../types/ui-config"; import type { ReservedAttribute } from "../../types/components/input-text"; interface Props { paywallComponents: WorkflowScreen | null | undefined; selectedLocale?: string; uiConfig: UIConfig; globalVariables?: VariableDictionary; onActionTriggered?: (actionId: string) => void; onComponentInteraction?: OnComponentInteraction; onPurchaseClicked?: (packageId: string, actionId: string) => void | Promise<void>; onBackClicked?: () => void; onClose?: () => void; containerId?: string; maxContentWidth?: string; variablesPerPackage?: Record<string, VariableDictionary>; infoPerPackage?: Record<string, PackageInfo>; initialInputSelections?: InitialInputSelections; onInputChanged?: (fieldId: string, value: string, actionId?: string) => void; onReservedAttributeChanged?: (reservedAttribute: ReservedAttribute, value: string) => void; onCompleteWorkflowNavigate?: (args: CompleteWorkflowNavigateArgs) => void | Promise<void>; onNavigateToUrlClicked?: (url: string) => void; onRestorePurchasesClicked?: () => void; onVisitCustomerCenterClicked?: () => void; walletButtonRender?: WalletButtonRender; safeAreaFallbackColor?: ColorScheme | null; } declare const Screen: import("svelte").Component<Props, {}, "">; type Screen = ReturnType<typeof Screen>; export default Screen;