@betorigami/games 3.1.0 → 3.2.1
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/components/advanced-dice/AdvancedDiceContent/AdvancedDiceContent.d.ts +1 -1
- package/dist/components/advanced-dice/AdvancedDiceContentBottom/AdvancedDiceContentBottom.d.ts +1 -3
- package/dist/components/advanced-dice/AdvancedDiceControls/AdvancedDiceAuto.d.ts +1 -2
- package/dist/components/advanced-dice/AdvancedDiceControls/AdvancedDiceManual.d.ts +1 -2
- package/dist/components/advanced-dice/AdvancedDiceGame.d.ts +1 -1
- package/dist/components/advanced-dice/AdvancedDiceSlider/AdvancedDiceSlider.d.ts +1 -2
- package/dist/components/advanced-dice/advanced-dice.api.d.ts +1 -2
- package/dist/components/advanced-dice/advanced-dice.constants.d.ts +1 -1
- package/dist/components/advanced-dice/advanced-dice.info.d.ts +2 -0
- package/dist/components/advanced-dice/advanced-dice.mock.api.d.ts +1 -1
- package/dist/components/advanced-dice/advanced-dice.types.d.ts +3 -9
- package/dist/components/advanced-dice/index.d.ts +2 -0
- package/dist/components/baccarat/BaccaratContent/BaccaratContent.d.ts +1 -2
- package/dist/components/baccarat/BaccaratControls/BaccaratAuto.d.ts +1 -2
- package/dist/components/baccarat/BaccaratControls/BaccaratManual.d.ts +1 -2
- package/dist/components/baccarat/BaccaratDisplay/BaccaratDisplay.d.ts +1 -1
- package/dist/components/baccarat/BaccaratGame.d.ts +1 -4
- package/dist/components/baccarat/baccarat.api.d.ts +1 -3
- package/dist/components/baccarat/baccarat.info.d.ts +2 -0
- package/dist/components/baccarat/baccarat.mock.api.d.ts +1 -1
- package/dist/components/baccarat/baccarat.types.d.ts +1 -1
- package/dist/components/baccarat/baccarat.utils.d.ts +1 -1
- package/dist/components/baccarat/index.d.ts +2 -0
- package/dist/components/blackjack/BlackjackContent/BlackjackContent.d.ts +1 -1
- package/dist/components/blackjack/BlackjackControls/BlackjackManual.d.ts +1 -2
- package/dist/components/blackjack/BlackjackGame.d.ts +1 -2
- package/dist/components/blackjack/BlackjackSideBetOnboarding/BlackjackSideBetOnboarding.d.ts +1 -1
- package/dist/components/blackjack/actions/betController.d.ts +1 -1
- package/dist/components/blackjack/blackjack.api.d.ts +1 -2
- package/dist/components/blackjack/blackjack.helpers.d.ts +1 -1
- package/dist/components/blackjack/blackjack.info.d.ts +2 -0
- package/dist/components/blackjack/blackjack.mock.api.d.ts +1 -2
- package/dist/components/blackjack/index.d.ts +2 -0
- package/dist/components/blitz/BlitzContent/BlitzCard.d.ts +1 -1
- package/dist/components/blitz/BlitzContent/BlitzCardContainer.d.ts +1 -1
- package/dist/components/blitz/BlitzContent/BlitzContent.d.ts +1 -1
- package/dist/components/blitz/BlitzControls/BlitzAuto.d.ts +1 -3
- package/dist/components/blitz/BlitzControls/BlitzManual.d.ts +1 -3
- package/dist/components/blitz/BlitzControls/BlitzPicksInput.d.ts +1 -2
- package/dist/components/blitz/BlitzGame.d.ts +1 -1
- package/dist/components/blitz/blitz.api.d.ts +1 -2
- package/dist/components/blitz/blitz.info.d.ts +2 -0
- package/dist/components/blitz/index.d.ts +2 -0
- package/dist/components/diamonds/DiamondsContent/DiamondSlot.d.ts +1 -2
- package/dist/components/diamonds/DiamondsContent/DiamondsContent.d.ts +1 -2
- package/dist/components/diamonds/DiamondsContent/DiamondsMultiplierItem.d.ts +1 -1
- package/dist/components/diamonds/DiamondsContent/DiamondsProfitTooltip.d.ts +1 -3
- package/dist/components/diamonds/DiamondsContent/DiamondsSlots.d.ts +1 -1
- package/dist/components/diamonds/DiamondsControls/DiamondsAuto.d.ts +1 -1
- package/dist/components/diamonds/DiamondsControls/DiamondsManual.d.ts +1 -2
- package/dist/components/diamonds/DiamondsGame.d.ts +1 -1
- package/dist/components/diamonds/diamonds.api.d.ts +1 -2
- package/dist/components/diamonds/diamonds.info.d.ts +2 -0
- package/dist/components/diamonds/diamonds.mock.api.d.ts +1 -2
- package/dist/components/diamonds/index.d.ts +2 -0
- package/dist/components/dice/DiceContent/DiceContent.d.ts +1 -4
- package/dist/components/dice/DiceContentBottom/DiceContentBottom.d.ts +2 -4
- package/dist/components/dice/DiceControls/DiceAuto.d.ts +1 -1
- package/dist/components/dice/DiceControls/DiceManual.d.ts +1 -3
- package/dist/components/dice/DiceGame.d.ts +1 -1
- package/dist/components/dice/DiceSlider/DiceSlider.d.ts +1 -3
- package/dist/components/dice/dice-calculations.d.ts +1 -1
- package/dist/components/dice/dice.api.d.ts +1 -3
- package/dist/components/dice/dice.info.d.ts +2 -0
- package/dist/components/dice/index.d.ts +2 -0
- package/dist/components/keno/KenoContent/KenoContent.d.ts +1 -2
- package/dist/components/keno/KenoContentBottom/KenoContentBottom.d.ts +1 -3
- package/dist/components/keno/KenoControls/KenoAuto.d.ts +1 -3
- package/dist/components/keno/KenoControls/KenoManual.d.ts +1 -3
- package/dist/components/keno/KenoGame.d.ts +1 -2
- package/dist/components/keno/KenoGrid/KenoGrid.d.ts +1 -2
- package/dist/components/keno/KenoTile/KenoTile.d.ts +1 -2
- package/dist/components/keno/index.d.ts +2 -0
- package/dist/components/keno/keno.api.d.ts +1 -3
- package/dist/components/keno/keno.info.d.ts +2 -0
- package/dist/components/keno/keno.mock.api.d.ts +1 -2
- package/dist/components/limbo/LimboContent/LimboContent.d.ts +3 -4
- package/dist/components/limbo/LimboContentBottom/LimboContentBottom.d.ts +2 -3
- package/dist/components/limbo/LimboControls/LimboAuto.d.ts +1 -1
- package/dist/components/limbo/LimboControls/LimboManual.d.ts +1 -3
- package/dist/components/limbo/LimboGame.d.ts +1 -2
- package/dist/components/limbo/Multiplier/LimboMultiplier.d.ts +1 -2
- package/dist/components/limbo/index.d.ts +2 -0
- package/dist/components/limbo/limbo.api.d.ts +1 -2
- package/dist/components/limbo/limbo.info.d.ts +2 -0
- package/dist/components/mines/MinesControls/MinesAuto.d.ts +1 -2
- package/dist/components/mines/MinesControls/MinesManual.d.ts +1 -3
- package/dist/components/mines/MinesGame.d.ts +1 -2
- package/dist/components/mines/MinesGrid/MinesGrid.d.ts +1 -4
- package/dist/components/mines/MinesTile/MinesTile.d.ts +2 -4
- package/dist/components/mines/index.d.ts +2 -0
- package/dist/components/mines/mines.api.d.ts +1 -2
- package/dist/components/mines/mines.info.d.ts +2 -0
- package/dist/components/plinko/PlinkoContent/PlinkoBin/PlinkoBin.d.ts +1 -1
- package/dist/components/plinko/PlinkoContent/PlinkoBins/PlinkoBins.d.ts +2 -2
- package/dist/components/plinko/PlinkoContent/PlinkoContent.d.ts +1 -2
- package/dist/components/plinko/PlinkoControls/PlinkoAuto.d.ts +1 -1
- package/dist/components/plinko/PlinkoControls/PlinkoManual.d.ts +1 -2
- package/dist/components/plinko/PlinkoGame.d.ts +1 -1
- package/dist/components/plinko/PlinkoRowsSelect/PlinkoRiskSelect.d.ts +1 -2
- package/dist/components/plinko/PlinkoRowsSelect/PlinkoRowsSelect.d.ts +1 -2
- package/dist/components/plinko/PlinkoRowsSlider/PlinkoRowsSlider.d.ts +1 -2
- package/dist/components/plinko/index.d.ts +2 -0
- package/dist/components/plinko/plinko-content.utils.d.ts +1 -1
- package/dist/components/plinko/plinko.api.d.ts +1 -2
- package/dist/components/plinko/plinko.constants.d.ts +4 -8
- package/dist/components/plinko/plinko.info.d.ts +2 -0
- package/dist/components/plinko/plinko.mock.api.d.ts +1 -2
- package/dist/components/plinko/plinko.utils.d.ts +1 -1
- package/dist/components/roulette/RouletteAnimator/RouletteAnimator.d.ts +1 -2
- package/dist/components/roulette/RouletteContent/RouletteContent.d.ts +1 -2
- package/dist/components/roulette/RouletteControls/RouletteAuto.d.ts +1 -2
- package/dist/components/roulette/RouletteControls/RouletteManual.d.ts +1 -2
- package/dist/components/roulette/RouletteGame.d.ts +1 -3
- package/dist/components/roulette/RouletteGrid/RouletteGrid.d.ts +1 -1
- package/dist/components/roulette/RouletteTop/RouletteTop.d.ts +1 -2
- package/dist/components/roulette/index.d.ts +2 -0
- package/dist/components/roulette/roulette.api.d.ts +1 -2
- package/dist/components/roulette/roulette.constants.d.ts +2 -2
- package/dist/components/roulette/roulette.info.d.ts +2 -0
- package/dist/components/roulette/roulette.mock.api.d.ts +1 -1
- package/dist/components/roulette/roulette.transformer.d.ts +1 -1
- package/dist/index.d.ts +16 -17
- package/dist/index.mjs +28599 -28395
- package/dist/{components/shared/BetResultModal → legacy}/BetResultDataExtractor.d.ts +4 -7
- package/dist/{components/shared/GameOutcomeDisplay/GameOutcomeDisplay.d.ts → legacy/LegacyGameOutcomeDisplay.d.ts} +9 -17
- package/dist/legacy/legacy-bet-details.d.ts +4 -0
- package/dist/legacy/legacy-ui-module.d.ts +4 -0
- package/package.json +4 -2
- package/dist/components/shared/Alert/Alert.d.ts +0 -27
- package/dist/components/shared/Alert/Alert.styles.d.ts +0 -1
- package/dist/components/shared/AlertManager/AlertManager.d.ts +0 -28
- package/dist/components/shared/AlertManager/AlertManager.styles.d.ts +0 -1
- package/dist/components/shared/BetDetailsComponent/BetDetailsComponent.d.ts +0 -21
- package/dist/components/shared/BetDetailsComponent/BetDetailsComponent.styles.d.ts +0 -1
- package/dist/components/shared/BetResultModal/BetResultModal.d.ts +0 -31
- package/dist/components/shared/BetResultModal/BetResultModal.styles.d.ts +0 -1
- package/dist/components/shared/Button/Button.d.ts +0 -26
- package/dist/components/shared/Button/Button.styles.d.ts +0 -1
- package/dist/components/shared/Button/ButtonGroup.d.ts +0 -5
- package/dist/components/shared/Button/ButtonGroup.styles.d.ts +0 -1
- package/dist/components/shared/ChipStack/ChipStack.d.ts +0 -10
- package/dist/components/shared/ChipStack/ChipStack.styles.d.ts +0 -1
- package/dist/components/shared/ChipTableGameComponent.d.ts +0 -43
- package/dist/components/shared/DepositButton/DepositButton.d.ts +0 -9
- package/dist/components/shared/Drawer/Drawer.d.ts +0 -45
- package/dist/components/shared/Drawer/Drawer.styles.d.ts +0 -1
- package/dist/components/shared/FairnessDetails/FairnessContent.d.ts +0 -48
- package/dist/components/shared/FairnessDetails/FairnessContent.styles.d.ts +0 -1
- package/dist/components/shared/FairnessDetails/FairnessDetails.d.ts +0 -14
- package/dist/components/shared/FairnessDetails/HistoryTable.d.ts +0 -28
- package/dist/components/shared/FairnessDetails/HistoryTable.styles.d.ts +0 -1
- package/dist/components/shared/Footer/Footer.d.ts +0 -20
- package/dist/components/shared/Footer/Footer.styles.d.ts +0 -1
- package/dist/components/shared/GameComponent.d.ts +0 -77
- package/dist/components/shared/GameInfo/GameInfoModal.d.ts +0 -16
- package/dist/components/shared/GameInfo/GameInfoModal.styles.d.ts +0 -1
- package/dist/components/shared/GameInfo/gameInfoConfig.d.ts +0 -27
- package/dist/components/shared/GameLayout/GameLayout.d.ts +0 -51
- package/dist/components/shared/GameLayout/GameLayout.styles.d.ts +0 -1
- package/dist/components/shared/GameOutcomeDisplay/GameOutcomeDisplay.styles.d.ts +0 -1
- package/dist/components/shared/GameProviderWrapper.d.ts +0 -106
- package/dist/components/shared/GameProviderWrapper.styles.d.ts +0 -1
- package/dist/components/shared/GameSidebar/GameSidebar.d.ts +0 -16
- package/dist/components/shared/GameSidebar/GameSidebar.styles.d.ts +0 -1
- package/dist/components/shared/GameWinPopup/GameWinPopup.d.ts +0 -27
- package/dist/components/shared/GameWinPopup/GameWinPopup.styles.d.ts +0 -1
- package/dist/components/shared/GenericAutobet/BetCountInput.d.ts +0 -12
- package/dist/components/shared/GenericAutobet/GenericAutobet.d.ts +0 -52
- package/dist/components/shared/GenericAutobet/GenericAutobet.styles.d.ts +0 -1
- package/dist/components/shared/GenericAutobet/context/autobet.context.d.ts +0 -13
- package/dist/components/shared/HistoryPills/HistoryPills.d.ts +0 -27
- package/dist/components/shared/HistoryPills/HistoryPills.styles.d.ts +0 -1
- package/dist/components/shared/HotkeysModal/HotKeysModal.styles.d.ts +0 -1
- package/dist/components/shared/HotkeysModal/HotkeysModal.d.ts +0 -10
- package/dist/components/shared/Inputs/BetAmountInput/BetAmountInput.d.ts +0 -44
- package/dist/components/shared/Inputs/ChipInput/ChipInput.d.ts +0 -19
- package/dist/components/shared/Inputs/ChipInput/ChipInput.styles.d.ts +0 -1
- package/dist/components/shared/Inputs/ChipInput/chip-input.constants.d.ts +0 -4
- package/dist/components/shared/Inputs/CurrencyInput/RawCurrencyInput.d.ts +0 -36
- package/dist/components/shared/Inputs/CurrencyInput/RawCurrencyInput.styles.d.ts +0 -1
- package/dist/components/shared/Inputs/Input/Input.d.ts +0 -74
- package/dist/components/shared/Inputs/Input/Input.styles.d.ts +0 -1
- package/dist/components/shared/LottieIcon/LottieIcon.d.ts +0 -24
- package/dist/components/shared/Modal/Modal.d.ts +0 -29
- package/dist/components/shared/Modal/Modal.styles.d.ts +0 -1
- package/dist/components/shared/Modal/Portal.d.ts +0 -13
- package/dist/components/shared/ResponsiveModal/ResponsiveModal.d.ts +0 -17
- package/dist/components/shared/ResponsiveModal/ResponsiveModal.styles.d.ts +0 -1
- package/dist/components/shared/Select/Select.d.ts +0 -34
- package/dist/components/shared/Select/Select.styles.d.ts +0 -1
- package/dist/components/shared/Spinner/Spinner.d.ts +0 -5
- package/dist/components/shared/Spinner/Spinner.styles.d.ts +0 -1
- package/dist/components/shared/Switch/Switch.d.ts +0 -11
- package/dist/components/shared/Switch/Switch.styles.d.ts +0 -1
- package/dist/components/shared/Toggle/Toggle.d.ts +0 -15
- package/dist/components/shared/Toggle/Toggle.styles.d.ts +0 -1
- package/dist/components/shared/Tooltip/Tooltip.d.ts +0 -56
- package/dist/components/shared/Tooltip/Tooltip.styles.d.ts +0 -1
- package/dist/components/shared/context/game.context.d.ts +0 -90
- package/dist/components/shared/types/chip.types.d.ts +0 -10
- package/dist/components/wheel/WheelAnimator/WheelAnimator.d.ts +0 -31
- package/dist/components/wheel/WheelAnimator/WheelAnimator.styles.d.ts +0 -1
- package/dist/components/wheel/WheelContentBottom/WheelContentBottom.d.ts +0 -24
- package/dist/components/wheel/WheelContentBottom/WheelContentBottom.styles.d.ts +0 -1
- package/dist/components/wheel/WheelControls/WheelAuto.d.ts +0 -16
- package/dist/components/wheel/WheelControls/WheelControls.styles.d.ts +0 -1
- package/dist/components/wheel/WheelControls/WheelManual.d.ts +0 -16
- package/dist/components/wheel/WheelGame.d.ts +0 -26
- package/dist/components/wheel/WheelGame.styles.d.ts +0 -1
- package/dist/components/wheel/WheelLayout/WheelLayout.d.ts +0 -19
- package/dist/components/wheel/WheelLayout/WheelLayout.styles.d.ts +0 -1
- package/dist/components/wheel/WheelSvg/WheelSvg.d.ts +0 -12
- package/dist/components/wheel/WheelSvg/WheelSvg.styles.d.ts +0 -1
- package/dist/components/wheel/wheel.api.d.ts +0 -11
- package/dist/components/wheel/wheel.constants.d.ts +0 -25
- package/dist/components/wheel/wheel.mock.api.d.ts +0 -10
- package/dist/components/wheel/wheel.multipliers.d.ts +0 -11
- package/dist/components/wheel/wheel.patterns.d.ts +0 -3
- package/dist/components/wheel/wheel.utils.d.ts +0 -41
- package/dist/controllers/bet-result-cache.controller.d.ts +0 -14
- package/dist/controllers/haptics.controller.d.ts +0 -17
- package/dist/controllers/history.controller.d.ts +0 -56
- package/dist/controllers/hotkey.controller.d.ts +0 -30
- package/dist/controllers/sound/sound-definitions.d.ts +0 -24
- package/dist/controllers/sound/sound-effects.controller.d.ts +0 -18
- package/dist/controllers/sound/sound-layer.types.d.ts +0 -45
- package/dist/shared/animation.styles.d.ts +0 -1
- package/dist/shared/async-throttle-queue.d.ts +0 -51
- package/dist/shared/autobet-pacing.d.ts +0 -4
- package/dist/shared/bet.types.d.ts +0 -194
- package/dist/shared/button-feedback.d.ts +0 -13
- package/dist/shared/calculations/games/dice.d.ts +0 -1
- package/dist/shared/calculations/games/keno.d.ts +0 -25
- package/dist/shared/calculations/games/mines.d.ts +0 -7
- package/dist/shared/calculations/utils/big-validation.d.ts +0 -71
- package/dist/shared/calculations/utils/bignumber-max.d.ts +0 -2
- package/dist/shared/calculations/utils/bignumber-min.d.ts +0 -7
- package/dist/shared/calculations/utils/factorial.d.ts +0 -2
- package/dist/shared/calculations/utils/hex-to-bytes.d.ts +0 -1
- package/dist/shared/calculations/utils/ncr.d.ts +0 -2
- package/dist/shared/cards/Card.d.ts +0 -30
- package/dist/shared/cards/Card.styles.d.ts +0 -1
- package/dist/shared/cards/CardStack.d.ts +0 -6
- package/dist/shared/cards/CardStack.styles.d.ts +0 -1
- package/dist/shared/cards/card.constants.d.ts +0 -11
- package/dist/shared/cards/card.types.d.ts +0 -10
- package/dist/shared/cards/card.utils.d.ts +0 -5
- package/dist/shared/chip-state.utils.d.ts +0 -125
- package/dist/shared/chip-state.utils.test.d.ts +0 -1
- package/dist/shared/component.styles.d.ts +0 -1
- package/dist/shared/constants.d.ts +0 -60
- package/dist/shared/create-api-factory.d.ts +0 -10
- package/dist/shared/event-map.d.ts +0 -342
- package/dist/shared/format-monetary-amount.d.ts +0 -7
- package/dist/shared/format-win-chance.d.ts +0 -1
- package/dist/shared/format-win-chance.test.d.ts +0 -1
- package/dist/shared/get-correlation-id.d.ts +0 -5
- package/dist/shared/get-currency-details.d.ts +0 -12
- package/dist/shared/get-currency-details.test.d.ts +0 -1
- package/dist/shared/get-currency-precision.d.ts +0 -2
- package/dist/shared/get-currency-precision.test.d.ts +0 -1
- package/dist/shared/get-currency-symbol-position.d.ts +0 -4
- package/dist/shared/get-currency-symbol-position.test.d.ts +0 -1
- package/dist/shared/get-currency-symbol.d.ts +0 -2
- package/dist/shared/get-currency-symbol.test.d.ts +0 -1
- package/dist/shared/get-game-outcome.d.ts +0 -1
- package/dist/shared/hotkey-helper.d.ts +0 -14
- package/dist/shared/icons/currencies/arsIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/audIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/brlIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/cadIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/chfIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/clpIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/cnyIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/czkIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/dopIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/eurIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/gbpIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/gcIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/gtqIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/hnlIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/hufIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/idrIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/inrIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/jpyIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/krwIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/kztIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/mxnIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/myrIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/ngnIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/nokIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/nzdIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/penIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/phpIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/ronIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/rubIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/scIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/thbIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/tryIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/uahIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/usdIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/uzsIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/vndIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/zarIcon.d.ts +0 -1
- package/dist/shared/icons/get-currency-icon.d.ts +0 -2
- package/dist/shared/icons/get-currency-icon.test.d.ts +0 -1
- package/dist/shared/icons/index.d.ts +0 -1
- package/dist/shared/icons/kenoGemIcon.d.ts +0 -1
- package/dist/shared/icons/minesBombIcon.d.ts +0 -1
- package/dist/shared/icons/minesGemIcon.d.ts +0 -1
- package/dist/shared/mock-bridged-game-service.d.ts +0 -42
- package/dist/shared/mock-rng-generator.d.ts +0 -3
- package/dist/shared/origami-action.type.d.ts +0 -7
- package/dist/shared/origami-element.d.ts +0 -21
- package/dist/shared/primary-input.d.ts +0 -2
- package/dist/shared/provably-fair-verifier.d.ts +0 -28
- package/dist/shared/provider-api/bet-result.d.ts +0 -18
- package/dist/shared/provider-api/error-codes.d.ts +0 -9
- package/dist/shared/sleep.d.ts +0 -1
- package/dist/shared/utils/format-autobet-settings.d.ts +0 -5
- package/dist/shared/utils/prevent-non-numeric-input.d.ts +0 -4
- package/dist/shared/wait-for-event.d.ts +0 -1
- package/dist/shared/watch.d.ts +0 -26
- package/dist/translations/ar.json.d.ts +0 -407
- package/dist/translations/de.json.d.ts +0 -407
- package/dist/translations/dynamic-loader.d.ts +0 -15
- package/dist/translations/en-soc.json.d.ts +0 -407
- package/dist/translations/en.json.d.ts +0 -409
- package/dist/translations/es.json.d.ts +0 -407
- package/dist/translations/fi.json.d.ts +0 -407
- package/dist/translations/fr.json.d.ts +0 -407
- package/dist/translations/hi.json.d.ts +0 -407
- package/dist/translations/id.json.d.ts +0 -407
- package/dist/translations/index.d.ts +0 -6889
- package/dist/translations/ja.json.d.ts +0 -407
- package/dist/translations/ko.json.d.ts +0 -407
- package/dist/translations/language.context.d.ts +0 -9
- package/dist/translations/pl.json.d.ts +0 -407
- package/dist/translations/pt.json.d.ts +0 -407
- package/dist/translations/ru.json.d.ts +0 -407
- package/dist/translations/tr.json.d.ts +0 -407
- package/dist/translations/utils.d.ts +0 -22
- package/dist/translations/vi.json.d.ts +0 -407
- package/dist/translations/zh.json.d.ts +0 -407
- package/dist/utils/active-elements.d.ts +0 -15
- package/dist/utils/animate.d.ts +0 -22
- package/dist/utils/animation-registry.d.ts +0 -24
- package/dist/utils/blur-active-element.d.ts +0 -7
- package/dist/utils/event.d.ts +0 -2
- package/dist/utils/focus-trap.d.ts +0 -24
- package/dist/utils/game-layout-style.d.ts +0 -9
- package/dist/utils/scroll.d.ts +0 -22
- package/dist/utils/slot.controller.d.ts +0 -23
- package/dist/utils/tabbable.d.ts +0 -9
- /package/dist/{shared/async-throttle-queue.test.d.ts → register-games.d.ts} +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ResolvedSound } from './sound-layer.types';
|
|
2
|
-
export declare const Sound: {
|
|
3
|
-
buttonPress: (intensity: number) => ResolvedSound;
|
|
4
|
-
buttonClick: (intensity: number) => ResolvedSound;
|
|
5
|
-
tilePress: () => ResolvedSound;
|
|
6
|
-
tileTap: () => ResolvedSound;
|
|
7
|
-
kenoTick: () => ResolvedSound;
|
|
8
|
-
diceTick: (position: number) => ResolvedSound;
|
|
9
|
-
limboTick: (progress: number) => ResolvedSound;
|
|
10
|
-
wheelTick: () => ResolvedSound;
|
|
11
|
-
rouletteTick: () => ResolvedSound;
|
|
12
|
-
rouletteBounce: (intensity: number) => ResolvedSound;
|
|
13
|
-
cardSlide: () => ResolvedSound;
|
|
14
|
-
cardFlip: () => ResolvedSound;
|
|
15
|
-
blitzDraw: (pitch: number) => ResolvedSound;
|
|
16
|
-
blitzLoss: () => ResolvedSound;
|
|
17
|
-
plinkoBin: (pitch: number, includeSub: boolean) => ResolvedSound;
|
|
18
|
-
diceRoll: () => ResolvedSound;
|
|
19
|
-
diamondsReveal: (pitch: number) => ResolvedSound;
|
|
20
|
-
gem: (pitch: number) => ResolvedSound;
|
|
21
|
-
minesGem: (pitch: number) => ResolvedSound;
|
|
22
|
-
bomb: () => ResolvedSound;
|
|
23
|
-
win: () => ResolvedSound;
|
|
24
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ResolvedSound } from './sound-layer.types';
|
|
2
|
-
interface GameHost {
|
|
3
|
-
addController(controller: unknown): void;
|
|
4
|
-
}
|
|
5
|
-
export declare class SoundEffectsController {
|
|
6
|
-
private destroyed;
|
|
7
|
-
private audioCtx;
|
|
8
|
-
private volume;
|
|
9
|
-
constructor(host: GameHost);
|
|
10
|
-
setVolume(normalizedVolume: number): void;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
play(sound: ResolvedSound): void;
|
|
13
|
-
private ensureAudio;
|
|
14
|
-
private renderLayers;
|
|
15
|
-
private renderNoiseLayer;
|
|
16
|
-
private renderToneLayer;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export type SoundWaveform = 'sine' | 'triangle' | 'sawtooth' | 'square';
|
|
2
|
-
export type SoundFilterType = 'bandpass' | 'lowpass' | 'highpass';
|
|
3
|
-
export type ToneGainDef = {
|
|
4
|
-
envelope: 'peak-decay';
|
|
5
|
-
peak: number;
|
|
6
|
-
decayTime: number;
|
|
7
|
-
} | {
|
|
8
|
-
envelope: 'attack-decay';
|
|
9
|
-
attackTime: number;
|
|
10
|
-
peak: number;
|
|
11
|
-
decayTime: number;
|
|
12
|
-
} | {
|
|
13
|
-
envelope: 'delayed-attack-decay';
|
|
14
|
-
holdTime: number;
|
|
15
|
-
attackEndTime: number;
|
|
16
|
-
peak: number;
|
|
17
|
-
decayTime: number;
|
|
18
|
-
};
|
|
19
|
-
export type NoiseLayerDef = {
|
|
20
|
-
kind: 'noise';
|
|
21
|
-
duration: number;
|
|
22
|
-
decay: number;
|
|
23
|
-
filterType: SoundFilterType;
|
|
24
|
-
filterFreq: number;
|
|
25
|
-
filterQ: number;
|
|
26
|
-
gain: number;
|
|
27
|
-
randomization: number;
|
|
28
|
-
filterFreqEnd?: number;
|
|
29
|
-
filterFreqRampTime?: number;
|
|
30
|
-
};
|
|
31
|
-
export type ToneLayerDef = {
|
|
32
|
-
kind: 'tone';
|
|
33
|
-
waveform: SoundWaveform;
|
|
34
|
-
frequency: number;
|
|
35
|
-
frequencyEnd?: number;
|
|
36
|
-
frequencyRampTime?: number;
|
|
37
|
-
duration: number;
|
|
38
|
-
gain: ToneGainDef;
|
|
39
|
-
startOffset?: number;
|
|
40
|
-
};
|
|
41
|
-
export type SoundLayerDef = NoiseLayerDef | ToneLayerDef;
|
|
42
|
-
export interface ResolvedSound {
|
|
43
|
-
readonly layers: readonly SoundLayerDef[];
|
|
44
|
-
readonly gainScale: number;
|
|
45
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const animationStyles: import('lit').CSSResult;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A bounded async queue with concurrency limiting.
|
|
3
|
-
* Implements a leaky bucket pattern where:
|
|
4
|
-
* - Requests are queued up to maxQueueSize
|
|
5
|
-
* - Only maxConcurrent requests run simultaneously
|
|
6
|
-
* - Requests beyond the queue limit are rejected
|
|
7
|
-
*
|
|
8
|
-
* @template TInput - The type of input passed to the executor
|
|
9
|
-
* @template TOutput - The type of output returned by the executor
|
|
10
|
-
*/
|
|
11
|
-
export declare class AsyncThrottleQueue<TInput, TOutput> {
|
|
12
|
-
private queue;
|
|
13
|
-
private inflight;
|
|
14
|
-
private readonly maxQueueSize;
|
|
15
|
-
private readonly maxConcurrent;
|
|
16
|
-
private executor;
|
|
17
|
-
constructor(executor: (input: TInput) => Promise<TOutput>, options?: {
|
|
18
|
-
maxQueueSize?: number;
|
|
19
|
-
maxConcurrent?: number;
|
|
20
|
-
});
|
|
21
|
-
/**
|
|
22
|
-
* Attempts to enqueue a request.
|
|
23
|
-
* @param input - The input to pass to the executor
|
|
24
|
-
* @returns A promise that resolves with the executor result
|
|
25
|
-
* @throws Error if the queue is full
|
|
26
|
-
*/
|
|
27
|
-
enqueue(input: TInput): Promise<TOutput>;
|
|
28
|
-
private processQueue;
|
|
29
|
-
/**
|
|
30
|
-
* Number of requests waiting in the queue (not yet started)
|
|
31
|
-
*/
|
|
32
|
-
get pendingCount(): number;
|
|
33
|
-
/**
|
|
34
|
-
* Number of requests currently being processed
|
|
35
|
-
*/
|
|
36
|
-
get inflightCount(): number;
|
|
37
|
-
/**
|
|
38
|
-
* Total number of requests (pending + inflight)
|
|
39
|
-
*/
|
|
40
|
-
get totalCount(): number;
|
|
41
|
-
/**
|
|
42
|
-
* Whether the queue is empty and no requests are in flight
|
|
43
|
-
*/
|
|
44
|
-
get isIdle(): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Clears all pending requests from the queue.
|
|
47
|
-
* Inflight requests will complete normally.
|
|
48
|
-
* @param errorMessage - Custom error message for rejected requests
|
|
49
|
-
*/
|
|
50
|
-
clear(errorMessage?: string): void;
|
|
51
|
-
}
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { WheelRiskLevel, WheelSegments } from '../components/wheel/wheel.constants';
|
|
2
|
-
import { PlinkoRiskLevel, PlinkoRowCount } from '../components/plinko/plinko.constants';
|
|
3
|
-
import { DiceDirection } from './calculations/games/dice';
|
|
4
|
-
import { KenoRiskLevel } from './calculations/games/keno';
|
|
5
|
-
import { Currency } from './constants';
|
|
6
|
-
import { OrigamiActionType } from './origami-action.type';
|
|
7
|
-
import { AdvancedDiceInputs } from '../components/advanced-dice/advanced-dice.types';
|
|
8
|
-
import { RouletteType, Parity, Color, Half, Column, Dozen, BaccaratGameOutputs, BaccaratGameInputs, PlayResult, CardDto } from '@betorigami/game-calculations';
|
|
9
|
-
import { AfterBetEffect } from '../components/shared/GenericAutobet/GenericAutobet';
|
|
10
|
-
export type DiceStartAction = {
|
|
11
|
-
direction: DiceDirection;
|
|
12
|
-
selectedValue: number;
|
|
13
|
-
};
|
|
14
|
-
export type KenoStartAction = {
|
|
15
|
-
riskLevel: KenoRiskLevel;
|
|
16
|
-
selectedNumbers: number[];
|
|
17
|
-
};
|
|
18
|
-
export type EndAction = {
|
|
19
|
-
result: number[];
|
|
20
|
-
};
|
|
21
|
-
export declare const isEndAction: (action: unknown) => action is EndAction;
|
|
22
|
-
export type LimboStartAction = {
|
|
23
|
-
targetMultiplier: number;
|
|
24
|
-
};
|
|
25
|
-
export type LimboEndAction = {
|
|
26
|
-
result: number[];
|
|
27
|
-
randomMultiplier: string;
|
|
28
|
-
};
|
|
29
|
-
export type MinesStartAction = {
|
|
30
|
-
minesCount: number;
|
|
31
|
-
selectedTiles: number[];
|
|
32
|
-
hasCashedOut: boolean;
|
|
33
|
-
};
|
|
34
|
-
export type BlitzStartAction = {
|
|
35
|
-
pickCount: number;
|
|
36
|
-
};
|
|
37
|
-
export type BlitzEndAction = EndAction & {
|
|
38
|
-
cards: CardDto[];
|
|
39
|
-
payoutMultiplier: string;
|
|
40
|
-
};
|
|
41
|
-
export interface DiamondsStartAction {
|
|
42
|
-
}
|
|
43
|
-
export interface WheelStartAction {
|
|
44
|
-
riskLevel: WheelRiskLevel;
|
|
45
|
-
segments: WheelSegments;
|
|
46
|
-
}
|
|
47
|
-
export interface PlinkoStartAction {
|
|
48
|
-
riskLevel: PlinkoRiskLevel;
|
|
49
|
-
numberOfRows: PlinkoRowCount;
|
|
50
|
-
}
|
|
51
|
-
export type AdvancedDiceStartAction = AdvancedDiceInputs;
|
|
52
|
-
export type BaccaratEndAction = BaccaratGameOutputs & {
|
|
53
|
-
result: number[];
|
|
54
|
-
};
|
|
55
|
-
export interface RouletteStraightBet {
|
|
56
|
-
amount: string;
|
|
57
|
-
value: number;
|
|
58
|
-
}
|
|
59
|
-
export interface RouletteSplitBet {
|
|
60
|
-
amount: string;
|
|
61
|
-
values: readonly [number, number];
|
|
62
|
-
}
|
|
63
|
-
export interface RouletteStreetBet {
|
|
64
|
-
amount: string;
|
|
65
|
-
values: readonly [number, number, number];
|
|
66
|
-
}
|
|
67
|
-
export interface RouletteCornerBet {
|
|
68
|
-
amount: string;
|
|
69
|
-
values: readonly [number, number, number, number];
|
|
70
|
-
}
|
|
71
|
-
export interface RouletteDoubleStreetBet {
|
|
72
|
-
amount: string;
|
|
73
|
-
values: readonly [number, number, number, number, number, number];
|
|
74
|
-
}
|
|
75
|
-
export interface RouletteParityBet {
|
|
76
|
-
amount: string;
|
|
77
|
-
parity: Parity;
|
|
78
|
-
}
|
|
79
|
-
export interface RouletteColorBet {
|
|
80
|
-
amount: string;
|
|
81
|
-
color: Color;
|
|
82
|
-
}
|
|
83
|
-
export interface RouletteHalfBet {
|
|
84
|
-
amount: string;
|
|
85
|
-
half: Half;
|
|
86
|
-
}
|
|
87
|
-
export interface RouletteColumnBet {
|
|
88
|
-
amount: string;
|
|
89
|
-
column: Column;
|
|
90
|
-
}
|
|
91
|
-
export interface RouletteDozenBet {
|
|
92
|
-
amount: string;
|
|
93
|
-
dozen: Dozen;
|
|
94
|
-
}
|
|
95
|
-
export interface RouletteBasketBet {
|
|
96
|
-
amount: string;
|
|
97
|
-
}
|
|
98
|
-
export interface EuropeanRouletteInputs {
|
|
99
|
-
straightBets: RouletteStraightBet[];
|
|
100
|
-
splitBets: RouletteSplitBet[];
|
|
101
|
-
streetBets: RouletteStreetBet[];
|
|
102
|
-
cornerBets: RouletteCornerBet[];
|
|
103
|
-
doubleStreetBets: RouletteDoubleStreetBet[];
|
|
104
|
-
parityBets: RouletteParityBet[];
|
|
105
|
-
colorBets: RouletteColorBet[];
|
|
106
|
-
halfBets: RouletteHalfBet[];
|
|
107
|
-
columnBets: RouletteColumnBet[];
|
|
108
|
-
dozenBets: RouletteDozenBet[];
|
|
109
|
-
}
|
|
110
|
-
export interface AmericanRouletteInputs extends EuropeanRouletteInputs {
|
|
111
|
-
basketBets: RouletteBasketBet[];
|
|
112
|
-
}
|
|
113
|
-
export type RouletteStartAction = {
|
|
114
|
-
type: RouletteType.EUROPEAN;
|
|
115
|
-
inputs: EuropeanRouletteInputs;
|
|
116
|
-
} | {
|
|
117
|
-
type: RouletteType.AMERICAN;
|
|
118
|
-
inputs: AmericanRouletteInputs;
|
|
119
|
-
};
|
|
120
|
-
export interface RouletteBetOutcomes {
|
|
121
|
-
winningBets: EuropeanRouletteInputs;
|
|
122
|
-
losingBets: EuropeanRouletteInputs;
|
|
123
|
-
}
|
|
124
|
-
export interface RouletteEndAction {
|
|
125
|
-
type: 'european' | 'american';
|
|
126
|
-
betOutcomes: RouletteBetOutcomes;
|
|
127
|
-
result: number[];
|
|
128
|
-
}
|
|
129
|
-
export interface Action {
|
|
130
|
-
data: {
|
|
131
|
-
DICE?: DiceStartAction | EndAction;
|
|
132
|
-
KENO?: KenoStartAction | EndAction;
|
|
133
|
-
LIMBO?: LimboStartAction | LimboEndAction;
|
|
134
|
-
MINES?: MinesStartAction | EndAction;
|
|
135
|
-
BLITZ?: BlitzStartAction | BlitzEndAction;
|
|
136
|
-
DIAMONDS?: DiamondsStartAction | EndAction;
|
|
137
|
-
WHEEL?: WheelStartAction | EndAction;
|
|
138
|
-
PLINKO?: PlinkoStartAction | EndAction;
|
|
139
|
-
ADVANCED_DICE?: AdvancedDiceStartAction | EndAction;
|
|
140
|
-
ROULETTE?: RouletteStartAction | RouletteEndAction;
|
|
141
|
-
BACCARAT?: BaccaratGameInputs | BaccaratEndAction;
|
|
142
|
-
BLACKJACK?: PlayResult;
|
|
143
|
-
};
|
|
144
|
-
type: OrigamiActionType;
|
|
145
|
-
}
|
|
146
|
-
export interface BetHistoryResult {
|
|
147
|
-
id: string;
|
|
148
|
-
amount: string;
|
|
149
|
-
payout: string | null;
|
|
150
|
-
currency: Currency;
|
|
151
|
-
succeededAt: string;
|
|
152
|
-
}
|
|
153
|
-
export interface BetResult {
|
|
154
|
-
id: string;
|
|
155
|
-
nonce: number;
|
|
156
|
-
amount: string;
|
|
157
|
-
payout: string | null;
|
|
158
|
-
userId: string;
|
|
159
|
-
gameId: string;
|
|
160
|
-
multiplier: string | null;
|
|
161
|
-
tenantId: string;
|
|
162
|
-
clientSeed: string;
|
|
163
|
-
randomValue: string | null;
|
|
164
|
-
proof: string | null;
|
|
165
|
-
afterBalance: string | null;
|
|
166
|
-
tenantUserId: string;
|
|
167
|
-
insuranceAmount?: string | null;
|
|
168
|
-
betActions: Array<Action>;
|
|
169
|
-
}
|
|
170
|
-
export type StartBetResponse = {
|
|
171
|
-
success: true;
|
|
172
|
-
data: BetResult;
|
|
173
|
-
} | {
|
|
174
|
-
success: false;
|
|
175
|
-
error: string;
|
|
176
|
-
};
|
|
177
|
-
export type AutobetApiSettings = {
|
|
178
|
-
onWinStrategy: AfterBetEffect;
|
|
179
|
-
onLossStrategy: AfterBetEffect;
|
|
180
|
-
onWinPercentage: string;
|
|
181
|
-
onLossPercentage: string;
|
|
182
|
-
stopOnLoss: string;
|
|
183
|
-
stopOnProfit: string;
|
|
184
|
-
numberOfBets: number;
|
|
185
|
-
autobetId: string;
|
|
186
|
-
betIndex: number;
|
|
187
|
-
pnlSinceStart: string;
|
|
188
|
-
};
|
|
189
|
-
export interface BaseStartArgs {
|
|
190
|
-
amount: string;
|
|
191
|
-
meta?: {
|
|
192
|
-
autobetSettings?: AutobetApiSettings;
|
|
193
|
-
};
|
|
194
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ResolvedSound } from '../controllers/sound/sound-layer.types';
|
|
2
|
-
export interface ButtonFeedbackContext {
|
|
3
|
-
volume?: number;
|
|
4
|
-
soundEffects?: {
|
|
5
|
-
play?: (sound: ResolvedSound, volume: number) => void;
|
|
6
|
-
};
|
|
7
|
-
haptics?: {
|
|
8
|
-
tap?: () => void;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export declare const playButtonPressFeedback: (context: ButtonFeedbackContext | undefined, intensity: number) => void;
|
|
12
|
-
export declare const playButtonClickFeedback: (context: ButtonFeedbackContext | undefined, intensity: number) => void;
|
|
13
|
-
export declare const withButtonClickFeedback: <Args extends unknown[]>(getContext: () => ButtonFeedbackContext | undefined, callback: (...args: Args) => void, intensity?: number) => ((...args: Args) => void);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DiceDirection } from '@betorigami/game-calculations';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as Big } from 'big.js';
|
|
2
|
-
export declare enum KenoRiskLevel {
|
|
3
|
-
CLASSIC = "CLASSIC",
|
|
4
|
-
LOW_RISK = "LOW_RISK",
|
|
5
|
-
MEDIUM_RISK = "MEDIUM_RISK",
|
|
6
|
-
HIGH_RISK = "HIGH_RISK"
|
|
7
|
-
}
|
|
8
|
-
interface KenoConfig {
|
|
9
|
-
tiles: number;
|
|
10
|
-
payout: Record<KenoRiskLevel, number[]>;
|
|
11
|
-
}
|
|
12
|
-
declare const VALID_KENO_EDGES: readonly [1, 2, 3, 4, 8];
|
|
13
|
-
export type KenoEdge = (typeof VALID_KENO_EDGES)[number];
|
|
14
|
-
export declare class Keno {
|
|
15
|
-
static validEdges: readonly [1, 2, 3, 4, 8];
|
|
16
|
-
static getEdge(edge: number): KenoEdge;
|
|
17
|
-
static configs(edge: KenoEdge): KenoConfig[];
|
|
18
|
-
static calculateMultiplier(risk: KenoRiskLevel, selectedTiles: number[], results: number[], edge: KenoEdge): Big.Big;
|
|
19
|
-
static getResults(hexStr: string[], rows: number): number[];
|
|
20
|
-
static getChance({ correctPicks, picked }: {
|
|
21
|
-
correctPicks: number;
|
|
22
|
-
picked: number;
|
|
23
|
-
}): Big.Big;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as Big } from 'big.js';
|
|
2
|
-
export declare class Mines {
|
|
3
|
-
static getResults(hexStr: string[], rows: number): number[];
|
|
4
|
-
static hitMine: (field: number, results: number[]) => boolean;
|
|
5
|
-
static calculateMultiplierBN(diamonds: number, mines: number, edge: number): Big.Big;
|
|
6
|
-
static calculateWinChancePercentage(diamonds: number, mines: number): Big.Big;
|
|
7
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { default as Big } from 'big.js';
|
|
2
|
-
/**
|
|
3
|
-
* Validates if a value can be safely passed to the Big.js constructor without throwing an error.
|
|
4
|
-
*
|
|
5
|
-
* This function uses Big.js's own internal NUMERIC regex to ensure perfect compatibility.
|
|
6
|
-
*
|
|
7
|
-
* The Big.js constructor throws errors for:
|
|
8
|
-
* - null or undefined values
|
|
9
|
-
* - NaN (both number and string forms)
|
|
10
|
-
* - Infinity and -Infinity (both number and string forms)
|
|
11
|
-
* - Empty strings or strings with only whitespace
|
|
12
|
-
* - Strings that don't represent valid numbers (per Big.js NUMERIC regex)
|
|
13
|
-
* - Strings with positive signs (+123 is invalid in Big.js)
|
|
14
|
-
* - Non-string, non-number primitive types
|
|
15
|
-
* - Objects, arrays, functions, symbols, etc.
|
|
16
|
-
*
|
|
17
|
-
* @param value - The value to validate for Big.js constructor compatibility
|
|
18
|
-
* @returns true if the value can be safely passed to Big(), false otherwise
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* isValidBigInput('123.45') // true
|
|
23
|
-
* isValidBigInput(123.45) // true
|
|
24
|
-
* isValidBigInput('1e10') // true
|
|
25
|
-
* isValidBigInput('NaN') // false
|
|
26
|
-
* isValidBigInput(NaN) // false
|
|
27
|
-
* isValidBigInput('Infinity') // false
|
|
28
|
-
* isValidBigInput(Infinity) // false
|
|
29
|
-
* isValidBigInput('') // false
|
|
30
|
-
* isValidBigInput(' ') // false
|
|
31
|
-
* isValidBigInput(' 123.45 ') // false (Big.js doesn't accept whitespace)
|
|
32
|
-
* isValidBigInput('+123') // false (Big.js doesn't accept positive signs)
|
|
33
|
-
* isValidBigInput('abc') // false
|
|
34
|
-
* isValidBigInput('0x10') // false (Big.js doesn't accept hex)
|
|
35
|
-
* isValidBigInput(null) // false
|
|
36
|
-
* isValidBigInput(undefined) // false
|
|
37
|
-
* isValidBigInput({}) // false
|
|
38
|
-
* isValidBigInput([]) // false
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export declare function isValidBigInput(value: unknown): value is string | number;
|
|
42
|
-
/**
|
|
43
|
-
* Safely creates a Big instance from a value, returning a fallback Big instance if the input is invalid.
|
|
44
|
-
*
|
|
45
|
-
* @param value - The value to convert to Big
|
|
46
|
-
* @param fallback - The fallback value to use if the input is invalid (defaults to '0')
|
|
47
|
-
* @returns A Big instance created from the value or fallback
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```typescript
|
|
51
|
-
* safeBig('123.45') // Big('123.45')
|
|
52
|
-
* safeBig('invalid') // Big('0')
|
|
53
|
-
* safeBig('invalid', '100') // Big('100')
|
|
54
|
-
* safeBig(null, '0.00') // Big('0.00')
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
export declare function safeBig(value: unknown, fallback?: string | number): Big;
|
|
58
|
-
/**
|
|
59
|
-
* Attempts to create a Big instance from a value, returning null if the input is invalid.
|
|
60
|
-
*
|
|
61
|
-
* @param value - The value to convert to Big
|
|
62
|
-
* @returns A Big instance or null if the input is invalid
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```typescript
|
|
66
|
-
* tryBig('123.45') // Big('123.45')
|
|
67
|
-
* tryBig('invalid') // null
|
|
68
|
-
* tryBig(null) // null
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
export declare function tryBig(value: unknown): Big | null;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as Big } from 'big.js';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the minimum value from a list of BigNumber values
|
|
4
|
-
* @param values - Array of BigNumber values or values that can be converted to BigNumber
|
|
5
|
-
* @returns The minimum BigNumber value
|
|
6
|
-
*/
|
|
7
|
-
export declare function bigNumberMin(...values: (Big | string | number | null | undefined)[]): Big;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function hexToBytes(hexStr: string): Uint8Array;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import { default as OrigamiElement } from '../origami-element';
|
|
3
|
-
import { Card } from '@betorigami/game-calculations';
|
|
4
|
-
export declare class OrigamiCard extends OrigamiElement {
|
|
5
|
-
static styles: import('lit').CSSResult[];
|
|
6
|
-
card?: Card;
|
|
7
|
-
faceDown: boolean;
|
|
8
|
-
cardId: string;
|
|
9
|
-
extraClass: string;
|
|
10
|
-
revealed: boolean;
|
|
11
|
-
instantMode: boolean;
|
|
12
|
-
cardBackImageUrl: string | null;
|
|
13
|
-
private _hasAnimatedReveal;
|
|
14
|
-
cardContent: HTMLElement;
|
|
15
|
-
private get prefersReducedMotion();
|
|
16
|
-
protected updated(changedProps: PropertyValues): void;
|
|
17
|
-
/**
|
|
18
|
-
* Play the flip animation when revealed prop becomes true.
|
|
19
|
-
* Emits 'card-flipping' at start and 'card-flipped' when complete.
|
|
20
|
-
*/
|
|
21
|
-
private _playRevealAnimation;
|
|
22
|
-
/**
|
|
23
|
-
* Play the deal animation (card flies from dx,dy offset to its position).
|
|
24
|
-
* Emits 'card-deal-complete' when the slide animation finishes.
|
|
25
|
-
* The flip animation is triggered separately when the revealed prop changes.
|
|
26
|
-
* This is to be called by the parent of this element to animate the card to the final position
|
|
27
|
-
*/
|
|
28
|
-
playDealAnimation(dx: number, dy: number): Promise<void>;
|
|
29
|
-
render(): import('lit').TemplateResult<1>;
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const cardStyles: import('lit').CSSResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const cardStackStyles: import('lit').CSSResult;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const DIAMONDS_SVG: import('lit').TemplateResult<1>;
|
|
2
|
-
export declare const SPADES_SVG: import('lit').TemplateResult<1>;
|
|
3
|
-
export declare const CLUBS_SVG: import('lit').TemplateResult<1>;
|
|
4
|
-
export declare const HEARTS_SVG: import('lit').TemplateResult<1>;
|
|
5
|
-
export declare const CARD_BACK_SVG: import('lit').TemplateResult<1>;
|
|
6
|
-
export declare const SUIT_SVGS: {
|
|
7
|
-
readonly Diamonds: import('lit').TemplateResult<1>;
|
|
8
|
-
readonly Spades: import('lit').TemplateResult<1>;
|
|
9
|
-
readonly Clubs: import('lit').TemplateResult<1>;
|
|
10
|
-
readonly Hearts: import('lit').TemplateResult<1>;
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Card } from '@betorigami/game-calculations';
|
|
2
|
-
/**
|
|
3
|
-
* A card that is being displayed on screen with animation state.
|
|
4
|
-
* Generic TId allows games to define their own ID types (e.g., BaccaratCardId)
|
|
5
|
-
*/
|
|
6
|
-
export interface DisplayedCard<TId extends string = string> {
|
|
7
|
-
id: TId;
|
|
8
|
-
card: Card;
|
|
9
|
-
revealed: boolean;
|
|
10
|
-
}
|