@gamepark/react-game 7.3.0 → 7.4.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 (101) hide show
  1. package/dist/components/GameProvider/GameProvider.js +1 -3
  2. package/dist/components/GameProvider/GameProvider.js.map +1 -1
  3. package/dist/components/Header/HeaderText.d.ts +6 -1
  4. package/dist/components/Header/HeaderText.js +14 -5
  5. package/dist/components/Header/HeaderText.js.map +1 -1
  6. package/dist/components/JournalTabs/JournalTabs.js +1 -1
  7. package/dist/components/JournalTabs/JournalTabs.js.map +1 -1
  8. package/dist/components/LoadingScreen/LoadingScreen.js +5 -0
  9. package/dist/components/LoadingScreen/LoadingScreen.js.map +1 -1
  10. package/dist/components/material/DraggableMaterial.d.ts +12 -2
  11. package/dist/components/material/DraggableMaterial.js +50 -57
  12. package/dist/components/material/DraggableMaterial.js.map +1 -1
  13. package/dist/components/material/GameTable/DynamicItemsDisplay.js +52 -8
  14. package/dist/components/material/GameTable/DynamicItemsDisplay.js.map +1 -1
  15. package/dist/components/material/GameTable/GameMaterialDisplay.js +5 -2
  16. package/dist/components/material/GameTable/GameMaterialDisplay.js.map +1 -1
  17. package/dist/components/material/GameTable/GameTable.d.ts +1 -0
  18. package/dist/components/material/GameTable/GameTable.js +49 -18
  19. package/dist/components/material/GameTable/GameTable.js.map +1 -1
  20. package/dist/components/material/GameTable/GameTableNavigation.js +7 -0
  21. package/dist/components/material/GameTable/GameTableNavigation.js.map +1 -1
  22. package/dist/components/material/GameTable/ItemDisplay.js +4 -4
  23. package/dist/components/material/GameTable/ItemDisplay.js.map +1 -1
  24. package/dist/components/material/GameTable/StaticItemsDisplay.js +21 -6
  25. package/dist/components/material/GameTable/StaticItemsDisplay.js.map +1 -1
  26. package/dist/components/material/GameTable/focus/FocusProvider.js +11 -5
  27. package/dist/components/material/GameTable/focus/FocusProvider.js.map +1 -1
  28. package/dist/components/material/GameTable/focus/NoZoomFocusProvider.js +2 -2
  29. package/dist/components/material/GameTable/focus/NoZoomFocusProvider.js.map +1 -1
  30. package/dist/components/material/GameTable/focus/index.d.ts +1 -0
  31. package/dist/components/material/GameTable/focus/index.js +1 -0
  32. package/dist/components/material/GameTable/focus/index.js.map +1 -1
  33. package/dist/components/material/GameTable/index.d.ts +2 -0
  34. package/dist/components/material/GameTable/index.js +2 -0
  35. package/dist/components/material/GameTable/index.js.map +1 -1
  36. package/dist/components/material/MaterialDescription.d.ts +9 -1
  37. package/dist/components/material/MaterialDescription.js +20 -13
  38. package/dist/components/material/MaterialDescription.js.map +1 -1
  39. package/dist/components/material/animations/AnimationBuilder.d.ts +160 -0
  40. package/dist/components/material/animations/AnimationBuilder.js +287 -0
  41. package/dist/components/material/animations/AnimationBuilder.js.map +1 -0
  42. package/dist/components/material/animations/CreateItemAnimations.d.ts +4 -2
  43. package/dist/components/material/animations/CreateItemAnimations.js +80 -10
  44. package/dist/components/material/animations/CreateItemAnimations.js.map +1 -1
  45. package/dist/components/material/animations/DeleteItemAnimations.d.ts +3 -1
  46. package/dist/components/material/animations/DeleteItemAnimations.js +16 -4
  47. package/dist/components/material/animations/DeleteItemAnimations.js.map +1 -1
  48. package/dist/components/material/animations/DeleteItemAtOnceAnimations.d.ts +3 -1
  49. package/dist/components/material/animations/DeleteItemAtOnceAnimations.js +16 -4
  50. package/dist/components/material/animations/DeleteItemAtOnceAnimations.js.map +1 -1
  51. package/dist/components/material/animations/ItemAnimations.d.ts +35 -1
  52. package/dist/components/material/animations/ItemAnimations.js +143 -1
  53. package/dist/components/material/animations/ItemAnimations.js.map +1 -1
  54. package/dist/components/material/animations/MaterialAnimations.d.ts +2 -1
  55. package/dist/components/material/animations/MaterialAnimations.js +6 -6
  56. package/dist/components/material/animations/MaterialAnimations.js.map +1 -1
  57. package/dist/components/material/animations/MaterialGameAnimations.d.ts +94 -1
  58. package/dist/components/material/animations/MaterialGameAnimations.js +150 -2
  59. package/dist/components/material/animations/MaterialGameAnimations.js.map +1 -1
  60. package/dist/components/material/animations/MoveItemAnimations.d.ts +3 -1
  61. package/dist/components/material/animations/MoveItemAnimations.js +29 -5
  62. package/dist/components/material/animations/MoveItemAnimations.js.map +1 -1
  63. package/dist/components/material/animations/MoveItemAtOnceAnimations.d.ts +5 -2
  64. package/dist/components/material/animations/MoveItemAtOnceAnimations.js +45 -3
  65. package/dist/components/material/animations/MoveItemAtOnceAnimations.js.map +1 -1
  66. package/dist/components/material/animations/Trajectory.d.ts +132 -0
  67. package/dist/components/material/animations/Trajectory.js +87 -0
  68. package/dist/components/material/animations/Trajectory.js.map +1 -0
  69. package/dist/components/material/animations/index.d.ts +3 -0
  70. package/dist/components/material/animations/index.js +3 -0
  71. package/dist/components/material/animations/index.js.map +1 -1
  72. package/dist/hooks/index.d.ts +1 -0
  73. package/dist/hooks/index.js +1 -0
  74. package/dist/hooks/index.js.map +1 -1
  75. package/dist/hooks/useLegalMoves.js +2 -1
  76. package/dist/hooks/useLegalMoves.js.map +1 -1
  77. package/dist/hooks/useMaterialContextRef.d.ts +10 -0
  78. package/dist/hooks/useMaterialContextRef.js +12 -0
  79. package/dist/hooks/useMaterialContextRef.js.map +1 -0
  80. package/dist/hooks/usePlayerName.js +1 -1
  81. package/dist/hooks/usePlayerName.js.map +1 -1
  82. package/dist/hooks/useUndo.js +12 -3
  83. package/dist/hooks/useUndo.js.map +1 -1
  84. package/dist/locators/DeckLocator.d.ts +3 -1
  85. package/dist/locators/DeckLocator.js +6 -0
  86. package/dist/locators/DeckLocator.js.map +1 -1
  87. package/dist/locators/HandLocator.d.ts +1 -0
  88. package/dist/locators/HandLocator.js +3 -0
  89. package/dist/locators/HandLocator.js.map +1 -1
  90. package/dist/locators/ListLocator.d.ts +1 -0
  91. package/dist/locators/ListLocator.js +3 -0
  92. package/dist/locators/ListLocator.js.map +1 -1
  93. package/dist/locators/Locator.d.ts +39 -0
  94. package/dist/locators/Locator.js +74 -1
  95. package/dist/locators/Locator.js.map +1 -1
  96. package/dist/locators/PileLocator.d.ts +1 -0
  97. package/dist/locators/PileLocator.js +3 -0
  98. package/dist/locators/PileLocator.js.map +1 -1
  99. package/dist/utilities/translation.util.js +1 -1
  100. package/dist/utilities/translation.util.js.map +1 -1
  101. package/package.json +79 -77
