@betorigami/game-ui-shared 1.1.1 → 1.2.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.
Files changed (34) hide show
  1. package/dist/components/shared/FairnessDetails/FairnessContent.d.ts +6 -4
  2. package/dist/components/shared/FairnessDetails/FairnessDetails.d.ts +0 -1
  3. package/dist/components/shared/GameComponent.d.ts +4 -0
  4. package/dist/components/shared/GameLayout/GameLayout.d.ts +1 -0
  5. package/dist/components/shared/GameProviderWrapper.d.ts +2 -0
  6. package/dist/components/shared/SessionLock/SessionLock.d.ts +10 -0
  7. package/dist/components/shared/SessionLock/SessionLock.styles.d.ts +1 -0
  8. package/dist/components/shared/context/game.context.d.ts +1 -0
  9. package/dist/controllers/history.controller.d.ts +15 -1
  10. package/dist/controllers/hotkey.controller.d.ts +1 -0
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.mjs +2398 -2121
  13. package/dist/shared/bet.types.d.ts +2 -0
  14. package/dist/shared/event-map.d.ts +1 -0
  15. package/dist/shared/provider-api/error-codes.d.ts +1 -0
  16. package/dist/translations/ar.json.d.ts +6 -0
  17. package/dist/translations/de.json.d.ts +6 -0
  18. package/dist/translations/en-soc.json.d.ts +6 -0
  19. package/dist/translations/en.json.d.ts +7 -0
  20. package/dist/translations/es.json.d.ts +6 -0
  21. package/dist/translations/fi.json.d.ts +6 -0
  22. package/dist/translations/fr.json.d.ts +6 -0
  23. package/dist/translations/hi.json.d.ts +6 -0
  24. package/dist/translations/id.json.d.ts +6 -0
  25. package/dist/translations/index.d.ts +103 -0
  26. package/dist/translations/ja.json.d.ts +6 -0
  27. package/dist/translations/ko.json.d.ts +6 -0
  28. package/dist/translations/pl.json.d.ts +6 -0
  29. package/dist/translations/pt.json.d.ts +6 -0
  30. package/dist/translations/ru.json.d.ts +6 -0
  31. package/dist/translations/tr.json.d.ts +6 -0
  32. package/dist/translations/vi.json.d.ts +6 -0
  33. package/dist/translations/zh.json.d.ts +6 -0
  34. package/package.json +1 -1
@@ -2,6 +2,7 @@ import { DiceDirection } from './calculations/games/dice';
2
2
  import { KenoRiskLevel } from './calculations/games/keno';
3
3
  import { Currency } from './constants';
4
4
  import { OrigamiActionType } from './origami-action.type';
5
+ import { ErrorCode } from './provider-api/error-codes';
5
6
  import { RouletteType, Parity, Color, Half, Column, Dozen, BaccaratGameOutputs, BaccaratGameInputs, PlayResult, CardDto, AdvancedDiceSelection, PlinkoRiskLevel, PlinkoRowCount } from '@betorigami/game-calculations';
6
7
  import { AfterBetEffect } from '../components/shared/GenericAutobet/GenericAutobet';
