@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,14 +1,64 @@
1
- import { createActionCreator, namedParameters, noParameters, singleParameter } from '../../redux/helpers';
2
- const prefix = 'OsanoCMP_IAB-TCF';
3
- export const setPurposeConsent = createActionCreator(`${prefix}/SET_PURPOSE_CONSENT`, namedParameters('purposeId', 'acceptOrDeny'));
4
- export const setAllPurposeConsent = createActionCreator(`${prefix}/SET_ALL_PURPOSE_CONSENT`, namedParameters('acceptOrDeny'));
5
- export const setVendorConsent = createActionCreator(`${prefix}/SET_VENDOR_CONSENT`, namedParameters('vendorId', 'acceptOrDeny'));
6
- export const setAllVendorConsent = createActionCreator(`${prefix}/SET_ALL_VENDOR_CONSENT`, namedParameters('acceptOrDeny'));
7
- export const setSpecialFeatureConsent = createActionCreator(`${prefix}/SET_SPECIAL_FEATURE_CONSENT`, namedParameters('specialFeatureId', 'acceptOrDeny'));
8
- export const setAllSpecialFeatureConsent = createActionCreator(`${prefix}/SET_ALL_SPECIAL_FEATURE_CONSENT`, namedParameters('acceptOrDeny'));
9
- export const setGdprApplies = createActionCreator(`${prefix}/SET_GDPR_APPLIES`, singleParameter);
10
- export const updatePurposeList = createActionCreator(`${prefix}/UPDATE_PURPOSE_LIST`, namedParameters('purposeList', 'language'));
11
- export const updateVendorListBegin = createActionCreator(`${prefix}/UPDATE_VENDOR_LIST_BEGIN`, noParameters);
12
- export const updateVendorListSuccess = createActionCreator(`${prefix}/UPDATE_VENDOR_LIST_SUCCESS`, singleParameter);
13
- export const updateVendorListFailure = createActionCreator(`${prefix}/UPDATE_VENDOR_LIST_FAILURE`, singleParameter);
1
+ const prefix = 'IAB-TCF';
2
+ export const SET_TCSTRING = `${prefix}/SET_TCSTRING`;
3
+ export const SET_CONSENT = `${prefix}/SET_CONSENT`;
4
+ export const SET_PURPOSE_CONSENT = `${prefix}/SET_PURPOSE_CONSENT`;
5
+ export const SET_ALL_PURPOSE_CONSENT = `${prefix}/SET_ALL_PURPOSE_CONSENT`;
6
+ export const SET_VENDOR_CONSENT = `${prefix}/SET_VENDOR_CONSENT`;
7
+ export const SET_ALL_VENDOR_CONSENT = `${prefix}/SET_ALL_VENDOR_CONSENT`;
8
+ export const SET_SPECIAL_FEATURE_CONSENT = `${prefix}/SET_SPECIAL_FEATURE_CONSENT`;
9
+ export const SET_ALL_SPECIAL_FEATURE_CONSENT = `${prefix}/SET_ALL_SPECIAL_FEATURE_CONSENT`;
10
+ export const SET_GDPR_APPLIES = `${prefix}/SET_GDPR_APPLIES`;
11
+ export const UPDATE_PURPOSE_LIST = `${prefix}/UPDATE_PURPOSE_LIST`;
12
+ export const setTCString = tcString => ({
13
+ type: SET_TCSTRING,
14
+ payload: tcString
15
+ });
16
+ export const setConsent = consent => ({
17
+ type: SET_CONSENT,
18
+ payload: consent
19
+ });
20
+ export const setSpecialFeatureConsent = (specialFeatureId, acceptOrDeny) => ({
21
+ type: SET_SPECIAL_FEATURE_CONSENT,
22
+ payload: {
23
+ specialFeatureId,
24
+ acceptOrDeny
25
+ }
26
+ });
27
+ export const setPurposeConsent = (purposeId, acceptOrDeny) => ({
28
+ type: SET_PURPOSE_CONSENT,
29
+ payload: {
30
+ purposeId,
31
+ acceptOrDeny
32
+ }
33
+ });
34
+ export const setVendorConsent = (vendorId, acceptOrDeny) => ({
35
+ type: SET_VENDOR_CONSENT,
36
+ payload: {
37
+ vendorId,
38
+ acceptOrDeny
39
+ }
40
+ });
41
+ export const setAllVendorConsent = acceptOrDeny => ({
42
+ type: SET_ALL_VENDOR_CONSENT,
43
+ payload: acceptOrDeny
44
+ });
45
+ export const setAllPurposeConsent = acceptOrDeny => ({
46
+ type: SET_ALL_PURPOSE_CONSENT,
47
+ payload: acceptOrDeny
48
+ });
49
+ export const setAllSpecialFeatureConsent = acceptOrDeny => ({
50
+ type: SET_ALL_SPECIAL_FEATURE_CONSENT,
51
+ payload: acceptOrDeny
52
+ });
53
+ export const setGdprApplies = gdprApplies => ({
54
+ type: SET_GDPR_APPLIES,
55
+ payload: gdprApplies
56
+ });
57
+ export const updatePurposeList = (purposeList, language) => ({
58
+ type: UPDATE_PURPOSE_LIST,
59
+ payload: {
60
+ purposeList,
61
+ language
62
+ }
63
+ });
14
64
  //# sourceMappingURL=actions.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createActionCreator","namedParameters","noParameters","singleParameter","prefix","setPurposeConsent","setAllPurposeConsent","setVendorConsent","setAllVendorConsent","setSpecialFeatureConsent","setAllSpecialFeatureConsent","setGdprApplies","updatePurposeList","updateVendorListBegin","updateVendorListSuccess","updateVendorListFailure"],"sourceRoot":"../../../../src","sources":["iab/tcf/actions.js"],"mappings":"AAAA,SACCA,mBAAmB,EACnBC,eAAe,EACfC,YAAY,EACZC,eAAe,QACT,qBAAqB;AAE5B,MAAMC,MAAM,GAAG,kBAAkB;AACjC,OAAO,MAAMC,iBAAiB,GAAGL,mBAAmB,CAClD,GAAEI,MAAO,sBAAqB,EAC/BH,eAAe,CAAC,WAAW,EAAE,cAAc,CAC5C,CAAC;AACD,OAAO,MAAMK,oBAAoB,GAAGN,mBAAmB,CACrD,GAAEI,MAAO,0BAAyB,EACnCH,eAAe,CAAC,cAAc,CAC/B,CAAC;AACD,OAAO,MAAMM,gBAAgB,GAAGP,mBAAmB,CACjD,GAAEI,MAAO,qBAAoB,EAC9BH,eAAe,CAAC,UAAU,EAAE,cAAc,CAC3C,CAAC;AACD,OAAO,MAAMO,mBAAmB,GAAGR,mBAAmB,CACpD,GAAEI,MAAO,yBAAwB,EAClCH,eAAe,CAAC,cAAc,CAC/B,CAAC;AACD,OAAO,MAAMQ,wBAAwB,GAAGT,mBAAmB,CACzD,GAAEI,MAAO,8BAA6B,EACvCH,eAAe,CAAC,kBAAkB,EAAE,cAAc,CACnD,CAAC;AACD,OAAO,MAAMS,2BAA2B,GAAGV,mBAAmB,CAC5D,GAAEI,MAAO,kCAAiC,EAC3CH,eAAe,CAAC,cAAc,CAC/B,CAAC;AACD,OAAO,MAAMU,cAAc,GAAGX,mBAAmB,CAC/C,GAAEI,MAAO,mBAAkB,EAC5BD,eACD,CAAC;AACD,OAAO,MAAMS,iBAAiB,GAAGZ,mBAAmB,CAClD,GAAEI,MAAO,sBAAqB,EAC/BH,eAAe,CAAC,aAAa,EAAE,UAAU,CAC1C,CAAC;AACD,OAAO,MAAMY,qBAAqB,GAAGb,mBAAmB,CACtD,GAAEI,MAAO,2BAA0B,EACpCF,YACD,CAAC;AACD,OAAO,MAAMY,uBAAuB,GAAGd,mBAAmB,CACxD,GAAEI,MAAO,6BAA4B,EACtCD,eACD,CAAC;AACD,OAAO,MAAMY,uBAAuB,GAAGf,mBAAmB,CACxD,GAAEI,MAAO,6BAA4B,EACtCD,eACD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["prefix","SET_TCSTRING","SET_CONSENT","SET_PURPOSE_CONSENT","SET_ALL_PURPOSE_CONSENT","SET_VENDOR_CONSENT","SET_ALL_VENDOR_CONSENT","SET_SPECIAL_FEATURE_CONSENT","SET_ALL_SPECIAL_FEATURE_CONSENT","SET_GDPR_APPLIES","UPDATE_PURPOSE_LIST","setTCString","tcString","type","payload","setConsent","consent","setSpecialFeatureConsent","specialFeatureId","acceptOrDeny","setPurposeConsent","purposeId","setVendorConsent","vendorId","setAllVendorConsent","setAllPurposeConsent","setAllSpecialFeatureConsent","setGdprApplies","gdprApplies","updatePurposeList","purposeList","language"],"sourceRoot":"../../../../src","sources":["iab/tcf/actions.ts"],"mappings":"AAGA,MAAMA,MAAM,GAAG,SAAS;AAExB,OAAO,MAAMC,YAAY,GAAI,GAAED,MAAO,eAAc;AACpD,OAAO,MAAME,WAAW,GAAI,GAAEF,MAAO,cAAa;AAClD,OAAO,MAAMG,mBAAmB,G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EAAEK;AACV,CAAC,CAAC;AAEF,OAAO,MAAMM,oBAAoB,GAChCN,YAAqB,KACsC;EAC3DN,IAAI,EAAET,uBAAuB;EAC7BU,OAAO,EAAEK;AACV,CAAC,CAAC;AAEF,OAAO,MAAMO,2BAA2B,GACvCP,YAAqB,KAC8C;EACnEN,IAAI,EAAEL,+BAA+B;EACrCM,OAAO,EAAEK;AACV,CAAC,CAAC;AAEF,OAAO,MAAMQ,cAAc,GAC1BC,WAAoB,KACgC;EACpDf,IAAI,EAAEJ,gBAAgB;EACtBK,OAAO,EAAEc;AACV,CAAC,CAAC;AAEF,OAAO,MAAMC,iBAAiB,GAAGA,CAChCC,WAAgB,EAChBC,QAAgB,MAOX;EACLlB,IAAI,EAAEH,mBAAmB;EACzBI,OAAO,EAAE;IACRgB,WAAW;IACXC;EACD;AACD,CAAC,CAAC","ignoreList":[]}
