@osano/osano-cmp-react-native 0.17.3 → 0.18.1
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 +114 -32
- package/android/build.gradle +4 -18
- package/lib/commonjs/ConsentManager.js +42 -15
- package/lib/commonjs/ConsentManager.js.map +1 -1
- package/lib/commonjs/ConsentUiBuilder.js +8 -5
- package/lib/commonjs/ConsentUiBuilder.js.map +1 -1
- package/lib/commonjs/actions.js +2 -3
- package/lib/commonjs/actions.js.map +1 -1
- package/lib/commonjs/commands.js +5 -3
- package/lib/commonjs/commands.js.map +1 -1
- package/lib/commonjs/components/Button.js +71 -57
- package/lib/commonjs/components/Button.js.map +1 -1
- package/lib/commonjs/components/Checkbox.js +14 -11
- 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 +18 -13
- package/lib/commonjs/components/ExpansionPanel.js.map +1 -1
- package/lib/commonjs/components/Link.js +6 -4
- 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 +4 -1
- package/lib/commonjs/components/Locale.js.map +1 -1
- package/lib/commonjs/components/StoragePolicyLink.js +5 -3
- package/lib/commonjs/components/StoragePolicyLink.js.map +1 -1
- package/lib/commonjs/components/Toggle.js +20 -18
- package/lib/commonjs/components/Toggle.js.map +1 -1
- package/lib/commonjs/constants.js +49 -1
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/context.js +3 -4
- package/lib/commonjs/context.js.map +1 -1
- package/lib/commonjs/flavors/index.js +1 -1
- package/lib/commonjs/hooks/useBoundCallback.js +0 -2
- package/lib/commonjs/hooks/useBoundCallback.js.map +1 -1
- package/lib/commonjs/hooks/useThunkReducer.js +1 -7
- package/lib/commonjs/hooks/useThunkReducer.js.map +1 -1
- package/lib/commonjs/iab/gpp/api.js +0 -1
- package/lib/commonjs/iab/gpp/api.js.map +1 -1
- package/lib/commonjs/iab/gpp/consent.js.map +1 -1
- package/lib/commonjs/iab/gpp/selectors.js.map +1 -1
- package/lib/commonjs/iab/gpp/v1/index.js.map +1 -1
- package/lib/commonjs/iab/tcf/consent.js +3 -3
- package/lib/commonjs/iab/tcf/consent.js.map +1 -1
- package/lib/commonjs/iab/tcf/constants.js.map +1 -1
- package/lib/commonjs/iab/tcf/middleware.js +30 -22
- package/lib/commonjs/iab/tcf/middleware.js.map +1 -1
- package/lib/commonjs/iab/tcf/reducer.js +4 -8
- package/lib/commonjs/iab/tcf/reducer.js.map +1 -1
- package/lib/commonjs/iab/tcf/selectors.js +6 -19
- package/lib/commonjs/iab/tcf/selectors.js.map +1 -1
- package/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.js.map +1 -1
- package/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.js.map +1 -1
- package/lib/commonjs/iab/usp/consent.js.map +1 -1
- package/lib/commonjs/iab/usp/constants.js.map +1 -1
- package/lib/commonjs/iab/usp/reducer.js.map +1 -1
- package/lib/commonjs/iab/usp/selectors.js.map +1 -1
- package/lib/commonjs/iab/usp/v1/index.js.map +1 -1
- package/lib/commonjs/index.js +34 -25
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/native/OsanoCmp.js +50 -38
- package/lib/commonjs/native/OsanoCmp.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/reducer.js +33 -79
- package/lib/commonjs/reducer.js.map +1 -1
- package/lib/commonjs/selectors.js +25 -2
- package/lib/commonjs/selectors.js.map +1 -1
- package/lib/commonjs/services/consent.js +51 -37
- package/lib/commonjs/services/consent.js.map +1 -1
- package/lib/commonjs/services/google-consent-mode-mapper.js.map +1 -1
- package/lib/commonjs/services/locale.js +2 -1
- package/lib/commonjs/services/locale.js.map +1 -1
- package/lib/commonjs/utils/API.js.map +1 -1
- package/lib/commonjs/utils/Color.js +1 -4
- package/lib/commonjs/utils/Color.js.map +1 -1
- package/lib/commonjs/utils/EventEmitter.js +0 -1
- package/lib/commonjs/utils/EventEmitter.js.map +1 -1
- package/lib/commonjs/utils/ExpoDetector.js.map +1 -1
- package/lib/commonjs/utils/ExpoGoMemoryStorage.js +1 -1
- package/lib/commonjs/utils/ExpoGoMemoryStorage.js.map +1 -1
- package/lib/commonjs/utils/Translator.js +3 -3
- package/lib/commonjs/utils/Translator.js.map +1 -1
- package/lib/commonjs/utils/WebStorage.js +53 -0
- package/lib/commonjs/utils/WebStorage.js.map +1 -0
- package/lib/commonjs/utils/index.js +0 -1
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/views/Dialog/Buttons.js +35 -31
- package/lib/commonjs/views/Dialog/Buttons.js.map +1 -1
- package/lib/commonjs/views/Dialog/FirstLayerUsage.js +12 -8
- package/lib/commonjs/views/Dialog/FirstLayerUsage.js.map +1 -1
- package/lib/commonjs/views/Dialog/Message.js +2 -1
- package/lib/commonjs/views/Dialog/Message.js.map +1 -1
- package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js +20 -15
- package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js.map +1 -1
- package/lib/commonjs/views/Dialog/index.js +72 -53
- package/lib/commonjs/views/Dialog/index.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js +266 -199
- package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.Header.js +50 -40
- package/lib/commonjs/views/Drawer/Drawer.Header.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js +97 -81
- package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js +241 -186
- package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
- package/lib/commonjs/views/Drawer/index.js +50 -43
- package/lib/commonjs/views/Drawer/index.js.map +1 -1
- package/lib/module/ConsentManager.js +45 -16
- package/lib/module/ConsentManager.js.map +1 -1
- package/lib/module/ConsentUiBuilder.js +10 -5
- package/lib/module/ConsentUiBuilder.js.map +1 -1
- package/lib/module/actions.js +4 -3
- package/lib/module/actions.js.map +1 -1
- package/lib/module/commands.js +7 -3
- package/lib/module/commands.js.map +1 -1
- package/lib/module/components/Button.js +73 -57
- 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 +6 -1
- 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 +46 -0
- package/lib/module/constants.js.map +1 -1
- package/lib/module/context.js +4 -3
- package/lib/module/context.js.map +1 -1
- package/lib/module/flavors/index.js +3 -1
- package/lib/module/flavors/index.js.map +1 -1
- package/lib/module/hooks/useBoundCallback.js +2 -1
- 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 +3 -6
- 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 -1
- 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 +5 -3
- package/lib/module/iab/tcf/consent.js.map +1 -1
- package/lib/module/iab/tcf/constants.js +2 -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 +2 -0
- package/lib/module/iab/tcf/iab-storage-utils.js.map +1 -1
- 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 +25 -14
- package/lib/module/iab/tcf/middleware.js.map +1 -1
- package/lib/module/iab/tcf/reducer.js +7 -8
- package/lib/module/iab/tcf/reducer.js.map +1 -1
- package/lib/module/iab/tcf/selectors.js +4 -12
- 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 +38 -27
- package/lib/module/index.js.map +1 -1
- package/lib/module/locale/index.js +2 -0
- package/lib/module/locale/index.js.map +1 -1
- package/lib/module/native/OsanoCmp.js +52 -37
- package/lib/module/native/OsanoCmp.js.map +1 -1
- package/lib/module/native/OsanoCmpSdkSpec.js +2 -0
- package/lib/module/native/OsanoCmpSdkSpec.js.map +1 -1
- package/lib/module/reducer.js +31 -75
- package/lib/module/reducer.js.map +1 -1
- package/lib/module/selectors.js +25 -2
- package/lib/module/selectors.js.map +1 -1
- package/lib/module/services/consent.js +54 -38
- 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 +2 -0
- package/lib/module/services/google-consent-mode-mapper.js.map +1 -1
- package/lib/module/services/locale.js +4 -1
- 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 +2 -0
- package/lib/module/types/google-consent-mode.js.map +1 -1
- 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 +3 -4
- package/lib/module/utils/Color.js.map +1 -1
- package/lib/module/utils/EventEmitter.js +2 -1
- package/lib/module/utils/EventEmitter.js.map +1 -1
- package/lib/module/utils/ExpoDetector.js +2 -0
- package/lib/module/utils/ExpoDetector.js.map +1 -1
- package/lib/module/utils/ExpoGoMemoryStorage.js +3 -1
- package/lib/module/utils/ExpoGoMemoryStorage.js.map +1 -1
- package/lib/module/utils/OsanoLogger.js +2 -0
- package/lib/module/utils/OsanoLogger.js.map +1 -1
- package/lib/module/utils/Translator.js +5 -3
- package/lib/module/utils/Translator.js.map +1 -1
- package/lib/module/utils/WebStorage.js +48 -0
- package/lib/module/utils/WebStorage.js.map +1 -0
- package/lib/module/utils/index.js +2 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/types.js +1 -1
- package/lib/module/views/Dialog/Buttons.js +37 -31
- 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 +75 -54
- package/lib/module/views/Dialog/index.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.ConsentCategories.js +268 -199
- package/lib/module/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.Header.js +53 -41
- package/lib/module/views/Drawer/Drawer.Header.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js +99 -81
- package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.Iab.Vendors.js +243 -186
- package/lib/module/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
- package/lib/module/views/Drawer/index.js +53 -44
- package/lib/module/views/Drawer/index.js.map +1 -1
- package/lib/typescript/eslint.config.d.ts +3 -0
- package/lib/typescript/eslint.config.d.ts.map +1 -0
- package/lib/typescript/scripts/integration-test/expo-metro.config.d.ts +3 -0
- package/lib/typescript/scripts/integration-test/expo-metro.config.d.ts.map +1 -0
- package/lib/typescript/scripts/verify-build.d.ts +3 -0
- package/lib/typescript/scripts/verify-build.d.ts.map +1 -0
- package/lib/typescript/src/ConsentManager.d.ts +10 -10
- package/lib/typescript/src/ConsentManager.d.ts.map +1 -1
- package/lib/typescript/src/actions.d.ts +5 -5
- package/lib/typescript/src/actions.d.ts.map +1 -1
- package/lib/typescript/src/commands.d.ts +1 -1
- package/lib/typescript/src/commands.d.ts.map +1 -1
- package/lib/typescript/src/components/Button.d.ts.map +1 -1
- package/lib/typescript/src/constants.d.ts +6 -0
- package/lib/typescript/src/constants.d.ts.map +1 -1
- package/lib/typescript/src/context.d.ts +5 -5
- package/lib/typescript/src/context.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useBoundCallback.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useThunkReducer.d.ts.map +1 -1
- package/lib/typescript/src/iab/gpp/api.d.ts.map +1 -1
- package/lib/typescript/src/iab/gpp/consent.d.ts.map +1 -1
- package/lib/typescript/src/iab/gpp/encoders/BooleanEncoder.d.ts +2 -2
- package/lib/typescript/src/iab/gpp/encoders/types.d.ts.map +1 -1
- package/lib/typescript/src/iab/gpp/v1/index.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/consent.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/constants.d.ts +1 -1
- package/lib/typescript/src/iab/tcf/constants.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/middleware.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/reducer.d.ts +4 -4
- package/lib/typescript/src/iab/tcf/reducer.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/selectors.d.ts +3 -5
- package/lib/typescript/src/iab/tcf/selectors.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/types.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/v2.0/shared-constants.d.ts +2 -4
- package/lib/typescript/src/iab/tcf/v2.0/shared-constants.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/v2.0/tcfcav1-constants.d.ts +2 -4
- package/lib/typescript/src/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/v2.0/tcfeuv2-constants.d.ts +2 -4
- package/lib/typescript/src/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +1 -1
- package/lib/typescript/src/iab/usp/consent.d.ts.map +1 -1
- package/lib/typescript/src/iab/usp/constants.d.ts +1 -1
- package/lib/typescript/src/iab/usp/constants.d.ts.map +1 -1
- package/lib/typescript/src/iab/usp/selectors.d.ts.map +1 -1
- package/lib/typescript/src/iab/usp/v1/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/native/OsanoCmp.d.ts.map +1 -1
- package/lib/typescript/src/native/OsanoCmpSdkSpec.d.ts.map +1 -1
- package/lib/typescript/src/reducer.d.ts +0 -3
- package/lib/typescript/src/reducer.d.ts.map +1 -1
- package/lib/typescript/src/selectors.d.ts +4 -1
- package/lib/typescript/src/selectors.d.ts.map +1 -1
- package/lib/typescript/src/services/consent.d.ts +5 -4
- package/lib/typescript/src/services/consent.d.ts.map +1 -1
- package/lib/typescript/src/services/google-consent-mode-mapper.d.ts +4 -4
- package/lib/typescript/src/services/google-consent-mode-mapper.d.ts.map +1 -1
- package/lib/typescript/src/services/locale.d.ts.map +1 -1
- package/lib/typescript/src/utils/API.d.ts.map +1 -1
- package/lib/typescript/src/utils/Color.d.ts.map +1 -1
- package/lib/typescript/src/utils/EventEmitter.d.ts +6 -4
- package/lib/typescript/src/utils/EventEmitter.d.ts.map +1 -1
- package/lib/typescript/src/utils/ExpoDetector.d.ts.map +1 -1
- package/lib/typescript/src/utils/ExpoGoMemoryStorage.d.ts.map +1 -1
- package/lib/typescript/src/utils/Translator.d.ts.map +1 -1
- package/lib/typescript/src/utils/WebStorage.d.ts +16 -0
- package/lib/typescript/src/utils/WebStorage.d.ts.map +1 -0
- package/lib/typescript/src/utils/index.d.ts.map +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.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/osano-cmp-sdk.podspec +1 -1
- package/package.json +25 -16
- package/src/ConsentManager.ts +73 -38
- package/src/actions.ts +7 -8
- package/src/commands.ts +9 -5
- package/src/components/Button.tsx +29 -17
- package/src/components/Checkbox.tsx +1 -1
- package/src/components/List.tsx +1 -1
- package/src/components/Locale.tsx +1 -1
- package/src/constants.ts +84 -14
- package/src/context.ts +12 -7
- package/src/flavors/index.ts +1 -1
- package/src/hooks/useBoundCallback.ts +0 -1
- package/src/hooks/useThunkReducer.ts +20 -21
- package/src/iab/actions.ts +1 -1
- package/src/iab/gpp/api.js +3 -4
- package/src/iab/gpp/consent.js +5 -5
- package/src/iab/gpp/encoders/types.ts +0 -1
- package/src/iab/gpp/selectors.js +4 -4
- package/src/iab/gpp/v1/index.js +1 -1
- package/src/iab/index.ts +2 -2
- package/src/iab/tcf/actions.ts +10 -10
- package/src/iab/tcf/consent.ts +23 -13
- package/src/iab/tcf/constants.ts +1 -4
- package/src/iab/tcf/helpers.ts +6 -6
- package/src/iab/tcf/middleware.ts +35 -19
- package/src/iab/tcf/reducer.ts +8 -10
- package/src/iab/tcf/selectors.ts +31 -43
- package/src/iab/tcf/types.ts +8 -7
- package/src/iab/tcf/v2.0/formatters.ts +1 -1
- package/src/iab/tcf/v2.0/shared-constants.ts +6 -6
- package/src/iab/tcf/v2.0/tcfcav1-constants.ts +13 -13
- package/src/iab/tcf/v2.0/tcfeuv2-constants.ts +7 -8
- package/src/iab/types.ts +1 -1
- package/src/iab/usp/consent.js +3 -3
- package/src/iab/usp/constants.js +2 -2
- package/src/iab/usp/reducer.js +3 -3
- package/src/iab/usp/selectors.js +3 -3
- package/src/iab/usp/v1/index.js +1 -1
- package/src/index.tsx +38 -26
- package/src/native/OsanoCmp.ts +70 -41
- package/src/native/OsanoCmpSdkSpec.ts +19 -19
- package/src/reducer.ts +45 -105
- package/src/selectors.ts +37 -2
- package/src/services/consent.ts +120 -60
- package/src/services/google-consent-mode-mapper.ts +4 -4
- package/src/services/locale.ts +3 -2
- package/src/styles.ts +1 -1
- package/src/types/consent-config.d.ts +1 -1
- package/src/types/index.d.ts +1 -1
- package/src/types/store.d.ts +6 -6
- package/src/utils/API.ts +3 -2
- package/src/utils/Color.ts +5 -6
- package/src/utils/EventEmitter.ts +7 -7
- package/src/utils/ExpoDetector.ts +14 -14
- package/src/utils/ExpoGoMemoryStorage.ts +6 -3
- package/src/utils/Translator.ts +20 -10
- package/src/utils/WebStorage.ts +60 -0
- package/src/utils/index.ts +7 -8
- package/src/views/Dialog/Buttons.tsx +1 -1
- package/src/views/Dialog/index.tsx +14 -15
- package/src/views/Drawer/Drawer.ConsentCategories.tsx +15 -10
- package/src/views/Drawer/Drawer.Header.tsx +8 -2
- package/src/views/Drawer/Drawer.Iab.Disclosures.tsx +8 -8
- package/src/views/Drawer/Drawer.Iab.Vendors.tsx +27 -16
- package/src/views/Drawer/index.tsx +16 -7
- package/lib/typescript/lib/commonjs/ConsentManager.d.ts +0 -209
- 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 -12
- 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 -60
- package/lib/typescript/lib/commonjs/iab/tcf/consent.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/constants.d.ts +0 -62
- 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/iab-storage-utils.d.ts +0 -9
- package/lib/typescript/lib/commonjs/iab/tcf/iab-storage-utils.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 -23
- package/lib/typescript/lib/commonjs/iab/tcf/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/iab/tcf/selectors.d.ts +0 -49
- 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 -200
- 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 -47
- 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 -51
- 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 -7
- 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 -6
- 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 -10
- package/lib/typescript/lib/commonjs/native/OsanoCmp.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/native/OsanoCmpSdkSpec.d.ts +0 -5
- package/lib/typescript/lib/commonjs/native/OsanoCmpSdkSpec.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/reducer.d.ts +0 -35
- 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 -12
- 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/google-consent-mode-mapper.d.ts +0 -72
- package/lib/typescript/lib/commonjs/services/google-consent-mode-mapper.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/google-consent-mode.d.ts +0 -32
- package/lib/typescript/lib/commonjs/types/google-consent-mode.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/ExpoDetector.d.ts +0 -28
- package/lib/typescript/lib/commonjs/utils/ExpoDetector.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/utils/ExpoGoMemoryStorage.d.ts +0 -22
- package/lib/typescript/lib/commonjs/utils/ExpoGoMemoryStorage.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/utils/OsanoLogger.d.ts +0 -16
- package/lib/typescript/lib/commonjs/utils/OsanoLogger.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 -8
- 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 -543
- package/lib/typescript/lib/module/ConsentManager.d.ts.map +0 -1
- package/lib/typescript/lib/module/ConsentUiBuilder.d.ts +0 -175
- 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 -8
- 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 -194
- 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 -17
- 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 -59
- package/lib/typescript/lib/module/iab/tcf/consent.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/constants.d.ts +0 -61
- 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/iab-storage-utils.d.ts +0 -8
- package/lib/typescript/lib/module/iab/tcf/iab-storage-utils.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/index.d.ts +0 -332
- 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 -21
- package/lib/typescript/lib/module/iab/tcf/reducer.d.ts.map +0 -1
- package/lib/typescript/lib/module/iab/tcf/selectors.d.ts +0 -48
- 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 -337
- 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 -81
- 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 -121
- 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 -113
- 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 -6
- 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 -5
- 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 -9
- package/lib/typescript/lib/module/native/OsanoCmp.d.ts.map +0 -1
- package/lib/typescript/lib/module/native/OsanoCmpSdkSpec.d.ts +0 -3
- package/lib/typescript/lib/module/native/OsanoCmpSdkSpec.d.ts.map +0 -1
- package/lib/typescript/lib/module/reducer.d.ts +0 -34
- 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 -11
- 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/google-consent-mode-mapper.d.ts +0 -71
- package/lib/typescript/lib/module/services/google-consent-mode-mapper.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/google-consent-mode.d.ts +0 -38
- package/lib/typescript/lib/module/types/google-consent-mode.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/ExpoDetector.d.ts +0 -27
- package/lib/typescript/lib/module/utils/ExpoDetector.d.ts.map +0 -1
- package/lib/typescript/lib/module/utils/ExpoGoMemoryStorage.d.ts +0 -21
- package/lib/typescript/lib/module/utils/ExpoGoMemoryStorage.d.ts.map +0 -1
- package/lib/typescript/lib/module/utils/OsanoLogger.d.ts +0 -15
- package/lib/typescript/lib/module/utils/OsanoLogger.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 -6
- 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
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import React, { useCallback, useContext, useLayoutEffect, useMemo, useRef } from 'react';
|
|
2
|
-
import { Animated, Easing, Modal, Platform, SafeAreaView, StyleSheet } from 'react-native';
|
|
4
|
+
import { Animated, Easing, Modal, Platform, SafeAreaView, StatusBar, StyleSheet } from 'react-native';
|
|
3
5
|
import { close, SHOW_DRAWER, SHOW_IAB_DISCLOSURES, SHOW_IAB_VENDORS } from '../../actions';
|
|
4
6
|
import { getStack } from '../../selectors';
|
|
5
7
|
import { CloseButton } from '../../components/Button';
|
|
@@ -8,11 +10,11 @@ import Translator from '../../utils/Translator';
|
|
|
8
10
|
import ConsentCategoriesDrawer from './Drawer.ConsentCategories';
|
|
9
11
|
import IabDisclosuresDrawer from './Drawer.Iab.Disclosures';
|
|
10
12
|
import IabVendorsDrawer from './Drawer.Iab.Vendors';
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
14
|
const easing = v => 1 - Easing.exp(1 - v);
|
|
12
15
|
const maxWebDrawerWidth = 360;
|
|
13
16
|
export const Drawer = () => {
|
|
14
17
|
const {
|
|
15
|
-
cmp,
|
|
16
18
|
config,
|
|
17
19
|
dispatch,
|
|
18
20
|
getState,
|
|
@@ -97,11 +99,11 @@ export const Drawer = () => {
|
|
|
97
99
|
}, [stack.length]);
|
|
98
100
|
const handleClose = useCallback(e => {
|
|
99
101
|
if (e && e.target) {
|
|
100
|
-
if (e.target === overlayRef.current) {
|
|
101
|
-
dispatch(close(
|
|
102
|
+
if (e.target === overlayRef.current || Platform.OS === 'web' && overlayRef.current && 'parentElement' in overlayRef.current && e.target === overlayRef.current.parentElement) {
|
|
103
|
+
dispatch(close());
|
|
102
104
|
}
|
|
103
105
|
} else {
|
|
104
|
-
dispatch(close(
|
|
106
|
+
dispatch(close());
|
|
105
107
|
}
|
|
106
108
|
}, []);
|
|
107
109
|
const drawerStyles = useMemo(() => {
|
|
@@ -130,49 +132,55 @@ export const Drawer = () => {
|
|
|
130
132
|
right: infoDialogPosition === 'right' ? 0 : 'auto'
|
|
131
133
|
};
|
|
132
134
|
}, [layoutWidth, isRTL, infoDialogPosition]);
|
|
133
|
-
return /*#__PURE__*/
|
|
135
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
134
136
|
animationType: Platform.OS === 'web' ? stack.length > 0 ? 'none' : 'fade' : 'slide',
|
|
135
137
|
presentationStyle: "pageSheet",
|
|
136
138
|
visible: stack.length > 0,
|
|
137
139
|
onRequestClose: handleClose,
|
|
138
140
|
transparent: Platform.OS === 'web' ? true : false,
|
|
139
|
-
supportedOrientations: ['portrait', 'landscape']
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
141
|
+
supportedOrientations: ['portrait', 'landscape'],
|
|
142
|
+
children: /*#__PURE__*/_jsxs(SafeAreaView, {
|
|
143
|
+
ref: overlayRef,
|
|
144
|
+
style: [styles.container, dialogOverlay],
|
|
145
|
+
onLayout: handleLayoutChange,
|
|
146
|
+
onPointerUp: handleClose,
|
|
147
|
+
onTouchEnd: handleClose,
|
|
148
|
+
onResponderRelease: handleClose,
|
|
149
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
150
|
+
style: [styles.drawer, anchor, drawerStyles, {
|
|
151
|
+
transform: [{
|
|
152
|
+
translateX: category.current.interpolate(drawerRange)
|
|
153
|
+
}]
|
|
154
|
+
}],
|
|
155
|
+
children: /*#__PURE__*/_jsx(ConsentCategoriesDrawer, {})
|
|
156
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
157
|
+
style: [styles.drawer, anchor, drawerStyles, {
|
|
158
|
+
transform: [{
|
|
159
|
+
translateX: vendor.current.interpolate(drawerRange)
|
|
160
|
+
}]
|
|
161
|
+
}],
|
|
162
|
+
children: /*#__PURE__*/_jsx(IabVendorsDrawer, {})
|
|
163
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
164
|
+
style: [styles.drawer, anchor, drawerStyles, {
|
|
165
|
+
transform: [{
|
|
166
|
+
translateX: disclosure.current.interpolate(drawerRange)
|
|
167
|
+
}]
|
|
168
|
+
}],
|
|
169
|
+
children: /*#__PURE__*/_jsx(IabDisclosuresDrawer, {})
|
|
170
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
171
|
+
style: [styles.close, closeAnchor, {
|
|
172
|
+
transform: [{
|
|
173
|
+
translateX: closeButton.current.interpolate(drawerRange)
|
|
174
|
+
}]
|
|
175
|
+
}],
|
|
176
|
+
children: /*#__PURE__*/_jsx(CloseButton, {
|
|
177
|
+
testID: "close-drawer",
|
|
178
|
+
style: isRTL ? styles.closeLeft : styles.closeRight,
|
|
179
|
+
color: infoDialogForegroundColor
|
|
180
|
+
})
|
|
181
|
+
})]
|
|
182
|
+
})
|
|
183
|
+
});
|
|
176
184
|
};
|
|
177
185
|
const styles = StyleSheet.create({
|
|
178
186
|
container: {
|
|
@@ -180,7 +188,7 @@ const styles = StyleSheet.create({
|
|
|
180
188
|
},
|
|
181
189
|
close: {
|
|
182
190
|
position: 'absolute',
|
|
183
|
-
top: 15,
|
|
191
|
+
top: Platform.OS === 'android' ? (StatusBar.currentHeight ?? 0) + 15 : 15,
|
|
184
192
|
zIndex: 10
|
|
185
193
|
},
|
|
186
194
|
closeRight: {
|
|
@@ -193,6 +201,7 @@ const styles = StyleSheet.create({
|
|
|
193
201
|
},
|
|
194
202
|
drawer: {
|
|
195
203
|
bottom: 0,
|
|
204
|
+
paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight ?? 0 : 0,
|
|
196
205
|
position: 'absolute',
|
|
197
206
|
top: 0,
|
|
198
207
|
zIndex: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useContext","useLayoutEffect","useMemo","useRef","Animated","Easing","Modal","Platform","SafeAreaView","StyleSheet","close","SHOW_DRAWER","SHOW_IAB_DISCLOSURES","SHOW_IAB_VENDORS","getStack","CloseButton","OsanoPrivateContext","Translator","ConsentCategoriesDrawer","IabDisclosuresDrawer","IabVendorsDrawer","easing","v","exp","maxWebDrawerWidth","Drawer","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useContext","useLayoutEffect","useMemo","useRef","Animated","Easing","Modal","Platform","SafeAreaView","StatusBar","StyleSheet","close","SHOW_DRAWER","SHOW_IAB_DISCLOSURES","SHOW_IAB_VENDORS","getStack","CloseButton","OsanoPrivateContext","Translator","ConsentCategoriesDrawer","IabDisclosuresDrawer","IabVendorsDrawer","jsx","_jsx","jsxs","_jsxs","easing","v","exp","maxWebDrawerWidth","Drawer","config","dispatch","getState","locale","overlayRef","palette","infoDialogBackgroundColor","infoDialogForegroundColor","infoDialogOverlayColor","infoDialogPosition","configInfoDialogPosition","OS","state","stack","isRTL","initialPositionX","closeButton","Value","category","vendor","disclosure","layoutWidth","setLayoutWidth","useState","handleLayoutChange","e","width","nativeEvent","layout","newWidth","Math","min","Number","MAX_SAFE_INTEGER","drawerRange","inputRange","outputRange","extrapolateLeft","extrapolateRight","timing","current","duration","toValue","length","useNativeDriver","start","indexOf","setValue","at","handleClose","target","parentElement","drawerStyles","backgroundColor","dialogOverlay","anchor","left","right","closeAnchor","marginLeft","marginRight","animationType","presentationStyle","visible","onRequestClose","transparent","supportedOrientations","children","ref","style","styles","container","onLayout","onPointerUp","onTouchEnd","onResponderRelease","View","drawer","transform","translateX","interpolate","testID","closeLeft","closeRight","color","create","flex","position","top","currentHeight","zIndex","alignSelf","margin","bottom","paddingTop"],"sourceRoot":"../../../../src","sources":["views/Drawer/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IACXC,WAAW,EACXC,UAAU,EACVC,eAAe,EACfC,OAAO,EACPC,MAAM,QAEA,OAAO;AACd,SACCC,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CAAC;IAC1EF,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNE,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../eslint.config.js"],"names":[],"mappings":"wBAGW,OAAO,QAAQ,EAAE,MAAM,CAAC,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expo-metro.config.d.ts","sourceRoot":"","sources":["../../../../scripts/integration-test/expo-metro.config.js"],"names":[],"mappings":";AAMA,0BAA2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-build.d.ts","sourceRoot":"","sources":["../../../scripts/verify-build.js"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ConsentCategoryType } from './constants';
|
|
2
2
|
import flavors, { type Flavor } from './flavors';
|
|
3
3
|
import type { Store } from './hooks/useThunkReducer';
|
|
4
4
|
import type { TcfController, Tcf_v2 } from './iab/tcf/types';
|
|
@@ -23,7 +23,7 @@ export declare class ConsentConfig extends EventEmitter {
|
|
|
23
23
|
get configId(): string;
|
|
24
24
|
get allowTimeout(): boolean;
|
|
25
25
|
get gpcSupport(): boolean;
|
|
26
|
-
get categories():
|
|
26
|
+
get categories(): ConsentCategoryType[];
|
|
27
27
|
get jurisdiction(): string;
|
|
28
28
|
get ccpaRelaxed(): boolean;
|
|
29
29
|
get crossDomain(): boolean;
|
|
@@ -71,11 +71,11 @@ export declare class ConsentConfig extends EventEmitter {
|
|
|
71
71
|
set iabVersions(value: Partial<typeof this.iabVersions>);
|
|
72
72
|
get tcfController(): TcfController | undefined;
|
|
73
73
|
get tcfSelectors(): typeof import("./iab/tcf/selectors") | undefined;
|
|
74
|
-
get iabCategories():
|
|
74
|
+
get iabCategories(): ConsentCategoryType[];
|
|
75
75
|
get gdprApplies(): boolean;
|
|
76
76
|
get shouldRenderOptOut(): boolean;
|
|
77
77
|
get iabVendorCount(): number;
|
|
78
|
-
get nonEssentialCategories():
|
|
78
|
+
get nonEssentialCategories(): ConsentCategoryType[];
|
|
79
79
|
get vendorListVersion(): undefined;
|
|
80
80
|
isIabSpecialFeatureAccepted(specialFeatureId: number | string, state: IabState): boolean;
|
|
81
81
|
isIabPurposeOptedOut(purposeId: number | string, state: IabState): boolean;
|
|
@@ -119,7 +119,7 @@ export declare class ConsentManager {
|
|
|
119
119
|
customerId?: string;
|
|
120
120
|
configId?: string;
|
|
121
121
|
onConfigLoadSuccess?: () => void;
|
|
122
|
-
onConfigLoadFailure?: () => void;
|
|
122
|
+
onConfigLoadFailure?: (error?: Error) => void;
|
|
123
123
|
onLangLoadSuccess?: () => void;
|
|
124
124
|
onLangLoadFailure?: () => void;
|
|
125
125
|
}): Promise<{
|
|
@@ -127,11 +127,11 @@ export declare class ConsentManager {
|
|
|
127
127
|
customerId: string;
|
|
128
128
|
configId: string;
|
|
129
129
|
locale: string;
|
|
130
|
-
consent?:
|
|
130
|
+
consent?: ConsentCategoryType[];
|
|
131
131
|
}>;
|
|
132
|
-
get consent():
|
|
133
|
-
set consent(value:
|
|
134
|
-
hasConsent(category:
|
|
132
|
+
get consent(): ConsentCategoryType[] | undefined;
|
|
133
|
+
set consent(value: ConsentCategoryType[] | undefined);
|
|
134
|
+
hasConsent(category: ConsentCategoryType): boolean;
|
|
135
135
|
/**
|
|
136
136
|
* Set the Google Consent Mode callback function
|
|
137
137
|
*
|
|
@@ -145,7 +145,7 @@ export declare class ConsentManager {
|
|
|
145
145
|
* @param categories - Array of consent categories that have been granted
|
|
146
146
|
* @public
|
|
147
147
|
*/
|
|
148
|
-
triggerGoogleConsentUpdate(categories:
|
|
148
|
+
triggerGoogleConsentUpdate(categories: ConsentCategoryType[]): void;
|
|
149
149
|
get loaded(): boolean;
|
|
150
150
|
get loading(): boolean;
|
|
151
151
|
private _consentingDomain;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsentManager.d.ts","sourceRoot":"","sources":["../../../src/ConsentManager.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"ConsentManager.d.ts","sourceRoot":"","sources":["../../../src/ConsentManager.ts"],"names":[],"mappings":"AAEA,OAAO,EAGN,KAAK,mBAAmB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,OAAO,EAAE,EAAiB,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,KAAK,EAEX,aAAa,EAEb,MAAM,EAEN,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,YAAY,EACZ,YAAY,EAEZ,gBAAgB,EAChB,QAAQ,EACR,MAAM,aAAa,CAAC;AAYrB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,EAAE,YAAY,EAA0B,MAAM,sBAAsB,CAAC;AAE5E,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAK5C,eAAO,MAAM,cAAc,EAAE,MAoE5B,CAAC;AAuEF,qBAAa,aAAc,SAAQ,YAAY;IAC9C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,SAAS,CAAS;gBAEd,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAOlD,IAAI;IAgCJ,IAAI,MAAM,IAAI,MAAM,CAEnB;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,MAAM,EAE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AM,QAAQ,GAAG;CA2BxC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ActionCreator, OsanoState } from './types/store';
|
|
2
|
-
import type { ConsentConfig
|
|
3
|
-
import type {
|
|
2
|
+
import type { ConsentConfig } from './ConsentManager';
|
|
3
|
+
import type { ConsentCategoryType } from './constants';
|
|
4
4
|
export declare const SHOW_DIALOG = "DIALOG";
|
|
5
5
|
export declare const SHOW_DRAWER = "DRAWER";
|
|
6
6
|
export declare const SHOW_IAB_DISCLOSURES = "IAB_DISCLOSURES";
|
|
@@ -31,12 +31,12 @@ export declare const setConfig: ActionCreator<typeof SET_CONFIG, {
|
|
|
31
31
|
}>;
|
|
32
32
|
export declare const showIabDisclosures: ActionCreator<typeof SHOW_IAB_DISCLOSURES, any>;
|
|
33
33
|
export declare const showIabVendors: ActionCreator<typeof SHOW_IAB_VENDORS, any>;
|
|
34
|
-
export declare const toggleCategory: ActionCreator<typeof TOGGLE_CATEGORY,
|
|
35
|
-
category:
|
|
34
|
+
export declare const toggleCategory: ActionCreator<typeof TOGGLE_CATEGORY, ConsentCategoryType | {
|
|
35
|
+
category: ConsentCategoryType;
|
|
36
36
|
value: boolean;
|
|
37
37
|
}>;
|
|
38
38
|
export declare const acceptAll: ActionCreator<typeof SET_ALL_CONSENT, boolean>;
|
|
39
39
|
export declare const denyAll: ActionCreator<typeof SET_ALL_CONSENT, boolean>;
|
|
40
40
|
export declare const goBack: ActionCreator<typeof GO_BACK, never>;
|
|
41
|
-
export declare const close: ActionCreator<typeof CLOSE,
|
|
41
|
+
export declare const close: ActionCreator<typeof CLOSE, never>;
|
|
42
42
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,KAAK,EAAE,aAA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AE,KAAK,CAE9D,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,aAAa,CAAC,OAAO,UAAU,EAAE,MAAM,CAE3B,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,aAAa,CACpC,OAAO,UAAU,EACjB;IACC,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAC8C,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAC7C,OAAO,oBAAoB,EAC3B,GAAG,CACsD,CAAC;AAE3D,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,OAAO,gBAAgB,EAAE,GAAG,CAE7B,CAAC;AAE3C,eAAO,MAAM,cAAc,EAAE,aAAa,CACzC,OAAO,eAAe,EACtB,mBAAmB,GAAG;IAAE,QAAQ,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CACnB,CAAC;AAEtD,eAAO,MAAM,SAAS,EAAE,aAAa,CACpC,OAAO,eAAe,EACtB,OAAO,CAC4C,CAAC;AACrD,eAAO,MAAM,OAAO,EAAE,aAAa,CAAC,OAAO,eAAe,EAAE,OAAO,CAGjE,CAAC;AACH,eAAO,MAAM,MAAM,EAAE,aAAa,CAAC,OAAO,OAAO,EAAE,KAAK,CAEtD,CAAC;AACH,eAAO,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,KAAK,EAAE,KAAK,CAEnD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FETCH_DISCLOSURES_BEGIN, FETCH_DISCLOSURES_FAILURE, FETCH_DISCLOSURES_SUCCESS, SAVE_BEGIN, SAVE_FAILURE, SAVE_SUCCESS } from './actions';
|
|
2
2
|
import type { ConsentManager } from './ConsentManager';
|
|
3
3
|
import type { OsanoAction, OsanoState } from './types/store';
|
|
4
|
-
import { type
|
|
4
|
+
import { type ConsentCategoryType } from './constants';
|
|
5
5
|
import type { AsyncAction } from './hooks/useThunkReducer';
|
|
6
6
|
export declare const toggleDisclosure: (payload: {
|
|
7
7
|
category: ConsentCategoryType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3D,eAAO,MAAM,gBAAgB,GAC3B,SAAS;IACT,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,WAAW,CACd,UAAU,EACV,WAAW,CACR,OAAO,uBAAuB,GAC9B,OAAO,yBAAyB,GAChC,OAAO,yBAAyB,EAClC;IAAE,WAAW,EAAE,GAAG,CAAA;CAAE,CACpB,CAmCD,CAAC;AAEH,eAAO,MAAM,WAAW,GAEtB,KAAK,cAAc,KACjB,WAAW,CACb,UAAU,EACV,WAAW,CACV,OAAO,UAAU,GAAG,OAAO,YAAY,GAAG,OAAO,YAAY,EAC7D,mBAAmB,EAAE,GAAG,IAAI,CAC5B,CAwBD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAEN,KAAK,cAAc,EACnB,KAAK,SAAS,EAGd,KAAK,IAAI,EACT,KAAK,SAAS,EACd,MAAM,cAAc,CAAC;AAWtB,KAAK,WAAW,GAAG,KAAK,CAAC,eAAe,CACvC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,CACD,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAqD5C,CAAC;AAGF,eAAO,MAAM,WAAW;YAGb,MAAM;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAEN,KAAK,cAAc,EACnB,KAAK,SAAS,EAGd,KAAK,IAAI,EACT,KAAK,SAAS,EACd,MAAM,cAAc,CAAC;AAWtB,KAAK,WAAW,GAAG,KAAK,CAAC,eAAe,CACvC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,CACD,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAqD5C,CAAC;AAGF,eAAO,MAAM,WAAW;YAGb,MAAM;8BA8BhB,CAAC;AAEF,eAAO,MAAM,UAAU,GACtB,OAAO,cAAc,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,sBAoBD,CAAC;AAGF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkBzD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmB9C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsB5C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsBjD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAWjD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkB5C,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OsanoState } from './types/store';
|
|
1
2
|
export declare const mappedJurisdictions: Record<string, string>;
|
|
2
3
|
export declare enum ConsentCategory {
|
|
3
4
|
ESSENTIAL = "ESSENTIAL",
|
|
@@ -7,6 +8,10 @@ export declare enum ConsentCategory {
|
|
|
7
8
|
OPT_OUT = "OPT_OUT",
|
|
8
9
|
STORAGE = "STORAGE"
|
|
9
10
|
}
|
|
11
|
+
export declare const OsanoCategories: ConsentCategory[];
|
|
12
|
+
export type ConsentCategoryType = (typeof ConsentCategory)[keyof typeof ConsentCategory];
|
|
13
|
+
export declare function makeConsentFromCategories(consentedCategories: ConsentCategoryType[], isAccepted?: (category: ConsentCategoryType) => boolean): Record<ConsentCategoryType, boolean>;
|
|
14
|
+
export declare function formatConsentArray(consent: Record<ConsentCategoryType, boolean>): ConsentCategoryType[];
|
|
10
15
|
export declare const env: {
|
|
11
16
|
OSANO_ORIGIN: string;
|
|
12
17
|
CONSENT_URI: string;
|
|
@@ -14,4 +19,5 @@ export declare const env: {
|
|
|
14
19
|
LOCALE_URI: string;
|
|
15
20
|
LOOKUPS_URI: string;
|
|
16
21
|
};
|
|
22
|
+
export declare const initialState: OsanoState;
|
|
17
23
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOtD,CAAC;AAEF,oBAAY,eAAe;IAC1B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,OAAO,YAAY;IACnB,OAAO,YAAY;CACnB;AAED,eAAO,MAAM,eAAe,mBAAiC,CAAC;AAC9D,MAAM,MAAM,mBAAmB,GAC9B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAExD,wBAAgB,yBAAyB,CACxC,mBAAmB,EAAE,mBAAmB,EAAE,EAC1C,UAAU,GAAE,CAAC,QAAQ,EAAE,mBAAmB,KAAK,OACR,GACrC,MAAM,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAgBtC;AAED,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,MAAM,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAC3C,mBAAmB,EAAE,CAIvB;AAID,eAAO,MAAM,GAAG;;;;;;CAmBf,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UA2B1B,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ConsentConfig, ConsentManager } from './ConsentManager';
|
|
2
2
|
import type { GetState, MiddlewareNext, Store, ThunkDispatch } from './hooks/useThunkReducer';
|
|
3
|
-
import type { GoogleConsentModeCallback } from './types/google-consent-mode';
|
|
4
3
|
import type { OsanoAction, OsanoState } from './types/store';
|
|
4
|
+
import { type ConsentCategoryType } from './constants';
|
|
5
|
+
import type { GoogleConsentModeCallback } from './types/google-consent-mode';
|
|
5
6
|
import React from 'react';
|
|
6
|
-
import { ConsentCategory } from './constants';
|
|
7
|
-
import { createSharedStyles } from './styles';
|
|
8
7
|
import Translator from './utils/Translator';
|
|
8
|
+
import { createSharedStyles } from './styles';
|
|
9
9
|
type OsanoPublicContextType = {
|
|
10
10
|
locale: string;
|
|
11
|
-
getConsent: (category?:
|
|
11
|
+
getConsent: (category?: ConsentCategoryType) => boolean | ConsentCategoryType[];
|
|
12
12
|
getDeviceId: () => string;
|
|
13
13
|
clearConsent: () => void;
|
|
14
|
-
consent: (consent?:
|
|
14
|
+
consent: (consent?: ConsentCategoryType | ConsentCategoryType[]) => Promise<ConsentCategoryType[]>;
|
|
15
15
|
setLocale: (locale: string) => void;
|
|
16
16
|
showBanner: () => void;
|
|
17
17
|
showDrawer: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EACX,QAAQ,EACR,cAAc,EACd,KAAK,EACL,aAAa,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EACX,QAAQ,EACR,cAAc,EACd,KAAK,EACL,aAAa,EACb,MAAM,yBAAy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,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1D,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACpD,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACnC,4BAA4B,EAAE,CAAC,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,kBAAkB,uCAY7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,wCAe/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBoundCallback.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useBoundCallback.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBoundCallback.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useBoundCallback.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EACjC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC7B,KAAK,GAAE,GAAG,EAAO,GACf,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CASvB;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThunkReducer.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useThunkReducer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useThunkReducer.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useThunkReducer.ts"],"names":[],"mappings":"AAAA,O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AAW,CAAC,CAAC,EAAE,CAAC,CAAC,KACzB,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,GAAG,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EACnC,WAAW,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1B,cAAc,EAAE,GAAG,EACnB,WAAW,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,EAC9B,UAAU,GAAE,CAAC,CACZ,KAAK,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KACd,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,EAAO,GACzD,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAyG5C;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/iab/gpp/api.js"],"names":[],"mappings":"AAwGA;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/iab/gpp/api.js"],"names":[],"mappings":"AAwGA;yCAkDyB,YAAO,EAAE,aAAQ,EAAE,cAAS;;EAiGpD;AA1ND,8DAC8E;AAmC9E,yDACyE;;;;;;;;;aAzD3D,MAAM;;;;;;;;;;;;yBAUP,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent.d.ts","sourceRoot":"","sources":["../../../../../src/iab/gpp/consent.js"],"names":[],"mappings":"AA6BO,yEAyBN;AAEM,
|
|
1
|
+
{"version":3,"file":"consent.d.ts","sourceRoot":"","sources":["../../../../../src/iab/gpp/consent.js"],"names":[],"mappings":"AA6BO,yEAyBN;AAEM,uDAA6C,UAAK;;;;;;EAQvD;AAEK,2DAAiD,cAAS,EAAE,UAAK;;;;;;;;;;;;;EA0BvE;AAEM,wDAmBN"}
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
/**
|
|
22
22
|
* encode a TCString boolean
|
|
23
23
|
*/
|
|
24
|
-
export declare const encode: (bool: boolean) => "
|
|
24
|
+
export declare const encode: (bool: boolean) => "0" | "1";
|
|
25
25
|
/**
|
|
26
26
|
* decode a TCString boolean
|
|
27
27
|
*/
|
|
28
28
|
export declare const decode: (bitString: string) => bitString is "1";
|
|
29
29
|
declare const _default: {
|
|
30
30
|
decode: (bitString: string) => bitString is "1";
|
|
31
|
-
encode: (bool: boolean) => "
|
|
31
|
+
encode: (bool: boolean) => "0" | "1";
|
|
32
32
|
};
|
|
33
33
|
export default _default;
|
|
34
34
|
//# sourceMappingURL=BooleanEncoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/encoders/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/encoders/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACvB,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;IACnC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;CACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/v1/index.js"],"names":[],"mappings":"AAYA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/v1/index.js"],"names":[],"mappings":"AAYA,2DACS,UAAK,MAAM,SAAI,MAAM,WAAM,SAgDnC;;;;6CAYisF,YAAO,EAAC,aAAS,EAAC,cAAU;;;;;;;;;wBAzEjqF,aAAa;2BAAb,aAAa;2BAAb,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent.d.ts","sourceRoot":"","sources":["../../../../../src/iab/tcf/consent.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"consent.d.ts","sourceRoot":"","sources":["../../../../../src/iab/tcf/consent.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEX,cAAc,EACd,MAAM,EACN,cAAc,EACd,MAAM,EACN,MAAM,SAAS,CAAC;AAkBjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,eAAO,MAAM,aAAa;;;;;;;;CAQzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC7B,QAAQ,aAAa,EACrB,OAAO,UAAU,GAAG,QAAQ,EAC5B,YAAY,cAAc,4BA8C1B,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACxC,QAAQ,aAAa,EACrB,OAAO,QAAQ,GAAG,UAAU,EAC5B,YAAY,cAAc,4BA2D1B,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,aAAa,cAAc,MAC3B,UAAU,MAAM,KAAG,MAgCnB,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,aAAa,cAAc,MAK/C,UAAU,MAAM,EAAE,gBAAgB,MAAM,cAEhD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,aAAa,cAAc,MAC3B,QAAQ,aAAa,EAAE,OAAO,UAAU,GAAG,QAAQ,KAwE9C,MACL,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAClC,aAAa,cAAc,MAC3B,QAAQ,aAAa,EAAE,OAAO,UAAU,GAAG,QAAQ,WAgDnD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,aAAa,cAAc,MAEtD,SAAS,OAAO,CAAC,MAAM,CAAC;;;;CAOhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/iab/tcf/constants.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/iab/tcf/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE5E,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;CAyBV,CAAC;AAEX,eAAO,MAAM,aAAa,4kBAGzB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;CAUvB,CAAC;AAEX,eAAO,MAAM,mBAAmB,yaAAgC,CAAC;AAEjE,eAAO,MAAM,UAAU,UAAsC,CAAC;AAC9D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,EAAE,CAO5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC5B,UAAS,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAM,EAC3D,mBAAgB,4BAehB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../src/iab/tcf/middleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../src/iab/tcf/middleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAU,MAAM,SAAS,CAAC;AA0B5D,eAAO,MAAM,cAAc,EAAE,oBAmM5B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -39,20 +39,20 @@ export default function makeReducer(initOptions: IabInitOptions): (state: OsanoS
|
|
|
39
39
|
};
|
|
40
40
|
config?: import("../../ConsentManager").ConsentConfig;
|
|
41
41
|
configId: string;
|
|
42
|
-
consent: Record<import("../../constants").
|
|
42
|
+
consent: Record<import("../../constants").ConsentCategoryType, boolean | undefined>;
|
|
43
43
|
consentTimestamp: number;
|
|
44
44
|
customerId: string;
|
|
45
45
|
dialogOpen: boolean;
|
|
46
46
|
disclosures: {
|
|
47
|
-
fetched: import("../../constants").
|
|
47
|
+
fetched: import("../../constants").ConsentCategoryType[];
|
|
48
48
|
loading: boolean;
|
|
49
|
-
results: Partial<Record<import("../../constants").
|
|
49
|
+
results: Partial<Record<import("../../constants").ConsentCategoryType, import("../../types/store").Disclosure[]>>;
|
|
50
50
|
};
|
|
51
51
|
locale: string;
|
|
52
52
|
ready: {
|
|
53
53
|
consent: boolean;
|
|
54
54
|
};
|
|
55
|
-
savedConsent: Record<import("../../constants").
|
|
55
|
+
savedConsent: Record<import("../../constants").ConsentCategoryType, boolean> | null;
|
|
56
56
|
scrollToType: string;
|
|
57
57
|
scrollToId: number;
|
|
58
58
|
stack: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/iab/tcf/reducer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/iab/tcf/reducer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAoBjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIzC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;CAkBxB,CAAC;AAgDF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,WAAW,EAAE,cAAc,IAEtD,OAAO,UAAU,GAAG,QAAQ,EAAE,QAAQ,WAAW;;;;;;;;;;;cA9CT,CAAC;mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;EA8MrE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TcfVersion, TcfVersionType, Tcf_v2 } from './types';
|
|
2
2
|
import type { Config } from '../../types/consent-config';
|
|
3
|
-
import {
|
|
3
|
+
import { type ConsentCategoryType } from '../../constants';
|
|
4
4
|
import type { IabState } from '../types';
|
|
5
5
|
import type { OsanoState } from '../../types/store';
|
|
6
6
|
export declare const doesGDPRApply: (config: Config, apiVersion?: TcfVersionType) => boolean;
|
|
@@ -9,7 +9,7 @@ export declare const isIABEnabled: (config: Config) => boolean;
|
|
|
9
9
|
export declare const getConfigData: (config: Config, apiVersion?: string) => {} | undefined;
|
|
10
10
|
export declare const getStateData: <V extends TcfVersionType>(state: Partial<IabState>, apiVersion?: V) => TcfVersion<V>;
|
|
11
11
|
export declare const getCurrentScreen: (state: OsanoState) => number;
|
|
12
|
-
export declare const getConsentString: (state: IabState, { gppSection, tcString }?: {
|
|
12
|
+
export declare const getConsentString: (state: IabState, { gppSection, tcString, }?: {
|
|
13
13
|
gppSection?: string;
|
|
14
14
|
tcString?: string;
|
|
15
15
|
}) => string;
|
|
@@ -46,9 +46,7 @@ export declare const isTcfApplicable: (state: Config) => boolean;
|
|
|
46
46
|
export declare const isVendorListLoaded: (state: Config, apiVersion?: TcfVersionType) => boolean;
|
|
47
47
|
export declare const isVendorListLoading: (state: Config, apiVersion?: TcfVersionType) => boolean;
|
|
48
48
|
export declare const getCountryCode: (config: Config) => string | null;
|
|
49
|
-
export declare const getSavedConsent: (state: OsanoState) => Record<ConsentCategory, boolean> | null;
|
|
50
49
|
export declare const isSaved: (state: OsanoState) => boolean;
|
|
51
|
-
export declare const
|
|
52
|
-
export declare const getConsent: (state?: OsanoState) => Record<ConsentCategory, boolean | undefined>;
|
|
50
|
+
export declare const getConsent: (state?: OsanoState) => Record<ConsentCategoryType, boolean | undefined>;
|
|
53
51
|
export declare const getUpdatedVendorDisclosures: (config: Config, apiVersion?: string) => Record<string, boolean>;
|
|
54
52
|
//# sourceMappingURL=selectors.d.ts.map
|