@osano/osano-cmp-react-native 0.1.0 → 0.3.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 (822) 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 +53 -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 +365 -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 +27 -25
  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 +2 -1
  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 +57 -39
  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 +49 -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/reducer.js +357 -0
  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 +23 -21
  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 +2 -1
  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 +53 -35
  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 +414 -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 +32 -51
  777. package/src/views/Drawer/Drawer.ConsentCategories.tsx +84 -41
  778. package/src/views/Drawer/Drawer.Header.tsx +4 -3
  779. package/src/views/Drawer/Drawer.Iab.Disclosures.tsx +71 -41
  780. package/src/views/Drawer/Drawer.Iab.Vendors.tsx +74 -46
  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 +0 -520
  805. package/lib/module/store.js.map +0 -1
  806. package/lib/typescript/src/iab/tcf/v2.0/helpers.d.ts +0 -5
  807. package/lib/typescript/src/iab/tcf/v2.0/helpers.d.ts.map +0 -1
  808. package/lib/typescript/src/store.d.ts +0 -55
  809. package/lib/typescript/src/store.d.ts.map +0 -1
  810. package/src/iab/tcf/actions.js +0 -52
  811. package/src/iab/tcf/index.js +0 -7
  812. package/src/iab/tcf/reducer.js +0 -59
  813. package/src/iab/tcf/selectors.js +0 -151
  814. package/src/iab/tcf/tcfcav1-api.js +0 -39
  815. package/src/iab/tcf/tcfeuv2-api.js +0 -264
  816. package/src/iab/tcf/v2.0/formatters.js +0 -14
  817. package/src/iab/tcf/v2.0/helpers.ts +0 -23
  818. package/src/iab/tcf/v2.0/index.js +0 -36
  819. package/src/iab/tcf/v2.0/middleware.js +0 -72
  820. package/src/iab/tcf/v2.0/reducer.js +0 -327
  821. package/src/iab/tcf/v2.0/shared-constants.js +0 -17
  822. package/src/store.ts +0 -602
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.usePrevious = usePrevious;
7
7
  var _react = require("react");
