@umituz/react-native-subscription 2.22.12 → 2.23.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-subscription",
3
- "version": "2.22.12",
3
+ "version": "2.23.0",
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",
@@ -31,10 +31,6 @@
31
31
  "type": "git",
32
32
  "url": "git+https://github.com/umituz/react-native-subscription.git"
33
33
  },
34
- "dependencies": {
35
- "@umituz/react-native-design-system": "*",
36
- "@umituz/react-native-firebase": "*"
37
- },
38
34
  "peerDependencies": {
39
35
  "@tanstack/react-query": ">=5.0.0",
40
36
  "expo-constants": ">=16.0.0",
@@ -50,17 +46,20 @@
50
46
  "@gorhom/bottom-sheet": "^5.2.8",
51
47
  "@react-native-async-storage/async-storage": "^2.2.0",
52
48
  "@react-native-community/datetimepicker": "^8.6.0",
49
+ "@react-native-community/slider": "^4.5.2",
53
50
  "@react-navigation/bottom-tabs": "^7.9.0",
54
51
  "@react-navigation/native": "^7.1.26",
55
52
  "@react-navigation/stack": "^7.6.13",
53
+ "@tanstack/query-async-storage-persister": "^5.66.7",
56
54
  "@tanstack/react-query": "^5.0.0",
55
+ "@tanstack/react-query-persist-client": "^5.66.7",
57
56
  "@types/react": "~19.1.10",
58
57
  "@typescript-eslint/eslint-plugin": "^8.50.1",
59
58
  "@typescript-eslint/parser": "^8.50.1",
60
59
  "@umituz/react-native-auth": "*",
61
- "@umituz/react-native-design-system": "*",
60
+ "@umituz/react-native-design-system": "^2.9.0",
62
61
  "@umituz/react-native-firebase": "*",
63
- "@umituz/react-native-localization": "*",
62
+ "@umituz/react-native-localization": "^3.6.0",
64
63
  "eslint": "^9.39.2",
65
64
  "eslint-plugin-react": "^7.37.5",
66
65
  "eslint-plugin-react-hooks": "^7.0.1",
@@ -72,10 +71,18 @@
72
71
  "expo-crypto": "^15.0.8",
73
72
  "expo-device": "^8.0.10",
74
73
  "expo-file-system": "^19.0.21",
75
- "expo-haptics": "^15.0.8",
76
- "expo-image": "~3.0.0",
77
- "expo-localization": "^17.0.8",
78
- "expo-sharing": "^14.0.8",
74
+ "expo-font": "~14.0.0",
75
+ "expo-haptics": "~14.0.0",
76
+ "expo-image": "~2.0.0",
77
+ "expo-image-manipulator": "~14.0.0",
78
+ "expo-image-picker": "~16.0.0",
79
+ "expo-localization": "~16.0.0",
80
+ "expo-media-library": "~17.0.0",
81
+ "expo-modules-core": "^3.0.29",
82
+ "expo-network": "~7.0.0",
83
+ "expo-secure-store": "~14.0.0",
84
+ "expo-sharing": "~13.0.0",
85
+ "expo-video": "~2.0.0",
79
86
  "expo-web-browser": "^12.0.0",
80
87
  "firebase": "^11.0.0",
81
88
  "i18next": "^25.7.3",
@@ -5,7 +5,7 @@
5
5
  * Generic and reusable - uses config from ProductMetadataService.
6
6
  */
7
7
 
8
- import { useQuery } from "@tanstack/react-query";
8
+ import { useQuery } from "@umituz/react-native-design-system";
9
9
  import type {
10
10
  ProductMetadata,
11
11
  ProductMetadataConfig,
@@ -5,7 +5,7 @@
5
5
  * Generic and reusable - uses config from TransactionRepository.
6
6
  */
7
7
 
8
- import { useQuery } from "@tanstack/react-query";
8
+ import { useQuery } from "@umituz/react-native-design-system";
9
9
  import type {
10
10
  CreditLog,
11
11
  TransactionRepositoryConfig,
@@ -7,7 +7,7 @@
7
7
 
8
8
  declare const __DEV__: boolean;
9
9
 
10
- import { useQuery } from "@tanstack/react-query";
10
+ import { useQuery } from "@umituz/react-native-design-system";
11
11
  import { useCallback, useMemo } from "react";
12
12
  import type { UserCredits } from "../../domain/entities/Credits";
13
13
  import {
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { useCallback } from "react";
7
- import { useMutation, useQueryClient } from "@tanstack/react-query";
7
+ import { useMutation, useQueryClient } from "@umituz/react-native-design-system";
8
8
  import type { UserCredits } from "../../domain/entities/Credits";
9
9
  import { getCreditsRepository } from "../../infrastructure/repositories/CreditsRepositoryProvider";
10
10
  import { creditsQueryKeys } from "./useCredits";
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { useCallback } from "react";
7
- import { useMutation, useQueryClient } from "@tanstack/react-query";
7
+ import { useMutation, useQueryClient } from "@umituz/react-native-design-system";
8
8
  import { getCreditsRepository } from "../../infrastructure/repositories/CreditsRepositoryProvider";
9
9
  import { creditsQueryKeys } from "./useCredits";
10
10
 
@@ -5,7 +5,7 @@
5
5
  * This provides the actual premium status based on entitlements, not credits.
6
6
  */
7
7
 
8
- import { useQuery } from "@tanstack/react-query";
8
+ import { useQuery } from "@umituz/react-native-design-system";
9
9
  import { SubscriptionManager } from "../../revenuecat/infrastructure/managers/SubscriptionManager";
10
10
 
11
11
  export const subscriptionStatusQueryKeys = {
@@ -3,7 +3,7 @@
3
3
  * TanStack mutation for initializing RevenueCat
4
4
  */
5
5
 
6
- import { useMutation, useQueryClient } from "@tanstack/react-query";
6
+ import { useMutation, useQueryClient } from "@umituz/react-native-design-system";
7
7
  import { SubscriptionManager } from '../../infrastructure/managers/SubscriptionManager';
8
8
  import { SUBSCRIPTION_QUERY_KEYS } from "./subscriptionQueryKeys";
9
9
 
@@ -4,7 +4,7 @@
4
4
  * Credits are initialized by CustomerInfoListener (not here to avoid duplicates)
5
5
  */
6
6
 
7
- import { useMutation, useQueryClient } from "@tanstack/react-query";
7
+ import { useMutation, useQueryClient } from "@umituz/react-native-design-system";
8
8
  import type { PurchasesPackage } from "react-native-purchases";
9
9
  import { useAlert } from "@umituz/react-native-design-system";
10
10
  import { SubscriptionManager } from "../../infrastructure/managers/SubscriptionManager";
@@ -4,7 +4,7 @@
4
4
  * Credits are initialized by CustomerInfoListener (not here to avoid duplicates)
5
5
  */
6
6
 
7
- import { useMutation, useQueryClient } from "@tanstack/react-query";
7
+ import { useMutation, useQueryClient } from "@umituz/react-native-design-system";
8
8
  import { SubscriptionManager } from "../../infrastructure/managers/SubscriptionManager";
9
9
  import { SUBSCRIPTION_QUERY_KEYS } from "./subscriptionQueryKeys";
10
10
  import { creditsQueryKeys } from "../../../presentation/hooks/useCredits";
@@ -3,7 +3,7 @@
3
3
  * TanStack query for fetching available packages
4
4
  */
5
5
 
6
- import { useQuery } from "@tanstack/react-query";
6
+ import { useQuery } from "@umituz/react-native-design-system";
7
7
  import { SubscriptionManager } from '../../infrastructure/managers/SubscriptionManager';
8
8
  import {
9
9
  SUBSCRIPTION_QUERY_KEYS,