@osano/osano-cmp-react-native 0.12.0 → 0.14.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.
Files changed (965) hide show
  1. package/README.dev.md +228 -1
  2. package/README.md +2 -268
  3. package/android/src/main/java/com/OsanoCMPSDK/OsanoCMPSDKModule.kt +55 -2
  4. package/ios/OsanoCmpSDK.mm +86 -1
  5. package/lib/commonjs/ConsentManager.js +155 -72
  6. package/lib/commonjs/ConsentManager.js.map +1 -1
  7. package/lib/commonjs/ConsentUiBuilder.js +18 -12
  8. package/lib/commonjs/ConsentUiBuilder.js.map +1 -1
  9. package/lib/commonjs/NativeOsanoCmpSdk.js +56 -0
  10. package/lib/commonjs/NativeOsanoCmpSdk.js.map +1 -0
  11. package/lib/commonjs/commands.js +10 -5
  12. package/lib/commonjs/commands.js.map +1 -1
  13. package/lib/commonjs/components/Button.js +144 -121
  14. package/lib/commonjs/components/Button.js.map +1 -1
  15. package/lib/commonjs/components/Checkbox.js +15 -13
  16. package/lib/commonjs/components/Checkbox.js.map +1 -1
  17. package/lib/commonjs/components/Divider.js +2 -1
  18. package/lib/commonjs/components/Divider.js.map +1 -1
  19. package/lib/commonjs/components/ExpansionPanel.js +19 -15
  20. package/lib/commonjs/components/ExpansionPanel.js.map +1 -1
  21. package/lib/commonjs/components/Link.js +7 -6
  22. package/lib/commonjs/components/Link.js.map +1 -1
  23. package/lib/commonjs/components/List.js +13 -9
  24. package/lib/commonjs/components/List.js.map +1 -1
  25. package/lib/commonjs/components/Locale.js +8 -3
  26. package/lib/commonjs/components/Locale.js.map +1 -1
  27. package/lib/commonjs/components/StoragePolicyLink.js +6 -5
  28. package/lib/commonjs/components/StoragePolicyLink.js.map +1 -1
  29. package/lib/commonjs/components/Toggle.js +21 -20
  30. package/lib/commonjs/components/Toggle.js.map +1 -1
  31. package/lib/commonjs/context.js +5 -4
  32. package/lib/commonjs/context.js.map +1 -1
  33. package/lib/commonjs/iab/tcf/constants.js +34 -1
  34. package/lib/commonjs/iab/tcf/constants.js.map +1 -1
  35. package/lib/commonjs/iab/tcf/iab-storage-utils.js +102 -0
  36. package/lib/commonjs/iab/tcf/iab-storage-utils.js.map +1 -0
  37. package/lib/commonjs/iab/tcf/index.js +1 -2
  38. package/lib/commonjs/iab/tcf/index.js.map +1 -1
  39. package/lib/commonjs/iab/tcf/middleware.js +26 -51
  40. package/lib/commonjs/iab/tcf/middleware.js.map +1 -1
  41. package/lib/commonjs/iab/tcf/reducer.js +1 -12
  42. package/lib/commonjs/iab/tcf/reducer.js.map +1 -1
  43. package/lib/commonjs/iab/tcf/selectors.js +1 -1
  44. package/lib/commonjs/iab/tcf/selectors.js.map +1 -1
  45. package/lib/commonjs/iab/tcf/v2.0/shared-constants.js +1 -2
  46. package/lib/commonjs/iab/tcf/v2.0/shared-constants.js.map +1 -1
  47. package/lib/commonjs/index.js +41 -19
  48. package/lib/commonjs/index.js.map +1 -1
  49. package/lib/commonjs/locale/af.json +342 -323
  50. package/lib/commonjs/locale/ar.json +342 -323
  51. package/lib/commonjs/locale/bg.json +342 -323
  52. package/lib/commonjs/locale/ca.json +342 -323
  53. package/lib/commonjs/locale/cs.json +342 -323
  54. package/lib/commonjs/locale/da.json +342 -323
  55. package/lib/commonjs/locale/de-at.json +342 -323
  56. package/lib/commonjs/locale/de.json +342 -323
  57. package/lib/commonjs/locale/el.json +342 -323
  58. package/lib/commonjs/locale/en-au.json +342 -323
  59. package/lib/commonjs/locale/en-ca.json +342 -323
  60. package/lib/commonjs/locale/en-gb.json +342 -323
  61. package/lib/commonjs/locale/en.json +342 -323
  62. package/lib/commonjs/locale/es-mx.json +342 -323
  63. package/lib/commonjs/locale/es.json +342 -323
  64. package/lib/commonjs/locale/et.json +342 -323
  65. package/lib/commonjs/locale/fa.json +342 -323
  66. package/lib/commonjs/locale/fi.json +342 -323
  67. package/lib/commonjs/locale/fr-ca.json +342 -323
  68. package/lib/commonjs/locale/fr.json +342 -323
  69. package/lib/commonjs/locale/gd.json +342 -323
  70. package/lib/commonjs/locale/he.json +342 -323
  71. package/lib/commonjs/locale/hi.json +342 -323
  72. package/lib/commonjs/locale/hr.json +342 -323
  73. package/lib/commonjs/locale/hu.json +342 -323
  74. package/lib/commonjs/locale/hy.json +342 -323
  75. package/lib/commonjs/locale/id.json +342 -323
  76. package/lib/commonjs/locale/is.json +342 -323
  77. package/lib/commonjs/locale/it.json +342 -323
  78. package/lib/commonjs/locale/ja.json +342 -323
  79. package/lib/commonjs/locale/kk.json +342 -323
  80. package/lib/commonjs/locale/ko.json +342 -323
  81. package/lib/commonjs/locale/lt.json +342 -323
  82. package/lib/commonjs/locale/lv.json +342 -323
  83. package/lib/commonjs/locale/mi.json +342 -323
  84. package/lib/commonjs/locale/ms.json +342 -323
  85. package/lib/commonjs/locale/nb.json +342 -323
  86. package/lib/commonjs/locale/nl-be.json +342 -323
  87. package/lib/commonjs/locale/nl.json +342 -323
  88. package/lib/commonjs/locale/nn.json +342 -323
  89. package/lib/commonjs/locale/no.json +342 -323
  90. package/lib/commonjs/locale/pl.json +342 -323
  91. package/lib/commonjs/locale/pt-br.json +342 -323
  92. package/lib/commonjs/locale/pt.json +342 -323
  93. package/lib/commonjs/locale/ro.json +342 -323
  94. package/lib/commonjs/locale/ru.json +342 -323
  95. package/lib/commonjs/locale/sk.json +342 -323
  96. package/lib/commonjs/locale/sl.json +342 -323
  97. package/lib/commonjs/locale/sq.json +342 -323
  98. package/lib/commonjs/locale/sr.json +342 -323
  99. package/lib/commonjs/locale/sv.json +342 -323
  100. package/lib/commonjs/locale/th.json +342 -323
  101. package/lib/commonjs/locale/tl.json +342 -323
  102. package/lib/commonjs/locale/tr.json +342 -323
  103. package/lib/commonjs/locale/uk.json +342 -323
  104. package/lib/commonjs/locale/vi.json +342 -323
  105. package/lib/commonjs/locale/zh-hk.json +342 -323
  106. package/lib/commonjs/locale/zh-tw.json +342 -323
  107. package/lib/commonjs/locale/zh.json +342 -323
  108. package/lib/commonjs/locale/zu.json +342 -323
  109. package/lib/commonjs/native/OsanoCmp.js +24 -6
  110. package/lib/commonjs/native/OsanoCmp.js.map +1 -1
  111. package/lib/commonjs/package.json +1 -0
  112. package/lib/commonjs/services/consent.js +17 -40
  113. package/lib/commonjs/services/consent.js.map +1 -1
  114. package/lib/commonjs/services/google-consent-mode-mapper.js +109 -0
  115. package/lib/commonjs/services/google-consent-mode-mapper.js.map +1 -0
  116. package/lib/commonjs/types/google-consent-mode.js +73 -0
  117. package/lib/commonjs/types/google-consent-mode.js.map +1 -0
  118. package/lib/commonjs/utils/OsanoLogger.js +51 -0
  119. package/lib/commonjs/utils/OsanoLogger.js.map +1 -0
  120. package/lib/commonjs/utils/Translator.js.map +1 -1
  121. package/lib/commonjs/utils/index.js +7 -0
  122. package/lib/commonjs/utils/index.js.map +1 -1
  123. package/lib/commonjs/views/Dialog/Buttons.js +52 -39
  124. package/lib/commonjs/views/Dialog/Buttons.js.map +1 -1
  125. package/lib/commonjs/views/Dialog/FirstLayerUsage.js +13 -10
  126. package/lib/commonjs/views/Dialog/FirstLayerUsage.js.map +1 -1
  127. package/lib/commonjs/views/Dialog/Message.js +3 -3
  128. package/lib/commonjs/views/Dialog/Message.js.map +1 -1
  129. package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js +21 -17
  130. package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js.map +1 -1
  131. package/lib/commonjs/views/Dialog/index.js +123 -129
  132. package/lib/commonjs/views/Dialog/index.js.map +1 -1
  133. package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js +261 -211
  134. package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
  135. package/lib/commonjs/views/Drawer/Drawer.Header.js +49 -43
  136. package/lib/commonjs/views/Drawer/Drawer.Header.js.map +1 -1
  137. package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js +98 -80
  138. package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
  139. package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js +226 -193
  140. package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
  141. package/lib/commonjs/views/Drawer/index.js +78 -60
  142. package/lib/commonjs/views/Drawer/index.js.map +1 -1
  143. package/lib/module/ConsentManager.js +156 -70
  144. package/lib/module/ConsentManager.js.map +1 -1
  145. package/lib/module/ConsentUiBuilder.js +19 -10
  146. package/lib/module/ConsentUiBuilder.js.map +1 -1
  147. package/lib/module/NativeOsanoCmpSdk.js +52 -0
  148. package/lib/module/NativeOsanoCmpSdk.js.map +1 -0
  149. package/lib/module/actions.js +2 -0
  150. package/lib/module/actions.js.map +1 -1
  151. package/lib/module/commands.js +12 -5
  152. package/lib/module/commands.js.map +1 -1
  153. package/lib/module/components/Button.js +139 -112
  154. package/lib/module/components/Button.js.map +1 -1
  155. package/lib/module/components/Checkbox.js +16 -11
  156. package/lib/module/components/Checkbox.js.map +1 -1
  157. package/lib/module/components/Divider.js +4 -1
  158. package/lib/module/components/Divider.js.map +1 -1
  159. package/lib/module/components/ExpansionPanel.js +20 -13
  160. package/lib/module/components/ExpansionPanel.js.map +1 -1
  161. package/lib/module/components/Link.js +8 -4
  162. package/lib/module/components/Link.js.map +1 -1
  163. package/lib/module/components/List.js +15 -9
  164. package/lib/module/components/List.js.map +1 -1
  165. package/lib/module/components/Locale.js +9 -3
  166. package/lib/module/components/Locale.js.map +1 -1
  167. package/lib/module/components/StoragePolicyLink.js +7 -3
  168. package/lib/module/components/StoragePolicyLink.js.map +1 -1
  169. package/lib/module/components/Toggle.js +22 -18
  170. package/lib/module/components/Toggle.js.map +1 -1
  171. package/lib/module/constants.js +2 -0
  172. package/lib/module/constants.js.map +1 -1
  173. package/lib/module/context.js +7 -4
  174. package/lib/module/context.js.map +1 -1
  175. package/lib/module/flavors/index.js +2 -0
  176. package/lib/module/flavors/index.js.map +1 -1
  177. package/lib/module/hooks/useBoundCallback.js +2 -0
  178. package/lib/module/hooks/useBoundCallback.js.map +1 -1
  179. package/lib/module/hooks/useDeviceOrientation.js +2 -0
  180. package/lib/module/hooks/useDeviceOrientation.js.map +1 -1
  181. package/lib/module/hooks/usePrevious.js +2 -0
  182. package/lib/module/hooks/usePrevious.js.map +1 -1
  183. package/lib/module/hooks/useThunkReducer.js +2 -0
  184. package/lib/module/hooks/useThunkReducer.js.map +1 -1
  185. package/lib/module/iab/actions.js +2 -0
  186. package/lib/module/iab/actions.js.map +1 -1
  187. package/lib/module/iab/constants.js +2 -0
  188. package/lib/module/iab/constants.js.map +1 -1
  189. package/lib/module/iab/gpp/api.js +2 -0
  190. package/lib/module/iab/gpp/api.js.map +1 -1
  191. package/lib/module/iab/gpp/consent.js +2 -0
  192. package/lib/module/iab/gpp/consent.js.map +1 -1
  193. package/lib/module/iab/gpp/constants.js +2 -0
  194. package/lib/module/iab/gpp/constants.js.map +1 -1
  195. package/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.js +2 -0
  196. package/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.js.map +1 -1
  197. package/lib/module/iab/gpp/encoders/BooleanEncoder.js +2 -0
  198. package/lib/module/iab/gpp/encoders/BooleanEncoder.js.map +1 -1
  199. package/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.js +2 -0
  200. package/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.js.map +1 -1
  201. package/lib/module/iab/gpp/encoders/DatetimeEncoder.js +2 -0
  202. package/lib/module/iab/gpp/encoders/DatetimeEncoder.js.map +1 -1
  203. package/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.js +2 -0
  204. package/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.js.map +1 -1
  205. package/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.js +2 -0
  206. package/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.js.map +1 -1
  207. package/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.js +2 -0
  208. package/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.js.map +1 -1
  209. package/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.js +2 -0
  210. package/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.js.map +1 -1
  211. package/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.js +2 -0
  212. package/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.js.map +1 -1
  213. package/lib/module/iab/gpp/encoders/FixedIntegerEncoder.js +2 -0
  214. package/lib/module/iab/gpp/encoders/FixedIntegerEncoder.js.map +1 -1
  215. package/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.js +2 -0
  216. package/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.js.map +1 -1
  217. package/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.js +2 -0
  218. package/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.js.map +1 -1
  219. package/lib/module/iab/gpp/encoders/FixedStringEncoder.js +2 -0
  220. package/lib/module/iab/gpp/encoders/FixedStringEncoder.js.map +1 -1
  221. package/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.js +2 -0
  222. package/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.js.map +1 -1
  223. package/lib/module/iab/gpp/encoders/errors.js +2 -0
  224. package/lib/module/iab/gpp/encoders/errors.js.map +1 -1
  225. package/lib/module/iab/gpp/encoders/index.js +2 -0
  226. package/lib/module/iab/gpp/encoders/index.js.map +1 -1
  227. package/lib/module/iab/gpp/encoders/types.js +1 -1
  228. package/lib/module/iab/gpp/index.js +2 -0
  229. package/lib/module/iab/gpp/index.js.map +1 -1
  230. package/lib/module/iab/gpp/reducer.js +2 -0
  231. package/lib/module/iab/gpp/reducer.js.map +1 -1
  232. package/lib/module/iab/gpp/selectors.js +2 -0
  233. package/lib/module/iab/gpp/selectors.js.map +1 -1
  234. package/lib/module/iab/gpp/types.js +1 -1
  235. package/lib/module/iab/gpp/v1/constants.js +2 -0
  236. package/lib/module/iab/gpp/v1/constants.js.map +1 -1
  237. package/lib/module/iab/gpp/v1/index.js +2 -0
  238. package/lib/module/iab/gpp/v1/index.js.map +1 -1
  239. package/lib/module/iab/index.js +2 -0
  240. package/lib/module/iab/index.js.map +1 -1
  241. package/lib/module/iab/reducer.js +2 -0
  242. package/lib/module/iab/reducer.js.map +1 -1
  243. package/lib/module/iab/tcf/actions.js +2 -0
  244. package/lib/module/iab/tcf/actions.js.map +1 -1
  245. package/lib/module/iab/tcf/consent.js +2 -0
  246. package/lib/module/iab/tcf/consent.js.map +1 -1
  247. package/lib/module/iab/tcf/constants.js +34 -0
  248. package/lib/module/iab/tcf/constants.js.map +1 -1
  249. package/lib/module/iab/tcf/helpers.js +2 -0
  250. package/lib/module/iab/tcf/helpers.js.map +1 -1
  251. package/lib/module/iab/tcf/iab-storage-utils.js +91 -0
  252. package/lib/module/iab/tcf/iab-storage-utils.js.map +1 -0
  253. package/lib/module/iab/tcf/index.js +2 -0
  254. package/lib/module/iab/tcf/index.js.map +1 -1
  255. package/lib/module/iab/tcf/middleware.js +28 -51
  256. package/lib/module/iab/tcf/middleware.js.map +1 -1
  257. package/lib/module/iab/tcf/reducer.js +3 -12
  258. package/lib/module/iab/tcf/reducer.js.map +1 -1
  259. package/lib/module/iab/tcf/selectors.js +3 -1
  260. package/lib/module/iab/tcf/selectors.js.map +1 -1
  261. package/lib/module/iab/tcf/types.js +2 -0
  262. package/lib/module/iab/tcf/v2.0/encoders.js +2 -0
  263. package/lib/module/iab/tcf/v2.0/encoders.js.map +1 -1
  264. package/lib/module/iab/tcf/v2.0/formatters.js +2 -0
  265. package/lib/module/iab/tcf/v2.0/formatters.js.map +1 -1
  266. package/lib/module/iab/tcf/v2.0/index.js +2 -0
  267. package/lib/module/iab/tcf/v2.0/index.js.map +1 -1
  268. package/lib/module/iab/tcf/v2.0/shared-constants.js +2 -0
  269. package/lib/module/iab/tcf/v2.0/shared-constants.js.map +1 -1
  270. package/lib/module/iab/tcf/v2.0/tcfcav1-constants.js +2 -0
  271. package/lib/module/iab/tcf/v2.0/tcfcav1-constants.js.map +1 -1
  272. package/lib/module/iab/tcf/v2.0/tcfeuv2-constants.js +2 -0
  273. package/lib/module/iab/tcf/v2.0/tcfeuv2-constants.js.map +1 -1
  274. package/lib/module/iab/types.js +2 -0
  275. package/lib/module/iab/usp/api.js +2 -0
  276. package/lib/module/iab/usp/api.js.map +1 -1
  277. package/lib/module/iab/usp/consent.js +2 -0
  278. package/lib/module/iab/usp/consent.js.map +1 -1
  279. package/lib/module/iab/usp/constants.js +2 -0
  280. package/lib/module/iab/usp/constants.js.map +1 -1
  281. package/lib/module/iab/usp/index.js +2 -0
  282. package/lib/module/iab/usp/index.js.map +1 -1
  283. package/lib/module/iab/usp/reducer.js +2 -0
  284. package/lib/module/iab/usp/reducer.js.map +1 -1
  285. package/lib/module/iab/usp/selectors.js +2 -0
  286. package/lib/module/iab/usp/selectors.js.map +1 -1
  287. package/lib/module/iab/usp/types.js +1 -1
  288. package/lib/module/iab/usp/v1/constants.js +2 -0
  289. package/lib/module/iab/usp/v1/constants.js.map +1 -1
  290. package/lib/module/iab/usp/v1/index.js +2 -0
  291. package/lib/module/iab/usp/v1/index.js.map +1 -1
  292. package/lib/module/iab/utilities.js +2 -0
  293. package/lib/module/iab/utilities.js.map +1 -1
  294. package/lib/module/index.js +36 -17
  295. package/lib/module/index.js.map +1 -1
  296. package/lib/module/locale/af.json +342 -323
  297. package/lib/module/locale/ar.json +342 -323
  298. package/lib/module/locale/bg.json +342 -323
  299. package/lib/module/locale/ca.json +342 -323
  300. package/lib/module/locale/cs.json +342 -323
  301. package/lib/module/locale/da.json +342 -323
  302. package/lib/module/locale/de-at.json +342 -323
  303. package/lib/module/locale/de.json +342 -323
  304. package/lib/module/locale/el.json +342 -323
  305. package/lib/module/locale/en-au.json +342 -323
  306. package/lib/module/locale/en-ca.json +342 -323
  307. package/lib/module/locale/en-gb.json +342 -323
  308. package/lib/module/locale/en.json +342 -323
  309. package/lib/module/locale/es-mx.json +342 -323
  310. package/lib/module/locale/es.json +342 -323
  311. package/lib/module/locale/et.json +342 -323
  312. package/lib/module/locale/fa.json +342 -323
  313. package/lib/module/locale/fi.json +342 -323
  314. package/lib/module/locale/fr-ca.json +342 -323
  315. package/lib/module/locale/fr.json +342 -323
  316. package/lib/module/locale/gd.json +342 -323
  317. package/lib/module/locale/he.json +342 -323
  318. package/lib/module/locale/hi.json +342 -323
  319. package/lib/module/locale/hr.json +342 -323
  320. package/lib/module/locale/hu.json +342 -323
  321. package/lib/module/locale/hy.json +342 -323
  322. package/lib/module/locale/id.json +342 -323
  323. package/lib/module/locale/index.js +2 -0
  324. package/lib/module/locale/index.js.map +1 -1
  325. package/lib/module/locale/is.json +342 -323
  326. package/lib/module/locale/it.json +342 -323
  327. package/lib/module/locale/ja.json +342 -323
  328. package/lib/module/locale/kk.json +342 -323
  329. package/lib/module/locale/ko.json +342 -323
  330. package/lib/module/locale/lt.json +342 -323
  331. package/lib/module/locale/lv.json +342 -323
  332. package/lib/module/locale/mi.json +342 -323
  333. package/lib/module/locale/ms.json +342 -323
  334. package/lib/module/locale/nb.json +342 -323
  335. package/lib/module/locale/nl-be.json +342 -323
  336. package/lib/module/locale/nl.json +342 -323
  337. package/lib/module/locale/nn.json +342 -323
  338. package/lib/module/locale/no.json +342 -323
  339. package/lib/module/locale/pl.json +342 -323
  340. package/lib/module/locale/pt-br.json +342 -323
  341. package/lib/module/locale/pt.json +342 -323
  342. package/lib/module/locale/ro.json +342 -323
  343. package/lib/module/locale/ru.json +342 -323
  344. package/lib/module/locale/sk.json +342 -323
  345. package/lib/module/locale/sl.json +342 -323
  346. package/lib/module/locale/sq.json +342 -323
  347. package/lib/module/locale/sr.json +342 -323
  348. package/lib/module/locale/sv.json +342 -323
  349. package/lib/module/locale/th.json +342 -323
  350. package/lib/module/locale/tl.json +342 -323
  351. package/lib/module/locale/tr.json +342 -323
  352. package/lib/module/locale/uk.json +342 -323
  353. package/lib/module/locale/vi.json +342 -323
  354. package/lib/module/locale/zh-hk.json +342 -323
  355. package/lib/module/locale/zh-tw.json +342 -323
  356. package/lib/module/locale/zh.json +342 -323
  357. package/lib/module/locale/zu.json +342 -323
  358. package/lib/module/native/OsanoCmp.js +21 -6
  359. package/lib/module/native/OsanoCmp.js.map +1 -1
  360. package/lib/module/reducer.js +2 -0
  361. package/lib/module/reducer.js.map +1 -1
  362. package/lib/module/selectors.js +2 -0
  363. package/lib/module/selectors.js.map +1 -1
  364. package/lib/module/services/consent.js +20 -42
  365. package/lib/module/services/consent.js.map +1 -1
  366. package/lib/module/services/disclosures.js +2 -0
  367. package/lib/module/services/disclosures.js.map +1 -1
  368. package/lib/module/services/google-consent-mode-mapper.js +105 -0
  369. package/lib/module/services/google-consent-mode-mapper.js.map +1 -0
  370. package/lib/module/services/locale.js +2 -0
  371. package/lib/module/services/locale.js.map +1 -1
  372. package/lib/module/styles.js +2 -0
  373. package/lib/module/styles.js.map +1 -1
  374. package/lib/module/types/consent-config.d.js +2 -0
  375. package/lib/module/types/env.d.js +1 -1
  376. package/lib/module/types/google-consent-mode.js +72 -0
  377. package/lib/module/types/google-consent-mode.js.map +1 -0
  378. package/lib/module/types/index.d.js +2 -0
  379. package/lib/module/types/store.d.js +2 -0
  380. package/lib/module/utils/API.js +2 -0
  381. package/lib/module/utils/API.js.map +1 -1
  382. package/lib/module/utils/Color.js +2 -0
  383. package/lib/module/utils/Color.js.map +1 -1
  384. package/lib/module/utils/EventEmitter.js +2 -0
  385. package/lib/module/utils/EventEmitter.js.map +1 -1
  386. package/lib/module/utils/OsanoLogger.js +46 -0
  387. package/lib/module/utils/OsanoLogger.js.map +1 -0
  388. package/lib/module/utils/Translator.js +2 -0
  389. package/lib/module/utils/Translator.js.map +1 -1
  390. package/lib/module/utils/index.js +3 -0
  391. package/lib/module/utils/index.js.map +1 -1
  392. package/lib/module/utils/types.js +1 -1
  393. package/lib/module/views/Dialog/Buttons.js +54 -38
  394. package/lib/module/views/Dialog/Buttons.js.map +1 -1
  395. package/lib/module/views/Dialog/FirstLayerUsage.js +14 -8
  396. package/lib/module/views/Dialog/FirstLayerUsage.js.map +1 -1
  397. package/lib/module/views/Dialog/Message.js +4 -1
  398. package/lib/module/views/Dialog/Message.js.map +1 -1
  399. package/lib/module/views/Dialog/PreferenceManagementDeepLinks.js +22 -15
  400. package/lib/module/views/Dialog/PreferenceManagementDeepLinks.js.map +1 -1
  401. package/lib/module/views/Dialog/index.js +125 -128
  402. package/lib/module/views/Dialog/index.js.map +1 -1
  403. package/lib/module/views/Drawer/Drawer.ConsentCategories.js +260 -208
  404. package/lib/module/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
  405. package/lib/module/views/Drawer/Drawer.Header.js +50 -41
  406. package/lib/module/views/Drawer/Drawer.Header.js.map +1 -1
  407. package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js +99 -78
  408. package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
  409. package/lib/module/views/Drawer/Drawer.Iab.Vendors.js +227 -191
  410. package/lib/module/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
  411. package/lib/module/views/Drawer/index.js +80 -60
  412. package/lib/module/views/Drawer/index.js.map +1 -1
  413. package/lib/typescript/src/ConsentManager.d.ts +26 -10
  414. package/lib/typescript/src/ConsentManager.d.ts.map +1 -1
  415. package/lib/typescript/src/ConsentUiBuilder.d.ts +1 -1
  416. package/lib/typescript/src/ConsentUiBuilder.d.ts.map +1 -1
  417. package/lib/typescript/src/NativeOsanoCmpSdk.d.ts +14 -0
  418. package/lib/typescript/src/NativeOsanoCmpSdk.d.ts.map +1 -0
  419. package/lib/typescript/src/commands.d.ts.map +1 -1
  420. package/lib/typescript/src/components/Button.d.ts +8 -8
  421. package/lib/typescript/src/components/Button.d.ts.map +1 -1
  422. package/lib/typescript/src/components/Locale.d.ts +2 -1
  423. package/lib/typescript/src/components/Locale.d.ts.map +1 -1
  424. package/lib/typescript/src/context.d.ts +4 -2
  425. package/lib/typescript/src/context.d.ts.map +1 -1
  426. package/lib/typescript/src/iab/gpp/encoders/BooleanEncoder.d.ts +2 -2
  427. package/lib/typescript/src/iab/tcf/constants.d.ts +32 -0
  428. package/lib/typescript/src/iab/tcf/constants.d.ts.map +1 -1
  429. package/lib/typescript/src/iab/tcf/iab-storage-utils.d.ts +24 -0
  430. package/lib/typescript/src/iab/tcf/iab-storage-utils.d.ts.map +1 -0
  431. package/lib/typescript/src/iab/tcf/middleware.d.ts.map +1 -1
  432. package/lib/typescript/src/iab/tcf/reducer.d.ts.map +1 -1
  433. package/lib/typescript/src/iab/usp/constants.d.ts +1 -1
  434. package/lib/typescript/src/index.d.ts +2 -0
  435. package/lib/typescript/src/index.d.ts.map +1 -1
  436. package/lib/typescript/src/native/OsanoCmp.d.ts +4 -0
  437. package/lib/typescript/src/native/OsanoCmp.d.ts.map +1 -1
  438. package/lib/typescript/src/services/consent.d.ts.map +1 -1
  439. package/lib/typescript/src/services/google-consent-mode-mapper.d.ts +66 -0
  440. package/lib/typescript/src/services/google-consent-mode-mapper.d.ts.map +1 -0
  441. package/lib/typescript/src/types/google-consent-mode.d.ts +77 -0
  442. package/lib/typescript/src/types/google-consent-mode.d.ts.map +1 -0
  443. package/lib/typescript/src/utils/OsanoLogger.d.ts +15 -0
  444. package/lib/typescript/src/utils/OsanoLogger.d.ts.map +1 -0
  445. package/lib/typescript/src/utils/Translator.d.ts +1 -1
  446. package/lib/typescript/src/utils/Translator.d.ts.map +1 -1
  447. package/lib/typescript/src/utils/index.d.ts +1 -0
  448. package/lib/typescript/src/utils/index.d.ts.map +1 -1
  449. package/lib/typescript/src/views/Dialog/Buttons.d.ts +4 -2
  450. package/lib/typescript/src/views/Dialog/Buttons.d.ts.map +1 -1
  451. package/lib/typescript/src/views/Dialog/index.d.ts +1 -1
  452. package/lib/typescript/src/views/Dialog/index.d.ts.map +1 -1
  453. package/lib/typescript/src/views/Drawer/Drawer.ConsentCategories.d.ts.map +1 -1
  454. package/lib/typescript/src/views/Drawer/Drawer.Header.d.ts +1 -1
  455. package/lib/typescript/src/views/Drawer/Drawer.Header.d.ts.map +1 -1
  456. package/lib/typescript/src/views/Drawer/Drawer.Iab.Vendors.d.ts.map +1 -1
  457. package/lib/typescript/src/views/Drawer/index.d.ts.map +1 -1
  458. package/package.json +16 -7
  459. package/src/ConsentManager.ts +211 -91
  460. package/src/ConsentUiBuilder.tsx +23 -13
  461. package/src/NativeOsanoCmpSdk.ts +64 -0
  462. package/src/commands.ts +11 -8
  463. package/src/components/Button.tsx +130 -96
  464. package/src/components/Locale.tsx +27 -27
  465. package/src/constants.ts +1 -1
  466. package/src/context.ts +6 -3
  467. package/src/iab/tcf/constants.ts +46 -0
  468. package/src/iab/tcf/iab-storage-utils.ts +166 -0
  469. package/src/iab/tcf/middleware.ts +41 -74
  470. package/src/iab/tcf/reducer.ts +4 -17
  471. package/src/index.tsx +35 -8
  472. package/src/locale/af.json +342 -323
  473. package/src/locale/ar.json +342 -323
  474. package/src/locale/bg.json +342 -323
  475. package/src/locale/ca.json +342 -323
  476. package/src/locale/cs.json +342 -323
  477. package/src/locale/da.json +342 -323
  478. package/src/locale/de-at.json +342 -323
  479. package/src/locale/de.json +342 -323
  480. package/src/locale/el.json +342 -323
  481. package/src/locale/en-au.json +342 -323
  482. package/src/locale/en-ca.json +342 -323
  483. package/src/locale/en-gb.json +342 -323
  484. package/src/locale/en.json +342 -323
  485. package/src/locale/es-mx.json +342 -323
  486. package/src/locale/es.json +342 -323
  487. package/src/locale/et.json +342 -323
  488. package/src/locale/fa.json +342 -323
  489. package/src/locale/fi.json +342 -323
  490. package/src/locale/fr-ca.json +342 -323
  491. package/src/locale/fr.json +342 -323
  492. package/src/locale/gd.json +342 -323
  493. package/src/locale/he.json +342 -323
  494. package/src/locale/hi.json +342 -323
  495. package/src/locale/hr.json +342 -323
  496. package/src/locale/hu.json +342 -323
  497. package/src/locale/hy.json +342 -323
  498. package/src/locale/id.json +342 -323
  499. package/src/locale/is.json +342 -323
  500. package/src/locale/it.json +342 -323
  501. package/src/locale/ja.json +342 -323
  502. package/src/locale/kk.json +342 -323
  503. package/src/locale/ko.json +342 -323
  504. package/src/locale/lt.json +342 -323
  505. package/src/locale/lv.json +342 -323
  506. package/src/locale/mi.json +342 -323
  507. package/src/locale/ms.json +342 -323
  508. package/src/locale/nb.json +342 -323
  509. package/src/locale/nl-be.json +342 -323
  510. package/src/locale/nl.json +342 -323
  511. package/src/locale/nn.json +342 -323
  512. package/src/locale/no.json +342 -323
  513. package/src/locale/pl.json +342 -323
  514. package/src/locale/pt-br.json +342 -323
  515. package/src/locale/pt.json +342 -323
  516. package/src/locale/ro.json +342 -323
  517. package/src/locale/ru.json +342 -323
  518. package/src/locale/sk.json +342 -323
  519. package/src/locale/sl.json +342 -323
  520. package/src/locale/sq.json +342 -323
  521. package/src/locale/sr.json +342 -323
  522. package/src/locale/sv.json +342 -323
  523. package/src/locale/th.json +342 -323
  524. package/src/locale/tl.json +342 -323
  525. package/src/locale/tr.json +342 -323
  526. package/src/locale/uk.json +342 -323
  527. package/src/locale/vi.json +342 -323
  528. package/src/locale/zh-hk.json +342 -323
  529. package/src/locale/zh-tw.json +342 -323
  530. package/src/locale/zh.json +342 -323
  531. package/src/locale/zu.json +342 -323
  532. package/src/native/OsanoCmp.ts +36 -11
  533. package/src/services/consent.ts +33 -50
  534. package/src/services/google-consent-mode-mapper.ts +122 -0
  535. package/src/types/google-consent-mode.ts +122 -0
  536. package/src/types/index.d.ts +6 -4
  537. package/src/utils/OsanoLogger.ts +53 -0
  538. package/src/utils/Translator.ts +1 -1
  539. package/src/utils/index.ts +2 -0
  540. package/src/views/Dialog/Buttons.tsx +33 -23
  541. package/src/views/Dialog/index.tsx +66 -83
  542. package/src/views/Drawer/Drawer.ConsentCategories.tsx +25 -25
  543. package/src/views/Drawer/Drawer.Header.tsx +6 -6
  544. package/src/views/Drawer/Drawer.Iab.Vendors.tsx +10 -18
  545. package/src/views/Drawer/index.tsx +83 -64
  546. package/lib/typescript/lib/commonjs/ConsentManager.d.ts +0 -194
  547. package/lib/typescript/lib/commonjs/ConsentManager.d.ts.map +0 -1
  548. package/lib/typescript/lib/commonjs/ConsentUiBuilder.d.ts +0 -3
  549. package/lib/typescript/lib/commonjs/ConsentUiBuilder.d.ts.map +0 -1
  550. package/lib/typescript/lib/commonjs/actions.d.ts +0 -66
  551. package/lib/typescript/lib/commonjs/actions.d.ts.map +0 -1
  552. package/lib/typescript/lib/commonjs/commands.d.ts +0 -4
  553. package/lib/typescript/lib/commonjs/commands.d.ts.map +0 -1
  554. package/lib/typescript/lib/commonjs/components/Button.d.ts +0 -11
  555. package/lib/typescript/lib/commonjs/components/Button.d.ts.map +0 -1
  556. package/lib/typescript/lib/commonjs/components/Checkbox.d.ts +0 -4
  557. package/lib/typescript/lib/commonjs/components/Checkbox.d.ts.map +0 -1
  558. package/lib/typescript/lib/commonjs/components/Divider.d.ts +0 -3
  559. package/lib/typescript/lib/commonjs/components/Divider.d.ts.map +0 -1
  560. package/lib/typescript/lib/commonjs/components/ExpansionPanel.d.ts +0 -8
  561. package/lib/typescript/lib/commonjs/components/ExpansionPanel.d.ts.map +0 -1
  562. package/lib/typescript/lib/commonjs/components/Link.d.ts +0 -3
  563. package/lib/typescript/lib/commonjs/components/Link.d.ts.map +0 -1
  564. package/lib/typescript/lib/commonjs/components/List.d.ts +0 -3
  565. package/lib/typescript/lib/commonjs/components/List.d.ts.map +0 -1
  566. package/lib/typescript/lib/commonjs/components/Locale.d.ts +0 -6
  567. package/lib/typescript/lib/commonjs/components/Locale.d.ts.map +0 -1
  568. package/lib/typescript/lib/commonjs/components/StoragePolicyLink.d.ts +0 -4
  569. package/lib/typescript/lib/commonjs/components/StoragePolicyLink.d.ts.map +0 -1
  570. package/lib/typescript/lib/commonjs/components/Toggle.d.ts +0 -4
  571. package/lib/typescript/lib/commonjs/components/Toggle.d.ts.map +0 -1
  572. package/lib/typescript/lib/commonjs/constants.d.ts +0 -20
  573. package/lib/typescript/lib/commonjs/constants.d.ts.map +0 -1
  574. package/lib/typescript/lib/commonjs/context.d.ts +0 -4
  575. package/lib/typescript/lib/commonjs/context.d.ts.map +0 -1
  576. package/lib/typescript/lib/commonjs/flavors/index.d.ts +0 -122
  577. package/lib/typescript/lib/commonjs/flavors/index.d.ts.map +0 -1
  578. package/lib/typescript/lib/commonjs/hooks/useBoundCallback.d.ts +0 -18
  579. package/lib/typescript/lib/commonjs/hooks/useBoundCallback.d.ts.map +0 -1
  580. package/lib/typescript/lib/commonjs/hooks/useDeviceOrientation.d.ts +0 -4
  581. package/lib/typescript/lib/commonjs/hooks/useDeviceOrientation.d.ts.map +0 -1
  582. package/lib/typescript/lib/commonjs/hooks/usePrevious.d.ts +0 -3
  583. package/lib/typescript/lib/commonjs/hooks/usePrevious.d.ts.map +0 -1
  584. package/lib/typescript/lib/commonjs/hooks/useThunkReducer.d.ts +0 -8
  585. package/lib/typescript/lib/commonjs/hooks/useThunkReducer.d.ts.map +0 -1
  586. package/lib/typescript/lib/commonjs/iab/actions.d.ts +0 -10
  587. package/lib/typescript/lib/commonjs/iab/actions.d.ts.map +0 -1
  588. package/lib/typescript/lib/commonjs/iab/constants.d.ts +0 -5
  589. package/lib/typescript/lib/commonjs/iab/constants.d.ts.map +0 -1
  590. package/lib/typescript/lib/commonjs/iab/gpp/api.d.ts +0 -30
  591. package/lib/typescript/lib/commonjs/iab/gpp/api.d.ts.map +0 -1
  592. package/lib/typescript/lib/commonjs/iab/gpp/consent.d.ts +0 -25
  593. package/lib/typescript/lib/commonjs/iab/gpp/consent.d.ts.map +0 -1
  594. package/lib/typescript/lib/commonjs/iab/gpp/constants.d.ts +0 -26
  595. package/lib/typescript/lib/commonjs/iab/gpp/constants.d.ts.map +0 -1
  596. package/lib/typescript/lib/commonjs/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts +0 -9
  597. package/lib/typescript/lib/commonjs/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +0 -1
  598. package/lib/typescript/lib/commonjs/iab/gpp/encoders/BooleanEncoder.d.ts +0 -32
  599. package/lib/typescript/lib/commonjs/iab/gpp/encoders/BooleanEncoder.d.ts.map +0 -1
  600. package/lib/typescript/lib/commonjs/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +0 -10
  601. package/lib/typescript/lib/commonjs/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +0 -1
  602. package/lib/typescript/lib/commonjs/iab/gpp/encoders/DatetimeEncoder.d.ts +0 -29
  603. package/lib/typescript/lib/commonjs/iab/gpp/encoders/DatetimeEncoder.d.ts.map +0 -1
  604. package/lib/typescript/lib/commonjs/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +0 -19
  605. package/lib/typescript/lib/commonjs/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +0 -1
  606. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +0 -29
  607. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +0 -1
  608. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +0 -29
  609. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +0 -1
  610. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +0 -29
  611. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +0 -1
  612. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +0 -7
  613. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +0 -1
  614. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.d.ts +0 -29
  615. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +0 -1
  616. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +0 -29
  617. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +0 -1
  618. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +0 -29
  619. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +0 -1
  620. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedStringEncoder.d.ts +0 -29
  621. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedStringEncoder.d.ts.map +0 -1
  622. package/lib/typescript/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +0 -10
  623. package/lib/typescript/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +0 -1
  624. package/lib/typescript/lib/commonjs/iab/gpp/encoders/errors.d.ts +0 -17
  625. package/lib/typescript/lib/commonjs/iab/gpp/encoders/errors.d.ts.map +0 -1
  626. package/lib/typescript/lib/commonjs/iab/gpp/encoders/index.d.ts +0 -16
  627. package/lib/typescript/lib/commonjs/iab/gpp/encoders/index.d.ts.map +0 -1
  628. package/lib/typescript/lib/commonjs/iab/gpp/encoders/types.d.ts +0 -1
  629. package/lib/typescript/lib/commonjs/iab/gpp/encoders/types.d.ts.map +0 -1
  630. package/lib/typescript/lib/commonjs/iab/gpp/index.d.ts +0 -9
  631. package/lib/typescript/lib/commonjs/iab/gpp/index.d.ts.map +0 -1
  632. package/lib/typescript/lib/commonjs/iab/gpp/reducer.d.ts +0 -7
  633. package/lib/typescript/lib/commonjs/iab/gpp/reducer.d.ts.map +0 -1
  634. package/lib/typescript/lib/commonjs/iab/gpp/selectors.d.ts +0 -7
  635. package/lib/typescript/lib/commonjs/iab/gpp/selectors.d.ts.map +0 -1
  636. package/lib/typescript/lib/commonjs/iab/gpp/types.d.ts +0 -1
  637. package/lib/typescript/lib/commonjs/iab/gpp/types.d.ts.map +0 -1
  638. package/lib/typescript/lib/commonjs/iab/gpp/v1/constants.d.ts +0 -13
  639. package/lib/typescript/lib/commonjs/iab/gpp/v1/constants.d.ts.map +0 -1
  640. package/lib/typescript/lib/commonjs/iab/gpp/v1/index.d.ts +0 -14
  641. package/lib/typescript/lib/commonjs/iab/gpp/v1/index.d.ts.map +0 -1
  642. package/lib/typescript/lib/commonjs/iab/index.d.ts +0 -3
  643. package/lib/typescript/lib/commonjs/iab/index.d.ts.map +0 -1
  644. package/lib/typescript/lib/commonjs/iab/reducer.d.ts +0 -6
  645. package/lib/typescript/lib/commonjs/iab/reducer.d.ts.map +0 -1
  646. package/lib/typescript/lib/commonjs/iab/tcf/actions.d.ts +0 -64
  647. package/lib/typescript/lib/commonjs/iab/tcf/actions.d.ts.map +0 -1
  648. package/lib/typescript/lib/commonjs/iab/tcf/consent.d.ts +0 -59
  649. package/lib/typescript/lib/commonjs/iab/tcf/consent.d.ts.map +0 -1
  650. package/lib/typescript/lib/commonjs/iab/tcf/constants.d.ts +0 -22
  651. package/lib/typescript/lib/commonjs/iab/tcf/constants.d.ts.map +0 -1
  652. package/lib/typescript/lib/commonjs/iab/tcf/helpers.d.ts +0 -9
  653. package/lib/typescript/lib/commonjs/iab/tcf/helpers.d.ts.map +0 -1
  654. package/lib/typescript/lib/commonjs/iab/tcf/index.d.ts +0 -4
  655. package/lib/typescript/lib/commonjs/iab/tcf/index.d.ts.map +0 -1
  656. package/lib/typescript/lib/commonjs/iab/tcf/middleware.d.ts +0 -4
  657. package/lib/typescript/lib/commonjs/iab/tcf/middleware.d.ts.map +0 -1
  658. package/lib/typescript/lib/commonjs/iab/tcf/reducer.d.ts +0 -22
  659. package/lib/typescript/lib/commonjs/iab/tcf/reducer.d.ts.map +0 -1
  660. package/lib/typescript/lib/commonjs/iab/tcf/selectors.d.ts +0 -48
  661. package/lib/typescript/lib/commonjs/iab/tcf/selectors.d.ts.map +0 -1
  662. package/lib/typescript/lib/commonjs/iab/tcf/types.d.ts +0 -2
  663. package/lib/typescript/lib/commonjs/iab/tcf/types.d.ts.map +0 -1
  664. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/encoders.d.ts +0 -14
  665. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/encoders.d.ts.map +0 -1
  666. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/formatters.d.ts +0 -5
  667. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/formatters.d.ts.map +0 -1
  668. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/index.d.ts +0 -191
  669. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/index.d.ts.map +0 -1
  670. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/shared-constants.d.ts +0 -32
  671. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/shared-constants.d.ts.map +0 -1
  672. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.d.ts +0 -43
  673. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +0 -1
  674. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.d.ts +0 -48
  675. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +0 -1
  676. package/lib/typescript/lib/commonjs/iab/types.d.ts +0 -2
  677. package/lib/typescript/lib/commonjs/iab/types.d.ts.map +0 -1
  678. package/lib/typescript/lib/commonjs/iab/usp/api.d.ts +0 -6
  679. package/lib/typescript/lib/commonjs/iab/usp/api.d.ts.map +0 -1
  680. package/lib/typescript/lib/commonjs/iab/usp/consent.d.ts +0 -27
  681. package/lib/typescript/lib/commonjs/iab/usp/consent.d.ts.map +0 -1
  682. package/lib/typescript/lib/commonjs/iab/usp/constants.d.ts +0 -109
  683. package/lib/typescript/lib/commonjs/iab/usp/constants.d.ts.map +0 -1
  684. package/lib/typescript/lib/commonjs/iab/usp/index.d.ts +0 -9
  685. package/lib/typescript/lib/commonjs/iab/usp/index.d.ts.map +0 -1
  686. package/lib/typescript/lib/commonjs/iab/usp/reducer.d.ts +0 -14
  687. package/lib/typescript/lib/commonjs/iab/usp/reducer.d.ts.map +0 -1
  688. package/lib/typescript/lib/commonjs/iab/usp/selectors.d.ts +0 -10
  689. package/lib/typescript/lib/commonjs/iab/usp/selectors.d.ts.map +0 -1
  690. package/lib/typescript/lib/commonjs/iab/usp/types.d.ts +0 -1
  691. package/lib/typescript/lib/commonjs/iab/usp/types.d.ts.map +0 -1
  692. package/lib/typescript/lib/commonjs/iab/usp/v1/constants.d.ts +0 -13
  693. package/lib/typescript/lib/commonjs/iab/usp/v1/constants.d.ts.map +0 -1
  694. package/lib/typescript/lib/commonjs/iab/usp/v1/index.d.ts +0 -12
  695. package/lib/typescript/lib/commonjs/iab/usp/v1/index.d.ts.map +0 -1
  696. package/lib/typescript/lib/commonjs/iab/utilities.d.ts +0 -3
  697. package/lib/typescript/lib/commonjs/iab/utilities.d.ts.map +0 -1
  698. package/lib/typescript/lib/commonjs/index.d.ts +0 -4
  699. package/lib/typescript/lib/commonjs/index.d.ts.map +0 -1
  700. package/lib/typescript/lib/commonjs/locale/index.d.ts +0 -62
  701. package/lib/typescript/lib/commonjs/locale/index.d.ts.map +0 -1
  702. package/lib/typescript/lib/commonjs/native/OsanoCmp.d.ts +0 -6
  703. package/lib/typescript/lib/commonjs/native/OsanoCmp.d.ts.map +0 -1
  704. package/lib/typescript/lib/commonjs/reducer.d.ts +0 -29
  705. package/lib/typescript/lib/commonjs/reducer.d.ts.map +0 -1
  706. package/lib/typescript/lib/commonjs/selectors.d.ts +0 -16
  707. package/lib/typescript/lib/commonjs/selectors.d.ts.map +0 -1
  708. package/lib/typescript/lib/commonjs/services/consent.d.ts +0 -11
  709. package/lib/typescript/lib/commonjs/services/consent.d.ts.map +0 -1
  710. package/lib/typescript/lib/commonjs/services/disclosures.d.ts +0 -3
  711. package/lib/typescript/lib/commonjs/services/disclosures.d.ts.map +0 -1
  712. package/lib/typescript/lib/commonjs/services/locale.d.ts +0 -4
  713. package/lib/typescript/lib/commonjs/services/locale.d.ts.map +0 -1
  714. package/lib/typescript/lib/commonjs/styles.d.ts +0 -141
  715. package/lib/typescript/lib/commonjs/styles.d.ts.map +0 -1
  716. package/lib/typescript/lib/commonjs/types/consent-config.d.d.ts +0 -2
  717. package/lib/typescript/lib/commonjs/types/consent-config.d.d.ts.map +0 -1
  718. package/lib/typescript/lib/commonjs/types/env.d.d.ts +0 -1
  719. package/lib/typescript/lib/commonjs/types/env.d.d.ts.map +0 -1
  720. package/lib/typescript/lib/commonjs/types/index.d.d.ts +0 -2
  721. package/lib/typescript/lib/commonjs/types/index.d.d.ts.map +0 -1
  722. package/lib/typescript/lib/commonjs/types/store.d.d.ts +0 -2
  723. package/lib/typescript/lib/commonjs/types/store.d.d.ts.map +0 -1
  724. package/lib/typescript/lib/commonjs/utils/API.d.ts +0 -7
  725. package/lib/typescript/lib/commonjs/utils/API.d.ts.map +0 -1
  726. package/lib/typescript/lib/commonjs/utils/Color.d.ts +0 -13
  727. package/lib/typescript/lib/commonjs/utils/Color.d.ts.map +0 -1
  728. package/lib/typescript/lib/commonjs/utils/EventEmitter.d.ts +0 -16
  729. package/lib/typescript/lib/commonjs/utils/EventEmitter.d.ts.map +0 -1
  730. package/lib/typescript/lib/commonjs/utils/Translator.d.ts +0 -54
  731. package/lib/typescript/lib/commonjs/utils/Translator.d.ts.map +0 -1
  732. package/lib/typescript/lib/commonjs/utils/index.d.ts +0 -6
  733. package/lib/typescript/lib/commonjs/utils/index.d.ts.map +0 -1
  734. package/lib/typescript/lib/commonjs/utils/types.d.ts +0 -1
  735. package/lib/typescript/lib/commonjs/utils/types.d.ts.map +0 -1
  736. package/lib/typescript/lib/commonjs/views/Dialog/Buttons.d.ts +0 -4
  737. package/lib/typescript/lib/commonjs/views/Dialog/Buttons.d.ts.map +0 -1
  738. package/lib/typescript/lib/commonjs/views/Dialog/FirstLayerUsage.d.ts +0 -4
  739. package/lib/typescript/lib/commonjs/views/Dialog/FirstLayerUsage.d.ts.map +0 -1
  740. package/lib/typescript/lib/commonjs/views/Dialog/Message.d.ts +0 -4
  741. package/lib/typescript/lib/commonjs/views/Dialog/Message.d.ts.map +0 -1
  742. package/lib/typescript/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.d.ts +0 -4
  743. package/lib/typescript/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.d.ts.map +0 -1
  744. package/lib/typescript/lib/commonjs/views/Dialog/index.d.ts +0 -4
  745. package/lib/typescript/lib/commonjs/views/Dialog/index.d.ts.map +0 -1
  746. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.ConsentCategories.d.ts +0 -4
  747. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.ConsentCategories.d.ts.map +0 -1
  748. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Header.d.ts +0 -4
  749. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Header.d.ts.map +0 -1
  750. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.d.ts +0 -4
  751. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.d.ts.map +0 -1
  752. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.d.ts +0 -4
  753. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.d.ts.map +0 -1
  754. package/lib/typescript/lib/commonjs/views/Drawer/index.d.ts +0 -3
  755. package/lib/typescript/lib/commonjs/views/Drawer/index.d.ts.map +0 -1
  756. package/lib/typescript/lib/module/ConsentManager.d.ts +0 -351
  757. package/lib/typescript/lib/module/ConsentManager.d.ts.map +0 -1
  758. package/lib/typescript/lib/module/ConsentUiBuilder.d.ts +0 -174
  759. package/lib/typescript/lib/module/ConsentUiBuilder.d.ts.map +0 -1
  760. package/lib/typescript/lib/module/actions.d.ts +0 -65
  761. package/lib/typescript/lib/module/actions.d.ts.map +0 -1
  762. package/lib/typescript/lib/module/commands.d.ts +0 -3
  763. package/lib/typescript/lib/module/commands.d.ts.map +0 -1
  764. package/lib/typescript/lib/module/components/Button.d.ts +0 -11
  765. package/lib/typescript/lib/module/components/Button.d.ts.map +0 -1
  766. package/lib/typescript/lib/module/components/Checkbox.d.ts +0 -4
  767. package/lib/typescript/lib/module/components/Checkbox.d.ts.map +0 -1
  768. package/lib/typescript/lib/module/components/Divider.d.ts +0 -4
  769. package/lib/typescript/lib/module/components/Divider.d.ts.map +0 -1
  770. package/lib/typescript/lib/module/components/ExpansionPanel.d.ts +0 -9
  771. package/lib/typescript/lib/module/components/ExpansionPanel.d.ts.map +0 -1
  772. package/lib/typescript/lib/module/components/Link.d.ts +0 -4
  773. package/lib/typescript/lib/module/components/Link.d.ts.map +0 -1
  774. package/lib/typescript/lib/module/components/List.d.ts +0 -4
  775. package/lib/typescript/lib/module/components/List.d.ts.map +0 -1
  776. package/lib/typescript/lib/module/components/Locale.d.ts +0 -5
  777. package/lib/typescript/lib/module/components/Locale.d.ts.map +0 -1
  778. package/lib/typescript/lib/module/components/StoragePolicyLink.d.ts +0 -4
  779. package/lib/typescript/lib/module/components/StoragePolicyLink.d.ts.map +0 -1
  780. package/lib/typescript/lib/module/components/Toggle.d.ts +0 -4
  781. package/lib/typescript/lib/module/components/Toggle.d.ts.map +0 -1
  782. package/lib/typescript/lib/module/constants.d.ts +0 -19
  783. package/lib/typescript/lib/module/constants.d.ts.map +0 -1
  784. package/lib/typescript/lib/module/context.d.ts +0 -186
  785. package/lib/typescript/lib/module/context.d.ts.map +0 -1
  786. package/lib/typescript/lib/module/flavors/index.d.ts +0 -17
  787. package/lib/typescript/lib/module/flavors/index.d.ts.map +0 -1
  788. package/lib/typescript/lib/module/hooks/useBoundCallback.d.ts +0 -17
  789. package/lib/typescript/lib/module/hooks/useBoundCallback.d.ts.map +0 -1
  790. package/lib/typescript/lib/module/hooks/useDeviceOrientation.d.ts +0 -3
  791. package/lib/typescript/lib/module/hooks/useDeviceOrientation.d.ts.map +0 -1
  792. package/lib/typescript/lib/module/hooks/usePrevious.d.ts +0 -2
  793. package/lib/typescript/lib/module/hooks/usePrevious.d.ts.map +0 -1
  794. package/lib/typescript/lib/module/hooks/useThunkReducer.d.ts +0 -7
  795. package/lib/typescript/lib/module/hooks/useThunkReducer.d.ts.map +0 -1
  796. package/lib/typescript/lib/module/iab/actions.d.ts +0 -9
  797. package/lib/typescript/lib/module/iab/actions.d.ts.map +0 -1
  798. package/lib/typescript/lib/module/iab/constants.d.ts +0 -4
  799. package/lib/typescript/lib/module/iab/constants.d.ts.map +0 -1
  800. package/lib/typescript/lib/module/iab/gpp/api.d.ts +0 -28
  801. package/lib/typescript/lib/module/iab/gpp/api.d.ts.map +0 -1
  802. package/lib/typescript/lib/module/iab/gpp/consent.d.ts +0 -24
  803. package/lib/typescript/lib/module/iab/gpp/consent.d.ts.map +0 -1
  804. package/lib/typescript/lib/module/iab/gpp/constants.d.ts +0 -37
  805. package/lib/typescript/lib/module/iab/gpp/constants.d.ts.map +0 -1
  806. package/lib/typescript/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts +0 -8
  807. package/lib/typescript/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +0 -1
  808. package/lib/typescript/lib/module/iab/gpp/encoders/BooleanEncoder.d.ts +0 -8
  809. package/lib/typescript/lib/module/iab/gpp/encoders/BooleanEncoder.d.ts.map +0 -1
  810. package/lib/typescript/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +0 -9
  811. package/lib/typescript/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +0 -1
  812. package/lib/typescript/lib/module/iab/gpp/encoders/DatetimeEncoder.d.ts +0 -8
  813. package/lib/typescript/lib/module/iab/gpp/encoders/DatetimeEncoder.d.ts.map +0 -1
  814. package/lib/typescript/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +0 -18
  815. package/lib/typescript/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +0 -1
  816. package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +0 -8
  817. package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +0 -1
  818. package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +0 -8
  819. package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +0 -1
  820. package/lib/typescript/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +0 -8
  821. package/lib/typescript/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +0 -1
  822. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +0 -6
  823. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +0 -1
  824. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerEncoder.d.ts +0 -8
  825. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +0 -1
  826. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +0 -8
  827. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +0 -1
  828. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +0 -8
  829. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +0 -1
  830. package/lib/typescript/lib/module/iab/gpp/encoders/FixedStringEncoder.d.ts +0 -8
  831. package/lib/typescript/lib/module/iab/gpp/encoders/FixedStringEncoder.d.ts.map +0 -1
  832. package/lib/typescript/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +0 -9
  833. package/lib/typescript/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +0 -1
  834. package/lib/typescript/lib/module/iab/gpp/encoders/errors.d.ts +0 -16
  835. package/lib/typescript/lib/module/iab/gpp/encoders/errors.d.ts.map +0 -1
  836. package/lib/typescript/lib/module/iab/gpp/encoders/index.d.ts +0 -15
  837. package/lib/typescript/lib/module/iab/gpp/encoders/index.d.ts.map +0 -1
  838. package/lib/typescript/lib/module/iab/gpp/encoders/types.d.ts +0 -1
  839. package/lib/typescript/lib/module/iab/gpp/encoders/types.d.ts.map +0 -1
  840. package/lib/typescript/lib/module/iab/gpp/index.d.ts +0 -10
  841. package/lib/typescript/lib/module/iab/gpp/index.d.ts.map +0 -1
  842. package/lib/typescript/lib/module/iab/gpp/reducer.d.ts +0 -6
  843. package/lib/typescript/lib/module/iab/gpp/reducer.d.ts.map +0 -1
  844. package/lib/typescript/lib/module/iab/gpp/selectors.d.ts +0 -6
  845. package/lib/typescript/lib/module/iab/gpp/selectors.d.ts.map +0 -1
  846. package/lib/typescript/lib/module/iab/gpp/types.d.ts +0 -1
  847. package/lib/typescript/lib/module/iab/gpp/types.d.ts.map +0 -1
  848. package/lib/typescript/lib/module/iab/gpp/v1/constants.d.ts +0 -9
  849. package/lib/typescript/lib/module/iab/gpp/v1/constants.d.ts.map +0 -1
  850. package/lib/typescript/lib/module/iab/gpp/v1/index.d.ts +0 -19
  851. package/lib/typescript/lib/module/iab/gpp/v1/index.d.ts.map +0 -1
  852. package/lib/typescript/lib/module/iab/index.d.ts +0 -2
  853. package/lib/typescript/lib/module/iab/index.d.ts.map +0 -1
  854. package/lib/typescript/lib/module/iab/reducer.d.ts +0 -5
  855. package/lib/typescript/lib/module/iab/reducer.d.ts.map +0 -1
  856. package/lib/typescript/lib/module/iab/tcf/actions.d.ts +0 -63
  857. package/lib/typescript/lib/module/iab/tcf/actions.d.ts.map +0 -1
  858. package/lib/typescript/lib/module/iab/tcf/consent.d.ts +0 -58
  859. package/lib/typescript/lib/module/iab/tcf/consent.d.ts.map +0 -1
  860. package/lib/typescript/lib/module/iab/tcf/constants.d.ts +0 -21
  861. package/lib/typescript/lib/module/iab/tcf/constants.d.ts.map +0 -1
  862. package/lib/typescript/lib/module/iab/tcf/helpers.d.ts +0 -8
  863. package/lib/typescript/lib/module/iab/tcf/helpers.d.ts.map +0 -1
  864. package/lib/typescript/lib/module/iab/tcf/index.d.ts +0 -303
  865. package/lib/typescript/lib/module/iab/tcf/index.d.ts.map +0 -1
  866. package/lib/typescript/lib/module/iab/tcf/middleware.d.ts +0 -3
  867. package/lib/typescript/lib/module/iab/tcf/middleware.d.ts.map +0 -1
  868. package/lib/typescript/lib/module/iab/tcf/reducer.d.ts +0 -20
  869. package/lib/typescript/lib/module/iab/tcf/reducer.d.ts.map +0 -1
  870. package/lib/typescript/lib/module/iab/tcf/selectors.d.ts +0 -47
  871. package/lib/typescript/lib/module/iab/tcf/selectors.d.ts.map +0 -1
  872. package/lib/typescript/lib/module/iab/tcf/types.d.ts +0 -2
  873. package/lib/typescript/lib/module/iab/tcf/types.d.ts.map +0 -1
  874. package/lib/typescript/lib/module/iab/tcf/v2.0/encoders.d.ts +0 -13
  875. package/lib/typescript/lib/module/iab/tcf/v2.0/encoders.d.ts.map +0 -1
  876. package/lib/typescript/lib/module/iab/tcf/v2.0/formatters.d.ts +0 -4
  877. package/lib/typescript/lib/module/iab/tcf/v2.0/formatters.d.ts.map +0 -1
  878. package/lib/typescript/lib/module/iab/tcf/v2.0/index.d.ts +0 -308
  879. package/lib/typescript/lib/module/iab/tcf/v2.0/index.d.ts.map +0 -1
  880. package/lib/typescript/lib/module/iab/tcf/v2.0/shared-constants.d.ts +0 -80
  881. package/lib/typescript/lib/module/iab/tcf/v2.0/shared-constants.d.ts.map +0 -1
  882. package/lib/typescript/lib/module/iab/tcf/v2.0/tcfcav1-constants.d.ts +0 -104
  883. package/lib/typescript/lib/module/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +0 -1
  884. package/lib/typescript/lib/module/iab/tcf/v2.0/tcfeuv2-constants.d.ts +0 -103
  885. package/lib/typescript/lib/module/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +0 -1
  886. package/lib/typescript/lib/module/iab/types.d.ts +0 -2
  887. package/lib/typescript/lib/module/iab/types.d.ts.map +0 -1
  888. package/lib/typescript/lib/module/iab/usp/api.d.ts +0 -4
  889. package/lib/typescript/lib/module/iab/usp/api.d.ts.map +0 -1
  890. package/lib/typescript/lib/module/iab/usp/consent.d.ts +0 -13
  891. package/lib/typescript/lib/module/iab/usp/consent.d.ts.map +0 -1
  892. package/lib/typescript/lib/module/iab/usp/constants.d.ts +0 -77
  893. package/lib/typescript/lib/module/iab/usp/constants.d.ts.map +0 -1
  894. package/lib/typescript/lib/module/iab/usp/index.d.ts +0 -10
  895. package/lib/typescript/lib/module/iab/usp/index.d.ts.map +0 -1
  896. package/lib/typescript/lib/module/iab/usp/reducer.d.ts +0 -13
  897. package/lib/typescript/lib/module/iab/usp/reducer.d.ts.map +0 -1
  898. package/lib/typescript/lib/module/iab/usp/selectors.d.ts +0 -9
  899. package/lib/typescript/lib/module/iab/usp/selectors.d.ts.map +0 -1
  900. package/lib/typescript/lib/module/iab/usp/types.d.ts +0 -1
  901. package/lib/typescript/lib/module/iab/usp/types.d.ts.map +0 -1
  902. package/lib/typescript/lib/module/iab/usp/v1/constants.d.ts +0 -9
  903. package/lib/typescript/lib/module/iab/usp/v1/constants.d.ts.map +0 -1
  904. package/lib/typescript/lib/module/iab/usp/v1/index.d.ts +0 -16
  905. package/lib/typescript/lib/module/iab/usp/v1/index.d.ts.map +0 -1
  906. package/lib/typescript/lib/module/iab/utilities.d.ts +0 -2
  907. package/lib/typescript/lib/module/iab/utilities.d.ts.map +0 -1
  908. package/lib/typescript/lib/module/index.d.ts +0 -4
  909. package/lib/typescript/lib/module/index.d.ts.map +0 -1
  910. package/lib/typescript/lib/module/locale/index.d.ts +0 -61
  911. package/lib/typescript/lib/module/locale/index.d.ts.map +0 -1
  912. package/lib/typescript/lib/module/native/OsanoCmp.d.ts +0 -5
  913. package/lib/typescript/lib/module/native/OsanoCmp.d.ts.map +0 -1
  914. package/lib/typescript/lib/module/reducer.d.ts +0 -28
  915. package/lib/typescript/lib/module/reducer.d.ts.map +0 -1
  916. package/lib/typescript/lib/module/selectors.d.ts +0 -15
  917. package/lib/typescript/lib/module/selectors.d.ts.map +0 -1
  918. package/lib/typescript/lib/module/services/consent.d.ts +0 -10
  919. package/lib/typescript/lib/module/services/consent.d.ts.map +0 -1
  920. package/lib/typescript/lib/module/services/disclosures.d.ts +0 -2
  921. package/lib/typescript/lib/module/services/disclosures.d.ts.map +0 -1
  922. package/lib/typescript/lib/module/services/locale.d.ts +0 -3
  923. package/lib/typescript/lib/module/services/locale.d.ts.map +0 -1
  924. package/lib/typescript/lib/module/styles.d.ts +0 -140
  925. package/lib/typescript/lib/module/styles.d.ts.map +0 -1
  926. package/lib/typescript/lib/module/types/consent-config.d.d.ts +0 -2
  927. package/lib/typescript/lib/module/types/consent-config.d.d.ts.map +0 -1
  928. package/lib/typescript/lib/module/types/env.d.d.ts +0 -1
  929. package/lib/typescript/lib/module/types/env.d.d.ts.map +0 -1
  930. package/lib/typescript/lib/module/types/index.d.d.ts +0 -2
  931. package/lib/typescript/lib/module/types/index.d.d.ts.map +0 -1
  932. package/lib/typescript/lib/module/types/store.d.d.ts +0 -2
  933. package/lib/typescript/lib/module/types/store.d.d.ts.map +0 -1
  934. package/lib/typescript/lib/module/utils/API.d.ts +0 -6
  935. package/lib/typescript/lib/module/utils/API.d.ts.map +0 -1
  936. package/lib/typescript/lib/module/utils/Color.d.ts +0 -12
  937. package/lib/typescript/lib/module/utils/Color.d.ts.map +0 -1
  938. package/lib/typescript/lib/module/utils/EventEmitter.d.ts +0 -15
  939. package/lib/typescript/lib/module/utils/EventEmitter.d.ts.map +0 -1
  940. package/lib/typescript/lib/module/utils/Translator.d.ts +0 -52
  941. package/lib/typescript/lib/module/utils/Translator.d.ts.map +0 -1
  942. package/lib/typescript/lib/module/utils/index.d.ts +0 -5
  943. package/lib/typescript/lib/module/utils/index.d.ts.map +0 -1
  944. package/lib/typescript/lib/module/utils/types.d.ts +0 -1
  945. package/lib/typescript/lib/module/utils/types.d.ts.map +0 -1
  946. package/lib/typescript/lib/module/views/Dialog/Buttons.d.ts +0 -5
  947. package/lib/typescript/lib/module/views/Dialog/Buttons.d.ts.map +0 -1
  948. package/lib/typescript/lib/module/views/Dialog/FirstLayerUsage.d.ts +0 -5
  949. package/lib/typescript/lib/module/views/Dialog/FirstLayerUsage.d.ts.map +0 -1
  950. package/lib/typescript/lib/module/views/Dialog/Message.d.ts +0 -4
  951. package/lib/typescript/lib/module/views/Dialog/Message.d.ts.map +0 -1
  952. package/lib/typescript/lib/module/views/Dialog/PreferenceManagementDeepLinks.d.ts +0 -6
  953. package/lib/typescript/lib/module/views/Dialog/PreferenceManagementDeepLinks.d.ts.map +0 -1
  954. package/lib/typescript/lib/module/views/Dialog/index.d.ts +0 -5
  955. package/lib/typescript/lib/module/views/Dialog/index.d.ts.map +0 -1
  956. package/lib/typescript/lib/module/views/Drawer/Drawer.ConsentCategories.d.ts +0 -5
  957. package/lib/typescript/lib/module/views/Drawer/Drawer.ConsentCategories.d.ts.map +0 -1
  958. package/lib/typescript/lib/module/views/Drawer/Drawer.Header.d.ts +0 -5
  959. package/lib/typescript/lib/module/views/Drawer/Drawer.Header.d.ts.map +0 -1
  960. package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Disclosures.d.ts +0 -5
  961. package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Disclosures.d.ts.map +0 -1
  962. package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Vendors.d.ts +0 -5
  963. package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Vendors.d.ts.map +0 -1
  964. package/lib/typescript/lib/module/views/Drawer/index.d.ts +0 -4
  965. package/lib/typescript/lib/module/views/Drawer/index.d.ts.map +0 -1
