@usercentrics/react-native-sdk 2.20.2 → 2.21.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  [Release Notes](https://docs.usercentrics.com/cmp_in_app_sdk/latest/about/history/)
2
2
 
3
+ ### 2.21.0 - Jun 18, 2025
4
+ ## Feature - Consent Mediation
5
+ * Added support for AppsFlyer SDK
6
+ * Added support for Singular SDK
7
+ ## Improvement - Exposing `category` field in `UsercentricsServiceConsent` object
8
+ ## iOS Bug Fixes:
9
+ * Accessibility improvements with VoiceOver and keyboard focus
10
+ * Fixed button sizes when expanding font size
11
+
12
+ ### 2.20.3 - May 30, 2025
13
+ ## Improvement: Accessibility Enhancements
14
+ * iOS: Enhanced VoiceOver support when expanding cards across all compliance frameworks.
15
+
3
16
  ### 2.20.2 - May 27, 2025
4
17
  ## Improvement: Accessibility Enhancements
5
18
  * Android & iOS: Implemented general accessibility improvements, including better color contrast, adjustments to touch target sizes, improved focus order, and fixes to prevent keyboard traps enhancing compatibility with assistive technologies and overall usability.
@@ -1,4 +1,4 @@
1
- def usercentrics_version = "2.20.2"
1
+ def usercentrics_version = "2.21.0"
2
2
  version usercentrics_version
3
3
 
4
4
  buildscript {
@@ -82,7 +82,8 @@ class RNUsercentricsModuleTest {
82
82
  type = UsercentricsConsentType.EXPLICIT,
83
83
  version = "1.0.1",
84
84
  isEssential = false,
85
- history = usercentricsConsentHistoryEntries
85
+ history = usercentricsConsentHistoryEntries,
86
+ category = "marketing",
86
87
  )
87
88
  ),
88
89
  geolocationRuleset = GeolocationRuleset(
@@ -21,7 +21,8 @@ internal class GetConsentsMock {
21
21
  123
22
22
  )
23
23
  ),
24
- isEssential = false
24
+ isEssential = false,
25
+ category = "marketing",
25
26
  )
26
27
  )
27
28
 
@@ -39,7 +40,8 @@ internal class GetConsentsMock {
39
40
  "type" to 0,
40
41
  "status" to false
41
42
  )
42
- )
43
+ ),
44
+ "category" to "marketing"
43
45
  )
44
46
  )
45
47
  }
@@ -27,7 +27,8 @@ internal class SaveDecisionsForTCFMock {
27
27
  123
28
28
  )
29
29
  ),
30
- isEssential = false
30
+ isEssential = false,
31
+ category = "marketing",
31
32
  )
32
33
  )
33
34
 
@@ -84,7 +85,8 @@ internal class SaveDecisionsForTCFMock {
84
85
  "type" to 0,
85
86
  "status" to false
86
87
  )
87
- )
88
+ ),
89
+ "category" to "marketing"
88
90
  )
89
91
  )
90
92
  }
@@ -32,6 +32,7 @@ internal fun UsercentricsServiceConsent.toWritableMap(): WritableMap {
32
32
  putString("dataProcessor", dataProcessor)
33
33
  putBoolean("isEssential", isEssential)
34
34
  putArray("history", history.toWritableArray())
35
+ putString("category", category)
35
36
  }
36
37
  }
37
38
 
@@ -15,7 +15,8 @@ public extension UsercentricsServiceConsent {
15
15
  "version": self.version,
16
16
  "dataProcessor": self.dataProcessor,
17
17
  "isEssential": self.isEssential,
18
- "history": self.history.toDictionary()
18
+ "history": self.history.toDictionary(),
19
+ "category": self.category
19
20
  ]
20
21
 
21
22
  if let type = self.type?.ordinal {
@@ -7,7 +7,8 @@ export declare class UsercentricsServiceConsent {
7
7
  type: UsercentricsConsentType;
8
8
  isEssential: boolean;
9
9
  history: UsercentricsConsentHistoryEntry[];
10
- constructor(templateId: string, status: boolean, dataProcessor: string, version: string, type: UsercentricsConsentType, isEssential: boolean, history: UsercentricsConsentHistoryEntry[]);
10
+ category: string;
11
+ constructor(templateId: string, status: boolean, dataProcessor: string, version: string, type: UsercentricsConsentType, isEssential: boolean, history: UsercentricsConsentHistoryEntry[], category: string);
11
12
  }
12
13
  export declare class UsercentricsConsentHistoryEntry {
13
14
  status: boolean;
@@ -1,5 +1,5 @@
1
1
  export class UsercentricsServiceConsent {
2
- constructor(templateId, status, dataProcessor, version, type, isEssential, history) {
2
+ constructor(templateId, status, dataProcessor, version, type, isEssential, history, category) {
3
3
  this.templateId = templateId;
4
4
  this.status = status;
5
5
  this.dataProcessor = dataProcessor;
@@ -7,6 +7,7 @@ export class UsercentricsServiceConsent {
7
7
  this.type = type;
8
8
  this.isEssential = isEssential;
9
9
  this.history = history;
10
+ this.category = category;
10
11
  }
11
12
  }
12
13
  export class UsercentricsConsentHistoryEntry {
@@ -1 +1 @@
1
- {"version":3,"file":"UsercentricsServiceConsent.js","sourceRoot":"","sources":["../../src/models/UsercentricsServiceConsent.tsx"],"names":[],"mappings":"AAEA,MAAM,OAAO,0BAA0B;IAUnC,YAAY,UAAkB,EAAE,MAAe,EAAE,aAAqB,EAAE,OAAe,EAAE,IAA6B,EAAE,WAAoB,EAAE,OAA0C;QACpL,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IAC1B,CAAC;CACJ;AAED,MAAM,OAAO,+BAA+B;IAMxC,YAAY,MAAe,EAAE,IAA6B,EAAE,iBAAyB;QACjF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;CACJ"}
1
+ {"version":3,"file":"UsercentricsServiceConsent.js","sourceRoot":"","sources":["../../src/models/UsercentricsServiceConsent.tsx"],"names":[],"mappings":"AAEA,MAAM,OAAO,0BAA0B;IAWnC,YAAY,UAAkB,EAAE,MAAe,EAAE,aAAqB,EAAE,OAAe,EAAE,IAA6B,EAAE,WAAoB,EAAE,OAA0C,EAAE,QAAgB;QACtM,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAED,MAAM,OAAO,+BAA+B;IAMxC,YAAY,MAAe,EAAE,IAA6B,EAAE,iBAAyB;QACjF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@usercentrics/react-native-sdk",
3
- "version": "2.20.2",
3
+ "version": "2.21.0",
4
4
  "description": "Usercentrics SDK",
5
5
  "homepage": "https://usercentrics.com",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "author": "Usercentrics <developer@usercentrics.com>",
9
9
  "iosPackageName": "react-native-usercentrics",
10
- "iosPackageVersion": "2.20.2",
10
+ "iosPackageVersion": "2.21.0",
11
11
  "license": "SEE LICENSE IN LICENSE",
12
12
  "files": [
13
13
  "android",