@jeremyckahn/farmhand 1.23.4 → 1.24.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 (85) hide show
  1. package/README.md +1 -0
  2. package/dist/assets/index-BZUcLFKn.js +413 -0
  3. package/dist/assets/index-BZUcLFKn.js.map +1 -0
  4. package/dist/index.html +1 -1
  5. package/dist/service-worker.js +1 -1
  6. package/dist/service-worker.js.map +1 -1
  7. package/package.json +8 -7
  8. package/src/components/AccountingView/AccountingView.tsx +28 -22
  9. package/src/components/AchievementsView/AchievementsView.tsx +1 -1
  10. package/src/components/Cellar/CellarInventoryTabPanel.tsx +4 -5
  11. package/src/components/Cellar/FermentationTabPanel.tsx +4 -5
  12. package/src/components/Cellar/WinemakingTabPanel.tsx +4 -5
  13. package/src/components/ContextPane/ContextPane.test.tsx +15 -0
  14. package/src/components/ContextPane/ContextPane.tsx +3 -0
  15. package/src/components/CowCard/Bloodline/Bloodline.tsx +1 -1
  16. package/src/components/CowPen/Cow.tsx +1 -1
  17. package/src/components/CowPen/CowPen.test.tsx +9 -5
  18. package/src/components/CowPen/CowPen.tsx +1 -1
  19. package/src/components/CowPenContextMenu/CowPenContextMenu.tsx +1 -1
  20. package/src/components/Elements/index.ts +1 -0
  21. package/src/components/Farmhand/Farmhand.context.tsx +10 -0
  22. package/src/components/Farmhand/Farmhand.tsx +48 -32
  23. package/src/components/Farmhand/FarmhandReducers.tsx +12 -0
  24. package/src/components/Farmhand/useFarmhand.test.ts +13 -6
  25. package/src/components/Farmhand/useFarmhand.ts +34 -2
  26. package/src/components/FarmhandShuffleContextMenu/FarmhandShuffleContextMenu.test.tsx +131 -0
  27. package/src/components/FarmhandShuffleContextMenu/FarmhandShuffleContextMenu.tsx +122 -0
  28. package/src/components/FarmhandShuffleContextMenu/index.ts +1 -0
  29. package/src/components/FarmhandShuffleView/FarmhandShuffleView.test.tsx +429 -0
  30. package/src/components/FarmhandShuffleView/FarmhandShuffleView.tsx +511 -0
  31. package/src/components/FarmhandShuffleView/index.ts +1 -0
  32. package/src/components/Field/Field.tsx +17 -12
  33. package/src/components/Home/Home.tsx +19 -34
  34. package/src/components/IngredientsList/IngredientsList.tsx +1 -1
  35. package/src/components/Inventory/Inventory.test.tsx +7 -2
  36. package/src/components/ItemList/ItemList.tsx +1 -1
  37. package/src/components/KeybindingsView/KeybindingsView.tsx +2 -2
  38. package/src/components/LogView/LogView.tsx +8 -6
  39. package/src/components/Markdown/Markdown.tsx +17 -0
  40. package/src/components/Markdown/index.ts +1 -0
  41. package/src/components/Navigation/Navigation.tsx +2 -2
  42. package/src/components/NotificationSystem/NotificationSystem.test.tsx +8 -4
  43. package/src/components/NotificationSystem/NotificationSystem.tsx +53 -12
  44. package/src/components/OnlinePeersView/OnlinePeersView.tsx +9 -5
  45. package/src/components/PriceEventView/PriceEventView.tsx +2 -2
  46. package/src/components/QuantityInput/QuantityInput.tsx +22 -25
  47. package/src/components/SettingsView/SettingsView.test.tsx +26 -0
  48. package/src/components/SettingsView/SettingsView.tsx +34 -15
  49. package/src/components/Stage/Stage.test.tsx +12 -0
  50. package/src/components/Stage/Stage.tsx +36 -1
  51. package/src/components/StatsView/StatsView.tsx +1 -1
  52. package/src/components/Toolbelt/Toolbelt.tsx +11 -14
  53. package/src/components/Workshop/ForgeTabPanel.tsx +4 -5
  54. package/src/components/Workshop/KitchenTabPanel.tsx +4 -5
  55. package/src/components/Workshop/RecyclingTabPanel.tsx +4 -5
  56. package/src/components/Workshop/WoodChipperTabPanel.tsx +4 -5
  57. package/src/constants.ts +13 -1
  58. package/src/data/achievements.test.ts +88 -0
  59. package/src/data/achievements.ts +54 -0
  60. package/src/data/levels.ts +4 -0
  61. package/src/enums.ts +1 -0
  62. package/src/farmhand.d.ts +43 -1
  63. package/src/game-logic/item-sell.test.ts +3 -3
  64. package/src/game-logic/reducers/index.ts +4 -0
  65. package/src/game-logic/reducers/placeFarmhandShuffleWager.test.ts +95 -0
  66. package/src/game-logic/reducers/placeFarmhandShuffleWager.ts +39 -0
  67. package/src/game-logic/reducers/refundUnresumableFarmhandShuffleMatch.test.ts +47 -0
  68. package/src/game-logic/reducers/refundUnresumableFarmhandShuffleMatch.ts +39 -0
  69. package/src/game-logic/reducers/saveFarmhandShuffleMatch.test.ts +41 -0
  70. package/src/game-logic/reducers/saveFarmhandShuffleMatch.ts +21 -0
  71. package/src/game-logic/reducers/settleFarmhandShuffleMatch.test.ts +144 -0
  72. package/src/game-logic/reducers/settleFarmhandShuffleMatch.ts +71 -0
  73. package/src/handlers/ui-events.tsx +30 -0
  74. package/src/img/ui/hay-bg.piskel +1 -0
  75. package/src/img/ui/hay-bg.png +0 -0
  76. package/src/index.tsx +6 -4
  77. package/src/shell/bootup.test.ts +37 -25
  78. package/src/shell/notifications.test.ts +26 -12
  79. package/src/test-utils/index.ts +10 -0
  80. package/src/utils/getValidatedStageFocusFromHash.test.ts +23 -1
  81. package/src/utils/getValidatedStageFocusFromHash.ts +7 -2
  82. package/src/utils/getViewList.test.ts +38 -2
  83. package/src/utils/getViewList.ts +14 -1
  84. package/dist/assets/index-4ynbl-GC.js +0 -392
  85. package/dist/assets/index-4ynbl-GC.js.map +0 -1
package/README.md CHANGED
@@ -58,6 +58,7 @@ Farmhand uses a [SemVer](https://semver.org/)-like versioning system. It differs
58
58
 
59
59
  - This project uses [Vite](https://vitejs.dev/), so please refer to the documentation of that project to learn about the development toolchain.
60
60
  - Farmhand uses [Piskel](https://www.piskelapp.com/) for the art assets.
61
+ - The Farmhand Shuffle minigame lives in a separate repository and is embedded here. See [the Farmhand Shuffle guide](doc/farmhand-shuffle.md) for local setup, making changes, and deployment.
61
62
 
62
63
  ## Debugging
63
64