@osano/osano-cmp-react-native 0.9.0 → 0.11.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/lib/commonjs/components/Button.js +27 -12
- package/lib/commonjs/components/Button.js.map +1 -1
- package/lib/commonjs/locale/af.json +324 -321
- package/lib/commonjs/locale/ar.json +324 -321
- package/lib/commonjs/locale/bg.json +324 -321
- package/lib/commonjs/locale/ca.json +324 -321
- package/lib/commonjs/locale/cs.json +324 -321
- package/lib/commonjs/locale/da.json +324 -321
- package/lib/commonjs/locale/de-at.json +324 -321
- package/lib/commonjs/locale/de.json +324 -321
- package/lib/commonjs/locale/el.json +324 -321
- package/lib/commonjs/locale/en-au.json +324 -321
- package/lib/commonjs/locale/en-ca.json +324 -321
- package/lib/commonjs/locale/en-gb.json +324 -321
- package/lib/commonjs/locale/en.json +324 -321
- package/lib/commonjs/locale/es-mx.json +324 -321
- package/lib/commonjs/locale/es.json +324 -321
- package/lib/commonjs/locale/et.json +324 -321
- package/lib/commonjs/locale/fa.json +324 -321
- package/lib/commonjs/locale/fi.json +324 -321
- package/lib/commonjs/locale/fr-ca.json +324 -321
- package/lib/commonjs/locale/fr.json +324 -321
- package/lib/commonjs/locale/gd.json +324 -321
- package/lib/commonjs/locale/he.json +324 -321
- package/lib/commonjs/locale/hi.json +324 -321
- package/lib/commonjs/locale/hr.json +324 -321
- package/lib/commonjs/locale/hu.json +324 -321
- package/lib/commonjs/locale/hy.json +324 -321
- package/lib/commonjs/locale/id.json +324 -321
- package/lib/commonjs/locale/is.json +324 -321
- package/lib/commonjs/locale/it.json +324 -321
- package/lib/commonjs/locale/ja.json +324 -321
- package/lib/commonjs/locale/kk.json +324 -321
- package/lib/commonjs/locale/ko.json +324 -321
- package/lib/commonjs/locale/lt.json +324 -321
- package/lib/commonjs/locale/lv.json +324 -321
- package/lib/commonjs/locale/mi.json +324 -321
- package/lib/commonjs/locale/ms.json +324 -321
- package/lib/commonjs/locale/nb.json +324 -321
- package/lib/commonjs/locale/nl-be.json +324 -321
- package/lib/commonjs/locale/nl.json +324 -321
- package/lib/commonjs/locale/nn.json +324 -321
- package/lib/commonjs/locale/no.json +324 -321
- package/lib/commonjs/locale/pl.json +324 -321
- package/lib/commonjs/locale/pt-br.json +324 -321
- package/lib/commonjs/locale/pt.json +324 -321
- package/lib/commonjs/locale/ro.json +324 -321
- package/lib/commonjs/locale/ru.json +324 -321
- package/lib/commonjs/locale/sk.json +324 -321
- package/lib/commonjs/locale/sl.json +324 -321
- package/lib/commonjs/locale/sq.json +324 -321
- package/lib/commonjs/locale/sr.json +324 -321
- package/lib/commonjs/locale/sv.json +324 -321
- package/lib/commonjs/locale/th.json +324 -321
- package/lib/commonjs/locale/tl.json +324 -321
- package/lib/commonjs/locale/tr.json +324 -321
- package/lib/commonjs/locale/uk.json +324 -321
- package/lib/commonjs/locale/vi.json +324 -321
- package/lib/commonjs/locale/zh-hk.json +324 -321
- package/lib/commonjs/locale/zh-tw.json +324 -321
- package/lib/commonjs/locale/zh.json +324 -321
- package/lib/commonjs/locale/zu.json +324 -321
- package/lib/commonjs/views/Dialog/Message.js +2 -2
- package/lib/commonjs/views/Dialog/Message.js.map +1 -1
- package/lib/commonjs/views/Dialog/index.js +1 -0
- package/lib/commonjs/views/Dialog/index.js.map +1 -1
- package/lib/commonjs/views/Drawer/index.js +1 -0
- package/lib/commonjs/views/Drawer/index.js.map +1 -1
- package/lib/module/components/Button.js +27 -12
- package/lib/module/components/Button.js.map +1 -1
- package/lib/module/locale/af.json +324 -321
- package/lib/module/locale/ar.json +324 -321
- package/lib/module/locale/bg.json +324 -321
- package/lib/module/locale/ca.json +324 -321
- package/lib/module/locale/cs.json +324 -321
- package/lib/module/locale/da.json +324 -321
- package/lib/module/locale/de-at.json +324 -321
- package/lib/module/locale/de.json +324 -321
- package/lib/module/locale/el.json +324 -321
- package/lib/module/locale/en-au.json +324 -321
- package/lib/module/locale/en-ca.json +324 -321
- package/lib/module/locale/en-gb.json +324 -321
- package/lib/module/locale/en.json +324 -321
- package/lib/module/locale/es-mx.json +324 -321
- package/lib/module/locale/es.json +324 -321
- package/lib/module/locale/et.json +324 -321
- package/lib/module/locale/fa.json +324 -321
- package/lib/module/locale/fi.json +324 -321
- package/lib/module/locale/fr-ca.json +324 -321
- package/lib/module/locale/fr.json +324 -321
- package/lib/module/locale/gd.json +324 -321
- package/lib/module/locale/he.json +324 -321
- package/lib/module/locale/hi.json +324 -321
- package/lib/module/locale/hr.json +324 -321
- package/lib/module/locale/hu.json +324 -321
- package/lib/module/locale/hy.json +324 -321
- package/lib/module/locale/id.json +324 -321
- package/lib/module/locale/is.json +324 -321
- package/lib/module/locale/it.json +324 -321
- package/lib/module/locale/ja.json +324 -321
- package/lib/module/locale/kk.json +324 -321
- package/lib/module/locale/ko.json +324 -321
- package/lib/module/locale/lt.json +324 -321
- package/lib/module/locale/lv.json +324 -321
- package/lib/module/locale/mi.json +324 -321
- package/lib/module/locale/ms.json +324 -321
- package/lib/module/locale/nb.json +324 -321
- package/lib/module/locale/nl-be.json +324 -321
- package/lib/module/locale/nl.json +324 -321
- package/lib/module/locale/nn.json +324 -321
- package/lib/module/locale/no.json +324 -321
- package/lib/module/locale/pl.json +324 -321
- package/lib/module/locale/pt-br.json +324 -321
- package/lib/module/locale/pt.json +324 -321
- package/lib/module/locale/ro.json +324 -321
- package/lib/module/locale/ru.json +324 -321
- package/lib/module/locale/sk.json +324 -321
- package/lib/module/locale/sl.json +324 -321
- package/lib/module/locale/sq.json +324 -321
- package/lib/module/locale/sr.json +324 -321
- package/lib/module/locale/sv.json +324 -321
- package/lib/module/locale/th.json +324 -321
- package/lib/module/locale/tl.json +324 -321
- package/lib/module/locale/tr.json +324 -321
- package/lib/module/locale/uk.json +324 -321
- package/lib/module/locale/vi.json +324 -321
- package/lib/module/locale/zh-hk.json +324 -321
- package/lib/module/locale/zh-tw.json +324 -321
- package/lib/module/locale/zh.json +324 -321
- package/lib/module/locale/zu.json +324 -321
- package/lib/module/views/Dialog/Message.js +2 -2
- package/lib/module/views/Dialog/Message.js.map +1 -1
- package/lib/module/views/Dialog/index.js +1 -0
- package/lib/module/views/Dialog/index.js.map +1 -1
- package/lib/module/views/Drawer/index.js +1 -0
- package/lib/module/views/Drawer/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/views/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/views/Drawer/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/module/views/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/views/Drawer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Button.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 +28 -0
- package/lib/typescript/src/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/BooleanEncoder.d.ts +34 -0
- package/lib/typescript/src/iab/gpp/encoders/BooleanEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/DatetimeEncoder.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/encoders/DatetimeEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +16 -0
- package/lib/typescript/src/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +6 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerEncoder.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedStringEncoder.d.ts +26 -0
- package/lib/typescript/src/iab/gpp/encoders/FixedStringEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +28 -0
- package/lib/typescript/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/errors.d.ts +19 -0
- package/lib/typescript/src/iab/gpp/encoders/errors.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/index.d.ts +16 -0
- package/lib/typescript/src/iab/gpp/encoders/index.d.ts.map +1 -0
- package/lib/typescript/src/iab/gpp/encoders/types.d.ts +5 -0
- package/lib/typescript/src/iab/gpp/encoders/types.d.ts.map +1 -0
- 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/types.d.ts +3 -0
- package/lib/typescript/src/iab/gpp/types.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/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/types.d.ts +5 -0
- package/lib/typescript/src/iab/usp/types.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/views/Dialog/Message.d.ts.map +1 -1
- package/lib/typescript/src/views/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/src/views/Drawer/index.d.ts.map +1 -1
- package/package.json +2 -6
- package/src/components/Button.tsx +22 -12
- package/src/iab/gpp/api.js +253 -0
- package/src/iab/gpp/consent.js +114 -0
- package/src/iab/gpp/constants.js +49 -0
- package/src/iab/gpp/encoders/AbstractBase64UrlEncoder.ts +89 -0
- package/src/iab/gpp/encoders/BooleanEncoder.ts +39 -0
- package/src/iab/gpp/encoders/CompressedBase64UrlEncoder.ts +41 -0
- package/src/iab/gpp/encoders/DatetimeEncoder.ts +46 -0
- package/src/iab/gpp/encoders/EncodableOptimizedFixedRange.ts +213 -0
- package/src/iab/gpp/encoders/FibonacciIntegerEncoder.ts +81 -0
- package/src/iab/gpp/encoders/FibonacciIntegerRangeEncoder.ts +122 -0
- package/src/iab/gpp/encoders/FixedBitfieldEncoder.ts +59 -0
- package/src/iab/gpp/encoders/FixedIdBitMapEncoder.ts +30 -0
- package/src/iab/gpp/encoders/FixedIntegerEncoder.ts +61 -0
- package/src/iab/gpp/encoders/FixedIntegerListEncoder.ts +87 -0
- package/src/iab/gpp/encoders/FixedIntegerRangeEncoder.ts +102 -0
- package/src/iab/gpp/encoders/FixedStringEncoder.ts +74 -0
- package/src/iab/gpp/encoders/LICENSE-IABTechLab +176 -0
- package/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.ts +38 -0
- package/src/iab/gpp/encoders/errors.ts +41 -0
- package/src/iab/gpp/encoders/index.ts +15 -0
- package/src/iab/gpp/encoders/types.ts +5 -0
- package/src/iab/gpp/index.js +9 -0
- package/src/iab/gpp/reducer.js +7 -0
- package/src/iab/gpp/selectors.js +21 -0
- package/src/iab/gpp/types.ts +3 -0
- package/src/iab/gpp/v1/constants.js +7 -0
- package/src/iab/gpp/v1/index.js +73 -0
- package/src/iab/usp/api.js +56 -0
- package/src/iab/usp/consent.js +150 -0
- package/src/iab/usp/constants.js +40 -0
- package/src/iab/usp/index.js +9 -0
- package/src/iab/usp/reducer.js +107 -0
- package/src/iab/usp/selectors.js +31 -0
- package/src/iab/usp/types.ts +4 -0
- package/src/iab/usp/v1/constants.js +10 -0
- package/src/iab/usp/v1/index.js +54 -0
- package/src/locale/af.json +324 -321
- package/src/locale/ar.json +324 -321
- package/src/locale/bg.json +324 -321
- package/src/locale/ca.json +324 -321
- package/src/locale/cs.json +324 -321
- package/src/locale/da.json +324 -321
- package/src/locale/de-at.json +324 -321
- package/src/locale/de.json +324 -321
- package/src/locale/el.json +324 -321
- package/src/locale/en-au.json +324 -321
- package/src/locale/en-ca.json +324 -321
- package/src/locale/en-gb.json +324 -321
- package/src/locale/en.json +324 -321
- package/src/locale/es-mx.json +324 -321
- package/src/locale/es.json +324 -321
- package/src/locale/et.json +324 -321
- package/src/locale/fa.json +324 -321
- package/src/locale/fi.json +324 -321
- package/src/locale/fr-ca.json +324 -321
- package/src/locale/fr.json +324 -321
- package/src/locale/gd.json +324 -321
- package/src/locale/he.json +324 -321
- package/src/locale/hi.json +324 -321
- package/src/locale/hr.json +324 -321
- package/src/locale/hu.json +324 -321
- package/src/locale/hy.json +324 -321
- package/src/locale/id.json +324 -321
- package/src/locale/is.json +324 -321
- package/src/locale/it.json +324 -321
- package/src/locale/ja.json +324 -321
- package/src/locale/kk.json +324 -321
- package/src/locale/ko.json +324 -321
- package/src/locale/lt.json +324 -321
- package/src/locale/lv.json +324 -321
- package/src/locale/mi.json +324 -321
- package/src/locale/ms.json +324 -321
- package/src/locale/nb.json +324 -321
- package/src/locale/nl-be.json +324 -321
- package/src/locale/nl.json +324 -321
- package/src/locale/nn.json +324 -321
- package/src/locale/no.json +324 -321
- package/src/locale/pl.json +324 -321
- package/src/locale/pt-br.json +324 -321
- package/src/locale/pt.json +324 -321
- package/src/locale/ro.json +324 -321
- package/src/locale/ru.json +324 -321
- package/src/locale/sk.json +324 -321
- package/src/locale/sl.json +324 -321
- package/src/locale/sq.json +324 -321
- package/src/locale/sr.json +324 -321
- package/src/locale/sv.json +324 -321
- package/src/locale/th.json +324 -321
- package/src/locale/tl.json +324 -321
- package/src/locale/tr.json +324 -321
- package/src/locale/uk.json +324 -321
- package/src/locale/vi.json +324 -321
- package/src/locale/zh-hk.json +324 -321
- package/src/locale/zh-tw.json +324 -321
- package/src/locale/zh.json +324 -321
- package/src/locale/zu.json +324 -321
- package/src/views/Dialog/Message.tsx +2 -1
- package/src/views/Dialog/index.tsx +1 -0
- package/src/views/Drawer/index.tsx +1 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapted from IABTechLab's GPP JavaScript Reference Implementation
|
|
3
|
+
*
|
|
4
|
+
* https://github.com/IABTechLab/iabgpp-es/blob/42060d7ac2b6d0ee70fc1b5bcd33fc447bf5123c/modules/cmpapi/src/encoder/datatype/encoder/FixedIntegerListEncoder.ts
|
|
5
|
+
*
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2023 IABTechLab
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
10
|
+
* use this file except in compliance with the License. You may obtain a copy of
|
|
11
|
+
* the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
17
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
18
|
+
* License for the specific language governing permissions and limitations under
|
|
19
|
+
* the License.
|
|
20
|
+
*/
|
|
21
|
+
export declare const encode: (value: number[], elementBitStringLength: number, numElements: number) => string;
|
|
22
|
+
export declare const decode: (bitString: string, elementBitStringLength: number, numElements: number) => number[];
|
|
23
|
+
declare const _default: {
|
|
24
|
+
decode: (bitString: string, elementBitStringLength: number, numElements: number) => number[];
|
|
25
|
+
encode: (value: number[], elementBitStringLength: number, numElements: number) => string;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=FixedIntegerListEncoder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FixedIntegerListEncoder.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/encoders/FixedIntegerListEncoder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAQH,eAAO,MAAM,MAAM,UACX,MAAM,EAAE,0BACS,MAAM,eACjB,MAAM,WAYnB,CAAC;AAEF,eAAO,MAAM,MAAM,cACP,MAAM,0BACO,MAAM,eACjB,MAAM,aAkCnB,CAAC;;wBApCU,MAAM,0BACO,MAAM,eACjB,MAAM;oBAnBZ,MAAM,EAAE,0BACS,MAAM,eACjB,MAAM;;AAqDpB,wBAGE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapted from IABTechLab's GPP JavaScript Reference Implementation
|
|
3
|
+
*
|
|
4
|
+
* https://github.com/IABTechLab/iabgpp-es/blob/42060d7ac2b6d0ee70fc1b5bcd33fc447bf5123c/modules/cmpapi/src/encoder/datatype/encoder/FixedIntegerRangeEncoder.ts
|
|
5
|
+
*
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2023 IABTechLab
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
10
|
+
* use this file except in compliance with the License. You may obtain a copy of
|
|
11
|
+
* the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
17
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
18
|
+
* License for the specific language governing permissions and limitations under
|
|
19
|
+
* the License.
|
|
20
|
+
*/
|
|
21
|
+
export declare const encode: (value: number[]) => string;
|
|
22
|
+
export declare const decode: (bitString: string) => number[];
|
|
23
|
+
declare const _default: {
|
|
24
|
+
decode: (bitString: string) => number[];
|
|
25
|
+
encode: (value: number[]) => string;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=FixedIntegerRangeEncoder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FixedIntegerRangeEncoder.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/encoders/FixedIntegerRangeEncoder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAUH,eAAO,MAAM,MAAM,UAAW,MAAM,EAAE,WAmCrC,CAAC;AAEF,eAAO,MAAM,MAAM,cAAe,MAAM,aA8BvC,CAAC;;wBA9BgC,MAAM;oBArCV,MAAM,EAAE;;AAqEtC,wBAGE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapted from IABTechLab's GPP JavaScript Reference Implementation
|
|
3
|
+
*
|
|
4
|
+
* https://github.com/IABTechLab/iabgpp-es/blob/42060d7ac2b6d0ee70fc1b5bcd33fc447bf5123c/modules/cmpapi/src/encoder/datatype/encoder/FixedStringEncoder.ts
|
|
5
|
+
*
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2023 IABTechLab
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
10
|
+
* use this file except in compliance with the License. You may obtain a copy of
|
|
11
|
+
* the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
17
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
18
|
+
* License for the specific language governing permissions and limitations under
|
|
19
|
+
* the License.
|
|
20
|
+
*/
|
|
21
|
+
import type { Codable } from './types';
|
|
22
|
+
export declare const encode: (value: string, stringLength: number) => string;
|
|
23
|
+
export declare const decode: (bitString: string) => string;
|
|
24
|
+
declare const _default: Codable;
|
|
25
|
+
export default _default;
|
|
26
|
+
//# sourceMappingURL=FixedStringEncoder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FixedStringEncoder.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/encoders/FixedStringEncoder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAOH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,MAAM,UAAW,MAAM,gBAAgB,MAAM,WAqBzD,CAAC;AAEF,eAAO,MAAM,MAAM,cAAe,MAAM,WAiBvC,CAAC;wBAKG,OAAO;AAHZ,wBAGa"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapted from IABTechLab's GPP JavaScript Reference Implementation
|
|
3
|
+
*
|
|
4
|
+
* https://github.com/IABTechLab/iabgpp-es/blob/42060d7ac2b6d0ee70fc1b5bcd33fc447bf5123c/modules/cmpapi/src/encoder/datatype/encoder/TraditionalBase64UrlEncoder.ts
|
|
5
|
+
*
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2023 IABTechLab
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
10
|
+
* use this file except in compliance with the License. You may obtain a copy of
|
|
11
|
+
* the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
17
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
18
|
+
* License for the specific language governing permissions and limitations under
|
|
19
|
+
* the License.
|
|
20
|
+
*/
|
|
21
|
+
export declare const encode: (bitString: string) => string;
|
|
22
|
+
export { decode } from './AbstractBase64UrlEncoder';
|
|
23
|
+
declare const _default: {
|
|
24
|
+
decode: (str: string) => string;
|
|
25
|
+
encode: (bitString: string) => string;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=TraditionalBase64UrlEncoder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TraditionalBase64UrlEncoder.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/encoders/TraditionalBase64UrlEncoder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAWH,eAAO,MAAM,MAAM,+BAAkB,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;;;;;AAEpD,wBAGE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class InvalidBitStringError extends Error {
|
|
2
|
+
constructor(value: string | undefined);
|
|
3
|
+
}
|
|
4
|
+
export declare class InvalidBase64UrlError extends Error {
|
|
5
|
+
constructor(value: string | undefined);
|
|
6
|
+
}
|
|
7
|
+
export declare class InvalidSizeError extends Error {
|
|
8
|
+
constructor(value: number, bits: number);
|
|
9
|
+
}
|
|
10
|
+
export declare class BitStringParametersMatchError extends Error {
|
|
11
|
+
constructor(bitString: string, parameters: {
|
|
12
|
+
elementBitStringLength: number;
|
|
13
|
+
numElements: number;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export declare class InvalidStringCharacterError extends Error {
|
|
17
|
+
constructor(value: string | undefined);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/encoders/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAsB,SAAQ,KAAK;gBACnC,KAAK,EAAE,MAAM,GAAG,SAAS;CAIrC;AAED,qBAAa,qBAAsB,SAAQ,KAAK;gBACnC,KAAK,EAAE,MAAM,GAAG,SAAS;CAIrC;AAED,qBAAa,gBAAiB,SAAQ,KAAK;gBAC9B,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAIvC;AAED,qBAAa,6BAA8B,SAAQ,KAAK;gBAEtD,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE;QAAE,sBAAsB,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE;CASpE;AAED,qBAAa,2BAA4B,SAAQ,KAAK;gBACzC,KAAK,EAAE,MAAM,GAAG,SAAS;CAIrC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type { Codable } from './types';
|
|
2
|
+
export { default as AbstractBase64UrlEncoder } from './AbstractBase64UrlEncoder';
|
|
3
|
+
export { default as BooleanEncoder } from './BooleanEncoder';
|
|
4
|
+
export { default as CompressedBase64UrlEncoder } from './CompressedBase64UrlEncoder';
|
|
5
|
+
export { default as DatetimeEncoder } from './DatetimeEncoder';
|
|
6
|
+
export { default as EncodableOptimizedFixedRange } from './EncodableOptimizedFixedRange';
|
|
7
|
+
export { default as FibonacciIntegerEncoder } from './FibonacciIntegerEncoder';
|
|
8
|
+
export { default as FibonacciIntegerRangeEncoder } from './FibonacciIntegerRangeEncoder';
|
|
9
|
+
export { default as FixedBitfieldEncoder } from './FixedBitfieldEncoder';
|
|
10
|
+
export { default as FixedIdBitMapEncoder } from './FixedIdBitMapEncoder';
|
|
11
|
+
export { default as FixedIntegerEncoder } from './FixedIntegerEncoder';
|
|
12
|
+
export { default as FixedIntegerListEncoder } from './FixedIntegerListEncoder';
|
|
13
|
+
export { default as FixedIntegerRangeEncoder } from './FixedIntegerRangeEncoder';
|
|
14
|
+
export { default as FixedStringEncoder } from './FixedStringEncoder';
|
|
15
|
+
export { default as TraditionalBase64UrlEncoder } from './TraditionalBase64UrlEncoder';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/encoders/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/encoders/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,OAAO;IACvB,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;IACnC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/iab/gpp/index.js"],"names":[],"mappings":";;;;;;;oBAAoB,WAAW;iBACd,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/iab/gpp/reducer.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export function isUiVisible(state: any): boolean;
|
|
2
|
+
export function getSupportedApis(state: any): string[];
|
|
3
|
+
export function doesGDPRApply(state: any): boolean;
|
|
4
|
+
export function isBrowsingFrom(state: any, jurisdiction: any): boolean;
|
|
5
|
+
export function getConsentString(state: any, section: any): any;
|
|
6
|
+
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../src/iab/gpp/selectors.js"],"names":[],"mappings":"AAIO,iDAC2D;AAC3D,uDAOL;AACK,mDACuD;AACvD,uEAEM;AACN,gEACgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/iab/gpp/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,OAAO,CAAC;AAE1B,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const apiName: "__gpp";
|
|
2
|
+
export const gppSection: "gpp";
|
|
3
|
+
export const iframeName: "__gppLocator";
|
|
4
|
+
export const version: "1.0";
|
|
5
|
+
export namespace initOptions {
|
|
6
|
+
export { gppSection };
|
|
7
|
+
export { version };
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/v1/constants.js"],"names":[],"mappings":"AAAA,8BAA+B;AAE/B,+BAAgC;AAChC,wCAAyC;AACzC,4BAA6B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function createMiddleware({ dispatchEvent }?: {
|
|
2
|
+
dispatchEvent: any;
|
|
3
|
+
}): (store: any) => (next: any) => (action: any) => any;
|
|
4
|
+
export default v1;
|
|
5
|
+
declare namespace v1 {
|
|
6
|
+
export let api: {
|
|
7
|
+
bind: (store: any, allApis: any) => (command: any, callback: any, parameter: any) => any;
|
|
8
|
+
dispatch: (data: any) => void;
|
|
9
|
+
};
|
|
10
|
+
export { apiName };
|
|
11
|
+
export { createMiddleware };
|
|
12
|
+
export { gppSection };
|
|
13
|
+
export { iframeName };
|
|
14
|
+
export let postMessageEventHandler: any;
|
|
15
|
+
}
|
|
16
|
+
import { apiName } from './constants';
|
|
17
|
+
import { gppSection } from './constants';
|
|
18
|
+
import { iframeName } from './constants';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/gpp/v1/index.js"],"names":[],"mappings":"AAYA;;wDAiDC;;;;;;;;;;;;;wBA7D4D,aAAa;2BAAb,aAAa;2BAAb,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/iab/usp/api.js"],"names":[],"mappings":"AAEA;oCAMa,MAAM,WACN,MAAM,YACN,eAAe;EA6C3B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function makeParseConsentString({ version: providedVersion }?: {
|
|
2
|
+
version?: number | undefined;
|
|
3
|
+
}): (uspString: any) => {
|
|
4
|
+
version: any;
|
|
5
|
+
notified: any;
|
|
6
|
+
signatory: any;
|
|
7
|
+
optOut: any;
|
|
8
|
+
};
|
|
9
|
+
export function makeGetField(initOptions?: {}): (state: any, field: any) => string | 1 | undefined;
|
|
10
|
+
export function makeFormatConsentString(initOptions?: {}): string;
|
|
11
|
+
export function makeConsentFromOptions(initOptions: any): import("./constants").USPConsent;
|
|
12
|
+
export function getConsentDataObject(initOptions: any): import("./constants").USPData;
|
|
13
|
+
//# sourceMappingURL=consent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent.d.ts","sourceRoot":"","sources":["../../../../../src/iab/usp/consent.js"],"names":[],"mappings":"AAKO;;;;;;;EAqBL;AAEK,mGAsBL;AAQK,2DAFM,MAAM,CA8BjB;AAQK,0DAFM,OAAO,aAAa,EAAE,UAAU,CA6B5C;AAQM,wDAFM,OAAO,aAAa,EAAE,OAAO,CAsBzC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export function toYesNoUnFromBool(b: any): "-" | "N" | "Y";
|
|
2
|
+
export function toBoolFromYesNoUn(yn: any): boolean | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* USPData object supplied to the __uspapi callback method
|
|
5
|
+
*/
|
|
6
|
+
export type USPData = {
|
|
7
|
+
/**
|
|
8
|
+
* - indicates the U.S. Privacy spec version
|
|
9
|
+
*/
|
|
10
|
+
version: number;
|
|
11
|
+
/**
|
|
12
|
+
* - Indicates the privacy application and agreement
|
|
13
|
+
* - String; agreement: “1YNN”, not applicable: “1---”
|
|
14
|
+
* - Number; 1 applies, 0 doesn’t apply, -1 not set
|
|
15
|
+
*/
|
|
16
|
+
uspString: (number | string);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* USPConsent object used for creating the USPData `uspString`
|
|
20
|
+
*/
|
|
21
|
+
export type USPConsent = {
|
|
22
|
+
/**
|
|
23
|
+
* - indicates the U.S. Privacy spec version
|
|
24
|
+
*/
|
|
25
|
+
version: number;
|
|
26
|
+
/**
|
|
27
|
+
* - Indicates that the end user has been notified of consent agreement
|
|
28
|
+
*/
|
|
29
|
+
notified: (boolean | undefined);
|
|
30
|
+
/**
|
|
31
|
+
* - Indicates that the end user has opted out of data resale
|
|
32
|
+
*/
|
|
33
|
+
optOut: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* - Indicates that the provider has opted into the LSPA from IAB
|
|
36
|
+
*/
|
|
37
|
+
signatory: (boolean | undefined);
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* USPAPIPostMessageData object
|
|
41
|
+
*/
|
|
42
|
+
export type USPAPIPostMessageData = {
|
|
43
|
+
/**
|
|
44
|
+
* - The command to be executed by the API
|
|
45
|
+
*/
|
|
46
|
+
command: string;
|
|
47
|
+
/**
|
|
48
|
+
* - Optional parameter to be passed to the `command`
|
|
49
|
+
*/
|
|
50
|
+
parameter: string;
|
|
51
|
+
/**
|
|
52
|
+
* - The version number that the response should adhere to
|
|
53
|
+
*/
|
|
54
|
+
version: number;
|
|
55
|
+
/**
|
|
56
|
+
* - The callback method that should be called with the command result
|
|
57
|
+
*/
|
|
58
|
+
callId: string;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* USPAPIPostMessageEvent object supplied to the __uspapiLocator iframe postMessage handler
|
|
62
|
+
*/
|
|
63
|
+
export type USPAPIPostMessageEvent = {
|
|
64
|
+
/**
|
|
65
|
+
* - The post message data as object or JSON string
|
|
66
|
+
*/
|
|
67
|
+
data: (string | USPAPIPostMessageData);
|
|
68
|
+
/**
|
|
69
|
+
* - Indicates the origin of the window making the post
|
|
70
|
+
*/
|
|
71
|
+
origin: string;
|
|
72
|
+
/**
|
|
73
|
+
* - The window which posted the message
|
|
74
|
+
*/
|
|
75
|
+
source: Window;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/iab/usp/constants.js"],"names":[],"mappings":"AAmCO,2DAAsE;AACtE,gEAGkC;;;;;;;;aApC3B,MAAM;;;;;;eACN,CAAC,MAAM,GAAC,MAAM,CAAC;;;;;;;;;aAQf,MAAM;;;;cACN,CAAC,UAAQ,SAAS,CAAC;;;;;;;;eAEnB,CAAC,UAAQ,SAAS,CAAC;;;;;;;;;aAMnB,MAAM;;;;eACN,MAAM;;;;aACN,MAAM;;;;YACN,MAAM;;;;;;;;;UAMN,CAAC,MAAM,GAAC,qBAAqB,CAAC;;;;YAC9B,MAAM;;;;YACN,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/iab/usp/index.js"],"names":[],"mappings":";;;;;;;oBAAoB,WAAW;iBACd,MAAM"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export namespace initialState {
|
|
2
|
+
namespace iab {
|
|
3
|
+
namespace usp {
|
|
4
|
+
let ccpaApplies: boolean;
|
|
5
|
+
let notified: undefined;
|
|
6
|
+
let signatory: undefined;
|
|
7
|
+
let optOut: boolean;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare const _default: any;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/iab/usp/reducer.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const DOMAIN: "iab.usp";
|
|
2
|
+
export function getStore(state: any): any;
|
|
3
|
+
export function doesCCPAApply(state: any): boolean;
|
|
4
|
+
export function getConsentString(state: any, { gppSection, version: providedVersion }?: {
|
|
5
|
+
gppSection: any;
|
|
6
|
+
version: any;
|
|
7
|
+
}): string;
|
|
8
|
+
export function getOptOut(state: any): any;
|
|
9
|
+
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../src/iab/usp/selectors.js"],"names":[],"mappings":"AAIA,+BAAgC;AAEzB,0CAAgD;AAChD,mDACsD;AAEtD;;;WAmBN;AACM,2CAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/iab/usp/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const apiName: "__uspapi";
|
|
2
|
+
export const gppSection: "uspv1";
|
|
3
|
+
export const iframeName: "__uspapiLocator";
|
|
4
|
+
export const version: 1;
|
|
5
|
+
export namespace initOptions {
|
|
6
|
+
export { gppSection };
|
|
7
|
+
export { version };
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/usp/v1/constants.js"],"names":[],"mappings":"AAAA,iCAAkC;AAElC,iCAAkC;AAClC,2CAA4C;AAC5C,wBAAyB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default v1;
|
|
2
|
+
declare namespace v1 {
|
|
3
|
+
export let api: {
|
|
4
|
+
bind: (store: any) => (command: string, version: number, callback: requestCallback, parameter?: string | undefined) => any;
|
|
5
|
+
};
|
|
6
|
+
export { apiName };
|
|
7
|
+
export { createMiddleware };
|
|
8
|
+
export { gppSection };
|
|
9
|
+
export { iframeName };
|
|
10
|
+
export let postMessageEventHandler: any;
|
|
11
|
+
}
|
|
12
|
+
import { apiName } from './constants';
|
|
13
|
+
declare function createMiddleware(): (store: any) => (next: any) => (action: any) => any;
|
|
14
|
+
import { gppSection } from './constants';
|
|
15
|
+
import { iframeName } from './constants';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iab/usp/v1/index.js"],"names":[],"mappings":";;;2EAOQ,eAAe;;;;;;;;wBANsC,aAAa;AAY1E,yFA6BC;2BAzC4D,aAAa;2BAAb,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../../src/views/Dialog/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../../src/views/Dialog/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,eAAO,MAAM,OAAO,yBA2DnB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/Dialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,EAWL,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAiB1C,eAAO,MAAM,MAAM,QAAO,YAAY,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/Dialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,EAWL,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAiB1C,eAAO,MAAM,MAAM,QAAO,YAAY,CAAC,KAAK,CAsS3C,CAAC;AAyGF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/Drawer/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAMN,MAAM,OAAO,CAAC;AAgBf,KAAK,WAAW,GAAG,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAKnD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/Drawer/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAMN,MAAM,OAAO,CAAC;AAgBf,KAAK,WAAW,GAAG,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAKnD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoOxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osano/osano-cmp-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Package and example for the react-native Osano CMP SDK",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -24,14 +24,10 @@
|
|
|
24
24
|
"!**/__fixtures__",
|
|
25
25
|
"!**/__mocks__",
|
|
26
26
|
"!**/.*",
|
|
27
|
-
"!src/iab/usp",
|
|
28
|
-
"!src/iab/gpp",
|
|
29
27
|
"!lib/typescript/webdriverio-appium/**",
|
|
30
28
|
"!lib/typescript/webdriverio-appium/common/**",
|
|
31
29
|
"!lib/typescript/webdriverio-appium/config/**",
|
|
32
|
-
"!lib/typescript/webdriverio-appium/test/**"
|
|
33
|
-
"!lib/typescript/src/iab/usp",
|
|
34
|
-
"!lib/typescript/src/iab/gpp"
|
|
30
|
+
"!lib/typescript/webdriverio-appium/test/**"
|
|
35
31
|
],
|
|
36
32
|
"scripts": {
|
|
37
33
|
"example": "yarn workspace osano-cmp-sdk-example",
|
|
@@ -71,7 +71,7 @@ export const Button: React.FC<ButtonProps> = (props) => {
|
|
|
71
71
|
|
|
72
72
|
export const DenyButton = (props: ButtonProps) => {
|
|
73
73
|
const { cmp, dispatch } = useContext(OsanoPrivateContext);
|
|
74
|
-
const { onPress, title } = props;
|
|
74
|
+
const { onPress, title , testID} = props;
|
|
75
75
|
|
|
76
76
|
const handleReject = useCallback(() => {
|
|
77
77
|
dispatch(setAllVendorConsent(false));
|
|
@@ -84,9 +84,9 @@ export const DenyButton = (props: ButtonProps) => {
|
|
|
84
84
|
|
|
85
85
|
return Button({
|
|
86
86
|
...props,
|
|
87
|
-
title: title ||
|
|
87
|
+
title: title || `buttons.deny`,
|
|
88
88
|
onPress: onPress || handleReject,
|
|
89
|
-
testID: '
|
|
89
|
+
testID: testID || 'Deny'
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
92
|
|
|
@@ -94,7 +94,8 @@ export const AcceptButton = (props: ButtonProps) => {
|
|
|
94
94
|
const { cmp, dispatch } = useContext(OsanoPrivateContext);
|
|
95
95
|
const { onPress, title } = props;
|
|
96
96
|
|
|
97
|
-
const
|
|
97
|
+
const handleAcceptConsent = useCallback(() => {
|
|
98
|
+
dispatch(acceptAll());
|
|
98
99
|
cmp && dispatch(saveConsent(cmp));
|
|
99
100
|
dispatch(close(cmp));
|
|
100
101
|
}, []);
|
|
@@ -102,8 +103,8 @@ export const AcceptButton = (props: ButtonProps) => {
|
|
|
102
103
|
return Button({
|
|
103
104
|
...props,
|
|
104
105
|
title: title || 'buttons.accept',
|
|
105
|
-
onPress: onPress ||
|
|
106
|
-
testID: '
|
|
106
|
+
onPress: onPress || handleAcceptConsent,
|
|
107
|
+
testID: 'Accept'
|
|
107
108
|
});
|
|
108
109
|
};
|
|
109
110
|
|
|
@@ -168,7 +169,7 @@ export const ManagePreferencesButton = (props: ButtonProps) => {
|
|
|
168
169
|
onPress: onPress || handleShowDrawer,
|
|
169
170
|
title: `buttons.dialog.openDrawer.${config?.jurisdiction}`,
|
|
170
171
|
defaultPhrase: 'buttons.managePreferences',
|
|
171
|
-
testID:
|
|
172
|
+
testID: `Manage Preferences`
|
|
172
173
|
});
|
|
173
174
|
};
|
|
174
175
|
|
|
@@ -178,15 +179,24 @@ export const RejectAllButton = (props: ButtonProps) => {
|
|
|
178
179
|
...props,
|
|
179
180
|
title: `buttons.dialog.denyAll.${config?.jurisdiction}`,
|
|
180
181
|
defaultPhrase: 'buttons.denyAll',
|
|
181
|
-
testID:
|
|
182
|
+
testID: `Reject All`
|
|
182
183
|
});
|
|
183
184
|
};
|
|
184
185
|
|
|
185
186
|
export const SaveButton = (props: ButtonProps) => {
|
|
186
|
-
|
|
187
|
+
const { cmp, dispatch } = useContext(OsanoPrivateContext);
|
|
188
|
+
const { onPress, title } = props;
|
|
189
|
+
|
|
190
|
+
const handleSave = useCallback(() => {
|
|
191
|
+
cmp && dispatch(saveConsent(cmp));
|
|
192
|
+
dispatch(close(cmp));
|
|
193
|
+
}, []);
|
|
194
|
+
|
|
195
|
+
return Button({
|
|
187
196
|
...props,
|
|
188
|
-
title: `buttons.save`,
|
|
189
|
-
|
|
197
|
+
title: title || `buttons.save`,
|
|
198
|
+
onPress: onPress || handleSave,
|
|
199
|
+
testID: `Save`
|
|
190
200
|
});
|
|
191
201
|
};
|
|
192
202
|
|
|
@@ -206,6 +216,6 @@ export const AcceptAllButton = (props: ButtonProps) => {
|
|
|
206
216
|
...remain,
|
|
207
217
|
onPress: onPress || handleAcceptAllConsent,
|
|
208
218
|
title: `buttons.acceptAll`,
|
|
209
|
-
testID:
|
|
219
|
+
testID: `Accept All`
|
|
210
220
|
});
|
|
211
221
|
};
|