@kontextso/sdk-react-native 1.0.5 → 2.0.0-rc.2
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/dist/index.js +2 -1
- package/dist/index.mjs +5 -4
- package/package.json +7 -4
package/dist/index.js
CHANGED
|
@@ -80,7 +80,7 @@ var Format = ({ code, messageId, wrapper, ...otherParams }) => {
|
|
|
80
80
|
context?.captureError(new Error("Processing iframe error"));
|
|
81
81
|
};
|
|
82
82
|
const debug = (name, data = {}) => {
|
|
83
|
-
context?.onDebugEventInternal(name, {
|
|
83
|
+
context?.onDebugEventInternal?.(name, {
|
|
84
84
|
code,
|
|
85
85
|
messageId,
|
|
86
86
|
otherParams,
|
|
@@ -240,6 +240,7 @@ ErrorUtils.setGlobalHandler((error, isFatal) => {
|
|
|
240
240
|
import_sdk_react2.log.error(error);
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
+
console.log("AdsProviderInternal", import_sdk_react2.AdsProviderInternal);
|
|
243
244
|
// Annotate the CommonJS export names for ESM import in node:
|
|
244
245
|
0 && (module.exports = {
|
|
245
246
|
AdsProvider,
|
package/dist/index.mjs
CHANGED
|
@@ -53,7 +53,7 @@ var Format = ({ code, messageId, wrapper, ...otherParams }) => {
|
|
|
53
53
|
context?.captureError(new Error("Processing iframe error"));
|
|
54
54
|
};
|
|
55
55
|
const debug = (name, data = {}) => {
|
|
56
|
-
context?.onDebugEventInternal(name, {
|
|
56
|
+
context?.onDebugEventInternal?.(name, {
|
|
57
57
|
code,
|
|
58
58
|
messageId,
|
|
59
59
|
otherParams,
|
|
@@ -204,8 +204,8 @@ var InlineAd = ({ code, messageId, wrapper, ...props }) => {
|
|
|
204
204
|
var InlineAd_default = InlineAd;
|
|
205
205
|
|
|
206
206
|
// src/context/AdsProvider.tsx
|
|
207
|
-
import { log } from "@kontextso/sdk-react";
|
|
208
|
-
import { AdsProvider } from "@kontextso/sdk-react";
|
|
207
|
+
import { AdsProviderInternal, log } from "@kontextso/sdk-react";
|
|
208
|
+
import { AdsProvider as AdsProvider2 } from "@kontextso/sdk-react";
|
|
209
209
|
ErrorUtils.setGlobalHandler((error, isFatal) => {
|
|
210
210
|
if (!isFatal) {
|
|
211
211
|
log.warn(error);
|
|
@@ -213,7 +213,8 @@ ErrorUtils.setGlobalHandler((error, isFatal) => {
|
|
|
213
213
|
log.error(error);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
|
+
console.log("AdsProviderInternal", AdsProviderInternal);
|
|
216
217
|
export {
|
|
217
|
-
AdsProvider,
|
|
218
|
+
AdsProvider2 as AdsProvider,
|
|
218
219
|
InlineAd_default as InlineAd
|
|
219
220
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kontextso/sdk-react-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
"react": "^18.3.1",
|
|
38
38
|
"react-dom": "^18.3.1",
|
|
39
39
|
"react-native": "^0.80.1",
|
|
40
|
+
"react-native-device-info": ">=12.0.0",
|
|
41
|
+
"react-native-webview": "^13.15.0",
|
|
40
42
|
"react-test-renderer": "^18.3.1",
|
|
41
43
|
"tsup": "^8.0.2",
|
|
42
44
|
"typescript": "^5.3.3",
|
|
@@ -44,11 +46,12 @@
|
|
|
44
46
|
},
|
|
45
47
|
"peerDependencies": {
|
|
46
48
|
"react": ">=18.0.0",
|
|
47
|
-
"react-native": ">=0.73.0"
|
|
49
|
+
"react-native": ">=0.73.0",
|
|
50
|
+
"react-native-device-info": ">=12.0.0",
|
|
51
|
+
"react-native-webview": "^13.15.0"
|
|
48
52
|
},
|
|
49
53
|
"dependencies": {
|
|
50
|
-
"@kontextso/sdk-react": "^1.2.
|
|
51
|
-
"react-native-webview": "^13.15.0"
|
|
54
|
+
"@kontextso/sdk-react": "^1.2.1"
|
|
52
55
|
},
|
|
53
56
|
"files": [
|
|
54
57
|
"dist/*"
|