@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.
- package/dist/{errors-BUjKnbx5.cjs → errors-DXZbBm5R.cjs} +2 -0
- package/dist/{errors-CakYyMwc.js → errors-DpQKmNNj.js} +2 -0
- package/dist/{i18n-DK-Smr79.d.cts → i18n-BSkfwQSR.d.ts} +5 -0
- package/dist/{i18n-By5KuEqp.cjs → i18n-CV3tQcqY.cjs} +8 -0
- package/dist/{i18n-BtKlSq1-.d.ts → i18n-Dmb3OPNy.d.cts} +5 -0
- package/dist/{i18n-x1i0_DY3.js → i18n-DnUnXoF3.js} +8 -0
- package/dist/{index-Ddzn0JlB.d.ts → index-B4TGbH4C.d.ts} +1 -1
- package/dist/{index-COZddK-N.d.cts → index-BJYAaOQJ.d.cts} +1 -1
- package/dist/index.cjs +9 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -3
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.d.cts +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.js +1 -1
- package/dist/wrapper.cjs +764 -716
- package/dist/wrapper.d.cts +37 -15
- package/dist/wrapper.d.ts +37 -15
- package/dist/wrapper.js +764 -716
- package/package.json +3 -2
package/dist/wrapper.d.cts
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-
|
|
6
|
-
import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
6
|
-
import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|