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