@osano/osano-cmp-react-native 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.dev.md +228 -1
- package/README.md +2 -268
- package/android/src/main/java/com/OsanoCMPSDK/OsanoCMPSDKModule.kt +55 -2
- package/ios/OsanoCmpSDK.mm +86 -1
- package/lib/commonjs/ConsentManager.js +155 -72
- package/lib/commonjs/ConsentManager.js.map +1 -1
- package/lib/commonjs/ConsentUiBuilder.js +18 -12
- package/lib/commonjs/ConsentUiBuilder.js.map +1 -1
- package/lib/commonjs/NativeOsanoCmpSdk.js +56 -0
- package/lib/commonjs/NativeOsanoCmpSdk.js.map +1 -0
- package/lib/commonjs/commands.js +10 -5
- package/lib/commonjs/commands.js.map +1 -1
- package/lib/commonjs/components/Button.js +144 -121
- package/lib/commonjs/components/Button.js.map +1 -1
- package/lib/commonjs/components/Checkbox.js +15 -13
- package/lib/commonjs/components/Checkbox.js.map +1 -1
- package/lib/commonjs/components/Divider.js +2 -1
- package/lib/commonjs/components/Divider.js.map +1 -1
- package/lib/commonjs/components/ExpansionPanel.js +19 -15
- package/lib/commonjs/components/ExpansionPanel.js.map +1 -1
- package/lib/commonjs/components/Link.js +7 -6
- package/lib/commonjs/components/Link.js.map +1 -1
- package/lib/commonjs/components/List.js +13 -9
- package/lib/commonjs/components/List.js.map +1 -1
- package/lib/commonjs/components/Locale.js +8 -3
- package/lib/commonjs/components/Locale.js.map +1 -1
- package/lib/commonjs/components/StoragePolicyLink.js +6 -5
- package/lib/commonjs/components/StoragePolicyLink.js.map +1 -1
- package/lib/commonjs/components/Toggle.js +21 -20
- package/lib/commonjs/components/Toggle.js.map +1 -1
- package/lib/commonjs/context.js +5 -4
- package/lib/commonjs/context.js.map +1 -1
- package/lib/commonjs/iab/tcf/constants.js +34 -1
- package/lib/commonjs/iab/tcf/constants.js.map +1 -1
- package/lib/commonjs/iab/tcf/iab-storage-utils.js +102 -0
- package/lib/commonjs/iab/tcf/iab-storage-utils.js.map +1 -0
- package/lib/commonjs/iab/tcf/index.js +1 -2
- package/lib/commonjs/iab/tcf/index.js.map +1 -1
- package/lib/commonjs/iab/tcf/middleware.js +26 -51
- package/lib/commonjs/iab/tcf/middleware.js.map +1 -1
- package/lib/commonjs/iab/tcf/reducer.js +1 -12
- package/lib/commonjs/iab/tcf/reducer.js.map +1 -1
- package/lib/commonjs/iab/tcf/selectors.js +1 -1
- package/lib/commonjs/iab/tcf/selectors.js.map +1 -1
- package/lib/commonjs/iab/tcf/v2.0/shared-constants.js +1 -2
- package/lib/commonjs/iab/tcf/v2.0/shared-constants.js.map +1 -1
- package/lib/commonjs/index.js +41 -19
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/locale/af.json +342 -323
- package/lib/commonjs/locale/ar.json +342 -323
- package/lib/commonjs/locale/bg.json +342 -323
- package/lib/commonjs/locale/ca.json +342 -323
- package/lib/commonjs/locale/cs.json +342 -323
- package/lib/commonjs/locale/da.json +342 -323
- package/lib/commonjs/locale/de-at.json +342 -323
- package/lib/commonjs/locale/de.json +342 -323
- package/lib/commonjs/locale/el.json +342 -323
- package/lib/commonjs/locale/en-au.json +342 -323
- package/lib/commonjs/locale/en-ca.json +342 -323
- package/lib/commonjs/locale/en-gb.json +342 -323
- package/lib/commonjs/locale/en.json +342 -323
- package/lib/commonjs/locale/es-mx.json +342 -323
- package/lib/commonjs/locale/es.json +342 -323
- package/lib/commonjs/locale/et.json +342 -323
- package/lib/commonjs/locale/fa.json +342 -323
- package/lib/commonjs/locale/fi.json +342 -323
- package/lib/commonjs/locale/fr-ca.json +342 -323
- package/lib/commonjs/locale/fr.json +342 -323
- package/lib/commonjs/locale/gd.json +342 -323
- package/lib/commonjs/locale/he.json +342 -323
- package/lib/commonjs/locale/hi.json +342 -323
- package/lib/commonjs/locale/hr.json +342 -323
- package/lib/commonjs/locale/hu.json +342 -323
- package/lib/commonjs/locale/hy.json +342 -323
- package/lib/commonjs/locale/id.json +342 -323
- package/lib/commonjs/locale/is.json +342 -323
- package/lib/commonjs/locale/it.json +342 -323
- package/lib/commonjs/locale/ja.json +342 -323
- package/lib/commonjs/locale/kk.json +342 -323
- package/lib/commonjs/locale/ko.json +342 -323
- package/lib/commonjs/locale/lt.json +342 -323
- package/lib/commonjs/locale/lv.json +342 -323
- package/lib/commonjs/locale/mi.json +342 -323
- package/lib/commonjs/locale/ms.json +342 -323
- package/lib/commonjs/locale/nb.json +342 -323
- package/lib/commonjs/locale/nl-be.json +342 -323
- package/lib/commonjs/locale/nl.json +342 -323
- package/lib/commonjs/locale/nn.json +342 -323
- package/lib/commonjs/locale/no.json +342 -323
- package/lib/commonjs/locale/pl.json +342 -323
- package/lib/commonjs/locale/pt-br.json +342 -323
- package/lib/commonjs/locale/pt.json +342 -323
- package/lib/commonjs/locale/ro.json +342 -323
- package/lib/commonjs/locale/ru.json +342 -323
- package/lib/commonjs/locale/sk.json +342 -323
- package/lib/commonjs/locale/sl.json +342 -323
- package/lib/commonjs/locale/sq.json +342 -323
- package/lib/commonjs/locale/sr.json +342 -323
- package/lib/commonjs/locale/sv.json +342 -323
- package/lib/commonjs/locale/th.json +342 -323
- package/lib/commonjs/locale/tl.json +342 -323
- package/lib/commonjs/locale/tr.json +342 -323
- package/lib/commonjs/locale/uk.json +342 -323
- package/lib/commonjs/locale/vi.json +342 -323
- package/lib/commonjs/locale/zh-hk.json +342 -323
- package/lib/commonjs/locale/zh-tw.json +342 -323
- package/lib/commonjs/locale/zh.json +342 -323
- package/lib/commonjs/locale/zu.json +342 -323
- package/lib/commonjs/native/OsanoCmp.js +24 -6
- package/lib/commonjs/native/OsanoCmp.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/services/consent.js +17 -40
- package/lib/commonjs/services/consent.js.map +1 -1
- package/lib/commonjs/services/google-consent-mode-mapper.js +109 -0
- package/lib/commonjs/services/google-consent-mode-mapper.js.map +1 -0
- package/lib/commonjs/types/google-consent-mode.js +73 -0
- package/lib/commonjs/types/google-consent-mode.js.map +1 -0
- package/lib/commonjs/utils/OsanoLogger.js +51 -0
- package/lib/commonjs/utils/OsanoLogger.js.map +1 -0
- package/lib/commonjs/utils/Translator.js.map +1 -1
- package/lib/commonjs/utils/index.js +7 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/views/Dialog/Buttons.js +52 -39
- package/lib/commonjs/views/Dialog/Buttons.js.map +1 -1
- package/lib/commonjs/views/Dialog/FirstLayerUsage.js +13 -10
- package/lib/commonjs/views/Dialog/FirstLayerUsage.js.map +1 -1
- package/lib/commonjs/views/Dialog/Message.js +3 -3
- package/lib/commonjs/views/Dialog/Message.js.map +1 -1
- package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js +21 -17
- package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js.map +1 -1
- package/lib/commonjs/views/Dialog/index.js +123 -129
- package/lib/commonjs/views/Dialog/index.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js +261 -211
- package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.Header.js +49 -43
- package/lib/commonjs/views/Drawer/Drawer.Header.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js +98 -80
- package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js +226 -193
- package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
- package/lib/commonjs/views/Drawer/index.js +78 -60
- package/lib/commonjs/views/Drawer/index.js.map +1 -1
- package/lib/module/ConsentManager.js +156 -70
- package/lib/module/ConsentManager.js.map +1 -1
- package/lib/module/ConsentUiBuilder.js +19 -10
- package/lib/module/ConsentUiBuilder.js.map +1 -1
- package/lib/module/NativeOsanoCmpSdk.js +52 -0
- package/lib/module/NativeOsanoCmpSdk.js.map +1 -0
- package/lib/module/actions.js +2 -0
- package/lib/module/actions.js.map +1 -1
- package/lib/module/commands.js +12 -5
- package/lib/module/commands.js.map +1 -1
- package/lib/module/components/Button.js +139 -112
- package/lib/module/components/Button.js.map +1 -1
- package/lib/module/components/Checkbox.js +16 -11
- package/lib/module/components/Checkbox.js.map +1 -1
- package/lib/module/components/Divider.js +4 -1
- package/lib/module/components/Divider.js.map +1 -1
- package/lib/module/components/ExpansionPanel.js +20 -13
- package/lib/module/components/ExpansionPanel.js.map +1 -1
- package/lib/module/components/Link.js +8 -4
- package/lib/module/components/Link.js.map +1 -1
- package/lib/module/components/List.js +15 -9
- package/lib/module/components/List.js.map +1 -1
- package/lib/module/components/Locale.js +9 -3
- package/lib/module/components/Locale.js.map +1 -1
- package/lib/module/components/StoragePolicyLink.js +7 -3
- package/lib/module/components/StoragePolicyLink.js.map +1 -1
- package/lib/module/components/Toggle.js +22 -18
- package/lib/module/components/Toggle.js.map +1 -1
- package/lib/module/constants.js +2 -0
- package/lib/module/constants.js.map +1 -1
- package/lib/module/context.js +7 -4
- package/lib/module/context.js.map +1 -1
- package/lib/module/flavors/index.js +2 -0
- package/lib/module/flavors/index.js.map +1 -1
- package/lib/module/hooks/useBoundCallback.js +2 -0
- package/lib/module/hooks/useBoundCallback.js.map +1 -1
- package/lib/module/hooks/useDeviceOrientation.js +2 -0
- package/lib/module/hooks/useDeviceOrientation.js.map +1 -1
- package/lib/module/hooks/usePrevious.js +2 -0
- package/lib/module/hooks/usePrevious.js.map +1 -1
- package/lib/module/hooks/useThunkReducer.js +2 -0
- package/lib/module/hooks/useThunkReducer.js.map +1 -1
- package/lib/module/iab/actions.js +2 -0
- package/lib/module/iab/actions.js.map +1 -1
- package/lib/module/iab/constants.js +2 -0
- package/lib/module/iab/constants.js.map +1 -1
- package/lib/module/iab/gpp/api.js +2 -0
- package/lib/module/iab/gpp/api.js.map +1 -1
- package/lib/module/iab/gpp/consent.js +2 -0
- package/lib/module/iab/gpp/consent.js.map +1 -1
- package/lib/module/iab/gpp/constants.js +2 -0
- package/lib/module/iab/gpp/constants.js.map +1 -1
- package/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/BooleanEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/BooleanEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/DatetimeEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/DatetimeEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.js +2 -0
- package/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.js.map +1 -1
- package/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/FixedIntegerEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/FixedIntegerEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/FixedStringEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/FixedStringEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.js +2 -0
- package/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/errors.js +2 -0
- package/lib/module/iab/gpp/encoders/errors.js.map +1 -1
- package/lib/module/iab/gpp/encoders/index.js +2 -0
- package/lib/module/iab/gpp/encoders/index.js.map +1 -1
- package/lib/module/iab/gpp/encoders/types.js +1 -1
- package/lib/module/iab/gpp/index.js +2 -0
- package/lib/module/iab/gpp/index.js.map +1 -1
- package/lib/module/iab/gpp/reducer.js +2 -0
- package/lib/module/iab/gpp/reducer.js.map +1 -1
- package/lib/module/iab/gpp/selectors.js +2 -0
- package/lib/module/iab/gpp/selectors.js.map +1 -1
- package/lib/module/iab/gpp/types.js +1 -1
- package/lib/module/iab/gpp/v1/constants.js +2 -0
- package/lib/module/iab/gpp/v1/constants.js.map +1 -1
- package/lib/module/iab/gpp/v1/index.js +2 -0
- package/lib/module/iab/gpp/v1/index.js.map +1 -1
- package/lib/module/iab/index.js +2 -0
- package/lib/module/iab/index.js.map +1 -1
- package/lib/module/iab/reducer.js +2 -0
- package/lib/module/iab/reducer.js.map +1 -1
- package/lib/module/iab/tcf/actions.js +2 -0
- package/lib/module/iab/tcf/actions.js.map +1 -1
- package/lib/module/iab/tcf/consent.js +2 -0
- package/lib/module/iab/tcf/consent.js.map +1 -1
- package/lib/module/iab/tcf/constants.js +34 -0
- package/lib/module/iab/tcf/constants.js.map +1 -1
- package/lib/module/iab/tcf/helpers.js +2 -0
- package/lib/module/iab/tcf/helpers.js.map +1 -1
- package/lib/module/iab/tcf/iab-storage-utils.js +91 -0
- package/lib/module/iab/tcf/iab-storage-utils.js.map +1 -0
- package/lib/module/iab/tcf/index.js +2 -0
- package/lib/module/iab/tcf/index.js.map +1 -1
- package/lib/module/iab/tcf/middleware.js +28 -51
- package/lib/module/iab/tcf/middleware.js.map +1 -1
- package/lib/module/iab/tcf/reducer.js +3 -12
- package/lib/module/iab/tcf/reducer.js.map +1 -1
- package/lib/module/iab/tcf/selectors.js +3 -1
- package/lib/module/iab/tcf/selectors.js.map +1 -1
- package/lib/module/iab/tcf/types.js +2 -0
- package/lib/module/iab/tcf/v2.0/encoders.js +2 -0
- package/lib/module/iab/tcf/v2.0/encoders.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/formatters.js +2 -0
- package/lib/module/iab/tcf/v2.0/formatters.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/index.js +2 -0
- package/lib/module/iab/tcf/v2.0/index.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/shared-constants.js +2 -0
- package/lib/module/iab/tcf/v2.0/shared-constants.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/tcfcav1-constants.js +2 -0
- package/lib/module/iab/tcf/v2.0/tcfcav1-constants.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/tcfeuv2-constants.js +2 -0
- package/lib/module/iab/tcf/v2.0/tcfeuv2-constants.js.map +1 -1
- package/lib/module/iab/types.js +2 -0
- package/lib/module/iab/usp/api.js +2 -0
- package/lib/module/iab/usp/api.js.map +1 -1
- package/lib/module/iab/usp/consent.js +2 -0
- package/lib/module/iab/usp/consent.js.map +1 -1
- package/lib/module/iab/usp/constants.js +2 -0
- package/lib/module/iab/usp/constants.js.map +1 -1
- package/lib/module/iab/usp/index.js +2 -0
- package/lib/module/iab/usp/index.js.map +1 -1
- package/lib/module/iab/usp/reducer.js +2 -0
- package/lib/module/iab/usp/reducer.js.map +1 -1
- package/lib/module/iab/usp/selectors.js +2 -0
- package/lib/module/iab/usp/selectors.js.map +1 -1
- package/lib/module/iab/usp/types.js +1 -1
- package/lib/module/iab/usp/v1/constants.js +2 -0
- package/lib/module/iab/usp/v1/constants.js.map +1 -1
- package/lib/module/iab/usp/v1/index.js +2 -0
- package/lib/module/iab/usp/v1/index.js.map +1 -1
- package/lib/module/iab/utilities.js +2 -0
- package/lib/module/iab/utilities.js.map +1 -1
- package/lib/module/index.js +36 -17
- package/lib/module/index.js.map +1 -1
- package/lib/module/locale/af.json +342 -323
- package/lib/module/locale/ar.json +342 -323
- package/lib/module/locale/bg.json +342 -323
- package/lib/module/locale/ca.json +342 -323
- package/lib/module/locale/cs.json +342 -323
- package/lib/module/locale/da.json +342 -323
- package/lib/module/locale/de-at.json +342 -323
- package/lib/module/locale/de.json +342 -323
- package/lib/module/locale/el.json +342 -323
- package/lib/module/locale/en-au.json +342 -323
- package/lib/module/locale/en-ca.json +342 -323
- package/lib/module/locale/en-gb.json +342 -323
- package/lib/module/locale/en.json +342 -323
- package/lib/module/locale/es-mx.json +342 -323
- package/lib/module/locale/es.json +342 -323
- package/lib/module/locale/et.json +342 -323
- package/lib/module/locale/fa.json +342 -323
- package/lib/module/locale/fi.json +342 -323
- package/lib/module/locale/fr-ca.json +342 -323
- package/lib/module/locale/fr.json +342 -323
- package/lib/module/locale/gd.json +342 -323
- package/lib/module/locale/he.json +342 -323
- package/lib/module/locale/hi.json +342 -323
- package/lib/module/locale/hr.json +342 -323
- package/lib/module/locale/hu.json +342 -323
- package/lib/module/locale/hy.json +342 -323
- package/lib/module/locale/id.json +342 -323
- package/lib/module/locale/index.js +2 -0
- package/lib/module/locale/index.js.map +1 -1
- package/lib/module/locale/is.json +342 -323
- package/lib/module/locale/it.json +342 -323
- package/lib/module/locale/ja.json +342 -323
- package/lib/module/locale/kk.json +342 -323
- package/lib/module/locale/ko.json +342 -323
- package/lib/module/locale/lt.json +342 -323
- package/lib/module/locale/lv.json +342 -323
- package/lib/module/locale/mi.json +342 -323
- package/lib/module/locale/ms.json +342 -323
- package/lib/module/locale/nb.json +342 -323
- package/lib/module/locale/nl-be.json +342 -323
- package/lib/module/locale/nl.json +342 -323
- package/lib/module/locale/nn.json +342 -323
- package/lib/module/locale/no.json +342 -323
- package/lib/module/locale/pl.json +342 -323
- package/lib/module/locale/pt-br.json +342 -323
- package/lib/module/locale/pt.json +342 -323
- package/lib/module/locale/ro.json +342 -323
- package/lib/module/locale/ru.json +342 -323
- package/lib/module/locale/sk.json +342 -323
- package/lib/module/locale/sl.json +342 -323
- package/lib/module/locale/sq.json +342 -323
- package/lib/module/locale/sr.json +342 -323
- package/lib/module/locale/sv.json +342 -323
- package/lib/module/locale/th.json +342 -323
- package/lib/module/locale/tl.json +342 -323
- package/lib/module/locale/tr.json +342 -323
- package/lib/module/locale/uk.json +342 -323
- package/lib/module/locale/vi.json +342 -323
- package/lib/module/locale/zh-hk.json +342 -323
- package/lib/module/locale/zh-tw.json +342 -323
- package/lib/module/locale/zh.json +342 -323
- package/lib/module/locale/zu.json +342 -323
- package/lib/module/native/OsanoCmp.js +21 -6
- package/lib/module/native/OsanoCmp.js.map +1 -1
- package/lib/module/reducer.js +2 -0
- package/lib/module/reducer.js.map +1 -1
- package/lib/module/selectors.js +2 -0
- package/lib/module/selectors.js.map +1 -1
- package/lib/module/services/consent.js +20 -42
- package/lib/module/services/consent.js.map +1 -1
- package/lib/module/services/disclosures.js +2 -0
- package/lib/module/services/disclosures.js.map +1 -1
- package/lib/module/services/google-consent-mode-mapper.js +105 -0
- package/lib/module/services/google-consent-mode-mapper.js.map +1 -0
- package/lib/module/services/locale.js +2 -0
- package/lib/module/services/locale.js.map +1 -1
- package/lib/module/styles.js +2 -0
- package/lib/module/styles.js.map +1 -1
- package/lib/module/types/consent-config.d.js +2 -0
- package/lib/module/types/env.d.js +1 -1
- package/lib/module/types/google-consent-mode.js +72 -0
- package/lib/module/types/google-consent-mode.js.map +1 -0
- package/lib/module/types/index.d.js +2 -0
- package/lib/module/types/store.d.js +2 -0
- package/lib/module/utils/API.js +2 -0
- package/lib/module/utils/API.js.map +1 -1
- package/lib/module/utils/Color.js +2 -0
- package/lib/module/utils/Color.js.map +1 -1
- package/lib/module/utils/EventEmitter.js +2 -0
- package/lib/module/utils/EventEmitter.js.map +1 -1
- package/lib/module/utils/OsanoLogger.js +46 -0
- package/lib/module/utils/OsanoLogger.js.map +1 -0
- package/lib/module/utils/Translator.js +2 -0
- package/lib/module/utils/Translator.js.map +1 -1
- package/lib/module/utils/index.js +3 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/types.js +1 -1
- package/lib/module/views/Dialog/Buttons.js +54 -38
- package/lib/module/views/Dialog/Buttons.js.map +1 -1
- package/lib/module/views/Dialog/FirstLayerUsage.js +14 -8
- package/lib/module/views/Dialog/FirstLayerUsage.js.map +1 -1
- package/lib/module/views/Dialog/Message.js +4 -1
- package/lib/module/views/Dialog/Message.js.map +1 -1
- package/lib/module/views/Dialog/PreferenceManagementDeepLinks.js +22 -15
- package/lib/module/views/Dialog/PreferenceManagementDeepLinks.js.map +1 -1
- package/lib/module/views/Dialog/index.js +125 -128
- package/lib/module/views/Dialog/index.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.ConsentCategories.js +260 -208
- package/lib/module/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.Header.js +50 -41
- package/lib/module/views/Drawer/Drawer.Header.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js +99 -78
- package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.Iab.Vendors.js +227 -191
- package/lib/module/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
- package/lib/module/views/Drawer/index.js +80 -60
- package/lib/module/views/Drawer/index.js.map +1 -1
- package/lib/typescript/src/ConsentManager.d.ts +26 -10
- package/lib/typescript/src/ConsentManager.d.ts.map +1 -1
- package/lib/typescript/src/ConsentUiBuilder.d.ts +1 -1
- package/lib/typescript/src/ConsentUiBuilder.d.ts.map +1 -1
- package/lib/typescript/src/NativeOsanoCmpSdk.d.ts +14 -0
- package/lib/typescript/src/NativeOsanoCmpSdk.d.ts.map +1 -0
- package/lib/typescript/src/commands.d.ts.map +1 -1
- package/lib/typescript/src/components/Button.d.ts +8 -8
- package/lib/typescript/src/components/Button.d.ts.map +1 -1
- package/lib/typescript/src/components/Locale.d.ts +2 -1
- package/lib/typescript/src/components/Locale.d.ts.map +1 -1
- package/lib/typescript/src/context.d.ts +4 -2
- package/lib/typescript/src/context.d.ts.map +1 -1
- package/lib/typescript/src/iab/gpp/encoders/BooleanEncoder.d.ts +2 -2
- package/lib/typescript/src/iab/tcf/constants.d.ts +32 -0
- package/lib/typescript/src/iab/tcf/constants.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/iab-storage-utils.d.ts +24 -0
- package/lib/typescript/src/iab/tcf/iab-storage-utils.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/middleware.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/reducer.d.ts.map +1 -1
- package/lib/typescript/src/iab/usp/constants.d.ts +1 -1
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/native/OsanoCmp.d.ts +4 -0
- package/lib/typescript/src/native/OsanoCmp.d.ts.map +1 -1
- package/lib/typescript/src/services/consent.d.ts.map +1 -1
- package/lib/typescript/src/services/google-consent-mode-mapper.d.ts +66 -0
- package/lib/typescript/src/services/google-consent-mode-mapper.d.ts.map +1 -0
- package/lib/typescript/src/types/google-consent-mode.d.ts +77 -0
- package/lib/typescript/src/types/google-consent-mode.d.ts.map +1 -0
- package/lib/typescript/src/utils/OsanoLogger.d.ts +15 -0
- package/lib/typescript/src/utils/OsanoLogger.d.ts.map +1 -0
- package/lib/typescript/src/utils/Translator.d.ts +1 -1
- package/lib/typescript/src/utils/Translator.d.ts.map +1 -1
- package/lib/typescript/src/utils/index.d.ts +1 -0
- package/lib/typescript/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/src/views/Dialog/Buttons.d.ts +4 -2
- package/lib/typescript/src/views/Dialog/Buttons.d.ts.map +1 -1
- package/lib/typescript/src/views/Dialog/index.d.ts +1 -1
- package/lib/typescript/src/views/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/src/views/Drawer/Drawer.ConsentCategories.d.ts.map +1 -1
- package/lib/typescript/src/views/Drawer/Drawer.Header.d.ts +1 -1
- package/lib/typescript/src/views/Drawer/Drawer.Header.d.ts.map +1 -1
- package/lib/typescript/src/views/Drawer/Drawer.Iab.Vendors.d.ts.map +1 -1
- package/lib/typescript/src/views/Drawer/index.d.ts.map +1 -1
- package/package.json +16 -7
- package/src/ConsentManager.ts +211 -91
- package/src/ConsentUiBuilder.tsx +23 -13
- package/src/NativeOsanoCmpSdk.ts +64 -0
- package/src/commands.ts +11 -8
- package/src/components/Button.tsx +130 -96
- package/src/components/Locale.tsx +27 -27
- package/src/constants.ts +1 -1
- package/src/context.ts +6 -3
- package/src/iab/tcf/constants.ts +46 -0
- package/src/iab/tcf/iab-storage-utils.ts +166 -0
- package/src/iab/tcf/middleware.ts +41 -74
- package/src/iab/tcf/reducer.ts +4 -17
- package/src/index.tsx +35 -8
- package/src/locale/af.json +342 -323
- package/src/locale/ar.json +342 -323
- package/src/locale/bg.json +342 -323
- package/src/locale/ca.json +342 -323
- package/src/locale/cs.json +342 -323
- package/src/locale/da.json +342 -323
- package/src/locale/de-at.json +342 -323
- package/src/locale/de.json +342 -323
- package/src/locale/el.json +342 -323
- package/src/locale/en-au.json +342 -323
- package/src/locale/en-ca.json +342 -323
- package/src/locale/en-gb.json +342 -323
- package/src/locale/en.json +342 -323
- package/src/locale/es-mx.json +342 -323
- package/src/locale/es.json +342 -323
- package/src/locale/et.json +342 -323
- package/src/locale/fa.json +342 -323
- package/src/locale/fi.json +342 -323
- package/src/locale/fr-ca.json +342 -323
- package/src/locale/fr.json +342 -323
- package/src/locale/gd.json +342 -323
- package/src/locale/he.json +342 -323
- package/src/locale/hi.json +342 -323
- package/src/locale/hr.json +342 -323
- package/src/locale/hu.json +342 -323
- package/src/locale/hy.json +342 -323
- package/src/locale/id.json +342 -323
- package/src/locale/is.json +342 -323
- package/src/locale/it.json +342 -323
- package/src/locale/ja.json +342 -323
- package/src/locale/kk.json +342 -323
- package/src/locale/ko.json +342 -323
- package/src/locale/lt.json +342 -323
- package/src/locale/lv.json +342 -323
- package/src/locale/mi.json +342 -323
- package/src/locale/ms.json +342 -323
- package/src/locale/nb.json +342 -323
- package/src/locale/nl-be.json +342 -323
- package/src/locale/nl.json +342 -323
- package/src/locale/nn.json +342 -323
- package/src/locale/no.json +342 -323
- package/src/locale/pl.json +342 -323
- package/src/locale/pt-br.json +342 -323
- package/src/locale/pt.json +342 -323
- package/src/locale/ro.json +342 -323
- package/src/locale/ru.json +342 -323
- package/src/locale/sk.json +342 -323
- package/src/locale/sl.json +342 -323
- package/src/locale/sq.json +342 -323
- package/src/locale/sr.json +342 -323
- package/src/locale/sv.json +342 -323
- package/src/locale/th.json +342 -323
- package/src/locale/tl.json +342 -323
- package/src/locale/tr.json +342 -323
- package/src/locale/uk.json +342 -323
- package/src/locale/vi.json +342 -323
- package/src/locale/zh-hk.json +342 -323
- package/src/locale/zh-tw.json +342 -323
- package/src/locale/zh.json +342 -323
- package/src/locale/zu.json +342 -323
- package/src/native/OsanoCmp.ts +36 -11
- package/src/services/consent.ts +33 -50
- package/src/services/google-consent-mode-mapper.ts +122 -0
- package/src/types/google-consent-mode.ts +122 -0
- package/src/types/index.d.ts +6 -4
- package/src/utils/OsanoLogger.ts +53 -0
- package/src/utils/Translator.ts +1 -1
- package/src/utils/index.ts +2 -0
- package/src/views/Dialog/Buttons.tsx +33 -23
- package/src/views/Dialog/index.tsx +66 -83
- package/src/views/Drawer/Drawer.ConsentCategories.tsx +25 -25
- package/src/views/Drawer/Drawer.Header.tsx +6 -6
- package/src/views/Drawer/Drawer.Iab.Vendors.tsx +10 -18
- package/src/views/Drawer/index.tsx +83 -64
- package/lib/typescript/lib/commonjs/ConsentManager.d.ts +0 -194
- package/lib/typescript/lib/commonjs/ConsentManager.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/ConsentUiBuilder.d.ts +0 -3
- package/lib/typescript/lib/commonjs/ConsentUiBuilder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/actions.d.ts +0 -66
- package/lib/typescript/lib/commonjs/actions.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/commands.d.ts +0 -4
- package/lib/typescript/lib/commonjs/commands.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Button.d.ts +0 -11
- package/lib/typescript/lib/commonjs/components/Button.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Checkbox.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/Checkbox.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Divider.d.ts +0 -3
- package/lib/typescript/lib/commonjs/components/Divider.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/ExpansionPanel.d.ts +0 -8
- package/lib/typescript/lib/commonjs/components/ExpansionPanel.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Link.d.ts +0 -3
- package/lib/typescript/lib/commonjs/components/Link.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/List.d.ts +0 -3
- package/lib/typescript/lib/commonjs/components/List.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Locale.d.ts +0 -6
- package/lib/typescript/lib/commonjs/components/Locale.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/StoragePolicyLink.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/StoragePolicyLink.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Toggle.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/Toggle.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/constants.d.ts +0 -20
- package/lib/typescript/lib/commonjs/constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/context.d.ts +0 -4
- package/lib/typescript/lib/commonjs/context.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/flavors/index.d.ts +0 -122
- package/lib/typescript/lib/commonjs/flavors/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/hooks/useBoundCallback.d.ts +0 -18
- package/lib/typescript/lib/commonjs/hooks/useBoundCallback.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/hooks/useDeviceOrientation.d.ts +0 -4
- package/lib/typescript/lib/commonjs/hooks/useDeviceOrientation.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/hooks/usePrevious.d.ts +0 -3
- package/lib/typescript/lib/commonjs/hooks/usePrevious.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/hooks/useThunkReducer.d.ts +0 -8
- package/lib/typescript/lib/commonjs/hooks/useThunkReducer.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/actions.d.ts +0 -10
- package/lib/typescript/lib/commonjs/iab/actions.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/constants.d.ts +0 -5
- package/lib/typescript/lib/commonjs/iab/constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/api.d.ts +0 -30
- package/lib/typescript/lib/commonjs/iab/gpp/api.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/consent.d.ts +0 -25
- package/lib/typescript/lib/commonjs/iab/gpp/consent.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/constants.d.ts +0 -26
- package/lib/typescript/lib/commonjs/iab/gpp/constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts +0 -9
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/BooleanEncoder.d.ts +0 -32
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/BooleanEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +0 -10
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/DatetimeEncoder.d.ts +0 -29
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/DatetimeEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +0 -19
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +0 -29
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +0 -29
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +0 -29
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +0 -7
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.d.ts +0 -29
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +0 -29
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +0 -29
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedStringEncoder.d.ts +0 -29
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedStringEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +0 -10
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/errors.d.ts +0 -17
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/errors.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/index.d.ts +0 -16
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/types.d.ts +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/types.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/index.d.ts +0 -9
- package/lib/typescript/lib/commonjs/iab/gpp/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/reducer.d.ts +0 -7
- package/lib/typescript/lib/commonjs/iab/gpp/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/selectors.d.ts +0 -7
- package/lib/typescript/lib/commonjs/iab/gpp/selectors.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/types.d.ts +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/types.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/v1/constants.d.ts +0 -13
- package/lib/typescript/lib/commonjs/iab/gpp/v1/constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/gpp/v1/index.d.ts +0 -14
- package/lib/typescript/lib/commonjs/iab/gpp/v1/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/index.d.ts +0 -3
- package/lib/typescript/lib/commonjs/iab/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/reducer.d.ts +0 -6
- package/lib/typescript/lib/commonjs/iab/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/actions.d.ts +0 -64
- package/lib/typescript/lib/commonjs/iab/tcf/actions.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/consent.d.ts +0 -59
- package/lib/typescript/lib/commonjs/iab/tcf/consent.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/constants.d.ts +0 -22
- package/lib/typescript/lib/commonjs/iab/tcf/constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/helpers.d.ts +0 -9
- package/lib/typescript/lib/commonjs/iab/tcf/helpers.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/index.d.ts +0 -4
- package/lib/typescript/lib/commonjs/iab/tcf/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/middleware.d.ts +0 -4
- package/lib/typescript/lib/commonjs/iab/tcf/middleware.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/reducer.d.ts +0 -22
- package/lib/typescript/lib/commonjs/iab/tcf/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/selectors.d.ts +0 -48
- package/lib/typescript/lib/commonjs/iab/tcf/selectors.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/types.d.ts +0 -2
- package/lib/typescript/lib/commonjs/iab/tcf/types.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/encoders.d.ts +0 -14
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/encoders.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/formatters.d.ts +0 -5
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/formatters.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/index.d.ts +0 -191
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/shared-constants.d.ts +0 -32
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/shared-constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.d.ts +0 -43
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.d.ts +0 -48
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/types.d.ts +0 -2
- package/lib/typescript/lib/commonjs/iab/types.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/api.d.ts +0 -6
- package/lib/typescript/lib/commonjs/iab/usp/api.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/consent.d.ts +0 -27
- package/lib/typescript/lib/commonjs/iab/usp/consent.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/constants.d.ts +0 -109
- package/lib/typescript/lib/commonjs/iab/usp/constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/index.d.ts +0 -9
- package/lib/typescript/lib/commonjs/iab/usp/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/reducer.d.ts +0 -14
- package/lib/typescript/lib/commonjs/iab/usp/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/selectors.d.ts +0 -10
- package/lib/typescript/lib/commonjs/iab/usp/selectors.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/types.d.ts +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/types.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/v1/constants.d.ts +0 -13
- package/lib/typescript/lib/commonjs/iab/usp/v1/constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/usp/v1/index.d.ts +0 -12
- package/lib/typescript/lib/commonjs/iab/usp/v1/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/utilities.d.ts +0 -3
- package/lib/typescript/lib/commonjs/iab/utilities.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/index.d.ts +0 -4
- package/lib/typescript/lib/commonjs/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/locale/index.d.ts +0 -62
- package/lib/typescript/lib/commonjs/locale/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/native/OsanoCmp.d.ts +0 -6
- package/lib/typescript/lib/commonjs/native/OsanoCmp.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/reducer.d.ts +0 -29
- package/lib/typescript/lib/commonjs/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/selectors.d.ts +0 -16
- package/lib/typescript/lib/commonjs/selectors.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/services/consent.d.ts +0 -11
- package/lib/typescript/lib/commonjs/services/consent.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/services/disclosures.d.ts +0 -3
- package/lib/typescript/lib/commonjs/services/disclosures.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/services/locale.d.ts +0 -4
- package/lib/typescript/lib/commonjs/services/locale.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/styles.d.ts +0 -141
- package/lib/typescript/lib/commonjs/styles.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/types/consent-config.d.d.ts +0 -2
- package/lib/typescript/lib/commonjs/types/consent-config.d.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/types/env.d.d.ts +0 -1
- package/lib/typescript/lib/commonjs/types/env.d.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/types/index.d.d.ts +0 -2
- package/lib/typescript/lib/commonjs/types/index.d.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/types/store.d.d.ts +0 -2
- package/lib/typescript/lib/commonjs/types/store.d.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/utils/API.d.ts +0 -7
- package/lib/typescript/lib/commonjs/utils/API.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/utils/Color.d.ts +0 -13
- package/lib/typescript/lib/commonjs/utils/Color.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/utils/EventEmitter.d.ts +0 -16
- package/lib/typescript/lib/commonjs/utils/EventEmitter.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/utils/Translator.d.ts +0 -54
- package/lib/typescript/lib/commonjs/utils/Translator.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/utils/index.d.ts +0 -6
- package/lib/typescript/lib/commonjs/utils/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/utils/types.d.ts +0 -1
- package/lib/typescript/lib/commonjs/utils/types.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Dialog/Buttons.d.ts +0 -4
- package/lib/typescript/lib/commonjs/views/Dialog/Buttons.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Dialog/FirstLayerUsage.d.ts +0 -4
- package/lib/typescript/lib/commonjs/views/Dialog/FirstLayerUsage.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Dialog/Message.d.ts +0 -4
- package/lib/typescript/lib/commonjs/views/Dialog/Message.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.d.ts +0 -4
- package/lib/typescript/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Dialog/index.d.ts +0 -4
- package/lib/typescript/lib/commonjs/views/Dialog/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.ConsentCategories.d.ts +0 -4
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.ConsentCategories.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Header.d.ts +0 -4
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Header.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.d.ts +0 -4
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.d.ts +0 -4
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/views/Drawer/index.d.ts +0 -3
- package/lib/typescript/lib/commonjs/views/Drawer/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/ConsentManager.d.ts +0 -351
- package/lib/typescript/lib/module/ConsentManager.d.ts.map +0 -1
- package/lib/typescript/lib/module/ConsentUiBuilder.d.ts +0 -174
- package/lib/typescript/lib/module/ConsentUiBuilder.d.ts.map +0 -1
- package/lib/typescript/lib/module/actions.d.ts +0 -65
- package/lib/typescript/lib/module/actions.d.ts.map +0 -1
- package/lib/typescript/lib/module/commands.d.ts +0 -3
- package/lib/typescript/lib/module/commands.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Button.d.ts +0 -11
- package/lib/typescript/lib/module/components/Button.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Checkbox.d.ts +0 -4
- package/lib/typescript/lib/module/components/Checkbox.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Divider.d.ts +0 -4
- package/lib/typescript/lib/module/components/Divider.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/ExpansionPanel.d.ts +0 -9
- package/lib/typescript/lib/module/components/ExpansionPanel.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Link.d.ts +0 -4
- package/lib/typescript/lib/module/components/Link.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/List.d.ts +0 -4
- package/lib/typescript/lib/module/components/List.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Locale.d.ts +0 -5
- package/lib/typescript/lib/module/components/Locale.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/StoragePolicyLink.d.ts +0 -4
- package/lib/typescript/lib/module/components/StoragePolicyLink.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Toggle.d.ts +0 -4
- package/lib/typescript/lib/module/components/Toggle.d.ts.map +0 -1
- package/lib/typescript/lib/module/constants.d.ts +0 -19
- package/lib/typescript/lib/module/constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/context.d.ts +0 -186
- package/lib/typescript/lib/module/context.d.ts.map +0 -1
- package/lib/typescript/lib/module/flavors/index.d.ts +0 -17
- package/lib/typescript/lib/module/flavors/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/hooks/useBoundCallback.d.ts +0 -17
- package/lib/typescript/lib/module/hooks/useBoundCallback.d.ts.map +0 -1
- package/lib/typescript/lib/module/hooks/useDeviceOrientation.d.ts +0 -3
- package/lib/typescript/lib/module/hooks/useDeviceOrientation.d.ts.map +0 -1
- package/lib/typescript/lib/module/hooks/usePrevious.d.ts +0 -2
- package/lib/typescript/lib/module/hooks/usePrevious.d.ts.map +0 -1
- package/lib/typescript/lib/module/hooks/useThunkReducer.d.ts +0 -7
- package/lib/typescript/lib/module/hooks/useThunkReducer.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/actions.d.ts +0 -9
- package/lib/typescript/lib/module/iab/actions.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/constants.d.ts +0 -4
- package/lib/typescript/lib/module/iab/constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/api.d.ts +0 -28
- package/lib/typescript/lib/module/iab/gpp/api.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/consent.d.ts +0 -24
- package/lib/typescript/lib/module/iab/gpp/consent.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/constants.d.ts +0 -37
- package/lib/typescript/lib/module/iab/gpp/constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/BooleanEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/BooleanEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +0 -9
- package/lib/typescript/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/DatetimeEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/DatetimeEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +0 -18
- package/lib/typescript/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +0 -6
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedStringEncoder.d.ts +0 -8
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedStringEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +0 -9
- package/lib/typescript/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/errors.d.ts +0 -16
- package/lib/typescript/lib/module/iab/gpp/encoders/errors.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/index.d.ts +0 -15
- package/lib/typescript/lib/module/iab/gpp/encoders/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/types.d.ts +0 -1
- package/lib/typescript/lib/module/iab/gpp/encoders/types.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/index.d.ts +0 -10
- package/lib/typescript/lib/module/iab/gpp/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/reducer.d.ts +0 -6
- package/lib/typescript/lib/module/iab/gpp/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/selectors.d.ts +0 -6
- package/lib/typescript/lib/module/iab/gpp/selectors.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/types.d.ts +0 -1
- package/lib/typescript/lib/module/iab/gpp/types.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/v1/constants.d.ts +0 -9
- package/lib/typescript/lib/module/iab/gpp/v1/constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/gpp/v1/index.d.ts +0 -19
- package/lib/typescript/lib/module/iab/gpp/v1/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/index.d.ts +0 -2
- package/lib/typescript/lib/module/iab/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/reducer.d.ts +0 -5
- package/lib/typescript/lib/module/iab/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/actions.d.ts +0 -63
- package/lib/typescript/lib/module/iab/tcf/actions.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/consent.d.ts +0 -58
- package/lib/typescript/lib/module/iab/tcf/consent.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/constants.d.ts +0 -21
- package/lib/typescript/lib/module/iab/tcf/constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/helpers.d.ts +0 -8
- package/lib/typescript/lib/module/iab/tcf/helpers.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/index.d.ts +0 -303
- package/lib/typescript/lib/module/iab/tcf/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/middleware.d.ts +0 -3
- package/lib/typescript/lib/module/iab/tcf/middleware.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/reducer.d.ts +0 -20
- package/lib/typescript/lib/module/iab/tcf/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/selectors.d.ts +0 -47
- package/lib/typescript/lib/module/iab/tcf/selectors.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/types.d.ts +0 -2
- package/lib/typescript/lib/module/iab/tcf/types.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/v2.0/encoders.d.ts +0 -13
- package/lib/typescript/lib/module/iab/tcf/v2.0/encoders.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/v2.0/formatters.d.ts +0 -4
- package/lib/typescript/lib/module/iab/tcf/v2.0/formatters.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/v2.0/index.d.ts +0 -308
- package/lib/typescript/lib/module/iab/tcf/v2.0/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/v2.0/shared-constants.d.ts +0 -80
- package/lib/typescript/lib/module/iab/tcf/v2.0/shared-constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/v2.0/tcfcav1-constants.d.ts +0 -104
- package/lib/typescript/lib/module/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/v2.0/tcfeuv2-constants.d.ts +0 -103
- package/lib/typescript/lib/module/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/types.d.ts +0 -2
- package/lib/typescript/lib/module/iab/types.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/usp/api.d.ts +0 -4
- package/lib/typescript/lib/module/iab/usp/api.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/usp/consent.d.ts +0 -13
- package/lib/typescript/lib/module/iab/usp/consent.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/usp/constants.d.ts +0 -77
- package/lib/typescript/lib/module/iab/usp/constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/usp/index.d.ts +0 -10
- package/lib/typescript/lib/module/iab/usp/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/usp/reducer.d.ts +0 -13
- package/lib/typescript/lib/module/iab/usp/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/usp/selectors.d.ts +0 -9
- package/lib/typescript/lib/module/iab/usp/selectors.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/usp/types.d.ts +0 -1
- package/lib/typescript/lib/module/iab/usp/types.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/usp/v1/constants.d.ts +0 -9
- package/lib/typescript/lib/module/iab/usp/v1/constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/usp/v1/index.d.ts +0 -16
- package/lib/typescript/lib/module/iab/usp/v1/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/utilities.d.ts +0 -2
- package/lib/typescript/lib/module/iab/utilities.d.ts.map +0 -1
- package/lib/typescript/lib/module/index.d.ts +0 -4
- package/lib/typescript/lib/module/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/locale/index.d.ts +0 -61
- package/lib/typescript/lib/module/locale/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/native/OsanoCmp.d.ts +0 -5
- package/lib/typescript/lib/module/native/OsanoCmp.d.ts.map +0 -1
- package/lib/typescript/lib/module/reducer.d.ts +0 -28
- package/lib/typescript/lib/module/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/module/selectors.d.ts +0 -15
- package/lib/typescript/lib/module/selectors.d.ts.map +0 -1
- package/lib/typescript/lib/module/services/consent.d.ts +0 -10
- package/lib/typescript/lib/module/services/consent.d.ts.map +0 -1
- package/lib/typescript/lib/module/services/disclosures.d.ts +0 -2
- package/lib/typescript/lib/module/services/disclosures.d.ts.map +0 -1
- package/lib/typescript/lib/module/services/locale.d.ts +0 -3
- package/lib/typescript/lib/module/services/locale.d.ts.map +0 -1
- package/lib/typescript/lib/module/styles.d.ts +0 -140
- package/lib/typescript/lib/module/styles.d.ts.map +0 -1
- package/lib/typescript/lib/module/types/consent-config.d.d.ts +0 -2
- package/lib/typescript/lib/module/types/consent-config.d.d.ts.map +0 -1
- package/lib/typescript/lib/module/types/env.d.d.ts +0 -1
- package/lib/typescript/lib/module/types/env.d.d.ts.map +0 -1
- package/lib/typescript/lib/module/types/index.d.d.ts +0 -2
- package/lib/typescript/lib/module/types/index.d.d.ts.map +0 -1
- package/lib/typescript/lib/module/types/store.d.d.ts +0 -2
- package/lib/typescript/lib/module/types/store.d.d.ts.map +0 -1
- package/lib/typescript/lib/module/utils/API.d.ts +0 -6
- package/lib/typescript/lib/module/utils/API.d.ts.map +0 -1
- package/lib/typescript/lib/module/utils/Color.d.ts +0 -12
- package/lib/typescript/lib/module/utils/Color.d.ts.map +0 -1
- package/lib/typescript/lib/module/utils/EventEmitter.d.ts +0 -15
- package/lib/typescript/lib/module/utils/EventEmitter.d.ts.map +0 -1
- package/lib/typescript/lib/module/utils/Translator.d.ts +0 -52
- package/lib/typescript/lib/module/utils/Translator.d.ts.map +0 -1
- package/lib/typescript/lib/module/utils/index.d.ts +0 -5
- package/lib/typescript/lib/module/utils/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/utils/types.d.ts +0 -1
- package/lib/typescript/lib/module/utils/types.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Dialog/Buttons.d.ts +0 -5
- package/lib/typescript/lib/module/views/Dialog/Buttons.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Dialog/FirstLayerUsage.d.ts +0 -5
- package/lib/typescript/lib/module/views/Dialog/FirstLayerUsage.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Dialog/Message.d.ts +0 -4
- package/lib/typescript/lib/module/views/Dialog/Message.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Dialog/PreferenceManagementDeepLinks.d.ts +0 -6
- package/lib/typescript/lib/module/views/Dialog/PreferenceManagementDeepLinks.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Dialog/index.d.ts +0 -5
- package/lib/typescript/lib/module/views/Dialog/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Drawer/Drawer.ConsentCategories.d.ts +0 -5
- package/lib/typescript/lib/module/views/Drawer/Drawer.ConsentCategories.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Drawer/Drawer.Header.d.ts +0 -5
- package/lib/typescript/lib/module/views/Drawer/Drawer.Header.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Disclosures.d.ts +0 -5
- package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Disclosures.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Vendors.d.ts +0 -5
- package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Vendors.d.ts.map +0 -1
- package/lib/typescript/lib/module/views/Drawer/index.d.ts +0 -4
- package/lib/typescript/lib/module/views/Drawer/index.d.ts.map +0 -1
|
@@ -4,19 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Drawer = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
9
|
var _actions = require("../../actions");
|
|
10
10
|
var _selectors = require("../../selectors");
|
|
11
11
|
var _Button = require("../../components/Button");
|
|
12
|
+
var _context = require("../../context");
|
|
13
|
+
var _Translator = _interopRequireDefault(require("../../utils/Translator"));
|
|
12
14
|
var _Drawer = _interopRequireDefault(require("./Drawer.ConsentCategories"));
|
|
13
15
|
var _DrawerIab = _interopRequireDefault(require("./Drawer.Iab.Disclosures"));
|
|
14
16
|
var _DrawerIab2 = _interopRequireDefault(require("./Drawer.Iab.Vendors"));
|
|
15
|
-
var
|
|
16
|
-
var _Translator = _interopRequireDefault(require("../../utils/Translator"));
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
function
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
20
20
|
const easing = v => 1 - _reactNative.Easing.exp(1 - v);
|
|
21
21
|
const maxWebDrawerWidth = 360;
|
|
22
22
|
const Drawer = () => {
|
|
@@ -41,6 +41,8 @@ const Drawer = () => {
|
|
|
41
41
|
const state = getState();
|
|
42
42
|
const stack = (0, _selectors.getStack)(state);
|
|
43
43
|
const isRTL = _Translator.default.isRTL(locale);
|
|
44
|
+
// Determine TCF applicability using the same logic as the config getter
|
|
45
|
+
const useTcf = config && (config.gdprApplies || config.isBrowsingFromCountry('ca')) && config.iabEnabled;
|
|
44
46
|
const initialPositionX = _reactNative.Platform.OS === 'web' ? 0 : 1;
|
|
45
47
|
const closeButton = (0, _react.useRef)(new _reactNative.Animated.Value(initialPositionX));
|
|
46
48
|
const category = (0, _react.useRef)(new _reactNative.Animated.Value(initialPositionX));
|
|
@@ -71,39 +73,48 @@ const Drawer = () => {
|
|
|
71
73
|
toValue: stack.indexOf(_actions.SHOW_DRAWER) >= 0 ? 1 : 0,
|
|
72
74
|
useNativeDriver: _reactNative.Platform.OS !== 'web'
|
|
73
75
|
}).start();
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
// Only animate IAB-related views when TCF is applicable
|
|
77
|
+
if (useTcf) {
|
|
78
|
+
_reactNative.Animated.timing(vendor.current, {
|
|
79
|
+
easing,
|
|
80
|
+
duration: 400,
|
|
81
|
+
toValue: stack.indexOf(_actions.SHOW_IAB_VENDORS) >= 0 ? 1 : 0,
|
|
82
|
+
useNativeDriver: _reactNative.Platform.OS !== 'web'
|
|
83
|
+
}).start();
|
|
84
|
+
_reactNative.Animated.timing(disclosure.current, {
|
|
85
|
+
easing,
|
|
86
|
+
duration: 400,
|
|
87
|
+
toValue: stack.indexOf(_actions.SHOW_IAB_DISCLOSURES) >= 0 ? 1 : 0,
|
|
88
|
+
useNativeDriver: _reactNative.Platform.OS !== 'web'
|
|
89
|
+
}).start();
|
|
90
|
+
}
|
|
86
91
|
if (_reactNative.Platform.OS !== 'web') {
|
|
87
92
|
// Since native devices use a slide animation, we need to make the active stack item visible during the slide
|
|
88
93
|
if (stack.length === 0) {
|
|
89
94
|
category.current.setValue(1);
|
|
90
|
-
|
|
91
|
-
|
|
95
|
+
if (useTcf) {
|
|
96
|
+
vendor.current.setValue(1);
|
|
97
|
+
disclosure.current.setValue(1);
|
|
98
|
+
}
|
|
92
99
|
} else if (stack.length === 1) {
|
|
93
100
|
switch (stack.at(-1)) {
|
|
94
101
|
case _actions.SHOW_DRAWER:
|
|
95
102
|
category.current.setValue(1);
|
|
96
103
|
break;
|
|
97
104
|
case _actions.SHOW_IAB_VENDORS:
|
|
98
|
-
|
|
105
|
+
if (useTcf) {
|
|
106
|
+
vendor.current.setValue(1);
|
|
107
|
+
}
|
|
99
108
|
break;
|
|
100
109
|
case _actions.SHOW_IAB_DISCLOSURES:
|
|
101
|
-
|
|
110
|
+
if (useTcf) {
|
|
111
|
+
disclosure.current.setValue(1);
|
|
112
|
+
}
|
|
102
113
|
break;
|
|
103
114
|
}
|
|
104
115
|
}
|
|
105
116
|
}
|
|
106
|
-
}, [stack.length]);
|
|
117
|
+
}, [stack.length, useTcf]);
|
|
107
118
|
const handleClose = (0, _react.useCallback)(e => {
|
|
108
119
|
if (e && e.target) {
|
|
109
120
|
if (e.target === overlayRef.current) {
|
|
@@ -139,48 +150,55 @@ const Drawer = () => {
|
|
|
139
150
|
right: infoDialogPosition === 'right' ? 0 : 'auto'
|
|
140
151
|
};
|
|
141
152
|
}, [layoutWidth, isRTL, infoDialogPosition]);
|
|
142
|
-
return /*#__PURE__*/
|
|
153
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
143
154
|
animationType: _reactNative.Platform.OS === 'web' ? stack.length > 0 ? 'none' : 'fade' : 'slide',
|
|
144
155
|
presentationStyle: "pageSheet",
|
|
145
156
|
visible: stack.length > 0,
|
|
146
157
|
onRequestClose: handleClose,
|
|
147
|
-
transparent: _reactNative.Platform.OS === 'web' ? true : false
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
158
|
+
transparent: _reactNative.Platform.OS === 'web' ? true : false,
|
|
159
|
+
supportedOrientations: ['portrait', 'landscape'],
|
|
160
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.SafeAreaView, {
|
|
161
|
+
ref: overlayRef,
|
|
162
|
+
style: [styles.container, dialogOverlay],
|
|
163
|
+
onLayout: handleLayoutChange,
|
|
164
|
+
onPointerUp: handleClose,
|
|
165
|
+
onTouchEnd: handleClose,
|
|
166
|
+
onResponderRelease: handleClose,
|
|
167
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
168
|
+
style: [styles.drawer, anchor, drawerStyles, {
|
|
169
|
+
transform: [{
|
|
170
|
+
translateX: category.current.interpolate(drawerRange)
|
|
171
|
+
}]
|
|
172
|
+
}],
|
|
173
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Drawer.default, {})
|
|
174
|
+
}), useTcf && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
175
|
+
style: [styles.drawer, anchor, drawerStyles, {
|
|
176
|
+
transform: [{
|
|
177
|
+
translateX: vendor.current.interpolate(drawerRange)
|
|
178
|
+
}]
|
|
179
|
+
}],
|
|
180
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DrawerIab2.default, {})
|
|
181
|
+
}), useTcf && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
182
|
+
style: [styles.drawer, anchor, drawerStyles, {
|
|
183
|
+
transform: [{
|
|
184
|
+
translateX: disclosure.current.interpolate(drawerRange)
|
|
185
|
+
}]
|
|
186
|
+
}],
|
|
187
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DrawerIab.default, {})
|
|
188
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
189
|
+
style: [styles.close, closeAnchor, {
|
|
190
|
+
transform: [{
|
|
191
|
+
translateX: closeButton.current.interpolate(drawerRange)
|
|
192
|
+
}]
|
|
193
|
+
}],
|
|
194
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.CloseButton, {
|
|
195
|
+
testID: "close-drawer",
|
|
196
|
+
style: isRTL ? styles.closeLeft : styles.closeRight,
|
|
197
|
+
color: infoDialogForegroundColor
|
|
198
|
+
})
|
|
199
|
+
})]
|
|
200
|
+
})
|
|
201
|
+
});
|
|
184
202
|
};
|
|
185
203
|
exports.Drawer = Drawer;
|
|
186
204
|
const styles = _reactNative.StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_actions","_selectors","_Button","_Drawer","_interopRequireDefault","_DrawerIab","_DrawerIab2","_context","_Translator","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","easing","v","Easing","exp","maxWebDrawerWidth","Drawer","cmp","config","dispatch","getState","locale","useContext","OsanoPrivateContext","overlayRef","React","useRef","palette","infoDialogBackgroundColor","infoDialogForegroundColor","infoDialogOverlayColor","infoDialogPosition","configInfoDialogPosition","Platform","OS","state","stack","getStack","isRTL","Translator","initialPositionX","closeButton","Animated","Value","category","vendor","disclosure","layoutWidth","setLayoutWidth","useState","handleLayoutChange","useCallback","width","nativeEvent","layout","newWidth","Math","min","Number","MAX_SAFE_INTEGER","drawerRange","useMemo","inputRange","outputRange","extrapolateLeft","extrapolateRight","useLayoutEffect","timing","current","duration","toValue","length","useNativeDriver","start","indexOf","SHOW_DRAWER","SHOW_IAB_VENDORS","SHOW_IAB_DISCLOSURES","setValue","at","handleClose","target","close","drawerStyles","backgroundColor","dialogOverlay","anchor","left","right","closeAnchor","marginLeft","marginRight","createElement","Modal","animationType","presentationStyle","visible","onRequestClose","transparent","SafeAreaView","ref","style","styles","container","onLayout","onPointerUp","onTouchEnd","onResponderRelease","View","drawer","transform","translateX","interpolate","CloseButton","testID","closeLeft","closeRight","color","exports","StyleSheet","create","flex","position","top","zIndex","alignSelf","margin","bottom"],"sourceRoot":"../../../../src","sources":["views/Drawer/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAcA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAOA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAOA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAD,sBAAA,CAAAP,OAAA;AACA,IAAAS,WAAA,GAAAF,sBAAA,CAAAP,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAJ,sBAAA,CAAAP,OAAA;AAAgD,SAAAO,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,C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AiI,WAAW;IACXC,MAAM,EAAC,cAAc;IACrBb,KAAK,EAAE/D,KAAK,GAAGgE,MAAM,CAACa,SAAS,GAAGb,MAAM,CAACc,UAAW;IACpDC,KAAK,EAAExF;EAA0B,CACjC,CACa,CACF,CACR,CAAC;AAEV,CAAC;AAACyF,OAAA,CAAAtG,MAAA,GAAAA,MAAA;AAEF,MAAMsF,MAAM,GAAGiB,uBAAU,CAACC,MAAM,CAAC;EAChCjB,SAAS,EAAE;IACVkB,IAAI,EAAE;EACP,CAAC;EACDvC,KAAK,EAAE;IACNwC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,EAAE;IACPC,MAAM,EAAE;EACT,CAAC;EACDR,UAAU,EAAE;IACXS,SAAS,EAAE,UAAU;IACrBC,MAAM,EAAE;EACT,CAAC;EACDX,SAAS,EAAE;IACVU,SAAS,EAAE,YAAY;IACvBC,MAAM,EAAE;EACT,CAAC;EACDjB,MAAM,EAAE;IACPkB,MAAM,EAAE,CAAC;IACTL,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_actions","_selectors","_Button","_context","_Translator","_interopRequireDefault","_Drawer","_DrawerIab","_DrawerIab2","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","easing","v","Easing","exp","maxWebDrawerWidth","Drawer","cmp","config","dispatch","getState","locale","useContext","OsanoPrivateContext","overlayRef","React","useRef","palette","infoDialogBackgroundColor","infoDialogForegroundColor","infoDialogOverlayColor","infoDialogPosition","configInfoDialogPosition","Platform","OS","state","stack","getStack","isRTL","Translator","useTcf","gdprApplies","isBrowsingFromCountry","iabEnabled","initialPositionX","closeButton","Animated","Value","category","vendor","disclosure","layoutWidth","setLayoutWidth","useState","handleLayoutChange","useCallback","width","nativeEvent","layout","newWidth","Math","min","Number","MAX_SAFE_INTEGER","drawerRange","useMemo","inputRange","outputRange","extrapolateLeft","extrapolateRight","useLayoutEffect","timing","current","duration","toValue","length","useNativeDriver","start","indexOf","SHOW_DRAWER","SHOW_IAB_VENDORS","SHOW_IAB_DISCLOSURES","setValue","at","handleClose","target","close","drawerStyles","backgroundColor","dialogOverlay","anchor","left","right","closeAnchor","marginLeft","marginRight","jsx","Modal","animationType","presentationStyle","visible","onRequestClose","transparent","supportedOrientations","children","jsxs","SafeAreaView","ref","style","styles","container","onLayout","onPointerUp","onTouchEnd","onResponderRelease","View","drawer","transform","translateX","interpolate","CloseButton","testID","closeLeft","closeRight","color","exports","StyleSheet","create","flex","position","top","zIndex","alignSelf","margin","bottom"],"sourceRoot":"../../../../src","sources":["views/Drawer/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAcA,IAAAE,QAAA,GAAAF,OAAA;AAMA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAD,sBAAA,CAAAP,OAAA;AACA,IAAAS,UAAA,GAAAF,sBAAA,CAAAP,OAAA;AACA,IAAAU,WAAA,GAAAH,sBAAA,CAAAP,OAAA;AAAoD,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAO,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAjB,uBAAA,YAAAA,CAAAa,CAAA,EAAAG,CAAA,SAAAA,CAA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W,CAACvD,WAAW;UAAE,CAAC;QAE9D,CAAC,CACA;QAAAwC,QAAA,eAEF,IAAAjH,WAAA,CAAAyG,GAAA,EAAChH,OAAA,CAAAwI,WAAW;UACXC,MAAM,EAAC,cAAc;UACrBb,KAAK,EAAEtE,KAAK,GAAGuE,MAAM,CAACa,SAAS,GAAGb,MAAM,CAACc,UAAW;UACpDC,KAAK,EAAE/F;QAA0B,CACjC;MAAC,CACY,CAAC;IAAA,CACH;EAAC,CACT,CAAC;AAEV,CAAC;AAACgG,OAAA,CAAA7G,MAAA,GAAAA,MAAA;AAEF,MAAM6F,MAAM,GAAGiB,uBAAU,CAACC,MAAM,CAAC;EAChCjB,SAAS,EAAE;IACVkB,IAAI,EAAE;EACP,CAAC;EACD1C,KAAK,EAAE;IACN2C,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,EAAE;IACPC,MAAM,EAAE;EACT,CAAC;EACDR,UAAU,EAAE;IACXS,SAAS,EAAE,UAAU;IACrBC,MAAM,EAAE;EACT,CAAC;EACDX,SAAS,EAAE;IACVU,SAAS,EAAE,YAAY;IACvBC,MAAM,EAAE;EACT,CAAC;EACDjB,MAAM,EAAE;IACPkB,MAAM,EAAE,CAAC;IACTL,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
2
3
|
import { NativeModules, Platform } from 'react-native';
|
|
3
|
-
import {
|
|
4
|
+
import { CLEAR_CONSENT, SAVE_SUCCESS } from './actions';
|
|
5
|
+
import { ConsentCategory, mappedJurisdictions } from './constants';
|
|
4
6
|
import flavors, { defaultFlavor } from './flavors';
|
|
5
|
-
import { get, merge } from './utils';
|
|
6
7
|
import Tcf from './iab/tcf';
|
|
7
|
-
import Translator from './utils/Translator';
|
|
8
|
-
import { ConsentCategory, mappedJurisdictions } from './constants';
|
|
9
8
|
import { getDeviceId } from './native/OsanoCmp';
|
|
10
|
-
import { CLEAR_CONSENT, SAVE_SUCCESS } from './actions';
|
|
11
9
|
import { getConsent } from './selectors';
|
|
10
|
+
import { clearConsent as clearStoredConsent, fetchConfig, fetchConsent, getStoredConfig, hasStaleConfig, storeConfig } from './services/consent';
|
|
11
|
+
import { GoogleConsentModeMapper } from './services/google-consent-mode-mapper';
|
|
12
|
+
import { get, merge } from './utils';
|
|
13
|
+
import { EventEmitter } from './utils/EventEmitter';
|
|
14
|
+
import { osanoLogger as OsanoLogger } from './utils/OsanoLogger';
|
|
15
|
+
import Translator from './utils/Translator';
|
|
12
16
|
const CONFIG_ID_ERROR = new Error('customerId and configId must be set');
|
|
13
17
|
const CONFIG_NOT_FOUND_ERROR = new Error('Config not found');
|
|
14
18
|
export const DEFAULT_CONFIG = {
|
|
@@ -120,12 +124,13 @@ async function fetchConfigWithRetries(customerId, configId, retries = 3, delay =
|
|
|
120
124
|
const config = await fetchConfig(customerId, configId);
|
|
121
125
|
return config;
|
|
122
126
|
} catch (error) {
|
|
123
|
-
if (attempt
|
|
127
|
+
if (attempt < retries) {
|
|
128
|
+
OsanoLogger.warn(`Attempt ${attempt} failed. Retrying in ${delay}ms...`);
|
|
129
|
+
await new Promise(resolve => setTimeout(resolve, delay));
|
|
130
|
+
delay *= 2; // Exponential backoff
|
|
131
|
+
} else {
|
|
124
132
|
throw error;
|
|
125
133
|
}
|
|
126
|
-
console.warn(`Attempt ${attempt} failed. Retrying in ${delay}ms...`);
|
|
127
|
-
await new Promise(resolve => setTimeout(resolve, delay));
|
|
128
|
-
delay *= 2; // Exponential backoff
|
|
129
134
|
}
|
|
130
135
|
}
|
|
131
136
|
return null;
|
|
@@ -140,7 +145,7 @@ export class ConsentConfig extends EventEmitter {
|
|
|
140
145
|
load() {
|
|
141
146
|
if (!this._customerId || !this._configId) {
|
|
142
147
|
this.emit('loadFailure', CONFIG_ID_ERROR);
|
|
143
|
-
return;
|
|
148
|
+
return Promise.reject(CONFIG_ID_ERROR);
|
|
144
149
|
}
|
|
145
150
|
return fetchConfigWithRetries(this._customerId, this._configId).then(config => {
|
|
146
151
|
if (!config || Object.keys(config).length === 0) {
|
|
@@ -154,8 +159,10 @@ export class ConsentConfig extends EventEmitter {
|
|
|
154
159
|
this._config = merge(this._config, config);
|
|
155
160
|
storeConfig(this._configId, this._config);
|
|
156
161
|
this.emit('loadSuccess', this._config);
|
|
162
|
+
return this._config;
|
|
157
163
|
}).catch(err => {
|
|
158
164
|
this.emit('loadFailure', err);
|
|
165
|
+
throw err;
|
|
159
166
|
});
|
|
160
167
|
}
|
|
161
168
|
get config() {
|
|
@@ -522,9 +529,15 @@ export class ConsentManager {
|
|
|
522
529
|
try {
|
|
523
530
|
getDeviceId().then(setDeviceId);
|
|
524
531
|
} catch (err) {
|
|
525
|
-
|
|
532
|
+
OsanoLogger.error(`Error getting device id: ${err}`, err instanceof Error ? err : undefined);
|
|
533
|
+
}
|
|
534
|
+
// Safely access I18nManager.localeIdentifier with null check
|
|
535
|
+
try {
|
|
536
|
+
this._locale = NativeModules.I18nManager?.localeIdentifier || Translator.DEFAULT_LANGUAGE;
|
|
537
|
+
} catch (err) {
|
|
538
|
+
console.log(`Error getting locale from I18nManager: ${err}`);
|
|
539
|
+
this._locale = Translator.DEFAULT_LANGUAGE;
|
|
526
540
|
}
|
|
527
|
-
this._locale = NativeModules.I18nManager.localeIdentifier;
|
|
528
541
|
break;
|
|
529
542
|
}
|
|
530
543
|
case 'ios':
|
|
@@ -532,15 +545,31 @@ export class ConsentManager {
|
|
|
532
545
|
try {
|
|
533
546
|
getDeviceId().then(setDeviceId);
|
|
534
547
|
} catch (err) {
|
|
535
|
-
|
|
548
|
+
OsanoLogger.error(`Error getting device id: ${err}`, err instanceof Error ? err : undefined);
|
|
549
|
+
}
|
|
550
|
+
try {
|
|
551
|
+
this._locale = NativeModules.SettingsManager?.settings?.AppleLanguages?.[0] ||
|
|
552
|
+
//iOS 13
|
|
553
|
+
NativeModules.SettingsManager?.settings?.AppleLocale || Translator.DEFAULT_LANGUAGE;
|
|
554
|
+
} catch (err) {
|
|
555
|
+
console.log(`Error getting locale from SettingsManager: ${err}`);
|
|
556
|
+
this._locale = Translator.DEFAULT_LANGUAGE;
|
|
536
557
|
}
|
|
537
|
-
this._locale = NativeModules.SettingsManager.settings.AppleLanguages[0] ||
|
|
538
|
-
//iOS 13
|
|
539
|
-
NativeModules.SettingsManager.settings.AppleLocale;
|
|
540
558
|
break;
|
|
541
559
|
}
|
|
542
560
|
default:
|
|
543
561
|
{
|
|
562
|
+
try {
|
|
563
|
+
getDeviceId().then(setDeviceId);
|
|
564
|
+
} catch (err) {
|
|
565
|
+
OsanoLogger.error(`Error getting device id: ${err}`, err instanceof Error ? err : undefined);
|
|
566
|
+
}
|
|
567
|
+
try {
|
|
568
|
+
this._locale = navigator.language;
|
|
569
|
+
} catch (err) {
|
|
570
|
+
console.log(`Error getting locale from I18nManager: ${err}`);
|
|
571
|
+
this._locale = Translator.DEFAULT_LANGUAGE;
|
|
572
|
+
}
|
|
544
573
|
break;
|
|
545
574
|
}
|
|
546
575
|
}
|
|
@@ -592,60 +621,77 @@ export class ConsentManager {
|
|
|
592
621
|
}
|
|
593
622
|
}
|
|
594
623
|
this._loaded = false;
|
|
595
|
-
|
|
596
|
-
this._cancelLoading =
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
624
|
+
const cancelPromise = new Promise((_, reject) => {
|
|
625
|
+
this._cancelLoading = reject;
|
|
626
|
+
});
|
|
627
|
+
this.config.customerId = customerId;
|
|
628
|
+
this.config.configId = configId;
|
|
629
|
+
this._loading = Promise.race([this._config.load(), cancelPromise]).then(() => {
|
|
630
|
+
// If the config loads successfully, we can fetch the consent
|
|
631
|
+
onConfigLoadSuccess && onConfigLoadSuccess();
|
|
632
|
+
OsanoLogger.debug(`ConsentManager: Config loaded successfully for customerId: ${customerId}, configId: ${configId}`);
|
|
633
|
+
const locale = this._locale;
|
|
634
|
+
if (this._overridePalette) {
|
|
635
|
+
this._config.palette = merge(this._config.palette, this._overridePalette);
|
|
636
|
+
}
|
|
637
|
+
OsanoLogger.debug(`ConsentManager: Loading consent`);
|
|
638
|
+
return fetchConsent(this).catch(() => {
|
|
639
|
+
OsanoLogger.debug(`ConsentManager: No stored consent found for customerId: ${customerId}, configId: ${configId}`);
|
|
640
|
+
// If no stored consent, return essential consent by default
|
|
641
|
+
// This is to ensure CMP can render even if no consent is stored
|
|
642
|
+
// Consent not found
|
|
643
|
+
return Promise.resolve([ConsentCategory.ESSENTIAL]);
|
|
644
|
+
}).then(consent => {
|
|
645
|
+
OsanoLogger.debug(`ConsentManager: Consent loaded successfully for customerId: ${customerId}, configId: ${configId}, consent: ${JSON.stringify(consent)}`);
|
|
646
|
+
this.consent = consent;
|
|
647
|
+
this.triggerGoogleConsentUpdate(consent);
|
|
648
|
+
return this._translator.load(locale, onLangLoadSuccess, onLangLoadFailure).then(results => {
|
|
649
|
+
OsanoLogger.debug(`ConsentManager: Locale loaded successfully for customerId: ${customerId}, configId: ${configId}, locale: ${locale}`);
|
|
650
|
+
delete this._cancelLoading;
|
|
651
|
+
delete this._loading;
|
|
652
|
+
const globalResult = results[0];
|
|
653
|
+
// As long as the global locale is loaded, we can render the CMP
|
|
654
|
+
if (globalResult?.status === 'fulfilled') {
|
|
655
|
+
this._loaded = true;
|
|
656
|
+
const globalLocale = globalResult?.value || locale;
|
|
657
|
+
return {
|
|
658
|
+
config: this._config,
|
|
659
|
+
customerId,
|
|
660
|
+
configId,
|
|
661
|
+
locale: globalLocale,
|
|
662
|
+
consent
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
// If the global locale failed to load, we can't render the CMP
|
|
666
|
+
throw new Error(globalResult?.reason);
|
|
667
|
+
}).catch(err => {
|
|
668
|
+
this._loaded = false;
|
|
669
|
+
OsanoLogger.error(`ConsentManager: Error loading locale for customerId: ${customerId}, configId: ${configId}: ${err}`);
|
|
670
|
+
delete this._cancelLoading;
|
|
671
|
+
delete this._loading;
|
|
672
|
+
onLangLoadFailure && onLangLoadFailure(err);
|
|
673
|
+
return {
|
|
674
|
+
config: this._config,
|
|
675
|
+
customerId,
|
|
676
|
+
configId,
|
|
677
|
+
locale,
|
|
678
|
+
consent
|
|
679
|
+
};
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
}).catch(err => {
|
|
683
|
+
this._loaded = false;
|
|
684
|
+
OsanoLogger.error(`ConsentManager: Error loading config for customerId: ${customerId}, configId: ${configId}: ${err}`);
|
|
685
|
+
delete this._cancelLoading;
|
|
686
|
+
delete this._loading;
|
|
687
|
+
onConfigLoadFailure && onConfigLoadFailure(err);
|
|
688
|
+
return {
|
|
689
|
+
config: this._config,
|
|
690
|
+
customerId,
|
|
691
|
+
configId,
|
|
692
|
+
locale: this._translator.locale,
|
|
693
|
+
consent: [ConsentCategory.ESSENTIAL]
|
|
643
694
|
};
|
|
644
|
-
this._configLoadSuccessSubscription = this._config.on('loadSuccess', handleConfigLoadSuccess);
|
|
645
|
-
this._configLoadFailureSubscription = this._config.on('loadFailure', handleConfigLoadFailure);
|
|
646
|
-
this.config.customerId = customerId;
|
|
647
|
-
this.config.configId = configId;
|
|
648
|
-
this._config.load();
|
|
649
695
|
});
|
|
650
696
|
return this._loading;
|
|
651
697
|
}
|
|
@@ -658,6 +704,46 @@ export class ConsentManager {
|
|
|
658
704
|
hasConsent(category) {
|
|
659
705
|
return this._consent?.includes(category) ?? false;
|
|
660
706
|
}
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Set the Google Consent Mode callback function
|
|
710
|
+
*
|
|
711
|
+
* @param callback - Function to call when consent updates occur
|
|
712
|
+
* @returns this ConsentManager instance for method chaining
|
|
713
|
+
*/
|
|
714
|
+
setGoogleConsentModeCallback(callback) {
|
|
715
|
+
this._googleConsentModeCallback = callback;
|
|
716
|
+
return this;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Trigger Google Consent Mode update with current consent categories
|
|
721
|
+
*
|
|
722
|
+
* @param categories - Array of consent categories that have been granted
|
|
723
|
+
* @public
|
|
724
|
+
*/
|
|
725
|
+
triggerGoogleConsentUpdate(categories) {
|
|
726
|
+
if (!this._config.googleConsent) {
|
|
727
|
+
OsanoLogger.debug('Google Consent Mode: disabled in configuration');
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
if (!this._googleConsentModeCallback) {
|
|
731
|
+
OsanoLogger.debug('Google Consent Mode: callback not set');
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
try {
|
|
735
|
+
OsanoLogger.debug(`Google Consent Mode: triggering callback with categories: ${JSON.stringify(categories)}`);
|
|
736
|
+
const categorySet = new Set(categories);
|
|
737
|
+
const googleConsentMap = GoogleConsentModeMapper.buildGoogleConsentMap(categorySet);
|
|
738
|
+
const consentStringMap = googleConsentMap.toStringMap();
|
|
739
|
+
OsanoLogger.debug(`Google Consent Mode: consent map: ${JSON.stringify(consentStringMap)}`);
|
|
740
|
+
this._googleConsentModeCallback(consentStringMap);
|
|
741
|
+
OsanoLogger.debug('Google Consent Mode: callback executed successfully');
|
|
742
|
+
} catch (error) {
|
|
743
|
+
OsanoLogger.warn(`Google Consent Mode: Error triggering callback: ${error}`);
|
|
744
|
+
// Don't re-throw - callback errors shouldn't break consent flow
|
|
745
|
+
}
|
|
746
|
+
}
|
|
661
747
|
get loaded() {
|
|
662
748
|
return this._loaded;
|
|
663
749
|
}
|