@usercentrics/react-native-sdk 2.7.9 → 2.7.12
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 +22 -0
- package/android/build.gradle +3 -3
- package/android/src/androidTest/java/com/usercentrics/reactnativemodule/RNUsercentricsModuleTest.kt +82 -33
- package/android/src/androidTest/java/com/usercentrics/reactnativemodule/mock/GetCMPDataMock.kt +0 -131
- package/android/src/androidTest/java/com/usercentrics/reactnativemodule/mock/ReactContextProviderMock.kt +20 -0
- package/android/src/androidTest/res/drawable-hdpi/some_local_image.png +0 -0
- package/android/src/main/java/com/usercentrics/reactnativeusercentrics/RNUsercentricsModule.kt +16 -23
- package/android/src/main/java/com/usercentrics/reactnativeusercentrics/RNUsercentricsPackage.kt +5 -6
- package/android/src/main/java/com/usercentrics/reactnativeusercentrics/ReactContextProvider.kt +10 -0
- package/android/src/main/java/com/usercentrics/reactnativeusercentrics/ReactContextProviderImpl.kt +18 -0
- package/android/src/main/java/com/usercentrics/reactnativeusercentrics/extensions/BannerFontExtensions.kt +9 -9
- package/android/src/main/java/com/usercentrics/reactnativeusercentrics/extensions/BannerSettingsExtensions.kt +42 -41
- package/android/src/main/java/com/usercentrics/reactnativeusercentrics/extensions/UsercentricsCMPDataExtensions.kt +0 -42
- package/ios/Extensions/UsercentricsCMPData+Dict.swift +0 -42
- package/lib/models/CCPASettings.d.ts +1 -4
- package/lib/models/CCPASettings.js +1 -4
- package/lib/models/CCPASettings.js.map +1 -1
- package/lib/models/TCF2Settings.d.ts +1 -5
- package/lib/models/TCF2Settings.js +1 -5
- package/lib/models/TCF2Settings.js.map +1 -1
- package/lib/models/UsercentricsService.d.ts +1 -13
- package/lib/models/UsercentricsService.js +1 -13
- package/lib/models/UsercentricsService.js.map +1 -1
- package/lib/models/UsercentricsSettings.d.ts +3 -24
- package/lib/models/UsercentricsSettings.js +3 -24
- package/lib/models/UsercentricsSettings.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
package com.usercentrics.reactnativeusercentrics.extensions
|
|
2
2
|
|
|
3
|
-
import android.content.
|
|
3
|
+
import android.content.Context
|
|
4
4
|
import android.graphics.Color
|
|
5
5
|
import androidx.annotation.ColorInt
|
|
6
6
|
import com.facebook.react.bridge.ReadableMap
|
|
@@ -16,48 +16,51 @@ internal fun String.usercentricsLayoutFromEnumString(): UsercentricsLayout? {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
internal fun ReadableMap.bannerSettingsFromMap(
|
|
19
|
+
internal fun ReadableMap.bannerSettingsFromMap(context: Context): BannerSettings {
|
|
20
20
|
val rawFirstLayerStyleSettings = getMap("firstLayerStyleSettings")
|
|
21
21
|
val rawSecondLayerStyleSettings = getMap("secondLayerStyleSettings")
|
|
22
22
|
val rawGeneralStyleSettings = getMap("generalStyleSettings")
|
|
23
23
|
|
|
24
24
|
return BannerSettings(
|
|
25
|
-
firstLayerStyleSettings =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
rawSecondLayerStyleSettings?.secondLayerStyleSettingsFromMap(assetManager),
|
|
29
|
-
generalStyleSettings = rawGeneralStyleSettings?.generalStyleSettingsFromMap(assetManager),
|
|
25
|
+
firstLayerStyleSettings = rawFirstLayerStyleSettings?.firstLayerStyleSettingsFromMap(context),
|
|
26
|
+
secondLayerStyleSettings = rawSecondLayerStyleSettings?.secondLayerStyleSettingsFromMap(context),
|
|
27
|
+
generalStyleSettings = rawGeneralStyleSettings?.generalStyleSettingsFromMap(context),
|
|
30
28
|
variantName = getString("variantName"),
|
|
31
29
|
)
|
|
32
30
|
}
|
|
33
31
|
|
|
34
|
-
internal fun ReadableMap.bannerLogoFromMap(): UsercentricsImage? {
|
|
32
|
+
internal fun ReadableMap.bannerLogoFromMap(context: Context): UsercentricsImage? {
|
|
35
33
|
val logoPath = getString("logoPath") ?: return null
|
|
34
|
+
|
|
35
|
+
val drawableResId = context.resources.getIdentifier(logoPath, "drawable", context.packageName)
|
|
36
|
+
if (drawableResId != 0) {
|
|
37
|
+
return UsercentricsImage.ImageDrawableId(drawableResId)
|
|
38
|
+
}
|
|
36
39
|
return UsercentricsImage.ImageUrl(logoPath)
|
|
37
40
|
}
|
|
38
41
|
|
|
39
|
-
internal fun ReadableMap.firstLayerStyleSettingsFromMap(
|
|
42
|
+
internal fun ReadableMap.firstLayerStyleSettingsFromMap(context: Context): FirstLayerStyleSettings {
|
|
40
43
|
return FirstLayerStyleSettings(
|
|
41
44
|
layout = getString("layout")?.usercentricsLayoutFromEnumString(),
|
|
42
|
-
headerImage = getMap("headerImage")?.headerImageFromMap(),
|
|
43
|
-
title = getMap("title")?.titleFromMap(
|
|
44
|
-
message = getMap("message")?.messageFromMap(
|
|
45
|
-
buttonLayout = getMap("buttonLayout")?.buttonLayoutFromMap(
|
|
45
|
+
headerImage = getMap("headerImage")?.headerImageFromMap(context),
|
|
46
|
+
title = getMap("title")?.titleFromMap(context),
|
|
47
|
+
message = getMap("message")?.messageFromMap(context),
|
|
48
|
+
buttonLayout = getMap("buttonLayout")?.buttonLayoutFromMap(context),
|
|
46
49
|
backgroundColor = getString("backgroundColorHex")?.deserializeColor(),
|
|
47
50
|
overlayColor = getString("overlayColorHex")?.deserializeColor(),
|
|
48
51
|
cornerRadius = getIntOrNull("cornerRadius")
|
|
49
52
|
)
|
|
50
53
|
}
|
|
51
54
|
|
|
52
|
-
internal fun ReadableMap.headerImageFromMap(): HeaderImageSettings? {
|
|
55
|
+
internal fun ReadableMap.headerImageFromMap(context: Context): HeaderImageSettings? {
|
|
53
56
|
val isHidden = getBooleanOrNull("isHidden") ?: false
|
|
54
57
|
if (isHidden) {
|
|
55
58
|
return HeaderImageSettings.Hidden
|
|
56
59
|
}
|
|
57
60
|
|
|
58
|
-
val image = getMap("image")?.bannerLogoFromMap() ?: return null
|
|
59
|
-
|
|
61
|
+
val image = getMap("image")?.bannerLogoFromMap(context) ?: return null
|
|
60
62
|
val isExtended = getBooleanOrNull("isExtended") ?: false
|
|
63
|
+
|
|
61
64
|
return if (isExtended) {
|
|
62
65
|
HeaderImageSettings.ExtendedLogoSettings(image)
|
|
63
66
|
} else {
|
|
@@ -69,7 +72,9 @@ internal fun ReadableMap.headerImageFromMap(): HeaderImageSettings? {
|
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
|
|
72
|
-
internal fun ReadableMap.titleFromMap(
|
|
75
|
+
internal fun ReadableMap.titleFromMap(context: Context): TitleSettings {
|
|
76
|
+
val assetManager = context.assets
|
|
77
|
+
|
|
73
78
|
return TitleSettings(
|
|
74
79
|
alignment = getString("alignment")?.sectionAlignmentFromMap(),
|
|
75
80
|
textColor = getString("textColorHex")?.deserializeColor(),
|
|
@@ -78,7 +83,9 @@ internal fun ReadableMap.titleFromMap(assetManager: AssetManager): TitleSettings
|
|
|
78
83
|
)
|
|
79
84
|
}
|
|
80
85
|
|
|
81
|
-
internal fun ReadableMap.messageFromMap(
|
|
86
|
+
internal fun ReadableMap.messageFromMap(context: Context): MessageSettings {
|
|
87
|
+
val assetManager = context.assets
|
|
88
|
+
|
|
82
89
|
return MessageSettings(
|
|
83
90
|
font = assetManager.createFontFromName(getString("fontName")),
|
|
84
91
|
textSizeInSp = getDoubleOrNull("textSize")?.toFloat(),
|
|
@@ -93,19 +100,19 @@ internal fun String.sectionAlignmentFromMap(): SectionAlignment {
|
|
|
93
100
|
return SectionAlignment.valueOf(this)
|
|
94
101
|
}
|
|
95
102
|
|
|
96
|
-
internal fun ReadableMap.buttonLayoutFromMap(
|
|
97
|
-
assetManager: AssetManager
|
|
98
|
-
): ButtonLayout? {
|
|
103
|
+
internal fun ReadableMap.buttonLayoutFromMap(context: Context): ButtonLayout? {
|
|
99
104
|
val layout = getString("layout")
|
|
105
|
+
|
|
100
106
|
val buttons: List<List<ButtonSettings>> = getArray("buttons")?.let { buttonsArray ->
|
|
101
|
-
val buttonsList
|
|
107
|
+
val buttonsList = mutableListOf<List<ButtonSettings>>()
|
|
102
108
|
|
|
103
109
|
for (rowIndex in 0 until buttonsArray.size()) {
|
|
104
110
|
val listRow = mutableListOf<ButtonSettings>()
|
|
105
111
|
val row = buttonsArray.getArray(rowIndex)
|
|
112
|
+
|
|
106
113
|
for (rowElement in 0 until row.size()) {
|
|
107
114
|
val element = row.getMap(rowElement)
|
|
108
|
-
listRow.add(element.buttonSettingsFromMap(
|
|
115
|
+
listRow.add(element.buttonSettingsFromMap(context))
|
|
109
116
|
}
|
|
110
117
|
buttonsList.add(listRow)
|
|
111
118
|
}
|
|
@@ -115,28 +122,21 @@ internal fun ReadableMap.buttonLayoutFromMap(
|
|
|
115
122
|
|
|
116
123
|
when (layout) {
|
|
117
124
|
"ROW" -> {
|
|
118
|
-
return ButtonLayout.Row(
|
|
119
|
-
buttons.flatten()
|
|
120
|
-
)
|
|
125
|
+
return ButtonLayout.Row(buttons.flatten())
|
|
121
126
|
}
|
|
122
127
|
"COLUMN" -> {
|
|
123
|
-
return ButtonLayout.Column(
|
|
124
|
-
buttons.flatten()
|
|
125
|
-
)
|
|
128
|
+
return ButtonLayout.Column(buttons.flatten())
|
|
126
129
|
}
|
|
127
130
|
"GRID" -> {
|
|
128
|
-
return ButtonLayout.Grid(
|
|
129
|
-
buttons
|
|
130
|
-
)
|
|
131
|
+
return ButtonLayout.Grid(buttons)
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
|
-
|
|
134
134
|
return null
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
internal fun ReadableMap.buttonSettingsFromMap(
|
|
138
|
-
assetManager
|
|
139
|
-
|
|
137
|
+
internal fun ReadableMap.buttonSettingsFromMap(context: Context): ButtonSettings {
|
|
138
|
+
val assetManager = context.assets
|
|
139
|
+
|
|
140
140
|
return ButtonSettings(
|
|
141
141
|
type = getString("buttonType")!!.deserializeButtonType(),
|
|
142
142
|
isAllCaps = getBooleanOrNull("isAllCaps"),
|
|
@@ -152,15 +152,16 @@ internal fun String.deserializeButtonType(): ButtonType {
|
|
|
152
152
|
return ButtonType.valueOf(this)
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
internal fun ReadableMap.secondLayerStyleSettingsFromMap(
|
|
155
|
+
internal fun ReadableMap.secondLayerStyleSettingsFromMap(context: Context): SecondLayerStyleSettings {
|
|
156
156
|
return SecondLayerStyleSettings(
|
|
157
|
-
buttonLayout = getMap("buttonLayout")?.buttonLayoutFromMap(
|
|
157
|
+
buttonLayout = getMap("buttonLayout")?.buttonLayoutFromMap(context),
|
|
158
158
|
showCloseButton = getBoolean("showCloseButton"),
|
|
159
159
|
)
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
internal fun ReadableMap.generalStyleSettingsFromMap(
|
|
162
|
+
internal fun ReadableMap.generalStyleSettingsFromMap(context: Context): GeneralStyleSettings {
|
|
163
163
|
val rawToggleStyleSettings = getMap("toggleStyleSettings")
|
|
164
|
+
|
|
164
165
|
return GeneralStyleSettings(
|
|
165
166
|
textColor = getString("textColorHex")?.deserializeColor(),
|
|
166
167
|
layerBackgroundColor = getString("layerBackgroundColorHex")?.deserializeColor(),
|
|
@@ -169,8 +170,8 @@ internal fun ReadableMap.generalStyleSettingsFromMap(assetManager: AssetManager)
|
|
|
169
170
|
tabColor = getString("tabColorHex")?.deserializeColor(),
|
|
170
171
|
bordersColor = getString("bordersColorHex")?.deserializeColor(),
|
|
171
172
|
toggleStyleSettings = rawToggleStyleSettings?.toggleStyleSettingsFromMap(),
|
|
172
|
-
font = getMap("font")?.bannerFontFromMap(
|
|
173
|
-
logo = getMap("logo")?.bannerLogoFromMap(),
|
|
173
|
+
font = getMap("font")?.bannerFontFromMap(context = context),
|
|
174
|
+
logo = getMap("logo")?.bannerLogoFromMap(context = context),
|
|
174
175
|
links = getString("links")?.legalLinksFromEnumString(),
|
|
175
176
|
disableSystemBackButton = getBooleanOrNull("disableSystemBackButton")
|
|
176
177
|
)
|
|
@@ -22,36 +22,24 @@ private fun UsercentricsSettings.serialize(): WritableMap {
|
|
|
22
22
|
"showInitialViewForVersionChange" to showInitialViewForVersionChange,
|
|
23
23
|
"reshowBanner" to reshowBanner,
|
|
24
24
|
"displayOnlyForEU" to displayOnlyForEU,
|
|
25
|
-
"urlConsentInfo" to urlConsentInfo,
|
|
26
|
-
"updatedAt" to updatedAt,
|
|
27
25
|
"secondLayer" to secondLayer.serialize(),
|
|
28
26
|
"cookiePolicyUrl" to cookiePolicyUrl,
|
|
29
27
|
"tcf2" to tcf2?.serialize(),
|
|
30
28
|
"ccpa" to ccpa?.serialize(),
|
|
31
|
-
"btnDenyIsVisible" to btnDenyIsVisible,
|
|
32
29
|
"privacyPolicyUrl" to privacyPolicyUrl,
|
|
33
30
|
"firstLayer" to firstLayer?.serialize(),
|
|
34
|
-
"showLanguageDropdown" to showLanguageDropdown,
|
|
35
31
|
"imprintUrl" to imprintUrl,
|
|
36
|
-
"btnMoreInfoIsVisible" to btnMoreInfoIsVisible,
|
|
37
32
|
"firstLayerDescriptionHtml" to firstLayerDescriptionHtml,
|
|
38
33
|
"bannerMobileDescriptionIsActive" to bannerMobileDescriptionIsActive,
|
|
39
|
-
"dataController" to dataController,
|
|
40
34
|
"firstLayerMobileDescriptionHtml" to firstLayerMobileDescriptionHtml,
|
|
41
35
|
"version" to version,
|
|
42
|
-
"isLatest" to isLatest,
|
|
43
36
|
"language" to language,
|
|
44
37
|
"tcf2Enabled" to tcf2Enabled,
|
|
45
38
|
"settingsId" to settingsId,
|
|
46
39
|
"languagesAvailable" to languagesAvailable,
|
|
47
|
-
"createdAt" to createdAt,
|
|
48
40
|
"enablePoweredBy" to enablePoweredBy,
|
|
49
41
|
"editableLanguages" to editableLanguages,
|
|
50
|
-
"partnerPoweredByLogoUrl" to partnerPoweredByLogoUrl,
|
|
51
42
|
"customization" to customization?.serialize(),
|
|
52
|
-
"moreInfoButtonUrl" to moreInfoButtonUrl,
|
|
53
|
-
"iabConsentIsActive" to iabConsentIsActive,
|
|
54
|
-
"partnerPoweredByUrl" to partnerPoweredByUrl,
|
|
55
43
|
).toWritableMap()
|
|
56
44
|
}
|
|
57
45
|
|
|
@@ -132,14 +120,11 @@ private fun CCPASettings.serialize(): WritableMap {
|
|
|
132
120
|
"firstLayerTitle" to firstLayerTitle,
|
|
133
121
|
"isActive" to isActive,
|
|
134
122
|
"showOnPageLoad" to showOnPageLoad,
|
|
135
|
-
"reshowCMP" to reshowCMP,
|
|
136
123
|
"reshowAfterDays" to reshowAfterDays,
|
|
137
124
|
"iabAgreementExists" to iabAgreementExists,
|
|
138
|
-
"firstLayerDescription" to firstLayerDescription,
|
|
139
125
|
"appFirstLayerDescription" to appFirstLayerDescription,
|
|
140
126
|
"firstLayerMobileDescriptionIsActive" to firstLayerMobileDescriptionIsActive,
|
|
141
127
|
"firstLayerMobileDescription" to firstLayerMobileDescription,
|
|
142
|
-
"firstLayerHideLanguageSwitch" to firstLayerHideLanguageSwitch,
|
|
143
128
|
"secondLayerTitle" to secondLayerTitle,
|
|
144
129
|
"secondLayerDescription" to secondLayerDescription,
|
|
145
130
|
"secondLayerHideLanguageSwitch" to secondLayerHideLanguageSwitch,
|
|
@@ -183,8 +168,6 @@ private fun TCF2Settings.serialize(): WritableMap {
|
|
|
183
168
|
"purposeOneTreatment" to purposeOneTreatment,
|
|
184
169
|
"selectedVendorIds" to selectedVendorIds,
|
|
185
170
|
"gdprApplies" to gdprApplies,
|
|
186
|
-
"consensuDomain" to consensuDomain,
|
|
187
|
-
"consensuScriptPath" to consensuScriptPath,
|
|
188
171
|
"selectedStacks" to selectedStacks,
|
|
189
172
|
"disabledSpecialFeatures" to disabledSpecialFeatures,
|
|
190
173
|
"firstLayerShowDescriptions" to firstLayerShowDescriptions,
|
|
@@ -192,14 +175,12 @@ private fun TCF2Settings.serialize(): WritableMap {
|
|
|
192
175
|
"resurfacePeriodEnded" to resurfacePeriodEnded,
|
|
193
176
|
"resurfacePurposeChanged" to resurfacePurposeChanged,
|
|
194
177
|
"resurfaceVendorAdded" to resurfaceVendorAdded,
|
|
195
|
-
"vendorToggleAll" to vendorToggleAll,
|
|
196
178
|
"firstLayerDescription" to firstLayerDescription,
|
|
197
179
|
"firstLayerAdditionalInfo" to firstLayerAdditionalInfo,
|
|
198
180
|
"secondLayerDescription" to secondLayerDescription,
|
|
199
181
|
"togglesSpecialFeaturesToggleOn" to togglesSpecialFeaturesToggleOn,
|
|
200
182
|
"togglesSpecialFeaturesToggleOff" to togglesSpecialFeaturesToggleOff,
|
|
201
183
|
"appLayerNoteResurface" to appLayerNoteResurface,
|
|
202
|
-
"firstLayerNoteGlobal" to firstLayerNoteGlobal,
|
|
203
184
|
"firstLayerNoteResurface" to firstLayerNoteResurface,
|
|
204
185
|
).toWritableMap()
|
|
205
186
|
}
|
|
@@ -210,7 +191,6 @@ private fun UsercentricsCustomization.serialize(): WritableMap {
|
|
|
210
191
|
"font" to font?.serialize(),
|
|
211
192
|
"logoUrl" to logoUrl,
|
|
212
193
|
"borderRadiusLayer" to borderRadiusLayer,
|
|
213
|
-
"useBackgroundShadow" to useBackgroundShadow,
|
|
214
194
|
"borderRadiusButton" to borderRadiusButton,
|
|
215
195
|
"overlayOpacity" to overlayOpacity,
|
|
216
196
|
).toWritableMap()
|
|
@@ -251,13 +231,7 @@ private fun CustomizationColor.serialize(): WritableMap {
|
|
|
251
231
|
|
|
252
232
|
private fun FirstLayer.serialize(): WritableMap {
|
|
253
233
|
return mapOf(
|
|
254
|
-
"isOverlayEnabled" to isOverlayEnabled,
|
|
255
|
-
"isCategoryTogglesEnabled" to isCategoryTogglesEnabled,
|
|
256
234
|
"hideButtonDeny" to hideButtonDeny,
|
|
257
|
-
"hideLanguageSwitch" to hideLanguageSwitch,
|
|
258
|
-
"title" to title,
|
|
259
|
-
"descriptionDefault" to descriptionDefault,
|
|
260
|
-
"descriptionShort" to descriptionShort,
|
|
261
235
|
).toWritableMap()
|
|
262
236
|
}
|
|
263
237
|
|
|
@@ -267,9 +241,6 @@ private fun SecondLayer.serialize(): WritableMap {
|
|
|
267
241
|
"tabsCategoriesLabel" to tabsCategoriesLabel,
|
|
268
242
|
"tabsServicesLabel" to tabsServicesLabel,
|
|
269
243
|
// Optional
|
|
270
|
-
"isOverlayEnabled" to isOverlayEnabled,
|
|
271
|
-
"tabsCategoriesIsEnabled" to tabsCategoriesIsEnabled,
|
|
272
|
-
"tabsServicesIsEnabled" to tabsServicesIsEnabled,
|
|
273
244
|
"hideButtonDeny" to hideButtonDeny,
|
|
274
245
|
"hideLanguageSwitch" to hideLanguageSwitch,
|
|
275
246
|
).toWritableMap()
|
|
@@ -294,32 +265,19 @@ private fun UsercentricsService.serialize(): WritableMap {
|
|
|
294
265
|
"legalBasisList" to legalBasisList,
|
|
295
266
|
"retentionPeriodList" to retentionPeriodList,
|
|
296
267
|
"subConsents" to subConsents,
|
|
297
|
-
"cookieNames" to cookieNames,
|
|
298
268
|
"language" to language,
|
|
299
|
-
"isLatest" to isLatest,
|
|
300
|
-
"isShared" to isShared,
|
|
301
|
-
"shareCustomConsent" to shareCustomConsent,
|
|
302
269
|
"linkToDpa" to linkToDpa,
|
|
303
|
-
"defaultConsentStatus" to defaultConsentStatus,
|
|
304
270
|
"legalGround" to legalGround,
|
|
305
271
|
"optOutUrl" to optOutUrl,
|
|
306
272
|
"policyOfProcessorUrl" to policyOfProcessorUrl,
|
|
307
273
|
"categorySlug" to categorySlug,
|
|
308
|
-
"retentionPeriod" to retentionPeriod,
|
|
309
274
|
"retentionPeriodDescription" to retentionPeriodDescription,
|
|
310
|
-
"iabId" to iabId,
|
|
311
|
-
"iabv2Id" to iabv2Id,
|
|
312
275
|
"dataProtectionOfficer" to dataProtectionOfficer,
|
|
313
276
|
"privacyPolicyURL" to privacyPolicyURL,
|
|
314
277
|
"cookiePolicyURL" to cookiePolicyURL,
|
|
315
278
|
"locationOfProcessing" to locationOfProcessing,
|
|
316
279
|
"dataCollectedDescription" to dataCollectedDescription,
|
|
317
|
-
"dataPurposesDescription" to dataPurposesDescription,
|
|
318
|
-
"dataRecipientsDescription" to dataRecipientsDescription,
|
|
319
|
-
"legalBasisDescription" to legalBasisDescription,
|
|
320
|
-
"optOutDescription" to optOutDescription,
|
|
321
280
|
"thirdCountryTransfer" to thirdCountryTransfer,
|
|
322
|
-
"defaultCategoryLabel" to defaultCategoryLabel,
|
|
323
281
|
"description" to description,
|
|
324
282
|
"cookieMaxAgeSeconds" to cookieMaxAgeSeconds,
|
|
325
283
|
"usesNonCookieAccess" to usesNonCookieAccess,
|
|
@@ -20,36 +20,24 @@ extension UsercentricsSettings {
|
|
|
20
20
|
"showInitialViewForVersionChange": self.showInitialViewForVersionChange,
|
|
21
21
|
"reshowBanner": self.reshowBanner as Any,
|
|
22
22
|
"displayOnlyForEU" : self.displayOnlyForEU,
|
|
23
|
-
"urlConsentInfo" : self.urlConsentInfo,
|
|
24
|
-
"updatedAt" : self.updatedAt as Any,
|
|
25
23
|
"secondLayer" : self.secondLayer.toDictionary() as Any,
|
|
26
24
|
"cookiePolicyUrl": self.cookiePolicyUrl as Any,
|
|
27
25
|
"tcf2": self.tcf2?.toDictionary() as Any,
|
|
28
26
|
"ccpa": self.ccpa?.toDictionary() as Any,
|
|
29
|
-
"btnDenyIsVisible": self.btnDenyIsVisible as Any,
|
|
30
27
|
"privacyPolicyUrl": self.privacyPolicyUrl as Any,
|
|
31
28
|
"firstLayer": self.firstLayer?.toDictionary() as Any,
|
|
32
|
-
"showLanguageDropdown": self.showLanguageDropdown,
|
|
33
29
|
"imprintUrl": self.imprintUrl as Any,
|
|
34
|
-
"btnMoreInfoIsVisible": self.btnMoreInfoIsVisible,
|
|
35
30
|
"firstLayerDescriptionHtml": self.firstLayerDescriptionHtml as Any,
|
|
36
31
|
"bannerMobileDescriptionIsActive": self.bannerMobileDescriptionIsActive,
|
|
37
|
-
"dataController": self.dataController as Any,
|
|
38
32
|
"firstLayerMobileDescriptionHtml": self.firstLayerMobileDescriptionHtml as Any,
|
|
39
33
|
"version": self.version,
|
|
40
|
-
"isLatest": self.isLatest?.boolValue as Any,
|
|
41
34
|
"language" : self.language,
|
|
42
35
|
"tcf2Enabled" : self.tcf2Enabled,
|
|
43
36
|
"settingsId" : self.settingsId,
|
|
44
37
|
"languagesAvailable" : self.languagesAvailable,
|
|
45
|
-
"createdAt" : self.createdAt as Any,
|
|
46
38
|
"enablePoweredBy" : self.enablePoweredBy,
|
|
47
39
|
"editableLanguages" : self.editableLanguages,
|
|
48
|
-
"partnerPoweredByLogoUrl" : self.partnerPoweredByLogoUrl,
|
|
49
40
|
"customization" : self.customization?.toDictionary() as Any,
|
|
50
|
-
"moreInfoButtonUrl" : self.moreInfoButtonUrl,
|
|
51
|
-
"iabConsentIsActive" : self.iabConsentIsActive,
|
|
52
|
-
"partnerPoweredByUrl" : self.partnerPoweredByUrl,
|
|
53
41
|
]
|
|
54
42
|
}
|
|
55
43
|
}
|
|
@@ -134,14 +122,11 @@ extension CCPASettings {
|
|
|
134
122
|
"firstLayerTitle" : self.firstLayerTitle,
|
|
135
123
|
"isActive" : self.isActive,
|
|
136
124
|
"showOnPageLoad" : self.showOnPageLoad,
|
|
137
|
-
"reshowCMP" : self.reshowCMP,
|
|
138
125
|
"reshowAfterDays" : self.reshowAfterDays,
|
|
139
126
|
"iabAgreementExists" : self.iabAgreementExists,
|
|
140
|
-
"firstLayerDescription" : self.firstLayerDescription as Any,
|
|
141
127
|
"appFirstLayerDescription" : self.appFirstLayerDescription as Any,
|
|
142
128
|
"firstLayerMobileDescriptionIsActive" : self.firstLayerMobileDescriptionIsActive,
|
|
143
129
|
"firstLayerMobileDescription" : self.firstLayerMobileDescription as Any,
|
|
144
|
-
"firstLayerHideLanguageSwitch" : self.firstLayerHideLanguageSwitch,
|
|
145
130
|
"secondLayerTitle" : self.secondLayerTitle as Any,
|
|
146
131
|
"secondLayerDescription" : self.secondLayerDescription as Any,
|
|
147
132
|
"secondLayerHideLanguageSwitch" : self.secondLayerHideLanguageSwitch,
|
|
@@ -188,8 +173,6 @@ extension TCF2Settings {
|
|
|
188
173
|
"purposeOneTreatment" : self.purposeOneTreatment,
|
|
189
174
|
"selectedVendorIds" : self.selectedVendorIds,
|
|
190
175
|
"gdprApplies" : self.gdprApplies,
|
|
191
|
-
"consensuDomain" : self.consensuDomain as Any,
|
|
192
|
-
"consensuScriptPath" : self.consensuScriptPath as Any,
|
|
193
176
|
"selectedStacks" : self.selectedStacks,
|
|
194
177
|
"disabledSpecialFeatures" : self.disabledSpecialFeatures,
|
|
195
178
|
"firstLayerShowDescriptions" : self.firstLayerShowDescriptions,
|
|
@@ -197,14 +180,12 @@ extension TCF2Settings {
|
|
|
197
180
|
"resurfacePeriodEnded" : self.resurfacePeriodEnded,
|
|
198
181
|
"resurfacePurposeChanged" : self.resurfacePurposeChanged,
|
|
199
182
|
"resurfaceVendorAdded" : self.resurfaceVendorAdded,
|
|
200
|
-
"vendorToggleAll" : self.vendorToggleAll,
|
|
201
183
|
"firstLayerDescription" : self.firstLayerDescription as Any,
|
|
202
184
|
"firstLayerAdditionalInfo" : self.firstLayerAdditionalInfo as Any,
|
|
203
185
|
"secondLayerDescription" : self.secondLayerDescription as Any,
|
|
204
186
|
"togglesSpecialFeaturesToggleOn" : self.togglesSpecialFeaturesToggleOn as Any,
|
|
205
187
|
"togglesSpecialFeaturesToggleOff" : self.togglesSpecialFeaturesToggleOff as Any,
|
|
206
188
|
"appLayerNoteResurface" : self.appLayerNoteResurface as Any,
|
|
207
|
-
"firstLayerNoteGlobal" : self.firstLayerNoteGlobal as Any,
|
|
208
189
|
"firstLayerNoteResurface" : self.firstLayerNoteResurface as Any,
|
|
209
190
|
]
|
|
210
191
|
}
|
|
@@ -218,7 +199,6 @@ extension UsercentricsCustomization {
|
|
|
218
199
|
"font" : self.font?.toDictionary() as Any,
|
|
219
200
|
"logoUrl" : self.logoUrl as Any,
|
|
220
201
|
"borderRadiusLayer" : self.borderRadiusLayer as Any,
|
|
221
|
-
"useBackgroundShadow" : self.useBackgroundShadow?.boolValue as Any,
|
|
222
202
|
"borderRadiusButton" : self.borderRadiusButton as Any,
|
|
223
203
|
"overlayOpacity" : self.overlayOpacity as Any,
|
|
224
204
|
]
|
|
@@ -271,13 +251,7 @@ extension CustomizationColor {
|
|
|
271
251
|
extension FirstLayer {
|
|
272
252
|
func toDictionary() -> NSDictionary {
|
|
273
253
|
return [
|
|
274
|
-
"isOverlayEnabled" : isOverlayEnabled?.boolValue as Any,
|
|
275
|
-
"isCategoryTogglesEnabled" : isCategoryTogglesEnabled?.boolValue as Any,
|
|
276
254
|
"hideButtonDeny" : hideButtonDeny?.boolValue as Any,
|
|
277
|
-
"hideLanguageSwitch" : hideLanguageSwitch?.boolValue as Any,
|
|
278
|
-
"title" : self.title as Any,
|
|
279
|
-
"descriptionDefault" : self.descriptionDefault as Any,
|
|
280
|
-
"descriptionShort" : self.descriptionShort as Any,
|
|
281
255
|
]
|
|
282
256
|
}
|
|
283
257
|
}
|
|
@@ -290,9 +264,6 @@ extension SecondLayer {
|
|
|
290
264
|
// Required
|
|
291
265
|
"tabsCategoriesLabel" : self.tabsCategoriesLabel,
|
|
292
266
|
"tabsServicesLabel" : self.tabsServicesLabel,
|
|
293
|
-
"isOverlayEnabled" : isOverlayEnabled?.boolValue as Any,
|
|
294
|
-
"tabsCategoriesIsEnabled" : tabsCategoriesIsEnabled?.boolValue as Any,
|
|
295
|
-
"tabsServicesIsEnabled" : tabsServicesIsEnabled?.boolValue as Any,
|
|
296
267
|
"hideButtonDeny" : hideButtonDeny?.boolValue as Any,
|
|
297
268
|
"hideLanguageSwitch" : hideLanguageSwitch?.boolValue as Any
|
|
298
269
|
]
|
|
@@ -321,32 +292,19 @@ extension UsercentricsService {
|
|
|
321
292
|
"legalBasisList" : self.legalBasisList,
|
|
322
293
|
"retentionPeriodList" : self.retentionPeriodList,
|
|
323
294
|
"subConsents" : self.subConsents as Any,
|
|
324
|
-
"cookieNames" : self.cookieNames as Any,
|
|
325
295
|
"language" : self.language,
|
|
326
|
-
"isLatest" : isLatest?.boolValue as Any,
|
|
327
|
-
"isShared" : isShared?.boolValue as Any,
|
|
328
|
-
"shareCustomConsent" : self.shareCustomConsent as Any,
|
|
329
296
|
"linkToDpa" : self.linkToDpa,
|
|
330
|
-
"defaultConsentStatus" : defaultConsentStatus?.boolValue as Any,
|
|
331
297
|
"legalGround" : self.legalGround,
|
|
332
298
|
"optOutUrl" : self.optOutUrl,
|
|
333
299
|
"policyOfProcessorUrl" : self.policyOfProcessorUrl,
|
|
334
300
|
"categorySlug" : self.categorySlug as Any,
|
|
335
|
-
"retentionPeriod" : self.retentionPeriod as Any,
|
|
336
301
|
"retentionPeriodDescription" : self.retentionPeriodDescription,
|
|
337
|
-
"iabId" : self.iabId as Any,
|
|
338
|
-
"iabv2Id" : self.iabv2Id as Any,
|
|
339
302
|
"dataProtectionOfficer" : self.dataProtectionOfficer,
|
|
340
303
|
"privacyPolicyURL" : self.privacyPolicyURL,
|
|
341
304
|
"cookiePolicyURL" : self.cookiePolicyURL,
|
|
342
305
|
"locationOfProcessing" : self.locationOfProcessing,
|
|
343
306
|
"dataCollectedDescription" : self.dataCollectedDescription as Any,
|
|
344
|
-
"dataPurposesDescription" : self.dataPurposesDescription as Any,
|
|
345
|
-
"dataRecipientsDescription" : self.dataRecipientsDescription as Any,
|
|
346
|
-
"legalBasisDescription" : self.legalBasisDescription as Any,
|
|
347
|
-
"optOutDescription" : self.optOutDescription as Any,
|
|
348
307
|
"thirdCountryTransfer" : self.thirdCountryTransfer,
|
|
349
|
-
"defaultCategoryLabel" : self.defaultCategoryLabel as Any,
|
|
350
308
|
"description" : self.description,
|
|
351
309
|
"cookieMaxAgeSeconds" : self.cookieMaxAgeSeconds as Any,
|
|
352
310
|
"usesNonCookieAccess" : usesNonCookieAccess?.boolValue as Any,
|
|
@@ -4,17 +4,14 @@ export declare class CCPASettings {
|
|
|
4
4
|
firstLayerTitle: string;
|
|
5
5
|
isActive: boolean;
|
|
6
6
|
showOnPageLoad: boolean;
|
|
7
|
-
reshowCMP: boolean;
|
|
8
7
|
reshowAfterDays: number;
|
|
9
8
|
iabAgreementExists: boolean;
|
|
10
|
-
firstLayerDescription: string;
|
|
11
9
|
appFirstLayerDescription: string;
|
|
12
10
|
firstLayerMobileDescriptionIsActive: boolean;
|
|
13
11
|
firstLayerMobileDescription: string;
|
|
14
|
-
firstLayerHideLanguageSwitch: boolean;
|
|
15
12
|
secondLayerTitle: string;
|
|
16
13
|
secondLayerDescription: string;
|
|
17
14
|
secondLayerHideLanguageSwitch: boolean;
|
|
18
15
|
btnMoreInfo: string;
|
|
19
|
-
constructor(optOutNoticeLabel: string, btnSave: string, firstLayerTitle: string, isActive: boolean, showOnPageLoad: boolean,
|
|
16
|
+
constructor(optOutNoticeLabel: string, btnSave: string, firstLayerTitle: string, isActive: boolean, showOnPageLoad: boolean, reshowAfterDays: number, iabAgreementExists: boolean, appFirstLayerDescription: string, firstLayerMobileDescriptionIsActive: boolean, firstLayerMobileDescription: string, secondLayerTitle: string, secondLayerDescription: string, secondLayerHideLanguageSwitch: boolean, btnMoreInfo: string);
|
|
20
17
|
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
export class CCPASettings {
|
|
2
|
-
constructor(optOutNoticeLabel, btnSave, firstLayerTitle, isActive, showOnPageLoad,
|
|
2
|
+
constructor(optOutNoticeLabel, btnSave, firstLayerTitle, isActive, showOnPageLoad, reshowAfterDays, iabAgreementExists, appFirstLayerDescription, firstLayerMobileDescriptionIsActive, firstLayerMobileDescription, secondLayerTitle, secondLayerDescription, secondLayerHideLanguageSwitch, btnMoreInfo) {
|
|
3
3
|
this.optOutNoticeLabel = optOutNoticeLabel;
|
|
4
4
|
this.btnSave = btnSave;
|
|
5
5
|
this.firstLayerTitle = firstLayerTitle;
|
|
6
6
|
this.isActive = isActive;
|
|
7
7
|
this.showOnPageLoad = showOnPageLoad;
|
|
8
|
-
this.reshowCMP = reshowCMP;
|
|
9
8
|
this.reshowAfterDays = reshowAfterDays;
|
|
10
9
|
this.iabAgreementExists = iabAgreementExists;
|
|
11
|
-
this.firstLayerDescription = firstLayerDescription;
|
|
12
10
|
this.appFirstLayerDescription = appFirstLayerDescription;
|
|
13
11
|
this.firstLayerMobileDescriptionIsActive = firstLayerMobileDescriptionIsActive;
|
|
14
12
|
this.firstLayerMobileDescription = firstLayerMobileDescription;
|
|
15
|
-
this.firstLayerHideLanguageSwitch = firstLayerHideLanguageSwitch;
|
|
16
13
|
this.secondLayerTitle = secondLayerTitle;
|
|
17
14
|
this.secondLayerDescription = secondLayerDescription;
|
|
18
15
|
this.secondLayerHideLanguageSwitch = secondLayerHideLanguageSwitch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CCPASettings.js","sourceRoot":"","sources":["../../src/models/CCPASettings.tsx"],"names":[],"mappings":"AAAA,MAAM,OAAO,YAAY;
|
|
1
|
+
{"version":3,"file":"CCPASettings.js","sourceRoot":"","sources":["../../src/models/CCPASettings.tsx"],"names":[],"mappings":"AAAA,MAAM,OAAO,YAAY;IAgBvB,YACE,iBAAyB,EACzB,OAAe,EACf,eAAuB,EACvB,QAAiB,EACjB,cAAuB,EACvB,eAAuB,EACvB,kBAA2B,EAC3B,wBAAgC,EAChC,mCAA4C,EAC5C,2BAAmC,EACnC,gBAAwB,EACxB,sBAA8B,EAC9B,6BAAsC,EACtC,WAAmB;QAEnB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAA;QAC5C,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAA;QACxD,IAAI,CAAC,mCAAmC,GAAG,mCAAmC,CAAA;QAC9E,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAA;QAC9D,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAA;QACpD,IAAI,CAAC,6BAA6B,GAAG,6BAA6B,CAAA;QAClE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;IAChC,CAAC;CAEF"}
|
|
@@ -31,8 +31,6 @@ export declare class TCF2Settings {
|
|
|
31
31
|
purposeOneTreatment: boolean;
|
|
32
32
|
selectedVendorIds: [number];
|
|
33
33
|
gdprApplies: boolean;
|
|
34
|
-
consensuDomain: string;
|
|
35
|
-
consensuScriptPath: string;
|
|
36
34
|
selectedStacks: [number];
|
|
37
35
|
disabledSpecialFeatures: [number];
|
|
38
36
|
firstLayerShowDescriptions: boolean;
|
|
@@ -40,14 +38,12 @@ export declare class TCF2Settings {
|
|
|
40
38
|
resurfacePeriodEnded: boolean;
|
|
41
39
|
resurfacePurposeChanged: boolean;
|
|
42
40
|
resurfaceVendorAdded: boolean;
|
|
43
|
-
vendorToggleAll: boolean;
|
|
44
41
|
firstLayerDescription: string;
|
|
45
42
|
firstLayerAdditionalInfo: string;
|
|
46
43
|
secondLayerDescription: string;
|
|
47
44
|
togglesSpecialFeaturesToggleOn: string;
|
|
48
45
|
togglesSpecialFeaturesToggleOff: string;
|
|
49
46
|
appLayerNoteResurface: string;
|
|
50
|
-
firstLayerNoteGlobal: string;
|
|
51
47
|
firstLayerNoteResurface: string;
|
|
52
|
-
constructor(firstLayerTitle: string, secondLayerTitle: string, tabsPurposeLabel: string, tabsVendorsLabel: string, labelsFeatures: string, labelsIabVendors: string, labelsNonIabPurposes: string, labelsNonIabVendors: string, labelsPurposes: string, vendorFeatures: string, vendorLegitimateInterestPurposes: string, vendorPurpose: string, vendorSpecialFeatures: string, vendorSpecialPurposes: string, togglesConsentToggleLabel: string, togglesLegIntToggleLabel: string, buttonsAcceptAllLabel: string, buttonsDenyAllLabel: string, buttonsSaveLabel: string, linksManageSettingsLabel: string, linksVendorListLinkLabel: string, cmpId: number, cmpVersion: number, firstLayerHideToggles: boolean, secondLayerHideToggles: boolean, hideLegitimateInterestToggles: boolean, secondLayerHideButtonDeny: boolean, publisherCountryCode: string, purposeOneTreatment: boolean, selectedVendorIds: [number], gdprApplies: boolean,
|
|
48
|
+
constructor(firstLayerTitle: string, secondLayerTitle: string, tabsPurposeLabel: string, tabsVendorsLabel: string, labelsFeatures: string, labelsIabVendors: string, labelsNonIabPurposes: string, labelsNonIabVendors: string, labelsPurposes: string, vendorFeatures: string, vendorLegitimateInterestPurposes: string, vendorPurpose: string, vendorSpecialFeatures: string, vendorSpecialPurposes: string, togglesConsentToggleLabel: string, togglesLegIntToggleLabel: string, buttonsAcceptAllLabel: string, buttonsDenyAllLabel: string, buttonsSaveLabel: string, linksManageSettingsLabel: string, linksVendorListLinkLabel: string, cmpId: number, cmpVersion: number, firstLayerHideToggles: boolean, secondLayerHideToggles: boolean, hideLegitimateInterestToggles: boolean, secondLayerHideButtonDeny: boolean, publisherCountryCode: string, purposeOneTreatment: boolean, selectedVendorIds: [number], gdprApplies: boolean, selectedStacks: [number], disabledSpecialFeatures: [number], firstLayerShowDescriptions: boolean, hideNonIabOnFirstLayer: boolean, resurfacePeriodEnded: boolean, resurfacePurposeChanged: boolean, resurfaceVendorAdded: boolean, firstLayerDescription: string, firstLayerAdditionalInfo: string, secondLayerDescription: string, togglesSpecialFeaturesToggleOn: string, togglesSpecialFeaturesToggleOff: string, appLayerNoteResurface: string, firstLayerNoteResurface: string, firstLayerHideButtonDeny?: boolean);
|
|
53
49
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class TCF2Settings {
|
|
2
|
-
constructor(firstLayerTitle, secondLayerTitle, tabsPurposeLabel, tabsVendorsLabel, labelsFeatures, labelsIabVendors, labelsNonIabPurposes, labelsNonIabVendors, labelsPurposes, vendorFeatures, vendorLegitimateInterestPurposes, vendorPurpose, vendorSpecialFeatures, vendorSpecialPurposes, togglesConsentToggleLabel, togglesLegIntToggleLabel, buttonsAcceptAllLabel, buttonsDenyAllLabel, buttonsSaveLabel, linksManageSettingsLabel, linksVendorListLinkLabel, cmpId, cmpVersion, firstLayerHideToggles, secondLayerHideToggles, hideLegitimateInterestToggles, secondLayerHideButtonDeny, publisherCountryCode, purposeOneTreatment, selectedVendorIds, gdprApplies,
|
|
2
|
+
constructor(firstLayerTitle, secondLayerTitle, tabsPurposeLabel, tabsVendorsLabel, labelsFeatures, labelsIabVendors, labelsNonIabPurposes, labelsNonIabVendors, labelsPurposes, vendorFeatures, vendorLegitimateInterestPurposes, vendorPurpose, vendorSpecialFeatures, vendorSpecialPurposes, togglesConsentToggleLabel, togglesLegIntToggleLabel, buttonsAcceptAllLabel, buttonsDenyAllLabel, buttonsSaveLabel, linksManageSettingsLabel, linksVendorListLinkLabel, cmpId, cmpVersion, firstLayerHideToggles, secondLayerHideToggles, hideLegitimateInterestToggles, secondLayerHideButtonDeny, publisherCountryCode, purposeOneTreatment, selectedVendorIds, gdprApplies, selectedStacks, disabledSpecialFeatures, firstLayerShowDescriptions, hideNonIabOnFirstLayer, resurfacePeriodEnded, resurfacePurposeChanged, resurfaceVendorAdded, firstLayerDescription, firstLayerAdditionalInfo, secondLayerDescription, togglesSpecialFeaturesToggleOn, togglesSpecialFeaturesToggleOff, appLayerNoteResurface, firstLayerNoteResurface, firstLayerHideButtonDeny) {
|
|
3
3
|
this.firstLayerTitle = firstLayerTitle;
|
|
4
4
|
this.secondLayerTitle = secondLayerTitle;
|
|
5
5
|
this.tabsPurposeLabel = tabsPurposeLabel;
|
|
@@ -32,8 +32,6 @@ export class TCF2Settings {
|
|
|
32
32
|
this.purposeOneTreatment = purposeOneTreatment;
|
|
33
33
|
this.selectedVendorIds = selectedVendorIds;
|
|
34
34
|
this.gdprApplies = gdprApplies;
|
|
35
|
-
this.consensuDomain = consensuDomain;
|
|
36
|
-
this.consensuScriptPath = consensuScriptPath;
|
|
37
35
|
this.selectedStacks = selectedStacks;
|
|
38
36
|
this.disabledSpecialFeatures = disabledSpecialFeatures;
|
|
39
37
|
this.firstLayerShowDescriptions = firstLayerShowDescriptions;
|
|
@@ -41,14 +39,12 @@ export class TCF2Settings {
|
|
|
41
39
|
this.resurfacePeriodEnded = resurfacePeriodEnded;
|
|
42
40
|
this.resurfacePurposeChanged = resurfacePurposeChanged;
|
|
43
41
|
this.resurfaceVendorAdded = resurfaceVendorAdded;
|
|
44
|
-
this.vendorToggleAll = vendorToggleAll;
|
|
45
42
|
this.firstLayerDescription = firstLayerDescription;
|
|
46
43
|
this.firstLayerAdditionalInfo = firstLayerAdditionalInfo;
|
|
47
44
|
this.secondLayerDescription = secondLayerDescription;
|
|
48
45
|
this.togglesSpecialFeaturesToggleOn = togglesSpecialFeaturesToggleOn;
|
|
49
46
|
this.togglesSpecialFeaturesToggleOff = togglesSpecialFeaturesToggleOff;
|
|
50
47
|
this.appLayerNoteResurface = appLayerNoteResurface;
|
|
51
|
-
this.firstLayerNoteGlobal = firstLayerNoteGlobal;
|
|
52
48
|
this.firstLayerNoteResurface = firstLayerNoteResurface;
|
|
53
49
|
}
|
|
54
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TCF2Settings.js","sourceRoot":"","sources":["../../src/models/TCF2Settings.tsx"],"names":[],"mappings":"AAAA,MAAM,OAAO,YAAY;
|
|
1
|
+
{"version":3,"file":"TCF2Settings.js","sourceRoot":"","sources":["../../src/models/TCF2Settings.tsx"],"names":[],"mappings":"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"}
|
|
@@ -17,35 +17,23 @@ export declare class UsercentricsService {
|
|
|
17
17
|
legalBasisList: [string];
|
|
18
18
|
retentionPeriodList: [string];
|
|
19
19
|
subConsents: [string];
|
|
20
|
-
cookieNames: [string];
|
|
21
20
|
language: string;
|
|
22
|
-
isLatest?: boolean;
|
|
23
|
-
isShared?: boolean;
|
|
24
|
-
shareCustomConsent: string;
|
|
25
21
|
linkToDpa: string;
|
|
26
|
-
defaultConsentStatus?: boolean;
|
|
27
22
|
legalGround: string;
|
|
28
23
|
optOutUrl: string;
|
|
29
24
|
policyOfProcessorUrl: string;
|
|
30
|
-
retentionPeriod: number;
|
|
31
25
|
retentionPeriodDescription: string;
|
|
32
|
-
iabId: string;
|
|
33
|
-
iabv2Id: string;
|
|
34
26
|
dataProtectionOfficer: string;
|
|
35
27
|
privacyPolicyURL: string;
|
|
36
28
|
cookiePolicyURL: string;
|
|
37
29
|
locationOfProcessing: string;
|
|
38
30
|
dataCollectedDescription: string;
|
|
39
|
-
dataPurposesDescription: string;
|
|
40
|
-
legalBasisDescription: string;
|
|
41
|
-
optOutDescription: string;
|
|
42
31
|
thirdCountryTransfer: string;
|
|
43
|
-
defaultCategoryLabel: string;
|
|
44
32
|
description: string;
|
|
45
33
|
cookieMaxAgeSeconds: number;
|
|
46
34
|
usesNonCookieAccess?: boolean;
|
|
47
35
|
deviceStorageDisclosureUrl: string;
|
|
48
36
|
isDeactivated?: boolean;
|
|
49
37
|
disableLegalBasis?: boolean;
|
|
50
|
-
constructor(templateId: string, version: string, categorySlug: string, type: string, isEssential: boolean, dataProcessor: string, dataPurposes: [string], processingCompany: string, nameOfProcessingCompany: string, addressOfProcessingCompany: string, descriptionOfService: string, languagesAvailable: [string], dataCollectedList: [string], dataPurposesList: [string], dataRecipientsList: [string], legalBasisList: [string], retentionPeriodList: [string], subConsents: [string],
|
|
38
|
+
constructor(templateId: string, version: string, categorySlug: string, type: string, isEssential: boolean, dataProcessor: string, dataPurposes: [string], processingCompany: string, nameOfProcessingCompany: string, addressOfProcessingCompany: string, descriptionOfService: string, languagesAvailable: [string], dataCollectedList: [string], dataPurposesList: [string], dataRecipientsList: [string], legalBasisList: [string], retentionPeriodList: [string], subConsents: [string], language: string, linkToDpa: string, legalGround: string, optOutUrl: string, policyOfProcessorUrl: string, retentionPeriod: number, retentionPeriodDescription: string, dataProtectionOfficer: string, privacyPolicyURL: string, cookiePolicyURL: string, locationOfProcessing: string, dataCollectedDescription: string, thirdCountryTransfer: string, description: string, cookieMaxAgeSeconds: number, deviceStorageDisclosureUrl: string, isDeactivated?: boolean, disableLegalBasis?: boolean, usesNonCookieAccess?: boolean);
|
|
51
39
|
}
|