@soyio/soyio-rn-sdk 4.0.2 → 4.1.1

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/README.md CHANGED
@@ -354,6 +354,7 @@ export default function App() {
354
354
  // context: "<context>", // Optional: Additional context
355
355
  // optionalReconsentBehavior: "notice", // Optional
356
356
  // mandatoryReconsentBehavior: "notice", // Optional
357
+ // allowGranularScopeSelection: true, // Optional
357
358
  };
358
359
 
359
360
  const handleEvent = (event) => {
@@ -419,6 +420,7 @@ The `onEvent` callback receives events with the following structure:
419
420
  - **`context`**: (Optional) Additional information that will be saved with the consent. Useful when you want to track the consent from a specific context.
420
421
  - **`optionalReconsentBehavior`**: (Optional) Behavior when consent is already given on an optional category (`notice`, `askAgain`, `hide`).
421
422
  - **`mandatoryReconsentBehavior`**: (Optional) Behavior when consent is already given on a mandatory category (`notice`, `askAgain`).
423
+ - **`allowGranularScopeSelection`**: (Optional) If `true`, users can grant consent for individual scopes (for example products or branches) when the consent template supports multi-scope selection.
422
424
 
423
425
  ### 4. Customizing Appearance
424
426
 
@@ -52,6 +52,6 @@ dependencies {
52
52
  def kotlinVersion = safeExtGet('kotlinVersion', '1.8.0')
53
53
  implementation "com.facebook.react:react-native:+"
54
54
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
55
- implementation(name: "facetec-sdk-9.7.96", ext: "aar")
55
+ implementation(name: "facetec-sdk-9.7.114", ext: "aar")
56
56
  implementation "com.squareup.okhttp3:okhttp:3.12.13"
57
57
  }
@@ -57,6 +57,7 @@ export type ConsentParams = {
57
57
  context?: string;
58
58
  optionalReconsentBehavior?: 'notice' | 'askAgain' | 'hide';
59
59
  mandatoryReconsentBehavior?: 'notice' | 'askAgain';
60
+ allowGranularScopeSelection?: boolean;
60
61
  };
61
62
  export type SoyioWidgetBaseOptions = {
62
63
  uriScheme?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyio/soyio-rn-sdk",
3
- "version": "4.0.2",
3
+ "version": "4.1.1",
4
4
  "license": "MIT",
5
5
  "author": "Ignacio Méndez",
6
6
  "main": "./package/index.js",