@gamepark/react-client 6.10.0 → 6.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/Chat/ChatChannel.d.ts +1 -1
  2. package/dist/Chat/Message.d.ts +1 -1
  3. package/dist/GiveUp/GiveUp.d.ts +1 -1
  4. package/dist/Hooks/useChatMessages.d.ts +4 -12
  5. package/dist/Hooks/useChatMessages.js.map +1 -1
  6. package/dist/PlayerTime/PlayerTime.d.ts +1 -1
  7. package/dist/Sound/useSoundControls.d.ts +1 -1
  8. package/dist/Store/DisplayedAction.d.ts +1 -1
  9. package/dist/Store/GamePageState.d.ts +1 -1
  10. package/dist/Store/gameReducer.d.ts +2 -2
  11. package/dist/Tutorial/PlayTutorialMoves.d.ts +1 -1
  12. package/dist/Tutorial/Tutorial.d.ts +1 -1
  13. package/dist/Types/GameAI.d.ts +1 -1
  14. package/dist/Types/GameData.d.ts +1 -1
  15. package/dist/Types/GameMessage.d.ts +1 -1
  16. package/dist/Types/GameNotification.d.ts +2 -2
  17. package/dist/Types/GameOptions.d.ts +1 -1
  18. package/dist/Types/MovePlayedNotification.d.ts +1 -1
  19. package/dist/Types/MoveUndoneNotification.d.ts +1 -1
  20. package/dist/Types/Player.d.ts +1 -1
  21. package/dist/Types/ProxyGameData.d.ts +1 -1
  22. package/dist/Types/Tournament.d.ts +1 -1
  23. package/dist/User/User.d.ts +1 -1
  24. package/dist/animations/Animation.d.ts +1 -1
  25. package/dist/animations/AnimationContext.d.ts +1 -1
  26. package/dist/animations/AnimationState.d.ts +1 -1
  27. package/dist/api/Client/GameClientAPI.js +1 -1
  28. package/dist/api/Client/GameNotificationsListener.js +1 -1
  29. package/dist/api/Client/RemoteGameProvider.d.ts +1 -1
  30. package/dist/api/Client/apollo-client.js.map +1 -1
  31. package/dist/api/Local/ConsoleTools.d.ts +1 -1
  32. package/dist/api/Local/GameLocalAPI.js +1 -1
  33. package/dist/api/Local/LocalGameProvider.d.ts +1 -1
  34. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { Message } from './index';