8
8
  function usePrevious(value) {
9
- const ref = (0, _react.useRef)();
9
+ const ref = (0, _react.useRef)(value); // Set the initial value to the current value so that the first render will return the initial value
10
10
  (0, _react.useEffect)(() => {
11
11
  ref.current = value;
12
12
  }, [value]);
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","usePrevious","value","ref","useRef","useEffect","current"],"sourceRoot":"../../../src","sources":["hooks/usePrevious.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,SAASC,WAAWA,CAAIC,KAAQ,EAAE;EACxC,MAAMC,GAAG,GAAG,IAAAC,aAAM,EAAI,CAAC;EACvB,IAAAC,gBAAS,EAAC,MAAM;IACfF,GAAG,CAACG,OAAO,GAAGJ,KAAK;EACpB,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EACX,OAAOC,GAAG,CAACG,OAAO;AACnB","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","usePrevious","value","ref","useRef","useEffect","current"],"sourceRoot":"../../../src","sources":["hooks/usePrevious.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,SAASC,WAAWA,CAAIC,KAAQ,EAAE;EACxC,MAAMC,GAAG,GAAG,IAAAC,aAAM,EAAIF,KAAK,CAAC,CAAC,CAAC;EAC9B,IAAAG,gBAAS,EAAC,MAAM;IACfF,GAAG,CAACG,OAAO,GAAGJ,KAAK;EACpB,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EACX,OAAOC,GAAG,CAACG,OAAO;AACnB","ignoreList":[]}
@@ -6,57 +6,82 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  exports.useThunkReducer = useThunkReducer;
8
8
  var _react = require("react");
9
+ var _useBoundCallback = _interopRequireDefault(require("./useBoundCallback"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
11
  /* eslint-disable @typescript-eslint/no-explicit-any */
10
12
 
11
13
  /**
12
14
  * Augments React's useReducer() hook so that the action
13
15
  * dispatcher supports thunks.
14
16
  */
15
- function useThunkReducer(reducer, initializerArg, initializer, middleware = []) {
17
+ function useThunkReducer(rootReducer, initializerArg, initializer, middleware = []) {
16
18
  const mounted = (0, _react.useRef)(true);
17
19
  const allMiddleware = (0, _react.useRef)([...middleware].reverse());
20
+ const allReducers = (0, _react.useRef)([rootReducer]);
21
+ // The following is only used to generate the initial state from the root reducer.
18
22
  const [initialState] = initializer ?
19
23
  // eslint-disable-next-line react-hooks/rules-of-hooks
20
- (0, _react.useReducer)(reducer, initializerArg, initializer) :
24
+ (0, _react.useReducer)(rootReducer, initializerArg, initializer) :
21
25
  // eslint-disable-next-line react-hooks/rules-of-hooks
22
- (0, _react.useReducer)(reducer, initializerArg);
26
+ (0, _react.useReducer)(rootReducer, initializerArg);
23
27
  const [hookState, setHookState] = (0, _react.useState)(initialState);
24
28
 
25
29
  // State management.
26
30
  const state = (0, _react.useRef)(hookState);
27
- const getState = (0, _react.useCallback)(() => state.current, [state]);
31
+ const getState = (0, _react.useCallback)(() => state.current, []);
28
32
  const setState = (0, _react.useCallback)(newState => {
29
33
  state.current = newState;
30
34
  mounted.current && setHookState(newState);
31
- }, [state, setHookState]);
35
+ }, []);
32
36
  const addMiddleware = (0, _react.useCallback)(m => {
33
- allMiddleware.current = [m, ...allMiddleware.current];
37
+ allMiddleware.current = [m, ...allMiddleware.current].filter((middleware, index, all) => all.indexOf(middleware) === index);
34
38
  }, []);
35
39
  const removeMiddleware = (0, _react.useCallback)(m => {
36
40
  allMiddleware.current = allMiddleware.current.filter(toRemove => toRemove !== m);
37
41
  }, []);
42
+ const addReducer = (0, _react.useCallback)(reducer => {
43
+ allReducers.current = [...allReducers.current, reducer];
44
+ }, []);
45
+ const removeReducer = (0, _react.useCallback)(reducer => {
46
+ allReducers.current = allReducers.current.filter(toRemove => toRemove !== reducer);
47
+ }, []);
38
48
 
39
49
  // Reducer.
40
- const reduce = (0, _react.useCallback)(action => {
41
- const store = {
42
- getState,
43
- dispatch
44
- };
45
- return allMiddleware.current.reduce((next, currentMiddleware) => a => currentMiddleware(store)(next)(a), a => reducer(getState(), a))(action);
46
- }, [reducer, getState]);
50
+ const reduce = (0, _useBoundCallback.default)(action => {
51
+ return [...allMiddleware.current].reduce((next, currentMiddleware) => a => currentMiddleware(store)(next)(a), a => allReducers.current.reduce((newState, currentReducer) => {
52
+ const nextState = currentReducer(newState, a);
53
+ /*
54
+ * Update the state reference so that getState() returns the latest state in case there
55
+ * are side effects triggered in middleware or reducers. If there are no side effects,
56
+ * this will behave normally anyway.
57
+ */
58
+ state.current = nextState;
59
+ return nextState;
60
+ }, getState()))(action);
61
+ }, []);
47
62
 
48
63
  // Augmented dispatcher.
49
64
  const dispatch = (0, _react.useCallback)(action => {
50
65
  const response = action instanceof Function ? action(dispatch, getState) : setState(reduce(action));
51
66
  return response;
52
- }, [getState, setState, reduce]);
67
+ }, []);
68
+ const store = (0, _react.useMemo)(() => ({
69
+ addMiddleware,
70
+ addReducer,
71
+ removeMiddleware,
72
+ removeReducer,
73
+ getState,
74
+ dispatch
75
+ }), [
76
+ // All these functions are stable and are not redefined. Added to satisfy exhaustive-deps.
77
+ addMiddleware, addReducer, removeMiddleware, removeReducer, getState, dispatch]);
53
78
  (0, _react.useEffect)(() => {
54
79
  mounted.current = true;
55
80
  return () => {
56
81
  mounted.current = false;
57
82
  };
58
83
  }, []);
59
- return [hookState, dispatch, getState, addMiddleware, removeMiddleware];
84
+ return [hookState, store];
60
85
  }