package/README.dev.md CHANGED
@@ -26,9 +26,24 @@ From the root folder, run the following:
26
26
  corepack yarn install
27
27
  corepack yarn prepare
28
28
  cd example/ios && pod install && cd ../..
29
+ cd example/ios && echo export NODE_BINARY=$(command -v node) > .xcode.env && cd ../.. # do once
30
+ cp example/.env.example example/.env # do once
29
31
  corepack yarn example android # or ios
32
+
33
+ # alternatively
34
+ cd example && corepack yarn start android # or ios
30
35
  ```
31
36
 
37
+ ### Specifying run destination
38
+
39
+ **iOS**
40
+
41
+ `corepack yarn example ios --simulator "iPhone 15 Pro"`
42
+
43
+ **Android**
44
+
45
+ `// TODO`
46
+
32
47
  ## Running Tests
33
48
 
34
49
  Testing should be done through both the example integration and the package itself.
@@ -49,10 +64,222 @@ npm test
49
64
 
50
65
  ### Testing the examples
51
66
 
52
- _Needs to be written_
67
+ #### Build the test applications from local builds
68
+
69
+ - iOS
70
+
71
+ 1. Run the iOS application locally via `yarn example ios`
72
+ 1. Open the Derived Data in your XCode folder `~/Library/Developer/XCode/DerivedData`
73
+ 1. One of the folders in the `DerivedData` folder will contain a `Build` folder
74
+ 1. Open `Build/Products/<device-type>`
75
+ 1. The .app file will be `OsanoCMPExample` with a file type `Application`
76
+
77
+ - Android
78
+
79
+ 1. Run the android example application locally via `yarn example android`
80
+ 1. In `Android Studio` under `Project` open `app/build/outputs/apk/<release-or-debug>/` to get the apk file
81
+
82
+ Both files can be sent to coworkers with an ios simulator or android emulator to run for testing
53
83
 
