@osano/osano-cmp-react-native 0.7.0 → 0.9.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/ConsentManager.js +4 -1
- package/lib/commonjs/ConsentManager.js.map +1 -1
- package/lib/commonjs/index.js +3 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/services/consent.js +105 -28
- package/lib/commonjs/services/consent.js.map +1 -1
- package/lib/commonjs/utils/API.js +4 -3
- package/lib/commonjs/utils/API.js.map +1 -1
- package/lib/module/ConsentManager.js +4 -1
- package/lib/module/ConsentManager.js.map +1 -1
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/consent.js +104 -28
- package/lib/module/services/consent.js.map +1 -1
- package/lib/module/utils/API.js +4 -3
- package/lib/module/utils/API.js.map +1 -1
- package/lib/typescript/lib/commonjs/ConsentManager.d.ts +1 -1
- package/lib/typescript/lib/commonjs/ConsentManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/services/consent.d.ts +1 -0
- package/lib/typescript/lib/commonjs/services/consent.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/utils/API.d.ts +1 -1
- package/lib/typescript/lib/commonjs/utils/API.d.ts.map +1 -1
- package/lib/typescript/lib/module/ConsentManager.d.ts +1 -1
- package/lib/typescript/lib/module/ConsentManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/services/consent.d.ts +1 -0
- package/lib/typescript/lib/module/services/consent.d.ts.map +1 -1
- package/lib/typescript/lib/module/utils/API.d.ts +1 -1
- package/lib/typescript/lib/module/utils/API.d.ts.map +1 -1
- package/lib/typescript/src/ConsentManager.d.ts +1 -1
- package/lib/typescript/src/ConsentManager.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/services/consent.d.ts +19 -4
- package/lib/typescript/src/services/consent.d.ts.map +1 -1
- package/lib/typescript/src/utils/API.d.ts +1 -1
- package/lib/typescript/src/utils/API.d.ts.map +1 -1
- package/package.json +17 -9
- package/src/ConsentManager.ts +4 -1
- package/src/index.tsx +2 -1
- package/src/services/consent.ts +162 -40
- package/src/types/index.d.ts +1 -0
- package/src/utils/API.ts +3 -1
- package/lib/typescript/src/iab/gpp/api.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/api.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/consent.d.ts +0 -24
- package/lib/typescript/src/iab/gpp/consent.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/constants.d.ts +0 -37
- package/lib/typescript/src/iab/gpp/constants.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/AbstractBase64UrlEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/BooleanEncoder.d.ts +0 -34
- package/lib/typescript/src/iab/gpp/encoders/BooleanEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/CompressedBase64UrlEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/DatetimeEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/DatetimeEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts +0 -16
- package/lib/typescript/src/iab/gpp/encoders/EncodableOptimizedFixedRange.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/FibonacciIntegerEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/FibonacciIntegerRangeEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/FixedBitfieldEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/FixedBitfieldEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts +0 -6
- package/lib/typescript/src/iab/gpp/encoders/FixedIdBitMapEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerListEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerListEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/FixedIntegerRangeEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/FixedStringEncoder.d.ts +0 -26
- package/lib/typescript/src/iab/gpp/encoders/FixedStringEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts +0 -28
- package/lib/typescript/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/errors.d.ts +0 -19
- package/lib/typescript/src/iab/gpp/encoders/errors.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/index.d.ts +0 -16
- package/lib/typescript/src/iab/gpp/encoders/index.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/encoders/types.d.ts +0 -5
- package/lib/typescript/src/iab/gpp/encoders/types.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/index.d.ts +0 -10
- package/lib/typescript/src/iab/gpp/index.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/reducer.d.ts +0 -6
- package/lib/typescript/src/iab/gpp/reducer.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/selectors.d.ts +0 -6
- package/lib/typescript/src/iab/gpp/selectors.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/types.d.ts +0 -3
- package/lib/typescript/src/iab/gpp/types.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/v1/constants.d.ts +0 -9
- package/lib/typescript/src/iab/gpp/v1/constants.d.ts.map +0 -1
- package/lib/typescript/src/iab/gpp/v1/index.d.ts +0 -19
- package/lib/typescript/src/iab/gpp/v1/index.d.ts.map +0 -1
- package/lib/typescript/src/iab/usp/api.d.ts +0 -4
- package/lib/typescript/src/iab/usp/api.d.ts.map +0 -1
- package/lib/typescript/src/iab/usp/consent.d.ts +0 -13
- package/lib/typescript/src/iab/usp/consent.d.ts.map +0 -1
- package/lib/typescript/src/iab/usp/constants.d.ts +0 -77
- package/lib/typescript/src/iab/usp/constants.d.ts.map +0 -1
- package/lib/typescript/src/iab/usp/index.d.ts +0 -10
- package/lib/typescript/src/iab/usp/index.d.ts.map +0 -1
- package/lib/typescript/src/iab/usp/reducer.d.ts +0 -13
- package/lib/typescript/src/iab/usp/reducer.d.ts.map +0 -1
- package/lib/typescript/src/iab/usp/selectors.d.ts +0 -9
- package/lib/typescript/src/iab/usp/selectors.d.ts.map +0 -1
- package/lib/typescript/src/iab/usp/types.d.ts +0 -5
- package/lib/typescript/src/iab/usp/types.d.ts.map +0 -1
- package/lib/typescript/src/iab/usp/v1/constants.d.ts +0 -9
- package/lib/typescript/src/iab/usp/v1/constants.d.ts.map +0 -1
- package/lib/typescript/src/iab/usp/v1/index.d.ts +0 -16
- package/lib/typescript/src/iab/usp/v1/index.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/common/commands.d.ts +0 -23
- package/lib/typescript/webdriverio-appium/common/commands.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/config/android-wdio.conf.d.cts +0 -27
- package/lib/typescript/webdriverio-appium/config/android-wdio.conf.d.cts.map +0 -1
- package/lib/typescript/webdriverio-appium/config/ios-wdio.conf.d.cts +0 -27
- package/lib/typescript/webdriverio-appium/config/ios-wdio.conf.d.cts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/one/one-acceptall.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/one/one-acceptall.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/one/one-managePreferences.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/one/one-managePreferences.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/six/six-acceptall-iabOn.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/six/six-acceptall-iabOn.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/six/six-rejectall-iabOn.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/six/six-rejectall-iabOn.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/six/six-save-FLC.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/six/six-save-FLC.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/three/three-acceptall.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/three/three-acceptall.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/three/three-denyall.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/three/three-denyall.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/three/three-manageP.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/three/three-manageP.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/two/two-FLC.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/two/two-FLC.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/two/two-acceptall.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/two/two-acceptall.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/two/two-managePreferences.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/two/two-managePreferences.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/two/two-rejectall.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/two/two-rejectall.d.ts.map +0 -1
- package/lib/typescript/webdriverio-appium/test/ios/two/two-save.d.ts +0 -2
- package/lib/typescript/webdriverio-appium/test/ios/two/two-save.d.ts.map +0 -1
- package/src/iab/gpp/api.js +0 -253
- package/src/iab/gpp/consent.js +0 -114
- package/src/iab/gpp/constants.js +0 -49
- package/src/iab/gpp/encoders/AbstractBase64UrlEncoder.ts +0 -89
- package/src/iab/gpp/encoders/BooleanEncoder.ts +0 -39
- package/src/iab/gpp/encoders/CompressedBase64UrlEncoder.ts +0 -41
- package/src/iab/gpp/encoders/DatetimeEncoder.ts +0 -46
- package/src/iab/gpp/encoders/EncodableOptimizedFixedRange.ts +0 -213
- package/src/iab/gpp/encoders/FibonacciIntegerEncoder.ts +0 -81
- package/src/iab/gpp/encoders/FibonacciIntegerRangeEncoder.ts +0 -122
- package/src/iab/gpp/encoders/FixedBitfieldEncoder.ts +0 -59
- package/src/iab/gpp/encoders/FixedIdBitMapEncoder.ts +0 -30
- package/src/iab/gpp/encoders/FixedIntegerEncoder.ts +0 -61
- package/src/iab/gpp/encoders/FixedIntegerListEncoder.ts +0 -87
- package/src/iab/gpp/encoders/FixedIntegerRangeEncoder.ts +0 -102
- package/src/iab/gpp/encoders/FixedStringEncoder.ts +0 -74
- package/src/iab/gpp/encoders/LICENSE-IABTechLab +0 -176
- package/src/iab/gpp/encoders/TraditionalBase64UrlEncoder.ts +0 -38
- package/src/iab/gpp/encoders/errors.ts +0 -41
- package/src/iab/gpp/encoders/index.ts +0 -15
- package/src/iab/gpp/encoders/types.ts +0 -5
- package/src/iab/gpp/index.js +0 -9
- package/src/iab/gpp/reducer.js +0 -7
- package/src/iab/gpp/selectors.js +0 -21
- package/src/iab/gpp/types.ts +0 -3
- package/src/iab/gpp/v1/constants.js +0 -7
- package/src/iab/gpp/v1/index.js +0 -73
- package/src/iab/usp/api.js +0 -56
- package/src/iab/usp/consent.js +0 -150
- package/src/iab/usp/constants.js +0 -40
- package/src/iab/usp/index.js +0 -9
- package/src/iab/usp/reducer.js +0 -107
- package/src/iab/usp/selectors.js +0 -31
- package/src/iab/usp/types.ts +0 -4
- package/src/iab/usp/v1/constants.js +0 -10
- package/src/iab/usp/v1/index.js +0 -54
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,23 +0,0 @@
|
|
|
1
|
-
export const acceptAllConsent: "ESSENTIAL, MARKETING, PERSONALIZATION, ANALYTICS";
|
|
2
|
-
export const rejectAllConsent: "ESSENTIAL, OPT_OUT";
|
|
3
|
-
export const oneBannerText: "This website utilizes technologies such as cookies to enable essential site functionality, as well as for analytics, personalization, and targeted advertising. To learn more, view the following link:";
|
|
4
|
-
export const twoBannerText: "This website utilizes technologies such as cookies to enable essential site functionality, as well as for analytics, personalization, and targeted advertising. You may change your settings at any time or accept the default settings. You may close this banner to continue with only essential cookies.";
|
|
5
|
-
export const threeBannerText: "This website utilizes technologies such as cookies to enable essential site functionality, as well as for analytics, personalization, and targeted advertising.";
|
|
6
|
-
export const sixIabBannerText1: "We and our 7 IAB TCF partners store and access information on your device for the following purposes: advertising and content measurement, audience research, and services development, personalised advertising, personalised content. \n\n\nPersonal data may be processed to do the following: use precise geolocation data and actively scan device characteristics for identification. \n\n\nOur third party IAB TCF partners may store and access information on your device such as IP address and device characteristics. Our IAB TCF Partners may process this personal data on the basis of legitimate interest, or with your consent. You may change or withdraw your preferences at any time by clicking on the cookie icon or link; however, as a consequence, you may not see relevant ads or personalized content.";
|
|
7
|
-
export const sixIabBannerText2: "• Measure the audience of the advertising on our website, without profiling • Display personalized ads based on your navigation and your profile • Personalize our editorial content based on your navigation • Allow you to share content on social networks or platforms present on our website • Send you advertising based on your location";
|
|
8
|
-
export const essential: "~Essential, Required to enable basic website functionality. You may not disable essential cookies.";
|
|
9
|
-
export const marketing: "~Targeted Advertising, Used to deliver advertising that is more relevant to you and your interests. May also be used to limit the number of times you see an advertisement and measure the effectiveness of advertising campaigns. Advertising networks usually place them with the website operator’s permission.";
|
|
10
|
-
export const personalization: "~Personalization, Allow the website to remember choices you make (such as your username, language, or the region you are in) and provide enhanced, more personal features. For example, a website may provide you with local weather reports or traffic news by storing data about your general location.";
|
|
11
|
-
export const analytics: "~Analytics, Help the website operator understand how its website performs, how visitors interact with the site, and whether there may be technical issues.";
|
|
12
|
-
export const dnss: "~Do Not Sell or Share My Personal Information, By switching the toggle to the right and clicking save, you are indicating that you do not want us to sell your personal information or share your personal information for online targeted advertising activities. Please note if you use different computers or browsers, you must indicate your choices again on each computer or browser used to access our services.";
|
|
13
|
-
export const storageIab: "~Storage, Allows the website to store data locally on your device. For example, this site may store data that will remember your previous selections, search filters, or other information that would provide a seamless user experience as you navigate throughout the website., Legal basis is consent.";
|
|
14
|
-
export const marketingIab: "~Targeted Advertising, Used to deliver advertising that is more relevant to you and your interests. May also be used to limit the number of times you see an advertisement and measure the effectiveness of advertising campaigns. Advertising networks usually place them with the website operator’s permission., Legal basis is consent.";
|
|
15
|
-
export const personalizationIab: "~Personalization, Allow the website to remember choices you make (such as your username, language, or the region you are in) and provide enhanced, more personal features. For example, a website may provide you with local weather reports or traffic news by storing data about your general location., Legal basis is consent.";
|
|
16
|
-
export const analyticsIab: "~Analytics, Help the website operator understand how its website performs, how visitors interact with the site, and whether there may be technical issues., Legal basis is consent.";
|
|
17
|
-
export const acceptAllConsentIab: "ESSENTIAL, STORAGE, MARKETING, PERSONALIZATION, ANALYTICS";
|
|
18
|
-
export function updateConfig(settings: any): Promise<void>;
|
|
19
|
-
export function updateFlavor(flavor: any): Promise<void>;
|
|
20
|
-
export function consentProvided(didUserConsent: any, consentExpected: any): Promise<void>;
|
|
21
|
-
export function consent(consent: any, bannerText: any, bannerText2: any): Promise<void>;
|
|
22
|
-
export function firstLayerCategories(flavor: any): Promise<void>;
|
|
23
|
-
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../webdriverio-appium/common/commands.js"],"names":[],"mappings":"AAAA,kFAA4E;AAE5E,oDAA8C;AAC9C,sOAAgO;AAChO,0UAAoU;AACpU,gMAA0L;AAC1L,o0BAA6zB;AAC7zB,kXAA4W;AAC5W,6HAAuH;AACvH,8UAAwU;AACxU,0UAAoU;AACpU,qLAA+K;AAC/K,8aAAwa;AACxa,qUAA8T;AAC9T,0WAA6D;AAC7D,sWAAyE;AACzE,iNAA6D;AAf7D,8FAAwF;AAiBxF,2DAQC;AAED,yDAEC;AAED,0FAQC;AAED,wFAOC;AAED,iEAuBC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export namespace config {
|
|
2
|
-
let runner: string;
|
|
3
|
-
let port: number;
|
|
4
|
-
let specs: string[];
|
|
5
|
-
let exclude: never[];
|
|
6
|
-
let maxInstances: number;
|
|
7
|
-
let capabilities: {
|
|
8
|
-
platformName: string;
|
|
9
|
-
"appium:platformVersion": string;
|
|
10
|
-
"appium:deviceName": string;
|
|
11
|
-
"appium:app": string;
|
|
12
|
-
"appium:automationName": string;
|
|
13
|
-
}[];
|
|
14
|
-
let logLevel: string;
|
|
15
|
-
let bail: number;
|
|
16
|
-
let waitforTimeout: number;
|
|
17
|
-
let connectionRetryTimeout: number;
|
|
18
|
-
let connectionRetryCount: number;
|
|
19
|
-
let services: string[];
|
|
20
|
-
let framework: string;
|
|
21
|
-
let reporters: string[];
|
|
22
|
-
namespace mochaOpts {
|
|
23
|
-
let ui: string;
|
|
24
|
-
let timeout: number;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=android-wdio.conf.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"android-wdio.conf.d.cts","sourceRoot":"","sources":["../../../../webdriverio-appium/config/android-wdio.conf.cjs"],"names":[],"mappings":""}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export namespace config {
|
|
2
|
-
let runner: string;
|
|
3
|
-
let port: number;
|
|
4
|
-
let specs: string[];
|
|
5
|
-
let exclude: never[];
|
|
6
|
-
let maxInstances: number;
|
|
7
|
-
let capabilities: {
|
|
8
|
-
platformName: string;
|
|
9
|
-
"appium:platformVersion": string;
|
|
10
|
-
"appium:deviceName": string;
|
|
11
|
-
"appium:app": string;
|
|
12
|
-
"appium:automationName": string;
|
|
13
|
-
}[];
|
|
14
|
-
let logLevel: string;
|
|
15
|
-
let bail: number;
|
|
16
|
-
let waitforTimeout: number;
|
|
17
|
-
let connectionRetryTimeout: number;
|
|
18
|
-
let connectionRetryCount: number;
|
|
19
|
-
let services: string[];
|
|
20
|
-
let framework: string;
|
|
21
|
-
let reporters: string[];
|
|
22
|
-
namespace mochaOpts {
|
|
23
|
-
let ui: string;
|
|
24
|
-
let timeout: number;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=ios-wdio.conf.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ios-wdio.conf.d.cts","sourceRoot":"","sources":["../../../../webdriverio-appium/config/ios-wdio.conf.cjs"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"one-acceptall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/one/one-acceptall.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"one-managePreferences.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/one/one-managePreferences.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"six-acceptall-iabOn.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/six/six-acceptall-iabOn.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"six-rejectall-iabOn.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/six/six-rejectall-iabOn.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"six-save-FLC.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/six/six-save-FLC.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"three-acceptall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/three/three-acceptall.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"three-denyall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/three/three-denyall.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"three-manageP.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/three/three-manageP.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"two-FLC.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-FLC.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"two-acceptall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-acceptall.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"two-managePreferences.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-managePreferences.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"two-rejectall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-rejectall.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"two-save.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-save.js"],"names":[],"mappings":""}
|
package/src/iab/gpp/api.js
DELETED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
formatConsentString,
|
|
3
|
-
makeFormatPingData,
|
|
4
|
-
makeParseConsentString,
|
|
5
|
-
} from './consent';
|
|
6
|
-
|
|
7
|
-
import { EventNames } from './constants';
|
|
8
|
-
import { MAX_DATE } from '../../constants';
|
|
9
|
-
import { getSupportedApis } from './selectors';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* An object that contains the client callback and metadata.
|
|
13
|
-
* @typedef {Object} EventSubscriber
|
|
14
|
-
* @property {number} version - The version of the API that the subscriber is
|
|
15
|
-
* listening to.
|
|
16
|
-
* @property {function} callback - The callback function that the subscriber
|
|
17
|
-
* provided. The signature should match the API version.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* The listener ID is a number that is used to identify a subscriber. It is both
|
|
22
|
-
* a key in the eventSubscribers map and a property that is given back to the
|
|
23
|
-
* subscriber. It must not change for the lifetime of the subscriber.
|
|
24
|
-
* @typedef {number} ListenerId
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* A map of listener IDs to event subscribers.
|
|
29
|
-
* @type {Map<ListenerId, EventSubscriber>}
|
|
30
|
-
*/
|
|
31
|
-
const eventSubscribers = new Map();
|
|
32
|
-
|
|
33
|
-
// Allows us to clear the event subscribers in tests
|
|
34
|
-
export const _clearEventSubscribers =
|
|
35
|
-
process.env.NODE_ENV === 'jest' ? () => eventSubscribers.clear() : undefined;
|
|
36
|
-
|
|
37
|
-
const createListenerId = () => {
|
|
38
|
-
let inc = 0;
|
|
39
|
-
let listenerId = MAX_DATE - Date.now();
|
|
40
|
-
do {
|
|
41
|
-
listenerId -= inc++;
|
|
42
|
-
} while (eventSubscribers.has(listenerId));
|
|
43
|
-
|
|
44
|
-
return listenerId;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Responsible for dispatching events to the subscribers.
|
|
49
|
-
* @param {number} apiVersion - The version of the API as defined by the IAB.
|
|
50
|
-
* @param {object} data - The data to dispatch to the subscribers.
|
|
51
|
-
*/
|
|
52
|
-
const makeDispatch = apiVersion =>
|
|
53
|
-
function dispatch(data) {
|
|
54
|
-
eventSubscribers.forEach(({ version, callback }, listenerId) => {
|
|
55
|
-
apiVersion === version &&
|
|
56
|
-
callback({
|
|
57
|
-
...data,
|
|
58
|
-
listenerId,
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* The GPP has its own API but it can also call the older APIs. This function
|
|
65
|
-
* adapts the newer GPP call signature to the older APIs.
|
|
66
|
-
*/
|
|
67
|
-
const adaptedApis = new Map();
|
|
68
|
-
|
|
69
|
-
// Allows us to clear the event subscribers in tests
|
|
70
|
-
export const _clearAdaptedApis =
|
|
71
|
-
process.env.NODE_ENV === 'jest' ? () => adaptedApis.clear() : undefined;
|
|
72
|
-
|
|
73
|
-
const getAdaptedApi = (clientApi, api) => {
|
|
74
|
-
// cache the adapted API so that we aren't creating a new function on every call
|
|
75
|
-
const adaptedApi = adaptedApis.get(clientApi);
|
|
76
|
-
if (adaptedApi) {
|
|
77
|
-
return adaptedApi;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// If the API is not available, throw an error. If the requested API is the
|
|
81
|
-
// GPP, throw an error (the GPP should never call itself as a sub-API).
|
|
82
|
-
if (!api || clientApi === 'gpp') {
|
|
83
|
-
throw new Error(`API ${clientApi} is not available`);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
switch (clientApi) {
|
|
87
|
-
// pre-GPP APIs use the signature (command, version, callback, parameter)
|
|
88
|
-
case 'tcfeuv2':
|
|
89
|
-
adaptedApis.set(clientApi, (command, callback, parameter) =>
|
|
90
|
-
api(command, 2, callback, parameter),
|
|
91
|
-
);
|
|
92
|
-
break;
|
|
93
|
-
case 'uspv1':
|
|
94
|
-
adaptedApis.set(clientApi, (command, callback, parameter) =>
|
|
95
|
-
api(command, 1, callback, parameter),
|
|
96
|
-
);
|
|
97
|
-
break;
|
|
98
|
-
default:
|
|
99
|
-
adaptedApis.set(clientApi, api);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return adaptedApis.get(clientApi);
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export default function makeApi(initOptions) {
|
|
106
|
-
const formatPingData = makeFormatPingData(initOptions);
|
|
107
|
-
const parseConsentString = makeParseConsentString(initOptions);
|
|
108
|
-
const makeEventSubscriber = callback => ({
|
|
109
|
-
version: initOptions.version,
|
|
110
|
-
callback,
|
|
111
|
-
});
|
|
112
|
-
const eventListenerReturn = (state, eventName, listenerId, data) => ({
|
|
113
|
-
eventName,
|
|
114
|
-
listenerId,
|
|
115
|
-
data,
|
|
116
|
-
pingData: formatPingData(state),
|
|
117
|
-
});
|
|
118
|
-
const dispatch = makeDispatch(initOptions.version);
|
|
119
|
-
|
|
120
|
-
function bind(store, allApis) {
|
|
121
|
-
const subApiSubscribers = new Map();
|
|
122
|
-
// The GPP spec says that events dispatched from section APIs should be
|
|
123
|
-
// dispatched from the GPP API. To do that, we'll subscribe to the
|
|
124
|
-
// events from the other APIs and re-dispatch them from here.
|
|
125
|
-
const initDispatchAggregator = () => {
|
|
126
|
-
if (subApiSubscribers.size > 0) {
|
|
127
|
-
// We have already initialized the dispatch aggregator
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
const supportedApis = getSupportedApis(store.getState());
|
|
132
|
-
allApis.forEach((api, section) => {
|
|
133
|
-
if (!supportedApis.includes(section)) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const subscriber = data => {
|
|
138
|
-
// remove our own listener ID from the data object
|
|
139
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
140
|
-
const { listenerId, ...rest } = data;
|
|
141
|
-
|
|
142
|
-
dispatch({
|
|
143
|
-
// Other APIs don't currently have event names but if
|
|
144
|
-
// they are added this field should be dot-separated,
|
|
145
|
-
// e.g. `${section}.${data.eventName}`
|
|
146
|
-
eventName: section,
|
|
147
|
-
data: rest,
|
|
148
|
-
pingData: formatPingData(store.getState()),
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
subApiSubscribers.set(section, subscriber);
|
|
152
|
-
getAdaptedApi(section, api)('addEventListener', subscriber);
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
return function gppApi(command, callback, parameter) {
|
|
157
|
-
const state = store.getState();
|
|
158
|
-
|
|
159
|
-
switch (command) {
|
|
160
|
-
case 'ping': {
|
|
161
|
-
return formatPingData(state);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
case 'addEventListener': {
|
|
165
|
-
// We wait to initialize the dispatch aggregator until there
|
|
166
|
-
// is at least one client event listener. Saves a little
|
|
167
|
-
// performance and ensures that all APIs are available.
|
|
168
|
-
initDispatchAggregator();
|
|
169
|
-
const listenerId = createListenerId();
|
|
170
|
-
|
|
171
|
-
try {
|
|
172
|
-
if (typeof callback !== 'function') {
|
|
173
|
-
throw new Error('Callback must be a function');
|
|
174
|
-
}
|
|
175
|
-
eventSubscribers.set(listenerId, makeEventSubscriber(callback));
|
|
176
|
-
const returnObject = eventListenerReturn(
|
|
177
|
-
state,
|
|
178
|
-
EventNames.LISTENER_REGISTERED,
|
|
179
|
-
listenerId,
|
|
180
|
-
true,
|
|
181
|
-
);
|
|
182
|
-
|
|
183
|
-
return returnObject;
|
|
184
|
-
} catch {
|
|
185
|
-
eventSubscribers.delete(listenerId);
|
|
186
|
-
return eventListenerReturn(
|
|
187
|
-
state,
|
|
188
|
-
EventNames.LISTENER_REGISTERED,
|
|
189
|
-
0,
|
|
190
|
-
false,
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
case 'removeEventListener': {
|
|
196
|
-
const listenerId = parseInt(parameter, 10);
|
|
197
|
-
const removed = eventSubscribers.delete(listenerId);
|
|
198
|
-
return eventListenerReturn(
|
|
199
|
-
state,
|
|
200
|
-
EventNames.LISTENER_REMOVED,
|
|
201
|
-
listenerId,
|
|
202
|
-
removed,
|
|
203
|
-
);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
case 'hasSection': {
|
|
207
|
-
const section = parameter;
|
|
208
|
-
return getSupportedApis(state).includes(`${section}`);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/** Note that this command throws if the requested section
|
|
212
|
-
* doesn't exist. The spec does not define what should happen in
|
|
213
|
-
* this case. Returning nothing could be misleading so an error
|
|
214
|
-
* is clearer. */
|
|
215
|
-
case 'getSection': {
|
|
216
|
-
const clientApi = parameter;
|
|
217
|
-
const sectionApi = getAdaptedApi(clientApi, allApis.get(clientApi));
|
|
218
|
-
return sectionApi('getSection');
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/** Note that as above, this command throws if the requested
|
|
222
|
-
* section does not exist and returns undefined if the field
|
|
223
|
-
* doesn't exist. The spec is again silent on this case. */
|
|
224
|
-
case 'getField': {
|
|
225
|
-
const [clientApi, ...fieldPath] = parameter.split('.');
|
|
226
|
-
const sectionApi = getAdaptedApi(clientApi, allApis.get(clientApi));
|
|
227
|
-
return sectionApi('getField', undefined, fieldPath.join('.'));
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
case 'getGPPData': {
|
|
231
|
-
const gppString = formatConsentString(state);
|
|
232
|
-
return gppString ? parseConsentString(gppString, state) : undefined;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
default: {
|
|
236
|
-
const mark = command.indexOf('.');
|
|
237
|
-
if (mark < 0) {
|
|
238
|
-
throw new Error(`Invalid command: ${command}`);
|
|
239
|
-
}
|
|
240
|
-
const clientApi = command.substring(0, mark);
|
|
241
|
-
const apiCommand = command.substring(mark + 1);
|
|
242
|
-
const sectionApi = getAdaptedApi(clientApi, allApis.get(clientApi));
|
|
243
|
-
return sectionApi(apiCommand, callback, parameter);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
return {
|
|
250
|
-
bind,
|
|
251
|
-
dispatch,
|
|
252
|
-
};
|
|
253
|
-
}
|
package/src/iab/gpp/consent.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { CmpDisplayStatusCodes, CmpStatusCodes, SECTIONS } from './constants';
|
|
2
|
-
import {
|
|
3
|
-
decode as base64Decode,
|
|
4
|
-
encode as base64Encode,
|
|
5
|
-
} from './encoders/CompressedBase64UrlEncoder';
|
|
6
|
-
import {
|
|
7
|
-
doesGDPRApply,
|
|
8
|
-
getConsentString,
|
|
9
|
-
getSupportedApis,
|
|
10
|
-
isBrowsingFrom,
|
|
11
|
-
isUiVisible,
|
|
12
|
-
} from './selectors';
|
|
13
|
-
import {
|
|
14
|
-
decode as fibRangeDecode,
|
|
15
|
-
encode as fibRangeEncode,
|
|
16
|
-
} from './encoders/FibonacciIntegerRangeEncoder';
|
|
17
|
-
|
|
18
|
-
import { CMP_ID } from '../constants';
|
|
19
|
-
|
|
20
|
-
const ERROR_MESSAGE = 'Invalid GPP string';
|
|
21
|
-
|
|
22
|
-
/* A note on the GPP version number: According to the GPP spec, the GPP string's
|
|
23
|
-
* header can only contain an integer version number. However, the API spec for
|
|
24
|
-
* the PingReturn object requires that the GPP version number is in the format
|
|
25
|
-
* Major.Minor (e.g. 1.0). It's not a problem for now but will be interesting if
|
|
26
|
-
* and when they introduce a version 1.1.
|
|
27
|
-
*/
|
|
28
|
-
const HEADER_PREFIX = 'DB'; // Section 3 ('D'), GPP v1 ('B')
|
|
29
|
-
|
|
30
|
-
export const isSectionApplicable = (sectionId, state) => {
|
|
31
|
-
switch (sectionId) {
|
|
32
|
-
// case 1 is TCF v1 and is unsupported
|
|
33
|
-
case 2: // TCF EU v2
|
|
34
|
-
return doesGDPRApply(state);
|
|
35
|
-
// cases 3 and 4 are GPP header and integrity sections and are not applicable
|
|
36
|
-
case 5: // TCF CA
|
|
37
|
-
return isBrowsingFrom(state, 'ca');
|
|
38
|
-
case 6: // USPrivacy v1
|
|
39
|
-
// case 7: // US National
|
|
40
|
-
return isBrowsingFrom(state, 'us');
|
|
41
|
-
// We do not implement the GPP US-state spec
|
|
42
|
-
// case 8: // US California
|
|
43
|
-
// return isBrowsingFrom(state, 'us-ca');
|
|
44
|
-
// case 9: // US Virginia
|
|
45
|
-
// return isBrowsingFrom(state, 'us-va');
|
|
46
|
-
// case 10: // US Colorado
|
|
47
|
-
// return isBrowsingFrom(state, 'us-co');
|
|
48
|
-
// case 11: // US Utah
|
|
49
|
-
// return isBrowsingFrom(state, 'us-ut');
|
|
50
|
-
// case 12: // US Connecticut
|
|
51
|
-
// return isBrowsingFrom(state, 'us-ct');
|
|
52
|
-
default:
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export const makeFormatPingData = initOptions => state => ({
|
|
58
|
-
gppVersion: initOptions.version, // '1.0', see note above
|
|
59
|
-
cmpStatus: CmpStatusCodes.LOADED,
|
|
60
|
-
cmpDisplayStatus: isUiVisible(state)
|
|
61
|
-
? CmpDisplayStatusCodes.VISIBLE
|
|
62
|
-
: CmpDisplayStatusCodes.HIDDEN,
|
|
63
|
-
supportedAPIs: getSupportedApis(state),
|
|
64
|
-
cmpId: CMP_ID,
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
export const makeParseConsentString = initOptions => (gppString, state) => {
|
|
68
|
-
const [header, ...sections] = gppString.split('~');
|
|
69
|
-
|
|
70
|
-
// All GPPv1 strings must start with 'DB'
|
|
71
|
-
if (header.substring(0, 2) !== HEADER_PREFIX) {
|
|
72
|
-
throw new Error(`${ERROR_MESSAGE}: Invalid header`);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const expectedSections = fibRangeDecode(base64Decode(header.substring(2)));
|
|
76
|
-
|
|
77
|
-
if (sections.length !== expectedSections.length) {
|
|
78
|
-
throw new Error(
|
|
79
|
-
`${ERROR_MESSAGE}: Number of sections does not match header`,
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
sectionId: 3,
|
|
85
|
-
gppVersion: 1, // see note above
|
|
86
|
-
sectionList: expectedSections,
|
|
87
|
-
applicableSections: expectedSections.filter(sectionId =>
|
|
88
|
-
isSectionApplicable(sectionId, state),
|
|
89
|
-
),
|
|
90
|
-
gppString,
|
|
91
|
-
pingData: makeFormatPingData(initOptions)(state),
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export const formatConsentString = state => {
|
|
96
|
-
const consentStrings = getSupportedApis(state)
|
|
97
|
-
.map(section => ({
|
|
98
|
-
sectionId: SECTIONS[`${section}`],
|
|
99
|
-
consentString: getConsentString(state, section),
|
|
100
|
-
}))
|
|
101
|
-
.filter(({ consentString }) => consentString !== undefined)
|
|
102
|
-
.sort((a, b) => a.sectionId - b.sectionId);
|
|
103
|
-
|
|
104
|
-
const header = `${HEADER_PREFIX}${base64Encode(
|
|
105
|
-
fibRangeEncode(consentStrings.map(({ sectionId }) => sectionId)),
|
|
106
|
-
)}`;
|
|
107
|
-
|
|
108
|
-
const sections = [
|
|
109
|
-
header,
|
|
110
|
-
...consentStrings.map(({ consentString }) => consentString),
|
|
111
|
-
];
|
|
112
|
-
|
|
113
|
-
return sections.join('~');
|
|
114
|
-
};
|