@orbit-software/sdk 1.81.1 → 1.83.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/esm/components/OrientationCheck.d.ts +1 -0
- package/dist/esm/components/modals/BoxOpeningModal/AnimatedFullscreen.d.ts +1 -2
- package/dist/esm/components/modals/BoxOpeningModal/PrizeCarousel.d.ts +5 -1
- package/dist/esm/components/modals/BoxOpeningModal/RaysAnimation.d.ts +6 -0
- package/dist/esm/components/modals/BoxOpeningModal/RewardTypeImage.d.ts +4 -3
- package/dist/esm/components/modals/ProfileInventoryModal.d.ts +2 -0
- package/dist/esm/i18n/generated-translation-type.d.ts +8 -0
- package/dist/esm/i18n/index.d.ts +2 -0
- package/dist/esm/i18n/locales/en.json.d.ts +8 -0
- package/dist/esm/i18n/locales/es.json.d.ts +8 -0
- package/dist/esm/i18n/locales/hi.json.d.ts +8 -0
- package/dist/esm/i18n/locales/pt.json.d.ts +8 -0
- package/dist/esm/i18n/locales/ru.json.d.ts +8 -0
- package/dist/esm/sdk.d.ts +8 -0
- package/dist/esm/sdk.mjs +14449 -13936
- package/dist/esm/sdk.umd.js +56 -49
- package/dist/stats-esm.html +1 -1
- package/dist/stats-umd-react.html +1 -1
- package/dist/stats-umd.html +1 -1
- package/dist/umd/sdk.umd.js +56 -49
- package/dist/umd_react/sdk_react.umd.js +102 -95
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OrientationCheck(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -5,10 +5,9 @@ interface AnimatedFullscreenProps {
|
|
|
5
5
|
backgroundImage?: string;
|
|
6
6
|
backgroundColor?: string;
|
|
7
7
|
animationType?: 'scale' | 'fade' | 'circle';
|
|
8
|
-
disableTabbarToggle?: boolean;
|
|
9
8
|
showCloseButton?: boolean;
|
|
10
9
|
overlayImage?: string;
|
|
11
10
|
showOverlay?: boolean;
|
|
12
11
|
}
|
|
13
|
-
export declare const AnimatedFullscreen:
|
|
12
|
+
export declare const AnimatedFullscreen: import('react').MemoExoticComponent<({ isOpen, children, backgroundImage, backgroundColor, animationType, overlayImage, showOverlay, }: AnimatedFullscreenProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
14
13
|
export {};
|
|
@@ -7,6 +7,10 @@ interface PrizeCarouselProps {
|
|
|
7
7
|
actualReward: InventoryReward | null;
|
|
8
8
|
setSpinState: Dispatch<WheelSpinState>;
|
|
9
9
|
isSkipped?: boolean;
|
|
10
|
+
animationPhase?: 'carousel' | 'transition' | 'final';
|
|
11
|
+
isOpeningAnimationComplete?: boolean;
|
|
12
|
+
onCarouselClick?: () => void;
|
|
13
|
+
viewMode?: 'wheel' | 'result';
|
|
10
14
|
}
|
|
11
|
-
export declare const PrizeCarousel: ({ prizes, wheelSpinState, actualReward, setSpinState, isSkipped, }: PrizeCarouselProps) => import("react/jsx-runtime").JSX.Element
|
|
15
|
+
export declare const PrizeCarousel: import('react').MemoExoticComponent<({ prizes, wheelSpinState, actualReward, setSpinState, isSkipped, animationPhase, isOpeningAnimationComplete, onCarouselClick, viewMode, }: PrizeCarouselProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
16
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { WheelSpinState } from '../../../providers/BoxOpeningProvider';
|
|
2
2
|
import { InventoryReward } from '../../../types/api';
|
|
3
|
-
export declare
|
|
3
|
+
export declare const RewardTypeImage: import('react').MemoExoticComponent<({ reward, className, badgeSize, wheelSpinState, shouldShake, }: {
|
|
4
4
|
reward: InventoryReward;
|
|
5
5
|
className: string;
|
|
6
|
-
badgeSize?:
|
|
6
|
+
badgeSize?: "s" | "m";
|
|
7
7
|
wheelSpinState?: WheelSpinState;
|
|
8
|
-
|
|
8
|
+
shouldShake?: boolean;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { InventoryItem } from '../../types/api';
|
|
1
2
|
import { ModalProps } from '@telegram-apps/telegram-ui';
|
|
3
|
+
export declare const getBoxImage: (item: InventoryItem) => any;
|
|
2
4
|
export declare function ProfileInventoryModal({ ...props }: Omit<ModalProps, 'trigger'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,8 @@ export interface TranslationKeys {
|
|
|
14
14
|
openItem: string;
|
|
15
15
|
reward_type: {
|
|
16
16
|
coins: string;
|
|
17
|
+
usdt_no_amount: string;
|
|
18
|
+
coins_no_amount: string;
|
|
17
19
|
usdt: string;
|
|
18
20
|
ton: string;
|
|
19
21
|
telegram_premium: string;
|
|
@@ -24,6 +26,10 @@ export interface TranslationKeys {
|
|
|
24
26
|
box_epic: string;
|
|
25
27
|
box_legend: string;
|
|
26
28
|
};
|
|
29
|
+
confirmIframe: {
|
|
30
|
+
pay: string;
|
|
31
|
+
cancel: string;
|
|
32
|
+
};
|
|
27
33
|
months: {
|
|
28
34
|
january: string;
|
|
29
35
|
february: string;
|
|
@@ -44,12 +50,14 @@ export interface TranslationKeys {
|
|
|
44
50
|
button_reveal_reward: string;
|
|
45
51
|
button_open_now: string;
|
|
46
52
|
button_save_inventory: string;
|
|
53
|
+
button_unopened_boxes: string;
|
|
47
54
|
recent_rewards: string;
|
|
48
55
|
later_open_later_inventory: string;
|
|
49
56
|
};
|
|
50
57
|
common: {
|
|
51
58
|
error: string;
|
|
52
59
|
continue: string;
|
|
60
|
+
ok: string;
|
|
53
61
|
timeAgo: {
|
|
54
62
|
sec: string;
|
|
55
63
|
now: string;
|
package/dist/esm/i18n/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ declare const _default: {
|
|
|
17
17
|
"coins_one": "{{count}} coin",
|
|
18
18
|
"coins_few": "{{count}} coins",
|
|
19
19
|
"coins_many": "{{count}} coins",
|
|
20
|
+
"usdt_no_amount": "USDT",
|
|
21
|
+
"coins_no_amount": "Coins",
|
|
20
22
|
"usdt": "{{count}} USDT",
|
|
21
23
|
"usdt_one": "{{count}} USDT",
|
|
22
24
|
"usdt_few": "{{count}} USDT",
|
|
@@ -33,6 +35,10 @@ declare const _default: {
|
|
|
33
35
|
"box_epic": "EPIC",
|
|
34
36
|
"box_legend": "LEGEND"
|
|
35
37
|
},
|
|
38
|
+
"confirmIframe": {
|
|
39
|
+
"pay": "Pay",
|
|
40
|
+
"cancel": "Cancel"
|
|
41
|
+
},
|
|
36
42
|
"months": {
|
|
37
43
|
"january": "Jan",
|
|
38
44
|
"february": "Feb",
|
|
@@ -53,12 +59,14 @@ declare const _default: {
|
|
|
53
59
|
"button_reveal_reward": "Reveal Reward",
|
|
54
60
|
"button_open_now": "Open Now",
|
|
55
61
|
"button_save_inventory": "Save to Inventory",
|
|
62
|
+
"button_unopened_boxes": "Unopened Loot Boxes",
|
|
56
63
|
"recent_rewards": "Recent rewards",
|
|
57
64
|
"later_open_later_inventory": "You can open it later in inventory"
|
|
58
65
|
},
|
|
59
66
|
"common": {
|
|
60
67
|
"error": "Oops! Something went wrong. Please try again later.",
|
|
61
68
|
"continue": "Continue",
|
|
69
|
+
"ok": "OK",
|
|
62
70
|
"timeAgo": {
|
|
63
71
|
"sec_zero": "{{count}} seconds ago",
|
|
64
72
|
"sec_one": "{{count}} second ago",
|
|
@@ -17,6 +17,8 @@ declare const _default: {
|
|
|
17
17
|
"coins_one": "{{count}} moneda",
|
|
18
18
|
"coins_few": "{{count}} monedas",
|
|
19
19
|
"coins_many": "{{count}} monedas",
|
|
20
|
+
"usdt_no_amount": "USDT",
|
|
21
|
+
"coins_no_amount": "Monedas",
|
|
20
22
|
"usdt": "{{count}} USDT",
|
|
21
23
|
"usdt_one": "{{count}} USDT",
|
|
22
24
|
"usdt_few": "{{count}} USDT",
|
|
@@ -33,6 +35,10 @@ declare const _default: {
|
|
|
33
35
|
"box_epic": "ÉPICA",
|
|
34
36
|
"box_legend": "LEGENDARIA"
|
|
35
37
|
},
|
|
38
|
+
"confirmIframe": {
|
|
39
|
+
"pay": "Pagar",
|
|
40
|
+
"cancel": "Cancelar"
|
|
41
|
+
},
|
|
36
42
|
"months": {
|
|
37
43
|
"january": "Ene",
|
|
38
44
|
"february": "Feb",
|
|
@@ -53,12 +59,14 @@ declare const _default: {
|
|
|
53
59
|
"button_reveal_reward": "Revelar recompensa",
|
|
54
60
|
"button_open_now": "Abrir ahora",
|
|
55
61
|
"button_save_inventory": "Guardar en inventario",
|
|
62
|
+
"button_unopened_boxes": "Inventario",
|
|
56
63
|
"recent_rewards": "Recientes",
|
|
57
64
|
"later_open_later_inventory": "Puedes abrirla más tarde en el inventario"
|
|
58
65
|
},
|
|
59
66
|
"common": {
|
|
60
67
|
"error": "¡Ups! Algo salió mal. Inténtalo de nuevo más tarde.",
|
|
61
68
|
"continue": "Continuar",
|
|
69
|
+
"ok": "OK",
|
|
62
70
|
"timeAgo": {
|
|
63
71
|
"sec_zero": "hace {{count}} segundos",
|
|
64
72
|
"sec_one": "hace {{count}} segundo",
|
|
@@ -17,6 +17,8 @@ declare const _default: {
|
|
|
17
17
|
"coins_one": "{{count}} सिक्का",
|
|
18
18
|
"coins_few": "{{count}} सिक्के",
|
|
19
19
|
"coins_many": "{{count}} सिक्के",
|
|
20
|
+
"coins_no_amount": "सिक्के",
|
|
21
|
+
"usdt_no_amount": "USDT",
|
|
20
22
|
"usdt": "{{count}} USDT",
|
|
21
23
|
"usdt_one": "{{count}} USDT",
|
|
22
24
|
"usdt_few": "{{count}} USDT",
|
|
@@ -33,6 +35,10 @@ declare const _default: {
|
|
|
33
35
|
"box_epic": "महाकाव्य",
|
|
34
36
|
"box_legend": "दंतकथा"
|
|
35
37
|
},
|
|
38
|
+
"confirmIframe": {
|
|
39
|
+
"pay": "भुगतान करें",
|
|
40
|
+
"cancel": "रद्द करें"
|
|
41
|
+
},
|
|
36
42
|
"months": {
|
|
37
43
|
"january": "जन",
|
|
38
44
|
"february": "फ़र",
|
|
@@ -53,12 +59,14 @@ declare const _default: {
|
|
|
53
59
|
"button_reveal_reward": "पुरस्कार प्रकट करें",
|
|
54
60
|
"button_open_now": "अभी खोलें",
|
|
55
61
|
"button_save_inventory": "इन्वेंटरी में सहेजें",
|
|
62
|
+
"button_unopened_boxes": "अनपेट लूट बॉक्स",
|
|
56
63
|
"recent_rewards": "हाल के पुरस्कार",
|
|
57
64
|
"later_open_later_inventory": "आप इसे बाद में इन्वेंटरी में खोल सकते हैं"
|
|
58
65
|
},
|
|
59
66
|
"common": {
|
|
60
67
|
"error": "उफ़! कुछ गलत हो गया। कृपया बाद में फिर प्रयास करें।",
|
|
61
68
|
"continue": "जारी रखें",
|
|
69
|
+
"ok": "ठीक है",
|
|
62
70
|
"timeAgo": {
|
|
63
71
|
"sec_zero": "{{count}} सेकंड पहले",
|
|
64
72
|
"sec_one": "{{count}} सेकंड पहले",
|
|
@@ -17,6 +17,8 @@ declare const _default: {
|
|
|
17
17
|
"coins_one": "{{count}} moeda",
|
|
18
18
|
"coins_few": "{{count}} moedas",
|
|
19
19
|
"coins_many": "{{count}} moedas",
|
|
20
|
+
"usdt_no_amount": "USDT",
|
|
21
|
+
"coins_no_amount": "Moedas",
|
|
20
22
|
"usdt": "{{count}} USDT",
|
|
21
23
|
"usdt_one": "{{count}} USDT",
|
|
22
24
|
"usdt_few": "{{count}} USDT",
|
|
@@ -33,6 +35,10 @@ declare const _default: {
|
|
|
33
35
|
"box_epic": "ÉPICA",
|
|
34
36
|
"box_legend": "LENDÁRIA"
|
|
35
37
|
},
|
|
38
|
+
"confirmIframe": {
|
|
39
|
+
"pay": "Pagar",
|
|
40
|
+
"cancel": "Cancelar"
|
|
41
|
+
},
|
|
36
42
|
"months": {
|
|
37
43
|
"january": "Jan",
|
|
38
44
|
"february": "Fev",
|
|
@@ -53,12 +59,14 @@ declare const _default: {
|
|
|
53
59
|
"button_reveal_reward": "Revelar Recompensa",
|
|
54
60
|
"button_open_now": "Abrir Agora",
|
|
55
61
|
"button_save_inventory": "Salvar no Inventário",
|
|
62
|
+
"button_unopened_boxes": "Inventário",
|
|
56
63
|
"recent_rewards": "Recentes",
|
|
57
64
|
"later_open_later_inventory": "Você pode abrir mais tarde no inventário"
|
|
58
65
|
},
|
|
59
66
|
"common": {
|
|
60
67
|
"error": "Ops! Algo deu errado. Tente novamente mais tarde.",
|
|
61
68
|
"continue": "Continuar",
|
|
69
|
+
"ok": "OK",
|
|
62
70
|
"timeAgo": {
|
|
63
71
|
"sec_zero": "há {{count}} segundos",
|
|
64
72
|
"sec_one": "há {{count}} segundo",
|
|
@@ -17,6 +17,8 @@ declare const _default: {
|
|
|
17
17
|
"coins_one": "{{count}} монета",
|
|
18
18
|
"coins_few": "{{count}} монеты",
|
|
19
19
|
"coins_many": "{{count}} монет",
|
|
20
|
+
"usdt_no_amount": "USDT",
|
|
21
|
+
"coins_no_amount": "Монеты",
|
|
20
22
|
"usdt": "{{count}} USDT",
|
|
21
23
|
"usdt_one": "{{count}} USDT",
|
|
22
24
|
"usdt_few": "{{count}} USDT",
|
|
@@ -33,6 +35,10 @@ declare const _default: {
|
|
|
33
35
|
"box_epic": "ЭПИК",
|
|
34
36
|
"box_legend": "ЛЕГЕНДАРНЫЙ"
|
|
35
37
|
},
|
|
38
|
+
"confirmIframe": {
|
|
39
|
+
"pay": "Оплатить",
|
|
40
|
+
"cancel": "Отменить"
|
|
41
|
+
},
|
|
36
42
|
"months": {
|
|
37
43
|
"january": "янв",
|
|
38
44
|
"february": "фев",
|
|
@@ -53,12 +59,14 @@ declare const _default: {
|
|
|
53
59
|
"button_reveal_reward": "Узнать награду",
|
|
54
60
|
"button_open_now": "Открыть",
|
|
55
61
|
"button_save_inventory": "Оставить в инвентаре",
|
|
62
|
+
"button_unopened_boxes": "Неоткрытые лутбоксы",
|
|
56
63
|
"recent_rewards": "Недавние",
|
|
57
64
|
"later_open_later_inventory": "Можно открыть его позже в инвентаре"
|
|
58
65
|
},
|
|
59
66
|
"common": {
|
|
60
67
|
"error": "Упс! Что-то пошло не так. Попробуй позже.",
|
|
61
68
|
"continue": "Продолжить",
|
|
69
|
+
"ok": "OK",
|
|
62
70
|
"timeAgo": {
|
|
63
71
|
"sec_zero": "{{count}} секунд назад",
|
|
64
72
|
"sec_one": "{{count}} секунду назад",
|
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ interface LaunchResponse {
|
|
|
11
11
|
ads_last_showed: string | Date;
|
|
12
12
|
is_ad_cooldown: boolean;
|
|
13
13
|
launched: number;
|
|
14
|
+
total_launches: number;
|
|
14
15
|
}
|
|
15
16
|
export declare class APIRequestError extends Error {
|
|
16
17
|
status: number;
|
|
@@ -29,6 +30,12 @@ export interface CryptoSteamSDKConfig {
|
|
|
29
30
|
app_url: string;
|
|
30
31
|
}
|
|
31
32
|
export type Audience = 'start_page_default' | 'start_page_few_ads' | 'start_page_no_ads' | 'start_page_games' | 'banner_test';
|
|
33
|
+
export interface ProfileBalances {
|
|
34
|
+
coins: number;
|
|
35
|
+
gems: number;
|
|
36
|
+
ny2026_tickets: number;
|
|
37
|
+
usdt: number;
|
|
38
|
+
}
|
|
32
39
|
export interface CryptoSteamSDKProfile {
|
|
33
40
|
id: number;
|
|
34
41
|
avatar_ug: string;
|
|
@@ -70,6 +77,7 @@ export interface CryptoSteamSDKProfile {
|
|
|
70
77
|
total: number;
|
|
71
78
|
with_comments: number;
|
|
72
79
|
};
|
|
80
|
+
balances: ProfileBalances;
|
|
73
81
|
}
|
|
74
82
|
export interface CryptoSteamSDKShopItem {
|
|
75
83
|
id: number;
|