@revenuecat/purchases-js 1.13.2 → 1.14.1

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.
@@ -1,5 +1,3 @@
1
- import { PaywallData } from '@revenuecat/purchases-ui-js';
2
-
3
1
  /**
4
2
  * @public
5
3
  * `BrandingAppearance` defines the appearance settings
@@ -261,6 +259,15 @@ export declare interface HttpConfig {
261
259
  proxyURL?: string;
262
260
  }
263
261
 
262
+ /**
263
+ * Custom log handler function type. Allows you to handle SDK log messages
264
+ * with your own logging system.
265
+ * @param logLevel - The log level of the message
266
+ * @param message - The log message
267
+ * @public
268
+ */
269
+ export declare type LogHandler = (logLevel: LogLevel, message: string) => void;
270
+
264
271
  /**
265
272
  * Possible levels to log in the console.
266
273
  * @public
@@ -388,7 +395,6 @@ export declare interface Offering {
388
395
  * Weekly package type configured in the RevenueCat dashboard, if available.
389
396
  */
390
397
  readonly weekly: Package | null;
391
- readonly paywall_components: PaywallData | null;
392
398
  }
393
399
 
394
400
  /**
@@ -854,6 +860,12 @@ export declare class Purchases {
854
860
  * @param logLevel - LogLevel to set.
855
861
  */
856
862
  static setLogLevel(logLevel: LogLevel): void;
863
+ /**
864
+ * Set a custom log handler to handle SDK log messages with your own logging system.
865
+ * If set to null, the SDK will use the default console logging.
866
+ * @param handler - LogHandler function or null to use default console logging.
867
+ */
868
+ static setLogHandler(handler: LogHandler | null): void;
857
869
  /**
858
870
  * Meant to be used by RevenueCat hybrids SDKS only.
859
871
  * @experimental