@osano/osano-cmp-react-native 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +251 -0
- package/lib/commonjs/ConsentManager.js +209 -69
- package/lib/commonjs/ConsentManager.js.map +1 -1
- package/lib/commonjs/ConsentUiBuilder.js +2 -2
- package/lib/commonjs/ConsentUiBuilder.js.map +1 -1
- package/lib/commonjs/actions.js +84 -0
- package/lib/commonjs/actions.js.map +1 -0
- package/lib/commonjs/commands.js +63 -0
- package/lib/commonjs/commands.js.map +1 -0
- package/lib/commonjs/components/Button.js +35 -25
- package/lib/commonjs/components/Button.js.map +1 -1
- package/lib/commonjs/components/Locale.js +5 -3
- package/lib/commonjs/components/Locale.js.map +1 -1
- package/lib/commonjs/context.js +4 -3
- package/lib/commonjs/context.js.map +1 -1
- package/lib/commonjs/flavors/index.js +1 -1
- package/lib/commonjs/hooks/usePrevious.js +1 -1
- package/lib/commonjs/hooks/usePrevious.js.map +1 -1
- package/lib/commonjs/hooks/useThunkReducer.js +40 -15
- package/lib/commonjs/hooks/useThunkReducer.js.map +1 -1
- package/lib/commonjs/iab/actions.js +17 -0
- package/lib/commonjs/iab/actions.js.map +1 -0
- package/lib/commonjs/iab/constants.js +3 -1
- package/lib/commonjs/iab/constants.js.map +1 -1
- package/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.js +1 -1
- package/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.js.map +1 -1
- package/lib/commonjs/iab/index.js +33 -0
- package/lib/commonjs/iab/index.js.map +1 -0
- package/lib/commonjs/iab/reducer.js +46 -0
- package/lib/commonjs/iab/reducer.js.map +1 -0
- package/lib/commonjs/iab/tcf/actions.js +74 -14
- package/lib/commonjs/iab/tcf/actions.js.map +1 -1
- package/lib/commonjs/iab/tcf/consent.js +51 -87
- package/lib/commonjs/iab/tcf/consent.js.map +1 -1
- package/lib/commonjs/iab/tcf/constants.js +5 -5
- package/lib/commonjs/iab/tcf/constants.js.map +1 -1
- package/lib/commonjs/iab/tcf/helpers.js +72 -0
- package/lib/commonjs/iab/tcf/helpers.js.map +1 -0
- package/lib/commonjs/iab/tcf/index.js +5 -3
- package/lib/commonjs/iab/tcf/index.js.map +1 -1
- package/lib/commonjs/iab/tcf/middleware.js +172 -0
- package/lib/commonjs/iab/tcf/middleware.js.map +1 -0
- package/lib/commonjs/iab/tcf/reducer.js +225 -40
- package/lib/commonjs/iab/tcf/reducer.js.map +1 -1
- package/lib/commonjs/iab/tcf/selectors.js +60 -69
- package/lib/commonjs/iab/tcf/selectors.js.map +1 -1
- package/lib/commonjs/iab/tcf/v2.0/encoders.js +0 -8
- package/lib/commonjs/iab/tcf/v2.0/encoders.js.map +1 -1
- package/lib/commonjs/iab/tcf/v2.0/formatters.js +5 -7
- package/lib/commonjs/iab/tcf/v2.0/formatters.js.map +1 -1
- package/lib/commonjs/iab/tcf/v2.0/index.js +18 -16
- package/lib/commonjs/iab/tcf/v2.0/index.js.map +1 -1
- package/lib/commonjs/iab/tcf/v2.0/shared-constants.js +19 -3
- package/lib/commonjs/iab/tcf/v2.0/shared-constants.js.map +1 -1
- package/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.js +2 -14
- package/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.js.map +1 -1
- package/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.js +2 -13
- package/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.js.map +1 -1
- package/lib/commonjs/index.js +77 -30
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/reducer.js +366 -0
- package/lib/commonjs/reducer.js.map +1 -0
- package/lib/commonjs/selectors.js +83 -0
- package/lib/commonjs/selectors.js.map +1 -0
- package/lib/commonjs/services/consent.js +20 -4
- package/lib/commonjs/services/consent.js.map +1 -1
- package/lib/commonjs/styles.js +1 -1
- package/lib/commonjs/styles.js.map +1 -1
- package/lib/commonjs/utils/Translator.js +4 -2
- package/lib/commonjs/utils/Translator.js.map +1 -1
- package/lib/commonjs/utils/index.js +3 -16
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/types.js +2 -0
- package/lib/commonjs/utils/types.js.map +1 -0
- package/lib/commonjs/views/Dialog/Buttons.js +2 -2
- package/lib/commonjs/views/Dialog/Buttons.js.map +1 -1
- package/lib/commonjs/views/Dialog/Message.js +1 -1
- package/lib/commonjs/views/Dialog/Message.js.map +1 -1
- package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js +5 -5
- package/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.js.map +1 -1
- package/lib/commonjs/views/Dialog/index.js +15 -9
- package/lib/commonjs/views/Dialog/index.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js +50 -22
- package/lib/commonjs/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.Header.js +1 -0
- package/lib/commonjs/views/Drawer/Drawer.Header.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js +26 -14
- package/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
- package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js +60 -36
- package/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
- package/lib/commonjs/views/Drawer/index.js +11 -10
- package/lib/commonjs/views/Drawer/index.js.map +1 -1
- package/lib/module/ConsentManager.js +209 -71
- package/lib/module/ConsentManager.js.map +1 -1
- package/lib/module/ConsentUiBuilder.js +1 -1
- package/lib/module/ConsentUiBuilder.js.map +1 -1
- package/lib/module/actions.js +66 -0
- package/lib/module/actions.js.map +1 -0
- package/lib/module/commands.js +55 -0
- package/lib/module/commands.js.map +1 -0
- package/lib/module/components/Button.js +30 -20
- package/lib/module/components/Button.js.map +1 -1
- package/lib/module/components/Locale.js +5 -3
- package/lib/module/components/Locale.js.map +1 -1
- package/lib/module/context.js +3 -2
- package/lib/module/context.js.map +1 -1
- package/lib/module/flavors/index.js +1 -1
- package/lib/module/hooks/usePrevious.js +1 -1
- package/lib/module/hooks/usePrevious.js.map +1 -1
- package/lib/module/hooks/useThunkReducer.js +40 -16
- package/lib/module/hooks/useThunkReducer.js.map +1 -1
- package/lib/module/iab/actions.js +10 -0
- package/lib/module/iab/actions.js.map +1 -0
- package/lib/module/iab/constants.js +2 -0
- package/lib/module/iab/constants.js.map +1 -1
- package/lib/module/iab/gpp/encoders/FixedIntegerEncoder.js +1 -1
- package/lib/module/iab/gpp/encoders/FixedIntegerEncoder.js.map +1 -1
- package/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.js.map +1 -1
- package/lib/module/iab/index.js +26 -0
- package/lib/module/iab/index.js.map +1 -0
- package/lib/module/iab/reducer.js +39 -0
- package/lib/module/iab/reducer.js.map +1 -0
- package/lib/module/iab/tcf/actions.js +63 -13
- package/lib/module/iab/tcf/actions.js.map +1 -1
- package/lib/module/iab/tcf/consent.js +47 -84
- package/lib/module/iab/tcf/consent.js.map +1 -1
- package/lib/module/iab/tcf/constants.js +5 -5
- package/lib/module/iab/tcf/constants.js.map +1 -1
- package/lib/module/iab/tcf/helpers.js +62 -0
- package/lib/module/iab/tcf/helpers.js.map +1 -0
- package/lib/module/iab/tcf/index.js +3 -3
- package/lib/module/iab/tcf/index.js.map +1 -1
- package/lib/module/iab/tcf/middleware.js +164 -0
- package/lib/module/iab/tcf/middleware.js.map +1 -0
- package/lib/module/iab/tcf/reducer.js +223 -40
- package/lib/module/iab/tcf/reducer.js.map +1 -1
- package/lib/module/iab/tcf/selectors.js +45 -57
- package/lib/module/iab/tcf/selectors.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/encoders.js +0 -9
- package/lib/module/iab/tcf/v2.0/encoders.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/formatters.js +5 -7
- package/lib/module/iab/tcf/v2.0/formatters.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/index.js +18 -16
- package/lib/module/iab/tcf/v2.0/index.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/shared-constants.js +17 -3
- package/lib/module/iab/tcf/v2.0/shared-constants.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/tcfcav1-constants.js +2 -14
- package/lib/module/iab/tcf/v2.0/tcfcav1-constants.js.map +1 -1
- package/lib/module/iab/tcf/v2.0/tcfeuv2-constants.js +2 -13
- package/lib/module/iab/tcf/v2.0/tcfeuv2-constants.js.map +1 -1
- package/lib/module/index.js +77 -29
- package/lib/module/index.js.map +1 -1
- package/lib/module/{store.js → reducer.js} +76 -238
- package/lib/module/reducer.js.map +1 -0
- package/lib/module/selectors.js +60 -0
- package/lib/module/selectors.js.map +1 -0
- package/lib/module/services/consent.js +20 -4
- package/lib/module/services/consent.js.map +1 -1
- package/lib/module/styles.js +1 -1
- package/lib/module/styles.js.map +1 -1
- package/lib/module/utils/Translator.js +4 -2
- package/lib/module/utils/Translator.js.map +1 -1
- package/lib/module/utils/index.js +3 -16
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/types.js +2 -0
- package/lib/module/utils/types.js.map +1 -0
- package/lib/module/views/Dialog/Buttons.js +1 -1
- package/lib/module/views/Dialog/Buttons.js.map +1 -1
- package/lib/module/views/Dialog/Message.js +1 -1
- package/lib/module/views/Dialog/Message.js.map +1 -1
- package/lib/module/views/Dialog/PreferenceManagementDeepLinks.js +4 -4
- package/lib/module/views/Dialog/PreferenceManagementDeepLinks.js.map +1 -1
- package/lib/module/views/Dialog/index.js +11 -5
- package/lib/module/views/Dialog/index.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.ConsentCategories.js +41 -12
- package/lib/module/views/Drawer/Drawer.ConsentCategories.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.Header.js +1 -0
- package/lib/module/views/Drawer/Drawer.Header.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js +24 -12
- package/lib/module/views/Drawer/Drawer.Iab.Disclosures.js.map +1 -1
- package/lib/module/views/Drawer/Drawer.Iab.Vendors.js +55 -31
- package/lib/module/views/Drawer/Drawer.Iab.Vendors.js.map +1 -1
- package/lib/module/views/Drawer/index.js +3 -1
- package/lib/module/views/Drawer/index.js.map +1 -1
- package/lib/typescript/babel.config.d.ts +2 -0
- package/lib/typescript/babel.config.d.ts.map +1 -0
- package/lib/typescript/documentation/babel.config.d.ts +2 -0
- package/lib/typescript/documentation/babel.config.d.ts.map +1 -0
- package/lib/typescript/documentation/docusaurus.config.d.ts +4 -0
- package/lib/typescript/documentation/docusaurus.config.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/ConsentManager.d.ts +190 -0
- package/lib/typescript/lib/commonjs/ConsentManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/ConsentUiBuilder.d.ts +3 -0
- package/lib/typescript/lib/commonjs/ConsentUiBuilder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/actions.d.ts +66 -0
- package/lib/typescript/lib/commonjs/actions.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/commands.d.ts +4 -0
- package/lib/typescript/lib/commonjs/commands.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/components/Button.d.ts +11 -0
- package/lib/typescript/lib/commonjs/components/Button.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/components/Checkbox.d.ts +4 -0
- package/lib/typescript/lib/commonjs/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/components/Divider.d.ts +3 -0
- package/lib/typescript/lib/commonjs/components/Divider.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/components/ExpansionPanel.d.ts +8 -0
- package/lib/typescript/lib/commonjs/components/ExpansionPanel.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/components/Link.d.ts +3 -0
- package/lib/typescript/lib/commonjs/components/Link.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/components/List.d.ts +3 -0
- package/lib/typescript/lib/commonjs/components/List.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/components/Locale.d.ts +6 -0
- package/lib/typescript/lib/commonjs/components/Locale.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/components/StoragePolicyLink.d.ts +4 -0
- package/lib/typescript/lib/commonjs/components/StoragePolicyLink.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/components/Toggle.d.ts +4 -0
- package/lib/typescript/lib/commonjs/components/Toggle.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/constants.d.ts +20 -0
- package/lib/typescript/lib/commonjs/constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/context.d.ts +4 -0
- package/lib/typescript/lib/commonjs/context.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/flavors/index.d.ts +122 -0
- package/lib/typescript/lib/commonjs/flavors/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/hooks/useBoundCallback.d.ts +18 -0
- package/lib/typescript/lib/commonjs/hooks/useBoundCallback.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/hooks/useDeviceOrientation.d.ts +4 -0
- package/lib/typescript/lib/commonjs/hooks/useDeviceOrientation.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/hooks/usePrevious.d.ts +3 -0
- package/lib/typescript/lib/commonjs/hooks/usePrevious.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/hooks/useThunkReducer.d.ts +8 -0
- package/lib/typescript/lib/commonjs/hooks/useThunkReducer.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/actions.d.ts +10 -0
- package/lib/typescript/lib/commonjs/iab/actions.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/constants.d.ts +5 -0
- package/lib/typescript/lib/commonjs/iab/constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/api.d.ts +30 -0
- package/lib/typescript/lib/commonjs/iab/gpp/api.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/consent.d.ts +25 -0
- package/lib/typescript/lib/commonjs/iab/gpp/consent.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/constants.d.ts +26 -0
- package/lib/typescript/lib/commonjs/iab/gpp/constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts +9 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/BooleanEncoder.d.ts +32 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/BooleanEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +10 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/DatetimeEncoder.d.ts +29 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/DatetimeEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +19 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +29 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +29 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +29 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +7 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.d.ts +29 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +29 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +29 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedStringEncoder.d.ts +29 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/FixedStringEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +10 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/errors.d.ts +17 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/errors.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/index.d.ts +16 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/types.d.ts +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/encoders/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/index.d.ts +9 -0
- package/lib/typescript/lib/commonjs/iab/gpp/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/reducer.d.ts +7 -0
- package/lib/typescript/lib/commonjs/iab/gpp/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/selectors.d.ts +7 -0
- package/lib/typescript/lib/commonjs/iab/gpp/selectors.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/types.d.ts +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/v1/constants.d.ts +13 -0
- package/lib/typescript/lib/commonjs/iab/gpp/v1/constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/gpp/v1/index.d.ts +14 -0
- package/lib/typescript/lib/commonjs/iab/gpp/v1/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/index.d.ts +3 -0
- package/lib/typescript/lib/commonjs/iab/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/reducer.d.ts +6 -0
- package/lib/typescript/lib/commonjs/iab/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/actions.d.ts +64 -0
- package/lib/typescript/lib/commonjs/iab/tcf/actions.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/consent.d.ts +59 -0
- package/lib/typescript/lib/commonjs/iab/tcf/consent.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/constants.d.ts +22 -0
- package/lib/typescript/lib/commonjs/iab/tcf/constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/helpers.d.ts +9 -0
- package/lib/typescript/lib/commonjs/iab/tcf/helpers.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/index.d.ts +4 -0
- package/lib/typescript/lib/commonjs/iab/tcf/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/middleware.d.ts +4 -0
- package/lib/typescript/lib/commonjs/iab/tcf/middleware.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/reducer.d.ts +22 -0
- package/lib/typescript/lib/commonjs/iab/tcf/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/selectors.d.ts +48 -0
- package/lib/typescript/lib/commonjs/iab/tcf/selectors.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/iab/tcf/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/encoders.d.ts +14 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/encoders.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/formatters.d.ts +5 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/index.d.ts +191 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/shared-constants.d.ts +32 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/shared-constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.d.ts +43 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.d.ts +48 -0
- package/lib/typescript/lib/commonjs/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/iab/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/api.d.ts +6 -0
- package/lib/typescript/lib/commonjs/iab/usp/api.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/consent.d.ts +27 -0
- package/lib/typescript/lib/commonjs/iab/usp/consent.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/constants.d.ts +109 -0
- package/lib/typescript/lib/commonjs/iab/usp/constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/index.d.ts +9 -0
- package/lib/typescript/lib/commonjs/iab/usp/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/reducer.d.ts +14 -0
- package/lib/typescript/lib/commonjs/iab/usp/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/selectors.d.ts +10 -0
- package/lib/typescript/lib/commonjs/iab/usp/selectors.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/types.d.ts +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/v1/constants.d.ts +13 -0
- package/lib/typescript/lib/commonjs/iab/usp/v1/constants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/usp/v1/index.d.ts +12 -0
- package/lib/typescript/lib/commonjs/iab/usp/v1/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/iab/utilities.d.ts +3 -0
- package/lib/typescript/lib/commonjs/iab/utilities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/index.d.ts +4 -0
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/locale/index.d.ts +62 -0
- package/lib/typescript/lib/commonjs/locale/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/native/OsanoCmp.d.ts +6 -0
- package/lib/typescript/lib/commonjs/native/OsanoCmp.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/reducer.d.ts +29 -0
- package/lib/typescript/lib/commonjs/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/selectors.d.ts +16 -0
- package/lib/typescript/lib/commonjs/selectors.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/services/consent.d.ts +6 -0
- package/lib/typescript/lib/commonjs/services/consent.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/services/disclosures.d.ts +3 -0
- package/lib/typescript/lib/commonjs/services/disclosures.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/services/locale.d.ts +4 -0
- package/lib/typescript/lib/commonjs/services/locale.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/styles.d.ts +141 -0
- package/lib/typescript/lib/commonjs/styles.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/types/consent-config.d.d.ts +2 -0
- package/lib/typescript/lib/commonjs/types/consent-config.d.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/types/env.d.d.ts +1 -0
- package/lib/typescript/lib/commonjs/types/env.d.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/types/index.d.d.ts +2 -0
- package/lib/typescript/lib/commonjs/types/index.d.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/types/store.d.d.ts +2 -0
- package/lib/typescript/lib/commonjs/types/store.d.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/utils/API.d.ts +7 -0
- package/lib/typescript/lib/commonjs/utils/API.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/utils/Color.d.ts +13 -0
- package/lib/typescript/lib/commonjs/utils/Color.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/utils/EventEmitter.d.ts +16 -0
- package/lib/typescript/lib/commonjs/utils/EventEmitter.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/utils/Translator.d.ts +54 -0
- package/lib/typescript/lib/commonjs/utils/Translator.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/utils/index.d.ts +6 -0
- package/lib/typescript/lib/commonjs/utils/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/utils/types.d.ts +1 -0
- package/lib/typescript/lib/commonjs/utils/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Dialog/Buttons.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/Dialog/Buttons.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Dialog/FirstLayerUsage.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/Dialog/FirstLayerUsage.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Dialog/Message.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/Dialog/Message.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/Dialog/PreferenceManagementDeepLinks.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Dialog/index.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/Dialog/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.ConsentCategories.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.ConsentCategories.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Header.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Header.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Disclosures.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/Drawer/Drawer.Iab.Vendors.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/views/Drawer/index.d.ts +3 -0
- package/lib/typescript/lib/commonjs/views/Drawer/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/ConsentManager.d.ts +347 -0
- package/lib/typescript/lib/module/ConsentManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/ConsentUiBuilder.d.ts +174 -0
- package/lib/typescript/lib/module/ConsentUiBuilder.d.ts.map +1 -0
- package/lib/typescript/lib/module/actions.d.ts +65 -0
- package/lib/typescript/lib/module/actions.d.ts.map +1 -0
- package/lib/typescript/lib/module/commands.d.ts +3 -0
- package/lib/typescript/lib/module/commands.d.ts.map +1 -0
- package/lib/typescript/lib/module/components/Button.d.ts +11 -0
- package/lib/typescript/lib/module/components/Button.d.ts.map +1 -0
- package/lib/typescript/lib/module/components/Checkbox.d.ts +4 -0
- package/lib/typescript/lib/module/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/lib/module/components/Divider.d.ts +4 -0
- package/lib/typescript/lib/module/components/Divider.d.ts.map +1 -0
- package/lib/typescript/lib/module/components/ExpansionPanel.d.ts +9 -0
- package/lib/typescript/lib/module/components/ExpansionPanel.d.ts.map +1 -0
- package/lib/typescript/lib/module/components/Link.d.ts +4 -0
- package/lib/typescript/lib/module/components/Link.d.ts.map +1 -0
- package/lib/typescript/lib/module/components/List.d.ts +4 -0
- package/lib/typescript/lib/module/components/List.d.ts.map +1 -0
- package/lib/typescript/lib/module/components/Locale.d.ts +5 -0
- package/lib/typescript/lib/module/components/Locale.d.ts.map +1 -0
- package/lib/typescript/lib/module/components/StoragePolicyLink.d.ts +4 -0
- package/lib/typescript/lib/module/components/StoragePolicyLink.d.ts.map +1 -0
- package/lib/typescript/lib/module/components/Toggle.d.ts +4 -0
- package/lib/typescript/lib/module/components/Toggle.d.ts.map +1 -0
- package/lib/typescript/lib/module/constants.d.ts +19 -0
- package/lib/typescript/lib/module/constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/context.d.ts +185 -0
- package/lib/typescript/lib/module/context.d.ts.map +1 -0
- package/lib/typescript/lib/module/flavors/index.d.ts +17 -0
- package/lib/typescript/lib/module/flavors/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/hooks/useBoundCallback.d.ts +17 -0
- package/lib/typescript/lib/module/hooks/useBoundCallback.d.ts.map +1 -0
- package/lib/typescript/lib/module/hooks/useDeviceOrientation.d.ts +3 -0
- package/lib/typescript/lib/module/hooks/useDeviceOrientation.d.ts.map +1 -0
- package/lib/typescript/lib/module/hooks/usePrevious.d.ts +2 -0
- package/lib/typescript/lib/module/hooks/usePrevious.d.ts.map +1 -0
- package/lib/typescript/lib/module/hooks/useThunkReducer.d.ts +7 -0
- package/lib/typescript/lib/module/hooks/useThunkReducer.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/actions.d.ts +9 -0
- package/lib/typescript/lib/module/iab/actions.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/constants.d.ts +4 -0
- package/lib/typescript/lib/module/iab/constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/api.d.ts +28 -0
- package/lib/typescript/lib/module/iab/gpp/api.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/consent.d.ts +24 -0
- package/lib/typescript/lib/module/iab/gpp/consent.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/constants.d.ts +37 -0
- package/lib/typescript/lib/module/iab/gpp/constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/BooleanEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/BooleanEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +9 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/DatetimeEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/DatetimeEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +18 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +6 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedStringEncoder.d.ts +8 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/FixedStringEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +9 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/errors.d.ts +16 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/errors.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/index.d.ts +15 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/types.d.ts +1 -0
- package/lib/typescript/lib/module/iab/gpp/encoders/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/index.d.ts +10 -0
- package/lib/typescript/lib/module/iab/gpp/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/reducer.d.ts +6 -0
- package/lib/typescript/lib/module/iab/gpp/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/selectors.d.ts +6 -0
- package/lib/typescript/lib/module/iab/gpp/selectors.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/types.d.ts +1 -0
- package/lib/typescript/lib/module/iab/gpp/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/v1/constants.d.ts +9 -0
- package/lib/typescript/lib/module/iab/gpp/v1/constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/gpp/v1/index.d.ts +19 -0
- package/lib/typescript/lib/module/iab/gpp/v1/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/index.d.ts +2 -0
- package/lib/typescript/lib/module/iab/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/reducer.d.ts +5 -0
- package/lib/typescript/lib/module/iab/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/actions.d.ts +63 -0
- package/lib/typescript/lib/module/iab/tcf/actions.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/consent.d.ts +58 -0
- package/lib/typescript/lib/module/iab/tcf/consent.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/constants.d.ts +21 -0
- package/lib/typescript/lib/module/iab/tcf/constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/helpers.d.ts +8 -0
- package/lib/typescript/lib/module/iab/tcf/helpers.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/index.d.ts +303 -0
- package/lib/typescript/lib/module/iab/tcf/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/middleware.d.ts +3 -0
- package/lib/typescript/lib/module/iab/tcf/middleware.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/reducer.d.ts +20 -0
- package/lib/typescript/lib/module/iab/tcf/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/selectors.d.ts +47 -0
- package/lib/typescript/lib/module/iab/tcf/selectors.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/types.d.ts +2 -0
- package/lib/typescript/lib/module/iab/tcf/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/encoders.d.ts +13 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/encoders.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/formatters.d.ts +4 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/index.d.ts +308 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/shared-constants.d.ts +80 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/shared-constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/tcfcav1-constants.d.ts +104 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/tcfeuv2-constants.d.ts +103 -0
- package/lib/typescript/lib/module/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/types.d.ts +2 -0
- package/lib/typescript/lib/module/iab/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/usp/api.d.ts +4 -0
- package/lib/typescript/lib/module/iab/usp/api.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/usp/consent.d.ts +13 -0
- package/lib/typescript/lib/module/iab/usp/consent.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/usp/constants.d.ts +77 -0
- package/lib/typescript/lib/module/iab/usp/constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/usp/index.d.ts +10 -0
- package/lib/typescript/lib/module/iab/usp/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/usp/reducer.d.ts +13 -0
- package/lib/typescript/lib/module/iab/usp/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/usp/selectors.d.ts +9 -0
- package/lib/typescript/lib/module/iab/usp/selectors.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/usp/types.d.ts +1 -0
- package/lib/typescript/lib/module/iab/usp/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/usp/v1/constants.d.ts +9 -0
- package/lib/typescript/lib/module/iab/usp/v1/constants.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/usp/v1/index.d.ts +16 -0
- package/lib/typescript/lib/module/iab/usp/v1/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/iab/utilities.d.ts +2 -0
- package/lib/typescript/lib/module/iab/utilities.d.ts.map +1 -0
- package/lib/typescript/lib/module/index.d.ts +4 -0
- package/lib/typescript/lib/module/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/locale/index.d.ts +61 -0
- package/lib/typescript/lib/module/locale/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/native/OsanoCmp.d.ts +5 -0
- package/lib/typescript/lib/module/native/OsanoCmp.d.ts.map +1 -0
- package/lib/typescript/lib/module/reducer.d.ts +28 -0
- package/lib/typescript/lib/module/reducer.d.ts.map +1 -0
- package/lib/typescript/lib/module/selectors.d.ts +15 -0
- package/lib/typescript/lib/module/selectors.d.ts.map +1 -0
- package/lib/typescript/lib/module/services/consent.d.ts +5 -0
- package/lib/typescript/lib/module/services/consent.d.ts.map +1 -0
- package/lib/typescript/lib/module/services/disclosures.d.ts +2 -0
- package/lib/typescript/lib/module/services/disclosures.d.ts.map +1 -0
- package/lib/typescript/lib/module/services/locale.d.ts +3 -0
- package/lib/typescript/lib/module/services/locale.d.ts.map +1 -0
- package/lib/typescript/lib/module/styles.d.ts +140 -0
- package/lib/typescript/lib/module/styles.d.ts.map +1 -0
- package/lib/typescript/lib/module/types/consent-config.d.d.ts +2 -0
- package/lib/typescript/lib/module/types/consent-config.d.d.ts.map +1 -0
- package/lib/typescript/lib/module/types/env.d.d.ts +1 -0
- package/lib/typescript/lib/module/types/env.d.d.ts.map +1 -0
- package/lib/typescript/lib/module/types/index.d.d.ts +2 -0
- package/lib/typescript/lib/module/types/index.d.d.ts.map +1 -0
- package/lib/typescript/lib/module/types/store.d.d.ts +2 -0
- package/lib/typescript/lib/module/types/store.d.d.ts.map +1 -0
- package/lib/typescript/lib/module/utils/API.d.ts +6 -0
- package/lib/typescript/lib/module/utils/API.d.ts.map +1 -0
- package/lib/typescript/lib/module/utils/Color.d.ts +12 -0
- package/lib/typescript/lib/module/utils/Color.d.ts.map +1 -0
- package/lib/typescript/lib/module/utils/EventEmitter.d.ts +15 -0
- package/lib/typescript/lib/module/utils/EventEmitter.d.ts.map +1 -0
- package/lib/typescript/lib/module/utils/Translator.d.ts +52 -0
- package/lib/typescript/lib/module/utils/Translator.d.ts.map +1 -0
- package/lib/typescript/lib/module/utils/index.d.ts +5 -0
- package/lib/typescript/lib/module/utils/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/utils/types.d.ts +1 -0
- package/lib/typescript/lib/module/utils/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Dialog/Buttons.d.ts +5 -0
- package/lib/typescript/lib/module/views/Dialog/Buttons.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Dialog/FirstLayerUsage.d.ts +5 -0
- package/lib/typescript/lib/module/views/Dialog/FirstLayerUsage.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Dialog/Message.d.ts +4 -0
- package/lib/typescript/lib/module/views/Dialog/Message.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Dialog/PreferenceManagementDeepLinks.d.ts +6 -0
- package/lib/typescript/lib/module/views/Dialog/PreferenceManagementDeepLinks.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Dialog/index.d.ts +5 -0
- package/lib/typescript/lib/module/views/Dialog/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Drawer/Drawer.ConsentCategories.d.ts +5 -0
- package/lib/typescript/lib/module/views/Drawer/Drawer.ConsentCategories.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Drawer/Drawer.Header.d.ts +5 -0
- package/lib/typescript/lib/module/views/Drawer/Drawer.Header.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Disclosures.d.ts +5 -0
- package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Disclosures.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Vendors.d.ts +5 -0
- package/lib/typescript/lib/module/views/Drawer/Drawer.Iab.Vendors.d.ts.map +1 -0
- package/lib/typescript/lib/module/views/Drawer/index.d.ts +4 -0
- package/lib/typescript/lib/module/views/Drawer/index.d.ts.map +1 -0
- package/lib/typescript/scripts/updateLocalization.d.ts +2 -0
- package/lib/typescript/scripts/updateLocalization.d.ts.map +1 -0
- package/lib/typescript/src/ConsentManager.d.ts +31 -16
- 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/actions.d.ts +42 -0
- package/lib/typescript/src/actions.d.ts.map +1 -0
- package/lib/typescript/src/commands.d.ts +14 -0
- package/lib/typescript/src/commands.d.ts.map +1 -0
- package/lib/typescript/src/components/Button.d.ts +1 -1
- package/lib/typescript/src/components/Button.d.ts.map +1 -1
- package/lib/typescript/src/components/Locale.d.ts +1 -0
- package/lib/typescript/src/components/Locale.d.ts.map +1 -1
- package/lib/typescript/src/context.d.ts +3 -3
- package/lib/typescript/src/context.d.ts.map +1 -1
- package/lib/typescript/src/flavors/index.d.ts +1 -1
- package/lib/typescript/src/hooks/usePrevious.d.ts +1 -1
- package/lib/typescript/src/hooks/usePrevious.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useThunkReducer.d.ts +6 -8
- package/lib/typescript/src/hooks/useThunkReducer.d.ts.map +1 -1
- package/lib/typescript/src/iab/actions.d.ts +7 -0
- package/lib/typescript/src/iab/actions.d.ts.map +1 -0
- package/lib/typescript/src/iab/constants.d.ts +2 -0
- package/lib/typescript/src/iab/constants.d.ts.map +1 -1
- package/lib/typescript/src/iab/gpp/api.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/api.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/consent.d.ts +24 -0
- package/lib/typescript/src/iab/gpp/consent.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/constants.d.ts +37 -0
- package/lib/typescript/src/iab/gpp/constants.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +1 -1
- package/lib/typescript/src/iab/gpp/encoders/BooleanEncoder.d.ts +2 -2
- package/lib/typescript/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +4 -2
- package/lib/typescript/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +1 -1
- package/lib/typescript/src/iab/gpp/index.d.ts +10 -0
- package/lib/typescript/src/iab/gpp/index.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/reducer.d.ts +6 -0
- package/lib/typescript/src/iab/gpp/reducer.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/selectors.d.ts +6 -0
- package/lib/typescript/src/iab/gpp/selectors.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/v1/constants.d.ts +9 -0
- package/lib/typescript/src/iab/gpp/v1/constants.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/v1/index.d.ts +19 -0
- package/lib/typescript/src/iab/gpp/v1/index.d.ts.map +1 -0
- package/lib/typescript/src/iab/index.d.ts +5 -0
- package/lib/typescript/src/iab/index.d.ts.map +1 -0
- package/lib/typescript/src/iab/reducer.d.ts +6 -0
- package/lib/typescript/src/iab/reducer.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/actions.d.ts +35 -0
- package/lib/typescript/src/iab/tcf/actions.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/consent.d.ts +25 -0
- package/lib/typescript/src/iab/tcf/consent.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/constants.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/helpers.d.ts +15 -0
- package/lib/typescript/src/iab/tcf/helpers.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/index.d.ts +8 -0
- package/lib/typescript/src/iab/tcf/index.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/middleware.d.ts +4 -0
- package/lib/typescript/src/iab/tcf/middleware.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/reducer.d.ts +59 -0
- package/lib/typescript/src/iab/tcf/reducer.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/selectors.d.ts +52 -0
- package/lib/typescript/src/iab/tcf/selectors.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/types.d.ts +82 -4
- package/lib/typescript/src/iab/tcf/types.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/v2.0/encoders.d.ts +35 -6
- package/lib/typescript/src/iab/tcf/v2.0/encoders.d.ts.map +1 -1
- package/lib/typescript/src/iab/tcf/v2.0/formatters.d.ts +4 -0
- package/lib/typescript/src/iab/tcf/v2.0/formatters.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/v2.0/index.d.ts +7 -0
- package/lib/typescript/src/iab/tcf/v2.0/index.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/v2.0/shared-constants.d.ts +60 -0
- package/lib/typescript/src/iab/tcf/v2.0/shared-constants.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/v2.0/tcfcav1-constants.d.ts +77 -0
- package/lib/typescript/src/iab/tcf/v2.0/tcfcav1-constants.d.ts.map +1 -0
- package/lib/typescript/src/iab/tcf/v2.0/tcfeuv2-constants.d.ts +82 -0
- package/lib/typescript/src/iab/tcf/v2.0/tcfeuv2-constants.d.ts.map +1 -0
- package/lib/typescript/src/iab/types.d.ts +14 -5
- package/lib/typescript/src/iab/types.d.ts.map +1 -1
- package/lib/typescript/src/iab/usp/api.d.ts +4 -0
- package/lib/typescript/src/iab/usp/api.d.ts.map +1 -0
- package/lib/typescript/src/iab/usp/consent.d.ts +13 -0
- package/lib/typescript/src/iab/usp/consent.d.ts.map +1 -0
- package/lib/typescript/src/iab/usp/constants.d.ts +77 -0
- package/lib/typescript/src/iab/usp/constants.d.ts.map +1 -0
- package/lib/typescript/src/iab/usp/index.d.ts +10 -0
- package/lib/typescript/src/iab/usp/index.d.ts.map +1 -0
- package/lib/typescript/src/iab/usp/reducer.d.ts +13 -0
- package/lib/typescript/src/iab/usp/reducer.d.ts.map +1 -0
- package/lib/typescript/src/iab/usp/selectors.d.ts +9 -0
- package/lib/typescript/src/iab/usp/selectors.d.ts.map +1 -0
- package/lib/typescript/src/iab/usp/v1/constants.d.ts +9 -0
- package/lib/typescript/src/iab/usp/v1/constants.d.ts.map +1 -0
- package/lib/typescript/src/iab/usp/v1/index.d.ts +16 -0
- package/lib/typescript/src/iab/usp/v1/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/locale/index.d.ts +61 -0
- package/lib/typescript/src/locale/index.d.ts.map +1 -0
- package/lib/typescript/src/reducer.d.ts +7 -0
- package/lib/typescript/src/reducer.d.ts.map +1 -0
- package/lib/typescript/src/selectors.d.ts +19 -0
- package/lib/typescript/src/selectors.d.ts.map +1 -0
- package/lib/typescript/src/services/consent.d.ts.map +1 -1
- package/lib/typescript/src/styles.d.ts +2 -2
- package/lib/typescript/src/styles.d.ts.map +1 -1
- 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 +2 -1
- package/lib/typescript/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/types.d.ts +5 -0
- package/lib/typescript/src/utils/types.d.ts.map +1 -0
- package/lib/typescript/src/views/Dialog/PreferenceManagementDeepLinks.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.Disclosures.d.ts.map +1 -1
- package/lib/typescript/src/views/Drawer/Drawer.Iab.Vendors.d.ts.map +1 -1
- package/package.json +18 -38
- package/src/ConsentManager.ts +325 -120
- package/src/ConsentUiBuilder.tsx +2 -2
- package/src/actions.ts +80 -0
- package/src/commands.ts +96 -0
- package/src/components/Button.tsx +34 -27
- package/src/components/Locale.tsx +30 -16
- package/src/context.ts +12 -12
- package/src/flavors/index.ts +1 -1
- package/src/hooks/usePrevious.ts +1 -1
- package/src/hooks/useThunkReducer.ts +86 -54
- package/src/iab/actions.ts +19 -0
- package/src/iab/constants.ts +2 -0
- package/src/iab/gpp/encoders/FixedIntegerEncoder.ts +1 -1
- package/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.ts +1 -2
- package/src/iab/index.ts +34 -0
- package/src/iab/reducer.ts +38 -0
- package/src/iab/tcf/actions.ts +116 -0
- package/src/iab/tcf/{consent.js → consent.ts} +143 -164
- package/src/iab/tcf/constants.ts +6 -6
- package/src/iab/tcf/helpers.ts +95 -0
- package/src/iab/tcf/index.ts +8 -0
- package/src/iab/tcf/middleware.ts +217 -0
- package/src/iab/tcf/reducer.ts +250 -0
- package/src/iab/tcf/selectors.ts +192 -0
- package/src/iab/tcf/types.ts +108 -4
- package/src/iab/tcf/v2.0/encoders.ts +7 -16
- package/src/iab/tcf/v2.0/formatters.ts +18 -0
- package/src/iab/tcf/v2.0/index.ts +40 -0
- package/src/iab/tcf/v2.0/shared-constants.ts +53 -0
- package/src/iab/tcf/v2.0/{tcfcav1-constants.js → tcfcav1-constants.ts} +4 -15
- package/src/iab/tcf/v2.0/{tcfeuv2-constants.js → tcfeuv2-constants.ts} +4 -14
- package/src/iab/types.ts +21 -5
- package/src/index.tsx +184 -99
- package/src/reducer.ts +416 -0
- package/src/selectors.ts +109 -0
- package/src/services/consent.ts +35 -12
- package/src/styles.ts +3 -5
- package/src/types/consent-config.d.ts +16 -12
- package/src/types/index.d.ts +21 -5
- package/src/types/store.d.ts +14 -4
- package/src/utils/Translator.ts +47 -43
- package/src/utils/index.ts +23 -27
- package/src/utils/types.ts +35 -0
- package/src/views/Dialog/Buttons.tsx +2 -2
- package/src/views/Dialog/Message.tsx +1 -1
- package/src/views/Dialog/PreferenceManagementDeepLinks.tsx +7 -5
- package/src/views/Dialog/index.tsx +22 -38
- package/src/views/Drawer/Drawer.ConsentCategories.tsx +84 -41
- package/src/views/Drawer/Drawer.Header.tsx +3 -2
- package/src/views/Drawer/Drawer.Iab.Disclosures.tsx +71 -41
- package/src/views/Drawer/Drawer.Iab.Vendors.tsx +78 -37
- package/src/views/Drawer/index.tsx +8 -8
- package/lib/commonjs/iab/tcf/tcfcav1-api.js +0 -41
- package/lib/commonjs/iab/tcf/tcfcav1-api.js.map +0 -1
- package/lib/commonjs/iab/tcf/tcfeuv2-api.js +0 -256
- package/lib/commonjs/iab/tcf/tcfeuv2-api.js.map +0 -1
- package/lib/commonjs/iab/tcf/v2.0/helpers.js +0 -25
- package/lib/commonjs/iab/tcf/v2.0/helpers.js.map +0 -1
- package/lib/commonjs/iab/tcf/v2.0/middleware.js +0 -80
- package/lib/commonjs/iab/tcf/v2.0/middleware.js.map +0 -1
- package/lib/commonjs/iab/tcf/v2.0/reducer.js +0 -318
- package/lib/commonjs/iab/tcf/v2.0/reducer.js.map +0 -1
- package/lib/commonjs/store.js +0 -558
- package/lib/commonjs/store.js.map +0 -1
- package/lib/module/iab/tcf/tcfcav1-api.js +0 -35
- package/lib/module/iab/tcf/tcfcav1-api.js.map +0 -1
- package/lib/module/iab/tcf/tcfeuv2-api.js +0 -251
- package/lib/module/iab/tcf/tcfeuv2-api.js.map +0 -1
- package/lib/module/iab/tcf/v2.0/helpers.js +0 -18
- package/lib/module/iab/tcf/v2.0/helpers.js.map +0 -1
- package/lib/module/iab/tcf/v2.0/middleware.js +0 -74
- package/lib/module/iab/tcf/v2.0/middleware.js.map +0 -1
- package/lib/module/iab/tcf/v2.0/reducer.js +0 -311
- package/lib/module/iab/tcf/v2.0/reducer.js.map +0 -1
- package/lib/module/store.js.map +0 -1
- package/lib/typescript/src/iab/tcf/v2.0/helpers.d.ts +0 -5
- package/lib/typescript/src/iab/tcf/v2.0/helpers.d.ts.map +0 -1
- package/lib/typescript/src/store.d.ts +0 -55
- package/lib/typescript/src/store.d.ts.map +0 -1
- package/src/iab/tcf/actions.js +0 -52
- package/src/iab/tcf/index.js +0 -7
- package/src/iab/tcf/reducer.js +0 -59
- package/src/iab/tcf/selectors.js +0 -151
- package/src/iab/tcf/tcfcav1-api.js +0 -39
- package/src/iab/tcf/tcfeuv2-api.js +0 -264
- package/src/iab/tcf/v2.0/formatters.js +0 -14
- package/src/iab/tcf/v2.0/helpers.ts +0 -23
- package/src/iab/tcf/v2.0/index.js +0 -36
- package/src/iab/tcf/v2.0/middleware.js +0 -72
- package/src/iab/tcf/v2.0/reducer.js +0 -327
- package/src/iab/tcf/v2.0/shared-constants.js +0 -17
- package/src/store.ts +0 -602
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["consentToPurpose","purposeIds","
|
|
1
|
+
{"version":3,"names":["consentToPurpose","purposeIds","ConsentCategory","get","initialState","isBrowsingFrom","DOMAIN","doesGDPRApply","config","apiVersion","getConfigData","getStore","isIABEnabled","iab","enabled","parseInt","getStateData","state","getCurrentScreen","Math","max","stack","length","getConsentString","gppSection","tcString","consentStrings","getPublisherLegitimateInterests","getPurposeIds","getPurposeOptOuts","getPurposeConsents","consent","getSavedConsent","getConsent","optOutPurposes","Object","entries","reduce","purposeConsents","purposeId","hasConsented","getPurposesLITransparency","purposeLITransparency","forEach","getSpecialFeatureOptIns","getVendors","getVendorData","vendorId","getVendorIds","keys","map","Number","getVendorOptOuts","getVendorListError","getVendorListVersion","hasActed","hasConsentedToSpecialFeature","specialFeatureId","hasOptedOutOfVendor","hasOptedOutOfPurpose","isTcfApplicable","isVendorListLoaded","isVendorListLoading","getCountryCode","country","substring","toUpperCase","isSaved","getFinalOptOutValue","pendingNewValue","undefined","existingOptOut","OPT_OUT"],"sourceRoot":"../../../../src","sources":["iab/tcf/selectors.ts"],"mappings":"AACA,SAASA,gBAAgB,EAAEC,UAAU,QAAQ,aAAa;AAG1D,SAASC,eAAe,QAAQ,iBAAiB;AAGjD,SAASC,GAAG,QAAQ,aAAa;AACjC,SAASC,YAAY,QAAQ,eAAe;AAC5C,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,MAAMC,MAAM,GAAG,SAAS;;AAExB;AACA,OAAO,MAAMC,aAAa,GAAGA,CAACC,MAAc,EAAEC,UAA2B,KAAK;EAC7E,OAAO,CAAC,CAACN,GAAG,CAACO,aAAa,CAACF,MAAM,EAAEC,UAAU,CAAC,EAAE,aAAa,CAAC,IAAI,KAAK;AACxE,CAAC;AACD,OAAO,MAAME,QAAQ,GAAIH,MAAc,IAAKL,GAAG,CAACK,MAAM,EAAEF,MAAM,EAAE,CAAC,CAAC,CAAC;AACnE,OAAO,MAAMM,YAAY,GAAIJ,MAAc,IAAKA,MAAM,CAACK,GAAG,CAACC,OAAO,IAAI,KAAK;AAE3E,OAAO,MAAMJ,aAAa,GAAGA,CAACF,MAAc,EAAEC,UAAU,GAAI,GAAE,KAC7DN,GAAG,CAACK,MAAM,EAAG,GAAEF,MAAO,KAAIS,QAAQ,CAACN,UAAU,EAAE,EAAE,CAAE,EAAC,EAAE,CAAC,CAAC,CAAC;AAC1D,OAAO,MAAMO,YAAY,GAAGA,CAC3BC,KAAwB,EACxBR,UAAc,KAEdN,GAAG,CACFc,KAAK,EACJ,GAAEX,MAAO,KAAIS,QAAQ,CAACN,UAAU,IAAI,GAAG,EAAE,EAAE,CAAE,EAAC,EAC/C,CAAC,CACF,CAAkB;AAEnB,OAAO,MAAMS,gBAAgB,GAAID,KAAiB,IACjDE,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,KAAK,CAACI,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OAAO,CAAC7B,eAAe,CAACsE,OAAO,CAAC;IAC9C,OAAOD,cAAc;EACtB;EAEA,OAAO,KAAK;AACb,CAAC;AAED,OAAO,MAAMtC,UAAU,GAAIhB,KAAkB,IAAK;EACjD,MAAMc,OAAqD,GAAG;IAC7D,IAAI5B,GAAG,CAACc,KAAK,EAAE,SAAS,CAAC,IAAIb,YAAY,CAAC2B,OAAO;EAClD,CAAC;EACD;EACA;EACAA,OAAO,CAAC7B,eAAe,CAACsE,OAAO,CAAC,GAAGJ,mBAAmB,CAACnD,KAAK,CAAC;EAC7D,OAAOc,OAAO;AACf,CAAC","ignoreList":[]}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { BooleanEncoder, DatetimeEncoder, FixedIdBitMapEncoder, FixedIntegerEncoder, FixedStringEncoder } from '../../gpp/encoders';
|
|
2
2
|
export { EncodableOptimizedFixedRange } from '../../gpp/encoders';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @typedef Encoder
|
|
6
|
-
* @type {object}
|
|
7
|
-
* @property {function(string, number?, ...params): {bitLength: number, value: any}} decode
|
|
8
|
-
* @property {function(any, number?, ...params): string} encode
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
// This provides a consistent structure on decode()
|
|
12
3
|
const adaptEncoder = encoder => ({
|
|
13
4
|
decode: (bitString, numBits) => ({
|
|
14
5
|
bitLength: numBits,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BooleanEncoder","DatetimeEncoder","FixedIdBitMapEncoder","FixedIntegerEncoder","FixedStringEncoder","EncodableOptimizedFixedRange","adaptEncoder","encoder","decode","bitString","numBits","bitLength","value","encode","BitEncoder","DateEncoder","IdBitMapEncoder","IntEncoder","LangEncoder","toUpperCase"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/encoders.ts"],"mappings":"AAAA,SACCA,cAAc,EACdC,eAAe,EACfC,oBAAoB,EACpBC,mBAAmB,EACnBC,kBAAkB,QAEZ,oBAAoB;AAE3B,SAASC,4BAA4B,QAAQ,oBAAoB
|
|
1
|
+
{"version":3,"names":["BooleanEncoder","DatetimeEncoder","FixedIdBitMapEncoder","FixedIntegerEncoder","FixedStringEncoder","EncodableOptimizedFixedRange","adaptEncoder","encoder","decode","bitString","numBits","bitLength","value","encode","BitEncoder","DateEncoder","IdBitMapEncoder","IntEncoder","LangEncoder","toUpperCase"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/encoders.ts"],"mappings":"AAAA,SACCA,cAAc,EACdC,eAAe,EACfC,oBAAoB,EACpBC,mBAAmB,EACnBC,kBAAkB,QAEZ,oBAAoB;AAE3B,SAASC,4BAA4B,QAAQ,oBAAoB;AAEjE,MAAMC,YAAY,GAAIC,OAAgB,KAAM;EAC3CC,MAAM,EAAEA,CAACC,SAAiB,EAAEC,OAAe,MAAM;IAChDC,SAAS,EAAED,OAAO;IAClBE,KAAK,EAAEL,OAAO,CAACC,MAAM,CAACC,SAAS,EAAEC,OAAO;EACzC,CAAC,CAAC;EACFG,MAAM,EAAEN,OAAO,CAACM;AACjB,CAAC,CAAC;AAEF,OAAO,MAAMC,UAAU,GAAGR,YAAY,CAACN,cAAc,CAAC;AACtD,OAAO,MAAMe,WAAW,GAAGT,YAAY,CAACL,eAAe,CAAC;AACxD;AACA,OAAO,MAAMe,eAAe,GAAGV,YAAY,CAACJ,oBAAoB,CAAC;AACjE,OAAO,MAAMe,UAAU,GAAGX,YAAY,CAACH,mBAAmB,CAAC;AAC3D,OAAO,MAAMe,WAAW,GAAGZ,YAAY,CAAC;EACvCE,MAAM,EAAEJ,kBAAkB,CAACI,MAAM;EACjCK,MAAM,EAAGD,KAAa,IAAKR,kBAAkB,CAACS,MAAM,CAACD,KAAK,EAAE,CAAC,CAAC,CAACO,WAAW,CAAC;AAC5E,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export const idsOnlyArrayFormatter = value => Object.entries(value).filter(([, v]) => v).map(([k]) => parseInt(k, 10));
|
|
2
2
|
export const fixedValuesArrayFormatter = (idValueMap, length) => {
|
|
3
|
-
const array = Array.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
array[k - 1] = v;
|
|
8
|
-
});
|
|
3
|
+
const array = new Array(length).fill(false);
|
|
4
|
+
for (const [k, v] of Object.entries(idValueMap)) {
|
|
5
|
+
array[parseInt(k, 10) - 1] = v;
|
|
6
|
+
}
|
|
9
7
|
return array;
|
|
10
8
|
};
|
|
11
|
-
export const dateFormatter =
|
|
9
|
+
export const dateFormatter = deciseconds => new Date(deciseconds * 100);
|
|
12
10
|
//# sourceMappingURL=formatters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["idsOnlyArrayFormatter","value","Object","entries","filter","v","map","k","parseInt","fixedValuesArrayFormatter","idValueMap","length","array","Array","
|
|
1
|
+
{"version":3,"names":["idsOnlyArrayFormatter","value","Object","entries","filter","v","map","k","parseInt","fixedValuesArrayFormatter","idValueMap","length","array","Array","fill","dateFormatter","deciseconds","Date"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/formatters.ts"],"mappings":"AAAA,OAAO,MAAMA,qBAAqB,GAAIC,KAA8B,IACnEC,MAAM,CAACC,OAAO,CAACF,KAAK,CAAC,CACnBG,MAAM,CAAC,CAAC,GAAGC,CAAC,CAAC,KAAKA,CAAC,CAAC,CACpBC,GAAG,CAAC,CAAC,CAACC,CAAC,CAAC,KAAKC,QAAQ,CAACD,CAAC,EAAE,EAAE,CAAC,CAAC;AAEhC,OAAO,MAAME,yBAAyB,GAAGA,CACxCC,UAAmC,EACnCC,MAAc,KACV;EACJ,MAAMC,KAAgB,GAAG,IAAIC,KAAK,CAACF,MAAM,CAAC,CAACG,IAAI,CAAC,KAAK,CAAC;EACtD,KAAK,MAAM,CAACP,CAAC,EAAEF,CAAC,CAAC,IAAIH,MAAM,CAACC,OAAO,CAACO,UAAU,CAAC,EAAE;IAChDE,KAAK,CAACJ,QAAQ,CAACD,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,GAAGF,CAAC;EAC/B;EACA,OAAOO,KAAK;AACb,CAAC;AAED,OAAO,MAAMG,aAAa,GAAIC,WAAmB,IAChD,IAAIC,IAAI,CAACD,WAAW,GAAG,GAAG,CAAC","ignoreList":[]}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import makeReducer from '
|
|
4
|
-
import makeTcfcav1Api from '../tcfcav1-api';
|
|
5
|
-
import makeTcfeuv2Api from '../tcfeuv2-api';
|
|
6
|
-
import postMessageEventHandler from '../../iframe';
|
|
1
|
+
import { makeConsentFromOptions, makeFormatConsentString, makeParseConsentString, makeReadFromStorage } from '../consent';
|
|
2
|
+
import makeMiddleware from '../middleware';
|
|
3
|
+
import makeReducer from '../reducer';
|
|
7
4
|
import { initOptions as tcfcav1InitOptions } from './tcfcav1-constants';
|
|
5
|
+
import { initOptions as tcfeuv2InitOptions } from './tcfeuv2-constants';
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* TCF-Canada v1 is nearly identical to TCF-EU v2, just with a few fields left
|
|
@@ -13,18 +11,22 @@ import { initOptions as tcfcav1InitOptions } from './tcfcav1-constants';
|
|
|
13
11
|
*/
|
|
14
12
|
|
|
15
13
|
const tcfeuv2 = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
...tcfeuv2InitOptions,
|
|
15
|
+
middleware: makeMiddleware(tcfeuv2InitOptions),
|
|
16
|
+
reducer: makeReducer(tcfeuv2InitOptions),
|
|
17
|
+
consentFromOptions: makeConsentFromOptions(tcfeuv2InitOptions),
|
|
18
|
+
formatConsentString: makeFormatConsentString(tcfeuv2InitOptions),
|
|
19
|
+
parseConsentString: makeParseConsentString(tcfeuv2InitOptions),
|
|
20
|
+
readFromStorage: makeReadFromStorage(tcfeuv2InitOptions)
|
|
23
21
|
};
|
|
24
22
|
const tcfcav1 = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
...tcfcav1InitOptions,
|
|
24
|
+
middleware: makeMiddleware(tcfcav1InitOptions),
|
|
25
|
+
reducer: makeReducer(tcfcav1InitOptions),
|
|
26
|
+
consentFromOptions: makeConsentFromOptions(tcfcav1InitOptions),
|
|
27
|
+
formatConsentString: makeFormatConsentString(tcfcav1InitOptions),
|
|
28
|
+
parseConsentString: makeParseConsentString(tcfcav1InitOptions),
|
|
29
|
+
readFromStorage: makeReadFromStorage(tcfcav1InitOptions)
|
|
28
30
|
};
|
|
29
31
|
export default {
|
|
30
32
|
tcfeuv2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["makeConsentFromOptions","makeFormatConsentString","makeParseConsentString","makeReadFromStorage","makeMiddleware","makeReducer","initOptions","tcfcav1InitOptions","tcfeuv2InitOptions","tcfeuv2","middleware","reducer","consentFromOptions","formatConsentString","parseConsentString","readFromStorage","tcfcav1"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/index.ts"],"mappings":"AAAA,SACCA,sBAAsB,EACtBC,uBAAuB,EACvBC,sBAAsB,EACtBC,mBAAmB,QACb,YAAY;AAGnB,OAAOC,cAAc,MAAM,eAAe;AAC1C,OAAOC,WAAW,MAAM,YAAY;AACpC,SAASC,WAAW,IAAIC,kBAAkB,QAAQ,qBAAqB;AACvE,SAASD,WAAW,IAAIE,kBAAkB,QAAQ,qBAAqB;;AAEvE;AACA;AACA;AACA;AACA;;AAEA,MAAMC,OAAO,GAAG;EACf,GAAGD,kBAAkB;EACrBE,UAAU,EAAEN,cAAc,CAACI,kBAAkB,CAAC;EAC9CG,OAAO,EAAEN,WAAW,CAACG,kBAAkB,CAAC;EACxCI,kBAAkB,EAAEZ,sBAAsB,CAACQ,kBAAkB,CAAC;EAC9DK,mBAAmB,EAAEZ,uBAAuB,CAACO,kBAAkB,CAAC;EAChEM,kBAAkB,EAAEZ,sBAAsB,CAACM,kBAAkB,CAAC;EAC9DO,eAAe,EAAEZ,mBAAmB,CAACK,kBAAkB;AACxD,CAAkB;AAElB,MAAMQ,OAAO,GAAG;EACf,GAAGT,kBAAkB;EACrBG,UAAU,EAAEN,cAAc,CAACG,kBAAkB,CAAC;EAC9CI,OAAO,EAAEN,WAAW,CAACE,kBAAkB,CAAC;EACxCK,kBAAkB,EAAEZ,sBAAsB,CAACO,kBAAkB,CAAC;EAC9DM,mBAAmB,EAAEZ,uBAAuB,CAACM,kBAAkB,CAAC;EAChEO,kBAAkB,EAAEZ,sBAAsB,CAACK,kBAAkB,CAAC;EAC9DQ,eAAe,EAAEZ,mBAAmB,CAACI,kBAAkB;AACxD,CAAkB;AAElB,eAAe;EAAEE,OAAO;EAAEO;AAAQ,CAAC","ignoreList":[]}
|
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { IAB_CMP_VERSION } from '
|
|
1
|
+
import * as selectors from '../selectors';
|
|
2
|
+
import { CMP_ID, IAB_CMP_VERSION } from '../../constants';
|
|
3
3
|
const version = '2.0';
|
|
4
|
+
const storageKey = 'IABTCF_TCString';
|
|
4
5
|
/**
|
|
5
6
|
* We'll use this value of the GVL when the customer's config doesn't contain
|
|
6
7
|
* one. It's from March 2023.
|
|
7
8
|
*/
|
|
8
9
|
const FALLBACK_GVL_VERSION = 187;
|
|
9
10
|
export const baseInitOptions = {
|
|
11
|
+
storageKey,
|
|
10
12
|
version,
|
|
11
13
|
cmpId: CMP_ID,
|
|
12
14
|
cmpVersion: IAB_CMP_VERSION,
|
|
13
15
|
fallbackGvlVersion: FALLBACK_GVL_VERSION,
|
|
14
|
-
defaultTimestamp: Date.now()
|
|
16
|
+
defaultTimestamp: Date.now(),
|
|
17
|
+
selectors: {
|
|
18
|
+
...selectors
|
|
19
|
+
},
|
|
20
|
+
createConsentPayload(state) {
|
|
21
|
+
return {
|
|
22
|
+
v2: {
|
|
23
|
+
purposeOptouts: state ? Object.fromEntries(Object.entries(selectors.getPurposeOptOuts(state, version)).filter(([, value]) => !!value)) : {},
|
|
24
|
+
specialFeatureOptins: state ? Object.fromEntries(Object.entries(selectors.getSpecialFeatureOptIns(state, version)).filter(([, value]) => !!value)) : {},
|
|
25
|
+
vendorOptouts: state ? Object.fromEntries(Object.entries(selectors.getVendorOptOuts(state, version)).filter(([, value]) => !!value)) : {}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
15
29
|
};
|
|
16
30
|
//# sourceMappingURL=shared-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CMP_ID","IAB_CMP_VERSION","version","FALLBACK_GVL_VERSION","baseInitOptions","cmpId","cmpVersion","fallbackGvlVersion","defaultTimestamp","Date","now"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/shared-constants.
|
|
1
|
+
{"version":3,"names":["selectors","CMP_ID","IAB_CMP_VERSION","version","storageKey","FALLBACK_GVL_VERSION","baseInitOptions","cmpId","cmpVersion","fallbackGvlVersion","defaultTimestamp","Date","now","createConsentPayload","state","v2","purposeOptouts","Object","fromEntries","entries","getPurposeOptOuts","filter","value","specialFeatureOptins","getSpecialFeatureOptIns","vendorOptouts","getVendorOptOuts"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/shared-constants.ts"],"mappings":"AAAA,OAAO,KAAKA,SAAS,MAAM,cAAc;AAEzC,SAASC,MAAM,EAAEC,eAAe,QAAQ,iBAAiB;AAKzD,MAAMC,OAAuB,GAAG,KAAK;AACrC,MAAMC,UAAU,GAAG,iBAAiB;AACpC;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,GAAG,GAAG;AAEhC,OAAO,MAAMC,eAAe,GAAG;EAC9BF,UAAU;EACVD,OAAO;EACPI,KAAK,EAAEN,MAAM;EACbO,UAAU,EAAEN,eAAe;EAC3BO,kBAAkB,EAAEJ,oBAAoB;EACxCK,gBAAgB,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC;EAC5BZ,SAAS,EAAE;IACV,GAAGA;EACJ,CAAC;EACDa,oBAAoBA,CAACC,KAAgB,EAAqB;IACzD,OAAO;MACNC,EAAE,EAAE;QACHC,cAAc,EAAGF,KAAK,GACnBG,MAAM,CAACC,WAAW,CAClBD,MAAM,CAACE,OAAO,CACbnB,SAAS,CAACoB,iBAAiB,CAACN,KAAK,EAAEX,OAAO,CAC3C,CAAC,CAACkB,MAAM,CAAC,CAAC,GAAGC,KAAK,CAAC,KAAK,CAAC,CAACA,KAAK,CAChC,CAAC,GACA,CAAC,CAAsC;QAC1CC,oBAAoB,EAAGT,KAAK,GACzBG,MAAM,CAACC,WAAW,CAClBD,MAAM,CAACE,OAAO,CACbnB,SAAS,CAACwB,uBAAuB,CAACV,KAAK,EAAEX,OAAO,CACjD,CAAC,CAACkB,MAAM,CAAC,CAAC,GAAGC,KAAK,CAAC,KAAK,CAAC,CAACA,KAAK,CAChC,CAAC,GACA,CAAC,CAAsC;QAC1CG,aAAa,EAAGX,KAAK,GAClBG,MAAM,CAACC,WAAW,CAClBD,MAAM,CAACE,OAAO,CAACnB,SAAS,CAAC0B,gBAAgB,CAACZ,KAAK,EAAEX,OAAO,CAAC,CAAC,CAACkB,MAAM,CAChE,CAAC,GAAGC,KAAK,CAAC,KAAK,CAAC,CAACA,KAClB,CACD,CAAC,GACA,CAAC;MACL;IACD,CAAC;EACF;AACD,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@ import { BitEncoder, DateEncoder, EncodableOptimizedFixedRange, IdBitMapEncoder,
|
|
|
2
2
|
import { dateFormatter, fixedValuesArrayFormatter, idsOnlyArrayFormatter } from './formatters';
|
|
3
3
|
import { baseInitOptions } from './shared-constants';
|
|
4
4
|
import compressedBase64UrlEncoder from '../../gpp/encoders/CompressedBase64UrlEncoder';
|
|
5
|
-
import { createUTCTimestampInDeciseconds } from '
|
|
5
|
+
import { createUTCTimestampInDeciseconds } from '../helpers';
|
|
6
6
|
|
|
7
7
|
// gppSection is the key in redux state that stores the consent string.
|
|
8
8
|
const gppSection = 'tcfcav1';
|
|
@@ -13,27 +13,15 @@ const gppSection = 'tcfcav1';
|
|
|
13
13
|
*/
|
|
14
14
|
const BOOTSTRAP_TCSTRING = 'COsdsoAOsdsoAAAAAAAAAACAAAAAAAAAAAAAAAAA';
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* @typedef CoreField
|
|
18
|
-
* @type {array}
|
|
19
|
-
* @property {string} 0 - The name of the field in the GPPModel
|
|
20
|
-
* <https://github.com/IABTechLab/iabgpp-es/blob/42060d7ac2b6d0ee70fc1b5bcd33fc447bf5123c/README.md#fields>
|
|
21
|
-
* @property {number} 1 - The number of bits to encode the field
|
|
22
|
-
* @property {Encoder} 2 - The encoder to use for this field
|
|
23
|
-
* @property {string} 3 - The path to the value in our TCF object
|
|
24
|
-
* @property {string} [4] - The formatter to use for this field for the client API calls
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
16
|
/**
|
|
28
17
|
* The core fields of the TCString for TCF-Canada v1.
|
|
29
|
-
* @type {CoreField[]}
|
|
30
18
|
*/
|
|
31
19
|
const coreFieldSequence = [['Version', 6, IntEncoder, 'version'], ['Created', 36, DateEncoder, 'created', dateFormatter], ['LastUpdated', 36, DateEncoder, 'lastUpdated', dateFormatter], ['CmpId', 12, IntEncoder, 'cmpId'], ['CmpVersion', 12, IntEncoder, 'cmpVersion'], ['ConsentScreen', 6, IntEncoder, 'currentScreen'], ['ConsentLanguage', 12, LangEncoder, 'consentLanguage'], ['VendorListVersion', 12, IntEncoder, 'gvlVersion'], ['TcfPolicyVersion', 6, IntEncoder, 'tcfPolicyVersion'], ['UseNonStandardStacks', 1, BitEncoder, 'useNonStandardStacks'], ['SpecialFeatureExpressConsent', 12, IdBitMapEncoder, 'specialFeatureOptins', fixedValuesArrayFormatter], ['PurposesExpressConsent', 24, IdBitMapEncoder, 'purpose.consents', fixedValuesArrayFormatter], ['PurposesImpliedConsent', 24, IdBitMapEncoder, 'purpose.legitimateInterests', fixedValuesArrayFormatter],
|
|
32
20
|
// Vendor Consents
|
|
33
21
|
['VendorExpressConsent', Number.POSITIVE_INFINITY, EncodableOptimizedFixedRange, 'vendor.consents', idsOnlyArrayFormatter],
|
|
34
22
|
// Vendor Legitimate Interests
|
|
35
23
|
['VendorImpliedConsent', Number.POSITIVE_INFINITY, EncodableOptimizedFixedRange, 'vendor.legitimateInterests', idsOnlyArrayFormatter]];
|
|
36
|
-
const version = parseInt(baseInitOptions.version, 10);
|
|
24
|
+
const version = Number.parseInt(baseInitOptions.version, 10);
|
|
37
25
|
const staticFields = {
|
|
38
26
|
version,
|
|
39
27
|
cmpId: baseInitOptions.cmpId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BitEncoder","DateEncoder","EncodableOptimizedFixedRange","IdBitMapEncoder","IntEncoder","LangEncoder","dateFormatter","fixedValuesArrayFormatter","idsOnlyArrayFormatter","baseInitOptions","compressedBase64UrlEncoder","createUTCTimestampInDeciseconds","gppSection","BOOTSTRAP_TCSTRING","coreFieldSequence","Number","POSITIVE_INFINITY","version","parseInt","staticFields","cmpId","cmpVersion","tcfPolicyVersion","useNonStandardStacks","dynamicFields","created","lastUpdated","initOptions","tcString","encoder"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/tcfcav1-constants.
|
|
1
|
+
{"version":3,"names":["BitEncoder","DateEncoder","EncodableOptimizedFixedRange","IdBitMapEncoder","IntEncoder","LangEncoder","dateFormatter","fixedValuesArrayFormatter","idsOnlyArrayFormatter","baseInitOptions","compressedBase64UrlEncoder","createUTCTimestampInDeciseconds","gppSection","BOOTSTRAP_TCSTRING","coreFieldSequence","Number","POSITIVE_INFINITY","version","parseInt","staticFields","cmpId","cmpVersion","tcfPolicyVersion","useNonStandardStacks","dynamicFields","created","lastUpdated","initOptions","tcString","encoder"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/tc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B,CACzB,EACD,CACC,wBAAwB,EACxB,EAAE,EACFJ,eAAe,EACf,6BAA6B,EAC7BI,yBAAyB,CACzB;AACD;AACA,CACC,sBAAsB,EACtBQ,MAAM,CAACC,iBAAiB,EACxBd,4BAA4B,EAC5B,iBAAiB,EACjBM,qBAAqB,CACrB;AACD;AACA,CACC,sBAAsB,EACtBO,MAAM,CAACC,iBAAiB,EACxBd,4BAA4B,EAC5B,4BAA4B,EAC5BM,qBAAqB,CACrB,CACD;AAED,MAAMS,OAAO,GAAGF,MAAM,CAACG,QAAQ,CAACT,eAAe,CAACQ,OAAO,EAAE,EAAE,CAAC;AAC5D,MAAME,YAAY,GAAG;EACpBF,OAAO;EACPG,KAAK,EAAEX,eAAe,CAACW,KAAK;EAC5BC,UAAU,EAAEZ,eAAe,CAACY,UAAU;EACtCC,gBAAgB,EAAEL,OAAO;EACzBM,oBAAoB,EAAE;AACvB,CAAC;AAED,MAAMC,aAAa,GAAG;EACrBC,OAAO,EAAEd,+BAA+B;EACxCe,WAAW,EAAEf;AACd,CAAC;AAED,OAAO,MAAMgB,WAAW,GAAG;EAC1B,GAAGlB,eAAe;EAClBK,iBAAiB;EACjBF,UAAU;EACVgB,QAAQ,EAAEf,kBAAkB;EAC5BM,YAAY;EACZK,aAAa;EACbK,OAAO,EAAEnB;AACV,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BitEncoder, DateEncoder, EncodableOptimizedFixedRange, IdBitMapEncoder, IntEncoder, LangEncoder } from './encoders';
|
|
2
2
|
import { baseInitOptions } from './shared-constants';
|
|
3
|
-
import { createUTCTimestampInDeciseconds } from '
|
|
3
|
+
import { createUTCTimestampInDeciseconds } from '../helpers';
|
|
4
4
|
import traditionalBase64UrlEncoder from '../../gpp/encoders/TraditionalBase64UrlEncoder';
|
|
5
5
|
export const apiName = '__tcfapi';
|
|
6
6
|
export const iframeName = '__tcfapiLocator';
|
|
@@ -23,22 +23,11 @@ const gppSection = 'tcfeuv2';
|
|
|
23
23
|
*/
|
|
24
24
|
const BOOTSTRAP_TCSTRING = 'CPpshUAPpshUAEXABAENAACwAIBAAAAAAAAAAAAAAAAA';
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
* @typedef CoreField
|
|
28
|
-
* @type {array}
|
|
29
|
-
* @property {string} 0 - The name of the field in the TCModel
|
|
30
|
-
* <https://github.com/InteractiveAdvertisingBureau/iabtcf-es/blob/e952844c689351a51b15d71b9dd43ee085c2f7f3/modules/core/src/TCModel.ts>
|
|
31
|
-
* @property {number} 1 - The number of bits to encode the field
|
|
32
|
-
* @property {Encoder} 2 - The encoder to use for this field
|
|
33
|
-
* @property {string} [3] - The path to the value in our TCF object if it is different from the TCModel
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
26
|
/**
|
|
37
27
|
* The core fields of the TCString in the order they appear in the TCString
|
|
38
28
|
* Reference spec doc: https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20Consent%20string%20and%20vendor%20list%20formats%20v2.md#the-core-string
|
|
39
29
|
*
|
|
40
30
|
* Note: some field names conflict with the TCModel<https://github.com/IABTechLab/iabgpp-es/blob/42060d7ac2b6d0ee70fc1b5bcd33fc447bf5123c/modules/cmpapi/src/encoder/field/TcfEuV2Field.ts>. We may need to resolve these conflicts. See comments below for specific fields.
|
|
41
|
-
* @type {CoreField[]}
|
|
42
31
|
*/
|
|
43
32
|
const coreFieldSequence = [['version', 6, IntEncoder], ['created', 36, DateEncoder], ['lastUpdated', 36, DateEncoder], ['cmpId', 12, IntEncoder], ['cmpVersion', 12, IntEncoder], ['consentScreen', 6, IntEncoder, 'currentScreen'], ['consentLanguage', 12, LangEncoder], ['vendorListVersion', 12, IntEncoder, 'gvlVersion'], ['policyVersion', 6, IntEncoder, 'tcfPolicyVersion'],
|
|
44
33
|
// spec doc: "TcfPolicyVersion", TCModel: "PolicyVersion"
|
|
@@ -58,7 +47,7 @@ Number.POSITIVE_INFINITY, EncodableOptimizedFixedRange, 'vendor.legitimateIntere
|
|
|
58
47
|
// We do not (yet) support publisher restrictions so this field should always be 0
|
|
59
48
|
['numPubRestrictions', 12, IntEncoder] // This is a meta field and shouldn't be exposed directly via an API
|
|
60
49
|
];
|
|
61
|
-
const version = parseInt(baseInitOptions.version, 10);
|
|
50
|
+
const version = Number.parseInt(baseInitOptions.version, 10);
|
|
62
51
|
const staticFields = {
|
|
63
52
|
version,
|
|
64
53
|
cmpId: baseInitOptions.cmpId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BitEncoder","DateEncoder","EncodableOptimizedFixedRange","IdBitMapEncoder","IntEncoder","LangEncoder","baseInitOptions","createUTCTimestampInDeciseconds","traditionalBase64UrlEncoder","apiName","iframeName","gppSection","BOOTSTRAP_TCSTRING","coreFieldSequence","Number","POSITIVE_INFINITY","version","parseInt","staticFields","cmpId","cmpVersion","tcfPolicyVersion","useNonStandardStacks","isServiceSpecific","purposeOneTreatment","numPubRestrictions","dynamicFields","created","lastUpdated","initOptions","tcString","encoder"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/tcfeuv2-constants.
|
|
1
|
+
{"version":3,"names":["BitEncoder","DateEncoder","EncodableOptimizedFixedRange","IdBitMapEncoder","IntEncoder","LangEncoder","baseInitOptions","createUTCTimestampInDeciseconds","traditionalBase64UrlEncoder","apiName","iframeName","gppSection","BOOTSTRAP_TCSTRING","coreFieldSequence","Number","POSITIVE_INFINITY","version","parseInt","staticFields","cmpId","cmpVersion","tcfPolicyVersion","useNonStandardStacks","isServiceSpecific","purposeOneTreatment","numPubRestrictions","dynamicFields","created","lastUpdated","initOptions","tcString","encoder"],"sourceRoot":"../../../../../src","sources":["iab/tcf/v2.0/tcfeuv2-constants.ts"],"mappings":"AAAA,SACCA,UAAU,EACVC,WAAW,EACXC,4BAA4B,EAC5BC,eAAe,EACfC,UAAU,EACVC,WAAW,QACL,YAAY;AAGnB,SAAS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,sBAAsB,EAAE,EAAE,EAAEK,WAAW,EAAE,aAAa,CAAC;AAAE;AAC1D;AACA,CACC,gBAAgB,EAChBS,MAAM,CAACC,iBAAiB,EACxBb,4BAA4B,EAC5B,iBAAiB,CACjB;AAAE;AACH;AACA,CACC,2BAA2B;AAAE;AAC7BY,MAAM,CAACC,iBAAiB,EACxBb,4BAA4B,EAC5B,4BAA4B,CAC5B;AACD;AACA,CAAC,oBAAoB,EAAE,EAAE,EAAEE,UAAU,CAAC,CAAE;AAAA,CACxC;AAED,MAAMY,OAAO,GAAGF,MAAM,CAACG,QAAQ,CAACX,eAAe,CAACU,OAAO,EAAE,EAAE,CAAC;AAC5D,MAAME,YAAY,GAAG;EACpBF,OAAO;EACPG,KAAK,EAAEb,eAAe,CAACa,KAAK;EAC5BC,UAAU,EAAEd,eAAe,CAACc,UAAU;EACtCC,gBAAgB,EAAEL,OAAO;EACzBM,oBAAoB,EAAE,IAAI;EAC1BC,iBAAiB,EAAE,IAAI;EACvBC,mBAAmB,EAAE,KAAK;EAC1BC,kBAAkB,EAAE;AACrB,CAAC;AAED,MAAMC,aAAa,GAAG;EACrBC,OAAO,EAAEpB,+BAA+B;EACxCqB,WAAW,EAAErB;AACd,CAAC;AAED,OAAO,MAAMsB,WAAW,GAAG;EAC1B,GAAGvB,eAAe;EAClBO,iBAAiB;EACjBF,UAAU;EACVmB,QAAQ,EAAElB,kBAAkB;EAC5BM,YAAY;EACZQ,aAAa;EACbK,OAAO,EAAEvB;AACV,CAAC","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { OsanoCategories,
|
|
1
|
+
import { OsanoCategories, init, reducer } from './reducer';
|
|
2
2
|
import { Platform, UIManager } from 'react-native';
|
|
3
|
-
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
4
|
-
import {
|
|
3
|
+
import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
4
|
+
import { CLEAR_CONSENT, reload, setConfig, setLocale, showDialog, showDrawer } from './actions';
|
|
5
|
+
import { ConsentCategory } from './constants';
|
|
5
6
|
import { ConsentManager } from './ConsentManager';
|
|
6
7
|
import { ConsentUiBuilder } from './ConsentUiBuilder';
|
|
7
8
|
import { OsanoPublicContext } from './context';
|
|
9
|
+
import { addIabReducers } from './iab';
|
|
10
|
+
import { getConsent } from './selectors';
|
|
11
|
+
import { recordConsent } from './services/consent';
|
|
8
12
|
import useThunkReducer from './hooks/useThunkReducer';
|
|
13
|
+
import { usePrevious } from './hooks/usePrevious';
|
|
9
14
|
export { OsanoPublicContext as OsanoContext } from './context';
|
|
10
15
|
if (Platform.OS === 'android') {
|
|
11
16
|
if (UIManager.setLayoutAnimationEnabledExperimental) {
|
|
12
17
|
UIManager.setLayoutAnimationEnabledExperimental(true);
|
|
13
18
|
}
|
|
14
19
|
}
|
|
15
|
-
export const Osano = props => {
|
|
20
|
+
export const Osano = /*#__PURE__*/memo(props => {
|
|
16
21
|
const {
|
|
17
22
|
configId,
|
|
18
23
|
customerId,
|
|
24
|
+
hideUI = false,
|
|
19
25
|
hideDisclosures = false,
|
|
20
26
|
onConfigLoadFailure,
|
|
21
27
|
onConfigLoadSuccess,
|
|
@@ -28,27 +34,45 @@ export const Osano = props => {
|
|
|
28
34
|
iabEnabled
|
|
29
35
|
} = overrides || {};
|
|
30
36
|
const consentManager = useRef(new ConsentManager(overrides));
|
|
31
|
-
const [_state,
|
|
37
|
+
const [_state, store] = useThunkReducer(reducer, {
|
|
32
38
|
configId,
|
|
33
39
|
customerId
|
|
34
|
-
}, init, []);
|
|
40
|
+
}, init, [consentManager.current.middleware]);
|
|
41
|
+
const {
|
|
42
|
+
addMiddleware,
|
|
43
|
+
dispatch,
|
|
44
|
+
getState,
|
|
45
|
+
removeMiddleware
|
|
46
|
+
} = store;
|
|
35
47
|
const handleGetConsent = useCallback(category => {
|
|
36
48
|
if (typeof category === 'string') {
|
|
37
49
|
return consentManager.current.hasConsent(category);
|
|
38
50
|
}
|
|
39
|
-
return consentManager.current.consent ?? [];
|
|
51
|
+
return consentManager.current.consent ?? [ConsentCategory.ESSENTIAL];
|
|
40
52
|
}, []);
|
|
41
|
-
const handleRecordConsent = useCallback(
|
|
42
|
-
|
|
53
|
+
const handleRecordConsent = useCallback(category => {
|
|
54
|
+
let consentedCategories = getConsent(getState());
|
|
55
|
+
if (category !== undefined) {
|
|
56
|
+
/*
|
|
57
|
+
* If category(s) is/are provided, we need to:
|
|
58
|
+
* 1. Check if all categories provided are valid
|
|
59
|
+
* 2. Store them locally
|
|
60
|
+
*/
|
|
61
|
+
const categories = (Array.isArray(category) ? category : [category]).filter(cat => OsanoCategories.includes(cat));
|
|
62
|
+
consentedCategories = OsanoCategories.filter(cat => cat === ConsentCategory.ESSENTIAL || categories.includes(cat));
|
|
63
|
+
}
|
|
64
|
+
return recordConsent(consentManager.current, consentedCategories);
|
|
43
65
|
}, []);
|
|
44
66
|
const handleClearConsent = useCallback(() => {
|
|
45
|
-
|
|
67
|
+
dispatch({
|
|
68
|
+
type: CLEAR_CONSENT
|
|
69
|
+
});
|
|
46
70
|
}, []);
|
|
47
71
|
const handleShowDialog = useCallback(() => {
|
|
48
|
-
dispatch(showDialog);
|
|
72
|
+
dispatch(showDialog());
|
|
49
73
|
}, []);
|
|
50
74
|
const handleShowDrawer = useCallback(() => {
|
|
51
|
-
dispatch(showDrawer);
|
|
75
|
+
dispatch(showDrawer());
|
|
52
76
|
}, []);
|
|
53
77
|
const handleSetLocale = useCallback(value => {
|
|
54
78
|
if (value) {
|
|
@@ -69,19 +93,8 @@ export const Osano = props => {
|
|
|
69
93
|
onLangLoadSuccess,
|
|
70
94
|
onLangLoadFailure
|
|
71
95
|
}).then(reloadProps => {
|
|
72
|
-
const {
|
|
73
|
-
consent = [],
|
|
74
|
-
...initProps
|
|
75
|
-
} = reloadProps;
|
|
76
|
-
const mappedConsent = OsanoCategories.reduce((consentMap, category) => {
|
|
77
|
-
consentMap[`${category}`] = consent.includes(category);
|
|
78
|
-
return consentMap;
|
|
79
|
-
}, {});
|
|
80
96
|
// We need to reset the state when the configId or customerId changes
|
|
81
|
-
dispatch(reload(
|
|
82
|
-
...initProps,
|
|
83
|
-
consent: mappedConsent
|
|
84
|
-
}));
|
|
97
|
+
dispatch(reload(reloadProps));
|
|
85
98
|
}).catch(() => {
|
|
86
99
|
// TODO: Handle error
|
|
87
100
|
});
|
|
@@ -89,7 +102,7 @@ export const Osano = props => {
|
|
|
89
102
|
locale: consentManager.current.translator.locale,
|
|
90
103
|
getConsent: handleGetConsent,
|
|
91
104
|
getDeviceId: handleGetDeviceId,
|
|
92
|
-
|
|
105
|
+
consent: handleRecordConsent,
|
|
93
106
|
clearConsent: handleClearConsent,
|
|
94
107
|
setLocale: handleSetLocale,
|
|
95
108
|
showBanner: handleShowDialog,
|
|
@@ -98,11 +111,36 @@ export const Osano = props => {
|
|
|
98
111
|
}, [configId, customerId, consentManager.current.translator.locale]);
|
|
99
112
|
useEffect(() => {
|
|
100
113
|
consentManager.current.config.type = flavor;
|
|
101
|
-
|
|
102
|
-
|
|
114
|
+
}, [flavor]);
|
|
115
|
+
const iabLoaded = useRef(false);
|
|
116
|
+
const iabChanged = usePrevious(iabEnabled) !== iabEnabled;
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
// Add IAB reducers only once, and based on which IAB versions we want to load
|
|
119
|
+
const frameworks = [];
|
|
120
|
+
// TODO: determine gpp, tcf, and usp. For now...we just assume TCF
|
|
121
|
+
if (consentManager.current.config.tcfController) {
|
|
122
|
+
frameworks.push({
|
|
123
|
+
versions: [consentManager.current.config.tcfController]
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
if (frameworks.length && !iabLoaded.current) {
|
|
127
|
+
// We are only going to add the IAB reducers once, and only for configured frameworks/versions
|
|
128
|
+
// We can do this because we don't EVER want IAB frameworks or versions to change without
|
|
129
|
+
// a config republish.
|
|
130
|
+
iabLoaded.current = true;
|
|
131
|
+
addIabReducers(frameworks)(store);
|
|
132
|
+
}
|
|
133
|
+
consentManager.current.config.iabEnabled = iabEnabled ?? undefined;
|
|
134
|
+
// Update our store when IAB is changed so we can trigger reloads
|
|
135
|
+
iabChanged && dispatch(setConfig({
|
|
136
|
+
config: consentManager.current.config,
|
|
137
|
+
customerId,
|
|
138
|
+
configId
|
|
139
|
+
}));
|
|
140
|
+
}, [iabEnabled]);
|
|
103
141
|
return /*#__PURE__*/React.createElement(OsanoPublicContext.Provider, {
|
|
104
142
|
value: context
|
|
105
|
-
}, props.children, /*#__PURE__*/React.createElement(ConsentUiBuilder, {
|
|
143
|
+
}, props.children, hideUI ? null : /*#__PURE__*/React.createElement(ConsentUiBuilder, {
|
|
106
144
|
addMiddleware: addMiddleware,
|
|
107
145
|
removeMiddleware: removeMiddleware,
|
|
108
146
|
dispatch: dispatch,
|
|
@@ -110,5 +148,15 @@ export const Osano = props => {
|
|
|
110
148
|
cmp: consentManager,
|
|
111
149
|
hideDisclosures: hideDisclosures
|
|
112
150
|
}));
|
|
113
|
-
}
|
|
151
|
+
}, (prev, next) => {
|
|
152
|
+
const {
|
|
153
|
+
flavor,
|
|
154
|
+
iabEnabled
|
|
155
|
+
} = prev.overrides || {};
|
|
156
|
+
const {
|
|
157
|
+
flavor: nextFlavor,
|
|
158
|
+
iabEnabled: nextIabEnabled
|
|
159
|
+
} = next.overrides || {};
|
|
160
|
+
return prev.configId === next.configId && prev.customerId === next.customerId && prev.hideUI === next.hideUI && prev.hideDisclosures === next.hideDisclosures && prev.children === next.children && flavor === nextFlavor && iabEnabled === nextIabEnabled;
|
|
161
|
+
});
|
|
114
162
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["OsanoCategories","
|
|
1
|
+
{"version":3,"names":["OsanoCategories","init","reducer","Platform","UIManager","React","memo","useCallback","useEffect","useMemo","useRef","CLEAR_CONSENT","reload","setConfig","setLocale","showDialog","showDrawer","ConsentCategory","ConsentManager","ConsentUiBuilder","OsanoPublicContext","addIabReducers","getConsent","recordConsent","useThunkReducer","usePrevious","OsanoContext","OS","setLayoutAnimationEnabledExperimental","Osano","props","configId","customerId","hideUI","hideDisclosures","onConfigLoadFailure","onConfigLoadSuccess","onLangLoadFailure","onLangLoadSuccess","overrides","flavor","iabEnabled","consentManager","_state","store","current","middleware","addMiddleware","dispatch","getState","removeMiddleware","handleGetConsent","category","hasConsent","consent","ESSENTIAL","handleRecordConsent","consentedCategories","undefined","categories","Array","isArray","filter","cat","includes","handleClearConsent","type","handleShowDialog","handleShowDrawer","handleSetLocale","value","translator","load","then","handleGetDeviceId","deviceId","context","reloadProps","catch","locale","getDeviceId","clearConsent","showBanner","config","iabLoaded","iabChanged","frameworks","tcfController","push","versions","length","createElement","Provider","children","cmp","prev","next","nextFlavor","nextIabEnabled"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AACA,SAASA,eAAe,EAAEC,IAAI,EAAEC,OAAO,QAAQ,WAAW;AAC1D,SAASC,QAAQ,EAAEC,SAAS,QAAQ,cAAc;AAClD,OAAOC,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAC5E,SACCC,aAAa,EACbC,MAAM,EACNC,SAAS,EACTC,SAAS,EACTC,UAAU,EACVC,UAAU,QACJ,WAAW;AAElB,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,gBAAgB,QAAQ,oBAAoB;AAErD,SAASC,kBAAkB,QAAQ,WAAW;AAC9C,SAASC,cAAc,QAAQ,OAAO;AACtC,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,aAAa,QAAQ,oBAAoB;AAClD,OAAOC,eAAe,MAAsB,yBAAyB;AAErE,SAASC,WAAW,QAAQ,qBAAqB;AAEjD,SAASL,kBAAkB,IAAIM,YAAY,QAAQ,WAAW;AAE9D,IAAIvB,QAAQ,CAACw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