apps-sdk 1.1.60 → 1.1.61

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.1.60",
3
+ "version": "1.1.61",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -123,6 +123,18 @@ class Adapty {
123
123
  }
124
124
  }
125
125
 
126
+ async closePaywallFromView(paywallView) {
127
+ try {
128
+ if (paywallView) {
129
+ paywallView.dismiss();
130
+ } else {
131
+ console.warn('Error closing paywall: paywall view is null');
132
+ }
133
+ } catch (error) {
134
+ console.error('Error closing paywall:', error);
135
+ }
136
+ }
137
+
126
138
  async showPaywallPreloaded(paywallView, eventHandlers = {}) {
127
139
  try {
128
140
  if (paywallView) {
package/types/index.d.ts CHANGED
@@ -242,6 +242,7 @@ declare module 'apps-sdk' {
242
242
  preloadOnboarding(placementID: string, lang: string): Promise<any>;
243
243
  closeOnboarding(): Promise<void>;
244
244
  showOnboardingPreloaded(onboardingView: any, eventHandlers?: OnboardingEventHandlers): Promise<void>;
245
+ closePaywallFromView(paywallView: any): Promise<void>;
245
246
  }
246
247
 
247
248
  export class TrackingTransparency {