@umituz/react-native-subscription 2.2.34 → 2.2.36

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +30 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-subscription",
3
- "version": "2.2.34",
3
+ "version": "2.2.36",
4
4
  "description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -9,6 +9,11 @@
9
9
  // DOMAIN LAYER - Errors
10
10
  // =============================================================================
11
11
 
12
+ // =============================================================================
13
+ // BROKEN EXPORTS - Files missing
14
+ // =============================================================================
15
+
16
+ /*
12
17
  export {
13
18
  SubscriptionError,
14
19
  SubscriptionRepositoryError,
@@ -16,10 +21,6 @@ export {
16
21
  SubscriptionConfigurationError,
17
22
  } from "./domain/errors/SubscriptionError";
18
23
 
19
- // =============================================================================
20
- // DOMAIN LAYER - Entities
21
- // =============================================================================
22
-
23
24
  export {
24
25
  createDefaultSubscriptionStatus,
25
26
  isSubscriptionValid,
@@ -28,17 +29,9 @@ export type { SubscriptionStatus } from "./domain/entities/SubscriptionStatus";
28
29
 
29
30
  export type { SubscriptionConfig } from "./domain/value-objects/SubscriptionConfig";
30
31
 
31
- // =============================================================================
32
- // APPLICATION LAYER - Ports
33
- // =============================================================================
34
-
35
32
  export type { ISubscriptionRepository } from "./application/ports/ISubscriptionRepository";
36
33
  export type { ISubscriptionService } from "./application/ports/ISubscriptionService";
37
34
 
38
- // =============================================================================
39
- // INFRASTRUCTURE LAYER - Services
40
- // =============================================================================
41
-
42
35
  export {
43
36
  SubscriptionService,
44
37
  initializeSubscriptionService,
@@ -46,14 +39,6 @@ export {
46
39
  resetSubscriptionService,
47
40
  } from "./infrastructure/services/SubscriptionService";
48
41
 
49
- // Feedback
50
- export * from "./presentation/components/feedback/PaywallFeedbackModal";
51
- export * from "./presentation/hooks/feedback/usePaywallFeedback";
52
-
53
- // =============================================================================
54
- // PRESENTATION LAYER - Hooks
55
- // =============================================================================
56
-
57
42
  export { useSubscription } from "./presentation/hooks/useSubscription";
58
43
  export type { UseSubscriptionResult } from "./presentation/hooks/useSubscription";
59
44
 
@@ -86,6 +71,29 @@ export {
86
71
  type UseUserTierWithRepositoryResult,
87
72
  type AuthProvider,
88
73
  } from "./presentation/hooks/useUserTierWithRepository";
74
+ */
75
+
76
+ // Feedback
77
+ export * from "./presentation/components/feedback/PaywallFeedbackModal";
78
+ export * from "./presentation/hooks/feedback/usePaywallFeedback";
79
+
80
+ export {
81
+ usePremiumGate,
82
+ type UsePremiumGateParams,
83
+ type UsePremiumGateResult,
84
+ } from "./presentation/hooks/usePremiumGate";
85
+
86
+ export {
87
+ useFeatureGate,
88
+ type UseFeatureGateParams,
89
+ type UseFeatureGateResult,
90
+ } from "./presentation/hooks/useFeatureGate";
91
+
92
+ export {
93
+ useUserTier,
94
+ type UseUserTierParams,
95
+ type UseUserTierResult,
96
+ } from "./presentation/hooks/useUserTier";
89
97
 
90
98
  // =============================================================================
91
99
  // PRESENTATION LAYER - Paywall Components
@@ -157,10 +165,12 @@ export {
157
165
  // UTILS - Date & Price
158
166
  // =============================================================================
159
167
 
168
+ /*
160
169
  export {
161
170
  isSubscriptionExpired,
162
171
  getDaysUntilExpiration,
163
172
  } from "./utils/dateValidationUtils";
173
+ */
164
174
 
165
175
  export { formatPrice } from "./utils/priceUtils";
166
176