@kalamba/sdk 0.43.0 → 0.48.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.
@@ -2,8 +2,9 @@
2
2
  * BSD 3-Clause License
3
3
  * Copyright (c) 2026, Kalamba Games Limited
4
4
  */
5
- import { E as Message, at as DeepPartial, b as FreeRound, f as DomainMessagePayload, it as WrapperState, k as MessagePayload, nt as WrapperConfig, q as SdkConfig, u as DomainMessage } from "./i18n-DK-Smr79.cjs";
6
- import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-COZddK-N.cjs";
5
+ import { E as Message, at as DeepPartial, b as FreeRound, f as DomainMessagePayload, it as WrapperState, k as MessagePayload, nt as WrapperConfig, q as SdkConfig, u as DomainMessage } from "./i18n-Dmb3OPNy.cjs";
6
+ import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-BJYAaOQJ.cjs";
7
+ import * as zustand_vanilla0 from "zustand/vanilla";
7
8
 
8
9
  //#region src/common/config/SdkConfigManager.d.ts
9
10
  declare abstract class SdkConfigManager {
@@ -12,7 +13,35 @@ declare abstract class SdkConfigManager {
12
13
  abstract getConfig(): Promise<SdkConfig['ui']>;
13
14
  }
14
15
  //#endregion
16
+ //#region src/common/config/KalambaSdkConfigManager.d.ts
17
+ declare class KalambaSdkConfigManager extends SdkConfigManager {
18
+ getConfig(): Promise<SdkConfig['ui']>;
19
+ get mappedIntegration(): string;
20
+ get mappedBrand(): string;
21
+ mapUiConfig(config: any): DeepPartial<SdkConfig['ui']>;
22
+ fetchOperatorConfig(): Promise<DeepPartial<SdkConfig['ui']>>;
23
+ }
24
+ //#endregion
15
25
  //#region src/wrapper/KalambaSdkWrapper.d.ts
26
+ interface CompatibilityEntry {
27
+ wrapper?: string;
28
+ minSdk: string;
29
+ eol?: string;
30
+ }
31
+ type CompatibilityCheckResult = {
32
+ status: 'compatible';
33
+ sdkVersion?: string;
34
+ eol?: string;
35
+ } | {
36
+ status: 'incompatible';
37
+ sdkVersion: string;
38
+ fallback?: CompatibilityEntry;
39
+ };
40
+ interface CompatibilityOptions {
41
+ version: string;
42
+ manifest: CompatibilityEntry[];
43
+ onCheck: (result: CompatibilityCheckResult, proceed: () => void) => void;
44
+ }
16
45
  interface AddEventListenerOptions {
17
46
  once: boolean;
18
47
  }
@@ -29,15 +58,17 @@ declare class KalambaSdkWrapper {
29
58
  constructor({
30
59
  messagePort,
31
60
  plugins,
32
- sdkConfigManager
61
+ sdkConfigManager,
62
+ compatibility
33
63
  }: {
34
64
  messagePort: Window;
35
65
  plugins: Plugins;
36
66
  sdkConfigManager: new (...args: ConstructorParameters<typeof SdkConfigManager>) => SdkConfigManager;
67
+ compatibility: CompatibilityOptions;
37
68
  });
69
+ get store(): zustand_vanilla0.StoreApi<WrapperState>;
38
70
  get state(): WrapperState;
39
- setState(setter: (currentState: WrapperState) => WrapperState): void;
40
- subscribe(listener: (state: WrapperState) => void): () => void;
71
+ private checkCompatibility;
41
72
  forwardMessages(): void;
42
73
  get config(): WrapperConfig;
43
74
  get sdkConfig(): SdkConfig;
@@ -52,13 +83,4 @@ declare class KalambaSdkWrapper {
52
83
  releaseWakeLock(): Promise<void>;
53
84
  }
54
85
  //#endregion
55
- //#region src/common/config/KalambaSdkConfigManager.d.ts
56
- declare class KalambaSdkConfigManager extends SdkConfigManager {
57
- getConfig(): Promise<SdkConfig['ui']>;
58
- get mappedIntegration(): string;
59
- get mappedBrand(): string;
60
- mapUiConfig(config: any): DeepPartial<SdkConfig['ui']>;
61
- fetchOperatorConfig(): Promise<DeepPartial<SdkConfig['ui']>>;
62
- }
63
- //#endregion
64
- export { KalambaSdkConfigManager, KalambaSdkWrapper, SdkConfigManager };
86
+ export { type CompatibilityCheckResult, type CompatibilityEntry, type CompatibilityOptions, KalambaSdkConfigManager, KalambaSdkWrapper, SdkConfigManager };
package/dist/wrapper.d.ts CHANGED
@@ -2,8 +2,9 @@
2
2
  * BSD 3-Clause License
3
3
  * Copyright (c) 2026, Kalamba Games Limited
4
4
  */
5
- import { E as Message, at as DeepPartial, b as FreeRound, f as DomainMessagePayload, it as WrapperState, k as MessagePayload, nt as WrapperConfig, q as SdkConfig, u as DomainMessage } from "./i18n-BtKlSq1-.js";
6
- import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-Ddzn0JlB.js";
5
+ import { E as Message, at as DeepPartial, b as FreeRound, f as DomainMessagePayload, it as WrapperState, k as MessagePayload, nt as WrapperConfig, q as SdkConfig, u as DomainMessage } from "./i18n-BSkfwQSR.js";
6
+ import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-B4TGbH4C.js";
7
+ import * as zustand_vanilla0 from "zustand/vanilla";
7
8
 
8
9
  //#region src/common/config/SdkConfigManager.d.ts
9
10
  declare abstract class SdkConfigManager {
@@ -12,7 +13,35 @@ declare abstract class SdkConfigManager {
12
13
  abstract getConfig(): Promise<SdkConfig['ui']>;
13
14
  }
14
15
  //#endregion
16
+ //#region src/common/config/KalambaSdkConfigManager.d.ts
17
+ declare class KalambaSdkConfigManager extends SdkConfigManager {
18
+ getConfig(): Promise<SdkConfig['ui']>;
19
+ get mappedIntegration(): string;
20
+ get mappedBrand(): string;
21
+ mapUiConfig(config: any): DeepPartial<SdkConfig['ui']>;
22
+ fetchOperatorConfig(): Promise<DeepPartial<SdkConfig['ui']>>;
23
+ }
24
+ //#endregion
15
25
  //#region src/wrapper/KalambaSdkWrapper.d.ts
26
+ interface CompatibilityEntry {
27
+ wrapper?: string;
28
+ minSdk: string;
29
+ eol?: string;
30
+ }
31
+ type CompatibilityCheckResult = {
32
+ status: 'compatible';
33
+ sdkVersion?: string;
34
+ eol?: string;
35
+ } | {
36
+ status: 'incompatible';
37
+ sdkVersion: string;
38
+ fallback?: CompatibilityEntry;
39
+ };
40
+ interface CompatibilityOptions {
41
+ version: string;
42
+ manifest: CompatibilityEntry[];
43
+ onCheck: (result: CompatibilityCheckResult, proceed: () => void) => void;
44
+ }
16
45
  interface AddEventListenerOptions {
17
46
  once: boolean;
18
47
  }
@@ -29,15 +58,17 @@ declare class KalambaSdkWrapper {
29
58
  constructor({
30
59
  messagePort,
31
60
  plugins,
32
- sdkConfigManager
61
+ sdkConfigManager,
62
+ compatibility
33
63
  }: {
34
64
  messagePort: Window;
35
65
  plugins: Plugins;
36
66
  sdkConfigManager: new (...args: ConstructorParameters<typeof SdkConfigManager>) => SdkConfigManager;
67
+ compatibility: CompatibilityOptions;
37
68
  });
69
+ get store(): zustand_vanilla0.StoreApi<WrapperState>;
38
70
  get state(): WrapperState;
39
- setState(setter: (currentState: WrapperState) => WrapperState): void;
40
- subscribe(listener: (state: WrapperState) => void): () => void;
71
+ private checkCompatibility;
41
72
  forwardMessages(): void;
42
73
  get config(): WrapperConfig;
43
74
  get sdkConfig(): SdkConfig;
@@ -52,13 +83,4 @@ declare class KalambaSdkWrapper {
52
83
  releaseWakeLock(): Promise<void>;
53
84
  }
54
85
  //#endregion
55
- //#region src/common/config/KalambaSdkConfigManager.d.ts
56
- declare class KalambaSdkConfigManager extends SdkConfigManager {
57
- getConfig(): Promise<SdkConfig['ui']>;
58
- get mappedIntegration(): string;
59
- get mappedBrand(): string;
60
- mapUiConfig(config: any): DeepPartial<SdkConfig['ui']>;
61
- fetchOperatorConfig(): Promise<DeepPartial<SdkConfig['ui']>>;
62
- }
63
- //#endregion
64
- export { KalambaSdkConfigManager, KalambaSdkWrapper, SdkConfigManager };
86
+ export { type CompatibilityCheckResult, type CompatibilityEntry, type CompatibilityOptions, KalambaSdkConfigManager, KalambaSdkWrapper, SdkConfigManager };