@thealteroffice/react-native-adgeist 0.0.19 → 0.0.22
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/Adgeist.podspec +1 -1
- package/README.md +70 -521
- package/android/build.gradle +6 -3
- package/android/generated/java/com/adgeist/NativeAdgeistSpec.java +11 -11
- package/android/generated/java/com/facebook/react/viewmanagers/HTML5AdNativeComponentManagerDelegate.java +55 -0
- package/android/generated/java/com/facebook/react/viewmanagers/HTML5AdNativeComponentManagerInterface.java +24 -0
- package/android/generated/jni/RNAdgeistSpec-generated.cpp +12 -12
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/ComponentDescriptors.cpp +22 -0
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/ComponentDescriptors.h +24 -0
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/EventEmitters.cpp +60 -0
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/EventEmitters.h +49 -0
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/Props.cpp +28 -0
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/Props.h +52 -0
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/RNAdgeistSpecJSI-generated.cpp +14 -22
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/RNAdgeistSpecJSI.h +36 -36
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/ShadowNodes.cpp +17 -0
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/ShadowNodes.h +32 -0
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/RNAdgeistSpec/States.h +29 -0
- package/android/src/main/java/com/adgeist/AdgeistPackage.kt +8 -7
- package/android/src/main/java/com/adgeist/components/HTML5AdViewManagerImpl.kt +125 -0
- package/android/src/main/java/com/adgeist/modules/AdgeistImpl.kt +114 -0
- package/android/src/main/java/com/adgeist/utils/CreativeExtensions.kt +151 -0
- package/android/src/newarch/java/com/Adgeist.kt +119 -0
- package/android/src/newarch/java/com/HTML5AdViewManager.kt +77 -0
- package/android/src/oldarch/java/com/Adgeist.kt +132 -0
- package/android/src/oldarch/java/com/HTML5AdViewManager.kt +63 -0
- package/ios/Adgeist-Bridging-Header.h +3 -0
- package/ios/Adgeist.h +1 -1
- package/ios/Adgeist.mm +154 -38
- package/ios/AdgeistImpl.swift +188 -53
- package/ios/NativeHTML5AdManager.h +9 -0
- package/ios/NativeHTML5AdManager.mm +178 -0
- package/ios/NativeHTML5AdView.swift +136 -0
- package/ios/generated/RNAdgeistSpec/ComponentDescriptors.cpp +22 -0
- package/ios/generated/RNAdgeistSpec/ComponentDescriptors.h +24 -0
- package/ios/generated/RNAdgeistSpec/EventEmitters.cpp +60 -0
- package/ios/generated/RNAdgeistSpec/EventEmitters.h +49 -0
- package/ios/generated/RNAdgeistSpec/Props.cpp +28 -0
- package/ios/generated/RNAdgeistSpec/Props.h +52 -0
- package/ios/generated/RNAdgeistSpec/RCTComponentViewHelpers.h +65 -0
- package/ios/generated/RNAdgeistSpec/RNAdgeistSpec-generated.mm +17 -17
- package/ios/generated/RNAdgeistSpec/RNAdgeistSpec.h +17 -25
- package/ios/generated/RNAdgeistSpec/ShadowNodes.cpp +17 -0
- package/ios/generated/RNAdgeistSpec/ShadowNodes.h +32 -0
- package/ios/generated/RNAdgeistSpec/States.cpp +16 -0
- package/ios/generated/RNAdgeistSpec/States.h +29 -0
- package/ios/generated/RNAdgeistSpecJSI-generated.cpp +14 -22
- package/ios/generated/RNAdgeistSpecJSI.h +36 -36
- package/lib/module/cdpclient/index.js +1 -25
- package/lib/module/cdpclient/index.js.map +1 -1
- package/lib/module/components/HTML5AdView.js +128 -0
- package/lib/module/components/HTML5AdView.js.map +1 -0
- package/lib/module/components/{BannerAd.js → deprecated/BannerAdView.js} +50 -79
- package/lib/module/components/deprecated/BannerAdView.js.map +1 -0
- package/lib/module/components/{ConsentModal.js → deprecated/ConsentModal.js} +2 -2
- package/lib/module/components/deprecated/ConsentModal.js.map +1 -0
- package/lib/module/constants.js +14 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/{components → providers}/AdgeistProvider.js +10 -35
- package/lib/module/providers/AdgeistProvider.js.map +1 -0
- package/lib/module/specs/HTML5AdNativeComponent.ts +46 -0
- package/lib/module/specs/NativeAdgeist.js.map +1 -0
- package/lib/module/types/AdSize.js +2 -0
- package/lib/module/types/AdSize.js.map +1 -0
- package/lib/module/types/CPMAdResponse.js +2 -0
- package/lib/module/types/CPMAdResponse.js.map +1 -0
- package/lib/module/types/FixedAdResponse.js +2 -0
- package/lib/module/types/FixedAdResponse.js.map +1 -0
- package/lib/module/types/HTML5AdNativeComponentProps.js +4 -0
- package/lib/module/types/HTML5AdNativeComponentProps.js.map +1 -0
- package/lib/module/types/Provider.js +2 -0
- package/lib/module/types/Provider.js.map +1 -0
- package/lib/typescript/src/cdpclient/index.d.ts +1 -21
- package/lib/typescript/src/cdpclient/index.d.ts.map +1 -1
- package/lib/typescript/src/components/HTML5AdView.d.ts +3 -0
- package/lib/typescript/src/components/HTML5AdView.d.ts.map +1 -0
- package/lib/typescript/src/components/deprecated/BannerAdView.d.ts +17 -0
- package/lib/typescript/src/components/deprecated/BannerAdView.d.ts.map +1 -0
- package/lib/typescript/src/components/deprecated/ConsentModal.d.ts.map +1 -0
- package/lib/typescript/src/constants.d.ts +10 -0
- package/lib/typescript/src/constants.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/providers/AdgeistProvider.d.ts +9 -0
- package/lib/typescript/src/providers/AdgeistProvider.d.ts.map +1 -0
- package/lib/typescript/src/specs/HTML5AdNativeComponent.d.ts +29 -0
- package/lib/typescript/src/specs/HTML5AdNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/NativeAdgeist.d.ts +28 -0
- package/lib/typescript/src/specs/NativeAdgeist.d.ts.map +1 -0
- package/lib/typescript/src/types/AdSize.d.ts +5 -0
- package/lib/typescript/src/types/AdSize.d.ts.map +1 -0
- package/lib/typescript/src/types/CPMAdResponse.d.ts +25 -0
- package/lib/typescript/src/types/CPMAdResponse.d.ts.map +1 -0
- package/lib/typescript/src/types/FixedAdResponse.d.ts +50 -0
- package/lib/typescript/src/types/FixedAdResponse.d.ts.map +1 -0
- package/lib/typescript/src/types/HTML5AdNativeComponentProps.d.ts +24 -0
- package/lib/typescript/src/types/HTML5AdNativeComponentProps.d.ts.map +1 -0
- package/lib/typescript/src/types/Provider.d.ts +16 -0
- package/lib/typescript/src/types/Provider.d.ts.map +1 -0
- package/package.json +8 -3
- package/plugin/build/android/withRNAdgeistMainApplication.d.ts +3 -0
- package/plugin/build/android/withRNAdgeistMainApplication.js +65 -0
- package/plugin/build/index.d.ts +3 -0
- package/plugin/build/index.js +25 -0
- package/plugin/build/ios/withRNAdgeistAppDelegate.d.ts +4 -0
- package/plugin/build/ios/withRNAdgeistAppDelegate.js +66 -0
- package/react-native.config.js +1 -1
- package/src/cdpclient/index.ts +1 -21
- package/src/components/HTML5AdView.tsx +161 -0
- package/src/components/{BannerAd.tsx → deprecated/BannerAdView.tsx} +80 -115
- package/src/components/{ConsentModal.tsx → deprecated/ConsentModal.tsx} +2 -2
- package/src/constants.ts +8 -0
- package/src/index.tsx +4 -2
- package/src/{components → providers}/AdgeistProvider.tsx +26 -60
- package/src/specs/HTML5AdNativeComponent.ts +46 -0
- package/src/{NativeAdgeist.ts → specs/NativeAdgeist.ts} +26 -25
- package/src/types/AdSize.ts +4 -0
- package/src/types/CPMAdResponse.ts +26 -0
- package/src/types/FixedAdResponse.ts +51 -0
- package/src/types/HTML5AdNativeComponentProps.ts +28 -0
- package/src/types/Provider.ts +16 -0
- package/android/src/main/AndroidManifestNew.xml +0 -2
- package/android/src/main/java/com/adgeist/implementation/AdgeistModuleImpl.kt +0 -252
- package/android/src/newarch/java/com/AdgeistModule.kt +0 -135
- package/android/src/oldarch/java/com/AdgeistModule.kt +0 -148
- package/ios/adgeist-Bridging-Header.h +0 -1
- package/lib/module/NativeAdgeist.js.map +0 -1
- package/lib/module/components/AdgeistProvider.js.map +0 -1
- package/lib/module/components/BannerAd.js.map +0 -1
- package/lib/module/components/ConsentModal.js.map +0 -1
- package/lib/typescript/src/NativeAdgeist.d.ts +0 -28
- package/lib/typescript/src/NativeAdgeist.d.ts.map +0 -1
- package/lib/typescript/src/components/AdgeistProvider.d.ts +0 -50
- package/lib/typescript/src/components/AdgeistProvider.d.ts.map +0 -1
- package/lib/typescript/src/components/BannerAd.d.ts +0 -64
- package/lib/typescript/src/components/BannerAd.d.ts.map +0 -1
- package/lib/typescript/src/components/ConsentModal.d.ts.map +0 -1
- /package/lib/module/{NativeAdgeist.js → specs/NativeAdgeist.js} +0 -0
- /package/lib/typescript/src/components/{ConsentModal.d.ts → deprecated/ConsentModal.d.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const AdSizes = {
|
|
4
|
+
custom: (width, height) => ({
|
|
5
|
+
width,
|
|
6
|
+
height
|
|
7
|
+
}),
|
|
8
|
+
Responsive: {
|
|
9
|
+
width: -1,
|
|
10
|
+
height: -1
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export const HTML_5_AD_NATIVE_COMPONENT_NAME = 'HTML5AdNativeComponent';
|
|
14
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AdSizes","custom","width","height","Responsive","HTML_5_AD_NATIVE_COMPONENT_NAME"],"sourceRoot":"../../src","sources":["constants.ts"],"mappings":";;AAEA,OAAO,MAAMA,OAAO,GAAG;EACrBC,MAAM,EAAEA,CAACC,KAAa,EAAEC,MAAc,MAAc;IAAED,KAAK;IAAEC;EAAO,CAAC,CAAC;EACtEC,UAAU,EAAE;IAAEF,KAAK,EAAE,CAAC,CAAC;IAAEC,MAAM,EAAE,CAAC;EAAE;AACtC,CAAC;AAED,OAAO,MAAME,+BAA+B,GAAG,wBAAwB","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./components/
|
|
3
|
+
export * from "./providers/AdgeistProvider.js";
|
|
4
|
+
export * from "./components/HTML5AdView.js";
|
|
5
|
+
export * from "./components/deprecated/BannerAdView.js";
|
|
5
6
|
export * from "./cdpclient/index.js";
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,cAAc,gCAA6B;AAC3C,cAAc,6BAA0B;AAExC,cAAc,yCAAsC;AAEpD,cAAc,sBAAmB","ignoreList":[]}
|
|
@@ -1,43 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @module AdgeistProvider
|
|
5
|
-
* @description Context provider for Adgeist ad-serving configuration and initialization
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
3
|
import React, { createContext, useContext, useEffect, useState, useCallback } from 'react';
|
|
9
|
-
import Adgeist from "../NativeAdgeist.js";
|
|
10
|
-
import { ConsentModal } from "
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Interface for Adgeist context
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Props for AdgeistProvider
|
|
18
|
-
*/
|
|
4
|
+
import Adgeist from "../specs/NativeAdgeist.js";
|
|
5
|
+
import { ConsentModal } from "../components/deprecated/ConsentModal.js";
|
|
19
6
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
7
|
const AdgeistContext = /*#__PURE__*/createContext({
|
|
21
|
-
|
|
22
|
-
apiKey: '',
|
|
23
|
-
domain: '',
|
|
24
|
-
isTestEnvironment: true,
|
|
8
|
+
isTestEnvironment: false,
|
|
25
9
|
isInitialized: false,
|
|
26
10
|
setAdgeistConsentModal: () => {}
|
|
27
11
|
});
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* AdgeistProvider component for managing ad-serving configuration
|
|
31
|
-
* @param props - Component properties
|
|
32
|
-
* @returns JSX.Element
|
|
33
|
-
*/
|
|
34
12
|
export const AdgeistProvider = ({
|
|
35
13
|
children,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
isTestEnvironment = true,
|
|
14
|
+
customBidRequestBackendDomain = 'https://beta.v2.bg-services.adgeist.ai',
|
|
15
|
+
customPackageOrBundleID = '',
|
|
16
|
+
customAdgeistAppID = '',
|
|
17
|
+
isTestEnvironment = false,
|
|
41
18
|
onInitializationError,
|
|
42
19
|
onInitializationSuccess
|
|
43
20
|
}) => {
|
|
@@ -52,7 +29,8 @@ export const AdgeistProvider = ({
|
|
|
52
29
|
setInitializationError(undefined);
|
|
53
30
|
setIsInitialized(false);
|
|
54
31
|
try {
|
|
55
|
-
await Adgeist.
|
|
32
|
+
await Adgeist.destroySdk();
|
|
33
|
+
await Adgeist.initializeSdk(customBidRequestBackendDomain, customPackageOrBundleID, customAdgeistAppID);
|
|
56
34
|
setIsInitialized(true);
|
|
57
35
|
onInitializationSuccess?.();
|
|
58
36
|
} catch (error) {
|
|
@@ -61,15 +39,12 @@ export const AdgeistProvider = ({
|
|
|
61
39
|
setIsInitialized(false);
|
|
62
40
|
onInitializationError?.(err);
|
|
63
41
|
}
|
|
64
|
-
}, [
|
|
42
|
+
}, [customBidRequestBackendDomain, onInitializationError, onInitializationSuccess, customPackageOrBundleID, customAdgeistAppID]);
|
|
65
43
|
useEffect(() => {
|
|
66
44
|
initializeAdgeist();
|
|
67
45
|
}, [initializeAdgeist]);
|
|
68
46
|
return /*#__PURE__*/_jsxs(AdgeistContext.Provider, {
|
|
69
47
|
value: {
|
|
70
|
-
publisherId,
|
|
71
|
-
apiKey,
|
|
72
|
-
domain,
|
|
73
48
|
isTestEnvironment,
|
|
74
49
|
isInitialized,
|
|
75
50
|
initializationError,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","createContext","useContext","useEffect","useState","useCallback","Adgeist","ConsentModal","Fragment","_Fragment","jsx","_jsx","jsxs","_jsxs","AdgeistContext","isTestEnvironment","isInitialized","setAdgeistConsentModal","AdgeistProvider","children","customBidRequestBackendDomain","customPackageOrBundleID","customAdgeistAppID","onInitializationError","onInitializationSuccess","setIsInitialized","initializationError","setInitializationError","adgeistConsentModal","initializeAdgeist","undefined","destroySdk","initializeSdk","error","err","Error","Provider","value","useAdgeistContext","context"],"sourceRoot":"../../../src","sources":["providers/AdgeistProvider.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IACVC,aAAa,EACbC,UAAU,EACVC,SAAS,EACTC,QAAQ,EACRC,WAAW,QACN,OAAO;AACd,OAAOC,OAAO,MAAM,2BAAwB;AAC5C,SAASC,YAAY,QAAQ,0CAAuC;AAAC,SAAAC,QAAA,IAAAC,SAAA,EAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMrE,MAAMC,cAAc,gBAAGb,aAAa,CAAqB;EACvDc,iBAAiB,EAAE,KAAK;EACxBC,aAAa,EAAE,KAAK;EACpBC,sBAAsB,EAAEA,CAAA,KAAM,CAAC;AACjC,CAAC,CAAC;AAEF,OAAO,MAAMC,eAA+C,GAAGA,CAAC;EAC9DC,QAAQ;EACRC,6BAA6B,GAAG,wCAAwC;EACxEC,uBAAuB,GAAG,EAAE;EAC5BC,kBAAkB,GAAG,EAAE;EACvBP,iBAAiB,GAAG,KAAK;EACzBQ,qBAAqB;EACrBC;AACF,CAAC,KAAK;EACJ,MAAM,CAACR,aAAa,EAAES,gBAAgB,CAAC,GAAGrB,QAAQ,CAAU,KAAK,CAAC;EAClE,MAAM,CAACsB,mBAAmB,EAAEC,sBAAsB,CAAC,GAAGvB,QAAQ,CAE5D,CAAC;EACH,MAAM,CAACwB,mBAAmB,EAAEX,sBAAsB,CAAC,GACjDb,QAAQ,CAAU,KAAK,CAAC;;EAE1B;AACF;AACA;EACE,MAAMyB,iBAAiB,GAAGxB,WAAW,CAAC,YAAY;IAChDsB,sBAAsB,CAACG,SAAS,CAAC;IACjCL,gBAAgB,CAAC,KAAK,CAAC;IAEvB,IAAI;MACF,MAAMnB,OAAO,CAACyB,UAAU,CAAC,CAAC;MAE1B,MAAMzB,OAAO,CAAC0B,aAAa,CACzBZ,6BAA6B,EAC7BC,uBAAuB,EACvBC,kBACF,CAAC;MAEDG,gBAAgB,CAAC,IAAI,CAAC;MACtBD,uBAAuB,GAAG,CAAC;IAC7B,CAAC,CAAC,OAAOS,KAAc,EAAE;MACvB,MAAMC,GAAG,GACPD,KAAK,YAAYE,KAAK,GAAGF,KAAK,GAAG,IAAIE,KAAK,CAAC,wBAAwB,CAAC;MACtER,sBAAsB,CAACO,GAAG,CAAC;MAC3BT,gBAAgB,CAAC,KAAK,CAAC;MACvBF,qBAAqB,GAAGW,GAAG,CAAC;IAC9B;EACF,CAAC,EAAE,CACDd,6BAA6B,EAC7BG,qBAAqB,EACrBC,uBAAuB,EACvBH,uBAAuB,EACvBC,kBAAkB,CACnB,CAAC;EAEFnB,SAAS,CAAC,MAAM;IACd0B,iBAAiB,CAAC,CAAC;EACrB,CAAC,EAAE,CAACA,iBAAiB,CAAC,CAAC;EAEvB,oBACEhB,KAAA,CAACC,cAAc,CAACsB,QAAQ;IACtBC,KAAK,EAAE;MACLtB,iBAAiB;MACjBC,aAAa;MACbU,mBAAmB;MACnBT;IACF,CAAE;IAAAE,QAAA,GAEDO,mBAAmB,iBAAIf,IAAA,CAAAF,SAAA;MAAAU,QAAA,EAAGA;IAAQ,CAAG,CAAC,EAEtCH,aAAa,iBACZH,KAAA,CAAAJ,SAAA;MAAAU,QAAA,GACGS,mBAAmB,iBAAIjB,IAAA,CAACJ,YAAY,IAAE,CAAC,EACvCY,QAAQ;IAAA,CACT,CACH;EAAA,CACsB,CAAC;AAE9B,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMmB,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAMC,OAAO,GAAGrC,UAAU,CAACY,cAAc,CAAC;EAC1C,IAAI,CAACyB,OAAO,EAAE;IACZ,MAAM,IAAIJ,KAAK,CAAC,0DAA0D,CAAC;EAC7E;EACA,OAAOI,OAAO;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type {
|
|
3
|
+
DirectEventHandler,
|
|
4
|
+
Double,
|
|
5
|
+
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
6
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
7
|
+
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
|
|
10
|
+
export interface AdSize {
|
|
11
|
+
width?: Double;
|
|
12
|
+
height?: Double;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface AdFailedToLoadEvent {
|
|
16
|
+
error: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface NativeProps extends ViewProps {
|
|
20
|
+
adUnitID: string;
|
|
21
|
+
adIsResponsive?: boolean;
|
|
22
|
+
adSize?: AdSize;
|
|
23
|
+
adType: string;
|
|
24
|
+
|
|
25
|
+
onAdLoaded?: DirectEventHandler<null>;
|
|
26
|
+
onAdFailedToLoad?: DirectEventHandler<AdFailedToLoadEvent>;
|
|
27
|
+
onAdOpened?: DirectEventHandler<null>;
|
|
28
|
+
onAdClosed?: DirectEventHandler<null>;
|
|
29
|
+
onAdClicked?: DirectEventHandler<null>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface NativeCommands {
|
|
33
|
+
loadAd: (
|
|
34
|
+
viewRef: React.ElementRef<HostComponent<NativeProps>>,
|
|
35
|
+
isTestMode: boolean
|
|
36
|
+
) => void;
|
|
37
|
+
destroy: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
41
|
+
supportedCommands: ['loadAd', 'destroy'],
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export default codegenNativeComponent<NativeProps>(
|
|
45
|
+
'HTML5AdNativeComponent'
|
|
46
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeAdgeist.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;AAiGlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,SAAS,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/AdSize.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/CPMAdResponse.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/FixedAdResponse.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/HTML5AdNativeComponentProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/Provider.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import { type UserDetails, type Event } from '../NativeAdgeist';
|
|
2
|
-
/**
|
|
3
|
-
* Sets user details in the Adgeist SDK
|
|
4
|
-
* @param userDetails - User details object
|
|
5
|
-
* @throws AdgeistError if the operation fails
|
|
6
|
-
*/
|
|
1
|
+
import { type UserDetails, type Event } from '../specs/NativeAdgeist';
|
|
7
2
|
export declare const setUserDetails: (userDetails: UserDetails) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Logs an event in the Adgeist SDK
|
|
10
|
-
* @param event - Event object to log
|
|
11
|
-
* @throws AdgeistError if the event is invalid or logging fails
|
|
12
|
-
*/
|
|
13
3
|
export declare const logEvent: (event: Event) => void;
|
|
14
|
-
/**
|
|
15
|
-
* Retrieves the consent status from the Adgeist SDK
|
|
16
|
-
* @returns Promise resolving to 'ACCEPTED' or 'DENIED'
|
|
17
|
-
* @throws AdgeistError if the operation fails
|
|
18
|
-
*/
|
|
19
4
|
export declare const getConsentStatus: () => Promise<"ACCEPTED" | "DENIED">;
|
|
20
|
-
/**
|
|
21
|
-
* Updates the consent status in the Adgeist SDK
|
|
22
|
-
* @param consent - Boolean indicating user consent
|
|
23
|
-
* @throws AdgeistError if the operation fails
|
|
24
|
-
*/
|
|
25
5
|
export declare const updateConsentStatus: (consent: boolean) => void;
|
|
26
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cdpclient/index.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,WAAW,EAAE,KAAK,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cdpclient/index.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,WAAW,EAAE,KAAK,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAa/E,eAAO,MAAM,cAAc,GAAI,aAAa,WAAW,KAAG,IAQzD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,KAAK,KAAG,IAWvC,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,UAAU,GAAG,QAAQ,CAWtE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,SAAS,OAAO,KAAG,IAUtD,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { HTML5AdNativeComponentProps, HTML5AdRequest, HTML5AdViewRef } from '../types/HTML5AdNativeComponentProps';
|
|
2
|
+
export declare const HTML5AdView: import("react").ForwardRefExoticComponent<HTML5AdNativeComponentProps & HTML5AdRequest & import("react").RefAttributes<HTML5AdViewRef>>;
|
|
3
|
+
//# sourceMappingURL=HTML5AdView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HTML5AdView.d.ts","sourceRoot":"","sources":["../../../../src/components/HTML5AdView.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,2BAA2B,EAC3B,cAAc,EACd,cAAc,EACf,MAAM,sCAAsC,CAAC;AAG9C,eAAO,MAAM,WAAW,yIAwIvB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FIXEDADRESPONSE } from '../../types/FixedAdResponse';
|
|
3
|
+
import type { CPMADRESPONSE } from '../../types/CPMAdResponse';
|
|
4
|
+
interface AdBannerProps {
|
|
5
|
+
dataAdSlot: string;
|
|
6
|
+
dataSlotType?: 'banner' | 'video';
|
|
7
|
+
dataBuyType?: 'FIXED' | 'CPM';
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
isResponsive?: boolean;
|
|
11
|
+
responsiveType?: 'SQUARE' | 'VERTICAL' | 'WIDE';
|
|
12
|
+
onAdLoadError?: (error: Error) => void;
|
|
13
|
+
onAdLoadSuccess?: (adData: FIXEDADRESPONSE | CPMADRESPONSE) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const BannerAd: React.FC<AdBannerProps>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=BannerAdView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerAdView.d.ts","sourceRoot":"","sources":["../../../../../src/components/deprecated/BannerAdView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAexE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAChD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,GAAG,aAAa,KAAK,IAAI,CAAC;CACrE;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAia5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/deprecated/ConsentModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,qBAAqB;CAAG;AAElC,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgCxD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AdSize } from './types/AdSize';
|
|
2
|
+
export declare const AdSizes: {
|
|
3
|
+
custom: (width: number, height: number) => AdSize;
|
|
4
|
+
Responsive: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const HTML_5_AD_NATIVE_COMPONENT_NAME = "HTML5AdNativeComponent";
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,eAAO,MAAM,OAAO;oBACF,MAAM,UAAU,MAAM,KAAG,MAAM;;;;;CAEhD,CAAC;AAEF,eAAO,MAAM,+BAA+B,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './components/
|
|
1
|
+
export * from './providers/AdgeistProvider';
|
|
2
|
+
export * from './components/HTML5AdView';
|
|
3
|
+
export * from './components/deprecated/BannerAdView';
|
|
3
4
|
export * from './cdpclient/index';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,sCAAsC,CAAC;AAErD,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AdgeistContextType, AdgeistProviderProps } from '../types/Provider';
|
|
3
|
+
export declare const AdgeistProvider: React.FC<AdgeistProviderProps>;
|
|
4
|
+
/**
|
|
5
|
+
* Hook to access Adgeist context
|
|
6
|
+
* @returns AdgeistContextType
|
|
7
|
+
*/
|
|
8
|
+
export declare const useAdgeistContext: () => AdgeistContextType;
|
|
9
|
+
//# sourceMappingURL=AdgeistProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdgeistProvider.d.ts","sourceRoot":"","sources":["../../../../src/providers/AdgeistProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAQ3B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwE1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,0BAM7B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { DirectEventHandler, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface AdSize {
|
|
5
|
+
width?: Double;
|
|
6
|
+
height?: Double;
|
|
7
|
+
}
|
|
8
|
+
export interface AdFailedToLoadEvent {
|
|
9
|
+
error: string;
|
|
10
|
+
}
|
|
11
|
+
export interface NativeProps extends ViewProps {
|
|
12
|
+
adUnitID: string;
|
|
13
|
+
adIsResponsive?: boolean;
|
|
14
|
+
adSize?: AdSize;
|
|
15
|
+
adType: string;
|
|
16
|
+
onAdLoaded?: DirectEventHandler<null>;
|
|
17
|
+
onAdFailedToLoad?: DirectEventHandler<AdFailedToLoadEvent>;
|
|
18
|
+
onAdOpened?: DirectEventHandler<null>;
|
|
19
|
+
onAdClosed?: DirectEventHandler<null>;
|
|
20
|
+
onAdClicked?: DirectEventHandler<null>;
|
|
21
|
+
}
|
|
22
|
+
interface NativeCommands {
|
|
23
|
+
loadAd: (viewRef: React.ElementRef<HostComponent<NativeProps>>, isTestMode: boolean) => void;
|
|
24
|
+
destroy: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const Commands: NativeCommands;
|
|
27
|
+
declare const _default: HostComponent<NativeProps>;
|
|
28
|
+
export default _default;
|
|
29
|
+
//# sourceMappingURL=HTML5AdNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HTML5AdNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/HTML5AdNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EACV,kBAAkB,EAClB,MAAM,EACP,MAAM,2CAA2C,CAAC;AAGnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACtC,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IAC3D,UAAU,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACtC,UAAU,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACxC;AAED,UAAU,cAAc;IACtB,MAAM,EAAE,CACN,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,EACrD,UAAU,EAAE,OAAO,KAChB,IAAI,CAAC;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;CAC1E;AAED,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;wBAIE,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
export interface UserDetails {
|
|
3
|
+
userId?: string;
|
|
4
|
+
userName?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
phone?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Event {
|
|
9
|
+
eventType: string;
|
|
10
|
+
eventProperties: Object;
|
|
11
|
+
}
|
|
12
|
+
export interface Spec extends TurboModule {
|
|
13
|
+
initializeSdk(customBidRequestBackendDomain: string, customPackageOrBundleID: string, customAdgeistAppID: string): Promise<boolean>;
|
|
14
|
+
destroySdk(): Promise<boolean>;
|
|
15
|
+
fetchCreative(adSpaceId: string, buyType: string, isTestEnvironment: boolean): Promise<Object>;
|
|
16
|
+
setUserDetails(user: Object): void;
|
|
17
|
+
logEvent(event: Object): void;
|
|
18
|
+
getConsentStatus(): Promise<boolean>;
|
|
19
|
+
updateConsentStatus(consent: boolean): void;
|
|
20
|
+
trackImpression(campaignId: string, adSpaceId: string, bidId: string, bidMeta: string, buyType: string, isTestEnvironment: boolean, renderTime: number): Promise<string>;
|
|
21
|
+
trackView(campaignId: string, adSpaceId: string, bidId: string, bidMeta: string, buyType: string, isTestEnvironment: boolean, viewTime: number, visibilityRatio: number, scrollDepth: number, timeToVisible: number): Promise<string>;
|
|
22
|
+
trackTotalView(campaignId: string, adSpaceId: string, bidId: string, bidMeta: string, buyType: string, isTestEnvironment: boolean, totalViewTime: number): Promise<string>;
|
|
23
|
+
trackClick(campaignId: string, adSpaceId: string, bidId: string, bidMeta: string, buyType: string, isTestEnvironment: boolean): Promise<string>;
|
|
24
|
+
trackVideoPlayback(campaignId: string, adSpaceId: string, bidId: string, bidMeta: string, buyType: string, isTestEnvironment: boolean, totalPlaybackTime: number): Promise<string>;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: Spec;
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=NativeAdgeist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeAdgeist.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeAdgeist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;CACzB;AACD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,aAAa,CACX,6BAA6B,EAAE,MAAM,EACrC,uBAAuB,EAAE,MAAM,EAC/B,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/B,aAAa,CACX,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,OAAO,GACzB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAErC,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAE5C,eAAe,CACb,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,OAAO,EAC1B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,SAAS,CACP,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,OAAO,EAC1B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,cAAc,CACZ,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,OAAO,EAC1B,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,UAAU,CACR,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,OAAO,GACzB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,kBAAkB,CAChB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,OAAO,EAC1B,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,MAAM,CAAC,CAAC;CASpB;;AAED,wBAAiE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdSize.d.ts","sourceRoot":"","sources":["../../../../src/types/AdSize.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface CPMADRESPONSE {
|
|
2
|
+
id: string;
|
|
3
|
+
bidId: string;
|
|
4
|
+
cur: string;
|
|
5
|
+
seatBid: SeatBid[];
|
|
6
|
+
}
|
|
7
|
+
interface SeatBid {
|
|
8
|
+
bidId: string;
|
|
9
|
+
bid: Bid[];
|
|
10
|
+
}
|
|
11
|
+
interface Bid {
|
|
12
|
+
id: string;
|
|
13
|
+
impId: string;
|
|
14
|
+
price: number;
|
|
15
|
+
ext: BidExtension;
|
|
16
|
+
}
|
|
17
|
+
interface BidExtension {
|
|
18
|
+
creativeUrl: string;
|
|
19
|
+
ctaUrl: string;
|
|
20
|
+
creativeTitle: string;
|
|
21
|
+
creativeDescription: string;
|
|
22
|
+
creativeBrandName?: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=CPMAdResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CPMAdResponse.d.ts","sourceRoot":"","sources":["../../../../src/types/CPMAdResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,GAAG,EAAE,CAAC;CACZ;AAED,UAAU,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,YAAY,CAAC;CACnB;AAED,UAAU,YAAY;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface FIXEDADRESPONSE {
|
|
2
|
+
metaData: string;
|
|
3
|
+
id: string;
|
|
4
|
+
generatedAt: string;
|
|
5
|
+
signature: string;
|
|
6
|
+
campaignId: string;
|
|
7
|
+
advertiser: Advertiser;
|
|
8
|
+
type: 'FIXED' | string;
|
|
9
|
+
loadType: 'QUICK' | string;
|
|
10
|
+
displayOptions: DisplayOptions;
|
|
11
|
+
campaignValidity: {
|
|
12
|
+
startTime: string;
|
|
13
|
+
endTime: string;
|
|
14
|
+
};
|
|
15
|
+
creatives: Creative[];
|
|
16
|
+
frontendCacheDurationSeconds: number;
|
|
17
|
+
impressionRequirements: {
|
|
18
|
+
impressionType: ('VIEW' | 'CLICK')[];
|
|
19
|
+
minViewDurationSeconds: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
interface Advertiser {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
logoUrl: string;
|
|
26
|
+
}
|
|
27
|
+
interface DisplayOptions {
|
|
28
|
+
isResponsive: boolean;
|
|
29
|
+
dimensions: {
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
styleOptions: {
|
|
34
|
+
fontFamily: string;
|
|
35
|
+
fontColor: string;
|
|
36
|
+
};
|
|
37
|
+
allowedFormats: string[];
|
|
38
|
+
}
|
|
39
|
+
interface Creative {
|
|
40
|
+
ctaUrl: string;
|
|
41
|
+
title: string;
|
|
42
|
+
description: string;
|
|
43
|
+
type: 'image' | string;
|
|
44
|
+
fileName: string;
|
|
45
|
+
fileSize: number;
|
|
46
|
+
fileUrl: string;
|
|
47
|
+
thumbnailUrl: string;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=FixedAdResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FixedAdResponse.d.ts","sourceRoot":"","sources":["../../../../src/types/FixedAdResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,gBAAgB,EAAE;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,4BAA4B,EAAE,MAAM,CAAC;IACrC,sBAAsB,EAAE;QACtB,cAAc,EAAE,CAAC,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;QACrC,sBAAsB,EAAE,MAAM,CAAC;KAChC,CAAC;CACH;AAED,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,YAAY,EAAE;QACZ,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,UAAU,QAAQ;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { NativeSyntheticEvent } from 'react-native';
|
|
2
|
+
import type { AdSize } from './AdSize';
|
|
3
|
+
export interface HTML5AdNativeComponentProps {
|
|
4
|
+
adUnitID: string;
|
|
5
|
+
adIsResponsive?: boolean;
|
|
6
|
+
adSize?: AdSize;
|
|
7
|
+
adType: string;
|
|
8
|
+
onAdLoaded?: () => void;
|
|
9
|
+
onAdFailedToLoad?: (event: NativeSyntheticEvent<AdFailedToLoadEvent>) => void;
|
|
10
|
+
onAdOpened?: () => void;
|
|
11
|
+
onAdClosed?: () => void;
|
|
12
|
+
onAdClicked?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export interface AdFailedToLoadEvent {
|
|
15
|
+
error: string;
|
|
16
|
+
}
|
|
17
|
+
export interface HTML5AdRequest {
|
|
18
|
+
isTestMode?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface HTML5AdViewRef {
|
|
21
|
+
loadAd: (adRequest?: HTML5AdRequest) => void;
|
|
22
|
+
destroy: () => void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=HTML5AdNativeComponentProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HTML5AdNativeComponentProps.d.ts","sourceRoot":"","sources":["../../../../src/types/HTML5AdNativeComponentProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC9E,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface AdgeistContextType {
|
|
2
|
+
isTestEnvironment: boolean;
|
|
3
|
+
isInitialized: boolean;
|
|
4
|
+
initializationError?: Error;
|
|
5
|
+
setAdgeistConsentModal: (value: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface AdgeistProviderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
customBidRequestBackendDomain?: string;
|
|
10
|
+
customPackageOrBundleID?: string;
|
|
11
|
+
customAdgeistAppID?: string;
|
|
12
|
+
isTestEnvironment?: boolean;
|
|
13
|
+
onInitializationError?: (error: Error) => void;
|
|
14
|
+
onInitializationSuccess?: () => void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/types/Provider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,sBAAsB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC/C,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;CACtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thealteroffice/react-native-adgeist",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Publishers can integrate our SDK to connect their ad spaces to the AdGeist marketplace.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -159,10 +159,15 @@
|
|
|
159
159
|
},
|
|
160
160
|
"codegenConfig": {
|
|
161
161
|
"name": "RNAdgeistSpec",
|
|
162
|
-
"type": "
|
|
163
|
-
"jsSrcsDir": "src",
|
|
162
|
+
"type": "all",
|
|
163
|
+
"jsSrcsDir": "src/specs",
|
|
164
164
|
"android": {
|
|
165
165
|
"javaPackageName": "com.adgeist"
|
|
166
|
+
},
|
|
167
|
+
"ios": {
|
|
168
|
+
"componentProvider": {
|
|
169
|
+
"HTML5AdNativeComponent": "RCTNativeHTML5AdManager"
|
|
170
|
+
}
|
|
166
171
|
}
|
|
167
172
|
},
|
|
168
173
|
"create-react-native-library": {
|