@redacto.io/consent-sdk-react-native 1.0.0 → 2.1.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,11 +1,12 @@
1
1
  {
2
2
  "name": "@redacto.io/consent-sdk-react-native",
3
- "version": "1.0.0",
4
- "description": "React Native SDK for integrating Redacto consent notices in mobile apps.",
3
+ "version": "2.1.0",
4
+ "description": "React Native SDK for integrating Redacto consent notices and privacy center in mobile apps.",
5
5
  "keywords": [
6
6
  "consent",
7
7
  "react-native",
8
8
  "privacy",
9
+ "privacy-center",
9
10
  "sdk",
10
11
  "redacto"
11
12
  ],
@@ -16,14 +17,23 @@
16
17
  "files": [
17
18
  "dist"
18
19
  ],
19
- "main": "dist/index.cjs",
20
+ "main": "dist/index.js",
20
21
  "module": "dist/index.mjs",
21
22
  "types": "dist/index.d.ts",
22
23
  "exports": {
23
24
  ".": {
24
25
  "types": "./dist/index.d.ts",
25
- "require": "./dist/index.cjs",
26
- "import": "./dist/index.mjs"
26
+ "react-native": "./src/index.ts",
27
+ "import": "./dist/index.mjs",
28
+ "require": "./dist/index.js",
29
+ "default": "./dist/index.mjs"
30
+ },
31
+ "./privacy-center": {
32
+ "types": "./dist/privacy-center.d.ts",
33
+ "react-native": "./src/privacy-center.ts",
34
+ "import": "./dist/privacy-center.mjs",
35
+ "require": "./dist/privacy-center.js",
36
+ "default": "./dist/privacy-center.mjs"
27
37
  }
28
38
  },
29
39
  "dependencies": {
@@ -33,10 +43,26 @@
33
43
  "react": "^18 || ^19",
34
44
  "react-native": ">=0.72",
35
45
  "react-native-svg": ">=13",
36
- "expo-av": ">=14"
46
+ "expo-audio": ">=0.4.0",
47
+ "@tanstack/react-query": "^5.0.0",
48
+ "i18next": "^23.0.0",
49
+ "react-i18next": "^13.0.0",
50
+ "dayjs": "^1.11.0"
37
51
  },
38
52
  "peerDependenciesMeta": {
39
- "expo-av": {
53
+ "expo-audio": {
54
+ "optional": true
55
+ },
56
+ "@tanstack/react-query": {
57
+ "optional": true
58
+ },
59
+ "i18next": {
60
+ "optional": true
61
+ },
62
+ "react-i18next": {
63
+ "optional": true
64
+ },
65
+ "dayjs": {
40
66
  "optional": true
41
67
  }
42
68
  },