@osano/osano-cmp-react-native 0.1.0 → 0.2.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 (821) hide show
  1. package/README.md +251 -0
  2. package/lib/commonjs/ConsentManager.js +209 -69
  3. package/lib/commonjs/ConsentManager.js.map +1 -1
  4. package/lib/commonjs/ConsentUiBuilder.js +2 -2
  5. package/lib/commonjs/ConsentUiBuilder.js.map +1 -1
  6. package/lib/commonjs/actions.js +84 -0
  7. package/lib/commonjs/actions.js.map +1 -0
  8. package/lib/commonjs/commands.js +63 -0
  9. package/lib/commonjs/commands.js.map +1 -0
  10. package/lib/commonjs/components/Button.js +35 -25
  11. package/lib/commonjs/components/Button.js.map +1 -1
  12. package/lib/commonjs/components/Locale.js +5 -3
  13. package/lib/commonjs/components/Locale.js.map +1 -1
  14. package/lib/commonjs/context.js +4 -3
  15. package/lib/commonjs/context.js.map +1 -1
  16. package/lib/commonjs/flavors/index.js +1 -1
  17. package/lib/commonjs/hooks/usePrevious.js +1 -1
  18. package/lib/commonjs/hooks/usePrevious.js.map +1 -1
  19. package/lib/commonjs/hooks/useThunkReducer.js +40 -15
  20. package/lib/commonjs/hooks/useThunkReducer.js.map +1 -1
  21. package/lib/commonjs/iab/actions.js +17 -0
  22. package/lib/commonjs/iab/actions.js.map +1 -0
  23. package/lib/commonjs/iab/constants.js +3 -1
  24. package/lib/commonjs/iab/constants.js.map +1 -1
  25. package/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.js +1 -1
  26. package/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.js.map +1 -1
  27. package/lib/commonjs/iab/index.js +33 -0
  28. package/lib/commonjs/iab/index.js.map +1 -0
  29. package/lib/commonjs/iab/reducer.js +46 -0
  30. package/lib/commonjs/iab/reducer.js.map +1 -0
  31. package/lib/commonjs/iab/tcf/actions.js +74 -14
  32. package/lib/commonjs/iab/tcf/actions.js.map +1 -1
  33. package/lib/commonjs/iab/tcf/consent.js +51 -87
  34. package/lib/commonjs/iab/tcf/consent.js.map +1 -1
  35. package/lib/commonjs/iab/tcf/constants.js +5 -5
  36. package/lib/commonjs/iab/tcf/constants.js.map +1 -1
  37. package/lib/commonjs/iab/tcf/helpers.js +72 -0
  38. package/lib/commonjs/iab/tcf/helpers.js.map +1 -0
  39. package/lib/commonjs/iab/tcf/index.js +5 -3
  40. package/lib/commonjs/iab/tcf/index.js.map +1 -1
  41. package/lib/commonjs/iab/tcf/middleware.js +172 -0
  42. package/lib/commonjs/iab/tcf/middleware.js.map +1 -0
  43. package/lib/commonjs/iab/tcf/reducer.js +225 -40
  44. package/lib/commonjs/iab/tcf/reducer.js.map +1 -1
  45. package/lib/commonjs/iab/tcf/selectors.js +60 -69
  46. package/lib/commonjs/iab/tcf/selectors.js.map +1 -1
  47. package/lib/commonjs/iab/tcf/v2.0/encoders.js +0 -8
  48. package/lib/commonjs/iab/tcf/v2.0/encoders.js.map +1 -1
  49. package/lib/commonjs/iab/tcf/v2.0/formatters.js +5 -7
  50. package/lib/commonjs/iab/tcf/v2.0/formatters.js.map +1 -1
  51. package/lib/commonjs/iab/tcf/v2.0/index.js +18 -16
  52. package/lib/commonjs/iab/tcf/v2.0/index.js.map +1 -1
  53. package/lib/commonjs/iab/tcf/v2.0/shared-constants.js +19 -3
  54. package/lib/commonjs/iab/tcf/v2.0/shared-constants.js.map +1 -1
  55. package/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.js +2 -14
  56. package/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.js.map +1 -1
  57. package/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.js +2 -13
  58. package/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.js.map +1 -1
  59. package/lib/commonjs/index.js +77 -30
  60. package/lib/commonjs/index.js.map +1 -1
  61. package/lib/commonjs/reducer.js +366 -0
  62. package/lib/commonjs/reducer.js.map +1 -0
  63. package/lib/commonjs/selectors.js +83 -0
  64. package/lib/commonjs/selectors.js.map +1 -0
  65. package/lib/commonjs/services/consent.js +20 -4
  66. package/lib/commonjs/services/consent.js.map +1 -1
  67. package/lib/commonjs/styles.js +1 -1
  68. package/lib/commonjs/styles.js.map +1 -1
  69. package/lib/commonjs/utils/Translator.js +4 -2
  70. package/lib/commonjs/utils/Translator.js.map +1 -1
  71. package/lib/commonjs/utils/index.js +3 -16
  72. package/lib/commonjs/utils/index.js.map +1 -1
  73. package/lib/commonjs/utils/types.js +2 -0
  74. package/lib/commonjs/utils/types.js.map +1 -0
  75. package/lib/commonjs/views/Dialog/Buttons.js +2 -2
  76. package/lib/commonjs/views/Dialog/Buttons.js.map +1 -1
  77. package/lib/commonjs/views/Dialog/Message.js +1 -1
  78. package/lib/commonjs/views/Dialog/Message.js.map +1 -1
  79. package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js +5 -5
  80. package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js.map +1 -1
  81. package/lib/commonjs/views/Dialog/index.js +15 -9
  82. package/lib/commonjs/views/Dialog/index.js.map +1 -1
  83. package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js +50 -22
  84. package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
  85. package/lib/commonjs/views/Drawer/Drawer.Header.js +1 -0
  86. package/lib/commonjs/views/Drawer/Drawer.Header.js.map +1 -1
  87. package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js +26 -14
  88. package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
  89. package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js +60 -36
  90. package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
  91. package/lib/commonjs/views/Drawer/index.js +11 -10
  92. package/lib/commonjs/views/Drawer/index.js.map +1 -1
  93. package/lib/module/ConsentManager.js +209 -71
  94. package/lib/module/ConsentManager.js.map +1 -1
  95. package/lib/module/ConsentUiBuilder.js +1 -1
  96. package/lib/module/ConsentUiBuilder.js.map +1 -1
  97. package/lib/module/actions.js +66 -0
  98. package/lib/module/actions.js.map +1 -0
  99. package/lib/module/commands.js +55 -0
  100. package/lib/module/commands.js.map +1 -0
  101. package/lib/module/components/Button.js +30 -20
  102. package/lib/module/components/Button.js.map +1 -1
  103. package/lib/module/components/Locale.js +5 -3
  104. package/lib/module/components/Locale.js.map +1 -1
  105. package/lib/module/context.js +3 -2
  106. package/lib/module/context.js.map +1 -1
  107. package/lib/module/flavors/index.js +1 -1
  108. package/lib/module/hooks/usePrevious.js +1 -1
  109. package/lib/module/hooks/usePrevious.js.map +1 -1
  110. package/lib/module/hooks/useThunkReducer.js +40 -16
  111. package/lib/module/hooks/useThunkReducer.js.map +1 -1
  112. package/lib/module/iab/actions.js +10 -0
  113. package/lib/module/iab/actions.js.map +1 -0
  114. package/lib/module/iab/constants.js +2 -0
  115. package/lib/module/iab/constants.js.map +1 -1
  116. package/lib/module/iab/gpp/encoders/FixedIntegerEncoder.js +1 -1
  117. package/lib/module/iab/gpp/encoders/FixedIntegerEncoder.js.map +1 -1
  118. package/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.js.map +1 -1
  119. package/lib/module/iab/index.js +26 -0
  120. package/lib/module/iab/index.js.map +1 -0
  121. package/lib/module/iab/reducer.js +39 -0
  122. package/lib/module/iab/reducer.js.map +1 -0
  123. package/lib/module/iab/tcf/actions.js +63 -13
  124. package/lib/module/iab/tcf/actions.js.map +1 -1
  125. package/lib/module/iab/tcf/consent.js +47 -84
  126. package/lib/module/iab/tcf/consent.js.map +1 -1
  127. package/lib/module/iab/tcf/constants.js +5 -5
  128. package/lib/module/iab/tcf/constants.js.map +1 -1
  129. package/lib/module/iab/tcf/helpers.js +62 -0
  130. package/lib/module/iab/tcf/helpers.js.map +1 -0
  131. package/lib/module/iab/tcf/index.js +3 -3
  132. package/lib/module/iab/tcf/index.js.map +1 -1
  133. package/lib/module/iab/tcf/middleware.js +164 -0
  134. package/lib/module/iab/tcf/middleware.js.map +1 -0
  135. package/lib/module/iab/tcf/reducer.js +223 -40
  136. package/lib/module/iab/tcf/reducer.js.map +1 -1
  137. package/lib/module/iab/tcf/selectors.js +45 -57
  138. package/lib/module/iab/tcf/selectors.js.map +1 -1
  139. package/lib/module/iab/tcf/v2.0/encoders.js +0 -9
  140. package/lib/module/iab/tcf/v2.0/encoders.js.map +1 -1
  141. package/lib/module/iab/tcf/v2.0/formatters.js +5 -7
  142. package/lib/module/iab/tcf/v2.0/formatters.js.map +1 -1
  143. package/lib/module/iab/tcf/v2.0/index.js +18 -16
  144. package/lib/module/iab/tcf/v2.0/index.js.map +1 -1
  145. package/lib/module/iab/tcf/v2.0/shared-constants.js +17 -3
  146. package/lib/module/iab/tcf/v2.0/shared-constants.js.map +1 -1
  147. package/lib/module/iab/tcf/v2.0/tcfcav1-constants.js +2 -14
  148. package/lib/module/iab/tcf/v2.0/tcfcav1-constants.js.map +1 -1
  149. package/lib/module/iab/tcf/v2.0/tcfeuv2-constants.js +2 -13
  150. package/lib/module/iab/tcf/v2.0/tcfeuv2-constants.js.map +1 -1
  151. package/lib/module/index.js +77 -29
  152. package/lib/module/index.js.map +1 -1
  153. package/lib/module/{store.js → reducer.js} +76 -238
  154. package/lib/module/reducer.js.map +1 -0
  155. package/lib/module/selectors.js +60 -0
  156. package/lib/module/selectors.js.map +1 -0
  157. package/lib/module/services/consent.js +20 -4
  158. package/lib/module/services/consent.js.map +1 -1
  159. package/lib/module/styles.js +1 -1
  160. package/lib/module/styles.js.map +1 -1
  161. package/lib/module/utils/Translator.js +4 -2
  162. package/lib/module/utils/Translator.js.map +1 -1
  163. package/lib/module/utils/index.js +3 -16
  164. package/lib/module/utils/index.js.map +1 -1
  165. package/lib/module/utils/types.js +2 -0
  166. package/lib/module/utils/types.js.map +1 -0
  167. package/lib/module/views/Dialog/Buttons.js +1 -1
  168. package/lib/module/views/Dialog/Buttons.js.map +1 -1
  169. package/lib/module/views/Dialog/Message.js +1 -1
  170. package/lib/module/views/Dialog/Message.js.map +1 -1
  171. package/lib/module/views/Dialog/PreferenceManagementDeepLinks.js +4 -4
  172. package/lib/module/views/Dialog/PreferenceManagementDeepLinks.js.map +1 -1
  173. package/lib/module/views/Dialog/index.js +11 -5
  174. package/lib/module/views/Dialog/index.js.map +1 -1
  175. package/lib/module/views/Drawer/Drawer.ConsentCategories.js +41 -12
  176. package/lib/module/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
  177. package/lib/module/views/Drawer/Drawer.Header.js +1 -0
  178. package/lib/module/views/Drawer/Drawer.Header.js.map +1 -1
  179. package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js +24 -12
  180. package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
  181. package/lib/module/views/Drawer/Drawer.Iab.Vendors.js +55 -31
  182. package/lib/module/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
  183. package/lib/module/views/Drawer/index.js +3 -1
  184. package/lib/module/views/Drawer/index.js.map +1 -1
  185. package/lib/typescript/babel.config.d.ts +2 -0
  186. package/lib/typescript/babel.config.d.ts.map +1 -0
  187. package/lib/typescript/documentation/babel.config.d.ts +2 -0
  188. package/lib/typescript/documentation/babel.config.d.ts.map +1 -0
  189. package/lib/typescript/documentation/docusaurus.config.d.ts +4 -0
  190. package/lib/typescript/documentation/docusaurus.config.d.ts.map +1 -0
  191. package/lib/typescript/lib/commonjs/ConsentManager.d.ts +190 -0
  192. package/lib/typescript/lib/commonjs/ConsentManager.d.ts.map +1 -0
  193. package/lib/typescript/lib/commonjs/ConsentUiBuilder.d.ts +3 -0
  194. package/lib/typescript/lib/commonjs/ConsentUiBuilder.d.ts.map +1 -0
  195. package/lib/typescript/lib/commonjs/actions.d.ts +66 -0
  196. package/lib/typescript/lib/commonjs/actions.d.ts.map +1 -0
  197. package/lib/typescript/lib/commonjs/commands.d.ts +4 -0
  198. package/lib/typescript/lib/commonjs/commands.d.ts.map +1 -0
  199. package/lib/typescript/lib/commonjs/components/Button.d.ts +11 -0
  200. package/lib/typescript/lib/commonjs/components/Button.d.ts.map +1 -0
  201. package/lib/typescript/lib/commonjs/components/Checkbox.d.ts +4 -0
  202. package/lib/typescript/lib/commonjs/components/Checkbox.d.ts.map +1 -0
  203. package/lib/typescript/lib/commonjs/components/Divider.d.ts +3 -0
  204. package/lib/typescript/lib/commonjs/components/Divider.d.ts.map +1 -0
  205. package/lib/typescript/lib/commonjs/components/ExpansionPanel.d.ts +8 -0
  206. package/lib/typescript/lib/commonjs/components/ExpansionPanel.d.ts.map +1 -0
  207. package/lib/typescript/lib/commonjs/components/Link.d.ts +3 -0
  208. package/lib/typescript/lib/commonjs/components/Link.d.ts.map +1 -0
  209. package/lib/typescript/lib/commonjs/components/List.d.ts +3 -0
  210. package/lib/typescript/lib/commonjs/components/List.d.ts.map +1 -0
  211. package/lib/typescript/lib/commonjs/components/Locale.d.ts +6 -0
  212. package/lib/typescript/lib/commonjs/components/Locale.d.ts.map +1 -0
  213. package/lib/typescript/lib/commonjs/components/StoragePolicyLink.d.ts +4 -0
  214. package/lib/typescript/lib/commonjs/components/StoragePolicyLink.d.ts.map +1 -0
  215. package/lib/typescript/lib/commonjs/components/Toggle.d.ts +4 -0
  216. package/lib/typescript/lib/commonjs/components/Toggle.d.ts.map +1 -0
  217. package/lib/typescript/lib/commonjs/constants.d.ts +20 -0
  218. package/lib/typescript/lib/commonjs/constants.d.ts.map +1 -0
  219. package/lib/typescript/lib/commonjs/context.d.ts +4 -0
  220. package/lib/typescript/lib/commonjs/context.d.ts.map +1 -0
  221. package/lib/typescript/lib/commonjs/flavors/index.d.ts +122 -0
  222. package/lib/typescript/lib/commonjs/flavors/index.d.ts.map +1 -0
  223. package/lib/typescript/lib/commonjs/hooks/useBoundCallback.d.ts +18 -0
  224. package/lib/typescript/lib/commonjs/hooks/useBoundCallback.d.ts.map +1 -0
  225. package/lib/typescript/lib/commonjs/hooks/useDeviceOrientation.d.ts +4 -0
  226. package/lib/typescript/lib/commonjs/hooks/useDeviceOrientation.d.ts.map +1 -0
  227. package/lib/typescript/lib/commonjs/hooks/usePrevious.d.ts +3 -0
  228. package/lib/typescript/lib/commonjs/hooks/usePrevious.d.ts.map +1 -0
  229. package/lib/typescript/lib/commonjs/hooks/useThunkReducer.d.ts +8 -0
  230. package/lib/typescript/lib/commonjs/hooks/useThunkReducer.d.ts.map +1 -0
  231. package/lib/typescript/lib/commonjs/iab/actions.d.ts +10 -0
  232. package/lib/typescript/lib/commonjs/iab/actions.d.ts.map +1 -0
  233. package/lib/typescript/lib/commonjs/iab/constants.d.ts +5 -0
  234. package/lib/typescript/lib/commonjs/iab/constants.d.ts.map +1 -0
  235. package/lib/typescript/lib/commonjs/iab/gpp/api.d.ts +30 -0
  236. package/lib/typescript/lib/commonjs/iab/gpp/api.d.ts.map +1 -0
  237. package/lib/typescript/lib/commonjs/iab/gpp/consent.d.ts +25 -0
  238. package/lib/typescript/lib/commonjs/iab/gpp/consent.d.ts.map +1 -0
  239. package/lib/typescript/lib/commonjs/iab/gpp/constants.d.ts +26 -0
  240. package/lib/typescript/lib/commonjs/iab/gpp/constants.d.ts.map +1 -0
  241. package/lib/typescript/lib/commonjs/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts +9 -0
  242. package/lib/typescript/lib/commonjs/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +1 -0
  243. package/lib/typescript/lib/commonjs/iab/gpp/encoders/BooleanEncoder.d.ts +32 -0
  244. package/lib/typescript/lib/commonjs/iab/gpp/encoders/BooleanEncoder.d.ts.map +1 -0
  245. package/lib/typescript/lib/commonjs/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +10 -0
  246. package/lib/typescript/lib/commonjs/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +1 -0
  247. package/lib/typescript/lib/commonjs/iab/gpp/encoders/DatetimeEncoder.d.ts +29 -0
  248. package/lib/typescript/lib/commonjs/iab/gpp/encoders/DatetimeEncoder.d.ts.map +1 -0
  249. package/lib/typescript/lib/commonjs/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +19 -0
  250. package/lib/typescript/lib/commonjs/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +1 -0
  251. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +29 -0
  252. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +1 -0
  253. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +29 -0
  254. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +1 -0
  255. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +29 -0
  256. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +1 -0
  257. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +7 -0
  258. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +1 -0
  259. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.d.ts +29 -0
  260. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +1 -0
  261. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +29 -0
  262. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +1 -0
  263. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +29 -0
  264. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +1 -0
  265. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedStringEncoder.d.ts +29 -0
  266. package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedStringEncoder.d.ts.map +1 -0
  267. package/lib/typescript/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +10 -0
  268. package/lib/typescript/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +1 -0
  269. package/lib/typescript/lib/commonjs/iab/gpp/encoders/errors.d.ts +17 -0
  270. package/lib/typescript/lib/commonjs/iab/gpp/encoders/errors.d.ts.map +1 -0
  271. package/lib/typescript/lib/commonjs/iab/gpp/encoders/index.d.ts +16 -0
  272. package/lib/typescript/lib/commonjs/iab/gpp/encoders/index.d.ts.map +1 -0
  273. package/lib/typescript/lib/commonjs/iab/gpp/encoders/types.d.ts +1 -0
  274. package/lib/typescript/lib/commonjs/iab/gpp/encoders/types.d.ts.map +1 -0
  275. package/lib/typescript/lib/commonjs/iab/gpp/index.d.ts +9 -0
  276. package/lib/typescript/lib/commonjs/iab/gpp/index.d.ts.map +1 -0
  277. package/lib/typescript/lib/commonjs/iab/gpp/reducer.d.ts +7 -0
  278. package/lib/typescript/lib/commonjs/iab/gpp/reducer.d.ts.map +1 -0
  279. package/lib/typescript/lib/commonjs/iab/gpp/selectors.d.ts +7 -0
  280. package/lib/typescript/lib/commonjs/iab/gpp/selectors.d.ts.map +1 -0
  281. package/lib/typescript/lib/commonjs/iab/gpp/types.d.ts +1 -0
  282. package/lib/typescript/lib/commonjs/iab/gpp/types.d.ts.map +1 -0
  283. package/lib/typescript/lib/commonjs/iab/gpp/v1/constants.d.ts +13 -0
  284. package/lib/typescript/lib/commonjs/iab/gpp/v1/constants.d.ts.map +1 -0
  285. package/lib/typescript/lib/commonjs/iab/gpp/v1/index.d.ts +14 -0
  286. package/lib/typescript/lib/commonjs/iab/gpp/v1/index.d.ts.map +1 -0
  287. package/lib/typescript/lib/commonjs/iab/index.d.ts +3 -0
  288. package/lib/typescript/lib/commonjs/iab/index.d.ts.map +1 -0
  289. package/lib/typescript/lib/commonjs/iab/reducer.d.ts +6 -0
  290. package/lib/typescript/lib/commonjs/iab/reducer.d.ts.map +1 -0
  291. package/lib/typescript/lib/commonjs/iab/tcf/actions.d.ts +64 -0
  292. package/lib/typescript/lib/commonjs/iab/tcf/actions.d.ts.map +1 -0
  293. package/lib/typescript/lib/commonjs/iab/tcf/consent.d.ts +59 -0
  294. package/lib/typescript/lib/commonjs/iab/tcf/consent.d.ts.map +1 -0
  295. package/lib/typescript/lib/commonjs/iab/tcf/constants.d.ts +22 -0
  296. package/lib/typescript/lib/commonjs/iab/tcf/constants.d.ts.map +1 -0
  297. package/lib/typescript/lib/commonjs/iab/tcf/helpers.d.ts +9 -0
  298. package/lib/typescript/lib/commonjs/iab/tcf/helpers.d.ts.map +1 -0
  299. package/lib/typescript/lib/commonjs/iab/tcf/index.d.ts +4 -0
  300. package/lib/typescript/lib/commonjs/iab/tcf/index.d.ts.map +1 -0
  301. package/lib/typescript/lib/commonjs/iab/tcf/middleware.d.ts +4 -0
  302. package/lib/typescript/lib/commonjs/iab/tcf/middleware.d.ts.map +1 -0
  303. package/lib/typescript/lib/commonjs/iab/tcf/reducer.d.ts +22 -0
  304. package/lib/typescript/lib/commonjs/iab/tcf/reducer.d.ts.map +1 -0
  305. package/lib/typescript/lib/commonjs/iab/tcf/selectors.d.ts +48 -0
  306. package/lib/typescript/lib/commonjs/iab/tcf/selectors.d.ts.map +1 -0
  307. package/lib/typescript/lib/commonjs/iab/tcf/types.d.ts +2 -0
  308. package/lib/typescript/lib/commonjs/iab/tcf/types.d.ts.map +1 -0
  309. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/encoders.d.ts +14 -0
  310. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/encoders.d.ts.map +1 -0
  311. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/formatters.d.ts +5 -0
  312. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/formatters.d.ts.map +1 -0
  313. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/index.d.ts +191 -0
  314. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/index.d.ts.map +1 -0
  315. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/shared-constants.d.ts +32 -0
  316. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/shared-constants.d.ts.map +1 -0
  317. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.d.ts +43 -0
  318. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +1 -0
  319. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.d.ts +48 -0
  320. package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +1 -0
  321. package/lib/typescript/lib/commonjs/iab/types.d.ts +2 -0
  322. package/lib/typescript/lib/commonjs/iab/types.d.ts.map +1 -0
  323. package/lib/typescript/lib/commonjs/iab/usp/api.d.ts +6 -0
  324. package/lib/typescript/lib/commonjs/iab/usp/api.d.ts.map +1 -0
  325. package/lib/typescript/lib/commonjs/iab/usp/consent.d.ts +27 -0
  326. package/lib/typescript/lib/commonjs/iab/usp/consent.d.ts.map +1 -0
  327. package/lib/typescript/lib/commonjs/iab/usp/constants.d.ts +109 -0
  328. package/lib/typescript/lib/commonjs/iab/usp/constants.d.ts.map +1 -0
  329. package/lib/typescript/lib/commonjs/iab/usp/index.d.ts +9 -0
  330. package/lib/typescript/lib/commonjs/iab/usp/index.d.ts.map +1 -0
  331. package/lib/typescript/lib/commonjs/iab/usp/reducer.d.ts +14 -0
  332. package/lib/typescript/lib/commonjs/iab/usp/reducer.d.ts.map +1 -0
  333. package/lib/typescript/lib/commonjs/iab/usp/selectors.d.ts +10 -0
  334. package/lib/typescript/lib/commonjs/iab/usp/selectors.d.ts.map +1 -0
  335. package/lib/typescript/lib/commonjs/iab/usp/types.d.ts +1 -0
  336. package/lib/typescript/lib/commonjs/iab/usp/types.d.ts.map +1 -0
  337. package/lib/typescript/lib/commonjs/iab/usp/v1/constants.d.ts +13 -0
  338. package/lib/typescript/lib/commonjs/iab/usp/v1/constants.d.ts.map +1 -0
  339. package/lib/typescript/lib/commonjs/iab/usp/v1/index.d.ts +12 -0
  340. package/lib/typescript/lib/commonjs/iab/usp/v1/index.d.ts.map +1 -0
  341. package/lib/typescript/lib/commonjs/iab/utilities.d.ts +3 -0
  342. package/lib/typescript/lib/commonjs/iab/utilities.d.ts.map +1 -0
  343. package/lib/typescript/lib/commonjs/index.d.ts +4 -0
  344. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -0
  345. package/lib/typescript/lib/commonjs/locale/index.d.ts +62 -0
  346. package/lib/typescript/lib/commonjs/locale/index.d.ts.map +1 -0
  347. package/lib/typescript/lib/commonjs/native/OsanoCmp.d.ts +6 -0
  348. package/lib/typescript/lib/commonjs/native/OsanoCmp.d.ts.map +1 -0
  349. package/lib/typescript/lib/commonjs/reducer.d.ts +29 -0
  350. package/lib/typescript/lib/commonjs/reducer.d.ts.map +1 -0
  351. package/lib/typescript/lib/commonjs/selectors.d.ts +16 -0
  352. package/lib/typescript/lib/commonjs/selectors.d.ts.map +1 -0
  353. package/lib/typescript/lib/commonjs/services/consent.d.ts +6 -0
  354. package/lib/typescript/lib/commonjs/services/consent.d.ts.map +1 -0
  355. package/lib/typescript/lib/commonjs/services/disclosures.d.ts +3 -0
  356. package/lib/typescript/lib/commonjs/services/disclosures.d.ts.map +1 -0
  357. package/lib/typescript/lib/commonjs/services/locale.d.ts +4 -0
  358. package/lib/typescript/lib/commonjs/services/locale.d.ts.map +1 -0
  359. package/lib/typescript/lib/commonjs/styles.d.ts +141 -0
  360. package/lib/typescript/lib/commonjs/styles.d.ts.map +1 -0
  361. package/lib/typescript/lib/commonjs/types/consent-config.d.d.ts +2 -0
  362. package/lib/typescript/lib/commonjs/types/consent-config.d.d.ts.map +1 -0
  363. package/lib/typescript/lib/commonjs/types/env.d.d.ts +1 -0
  364. package/lib/typescript/lib/commonjs/types/env.d.d.ts.map +1 -0
  365. package/lib/typescript/lib/commonjs/types/index.d.d.ts +2 -0
  366. package/lib/typescript/lib/commonjs/types/index.d.d.ts.map +1 -0
  367. package/lib/typescript/lib/commonjs/types/store.d.d.ts +2 -0
  368. package/lib/typescript/lib/commonjs/types/store.d.d.ts.map +1 -0
  369. package/lib/typescript/lib/commonjs/utils/API.d.ts +7 -0
  370. package/lib/typescript/lib/commonjs/utils/API.d.ts.map +1 -0
  371. package/lib/typescript/lib/commonjs/utils/Color.d.ts +13 -0
  372. package/lib/typescript/lib/commonjs/utils/Color.d.ts.map +1 -0
  373. package/lib/typescript/lib/commonjs/utils/EventEmitter.d.ts +16 -0
  374. package/lib/typescript/lib/commonjs/utils/EventEmitter.d.ts.map +1 -0
  375. package/lib/typescript/lib/commonjs/utils/Translator.d.ts +54 -0
  376. package/lib/typescript/lib/commonjs/utils/Translator.d.ts.map +1 -0
  377. package/lib/typescript/lib/commonjs/utils/index.d.ts +6 -0
  378. package/lib/typescript/lib/commonjs/utils/index.d.ts.map +1 -0
  379. package/lib/typescript/lib/commonjs/utils/types.d.ts +1 -0
  380. package/lib/typescript/lib/commonjs/utils/types.d.ts.map +1 -0
  381. package/lib/typescript/lib/commonjs/views/Dialog/Buttons.d.ts +4 -0
  382. package/lib/typescript/lib/commonjs/views/Dialog/Buttons.d.ts.map +1 -0
  383. package/lib/typescript/lib/commonjs/views/Dialog/FirstLayerUsage.d.ts +4 -0
  384. package/lib/typescript/lib/commonjs/views/Dialog/FirstLayerUsage.d.ts.map +1 -0
  385. package/lib/typescript/lib/commonjs/views/Dialog/Message.d.ts +4 -0
  386. package/lib/typescript/lib/commonjs/views/Dialog/Message.d.ts.map +1 -0
  387. package/lib/typescript/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.d.ts +4 -0
  388. package/lib/typescript/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.d.ts.map +1 -0
  389. package/lib/typescript/lib/commonjs/views/Dialog/index.d.ts +4 -0
  390. package/lib/typescript/lib/commonjs/views/Dialog/index.d.ts.map +1 -0
  391. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.ConsentCategories.d.ts +4 -0
  392. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.ConsentCategories.d.ts.map +1 -0
  393. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Header.d.ts +4 -0
  394. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Header.d.ts.map +1 -0
  395. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.d.ts +4 -0
  396. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.d.ts.map +1 -0
  397. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.d.ts +4 -0
  398. package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.d.ts.map +1 -0
  399. package/lib/typescript/lib/commonjs/views/Drawer/index.d.ts +3 -0
  400. package/lib/typescript/lib/commonjs/views/Drawer/index.d.ts.map +1 -0
  401. package/lib/typescript/lib/module/ConsentManager.d.ts +347 -0
  402. package/lib/typescript/lib/module/ConsentManager.d.ts.map +1 -0
  403. package/lib/typescript/lib/module/ConsentUiBuilder.d.ts +174 -0
  404. package/lib/typescript/lib/module/ConsentUiBuilder.d.ts.map +1 -0
  405. package/lib/typescript/lib/module/actions.d.ts +65 -0
  406. package/lib/typescript/lib/module/actions.d.ts.map +1 -0
  407. package/lib/typescript/lib/module/commands.d.ts +3 -0
  408. package/lib/typescript/lib/module/commands.d.ts.map +1 -0
  409. package/lib/typescript/lib/module/components/Button.d.ts +11 -0
  410. package/lib/typescript/lib/module/components/Button.d.ts.map +1 -0
  411. package/lib/typescript/lib/module/components/Checkbox.d.ts +4 -0
  412. package/lib/typescript/lib/module/components/Checkbox.d.ts.map +1 -0
  413. package/lib/typescript/lib/module/components/Divider.d.ts +4 -0
  414. package/lib/typescript/lib/module/components/Divider.d.ts.map +1 -0
  415. package/lib/typescript/lib/module/components/ExpansionPanel.d.ts +9 -0
  416. package/lib/typescript/lib/module/components/ExpansionPanel.d.ts.map +1 -0
  417. package/lib/typescript/lib/module/components/Link.d.ts +4 -0
  418. package/lib/typescript/lib/module/components/Link.d.ts.map +1 -0
  419. package/lib/typescript/lib/module/components/List.d.ts +4 -0
  420. package/lib/typescript/lib/module/components/List.d.ts.map +1 -0
  421. package/lib/typescript/lib/module/components/Locale.d.ts +5 -0
  422. package/lib/typescript/lib/module/components/Locale.d.ts.map +1 -0
  423. package/lib/typescript/lib/module/components/StoragePolicyLink.d.ts +4 -0
  424. package/lib/typescript/lib/module/components/StoragePolicyLink.d.ts.map +1 -0
  425. package/lib/typescript/lib/module/components/Toggle.d.ts +4 -0
  426. package/lib/typescript/lib/module/components/Toggle.d.ts.map +1 -0
  427. package/lib/typescript/lib/module/constants.d.ts +19 -0
  428. package/lib/typescript/lib/module/constants.d.ts.map +1 -0
  429. package/lib/typescript/lib/module/context.d.ts +185 -0
  430. package/lib/typescript/lib/module/context.d.ts.map +1 -0
  431. package/lib/typescript/lib/module/flavors/index.d.ts +17 -0
  432. package/lib/typescript/lib/module/flavors/index.d.ts.map +1 -0
  433. package/lib/typescript/lib/module/hooks/useBoundCallback.d.ts +17 -0
  434. package/lib/typescript/lib/module/hooks/useBoundCallback.d.ts.map +1 -0
  435. package/lib/typescript/lib/module/hooks/useDeviceOrientation.d.ts +3 -0
  436. package/lib/typescript/lib/module/hooks/useDeviceOrientation.d.ts.map +1 -0
  437. package/lib/typescript/lib/module/hooks/usePrevious.d.ts +2 -0
  438. package/lib/typescript/lib/module/hooks/usePrevious.d.ts.map +1 -0
  439. package/lib/typescript/lib/module/hooks/useThunkReducer.d.ts +7 -0
  440. package/lib/typescript/lib/module/hooks/useThunkReducer.d.ts.map +1 -0
  441. package/lib/typescript/lib/module/iab/actions.d.ts +9 -0
  442. package/lib/typescript/lib/module/iab/actions.d.ts.map +1 -0
  443. package/lib/typescript/lib/module/iab/constants.d.ts +4 -0
  444. package/lib/typescript/lib/module/iab/constants.d.ts.map +1 -0
  445. package/lib/typescript/lib/module/iab/gpp/api.d.ts +28 -0
  446. package/lib/typescript/lib/module/iab/gpp/api.d.ts.map +1 -0
  447. package/lib/typescript/lib/module/iab/gpp/consent.d.ts +24 -0
  448. package/lib/typescript/lib/module/iab/gpp/consent.d.ts.map +1 -0
  449. package/lib/typescript/lib/module/iab/gpp/constants.d.ts +37 -0
  450. package/lib/typescript/lib/module/iab/gpp/constants.d.ts.map +1 -0
  451. package/lib/typescript/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts +8 -0
  452. package/lib/typescript/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +1 -0
  453. package/lib/typescript/lib/module/iab/gpp/encoders/BooleanEncoder.d.ts +8 -0
  454. package/lib/typescript/lib/module/iab/gpp/encoders/BooleanEncoder.d.ts.map +1 -0
  455. package/lib/typescript/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +9 -0
  456. package/lib/typescript/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +1 -0
  457. package/lib/typescript/lib/module/iab/gpp/encoders/DatetimeEncoder.d.ts +8 -0
  458. package/lib/typescript/lib/module/iab/gpp/encoders/DatetimeEncoder.d.ts.map +1 -0
  459. package/lib/typescript/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +18 -0
  460. package/lib/typescript/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +1 -0
  461. package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +8 -0
  462. package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +1 -0
  463. package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +8 -0
  464. package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +1 -0
  465. package/lib/typescript/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +8 -0
  466. package/lib/typescript/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +1 -0
  467. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +6 -0
  468. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +1 -0
  469. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerEncoder.d.ts +8 -0
  470. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +1 -0
  471. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +8 -0
  472. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +1 -0
  473. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +8 -0
  474. package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +1 -0
  475. package/lib/typescript/lib/module/iab/gpp/encoders/FixedStringEncoder.d.ts +8 -0
  476. package/lib/typescript/lib/module/iab/gpp/encoders/FixedStringEncoder.d.ts.map +1 -0
  477. package/lib/typescript/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +9 -0
  478. package/lib/typescript/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +1 -0
  479. package/lib/typescript/lib/module/iab/gpp/encoders/errors.d.ts +16 -0
  480. package/lib/typescript/lib/module/iab/gpp/encoders/errors.d.ts.map +1 -0
  481. package/lib/typescript/lib/module/iab/gpp/encoders/index.d.ts +15 -0
  482. package/lib/typescript/lib/module/iab/gpp/encoders/index.d.ts.map +1 -0
  483. package/lib/typescript/lib/module/iab/gpp/encoders/types.d.ts +1 -0
  484. package/lib/typescript/lib/module/iab/gpp/encoders/types.d.ts.map +1 -0
  485. package/lib/typescript/lib/module/iab/gpp/index.d.ts +10 -0
  486. package/lib/typescript/lib/module/iab/gpp/index.d.ts.map +1 -0
  487. package/lib/typescript/lib/module/iab/gpp/reducer.d.ts +6 -0
  488. package/lib/typescript/lib/module/iab/gpp/reducer.d.ts.map +1 -0
  489. package/lib/typescript/lib/module/iab/gpp/selectors.d.ts +6 -0
  490. package/lib/typescript/lib/module/iab/gpp/selectors.d.ts.map +1 -0
  491. package/lib/typescript/lib/module/iab/gpp/types.d.ts +1 -0
  492. package/lib/typescript/lib/module/iab/gpp/types.d.ts.map +1 -0
  493. package/lib/typescript/lib/module/iab/gpp/v1/constants.d.ts +9 -0
  494. package/lib/typescript/lib/module/iab/gpp/v1/constants.d.ts.map +1 -0
  495. package/lib/typescript/lib/module/iab/gpp/v1/index.d.ts +19 -0
  496. package/lib/typescript/lib/module/iab/gpp/v1/index.d.ts.map +1 -0
  497. package/lib/typescript/lib/module/iab/index.d.ts +2 -0
  498. package/lib/typescript/lib/module/iab/index.d.ts.map +1 -0
  499. package/lib/typescript/lib/module/iab/reducer.d.ts +5 -0
  500. package/lib/typescript/lib/module/iab/reducer.d.ts.map +1 -0
  501. package/lib/typescript/lib/module/iab/tcf/actions.d.ts +63 -0
  502. package/lib/typescript/lib/module/iab/tcf/actions.d.ts.map +1 -0
  503. package/lib/typescript/lib/module/iab/tcf/consent.d.ts +58 -0
  504. package/lib/typescript/lib/module/iab/tcf/consent.d.ts.map +1 -0
  505. package/lib/typescript/lib/module/iab/tcf/constants.d.ts +21 -0
  506. package/lib/typescript/lib/module/iab/tcf/constants.d.ts.map +1 -0
  507. package/lib/typescript/lib/module/iab/tcf/helpers.d.ts +8 -0
  508. package/lib/typescript/lib/module/iab/tcf/helpers.d.ts.map +1 -0
  509. package/lib/typescript/lib/module/iab/tcf/index.d.ts +303 -0
  510. package/lib/typescript/lib/module/iab/tcf/index.d.ts.map +1 -0
  511. package/lib/typescript/lib/module/iab/tcf/middleware.d.ts +3 -0
  512. package/lib/typescript/lib/module/iab/tcf/middleware.d.ts.map +1 -0
  513. package/lib/typescript/lib/module/iab/tcf/reducer.d.ts +20 -0
  514. package/lib/typescript/lib/module/iab/tcf/reducer.d.ts.map +1 -0
  515. package/lib/typescript/lib/module/iab/tcf/selectors.d.ts +47 -0
  516. package/lib/typescript/lib/module/iab/tcf/selectors.d.ts.map +1 -0
  517. package/lib/typescript/lib/module/iab/tcf/types.d.ts +2 -0
  518. package/lib/typescript/lib/module/iab/tcf/types.d.ts.map +1 -0
  519. package/lib/typescript/lib/module/iab/tcf/v2.0/encoders.d.ts +13 -0
  520. package/lib/typescript/lib/module/iab/tcf/v2.0/encoders.d.ts.map +1 -0
  521. package/lib/typescript/lib/module/iab/tcf/v2.0/formatters.d.ts +4 -0
  522. package/lib/typescript/lib/module/iab/tcf/v2.0/formatters.d.ts.map +1 -0
  523. package/lib/typescript/lib/module/iab/tcf/v2.0/index.d.ts +308 -0
  524. package/lib/typescript/lib/module/iab/tcf/v2.0/index.d.ts.map +1 -0
  525. package/lib/typescript/lib/module/iab/tcf/v2.0/shared-constants.d.ts +80 -0
  526. package/lib/typescript/lib/module/iab/tcf/v2.0/shared-constants.d.ts.map +1 -0
  527. package/lib/typescript/lib/module/iab/tcf/v2.0/tcfcav1-constants.d.ts +104 -0
  528. package/lib/typescript/lib/module/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +1 -0
  529. package/lib/typescript/lib/module/iab/tcf/v2.0/tcfeuv2-constants.d.ts +103 -0
  530. package/lib/typescript/lib/module/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +1 -0
  531. package/lib/typescript/lib/module/iab/types.d.ts +2 -0
  532. package/lib/typescript/lib/module/iab/types.d.ts.map +1 -0
  533. package/lib/typescript/lib/module/iab/usp/api.d.ts +4 -0
  534. package/lib/typescript/lib/module/iab/usp/api.d.ts.map +1 -0
  535. package/lib/typescript/lib/module/iab/usp/consent.d.ts +13 -0
  536. package/lib/typescript/lib/module/iab/usp/consent.d.ts.map +1 -0
  537. package/lib/typescript/lib/module/iab/usp/constants.d.ts +77 -0
  538. package/lib/typescript/lib/module/iab/usp/constants.d.ts.map +1 -0
  539. package/lib/typescript/lib/module/iab/usp/index.d.ts +10 -0
  540. package/lib/typescript/lib/module/iab/usp/index.d.ts.map +1 -0
  541. package/lib/typescript/lib/module/iab/usp/reducer.d.ts +13 -0
  542. package/lib/typescript/lib/module/iab/usp/reducer.d.ts.map +1 -0
  543. package/lib/typescript/lib/module/iab/usp/selectors.d.ts +9 -0
  544. package/lib/typescript/lib/module/iab/usp/selectors.d.ts.map +1 -0
  545. package/lib/typescript/lib/module/iab/usp/types.d.ts +1 -0
  546. package/lib/typescript/lib/module/iab/usp/types.d.ts.map +1 -0
  547. package/lib/typescript/lib/module/iab/usp/v1/constants.d.ts +9 -0
  548. package/lib/typescript/lib/module/iab/usp/v1/constants.d.ts.map +1 -0
  549. package/lib/typescript/lib/module/iab/usp/v1/index.d.ts +16 -0
  550. package/lib/typescript/lib/module/iab/usp/v1/index.d.ts.map +1 -0
  551. package/lib/typescript/lib/module/iab/utilities.d.ts +2 -0
  552. package/lib/typescript/lib/module/iab/utilities.d.ts.map +1 -0
  553. package/lib/typescript/lib/module/index.d.ts +4 -0
  554. package/lib/typescript/lib/module/index.d.ts.map +1 -0
  555. package/lib/typescript/lib/module/locale/index.d.ts +61 -0
  556. package/lib/typescript/lib/module/locale/index.d.ts.map +1 -0
  557. package/lib/typescript/lib/module/native/OsanoCmp.d.ts +5 -0
  558. package/lib/typescript/lib/module/native/OsanoCmp.d.ts.map +1 -0
  559. package/lib/typescript/lib/module/reducer.d.ts +28 -0
  560. package/lib/typescript/lib/module/reducer.d.ts.map +1 -0
  561. package/lib/typescript/lib/module/selectors.d.ts +15 -0
  562. package/lib/typescript/lib/module/selectors.d.ts.map +1 -0
  563. package/lib/typescript/lib/module/services/consent.d.ts +5 -0
  564. package/lib/typescript/lib/module/services/consent.d.ts.map +1 -0
  565. package/lib/typescript/lib/module/services/disclosures.d.ts +2 -0
  566. package/lib/typescript/lib/module/services/disclosures.d.ts.map +1 -0
  567. package/lib/typescript/lib/module/services/locale.d.ts +3 -0
  568. package/lib/typescript/lib/module/services/locale.d.ts.map +1 -0
  569. package/lib/typescript/lib/module/styles.d.ts +140 -0
  570. package/lib/typescript/lib/module/styles.d.ts.map +1 -0
  571. package/lib/typescript/lib/module/types/consent-config.d.d.ts +2 -0
  572. package/lib/typescript/lib/module/types/consent-config.d.d.ts.map +1 -0
  573. package/lib/typescript/lib/module/types/env.d.d.ts +1 -0
  574. package/lib/typescript/lib/module/types/env.d.d.ts.map +1 -0
  575. package/lib/typescript/lib/module/types/index.d.d.ts +2 -0
  576. package/lib/typescript/lib/module/types/index.d.d.ts.map +1 -0
  577. package/lib/typescript/lib/module/types/store.d.d.ts +2 -0
  578. package/lib/typescript/lib/module/types/store.d.d.ts.map +1 -0
  579. package/lib/typescript/lib/module/utils/API.d.ts +6 -0
  580. package/lib/typescript/lib/module/utils/API.d.ts.map +1 -0
  581. package/lib/typescript/lib/module/utils/Color.d.ts +12 -0
  582. package/lib/typescript/lib/module/utils/Color.d.ts.map +1 -0
  583. package/lib/typescript/lib/module/utils/EventEmitter.d.ts +15 -0
  584. package/lib/typescript/lib/module/utils/EventEmitter.d.ts.map +1 -0
  585. package/lib/typescript/lib/module/utils/Translator.d.ts +52 -0
  586. package/lib/typescript/lib/module/utils/Translator.d.ts.map +1 -0
  587. package/lib/typescript/lib/module/utils/index.d.ts +5 -0
  588. package/lib/typescript/lib/module/utils/index.d.ts.map +1 -0
  589. package/lib/typescript/lib/module/utils/types.d.ts +1 -0
  590. package/lib/typescript/lib/module/utils/types.d.ts.map +1 -0
  591. package/lib/typescript/lib/module/views/Dialog/Buttons.d.ts +5 -0
  592. package/lib/typescript/lib/module/views/Dialog/Buttons.d.ts.map +1 -0
  593. package/lib/typescript/lib/module/views/Dialog/FirstLayerUsage.d.ts +5 -0
  594. package/lib/typescript/lib/module/views/Dialog/FirstLayerUsage.d.ts.map +1 -0
  595. package/lib/typescript/lib/module/views/Dialog/Message.d.ts +4 -0
  596. package/lib/typescript/lib/module/views/Dialog/Message.d.ts.map +1 -0
  597. package/lib/typescript/lib/module/views/Dialog/PreferenceManagementDeepLinks.d.ts +6 -0
  598. package/lib/typescript/lib/module/views/Dialog/PreferenceManagementDeepLinks.d.ts.map +1 -0
  599. package/lib/typescript/lib/module/views/Dialog/index.d.ts +5 -0
  600. package/lib/typescript/lib/module/views/Dialog/index.d.ts.map +1 -0
  601. package/lib/typescript/lib/module/views/Drawer/Drawer.ConsentCategories.d.ts +5 -0
  602. package/lib/typescript/lib/module/views/Drawer/Drawer.ConsentCategories.d.ts.map +1 -0
  603. package/lib/typescript/lib/module/views/Drawer/Drawer.Header.d.ts +5 -0
  604. package/lib/typescript/lib/module/views/Drawer/Drawer.Header.d.ts.map +1 -0
  605. package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Disclosures.d.ts +5 -0
  606. package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Disclosures.d.ts.map +1 -0
  607. package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Vendors.d.ts +5 -0
  608. package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Vendors.d.ts.map +1 -0
  609. package/lib/typescript/lib/module/views/Drawer/index.d.ts +4 -0
  610. package/lib/typescript/lib/module/views/Drawer/index.d.ts.map +1 -0
  611. package/lib/typescript/scripts/updateLocalization.d.ts +2 -0
  612. package/lib/typescript/scripts/updateLocalization.d.ts.map +1 -0
  613. package/lib/typescript/src/ConsentManager.d.ts +31 -16
  614. package/lib/typescript/src/ConsentManager.d.ts.map +1 -1
  615. package/lib/typescript/src/ConsentUiBuilder.d.ts +1 -1
  616. package/lib/typescript/src/ConsentUiBuilder.d.ts.map +1 -1
  617. package/lib/typescript/src/actions.d.ts +42 -0
  618. package/lib/typescript/src/actions.d.ts.map +1 -0
  619. package/lib/typescript/src/commands.d.ts +14 -0
  620. package/lib/typescript/src/commands.d.ts.map +1 -0
  621. package/lib/typescript/src/components/Button.d.ts +1 -1
  622. package/lib/typescript/src/components/Button.d.ts.map +1 -1
  623. package/lib/typescript/src/components/Locale.d.ts +1 -0
  624. package/lib/typescript/src/components/Locale.d.ts.map +1 -1
  625. package/lib/typescript/src/context.d.ts +3 -3
  626. package/lib/typescript/src/context.d.ts.map +1 -1
  627. package/lib/typescript/src/flavors/index.d.ts +1 -1
  628. package/lib/typescript/src/hooks/usePrevious.d.ts +1 -1
  629. package/lib/typescript/src/hooks/usePrevious.d.ts.map +1 -1
  630. package/lib/typescript/src/hooks/useThunkReducer.d.ts +6 -8
  631. package/lib/typescript/src/hooks/useThunkReducer.d.ts.map +1 -1
  632. package/lib/typescript/src/iab/actions.d.ts +7 -0
  633. package/lib/typescript/src/iab/actions.d.ts.map +1 -0
  634. package/lib/typescript/src/iab/constants.d.ts +2 -0
  635. package/lib/typescript/src/iab/constants.d.ts.map +1 -1
  636. package/lib/typescript/src/iab/gpp/api.d.ts +28 -0
  637. package/lib/typescript/src/iab/gpp/api.d.ts.map +1 -0
  638. package/lib/typescript/src/iab/gpp/consent.d.ts +24 -0
  639. package/lib/typescript/src/iab/gpp/consent.d.ts.map +1 -0
  640. package/lib/typescript/src/iab/gpp/constants.d.ts +37 -0
  641. package/lib/typescript/src/iab/gpp/constants.d.ts.map +1 -0
  642. package/lib/typescript/src/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +1 -1
  643. package/lib/typescript/src/iab/gpp/encoders/BooleanEncoder.d.ts +2 -2
  644. package/lib/typescript/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +4 -2
  645. package/lib/typescript/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +1 -1
  646. package/lib/typescript/src/iab/gpp/index.d.ts +10 -0
  647. package/lib/typescript/src/iab/gpp/index.d.ts.map +1 -0
  648. package/lib/typescript/src/iab/gpp/reducer.d.ts +6 -0
  649. package/lib/typescript/src/iab/gpp/reducer.d.ts.map +1 -0
  650. package/lib/typescript/src/iab/gpp/selectors.d.ts +6 -0
  651. package/lib/typescript/src/iab/gpp/selectors.d.ts.map +1 -0
  652. package/lib/typescript/src/iab/gpp/v1/constants.d.ts +9 -0
  653. package/lib/typescript/src/iab/gpp/v1/constants.d.ts.map +1 -0
  654. package/lib/typescript/src/iab/gpp/v1/index.d.ts +19 -0
  655. package/lib/typescript/src/iab/gpp/v1/index.d.ts.map +1 -0
  656. package/lib/typescript/src/iab/index.d.ts +5 -0
  657. package/lib/typescript/src/iab/index.d.ts.map +1 -0
  658. package/lib/typescript/src/iab/reducer.d.ts +6 -0
  659. package/lib/typescript/src/iab/reducer.d.ts.map +1 -0
  660. package/lib/typescript/src/iab/tcf/actions.d.ts +35 -0
  661. package/lib/typescript/src/iab/tcf/actions.d.ts.map +1 -0
  662. package/lib/typescript/src/iab/tcf/consent.d.ts +25 -0
  663. package/lib/typescript/src/iab/tcf/consent.d.ts.map +1 -0
  664. package/lib/typescript/src/iab/tcf/constants.d.ts.map +1 -1
  665. package/lib/typescript/src/iab/tcf/helpers.d.ts +15 -0
  666. package/lib/typescript/src/iab/tcf/helpers.d.ts.map +1 -0
  667. package/lib/typescript/src/iab/tcf/index.d.ts +8 -0
  668. package/lib/typescript/src/iab/tcf/index.d.ts.map +1 -0
  669. package/lib/typescript/src/iab/tcf/middleware.d.ts +4 -0
  670. package/lib/typescript/src/iab/tcf/middleware.d.ts.map +1 -0
  671. package/lib/typescript/src/iab/tcf/reducer.d.ts +59 -0
  672. package/lib/typescript/src/iab/tcf/reducer.d.ts.map +1 -0
  673. package/lib/typescript/src/iab/tcf/selectors.d.ts +52 -0
  674. package/lib/typescript/src/iab/tcf/selectors.d.ts.map +1 -0
  675. package/lib/typescript/src/iab/tcf/types.d.ts +82 -4
  676. package/lib/typescript/src/iab/tcf/types.d.ts.map +1 -1
  677. package/lib/typescript/src/iab/tcf/v2.0/encoders.d.ts +35 -6
  678. package/lib/typescript/src/iab/tcf/v2.0/encoders.d.ts.map +1 -1
  679. package/lib/typescript/src/iab/tcf/v2.0/formatters.d.ts +4 -0
  680. package/lib/typescript/src/iab/tcf/v2.0/formatters.d.ts.map +1 -0
  681. package/lib/typescript/src/iab/tcf/v2.0/index.d.ts +7 -0
  682. package/lib/typescript/src/iab/tcf/v2.0/index.d.ts.map +1 -0
  683. package/lib/typescript/src/iab/tcf/v2.0/shared-constants.d.ts +60 -0
  684. package/lib/typescript/src/iab/tcf/v2.0/shared-constants.d.ts.map +1 -0
  685. package/lib/typescript/src/iab/tcf/v2.0/tcfcav1-constants.d.ts +77 -0
  686. package/lib/typescript/src/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +1 -0
  687. package/lib/typescript/src/iab/tcf/v2.0/tcfeuv2-constants.d.ts +82 -0
  688. package/lib/typescript/src/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +1 -0
  689. package/lib/typescript/src/iab/types.d.ts +14 -5
  690. package/lib/typescript/src/iab/types.d.ts.map +1 -1
  691. package/lib/typescript/src/iab/usp/api.d.ts +4 -0
  692. package/lib/typescript/src/iab/usp/api.d.ts.map +1 -0
  693. package/lib/typescript/src/iab/usp/consent.d.ts +13 -0
  694. package/lib/typescript/src/iab/usp/consent.d.ts.map +1 -0
  695. package/lib/typescript/src/iab/usp/constants.d.ts +77 -0
  696. package/lib/typescript/src/iab/usp/constants.d.ts.map +1 -0
  697. package/lib/typescript/src/iab/usp/index.d.ts +10 -0
  698. package/lib/typescript/src/iab/usp/index.d.ts.map +1 -0
  699. package/lib/typescript/src/iab/usp/reducer.d.ts +13 -0
  700. package/lib/typescript/src/iab/usp/reducer.d.ts.map +1 -0
  701. package/lib/typescript/src/iab/usp/selectors.d.ts +9 -0
  702. package/lib/typescript/src/iab/usp/selectors.d.ts.map +1 -0
  703. package/lib/typescript/src/iab/usp/v1/constants.d.ts +9 -0
  704. package/lib/typescript/src/iab/usp/v1/constants.d.ts.map +1 -0
  705. package/lib/typescript/src/iab/usp/v1/index.d.ts +16 -0
  706. package/lib/typescript/src/iab/usp/v1/index.d.ts.map +1 -0
  707. package/lib/typescript/src/index.d.ts.map +1 -1
  708. package/lib/typescript/src/locale/index.d.ts +61 -0
  709. package/lib/typescript/src/locale/index.d.ts.map +1 -0
  710. package/lib/typescript/src/reducer.d.ts +7 -0
  711. package/lib/typescript/src/reducer.d.ts.map +1 -0
  712. package/lib/typescript/src/selectors.d.ts +19 -0
  713. package/lib/typescript/src/selectors.d.ts.map +1 -0
  714. package/lib/typescript/src/services/consent.d.ts.map +1 -1
  715. package/lib/typescript/src/styles.d.ts +2 -2
  716. package/lib/typescript/src/styles.d.ts.map +1 -1
  717. package/lib/typescript/src/utils/Translator.d.ts +1 -1
  718. package/lib/typescript/src/utils/Translator.d.ts.map +1 -1
  719. package/lib/typescript/src/utils/index.d.ts +2 -1
  720. package/lib/typescript/src/utils/index.d.ts.map +1 -1
  721. package/lib/typescript/src/utils/types.d.ts +5 -0
  722. package/lib/typescript/src/utils/types.d.ts.map +1 -0
  723. package/lib/typescript/src/views/Dialog/PreferenceManagementDeepLinks.d.ts.map +1 -1
  724. package/lib/typescript/src/views/Dialog/index.d.ts.map +1 -1
  725. package/lib/typescript/src/views/Drawer/Drawer.ConsentCategories.d.ts.map +1 -1
  726. package/lib/typescript/src/views/Drawer/Drawer.Header.d.ts.map +1 -1
  727. package/lib/typescript/src/views/Drawer/Drawer.Iab.Disclosures.d.ts.map +1 -1
  728. package/lib/typescript/src/views/Drawer/Drawer.Iab.Vendors.d.ts.map +1 -1
  729. package/package.json +18 -38
  730. package/src/ConsentManager.ts +325 -120
  731. package/src/ConsentUiBuilder.tsx +2 -2
  732. package/src/actions.ts +80 -0
  733. package/src/commands.ts +96 -0
  734. package/src/components/Button.tsx +34 -27
  735. package/src/components/Locale.tsx +30 -16
  736. package/src/context.ts +12 -12
  737. package/src/flavors/index.ts +1 -1
  738. package/src/hooks/usePrevious.ts +1 -1
  739. package/src/hooks/useThunkReducer.ts +86 -54
  740. package/src/iab/actions.ts +19 -0
  741. package/src/iab/constants.ts +2 -0
  742. package/src/iab/gpp/encoders/FixedIntegerEncoder.ts +1 -1
  743. package/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.ts +1 -2
  744. package/src/iab/index.ts +34 -0
  745. package/src/iab/reducer.ts +38 -0
  746. package/src/iab/tcf/actions.ts +116 -0
  747. package/src/iab/tcf/{consent.js → consent.ts} +143 -164
  748. package/src/iab/tcf/constants.ts +6 -6
  749. package/src/iab/tcf/helpers.ts +95 -0
  750. package/src/iab/tcf/index.ts +8 -0
  751. package/src/iab/tcf/middleware.ts +217 -0
  752. package/src/iab/tcf/reducer.ts +250 -0
  753. package/src/iab/tcf/selectors.ts +192 -0
  754. package/src/iab/tcf/types.ts +108 -4
  755. package/src/iab/tcf/v2.0/encoders.ts +7 -16
  756. package/src/iab/tcf/v2.0/formatters.ts +18 -0
  757. package/src/iab/tcf/v2.0/index.ts +40 -0
  758. package/src/iab/tcf/v2.0/shared-constants.ts +53 -0
  759. package/src/iab/tcf/v2.0/{tcfcav1-constants.js → tcfcav1-constants.ts} +4 -15
  760. package/src/iab/tcf/v2.0/{tcfeuv2-constants.js → tcfeuv2-constants.ts} +4 -14
  761. package/src/iab/types.ts +21 -5
  762. package/src/index.tsx +184 -99
  763. package/src/reducer.ts +416 -0
  764. package/src/selectors.ts +109 -0
  765. package/src/services/consent.ts +35 -12
  766. package/src/styles.ts +3 -5
  767. package/src/types/consent-config.d.ts +16 -12
  768. package/src/types/index.d.ts +21 -5
  769. package/src/types/store.d.ts +14 -4
  770. package/src/utils/Translator.ts +47 -43
  771. package/src/utils/index.ts +23 -27
  772. package/src/utils/types.ts +35 -0
  773. package/src/views/Dialog/Buttons.tsx +2 -2
  774. package/src/views/Dialog/Message.tsx +1 -1
  775. package/src/views/Dialog/PreferenceManagementDeepLinks.tsx +7 -5
  776. package/src/views/Dialog/index.tsx +22 -38
  777. package/src/views/Drawer/Drawer.ConsentCategories.tsx +84 -41
  778. package/src/views/Drawer/Drawer.Header.tsx +3 -2
  779. package/src/views/Drawer/Drawer.Iab.Disclosures.tsx +71 -41
  780. package/src/views/Drawer/Drawer.Iab.Vendors.tsx +78 -37
  781. package/src/views/Drawer/index.tsx +8 -8
  782. package/lib/commonjs/iab/tcf/tcfcav1-api.js +0 -41
  783. package/lib/commonjs/iab/tcf/tcfcav1-api.js.map +0 -1
  784. package/lib/commonjs/iab/tcf/tcfeuv2-api.js +0 -256
  785. package/lib/commonjs/iab/tcf/tcfeuv2-api.js.map +0 -1
  786. package/lib/commonjs/iab/tcf/v2.0/helpers.js +0 -25
  787. package/lib/commonjs/iab/tcf/v2.0/helpers.js.map +0 -1
  788. package/lib/commonjs/iab/tcf/v2.0/middleware.js +0 -80
  789. package/lib/commonjs/iab/tcf/v2.0/middleware.js.map +0 -1
  790. package/lib/commonjs/iab/tcf/v2.0/reducer.js +0 -318
  791. package/lib/commonjs/iab/tcf/v2.0/reducer.js.map +0 -1
  792. package/lib/commonjs/store.js +0 -558
  793. package/lib/commonjs/store.js.map +0 -1
  794. package/lib/module/iab/tcf/tcfcav1-api.js +0 -35
  795. package/lib/module/iab/tcf/tcfcav1-api.js.map +0 -1
  796. package/lib/module/iab/tcf/tcfeuv2-api.js +0 -251
  797. package/lib/module/iab/tcf/tcfeuv2-api.js.map +0 -1
  798. package/lib/module/iab/tcf/v2.0/helpers.js +0 -18
  799. package/lib/module/iab/tcf/v2.0/helpers.js.map +0 -1
  800. package/lib/module/iab/tcf/v2.0/middleware.js +0 -74
  801. package/lib/module/iab/tcf/v2.0/middleware.js.map +0 -1
  802. package/lib/module/iab/tcf/v2.0/reducer.js +0 -311
  803. package/lib/module/iab/tcf/v2.0/reducer.js.map +0 -1
  804. package/lib/module/store.js.map +0 -1
  805. package/lib/typescript/src/iab/tcf/v2.0/helpers.d.ts +0 -5
  806. package/lib/typescript/src/iab/tcf/v2.0/helpers.d.ts.map +0 -1
  807. package/lib/typescript/src/store.d.ts +0 -55
  808. package/lib/typescript/src/store.d.ts.map +0 -1
  809. package/src/iab/tcf/actions.js +0 -52
  810. package/src/iab/tcf/index.js +0 -7
  811. package/src/iab/tcf/reducer.js +0 -59
  812. package/src/iab/tcf/selectors.js +0 -151
  813. package/src/iab/tcf/tcfcav1-api.js +0 -39
  814. package/src/iab/tcf/tcfeuv2-api.js +0 -264
  815. package/src/iab/tcf/v2.0/formatters.js +0 -14
  816. package/src/iab/tcf/v2.0/helpers.ts +0 -23
  817. package/src/iab/tcf/v2.0/index.js +0 -36
  818. package/src/iab/tcf/v2.0/middleware.js +0 -72
  819. package/src/iab/tcf/v2.0/reducer.js +0 -327
  820. package/src/iab/tcf/v2.0/shared-constants.js +0 -17
  821. package/src/store.ts +0 -602
