UNPKG

@revenuecat/purchases-ui-js

Version:

Web components for Paywalls. Powered by RevenueCat

32 lines (31 loc) 950 B
import type { Background } from "./background"; import type { ColorScheme } from "./colors"; import type { FooterProps } from "./components/footer"; import type { HeaderProps } from "./components/header"; import type { StackProps } from "./components/stack"; import type { Localizations } from "./localization"; export interface RootPaywall { background?: Background; stack: StackProps; sticky_footer?: FooterProps | null; header?: HeaderProps | null; safe_area_fallback_color?: ColorScheme | null; } export interface ComponentConfig { colors?: Record<string, string>; fonts?: { [fontName: string]: { ios: string; android: string; web: string; }; }; asset_base_url?: string; base: RootPaywall; } export interface PaywallData { id: string; default_locale: string; components_config: ComponentConfig; components_localizations: Localizations; }