@didomi/react-native 1.14.0 → 1.15.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.
@@ -124,5 +124,5 @@ dependencies {
124
124
 
125
125
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
126
126
 
127
- implementation "io.didomi.sdk:android:1.76.0"
127
+ implementation "io.didomi.sdk:android:1.77.0"
128
128
  }
@@ -24,6 +24,11 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
24
24
  private val reactContext: ReactContext = reactContext
25
25
  private val eventListener = object : EventListener() {
26
26
 
27
+ /**
28
+ * The consent status of the user has changed
29
+ */
30
+ override fun consentChanged(event: ConsentChangedEvent) = prepareEvent(EventTypes.CONSENT_CHANGED.event, null)
31
+
27
32
  /**
28
33
  * SDK has been successfully initialized
29
34
  */
@@ -34,11 +39,6 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
34
39
  */
35
40
  override fun error(event: ErrorEvent) = prepareEvent(EventTypes.ERROR.event, event.errorMessage)
36
41
 
37
- /**
38
- * The consent status of the user has changed
39
- */
40
- override fun consentChanged(event: ConsentChangedEvent) = prepareEvent(EventTypes.CONSENT_CHANGED.event, null)
41
-
42
42
  /**
43
43
  * The notice screen is being hidden
44
44
  */
@@ -50,27 +50,32 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
50
50
  override fun showNotice(event: ShowNoticeEvent) = prepareEvent(EventTypes.SHOW_NOTICE.event, null)
51
51
 
52
52
  /**
53
- * Click on agree on notice
53
+ * Click on agree from notice
54
54
  */
55
55
  override fun noticeClickAgree(event: NoticeClickAgreeEvent) = prepareEvent(EventTypes.NOTICE_CLICK_AGREE.event, null)
56
56
 
57
57
  /**
58
- * Click on disagree on the notice
58
+ * Click on disagree from the notice
59
59
  */
60
60
  override fun noticeClickDisagree(event: NoticeClickDisagreeEvent) = prepareEvent(EventTypes.NOTICE_CLICK_DISAGREE.event, null)
61
61
 
62
62
  /**
63
- * Click on learn more on notice
63
+ * Click on partners from the notice
64
64
  */
65
- override fun noticeClickMoreInfo(event: NoticeClickMoreInfoEvent) = prepareEvent(EventTypes.NOTICE_CLICK_MORE_INFO.event, null)
65
+ override fun noticeClickViewVendors(event: NoticeClickViewVendorsEvent) = prepareEvent(EventTypes.NOTICE_CLICK_VIEW_VENDORS.event, null)
66
66
 
67
67
  /**
68
- * Click on partners on the notice
68
+ * Click on SPI from the notice
69
69
  */
70
- override fun noticeClickViewVendors(event: NoticeClickViewVendorsEvent) = prepareEvent(EventTypes.NOTICE_CLICK_VIEW_VENDORS.event, null)
70
+ override fun noticeClickViewSPIPurposes(event: NoticeClickViewSPIPurposesEvent) = prepareEvent(EventTypes.NOTICE_CLICK_VIEW_SPI_PURPOSES.event, null)
71
+
72
+ /**
73
+ * Click on learn more from notice
74
+ */
75
+ override fun noticeClickMoreInfo(event: NoticeClickMoreInfoEvent) = prepareEvent(EventTypes.NOTICE_CLICK_MORE_INFO.event, null)
71
76
 
72
77
  /**
73
- * Click on privacy policy on the notice
78
+ * Click on privacy policy from the notice
74
79
  */
75
80
  override fun noticeClickPrivacyPolicy(event: NoticeClickPrivacyPolicyEvent) = prepareEvent(EventTypes.NOTICE_CLICK_PRIVACY_POLICY.event, null)
76
81
 
@@ -85,89 +90,119 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
85
90
  override fun showPreferences(event: ShowPreferencesEvent) = prepareEvent(EventTypes.SHOW_PREFERENCES.event, null)
86
91
 
87
92
  /**
88
- * Click on agree to all on preferences popup
93
+ * Click on view purposes from the preferences popup
89
94
  */
90
- override fun preferencesClickAgreeToAll(event: PreferencesClickAgreeToAllEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_AGREE_TO_ALL.event, null)
95
+ override fun preferencesClickViewPurposes(event: PreferencesClickViewPurposesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VIEW_PURPOSES.event, null)
91
96
 
92
97
  /**
93
- * Click on disagree to all on preferences popup
98
+ * Click view vendors on purposes view from preferences popup
94
99
  */
95
- override fun preferencesClickDisagreeToAll(event: PreferencesClickDisagreeToAllEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_DISAGREE_TO_ALL.event, null)
100
+ override fun preferencesClickViewVendors(event: PreferencesClickViewVendorsEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VIEW_VENDORS.event, null)
96
101
 
97
102
  /**
98
- * Click on agree to a purpose on preferences popup
103
+ * Click on view SPI purposes from the preferences popup
99
104
  */
100
- override fun preferencesClickPurposeAgree(event: PreferencesClickPurposeAgreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_PURPOSE_AGREE.event, event.purposeId)
105
+ override fun preferencesClickViewSPIPurposes(event: PreferencesClickViewSPIPurposesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VIEW_SPI_PURPOSES.event, null)
101
106
 
102
107
  /**
103
- * Click on disagree to a purpose on preferences popup
108
+ * Click on agree to all from preferences popup
104
109
  */
105
- override fun preferencesClickPurposeDisagree(event: PreferencesClickPurposeDisagreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_PURPOSE_DISAGREE.event, event.purposeId)
110
+ override fun preferencesClickAgreeToAll(event: PreferencesClickAgreeToAllEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_AGREE_TO_ALL.event, null)
106
111
 
107
112
  /**
108
- * Click view vendors on purposes view on preferences popup
113
+ * Click on disagree to all from preferences popup
109
114
  */
110
- override fun preferencesClickViewVendors(event: PreferencesClickViewVendorsEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VIEW_VENDORS.event, null)
115
+ override fun preferencesClickDisagreeToAll(event: PreferencesClickDisagreeToAllEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_DISAGREE_TO_ALL.event, null)
111
116
 
112
117
  /**
113
- * Click on save on the purposes view on preferences popup
118
+ * Flip ON all purposes switch from the preferences popup
114
119
  */
115
- override fun preferencesClickSaveChoices(event: PreferencesClickSaveChoicesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_SAVE_CHOICES.event, null)
120
+ override fun preferencesClickAgreeToAllPurposes(event: PreferencesClickAgreeToAllPurposesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_AGREE_TO_ALL_PURPOSES.event, null)
116
121
 
117
122
  /**
118
- * Click on agree to a vendor on preferences popup
123
+ * Flip OFF all purposes switch from the preferences popup
119
124
  */
120
- override fun preferencesClickVendorAgree(event: PreferencesClickVendorAgreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VENDOR_AGREE.event, event.vendorId)
125
+ override fun preferencesClickDisagreeToAllPurposes(event: PreferencesClickDisagreeToAllPurposesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_DISAGREE_TO_ALL_PURPOSES.event, null)
121
126
 
122
127
  /**
123
- * Click on disagree to a vendor on preferences popup
128
+ * Click on reset purposes from the preferences popup
124
129
  */
125
- override fun preferencesClickVendorDisagree(event: PreferencesClickVendorDisagreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VENDOR_DISAGREE.event, event.vendorId)
130
+ override fun preferencesClickResetAllPurposes(event: PreferencesClickResetAllPurposesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_RESET_ALL_PURPOSES.event, null)
131
+
132
+ /**
133
+ * Click on agree to a purpose from preferences popup
134
+ */
135
+ override fun preferencesClickPurposeAgree(event: PreferencesClickPurposeAgreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_PURPOSE_AGREE.event, event.purposeId)
126
136
 
127
137
  /**
128
- * Click on agree to a category on preferences popup
138
+ * Click on disagree to a purpose from preferences popup
139
+ */
140
+ override fun preferencesClickPurposeDisagree(event: PreferencesClickPurposeDisagreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_PURPOSE_DISAGREE.event, event.purposeId)
141
+
142
+ /**
143
+ * Click on agree to a category from preferences popup
129
144
  */
130
145
  override fun preferencesClickCategoryAgree(event: PreferencesClickCategoryAgreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_CATEGORY_AGREE.event, event.categoryId)
131
146
 
132
147
  /**
133
- * Click on disagree to a category on preferences popup
148
+ * Click on disagree to a category from preferences popup
134
149
  */
135
150
  override fun preferencesClickCategoryDisagree(event: PreferencesClickCategoryDisagreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_CATEGORY_DISAGREE.event, event.categoryId)
136
151
 
137
152
  /**
138
- * Click on agree to all vendors on preferences popup
153
+ * Click on save on the purposes view from preferences popup
154
+ */
155
+ override fun preferencesClickSaveChoices(event: PreferencesClickSaveChoicesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_SAVE_CHOICES.event, null)
156
+
157
+ /**
158
+ * Click on agree to all vendors from preferences popup
139
159
  */
140
160
  override fun preferencesClickAgreeToAllVendors(event: PreferencesClickAgreeToAllVendorsEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_AGREE_TO_ALL_VENDORS.event, null)
141
161
 
142
162
  /**
143
- * Click on disagree to all vendors on preferences popup
163
+ * Click on disagree to all vendors from preferences popup
144
164
  */
145
165
  override fun preferencesClickDisagreeToAllVendors(event: PreferencesClickDisagreeToAllVendorsEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_DISAGREE_TO_ALL_VENDORS.event, null)
146
166
 
147
167
  /**
148
- * Click on save on the vendors view on preferences popup
168
+ * Click on agree to a vendor from preferences popup
169
+ */
170
+ override fun preferencesClickVendorAgree(event: PreferencesClickVendorAgreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VENDOR_AGREE.event, event.vendorId)
171
+
172
+ /**
173
+ * Click on disagree to a vendor from preferences popup
174
+ */
175
+ override fun preferencesClickVendorDisagree(event: PreferencesClickVendorDisagreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VENDOR_DISAGREE.event, event.vendorId)
176
+
177
+ /**
178
+ * Click on save on the vendors view from preferences popup
149
179
  */
150
180
  override fun preferencesClickVendorSaveChoices(event: PreferencesClickVendorSaveChoicesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VENDOR_SAVE_CHOICES.event, null)
151
181
 
152
182
  /**
153
- * Click on view purposes on the preferences popup
183
+ * Click on agree to a SPI purpose from preferences popup
154
184
  */
155
- override fun preferencesClickViewPurposes(event: PreferencesClickViewPurposesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_VIEW_PURPOSES.event, null)
185
+ override fun preferencesClickSPIPurposeAgree(event: PreferencesClickSPIPurposeAgreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_SPI_PURPOSE_AGREE.event, event.purposeId)
156
186
 
157
187
  /**
158
- * Flip ON all purposes switch on the preferences popup
188
+ * Click on disagree to a SPI purpose from preferences popup
159
189
  */
160
- override fun preferencesClickAgreeToAllPurposes(event: PreferencesClickAgreeToAllPurposesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_AGREE_TO_ALL_PURPOSES.event, null)
190
+ override fun preferencesClickSPIPurposeDisagree(event: PreferencesClickSPIPurposeDisagreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_SPI_PURPOSE_DISAGREE.event, event.purposeId)
161
191
 
162
192
  /**
163
- * Flip OFF all purposes switch on the preferences popup
193
+ * Click on agree to a SPI category from preferences popup
164
194
  */
165
- override fun preferencesClickDisagreeToAllPurposes(event: PreferencesClickDisagreeToAllPurposesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_DISAGREE_TO_ALL_PURPOSES.event, null)
195
+ override fun preferencesClickSPICategoryAgree(event: PreferencesClickSPICategoryAgreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_SPI_CATEGORY_AGREE.event, event.categoryId)
166
196
 
167
197
  /**
168
- * Click on reset purposes on the preferences popup
198
+ * Click on disagree to a SPI category from preferences popup
169
199
  */
170
- override fun preferencesClickResetAllPurposes(event: PreferencesClickResetAllPurposesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_RESET_ALL_PURPOSES.event, null)
200
+ override fun preferencesClickSPICategoryDisagree(event: PreferencesClickSPICategoryDisagreeEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_SPI_CATEGORY_DISAGREE.event, event.categoryId)
201
+
202
+ /**
203
+ * Click on save on the SPI purposes view from preferences popup
204
+ */
205
+ override fun preferencesClickSPIPurposeSaveChoices(event: PreferencesClickSPIPurposeSaveChoicesEvent) = prepareEvent(EventTypes.PREFERENCES_CLICK_SPI_PURPOSE_SAVE_CHOICES.event, null)
171
206
 
172
207
  /**
173
208
  * Sync finished
@@ -1,39 +1,55 @@
1
1
  package com.reactnativedidomi
2
2
 
3
3
  enum class EventTypes(val event: String) {
4
- READY("on_ready"),
5
- READY_CALLBACK("on_ready_callback"),
4
+ // Internal
5
+ CONSENT_CHANGED("on_consent_changed"),
6
6
  ERROR("on_error"),
7
7
  ERROR_CALLBACK("on_error_callback"),
8
- CONSENT_CHANGED("on_consent_changed"),
8
+ READY("on_ready"),
9
+ READY_CALLBACK("on_ready_callback"),
10
+ // Notice
9
11
  HIDE_NOTICE("on_hide_notice"),
10
12
  SHOW_NOTICE("on_show_notice"),
11
13
  NOTICE_CLICK_AGREE("on_notice_click_agree"),
12
14
  NOTICE_CLICK_DISAGREE("on_notice_click_disagree"),
13
- NOTICE_CLICK_MORE_INFO("on_notice_click_more_info"),
14
15
  NOTICE_CLICK_VIEW_VENDORS("on_notice_click_view_vendors"),
16
+ NOTICE_CLICK_VIEW_SPI_PURPOSES("on_notice_click_view_spi_purposes"),
17
+ NOTICE_CLICK_MORE_INFO("on_notice_click_more_info"),
15
18
  NOTICE_CLICK_PRIVACY_POLICY("on_notice_click_privacy_policy"),
19
+ // Preferences
16
20
  HIDE_PREFERENCES("on_hide_preferences"),
17
21
  SHOW_PREFERENCES("on_show_preferences"),
22
+ // Preferences - Views
23
+ PREFERENCES_CLICK_VIEW_PURPOSES("on_preferences_click_view_purposes"),
24
+ PREFERENCES_CLICK_VIEW_VENDORS("on_preferences_click_view_vendors"),
25
+ PREFERENCES_CLICK_VIEW_SPI_PURPOSES("on_preferences_click_view_spi_purposes"),
26
+ // Preferences - Purpose
18
27
  PREFERENCES_CLICK_AGREE_TO_ALL("on_preferences_click_agree_to_all"),
19
28
  PREFERENCES_CLICK_DISAGREE_TO_ALL("on_preferences_click_disagree_to_all"),
29
+ PREFERENCES_CLICK_AGREE_TO_ALL_PURPOSES("on_preferences_click_agree_to_all_purposes"),
30
+ PREFERENCES_CLICK_DISAGREE_TO_ALL_PURPOSES("on_preferences_click_disagree_to_all_purposes"),
31
+ PREFERENCES_CLICK_RESET_ALL_PURPOSES("on_preferences_click_reset_all_purposes"),
20
32
  PREFERENCES_CLICK_PURPOSE_AGREE("on_preferences_click_purpose_agree"),
21
33
  PREFERENCES_CLICK_PURPOSE_DISAGREE("on_preferences_click_purpose_disagree"),
22
- PREFERENCES_CLICK_VIEW_VENDORS("on_preferences_click_view_vendors"),
23
- PREFERENCES_CLICK_SAVE_CHOICES("on_preferences_click_save_choices"),
24
- PREFERENCES_CLICK_VENDOR_AGREE("on_preferences_click_vendor_agree"),
25
- PREFERENCES_CLICK_VENDOR_DISAGREE("on_preferences_click_vendor_disagree"),
26
34
  PREFERENCES_CLICK_CATEGORY_AGREE("on_preferences_click_category_agree"),
27
35
  PREFERENCES_CLICK_CATEGORY_DISAGREE("on_preferences_click_category_disagree"),
36
+ PREFERENCES_CLICK_SAVE_CHOICES("on_preferences_click_save_choices"),
37
+ // Preferences - Vendor
28
38
  PREFERENCES_CLICK_AGREE_TO_ALL_VENDORS("on_preferences_click_agree_to_all_vendors"),
29
39
  PREFERENCES_CLICK_DISAGREE_TO_ALL_VENDORS("on_preferences_click_disagree_to_all_vendors"),
40
+ PREFERENCES_CLICK_VENDOR_AGREE("on_preferences_click_vendor_agree"),
41
+ PREFERENCES_CLICK_VENDOR_DISAGREE("on_preferences_click_vendor_disagree"),
30
42
  PREFERENCES_CLICK_VENDOR_SAVE_CHOICES("on_preferences_click_vendor_save_choices"),
31
- PREFERENCES_CLICK_VIEW_PURPOSES("on_preferences_click_view_purposes"),
32
- PREFERENCES_CLICK_AGREE_TO_ALL_PURPOSES("on_preferences_click_agree_to_all_purposes"),
33
- PREFERENCES_CLICK_DISAGREE_TO_ALL_PURPOSES("on_preferences_click_disagree_to_all_purposes"),
34
- PREFERENCES_CLICK_RESET_ALL_PURPOSES("on_preferences_click_reset_all_purposes"),
43
+ // Preferences - Sensitive Personal Information
44
+ PREFERENCES_CLICK_SPI_PURPOSE_AGREE("on_preferences_click_spi_purpose_agree"),
45
+ PREFERENCES_CLICK_SPI_PURPOSE_DISAGREE("on_preferences_click_spi_purpose_disagree"),
46
+ PREFERENCES_CLICK_SPI_CATEGORY_AGREE("on_preferences_click_spi_category_agree"),
47
+ PREFERENCES_CLICK_SPI_CATEGORY_DISAGREE("on_preferences_click_spi_category_disagree"),
48
+ PREFERENCES_CLICK_SPI_PURPOSE_SAVE_CHOICES("on_preferences_click_spi_purpose_save_choices"),
49
+ // Sync
35
50
  SYNC_DONE("on_sync_done"),
36
51
  SYNC_ERROR("on_sync_error"),
52
+ // Language
37
53
  LANGUAGE_UPDATED("on_language_updated"),
38
54
  LANGUAGE_UPDATE_FAILED("on_language_update_failed");
39
55
  }
@@ -631,39 +631,56 @@ extension RNDidomi {
631
631
 
632
632
  @objc(supportedEvents)
633
633
  override func supportedEvents() -> [String]! {
634
- return ["on_ready_callback",
635
- "on_error_callback",
634
+ return [
635
+ // Internal
636
636
  "on_consent_changed",
637
- "on_ready",
638
637
  "on_error",
638
+ "on_error_callback",
639
+ "on_ready",
640
+ "on_ready_callback",
641
+ // Notice
639
642
  "on_hide_notice",
640
643
  "on_show_notice",
641
644
  "on_notice_click_agree",
642
645
  "on_notice_click_disagree",
643
- "on_notice_click_more_info",
644
646
  "on_notice_click_view_vendors",
647
+ "on_notice_click_view_spi_purposes",
648
+ "on_notice_click_more_info",
645
649
  "on_notice_click_privacy_policy",
650
+ // Preferences
646
651
  "on_hide_preferences",
647
652
  "on_show_preferences",
653
+ // Preferences - Views
654
+ "on_preferences_click_view_purposes",
655
+ "on_preferences_click_view_vendors",
656
+ "on_preferences_click_view_spi_purposes",
657
+ // Preferences - Purpose
648
658
  "on_preferences_click_agree_to_all",
649
659
  "on_preferences_click_disagree_to_all",
650
660
  "on_preferences_click_agree_to_all_purposes",
651
661
  "on_preferences_click_disagree_to_all_purposes",
652
662
  "on_preferences_click_reset_all_purposes",
653
- "on_preferences_click_agree_to_all_vendors",
654
- "on_preferences_click_disagree_to_all_vendors",
655
663
  "on_preferences_click_purpose_agree",
656
664
  "on_preferences_click_purpose_disagree",
657
665
  "on_preferences_click_category_agree",
658
666
  "on_preferences_click_category_disagree",
659
- "on_preferences_click_view_vendors",
660
- "on_preferences_click_view_purposes",
661
667
  "on_preferences_click_save_choices",
668
+ // Preferences - Vendor
669
+ "on_preferences_click_agree_to_all_vendors",
670
+ "on_preferences_click_disagree_to_all_vendors",
662
671
  "on_preferences_click_vendor_agree",
663
672
  "on_preferences_click_vendor_disagree",
664
673
  "on_preferences_click_vendor_save_choices",
674
+ // Preferences - Sensitive Personal Information
675
+ "on_preferences_click_spi_purpose_agree",
676
+ "on_preferences_click_spi_purpose_disagree",
677
+ "on_preferences_click_spi_category_agree",
678
+ "on_preferences_click_spi_category_disagree",
679
+ "on_preferences_click_spi_purpose_save_choices",
680
+ // Sync
665
681
  "on_sync_done",
666
682
  "on_sync_error",
683
+ // Language
667
684
  "on_language_updated",
668
685
  "on_language_update_failed"
669
686
  ]
@@ -675,22 +692,22 @@ extension RNDidomi {
675
692
  self.dispatchEvent(withName: "on_consent_changed", body: "")
676
693
  }
677
694
 
678
- didomiEventListener.onReady = { event in
679
- self.dispatchEvent(withName: "on_ready", body: "")
680
- }
681
-
682
695
  didomiEventListener.onError = { event in
683
696
  self.dispatchEvent(withName: "on_error", body: event.descriptionText)
684
697
  }
685
698
 
686
- didomiEventListener.onShowNotice = { event in
687
- self.dispatchEvent(withName: "on_show_notice", body: "")
699
+ didomiEventListener.onReady = { event in
700
+ self.dispatchEvent(withName: "on_ready", body: "")
688
701
  }
689
702
 
690
703
  didomiEventListener.onHideNotice = { event in
691
704
  self.dispatchEvent(withName: "on_hide_notice", body: "")
692
705
  }
693
706
 
707
+ didomiEventListener.onShowNotice = { event in
708
+ self.dispatchEvent(withName: "on_show_notice", body: "")
709
+ }
710
+
694
711
  didomiEventListener.onNoticeClickAgree = { event in
695
712
  self.dispatchEvent(withName: "on_notice_click_agree", body: "")
696
713
  }
@@ -698,25 +715,41 @@ extension RNDidomi {
698
715
  didomiEventListener.onNoticeClickDisagree = { event in
699
716
  self.dispatchEvent(withName: "on_notice_click_disagree", body: "")
700
717
  }
701
-
702
- didomiEventListener.onNoticeClickMoreInfo = { event in
703
- self.dispatchEvent(withName: "on_notice_click_more_info", body: "")
704
- }
705
718
 
706
719
  didomiEventListener.onNoticeClickViewVendors = { event in
707
720
  self.dispatchEvent(withName: "on_notice_click_view_vendors", body: "")
708
721
  }
709
722
 
723
+ didomiEventListener.onNoticeClickViewSPIPurposes = { event in
724
+ self.dispatchEvent(withName: "on_notice_click_view_spi_purposes", body: "")
725
+ }
726
+
727
+ didomiEventListener.onNoticeClickMoreInfo = { event in
728
+ self.dispatchEvent(withName: "on_notice_click_more_info", body: "")
729
+ }
730
+
710
731
  didomiEventListener.onNoticeClickPrivacyPolicy = { event in
711
732
  self.dispatchEvent(withName: "on_notice_click_privacy_policy", body: "")
712
733
  }
713
734
 
735
+ didomiEventListener.onHidePreferences = { event in
736
+ self.dispatchEvent(withName: "on_hide_preferences", body: "")
737
+ }
738
+
714
739
  didomiEventListener.onShowPreferences = { event in
715
740
  self.dispatchEvent(withName: "on_show_preferences", body: "")
716
741
  }
717
742
 
718
- didomiEventListener.onHidePreferences = { event in
719
- self.dispatchEvent(withName: "on_hide_preferences", body: "")
743
+ didomiEventListener.onPreferencesClickViewPurposes = { event in
744
+ self.dispatchEvent(withName: "on_preferences_click_view_purposes", body: "")
745
+ }
746
+
747
+ didomiEventListener.onPreferencesClickViewVendors = { event in
748
+ self.dispatchEvent(withName: "on_preferences_click_view_vendors", body: "")
749
+ }
750
+
751
+ didomiEventListener.onPreferencesClickViewSPIPurposes = { event in
752
+ self.dispatchEvent(withName: "on_preferences_click_view_spi_purposes", body: "")
720
753
  }
721
754
 
722
755
  didomiEventListener.onPreferencesClickAgreeToAll = { event in
@@ -739,14 +772,6 @@ extension RNDidomi {
739
772
  self.dispatchEvent(withName: "on_preferences_click_reset_all_purposes", body: "")
740
773
  }
741
774
 
742
- didomiEventListener.onPreferencesClickAgreeToAllVendors = { event in
743
- self.dispatchEvent(withName: "on_preferences_click_agree_to_all_vendors", body: "")
744
- }
745
-
746
- didomiEventListener.onPreferencesClickDisagreeToAllVendors = { event in
747
- self.dispatchEvent(withName: "on_preferences_click_disagree_to_all_vendors", body: "")
748
- }
749
-
750
775
  didomiEventListener.onPreferencesClickPurposeAgree = { event, purposeId in
751
776
  self.dispatchEvent(withName: "on_preferences_click_purpose_agree", body: purposeId)
752
777
  }
@@ -763,16 +788,16 @@ extension RNDidomi {
763
788
  self.dispatchEvent(withName: "on_preferences_click_category_disagree", body: categoryId)
764
789
  }
765
790
 
766
- didomiEventListener.onPreferencesClickViewVendors = { event in
767
- self.dispatchEvent(withName: "on_preferences_click_view_vendors", body: "")
791
+ didomiEventListener.onPreferencesClickSaveChoices = { event in
792
+ self.dispatchEvent(withName: "on_preferences_click_save_choices", body: "")
768
793
  }
769
794
 
770
- didomiEventListener.onPreferencesClickViewPurposes = { event in
771
- self.dispatchEvent(withName: "on_preferences_click_view_purposes", body: "")
795
+ didomiEventListener.onPreferencesClickAgreeToAllVendors = { event in
796
+ self.dispatchEvent(withName: "on_preferences_click_agree_to_all_vendors", body: "")
772
797
  }
773
798
 
774
- didomiEventListener.onPreferencesClickSaveChoices = { event in
775
- self.dispatchEvent(withName: "on_preferences_click_save_choices", body: "")
799
+ didomiEventListener.onPreferencesClickDisagreeToAllVendors = { event in
800
+ self.dispatchEvent(withName: "on_preferences_click_disagree_to_all_vendors", body: "")
776
801
  }
777
802
 
778
803
  didomiEventListener.onPreferencesClickVendorAgree = { event, vendorId in
@@ -787,6 +812,26 @@ extension RNDidomi {
787
812
  self.dispatchEvent(withName: "on_preferences_click_vendor_save_choices", body: "")
788
813
  }
789
814
 
815
+ didomiEventListener.onPreferencesClickSPIPurposeAgree = { event, purposeId in
816
+ self.dispatchEvent(withName: "on_preferences_click_spi_purpose_agree", body: purposeId)
817
+ }
818
+
819
+ didomiEventListener.onPreferencesClickSPIPurposeDisagree = { event, purposeId in
820
+ self.dispatchEvent(withName: "on_preferences_click_spi_purpose_disagree", body: purposeId)
821
+ }
822
+
823
+ didomiEventListener.onPreferencesClickSPICategoryAgree = { event, categoryId in
824
+ self.dispatchEvent(withName: "on_preferences_click_spi_category_agree", body: categoryId)
825
+ }
826
+
827
+ didomiEventListener.onPreferencesClickSPICategoryDisagree = { event, categoryId in
828
+ self.dispatchEvent(withName: "on_preferences_click_spi_category_disagree", body: categoryId)
829
+ }
830
+
831
+ didomiEventListener.onPreferencesClickSPIPurposeSaveChoices = { event in
832
+ self.dispatchEvent(withName: "on_preferences_click_spi_purpose_save_choices", body: "")
833
+ }
834
+
790
835
  didomiEventListener.onSyncDone = { event, organizationUserId in
791
836
  self.dispatchEvent(withName: "on_sync_done", body: organizationUserId)
792
837
  }
@@ -8,6 +8,6 @@ exports.DIDOMI_VERSION = exports.DIDOMI_USER_AGENT_NAME = void 0;
8
8
  const DIDOMI_USER_AGENT_NAME = "Didomi React-Native SDK";
9
9
  // User agent version
10
10
  exports.DIDOMI_USER_AGENT_NAME = DIDOMI_USER_AGENT_NAME;
11
- const DIDOMI_VERSION = "1.14.0";
11
+ const DIDOMI_VERSION = "1.15.0";
12
12
  exports.DIDOMI_VERSION = DIDOMI_VERSION;
13
13
  //# sourceMappingURL=Constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DIDOMI_USER_AGENT_NAME","exports","DIDOMI_VERSION"],"sources":["Constants.ts"],"sourcesContent":["// User agent name\nexport const DIDOMI_USER_AGENT_NAME = \"Didomi React-Native SDK\"\n// User agent version\nexport const DIDOMI_VERSION = \"1.14.0\"\n"],"mappings":";;;;;;AAAA;AACO,MAAMA,sBAAsB,GAAG,yBAAyB;AAC/D;AAAAC,OAAA,CAAAD,sBAAA,GAAAA,sBAAA;AACO,MAAME,cAAc,GAAG,QAAQ;AAAAD,OAAA,CAAAC,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"names":["DIDOMI_USER_AGENT_NAME","exports","DIDOMI_VERSION"],"sources":["Constants.ts"],"sourcesContent":["// User agent name\nexport const DIDOMI_USER_AGENT_NAME = \"Didomi React-Native SDK\"\n// User agent version\nexport const DIDOMI_VERSION = \"1.15.0\"\n"],"mappings":";;;;;;AAAA;AACO,MAAMA,sBAAsB,GAAG,yBAAyB;AAC/D;AAAAC,OAAA,CAAAD,sBAAA,GAAAA,sBAAA;AACO,MAAME,cAAc,GAAG,QAAQ;AAAAD,OAAA,CAAAC,cAAA,GAAAA,cAAA"}
@@ -1,5 +1,5 @@
1
1
  // User agent name
2
2
  export const DIDOMI_USER_AGENT_NAME = "Didomi React-Native SDK";
3
3
  // User agent version
4
- export const DIDOMI_VERSION = "1.14.0";
4
+ export const DIDOMI_VERSION = "1.15.0";
5
5
  //# sourceMappingURL=Constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DIDOMI_USER_AGENT_NAME","DIDOMI_VERSION"],"sources":["Constants.ts"],"sourcesContent":["// User agent name\nexport const DIDOMI_USER_AGENT_NAME = \"Didomi React-Native SDK\"\n// User agent version\nexport const DIDOMI_VERSION = \"1.14.0\"\n"],"mappings":"AAAA;AACA,OAAO,MAAMA,sBAAsB,GAAG,yBAAyB;AAC/D;AACA,OAAO,MAAMC,cAAc,GAAG,QAAQ"}
1
+ {"version":3,"names":["DIDOMI_USER_AGENT_NAME","DIDOMI_VERSION"],"sources":["Constants.ts"],"sourcesContent":["// User agent name\nexport const DIDOMI_USER_AGENT_NAME = \"Didomi React-Native SDK\"\n// User agent version\nexport const DIDOMI_VERSION = \"1.15.0\"\n"],"mappings":"AAAA;AACA,OAAO,MAAMA,sBAAsB,GAAG,yBAAyB;AAC/D;AACA,OAAO,MAAMC,cAAc,GAAG,QAAQ"}
@@ -1,2 +1,2 @@
1
1
  export declare const DIDOMI_USER_AGENT_NAME = "Didomi React-Native SDK";
2
- export declare const DIDOMI_VERSION = "1.14.0";
2
+ export declare const DIDOMI_VERSION = "1.15.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@didomi/react-native",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "Didomi React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
 
18
18
  s.dependency "React-Core"
19
- s.dependency "Didomi-XCFramework", "1.86.0"
19
+ s.dependency "Didomi-XCFramework", "1.87.0"
20
20
  end
package/src/Constants.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  // User agent name
2
2
  export const DIDOMI_USER_AGENT_NAME = "Didomi React-Native SDK"
3
3
  // User agent version
4
- export const DIDOMI_VERSION = "1.14.0"
4
+ export const DIDOMI_VERSION = "1.15.0"