@@ -1,8 +1,8 @@
1
1
  import { CMPEventStatus, CMPStatusCodes, DisplayStatusCodes, consentToPurpose } from './constants';
2
- import { Locale, ScreenIds } from '../../constants';
3
- import { doesGDPRApply, getConsentString, getCurrentScreen, getPublisherCountryCode, getPurposeConsents, getPurposeOptOuts, getPurposesLITransparency, getSpecialFeatureOptIns, getStore, getVendorListVersion, getVendorOptOuts, getVendors, hasActed } from './selectors';
4
- import { get, merge, set } from '../../utils';
5
- import { getConsent, getSavedConsent, isConsentReady, isSaved } from '../../redux/selectors';
2
+ import { get, set } from '../../utils';
3
+ // TODO: Look at these
4
+ // import { Locale, ScreenIds } from '../../constants';
5
+ import { getConsent, getCurrentScreen, getPurposeConsents, getPurposeOptOuts, getPurposesLITransparency, getSavedConsent, getSpecialFeatureOptIns, getVendorOptOuts, hasActed, isSaved } from './selectors';
6
6
  export const commonConsent = {
7
7
  consentLanguage: 'en',
8
8
  cmpLoaded: true,
@@ -14,8 +14,8 @@ export const commonConsent = {
14
14
  useNonStandardStacks: true,
15
15
  purposeOneTreatment: false
16
16
  };
17
- export const getVendorConsents = (state, apiVersion) => {
18
- const vendors = getVendors(state, apiVersion);
17
+ export const getVendorConsents = (config, state, apiVersion) => {
18
+ const vendors = config.getVendors();
19
19
  /*
20
20
  * Unless a user has specifically opted out of a vendor, the consent
21
21
  * is determined by purposes and specialFeatures.
@@ -29,7 +29,7 @@ export const getVendorConsents = (state, apiVersion) => {
29
29
  const purposeConsent = consentToPurpose(getSavedConsent(state) || getConsent(state), apiVersion);
30
30
  const consents = Object.entries(vendors).reduce((vendorConsents, [vendorId, {
31
31
  purposes = [],
32
- deletedDate
32
+ deletedDate = ''
33
33
  } = {}]) => {
34
34
  // We also need to apply IAB rules found here:
35
35
  // https://github.com/InteractiveAdvertisingBureau/iabtcf-es/blob/dfc427d015d63d1f5d745c41e77eaae6c5dec2d4/modules/core/src/encoder/SemanticPreEncoder.ts
@@ -55,7 +55,7 @@ export const getVendorConsents = (state, apiVersion) => {
55
55
  }, {});
56
56
  return consents;
57
57
  };
58
- export const getVendorLegitimateInterests = (state, apiVersion) => {
58
+ export const getVendorLegitimateInterests = (config, state, apiVersion) => {
59
59
  /*
60
60
  * Unless a use has specifically opted out of a vendor, the consent
61
61
  * is determined by LI.
@@ -67,13 +67,13 @@ export const getVendorLegitimateInterests = (state, apiVersion) => {
67
67
  * marked as true.
68
68
  */
69
69
  const optOutPurposes = getPurposeOptOuts(state, apiVersion);
70
- const vendors = getVendors(state, apiVersion);
70
+ const vendors = config.getVendors();
71
71
  const vendorLegitimateInterests = {};
72
72
  Object.entries(vendors).forEach(([vendorId, {
73
73
  legIntPurposes = [],
74
74
  purposes = [],
75
75
  specialPurposes = [],
76
- deletedDate
76
+ deletedDate = ''
77
77
  } = {}]) => {
78
78
  // We also need to apply IAB rules found here:
79
79
  // https://github.com/InteractiveAdvertisingBureau/iabtcf-es/blob/dfc427d015d63d1f5d745c41e77eaae6c5dec2d4/modules/core/src/encoder/SemanticPreEncoder.ts
@@ -112,16 +112,14 @@ export const makeParseConsentString = initOptions => tcString => {
112
112
  coreFieldSequence,
113
113
  version,
114
114
  cmpId,
115
- cmpVersion,
116
- specFieldMode = false
115
+ cmpVersion
117
116
  } = initOptions;
118
117
  const segments = tcString.split('.');
119
118
  const coreSegment = decode(segments[0]);
120
- const tcData = specFieldMode ? {} : {
119
+ const tcData = {
121
120
  ...commonConsent,
122
121
  cmpId,
123
122
  cmpVersion,
124
- consentLanguage: Locale.locale.slice(0, 2).toUpperCase(),
125
123
  tcfPolicyVersion: parseInt(version, 10)
126
124
  };
127
125
  coreFieldSequence.reduce((startBit, [field, numBits, {
@@ -134,11 +132,7 @@ export const makeParseConsentString = initOptions => tcString => {
134
132
  bitLength,
135
133
  value: decodedValue
136
134
  } = decodeField(value, numBits);
137
-
138
- // The TCF string spec uses PascalCase names for fields, but the TCData object uses camelCase
139
- // Reference: https://github.com/IABTechLab/iabgpp-es/blob/42060d7ac2b6d0ee70fc1b5bcd33fc447bf5123c/modules/cmpapi/src/encoder/field/TcfEuV2Field.ts
140
- const fieldName = specFieldMode ? field[0].toUpperCase() + field.substring(1) // Capitalize first letter
141
- : dataField || field;
135
+ const fieldName = dataField || field;
142
136
  set(tcData, fieldName, decodedValue);
143
137
  return startBit + bitLength;
144
138
  }, 0);
@@ -151,30 +145,24 @@ export const makeGetField = initOptions => {
151
145
  });
152
146
  return (tcString, requestedField) => get(tcString ? parseConsentString(tcString) : {}, requestedField);
153
147
  };
154
-
155
- /**
156
- * TCFAPI consentFromOptions implementation
157
- * @function
158
- * @param {import('./constants').IABInitOptions} initOptions
159
- * @returns {import('./constants').TCDataDeterminateField} Properly formatted TCData object
160
- */
161
- export const makeConsentFromOptions = ({
162
- version = '2.0',
163
- cmpId,
164
- cmpVersion,
165
- fallbackGvlVersion,
166
- gppSection,
167
- staticFields,
168
- dynamicFields = {}
169
- }) => (data = {}, state) => {
148
+ export const makeConsentFromOptions = initOptions => (config, state) => {
149
+ const {
150
+ version = '2.0',
151
+ cmpId,
152
+ cmpVersion,
153
+ fallbackGvlVersion,
154
+ gppSection,
155
+ staticFields,
156
+ dynamicFields = {}
157
+ } = initOptions;
170
158
  const {
171
159
  gdprApplies
172
- } = merge(getStore(state), data);
173
- const publisherCC = getPublisherCountryCode(state);
160
+ } = config;
161
+ const publisherCC = config.country;
174
162
  const currentScreen = getCurrentScreen(state);
175
- const isShowingUi = currentScreen !== ScreenIds.None;
163
+ const isShowingUi = currentScreen !== 0;
176
164
  const willShowUi = !isSaved(state) || isShowingUi;
177
- const cmpStatus = isConsentReady(state) ? CMPStatusCodes.LOADED : CMPStatusCodes.STUB;
165
+ const cmpStatus = CMPStatusCodes.LOADED;
178
166
 
179
167
  /**
180
168
  * The vendor list version should be in the customer's config because
@@ -182,14 +170,14 @@ export const makeConsentFromOptions = ({
182
170
  * a way to know what it should be. The TCF spec doesn't cover this case
183
171
  * and we can't encode 'undefined', so we'll use a fallback version.
184
172
  */
185
- const gvlVersion = getVendorListVersion(state, version) || fallbackGvlVersion;
173
+ const gvlVersion = config.vendorListVersion || fallbackGvlVersion;
186
174
 
187
175
  /**
188
176
  * Since `consentFromOptions` is used for multiple callbacks, all TCDataDeterminateField
189
177
  * values should be set here.
190
178
  */
191
179
  const dynamicConsent = Object.entries(dynamicFields).reduce((acc, [field, getter]) => {
192
- acc[`${field}`] = getter(data, state);
180
+ acc[`${field}`] = getter(initOptions, state);
193
181
  return acc;
194
182
  }, {});
195
183
  return {
@@ -204,13 +192,13 @@ export const makeConsentFromOptions = ({
204
192
  cmpId,
205
193
  cmpVersion,
206
194
  gvlVersion,
207
- consentLanguage: Locale.locale.slice(0, 2).toUpperCase(),
195
+ consentLanguage: config.language.slice(0, 2).toUpperCase(),
208
196
  publisherCC,
209
197
  tcfPolicyVersion: staticFields.tcfPolicyVersion,
210
- gdprApplies: gdprApplies !== undefined ? gdprApplies : doesGDPRApply(state),
198
+ gdprApplies,
211
199
  vendor: {
212
- consents: getVendorConsents(state, version),
213
- legitimateInterests: getVendorLegitimateInterests(state, version)
200
+ consents: getVendorConsents(config, state, version),
201
+ legitimateInterests: getVendorLegitimateInterests(config, state, version)
214
202
  },
215
203
  specialFeatureOptins: getSpecialFeatureOptIns(state, version),
216
204
  purpose: {
@@ -219,23 +207,17 @@ export const makeConsentFromOptions = ({
219
207
  }
220
208
  };
221
209
  };
222
-
223
- /**
224
- * TCFAPI formatConsentString implementation
225
- * @function
226
- * @param {Object} data
227
- * @returns {string} Properly formatted TCFData string
228
- */
229
- export const makeFormatConsentString = initOptions => (data, state) => {
210
+ export const makeFormatConsentString = initOptions => (config, state) => {
230
211
  const {
231
212
  encoder: {
232
213
  encode
233
214
  },
234
215
  coreFieldSequence,
235
- staticFields
216
+ staticFields,
217
+ tcString
236
218
  } = initOptions;
237
- const tcData = makeConsentFromOptions(initOptions)(data, state);
238
- const segments = getConsentString(state, initOptions).split('.');
219
+ const tcData = makeConsentFromOptions(initOptions)(config, state);
220
+ const segments = `${tcString}`.split('.').filter(Boolean);
239
221
  // Only update the CORE string
240
222
  segments.shift();
241
223
  const [bitFields] = coreFieldSequence.reduce(([bitString, startBit], [key, numBits, {
@@ -249,6 +231,9 @@ export const makeFormatConsentString = initOptions => (data, state) => {
249
231
  } else {
250
232
  value = get(tcData, dataField);
251
233
  }
234
+ if (process.env.NODE_ENV === 'development') {
235
+ console.log(`TCString encode: ${dataField} -> ${JSON.stringify(value)} :: ${numBits} bits`);
236
+ }
252
237
  const encodedValue = encodeField(value, numBits);
253
238
  return [bitString + encodedValue, startBit + encodedValue.length];
254
239
  }, ['', 0]);
@@ -256,38 +241,16 @@ export const makeFormatConsentString = initOptions => (data, state) => {
256
241
  segments.unshift(newCoreString);
257
242
  return segments.join('.');
258
243
  };
259
-
260
- /**
261
- * TCFAPI getConsentDataObject implementation
262
- * @function
263
- * @param {number} version
264
- * @returns {import('./constants').TCData} Properly formatted TCData object
265
- */
266
- export const makeGetConsentDataObject = initOptions => state => {
244
+ export const makeReadFromStorage = initOptions => {
267
245
  const {
268
- defaultTimestamp,
269
246
  version
270
247
  } = initOptions;
271
- switch (parseInt(version, 10)) {
272
- // Supported versions
273
- case 2:
274
- {
275
- break;
276
- }
277
- default:
278
- {
279
- throw new Error('Unsupported version');
248
+ return storage => {
249
+ return {
250
+ tcf: {
251
+ [`v${parseInt(version, 10)}`]: storage ?? {}
280
252
  }
281
- }
282
-
283
- // `defaultTimestamp` will be used for the created and lastUpdated fields if
284
- // a consent timestamp is not available yet.
285
- const data = {
286
- defaultTimestamp
287
- };
288
- return {
289
- ...makeConsentFromOptions(initOptions)(data, state),
290
- tcString: makeFormatConsentString(initOptions)(data, state)
253
+ };
291
254
  };
292
255
  };
293
256
  //# sourceMappingURL=consent.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CMPEventStatus","CMPStatusCodes","DisplayStatusCodes","consentToPurpose","Locale","ScreenIds","doesGDPRApply","getConsentString","getCurrentScreen","getPublisherCountryCode","getPurposeConsents","getPurposeOptOuts","getPurposesLITransparency","getSpecialFeatureOptIns","getStore","getVendorListVersion","getVendorOptOuts","getVendors","hasActed","get","merge","set","getConsent","getSavedConsent","isConsentReady","isSaved","commonConsent","consentLanguage","cmpLoaded","cmpStatus","LOADED","eventStatus","TC_LOADED","isServiceSpecific","useNonStandardStacks","purposeOneTreatment","getVendorConsents","state","apiVersion","vendors","optOutVendors","purposeConsent","consents","Object","entries","reduce","vendorConsents","vendorId","purposes","deletedDate","vendorHasConsent","length","every","purposeId","getVendorLegitimateInterests","optOutPurposes","vendorLegitimateInterests","forEach","legIntPurposes","specialPurposes","vendorHasLegitimateInterest","some","makeParseConsentString","initOptions","tcString","encoder","decode","coreFieldSequence","version","cmpId","cmpVersion","specFieldMode","segments","split","coreSegment","tcData","locale","slice","toUpperCase","tcfPolicyVersion","parseInt","startBit","field","numBits","decodeField","dataField","value","isFinite","bitLength","decodedValue","fieldName","substring","makeGetField","parseConsentString","requestedField","makeConsentFromOptions","fallbackGvlVersion","gppSection","staticFields","dynamicFields","data","gdprApplies","publisherCC","currentScreen","isShowingUi","None","willShowUi","STUB","gvlVersion","dynamicConsent","acc","getter","CMP_UI_SHOWN","USER_ACTION_COMPLETE","displayStatus","VISIBLE","HIDDEN","undefined","vendor","legitimateInterests","specialFeatureOptins","purpose","makeFormatConsentString","encode","shift","bitFields","bitString","key","encodeField","hasOwnProperty","call","staticValue","encodedValue","newCoreString","unshift","join","makeGetConsentDataObject","defaultTimestamp","Error"],"sourceRoot":"../../../../src","sources":["iab/tcf/consent.js"],"mappings":"AAAA,SACCA,cAAc,EACdC,cAAc,EACdC,kBAAkB,EAClBC,gBAAgB,QACV,aAAa;AACpB,SAASC,MAAM,EAAEC,SAAS,QAAQ,iBAAiB;AACnD,SACCC,aAAa,EACbC,gBAAgB,EAChBC,gBAAgB,EAChBC,uBAAuB,EACvBC,kBAAkB,EAClBC,iBAAiB,EACjBC,yBAAyB,EACzBC,uBAAuB,EACvBC,QAAQ,EACRC,oBAAoB,EACpBC,gBAAgB,EAChBC,UAAU,EACVC,QAAQ,QACF,aAAa;AACpB,SAASC,GAAG,EAAEC,KAAK,EAAEC,GAAG,QAAQ,aAAa;AAC7C,SACCC,UAAU,EACVC,eAAe,EACfC,cAAc,EACdC,OAAO,QACD,uBAAuB;AAE9B,OAAO,MAAMC,aAAa,GAAG;EAC5BC,eAAe,EAAE,IAAI;EACrBC,SAAS,EAAE,IAAI;EACfC,SAAS,EAAE5B,cAAc,CAAC6B,MAAM;EAAE;EAClCC,WAAW,EAAE/B,cAAc,CAACgC,SAAS;EAAE;EACvCC,iBAAiB,EAAE,IAAI;EACvBC,oBAAoB,EAAE,IAAI;EAC1BC,mBAAmB,EAAE;AACtB,CAAC;AAED,OAAO,MAAMC,iBAAiB,GAAGA,CAACC,KAAK,EAAEC,UAAU,KAAK;EACvD,MAAMC,OAAO,GAAGtB,UAAU,CAACoB,KAAK,EAAEC,UAAU,CAAC;EAC7C;AACD;AACA;AACA;EACC,MAAME,aAAa,GAAGxB,gBAAgB,CAACqB,KAAK,EAAEC,UAAU,CAAC;EACzD;AACD;AACA;AACA;AACA;EACC,MAAMG,cA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,QAAQ,CAACZ,OAAO,EAAE,EAAE,CAAC;IAC5B;IACA,KAAK,CAAC;MAAE;QACP;MACD;IAEA;MAAS;QACR,MAAM,IAAIsE,KAAK,CAAC,qBAAqB,CAAC;MACvC;EACD;;EAEA;EACA;EACA,MAAMtC,IAAI,GAAG;IAAEqC;EAAiB,CAAC;EAEjC,OAAO;IACN,GAAG1C,sBAAsB,CAAChC,WAAW,CAAC,CAACqC,IAAI,EAAE/D,KAAK,CAAC;IACnD2B,QAAQ,EAAE0D,uBAAuB,CAAC3D,WAAW,CAAC,CAACqC,IAAI,EAAE/D,KAAK;EAC3D,CAAC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["CMPEventStatus","CMPStatusCodes","DisplayStatusCodes","consentToPurpose","get","set","getConsent","getCurrentScreen","getPurposeConsents","getPurposeOptOuts","getPurposesLITransparency","getSavedConsent","getSpecialFeatureOptIns","getVendorOptOuts","hasActed","isSaved","commonConsent","consentLanguage","cmpLoaded","cmpStatus","LOADED","eventStatus","TC_LOADED","isServiceSpecific","useNonStandardStacks","purposeOneTreatment","getVendorConsents","config","state","apiVersion","vendors","getVendors","optOutVendors","purposeConsent","consents","Object","entries","reduce","vendorConsents","vendorId","purposes","deletedDate","vendorHasConsent","length","every","purposeId","getVendorLegitimateInterests","optOutPurposes","vendorLegitimateInterests","forEach","legIntPurposes","specialPurposes","vendorHasLegitimateInterest","some","makeParseConsentString","initOptions","tcString","encoder","decode","coreFieldSequence","version","cmpId","cmpVersion","segments","split","coreSegment","tcData","tcfPolicyVersion","parseInt","startBit","field","numBits","decodeField","dataField","value","isFinite","slice","bitLength","decodedValue","fieldName","makeGetField","parseConsentString","specFieldMode","requestedField","makeConsentFromOptions","fallbackGvlVersion","gppSection","staticFields","dynamicFields","gdprApplies","publisherCC","country","currentScreen","isShowingUi","willShowUi","gvlVersion","vendorListVersion","dynamicConsent","acc","getter","CMP_UI_SHOWN","USER_ACTION_COMPLETE","displayStatus","VISIBLE","HIDDEN","language","toUpperCase","vendor","legitimateInterests","specialFeatureOptins","purpose","makeFormatConsentString","encode","filter","Boolean","shift","bitFields","bitString","key","encodeField","hasOwnProperty","call","staticValue","process","env","NODE_ENV","console","log","JSON","stringify","encodedValue","newCoreString","unshift","join","makeReadFromStorage","storage","tcf"],"sourceRoot":"../../../../src","sources":["iab/tcf/consent.ts"],"mappings":"AAAA,SACCA,cAAc,EACdC,cAAc,EACdC,kBAAkB,EAClBC,gBAAgB,QACV,aAAa;AAEpB,SAASC,GAAG,EAAEC,GAAG,QAAQ,aAAa;AACtC;AACA;AACA,SACCC,UAAU,EACVC,gBAAgB,EAChBC,kBAAkB,EAClBC,iBAAiB,EACjBC,yBAAyB,EACzBC,eAAe,EACfC,uBAAuB,EACvBC,gBAAgB,EAChBC,QAAQ,EACRC,OAAO,QACD,aAAa;AAMpB,OAAO,MAAMC,aAAa,GAAG;EAC5BC,eAAe,EAAE,IAAI;EACrBC,SAAS,EAAE,IAAI;EACfC,SAAS,EAAElB,cAAc,CAACmB,MAAM;EAAE;EAClCC,WAAW,EAAErB,cAAc,CAACsB,SAAS;EAAE;EACvCC,iBAAiB,EAAE,IAAI;EACvBC,oBAAoB,EAAE,IAAI;EAC1BC,mBAAmB,EAAE;AACtB,CAAC;AAED,OAAO,MAAMC,iBAAiB,GAAGA,CAChCC,MAAqB,EACrBC,KAA4B,EAC5BC,UAA0B,KACtB;EACJ,MAAMC,OAAO,GAAGH,MAAM,CAACI,UAAU,CAAC,CAAC;EACnC;AACD;AACA;AACA;EACC,MAAMC,aAAa,GAAGnB,gBAAgB,CAACe,KAAK,EAAEC,UAAU,CAAC;EACzD;AACD;AACA;AACA;AACA;EACC,MAAMI,cAAc,GAAG9B,gBAAgB,CACtCQ,eAAe,CAACiB,KAAK,CAAC,IAAItB,UAAU,CAACsB,KAAK,CAAC,EAC3CC,UACD,CAAC;EAED,MAAMK,QAAiC,GAAGC,MAAM,CAACC,OAAO,CAACN,OAAO,CAAC,CAACO,MAAM,CACvE,C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CAAC;IAC/B;IACA,IAAIkD,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,aAAa,EAAE;MAC3CC,OAAO,CAACC,GAAG,CACT,oBAAmBtD,SAAU,OAAMuD,IAAI,CAACC,SAAS,CAACvD,KAAK,CAAE,OAAMH,OAAQ,OACzE,CAAC;IACF;IACA,MAAM2D,YAAY,GAAGX,WAAW,CAAC7C,KAAK,EAAEH,OAAO,CAAC;IAChD,OAAO,CAAC8C,SAAS,GAAGa,YAAY,EAAE7D,QAAQ,GAAG6D,YAAY,CAACvF,MAAM,CAAC;EAClE,CAAC,EACD,CAAC,EAAE,EAAE,CAAC,CACP,CAAC;EACD,MAAMwF,aAAa,GAAGnB,MAAM,CAACI,SAAS,CAAC;EACvCrD,QAAQ,CAACqE,OAAO,CAACD,aAAa,CAAC;EAC/B,OAAOpE,QAAQ,CAACsE,IAAI,CAAC,GAAG,CAAC;AAC1B,CAAC;AAEF,OAAO,MAAMC,mBAAmB,GAAI/E,WAA2B,IAAK;EACnE,MAAM;IAAEK;EAAQ,CAAC,GAAGL,WAAW;EAC/B,OAAQgF,OAAwB,IAAK;IACpC,OAAO;MACNC,GAAG,EAAE;QACJ,CAAE,IAAGpE,QAAQ,CAACR,OAAO,EAAE,EAAE,CAAE,EAAC,GAAG2E,OAAO,IAAI,CAAC;MAC5C;IACD,CAAC;EACF,CAAC;AACF,CAAC","ignoreList":[]}
@@ -14,13 +14,13 @@ export const DisplayStatusCodes = {
14
14
  HIDDEN: 'hidden',
15
15
  DISABLED: 'disabled'
16
16
  };
17
- export const purposeIds = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
17
+ export const purposeIds = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
18
18
  export const purposeMap = {
19
- [ConsentCategory.ESSENTIAL]: [],
20
- [ConsentCategory.ANALYTICS]: [8, 10],
19
+ [ConsentCategory.ESSENTIAL]: [1],
20
+ [ConsentCategory.ANALYTICS]: [7, 8, 9, 10],
21
21
  [ConsentCategory.STORAGE]: [1],
22
- [ConsentCategory.MARKETING]: [2, 7, 9],
23
- [ConsentCategory.PERSONALIZATION]: [3, 4, 5, 6],
22
+ [ConsentCategory.MARKETING]: [2, 3, 4],
23
+ [ConsentCategory.PERSONALIZATION]: [5, 6, 11],
24
24
  [ConsentCategory.OPT_OUT]: []
25
25
  };
26
26
  export const consentToPurpose = (consent = {}, apiVersion = '2') => {
@@ -1 +1 @@
1
- {"version":3,"names":["ConsentCategory","CMPEventStatus","TC_LOADED","CMP_UI_SHOWN","USER_ACTION_COMPLETE","CMPStatusCodes","STUB","LOADED","ERROR","DisplayStatusCodes","VISIBLE","HIDDEN","DISABLED","purposeIds","purposeMap","ESSENTIAL","ANALYTICS","STORAGE","MARKETING","PERSONALIZATION","OPT_OUT","consentToPurpose","consent","apiVersion","parseInt","Object","entries","reduce","consents","category","purposes","forEach","purpose"],"sourceRoot":"../../../../src","sources":["iab/tcf/constants.ts"],"mappings":"AAAA,SAECA,eAAe,QACT,iBAAiB;AAExB,OAAO,MAAMC,cAAc,GAAG;EAC7BC,SAAS,EAAE,UAAU;EACrBC,YAAY,EAAE,YAAY;EAC1BC,oBAAoB,EAAE;AACvB,CAAC;AAED,OAAO,MAAMC,cAAc,GAAG;EAC7BC,IAAI,EAAE,MAAM;EACZC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,kBAAkB,GAAG;EACjCC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE;AACX,CAAC;AAED,OAAO,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;AACzD,OAAO,MAAMC,UAAiD,GAAG;EAChE,CAACd,eAAe,CAACe,SAAS,GAAG,EAAE;EAC/B,CAACf,eAAe,CAACgB,SAAS,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC;EACpC,CAAChB,eAAe,CAACiB,OAAO,GAAG,CAAC,CAAC,CAAC;EAC9B,CAACjB,eAAe,CAACkB,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;EACtC,CAAClB,eAAe,CAACmB,eAAe,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;EAC/C,CAACnB,eAAe,CAACoB,OAAO,GAAG;AAC5B,CAAC;AAED,OAAO,MAAMC,gBAAgB,GAAGA,CAC/BC,OAAsD,GAAG,CAAC,CAAC,EAC3DC,UAAU,GAAG,GAAG,KACZ;EACJ,IAAIC,QAAQ,CAACD,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE;IAClC,OAAOE,MAAM,CAACC,OAAO,CAACZ,UAAU,CAAC,CAACa,MAAM,CACvC,CAACC,QAAQ,EAAE,CAACC,QAAQ,EAAEC,QAAQ,CAAC,KAAK;MACnCA,QAAQ,CAACC,OAAO,CAACC,OAAO,IAAI;QAC3BJ,QAAQ,CAAE,GAAEI,OAAQ,EAAC,CAAC,GACrB,CAAC,CAACV,OAAO,CAAE,GAAEO,QAAgC,EAAC,CAAC;MACjD,CAAC,CAAC;MACF,OAAOD,QAAQ;IAChB,CAAC,EACD,CAAC,CACF,CAAC;EACF;EACA,OAAO,CAAC,CAAC;AACV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["ConsentCategory","CMPEventStatus","TC_LOADED","CMP_UI_SHOWN","USER_ACTION_COMPLETE","CMPStatusCodes","STUB","LOADED","ERROR","DisplayStatusCodes","VISIBLE","HIDDEN","DISABLED","purposeIds","purposeMap","ESSENTIAL","ANALYTICS","STORAGE","MARKETING","PERSONALIZATION","OPT_OUT","consentToPurpose","consent","apiVersion","parseInt","Object","entries","reduce","consents","category","purposes","forEach","purpose"],"sourceRoot":"../../../../src","sources":["iab/tcf/constants.ts"],"mappings":"AAAA,SAECA,eAAe,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AE,CAACC,QAAQ,EAAEC,QAAQ,CAAC,KAAK;MACnCA,QAAQ,CAACC,OAAO,CAAEC,OAAO,IAAK;QAC7BJ,QAAQ,CAAE,GAAEI,OAAQ,EAAC,CAAC,GACrB,CAAC,CAACV,OAAO,CAAE,GAAEO,QAAgC,EAAC,CAAC;MACjD,CAAC,CAAC;MACF,OAAOD,QAAQ;IAChB,CAAC,EACD,CAAC,CACF,CAAC;EACF;EACA,OAAO,CAAC,CAAC;AACV,CAAC","ignoreList":[]}
@@ -0,0 +1,62 @@
1
+ import { getPurposeOptOuts, getSpecialFeatureOptIns, getVendorOptOuts } from './selectors';
2
+ import { fixedValuesArrayFormatter } from './v2.0/formatters';
3
+ import { getConsentTimestamp } from '../../selectors';
4
+
5
+ /*
6
+ * TCF Amendment - 21 December 2021
7
+ * Created and LastUpdated fields have been updated to have the same value
8
+ * corresponding to the ** day-level ** timestamp of when the TC String
9
+ * was last updated. Timestamp should maintain 36bit depth (deciseconds),
10
+ * but hours, minutes, seconds and milliseconds should be 0.
11
+ */
12
+
13
+ export const createUTCTimestampInDeciseconds = ({
14
+ defaultTimestamp = 0
15
+ }, state) => {
16
+ const consentDate = new Date(getConsentTimestamp(state) || defaultTimestamp);
17
+ const utc = Date.UTC(consentDate.getUTCFullYear(), consentDate.getUTCMonth(), consentDate.getUTCDate());
18
+ // Make sure the timestamp is > 0 otherwise the TCF Int parser fails
19
+ return Math.round(Math.max(0, utc) / 100);
20
+ };
21
+ export const idRecordToBinaryString = records => fixedValuesArrayFormatter(records, Object.keys(records).map(key => parseInt(key, 10)).reduce((a, b) => Math.max(a, b), 0)).map(value => value ? '1' : '0').join('');
22
+ export const updateSpecialFeatureOptIns = (state, version, specialFeatureIds, acceptOrDeny) => {
23
+ const specialFeatureOptins = {
24
+ ...getSpecialFeatureOptIns(state, version)
25
+ };
26
+ for (const specialFeatureId of specialFeatureIds) {
27
+ if (acceptOrDeny) {
28
+ specialFeatureOptins[`${specialFeatureId}`] = true;
29
+ } else {
30
+ delete specialFeatureOptins[`${specialFeatureId}`];
31
+ }
32
+ }
33
+ return specialFeatureOptins;
34
+ };
35
+ export const updatePurposeOptOuts = (state, version, purposeIds, acceptOrDeny) => {
36
+ const purposeOptOuts = {
37
+ ...getPurposeOptOuts(state, version)
38
+ };
39
+ // ACCEPT on "I Object" means OptOut is TRUE
40
+ for (const purposeId of purposeIds) {
41
+ if (acceptOrDeny) {
42
+ purposeOptOuts[`${purposeId}`] = true;
43
+ } else {
44
+ delete purposeOptOuts[`${purposeId}`];
45
+ }
46
+ }
47
+ return purposeOptOuts;
48
+ };
49
+ export const updateVendorOptOuts = (state, version, vendorIds, acceptOrDeny) => {
50
+ const vendorOptOuts = {
51
+ ...getVendorOptOuts(state, version)
52
+ };
53
+ for (const vendorId of vendorIds) {
54
+ if (acceptOrDeny === false) {
55
+ vendorOptOuts[`${vendorId}`] = true;
56
+ } else {
57
+ delete vendorOptOuts[`${vendorId}`];
58
+ }
59
+ }
60
+ return vendorOptOuts;
61
+ };
62
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getPurposeOptOuts","getSpecialFeatureOptIns","getVendorOptOuts","fixedValuesArrayFormatter","getConsentTimestamp","createUTCTimestampInDeciseconds","defaultTimestamp","state","consentDate","Date","utc","UTC","getUTCFullYear","getUTCMonth","getUTCDate","Math","round","max","idRecordToBinaryString","records","Object","keys","map","key","parseInt","reduce","a","b","value","join","updateSpecialFeatureOptIns","version","specialFeatureIds","acceptOrDeny","specialFeatureOptins","specialFeatureId","updatePurposeOptOuts","purposeIds","purposeOptOuts","purposeId","updateVendorOptOuts","vendorIds","vendorOptOuts","vendorId"],"sourceRoot":"../../../../src","sources":["iab/tcf/helpers.ts"],"mappings":"AACA,SACCA,iBAAiB,EACjBC,uBAAuB,EACvBC,gBAAgB,QACV,aAAa;AAIpB,SAASC,yBAAyB,QAAQ,mBAAmB;AAC7D,SAASC,mBAAmB,QAAQ,iBAAiB;;AAErD;AACA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AAC,GAAG,IAAI;IACnD,CAAC,MAAM;MACN,OAAOD,oBAAoB,CAAE,GAAEC,gBAAiB,EAAC,CAAC;IACnD;EACD;EACA,OAAOD,oBAAoB;AAC5B,CAAC;AAED,OAAO,MAAME,oBAAoB,GAAGA,CACnC7B,KAAe,EACfwB,OAAuB,EACvBM,UAAoB,EACpBJ,YAAqB,KACjB;EACJ,MAAMK,cAAc,GAAG;IAAE,GAAGtC,iBAAiB,CAACO,KAAK,EAAEwB,OAAO;EAAE,CAAC;EAC/D;EACA,KAAK,MAAMQ,SAAS,IAAIF,UAAU,EAAE;IACnC,IAAIJ,YAAY,EAAE;MACjBK,cAAc,CAAE,GAAEC,SAAU,EAAC,CAAC,GAAG,IAAI;IACtC,CAAC,MAAM;MACN,OAAOD,cAAc,CAAE,GAAEC,SAAU,EAAC,CAAC;IACtC;EACD;EACA,OAAOD,cAAc;AACtB,CAAC;AAED,OAAO,MAAME,mBAAmB,GAAGA,CAClCjC,KAAe,EACfwB,OAAuB,EACvBU,SAAmB,EACnBR,YAAqB,KACjB;EACJ,MAAMS,aAAa,GAAG;IAAE,GAAGxC,gBAAgB,CAACK,KAAK,EAAEwB,OAAO;EAAE,CAAC;EAC7D,KAAK,MAAMY,QAAQ,IAAIF,SAAS,EAAE;IACjC,IAAIR,YAAY,KAAK,KAAK,EAAE;MAC3BS,aAAa,CAAE,GAAEC,QAAS,EAAC,CAAC,GAAG,IAAI;IACpC,CAAC,MAAM;MACN,OAAOD,aAAa,CAAE,GAAEC,QAAS,EAAC,CAAC;IACpC;EACD;EACA,OAAOD,aAAa;AACrB,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
- import reducer from './reducer';
1
+ import * as selectors from './selectors';
2
2
  import versions from './v2.0';
3
3
  export default {
4
- reducer,
5
- versions
4
+ ...versions,
5
+ selectors
6
6
  };
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["reducer","versions"],"sourceRoot":"../../../../src","sources":["iab/tcf/index.js"],"mappings":"AAAA,OAAOA,OAAO,MAAM,WAAW;AAC/B,OAAOC,QAAQ,MAAM,QAAQ;AAE7B,eAAe;EACdD,OAAO;EACPC;AACD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["selectors","versions"],"sourceRoot":"../../../../src","sources":["iab/tcf/index.ts"],"mappings":"AAAA,OAAO,KAAKA,SAAS,MAAM,aAAa;AAExC,OAAOC,QAAQ,MAAM,QAAQ;AAE7B,eAAe;EACd,GAAGA,QAAQ;EACXD;AACD,CAAC","ignoreList":[]}