@kontextso/sdk-react-native 4.0.0-rc.4 → 4.0.0-rc.5

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.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Session } from '@kontextso/sdk-js/src/Session';
3
- import { GlobalConfig, SessionConfig, Message } from '@kontextso/sdk-js/src/Interface';
2
+ import { Session, GlobalConfig, SessionConfig, Message } from '@kontextso/sdk-js';
4
3
 
5
4
  interface InlineAdProps {
6
5
  messageId: string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Session } from '@kontextso/sdk-js/src/Session';
3
- import { GlobalConfig, SessionConfig, Message } from '@kontextso/sdk-js/src/Interface';
2
+ import { Session, GlobalConfig, SessionConfig, Message } from '@kontextso/sdk-js';
4
3
 
5
4
  interface InlineAdProps {
6
5
  messageId: string;
package/dist/index.js CHANGED
@@ -179,12 +179,11 @@ var InlineAd = ({ messageId, session, onDebugEvent }) => {
179
179
  };
180
180
 
181
181
  // src/KontextAds.ts
182
- var import_Session = require("@kontextso/sdk-js/src/Session");
183
- var import_Configuration = require("@kontextso/sdk-js/src/Configuration");
182
+ var import_sdk_js = require("@kontextso/sdk-js");
184
183
  var import_react_native = require("react-native");
185
184
 
186
185
  // package.json
187
- var version = "4.0.0-rc.4";
186
+ var version = "4.0.0-rc.5";
188
187
 
189
188
  // src/KontextAds.ts
190
189
  var getSdkConfig = () => ({
@@ -202,7 +201,7 @@ var KontextAds = (config) => {
202
201
  };
203
202
  var createSession = (options) => {
204
203
  const sdk = getSdkConfig();
205
- const instance = new import_Session.Session(new import_Configuration.Configuration(options), { sdk });
204
+ const instance = new import_sdk_js.Session(new import_sdk_js.Configuration(options), { sdk });
206
205
  return {
207
206
  addMessage: (message) => {
208
207
  instance.addMessage(message);
package/dist/index.mjs CHANGED
@@ -152,12 +152,11 @@ var InlineAd = ({ messageId, session, onDebugEvent }) => {
152
152
  };
153
153
 
154
154
  // src/KontextAds.ts
155
- import { Session } from "@kontextso/sdk-js/src/Session";
156
- import { Configuration } from "@kontextso/sdk-js/src/Configuration";
155
+ import { Session, Configuration } from "@kontextso/sdk-js";
157
156
  import { Platform } from "react-native";
158
157
 
159
158
  // package.json
160
- var version = "4.0.0-rc.4";
159
+ var version = "4.0.0-rc.5";
161
160
 
162
161
  // src/KontextAds.ts
163
162
  var getSdkConfig = () => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontextso/sdk-react-native",
3
- "version": "4.0.0-rc.4",
3
+ "version": "4.0.0-rc.5",
4
4
  "description": "Kontext SDK for React Native",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -52,7 +52,7 @@
52
52
  "react-native-webview": "^13.10.0"
53
53
  },
54
54
  "dependencies": {
55
- "@kontextso/sdk-js": "^2.0.0-rc.1"
55
+ "@kontextso/sdk-js": "^2.0.0-rc.2"
56
56
  },
57
57
  "files": [
58
58
  "dist/*",
package/src/InlineAd.tsx CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  makeIframeMessage,
8
8
  } from '@kontextso/sdk-common'
9
9
 
10
- import type { Session } from '@kontextso/sdk-js/src/Session'
10
+ import type { Session } from '@kontextso/sdk-js'
11
11
  import { useRef, useEffect, useState, useCallback } from 'react'
12
12
  import { WebView, type WebViewMessageEvent } from 'react-native-webview'
13
13
 
package/src/KontextAds.ts CHANGED
@@ -1,6 +1,5 @@
1
- import type { ConfigOptions, Message, SDKConfig, GlobalConfig, SessionConfig } from '@kontextso/sdk-js/src/Interface'
2
- import { Session } from '@kontextso/sdk-js/src/Session'
3
- import { Configuration } from '@kontextso/sdk-js/src/Configuration'
1
+ import type { ConfigOptions, Message, SDKConfig, GlobalConfig, SessionConfig } from '@kontextso/sdk-js'
2
+ import { Session, Configuration } from '@kontextso/sdk-js'
4
3
  import { Platform } from 'react-native'
5
4
  import * as packageJson from '../package.json'
6
5