@gamepark/react-client 7.0.0-beta.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/dist/Actions/ActionFailed.js +3 -7
  2. package/dist/Actions/ActionFailed.js.map +1 -1
  3. package/dist/Actions/AnimationComplete.js +3 -7
  4. package/dist/Actions/AnimationComplete.js.map +1 -1
  5. package/dist/Actions/AnimationPaused.js +3 -7
  6. package/dist/Actions/AnimationPaused.js.map +1 -1
  7. package/dist/Actions/AnimationStart.js +1 -4
  8. package/dist/Actions/AnimationStart.js.map +1 -1
  9. package/dist/Actions/ClearFailures.d.ts +1 -5
  10. package/dist/Actions/ClearFailures.js +3 -9
  11. package/dist/Actions/ClearFailures.js.map +1 -1
  12. package/dist/Actions/GameNotificationsReceived.d.ts +2 -4
  13. package/dist/Actions/GameNotificationsReceived.js +2 -9
  14. package/dist/Actions/GameNotificationsReceived.js.map +1 -1
  15. package/dist/Actions/GameOver.js +3 -7
  16. package/dist/Actions/GameOver.js.map +1 -1
  17. package/dist/Actions/GameStateLoaded.js +5 -18
  18. package/dist/Actions/GameStateLoaded.js.map +1 -1
  19. package/dist/Actions/MovePlayed.d.ts +4 -4
  20. package/dist/Actions/MovePlayed.js +3 -4
  21. package/dist/Actions/MovePlayed.js.map +1 -1
  22. package/dist/Actions/MoveUndone.js +3 -8
  23. package/dist/Actions/MoveUndone.js.map +1 -1
  24. package/dist/Actions/PlayerQuit.d.ts +3 -9
  25. package/dist/Actions/PlayerQuit.js +2 -19
  26. package/dist/Actions/PlayerQuit.js.map +1 -1
  27. package/dist/Actions/SetAnimationsSpeed.d.ts +1 -6
  28. package/dist/Actions/SetAnimationsSpeed.js +3 -9
  29. package/dist/Actions/SetAnimationsSpeed.js.map +1 -1
  30. package/dist/Actions/giveUp.d.ts +1 -0
  31. package/dist/Actions/giveUp.js +3 -0
  32. package/dist/Actions/giveUp.js.map +1 -0
  33. package/dist/Actions/index.d.ts +7 -11
  34. package/dist/Actions/index.js +7 -27
  35. package/dist/Actions/index.js.map +1 -1
  36. package/dist/Actions/loadGameState.d.ts +14 -0
  37. package/dist/Actions/loadGameState.js +3 -0
  38. package/dist/Actions/loadGameState.js.map +1 -0
  39. package/dist/Actions/playMove.d.ts +10 -0
  40. package/dist/Actions/playMove.js +3 -0
  41. package/dist/Actions/playMove.js.map +1 -0
  42. package/dist/Actions/receiveNotifications.d.ts +8 -0
  43. package/dist/Actions/receiveNotifications.js +3 -0
  44. package/dist/Actions/receiveNotifications.js.map +1 -0
  45. package/dist/Actions/removePlayer.d.ts +5 -0
  46. package/dist/Actions/removePlayer.js +3 -0
  47. package/dist/Actions/removePlayer.js.map +1 -0
  48. package/dist/Actions/reportFailure.d.ts +1 -0
  49. package/dist/Actions/reportFailure.js +3 -0
  50. package/dist/Actions/reportFailure.js.map +1 -0
  51. package/dist/Actions/setGameOver.d.ts +2 -0
  52. package/dist/Actions/setGameOver.js +3 -0
  53. package/dist/Actions/setGameOver.js.map +1 -0
  54. package/dist/Actions/startAnimation.d.ts +1 -0
  55. package/dist/Actions/startAnimation.js +3 -0
  56. package/dist/Actions/startAnimation.js.map +1 -0
  57. package/dist/Actions/undoMove.d.ts +5 -0
  58. package/dist/Actions/undoMove.js +4 -0
  59. package/dist/Actions/undoMove.js.map +1 -0
  60. package/dist/Chat/ChatChannel.js +1 -2
  61. package/dist/Chat/Message.js +1 -2
  62. package/dist/Chat/index.js +2 -18
  63. package/dist/Chat/index.js.map +1 -1
  64. package/dist/Deckbuilding/Deck.js +1 -2
  65. package/dist/Deckbuilding/index.js +4 -24
  66. package/dist/Deckbuilding/index.js.map +1 -1
  67. package/dist/Deckbuilding/useDeleteDeck.d.ts +4 -1
  68. package/dist/Deckbuilding/useDeleteDeck.js +8 -14
  69. package/dist/Deckbuilding/useDeleteDeck.js.map +1 -1
  70. package/dist/Deckbuilding/useMyDecks.d.ts +5 -1
  71. package/dist/Deckbuilding/useMyDecks.js +7 -13
  72. package/dist/Deckbuilding/useMyDecks.js.map +1 -1
  73. package/dist/Deckbuilding/useSaveDeck.d.ts +7 -1
  74. package/dist/Deckbuilding/useSaveDeck.js +8 -14
  75. package/dist/Deckbuilding/useSaveDeck.js.map +1 -1
  76. package/dist/EjectPlayer/EjectPlayer.d.ts +1 -6
  77. package/dist/EjectPlayer/EjectPlayer.js +2 -8
  78. package/dist/EjectPlayer/EjectPlayer.js.map +1 -1
  79. package/dist/EjectPlayer/index.js +1 -17
  80. package/dist/EjectPlayer/index.js.map +1 -1
  81. package/dist/Failure/Failure.js +1 -4
  82. package/dist/Failure/Failure.js.map +1 -1
  83. package/dist/Failure/index.js +1 -17
  84. package/dist/Failure/index.js.map +1 -1
  85. package/dist/GiveUp/GiveUp.js +2 -5
  86. package/dist/GiveUp/GiveUp.js.map +1 -1
  87. package/dist/GiveUp/index.js +1 -17
  88. package/dist/GiveUp/index.js.map +1 -1
  89. package/dist/Hooks/index.js +5 -21
  90. package/dist/Hooks/index.js.map +1 -1
  91. package/dist/Hooks/useChatMessages.d.ts +1 -6
  92. package/dist/Hooks/useChatMessages.js +35 -44
  93. package/dist/Hooks/useChatMessages.js.map +1 -1
  94. package/dist/Hooks/useMessageAuthor.js +12 -16
  95. package/dist/Hooks/useMessageAuthor.js.map +1 -1
  96. package/dist/Hooks/useOptions.js +3 -6
  97. package/dist/Hooks/useOptions.js.map +1 -1
  98. package/dist/Hooks/useRematch.d.ts +1 -1
  99. package/dist/Hooks/useRematch.js +16 -20
  100. package/dist/Hooks/useRematch.js.map +1 -1
  101. package/dist/Hooks/useSendMessage.d.ts +4 -1
  102. package/dist/Hooks/useSendMessage.js +5 -12
  103. package/dist/Hooks/useSendMessage.js.map +1 -1
  104. package/dist/Log/StartLiveLog.d.ts +1 -4
  105. package/dist/Log/StartLiveLog.js +3 -5
  106. package/dist/Log/StartLiveLog.js.map +1 -1
  107. package/dist/Log/StopLiveLog.d.ts +1 -4
  108. package/dist/Log/StopLiveLog.js +4 -7
  109. package/dist/Log/StopLiveLog.js.map +1 -1
  110. package/dist/Log/index.d.ts +2 -2
  111. package/dist/Log/index.js +4 -20
  112. package/dist/Log/index.js.map +1 -1
  113. package/dist/Log/useLogControls.js +11 -14
  114. package/dist/Log/useLogControls.js.map +1 -1
  115. package/dist/PlayerTime/PlayerTime.js +1 -2
  116. package/dist/PlayerTime/index.js +1 -17
  117. package/dist/PlayerTime/index.js.map +1 -1
  118. package/dist/Rematch/RematchQueries.js +23 -13
  119. package/dist/Rematch/RematchQueries.js.map +1 -1
  120. package/dist/Rematch/index.js +1 -17
  121. package/dist/Rematch/index.js.map +1 -1
  122. package/dist/Sound/MuteSounds.d.ts +1 -4
  123. package/dist/Sound/MuteSounds.js +5 -8
  124. package/dist/Sound/MuteSounds.js.map +1 -1
  125. package/dist/Sound/UnmuteSounds.d.ts +1 -4
  126. package/dist/Sound/UnmuteSounds.js +3 -5
  127. package/dist/Sound/UnmuteSounds.js.map +1 -1
  128. package/dist/Sound/index.d.ts +2 -2
  129. package/dist/Sound/index.js +3 -19
  130. package/dist/Sound/index.js.map +1 -1
  131. package/dist/Sound/useSoundControls.js +11 -14
  132. package/dist/Sound/useSoundControls.js.map +1 -1
  133. package/dist/Store/DisplayedAction.js +4 -10
  134. package/dist/Store/DisplayedAction.js.map +1 -1
  135. package/dist/Store/GamePageState.d.ts +0 -1
  136. package/dist/Store/GamePageState.js +1 -2
  137. package/dist/Store/PlayedMove.js +1 -2
  138. package/dist/Store/endAnimation.d.ts +1 -0
  139. package/dist/Store/endAnimation.js +3 -0
  140. package/dist/Store/endAnimation.js.map +1 -0
  141. package/dist/Store/gameMiddleware.js +30 -41
  142. package/dist/Store/gameMiddleware.js.map +1 -1
  143. package/dist/Store/gameReducer.d.ts +2 -11
  144. package/dist/Store/gameReducer.js +301 -377
  145. package/dist/Store/gameReducer.js.map +1 -1
  146. package/dist/Store/index.d.ts +1 -0
  147. package/dist/Store/index.js +4 -19
  148. package/dist/Store/index.js.map +1 -1
  149. package/dist/Store/localMovePreviewMiddleware.js +15 -13
  150. package/dist/Store/localMovePreviewMiddleware.js.map +1 -1
  151. package/dist/Store/store.d.ts +13 -0
  152. package/dist/Store/store.js +27 -0
  153. package/dist/Store/store.js.map +1 -0
  154. package/dist/Tutorial/PlayTutorialMoves.d.ts +1 -9
  155. package/dist/Tutorial/PlayTutorialMoves.js +2 -6
  156. package/dist/Tutorial/PlayTutorialMoves.js.map +1 -1
  157. package/dist/Tutorial/Tutorial.js +1 -2
  158. package/dist/Tutorial/TutorialDescription.d.ts +1 -1
  159. package/dist/Tutorial/TutorialDescription.js +1 -2
  160. package/dist/Tutorial/index.js +4 -20
  161. package/dist/Tutorial/index.js.map +1 -1
  162. package/dist/Tutorial/useTutorial.js +11 -20
  163. package/dist/Tutorial/useTutorial.js.map +1 -1
  164. package/dist/Types/GameAI.js +1 -2
  165. package/dist/Types/GameData.js +1 -2
  166. package/dist/Types/GameMessage.js +1 -2
  167. package/dist/Types/GameMode.js +2 -5
  168. package/dist/Types/GameMode.js.map +1 -1
  169. package/dist/Types/GameNotification.js +1 -2
  170. package/dist/Types/GameOptions.js +2 -5
  171. package/dist/Types/GameOptions.js.map +1 -1
  172. package/dist/Types/MovePlayedNotification.d.ts +1 -1
  173. package/dist/Types/MovePlayedNotification.js +3 -8
  174. package/dist/Types/MovePlayedNotification.js.map +1 -1
  175. package/dist/Types/MoveUndoneNotification.d.ts +1 -1
  176. package/dist/Types/MoveUndoneNotification.js +3 -8
  177. package/dist/Types/MoveUndoneNotification.js.map +1 -1
  178. package/dist/Types/Player.js +1 -2
  179. package/dist/Types/PlayerQuitReason.js +2 -5
  180. package/dist/Types/PlayerQuitReason.js.map +1 -1
  181. package/dist/Types/ProxyGameData.js +1 -2
  182. package/dist/Types/Tournament.js +1 -2
  183. package/dist/Types/index.js +12 -28
  184. package/dist/Types/index.js.map +1 -1
  185. package/dist/User/User.js +1 -2
  186. package/dist/User/index.js +2 -18
  187. package/dist/User/index.js.map +1 -1
  188. package/dist/User/useMe.js +9 -19
  189. package/dist/User/useMe.js.map +1 -1
  190. package/dist/animations/Animation.js +1 -2
  191. package/dist/animations/AnimationContext.d.ts +1 -1
  192. package/dist/animations/AnimationContext.js +1 -2
  193. package/dist/animations/AnimationState.js +1 -2
  194. package/dist/animations/AnimationStep.js +2 -5
  195. package/dist/animations/AnimationStep.js.map +1 -1
  196. package/dist/animations/Animations.js +9 -16
  197. package/dist/animations/Animations.js.map +1 -1
  198. package/dist/animations/AnimationsListener.d.ts +6 -0
  199. package/dist/animations/AnimationsListener.js +54 -0
  200. package/dist/animations/AnimationsListener.js.map +1 -0
  201. package/dist/animations/AnimationsListenerCreator.d.ts +1 -4
  202. package/dist/animations/AnimationsListenerCreator.js +24 -30
  203. package/dist/animations/AnimationsListenerCreator.js.map +1 -1
  204. package/dist/animations/animationMiddleware.d.ts +4 -0
  205. package/dist/animations/animationMiddleware.js +46 -0
  206. package/dist/animations/animationMiddleware.js.map +1 -0
  207. package/dist/animations/index.d.ts +0 -1
  208. package/dist/animations/index.js +5 -22
  209. package/dist/animations/index.js.map +1 -1
  210. package/dist/api/Client/GameClientAPI.d.ts +5 -6
  211. package/dist/api/Client/GameClientAPI.js +70 -119
  212. package/dist/api/Client/GameClientAPI.js.map +1 -1
  213. package/dist/api/Client/GameNotificationsListener.js +51 -104
  214. package/dist/api/Client/GameNotificationsListener.js.map +1 -1
  215. package/dist/api/Client/RemoteGameLoader.js +50 -45
  216. package/dist/api/Client/RemoteGameLoader.js.map +1 -1
  217. package/dist/api/Client/RemoteGameProvider.js +15 -51
  218. package/dist/api/Client/RemoteGameProvider.js.map +1 -1
  219. package/dist/api/Client/apollo-client.d.ts +1 -1
  220. package/dist/api/Client/apollo-client.js +14 -31
  221. package/dist/api/Client/apollo-client.js.map +1 -1
  222. package/dist/api/Client/index.js +4 -20
  223. package/dist/api/Client/index.js.map +1 -1
  224. package/dist/api/Client/pusher.js +5 -12
  225. package/dist/api/Client/pusher.js.map +1 -1
  226. package/dist/api/GameAPI.d.ts +2 -3
  227. package/dist/api/GameAPI.js +1 -2
  228. package/dist/api/Local/ConsoleTools.d.ts +1 -2
  229. package/dist/api/Local/ConsoleTools.js +15 -22
  230. package/dist/api/Local/ConsoleTools.js.map +1 -1
  231. package/dist/api/Local/GameLocalAPI.d.ts +4 -5
  232. package/dist/api/Local/GameLocalAPI.js +264 -363
  233. package/dist/api/Local/GameLocalAPI.js.map +1 -1
  234. package/dist/api/Local/LocalGameProvider.d.ts +1 -1
  235. package/dist/api/Local/LocalGameProvider.js +17 -48
  236. package/dist/api/Local/LocalGameProvider.js.map +1 -1
  237. package/dist/api/Local/index.js +1 -17
  238. package/dist/api/Local/index.js.map +1 -1
  239. package/dist/api/index.js +2 -18
  240. package/dist/api/index.js.map +1 -1
  241. package/dist/index.d.ts +0 -2
  242. package/dist/index.js +16 -36
  243. package/dist/index.js.map +1 -1
  244. package/dist/util/ArrayUtil.js +4 -8
  245. package/dist/util/ArrayUtil.js.map +1 -1
  246. package/package.json +64 -62
  247. package/dist/Actions/ActionType.d.ts +0 -3
  248. package/dist/Actions/ActionType.js +0 -8
  249. package/dist/Actions/ActionType.js.map +0 -1
  250. package/dist/Scoring/ScoringDescription.d.ts +0 -8
  251. package/dist/Scoring/ScoringDescription.js +0 -3
  252. package/dist/Scoring/ScoringDescription.js.map +0 -1
  253. package/dist/Scoring/index.d.ts +0 -1
  254. package/dist/Scoring/index.js +0 -18
  255. package/dist/Scoring/index.js.map +0 -1
  256. package/dist/util/TimeUtil.d.ts +0 -2
  257. package/dist/util/TimeUtil.js +0 -27
  258. package/dist/util/TimeUtil.js.map +0 -1
