@gamepark/react-game 6.16.0 → 6.17.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.
Files changed (235) hide show
  1. package/dist/components/GameProvider/GameContext.d.ts +2 -0
  2. package/dist/components/GameProvider/GameContext.js.map +1 -1
  3. package/dist/components/GameProvider/GameProvider.js +5 -3
  4. package/dist/components/GameProvider/GameProvider.js.map +1 -1
  5. package/dist/components/JournalTabs/Chat/Chat.d.ts +7 -0
  6. package/dist/components/JournalTabs/Chat/Chat.js +37 -0
  7. package/dist/components/JournalTabs/Chat/Chat.js.map +1 -0
  8. package/dist/components/JournalTabs/Chat/ChatMessage.d.ts +7 -0
  9. package/dist/components/JournalTabs/Chat/ChatMessage.js +29 -0
  10. package/dist/components/JournalTabs/Chat/ChatMessage.js.map +1 -0
  11. package/dist/components/JournalTabs/Chat/ChatMessageAuthor.d.ts +3 -0
  12. package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js +37 -0
  13. package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js.map +1 -0
  14. package/dist/components/JournalTabs/Chat/ChatTextInput.d.ts +19 -0
  15. package/dist/components/JournalTabs/Chat/ChatTextInput.js +71 -0
  16. package/dist/components/JournalTabs/Chat/ChatTextInput.js.map +1 -0
  17. package/dist/components/JournalTabs/Chat/CommonChat.d.ts +12 -0
  18. package/dist/components/JournalTabs/Chat/CommonChat.js +58 -0
  19. package/dist/components/JournalTabs/Chat/CommonChat.js.map +1 -0
  20. package/dist/components/JournalTabs/Chat/LocalChat.d.ts +6 -0
  21. package/dist/components/JournalTabs/Chat/LocalChat.js +49 -0
  22. package/dist/components/JournalTabs/Chat/LocalChat.js.map +1 -0
  23. package/dist/components/JournalTabs/Chat/RemoteChat.d.ts +7 -0
  24. package/dist/components/JournalTabs/Chat/RemoteChat.js +46 -0
  25. package/dist/components/JournalTabs/Chat/RemoteChat.js.map +1 -0
  26. package/dist/components/JournalTabs/Chat/SignInToChat.d.ts +1 -0
  27. package/dist/components/JournalTabs/Chat/SignInToChat.js +35 -0
  28. package/dist/components/JournalTabs/Chat/SignInToChat.js.map +1 -0
  29. package/dist/components/JournalTabs/Chat/index.d.ts +5 -0
  30. package/dist/components/JournalTabs/Chat/index.js +22 -0
  31. package/dist/components/JournalTabs/Chat/index.js.map +1 -0
  32. package/dist/components/JournalTabs/History/ActionHistoryEntry.d.ts +12 -0
  33. package/dist/components/JournalTabs/History/ActionHistoryEntry.js +62 -0
  34. package/dist/components/JournalTabs/History/ActionHistoryEntry.js.map +1 -0
  35. package/dist/components/JournalTabs/History/History.d.ts +6 -0
  36. package/dist/components/JournalTabs/History/History.js +54 -0
  37. package/dist/components/JournalTabs/History/History.js.map +1 -0
  38. package/dist/components/JournalTabs/History/HistoryEntry.d.ts +11 -0
  39. package/dist/components/JournalTabs/History/HistoryEntry.js +42 -0
  40. package/dist/components/JournalTabs/History/HistoryEntry.js.map +1 -0
  41. package/dist/components/JournalTabs/History/MaterialHistory.d.ts +11 -0
  42. package/dist/components/JournalTabs/History/MaterialHistory.js +3 -0
  43. package/dist/components/JournalTabs/History/MaterialHistory.js.map +1 -0
  44. package/dist/components/JournalTabs/History/PlayerActionHistory.d.ts +8 -0
  45. package/dist/components/JournalTabs/History/PlayerActionHistory.js +42 -0
  46. package/dist/components/JournalTabs/History/PlayerActionHistory.js.map +1 -0
  47. package/dist/components/JournalTabs/History/PlayerHistoryEntry.d.ts +8 -0
  48. package/dist/components/JournalTabs/History/PlayerHistoryEntry.js +44 -0
  49. package/dist/components/JournalTabs/History/PlayerHistoryEntry.js.map +1 -0
  50. package/dist/components/JournalTabs/History/StartHistory.d.ts +2 -0
  51. package/dist/components/JournalTabs/History/StartHistory.js +30 -0
  52. package/dist/components/JournalTabs/History/StartHistory.js.map +1 -0
  53. package/dist/components/JournalTabs/History/index.d.ts +5 -0
  54. package/dist/components/JournalTabs/History/index.js +22 -0
  55. package/dist/components/JournalTabs/History/index.js.map +1 -0
  56. package/dist/components/JournalTabs/JournalTabs.d.ts +5 -0
  57. package/dist/components/JournalTabs/JournalTabs.js +74 -0
  58. package/dist/components/JournalTabs/JournalTabs.js.map +1 -0
  59. package/dist/components/JournalTabs/index.d.ts +1 -0
  60. package/dist/components/JournalTabs/index.js +18 -0
  61. package/dist/components/JournalTabs/index.js.map +1 -0
  62. package/dist/components/Picture/Picture.js +1 -0
  63. package/dist/components/Picture/Picture.js.map +1 -1
  64. package/dist/components/PlayerPanel/PlayerPanel.d.ts +4 -3
  65. package/dist/components/PlayerPanel/PlayerPanel.js +16 -10
  66. package/dist/components/PlayerPanel/PlayerPanel.js.map +1 -1
  67. package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js +21 -23
  68. package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js.map +1 -1
  69. package/dist/components/dialogs/FailuresDialog.js +3 -3
  70. package/dist/components/dialogs/FailuresDialog.js.map +1 -1
  71. package/dist/components/dialogs/ResultDialog/ResultDialog.js +9 -6
  72. package/dist/components/dialogs/ResultDialog/ResultDialog.js.map +1 -1
  73. package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js +5 -5
  74. package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js.map +1 -1
  75. package/dist/components/dialogs/RulesDialog/RulesDialog.d.ts +1 -1
  76. package/dist/components/dialogs/RulesDialog/RulesDialog.js +1 -1
  77. package/dist/components/dialogs/RulesDialog/RulesDialog.js.map +1 -1
  78. package/dist/components/index.d.ts +1 -0
  79. package/dist/components/index.js +1 -0
  80. package/dist/components/index.js.map +1 -1
  81. package/dist/components/material/Dices/CubicDiceDescription.d.ts +5 -4
  82. package/dist/components/material/Dices/CubicDiceDescription.js +5 -5
  83. package/dist/components/material/Dices/CubicDiceDescription.js.map +1 -1
  84. package/dist/components/material/DraggableMaterial.d.ts +2 -0
  85. package/dist/components/material/DraggableMaterial.js +65 -33
  86. package/dist/components/material/DraggableMaterial.js.map +1 -1
  87. package/dist/components/material/FlatMaterial/FlatMaterial.d.ts +10 -10
  88. package/dist/components/material/FlatMaterial/FlatMaterial.js +19 -19
  89. package/dist/components/material/FlatMaterial/FlatMaterial.js.map +1 -1
  90. package/dist/components/material/GameTable/DraggableStockItem.d.ts +4 -0
  91. package/dist/components/material/GameTable/DraggableStockItem.js +82 -0
  92. package/dist/components/material/GameTable/DraggableStockItem.js.map +1 -0
  93. package/dist/components/material/GameTable/DynamicItemsDisplay.d.ts +4 -0
  94. package/dist/components/material/GameTable/DynamicItemsDisplay.js +72 -0
  95. package/dist/components/material/GameTable/DynamicItemsDisplay.js.map +1 -0
  96. package/dist/components/material/GameTable/FocusableElement.d.ts +13 -0
  97. package/dist/components/material/GameTable/FocusableElement.js +63 -0
  98. package/dist/components/material/GameTable/FocusableElement.js.map +1 -0
  99. package/dist/components/material/GameTable/FocusableLocation.d.ts +8 -0
  100. package/dist/components/material/GameTable/FocusableLocation.js +37 -0
  101. package/dist/components/material/GameTable/FocusableLocation.js.map +1 -0
  102. package/dist/components/material/GameTable/FocusableLocations.d.ts +0 -0
  103. package/dist/components/material/GameTable/FocusableLocations.js +2 -0
  104. package/dist/components/material/GameTable/FocusableLocations.js.map +1 -0
  105. package/dist/components/material/GameTable/GameMaterialDisplay.d.ts +7 -1
  106. package/dist/components/material/GameTable/GameMaterialDisplay.js +16 -133
  107. package/dist/components/material/GameTable/GameMaterialDisplay.js.map +1 -1
  108. package/dist/components/material/GameTable/GameTable.d.ts +2 -0
  109. package/dist/components/material/GameTable/GameTable.js +7 -6
  110. package/dist/components/material/GameTable/GameTable.js.map +1 -1
  111. package/dist/components/material/GameTable/GameTableNavigation.d.ts +5 -1
  112. package/dist/components/material/GameTable/GameTableNavigation.js +18 -6
  113. package/dist/components/material/GameTable/GameTableNavigation.js.map +1 -1
  114. package/dist/components/material/GameTable/ItemDisplay.d.ts +15 -0
  115. package/dist/components/material/GameTable/ItemDisplay.js +51 -0
  116. package/dist/components/material/GameTable/ItemDisplay.js.map +1 -0
  117. package/dist/components/material/GameTable/StaticItemsDisplay.d.ts +4 -0
  118. package/dist/components/material/GameTable/StaticItemsDisplay.js +67 -0
  119. package/dist/components/material/GameTable/StaticItemsDisplay.js.map +1 -0
  120. package/dist/components/material/GameTable/StaticLocationsDisplay.d.ts +4 -0
  121. package/dist/components/material/GameTable/StaticLocationsDisplay.js +35 -0
  122. package/dist/components/material/GameTable/StaticLocationsDisplay.js.map +1 -0
  123. package/dist/components/material/GameTable/focus/FocusProvider.d.ts +10 -0
  124. package/dist/components/material/GameTable/focus/FocusProvider.js +78 -0
  125. package/dist/components/material/GameTable/focus/FocusProvider.js.map +1 -0
  126. package/dist/components/material/GameTable/focus/FocusableElement.d.ts +13 -0
  127. package/dist/components/material/GameTable/focus/FocusableElement.js +63 -0
  128. package/dist/components/material/GameTable/focus/FocusableElement.js.map +1 -0
  129. package/dist/components/material/GameTable/focus/FocusableLocation.d.ts +8 -0
  130. package/dist/components/material/GameTable/focus/FocusableLocation.js +38 -0
  131. package/dist/components/material/GameTable/focus/FocusableLocation.js.map +1 -0
  132. package/dist/components/material/GameTable/focus/LocationsWithFocus.d.ts +8 -0
  133. package/dist/components/material/GameTable/focus/LocationsWithFocus.js +30 -0
  134. package/dist/components/material/GameTable/focus/LocationsWithFocus.js.map +1 -0
  135. package/dist/components/material/GameTable/focus/MaterialFocus.d.ts +20 -0
  136. package/dist/components/material/GameTable/focus/MaterialFocus.js +3 -0
  137. package/dist/components/material/GameTable/focus/MaterialFocus.js.map +1 -0
  138. package/dist/components/material/GameTable/focus/index.d.ts +3 -0
  139. package/dist/components/material/GameTable/focus/index.js +20 -0
  140. package/dist/components/material/GameTable/focus/index.js.map +1 -0
  141. package/dist/components/material/GameTable/index.d.ts +1 -0
  142. package/dist/components/material/GameTable/index.js +1 -0
  143. package/dist/components/material/GameTable/index.js.map +1 -1
  144. package/dist/components/material/GameTable/locations.utils.d.ts +0 -0
  145. package/dist/components/material/GameTable/locations.utils.js +2 -0
  146. package/dist/components/material/GameTable/locations.utils.js.map +1 -0
  147. package/dist/components/material/MaterialComponent.d.ts +2 -2
  148. package/dist/components/material/MaterialComponent.js +7 -7
  149. package/dist/components/material/MaterialComponent.js.map +1 -1
  150. package/dist/components/material/MaterialDescription.d.ts +10 -9
  151. package/dist/components/material/MaterialDescription.js +11 -38
  152. package/dist/components/material/MaterialDescription.js.map +1 -1
  153. package/dist/components/material/MobileMaterialDescription.d.ts +9 -0
  154. package/dist/components/material/MobileMaterialDescription.js +68 -0
  155. package/dist/components/material/MobileMaterialDescription.js.map +1 -0
  156. package/dist/components/material/Writing/WritingDescription.d.ts +5 -5
  157. package/dist/components/material/Writing/WritingDescription.js +15 -15
  158. package/dist/components/material/Writing/WritingDescription.js.map +1 -1
  159. package/dist/components/material/animations/CreateItemAnimations.d.ts +2 -1
  160. package/dist/components/material/animations/CreateItemAnimations.js +10 -3
  161. package/dist/components/material/animations/CreateItemAnimations.js.map +1 -1
  162. package/dist/components/material/animations/MaterialGameAnimations.d.ts +1 -1
  163. package/dist/components/material/animations/MaterialGameAnimations.js +1 -1
  164. package/dist/components/material/animations/MaterialGameAnimations.js.map +1 -1
  165. package/dist/components/material/animations/MoveItemAnimations.js +1 -1
  166. package/dist/components/material/animations/MoveItemAnimations.js.map +1 -1
  167. package/dist/components/material/index.d.ts +1 -0
  168. package/dist/components/material/index.js +1 -0
  169. package/dist/components/material/index.js.map +1 -1
  170. package/dist/components/material/locations/LocationDescription.d.ts +1 -2
  171. package/dist/components/material/locations/LocationDescription.js +1 -4
  172. package/dist/components/material/locations/LocationDescription.js.map +1 -1
  173. package/dist/components/material/locations/LocationsMask.d.ts +1 -1
  174. package/dist/components/material/locations/LocationsMask.js +1 -3
  175. package/dist/components/material/locations/LocationsMask.js.map +1 -1
  176. package/dist/components/material/locations/SimpleDropArea.js +65 -34
  177. package/dist/components/material/locations/SimpleDropArea.js.map +1 -1
  178. package/dist/components/material/utils/useIsAnimatingPlayerAction.js +8 -3
  179. package/dist/components/material/utils/useIsAnimatingPlayerAction.js.map +1 -1
  180. package/dist/components/menus/EjectPlayer/EjectPlayerButton.js +2 -2
  181. package/dist/components/menus/EjectPlayer/EjectPlayerButton.js.map +1 -1
  182. package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js +2 -2
  183. package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js.map +1 -1
  184. package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js +2 -2
  185. package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js.map +1 -1
  186. package/dist/components/menus/Fullscreen/FullscreenButton.js +3 -2
  187. package/dist/components/menus/Fullscreen/FullscreenButton.js.map +1 -1
  188. package/dist/components/menus/Fullscreen/FullscreenDialog.js +2 -2
  189. package/dist/components/menus/Fullscreen/FullscreenDialog.js.map +1 -1
  190. package/dist/components/menus/Fullscreen/FullscreenPopButton.js +3 -2
  191. package/dist/components/menus/Fullscreen/FullscreenPopButton.js.map +1 -1
  192. package/dist/components/menus/Menu/Menu.js +19 -19
  193. package/dist/components/menus/Menu/Menu.js.map +1 -1
  194. package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js +2 -2
  195. package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js.map +1 -1
  196. package/dist/components/menus/SoundButton/SoundButton.js +3 -2
  197. package/dist/components/menus/SoundButton/SoundButton.js.map +1 -1
  198. package/dist/components/menus/TimeStatsButton/TimeStatsButton.js +2 -2
  199. package/dist/components/menus/TimeStatsButton/TimeStatsButton.js.map +1 -1
  200. package/dist/components/menus/UndoButton/UndoButton.js +2 -2
  201. package/dist/components/menus/UndoButton/UndoButton.js.map +1 -1
  202. package/dist/components/menus/UndoButton/UndoPopButton.js +2 -2
  203. package/dist/components/menus/UndoButton/UndoPopButton.js.map +1 -1
  204. package/dist/components/tutorial/FocusableElement.d.ts +0 -0
  205. package/dist/components/tutorial/FocusableElement.js +2 -0
  206. package/dist/components/tutorial/FocusableElement.js.map +1 -0
  207. package/dist/components/tutorial/MaterialTutorial.d.ts +4 -14
  208. package/dist/components/tutorial/MaterialTutorial.js +1 -60
  209. package/dist/components/tutorial/MaterialTutorial.js.map +1 -1
  210. package/dist/components/tutorial/MaterialTutorialDisplay.js +39 -24
  211. package/dist/components/tutorial/MaterialTutorialDisplay.js.map +1 -1
  212. package/dist/components/tutorial/TutorialRulesWrapper.js +25 -5
  213. package/dist/components/tutorial/TutorialRulesWrapper.js.map +1 -1
  214. package/dist/css/GameTheme.d.ts +4 -0
  215. package/dist/css/GameTheme.js +3 -0
  216. package/dist/css/GameTheme.js.map +1 -1
  217. package/dist/hooks/useHistory.d.ts +6 -0
  218. package/dist/hooks/useHistory.js +82 -0
  219. package/dist/hooks/useHistory.js.map +1 -0
  220. package/dist/hooks/useLegalMoves.js +5 -3
  221. package/dist/hooks/useLegalMoves.js.map +1 -1
  222. package/dist/hooks/useRankedPlayers.js.map +1 -1
  223. package/dist/hooks/useZoomToElements.d.ts +9 -1
  224. package/dist/hooks/useZoomToElements.js +20 -17
  225. package/dist/hooks/useZoomToElements.js.map +1 -1
  226. package/dist/locators/ItemLocator.d.ts +1 -1
  227. package/dist/locators/ItemLocator.js +3 -3
  228. package/dist/locators/ItemLocator.js.map +1 -1
  229. package/dist/utilities/findIfUnique.util.d.ts +1 -0
  230. package/dist/utilities/findIfUnique.util.js +17 -0
  231. package/dist/utilities/findIfUnique.util.js.map +1 -0
  232. package/dist/utilities/index.d.ts +1 -0
  233. package/dist/utilities/index.js +1 -0
  234. package/dist/utilities/index.js.map +1 -1
  235. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"ItemLocator.js","sourceRoot":"","sources":["../../src/locators/ItemLocator.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAA8I;AAC9I,oEAAmC;AACnC,uDAAgC;AAChC,4CAA8E;AAE9E;IAAA;QAIE,iBAAY,GAAW,KAAK,CAAA;QAiD5B,aAAQ,GAAkB,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAA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GAAG,IAAI,WAAW,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ export declare function findIfUnique<T>(collection: ArrayLike<T>, predicate: (value: T, index: number, collection: ArrayLike<T>) => boolean): T | undefined;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findIfUnique = void 0;
4
+ function findIfUnique(collection, predicate) {
5
+ var result = undefined;
6
+ for (var i = 0; i < collection.length; i++) {
7
+ var t = collection[i];
8
+ if (predicate(t, i, collection)) {
9
+ if (result !== undefined)
10
+ return undefined;
11
+ result = t;
12
+ }
13
+ }
14
+ return result;
15
+ }
16
+ exports.findIfUnique = findIfUnique;
17
+ //# sourceMappingURL=findIfUnique.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findIfUnique.util.js","sourceRoot":"","sources":["../../src/utilities/findIfUnique.util.ts"],"names":[],"mappings":";;;AAAA,SAAgB,YAAY,CAAI,UAAwB,EAAE,SAAyE;IACjI,IAAI,MAAM,GAAG,SAAS,CAAA;IACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAC1C,IAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAA;QACvB,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE;YAC/B,IAAI,MAAM,KAAK,SAAS;gBAAE,OAAO,SAAS,CAAA;YAC1C,MAAM,GAAG,CAAC,CAAA;SACX;KACF;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAVD,oCAUC"}
@@ -1,2 +1,3 @@
1
1
  export * from './combineEventListeners';
2
2
  export * from './DeepPartial';
3
+ export * from './findIfUnique.util';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./combineEventListeners"), exports);
18
18
  __exportStar(require("./DeepPartial"), exports);
19
+ __exportStar(require("./findIfUnique.util"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,gDAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,gDAA6B;AAC7B,sDAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamepark/react-game",
3
- "version": "6.16.0",
3
+ "version": "6.17.2",
4
4
  "description": "React components & tools to create a Board Game user interface for Game Park",
5
5
  "author": "Romain Fromi <romain@game-park.com> (https://game-park.com/)",
6
6
  "license": "ISC",
@@ -27,8 +27,8 @@
27
27
  "@fortawesome/free-solid-svg-icons": "^6.4.0",
28
28
  "@fortawesome/react-fontawesome": "^0.2.0",
29
29
  "@gamepark/avataaars": "^2.2.0",
30
- "@gamepark/react-client": "^6.16.0",
31
- "@gamepark/rules-api": "^6.16.0",
30
+ "@gamepark/react-client": "^6.17.2",
31
+ "@gamepark/rules-api": "^6.17.2",
32
32
  "dayjs": "^1.11.7",
33
33
  "emotion-normalize": "^11.0.1",
34
34
  "fscreen": "^1.2.0",