61
86
  var _default = exports.default = useThunkReducer;
62
87
  //# sourceMappingURL=useThunkReducer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","useThunkReducer","reducer","initializerArg","initializer","middleware","mounted","useRef","allMiddleware","reverse","initialState","useReducer","hookState","setHookState","useState","state","getState","useCallback","current","setState","newState","addMiddleware","m","removeMiddleware","filter","toRemove","reduce","action","store","dispatch","next","currentMiddleware","a","response","Function","useEffect","_default","exports","default"],"sourceRoot":"../../../src","sources":["hooks/useThunkReducer.ts"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_useBoundCallback","_interopRequireDefault","obj","__esModule","default","useThunkReducer","rootReducer","initializerArg","initializer","middleware","mounted","useRef","allMiddleware","reverse","allReducers","initialState","useReducer","hookState","setHookState","useState","state","getState","useCallback","current","setState","newState","addMiddleware","m","filter","index","all","indexOf","removeMiddleware","toRemove","addReducer","reducer","removeReducer","reduce","useBoundCallback","action","next","currentMiddleware","a","store","currentReducer","nextState","dispatch","response","Function","useMemo","useEffect","_default","exports"],"sourceRoot":"../../../src","sources":["hooks/useThunkReducer.ts"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.setConsentData = exports.SET_CONSENT_DATA = void 0;
7
+ const prefix = 'IAB';
8
+ const SET_CONSENT_DATA = exports.SET_CONSENT_DATA = `${prefix}/SET_CONSENT_DATA`;
9
+ const setConsentData = (gppSection, value) => ({
10
+ type: SET_CONSENT_DATA,
11
+ payload: {
12
+ gppSection,
13
+ value
14
+ }
15
+ });
16
+ exports.setConsentData = setConsentData;
17
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["prefix","SET_CONSENT_DATA","exports","setConsentData","gppSection","value","type","payload"],"sourceRoot":"../../../src","sources":["iab/actions.ts"],"mappings":";;;;;;AAEA,MAAMA,MAAM,GAAG,KAAK;AAEb,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAI,GAAED,MAAO,mBAAkB;AAErD,MAAMG,cAAc,GAAGA,CAC7BC,UAAkB,EAClBC,KAAU,MAOL;EACLC,IAAI,EAAEL,gBAAgB;EACtBM,OAAO,EAAE;IAAEH,UAAU;IAAEC;EAAM;AAC9B,CAAC,CAAC;AAACH,OAAA,CAAAC,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -3,6 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CMP_ID = void 0;
6
+ exports.IAB_CMP_VERSION = exports.GDPR_COUNTRIES = exports.CMP_ID = void 0;
7
7
  const CMP_ID = exports.CMP_ID = 279;
