@gamepark/react-client 6.38.5 → 7.0.0-beta.2
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 +6 -6
- package/dist/Actions/ActionFailed.js +4 -8
- package/dist/Actions/ActionFailed.js.map +1 -1
- package/dist/Actions/AnimationComplete.d.ts +6 -6
- package/dist/Actions/AnimationComplete.js +4 -8
- package/dist/Actions/AnimationComplete.js.map +1 -1
- package/dist/Actions/AnimationPaused.d.ts +6 -6
- package/dist/Actions/AnimationPaused.js +4 -8
- package/dist/Actions/AnimationPaused.js.map +1 -1
- package/dist/Actions/AnimationStart.d.ts +5 -5
- package/dist/Actions/AnimationStart.js +1 -4
- package/dist/Actions/AnimationStart.js.map +1 -1
- package/dist/Actions/ClearFailures.d.ts +1 -5
- package/dist/Actions/ClearFailures.js +3 -9
- package/dist/Actions/ClearFailures.js.map +1 -1
- package/dist/Actions/GameNotificationsReceived.d.ts +8 -10
- package/dist/Actions/GameNotificationsReceived.js +2 -9
- package/dist/Actions/GameNotificationsReceived.js.map +1 -1
- package/dist/Actions/GameOver.d.ts +16 -16
- package/dist/Actions/GameOver.js +4 -8
- package/dist/Actions/GameOver.js.map +1 -1
- package/dist/Actions/GameStateLoaded.d.ts +16 -16
- package/dist/Actions/GameStateLoaded.js +7 -20
- package/dist/Actions/GameStateLoaded.js.map +1 -1
- package/dist/Actions/MovePlayed.d.ts +11 -11
- package/dist/Actions/MovePlayed.js +3 -2
- package/dist/Actions/MovePlayed.js.map +1 -1
- package/dist/Actions/MoveUndone.d.ts +7 -7
- package/dist/Actions/MoveUndone.js +4 -9
- package/dist/Actions/MoveUndone.js.map +1 -1
- package/dist/Actions/PlayerQuit.d.ts +5 -11
- package/dist/Actions/PlayerQuit.js +2 -19
- package/dist/Actions/PlayerQuit.js.map +1 -1
- package/dist/Actions/SetAnimationsSpeed.d.ts +1 -6
- package/dist/Actions/SetAnimationsSpeed.js +3 -9
- package/dist/Actions/SetAnimationsSpeed.js.map +1 -1
- package/dist/Actions/giveUp.d.ts +1 -0
- package/dist/Actions/giveUp.js +3 -0
- package/dist/Actions/giveUp.js.map +1 -0
- package/dist/Actions/index.d.ts +7 -12
- package/dist/Actions/index.js +7 -28
- package/dist/Actions/index.js.map +1 -1
- package/dist/Actions/loadGameState.d.ts +14 -0
- package/dist/Actions/loadGameState.js +3 -0
- package/dist/Actions/loadGameState.js.map +1 -0
- package/dist/Actions/playMove.d.ts +10 -0
- package/dist/Actions/playMove.js +3 -0
- package/dist/Actions/playMove.js.map +1 -0
- package/dist/Actions/receiveNotifications.d.ts +8 -0
- package/dist/Actions/receiveNotifications.js +3 -0
- package/dist/Actions/receiveNotifications.js.map +1 -0
- package/dist/Actions/removePlayer.d.ts +5 -0
- package/dist/Actions/removePlayer.js +3 -0
- package/dist/Actions/removePlayer.js.map +1 -0
- package/dist/Actions/reportFailure.d.ts +1 -0
- package/dist/Actions/reportFailure.js +3 -0
- package/dist/Actions/reportFailure.js.map +1 -0
- package/dist/Actions/setGameOver.d.ts +2 -0
- package/dist/Actions/setGameOver.js +3 -0
- package/dist/Actions/setGameOver.js.map +1 -0
- package/dist/Actions/startAnimation.d.ts +1 -0
- package/dist/Actions/startAnimation.js +3 -0
- package/dist/Actions/startAnimation.js.map +1 -0
- package/dist/Actions/undoMove.d.ts +5 -0
- package/dist/Actions/undoMove.js +4 -0
- package/dist/Actions/undoMove.js.map +1 -0
- package/dist/Chat/ChatChannel.d.ts +5 -5
- package/dist/Chat/ChatChannel.js +1 -2
- package/dist/Chat/Message.d.ts +6 -6
- package/dist/Chat/Message.js +1 -2
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +2 -18
- package/dist/Chat/index.js.map +1 -1
- package/dist/Deckbuilding/Deck.d.ts +5 -5
- package/dist/Deckbuilding/Deck.js +1 -2
- package/dist/Deckbuilding/index.d.ts +4 -4
- package/dist/Deckbuilding/index.js +4 -24
- package/dist/Deckbuilding/index.js.map +1 -1
- package/dist/Deckbuilding/useDeleteDeck.d.ts +5 -2
- package/dist/Deckbuilding/useDeleteDeck.js +9 -15
- package/dist/Deckbuilding/useDeleteDeck.js.map +1 -1
- package/dist/Deckbuilding/useMyDecks.d.ts +3 -2
- package/dist/Deckbuilding/useMyDecks.js +8 -14
- package/dist/Deckbuilding/useMyDecks.js.map +1 -1
- package/dist/Deckbuilding/useSaveDeck.d.ts +5 -2
- package/dist/Deckbuilding/useSaveDeck.js +9 -15
- package/dist/Deckbuilding/useSaveDeck.js.map +1 -1
- package/dist/EjectPlayer/EjectPlayer.d.ts +1 -6
- package/dist/EjectPlayer/EjectPlayer.js +2 -8
- package/dist/EjectPlayer/EjectPlayer.js.map +1 -1
- package/dist/EjectPlayer/index.d.ts +1 -1
- package/dist/EjectPlayer/index.js +1 -17
- package/dist/EjectPlayer/index.js.map +1 -1
- package/dist/Failure/Failure.d.ts +6 -6
- package/dist/Failure/Failure.js +6 -9
- package/dist/Failure/Failure.js.map +1 -1
- package/dist/Failure/index.d.ts +1 -1
- package/dist/Failure/index.js +1 -17
- package/dist/Failure/index.js.map +1 -1
- package/dist/GiveUp/GiveUp.d.ts +7 -7
- package/dist/GiveUp/GiveUp.js +2 -5
- package/dist/GiveUp/GiveUp.js.map +1 -1
- package/dist/GiveUp/index.d.ts +1 -1
- package/dist/GiveUp/index.js +1 -17
- package/dist/GiveUp/index.js.map +1 -1
- package/dist/Hooks/index.d.ts +5 -5
- package/dist/Hooks/index.js +5 -21
- package/dist/Hooks/index.js.map +1 -1
- package/dist/Hooks/useChatMessages.d.ts +7 -12
- package/dist/Hooks/useChatMessages.js +44 -51
- package/dist/Hooks/useChatMessages.js.map +1 -1
- package/dist/Hooks/useMessageAuthor.d.ts +4 -4
- package/dist/Hooks/useMessageAuthor.js +13 -18
- package/dist/Hooks/useMessageAuthor.js.map +1 -1
- package/dist/Hooks/useOptions.d.ts +2 -2
- package/dist/Hooks/useOptions.js +4 -8
- package/dist/Hooks/useOptions.js.map +1 -1
- package/dist/Hooks/useRematch.d.ts +7 -7
- package/dist/Hooks/useRematch.js +18 -19
- package/dist/Hooks/useRematch.js.map +1 -1
- package/dist/Hooks/useSendMessage.d.ts +4 -1
- package/dist/Hooks/useSendMessage.js +6 -14
- package/dist/Hooks/useSendMessage.js.map +1 -1
- package/dist/Log/StartLiveLog.d.ts +1 -4
- package/dist/Log/StartLiveLog.js +3 -5
- package/dist/Log/StartLiveLog.js.map +1 -1
- package/dist/Log/StopLiveLog.d.ts +2 -5
- package/dist/Log/StopLiveLog.js +6 -9
- package/dist/Log/StopLiveLog.js.map +1 -1
- package/dist/Log/index.d.ts +4 -4
- package/dist/Log/index.js +4 -20
- package/dist/Log/index.js.map +1 -1
- package/dist/Log/useLogControls.d.ts +7 -7
- package/dist/Log/useLogControls.js +18 -22
- package/dist/Log/useLogControls.js.map +1 -1
- package/dist/PlayerTime/PlayerTime.d.ts +11 -11
- package/dist/PlayerTime/PlayerTime.js +1 -2
- package/dist/PlayerTime/index.d.ts +1 -1
- package/dist/PlayerTime/index.js +1 -17
- package/dist/PlayerTime/index.js.map +1 -1
- package/dist/Rematch/RematchQueries.d.ts +19 -19
- package/dist/Rematch/RematchQueries.js +23 -13
- package/dist/Rematch/RematchQueries.js.map +1 -1
- package/dist/Rematch/index.d.ts +1 -1
- package/dist/Rematch/index.js +1 -17
- package/dist/Rematch/index.js.map +1 -1
- package/dist/Sound/MuteSounds.d.ts +2 -5
- package/dist/Sound/MuteSounds.js +7 -10
- package/dist/Sound/MuteSounds.js.map +1 -1
- package/dist/Sound/UnmuteSounds.d.ts +1 -4
- package/dist/Sound/UnmuteSounds.js +3 -5
- package/dist/Sound/UnmuteSounds.js.map +1 -1
- package/dist/Sound/index.d.ts +3 -3
- package/dist/Sound/index.js +3 -19
- package/dist/Sound/index.js.map +1 -1
- package/dist/Sound/useSoundControls.d.ts +7 -7
- package/dist/Sound/useSoundControls.js +18 -22
- package/dist/Sound/useSoundControls.js.map +1 -1
- package/dist/Store/DisplayedAction.d.ts +15 -15
- package/dist/Store/DisplayedAction.js +12 -19
- package/dist/Store/DisplayedAction.js.map +1 -1
- package/dist/Store/GamePageState.d.ts +27 -28
- package/dist/Store/GamePageState.js +1 -2
- package/dist/Store/PlayedMove.d.ts +5 -5
- package/dist/Store/PlayedMove.js +1 -2
- package/dist/Store/endAnimation.d.ts +1 -0
- package/dist/Store/endAnimation.js +3 -0
- package/dist/Store/endAnimation.js.map +1 -0
- package/dist/Store/gameMiddleware.d.ts +4 -4
- package/dist/Store/gameMiddleware.js +34 -41
- package/dist/Store/gameMiddleware.js.map +1 -1
- package/dist/Store/gameReducer.d.ts +14 -20
- package/dist/Store/gameReducer.js +462 -525
- package/dist/Store/gameReducer.js.map +1 -1
- package/dist/Store/index.d.ts +4 -3
- package/dist/Store/index.js +4 -19
- package/dist/Store/index.js.map +1 -1
- package/dist/Store/localMovePreviewMiddleware.d.ts +4 -4
- package/dist/Store/localMovePreviewMiddleware.js +19 -18
- package/dist/Store/localMovePreviewMiddleware.js.map +1 -1
- package/dist/Store/store.d.ts +13 -0
- package/dist/Store/store.js +27 -0
- package/dist/Store/store.js.map +1 -0
- package/dist/Tutorial/PlayTutorialMoves.d.ts +1 -9
- package/dist/Tutorial/PlayTutorialMoves.js +2 -6
- package/dist/Tutorial/PlayTutorialMoves.js.map +1 -1
- package/dist/Tutorial/Tutorial.d.ts +5 -5
- package/dist/Tutorial/Tutorial.js +1 -2
- package/dist/Tutorial/TutorialDescription.d.ts +7 -7
- package/dist/Tutorial/TutorialDescription.js +1 -2
- package/dist/Tutorial/index.d.ts +4 -4
- package/dist/Tutorial/index.js +4 -20
- package/dist/Tutorial/index.js.map +1 -1
- package/dist/Tutorial/useTutorial.d.ts +2 -2
- package/dist/Tutorial/useTutorial.js +12 -22
- package/dist/Tutorial/useTutorial.js.map +1 -1
- package/dist/Types/GameAI.d.ts +1 -1
- package/dist/Types/GameAI.js +1 -2
- package/dist/Types/GameData.d.ts +18 -18
- package/dist/Types/GameData.js +1 -2
- package/dist/Types/GameMessage.d.ts +8 -8
- package/dist/Types/GameMessage.js +1 -2
- package/dist/Types/GameMode.d.ts +6 -6
- package/dist/Types/GameMode.js +7 -10
- package/dist/Types/GameMode.js.map +1 -1
- package/dist/Types/GameNotification.d.ts +6 -6
- package/dist/Types/GameNotification.js +1 -2
- package/dist/Types/GameOptions.d.ts +9 -9
- package/dist/Types/GameOptions.js +5 -8
- package/dist/Types/GameOptions.js.map +1 -1
- package/dist/Types/MovePlayedNotification.d.ts +9 -9
- package/dist/Types/MovePlayedNotification.js +6 -12
- package/dist/Types/MovePlayedNotification.js.map +1 -1
- package/dist/Types/MoveUndoneNotification.d.ts +8 -8
- package/dist/Types/MoveUndoneNotification.js +6 -12
- package/dist/Types/MoveUndoneNotification.js.map +1 -1
- package/dist/Types/Player.d.ts +13 -13
- package/dist/Types/Player.js +1 -2
- package/dist/Types/PlayerQuitReason.d.ts +4 -4
- package/dist/Types/PlayerQuitReason.js +5 -8
- package/dist/Types/PlayerQuitReason.js.map +1 -1
- package/dist/Types/ProxyGameData.d.ts +13 -13
- package/dist/Types/ProxyGameData.js +1 -2
- package/dist/Types/Tournament.d.ts +4 -4
- package/dist/Types/Tournament.js +1 -2
- package/dist/Types/index.d.ts +12 -12
- package/dist/Types/index.js +12 -28
- package/dist/Types/index.js.map +1 -1
- package/dist/User/User.d.ts +6 -6
- package/dist/User/User.js +1 -2
- package/dist/User/index.d.ts +2 -2
- package/dist/User/index.js +2 -18
- package/dist/User/index.js.map +1 -1
- package/dist/User/useMe.d.ts +4 -4
- package/dist/User/useMe.js +10 -21
- package/dist/User/useMe.js.map +1 -1
- package/dist/animations/Animation.d.ts +6 -6
- package/dist/animations/Animation.js +1 -2
- package/dist/animations/AnimationContext.d.ts +8 -8
- package/dist/animations/AnimationContext.js +1 -2
- package/dist/animations/AnimationState.d.ts +6 -6
- package/dist/animations/AnimationState.js +1 -2
- package/dist/animations/AnimationStep.d.ts +6 -6
- package/dist/animations/AnimationStep.js +7 -10
- package/dist/animations/AnimationStep.js.map +1 -1
- package/dist/animations/Animations.d.ts +8 -8
- package/dist/animations/Animations.js +15 -22
- package/dist/animations/Animations.js.map +1 -1
- package/dist/animations/AnimationsListener.d.ts +6 -0
- package/dist/animations/AnimationsListener.js +54 -0
- package/dist/animations/AnimationsListener.js.map +1 -0
- package/dist/animations/AnimationsListenerCreator.d.ts +2 -4
- package/dist/animations/AnimationsListenerCreator.js +40 -50
- package/dist/animations/AnimationsListenerCreator.js.map +1 -1
- package/dist/animations/animationMiddleware.d.ts +4 -0
- package/dist/animations/animationMiddleware.js +50 -0
- package/dist/animations/animationMiddleware.js.map +1 -0
- package/dist/animations/index.d.ts +5 -6
- package/dist/animations/index.js +5 -22
- package/dist/animations/index.js.map +1 -1
- package/dist/api/Client/GameClientAPI.d.ts +24 -24
- package/dist/api/Client/GameClientAPI.js +116 -165
- package/dist/api/Client/GameClientAPI.js.map +1 -1
- package/dist/api/Client/GameNotificationsListener.d.ts +5 -5
- package/dist/api/Client/GameNotificationsListener.js +62 -113
- package/dist/api/Client/GameNotificationsListener.js.map +1 -1
- package/dist/api/Client/RemoteGameLoader.d.ts +4 -5
- package/dist/api/Client/RemoteGameLoader.js +66 -62
- package/dist/api/Client/RemoteGameLoader.js.map +1 -1
- package/dist/api/Client/RemoteGameProvider.d.ts +7 -7
- package/dist/api/Client/RemoteGameProvider.js +19 -70
- package/dist/api/Client/RemoteGameProvider.js.map +1 -1
- package/dist/api/Client/apollo-client.d.ts +2 -2
- package/dist/api/Client/apollo-client.js +40 -58
- package/dist/api/Client/apollo-client.js.map +1 -1
- package/dist/api/Client/index.d.ts +4 -3
- package/dist/api/Client/index.js +4 -19
- package/dist/api/Client/index.js.map +1 -1
- package/dist/api/Client/pusher.d.ts +2 -0
- package/dist/api/Client/pusher.js +9 -0
- package/dist/api/Client/pusher.js.map +1 -0
- package/dist/api/GameAPI.d.ts +10 -10
- package/dist/api/GameAPI.js +1 -2
- package/dist/api/Local/ConsoleTools.d.ts +25 -25
- package/dist/api/Local/ConsoleTools.js +78 -86
- package/dist/api/Local/ConsoleTools.js.map +1 -1
- package/dist/api/Local/GameLocalAPI.d.ts +44 -44
- package/dist/api/Local/GameLocalAPI.js +442 -540
- package/dist/api/Local/GameLocalAPI.js.map +1 -1
- package/dist/api/Local/LocalGameProvider.d.ts +15 -15
- package/dist/api/Local/LocalGameProvider.js +18 -58
- package/dist/api/Local/LocalGameProvider.js.map +1 -1
- package/dist/api/Local/index.d.ts +1 -1
- package/dist/api/Local/index.js +1 -17
- package/dist/api/Local/index.js.map +1 -1
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +2 -18
- package/dist/api/index.js.map +1 -1
- package/dist/index.d.ts +16 -18
- package/dist/index.js +16 -36
- package/dist/index.js.map +1 -1
- package/dist/util/ArrayUtil.d.ts +2 -2
- package/dist/util/ArrayUtil.js +16 -21
- package/dist/util/ArrayUtil.js.map +1 -1
- package/package.json +66 -65
- package/dist/Actions/ActionType.d.ts +0 -3
- package/dist/Actions/ActionType.js +0 -8
- package/dist/Actions/ActionType.js.map +0 -1
- package/dist/Scoring/ScoringDescription.d.ts +0 -8
- package/dist/Scoring/ScoringDescription.js +0 -3
- package/dist/Scoring/ScoringDescription.js.map +0 -1
- package/dist/Scoring/index.d.ts +0 -1
- package/dist/Scoring/index.js +0 -18
- package/dist/Scoring/index.js.map +0 -1
- package/dist/util/TimeUtil.d.ts +0 -2
- package/dist/util/TimeUtil.js +0 -27
- package/dist/util/TimeUtil.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receiveNotifications.js","sourceRoot":"","sources":["../../src/Actions/receiveNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAU/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAoB,sBAAsB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removePlayer.js","sourceRoot":"","sources":["../../src/Actions/removePlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAG/C,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAA8C,cAAc,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const reportFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportFailure.js","sourceRoot":"","sources":["../../src/Actions/reportFailure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAS,eAAe,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setGameOver.js","sourceRoot":"","sources":["../../src/Actions/setGameOver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAG/C,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAW,aAAa,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const startAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startAnimation.js","sourceRoot":"","sources":["../../src/Actions/startAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAS,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undoMove.js","sourceRoot":"","sources":["../../src/Actions/undoMove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA;AAExC,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAA0C,UAAU,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Message } from './index';
|
|
2
|
-
export type ChatChannel = {
|
|
3
|
-
name: string;
|
|
4
|
-
messages: Message[];
|
|
5
|
-
};
|
|
1
|
+
import { Message } from './index';
|
|
2
|
+
export type ChatChannel = {
|
|
3
|
+
name: string;
|
|
4
|
+
messages: Message[];
|
|
5
|
+
};
|
package/dist/Chat/ChatChannel.js
CHANGED
package/dist/Chat/Message.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type Message = {
|
|
2
|
-
id: string;
|
|
3
|
-
userId: string;
|
|
4
|
-
text: string;
|
|
5
|
-
date: string;
|
|
6
|
-
};
|
|
1
|
+
export type Message = {
|
|
2
|
+
id: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
text: string;
|
|
5
|
+
date: string;
|
|
6
|
+
};
|
package/dist/Chat/Message.js
CHANGED
package/dist/Chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ChatChannel';
|
|
2
|
-
export * from './Message';
|
|
1
|
+
export * from './ChatChannel';
|
|
2
|
+
export * from './Message';
|
package/dist/Chat/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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("./ChatChannel"), exports);
|
|
18
|
-
__exportStar(require("./Message"), exports);
|
|
1
|
+
export * from './ChatChannel';
|
|
2
|
+
export * from './Message';
|
|
19
3
|
//# 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,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type Deck = {
|
|
2
|
-
id?: string;
|
|
3
|
-
name: string;
|
|
4
|
-
cards: number[];
|
|
5
|
-
};
|
|
1
|
+
export type Deck = {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
cards: number[];
|
|
5
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './Deck';
|
|
2
|
-
export { useDeleteDeck } from './useDeleteDeck';
|
|
3
|
-
export { useMyDecks } from './useMyDecks';
|
|
4
|
-
export { useSaveDeck } from './useSaveDeck';
|
|
1
|
+
export * from './Deck';
|
|
2
|
+
export { useDeleteDeck } from './useDeleteDeck';
|
|
3
|
+
export { useMyDecks } from './useMyDecks';
|
|
4
|
+
export { useSaveDeck } from './useSaveDeck';
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
exports.useSaveDeck = exports.useMyDecks = exports.useDeleteDeck = void 0;
|
|
18
|
-
__exportStar(require("./Deck"), exports);
|
|
19
|
-
var useDeleteDeck_1 = require("./useDeleteDeck");
|
|
20
|
-
Object.defineProperty(exports, "useDeleteDeck", { enumerable: true, get: function () { return useDeleteDeck_1.useDeleteDeck; } });
|
|
21
|
-
var useMyDecks_1 = require("./useMyDecks");
|
|
22
|
-
Object.defineProperty(exports, "useMyDecks", { enumerable: true, get: function () { return useMyDecks_1.useMyDecks; } });
|
|
23
|
-
var useSaveDeck_1 = require("./useSaveDeck");
|
|
24
|
-
Object.defineProperty(exports, "useSaveDeck", { enumerable: true, get: function () { return useSaveDeck_1.useSaveDeck; } });
|
|
1
|
+
export * from './Deck';
|
|
2
|
+
export { useDeleteDeck } from './useDeleteDeck';
|
|
3
|
+
export { useMyDecks } from './useMyDecks';
|
|
4
|
+
export { useSaveDeck } from './useSaveDeck';
|
|
25
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Deckbuilding/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Deckbuilding/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
1
|
+
import { useMutation } from '@apollo/client/react';
|
|
2
|
+
export declare const DELETE_DECK: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare function useDeleteDeck(): useMutation.ResultTuple<unknown, {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
}, import("@apollo/client").ApolloCache>;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.DELETE_DECK = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["mutation SaveDeck($id: String) {\n deleteDeck(id: $id)\n}"], ["mutation SaveDeck($id: String) {\n deleteDeck(id: $id)\n}"])));
|
|
11
|
-
function useDeleteDeck() {
|
|
12
|
-
return (0, client_1.useMutation)(exports.DELETE_DECK, { refetchQueries: [useMyDecks_1.MY_DECKS] });
|
|
13
|
-
}
|
|
14
|
-
exports.useDeleteDeck = useDeleteDeck;
|
|
15
|
-
var templateObject_1;
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useMutation } from '@apollo/client/react';
|
|
3
|
+
import { MY_DECKS } from './useMyDecks';
|
|
4
|
+
export const DELETE_DECK = gql `mutation SaveDeck($id: String) {
|
|
5
|
+
deleteDeck(id: $id)
|
|
6
|
+
}`;
|
|
7
|
+
export function useDeleteDeck() {
|
|
8
|
+
return useMutation(DELETE_DECK, { refetchQueries: [MY_DECKS] });
|
|
9
|
+
}
|
|
16
10
|
//# sourceMappingURL=useDeleteDeck.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDeleteDeck.js","sourceRoot":"","sources":["../../src/Deckbuilding/useDeleteDeck.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDeleteDeck.js","sourceRoot":"","sources":["../../src/Deckbuilding/useDeleteDeck.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;EAE5B,CAAA;AAEF,MAAM,UAAU,aAAa;IAC3B,OAAO,WAAW,CAAC,WAAW,EAAE,EAAE,cAAc,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AACjE,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
1
|
+
import { useQuery } from '@apollo/client/react';
|
|
2
|
+
export declare const MY_DECKS: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare function useMyDecks(boardGame: string): useQuery.Result<unknown, import("@apollo/client").OperationVariables, "complete" | "empty" | "streaming", import("@apollo/client").OperationVariables>;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.MY_DECKS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["query MyDecks($boardGame: String!) {\n myDecks(boardGame: $boardGame) { id name cards }\n}"], ["query MyDecks($boardGame: String!) {\n myDecks(boardGame: $boardGame) { id name cards }\n}"])));
|
|
10
|
-
function useMyDecks(boardGame) {
|
|
11
|
-
return (0, client_1.useQuery)(exports.MY_DECKS, { variables: { boardGame: boardGame } });
|
|
12
|
-
}
|
|
13
|
-
exports.useMyDecks = useMyDecks;
|
|
14
|
-
var templateObject_1;
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useQuery } from '@apollo/client/react';
|
|
3
|
+
export const MY_DECKS = gql `query MyDecks($boardGame: String!) {
|
|
4
|
+
myDecks(boardGame: $boardGame) { id name cards }
|
|
5
|
+
}`;
|
|
6
|
+
export function useMyDecks(boardGame) {
|
|
7
|
+
return useQuery(MY_DECKS, { variables: { boardGame } });
|
|
8
|
+
}
|
|
15
9
|
//# sourceMappingURL=useMyDecks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMyDecks.js","sourceRoot":"","sources":["../../src/Deckbuilding/useMyDecks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMyDecks.js","sourceRoot":"","sources":["../../src/Deckbuilding/useMyDecks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;;EAEzB,CAAA;AAEF,MAAM,UAAU,UAAU,CAAC,SAAiB;IAC1C,OAAO,QAAQ,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAA;AACzD,CAAC"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
1
|
+
import { useMutation } from '@apollo/client/react';
|
|
2
|
+
export declare const SAVE_DECK: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare function useSaveDeck(): useMutation.ResultTuple<unknown, {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
}, import("@apollo/client").ApolloCache>;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.SAVE_DECK = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["mutation SaveDeck($id: String, $boardGame: String!, $name: String!, $cards: [Int!]!) {\n saveDeck(id: $id, boardGame: $boardGame, name: $name, cards: $cards) { id name cards }\n}"], ["mutation SaveDeck($id: String, $boardGame: String!, $name: String!, $cards: [Int!]!) {\n saveDeck(id: $id, boardGame: $boardGame, name: $name, cards: $cards) { id name cards }\n}"])));
|
|
11
|
-
function useSaveDeck() {
|
|
12
|
-
return (0, client_1.useMutation)(exports.SAVE_DECK, { refetchQueries: [useMyDecks_1.MY_DECKS] });
|
|
13
|
-
}
|
|
14
|
-
exports.useSaveDeck = useSaveDeck;
|
|
15
|
-
var templateObject_1;
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useMutation } from '@apollo/client/react';
|
|
3
|
+
import { MY_DECKS } from './useMyDecks';
|
|
4
|
+
export const SAVE_DECK = gql `mutation SaveDeck($id: String, $boardGame: String!, $name: String!, $cards: [Int!]!) {
|
|
5
|
+
saveDeck(id: $id, boardGame: $boardGame, name: $name, cards: $cards) { id name cards }
|
|
6
|
+
}`;
|
|
7
|
+
export function useSaveDeck() {
|
|
8
|
+
return useMutation(SAVE_DECK, { refetchQueries: [MY_DECKS] });
|
|
9
|
+
}
|
|
16
10
|
//# sourceMappingURL=useSaveDeck.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSaveDeck.js","sourceRoot":"","sources":["../../src/Deckbuilding/useSaveDeck.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSaveDeck.js","sourceRoot":"","sources":["../../src/Deckbuilding/useSaveDeck.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;EAE1B,CAAA;AAEF,MAAM,UAAU,WAAW;IACzB,OAAO,WAAW,CAAC,SAAS,EAAE,EAAE,cAAc,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;AAC/D,CAAC"}
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export interface EjectPlayer<PlayerId = any> {
|
|
3
|
-
type: typeof EJECT_PLAYER;
|
|
4
|
-
playerId: PlayerId;
|
|
5
|
-
}
|
|
6
|
-
export declare function ejectPlayerAction<PlayerId>(playerId: PlayerId): EjectPlayer<PlayerId>;
|
|
1
|
+
export declare const ejectPlayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ejectPlayerAction = exports.EJECT_PLAYER = void 0;
|
|
4
|
-
exports.EJECT_PLAYER = 'EJECT_PLAYER';
|
|
5
|
-
function ejectPlayerAction(playerId) {
|
|
6
|
-
return { type: exports.EJECT_PLAYER, playerId: playerId };
|
|
7
|
-
}
|
|
8
|
-
exports.ejectPlayerAction = ejectPlayerAction;
|
|
1
|
+
import { createAction } from '@reduxjs/toolkit';
|
|
2
|
+
export const ejectPlayer = createAction('ejectPlayer');
|
|
9
3
|
//# sourceMappingURL=EjectPlayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EjectPlayer.js","sourceRoot":"","sources":["../../src/EjectPlayer/EjectPlayer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EjectPlayer.js","sourceRoot":"","sources":["../../src/EjectPlayer/EjectPlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAS,aAAa,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './EjectPlayer';
|
|
1
|
+
export * from './EjectPlayer';
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
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("./EjectPlayer"), exports);
|
|
1
|
+
export * from './EjectPlayer';
|
|
18
2
|
//# 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,cAAc,eAAe,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const Failure: {
|
|
2
|
-
NETWORK: string;
|
|
3
|
-
MOVE_FORBIDDEN: string;
|
|
4
|
-
UNDO_FORBIDDEN: string;
|
|
5
|
-
TUTORIAL_MOVE_EXPECTED: string;
|
|
6
|
-
};
|
|
1
|
+
export declare const Failure: {
|
|
2
|
+
NETWORK: string;
|
|
3
|
+
MOVE_FORBIDDEN: string;
|
|
4
|
+
UNDO_FORBIDDEN: string;
|
|
5
|
+
TUTORIAL_MOVE_EXPECTED: string;
|
|
6
|
+
};
|
package/dist/Failure/Failure.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
UNDO_FORBIDDEN: 'This move cannot be undone',
|
|
8
|
-
TUTORIAL_MOVE_EXPECTED: 'You must play the move expected by the tutorial'
|
|
9
|
-
};
|
|
1
|
+
export const Failure = {
|
|
2
|
+
NETWORK: 'Network error',
|
|
3
|
+
MOVE_FORBIDDEN: 'You are not allowed to play this move',
|
|
4
|
+
UNDO_FORBIDDEN: 'This move cannot be undone',
|
|
5
|
+
TUTORIAL_MOVE_EXPECTED: 'You must play the move expected by the tutorial'
|
|
6
|
+
};
|
|
10
7
|
//# 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,MAAM,CAAC,MAAM,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
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Failure';
|
|
1
|
+
export * from './Failure';
|
package/dist/Failure/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
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("./Failure"), exports);
|
|
1
|
+
export * from './Failure';
|
|
18
2
|
//# 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,cAAc,WAAW,CAAA"}
|
package/dist/GiveUp/GiveUp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const GIVE_UP = "GIVE_UP";
|
|
2
|
-
export type GiveUp = {
|
|
3
|
-
type: typeof GIVE_UP;
|
|
4
|
-
};
|
|
5
|
-
export declare const giveUpAction: {
|
|
6
|
-
type: string;
|
|
7
|
-
};
|
|
1
|
+
export declare const GIVE_UP = "GIVE_UP";
|
|
2
|
+
export type GiveUp = {
|
|
3
|
+
type: typeof GIVE_UP;
|
|
4
|
+
};
|
|
5
|
+
export declare const giveUpAction: {
|
|
6
|
+
type: string;
|
|
7
|
+
};
|
package/dist/GiveUp/GiveUp.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.giveUpAction = exports.GIVE_UP = void 0;
|
|
4
|
-
exports.GIVE_UP = 'GIVE_UP';
|
|
5
|
-
exports.giveUpAction = { type: exports.GIVE_UP };
|
|
1
|
+
export const GIVE_UP = 'GIVE_UP';
|
|
2
|
+
export const giveUpAction = { type: GIVE_UP };
|
|
6
3
|
//# sourceMappingURL=GiveUp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiveUp.js","sourceRoot":"","sources":["../../src/GiveUp/GiveUp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GiveUp.js","sourceRoot":"","sources":["../../src/GiveUp/GiveUp.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAA;AAIhC,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA"}
|
package/dist/GiveUp/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './GiveUp';
|
|
1
|
+
export * from './GiveUp';
|
package/dist/GiveUp/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
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("./GiveUp"), exports);
|
|
1
|
+
export * from './GiveUp';
|
|
18
2
|
//# 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,cAAc,UAAU,CAAA"}
|
package/dist/Hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './useChatMessages';
|
|
2
|
-
export * from './useMessageAuthor';
|
|
3
|
-
export * from './useOptions';
|
|
4
|
-
export * from './useRematch';
|
|
5
|
-
export * from './useSendMessage';
|
|
1
|
+
export * from './useChatMessages';
|
|
2
|
+
export * from './useMessageAuthor';
|
|
3
|
+
export * from './useOptions';
|
|
4
|
+
export * from './useRematch';
|
|
5
|
+
export * from './useSendMessage';
|
package/dist/Hooks/index.js
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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);
|
|
1
|
+
export * from './useChatMessages';
|
|
2
|
+
export * from './useMessageAuthor';
|
|
3
|
+
export * from './useOptions';
|
|
4
|
+
export * from './useRematch';
|
|
5
|
+
export * from './useSendMessage';
|
|
22
6
|
//# sourceMappingURL=index.js.map
|
package/dist/Hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Hooks/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { 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:
|
|
7
|
-
|
|
8
|
-
fetchMoreResult: TFetchData;
|
|
9
|
-
variables: TFetchVars;
|
|
10
|
-
}) => any) | undefined;
|
|
11
|
-
}) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
|
|
12
|
-
};
|
|
1
|
+
import { 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: () => Promise<void>;
|
|
7
|
+
};
|