@gamepark/react-client 5.23.2 → 6.0.1-alpha.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/Actions/ActionFailed.d.ts +1 -1
- package/dist/Actions/ActionType.d.ts +3 -0
- package/dist/Actions/ActionType.js +8 -0
- package/dist/Actions/ActionType.js.map +1 -0
- package/dist/Actions/AnimationComplete.d.ts +1 -1
- package/dist/Actions/AnimationComplete.js.map +1 -1
- package/dist/Actions/AnimationPaused.d.ts +1 -1
- package/dist/Actions/AnimationStart.d.ts +1 -1
- package/dist/Actions/ClearFailures.d.ts +1 -1
- package/dist/Actions/GameNotificationsReceived.d.ts +2 -3
- package/dist/Actions/GameNotificationsReceived.js.map +1 -1
- package/dist/Actions/GameOver.d.ts +1 -1
- package/dist/Actions/GameStateLoaded.d.ts +2 -6
- package/dist/Actions/GameStateLoaded.js.map +1 -1
- package/dist/Actions/MovePlayed.d.ts +3 -3
- package/dist/Actions/MovePlayed.js +0 -2
- package/dist/Actions/MovePlayed.js.map +1 -1
- package/dist/Actions/MoveUndone.d.ts +1 -1
- package/dist/Actions/SetAnimationsSpeed.d.ts +1 -1
- package/dist/Actions/index.d.ts +12 -0
- package/dist/Actions/index.js +29 -0
- package/dist/Actions/index.js.map +1 -0
- package/dist/Chat/ChatChannel.d.ts +1 -2
- package/dist/Chat/Message.d.ts +1 -2
- package/dist/Chat/index.d.ts +2 -7
- package/dist/Chat/index.js +15 -13
- package/dist/Chat/index.js.map +1 -1
- package/dist/EjectPlayer/EjectPlayer.d.ts +1 -1
- package/dist/EjectPlayer/index.d.ts +0 -5
- package/dist/EjectPlayer/index.js +0 -12
- package/dist/EjectPlayer/index.js.map +1 -1
- package/dist/Failure/Failure.d.ts +1 -2
- package/dist/Failure/Failure.js +2 -2
- package/dist/Failure/Failure.js.map +1 -1
- package/dist/Failure/index.d.ts +1 -3
- package/dist/Failure/index.js +14 -9
- package/dist/Failure/index.js.map +1 -1
- package/dist/GameProvider/GameContext.d.ts +3 -4
- package/dist/GameProvider/GameContext.js.map +1 -1
- package/dist/GameProvider/index.d.ts +1 -3
- package/dist/GameProvider/index.js +14 -5
- package/dist/GameProvider/index.js.map +1 -1
- package/dist/GiveUp/GiveUp.d.ts +8 -9
- package/dist/GiveUp/GiveUp.js.map +1 -1
- package/dist/GiveUp/index.d.ts +0 -3
- package/dist/GiveUp/index.js +0 -8
- package/dist/GiveUp/index.js.map +1 -1
- package/dist/Hooks/index.d.ts +5 -0
- package/dist/Hooks/index.js +22 -0
- package/dist/Hooks/index.js.map +1 -0
- package/dist/Hooks/useChatMessages.d.ts +20 -0
- package/dist/Hooks/useChatMessages.js +52 -0
- package/dist/Hooks/useChatMessages.js.map +1 -0
- package/dist/Hooks/useMessageAuthor.d.ts +4 -0
- package/dist/Hooks/useMessageAuthor.js +17 -0
- package/dist/Hooks/useMessageAuthor.js.map +1 -0
- package/dist/Hooks/useOptions.d.ts +2 -2
- package/dist/Hooks/useOptions.js +2 -2
- package/dist/Hooks/useOptions.js.map +1 -1
- package/dist/Hooks/useRematch.d.ts +7 -0
- package/dist/Hooks/useRematch.js +20 -0
- package/dist/Hooks/useRematch.js.map +1 -0
- package/dist/Hooks/useSendMessage.d.ts +1 -0
- package/dist/Hooks/useSendMessage.js +15 -0
- package/dist/Hooks/useSendMessage.js.map +1 -0
- package/dist/PlayerTime/PlayerTime.d.ts +2 -3
- package/dist/PlayerTime/PlayerTime.js.map +1 -1
- package/dist/PlayerTime/index.d.ts +0 -5
- package/dist/PlayerTime/index.js +0 -11
- package/dist/PlayerTime/index.js.map +1 -1
- package/dist/Rematch/index.d.ts +1 -0
- package/dist/Rematch/index.js +18 -0
- package/dist/Rematch/index.js.map +1 -0
- package/dist/Sound/MuteSounds.d.ts +1 -1
- package/dist/Sound/UnmuteSounds.d.ts +1 -1
- package/dist/Sound/index.d.ts +3 -4
- package/dist/Sound/index.js +16 -7
- package/dist/Sound/index.js.map +1 -1
- package/dist/Sound/useSoundControls.d.ts +1 -1
- package/dist/Sound/useSoundControls.js +2 -1
- package/dist/Sound/useSoundControls.js.map +1 -1
- package/dist/Store/DisplayedAction.d.ts +2 -4
- package/dist/Store/DisplayedAction.js +2 -5
- package/dist/Store/DisplayedAction.js.map +1 -1
- package/dist/Store/GamePageState.d.ts +3 -8
- package/dist/Store/gameMiddleware.d.ts +3 -3
- package/dist/Store/gameMiddleware.js +5 -5
- package/dist/Store/gameMiddleware.js.map +1 -1
- package/dist/Store/gameReducer.d.ts +5 -15
- package/dist/Store/gameReducer.js +39 -48
- package/dist/Store/gameReducer.js.map +1 -1
- package/dist/Store/index.d.ts +2 -0
- package/dist/Store/index.js +19 -0
- package/dist/Store/index.js.map +1 -0
- package/dist/Tutorial/PlayTutorialMoves.d.ts +1 -2
- package/dist/Tutorial/PlayTutorialMoves.js.map +1 -1
- package/dist/Tutorial/Tutorial.d.ts +1 -2
- package/dist/Tutorial/TutorialDescription.d.ts +1 -2
- package/dist/Tutorial/index.d.ts +3 -4
- package/dist/Tutorial/index.js +16 -7
- package/dist/Tutorial/index.js.map +1 -1
- package/dist/Tutorial/useTutorial.d.ts +2 -2
- package/dist/Tutorial/useTutorial.js +4 -6
- package/dist/Tutorial/useTutorial.js.map +1 -1
- package/dist/Types/GameAI.d.ts +1 -2
- package/dist/Types/GameData.d.ts +5 -6
- package/dist/Types/GameMessage.d.ts +3 -4
- package/dist/Types/GameMode.d.ts +1 -2
- package/dist/Types/GameMode.js +2 -2
- package/dist/Types/GameMode.js.map +1 -1
- package/dist/Types/GameNotification.d.ts +1 -2
- package/dist/Types/GameOptions.d.ts +1 -2
- package/dist/Types/MovePlayedNotification.d.ts +2 -3
- package/dist/Types/MovePlayedNotification.js.map +1 -1
- package/dist/Types/MoveUndoneNotification.d.ts +2 -3
- package/dist/Types/MoveUndoneNotification.js.map +1 -1
- package/dist/Types/Player.d.ts +2 -3
- package/dist/Types/ProxyGameData.d.ts +2 -3
- package/dist/Types/Tournament.d.ts +1 -2
- package/dist/Types/index.d.ts +11 -0
- package/dist/Types/index.js +28 -0
- package/dist/Types/index.js.map +1 -0
- package/dist/User/User.d.ts +1 -2
- package/dist/User/index.d.ts +2 -2
- package/dist/User/index.js +15 -5
- package/dist/User/index.js.map +1 -1
- package/dist/User/useMe.d.ts +2 -2
- package/dist/User/useMe.js +2 -1
- package/dist/User/useMe.js.map +1 -1
- package/dist/animations/Animation.d.ts +2 -3
- package/dist/animations/AnimationContext.d.ts +3 -4
- package/dist/animations/AnimationState.d.ts +2 -3
- package/dist/animations/AnimationStep.d.ts +1 -2
- package/dist/animations/AnimationStep.js +2 -2
- package/dist/animations/AnimationStep.js.map +1 -1
- package/dist/animations/Animations.d.ts +2 -3
- package/dist/animations/Animations.js +7 -9
- package/dist/animations/Animations.js.map +1 -1
- package/dist/animations/AnimationsListenerCreator.d.ts +1 -1
- package/dist/animations/AnimationsListenerCreator.js +5 -6
- package/dist/animations/AnimationsListenerCreator.js.map +1 -1
- package/dist/animations/index.d.ts +6 -0
- package/dist/animations/index.js +23 -0
- package/dist/animations/index.js.map +1 -0
- package/dist/api/Client/GameClientAPI.d.ts +2 -2
- package/dist/api/Client/GameClientAPI.js +7 -8
- package/dist/api/Client/GameClientAPI.js.map +1 -1
- package/dist/api/Client/GameNotificationsListener.d.ts +1 -1
- package/dist/api/Client/GameNotificationsListener.js +6 -6
- package/dist/api/Client/GameNotificationsListener.js.map +1 -1
- package/dist/api/Client/RemoteGameLoader.d.ts +1 -1
- package/dist/api/Client/RemoteGameLoader.js +6 -8
- package/dist/api/Client/RemoteGameLoader.js.map +1 -1
- package/dist/api/Client/RemoteGameProvider.d.ts +1 -1
- package/dist/api/Client/RemoteGameProvider.js +14 -13
- package/dist/api/Client/RemoteGameProvider.js.map +1 -1
- package/dist/api/Client/apollo-client.js +2 -2
- package/dist/api/Client/apollo-client.js.map +1 -1
- package/dist/api/Client/index.d.ts +2 -0
- package/dist/api/Client/index.js +19 -0
- package/dist/api/Client/index.js.map +1 -0
- package/dist/api/GameAPI.d.ts +1 -1
- package/dist/api/Local/ConsoleTools.d.ts +3 -3
- package/dist/api/Local/ConsoleTools.js +2 -1
- package/dist/api/Local/ConsoleTools.js.map +1 -1
- package/dist/api/Local/GameLocalAPI.d.ts +3 -4
- package/dist/api/Local/GameLocalAPI.js +22 -25
- package/dist/api/Local/GameLocalAPI.js.map +1 -1
- package/dist/api/Local/LocalGameProvider.d.ts +1 -1
- package/dist/api/Local/LocalGameProvider.js +14 -16
- package/dist/api/Local/LocalGameProvider.js.map +1 -1
- package/dist/api/Local/index.d.ts +1 -0
- package/dist/api/Local/index.js +18 -0
- package/dist/api/Local/index.js.map +1 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +19 -0
- package/dist/api/index.js.map +1 -0
- package/dist/index.d.ts +11 -33
- package/dist/index.js +12 -52
- package/dist/index.js.map +1 -1
- package/dist/util/TimeUtil.d.ts +1 -1
- package/package.json +15 -30
- package/dist/Avatar/Avatar.d.ts +0 -8
- package/dist/Avatar/Avatar.js +0 -64
- package/dist/Avatar/Avatar.js.map +0 -1
- package/dist/Avatar/ChatSpeechBubble.d.ts +0 -8
- package/dist/Avatar/ChatSpeechBubble.js +0 -64
- package/dist/Avatar/ChatSpeechBubble.js.map +0 -1
- package/dist/Avatar/SpeechBubble.d.ts +0 -4
- package/dist/Avatar/SpeechBubble.js +0 -69
- package/dist/Avatar/SpeechBubble.js.map +0 -1
- package/dist/Avatar/SpeechBubbleDirection.d.ts +0 -7
- package/dist/Avatar/SpeechBubbleDirection.js +0 -11
- package/dist/Avatar/SpeechBubbleDirection.js.map +0 -1
- package/dist/Avatar/SpeechBubbleProps.d.ts +0 -9
- package/dist/Avatar/SpeechBubbleProps.js +0 -3
- package/dist/Avatar/SpeechBubbleProps.js.map +0 -1
- package/dist/Avatar/index.d.ts +0 -5
- package/dist/Avatar/index.js +0 -15
- package/dist/Avatar/index.js.map +0 -1
- package/dist/Chat/Chat.d.ts +0 -3
- package/dist/Chat/Chat.js +0 -103
- package/dist/Chat/Chat.js.map +0 -1
- package/dist/Chat/ChatMessage.d.ts +0 -7
- package/dist/Chat/ChatMessage.js +0 -32
- package/dist/Chat/ChatMessage.js.map +0 -1
- package/dist/Chat/ChatMessageAuthor.d.ts +0 -3
- package/dist/Chat/ChatMessageAuthor.js +0 -40
- package/dist/Chat/ChatMessageAuthor.js.map +0 -1
- package/dist/Chat/ChatTextInput.d.ts +0 -7
- package/dist/Chat/ChatTextInput.js +0 -45
- package/dist/Chat/ChatTextInput.js.map +0 -1
- package/dist/Chat/SignInToChat.d.ts +0 -1
- package/dist/Chat/SignInToChat.js +0 -35
- package/dist/Chat/SignInToChat.js.map +0 -1
- package/dist/EjectPlayer/EjectPlayerButton.d.ts +0 -2
- package/dist/EjectPlayer/EjectPlayerButton.js +0 -37
- package/dist/EjectPlayer/EjectPlayerButton.js.map +0 -1
- package/dist/EjectPlayer/EjectPlayerDialog.d.ts +0 -4
- package/dist/EjectPlayer/EjectPlayerDialog.js +0 -74
- package/dist/EjectPlayer/EjectPlayerDialog.js.map +0 -1
- package/dist/EjectPlayer/EjectPlayerPopButton.d.ts +0 -2
- package/dist/EjectPlayer/EjectPlayerPopButton.js +0 -40
- package/dist/EjectPlayer/EjectPlayerPopButton.js.map +0 -1
- package/dist/EjectPlayer/useOpponentWithMaxTime.d.ts +0 -5
- package/dist/EjectPlayer/useOpponentWithMaxTime.js +0 -40
- package/dist/EjectPlayer/useOpponentWithMaxTime.js.map +0 -1
- package/dist/Failure/FailuresDialog.d.ts +0 -2
- package/dist/Failure/FailuresDialog.js +0 -71
- package/dist/Failure/FailuresDialog.js.map +0 -1
- package/dist/Failure/useFailures.d.ts +0 -1
- package/dist/Failure/useFailures.js +0 -10
- package/dist/Failure/useFailures.js.map +0 -1
- package/dist/Fullscreen/FullscreenButton.d.ts +0 -1
- package/dist/Fullscreen/FullscreenButton.js +0 -30
- package/dist/Fullscreen/FullscreenButton.js.map +0 -1
- package/dist/Fullscreen/FullscreenDialog.d.ts +0 -2
- package/dist/Fullscreen/FullscreenDialog.js +0 -46
- package/dist/Fullscreen/FullscreenDialog.js.map +0 -1
- package/dist/Fullscreen/FullscreenPopButton.d.ts +0 -1
- package/dist/Fullscreen/FullscreenPopButton.js +0 -42
- package/dist/Fullscreen/FullscreenPopButton.js.map +0 -1
- package/dist/Fullscreen/index.d.ts +0 -4
- package/dist/Fullscreen/index.js +0 -15
- package/dist/Fullscreen/index.js.map +0 -1
- package/dist/Fullscreen/useFullscreen.d.ts +0 -5
- package/dist/Fullscreen/useFullscreen.js +0 -35
- package/dist/Fullscreen/useFullscreen.js.map +0 -1
- package/dist/GamePoints/GamePointIcon.d.ts +0 -3
- package/dist/GamePoints/GamePointIcon.js +0 -25
- package/dist/GamePoints/GamePointIcon.js.map +0 -1
- package/dist/GamePoints/GamePoints.d.ts +0 -8
- package/dist/GamePoints/GamePoints.js +0 -60
- package/dist/GamePoints/GamePoints.js.map +0 -1
- package/dist/GamePoints/index.d.ts +0 -2
- package/dist/GamePoints/index.js +0 -11
- package/dist/GamePoints/index.js.map +0 -1
- package/dist/GameProvider/GameProvider.d.ts +0 -4
- package/dist/GameProvider/GameProvider.js +0 -58
- package/dist/GameProvider/GameProvider.js.map +0 -1
- package/dist/GameProvider/GameProviderProps.d.ts +0 -19
- package/dist/GameProvider/GameProviderProps.js +0 -8
- package/dist/GameProvider/GameProviderProps.js.map +0 -1
- package/dist/GiveUp/GiveUpButton.d.ts +0 -1
- package/dist/GiveUp/GiveUpButton.js +0 -49
- package/dist/GiveUp/GiveUpButton.js.map +0 -1
- package/dist/GiveUp/useGiveUp.d.ts +0 -1
- package/dist/GiveUp/useGiveUp.js +0 -20
- package/dist/GiveUp/useGiveUp.js.map +0 -1
- package/dist/Hooks/useActions.d.ts +0 -2
- package/dist/Hooks/useActions.js +0 -8
- package/dist/Hooks/useActions.js.map +0 -1
- package/dist/Hooks/useAnimation.d.ts +0 -4
- package/dist/Hooks/useAnimation.js +0 -30
- package/dist/Hooks/useAnimation.js.map +0 -1
- package/dist/Hooks/useAnimations.d.ts +0 -2
- package/dist/Hooks/useAnimations.js +0 -12
- package/dist/Hooks/useAnimations.js.map +0 -1
- package/dist/Hooks/useGame.d.ts +0 -1
- package/dist/Hooks/useGame.js +0 -8
- package/dist/Hooks/useGame.js.map +0 -1
- package/dist/Hooks/useNow.d.ts +0 -6
- package/dist/Hooks/useNow.js +0 -21
- package/dist/Hooks/useNow.js.map +0 -1
- package/dist/Hooks/useNumberOfPlayers.d.ts +0 -1
- package/dist/Hooks/useNumberOfPlayers.js +0 -8
- package/dist/Hooks/useNumberOfPlayers.js.map +0 -1
- package/dist/Hooks/usePlay.d.ts +0 -7
- package/dist/Hooks/usePlay.js +0 -23
- package/dist/Hooks/usePlay.js.map +0 -1
- package/dist/Hooks/usePlayer.d.ts +0 -6
- package/dist/Hooks/usePlayer.js +0 -24
- package/dist/Hooks/usePlayer.js.map +0 -1
- package/dist/Hooks/usePlayerId.d.ts +0 -1
- package/dist/Hooks/usePlayerId.js +0 -8
- package/dist/Hooks/usePlayerId.js.map +0 -1
- package/dist/Hooks/usePlayers.d.ts +0 -6
- package/dist/Hooks/usePlayers.js +0 -22
- package/dist/Hooks/usePlayers.js.map +0 -1
- package/dist/Menu/GamePointIcon.d.ts +0 -2
- package/dist/Menu/GamePointIcon.js +0 -19
- package/dist/Menu/GamePointIcon.js.map +0 -1
- package/dist/Menu/LogoIcon.d.ts +0 -2
- package/dist/Menu/LogoIcon.js +0 -19
- package/dist/Menu/LogoIcon.js.map +0 -1
- package/dist/Menu/Menu.d.ts +0 -3
- package/dist/Menu/Menu.js +0 -107
- package/dist/Menu/Menu.js.map +0 -1
- package/dist/Menu/MenuPopButton.d.ts +0 -7
- package/dist/Menu/MenuPopButton.js +0 -51
- package/dist/Menu/MenuPopButton.js.map +0 -1
- package/dist/Menu/MenuStyles.d.ts +0 -9
- package/dist/Menu/MenuStyles.js +0 -27
- package/dist/Menu/MenuStyles.js.map +0 -1
- package/dist/Menu/NavButton.d.ts +0 -7
- package/dist/Menu/NavButton.js +0 -32
- package/dist/Menu/NavButton.js.map +0 -1
- package/dist/Menu/index.d.ts +0 -4
- package/dist/Menu/index.js +0 -28
- package/dist/Menu/index.js.map +0 -1
- package/dist/PlayerTime/PlayerTimer.d.ts +0 -11
- package/dist/PlayerTime/PlayerTimer.js +0 -54
- package/dist/PlayerTime/PlayerTimer.js.map +0 -1
- package/dist/PlayerTime/TimeStatsButton.d.ts +0 -1
- package/dist/PlayerTime/TimeStatsButton.js +0 -71
- package/dist/PlayerTime/TimeStatsButton.js.map +0 -1
- package/dist/PlayerTime/humanizeTimer.d.ts +0 -1
- package/dist/PlayerTime/humanizeTimer.js +0 -21
- package/dist/PlayerTime/humanizeTimer.js.map +0 -1
- package/dist/PlayerTime/usePlayerTime.d.ts +0 -1
- package/dist/PlayerTime/usePlayerTime.js +0 -36
- package/dist/PlayerTime/usePlayerTime.js.map +0 -1
- package/dist/Rematch/RematchDisplay.d.ts +0 -6
- package/dist/Rematch/RematchDisplay.js +0 -62
- package/dist/Rematch/RematchDisplay.js.map +0 -1
- package/dist/Rematch/RematchSection.d.ts +0 -5
- package/dist/Rematch/RematchSection.js +0 -54
- package/dist/Rematch/RematchSection.js.map +0 -1
- package/dist/Result/Medal.d.ts +0 -5
- package/dist/Result/Medal.js +0 -44
- package/dist/Result/Medal.js.map +0 -1
- package/dist/Result/MedalBronze.d.ts +0 -3
- package/dist/Result/MedalBronze.js +0 -17
- package/dist/Result/MedalBronze.js.map +0 -1
- package/dist/Result/MedalGold.d.ts +0 -3
- package/dist/Result/MedalGold.js +0 -17
- package/dist/Result/MedalGold.js.map +0 -1
- package/dist/Result/MedalSilver.d.ts +0 -3
- package/dist/Result/MedalSilver.js +0 -17
- package/dist/Result/MedalSilver.js.map +0 -1
- package/dist/Result/ResultButton.d.ts +0 -2
- package/dist/Result/ResultButton.js +0 -25
- package/dist/Result/ResultButton.js.map +0 -1
- package/dist/Result/ResultDialog.d.ts +0 -7
- package/dist/Result/ResultDialog.js +0 -112
- package/dist/Result/ResultDialog.js.map +0 -1
- package/dist/Result/ResultPopButton.d.ts +0 -2
- package/dist/Result/ResultPopButton.js +0 -39
- package/dist/Result/ResultPopButton.js.map +0 -1
- package/dist/Result/index.d.ts +0 -3
- package/dist/Result/index.js +0 -13
- package/dist/Result/index.js.map +0 -1
- package/dist/Sound/SoundButton.d.ts +0 -1
- package/dist/Sound/SoundButton.js +0 -36
- package/dist/Sound/SoundButton.js.map +0 -1
- package/dist/Sound/useSound.d.ts +0 -1
- package/dist/Sound/useSound.js +0 -18
- package/dist/Sound/useSound.js.map +0 -1
- package/dist/Theme/ContrastTheme.d.ts +0 -6
- package/dist/Theme/ContrastTheme.js +0 -8
- package/dist/Theme/ContrastTheme.js.map +0 -1
- package/dist/Theme/ContrastThemeButton.d.ts +0 -4
- package/dist/Theme/ContrastThemeButton.js +0 -26
- package/dist/Theme/ContrastThemeButton.js.map +0 -1
- package/dist/Theme/index.d.ts +0 -2
- package/dist/Theme/index.js +0 -9
- package/dist/Theme/index.js.map +0 -1
- package/dist/Theme/useContrastTheme.d.ts +0 -2
- package/dist/Theme/useContrastTheme.js +0 -24
- package/dist/Theme/useContrastTheme.js.map +0 -1
- package/dist/Tutorial/RestartTutorialButton.d.ts +0 -1
- package/dist/Tutorial/RestartTutorialButton.js +0 -35
- package/dist/Tutorial/RestartTutorialButton.js.map +0 -1
- package/dist/Undo/UndoButton.d.ts +0 -1
- package/dist/Undo/UndoButton.js +0 -31
- package/dist/Undo/UndoButton.js.map +0 -1
- package/dist/Undo/UndoPopButton.d.ts +0 -1
- package/dist/Undo/UndoPopButton.js +0 -38
- package/dist/Undo/UndoPopButton.js.map +0 -1
- package/dist/Undo/index.d.ts +0 -4
- package/dist/Undo/index.js +0 -28
- package/dist/Undo/index.js.map +0 -1
- package/dist/Undo/useUndo.d.ts +0 -7
- package/dist/Undo/useUndo.js +0 -50
- package/dist/Undo/useUndo.js.map +0 -1
- package/dist/datadog/DatadogLogsInitializer.d.ts +0 -1
- package/dist/datadog/DatadogLogsInitializer.js +0 -61
- package/dist/datadog/DatadogLogsInitializer.js.map +0 -1
- package/dist/translation/TranslationSetup.d.ts +0 -4
- package/dist/translation/TranslationSetup.js +0 -32
- package/dist/translation/TranslationSetup.js.map +0 -1
- package/dist/util/webPReplace.d.ts +0 -2
- package/dist/util/webPReplace.js +0 -10
- package/dist/util/webPReplace.js.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionType = void 0;
|
|
4
|
+
var ActionType;
|
|
5
|
+
(function (ActionType) {
|
|
6
|
+
ActionType[ActionType["MOVE_PLAYED"] = 0] = "MOVE_PLAYED";
|
|
7
|
+
})(ActionType = exports.ActionType || (exports.ActionType = {}));
|
|
8
|
+
//# sourceMappingURL=ActionType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionType.js","sourceRoot":"","sources":["../../src/Actions/ActionType.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,yDAAW,CAAA;AACb,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationComplete.js","sourceRoot":"","sources":["../../src/Actions/AnimationComplete.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAA;AAOtD,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"AnimationComplete.js","sourceRoot":"","sources":["../../src/Actions/AnimationComplete.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAA;AAOtD,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,OAAO,EAAE,IAAI,EAAE,0BAAkB,EAAE,WAAW,aAAA,EAAE,CAAA;AAClD,CAAC;AAFD,8CAEC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import GameNotification from '../Types
|
|
2
|
-
import Player from '../Types/Player';
|
|
1
|
+
import { GameNotification, Player } from '../Types';
|
|
3
2
|
export declare const GAME_NOTIFICATIONS_RECEIVED = "GAME_NOTIFICATIONS_RECEIVED";
|
|
4
|
-
export
|
|
3
|
+
export interface GameNotificationsReceived<PlayerId> {
|
|
5
4
|
type: typeof GAME_NOTIFICATIONS_RECEIVED;
|
|
6
5
|
notifications: GameNotification<PlayerId>[];
|
|
7
6
|
notificationsIndex: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameNotificationsReceived.js","sourceRoot":"","sources":["../../src/Actions/GameNotificationsReceived.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"GameNotificationsReceived.js","sourceRoot":"","sources":["../../src/Actions/GameNotificationsReceived.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAAG,6BAA6B,CAAA;AAUxE,SAAgB,yBAAyB,CAAW,aAA2C,EAAE,kBAA8B,EAAE,OAA2B,EAAE,UAAmB;IAAhF,mCAAA,EAAA,sBAA8B;IAC7H,OAAO,EAAE,IAAI,EAAE,mCAA2B,EAAE,aAAa,eAAA,EAAE,kBAAkB,oBAAA,EAAE,OAAO,SAAA,EAAE,UAAU,YAAA,EAAE,CAAA;AACtG,CAAC;AAFD,8DAEC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import GameData from '../Types
|
|
2
|
-
import GameMode from '../Types/GameMode';
|
|
3
|
-
import GameOptions from '../Types/GameOptions';
|
|
4
|
-
import Player from '../Types/Player';
|
|
5
|
-
import Tournament from '../Types/Tournament';
|
|
1
|
+
import { GameData, GameMode, GameOptions, Player, Tournament } from '../Types';
|
|
6
2
|
export declare const GAME_STATE_LOADED = "GAME_STATE_LOADED";
|
|
7
|
-
export
|
|
3
|
+
export interface GameStateLoaded<Game, PlayerId> {
|
|
8
4
|
type: typeof GAME_STATE_LOADED;
|
|
9
5
|
players: Player<PlayerId>[];
|
|
10
6
|
options: GameOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameStateLoaded.js","sourceRoot":"","sources":["../../src/Actions/GameStateLoaded.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GameStateLoaded.js","sourceRoot":"","sources":["../../src/Actions/GameStateLoaded.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEa,QAAA,iBAAiB,GAAG,mBAAmB,CAAA;AAgBpD,SAAgB,eAAe,CAAkB,IAA+B,EAAE,UAAmB;;IACnG,2BACE,IAAI,EAAE,yBAAiB,IAAK,IAAI,KAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,YAAA,EAAE,OAAO,EAAE,MAAA,IAAI,CAAC,OAAO,mCAAI,SAAS,EAClJ,UAAU,EAAE,MAAA,IAAI,CAAC,UAAU,mCAAI,SAAS,IACzC;AACH,CAAC;AALD,0CAKC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
type: typeof MOVE_PLAYED;
|
|
1
|
+
import { ActionType } from './ActionType';
|
|
2
|
+
export interface MovePlayed<M> {
|
|
3
|
+
type: typeof ActionType.MOVE_PLAYED;
|
|
4
4
|
move: M;
|
|
5
5
|
delayed?: boolean;
|
|
6
6
|
skipAnimation?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MovePlayed.js","sourceRoot":"","sources":["../../src/Actions/MovePlayed.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MovePlayed.js","sourceRoot":"","sources":["../../src/Actions/MovePlayed.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './ActionFailed';
|
|
2
|
+
export * from './ActionType';
|
|
3
|
+
export * from './AnimationComplete';
|
|
4
|
+
export * from './AnimationPaused';
|
|
5
|
+
export * from './AnimationStart';
|
|
6
|
+
export * from './ClearFailures';
|
|
7
|
+
export * from './GameNotificationsReceived';
|
|
8
|
+
export * from './GameOver';
|
|
9
|
+
export * from './GameStateLoaded';
|
|
10
|
+
export * from './MovePlayed';
|
|
11
|
+
export * from './MoveUndone';
|
|
12
|
+
export * from './SetAnimationsSpeed';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ActionFailed"), exports);
|
|
18
|
+
__exportStar(require("./ActionType"), exports);
|
|
19
|
+
__exportStar(require("./AnimationComplete"), exports);
|
|
20
|
+
__exportStar(require("./AnimationPaused"), exports);
|
|
21
|
+
__exportStar(require("./AnimationStart"), exports);
|
|
22
|
+
__exportStar(require("./ClearFailures"), exports);
|
|
23
|
+
__exportStar(require("./GameNotificationsReceived"), exports);
|
|
24
|
+
__exportStar(require("./GameOver"), exports);
|
|
25
|
+
__exportStar(require("./GameStateLoaded"), exports);
|
|
26
|
+
__exportStar(require("./MovePlayed"), exports);
|
|
27
|
+
__exportStar(require("./MoveUndone"), exports);
|
|
28
|
+
__exportStar(require("./SetAnimationsSpeed"), exports);
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,+CAA4B;AAC5B,sDAAmC;AACnC,oDAAiC;AACjC,mDAAgC;AAChC,kDAA+B;AAC/B,8DAA2C;AAC3C,6CAA0B;AAC1B,oDAAiC;AACjC,+CAA4B;AAC5B,+CAA4B;AAC5B,uDAAoC"}
|
package/dist/Chat/Message.d.ts
CHANGED
package/dist/Chat/index.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export { default as ChatMessage } from './ChatMessage';
|
|
4
|
-
export { default as ChatMessageAuthor } from './ChatMessageAuthor';
|
|
5
|
-
export { default as ChatTextInput } from './ChatTextInput';
|
|
6
|
-
export { default as Message } from './Message';
|
|
7
|
-
export { default as SignInToChat } from './SignInToChat';
|
|
1
|
+
export * from './ChatChannel';
|
|
2
|
+
export * from './Message';
|
package/dist/Chat/index.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Chat_1).default; } });
|
|
9
|
-
var ChatMessage_1 = require("./ChatMessage");
|
|
10
|
-
Object.defineProperty(exports, "ChatMessage", { enumerable: true, get: function () { return __importDefault(ChatMessage_1).default; } });
|
|
11
|
-
var ChatMessageAuthor_1 = require("./ChatMessageAuthor");
|
|
12
|
-
Object.defineProperty(exports, "ChatMessageAuthor", { enumerable: true, get: function () { return __importDefault(ChatMessageAuthor_1).default; } });
|
|
13
|
-
var ChatTextInput_1 = require("./ChatTextInput");
|
|
14
|
-
Object.defineProperty(exports, "ChatTextInput", { enumerable: true, get: function () { return __importDefault(ChatTextInput_1).default; } });
|
|
15
|
-
var SignInToChat_1 = require("./SignInToChat");
|
|
16
|
-
Object.defineProperty(exports, "SignInToChat", { enumerable: true, get: function () { return __importDefault(SignInToChat_1).default; } });
|
|
17
|
+
__exportStar(require("./ChatChannel"), exports);
|
|
18
|
+
__exportStar(require("./Message"), exports);
|
|
17
19
|
//# sourceMappingURL=index.js.map
|
package/dist/Chat/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Chat/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,4CAAyB"}
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export { default } from './EjectPlayer';
|
|
2
1
|
export * from './EjectPlayer';
|
|
3
|
-
export { default as EjectPlayerButton } from './EjectPlayerButton';
|
|
4
|
-
export { default as EjectPlayerDialog } from './EjectPlayerDialog';
|
|
5
|
-
export { default as EjectPlayerPopButton } from './EjectPlayerPopButton';
|
|
6
|
-
export { default as useOpponentWithMaxTime } from './useOpponentWithMaxTime';
|
|
@@ -13,18 +13,6 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.useOpponentWithMaxTime = exports.EjectPlayerPopButton = exports.EjectPlayerDialog = exports.EjectPlayerButton = void 0;
|
|
21
17
|
__exportStar(require("./EjectPlayer"), exports);
|
|
22
|
-
var EjectPlayerButton_1 = require("./EjectPlayerButton");
|
|
23
|
-
Object.defineProperty(exports, "EjectPlayerButton", { enumerable: true, get: function () { return __importDefault(EjectPlayerButton_1).default; } });
|
|
24
|
-
var EjectPlayerDialog_1 = require("./EjectPlayerDialog");
|
|
25
|
-
Object.defineProperty(exports, "EjectPlayerDialog", { enumerable: true, get: function () { return __importDefault(EjectPlayerDialog_1).default; } });
|
|
26
|
-
var EjectPlayerPopButton_1 = require("./EjectPlayerPopButton");
|
|
27
|
-
Object.defineProperty(exports, "EjectPlayerPopButton", { enumerable: true, get: function () { return __importDefault(EjectPlayerPopButton_1).default; } });
|
|
28
|
-
var useOpponentWithMaxTime_1 = require("./useOpponentWithMaxTime");
|
|
29
|
-
Object.defineProperty(exports, "useOpponentWithMaxTime", { enumerable: true, get: function () { return __importDefault(useOpponentWithMaxTime_1).default; } });
|
|
30
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/EjectPlayer/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/EjectPlayer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B"}
|
package/dist/Failure/Failure.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.Failure = void 0;
|
|
4
|
+
exports.Failure = {
|
|
4
5
|
NETWORK: 'Network error',
|
|
5
6
|
MOVE_FORBIDDEN: 'You are not allowed to play this move',
|
|
6
7
|
UNDO_FORBIDDEN: 'This move cannot be undone',
|
|
7
8
|
TUTORIAL_MOVE_EXPECTED: 'You must play the move expected by the tutorial'
|
|
8
9
|
};
|
|
9
|
-
exports.default = Failure;
|
|
10
10
|
//# sourceMappingURL=Failure.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Failure.js","sourceRoot":"","sources":["../../src/Failure/Failure.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Failure.js","sourceRoot":"","sources":["../../src/Failure/Failure.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,OAAO,EAAE,eAAe;IACxB,cAAc,EAAE,uCAAuC;IACvD,cAAc,EAAE,4BAA4B;IAC5C,sBAAsB,EAAE,iDAAiD;CAC1E,CAAA"}
|
package/dist/Failure/index.d.ts
CHANGED
package/dist/Failure/index.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
var Failure_1 = require("./Failure");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Failure_1).default; } });
|
|
9
|
-
var FailuresDialog_1 = require("./FailuresDialog");
|
|
10
|
-
Object.defineProperty(exports, "FailuresDialog", { enumerable: true, get: function () { return __importDefault(FailuresDialog_1).default; } });
|
|
11
|
-
var useFailures_1 = require("./useFailures");
|
|
12
|
-
Object.defineProperty(exports, "useFailures", { enumerable: true, get: function () { return __importDefault(useFailures_1).default; } });
|
|
17
|
+
__exportStar(require("./Failure"), exports);
|
|
13
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Failure/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Failure/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Robot, RulesCreator } from '@gamepark/rules-api';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Animations from '../animations
|
|
3
|
+
import { Animations } from '../animations';
|
|
4
4
|
import { TutorialDescription } from '../Tutorial';
|
|
5
|
-
import GameAI from '../Types
|
|
6
|
-
declare type GameContext<Game = any, GameView = any, Move = any, MoveView = any, PlayerId = any> = {
|
|
5
|
+
import { GameAI } from '../Types';
|
|
6
|
+
export declare type GameContext<Game = any, GameView = any, Move = any, MoveView = any, PlayerId = any> = {
|
|
7
7
|
game: string;
|
|
8
8
|
Rules: RulesCreator<Game, Move, PlayerId>;
|
|
9
9
|
RulesView?: RulesCreator<GameView, MoveView, PlayerId>;
|
|
@@ -14,5 +14,4 @@ declare type GameContext<Game = any, GameView = any, Move = any, MoveView = any,
|
|
|
14
14
|
ai?: GameAI<Game, Move, PlayerId>;
|
|
15
15
|
hasSounds?: boolean;
|
|
16
16
|
};
|
|
17
|
-
export default GameContext;
|
|
18
17
|
export declare const gameContext: React.Context<GameContext<any, any, any, any, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameContext.js","sourceRoot":"","sources":["../../src/GameProvider/GameContext.ts"],"names":[],"mappings":";;;;;;AACA,gDAAyB;
|
|
1
|
+
{"version":3,"file":"GameContext.js","sourceRoot":"","sources":["../../src/GameProvider/GameContext.ts"],"names":[],"mappings":";;;;;;AACA,gDAAyB;AAiBzB;IACE;QACE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAA;IACxC,CAAC;IACH,mBAAC;AAAD,CAAC,AAJD,IAIC;AAED,aAAa;AACb,IAAM,cAAc,GAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAA;AAExD,QAAA,WAAW,GAAG,eAAK,CAAC,aAAa,CAAc,cAAc,CAAC,CAAA;AAE3E,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,mBAAW,CAAC,WAAW,GAAG,aAAa,CAAA;CACxC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports
|
|
7
|
-
var GameProvider_1 = require("./GameProvider");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(GameProvider_1).default; } });
|
|
17
|
+
__exportStar(require("./GameContext"), exports);
|
|
9
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GameProvider/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GameProvider/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B"}
|
package/dist/GiveUp/GiveUp.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import GamePageState from '../Store
|
|
1
|
+
import { GamePageState } from '../Store';
|
|
2
2
|
export declare const GIVE_UP = "GIVE_UP";
|
|
3
|
-
declare type GiveUp = {
|
|
3
|
+
export declare type GiveUp = {
|
|
4
4
|
type: typeof GIVE_UP;
|
|
5
5
|
};
|
|
6
|
-
export default GiveUp;
|
|
7
6
|
export declare const giveUpAction: {
|
|
8
7
|
type: string;
|
|
9
8
|
};
|
|
10
9
|
export declare function giveUp(state: GamePageState): {
|
|
11
10
|
playerId: any;
|
|
12
|
-
players: import("
|
|
13
|
-
options?: import("
|
|
14
|
-
gameMode?: import("
|
|
11
|
+
players: import("..").Player<any>[];
|
|
12
|
+
options?: import("..").GameOptions;
|
|
13
|
+
gameMode?: import("..").GameMode;
|
|
15
14
|
setup?: any;
|
|
16
15
|
state?: any;
|
|
17
|
-
actions?: import("../Store
|
|
18
|
-
pendingNotifications: import("
|
|
16
|
+
actions?: import("../Store").DisplayedAction<any, any>[];
|
|
17
|
+
pendingNotifications: import("..").IndexedGameNotification<any>[];
|
|
19
18
|
nextNotificationIndex: number;
|
|
20
19
|
failures: string[];
|
|
21
20
|
animationIncrement: number;
|
|
@@ -24,5 +23,5 @@ export declare function giveUp(state: GamePageState): {
|
|
|
24
23
|
soundsMuted: boolean;
|
|
25
24
|
clientTimeDelta: number;
|
|
26
25
|
gameOver?: boolean;
|
|
27
|
-
tournament?: import("
|
|
26
|
+
tournament?: import("..").Tournament;
|
|
28
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiveUp.js","sourceRoot":"","sources":["../../src/GiveUp/GiveUp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEa,QAAA,OAAO,GAAG,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"GiveUp.js","sourceRoot":"","sources":["../../src/GiveUp/GiveUp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEa,QAAA,OAAO,GAAG,SAAS,CAAA;AAInB,QAAA,YAAY,GAAG,EAAE,IAAI,EAAE,eAAO,EAAE,CAAA;AAE7C,SAAgB,MAAM,CAAC,KAAoB;IACzC,6BAAY,KAAK,KAAE,QAAQ,EAAE,SAAS,IAAE;AAC1C,CAAC;AAFD,wBAEC"}
|
package/dist/GiveUp/index.d.ts
CHANGED
package/dist/GiveUp/index.js
CHANGED
|
@@ -13,14 +13,6 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.useGiveUp = exports.GiveUpButton = void 0;
|
|
21
17
|
__exportStar(require("./GiveUp"), exports);
|
|
22
|
-
var GiveUpButton_1 = require("./GiveUpButton");
|
|
23
|
-
Object.defineProperty(exports, "GiveUpButton", { enumerable: true, get: function () { return __importDefault(GiveUpButton_1).default; } });
|
|
24
|
-
var useGiveUp_1 = require("./useGiveUp");
|
|
25
|
-
Object.defineProperty(exports, "useGiveUp", { enumerable: true, get: function () { return __importDefault(useGiveUp_1).default; } });
|
|
26
18
|
//# sourceMappingURL=index.js.map
|
package/dist/GiveUp/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GiveUp/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GiveUp/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useChatMessages"), exports);
|
|
18
|
+
__exportStar(require("./useMessageAuthor"), exports);
|
|
19
|
+
__exportStar(require("./useOptions"), exports);
|
|
20
|
+
__exportStar(require("./useRematch"), exports);
|
|
21
|
+
__exportStar(require("./useSendMessage"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Hooks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,qDAAkC;AAClC,+CAA4B;AAC5B,+CAA4B;AAC5B,mDAAgC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChatChannel, Message } from '../Chat';
|
|
2
|
+
export declare function useChatMessages(gameId: string, onMessageReceived?: (message: Message) => void): {
|
|
3
|
+
messages: Message[];
|
|
4
|
+
hasMoreMessages: boolean;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
fetchMore: <TFetchData = {
|
|
7
|
+
chatChannel: ChatChannel;
|
|
8
|
+
}, TFetchVars = {
|
|
9
|
+
channel: string;
|
|
10
|
+
}>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
11
|
+
updateQuery?: (previousQueryResult: {
|
|
12
|
+
chatChannel: ChatChannel;
|
|
13
|
+
}, options: {
|
|
14
|
+
fetchMoreResult: TFetchData;
|
|
15
|
+
variables: TFetchVars;
|
|
16
|
+
}) => {
|
|
17
|
+
chatChannel: ChatChannel;
|
|
18
|
+
};
|
|
19
|
+
}) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
|
|
20
|
+
};
|