2
- export declare type ChatChannel = {
2
+ export type ChatChannel = {
3
3
  name: string;
4
4
  messages: Message[];
5
5
  };
@@ -1,4 +1,4 @@
1
- export declare type Message = {
1
+ export type Message = {
2
2
  id: string;
3
3
  userId: string;
4
4
  text: string;
@@ -1,6 +1,6 @@
1
1
  import { GamePageState } from '../Store';
2
2
  export declare const GIVE_UP = "GIVE_UP";
3
- export declare type GiveUp = {
3
+ export type GiveUp = {
4
4
  type: typeof GIVE_UP;
5
5
  };
6
6
  export declare const giveUpAction: {
@@ -1,20 +1,12 @@
1
- import { ChatChannel, Message } from '../Chat';
1
+ import { Message } from '../Chat';
2
2
  export declare function useChatMessages(gameId: string, onMessageReceived?: (message: Message) => void): {
3
3
  messages: Message[];
4
4
  hasMoreMessages: boolean;
5
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: {
6
+ fetchMore: <TFetchData = any, TFetchVars extends import("@apollo/client").OperationVariables = import("@apollo/client").OperationVariables>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
7
+ updateQuery?: ((previousQueryResult: any, options: {
14
8
  fetchMoreResult: TFetchData;
15
9
  variables: TFetchVars;
16
- }) => {
17
- chatChannel: ChatChannel;
18
- }) | undefined;
10
+ }) => any) | undefined;
19
11
  }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
20
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useChatMessages.js","sourceRoot":"","sources":["../../src/Hooks/useChatMessages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yCAA8C;AAC9C,+BAAgC;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AI,uBAAJ,IAAI,CAAE,WAAW,CAAC,QAAQ,mCAAI,EAAE,CAAA;IAC5D,IAAA,qBAAQ,EAAC,OAAO,EAAE,+BAA+B,EAAE,cAAM,OAAA,aAAa,CAAC,IAAI,CAAC,EAAnB,CAAmB,CAAC,CAAA;IAC7E,IAAA,qBAAQ,EAAU,OAAO,EAAE,SAAS,EAAE,UAAA,OAAO;QAC3C,IAAI,OAAO,EAAE;YACX,MAAM,CAAC,aAAa,CAAC;gBACnB,EAAE,EAAE,uCAA6B,MAAM,QAAI;gBAC3C,QAAQ,MAAE,YAAG,gJAAA,4EAA4E,IAAA;gBACzF,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAG,UAAU,EAAE,SAAS,IAAK,OAAO,EAAG,EAAE;aAC5D,CAAC,CAAA;YACF,IAAI,iBAAiB;gBAAE,iBAAiB,CAAC,OAAO,CAAC,CAAA;SAClD;IACH,CAAC,CAAC,CAAA;IACF,OAAO,EAAE,QAAQ,UAAA,EAAE,eAAe,iBAAA,EAAE,OAAO,SAAA,EAAE,SAAS,WAAA,EAAE,CAAA;AAC1D,CAAC;AArBD,0CAqBC"}
@@ -1,5 +1,5 @@
1
1
  import { Player } from '../Types';
2
- export declare type PlayerTime = {
2
+ export type PlayerTime = {
3
3
  playing: boolean;
4
4
  lastChange: string;
5
5
  availableTime: number;
@@ -1,4 +1,4 @@
1
- declare type SoundControls = {
1
+ type SoundControls = {
2
2
  mute: () => void;
3
3
  unmute: () => void;
4
4
  muted: boolean;
@@ -1,6 +1,6 @@
1
1
  import { Action } from '@gamepark/rules-api';
2
2
  import { AnimationState, AnimationStep } from '../animations';
3
- export declare type DisplayedAction<Move = any, PlayerId = any> = Action<Move, PlayerId> & {
3
+ export type DisplayedAction<Move = any, PlayerId = any> = Action<Move, PlayerId> & {
4
4
  played: number;
5
5
  pending?: boolean;
6
6
  delayed?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { GameMode, GameOptions, IndexedGameNotification, Player, Tournament } from '../Types';
2
2
  import { DisplayedAction } from './DisplayedAction';
3
- export declare type GamePageState<Game = any, Move = any, PlayerId = any> = {
3
+ export type GamePageState<Game = any, Move = any, PlayerId = any> = {
4
4
  players: Player<PlayerId>[];
5
5
  playerId?: PlayerId;
6
6
  options?: GameOptions;
@@ -5,9 +5,9 @@ import { Animations } from '../animations';
5
5
  import { GiveUp } from '../GiveUp';
6
6
  import { MuteSounds, UnmuteSounds } from '../Sound';
7
7
  import { GamePageState } from './GamePageState';
8
- export declare type GameReducerContext<Game = any, Move = any, PlayerId = any> = {
8
+ export type GameReducerContext<Game = any, Move = any, PlayerId = any> = {
9
9
  Rules: RulesCreator<Game, Move, PlayerId>;
10
10
  animations?: Animations<Game, Move, PlayerId>;
11
11
  };
12
- export declare type GameActions<Game = any, Move = any, PlayerId = any> = GameStateLoaded<Game, PlayerId> | GameNotificationsReceived<PlayerId> | MovePlayed<Move> | MoveUndone | AnimationStart | AnimationComplete | AnimationPaused | ActionFailed | ClearFailures | SetAnimationsSpeed | GiveUp | MuteSounds | UnmuteSounds | GameOver<PlayerId>;
12
+ export type GameActions<Game = any, Move = any, PlayerId = any> = GameStateLoaded<Game, PlayerId> | GameNotificationsReceived<PlayerId> | MovePlayed<Move> | MoveUndone | AnimationStart | AnimationComplete | AnimationPaused | ActionFailed | ClearFailures | SetAnimationsSpeed | GiveUp | MuteSounds | UnmuteSounds | GameOver<PlayerId>;
13
13
  export declare function gameReducer<Game, Move, PlayerId>(context: GameReducerContext<Game, Move, PlayerId>): Reducer<GamePageState<Game, Move, PlayerId>, GameActions<Game, Move, PlayerId>>;
@@ -1,5 +1,5 @@
1
1
  export declare const PLAY_TUTORIAL_MOVES = "PLAY_TUTORIAL_MOVES";
2
- export declare type PlayTutorialMoves = {
2
+ export type PlayTutorialMoves = {
3
3
  type: typeof PLAY_TUTORIAL_MOVES;
4
4
  quantity: number;
5
5
  };
@@ -1,4 +1,4 @@
1
- export declare type Tutorial = {
1
+ export type Tutorial = {
2
2
  playNextMoves: (quantity?: number) => void;
3
3
  playNextMove: () => void;
4
4
  setOpponentsPlayAutomatically: (value?: boolean) => void;
@@ -1,2 +1,2 @@
1
1
  import { Action } from '@gamepark/rules-api';
2
- export declare type GameAI<Game, Move, PlayerId> = (game: Game, playerId: PlayerId, actions: Action<Move, PlayerId>[]) => Promise<Move[]>;
2
+ export type GameAI<Game, Move, PlayerId> = (game: Game, playerId: PlayerId, actions: Action<Move, PlayerId>[]) => Promise<Move[]>;
@@ -2,7 +2,7 @@ import { GameMode } from './GameMode';
2
2
  import { GameOptions } from './GameOptions';
3
3
  import { Player } from './Player';
4
4
  import { Tournament } from './Tournament';
5
- export declare type GameData<Game = any, PlayerId = any> = {
5
+ export type GameData<Game = any, PlayerId = any> = {
6
6
  players: Player<PlayerId>[];
7
7
  options: GameOptions;
8
8
  myPlayerId?: PlayerId;
@@ -1,6 +1,6 @@
1
1
  import { GameNotification } from './GameNotification';
2
2
  import { Player } from './Player';
3
- export declare type GameMessage<PlayerId = any> = {
3
+ export type GameMessage<PlayerId = any> = {
4
4
  notifications: GameNotification<PlayerId>[];
5
5
  index: number;
6
6
  players: Player<PlayerId>[];
@@ -1,6 +1,6 @@
1
- export declare type GameNotification<PlayerId = any> = {
1
+ export type GameNotification<PlayerId = any> = {
2
2
  playerId: PlayerId;
3
3
  };
4
- export declare type IndexedGameNotification<PlayerId> = GameNotification<PlayerId> & {
4
+ export type IndexedGameNotification<PlayerId> = GameNotification<PlayerId> & {
5
5
  index: number;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { GameSpeed } from '@gamepark/rules-api';
2
- export declare type GameOptions = {
2
+ export type GameOptions = {
3
3
  speed: GameSpeed;
4
4
  maxSpareTime: number;
5
5
  maxExceedTime: number;
@@ -1,6 +1,6 @@
1
1
  import { Action } from '@gamepark/rules-api';
2
2
  import { GameNotification } from './GameNotification';
3
- export declare type MovePlayedNotification<Move, PlayerId> = GameNotification<PlayerId> & {
3
+ export type MovePlayedNotification<Move, PlayerId> = GameNotification<PlayerId> & {
4
4
  actionId: string | null;
5
5
  moveView: Move;
6
6
  consequences: Move[];
@@ -1,6 +1,6 @@
1
1
  import { Action } from '@gamepark/rules-api';
2
2
  import { GameNotification } from './GameNotification';
3
- export declare type MoveUndoneNotification<PlayerId> = GameNotification<PlayerId> & {
3
+ export type MoveUndoneNotification<PlayerId> = GameNotification<PlayerId> & {
4
4
  actionId: string | null;
5
5
  moveUndone: number;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { PlayerTime } from '../PlayerTime';
2
- export declare type Player<PlayerId = any> = {
2
+ export type Player<PlayerId = any> = {
3
3
  id: PlayerId;
4
4
  userId?: string;
5
5
  name?: string;
@@ -1,7 +1,7 @@
1
1
  import { Action } from '@gamepark/rules-api';
2
2
  import { Player } from './Player';
3
3
  import { GameOptions } from './GameOptions';
4
- export declare type ProxyGameData<Game = any, Move = any, PlayerId = any> = {
4
+ export type ProxyGameData<Game = any, Move = any, PlayerId = any> = {
5
5
  playerId?: PlayerId;
6
6
  players: Player<PlayerId>[];
7
7
  setup: Game;
@@ -1,4 +1,4 @@
1
- export declare type Tournament = {
1
+ export type Tournament = {
2
2
  signedUp: boolean;
3
3
  number: number;
4
4
  };
@@ -1,4 +1,4 @@
1
- export declare type User = {
1
+ export type User = {
2
2
  id: string;
3
3
  name?: string;
4
4
  avatar?: any;
@@ -1,5 +1,5 @@
1
1
  import { DisplayedAction } from '../Store';
2
- export declare type Animation<Move = any, PlayerId = any> = {
2
+ export type Animation<Move = any, PlayerId = any> = {
3
3
  move: Move;
4
4
  duration: number;
5
5
  action: DisplayedAction<Move, PlayerId>;
@@ -1,6 +1,6 @@
1
1
  import { AnimationStep } from './AnimationStep';
2
2
  import { DisplayedAction } from '../Store';
3
- export declare type AnimationContext<Game, Move, PlayerId> = {
3
+ export type AnimationContext<Game, Move, PlayerId> = {
4
4
  action: DisplayedAction<Move, PlayerId>;
5
5
  game: Game;
6
6
  step: AnimationStep;
@@ -1,5 +1,5 @@
1
1
  import { AnimationStep } from './AnimationStep';
2
- export declare type AnimationState = {
2
+ export type AnimationState = {
3
3
  id: number;
4
4
  duration: number;
5
5
  step: AnimationStep;
@@ -18,7 +18,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
18
18
  function verb(n) { return function (v) { return step([n, v]); }; }
19
19
  function step(op) {
20
20
  if (f) throw new TypeError("Generator is already executing.");
21
- while (_) try {
21
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
22
22
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
23
23
  if (y = 0, t) op = [op[0] & 2, t.value];
24
24
  switch (op[0]) {
@@ -18,7 +18,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
18
18
  function verb(n) { return function (v) { return step([n, v]); }; }
19
19
  function step(op) {
20
20
  if (f) throw new TypeError("Generator is already executing.");
21
- while (_) try {
21
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
22
22
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
23
23
  if (y = 0, t) op = [op[0] & 2, t.value];
24
24
  switch (op[0]) {
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { GameReducerContext } from '../../Store/gameReducer';
3
- declare type RemoveGameProviderProps<Game = any, Move = any, PlayerId = any> = {
3
+ type RemoveGameProviderProps<Game = any, Move = any, PlayerId = any> = {
4
4
  gameId: string;
5
5
  } & GameReducerContext<Game, Move, PlayerId>;
6
6
  export declare function RemoteGameProvider<Game = any, Move = any, PlayerId = any>({ gameId, children, ...context }: PropsWithChildren<RemoveGameProviderProps<Game, Move, PlayerId>>): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"apollo-client.js","sourceRoot":"","sources":["../../../src/api/Client/apollo-client.ts"],"names":[],"mappings":";;;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AAI,QAAQ,SAAK,QAAQ,QAC7B,IAAI,CAAC,UAAC,EAAE,EAAE,EAAE,IAAK,OAAA,IAAA,eAAK,EAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,GAAG,IAAA,eAAK,EAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAA7C,CAA6C,CAAC;qCAC/D,MAAM,CAAC,UAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,IAAK,OAAA,KAAK,KAAK,CAAC,IAAI,OAAO,CAAC,EAAE,KAAK,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,EAApD,CAAoD,CAAC,CAAA;4BAC/F,CAAC;yBACF;qBACF;iBACF;gBACD,OAAO,EAAE;oBACP,SAAS,EAAE,KAAK;iBACjB;aACF;YACD,aAAa,EAAE;gBACb,gBAAgB,EAAE,CAAC,wBAAwB,EAAE,wBAAwB,CAAC;aACvE;SACF,CAAC;KACH,CAAC,CAAA;AACJ,CAAC"}
@@ -7,7 +7,7 @@ declare global {
7
7
  game: ConsoleTools;
8
8
  }
9
9
  }
10
- declare type ConsoleTools<Game = any, Move = any, PlayerId = any> = {
10
+ type ConsoleTools<Game = any, Move = any, PlayerId = any> = {
11
11
  state: Game;
12
12
  store: GamePageState<Game>;
13
13
  moves: Action<Move, PlayerId>[];
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
29
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
30
  if (y = 0, t) op = [op[0] & 2, t.value];
31
31
  switch (op[0]) {
@@ -3,7 +3,7 @@ import { GameReducerContext } from '../../Store/gameReducer';
3
3
  import { GameSetupCreator, Robot, RulesCreator } from '@gamepark/rules-api';
4
4
  import { TutorialDescription } from '../../Tutorial';
5
5
  import { GameAI } from '../../Types';
6
- export declare type LocalGameProviderProps<Game = any, GameView = any, Move = any, MoveView = any, PlayerId = any> = {
6
+ export type LocalGameProviderProps<Game = any, GameView = any, Move = any, MoveView = any, PlayerId = any> = {
7
7
  game: string;
8
8
  ServerRules?: RulesCreator<Game, Move, PlayerId>;
9
9
  GameSetup?: GameSetupCreator<Game>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamepark/react-client",
3
- "version": "6.10.0",
3
+ "version": "6.10.1",
4
4
  "description": "Library to interact with Game Park server in a React application for a board game",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@apollo/client": "^3.5.0",
31
- "@gamepark/rules-api": "^6.10.0",
31
+ "@gamepark/rules-api": "^6.10.1",
32
32
  "@types/assert": "^1.5.4",
33
33
  "@types/react": "^17.0.68",
34
34
  "@types/react-dom": "^17.0.21",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "4fb259cdddc928c32ea129d675cecfe0b6402c29"
53
+ "gitHead": "b40e78ee555c3cf3afffe9c18fbc71bffeb11158"
54
54
  }