7
8
  export type DiceStartAction = {
@@ -166,6 +167,7 @@ export type StartBetResponse = {
166
167
  } | {
167
168
  success: false;
168
169
  error: string;
170
+ errorCode?: ErrorCode;
169
171
  };
170
172
  export type AutobetApiSettings = {
171
173
  onWinStrategy: AfterBetEffect;
@@ -284,6 +284,7 @@ declare global {
284
284
  'bet-result-modal-back': BetResultModalBackEvent;
285
285
  'fairness-details-back': FairnessDetailsBackEvent;
286
286
  'footer-verify-click': CustomEvent;
287
+ 'session-expired': CustomEvent;
287
288
  'alert-close': AlertCloseEvent;
288
289
  'show-alert': ShowAlertEvent;
289
290
  'range-slider-change': RangeSliderChangeEvent;
@@ -1,6 +1,7 @@
1
1
  import { TranslationKey } from '../../translations';
2
2
  export declare enum ErrorCode {
3
3
  INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE",
4
+ INVALID_TOKEN = "INVALID_TOKEN",
4
5
  LIMIT_REACHED = "LIMIT_REACHED",
5
6
  BET_AMOUNT_TOO_LOW = "BET_AMOUNT_TOO_LOW",
6
7
  UNKNOWN = "UNKNOWN"
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "betAmountAboveMaxBet": "الحد الأقصى للرهان هو {value}",
9
9
  "betAmountBelowMinBet": "الحد الأدنى للرهان هو {value}",
10
10
  "betLimitReached": "تم الوصول إلى حد الرهان",
11
+ "blackjackActionError": "حدث خطأ أثناء تنفيذ إجرائك. تم حفظ لعبتك. يرجى إعادة فتح اللعبة للمتابعة.",
11
12
  "errorProcessingBet": "حدث خطأ أثناء معالجة رهانك. يرجى المحاولة مرة أخرى.",
12
13
  "failedToLoadBetData": "فشل في تحميل بيانات الرهان",
13
14
  "gameError": "حدث خطأ أثناء معالجة رهانك. يرجى المحاولة مرة أخرى.",
@@ -108,6 +109,7 @@ declare const _default: {
108
109
  },
109
110
  "fairness": {
110
111
  "activeClientSeed": "بذرة العميل النشطة",
112
+ "currentNonce": "nonce الحالي",
111
113
  "enterClientSeed": "أدخل clientSeed",
112
114
  "enterProof": "أدخل الدليل",
113
115
  "enterPublicKey": "أدخل المفتاح العام",
@@ -400,6 +402,10 @@ declare const _default: {
400
402
  "gameArea": "منطقة اللعبة",
401
403
  "gameControls": "عناصر التحكم في اللعبة",
402
404
  "gameInfo": "معلومات اللعبة"
405
+ },
406
+ "session": {
407
+ "expiredTitle": "انتهت الجلسة",
408
+ "expiredBody": "أعد تحميل اللعبة أو ابدأ جلسة جديدة للمتابعة."
403
409
  }
404
410
  }
405
411
  ;
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "betAmountAboveMaxBet": "Der maximale Einsatz beträgt {value}",
9
9
  "betAmountBelowMinBet": "Der Mindesteinsatz beträgt {value}",
10
10
  "betLimitReached": "Einsatzlimit erreicht",
11
+ "blackjackActionError": "Beim Ausführen Ihrer Aktion ist ein Fehler aufgetreten. Ihr Spiel wurde gespeichert. Bitte öffnen Sie das Spiel erneut, um fortzufahren.",
11
12
  "errorProcessingBet": "Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",
12
13
  "failedToLoadBetData": "Fehler beim Laden der Wettdaten",
13
14
  "gameError": "Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",
@@ -108,6 +109,7 @@ declare const _default: {
108
109
  },
109
110
  "fairness": {
110
111
  "activeClientSeed": "Aktiver Client Seed",
112
+ "currentNonce": "Aktuelle Nonce",
111
113
  "enterClientSeed": "Client Seed eingeben",
112
114
  "enterProof": "Beweis eingeben",
113
115
  "enterPublicKey": "Öffentlichen Schlüssel eingeben",
@@ -400,6 +402,10 @@ declare const _default: {
400
402
  "gameArea": "Spielbereich",
401
403
  "gameControls": "Spielsteuerung",
402
404
  "gameInfo": "Spielinformationen"
405
+ },
406
+ "session": {
407
+ "expiredTitle": "Sitzung abgelaufen",
408
+ "expiredBody": "Lade das Spiel neu oder starte eine neue Sitzung, um weiterzuspielen."
403
409
  }
404
410
  }
405
411
  ;
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "betAmountAboveMaxBet": "Maximum entry is {value}",
9
9
  "betAmountBelowMinBet": "Minimum entry is {value}",
10
10
  "betLimitReached": "Entry limit reached",
11
+ "blackjackActionError": "There was an error executing your action. Your game has been saved. Please reopen the game to continue.",
11
12
  "errorProcessingBet": "There was an error. Please try again.",
12
13
  "failedToLoadBetData": "Failed to load round details",
13
14
  "gameError": "There was an error. Please try again.",
@@ -108,6 +109,7 @@ declare const _default: {
108
109
  },
109
110
  "fairness": {
110
111
  "activeClientSeed": "Active Client Seed",
112
+ "currentNonce": "Current Nonce",
111
113
  "enterClientSeed": "Enter Client Seed",
112
114
  "enterProof": "Enter Proof",
113
115
  "enterPublicKey": "Enter Public Key",
@@ -400,6 +402,10 @@ declare const _default: {
400
402
  "gameArea": "Game Area",
401
403
  "gameControls": "Game Controls",
402
404
  "gameInfo": "Game Info"
405
+ },
406
+ "session": {
407
+ "expiredTitle": "Session Expired",
408
+ "expiredBody": "Reload the game or start a new session to keep playing."
403
409
  }
404
410
  }
405
411
  ;
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  "betAmountBelowMinBet": "Minimum bet is {value}",
10
10
  "betAmountTooLow": "Bet amount is below the minimum",
11
11
  "betLimitReached": "Bet limit reached",
12
+ "blackjackActionError": "There was an error executing your action. Your game has been saved. Please reopen the game to continue.",
12
13
  "errorProcessingBet": "There was an error processing your bet. Please try again.",
13
14
  "failedToLoadBetData": "Failed to load bet data",
14
15
  "gameError": "There was an error processing your bet. Please try again.",
@@ -110,6 +111,7 @@ declare const _default: {
110
111
  },
111
112
  "fairness": {
112
113
  "activeClientSeed": "Active Client Seed",
114
+ "currentNonce": "Current Nonce",
113
115
  "enterClientSeed": "Enter Client Seed",
114
116
  "enterProof": "Enter Proof",
115
117
  "enterPublicKey": "Enter Public Key",
@@ -138,6 +140,7 @@ declare const _default: {
138
140
  "provablyFair": "Provably Fair",
139
141
  "publicKey": "Active Public Key",
140
142
  "randomness": "Randomness",
143
+ "saveClientSeedFailed": "Your client seed could not be saved. Please try again.",
141
144
  "saveClientSeed": "Save Client Seed",
142
145
  "seed": "Seed",
143
146
  "verifyIndependently": "Verify Independently"
@@ -402,6 +405,10 @@ declare const _default: {
402
405
  "gameArea": "Game Area",
403
406
  "gameControls": "Game Controls",
404
407
  "gameInfo": "Game Info"
408
+ },
409
+ "session": {
410
+ "expiredTitle": "Session Expired",
411
+ "expiredBody": "Reload the game or start a new session to keep playing."
405
412
  }
406
413
  }
407
414
  ;
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "betAmountAboveMaxBet": "La apuesta máxima es {value}",
9
9
  "betAmountBelowMinBet": "La apuesta mínima es {value}",
10
10
  "betLimitReached": "Límite de apuesta alcanzado",
11
+ "blackjackActionError": "Hubo un error al ejecutar tu acción. Tu partida se ha guardado. Por favor, vuelve a abrir el juego para continuar.",
11
12
  "errorProcessingBet": "Hubo un error al procesar tu apuesta. Por favor, inténtalo de nuevo.",
12
13
  "failedToLoadBetData": "No se pudo cargar la información de la apuesta",
13
14
  "gameError": "Hubo un error al procesar tu apuesta. Por favor, inténtalo de nuevo.",
@@ -108,6 +109,7 @@ declare const _default: {
108
109
  },
109
110
  "fairness": {
110
111
  "activeClientSeed": "Semilla de cliente activa",
112
+ "currentNonce": "Nonce actual",
111
113
  "enterClientSeed": "Ingresa clientSeed",
112
114
  "enterProof": "Ingresar prueba",
113
115
  "enterPublicKey": "Ingresar clave pública",
@@ -400,6 +402,10 @@ declare const _default: {
400
402
  "gameArea": "Área de Juego",
401
403
  "gameControls": "Controles del juego",
402
404
  "gameInfo": "Información del juego"
405
+ },
406
+ "session": {
407
+ "expiredTitle": "Sesión expirada",
408
+ "expiredBody": "Recarga el juego o inicia una nueva sesión para seguir jugando."
403
409
  }
404
410
  }
405
411
  ;
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "betAmountAboveMaxBet": "Suurin panos on {value}",
9
9
  "betAmountBelowMinBet": "Minimipanos on {value}",
10
10
  "betLimitReached": "Panosraja saavutettu",
11
+ "blackjackActionError": "Toimintosi suorittamisessa tapahtui virhe. Pelisi on tallennettu. Avaa peli uudelleen jatkaaksesi.",
11
12
  "errorProcessingBet": "Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",
12
13
  "failedToLoadBetData": "Vedon tietojen lataaminen epäonnistui",
13
14
  "gameError": "Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",
@@ -108,6 +109,7 @@ declare const _default: {
108
109
  },
109
110
  "fairness": {
110
111
  "activeClientSeed": "Aktiivinen clientSeed",
112
+ "currentNonce": "Nykyinen nonce",
111
113
  "enterClientSeed": "Syötä client seed",
112
114
  "enterProof": "Syötä todiste",
113
115
  "enterPublicKey": "Syötä julkinen avain",
@@ -400,6 +402,10 @@ declare const _default: {
400
402
  "gameArea": "Peliaula",
401
403
  "gameControls": "Pelikontrollit",
402
404
  "gameInfo": "Pelitiedot"
405
+ },
406
+ "session": {
407
+ "expiredTitle": "Istunto vanhentui",
408
+ "expiredBody": "Lataa peli uudelleen tai aloita uusi istunto jatkaaksesi pelaamista."
403
409
  }
404
410
  }
405
411
  ;
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "betAmountAboveMaxBet": "La mise maximale est de {value}",
9
9
  "betAmountBelowMinBet": "La mise minimale est de {value}",
10
10
  "betLimitReached": "Limite de mise atteinte",
11
+ "blackjackActionError": "Une erreur s'est produite lors de l'exécution de votre action. Votre partie a été sauvegardée. Veuillez rouvrir le jeu pour continuer.",
11
12
  "errorProcessingBet": "Une erreur s'est produite lors du traitement de votre mise. Veuillez réessayer.",
12
13
  "failedToLoadBetData": "Échec du chargement des données de pari",
13
14
  "gameError": "Une erreur s'est produite lors du traitement de votre mise. Veuillez réessayer.",
@@ -108,6 +109,7 @@ declare const _default: {
108
109
  },
109
110
  "fairness": {
110
111
  "activeClientSeed": "Graine cliente active",
112
+ "currentNonce": "Nonce actuel",
111
113
  "enterClientSeed": "Entrez la graine client",
112
114
  "enterProof": "Entrer la preuve",
113
115
  "enterPublicKey": "Entrer la clé publique",
@@ -400,6 +402,10 @@ declare const _default: {
400
402
  "gameArea": "Zone de jeu",
401
403
  "gameControls": "Contrôles du jeu",
402
404
  "gameInfo": "Infos du jeu"
405
+ },
406
+ "session": {
407
+ "expiredTitle": "Session expirée",
408
+ "expiredBody": "Recharge le jeu ou démarre une nouvelle session pour continuer à jouer."
403
409
  }
404
410
  }
405
411
  ;
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "betAmountAboveMaxBet": "अधिकतम शर्त {value} है",
9
9
  "betAmountBelowMinBet": "न्यूनतम शर्त {value} है",
10
10
  "betLimitReached": "शर्त सीमा पहुँच गई",
11
+ "blackjackActionError": "आपकी कार्रवाई करते समय एक त्रुटि हुई। आपका खेल सहेज लिया गया है। जारी रखने के लिए कृपया खेल फिर से खोलें।",
11
12
  "errorProcessingBet": "आपकी शर्त प्रक्रिया करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",
12
13
  "failedToLoadBetData": "शर्त डेटा लोड करने में विफल",
13
14
  "gameError": "आपकी शर्त प्रक्रिया करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",
@@ -108,6 +109,7 @@ declare const _default: {
108
109
  },
109
110
  "fairness": {
110
111
  "activeClientSeed": "सक्रिय क्लाइंट सीड",
112
+ "currentNonce": "वर्तमान nonce",
111
113
  "enterClientSeed": "क्लाइंट सीड दर्ज करें",
112
114
  "enterProof": "प्रमाण दर्ज करें",
113
115
  "enterPublicKey": "सार्वजनिक कुंजी दर्ज करें",
@@ -400,6 +402,10 @@ declare const _default: {
400
402
  "gameArea": "गेम क्षेत्र",
401
403
  "gameControls": "गेम नियंत्रण",
402
404
  "gameInfo": "खेल जानकारी"
405
+ },
406
+ "session": {
407
+ "expiredTitle": "सत्र समाप्त हो गया",
408
+ "expiredBody": "खेल जारी रखने के लिए गेम रीलोड करें या नया सत्र शुरू करें।"
403
409
  }
404
410
  }
405
411
  ;
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  "betAmountAboveMaxBet": "Taruhan maksimum adalah {value}",
9
9
  "betAmountBelowMinBet": "Taruhan minimum adalah {value}",
10
10
  "betLimitReached": "Batas taruhan tercapai",
11
+ "blackjackActionError": "Terjadi kesalahan saat menjalankan tindakan Anda. Permainan Anda telah disimpan. Silakan buka kembali permainan untuk melanjutkan.",
11
12
  "errorProcessingBet": "Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",
12
13
  "failedToLoadBetData": "Gagal memuat data taruhan",
13
14
  "gameError": "Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",
@@ -108,6 +109,7 @@ declare const _default: {
108
109
  },
109
110
  "fairness": {
110
111
  "activeClientSeed": "Client Seed Aktif",
112
+ "currentNonce": "Nonce Saat Ini",
111
113
  "enterClientSeed": "Masukkan Client Seed",
112
114
  "enterProof": "Masukkan Bukti",
113
115
  "enterPublicKey": "Masukkan Kunci Publik",
@@ -400,6 +402,10 @@ declare const _default: {
400
402
  "gameArea": "Area Permainan",
401
403
  "gameControls": "Kontrol Permainan",
402
404
  "gameInfo": "Informasi Game"
405
+ },
406
+ "session": {
407
+ "expiredTitle": "Sesi berakhir",
408
+ "expiredBody": "Muat ulang permainan atau mulai sesi baru untuk terus bermain."
403
409
  }
404
410
  }
405
411
  ;