@@ -1,9 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ACTION_FAILED = void 0;
4
- exports.actionFailed = actionFailed;
5
- exports.ACTION_FAILED = 'ACTION_FAILED';
6
- function actionFailed(reason) {
7
- return { type: exports.ACTION_FAILED, reason: reason };
1
+ export const ACTION_FAILED = 'ACTION_FAILED';
2
+ export function actionFailed(reason) {
3
+ return { type: ACTION_FAILED, reason };
8
4
  }
9
5
  //# sourceMappingURL=ActionFailed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionFailed.js","sourceRoot":"","sources":["../../src/Actions/ActionFailed.ts"],"names":[],"mappings":";;;AAOA,oCAEC;AATY,QAAA,aAAa,GAAG,eAAe,CAAA;AAO5C,SAAgB,YAAY,CAAC,MAAc;IACzC,OAAO,EAAC,IAAI,EAAE,qBAAa,EAAE,MAAM,QAAA,EAAC,CAAA;AACtC,CAAC"}
1
+ {"version":3,"file":"ActionFailed.js","sourceRoot":"","sources":["../../src/Actions/ActionFailed.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAA;AAO5C,MAAM,UAAU,YAAY,CAAC,MAAc;IACzC,OAAO,EAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAC,CAAA;AACtC,CAAC"}
@@ -1,9 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ANIMATION_COMPLETE = void 0;
4
- exports.animationComplete = animationComplete;
5
- exports.ANIMATION_COMPLETE = 'ANIMATION_COMPLETE';
6
- function animationComplete(animationId) {
7
- return { type: exports.ANIMATION_COMPLETE, animationId: animationId };
1
+ export const ANIMATION_COMPLETE = 'ANIMATION_COMPLETE';
2
+ export function animationComplete(animationId) {
3
+ return { type: ANIMATION_COMPLETE, animationId };
8
4
  }
9
5
  //# sourceMappingURL=AnimationComplete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationComplete.js","sourceRoot":"","sources":["../../src/Actions/AnimationComplete.ts"],"names":[],"mappings":";;;AAOA,8CAEC;AATY,QAAA,kBAAkB,GAAG,oBAAoB,CAAA;AAOtD,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,OAAO,EAAE,IAAI,EAAE,0BAAkB,EAAE,WAAW,aAAA,EAAE,CAAA;AAClD,CAAC"}
1
+ {"version":3,"file":"AnimationComplete.js","sourceRoot":"","sources":["../../src/Actions/AnimationComplete.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAA;AAOtD,MAAM,UAAU,iBAAiB,CAAC,WAAmB;IACnD,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAA;AAClD,CAAC"}
@@ -1,9 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ANIMATION_PAUSED = void 0;
4
- exports.animationPaused = animationPaused;
5
- exports.ANIMATION_PAUSED = 'ANIMATION_PAUSED';
6
- function animationPaused(pause) {
7
- return { type: exports.ANIMATION_PAUSED, pause: pause };
1
+ export const ANIMATION_PAUSED = 'ANIMATION_PAUSED';
2
+ export function animationPaused(pause) {
3
+ return { type: ANIMATION_PAUSED, pause };
8
4
  }
9
5
  //# sourceMappingURL=AnimationPaused.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationPaused.js","sourceRoot":"","sources":["../../src/Actions/AnimationPaused.ts"],"names":[],"mappings":";;;AAOA,0CAEC;AATY,QAAA,gBAAgB,GAAG,kBAAkB,CAAA;AAOlD,SAAgB,eAAe,CAAC,KAAc;IAC5C,OAAO,EAAC,IAAI,EAAE,wBAAgB,EAAE,KAAK,OAAA,EAAC,CAAA;AACxC,CAAC"}
1
+ {"version":3,"file":"AnimationPaused.js","sourceRoot":"","sources":["../../src/Actions/AnimationPaused.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAA;AAOlD,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,EAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAC,CAAA;AACxC,CAAC"}
@@ -1,5 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ANIMATION_START = void 0;
4
- exports.ANIMATION_START = 'ANIMATION_START';
1
+ export const ANIMATION_START = 'ANIMATION_START';
5
2
  //# sourceMappingURL=AnimationStart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationStart.js","sourceRoot":"","sources":["../../src/Actions/AnimationStart.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,iBAAiB,CAAA"}
1
+ {"version":3,"file":"AnimationStart.js","sourceRoot":"","sources":["../../src/Actions/AnimationStart.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAA"}
@@ -1,5 +1 @@
1
- export declare const CLEAR_FAILURES = "CLEAR_FAILURES";
2
- export interface ClearFailures {
3
- type: typeof CLEAR_FAILURES;
4
- }
5
- export declare function clearFailures(): ClearFailures;
1
+ export declare const clearFailures: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"clearFailures">;
@@ -1,9 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CLEAR_FAILURES = void 0;
4
- exports.clearFailures = clearFailures;
5
- exports.CLEAR_FAILURES = 'CLEAR_FAILURES';
6
- function clearFailures() {
7
- return { type: exports.CLEAR_FAILURES };
8
- }
9
- //# sourceMappingURL=ClearFailures.js.map
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const clearFailures = createAction('clearFailures');
3
+ //# sourceMappingURL=clearFailures.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClearFailures.js","sourceRoot":"","sources":["../../src/Actions/ClearFailures.ts"],"names":[],"mappings":";;;AAMA,sCAEC;AARY,QAAA,cAAc,GAAG,gBAAgB,CAAA;AAM9C,SAAgB,aAAa;IAC3B,OAAO,EAAC,IAAI,EAAE,sBAAc,EAAC,CAAA;AAC/B,CAAC"}
1
+ {"version":3,"file":"clearFailures.js","sourceRoot":"","sources":["../../src/Actions/clearFailures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA"}
@@ -1,10 +1,8 @@
1
1
  import { GameNotification, Player } from '../Types';
2
- export declare const GAME_NOTIFICATIONS_RECEIVED = "GAME_NOTIFICATIONS_RECEIVED";
3
- export interface GameNotificationsReceived<PlayerId> {
4
- type: typeof GAME_NOTIFICATIONS_RECEIVED;
2
+ export interface NotificationsData<PlayerId = any> {
5
3
  notifications: GameNotification<PlayerId>[];
6
4
  notificationsIndex: number;
7
5
  players: Player<PlayerId>[];
8
6
  serverTime?: number;
9
7
  }
10
- export declare function gameNotificationsReceived<PlayerId>(notifications: GameNotification<PlayerId>[], notificationsIndex: number | undefined, players: Player<PlayerId>[], serverTime?: number): GameNotificationsReceived<PlayerId>;
8
+ export declare const receiveNotifications: import("@reduxjs/toolkit").ActionCreatorWithPayload<NotificationsData<any>, string>;
@@ -1,10 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GAME_NOTIFICATIONS_RECEIVED = void 0;
4
- exports.gameNotificationsReceived = gameNotificationsReceived;
5
- exports.GAME_NOTIFICATIONS_RECEIVED = 'GAME_NOTIFICATIONS_RECEIVED';
6
- function gameNotificationsReceived(notifications, notificationsIndex, players, serverTime) {
7
- if (notificationsIndex === void 0) { notificationsIndex = 0; }
8
- return { type: exports.GAME_NOTIFICATIONS_RECEIVED, notifications: notifications, notificationsIndex: notificationsIndex, players: players, serverTime: serverTime };
9
- }
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const receiveNotifications = createAction('receiveNotifications');
10
3
  //# sourceMappingURL=GameNotificationsReceived.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GameNotificationsReceived.js","sourceRoot":"","sources":["../../src/Actions/GameNotificationsReceived.ts"],"names":[],"mappings":";;;AAYA,8DAEC;AAZY,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"}
1
+ {"version":3,"file":"GameNotificationsReceived.js","sourceRoot":"","sources":["../../src/Actions/GameNotificationsReceived.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAU/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAoB,sBAAsB,CAAC,CAAA"}
@@ -1,9 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GAME_OVER = void 0;
4
- exports.gameOver = gameOver;
5
- exports.GAME_OVER = 'GAME_OVER';
6
- function gameOver(players) {
7
- return { type: exports.GAME_OVER, players: players };
1
+ export const GAME_OVER = 'GAME_OVER';
2
+ export function gameOver(players) {
3
+ return { type: GAME_OVER, players };
8
4
  }
9
5
  //# sourceMappingURL=GameOver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GameOver.js","sourceRoot":"","sources":["../../src/Actions/GameOver.ts"],"names":[],"mappings":";;;AAcA,4BAEC;AAdY,QAAA,SAAS,GAAG,WAAW,CAAA;AAYpC,SAAgB,QAAQ,CAAW,OAAgF;IACjH,OAAO,EAAE,IAAI,EAAE,iBAAS,EAAE,OAAO,SAAA,EAAE,CAAA;AACrC,CAAC"}
1
+ {"version":3,"file":"GameOver.js","sourceRoot":"","sources":["../../src/Actions/GameOver.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAA;AAYpC,MAAM,UAAU,QAAQ,CAAW,OAAgF;IACjH,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAA;AACrC,CAAC"}
@@ -1,21 +1,8 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
1
+ export const GAME_STATE_LOADED = 'GAME_STATE_LOADED';
2
+ export function gameStateLoaded(data, serverTime) {
3
+ return {
4
+ type: GAME_STATE_LOADED, ...data, playerId: data.myPlayerId !== null ? data.myPlayerId : undefined, serverTime, endDate: data.endDate ?? undefined,
5
+ tournament: data.tournament ?? undefined
10
6
  };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.GAME_STATE_LOADED = void 0;
15
- exports.gameStateLoaded = gameStateLoaded;
16
- exports.GAME_STATE_LOADED = 'GAME_STATE_LOADED';
17
- function gameStateLoaded(data, serverTime) {
18
- var _a, _b;
19
- return __assign(__assign({ type: exports.GAME_STATE_LOADED }, data), { playerId: data.myPlayerId !== null ? data.myPlayerId : undefined, serverTime: serverTime, endDate: (_a = data.endDate) !== null && _a !== void 0 ? _a : undefined, tournament: (_b = data.tournament) !== null && _b !== void 0 ? _b : undefined });
20
7
  }
21
8
  //# sourceMappingURL=GameStateLoaded.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GameStateLoaded.js","sourceRoot":"","sources":["../../src/Actions/GameStateLoaded.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAkBA,0CAKC;AArBY,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"}
1
+ {"version":3,"file":"GameStateLoaded.js","sourceRoot":"","sources":["../../src/Actions/GameStateLoaded.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAA;AAgBpD,MAAM,UAAU,eAAe,CAAkB,IAA+B,EAAE,UAAmB;IACnG,OAAO;QACL,IAAI,EAAE,iBAAiB,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClJ,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;KACzC,CAAA;AACH,CAAC"}
@@ -5,7 +5,7 @@ export type PlayOptions = {
5
5
  local?: boolean;
6
6
  transient?: boolean;
7
7
  };
8
- export type MovePlayed<M> = {
9
- type: typeof MOVE_PLAYED;
10
- move: M;
11
- } & PlayOptions;
8
+ export declare const playMove: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
9
+ move: any;
10
+ options: PlayOptions;
11
+ }, string>;
@@ -1,5 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MOVE_PLAYED = void 0;
4
- exports.MOVE_PLAYED = 'MOVE_PLAYED';
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const MOVE_PLAYED = 'MOVE_PLAYED';
3
+ export const playMove = createAction('playMove');
5
4
  //# sourceMappingURL=MovePlayed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MovePlayed.js","sourceRoot":"","sources":["../../src/Actions/MovePlayed.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,aAAa,CAAA"}
1
+ {"version":3,"file":"MovePlayed.js","sourceRoot":"","sources":["../../src/Actions/MovePlayed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA;AASxC,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAsC,UAAU,CAAC,CAAA"}
@@ -1,10 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MOVE_UNDONE = void 0;
4
- exports.moveUndone = moveUndone;
5
- exports.MOVE_UNDONE = 'MOVE_UNDONE';
6
- function moveUndone(actionId, delayed) {
7
- if (delayed === void 0) { delayed = false; }
8
- return { type: exports.MOVE_UNDONE, actionId: actionId, delayed: delayed };
1
+ export const MOVE_UNDONE = 'MOVE_UNDONE';
2
+ export function moveUndone(actionId, delayed = false) {
3
+ return { type: MOVE_UNDONE, actionId, delayed };
9
4
  }
10
5
  //# sourceMappingURL=MoveUndone.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MoveUndone.js","sourceRoot":"","sources":["../../src/Actions/MoveUndone.ts"],"names":[],"mappings":";;;AAQA,gCAEC;AAVY,QAAA,WAAW,GAAG,aAAa,CAAA;AAQxC,SAAgB,UAAU,CAAC,QAAgB,EAAE,OAAwB;IAAxB,wBAAA,EAAA,eAAwB;IACnE,OAAO,EAAC,IAAI,EAAE,mBAAW,EAAE,QAAQ,UAAA,EAAE,OAAO,SAAA,EAAC,CAAA;AAC/C,CAAC"}
1
+ {"version":3,"file":"MoveUndone.js","sourceRoot":"","sources":["../../src/Actions/MoveUndone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA;AAQxC,MAAM,UAAU,UAAU,CAAC,QAAgB,EAAE,UAAmB,KAAK;IACnE,OAAO,EAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAC,CAAA;AAC/C,CAAC"}
@@ -1,11 +1,5 @@
1
1
  import { PlayerQuitReason } from '../Types';
2
- export declare const PLAYER_QUIT = "PLAYER_QUIT";
3
- export interface PlayerQuit<PlayerId = any> {
4
- type: typeof PLAYER_QUIT;
5
- playerId: PlayerId;
2
+ export declare const removePlayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
3
+ playerId: any;
6
4
  reason: PlayerQuitReason;
7
- }
8
- export declare function playerQuit<PlayerId>(data: {
9
- playerId: PlayerId;
10
- reason: PlayerQuitReason;
11
- }): PlayerQuit<PlayerId>;
5
+ }, string>;
@@ -1,20 +1,3 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.PLAYER_QUIT = void 0;
15
- exports.playerQuit = playerQuit;
16
- exports.PLAYER_QUIT = 'PLAYER_QUIT';
17
- function playerQuit(data) {
18
- return __assign({ type: exports.PLAYER_QUIT }, data);
19
- }
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const removePlayer = createAction('removePlayer');
20
3
  //# sourceMappingURL=PlayerQuit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerQuit.js","sourceRoot":"","sources":["../../src/Actions/PlayerQuit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAUA,gCAEC;AAVY,QAAA,WAAW,GAAG,aAAa,CAAA;AAQxC,SAAgB,UAAU,CAAW,IAAsD;IACzF,kBAAS,IAAI,EAAE,mBAAW,IAAK,IAAI,EAAE;AACvC,CAAC"}
1
+ {"version":3,"file":"PlayerQuit.js","sourceRoot":"","sources":["../../src/Actions/PlayerQuit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAG/C,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAA8C,cAAc,CAAC,CAAA"}
@@ -1,6 +1 @@
1
- export declare const SET_ANIMATIONS_SPEED = "SET_ANIMATIONS_SPEED";
2
- export interface SetAnimationsSpeed {
3
- type: typeof SET_ANIMATIONS_SPEED;
4
- speed: number;
5
- }
6
- export declare function setAnimationsSpeed(speed: number): SetAnimationsSpeed;
1
+ export declare const setAnimationsSpeed: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>;
@@ -1,9 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SET_ANIMATIONS_SPEED = void 0;
4
- exports.setAnimationsSpeed = setAnimationsSpeed;
5
- exports.SET_ANIMATIONS_SPEED = 'SET_ANIMATIONS_SPEED';
6
- function setAnimationsSpeed(speed) {
7
- return { type: exports.SET_ANIMATIONS_SPEED, speed: speed };
8
- }
9
- //# sourceMappingURL=SetAnimationsSpeed.js.map
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const setAnimationsSpeed = createAction('setAnimationsSpeed');
3
+ //# sourceMappingURL=setAnimationsSpeed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SetAnimationsSpeed.js","sourceRoot":"","sources":["../../src/Actions/SetAnimationsSpeed.ts"],"names":[],"mappings":";;;AAOA,gDAEC;AATY,QAAA,oBAAoB,GAAG,sBAAsB,CAAA;AAO1D,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,OAAO,EAAC,IAAI,EAAE,4BAAoB,EAAE,KAAK,OAAA,EAAC,CAAA;AAC5C,CAAC"}
1
+ {"version":3,"file":"setAnimationsSpeed.js","sourceRoot":"","sources":["../../src/Actions/setAnimationsSpeed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAS,oBAAoB,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export declare const giveUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"giveUp">;
@@ -0,0 +1,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const giveUp = createAction('giveUp');
3
+ //# sourceMappingURL=giveUp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"giveUp.js","sourceRoot":"","sources":["../../src/Actions/giveUp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA"}
@@ -1,11 +1,7 @@
1
- export * from './ActionFailed';
2
- export * from './AnimationComplete';
3
- export * from './AnimationPaused';
4
- export * from './AnimationStart';
5
- export * from './ClearFailures';
6
- export * from './GameNotificationsReceived';
7
- export * from './GameOver';
8
- export * from './GameStateLoaded';
9
- export * from './MovePlayed';
10
- export * from './MoveUndone';
11
- export * from './SetAnimationsSpeed';
1
+ export * from './clearFailures';
2
+ export * from './receiveNotifications';
3
+ export * from './giveUp';
4
+ export * from './setGameOver';
5
+ export * from './playMove';
6
+ export * from './undoMove';
7
+ export * from './setAnimationsSpeed';
@@ -1,28 +1,8 @@
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("./AnimationComplete"), exports);
19
- __exportStar(require("./AnimationPaused"), exports);
20
- __exportStar(require("./AnimationStart"), exports);
21
- __exportStar(require("./ClearFailures"), exports);
22
- __exportStar(require("./GameNotificationsReceived"), exports);
23
- __exportStar(require("./GameOver"), exports);
24
- __exportStar(require("./GameStateLoaded"), exports);
25
- __exportStar(require("./MovePlayed"), exports);
26
- __exportStar(require("./MoveUndone"), exports);
27
- __exportStar(require("./SetAnimationsSpeed"), exports);
1
+ export * from './clearFailures';
2
+ export * from './receiveNotifications';
3
+ export * from './giveUp';
4
+ export * from './setGameOver';
5
+ export * from './playMove';
6
+ export * from './undoMove';
7
+ export * from './setAnimationsSpeed';
28
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,sDAAmC;AACnC,oDAAiC;AACjC,mDAAgC;AAChC,kDAA+B;AAC/B,8DAA2C;AAC3C,6CAA0B;AAC1B,oDAAiC;AACjC,+CAA4B;AAC5B,+CAA4B;AAC5B,uDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { GameMode, GameNotification, GameOptions, Player, Tournament } from '../Types';
2
+ export declare const loadGameState: import("@reduxjs/toolkit").ActionCreatorWithPayload<GameState<any, any>, string>;
3
+ export interface GameState<Game = any, PlayerId = any> {
4
+ players: Player<PlayerId>[];
5
+ options: GameOptions;
6
+ playerId?: PlayerId;
7
+ mode: GameMode;
8
+ state: Game;
9
+ setup: Game;
10
+ notifications: GameNotification[];
11
+ endDate?: Date;
12
+ serverTime?: number;
13
+ tournament?: Tournament;
14
+ }
@@ -0,0 +1,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const loadGameState = createAction('loadGameState');
3
+ //# sourceMappingURL=loadGameState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadGameState.js","sourceRoot":"","sources":["../../src/Actions/loadGameState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAG/C,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAY,eAAe,CAAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ export type PlayOptions = {
2
+ delayed?: boolean;
3
+ skipAnimation?: boolean;
4
+ local?: boolean;
5
+ transient?: boolean;
6
+ };
7
+ export declare const playMove: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
8
+ move: any;
9
+ options?: PlayOptions;
10
+ }, string>;
@@ -0,0 +1,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const playMove = createAction('playMove');
3
+ //# sourceMappingURL=playMove.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playMove.js","sourceRoot":"","sources":["../../src/Actions/playMove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAS/C,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAuC,UAAU,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { GameNotification, Player } from '../Types';
2
+ export interface NotificationsData<PlayerId = any> {
3
+ notifications: GameNotification<PlayerId>[];
4
+ notificationsIndex: number;
5
+ players: Player<PlayerId>[];
6
+ serverTime?: number;
7
+ }
8
+ export declare const receiveNotifications: import("@reduxjs/toolkit").ActionCreatorWithPayload<NotificationsData<any>, string>;
@@ -0,0 +1,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const receiveNotifications = createAction('receiveNotifications');
3
+ //# sourceMappingURL=receiveNotifications.js.map
@@ -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,5 @@
1
+ import { PlayerQuitReason } from '../Types';
2
+ export declare const removePlayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
3
+ playerId: any;
4
+ reason: PlayerQuitReason;
5
+ }, string>;
@@ -0,0 +1,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const removePlayer = createAction('removePlayer');
3
+ //# sourceMappingURL=removePlayer.js.map
@@ -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,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const reportFailure = createAction('reportFailure');
3
+ //# sourceMappingURL=reportFailure.js.map
@@ -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,2 @@
1
+ import { Player } from '../Types';
2
+ export declare const setGameOver: import("@reduxjs/toolkit").ActionCreatorWithPayload<Player[], string>;
@@ -0,0 +1,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const setGameOver = createAction('setGameOver');
3
+ //# sourceMappingURL=setGameOver.js.map
@@ -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,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const startAnimation = createAction('startAnimation');
3
+ //# sourceMappingURL=startAnimation.js.map
@@ -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,5 @@
1
+ export declare const MOVE_UNDONE = "MOVE_UNDONE";
2
+ export declare const undoMove: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
3
+ actionId: string;
4
+ delayed?: boolean;
5
+ }, string>;
@@ -0,0 +1,4 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const MOVE_UNDONE = 'MOVE_UNDONE';
3
+ export const undoMove = createAction('undoMove');
4
+ //# sourceMappingURL=undoMove.js.map
@@ -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,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=ChatChannel.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=Message.js.map
@@ -1,19 +1,3 @@
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("./ChatChannel"), exports);
18
- __exportStar(require("./Message"), exports);
1
+ export * from './ChatChannel';
2
+ export * from './Message';
19
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,4CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=Deck.js.map