package/package.json CHANGED
@@ -1,77 +1,79 @@
1
- {
2
- "name": "@gamepark/react-game",
3
- "version": "7.3.0",
4
- "type": "module",
5
- "description": "React components & tools to create a Board Game user interface for Game Park",
6
- "author": "Romain Fromi <romain@game-park.com> (https://game-park.com/)",
7
- "license": "ISC",
8
- "main": "dist/index.js",
9
- "types": "dist/index.d.ts",
10
- "files": [
11
- "dist"
12
- ],
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
- "scripts": {
17
- "build": "tsc",
18
- "prepack": "yarn build",
19
- "linkgp": "yarn link ../rules-api ../react-client -r",
20
- "unlinkgp": "yarn unlink ../react-client ../rules-api"
21
- },
22
- "dependencies": {
23
- "@datadog/browser-logs": "^6.19.0",
24
- "@dnd-kit/modifiers": "^9.0.0",
25
- "@gamepark/avataaars": "~3.0.0",
26
- "@gamepark/react-client": "~7.3.1",
27
- "dayjs": "^1.11.18",
28
- "fscreen": "^1.2.0",
29
- "i18next-http-backend": "^3.0.2",
30
- "i18next-icu": "^2.4.0",
31
- "immer": "^10.1.3",
32
- "intl-messageformat": "^10.7.16",
33
- "nosleep.js": "^0.12.0",
34
- "o9n": "^2.1.1",
35
- "react-infinite-scroll-component": "^6.1.0",
36
- "react-merge-refs": "^3.0.2",
37
- "react-zoom-pan-pinch": "3.7.0",
38
- "rxjs": "^7.8.2",
39
- "use-long-press": "^3.3.0"
40
- },
41
- "devDependencies": {
42
- "@dnd-kit/core": "^6.3.1",
43
- "@emotion/react": "^11.14.0",
44
- "@fortawesome/fontawesome-svg-core": "^7.0.1",
45
- "@fortawesome/free-regular-svg-icons": "^7.0.1",
46
- "@fortawesome/free-solid-svg-icons": "^7.0.1",
47
- "@fortawesome/react-fontawesome": "^3.0.2",
48
- "@gamepark/rules-api": "^7.2.0",
49
- "@types/fscreen": "^1.0.4",
50
- "@types/node": "^24.5.0",
51
- "@types/react": "^19.1.13",
52
- "@types/react-dom": "^19.1.9",
53
- "es-toolkit": "^1.39.10",
54
- "i18next": "^25.5.2",
55
- "react": "^19.1.1",
56
- "react-dom": "^19.1.1",
57
- "react-i18next": "^15.7.3",
58
- "react-redux": "^9.2.0",
59
- "typescript": "^5.9.2"
60
- },
61
- "peerDependencies": {
62
- "@dnd-kit/core": "^6.3.1",
63
- "@emotion/react": "^11.14.0",
64
- "@fortawesome/fontawesome-svg-core": "^7.0.1",
65
- "@fortawesome/free-regular-svg-icons": "^7.0.1",
66
- "@fortawesome/free-solid-svg-icons": "^7.0.1",
67
- "@fortawesome/react-fontawesome": "^3.0.2",
68
- "@gamepark/rules-api": "^7.2.0",
69
- "es-toolkit": "^1.39.10",
70
- "i18next": "^25.5.2",
71
- "react": "^19.1.1",
72
- "react-dom": "^19.1.1",
73
- "react-i18next": "^15.7.3",
74
- "react-redux": "^9.2.0"
75
- },
76
- "packageManager": "yarn@4.9.4"
77
- }
1
+ {
2
+ "name": "@gamepark/react-game",
3
+ "version": "7.4.0",
4
+ "type": "module",
5
+ "description": "React components & tools to create a Board Game user interface for Game Park",
6
+ "author": "Romain Fromi <romain@game-park.com> (https://game-park.com/)",
7
+ "license": "ISC",
8
+ "main": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "prepack": "yarn build",
19
+ "linkgp": "yarn link ../rules-api ../react-client -r && git update-index --skip-worktree package.json yarn.lock",
20
+ "unlinkgp": "git update-index --no-skip-worktree package.json yarn.lock && yarn unlink ../react-client ../rules-api",
21
+ "publish": "npm version ${0:-patch} && yarn npm publish && git push && git push --tags"
22
+ },
23
+ "dependencies": {
24
+ "@datadog/browser-logs": "^6.28.1",
25
+ "@dnd-kit/modifiers": "^9.0.0",
26
+ "@gamepark/api-types": "^1.0.0",
27
+ "@gamepark/avataaars": "^3.0.0",
28
+ "@gamepark/react-client": "^7.4.0",
29
+ "dayjs": "^1.11.19",
30
+ "fscreen": "^1.2.0",
31
+ "i18next-http-backend": "^3.0.2",
32
+ "i18next-icu": "^2.4.3",
33
+ "immer": "^11.1.4",
34
+ "intl-messageformat": "^11.1.2",
35
+ "nosleep.js": "^0.12.0",
36
+ "o9n": "^2.1.1",
37
+ "react-infinite-scroll-component": "^6.1.1",
38
+ "react-merge-refs": "^3.0.2",
39
+ "react-zoom-pan-pinch": "^3.7.0",
40
+ "rxjs": "^7.8.2",
41
+ "use-long-press": "^3.3.0"
42
+ },
43
+ "devDependencies": {
44
+ "@dnd-kit/core": "^6.3.1",
45
+ "@emotion/react": "^11.14.0",
46
+ "@fortawesome/fontawesome-svg-core": "^7.2.0",
47
+ "@fortawesome/free-regular-svg-icons": "^7.2.0",
48
+ "@fortawesome/free-solid-svg-icons": "^7.2.0",
49
+ "@fortawesome/react-fontawesome": "^3.2.0",
50
+ "@gamepark/rules-api": "^7.4.0",
51
+ "@types/fscreen": "^1.0.4",
52
+ "@types/node": "^25.3.1",
53
+ "@types/react": "^19.2.14",
54
+ "@types/react-dom": "^19.2.3",
55
+ "es-toolkit": "^1.44.0",
56
+ "i18next": "^25.8.13",
57
+ "react": "^19.2.4",
58
+ "react-dom": "^19.2.4",
59
+ "react-i18next": "^16.5.4",
60
+ "react-redux": "^9.2.0",
61
+ "typescript": "^5.9.3"
62
+ },
63
+ "peerDependencies": {
64
+ "@dnd-kit/core": "6.x",
65
+ "@emotion/react": "11.x",
66
+ "@fortawesome/fontawesome-svg-core": "7.x",
67
+ "@fortawesome/free-regular-svg-icons": "7.x",
68
+ "@fortawesome/free-solid-svg-icons": "7.x",
69
+ "@fortawesome/react-fontawesome": "3.x",
70
+ "@gamepark/rules-api": "7.x",
71
+ "es-toolkit": "1.x",
72
+ "i18next": "25.x",
73
+ "react": "19.x",
74
+ "react-dom": "19.x",
75
+ "react-i18next": "16.x",
76
+ "react-redux": "9.x"
77
+ },
78
+ "packageManager": "yarn@4.9.4"
79
+ }