8
+ const IAB_CMP_VERSION = exports.IAB_CMP_VERSION = 2023;
9
+ const GDPR_COUNTRIES = exports.GDPR_COUNTRIES = [];
8
10
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CMP_ID","exports"],"sourceRoot":"../../../src","sources":["iab/constants.ts"],"mappings":";;;;;;AAAO,MAAMA,MAAc,GAAAC,OAAA,CAAAD,MAAA,GAAG,GAAG","ignoreList":[]}
1
+ {"version":3,"names":["CMP_ID","exports","IAB_CMP_VERSION","GDPR_COUNTRIES"],"sourceRoot":"../../../src","sources":["iab/constants.ts"],"mappings":";;;;;;AAAO,MAAMA,MAAc,GAAAC,OAAA,CAAAD,MAAA,GAAG,GAAG;AAC1B,MAAME,eAAe,GAAAD,OAAA,CAAAC,eAAA,GAAG,IAAI;AAC5B,MAAMC,cAAwB,GAAAF,OAAA,CAAAE,cAAA,GAAG,EAAE","ignoreList":[]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.encode = exports.default = exports.decode = void 0;
7
- var _errors = require("./errors.js");
7
+ var _errors = require("./errors");
8
8
  /**
9
9
  * Adapted from IABTechLab's GPP JavaScript Reference Implementation
10
10
  *
@@ -1 +1 @@
1
- {"version":3,"names":["_AbstractBase64UrlEncoder","require","pad","bitString","length","encode","exports","makeEncode","_default","default","decode"],"sourceRoot":"../../../../../src","sources":["iab/gpp/encoders/TraditionalBase64UrlEncoder.ts"],"mappings":";;;;;;;;;;;;AAqBA,IAAAA,yBAAA,GAAAC,OAAA;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA,MAAMC,GAAG,GAAIC,SAAiB,IAAK;EAClC,OAAOA,SAAS,CAACC,MAAM,GAAG,EAAE,GAAG,CAAC,EAAE;IACjCD,SAAS,IAAI,GAAG;EACjB;EACA,OAAOA,SAAS;AACjB,CAAC;AAEM,MAAME,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,IAAAE,oCAAU,EAACL,GAAG,CAAC;AAAC,IAAAM,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAIvB;EACdC,MAAM,EAANA,gCAAM;EACNL;AACD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_AbstractBase64UrlEncoder","require","pad","bitString","length","encode","exports","makeEncode","_default","default","decode"],"sourceRoot":"../../../../../src","sources":["iab/gpp/encoders/TraditionalBase64UrlEncoder.ts"],"mappings":";;;;;;;;;;;;AAqBA,IAAAA,yBAAA,GAAAC,OAAA;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,MAAMC,GAAG,GAAIC,SAAiB,IAAK;EAClC,OAAOA,SAAS,CAACC,MAAM,GAAG,EAAE,GAAG,CAAC,EAAE;IACjCD,SAAS,IAAI,GAAG;EACjB;EACA,OAAOA,SAAS;AACjB,CAAC;AAEM,MAAME,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,IAAAE,oCAAU,EAACL,GAAG,CAAC;AAAC,IAAAM,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAIvB;EACdC,MAAM,EAANA,gCAAM;EACNL;AACD,CAAC","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.addIabReducers = void 0;
7
+ var _reducer = require("./reducer");
8
+ var _actions = require("./actions");
9
+ const addIabReducers = frameworks => store => {
10
+ _reducer.reducer && store.addReducer(_reducer.reducer);
11
+ Object.values(frameworks).forEach(({
12
+ reducer: frameworkReducer,
13
+ versions
14
+ }) => {
15
+ frameworkReducer && store.addReducer(frameworkReducer);
16
+ Object.values(versions).forEach(({
17
+ middleware: versionMiddleware,
18
+ gppSection,
19
+ reducer: versionReducer
20
+ }) => {
21
+ if (gppSection !== 'gpp') {
22
+ // Adds the section to the state so that GPP knows about it
23
+ // but we don't store the GPP string itself since it's
24
+ // basically just the other strings concatenated together.
25
+ store.dispatch((0, _actions.setConsentData)(gppSection, ''));
26
+ }
27
+ versionReducer && store.addReducer(versionReducer);
28
+ versionMiddleware && store.addMiddleware(versionMiddleware);
29
+ });
30
+ });
31
+ };
32
+ exports.addIabReducers = addIabReducers;
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reducer","require","_actions","addIabReducers","frameworks","store","iabReducer","addReducer","Object","values","forEach","reducer","frameworkReducer","versions","middleware","versionMiddleware","gppSection","versionReducer","dispatch","setConsentData","addMiddleware","exports"],"sourceRoot":"../../../src","sources":["iab/index.ts"],"mappings":";;;;;;AAIA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEO,MAAME,cAAc,GACzBC,UAA0B,IAC1BC,KAAgD,IAAK;EACrDC,gBAAU,IAAID,KAAK,CAACE,UAAU,CAACD,gBAAU,CAAC;EAC1CE,MAAM,CAACC,MAAM,CAACL,UAAU,CAAC,CAACM,OAAO,CAChC,CAAC;IAAEC,OAAO,EAAEC,gBAAgB;IAAEC;EAAS,CAAC,KAAK;IAC5CD,gBAAgB,IAAIP,KAAK,CAACE,UAAU,CAACK,gBAAgB,CAAC;IACtDJ,MAAM,CAACC,MAAM,CAACI,QAAQ,CAAC,CAACH,OAAO,CAC9B,CAAC;MACAI,UAAU,EAAEC,iBAAiB;MAC7BC,UAAU;MACVL,OAAO,EAAEM;IACV,CAAC,KAAK;MACL,IAAID,UAAU,KAAK,KAAK,EAAE;QACzB;QACA;QACA;QACAX,KAAK,CAACa,QAAQ,CAAC,IAAAC,uBAAc,EAACH,UAAU,EAAE,EAAE,CAAC,CAAC;MAC/C;MAEAC,cAAc,IAAIZ,KAAK,CAACE,UAAU,CAACU,cAAc,CAAC;MAClDF,iBAAiB,IAAIV,KAAK,CAACe,aAAa,CAACL,iBAAiB,CAAC;IAC5D,CACD,CAAC;EACF,CACD,CAAC;AACF,CAAC;AAACM,OAAA,CAAAlB,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.reducer = exports.initialState = void 0;
7
+ var _actions = require("./actions");
8
+ var _selectors = require("../selectors");
9
+ const initialState = exports.initialState = {
10
+ iab: {}
11
+ };
12
+ const reducer = (state, action) => {
13
+ const {
14
+ type
15
+ } = action;
16
+ switch (type) {
17
+ case _actions.SET_CONSENT_DATA:
18
+ {
19
+ const {
20
+ gppSection,
21
+ value
22
+ } = action.payload;
23
+ const consentStrings = state?.iab?.consentStrings || {};
24
+ return {
25
+ ...state,
26
+ iab: {
27
+ ...state?.iab,
28
+ consentStrings: {
29
+ ...consentStrings,
30
+ [gppSection]: value
31
+ },
32
+ hasActed: {
33
+ ...state?.iab?.hasActed,
34
+ [gppSection]: !!(0, _selectors.isConsentReady)(state) && value !== consentStrings[`${gppSection}`]
35
+ }
36
+ }
37
+ };
38
+ }
39
+ }
40
+ return state.iab ? state : {
41
+ ...state,
42
+ iab: initialState.iab
43
+ };
44
+ };
45
+ exports.reducer = reducer;
46
+ //# sourceMappingURL=reducer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_actions","require","_selectors","initialState","exports","iab","reducer","state","action","type","SET_CONSENT_DATA","gppSection","value","payload","consentStrings","hasActed","isConsentReady"],"sourceRoot":"../../../src","sources":["iab/reducer.ts"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEO,MAAME,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC3BE,GAAG,EAAE,CAAC;AACP,CAAC;AAEM,MAAMC,OAAgC,GAAGA,CAACC,KAAK,EAAEC,MAAM,KAAK;EAClE,MAAM;IAAEC;EAAK,CAAC,GAAGD,MAAM;EACvB,QAAQC,IAAI;IACX,KAAKC,yBAAgB;MAAE;QACtB,MAAM;UAAEC,UAAU;UAAEC;QAAM,CAAC,GAAGJ,MAAM,CAACK,OAAO;QAC5C,MAAMC,cAAc,GAAGP,KAAK,EAAEF,GAAG,EAAES,cAAc,IAAI,CAAC,CAAC;QACvD,OAAO;UACN,GAAGP,KAAK;UACRF,GAAG,EAAE;YACJ,GAAGE,KAAK,EAAEF,GAAG;YACbS,cAAc,EAAE;cACf,GAAGA,cAAc;cACjB,CAACH,UAAU,GAAGC;YACf,CAAC;YACDG,QAAQ,EAAE;cACT,GAAGR,KAAK,EAAEF,GAAG,EAAEU,QAAQ;cACvB,CAACJ,UAAU,GACV,CAAC,CAAC,IAAAK,yBAAc,EAACT,KAAK,CAAC,IACvBK,KAAK,KAAKE,cAAc,CAAE,GAAEH,UAAW,EAAC;YAC1C;UACD;QACD,CAAC;MACF;EACD;EACA,OAAOJ,KAAK,CAACF,GAAG,GACZE,KAAK,GACN;IAAE,GAAGA,KAAK;IAAEF,GAAG,EAAEF,YAAY,CAACE;EAAI,CAAC;AACvC,CAAC;AAACD,OAAA,CAAAE,OAAA,GAAAA,OAAA","ignoreList":[]}
@@ -3,18 +3,78 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.updateVendorListSuccess = exports.updateVendorListFailure = exports.updateVendorListBegin = exports.updatePurposeList = exports.setVendorConsent = exports.setSpecialFeatureConsent = exports.setPurposeConsent = exports.setGdprApplies = exports.setAllVendorConsent = exports.setAllSpecialFeatureConsent = exports.setAllPurposeConsent = void 0;
7
- var _helpers = require("../../redux/helpers");
8
- const prefix = 'OsanoCMP_IAB-TCF';
9
- const setPurposeConsent = exports.setPurposeConsent = (0, _helpers.createActionCreator)(`${prefix}/SET_PURPOSE_CONSENT`, (0, _helpers.namedParameters)('purposeId', 'acceptOrDeny'));
10
- const setAllPurposeConsent = exports.setAllPurposeConsent = (0, _helpers.createActionCreator)(`${prefix}/SET_ALL_PURPOSE_CONSENT`, (0, _helpers.namedParameters)('acceptOrDeny'));
11
- const setVendorConsent = exports.setVendorConsent = (0, _helpers.createActionCreator)(`${prefix}/SET_VENDOR_CONSENT`, (0, _helpers.namedParameters)('vendorId', 'acceptOrDeny'));
12
- const setAllVendorConsent = exports.setAllVendorConsent = (0, _helpers.createActionCreator)(`${prefix}/SET_ALL_VENDOR_CONSENT`, (0, _helpers.namedParameters)('acceptOrDeny'));
13
- const setSpecialFeatureConsent = exports.setSpecialFeatureConsent = (0, _helpers.createActionCreator)(`${prefix}/SET_SPECIAL_FEATURE_CONSENT`, (0, _helpers.namedParameters)('specialFeatureId', 'acceptOrDeny'));
14
- const setAllSpecialFeatureConsent = exports.setAllSpecialFeatureConsent = (0, _helpers.createActionCreator)(`${prefix}/SET_ALL_SPECIAL_FEATURE_CONSENT`, (0, _helpers.namedParameters)('acceptOrDeny'));
15
- const setGdprApplies = exports.setGdprApplies = (0, _helpers.createActionCreator)(`${prefix}/SET_GDPR_APPLIES`, _helpers.singleParameter);
16
- const updatePurposeList = exports.updatePurposeList = (0, _helpers.createActionCreator)(`${prefix}/UPDATE_PURPOSE_LIST`, (0, _helpers.namedParameters)('purposeList', 'language'));
17
- const updateVendorListBegin = exports.updateVendorListBegin = (0, _helpers.createActionCreator)(`${prefix}/UPDATE_VENDOR_LIST_BEGIN`, _helpers.noParameters);
18
- const updateVendorListSuccess = exports.updateVendorListSuccess = (0, _helpers.createActionCreator)(`${prefix}/UPDATE_VENDOR_LIST_SUCCESS`, _helpers.singleParameter);
19
- const updateVendorListFailure = exports.updateVendorListFailure = (0, _helpers.createActionCreator)(`${prefix}/UPDATE_VENDOR_LIST_FAILURE`, _helpers.singleParameter);
6
+ exports.updatePurposeList = exports.setVendorConsent = exports.setTCString = exports.setSpecialFeatureConsent = exports.setPurposeConsent = exports.setGdprApplies = exports.setConsent = exports.setAllVendorConsent = exports.setAllSpecialFeatureConsent = exports.setAllPurposeConsent = exports.UPDATE_PURPOSE_LIST = exports.SET_VENDOR_CONSENT = exports.SET_TCSTRING = exports.SET_SPECIAL_FEATURE_CONSENT = exports.SET_PURPOSE_CONSENT = exports.SET_GDPR_APPLIES = exports.SET_CONSENT = exports.SET_ALL_VENDOR_CONSENT = exports.SET_ALL_SPECIAL_FEATURE_CONSENT = exports.SET_ALL_PURPOSE_CONSENT = void 0;
7
+ const prefix = 'IAB-TCF';
8
+ const SET_TCSTRING = exports.SET_TCSTRING = `${prefix}/SET_TCSTRING`;
9
+ const SET_CONSENT = exports.SET_CONSENT = `${prefix}/SET_CONSENT`;
10
+ const SET_PURPOSE_CONSENT = exports.SET_PURPOSE_CONSENT = `${prefix}/SET_PURPOSE_CONSENT`;
11
+ const SET_ALL_PURPOSE_CONSENT = exports.SET_ALL_PURPOSE_CONSENT = `${prefix}/SET_ALL_PURPOSE_CONSENT`;
12
+ const SET_VENDOR_CONSENT = exports.SET_VENDOR_CONSENT = `${prefix}/SET_VENDOR_CONSENT`;
13
+ const SET_ALL_VENDOR_CONSENT = exports.SET_ALL_VENDOR_CONSENT = `${prefix}/SET_ALL_VENDOR_CONSENT`;
14
+ const SET_SPECIAL_FEATURE_CONSENT = exports.SET_SPECIAL_FEATURE_CONSENT = `${prefix}/SET_SPECIAL_FEATURE_CONSENT`;
15
+ const SET_ALL_SPECIAL_FEATURE_CONSENT = exports.SET_ALL_SPECIAL_FEATURE_CONSENT = `${prefix}/SET_ALL_SPECIAL_FEATURE_CONSENT`;
16
+ const SET_GDPR_APPLIES = exports.SET_GDPR_APPLIES = `${prefix}/SET_GDPR_APPLIES`;
17
+ const UPDATE_PURPOSE_LIST = exports.UPDATE_PURPOSE_LIST = `${prefix}/UPDATE_PURPOSE_LIST`;
18
+ const setTCString = tcString => ({
19
+ type: SET_TCSTRING,
20
+ payload: tcString
21
+ });
22
+ exports.setTCString = setTCString;
23
+ const setConsent = consent => ({
24
+ type: SET_CONSENT,
25
+ payload: consent
26
+ });
27
+ exports.setConsent = setConsent;
28
+ const setSpecialFeatureConsent = (specialFeatureId, acceptOrDeny) => ({
29
+ type: SET_SPECIAL_FEATURE_CONSENT,
30
+ payload: {
31
+ specialFeatureId,
32
+ acceptOrDeny
33
+ }
34
+ });
35
+ exports.setSpecialFeatureConsent = setSpecialFeatureConsent;
36
+ const setPurposeConsent = (purposeId, acceptOrDeny) => ({
37
+ type: SET_PURPOSE_CONSENT,
38
+ payload: {
39
+ purposeId,
40
+ acceptOrDeny
41
+ }
42
+ });
43
+ exports.setPurposeConsent = setPurposeConsent;
44
+ const setVendorConsent = (vendorId, acceptOrDeny) => ({
45
+ type: SET_VENDOR_CONSENT,
46
+ payload: {
47
+ vendorId,
48
+ acceptOrDeny
49
+ }
50
+ });
51
+ exports.setVendorConsent = setVendorConsent;
52
+ const setAllVendorConsent = acceptOrDeny => ({
53
+ type: SET_ALL_VENDOR_CONSENT,
54
+ payload: acceptOrDeny
55
+ });
56
+ exports.setAllVendorConsent = setAllVendorConsent;
57
+ const setAllPurposeConsent = acceptOrDeny => ({
58
+ type: SET_ALL_PURPOSE_CONSENT,
59
+ payload: acceptOrDeny
60
+ });
61
+ exports.setAllPurposeConsent = setAllPurposeConsent;
62
+ const setAllSpecialFeatureConsent = acceptOrDeny => ({
63
+ type: SET_ALL_SPECIAL_FEATURE_CONSENT,
64
+ payload: acceptOrDeny
65
+ });
66
+ exports.setAllSpecialFeatureConsent = setAllSpecialFeatureConsent;
67
+ const setGdprApplies = gdprApplies => ({
68
+ type: SET_GDPR_APPLIES,
69
+ payload: gdprApplies
70
+ });
71
+ exports.setGdprApplies = setGdprApplies;
72
+ const updatePurposeList = (purposeList, language) => ({
73
+ type: UPDATE_PURPOSE_LIST,
74
+ payload: {
75
+ purposeList,
76
+ language
77
+ }
78
+ });
79
+ exports.updatePurposeList = updatePurposeList;
20
80
  //# sourceMappingURL=actions.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_helpers","require","prefix","setPurposeConsent","exports","createActionCreator","namedParameters","setAllPurposeConsent","setVendorConsent","setAllVendorConsent","setSpecialFeatureConsent","setAllSpecialFeatureConsent","setGdprApplies","singleParameter","updatePurposeList","updateVendorListBegin","noParameters","updateVendorListSuccess","updateVendorListFailure"],"sourceRoot":"../../../../src","sources":["iab/tcf/actions.js"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAOA,MAAMC,MAAM,GAAG,kBAAkB;AAC1B,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,4BAAmB,EAClD,GAAEH,MAAO,sBAAqB,EAC/B,IAAAI,wBAAe,EAAC,WAAW,EAAE,cAAc,CAC5C,CAAC;AACM,MAAMC,oBAAoB,GAAAH,OAAA,CAAAG,oBAAA,GAAG,IAAAF,4BAAmB,EACrD,GAAEH,MAAO,0BAAyB,EACnC,IAAAI,wBAAe,EAAC,cAAc,CAC/B,CAAC;AACM,MAAME,gBAAgB,GAAAJ,OAAA,CAAAI,gBAAA,GAAG,IAAAH,4BAAmB,EACjD,GAAEH,MAAO,qBAAoB,EAC9B,IAAAI,wBAAe,EAAC,UAAU,EAAE,cAAc,CAC3C,CAAC;AACM,MAAMG,mBAAmB,GAAAL,OAAA,CAAAK,mBAAA,GAAG,IAAAJ,4BAAmB,EACpD,GAAEH,MAAO,yBAAwB,EAClC,IAAAI,wBAAe,EAAC,cAAc,CAC/B,CAAC;AACM,MAAMI,wBAAwB,GAAAN,OAAA,CAAAM,wBAAA,GAAG,IAAAL,4BAAmB,EACzD,GAAEH,MAAO,8BAA6B,EACvC,IAAAI,wBAAe,EAAC,kBAAkB,EAAE,cAAc,CACnD,CAAC;AACM,MAAMK,2BAA2B,GAAAP,OAAA,CAAAO,2BAAA,GAAG,IAAAN,4BAAmB,EAC5D,GAAEH,MAAO,kCAAiC,EAC3C,IAAAI,wBAAe,EAAC,cAAc,CAC/B,CAAC;AACM,MAAMM,cAAc,GAAAR,OAAA,CAAAQ,cAAA,GAAG,IAAAP,4BAAmB,EAC/C,GAAEH,MAAO,mBAAkB,EAC5BW,wBACD,CAAC;AACM,MAAMC,iBAAiB,GAAAV,OAAA,CAAAU,iBAAA,GAAG,IAAAT,4BAAmB,EAClD,GAAEH,MAAO,sBAAqB,EAC/B,IAAAI,wBAAe,EAAC,aAAa,EAAE,UAAU,CAC1C,CAAC;AACM,MAAMS,qBAAqB,GAAAX,OAAA,CAAAW,qBAAA,GAAG,IAAAV,4BAAmB,EACtD,GAAEH,MAAO,2BAA0B,EACpCc,qBACD,CAAC;AACM,MAAMC,uBAAuB,GAAAb,OAAA,CAAAa,uBAAA,GAAG,IAAAZ,4BAAmB,EACxD,GAAEH,MAAO,6BAA4B,EACtCW,wBACD,CAAC;AACM,MAAMK,uBAAuB,GAAAd,OAAA,CAAAc,uBAAA,GAAG,IAAAb,4BAAmB,EACxD,GAAEH,MAAO,6BAA4B,EACtCW,wBACD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["prefix","SET_TCSTRING","exports","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":"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","ignoreList":[]}