@gamepark/react-client 7.6.2 → 7.6.3
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 -0
- package/dist/Actions/ActionFailed.js +9 -0
- package/dist/Actions/ActionFailed.js.map +1 -0
- package/dist/Actions/ActionType.d.ts +3 -0
- package/dist/Actions/ActionType.js +8 -0
- package/dist/Actions/ActionType.js.map +1 -0
- package/dist/Actions/AnimationComplete.d.ts +6 -0
- package/dist/Actions/AnimationComplete.js +9 -0
- package/dist/Actions/AnimationComplete.js.map +1 -0
- package/dist/Actions/AnimationPaused.d.ts +6 -0
- package/dist/Actions/AnimationPaused.js +9 -0
- package/dist/Actions/AnimationPaused.js.map +1 -0
- package/dist/Actions/AnimationStart.d.ts +5 -0
- package/dist/Actions/AnimationStart.js +5 -0
- package/dist/Actions/AnimationStart.js.map +1 -0
- package/dist/Actions/GameNotificationsReceived.d.ts +10 -0
- package/dist/Actions/GameNotificationsReceived.js +10 -0
- package/dist/Actions/GameNotificationsReceived.js.map +1 -0
- package/dist/Actions/GameOver.d.ts +16 -0
- package/dist/Actions/GameOver.js +9 -0
- package/dist/Actions/GameOver.js.map +1 -0
- package/dist/Actions/GameStateLoaded.d.ts +16 -0
- package/dist/Actions/GameStateLoaded.js +21 -0
- package/dist/Actions/GameStateLoaded.js.map +1 -0
- package/dist/Actions/MovePlayed.d.ts +11 -0
- package/dist/Actions/MovePlayed.js +3 -0
- package/dist/Actions/MovePlayed.js.map +1 -0
- package/dist/Actions/MoveUndone.d.ts +7 -0
- package/dist/Actions/MoveUndone.js +10 -0
- package/dist/Actions/MoveUndone.js.map +1 -0
- package/dist/Actions/PlayerQuit.d.ts +11 -0
- package/dist/Actions/PlayerQuit.js +20 -0
- package/dist/Actions/PlayerQuit.js.map +1 -0
- package/dist/Chat/ChatChannel.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -0
- package/dist/Chat/index.js +1 -0
- package/dist/Chat/index.js.map +1 -1
- package/dist/GiveUp/GiveUp.d.ts +7 -0
- package/dist/GiveUp/GiveUp.js +6 -0
- package/dist/GiveUp/GiveUp.js.map +1 -0
- package/dist/GiveUp/index.d.ts +1 -0
- package/dist/GiveUp/index.js +18 -0
- package/dist/GiveUp/index.js.map +1 -0
- package/dist/Log/MuteSounds.d.ts +5 -0
- package/dist/Log/MuteSounds.js +10 -0
- package/dist/Log/MuteSounds.js.map +1 -0
- package/dist/Log/UnmuteSounds.d.ts +4 -0
- package/dist/Log/UnmuteSounds.js +5 -0
- package/dist/Log/UnmuteSounds.js.map +1 -0
- package/dist/Log/useLogControl.d.ts +7 -0
- package/dist/Log/useLogControl.js +23 -0
- package/dist/Log/useLogControl.js.map +1 -0
- package/dist/Rematch/RematchQueries.d.ts +4 -4
- package/dist/Scoring/ScoringDescription.d.ts +8 -0
- package/dist/Scoring/ScoringDescription.js +3 -0
- package/dist/Scoring/ScoringDescription.js.map +1 -0
- package/dist/Scoring/index.d.ts +1 -0
- package/dist/Scoring/index.js +18 -0
- package/dist/Scoring/index.js.map +1 -0
- package/dist/Store/AnimatedMove.d.ts +6 -0
- package/dist/Store/AnimatedMove.js +3 -0
- package/dist/Store/AnimatedMove.js.map +1 -0
- package/dist/animations/AnimationsListenerCreator.d.ts +4 -0
- package/dist/animations/AnimationsListenerCreator.js +51 -0
- package/dist/animations/AnimationsListenerCreator.js.map +1 -0
- package/dist/api/Client/apollo-client.js +19 -0
- package/dist/api/Client/apollo-client.js.map +1 -1
- package/package.json +2 -2
- /package/dist/Actions/{clearFailures.d.ts → ClearFailures.d.ts} +0 -0
- /package/dist/Actions/{clearFailures.js → ClearFailures.js} +0 -0
- /package/dist/Actions/{clearFailures.js.map → ClearFailures.js.map} +0 -0
- /package/dist/Actions/{setAnimationsSpeed.d.ts → SetAnimationsSpeed.d.ts} +0 -0
- /package/dist/Actions/{setAnimationsSpeed.js → SetAnimationsSpeed.js} +0 -0
- /package/dist/Actions/{setAnimationsSpeed.js.map → SetAnimationsSpeed.js.map} +0 -0
- /package/dist/Log/{startLiveLog.d.ts → StartLiveLog.d.ts} +0 -0
- /package/dist/Log/{startLiveLog.js → StartLiveLog.js} +0 -0
- /package/dist/Log/{startLiveLog.js.map → StartLiveLog.js.map} +0 -0
- /package/dist/Log/{stopLiveLog.d.ts → StopLiveLog.d.ts} +0 -0
- /package/dist/Log/{stopLiveLog.js → StopLiveLog.js} +0 -0
- /package/dist/Log/{stopLiveLog.js.map → StopLiveLog.js.map} +0 -0
- /package/dist/Sound/{muteSounds.d.ts → MuteSounds.d.ts} +0 -0
- /package/dist/Sound/{muteSounds.js → MuteSounds.js} +0 -0
- /package/dist/Sound/{muteSounds.js.map → MuteSounds.js.map} +0 -0
- /package/dist/Sound/{unmuteSounds.d.ts → UnmuteSounds.d.ts} +0 -0
- /package/dist/Sound/{unmuteSounds.js → UnmuteSounds.js} +0 -0
- /package/dist/Sound/{unmuteSounds.js.map → UnmuteSounds.js.map} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.actionFailed = exports.ACTION_FAILED = void 0;
|
|
4
|
+
exports.ACTION_FAILED = 'ACTION_FAILED';
|
|
5
|
+
function actionFailed(reason) {
|
|
6
|
+
return { type: exports.ACTION_FAILED, reason: reason };
|
|
7
|
+
}
|
|
8
|
+
exports.actionFailed = actionFailed;
|
|
9
|
+
//# sourceMappingURL=ActionFailed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionFailed.js","sourceRoot":"","sources":["../../src/Actions/ActionFailed.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,eAAe,CAAA;AAO5C,SAAgB,YAAY,CAAC,MAAc;IACzC,OAAO,EAAC,IAAI,EAAE,qBAAa,EAAE,MAAM,QAAA,EAAC,CAAA;AACtC,CAAC;AAFD,oCAEC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionType = void 0;
|
|
4
|
+
var ActionType;
|
|
5
|
+
(function (ActionType) {
|
|
6
|
+
ActionType[ActionType["MOVE_PLAYED"] = 0] = "MOVE_PLAYED";
|
|
7
|
+
})(ActionType = exports.ActionType || (exports.ActionType = {}));
|
|
8
|
+
//# sourceMappingURL=ActionType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionType.js","sourceRoot":"","sources":["../../src/Actions/ActionType.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,yDAAW,CAAA;AACb,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.animationComplete = exports.ANIMATION_COMPLETE = void 0;
|
|
4
|
+
exports.ANIMATION_COMPLETE = 'ANIMATION_COMPLETE';
|
|
5
|
+
function animationComplete(animationId) {
|
|
6
|
+
return { type: exports.ANIMATION_COMPLETE, animationId: animationId };
|
|
7
|
+
}
|
|
8
|
+
exports.animationComplete = animationComplete;
|
|
9
|
+
//# sourceMappingURL=AnimationComplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimationComplete.js","sourceRoot":"","sources":["../../src/Actions/AnimationComplete.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAA;AAOtD,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,OAAO,EAAE,IAAI,EAAE,0BAAkB,EAAE,WAAW,aAAA,EAAE,CAAA;AAClD,CAAC;AAFD,8CAEC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.animationPaused = exports.ANIMATION_PAUSED = void 0;
|
|
4
|
+
exports.ANIMATION_PAUSED = 'ANIMATION_PAUSED';
|
|
5
|
+
function animationPaused(pause) {
|
|
6
|
+
return { type: exports.ANIMATION_PAUSED, pause: pause };
|
|
7
|
+
}
|
|
8
|
+
exports.animationPaused = animationPaused;
|
|
9
|
+
//# sourceMappingURL=AnimationPaused.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimationPaused.js","sourceRoot":"","sources":["../../src/Actions/AnimationPaused.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,kBAAkB,CAAA;AAOlD,SAAgB,eAAe,CAAC,KAAc;IAC5C,OAAO,EAAC,IAAI,EAAE,wBAAgB,EAAE,KAAK,OAAA,EAAC,CAAA;AACxC,CAAC;AAFD,0CAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimationStart.js","sourceRoot":"","sources":["../../src/Actions/AnimationStart.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
5
|
+
notifications: GameNotification<PlayerId>[];
|
|
6
|
+
notificationsIndex: number;
|
|
7
|
+
players: Player<PlayerId>[];
|
|
8
|
+
serverTime?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function gameNotificationsReceived<PlayerId>(notifications: GameNotification<PlayerId>[], notificationsIndex: number | undefined, players: Player<PlayerId>[], serverTime?: number): GameNotificationsReceived<PlayerId>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gameNotificationsReceived = exports.GAME_NOTIFICATIONS_RECEIVED = void 0;
|
|
4
|
+
exports.GAME_NOTIFICATIONS_RECEIVED = 'GAME_NOTIFICATIONS_RECEIVED';
|
|
5
|
+
function gameNotificationsReceived(notifications, notificationsIndex, players, serverTime) {
|
|
6
|
+
if (notificationsIndex === void 0) { notificationsIndex = 0; }
|
|
7
|
+
return { type: exports.GAME_NOTIFICATIONS_RECEIVED, notifications: notifications, notificationsIndex: notificationsIndex, players: players, serverTime: serverTime };
|
|
8
|
+
}
|
|
9
|
+
exports.gameNotificationsReceived = gameNotificationsReceived;
|
|
10
|
+
//# sourceMappingURL=GameNotificationsReceived.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameNotificationsReceived.js","sourceRoot":"","sources":["../../src/Actions/GameNotificationsReceived.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAAG,6BAA6B,CAAA;AAUxE,SAAgB,yBAAyB,CAAW,aAA2C,EAAE,kBAA8B,EAAE,OAA2B,EAAE,UAAmB;IAAhF,mCAAA,EAAA,sBAA8B;IAC7H,OAAO,EAAE,IAAI,EAAE,mCAA2B,EAAE,aAAa,eAAA,EAAE,kBAAkB,oBAAA,EAAE,OAAO,SAAA,EAAE,UAAU,YAAA,EAAE,CAAA;AACtG,CAAC;AAFD,8DAEC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PlayerTime } from '../PlayerTime';
|
|
2
|
+
export declare const GAME_OVER = "GAME_OVER";
|
|
3
|
+
export interface GameOver<PlayerId = any> {
|
|
4
|
+
type: typeof GAME_OVER;
|
|
5
|
+
players: {
|
|
6
|
+
id: PlayerId;
|
|
7
|
+
time?: PlayerTime;
|
|
8
|
+
gamePointsDelta?: number;
|
|
9
|
+
tournamentPoints?: number;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
export declare function gameOver<PlayerId>(players: {
|
|
13
|
+
id: PlayerId;
|
|
14
|
+
gamePointsDelta?: number;
|
|
15
|
+
tournamentPoints?: number;
|
|
16
|
+
}[]): GameOver<PlayerId>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gameOver = exports.GAME_OVER = void 0;
|
|
4
|
+
exports.GAME_OVER = 'GAME_OVER';
|
|
5
|
+
function gameOver(players) {
|
|
6
|
+
return { type: exports.GAME_OVER, players: players };
|
|
7
|
+
}
|
|
8
|
+
exports.gameOver = gameOver;
|
|
9
|
+
//# sourceMappingURL=GameOver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameOver.js","sourceRoot":"","sources":["../../src/Actions/GameOver.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAG,WAAW,CAAA;AAYpC,SAAgB,QAAQ,CAAW,OAAgF;IACjH,OAAO,EAAE,IAAI,EAAE,iBAAS,EAAE,OAAO,SAAA,EAAE,CAAA;AACrC,CAAC;AAFD,4BAEC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GameData, GameMode, GameNotification, GameOptions, Player, Tournament } from '../Types';
|
|
2
|
+
export declare const GAME_STATE_LOADED = "GAME_STATE_LOADED";
|
|
3
|
+
export interface GameStateLoaded<Game, PlayerId> {
|
|
4
|
+
type: typeof GAME_STATE_LOADED;
|
|
5
|
+
players: Player<PlayerId>[];
|
|
6
|
+
options: GameOptions;
|
|
7
|
+
playerId?: PlayerId;
|
|
8
|
+
mode: GameMode;
|
|
9
|
+
state: Game;
|
|
10
|
+
setup: Game;
|
|
11
|
+
notifications: GameNotification[];
|
|
12
|
+
endDate?: Date;
|
|
13
|
+
serverTime?: number;
|
|
14
|
+
tournament?: Tournament;
|
|
15
|
+
}
|
|
16
|
+
export declare function gameStateLoaded<State, PlayerId>(data: GameData<State, PlayerId>, serverTime?: number): GameStateLoaded<State, PlayerId>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.gameStateLoaded = exports.GAME_STATE_LOADED = void 0;
|
|
15
|
+
exports.GAME_STATE_LOADED = 'GAME_STATE_LOADED';
|
|
16
|
+
function gameStateLoaded(data, serverTime) {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
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 });
|
|
19
|
+
}
|
|
20
|
+
exports.gameStateLoaded = gameStateLoaded;
|
|
21
|
+
//# sourceMappingURL=GameStateLoaded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameStateLoaded.js","sourceRoot":"","sources":["../../src/Actions/GameStateLoaded.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEa,QAAA,iBAAiB,GAAG,mBAAmB,CAAA;AAgBpD,SAAgB,eAAe,CAAkB,IAA+B,EAAE,UAAmB;;IACnG,2BACE,IAAI,EAAE,yBAAiB,IAAK,IAAI,KAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,YAAA,EAAE,OAAO,EAAE,MAAA,IAAI,CAAC,OAAO,mCAAI,SAAS,EAClJ,UAAU,EAAE,MAAA,IAAI,CAAC,UAAU,mCAAI,SAAS,IACzC;AACH,CAAC;AALD,0CAKC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ActionType } from './ActionType';
|
|
2
|
+
export type PlayOptions = {
|
|
3
|
+
delayed?: boolean;
|
|
4
|
+
skipAnimation?: boolean;
|
|
5
|
+
local?: boolean;
|
|
6
|
+
transient?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type MovePlayed<M> = {
|
|
9
|
+
type: typeof ActionType.MOVE_PLAYED;
|
|
10
|
+
move: M;
|
|
11
|
+
} & PlayOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovePlayed.js","sourceRoot":"","sources":["../../src/Actions/MovePlayed.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.moveUndone = exports.MOVE_UNDONE = void 0;
|
|
4
|
+
exports.MOVE_UNDONE = 'MOVE_UNDONE';
|
|
5
|
+
function moveUndone(actionId, delayed) {
|
|
6
|
+
if (delayed === void 0) { delayed = false; }
|
|
7
|
+
return { type: exports.MOVE_UNDONE, actionId: actionId, delayed: delayed };
|
|
8
|
+
}
|
|
9
|
+
exports.moveUndone = moveUndone;
|
|
10
|
+
//# sourceMappingURL=MoveUndone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoveUndone.js","sourceRoot":"","sources":["../../src/Actions/MoveUndone.ts"],"names":[],"mappings":";;;AAAa,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;AAFD,gCAEC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
6
|
+
reason: PlayerQuitReason;
|
|
7
|
+
}
|
|
8
|
+
export declare function playerQuit<PlayerId>(data: {
|
|
9
|
+
playerId: PlayerId;
|
|
10
|
+
reason: PlayerQuitReason;
|
|
11
|
+
}): PlayerQuit<PlayerId>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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.playerQuit = exports.PLAYER_QUIT = void 0;
|
|
15
|
+
exports.PLAYER_QUIT = 'PLAYER_QUIT';
|
|
16
|
+
function playerQuit(data) {
|
|
17
|
+
return __assign({ type: exports.PLAYER_QUIT }, data);
|
|
18
|
+
}
|
|
19
|
+
exports.playerQuit = playerQuit;
|
|
20
|
+
//# sourceMappingURL=PlayerQuit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayerQuit.js","sourceRoot":"","sources":["../../src/Actions/PlayerQuit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEa,QAAA,WAAW,GAAG,aAAa,CAAA;AAQxC,SAAgB,UAAU,CAAW,IAAsD;IACzF,kBAAS,IAAI,EAAE,mBAAW,IAAK,IAAI,EAAE;AACvC,CAAC;AAFD,gCAEC"}
|
package/dist/Chat/index.d.ts
CHANGED
package/dist/Chat/index.js
CHANGED
package/dist/Chat/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GiveUp.js","sourceRoot":"","sources":["../../src/GiveUp/GiveUp.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,SAAS,CAAA;AAInB,QAAA,YAAY,GAAG,EAAE,IAAI,EAAE,eAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GiveUp';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./GiveUp"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GiveUp/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.soundsMuted = exports.MUTE_SOUNDS = void 0;
|
|
4
|
+
exports.MUTE_SOUNDS = 'MUTE_SOUNDS';
|
|
5
|
+
function soundsMuted() {
|
|
6
|
+
var query = new URLSearchParams(window.location.search);
|
|
7
|
+
return !!query.get('mute') || !!localStorage.getItem('soundsMuted');
|
|
8
|
+
}
|
|
9
|
+
exports.soundsMuted = soundsMuted;
|
|
10
|
+
//# sourceMappingURL=MuteSounds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MuteSounds.js","sourceRoot":"","sources":["../../src/Log/MuteSounds.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,aAAa,CAAA;AAMxC,SAAgB,WAAW;IACzB,IAAM,KAAK,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzD,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;AACrE,CAAC;AAHD,kCAGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnmuteSounds.js","sourceRoot":"","sources":["../../src/Log/UnmuteSounds.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,eAAe,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSoundControls = void 0;
|
|
4
|
+
var react_redux_1 = require("react-redux");
|
|
5
|
+
var MuteSounds_1 = require("./MuteSounds");
|
|
6
|
+
var UnmuteSounds_1 = require("./UnmuteSounds");
|
|
7
|
+
function useSoundControls() {
|
|
8
|
+
var muted = (0, react_redux_1.useSelector)(function (state) { return state.soundsMuted; });
|
|
9
|
+
var dispatch = (0, react_redux_1.useDispatch)();
|
|
10
|
+
return {
|
|
11
|
+
mute: function () {
|
|
12
|
+
dispatch({ type: MuteSounds_1.MUTE_SOUNDS });
|
|
13
|
+
localStorage.setItem('soundsMuted', 'true');
|
|
14
|
+
},
|
|
15
|
+
unmute: function () {
|
|
16
|
+
dispatch({ type: UnmuteSounds_1.UNMUTE_SOUNDS });
|
|
17
|
+
localStorage.removeItem('soundsMuted');
|
|
18
|
+
},
|
|
19
|
+
muted: muted
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.useSoundControls = useSoundControls;
|
|
23
|
+
//# sourceMappingURL=useLogControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLogControl.js","sourceRoot":"","sources":["../../src/Log/useLogControl.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;AAEtD,2CAA0C;AAC1C,+CAA8C;AAQ9C,SAAgB,gBAAgB;IAC9B,IAAM,KAAK,GAAG,IAAA,yBAAW,EAAC,UAAC,KAAoB,IAAK,OAAA,KAAK,CAAC,WAAW,EAAjB,CAAiB,CAAC,CAAA;IACtE,IAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAA;IAC9B,OAAO;QACL,IAAI,EAAE;YACJ,QAAQ,CAAC,EAAE,IAAI,EAAE,wBAAW,EAAE,CAAC,CAAA;YAC/B,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;QAC7C,CAAC;QACD,MAAM,EAAE;YACN,QAAQ,CAAC,EAAE,IAAI,EAAE,4BAAa,EAAE,CAAC,CAAA;YACjC,YAAY,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;QACxC,CAAC;QACD,KAAK,OAAA;KACN,CAAA;AACH,CAAC;AAdD,4CAcC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CAN_REMATCH: import("
|
|
1
|
+
export declare const CAN_REMATCH: import("@apollo/client").DocumentNode;
|
|
2
2
|
export interface CanRematchData {
|
|
3
3
|
id: string;
|
|
4
4
|
canRematch: boolean;
|
|
@@ -14,6 +14,6 @@ export interface RematchPlayerData {
|
|
|
14
14
|
userId: string;
|
|
15
15
|
ready: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare const REMATCH: import("
|
|
18
|
-
export declare const ACCEPT_REMATCH: import("
|
|
19
|
-
export declare const REFUSE_REMATCH: import("
|
|
17
|
+
export declare const REMATCH: import("@apollo/client").DocumentNode;
|
|
18
|
+
export declare const ACCEPT_REMATCH: import("@apollo/client").DocumentNode;
|
|
19
|
+
export declare const REFUSE_REMATCH: import("@apollo/client").DocumentNode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rules } from '@gamepark/rules-api';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
export type ScoringValue = string | number | ReactElement;
|
|
4
|
+
export interface ScoringDescription<Player extends number = number, GameRule extends Rules = Rules, Key = any> {
|
|
5
|
+
getScoringKeys(rules: GameRule): Key[];
|
|
6
|
+
getScoringHeader(key: Key, rules: GameRule): ScoringValue;
|
|
7
|
+
getScoringPlayerData(key: Key, player: Player, rules: GameRule): ScoringValue | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScoringDescription.js","sourceRoot":"","sources":["../../src/Scoring/ScoringDescription.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ScoringDescription';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./ScoringDescription"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Scoring/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimatedMove.js","sourceRoot":"","sources":["../../src/Store/AnimatedMove.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RulesCreator } from '@gamepark/rules-api';
|
|
2
|
+
import { Store } from 'redux';
|
|
3
|
+
import { GamePageState } from '../Store';
|
|
4
|
+
export declare function createAnimationsListener<Game = any, Move = any, PlayerId = any>(store: Store<GamePageState<Game, Move, PlayerId>>, Rules: RulesCreator<Game, Move, PlayerId>): () => void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createAnimationsListener = void 0;
|
|
7
|
+
var intersection_1 = __importDefault(require("lodash/intersection"));
|
|
8
|
+
var Actions_1 = require("../Actions");
|
|
9
|
+
var Store_1 = require("../Store");
|
|
10
|
+
function createAnimationsListener(store, Rules) {
|
|
11
|
+
var timers = new Map();
|
|
12
|
+
return function () {
|
|
13
|
+
var _a = store.getState(), actions = _a.actions, animationPaused = _a.animationPaused, players = _a.players, state = _a.state;
|
|
14
|
+
if (!actions || !state)
|
|
15
|
+
return;
|
|
16
|
+
var rules = new Rules(state);
|
|
17
|
+
var playersToAnimateAction = players.filter(function (player) { return rules.isTurnToPlay(player.id); }).map(function (player) { return player.id; });
|
|
18
|
+
var isAnimating = false;
|
|
19
|
+
var _loop_1 = function (action) {
|
|
20
|
+
var animation = action.animation;
|
|
21
|
+
if (animation) {
|
|
22
|
+
isAnimating = true;
|
|
23
|
+
if (action.activePlayers) {
|
|
24
|
+
playersToAnimateAction = (0, intersection_1.default)(playersToAnimateAction, action.activePlayers);
|
|
25
|
+
}
|
|
26
|
+
var index = playersToAnimateAction.findIndex(function (p) { return p === action.playerId; });
|
|
27
|
+
if (index !== -1) {
|
|
28
|
+
playersToAnimateAction.splice(index, 1);
|
|
29
|
+
}
|
|
30
|
+
if (!timers.has(animation.id)) {
|
|
31
|
+
timers.set(animation.id, setTimeout(function () {
|
|
32
|
+
timers.delete(animation.id);
|
|
33
|
+
store.dispatch((0, Actions_1.animationComplete)(animation.id));
|
|
34
|
+
}, animation.duration * 1000));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else if (!animationPaused && (0, Store_1.isActionToAnimate)(action) && (!isAnimating || playersToAnimateAction.includes(action.playerId))) {
|
|
38
|
+
store.dispatch({ type: Actions_1.ANIMATION_START, actionId: action.id });
|
|
39
|
+
return { value: void 0 };
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
for (var _i = 0, actions_1 = actions; _i < actions_1.length; _i++) {
|
|
43
|
+
var action = actions_1[_i];
|
|
44
|
+
var state_1 = _loop_1(action);
|
|
45
|
+
if (typeof state_1 === "object")
|
|
46
|
+
return state_1.value;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.createAnimationsListener = createAnimationsListener;
|
|
51
|
+
//# sourceMappingURL=AnimationsListenerCreator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimationsListenerCreator.js","sourceRoot":"","sources":["../../src/animations/AnimationsListenerCreator.ts"],"names":[],"mappings":";;;;;;AACA,qEAA8C;AAE9C,sCAA+D;AAC/D,kCAA2D;AAE3D,SAAgB,wBAAwB,CACtC,KAAiD,EAAE,KAAyC;IAE5F,IAAM,MAAM,GAAG,IAAI,GAAG,EAA0B,CAAA;IAChD,OAAO;QACC,IAAA,KAA+C,KAAK,CAAC,QAAQ,EAAE,EAA7D,OAAO,aAAA,EAAE,eAAe,qBAAA,EAAE,OAAO,aAAA,EAAE,KAAK,WAAqB,CAAA;QACrE,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK;YAAE,OAAM;QAC9B,IAAM,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,CAAA;QAC9B,IAAI,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,UAAA,MAAM,IAAI,OAAA,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,EAA7B,CAA6B,CAAC,CAAC,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,EAAE,EAAT,CAAS,CAAC,CAAA;QAC7G,IAAI,WAAW,GAAG,KAAK,CAAA;gCACZ,MAAM;YACf,IAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;YAClC,IAAI,SAAS,EAAE;gBACb,WAAW,GAAG,IAAI,CAAA;gBAClB,IAAI,MAAM,CAAC,aAAa,EAAE;oBACxB,sBAAsB,GAAG,IAAA,sBAAY,EAAC,sBAAsB,EAAE,MAAM,CAAC,aAAa,CAAC,CAAA;iBACpF;gBACD,IAAM,KAAK,GAAG,sBAAsB,CAAC,SAAS,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,KAAK,MAAM,CAAC,QAAQ,EAArB,CAAqB,CAAC,CAAA;gBAC1E,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;oBAChB,sBAAsB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;iBACxC;gBACD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE;oBAC7B,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,UAAU,CAAC;wBAClC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;wBAC3B,KAAK,CAAC,QAAQ,CAAC,IAAA,2BAAiB,EAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAA;oBACjD,CAAC,EAAE,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAA;iBAC/B;aACF;iBAAM,IAAI,CAAC,eAAe,IAAI,IAAA,yBAAiB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,IAAI,sBAAsB,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE;gBAC9H,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,yBAAe,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAA;;aAE/D;;QApBH,KAAqB,UAAO,EAAP,mBAAO,EAAP,qBAAO,EAAP,IAAO;YAAvB,IAAM,MAAM,gBAAA;kCAAN,MAAM;;;SAqBhB;IACH,CAAC,CAAA;AACH,CAAC;AAjCD,4DAiCC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApolloClient, ApolloLink, HttpLink, InMemoryCache } from '@apollo/client';
|
|
2
2
|
import { RetryLink } from '@apollo/client/link/retry';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
3
4
|
import { PLATFORM_URI } from './GameClientAPI';
|
|
4
5
|
let apolloClient;
|
|
5
6
|
export function getApolloClient() {
|
|
@@ -13,6 +14,24 @@ function initApolloClient() {
|
|
|
13
14
|
return new ApolloClient({
|
|
14
15
|
link: ApolloLink.from([new RetryLink(), httpLink]),
|
|
15
16
|
cache: new InMemoryCache({
|
|
17
|
+
typePolicies: {
|
|
18
|
+
ChatChannel: {
|
|
19
|
+
keyFields: ['name'],
|
|
20
|
+
fields: {
|
|
21
|
+
messages: {
|
|
22
|
+
keyArgs: false,
|
|
23
|
+
merge(existing = [], incoming = []) {
|
|
24
|
+
return [...incoming, ...existing]
|
|
25
|
+
.sort((m1, m2) => dayjs(m2.date).unix() - dayjs(m1.date).unix())
|
|
26
|
+
.filter((message, index, messages) => index === 0 || message.id !== messages[index - 1].id);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
Message: {
|
|
32
|
+
keyFields: false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
16
35
|
possibleTypes: {
|
|
17
36
|
GameNotification: ['MovePlayedNotification', 'MoveUndoneNotification']
|
|
18
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-client.js","sourceRoot":"","sources":["../../../src/api/Client/apollo-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,IAAI,YAAsC,CAAA;AAE1C,MAAM,UAAU,eAAe;IAC7B,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,YAAY,GAAG,gBAAgB,EAAE,CAAA;IACnC,CAAC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC;AAED,SAAS,gBAAgB;IACvB,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,cAAc,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAA;IACtI,OAAO,IAAI,YAAY,CAAC;QACtB,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC;QAClD,KAAK,EAAE,IAAI,aAAa,CAAC;YACvB,aAAa,EAAE;gBACb,gBAAgB,EAAE,CAAC,wBAAwB,EAAE,wBAAwB,CAAC;aACvE;SACF,CAAC;KACH,CAAC,CAAA;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"apollo-client.js","sourceRoot":"","sources":["../../../src/api/Client/apollo-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,IAAI,YAAsC,CAAA;AAE1C,MAAM,UAAU,eAAe;IAC7B,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,YAAY,GAAG,gBAAgB,EAAE,CAAA;IACnC,CAAC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC;AAED,SAAS,gBAAgB;IACvB,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,cAAc,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAA;IACtI,OAAO,IAAI,YAAY,CAAC;QACtB,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC;QAClD,KAAK,EAAE,IAAI,aAAa,CAAC;YACvB,YAAY,EAAE;gBACZ,WAAW,EAAE;oBACX,SAAS,EAAE,CAAC,MAAM,CAAC;oBACnB,MAAM,EAAE;wBACN,QAAQ,EAAE;4BACR,OAAO,EAAE,KAAK;4BACd,KAAK,CAAC,WAAsB,EAAE,EAAE,WAAsB,EAAE;gCACtD,OAAO,CAAC,GAAG,QAAQ,EAAE,GAAG,QAAQ,CAAC;qCAC9B,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;qCAC/D,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,KAAK,KAAK,CAAC,IAAI,OAAO,CAAC,EAAE,KAAK,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamepark/react-client",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.3",
|
|
4
4
|
"description": "Library to interact with Game Park server in a React application for a board game",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"superjson": "^2.2.6"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@gamepark/api-types": "^1.0.
|
|
41
|
+
"@gamepark/api-types": "^1.0.1",
|
|
42
42
|
"@gamepark/rules-api": "^7.6.0",
|
|
43
43
|
"@types/assert": "^1.5.11",
|
|
44
44
|
"@types/node": "^25.3.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|