@adadapted/react-native-sdk 3.3.0 → 3.5.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/android/bin/build.gradle +9 -8
- package/android/bin/gradle.properties +1 -1
- package/android/build.gradle +17 -80
- package/android/gradle.properties +2 -2
- package/android/src/main/java/com/adadaptedreactnativesdk/AdadaptedReactNativeSdkModule.kt +39 -54
- package/ios/AdadaptedReactNativeSdk.m +1 -1
- package/lib/commonjs/api/adadaptedApiRequests.js +12 -12
- package/lib/commonjs/api/adadaptedApiRequests.js.map +1 -1
- package/lib/commonjs/api/adadaptedApiRequests.mock.js.map +1 -1
- package/lib/commonjs/api/adadaptedApiTypes.js +5 -10
- package/lib/commonjs/api/adadaptedApiTypes.js.map +1 -1
- package/lib/commonjs/componentTypes/AdZone.js +11 -0
- package/lib/commonjs/componentTypes/AdZone.js.map +1 -0
- package/lib/commonjs/componentTypes/Device.js +22 -0
- package/lib/commonjs/componentTypes/Device.js.map +1 -0
- package/lib/commonjs/componentTypes/Environment.js +34 -0
- package/lib/commonjs/componentTypes/Environment.js.map +1 -0
- package/lib/commonjs/components/AdZone.js +76 -85
- package/lib/commonjs/components/AdZone.js.map +1 -1
- package/lib/commonjs/components/ReportAdButton.js +9 -7
- package/lib/commonjs/components/ReportAdButton.js.map +1 -1
- package/lib/commonjs/index.js +108 -132
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/util.js +1 -4
- package/lib/commonjs/util.js.map +1 -1
- package/lib/module/api/adadaptedApiRequests.js +11 -9
- package/lib/module/api/adadaptedApiRequests.js.map +1 -1
- package/lib/module/api/adadaptedApiRequests.mock.js +2 -0
- package/lib/module/api/adadaptedApiRequests.mock.js.map +1 -1
- package/lib/module/api/adadaptedApiTypes.js +16 -0
- package/lib/module/api/adadaptedApiTypes.js.map +1 -1
- package/lib/module/componentTypes/AdZone.js +7 -0
- package/lib/module/componentTypes/AdZone.js.map +1 -0
- package/lib/module/componentTypes/Device.js +18 -0
- package/lib/module/componentTypes/Device.js.map +1 -0
- package/lib/module/componentTypes/Environment.js +30 -0
- package/lib/module/componentTypes/Environment.js.map +1 -0
- package/lib/module/components/AdZone.js +70 -80
- package/lib/module/components/AdZone.js.map +1 -1
- package/lib/module/components/ReportAdButton.js +9 -5
- package/lib/module/components/ReportAdButton.js.map +1 -1
- package/lib/module/index.js +102 -130
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/util.js +5 -5
- package/lib/module/util.js.map +1 -1
- package/lib/typescript/src/api/adadaptedApiRequests.d.ts +10 -9
- package/lib/typescript/src/api/adadaptedApiRequests.d.ts.map +1 -1
- package/lib/typescript/src/api/adadaptedApiTypes.d.ts +11 -0
- package/lib/typescript/src/api/adadaptedApiTypes.d.ts.map +1 -1
- package/lib/typescript/src/componentTypes/AdZone.d.ts +95 -0
- package/lib/typescript/src/componentTypes/AdZone.d.ts.map +1 -0
- package/lib/typescript/src/componentTypes/Device.d.ts +80 -0
- package/lib/typescript/src/componentTypes/Device.d.ts.map +1 -0
- package/lib/typescript/src/componentTypes/Environment.d.ts +57 -0
- package/lib/typescript/src/componentTypes/Environment.d.ts.map +1 -0
- package/lib/typescript/src/components/AdZone.d.ts +5 -54
- package/lib/typescript/src/components/AdZone.d.ts.map +1 -1
- package/lib/typescript/src/components/ReportAdButton.d.ts +2 -2
- package/lib/typescript/src/components/ReportAdButton.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +34 -139
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +10 -14
- package/src/api/adadaptedApiRequests.ts +25 -24
- package/src/api/adadaptedApiTypes.ts +11 -0
- package/src/componentTypes/AdZone.ts +97 -0
- package/src/componentTypes/Device.ts +79 -0
- package/src/componentTypes/Environment.ts +58 -0
- package/src/components/AdZone.tsx +82 -144
- package/src/components/ReportAdButton.tsx +1 -1
- package/src/index.tsx +168 -255
- package/lib/typescript/example/index.d.ts +0 -2
- package/lib/typescript/example/index.d.ts.map +0 -1
- package/lib/typescript/example/src/App.d.ts +0 -29
- package/lib/typescript/example/src/App.d.ts.map +0 -1
- package/lib/typescript/example/src/OffScreenAdZone.d.ts +0 -38
- package/lib/typescript/example/src/OffScreenAdZone.d.ts.map +0 -1
- package/lib/typescript/example/src/StandardAdZone.d.ts +0 -38
- package/lib/typescript/example/src/StandardAdZone.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -2
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/jest.setup.d.ts +0 -6
- package/lib/typescript/jest.setup.d.ts.map +0 -1
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test app component for testing the
|
|
3
|
-
* {@link AdadaptedReactNativeSdk} package/module.
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { AdadaptedReactNativeSdk, AdZoneInfo } from "../../src/index";
|
|
7
|
-
import { SelectedItem } from "./App";
|
|
8
|
-
/**
|
|
9
|
-
* Props interface for {@link StandardAdZonePage}.
|
|
10
|
-
*/
|
|
11
|
-
interface OffScreenAdZonePageProps {
|
|
12
|
-
/**
|
|
13
|
-
* The adadapted sdk instance.
|
|
14
|
-
*/
|
|
15
|
-
aaSdk: AdadaptedReactNativeSdk;
|
|
16
|
-
/**
|
|
17
|
-
* The current session's id.
|
|
18
|
-
*/
|
|
19
|
-
sessionId: string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* The ad zones' data.
|
|
22
|
-
*/
|
|
23
|
-
adZoneInfoList: AdZoneInfo[] | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* The selected list items array.
|
|
26
|
-
*/
|
|
27
|
-
selectedItemList: string[];
|
|
28
|
-
/**
|
|
29
|
-
* Adds selected item to grocery list;
|
|
30
|
-
*/
|
|
31
|
-
selectItem(item: SelectedItem): void;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Creates an off screen example component.
|
|
35
|
-
*/
|
|
36
|
-
export declare const OffScreenAdZonePage: (props: OffScreenAdZonePageProps) => React.JSX.Element;
|
|
37
|
-
export {};
|
|
38
|
-
//# sourceMappingURL=OffScreenAdZone.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OffScreenAdZone.d.ts","sourceRoot":"","sources":["../../../../example/src/OffScreenAdZone.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAiB,MAAM,OAAO,CAAC;AAWtC,OAAO,EACH,uBAAuB,EACvB,UAAU,EAEb,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAsB,YAAY,EAAE,MAAM,OAAO,CAAC;AASzD;;GAEG;AACH,UAAU,wBAAwB;IAC9B;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,cAAc,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;CACxC;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAAW,wBAAwB,sBAiNlE,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test app component for testing the
|
|
3
|
-
* {@link AdadaptedReactNativeSdk} package/module.
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { AdadaptedReactNativeSdk, AdZoneInfo } from "../../src/index";
|
|
7
|
-
import { SelectedItem } from "./App";
|
|
8
|
-
/**
|
|
9
|
-
* Props interface for {@link StandardAdZonePage}.
|
|
10
|
-
*/
|
|
11
|
-
interface StandardAdZonePageProps {
|
|
12
|
-
/**
|
|
13
|
-
* The adadapted sdk instance.
|
|
14
|
-
*/
|
|
15
|
-
aaSdk: AdadaptedReactNativeSdk;
|
|
16
|
-
/**
|
|
17
|
-
* The current session's id.
|
|
18
|
-
*/
|
|
19
|
-
sessionId: string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* The ad zones' data.
|
|
22
|
-
*/
|
|
23
|
-
adZoneInfoList: AdZoneInfo[] | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* The selected list items array.
|
|
26
|
-
*/
|
|
27
|
-
selectedItemList: string[];
|
|
28
|
-
/**
|
|
29
|
-
* Adds selected item to grocery list;
|
|
30
|
-
*/
|
|
31
|
-
selectItem(item: SelectedItem): void;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Creates a standard ad zone exmple component.
|
|
35
|
-
*/
|
|
36
|
-
export declare const StandardAdZonePage: (props: StandardAdZonePageProps) => React.JSX.Element;
|
|
37
|
-
export {};
|
|
38
|
-
//# sourceMappingURL=StandardAdZone.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StandardAdZone.d.ts","sourceRoot":"","sources":["../../../../example/src/StandardAdZone.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAiB,MAAM,OAAO,CAAC;AAYtC,OAAO,EACH,uBAAuB,EACvB,UAAU,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAsB,YAAY,EAAE,MAAM,OAAO,CAAC;AASzD;;GAEG;AACH,UAAU,uBAAuB;IAC7B;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,cAAc,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;CACxC;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,sBA+LhE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jest.setup.d.ts","sourceRoot":"","sources":["../../jest.setup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,2BAA2B,CAAC"}
|