54
84
  ## Troubleshooting
55
85
 
56
86
  1. If the `run` command fails saying there is no development project, make sure to open the relevant simulator/emulator before running.
57
87
  1. If there are significant errors citing duplicates, it is likely you ran `npm i` in the packages folder. These files should be removed via `rm -rf node_modules` in the `packages/osano-cmp-react-native` folder from the command line
58
88
  1. For initial developing and testing make sure you have a relatively recent simulator on iOS and emulator on Android. Old devices running old OS can cause unnecessary issues
89
+ 1. Building the iOS example from Xcode might result in a `Command PhaseScriptExecution failed with a nonzero exit code`. This is caused by a missing `.xcode.env` file that contains an entry for NODE_PATH. Resolve by running `echo export NODE_BINARY=$(command -v node) > .xcode.env` from the `example/ios` directory.
90
+
91
+ =======
92
+
93
+ The Osano ConsentSDK for iOS is a native framework that integrates with the Consent Management Platform on the [Osano Website](https://my.osano.com). It is necessary to have an account, and a Cookie Consent configuration created and published in order for this SDK to be able to record end-user consents.
94
+
95
+ ### Installation
96
+
97
+ ---
98
+
99
+ We use NPM to manage and install the SDK package.
100
+
101
+ 1. At the top level of your project run `npm install @osano/osano-cmp-react-native`
102
+
103
+ #### Native iOS installation
104
+
105
+ NPM uses cocoapods to install the native iOS portion of modules[CocoaPods](https://guides.cocoapods.org/)
106
+
107
+ 1. Install Cocoapods using [Cocoapods - Getting Started](https://guides.cocoapods.org/using/getting-started.html).
108
+ 1. Run `pod install` from inside the iOS folder in your project
109
+
110
+ #### Native Android installation
111
+
112
+ 1. Run a gradle sync after `@osano/osano-cmp-react-native` has been added to your package manager
113
+
114
+ ### Integration
115
+
116
+ ## How do I use it?
117
+
118
+ - [ConsentManager](#consentmanager)
119
+ - [UI Builder](#ui-builder)
120
+ - [1. Dialog](#dialog)
121
+ - [2. Drawer](#drawer)
122
+ - [Using Custom UI](#using-custom-ui)
123
+
124
+ ### ConsentManager
125
+
126
+ First, you must create an instance of the `Osano` object. This object contains the general
127
+ configuration parameters that will be used throughout the life of the
128
+ application.
129
+
130
+ ```js
131
+ import { Osano, OsanoContext } from '@osano/osano-cmp-react-native'
132
+
133
+ // ...
134
+
135
+ <Osano
136
+ customerId={customerId}
137
+ configId={configId}
138
+ hideDisclosures={hideDisclosures}
139
+ onConfigLoadSuccess={handleConfigLoadSuccess}
140
+ onConfigLoadFailure={handleConfigLoadFailure}
141
+ onLangLoadSuccess={handleLangLoadSuccess}
142
+ onLangLoadFailure={handleLangLoadFailure}
143
+ setLoggingEnabled={__DEV__} // Control SDK logging
144
+ overrides={{
145
+ flavor: flavor ? flavor : undefined,
146
+ locale: locale ? locale : undefined,
147
+ }}
148
+ >
149
+ <YourAppHere>
150
+ </Osano>
151
+ ```
152
+
153
+ Note that the `configId` and `customerId` parameters are not optional, and must match the values of your configuration on the [Osano website](https://my.osano.com).
154
+
155
+ To associate an external user identifier with the stored consent record, use `extUsrData`. This identifier is essential for
156
+ [Cross-Device Consent](https://docs.osano.com/hc/en-us/articles/22472143433364-Cross-Domain-and-Cross-Device-Consent).
157
+
158
+ By providing the same ID across devices and platforms (e.g., web and mobile), the SDK can look up and apply the user’s existing consent record, ensuring consistency across environments. For more internal details, see our [Cross-Device Consent Lookups documentation](https://osano.atlassian.net/wiki/spaces/CMPM/pages/604078081/Cross-Device+Consent+Lookups).
159
+
160
+ > **_Important considerations_**
161
+ >
162
+ > - SDK behavior: All Osano SDKs will always record `extUsrData`. This is required for cross-device consent to function properly.
163
+ > - Web CMP behavior: The Web CMP will not record `extUsrData` unless cross-device consent is explicitly enabled in your configuration. If cross-device consent is not enabled, the parameter will be ignored.
164
+ >
165
+ > Because of this distinction, developers should not expect extUsrData to have any effect in the Web CMP unless cross-device consent is turned on.
166
+
167
+ #### Logging Configuration
168
+
169
+ The SDK includes built-in logging for debugging. Use `setLoggingEnabled={__DEV__}` to enable logging in development and disable it in production. All logs are prefixed with `[OsanoSDK]`.
170
+
171
+ You can use the `OsanoContext` to access the `ConsentManager` object:
172
+
173
+ ```js
174
+ const {
175
+ clearConsent,
176
+ getConsent,
177
+ getDeviceId,
178
+ locale,
179
+ setLocale,
180
+ showBanner,
181
+ showDrawer,
182
+ isReady,
183
+ } = React.useContext(OsanoContext);
184
+ ```
185
+
186
+ ### UI Builder
187
+
188
+ Now that you have created an instance of the `ConsentManager`, you can
189
+ use it to create and show consent messages in your application. There
190
+ are two types of dialogues available to show in the SDK, and (depending on the geo-location of your end-user) the UI for each will look different. This is due to legal requirements that are in place for the end-user's geo-location. Rest assured, these UI differences are intentional and necessary to maintain legal compliance for the location of your users.
191
+
192
+ #### Display Modes
193
+
194
+ The UI may de shown in 2 different ways:
195
+
196
+ ##### Dialog
197
+
198
+ The Dialog View Controller allows you to show a consent message and the
199
+ required data storage preferences based on the country the device is in.
200
+ The SDK takes care of figuring out which consent variant must be shown
201
+ based on the device's locale.
202
+
203
+ To create the dialogue and show it, use the `showDrawer` method from the `OsanoContext`:
204
+
205
+ ```js
206
+ <Pressable onPress={showDrawer}>
207
+ <Text>Show Categories Dialog</Text>
208
+ </Pressable>
209
+ ```
210
+
211
+ :::note
212
+
213
+ The dialog (depending on the end-user's geo-location) may have an automatic timeout, which will grant consent upon closure. This is normal functionality for specific global regions.
214
+
215
+ :::
216
+
217
+ :::caution Declined to Consent
218
+
219
+ If a the completion callback notifies you that the end-user declined to consent, this **does not mean** they _denied_ consent. It simply means that they _**did not make a selection**_.
220
+
221
+ The Drawer UI will not allow the user to dismiss the modal without making a selection, but the Dialog UI (in some geo-locations) will allow the user to dismiss the modal without making a selection. This is why it is important to check the `categories` array in the completion callback to determine if the user has actually declined to consent.
222
+
223
+ :::
224
+
225
+ ##### Drawer
226
+
227
+ The Drawer View Controller allows you to display all consent
228
+ categories using a built-in UI. In this dialogue, the user can choose to
229
+ enable or disable any of the consent categories.
230
+ To user the view controller and show it, use the method `showBanner`
231
+
232
+ ```js
233
+ <Pressable onPress={showBanner}>
234
+ <Text>Show Concent Banner</Text>
235
+ </Pressable>
236
+ ```
237
+
238
+ ### Using Custom Implementation
239
+
240
+ If the SDK's built-in UI and implementation does not fit your requirements, you can use the
241
+ `ConsentManager`'s APIs and integrate them to your own app's UI:
242
+
243
+ ```js
244
+ const consentManager = useRef<ConsentManager>(new ConsentManager());
245
+ const [_state, dispatch, getState, addMiddleware, removeMiddleware] =
246
+ useThunkReducer<OsanoState, OsanoAction>(
247
+ reducer,
248
+ { configId, customerId },
249
+ init,
250
+ [],
251
+ );
252
+ return(
253
+ <OsanoPublicContext.Provider value={context}>
254
+ {<YourAppHere>}
255
+ <ConsentUiBuilder
256
+ addMiddleware={addMiddleware}
257
+ removeMiddleware={removeMiddleware}
258
+ dispatch={dispatch}
259
+ getState={getState}
260
+ cmp={consentManager}
261
+ hideDisclosures={hideDisclosures}
262
+ />
263
+ </OsanoPublicContext.Provider>
264
+ )
265
+ ```
266
+
267
+ To save (locally and remotely) new consent categories use:
268
+
269
+ ```js
270
+ recordConsent(consentManager.current, ConsentCategory.ESSENTIAL); //ESSENTIAL, ANALYTICS, MARKETING, PERSONALIZATION, OPT_OUT
271
+ ```
272
+
273
+ To get the list of consented categories (local storage):
274
+
275
+ ```js
276
+ let consentedArray = consentManager.current.consent;
277
+ let consentedString = consentedArray.join(', ');
278
+ console.log(consentedString);
279
+ ```
280
+
281
+ To get whether the user has already gone through the consent process:
282
+
283
+ ```js
284
+ let userConsented = consentManager.current.consent.length > 0;
285
+ ```
package/README.md CHANGED
@@ -1,269 +1,3 @@
1
- # Osano CMP React Native
1
+ # Osano CMP SDK for React Native
2
2
 
3
- ## Necessary Software Setup
4
-
5
- 1. Xcode
6
- 1. Android Studio
7
- 1. Xcode command-line tools
8
- 1. Node
9
-
10
- ### Corepack
11
-
12
- This project uses `corepack` to manage and link dependencies. To install `corepack`, run the following commands:
13
-
14
- ```shell
15
- corepack enable
16
- corepack install # installs yarn
17
- ```
18
-
19
- ## Running Locally
20
-
21
- The repo is made up of a root folder and 2 important sub folders. The first is `packages`, which is the actual SDK. The second is `examples`, which includes different implementations of the SDK in a test app to demonstrate and test integration.
22
-
23
- From the root folder, run the following:
24
-
25
- ```shell
26
- corepack yarn install
27
- corepack yarn prepare
28
- cd example/ios && pod install && cd ../..
29
- cd example/ios && echo export NODE_BINARY=$(command -v node) > .xcode.env && cd ../.. # do once
30
- cp example/.env.example example/.env # do once
31
- corepack yarn example android # or ios
32
-
33
- # alternatively
34
- cd example && corepack yarn start android # or ios
35
- ```
36
-
37
- ### Specifying run destination
38
-
39
- **iOS**
40
-
41
- `corepack yarn example ios --simulator "iPhone 15 Pro"`
42
-
43
- **Android**
44
-
45
- `// TODO`
46
-
47
- ## Running Tests
48
-
49
- Testing should be done through both the example integration and the package itself.
50
-
51
- ### Testing the package
52
-
53
- 1. From the `packages/osano-comp-react-native` folder run the following. This specifically runs the tests associated with the main package
54
-
55
- ```shell
56
- npm test /src/__tests__
57
- ```
58
-
59
- 1. In order to test all test files in the package, including IAB, run the following from the `packages/osano-comp-react-native` folder
60
-
61
- ```shell
62
- npm test
63
- ```
64
-
65
- ### Testing the examples
66
-
67
- #### Build the test applications from local builds
68
-
69
- - iOS
70
-
71
- 1. Run the iOS application locally via `yarn example ios`
72
- 1. Open the Derived Data in your XCode folder `~/Library/Developer/XCode/DerivedData`
73
- 1. One of the folders in the `DerivedData` folder will contain a `Build` folder
74
- 1. Open `Build/Products/<device-type>`
75
- 1. The .app file will be `OsanoCMPExample` with a file type `Application`
76
-
77
- - Android
78
-
79
- 1. Run the android example application locally via `yarn example android`
80
- 1. In `Android Studio` under `Project` open `app/build/outputs/apk/<release-or-debug>/` to get the apk file
81
-
82
- Both files can be sent to coworkers with an ios simulator or android emulator to run for testing
83
-
84
- ## Troubleshooting
85
-
86
- 1. If the `run` command fails saying there is no development project, make sure to open the relevant simulator/emulator before running.
87
- 1. If there are significant errors citing duplicates, it is likely you ran `npm i` in the packages folder. These files should be removed via `rm -rf node_modules` in the `packages/osano-cmp-react-native` folder from the command line
88
- 1. For initial developing and testing make sure you have a relatively recent simulator on iOS and emulator on Android. Old devices running old OS can cause unnecessary issues
89
- 1. Building the iOS example from Xcode might result in a `Command PhaseScriptExecution failed with a nonzero exit code`. This is caused by a missing `.xcode.env` file that contains an entry for NODE_PATH. Resolve by running `echo export NODE_BINARY=$(command -v node) > .xcode.env` from the `example/ios` directory.
90
-
91
- =======
92
-
93
- The Osano ConsentSDK for iOS is a native framework that integrates with the Consent Management Platform on the [Osano Website](https://my.osano.com). It is necessary to have an account, and a Cookie Consent configuration created and published in order for this SDK to be able to record end-user consents.
94
-
95
- ### Installation
96
-
97
- ---
98
-
99
- We use NPM to manage and install the SDK package.
100
-
101
- 1. At the top level of your project run `npm install @osano/osano-cmp-react-native`
102
-
103
- #### Native iOS installation
104
-
105
- NPM uses cocoapods to install the native iOS portion of modules[CocoaPods](https://guides.cocoapods.org/)
106
-
107
- 1. Install Cocoapods using [Cocoapods - Getting Started](https://guides.cocoapods.org/using/getting-started.html).
108
- 1. Run `pod install` from inside the iOS folder in your project
109
-
110
- #### Native Android installation
111
-
112
- 1. Run a gradle sync after `@osano/osano-cmp-react-native` has been added to your package manager
113
-
114
- ### Integration
115
-
116
- ## How do I use it?
117
-
118
- - [ConsentManager](#consentmanager)
119
- - [UI Builder](#ui-builder)
120
- - [1. Dialog](#dialog)
121
- - [2. Drawer](#drawer)
122
- - [Using Custom UI](#using-custom-ui)
123
-
124
- ### ConsentManager
125
-
126
- First, you must create an instance of the `Osano` object. This object contains the general
127
- configuration parameters that will be used throughout the life of the
128
- application.
129
-
130
- ```js
131
- import { Osano, OsanoContext } from '@osano/osano-cmp-react-native'
132
-
133
- // ...
134
-
135
- const
136
- <Osano
137
- customerId={customerId}
138
- configId={configId}
139
- hideDisclosures={hideDisclosures}
140
- onConfigLoadSuccess={handleConfigLoadSuccess}
141
- onConfigLoadFailure={handleConfigLoadFailure}
142
- onLangLoadSuccess={handleLangLoadSuccess}
143
- onLangLoadFailure={handleLangLoadFailure}
144
- overrides={{
145
- flavor: flavor ? flavor : undefined,
146
- locale: locale ? locale : undefined,
147
- }}
148
- >
149
- <YourAppHere>
150
- </Osano>
151
- ```
152
-
153
- Note that the `configId` and `customerId` parameters are not optional, and must match the values of your configuration on the [Osano website](https://my.osano.com).
154
-
155
- You can use the `OsanoContext` to access the `ConsentManager` object:
156
-
157
- ```js
158
- const {
159
- clearConsent,
160
- getConsent,
161
- getDeviceId,
162
- locale,
163
- setLocale,
164
- showBanner,
165
- showDrawer,
166
- isReady,
167
- } = React.useContext(OsanoContext);
168
- ```
169
-
170
- ### UI Builder
171
-
172
- Now that you have created an instance of the `ConsentManager`, you can
173
- use it to create and show consent messages in your application. There
174
- are two types of dialogues available to show in the SDK, and (depending on the geo-location of your end-user) the UI for each will look different. This is due to legal requirements that are in place for the end-user's geo-location. Rest assured, these UI differences are intentional and necessary to maintain legal compliance for the location of your users.
175
-
176
- #### Display Modes
177
-
178
- The UI may de shown in 2 different ways:
179
-
180
- ##### Dialog
181
-
182
- The Dialog View Controller allows you to show a consent message and the
183
- required data storage preferences based on the country the device is in.
184
- The SDK takes care of figuring out which consent variant must be shown
185
- based on the device's locale.
186
-
187
- To create the dialogue and show it, use the `showDrawer` method from the `OsanoContext`:
188
-
189
- ```js
190
- <Pressable onPress={showDrawer}>
191
- <Text>Show Categories Dialog</Text>
192
- </Pressable>
193
- ```
194
-
195
- :::note
196
-
197
- The dialog (depending on the end-user's geo-location) may have an automatic timeout, which will grant consent upon closure. This is normal functionality for specific global regions.
198
-
199
- :::
200
-
201
- :::caution Declined to Consent
202
-
203
- If a the completion callback notifies you that the end-user declined to consent, this **does not mean** they _denied_ consent. It simply means that they _**did not make a selection**_.
204
-
205
- The Drawer UI will not allow the user to dismiss the modal without making a selection, but the Dialog UI (in some geo-locations) will allow the user to dismiss the modal without making a selection. This is why it is important to check the `categories` array in the completion callback to determine if the user has actually declined to consent.
206
-
207
- :::
208
-
209
- ##### Drawer
210
-
211
- The Drawer View Controller allows you to display all consent
212
- categories using a built-in UI. In this dialogue, the user can choose to
213
- enable or disable any of the consent categories.
214
- To user the view controller and show it, use the method `showBanner`
215
-
216
- ```js
217
- <Pressable onPress={showBanner}>
218
- <Text>Show Concent Banner</Text>
219
- </Pressable>
220
- ```
221
-
222
- ### Using Custom Implementation
223
-
224
- If the SDK's built-in UI and implementation does not fit your requirements, you can use the
225
- `ConsentManager`'s APIs and integrate them to your own app's UI:
226
-
227
- ```js
228
- const consentManager = useRef<ConsentManager>(new ConsentManager());
229
- const [_state, dispatch, getState, addMiddleware, removeMiddleware] =
230
- useThunkReducer<OsanoState, OsanoAction>(
231
- reducer,
232
- { configId, customerId },
233
- init,
234
- [],
235
- );
236
- return(
237
- <OsanoPublicContext.Provider value={context}>
238
- {<YourAppHere>}
239
- <ConsentUiBuilder
240
- addMiddleware={addMiddleware}
241
- removeMiddleware={removeMiddleware}
242
- dispatch={dispatch}
243
- getState={getState}
244
- cmp={consentManager}
245
- hideDisclosures={hideDisclosures}
246
- />
247
- </OsanoPublicContext.Provider>
248
- )
249
- ```
250
-
251
- To save (locally and remotely) new consent categories use:
252
-
253
- ```js
254
- recordConsent(consentManager.current, ConsentCategory.ESSENTIAL); //ESSENTIAL, ANALYTICS, MARKETING, PERSONALIZATION, OPT_OUT
255
- ```
256
-
257
- To get the list of consented categories (local storage):
258
-
259
- ```js
260
- let consentedArray = consentManager.current.consent;
261
- let consentedString = consentedArray.join(', ');
262
- console.log(consentedString);
263
- ```
264
-
265
- To get whether the user has already gone through the consent process:
266
-
267
- ```js
268
- let userConsented = consentManager.current.consent.length > 0;
269
- ```
3
+ Visit the [Developer Docs](https://developers.osano.com/cmp/react-native/) to learn more about installation and usage.
@@ -1,14 +1,19 @@
1
1
  package com.osano.cmp.sdk
2
2
 
3
3
  import com.facebook.react.bridge.ReactApplicationContext
4
- import com.facebook.react.bridge.ReactContextBaseJavaModule
5
4
  import com.facebook.react.bridge.ReactMethod
6
5
  import com.facebook.react.bridge.Promise
7
6
  import android.content.Context
8
7
  import android.provider.Settings
8
+ import android.preference.PreferenceManager
9
9
  import java.util.UUID
10
10
 
11
- class OsanoCMPSDKModule(reactContext: ReactApplicationContext) :
11
+ // New Architecture support
12
+ import com.facebook.react.bridge.ReactContextBaseJavaModule
13
+ import com.facebook.react.module.annotations.ReactModule
14
+
15
+ @ReactModule(name = OsanoCMPSDKModule.NAME)
16
+ class OsanoCMPSDKModule(private val reactContext: ReactApplicationContext) :
12
17
  ReactContextBaseJavaModule(reactContext) {
13
18
 
14
19
  override fun getName(): String {
@@ -43,6 +48,46 @@ class OsanoCMPSDKModule(reactContext: ReactApplicationContext) :
43
48
  promise.resolve(null)
44
49
  }
45
50
 
51
+ @ReactMethod
52
+ fun setStorageToDefault(key: String?, value: String?, promise: Promise) {
53
+ val appContext = this.reactApplicationContext.applicationContext
54
+ val defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext)
55
+ val editor = defaultSharedPreferences.edit()
56
+ editor.putString(key, value)
57
+ editor.apply()
58
+ promise.resolve(value)
59
+ }
60
+
61
+ @ReactMethod
62
+ fun setIntStorageToDefault(key: String?, value: Int, promise: Promise) {
63
+ val appContext = this.reactApplicationContext.applicationContext
64
+ val defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext)
65
+ val editor = defaultSharedPreferences.edit()
66
+ editor.putInt(key, value)
67
+ editor.apply()
68
+ promise.resolve(value)
69
+ }
70
+
71
+ @ReactMethod
72
+ fun setBoolStorageToDefault(key: String?, value: Boolean, promise: Promise) {
73
+ val appContext = this.reactApplicationContext.applicationContext
74
+ val defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext)
75
+ val editor = defaultSharedPreferences.edit()
76
+ editor.putBoolean(key, value)
77
+ editor.apply()
78
+ promise.resolve(value)
79
+ }
80
+
81
+ @ReactMethod
82
+ fun clearStorageFromDefault(key: String?, promise: Promise) {
83
+ val appContext = this.reactApplicationContext.applicationContext
84
+ val defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext)
85
+ val editor = defaultSharedPreferences.edit()
86
+ editor.remove(key)
87
+ editor.apply()
88
+ promise.resolve(null)
89
+ }
90
+
46
91
  @ReactMethod
47
92
  fun getDeviceId(promise: Promise) {
48
93
  // Get a unique vendor ID for the android device
@@ -66,7 +111,15 @@ class OsanoCMPSDKModule(reactContext: ReactApplicationContext) :
66
111
  }
67
112
  }
68
113
 
114
+ override fun getConstants(): MutableMap<String, Any> {
115
+ val appId = reactContext.packageName
116
+ val isOfficialSample = SAMPLE_APP_IDS.contains(appId)
117
+ return hashMapOf("IS_OFFICIAL_SAMPLE" to isOfficialSample)
118
+ }
119
+
69
120
  companion object {
70
121
  const val NAME = "OsanoCmpSdk"
122
+
123
+ private val SAMPLE_APP_IDS = setOf("com.OsanoCMPExample")
71
124
  }
72
125
  }