@revenuecat/purchases-js 1.45.0 → 1.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,6 +54,7 @@ declare enum BackendErrorCode {
54
54
  */
55
55
  export declare interface BrandingAppearance {
56
56
  color_buttons_primary: string;
57
+ color_buttons_primary_text?: string | null;
57
58
  color_accent: string;
58
59
  color_error: string;
59
60
  color_product_info_bg: string;
@@ -329,6 +330,18 @@ export declare interface FlagsConfig {
329
330
  * @defaultValue true
330
331
  */
331
332
  collectAnalyticsEvents?: boolean;
333
+ /**
334
+ * If set to true, the checkout back button will be hidden.
335
+ * @defaultValue false
336
+ */
337
+ hideBackButton?: boolean;
338
+ /**
339
+ * If set to true, the SDK injects the branding app icon as an
340
+ * `apple-touch-icon` link tag so it appears in the Apple Pay sheet.
341
+ * Best effort is made to not overwrite an existing `apple-touch-icon` on the page.
342
+ * @defaultValue false
343
+ */
344
+ applePayBrandingLogoEnabled?: boolean;
332
345
  /* Excluded from this release type: rcSource */
333
346
  /* Excluded from this release type: forceEnableWalletMethods */
334
347
  /* Excluded from this release type: workflowsEndpointEnabled */
@@ -1489,6 +1502,7 @@ export declare class Purchases {
1489
1502
  */
1490
1503
  preload(): Promise<void>;
1491
1504
  /* Excluded from this release type: fetchAndCacheBrandingInfo */
1505
+ /* Excluded from this release type: syncApplePayWebsiteIcon */
1492
1506
  /* Excluded from this release type: hasLoadedResources */
1493
1507
  /* Excluded from this release type: __constructor */
1494
1508
  /**
@@ -1561,6 +1575,7 @@ export declare class Purchases {
1561
1575
  */
1562
1576
  private resolveHTMLTarget;
1563
1577
  private createCheckoutOnCloseHandler;
1578
+ private shouldHideCheckoutBackButton;
1564
1579
  private createCheckoutOnFinishedHandler;
1565
1580
  private createCheckoutOnErrorHandler;
1566
1581
  /* Excluded from this release type: _isConfiguredWithSimulatedStore */
@@ -2097,6 +2112,11 @@ export declare class Purchases {
2097
2112
  * The display name of the subscription as configured in the RevenueCat dashboard.
2098
2113
  */
2099
2114
  readonly displayName: string | null;
2115
+ /**
2116
+ * Date when a paused subscription is expected to automatically resume.
2117
+ * Only set for Google Play subscriptions that have been paused; null otherwise.
2118
+ */
2119
+ readonly autoResumeDate: Date | null;
2100
2120
  /**
2101
2121
  * Paid price for the subscription.
2102
2122
  */