@@ -1 +1 @@
1
- {"version":3,"names":["consentToPurpose","purposeIds","getConsent","getCountryCode","getSavedConsent","GDPR_COUNTRIES","ScreenIds","get","isBrowsingFrom","DOMAIN","isIABEnabled","state","getStore","getApiData","apiVersion","parseInt","getCurrentScreen","None","doesGDPRApply","includes","getConsentLanguage","slice","toUpperCase","getConsentString","gppSection","tcString","getPublisherCountryCode","getPublisherLegitimateInterests","getPurposeIds","getPurposeOptOuts","getPurposeConsents","consent","optOutPurposes","Object","entries","reduce","purposeConsents","purposeId","hasConsented","getPurposesLITransparency","purposeLITransparency","forEach","getSpecialFeatureOptIns","getVendors","getVendorData","vendorId","getVendorIds","keys","map","getVendorOptOuts","getVendorListError","getVendorListVersion","TCF_GPP_SECTION","getStorageConsent","iab","v2","p","v","euconsent","hasActed","hasConsentedToSpecialFeature","specialFeatureId","hasOptedOutOfVendor","hasOptedOutOfPurpose","isTcfApplicable","isVendorListLoaded","isVendorListLoading"],"sourceRoot":"../../../../src","sources":["iab/tcf/selectors.js"],"mappings":"AAAA,SAASA,gBAAgB,EAAEC,UAAU,QAAQ,aAAa;AAC1D,SACCC,UAAU,EACVC,cAAc,EACdC,eAAe,QACT,uBAAuB;AAE9B,SAASC,cAAc,QAAQ,YAAY;AAC3C,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,GAAG,QAAQ,aAAa;AACjC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,OAAO,MAAMC,MAAM,GAAG,SAAS;AAE/B,OAAO,MAAMC,YAAY,GAAGC,KAAK,IAAI,CAAC,CAACJ,GAAG,CAACI,KAAK,EAAE,mBAAmB,CAAC;AAEtE,OAAO,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U,CAAC,KACpE,CAAC,CAACR,iBAAiB,CAAClB,KAAK,EAAEG,UAAU,CAAC,CAAE,GAAEuB,SAAU,EAAC,CAAC;AAEvD,OAAO,MAAM2B,eAAe,GAAGrD,KAAK,IACnC,CAACO,aAAa,CAACP,KAAK,CAAC,IAAIH,cAAc,CAACG,KAAK,EAAE,IAAI,CAAC,KACpD,CAAC,CAACJ,GAAG,CAACK,QAAQ,CAACD,KAAK,CAAC,EAAE,SAAS,EAAED,YAAY,CAACC,KAAK,CAAC,CAAC;AACvD,OAAO,MAAMsD,kBAAkB,GAAGA,CAACtD,KAAK,EAAEG,UAAU,KACnD,CAAC,CAACP,GAAG,CAACM,UAAU,CAACF,KAAK,EAAEG,UAAU,CAAC,EAAE,kBAAkB,CAAC;AACzD,OAAO,MAAMoD,mBAAmB,GAAGA,CAACvD,KAAK,EAAEG,UAAU,KACpD,CAAC,CAACP,GAAG,CAACM,UAAU,CAACF,KAAK,EAAEG,UAAU,CAAC,EAAE,mBAAmB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["consentToPurpose","purposeIds","ConsentCategory","get","initialState","isBrowsingFrom","DOMAIN","doesGDPRApply","config","apiVersion","getConfigData","getStore","isIABEnabled","iab","enabled","parseInt","getStateData","state","getCurrentScreen","Math","max","stack","length","getConsentString","gppSection","tcString","consentStrings","getPublisherLegitimateInterests","getPurposeIds","getPurposeOptOuts","getPurposeConsents","consent","getSavedConsent","getConsent","optOutPurposes","Object","entries","reduce","purposeConsents","purposeId","hasConsented","getPurposesLITransparency","purposeLITransparency","forEach","getSpecialFeatureOptIns","getVendors","getVendorData","vendorId","getVendorIds","keys","map","Number","getVendorOptOuts","getVendorListError","getVendorListVersion","hasActed","hasConsentedToSpecialFeature","specialFeatureId","hasOptedOutOfVendor","hasOptedOutOfPurpose","isTcfApplicable","isVendorListLoaded","isVendorListLoading","getCountryCode","country","substring","toUpperCase","isSaved","getFinalOptOutValue","pendingNewValue","undefined","existingOptOut","OPT_OUT"],"sourceR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AAU,GAAIhB,KAAkB,IAAK;EACjD,MAAMc,OAAqD,GAAG;IAC7D,IAAI5B,GAAG,CAACc,KAAK,EAAE,SAAS,CAAC,IAAIb,YAAY,CAAC2B,OAAO;EAClD,CAAC;EACD;EACA;EACAA,OAAO,CAAC7B,eAAe,CAACsE,OAAO,CAAC,GAAGJ,mBAAmB,CAACnD,KAAK,CAAC;EAC7D,OAAOc,OAAO;AACf,CAAC","ignoreList":[]}
@@ -1,14 +1,5 @@
1
1
  import { BooleanEncoder, DatetimeEncoder, FixedIdBitMapEncoder, FixedIntegerEncoder, FixedStringEncoder } from '../../gpp/encoders';
2
2
  export { EncodableOptimizedFixedRange } from '../../gpp/encoders';
3
-
4
- /**
5
- * @typedef Encoder
6
- * @type {object}
7
- * @property {function(string, number?, ...params): {bitLength: number, value: any}} decode
8
- * @property {function(any, number?, ...params): string} encode
9
- */
10
-
11
- // This provides a consistent structure on decode()
12
3
  const adaptEncoder = encoder => ({
13
4
  decode: (bitString, numBits) => ({
14
5
  bitLength: numBits,
@@ -1 +1 @@
1
- {"version":3,"names":["BooleanEncoder","DatetimeEncoder","FixedIdBitMapEncoder","FixedIntegerEncoder","FixedStringEncoder","EncodableOptimizedFixedRange","adaptEncoder","encoder","decode","bitString","numBits","bitLength","value","encode","BitEncoder","DateEncoder","IdBitMapEncoder","IntEncoder","LangEncoder","toUpperCase"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/encoders.ts"],"mappings":"AAAA,SACCA,cAAc,EACdC,eAAe,EACfC,oBAAoB,EACpBC,mBAAmB,EACnBC,kBAAkB,QAEZ,oBAAoB;AAE3B,SAASC,4BAA4B,QAAQ,oBAAoB;;AAEjE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAMC,YAAY,GAAIC,OAAgB,KACpC;EACAC,MAAM,EAAEA,CAACC,SAAiB,EAAEC,OAAe,MAAM;IAChDC,SAAS,EAAED,OAAO;IAClBE,KAAK,EAAEL,OAAO,CAACC,MAAM,CAACC,SAAS,EAAEC,OAAO;EACzC,CAAC,CAAC;EACFG,MAAM,EAAEN,OAAO,CAACM;AACjB,CAAC,CAAY;AAEd,OAAO,MAAMC,UAAU,GAAGR,YAAY,CAACN,cAAc,CAAC;AACtD,OAAO,MAAMe,WAAW,GAAGT,YAAY,CAACL,eAAe,CAAC;AACxD;AACA,OAAO,MAAMe,eAAe,GAAGV,YAAY,CAACJ,oBAAoB,CAAC;AACjE,OAAO,MAAMe,UAAU,GAAGX,YAAY,CAACH,mBAAmB,CAAC;AAC3D,OAAO,MAAMe,WAAW,GAAGZ,YAAY,CAAC;EACvCE,MAAM,EAAEJ,kBAAkB,CAACI,MAAM;EACjCK,MAAM,EAAGD,KAAa,IAAKR,kBAAkB,CAACS,MAAM,CAACD,KAAK,EAAE,CAAC,CAAC,CAACO,WAAW,CAAC;AAC5E,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["BooleanEncoder","DatetimeEncoder","FixedIdBitMapEncoder","FixedIntegerEncoder","FixedStringEncoder","EncodableOptimizedFixedRange","adaptEncoder","encoder","decode","bitString","numBits","bitLength","value","encode","BitEncoder","DateEncoder","IdBitMapEncoder","IntEncoder","LangEncoder","toUpperCase"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/encoders.ts"],"mappings":"AAAA,SACCA,cAAc,EACdC,eAAe,EACfC,oBAAoB,EACpBC,mBAAmB,EACnBC,kBAAkB,QAEZ,oBAAoB;AAE3B,SAASC,4BAA4B,QAAQ,oBAAoB;AAEjE,MAAMC,YAAY,GAAIC,OAAgB,KAAM;EAC3CC,MAAM,EAAEA,CAACC,SAAiB,EAAEC,OAAe,MAAM;IAChDC,SAAS,EAAED,OAAO;IAClBE,KAAK,EAAEL,OAAO,CAACC,MAAM,CAACC,SAAS,EAAEC,OAAO;EACzC,CAAC,CAAC;EACFG,MAAM,EAAEN,OAAO,CAACM;AACjB,CAAC,CAAC;AAEF,OAAO,MAAMC,UAAU,GAAGR,YAAY,CAACN,cAAc,CAAC;AACtD,OAAO,MAAMe,WAAW,GAAGT,YAAY,CAACL,eAAe,CAAC;AACxD;AACA,OAAO,MAAMe,eAAe,GAAGV,YAAY,CAACJ,oBAAoB,CAAC;AACjE,OAAO,MAAMe,UAAU,GAAGX,YAAY,CAACH,mBAAmB,CAAC;AAC3D,OAAO,MAAMe,WAAW,GAAGZ,YAAY,CAAC;EACvCE,MAAM,EAAEJ,kBAAkB,CAACI,MAAM;EACjCK,MAAM,EAAGD,KAAa,IAAKR,kBAAkB,CAACS,MAAM,CAACD,KAAK,EAAE,CAAC,CAAC,CAACO,WAAW,CAAC;AAC5E,CAAC,CAAC","ignoreList":[]}
@@ -1,12 +1,10 @@
1
1
  export const idsOnlyArrayFormatter = value => Object.entries(value).filter(([, v]) => v).map(([k]) => parseInt(k, 10));
2
2
  export const fixedValuesArrayFormatter = (idValueMap, length) => {
3
- const array = Array.from({
4
- length
5
- }).fill(false);
6
- Object.entries(idValueMap).forEach(([k, v]) => {
7
- array[k - 1] = v;
8
- });
3
+ const array = new Array(length).fill(false);
4
+ for (const [k, v] of Object.entries(idValueMap)) {
5
+ array[parseInt(k, 10) - 1] = v;
6
+ }
9
7
  return array;
10
8
  };
11
- export const dateFormatter = timestamp => new Date(timestamp * 100);
9
+ export const dateFormatter = deciseconds => new Date(deciseconds * 100);
12
10
  //# sourceMappingURL=formatters.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["idsOnlyArrayFormatter","value","Object","entries","filter","v","map","k","parseInt","fixedValuesArrayFormatter","idValueMap","length","array","Array","from","fill","forEach","dateFormatter","timestamp","Date"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/formatters.js"],"mappings":"AAAA,OAAO,MAAMA,qBAAqB,GAAGC,KAAK,IACzCC,MAAM,CAACC,OAAO,CAACF,KAAK,CAAC,CACnBG,MAAM,CAAC,CAAC,GAAGC,CAAC,CAAC,KAAKA,CAAC,CAAC,CACpBC,GAAG,CAAC,CAAC,CAACC,CAAC,CAAC,KAAKC,QAAQ,CAACD,CAAC,EAAE,EAAE,CAAC,CAAC;AAEhC,OAAO,MAAME,yBAAyB,GAAGA,CAACC,UAAU,EAAEC,MAAM,KAAK;EAChE,MAAMC,KAAK,GAAGC,KAAK,CAACC,IAAI,CAAC;IAAEH;EAAO,CAAC,CAAC,CAACI,IAAI,CAAC,KAAK,CAAC;EAChDb,MAAM,CAACC,OAAO,CAACO,UAAU,CAAC,CAACM,OAAO,CAAC,CAAC,CAACT,CAAC,EAAEF,CAAC,CAAC,KAAK;IAC9CO,KAAK,CAACL,CAAC,GAAG,CAAC,CAAC,GAAGF,CAAC;EACjB,CAAC,CAAC;EACF,OAAOO,KAAK;AACb,CAAC;AAED,OAAO,MAAMK,aAAa,GAAGC,SAAS,IAAI,IAAIC,IAAI,CAACD,SAAS,GAAG,GAAG,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["idsOnlyArrayFormatter","value","Object","entries","filter","v","map","k","parseInt","fixedValuesArrayFormatter","idValueMap","length","array","Array","fill","dateFormatter","deciseconds","Date"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/formatters.ts"],"mappings":"AAAA,OAAO,MAAMA,qBAAqB,GAAIC,KAA8B,IACnEC,MAAM,CAACC,OAAO,CAACF,KAAK,CAAC,CACnBG,MAAM,CAAC,CAAC,GAAGC,CAAC,CAAC,KAAKA,CAAC,CAAC,CACpBC,GAAG,CAAC,CAAC,CAACC,CAAC,CAAC,KAAKC,QAAQ,CAACD,CAAC,EAAE,EAAE,CAAC,CAAC;AAEhC,OAAO,MAAME,yBAAyB,GAAGA,CACxCC,UAAmC,EACnCC,MAAc,KACV;EACJ,MAAMC,KAAgB,GAAG,IAAIC,KAAK,CAACF,MAAM,CAAC,CAACG,IAAI,CAAC,KAAK,CAAC;EACtD,KAAK,MAAM,CAACP,CAAC,EAAEF,CAAC,CAAC,IAAIH,MAAM,CAACC,OAAO,CAACO,UAAU,CAAC,EAAE;IAChDE,KAAK,CAACJ,QAAQ,CAACD,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,GAAGF,CAAC;EAC/B;EACA,OAAOO,KAAK;AACb,CAAC;AAED,OAAO,MAAMG,aAAa,GAAIC,WAAmB,IAChD,IAAIC,IAAI,CAACD,WAAW,GAAG,GAAG,CAAC","ignoreList":[]}
@@ -1,10 +1,8 @@
1
- import { apiName, iframeName, initOptions as tcfeuv2InitOptions } from './tcfeuv2-constants';
2
- import makeCreateMiddleware from './middleware';
3
- import makeReducer from './reducer';
4
- import makeTcfcav1Api from '../tcfcav1-api';
5
- import makeTcfeuv2Api from '../tcfeuv2-api';
6
- import postMessageEventHandler from '../../iframe';
1
+ import { makeConsentFromOptions, makeFormatConsentString, makeParseConsentString, makeReadFromStorage } from '../consent';
2
+ import makeMiddleware from '../middleware';
3
+ import makeReducer from '../reducer';
7
4
  import { initOptions as tcfcav1InitOptions } from './tcfcav1-constants';
5
+ import { initOptions as tcfeuv2InitOptions } from './tcfeuv2-constants';
8
6
 
9
7
  /**
10
8
  * TCF-Canada v1 is nearly identical to TCF-EU v2, just with a few fields left
@@ -13,18 +11,22 @@ import { initOptions as tcfcav1InitOptions } from './tcfcav1-constants';
13
11
  */
14
12
 
15
13
  const tcfeuv2 = {
16
- api: makeTcfeuv2Api(tcfeuv2InitOptions),
17
- apiName,
18
- createMiddleware: makeCreateMiddleware(tcfeuv2InitOptions),
19
- gppSection: tcfeuv2InitOptions.gppSection,
20
- iframeName,
21
- postMessageEventHandler: postMessageEventHandler(apiName, true),
22
- reducer: makeReducer(tcfeuv2InitOptions)
14
+ ...tcfeuv2InitOptions,
15
+ middleware: makeMiddleware(tcfeuv2InitOptions),
16
+ reducer: makeReducer(tcfeuv2InitOptions),
17
+ consentFromOptions: makeConsentFromOptions(tcfeuv2InitOptions),
18
+ formatConsentString: makeFormatConsentString(tcfeuv2InitOptions),
19
+ parseConsentString: makeParseConsentString(tcfeuv2InitOptions),
20
+ readFromStorage: makeReadFromStorage(tcfeuv2InitOptions)
23
21
  };
24
22
  const tcfcav1 = {
25
- api: makeTcfcav1Api(tcfcav1InitOptions),
26
- createMiddleware: makeCreateMiddleware(tcfcav1InitOptions),
27
- gppSection: tcfcav1InitOptions.gppSection
23
+ ...tcfcav1InitOptions,
24
+ middleware: makeMiddleware(tcfcav1InitOptions),
25
+ reducer: makeReducer(tcfcav1InitOptions),
26
+ consentFromOptions: makeConsentFromOptions(tcfcav1InitOptions),
27
+ formatConsentString: makeFormatConsentString(tcfcav1InitOptions),
28
+ parseConsentString: makeParseConsentString(tcfcav1InitOptions),
29
+ readFromStorage: makeReadFromStorage(tcfcav1InitOptions)
28
30
  };
29
31
  export default {
30
32
  tcfeuv2,
@@ -1 +1 @@
1
- {"version":3,"names":["apiName","iframeName","initOptions","tcfeuv2InitOptions","makeCreateMiddleware","makeReducer","makeTcfcav1Api","makeTcfeuv2Api","postMessageEventHandler","tcfcav1InitOptions","tcfeuv2","api","createMiddleware","gppSection","reducer","tcfcav1"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/index.js"],"mappings":"AAAA,SACCA,OAAO,EACPC,UAAU,EACVC,WAAW,IAAIC,kBAAkB,QAC3B,qBAAqB;AAE5B,OAAOC,oBAAoB,MAAM,cAAc;AAC/C,OAAOC,WAAW,MAAM,WAAW;AACnC,OAAOC,cAAc,MAAM,gBAAgB;AAC3C,OAAOC,cAAc,MAAM,gBAAgB;AAC3C,OAAOC,uBAAuB,MAAM,cAAc;AAClD,SAASN,WAAW,IAAIO,kBAAkB,QAAQ,qBAAqB;;AAEvE;AACA;AACA;AACA;AACA;;AAEA,MAAMC,OAAO,GAAG;EACfC,GAAG,EAAEJ,cAAc,CAACJ,kBAAkB,CAAC;EACvCH,OAAO;EACPY,gBAAgB,EAAER,oBAAoB,CAACD,kBAAkB,CAAC;EAC1DU,UAAU,EAAEV,kBAAkB,CAACU,UAAU;EACzCZ,UAAU;EACVO,uBAAuB,EAAEA,uBAAuB,CAACR,OAAO,EAAE,IAAI,CAAC;EAC/Dc,OAAO,EAAET,WAAW,CAACF,kBAAkB;AACxC,CAAC;AAED,MAAMY,OAAO,GAAG;EACfJ,GAAG,EAAEL,cAAc,CAACG,kBAAkB,CAAC;EACvCG,gBAAgB,EAAER,oBAAoB,CAACK,kBAAkB,CAAC;EAC1DI,UAAU,EAAEJ,kBAAkB,CAACI;AAChC,CAAC;AAED,eAAe;EAAEH,OAAO;EAAEK;AAAQ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["makeConsentFromOptions","makeFormatConsentString","makeParseConsentString","makeReadFromStorage","makeMiddleware","makeReducer","initOptions","tcfcav1InitOptions","tcfeuv2InitOptions","tcfeuv2","middleware","reducer","consentFromOptions","formatConsentString","parseConsentString","readFromStorage","tcfcav1"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/index.ts"],"mappings":"AAAA,SACCA,sBAAsB,EACtBC,uBAAuB,EACvBC,sBAAsB,EACtBC,mBAAmB,QACb,YAAY;AAGnB,OAAOC,cAAc,MAAM,eAAe;AAC1C,OAAOC,WAAW,MAAM,YAAY;AACpC,SAASC,WAAW,IAAIC,kBAAkB,QAAQ,qBAAqB;AACvE,SAASD,WAAW,IAAIE,kBAAkB,QAAQ,qBAAqB;;AAEvE;AACA;AACA;AACA;AACA;;AAEA,MAAMC,OAAO,GAAG;EACf,GAAGD,kBAAkB;EACrBE,UAAU,EAAEN,cAAc,CAACI,kBAAkB,CAAC;EAC9CG,OAAO,EAAEN,WAAW,CAACG,kBAAkB,CAAC;EACxCI,kBAAkB,EAAEZ,sBAAsB,CAACQ,kBAAkB,CAAC;EAC9DK,mBAAmB,EAAEZ,uBAAuB,CAACO,kBAAkB,CAAC;EAChEM,kBAAkB,EAAEZ,sBAAsB,CAACM,kBAAkB,CAAC;EAC9DO,eAAe,EAAEZ,mBAAmB,CAACK,kBAAkB;AACxD,CAAkB;AAElB,MAAMQ,OAAO,GAAG;EACf,GAAGT,kBAAkB;EACrBG,UAAU,EAAEN,cAAc,CAACG,kBAAkB,CAAC;EAC9CI,OAAO,EAAEN,WAAW,CAACE,kBAAkB,CAAC;EACxCK,kBAAkB,EAAEZ,sBAAsB,CAACO,kBAAkB,CAAC;EAC9DM,mBAAmB,EAAEZ,uBAAuB,CAACM,kBAAkB,CAAC;EAChEO,kBAAkB,EAAEZ,sBAAsB,CAACK,kBAAkB,CAAC;EAC9DQ,eAAe,EAAEZ,mBAAmB,CAACI,kBAAkB;AACxD,CAAkB;AAElB,eAAe;EAAEE,OAAO;EAAEO;AAAQ,CAAC","ignoreList":[]}
@@ -1,16 +1,30 @@
1
- import { CMP_ID } from '../../constants';
2
- import { IAB_CMP_VERSION } from '@osano-cmp';
1
+ import * as selectors from '../selectors';
2
+ import { CMP_ID, IAB_CMP_VERSION } from '../../constants';
3
3
  const version = '2.0';
4
+ const storageKey = 'IABTCF_TCString';
4
5
  /**
5
6
  * We'll use this value of the GVL when the customer's config doesn't contain
6
7
  * one. It's from March 2023.
7
8
  */
8
9
  const FALLBACK_GVL_VERSION = 187;
9
10
  export const baseInitOptions = {
11
+ storageKey,
10
12
  version,
11
13
  cmpId: CMP_ID,
12
14
  cmpVersion: IAB_CMP_VERSION,
13
15
  fallbackGvlVersion: FALLBACK_GVL_VERSION,
14
- defaultTimestamp: Date.now()
16
+ defaultTimestamp: Date.now(),
17
+ selectors: {
18
+ ...selectors
19
+ },
20
+ createConsentPayload(state) {
21
+ return {
22
+ v2: {
23
+ purposeOptouts: state ? Object.fromEntries(Object.entries(selectors.getPurposeOptOuts(state, version)).filter(([, value]) => !!value)) : {},
24
+ specialFeatureOptins: state ? Object.fromEntries(Object.entries(selectors.getSpecialFeatureOptIns(state, version)).filter(([, value]) => !!value)) : {},
25
+ vendorOptouts: state ? Object.fromEntries(Object.entries(selectors.getVendorOptOuts(state, version)).filter(([, value]) => !!value)) : {}
26
+ }
27
+ };
28
+ }
15
29
  };
16
30
  //# sourceMappingURL=shared-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CMP_ID","IAB_CMP_VERSION","version","FALLBACK_GVL_VERSION","baseInitOptions","cmpId","cmpVersion","fallbackGvlVersion","defaultTimestamp","Date","now"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/shared-constants.js"],"mappings":"AAAA,SAASA,MAAM,QAAQ,iBAAiB;AACxC,SAASC,eAAe,QAAQ,YAAY;AAE5C,MAAMC,OAAO,GAAG,KAAK;AACrB;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,GAAG,GAAG;AAEhC,OAAO,MAAMC,eAAe,GAAG;EAC9BF,OAAO;EACPG,KAAK,EAAEL,MAAM;EACbM,UAAU,EAAEL,eAAe;EAC3BM,kBAAkB,EAAEJ,oBAAoB;EACxCK,gBAAgB,EAAEC,IAAI,CAACC,GAAG,CAAC;AAC5B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["selectors","CMP_ID","IAB_CMP_VERSION","version","storageKey","FALLBACK_GVL_VERSION","baseInitOptions","cmpId","cmpVersion","fallbackGvlVersion","defaultTimestamp","Date","now","createConsentPayload","state","v2","purposeOptouts","Object","fromEntries","entries","getPurposeOptOuts","filter","value","specialFeatureOptins","getSpecialFeatureOptIns","vendorOptouts","getVendorOptOuts"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/shared-constants.ts"],"mappings":"AAAA,OAAO,KAAKA,SAAS,MAAM,cAAc;AAEzC,SAASC,MAAM,EAAEC,eAAe,QAAQ,iBAAiB;AAKzD,MAAMC,OAAuB,GAAG,KAAK;AACrC,MAAMC,UAAU,GAAG,iBAAiB;AACpC;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,GAAG,GAAG;AAEhC,OAAO,MAAMC,eAAe,GAAG;EAC9BF,UAAU;EACVD,OAAO;EACPI,KAAK,EAAEN,MAAM;EACbO,UAAU,EAAEN,eAAe;EAC3BO,kBAAkB,EAAEJ,oBAAoB;EACxCK,gBAAgB,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC;EAC5BZ,SAAS,EAAE;IACV,GAAGA;EACJ,CAAC;EACDa,oBAAoBA,CAACC,KAAgB,EAAqB;IACzD,OAAO;MACNC,EAAE,EAAE;QACHC,cAAc,EAAGF,KAAK,GACnBG,MAAM,CAACC,WAAW,CAClBD,MAAM,CAACE,OAAO,CACbnB,SAAS,CAACoB,iBAAiB,CAACN,KAAK,EAAEX,OAAO,CAC3C,CAAC,CAACkB,MAAM,CAAC,CAAC,GAAGC,KAAK,CAAC,KAAK,CAAC,CAACA,KAAK,CAChC,CAAC,GACA,CAAC,CAAsC;QAC1CC,oBAAoB,EAAGT,KAAK,GACzBG,MAAM,CAACC,WAAW,CAClBD,MAAM,CAACE,OAAO,CACbnB,SAAS,CAACwB,uBAAuB,CAACV,KAAK,EAAEX,OAAO,CACjD,CAAC,CAACkB,MAAM,CAAC,CAAC,GAAGC,KAAK,CAAC,KAAK,CAAC,CAACA,KAAK,CAChC,CAAC,GACA,CAAC,CAAsC;QAC1CG,aAAa,EAAGX,KAAK,GAClBG,MAAM,CAACC,WAAW,CAClBD,MAAM,CAACE,OAAO,CAACnB,SAAS,CAAC0B,gBAAgB,CAACZ,KAAK,EAAEX,OAAO,CAAC,CAAC,CAACkB,MAAM,CAChE,CAAC,GAAGC,KAAK,CAAC,KAAK,CAAC,CAACA,KAClB,CACD,CAAC,GACA,CAAC;MACL;IACD,CAAC;EACF;AACD,CAAC","ignoreList":[]}
@@ -2,7 +2,7 @@ import { BitEncoder, DateEncoder, EncodableOptimizedFixedRange, IdBitMapEncoder,
2
2
  import { dateFormatter, fixedValuesArrayFormatter, idsOnlyArrayFormatter } from './formatters';
3
3
  import { baseInitOptions } from './shared-constants';
4
4
  import compressedBase64UrlEncoder from '../../gpp/encoders/CompressedBase64UrlEncoder';
5
- import { createUTCTimestampInDeciseconds } from './helpers';
5
+ import { createUTCTimestampInDeciseconds } from '../helpers';
6
6
 
7
7
  // gppSection is the key in redux state that stores the consent string.
8
8
  const gppSection = 'tcfcav1';
@@ -13,27 +13,15 @@ const gppSection = 'tcfcav1';
13
13
  */
14
14
  const BOOTSTRAP_TCSTRING = 'COsdsoAOsdsoAAAAAAAAAACAAAAAAAAAAAAAAAAA';
15
15
 
16
- /**
17
- * @typedef CoreField
18
- * @type {array}
19
- * @property {string} 0 - The name of the field in the GPPModel
20
- * <https://github.com/IABTechLab/iabgpp-es/blob/42060d7ac2b6d0ee70fc1b5bcd33fc447bf5123c/README.md#fields>
21
- * @property {number} 1 - The number of bits to encode the field
22
- * @property {Encoder} 2 - The encoder to use for this field
23
- * @property {string} 3 - The path to the value in our TCF object
24
- * @property {string} [4] - The formatter to use for this field for the client API calls
25
- */
26
-
27
16
  /**
28
17
  * The core fields of the TCString for TCF-Canada v1.
29
- * @type {CoreField[]}
30
18
  */
31
19
  const coreFieldSequence = [['Version', 6, IntEncoder, 'version'], ['Created', 36, DateEncoder, 'created', dateFormatter], ['LastUpdated', 36, DateEncoder, 'lastUpdated', dateFormatter], ['CmpId', 12, IntEncoder, 'cmpId'], ['CmpVersion', 12, IntEncoder, 'cmpVersion'], ['ConsentScreen', 6, IntEncoder, 'currentScreen'], ['ConsentLanguage', 12, LangEncoder, 'consentLanguage'], ['VendorListVersion', 12, IntEncoder, 'gvlVersion'], ['TcfPolicyVersion', 6, IntEncoder, 'tcfPolicyVersion'], ['UseNonStandardStacks', 1, BitEncoder, 'useNonStandardStacks'], ['SpecialFeatureExpressConsent', 12, IdBitMapEncoder, 'specialFeatureOptins', fixedValuesArrayFormatter], ['PurposesExpressConsent', 24, IdBitMapEncoder, 'purpose.consents', fixedValuesArrayFormatter], ['PurposesImpliedConsent', 24, IdBitMapEncoder, 'purpose.legitimateInterests', fixedValuesArrayFormatter],
32
20
  // Vendor Consents
33
21
  ['VendorExpressConsent', Number.POSITIVE_INFINITY, EncodableOptimizedFixedRange, 'vendor.consents', idsOnlyArrayFormatter],
34
22
  // Vendor Legitimate Interests
35
23
  ['VendorImpliedConsent', Number.POSITIVE_INFINITY, EncodableOptimizedFixedRange, 'vendor.legitimateInterests', idsOnlyArrayFormatter]];
36
- const version = parseInt(baseInitOptions.version, 10);
24
+ const version = Number.parseInt(baseInitOptions.version, 10);
37
25
  const staticFields = {
38
26
  version,
39
27
  cmpId: baseInitOptions.cmpId,
@@ -1 +1 @@
1
- {"version":3,"names":["BitEncoder","DateEncoder","EncodableOptimizedFixedRange","IdBitMapEncoder","IntEncoder","LangEncoder","dateFormatter","fixedValuesArrayFormatter","idsOnlyArrayFormatter","baseInitOptions","compressedBase64UrlEncoder","createUTCTimestampInDeciseconds","gppSection","BOOTSTRAP_TCSTRING","coreFieldSequence","Number","POSITIVE_INFINITY","version","parseInt","staticFields","cmpId","cmpVersion","tcfPolicyVersion","useNonStandardStacks","dynamicFields","created","lastUpdated","initOptions","tcString","encoder"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/tcfcav1-constants.js"],"mappings":"AAAA,SACCA,UAAU,EACVC,WAAW,EACXC,4BAA4B,EAC5BC,eAAe,EACfC,UAAU,EACVC,WAAW,QACL,YAAY;AACnB,SACCC,aAAa,EACbC,yBAAyB,EACzBC,qBAAqB,QACf,cAAc;AAErB,SAASC,eAAe,QAAQ,oBAAoB;AACpD,OAAOC,0BAA0B,MAAM,+CAA+C;AACtF,SAASC,+BAA+B,QAAQ,WAAW;;AAE3D;AACA,MAAMC,UAAU,GAAG,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAG,0CAA0C;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAMC,iBAAiB,GAAG,CACzB,CAAC,SAAS,EAAE,CAAC,EAAEV,UAAU,EAAE,SAAS,CAAC,EACrC,CAAC,SAAS,EAAE,EAAE,EAAEH,WAAW,EAAE,SAAS,EAAEK,aAAa,CAAC,EACtD,CAAC,aAAa,EAAE,EAAE,EAAEL,WAAW,EAAE,aAAa,EAAEK,aAAa,CAAC,EAC9D,CAAC,OAAO,EAAE,EAAE,EAAEF,UAAU,EAAE,OAAO,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Ae;EAClBK,iBAAiB;EACjBF,UAAU;EACVgB,QAAQ,EAAEf,kBAAkB;EAC5BM,YAAY;EACZK,aAAa;EACbK,OAAO,EAAEnB;AACV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["BitEncoder","DateEncoder","EncodableOptimizedFixedRange","IdBitMapEncoder","IntEncoder","LangEncoder","dateFormatter","fixedValuesArrayFormatter","idsOnlyArrayFormatter","baseInitOptions","compressedBase64UrlEncoder","createUTCTimestampInDeciseconds","gppSection","BOOTSTRAP_TCSTRING","coreFieldSequence","Number","POSITIVE_INFINITY","version","parseInt","staticFields","cmpId","cmpVersion","tcfPolicyVersion","useNonStandardStacks","dynamicFields","created","lastUpdated","initOptions","tcString","encoder"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/tcfcav1-constants.ts"],"mappings":"AAAA,SACCA,UAAU,EACVC,WAAW,EACXC,4BAA4B,EAC5BC,eAAe,EACfC,UAAU,EACVC,WAAW,QACL,YAAY;AACnB,SACCC,aAAa,EACbC,yBAAyB,EACzBC,qBAAqB,QACf,cAAc;AAGrB,SAASC,eAAe,QAAQ,oBAAoB;AACpD,OAAOC,0BAA0B,MAAM,+CAA+C;AACtF,SAASC,+BAA+B,QAAQ,YAAY;;AAE5D;AACA,MAAMC,UAAU,GAAG,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAG,0CAA0C;;AAErE;AACA;AACA;AACA,MAAMC,iBAA8B,GAAG,CACtC,CAAC,SAAS,EAAE,CAAC,EAAEV,UAAU,EAAE,SAAS,CAAC,EACrC,CAAC,SAAS,EAAE,EAAE,EAAEH,WAAW,EAAE,SAAS,EAAEK,aAAa,CAAC,EACtD,CAAC,aAAa,EAAE,EAAE,EAAEL,WAAW,EAAE,aAAa,EAAEK,aAAa,CAAC,EAC9D,CAAC,OAAO,EAAE,EAAE,EAAEF,UAAU,EAAE,OAAO,CAAC,EAClC,CAAC,YAAY,EAAE,EAAE,EAAEA,UAAU,EAA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QAAQ,EAAEf,kBAAkB;EAC5BM,YAAY;EACZK,aAAa;EACbK,OAAO,EAAEnB;AACV,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import { BitEncoder, DateEncoder, EncodableOptimizedFixedRange, IdBitMapEncoder, IntEncoder, LangEncoder } from './encoders';
2
2
  import { baseInitOptions } from './shared-constants';
3
- import { createUTCTimestampInDeciseconds } from './helpers';
3
+ import { createUTCTimestampInDeciseconds } from '../helpers';
4
4
  import traditionalBase64UrlEncoder from '../../gpp/encoders/TraditionalBase64UrlEncoder';
5
5
  export const apiName = '__tcfapi';
6
6
  export const iframeName = '__tcfapiLocator';
@@ -23,22 +23,11 @@ const gppSection = 'tcfeuv2';
23
23
  */
24
24
  const BOOTSTRAP_TCSTRING = 'CPpshUAPpshUAEXABAENAACwAIBAAAAAAAAAAAAAAAAA';
25
25
 
26
- /**
27
- * @typedef CoreField
28
- * @type {array}
29
- * @property {string} 0 - The name of the field in the TCModel
30
- * <https://github.com/InteractiveAdvertisingBureau/iabtcf-es/blob/e952844c689351a51b15d71b9dd43ee085c2f7f3/modules/core/src/TCModel.ts>
31
- * @property {number} 1 - The number of bits to encode the field
32
- * @property {Encoder} 2 - The encoder to use for this field
33
- * @property {string} [3] - The path to the value in our TCF object if it is different from the TCModel
34
- */
35
-
36
26
  /**
37
27
  * The core fields of the TCString in the order they appear in the TCString
38
28
  * Reference spec doc: https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20Consent%20string%20and%20vendor%20list%20formats%20v2.md#the-core-string
39
29
  *
40
30
  * Note: some field names conflict with the TCModel<https://github.com/IABTechLab/iabgpp-es/blob/42060d7ac2b6d0ee70fc1b5bcd33fc447bf5123c/modules/cmpapi/src/encoder/field/TcfEuV2Field.ts>. We may need to resolve these conflicts. See comments below for specific fields.
41
- * @type {CoreField[]}
42
31
  */
43
32
  const coreFieldSequence = [['version', 6, IntEncoder], ['created', 36, DateEncoder], ['lastUpdated', 36, DateEncoder], ['cmpId', 12, IntEncoder], ['cmpVersion', 12, IntEncoder], ['consentScreen', 6, IntEncoder, 'currentScreen'], ['consentLanguage', 12, LangEncoder], ['vendorListVersion', 12, IntEncoder, 'gvlVersion'], ['policyVersion', 6, IntEncoder, 'tcfPolicyVersion'],
44
33
  // spec doc: "TcfPolicyVersion", TCModel: "PolicyVersion"
@@ -58,7 +47,7 @@ Number.POSITIVE_INFINITY, EncodableOptimizedFixedRange, 'vendor.legitimateIntere
58
47
  // We do not (yet) support publisher restrictions so this field should always be 0
59
48
  ['numPubRestrictions', 12, IntEncoder] // This is a meta field and shouldn't be exposed directly via an API
60
49
  ];
61
- const version = parseInt(baseInitOptions.version, 10);
50
+ const version = Number.parseInt(baseInitOptions.version, 10);
62
51
  const staticFields = {
63
52
  version,
64
53
  cmpId: baseInitOptions.cmpId,
@@ -1 +1 @@
1
- {"version":3,"names":["BitEncoder","DateEncoder","EncodableOptimizedFixedRange","IdBitMapEncoder","IntEncoder","LangEncoder","baseInitOptions","createUTCTimestampInDeciseconds","traditionalBase64UrlEncoder","apiName","iframeName","gppSection","BOOTSTRAP_TCSTRING","coreFieldSequence","Number","POSITIVE_INFINITY","version","parseInt","staticFields","cmpId","cmpVersion","tcfPolicyVersion","useNonStandardStacks","isServiceSpecific","purposeOneTreatment","numPubRestrictions","dynamicFields","created","lastUpdated","initOptions","tcString","encoder"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/tcfeuv2-constants.js"],"mappings":"AAAA,SACCA,UAAU,EACVC,WAAW,EACXC,4BAA4B,EAC5BC,eAAe,EACfC,UAAU,EACVC,WAAW,QACL,YAAY;AAEnB,SAASC,eAAe,QAAQ,oBAAoB;AACpD,SAASC,+BAA+B,QAAQ,WAAW;AAC3D,OAAOC,2BAA2B,MAAM,gDAAgD;AAExF,OAAO,MAAMC,OAAO,GAAG,UAAU;AACjC,OAAO,MAAMC,UAAU,GAAG,iBAAiB;;AAE3C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AC5B,iBAAiB,CACjB;AAAE;AACH;AACA,CACC,2BAA2B;AAAE;AAC7BY,MAAM,CAACC,iBAAiB,EACxBb,4BAA4B,EAC5B,4BAA4B,CAC5B;AACD;AACA,CAAC,oBAAoB,EAAE,EAAE,EAAEE,UAAU,CAAC,CAAE;AAAA,CACxC;AAED,MAAMY,OAAO,GAAGC,QAAQ,CAACX,eAAe,CAACU,OAAO,EAAE,EAAE,CAAC;AACrD,MAAME,YAAY,GAAG;EACpBF,OAAO;EACPG,KAAK,EAAEb,eAAe,CAACa,KAAK;EAC5BC,UAAU,EAAEd,eAAe,CAACc,UAAU;EACtCC,gBAAgB,EAAEL,OAAO;EACzBM,oBAAoB,EAAE,IAAI;EAC1BC,iBAAiB,EAAE,IAAI;EACvBC,mBAAmB,EAAE,KAAK;EAC1BC,kBAAkB,EAAE;AACrB,CAAC;AAED,MAAMC,aAAa,GAAG;EACrBC,OAAO,EAAEpB,+BAA+B;EACxCqB,WAAW,EAAErB;AACd,CAAC;AAED,OAAO,MAAMsB,WAAW,GAAG;EAC1B,GAAGvB,eAAe;EAClBO,iBAAiB;EACjBF,UAAU;EACVmB,QAAQ,EAAElB,kBAAkB;EAC5BM,YAAY;EACZQ,aAAa;EACbK,OAAO,EAAEvB;AACV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["BitEncoder","DateEncoder","EncodableOptimizedFixedRange","IdBitMapEncoder","IntEncoder","LangEncoder","baseInitOptions","createUTCTimestampInDeciseconds","traditionalBase64UrlEncoder","apiName","iframeName","gppSection","BOOTSTRAP_TCSTRING","coreFieldSequence","Number","POSITIVE_INFINITY","version","parseInt","staticFields","cmpId","cmpVersion","tcfPolicyVersion","useNonStandardStacks","isServiceSpecific","purposeOneTreatment","numPubRestrictions","dynamicFields","created","lastUpdated","initOptions","tcString","encoder"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/tcfeuv2-constants.ts"],"mappings":"AAAA,SACCA,UAAU,EACVC,WAAW,EACXC,4BAA4B,E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H,CAAC,qBAAqB,EAAE,CAAC,EAAEH,UAAU,CAAC,EACtC,CAAC,sBAAsB,EAAE,EAAE,EAAEK,WAAW,EAAE,aAAa,CAAC;AAAE;AAC1D;AACA,CACC,gBAAgB,EAChBS,MAAM,CAACC,iBAAiB,EACxBb,4BAA4B,EAC5B,iBAAiB,CACjB;AAAE;AACH;AACA,CACC,2BAA2B;AAAE;AAC7BY,MAAM,CAACC,iBAAiB,EACxBb,4BAA4B,EAC5B,4BAA4B,CAC5B;AACD;AACA,CAAC,oBAAoB,EAAE,EAAE,EAAEE,UAAU,CAAC,CAAE;AAAA,CACxC;AAED,MAAMY,OAAO,GAAGF,MAAM,CAACG,QAAQ,CAACX,eAAe,CAACU,OAAO,EAAE,EAAE,CAAC;AAC5D,MAAME,YAAY,GAAG;EACpBF,OAAO;EACPG,KAAK,EAAEb,eAAe,CAACa,KAAK;EAC5BC,UAAU,EAAEd,eAAe,CAACc,UAAU;EACtCC,gBAAgB,EAAEL,OAAO;EACzBM,oBAAoB,EAAE,IAAI;EAC1BC,iBAAiB,EAAE,IAAI;EACvBC,mBAAmB,EAAE,KAAK;EAC1BC,kBAAkB,EAAE;AACrB,CAAC;AAED,MAAMC,aAAa,GAAG;EACrBC,OAAO,EAAEpB,+BAA+B;EACxCqB,WAAW,EAAErB;AACd,CAAC;AAED,OAAO,MAAMsB,WAAW,GAAG;EAC1B,GAAGvB,eAAe;EAClBO,iBAAiB;EACjBF,UAAU;EACVmB,QAAQ,EAAElB,kBAAkB;EAC5BM,YAAY;EACZQ,aAAa;EACbK,OAAO,EAAEvB;AACV,CAAC","ignoreList":[]}
@@ -1,21 +1,27 @@
1
- import { OsanoCategories, getConsent, init, reducer, reload, setLocale, showDialog, showDrawer } from './store';
1
+ import { OsanoCategories, init, reducer } from './reducer';
2
2
  import { Platform, UIManager } from 'react-native';
3
- import React, { useCallback, useEffect, useMemo, useRef } from 'react';
4
- import { clearConsent, recordConsent } from './services/consent';
3
+ import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react';
4
+ import { CLEAR_CONSENT, reload, setConfig, setLocale, showDialog, showDrawer } from './actions';
5
+ import { ConsentCategory } from './constants';
5
6
  import { ConsentManager } from './ConsentManager';
6
7
  import { ConsentUiBuilder } from './ConsentUiBuilder';
7
8
  import { OsanoPublicContext } from './context';
9
+ import { addIabReducers } from './iab';
10
+ import { getConsent } from './selectors';
11
+ import { recordConsent } from './services/consent';
8
12
  import useThunkReducer from './hooks/useThunkReducer';
13
+ import { usePrevious } from './hooks/usePrevious';
9
14
  export { OsanoPublicContext as OsanoContext } from './context';
10
15
  if (Platform.OS === 'android') {
11
16
  if (UIManager.setLayoutAnimationEnabledExperimental) {
12
17
  UIManager.setLayoutAnimationEnabledExperimental(true);
13
18
  }
14
19
  }
15
- export const Osano = props => {
20
+ export const Osano = /*#__PURE__*/memo(props => {
16
21
  const {
17
22
  configId,
18
23
  customerId,
24
+ hideUI = false,
19
25
  hideDisclosures = false,
20
26
  onConfigLoadFailure,
21
27
  onConfigLoadSuccess,
@@ -28,27 +34,45 @@ export const Osano = props => {
28
34
  iabEnabled
29
35
  } = overrides || {};
30
36
  const consentManager = useRef(new ConsentManager(overrides));
31
- const [_state, dispatch, getState, addMiddleware, removeMiddleware] = useThunkReducer(reducer, {
37
+ const [_state, store] = useThunkReducer(reducer, {
32
38
  configId,
33
39
  customerId
34
- }, init, []);
40
+ }, init, [consentManager.current.middleware]);
41
+ const {
42
+ addMiddleware,
43
+ dispatch,
44
+ getState,
45
+ removeMiddleware
46
+ } = store;
35
47
  const handleGetConsent = useCallback(category => {
36
48
  if (typeof category === 'string') {
37
49
  return consentManager.current.hasConsent(category);
38
50
  }
39
- return consentManager.current.consent ?? [];
51
+ return consentManager.current.consent ?? [ConsentCategory.ESSENTIAL];
40
52
  }, []);
41
- const handleRecordConsent = useCallback(() => {
42
- return recordConsent(consentManager.current, getConsent(getState()));
53
+ const handleRecordConsent = useCallback(category => {
54
+ let consentedCategories = getConsent(getState());
55
+ if (category !== undefined) {
56
+ /*
57
+ * If category(s) is/are provided, we need to:
58
+ * 1. Check if all categories provided are valid
59
+ * 2. Store them locally
60
+ */
61
+ const categories = (Array.isArray(category) ? category : [category]).filter(cat => OsanoCategories.includes(cat));
62
+ consentedCategories = OsanoCategories.filter(cat => cat === ConsentCategory.ESSENTIAL || categories.includes(cat));
63
+ }
64
+ return recordConsent(consentManager.current, consentedCategories);
43
65
  }, []);
44
66
  const handleClearConsent = useCallback(() => {
45
- clearConsent(consentManager.current);
67
+ dispatch({
68
+ type: CLEAR_CONSENT
69
+ });
46
70
  }, []);
47
71
  const handleShowDialog = useCallback(() => {
48
- dispatch(showDialog);
72
+ dispatch(showDialog());
49
73
  }, []);
50
74
  const handleShowDrawer = useCallback(() => {
51
- dispatch(showDrawer);
75
+ dispatch(showDrawer());
52
76
  }, []);
53
77
  const handleSetLocale = useCallback(value => {
54
78
  if (value) {
@@ -69,19 +93,8 @@ export const Osano = props => {
69
93
  onLangLoadSuccess,
70
94
  onLangLoadFailure
71
95
  }).then(reloadProps => {
72
- const {
73
- consent = [],
74
- ...initProps
75
- } = reloadProps;
76
- const mappedConsent = OsanoCategories.reduce((consentMap, category) => {
77
- consentMap[`${category}`] = consent.includes(category);
78
- return consentMap;
79
- }, {});
80
96
  // We need to reset the state when the configId or customerId changes
81
- dispatch(reload({
82
- ...initProps,
83
- consent: mappedConsent
84
- }));
97
+ dispatch(reload(reloadProps));
85
98
  }).catch(() => {
86
99
  // TODO: Handle error
87
100
  });
@@ -89,7 +102,7 @@ export const Osano = props => {
89
102
  locale: consentManager.current.translator.locale,
90
103
  getConsent: handleGetConsent,
91
104
  getDeviceId: handleGetDeviceId,
92
- recordConsent: handleRecordConsent,
105
+ consent: handleRecordConsent,
93
106
  clearConsent: handleClearConsent,
94
107
  setLocale: handleSetLocale,
95
108
  showBanner: handleShowDialog,
@@ -98,11 +111,36 @@ export const Osano = props => {
98
111
  }, [configId, customerId, consentManager.current.translator.locale]);
99
112
  useEffect(() => {
100
113
  consentManager.current.config.type = flavor;
101
- consentManager.current.config.iabEnabled = iabEnabled;
102
- }, [flavor, iabEnabled]);
114
+ }, [flavor]);
115
+ const iabLoaded = useRef(false);
116
+ const iabChanged = usePrevious(iabEnabled) !== iabEnabled;
117
+ useEffect(() => {
118
+ // Add IAB reducers only once, and based on which IAB versions we want to load
119
+ const frameworks = [];
120
+ // TODO: determine gpp, tcf, and usp. For now...we just assume TCF
121
+ if (consentManager.current.config.tcfController) {
122
+ frameworks.push({
123
+ versions: [consentManager.current.config.tcfController]
124
+ });
125
+ }
126
+ if (frameworks.length && !iabLoaded.current) {
127
+ // We are only going to add the IAB reducers once, and only for configured frameworks/versions
128
+ // We can do this because we don't EVER want IAB frameworks or versions to change without
129
+ // a config republish.
130
+ iabLoaded.current = true;
131
+ addIabReducers(frameworks)(store);
132
+ }
133
+ consentManager.current.config.iabEnabled = iabEnabled ?? undefined;
134
+ // Update our store when IAB is changed so we can trigger reloads
135
+ iabChanged && dispatch(setConfig({
136
+ config: consentManager.current.config,
137
+ customerId,
138
+ configId
139
+ }));
140
+ }, [iabEnabled]);
103
141
  return /*#__PURE__*/React.createElement(OsanoPublicContext.Provider, {
104
142
  value: context
105
- }, props.children, /*#__PURE__*/React.createElement(ConsentUiBuilder, {
143
+ }, props.children, hideUI ? null : /*#__PURE__*/React.createElement(ConsentUiBuilder, {
106
144
  addMiddleware: addMiddleware,
107
145
  removeMiddleware: removeMiddleware,
108
146
  dispatch: dispatch,
@@ -110,5 +148,15 @@ export const Osano = props => {
110
148
  cmp: consentManager,
111
149
  hideDisclosures: hideDisclosures
112
150
  }));
113
- };
151
+ }, (prev, next) => {
152
+ const {
153
+ flavor,
154
+ iabEnabled
155
+ } = prev.overrides || {};
156
+ const {
157
+ flavor: nextFlavor,
158
+ iabEnabled: nextIabEnabled
159
+ } = next.overrides || {};
160
+ return prev.configId === next.configId && prev.customerId === next.customerId && prev.hideUI === next.hideUI && prev.hideDisclosures === next.hideDisclosures && prev.children === next.children && flavor === nextFlavor && iabEnabled === nextIabEnabled;
161
+ });
114
162
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["OsanoCategories","getConsent","init","reducer","reload","setLocale","showDialog","showDrawer","Platform","UIManager","React","useCallback","useEffect","useMemo","useRef","clearConsent","recordConsent","ConsentManager","ConsentUiBuilder","OsanoPublicContext","useThunkReducer","OsanoContext","OS","setLayoutAnimationEnabledExperimental","Osano","props","configId","customerId","hideDisclosures","onConfigLoadFailure","onConfigLoadSuccess","onLangLoadFailure","onLangLoadSuccess","overrides","flavor","iabEnabled","consentManager","_state","dispatch","getState","addMiddleware","removeMiddleware","handleGetConsent","category","current","hasConsent","consent","handleRecordConsent","handleClearConsent","handleShowDialog","handleShowDrawer","handleSetLocale","value","translator","load","then","handleGetDeviceId","deviceId","context","reloadProps","initProps","mappedConsent","reduce","consentMap","includes","catch","locale","getDeviceId","showBanner","config","type","createElement","Provider","children","cmp"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AACA,SACCA,eAAe,EACfC,UAAU,EACVC,IAAI,EACJC,OAAO,EACPC,MAAM,EACNC,SAAS,EACTC,UAAU,EACVC,UAAU,QACJ,SAAS;AAChB,SAASC,QAAQ,EAAEC,SAAS,QAAQ,cAAc;AAClD,OAAOC,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACtE,SAASC,YAAY,EAAEC,aAAa,QAAQ,oBAAoB;AAGhE,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,gBAAgB,QAAQ,oBAAoB;AAErD,SAASC,kBAAkB,QAAQ,WAAW;AAC9C,OAAOC,eAAe,MAAM,yBAAyB;AAErD,SAASD,kBAAkB,IAAIE,YAAY,QAAQ,WAAW;AAE9D,IAAIb,QAAQ,CAACc,EAAE,KAAK,SAAS,EAAE;EAC9B,IAAIb,SAAS,CAACc,qCAAqC,EAAE;IACpDd,SAAS,CAACc,qCAAqC,CAA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C,CAAC,CACDI,KAAK,CAAC,MAAM;MACZ;IAAA,CACA,CAAC;IACH,OAAO;MACNC,MAAM,EAAE9B,cAAc,CAACQ,OAAO,CAACS,UAAU,CAACa,MAAM;MAChDjE,UAAU,EAAEyC,gBAAgB;MAC5ByB,WAAW,EAAEX,iBAAiB;MAC9BxC,aAAa,EAAE+B,mBAAmB;MAClChC,YAAY,EAAEiC,kBAAkB;MAChC3C,SAAS,EAAE8C,eAAe;MAC1BiB,UAAU,EAAEnB,gBAAgB;MAC5B1C,UAAU,EAAE2C;IACb,CAAC;EACF,CAAC,EAAE,CAACxB,QAAQ,EAAEC,UAAU,EAAES,cAAc,CAACQ,OAAO,CAACS,UAAU,CAACa,MAAM,CAAC,CAAC;EAEpEtD,SAAS,CAAC,MAAM;IACfwB,cAAc,CAACQ,OAAO,CAACyB,MAAM,CAACC,IAAI,GAAGpC,MAAM;IAC3CE,cAAc,CAACQ,OAAO,CAACyB,MAAM,CAAClC,UAAU,GAAGA,UAAU;EACtD,CAAC,EAAE,CAACD,MAAM,EAAEC,UAAU,CAAC,CAAC;EAExB,oBACCzB,KAAA,CAAA6D,aAAA,CAACpD,kBAAkB,CAACqD,QAAQ;IAACpB,KAAK,EAAEM;EAAQ,GAC1CjC,KAAK,CAACgD,QAAQ,eACf/D,KAAA,CAAA6D,aAAA,CAACrD,gBAAgB;IAChBsB,aAAa,EAAEA,aAAc;IAC7BC,gBAAgB,EAAEA,gBAAiB;IACnCH,QAAQ,EAAEA,QAAS;IACnBC,QAAQ,EAAEA,QAAS;IACnBmC,GAAG,EAAEtC,cAAe;IACpBR,eAAe,EAAEA;EAAgB,CACjC,CAC2B,CAAC;AAEhC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["OsanoCategories","init","reducer","Platform","UIManager","React","memo","useCallback","useEffect","useMemo","useRef","CLEAR_CONSENT","reload","setConfig","setLocale","showDialog","showDrawer","ConsentCategory","ConsentManager","ConsentUiBuilder","OsanoPublicContext","addIabReducers","getConsent","recordConsent","useThunkReducer","usePrevious","OsanoContext","OS","setLayoutAnimationEnabledExperimental","Osano","props","configId","customerId","hideUI","hideDisclosures","onConfigLoadFailure","onConfigLoadSuccess","onLangLoadFailure","onLangLoadSuccess","overrides","flavor","iabEnabled","consentManager","_state","store","current","middleware","addMiddleware","dispatch","getState","removeMiddleware","handleGetConsent","category","hasConsent","consent","ESSENTIAL","handleRecordConsent","consentedCategories","undefined","categories","Array","isArray","filter","cat","includes","handleClearConsent","type","handleShowDialog","handleShowDrawer","handleSetLocale","value","translator","load","then","handleGetDeviceId","deviceId","context","reloadProps","catch","locale","getDeviceId","clearConsent","showBanner","config","iabLoaded","iabChanged","frameworks","tcfController","push","versions","length","createElement","Provider","children","cmp","prev","next","nextFlavor","nextIabEnabled"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AACA,SAASA,eAAe,EAAEC,IAAI,EAAEC,OAAO,QAAQ,WAAW;AAC1D,SAASC,QAAQ,EAAEC,SAAS,QAAQ,cAAc;AAClD,OAAOC,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAC5E,SACCC,aAAa,EACbC,MAAM,EACNC,SAAS,EACTC,SAAS,EACTC,UAAU,EACVC,UAAU,QACJ,WAAW;AAElB,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,gBAAgB,QAAQ,oBAAoB;AAErD,SAASC,kBAAkB,QAAQ,WAAW;AAC9C,SAASC,cAAc,QAAQ,OAAO;AACtC,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,aAAa,QAAQ,oBAAoB;AAClD,OAAOC,eAAe,MAAsB,yBAAyB;AAErE,SAASC,WAAW,QAAQ,qBAAqB;AAEjD,SAASL,kBAAkB,IAAIM,YAAY,QAAQ,WAAW;AAE9D,IAAIvB,QAAQ,CAACwB,EAAE,KAAK,SAAS,EAAE;EAC9B,IAAIvB,SAAS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