@gamepark/react-game 6.38.4 → 7.0.0-beta.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.
- package/dist/components/Avatar/Avatar.d.ts +6 -6
- package/dist/components/Avatar/Avatar.js +63 -63
- package/dist/components/Avatar/ChatSpeechBubble.d.ts +8 -8
- package/dist/components/Avatar/ChatSpeechBubble.js +80 -77
- package/dist/components/Avatar/ChatSpeechBubble.js.map +1 -1
- package/dist/components/Avatar/SpeechBubble.d.ts +15 -15
- package/dist/components/Avatar/SpeechBubble.js +72 -72
- package/dist/components/Avatar/SpeechBubble.js.map +1 -1
- package/dist/components/Avatar/index.d.ts +3 -3
- package/dist/components/Avatar/index.js +19 -19
- package/dist/components/GamePoints/GamePointIcon.d.ts +2 -2
- package/dist/components/GamePoints/GamePointIcon.js +25 -25
- package/dist/components/GamePoints/GamePoints.d.ts +8 -8
- package/dist/components/GamePoints/GamePoints.js +73 -73
- package/dist/components/GamePoints/GamePoints.js.map +1 -1
- package/dist/components/GamePoints/index.d.ts +2 -2
- package/dist/components/GamePoints/index.js +18 -18
- package/dist/components/GameProvider/GameContext.d.ts +28 -28
- package/dist/components/GameProvider/GameContext.js +19 -19
- package/dist/components/GameProvider/GameContext.js.map +1 -1
- package/dist/components/GameProvider/GameProvider.d.ts +9 -9
- package/dist/components/GameProvider/GameProvider.js +151 -151
- package/dist/components/GameProvider/GameProvider.js.map +1 -1
- package/dist/components/GameProvider/index.d.ts +2 -2
- package/dist/components/GameProvider/index.js +18 -18
- package/dist/components/Header/Header.d.ts +7 -7
- package/dist/components/Header/Header.js +44 -44
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderText.d.ts +11 -11
- package/dist/components/Header/HeaderText.js +39 -39
- package/dist/components/Header/HeaderText.js.map +1 -1
- package/dist/components/Header/MaterialHeader.d.ts +11 -11
- package/dist/components/Header/MaterialHeader.js +112 -112
- package/dist/components/Header/MaterialHeader.js.map +1 -1
- package/dist/components/Header/index.d.ts +3 -3
- package/dist/components/Header/index.js +19 -19
- package/dist/components/ImagesLoader/ImagesLoader.d.ts +5 -5
- package/dist/components/ImagesLoader/ImagesLoader.js +26 -26
- package/dist/components/ImagesLoader/ImagesLoader.js.map +1 -1
- package/dist/components/ImagesLoader/index.d.ts +1 -1
- package/dist/components/ImagesLoader/index.js +17 -17
- package/dist/components/JournalTabs/Chat/Chat.d.ts +8 -8
- package/dist/components/JournalTabs/Chat/Chat.js +36 -36
- package/dist/components/JournalTabs/Chat/Chat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatMessage.d.ts +7 -7
- package/dist/components/JournalTabs/Chat/ChatMessage.js +18 -29
- package/dist/components/JournalTabs/Chat/ChatMessage.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatMessageAuthor.d.ts +3 -3
- package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js +37 -37
- package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatTextInput.d.ts +19 -19
- package/dist/components/JournalTabs/Chat/ChatTextInput.js +76 -87
- package/dist/components/JournalTabs/Chat/ChatTextInput.js.map +1 -1
- package/dist/components/JournalTabs/Chat/CommonChat.d.ts +13 -12
- package/dist/components/JournalTabs/Chat/CommonChat.js +57 -58
- package/dist/components/JournalTabs/Chat/CommonChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/LocalChat.d.ts +6 -6
- package/dist/components/JournalTabs/Chat/LocalChat.js +64 -64
- package/dist/components/JournalTabs/Chat/RemoteChat.d.ts +7 -7
- package/dist/components/JournalTabs/Chat/RemoteChat.js +45 -45
- package/dist/components/JournalTabs/Chat/SignInToChat.d.ts +1 -1
- package/dist/components/JournalTabs/Chat/SignInToChat.js +24 -35
- package/dist/components/JournalTabs/Chat/SignInToChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/index.d.ts +5 -5
- package/dist/components/JournalTabs/Chat/index.js +21 -21
- package/dist/components/JournalTabs/History/GameOverHistory.d.ts +1 -1
- package/dist/components/JournalTabs/History/GameOverHistory.js +24 -35
- package/dist/components/JournalTabs/History/GameOverHistory.js.map +1 -1
- package/dist/components/JournalTabs/History/History.d.ts +7 -7
- package/dist/components/JournalTabs/History/History.js +62 -62
- package/dist/components/JournalTabs/History/History.js.map +1 -1
- package/dist/components/JournalTabs/History/HistoryEntry.d.ts +9 -9
- package/dist/components/JournalTabs/History/HistoryEntry.js +45 -45
- package/dist/components/JournalTabs/History/HistoryEntry.js.map +1 -1
- package/dist/components/JournalTabs/History/StartGameHistory.d.ts +2 -2
- package/dist/components/JournalTabs/History/StartGameHistory.js +19 -30
- package/dist/components/JournalTabs/History/StartGameHistory.js.map +1 -1
- package/dist/components/JournalTabs/History/index.d.ts +2 -2
- package/dist/components/JournalTabs/History/index.js +18 -18
- package/dist/components/JournalTabs/JournalTabs.d.ts +6 -6
- package/dist/components/JournalTabs/JournalTabs.js +82 -93
- package/dist/components/JournalTabs/JournalTabs.js.map +1 -1
- package/dist/components/JournalTabs/index.d.ts +1 -1
- package/dist/components/JournalTabs/index.js +17 -17
- package/dist/components/Letterbox/Letterbox.d.ts +8 -8
- package/dist/components/Letterbox/Letterbox.js +42 -42
- package/dist/components/Letterbox/Letterbox.js.map +1 -1
- package/dist/components/Letterbox/index.d.ts +1 -1
- package/dist/components/Letterbox/index.js +17 -17
- package/dist/components/LoadingScreen/LoadingScreen.d.ts +12 -12
- package/dist/components/LoadingScreen/LoadingScreen.js +102 -102
- package/dist/components/LoadingScreen/LoadingScreen.js.map +1 -1
- package/dist/components/LoadingScreen/index.d.ts +1 -1
- package/dist/components/LoadingScreen/index.js +17 -17
- package/dist/components/Log/InternalLiveLogContainer.d.ts +6 -6
- package/dist/components/Log/InternalLiveLogContainer.js +117 -117
- package/dist/components/Log/InternalLiveLogContainer.js.map +1 -1
- package/dist/components/Log/LiveLogButton.d.ts +1 -1
- package/dist/components/Log/LiveLogButton.js +23 -34
- package/dist/components/Log/LiveLogButton.js.map +1 -1
- package/dist/components/Log/LiveLogContainer.d.ts +3 -3
- package/dist/components/Log/LiveLogContainer.js +25 -25
- package/dist/components/Log/LogDescription.d.ts +24 -24
- package/dist/components/Log/LogDescription.js +2 -2
- package/dist/components/Log/LogItem.d.ts +11 -11
- package/dist/components/Log/LogItem.js +44 -44
- package/dist/components/Log/LogItem.js.map +1 -1
- package/dist/components/Log/index.d.ts +3 -3
- package/dist/components/Log/index.js +19 -19
- package/dist/components/Picture/Picture.d.ts +8 -8
- package/dist/components/Picture/Picture.js +34 -34
- package/dist/components/Picture/index.d.ts +1 -1
- package/dist/components/Picture/index.js +17 -17
- package/dist/components/PlayerPanel/Counters.d.ts +14 -14
- package/dist/components/PlayerPanel/Counters.js +50 -44
- package/dist/components/PlayerPanel/Counters.js.map +1 -1
- package/dist/components/PlayerPanel/PlayerPanel.d.ts +8 -8
- package/dist/components/PlayerPanel/PlayerPanel.js +55 -55
- package/dist/components/PlayerPanel/PlayerPanel.js.map +1 -1
- package/dist/components/PlayerPanel/StyledPlayerPanel.d.ts +24 -24
- package/dist/components/PlayerPanel/StyledPlayerPanel.js +93 -117
- package/dist/components/PlayerPanel/StyledPlayerPanel.js.map +1 -1
- package/dist/components/PlayerPanel/index.d.ts +3 -3
- package/dist/components/PlayerPanel/index.js +19 -19
- package/dist/components/PlayerTimer/PlayerTimer.d.ts +13 -13
- package/dist/components/PlayerTimer/PlayerTimer.js +73 -73
- package/dist/components/PlayerTimer/PlayerTimer.js.map +1 -1
- package/dist/components/PlayerTimer/index.d.ts +1 -1
- package/dist/components/PlayerTimer/index.js +17 -17
- package/dist/components/Scoring/ScoringDescription.d.ts +8 -8
- package/dist/components/Scoring/ScoringDescription.js +2 -2
- package/dist/components/Scoring/index.d.ts +1 -1
- package/dist/components/Scoring/index.js +17 -17
- package/dist/components/buttons/PlayMoveButton/PlayMoveButton.d.ts +14 -14
- package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js +137 -137
- package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js.map +1 -1
- package/dist/components/buttons/PlayMoveButton/index.d.ts +1 -1
- package/dist/components/buttons/PlayMoveButton/index.js +17 -17
- package/dist/components/buttons/ThemeButton/ThemeButton.d.ts +3 -3
- package/dist/components/buttons/ThemeButton/ThemeButton.js +21 -21
- package/dist/components/buttons/ThemeButton/index.d.ts +1 -1
- package/dist/components/buttons/ThemeButton/index.js +17 -17
- package/dist/components/buttons/UndoMovesButton/UndoMovesButton.d.ts +7 -7
- package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js +72 -72
- package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js.map +1 -1
- package/dist/components/buttons/UndoMovesButton/index.d.ts +1 -1
- package/dist/components/buttons/UndoMovesButton/index.js +17 -17
- package/dist/components/buttons/index.d.ts +3 -3
- package/dist/components/buttons/index.js +19 -19
- package/dist/components/dialogs/Dialog.d.ts +11 -11
- package/dist/components/dialogs/Dialog.js +84 -84
- package/dist/components/dialogs/Dialog.js.map +1 -1
- package/dist/components/dialogs/FailuresDialog.d.ts +2 -2
- package/dist/components/dialogs/FailuresDialog.js +84 -84
- package/dist/components/dialogs/FailuresDialog.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/RematchDisplay.d.ts +6 -6
- package/dist/components/dialogs/ResultDialog/RematchDisplay.js +65 -73
- package/dist/components/dialogs/ResultDialog/RematchDisplay.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/RematchSection.d.ts +5 -5
- package/dist/components/dialogs/ResultDialog/RematchSection.js +30 -41
- package/dist/components/dialogs/ResultDialog/RematchSection.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/ResultDialog.d.ts +7 -7
- package/dist/components/dialogs/ResultDialog/ResultDialog.js +103 -103
- package/dist/components/dialogs/ResultDialog/ResultDialog.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/index.d.ts +2 -2
- package/dist/components/dialogs/ResultDialog/index.js +18 -18
- package/dist/components/dialogs/ResultDialog/useScoringTable.d.ts +2 -2
- package/dist/components/dialogs/ResultDialog/useScoringTable.js +42 -42
- package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.d.ts +5 -5
- package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js +35 -44
- package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.d.ts +3 -3
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js +39 -39
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.d.ts +5 -5
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js +139 -139
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/RulesDialog.d.ts +6 -6
- package/dist/components/dialogs/RulesDialog/RulesDialog.js +44 -44
- package/dist/components/dialogs/RulesDialog/RulesDialog.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.d.ts +6 -6
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js +29 -40
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/index.d.ts +2 -2
- package/dist/components/dialogs/RulesDialog/index.js +18 -18
- package/dist/components/dialogs/index.d.ts +4 -4
- package/dist/components/dialogs/index.js +20 -20
- package/dist/components/index.d.ts +17 -17
- package/dist/components/index.js +33 -33
- package/dist/components/material/ComponentDescription.d.ts +52 -52
- package/dist/components/material/ComponentDescription.js +40 -40
- package/dist/components/material/Dices/CubicDiceDescription.d.ts +21 -21
- package/dist/components/material/Dices/CubicDiceDescription.js +129 -132
- package/dist/components/material/Dices/CubicDiceDescription.js.map +1 -1
- package/dist/components/material/Dices/index.d.ts +1 -1
- package/dist/components/material/Dices/index.js +17 -17
- package/dist/components/material/DraggableMaterial.d.ts +9 -9
- package/dist/components/material/DraggableMaterial.js +256 -259
- package/dist/components/material/DraggableMaterial.js.map +1 -1
- package/dist/components/material/FlatMaterial/BoardDescription.d.ts +3 -3
- package/dist/components/material/FlatMaterial/BoardDescription.js +27 -27
- package/dist/components/material/FlatMaterial/CardDescription.d.ts +6 -6
- package/dist/components/material/FlatMaterial/CardDescription.js +56 -31
- package/dist/components/material/FlatMaterial/CardDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/FlatMaterial.d.ts +31 -38
- package/dist/components/material/FlatMaterial/FlatMaterial.js +159 -170
- package/dist/components/material/FlatMaterial/FlatMaterial.js.map +1 -1
- package/dist/components/material/FlatMaterial/MoneyDescription.d.ts +7 -7
- package/dist/components/material/FlatMaterial/MoneyDescription.js +35 -38
- package/dist/components/material/FlatMaterial/MoneyDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/PolyhexDescription.d.ts +20 -20
- package/dist/components/material/FlatMaterial/PolyhexDescription.js +73 -48
- package/dist/components/material/FlatMaterial/PolyhexDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/TokenDescription.d.ts +10 -10
- package/dist/components/material/FlatMaterial/TokenDescription.js +68 -43
- package/dist/components/material/FlatMaterial/TokenDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/index.d.ts +6 -6
- package/dist/components/material/FlatMaterial/index.js +22 -22
- package/dist/components/material/GameTable/DropPreview.d.ts +2 -2
- package/dist/components/material/GameTable/DropPreview.js +75 -75
- package/dist/components/material/GameTable/DropPreview.js.map +1 -1
- package/dist/components/material/GameTable/DynamicItemsDisplay.d.ts +4 -4
- package/dist/components/material/GameTable/DynamicItemsDisplay.js +88 -88
- package/dist/components/material/GameTable/GameMaterialDisplay.d.ts +7 -7
- package/dist/components/material/GameTable/GameMaterialDisplay.js +33 -33
- package/dist/components/material/GameTable/GameTable.d.ts +20 -20
- package/dist/components/material/GameTable/GameTable.js +143 -143
- package/dist/components/material/GameTable/GameTable.js.map +1 -1
- package/dist/components/material/GameTable/GameTableNavigation.d.ts +6 -6
- package/dist/components/material/GameTable/GameTableNavigation.js +72 -72
- package/dist/components/material/GameTable/GameTableNavigation.js.map +1 -1
- package/dist/components/material/GameTable/ItemDisplay.d.ts +20 -21
- package/dist/components/material/GameTable/ItemDisplay.js +180 -183
- package/dist/components/material/GameTable/ItemDisplay.js.map +1 -1
- package/dist/components/material/GameTable/StaticItemsDisplay.d.ts +5 -5
- package/dist/components/material/GameTable/StaticItemsDisplay.js +93 -96
- package/dist/components/material/GameTable/StaticItemsDisplay.js.map +1 -1
- package/dist/components/material/GameTable/StaticLocationsDisplay.d.ts +5 -5
- package/dist/components/material/GameTable/StaticLocationsDisplay.js +32 -32
- package/dist/components/material/GameTable/focus/FocusProvider.d.ts +12 -10
- package/dist/components/material/GameTable/focus/FocusProvider.js +84 -99
- package/dist/components/material/GameTable/focus/FocusProvider.js.map +1 -1
- package/dist/components/material/GameTable/focus/MaterialFocus.d.ts +20 -20
- package/dist/components/material/GameTable/focus/MaterialFocus.js +2 -2
- package/dist/components/material/GameTable/focus/index.d.ts +2 -2
- package/dist/components/material/GameTable/focus/index.js +18 -18
- package/dist/components/material/GameTable/index.d.ts +3 -3
- package/dist/components/material/GameTable/index.js +19 -19
- package/dist/components/material/ImageLoader/MaterialImageLoader.d.ts +5 -5
- package/dist/components/material/ImageLoader/MaterialImageLoader.js +93 -93
- package/dist/components/material/ImageLoader/MaterialImageLoader.js.map +1 -1
- package/dist/components/material/ImageLoader/index.d.ts +1 -1
- package/dist/components/material/ImageLoader/index.js +17 -17
- package/dist/components/material/ItemMenuButton.d.ts +14 -14
- package/dist/components/material/ItemMenuButton.js +74 -74
- package/dist/components/material/ItemMenuButton.js.map +1 -1
- package/dist/components/material/ItemMenuWrapper.d.ts +11 -11
- package/dist/components/material/ItemMenuWrapper.js +68 -68
- package/dist/components/material/MaterialComponent.d.ts +17 -17
- package/dist/components/material/MaterialComponent.js +48 -48
- package/dist/components/material/MaterialComponent.js.map +1 -1
- package/dist/components/material/MaterialComponentType.d.ts +7 -7
- package/dist/components/material/MaterialComponentType.js +11 -11
- package/dist/components/material/MaterialComponentType.js.map +1 -1
- package/dist/components/material/MaterialDescription.d.ts +176 -176
- package/dist/components/material/MaterialDescription.js +292 -295
- package/dist/components/material/MaterialDescription.js.map +1 -1
- package/dist/components/material/MobileMaterialDescription.d.ts +10 -10
- package/dist/components/material/MobileMaterialDescription.js +92 -70
- package/dist/components/material/MobileMaterialDescription.js.map +1 -1
- package/dist/components/material/Wheel/WheelContent.d.ts +14 -14
- package/dist/components/material/Wheel/WheelContent.js +40 -51
- package/dist/components/material/Wheel/WheelContent.js.map +1 -1
- package/dist/components/material/Wheel/WheelDescription.d.ts +20 -20
- package/dist/components/material/Wheel/WheelDescription.js +125 -125
- package/dist/components/material/Wheel/WheelDescription.js.map +1 -1
- package/dist/components/material/Wheel/WheelItem.d.ts +15 -15
- package/dist/components/material/Wheel/WheelItem.js +53 -53
- package/dist/components/material/Wheel/WheelItem.js.map +1 -1
- package/dist/components/material/Wheel/index.d.ts +1 -1
- package/dist/components/material/Wheel/index.js +17 -17
- package/dist/components/material/Writing/WritingDescription.d.ts +12 -12
- package/dist/components/material/Writing/WritingDescription.js +106 -117
- package/dist/components/material/Writing/WritingDescription.js.map +1 -1
- package/dist/components/material/Writing/index.d.ts +1 -1
- package/dist/components/material/Writing/index.js +17 -17
- package/dist/components/material/animations/CreateItemAnimations.d.ts +15 -15
- package/dist/components/material/animations/CreateItemAnimations.js +80 -80
- package/dist/components/material/animations/CreateItemAnimations.js.map +1 -1
- package/dist/components/material/animations/DeleteItemAnimations.d.ts +14 -14
- package/dist/components/material/animations/DeleteItemAnimations.js +72 -72
- package/dist/components/material/animations/DeleteItemAnimations.js.map +1 -1
- package/dist/components/material/animations/DeleteItemAtOnceAnimations.d.ts +12 -12
- package/dist/components/material/animations/DeleteItemAtOnceAnimations.js +62 -62
- package/dist/components/material/animations/DeleteItemAtOnceAnimations.js.map +1 -1
- package/dist/components/material/animations/ItemAnimations.d.ts +11 -11
- package/dist/components/material/animations/ItemAnimations.js +57 -57
- package/dist/components/material/animations/MaterialAnimations.d.ts +19 -19
- package/dist/components/material/animations/MaterialAnimations.js +58 -58
- package/dist/components/material/animations/MaterialAnimations.js.map +1 -1
- package/dist/components/material/animations/MaterialGameAnimations.d.ts +33 -33
- package/dist/components/material/animations/MaterialGameAnimations.js +152 -130
- package/dist/components/material/animations/MaterialGameAnimations.js.map +1 -1
- package/dist/components/material/animations/MoveItemAnimations.d.ts +16 -16
- package/dist/components/material/animations/MoveItemAnimations.js +121 -124
- package/dist/components/material/animations/MoveItemAnimations.js.map +1 -1
- package/dist/components/material/animations/MoveItemAtOnceAnimations.d.ts +14 -14
- package/dist/components/material/animations/MoveItemAtOnceAnimations.js +75 -75
- package/dist/components/material/animations/MoveItemAtOnceAnimations.js.map +1 -1
- package/dist/components/material/animations/RollItemAnimations.d.ts +13 -13
- package/dist/components/material/animations/RollItemAnimations.js +121 -121
- package/dist/components/material/animations/RollItemAnimations.js.map +1 -1
- package/dist/components/material/animations/ShuffleAnimations.d.ts +8 -8
- package/dist/components/material/animations/ShuffleAnimations.js +33 -33
- package/dist/components/material/animations/ShuffleAnimations.js.map +1 -1
- package/dist/components/material/animations/getFirstStockItemTransforms.util.d.ts +2 -2
- package/dist/components/material/animations/getFirstStockItemTransforms.util.js +27 -30
- package/dist/components/material/animations/getFirstStockItemTransforms.util.js.map +1 -1
- package/dist/components/material/animations/index.d.ts +8 -8
- package/dist/components/material/animations/index.js +26 -26
- package/dist/components/material/animations/rotations.utils.d.ts +3 -3
- package/dist/components/material/animations/rotations.utils.js +126 -126
- package/dist/components/material/animations/rotations.utils.js.map +1 -1
- package/dist/components/material/animations/transformItem.util.d.ts +2 -2
- package/dist/components/material/animations/transformItem.util.js +36 -37
- package/dist/components/material/animations/transformItem.util.js.map +1 -1
- package/dist/components/material/index.d.ts +15 -15
- package/dist/components/material/index.js +31 -31
- package/dist/components/material/locations/DropAreaDescription.d.ts +12 -12
- package/dist/components/material/locations/DropAreaDescription.js +83 -61
- package/dist/components/material/locations/DropAreaDescription.js.map +1 -1
- package/dist/components/material/locations/HexGridDropAreaDescription.d.ts +13 -13
- package/dist/components/material/locations/HexGridDropAreaDescription.js +119 -97
- package/dist/components/material/locations/HexGridDropAreaDescription.js.map +1 -1
- package/dist/components/material/locations/LocationComponent.d.ts +15 -16
- package/dist/components/material/locations/LocationComponent.js +105 -105
- package/dist/components/material/locations/LocationComponent.js.map +1 -1
- package/dist/components/material/locations/LocationDescription.d.ts +45 -45
- package/dist/components/material/locations/LocationDescription.js +138 -141
- package/dist/components/material/locations/LocationDescription.js.map +1 -1
- package/dist/components/material/locations/LocationDisplay.d.ts +13 -13
- package/dist/components/material/locations/LocationDisplay.js +84 -84
- package/dist/components/material/locations/LocationsMask.d.ts +6 -6
- package/dist/components/material/locations/LocationsMask.js +25 -39
- package/dist/components/material/locations/LocationsMask.js.map +1 -1
- package/dist/components/material/locations/SimpleDropArea.d.ts +11 -11
- package/dist/components/material/locations/SimpleDropArea.js +106 -106
- package/dist/components/material/locations/SimpleDropArea.js.map +1 -1
- package/dist/components/material/locations/index.d.ts +5 -5
- package/dist/components/material/locations/index.js +21 -21
- package/dist/components/material/sound/AudioLoader.d.ts +20 -20
- package/dist/components/material/sound/AudioLoader.js +119 -119
- package/dist/components/material/sound/AudioLoader.js.map +1 -1
- package/dist/components/material/sound/MaterialGameSounds.d.ts +8 -8
- package/dist/components/material/sound/MaterialGameSounds.js +122 -122
- package/dist/components/material/sound/MaterialGameSounds.js.map +1 -1
- package/dist/components/material/sound/MaterialSoundConfig.d.ts +11 -11
- package/dist/components/material/sound/MaterialSoundConfig.js +10 -10
- package/dist/components/material/sound/MaterialSoundLoader.d.ts +8 -8
- package/dist/components/material/sound/MaterialSoundLoader.js +76 -79
- package/dist/components/material/sound/MaterialSoundLoader.js.map +1 -1
- package/dist/components/material/sound/index.d.ts +2 -2
- package/dist/components/material/sound/index.js +18 -18
- package/dist/components/material/sound/sound.utils.d.ts +2 -2
- package/dist/components/material/sound/sound.utils.js +14 -14
- package/dist/components/material/sound/sound.utils.js.map +1 -1
- package/dist/components/material/utils/IsLocationSubset.d.ts +2 -2
- package/dist/components/material/utils/IsLocationSubset.js +14 -17
- package/dist/components/material/utils/IsLocationSubset.js.map +1 -1
- package/dist/components/material/utils/getBestDropMove.d.ts +4 -4
- package/dist/components/material/utils/getBestDropMove.js +32 -33
- package/dist/components/material/utils/getBestDropMove.js.map +1 -1
- package/dist/components/material/utils/index.d.ts +1 -1
- package/dist/components/material/utils/index.js +17 -17
- package/dist/components/material/utils/isDroppedItem.d.ts +4 -4
- package/dist/components/material/utils/isDroppedItem.js +27 -27
- package/dist/components/material/utils/isPlacedOnItem.d.ts +3 -3
- package/dist/components/material/utils/isPlacedOnItem.js +13 -13
- package/dist/components/material/utils/isRotationMove.d.ts +3 -3
- package/dist/components/material/utils/isRotationMove.js +21 -24
- package/dist/components/material/utils/isRotationMove.js.map +1 -1
- package/dist/components/material/utils/useIsAnimatingPlayerAction.d.ts +1 -1
- package/dist/components/material/utils/useIsAnimatingPlayerAction.js +14 -14
- package/dist/components/menus/EjectPlayer/EjectPlayerButton.d.ts +2 -2
- package/dist/components/menus/EjectPlayer/EjectPlayerButton.js +34 -34
- package/dist/components/menus/EjectPlayer/EjectPlayerDialog.d.ts +4 -10
- package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js +74 -74
- package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.d.ts +2 -2
- package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js +52 -52
- package/dist/components/menus/EjectPlayer/index.d.ts +3 -3
- package/dist/components/menus/EjectPlayer/index.js +19 -19
- package/dist/components/menus/Fullscreen/FullscreenButton.d.ts +1 -1
- package/dist/components/menus/Fullscreen/FullscreenButton.js +17 -28
- package/dist/components/menus/Fullscreen/FullscreenButton.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenDialog.d.ts +2 -2
- package/dist/components/menus/Fullscreen/FullscreenDialog.js +62 -62
- package/dist/components/menus/Fullscreen/FullscreenDialog.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenPopButton.d.ts +1 -1
- package/dist/components/menus/Fullscreen/FullscreenPopButton.js +45 -56
- package/dist/components/menus/Fullscreen/FullscreenPopButton.js.map +1 -1
- package/dist/components/menus/Fullscreen/index.d.ts +3 -3
- package/dist/components/menus/Fullscreen/index.js +19 -19
- package/dist/components/menus/GiveUpButton/GiveUpButton.d.ts +1 -1
- package/dist/components/menus/GiveUpButton/GiveUpButton.js +78 -89
- package/dist/components/menus/GiveUpButton/GiveUpButton.js.map +1 -1
- package/dist/components/menus/GiveUpButton/index.d.ts +1 -1
- package/dist/components/menus/GiveUpButton/index.js +17 -17
- package/dist/components/menus/Menu/LogoIcon.d.ts +2 -2
- package/dist/components/menus/Menu/LogoIcon.js +17 -17
- package/dist/components/menus/Menu/LogoIcon.js.map +1 -1
- package/dist/components/menus/Menu/Menu.d.ts +3 -3
- package/dist/components/menus/Menu/Menu.js +106 -117
- package/dist/components/menus/Menu/Menu.js.map +1 -1
- package/dist/components/menus/Menu/MenuPopButton.d.ts +7 -7
- package/dist/components/menus/Menu/MenuPopButton.js +68 -68
- package/dist/components/menus/Menu/MenuPopButton.js.map +1 -1
- package/dist/components/menus/Menu/NavButton.d.ts +7 -7
- package/dist/components/menus/Menu/NavButton.js +32 -32
- package/dist/components/menus/Menu/index.d.ts +1 -1
- package/dist/components/menus/Menu/index.js +17 -17
- package/dist/components/menus/PlayerQuit/TrackPlayersQuit.d.ts +1 -1
- package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js +52 -63
- package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js.map +1 -1
- package/dist/components/menus/PlayerQuit/index.d.ts +1 -1
- package/dist/components/menus/PlayerQuit/index.js +17 -17
- package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.d.ts +1 -1
- package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js +24 -35
- package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js.map +1 -1
- package/dist/components/menus/RestartTutorialButton/index.d.ts +1 -1
- package/dist/components/menus/RestartTutorialButton/index.js +17 -17
- package/dist/components/menus/Result/Medal.d.ts +4 -4
- package/dist/components/menus/Result/Medal.js +41 -41
- package/dist/components/menus/Result/Medal.js.map +1 -1
- package/dist/components/menus/Result/MedalBronze.d.ts +2 -2
- package/dist/components/menus/Result/MedalBronze.js +17 -17
- package/dist/components/menus/Result/MedalBronze.js.map +1 -1
- package/dist/components/menus/Result/MedalGold.d.ts +2 -2
- package/dist/components/menus/Result/MedalGold.js +17 -17
- package/dist/components/menus/Result/MedalGold.js.map +1 -1
- package/dist/components/menus/Result/MedalSilver.d.ts +2 -2
- package/dist/components/menus/Result/MedalSilver.js +17 -17
- package/dist/components/menus/Result/MedalSilver.js.map +1 -1
- package/dist/components/menus/Result/ResultButton.d.ts +2 -2
- package/dist/components/menus/Result/ResultButton.js +25 -25
- package/dist/components/menus/Result/ResultPopButton.d.ts +2 -2
- package/dist/components/menus/Result/ResultPopButton.js +37 -37
- package/dist/components/menus/Result/index.d.ts +3 -3
- package/dist/components/menus/Result/index.js +19 -19
- package/dist/components/menus/SoundButton/SoundButton.d.ts +1 -1
- package/dist/components/menus/SoundButton/SoundButton.js +17 -28
- package/dist/components/menus/SoundButton/SoundButton.js.map +1 -1
- package/dist/components/menus/SoundButton/index.d.ts +1 -1
- package/dist/components/menus/SoundButton/index.js +17 -17
- package/dist/components/menus/TimeStatsButton/TimeStatsButton.d.ts +1 -1
- package/dist/components/menus/TimeStatsButton/TimeStatsButton.js +82 -93
- package/dist/components/menus/TimeStatsButton/TimeStatsButton.js.map +1 -1
- package/dist/components/menus/TimeStatsButton/index.d.ts +1 -1
- package/dist/components/menus/TimeStatsButton/index.js +17 -17
- package/dist/components/menus/UndoButton/UndoButton.d.ts +1 -1
- package/dist/components/menus/UndoButton/UndoButton.js +33 -44
- package/dist/components/menus/UndoButton/UndoButton.js.map +1 -1
- package/dist/components/menus/UndoButton/UndoPopButton.d.ts +1 -1
- package/dist/components/menus/UndoButton/UndoPopButton.js +40 -51
- package/dist/components/menus/UndoButton/UndoPopButton.js.map +1 -1
- package/dist/components/menus/UndoButton/index.d.ts +2 -2
- package/dist/components/menus/UndoButton/index.js +18 -18
- package/dist/components/menus/index.d.ts +6 -6
- package/dist/components/menus/index.js +22 -22
- package/dist/components/menus/menuCss.d.ts +9 -9
- package/dist/components/menus/menuCss.js +19 -19
- package/dist/components/tutorial/MaterialTutorial.d.ts +43 -43
- package/dist/components/tutorial/MaterialTutorial.js +40 -40
- package/dist/components/tutorial/MaterialTutorial.js.map +1 -1
- package/dist/components/tutorial/MaterialTutorialDisplay.d.ts +1 -1
- package/dist/components/tutorial/MaterialTutorialDisplay.js +108 -112
- package/dist/components/tutorial/MaterialTutorialDisplay.js.map +1 -1
- package/dist/components/tutorial/TutorialRulesWrapper.d.ts +3 -3
- package/dist/components/tutorial/TutorialRulesWrapper.js +142 -146
- package/dist/components/tutorial/TutorialRulesWrapper.js.map +1 -1
- package/dist/components/tutorial/index.d.ts +1 -1
- package/dist/components/tutorial/index.js +17 -17
- package/dist/css/GameTheme.d.ts +23 -23
- package/dist/css/GameTheme.js +21 -21
- package/dist/css/addStylesheetUrl.d.ts +1 -1
- package/dist/css/addStylesheetUrl.js +10 -10
- package/dist/css/backgroundCss.d.ts +1 -1
- package/dist/css/backgroundCss.js +11 -11
- package/dist/css/buttonCss.d.ts +3 -3
- package/dist/css/buttonCss.js +13 -13
- package/dist/css/componentSizeCss.d.ts +5 -5
- package/dist/css/componentSizeCss.js +22 -22
- package/dist/css/cursorCss.d.ts +3 -3
- package/dist/css/cursorCss.js +12 -12
- package/dist/css/fadeIn.d.ts +1 -1
- package/dist/css/fadeIn.js +12 -12
- package/dist/css/index.d.ts +10 -10
- package/dist/css/index.js +26 -26
- package/dist/css/shadowEffect.d.ts +1 -1
- package/dist/css/shadowEffect.js +10 -10
- package/dist/css/shineEffect.d.ts +1 -1
- package/dist/css/shineEffect.js +11 -11
- package/dist/css/transformCss.d.ts +2 -2
- package/dist/css/transformCss.js +18 -18
- package/dist/hooks/index.d.ts +27 -27
- package/dist/hooks/index.js +43 -43
- package/dist/hooks/useActions.d.ts +2 -2
- package/dist/hooks/useActions.js +8 -8
- package/dist/hooks/useAnimations.d.ts +4 -4
- package/dist/hooks/useAnimations.js +58 -58
- package/dist/hooks/useAnimations.js.map +1 -1
- package/dist/hooks/useDraggedItem.d.ts +2 -2
- package/dist/hooks/useDraggedItem.js +33 -34
- package/dist/hooks/useDraggedItem.js.map +1 -1
- package/dist/hooks/useFailures.d.ts +1 -1
- package/dist/hooks/useFailures.js +10 -10
- package/dist/hooks/useFailures.js.map +1 -1
- package/dist/hooks/useFlatHistory.d.ts +13 -13
- package/dist/hooks/useFlatHistory.js +159 -162
- package/dist/hooks/useFlatHistory.js.map +1 -1
- package/dist/hooks/useFullscreen.d.ts +5 -5
- package/dist/hooks/useFullscreen.js +51 -51
- package/dist/hooks/useFullscreen.js.map +1 -1
- package/dist/hooks/useGame.d.ts +1 -1
- package/dist/hooks/useGame.js +7 -8
- package/dist/hooks/useGame.js.map +1 -1
- package/dist/hooks/useGiveUp.d.ts +1 -1
- package/dist/hooks/useGiveUp.js +16 -16
- package/dist/hooks/useGiveUp.js.map +1 -1
- package/dist/hooks/useItemLocations.d.ts +8 -8
- package/dist/hooks/useItemLocations.js +122 -126
- package/dist/hooks/useItemLocations.js.map +1 -1
- package/dist/hooks/useItemLocator.d.ts +2 -2
- package/dist/hooks/useItemLocator.js +8 -9
- package/dist/hooks/useItemLocator.js.map +1 -1
- package/dist/hooks/useKeyDown.d.ts +1 -1
- package/dist/hooks/useKeyDown.js +16 -16
- package/dist/hooks/useKeyDown.js.map +1 -1
- package/dist/hooks/useLegalMoves.d.ts +2 -2
- package/dist/hooks/useLegalMoves.js +18 -19
- package/dist/hooks/useLegalMoves.js.map +1 -1
- package/dist/hooks/useLocators.d.ts +1 -1
- package/dist/hooks/useLocators.js +7 -7
- package/dist/hooks/useMaterialContext.d.ts +2 -2
- package/dist/hooks/useMaterialContext.js +16 -17
- package/dist/hooks/useMaterialContext.js.map +1 -1
- package/dist/hooks/useMaterialDescription.d.ts +2 -2
- package/dist/hooks/useMaterialDescription.js +9 -10
- package/dist/hooks/useMaterialDescription.js.map +1 -1
- package/dist/hooks/useNow.d.ts +6 -6
- package/dist/hooks/useNow.js +37 -37
- package/dist/hooks/useNow.js.map +1 -1
- package/dist/hooks/useNumberOfPlayers.d.ts +1 -1
- package/dist/hooks/useNumberOfPlayers.js +6 -6
- package/dist/hooks/useOpponentWithMaxTime.d.ts +5 -5
- package/dist/hooks/useOpponentWithMaxTime.js +60 -60
- package/dist/hooks/useOpponentWithMaxTime.js.map +1 -1
- package/dist/hooks/usePlay.d.ts +2 -2
- package/dist/hooks/usePlay.js +23 -23
- package/dist/hooks/usePlay.js.map +1 -1
- package/dist/hooks/usePlayerId.d.ts +2 -2
- package/dist/hooks/usePlayerId.js +10 -10
- package/dist/hooks/usePlayerName.d.ts +1 -1
- package/dist/hooks/usePlayerName.js +25 -26
- package/dist/hooks/usePlayerName.js.map +1 -1
- package/dist/hooks/usePlayerTime.d.ts +1 -1
- package/dist/hooks/usePlayerTime.js +50 -50
- package/dist/hooks/usePlayerTime.js.map +1 -1
- package/dist/hooks/usePlayers.d.ts +8 -8
- package/dist/hooks/usePlayers.js +95 -95
- package/dist/hooks/usePlayers.js.map +1 -1
- package/dist/hooks/useRankedPlayers.d.ts +5 -5
- package/dist/hooks/useRankedPlayers.js +37 -37
- package/dist/hooks/useRankedPlayers.js.map +1 -1
- package/dist/hooks/useResultText.d.ts +1 -1
- package/dist/hooks/useResultText.js +71 -71
- package/dist/hooks/useResultText.js.map +1 -1
- package/dist/hooks/useRules.d.ts +2 -2
- package/dist/hooks/useRules.js +17 -18
- package/dist/hooks/useRules.js.map +1 -1
- package/dist/hooks/useSound.d.ts +1 -1
- package/dist/hooks/useSound.js +35 -35
- package/dist/hooks/useSound.js.map +1 -1
- package/dist/hooks/useStaticLocations.d.ts +2 -2
- package/dist/hooks/useStaticLocations.js +98 -102
- package/dist/hooks/useStaticLocations.js.map +1 -1
- package/dist/hooks/useTutorialStep.d.ts +2 -2
- package/dist/hooks/useTutorialStep.js +13 -14
- package/dist/hooks/useTutorialStep.js.map +1 -1
- package/dist/hooks/useUndo.d.ts +7 -7
- package/dist/hooks/useUndo.js +99 -102
- package/dist/hooks/useUndo.js.map +1 -1
- package/dist/hooks/useWebP.d.ts +1 -1
- package/dist/hooks/useWebP.js +79 -79
- package/dist/hooks/useZoomToElements.d.ts +13 -13
- package/dist/hooks/useZoomToElements.js +91 -92
- package/dist/hooks/useZoomToElements.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +23 -23
- package/dist/locators/DeckLocator.d.ts +10 -10
- package/dist/locators/DeckLocator.js +34 -34
- package/dist/locators/DeckLocator.js.map +1 -1
- package/dist/locators/FlexLocator.d.ts +57 -57
- package/dist/locators/FlexLocator.js +117 -117
- package/dist/locators/FlexLocator.js.map +1 -1
- package/dist/locators/HandLocator.d.ts +96 -96
- package/dist/locators/HandLocator.js +176 -176
- package/dist/locators/HandLocator.js.map +1 -1
- package/dist/locators/HexagonalGridLocator.d.ts +95 -95
- package/dist/locators/HexagonalGridLocator.js +303 -308
- package/dist/locators/HexagonalGridLocator.js.map +1 -1
- package/dist/locators/ListLocator.d.ts +54 -54
- package/dist/locators/ListLocator.js +123 -123
- package/dist/locators/ListLocator.js.map +1 -1
- package/dist/locators/Locator.d.ts +275 -273
- package/dist/locators/Locator.js +416 -421
- package/dist/locators/Locator.js.map +1 -1
- package/dist/locators/PileLocator.d.ts +53 -53
- package/dist/locators/PileLocator.js +184 -184
- package/dist/locators/PileLocator.js.map +1 -1
- package/dist/locators/index.d.ts +8 -8
- package/dist/locators/index.js +24 -24
- package/dist/locators/utils/getRelativePlayerIndex.util.d.ts +2 -2
- package/dist/locators/utils/getRelativePlayerIndex.util.js +13 -14
- package/dist/locators/utils/getRelativePlayerIndex.util.js.map +1 -1
- package/dist/locators/utils/index.d.ts +1 -1
- package/dist/locators/utils/index.js +17 -17
- package/dist/utilities/DeepPartial.d.ts +6 -6
- package/dist/utilities/DeepPartial.js +2 -2
- package/dist/utilities/combineEventListeners.d.ts +7 -7
- package/dist/utilities/combineEventListeners.js +48 -49
- package/dist/utilities/combineEventListeners.js.map +1 -1
- package/dist/utilities/findIfUnique.util.d.ts +7 -7
- package/dist/utilities/findIfUnique.util.js +21 -22
- package/dist/utilities/findIfUnique.util.js.map +1 -1
- package/dist/utilities/index.d.ts +4 -4
- package/dist/utilities/index.js +20 -20
- package/dist/utilities/pusher.d.ts +2 -0
- package/dist/utilities/pusher.js +16 -0
- package/dist/utilities/pusher.js.map +1 -0
- package/dist/utilities/translation.util.d.ts +10 -10
- package/dist/utilities/translation.util.js +37 -37
- package/dist/utilities/zoom-pan-pinch/animations.constants.d.ts +16 -16
- package/dist/utilities/zoom-pan-pinch/animations.constants.js +81 -81
- package/dist/utilities/zoom-pan-pinch/animations.util.d.ts +8 -8
- package/dist/utilities/zoom-pan-pinch/animations.util.js +77 -77
- package/dist/utilities/zoom-pan-pinch/animations.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/bounds.util.d.ts +17 -17
- package/dist/utilities/zoom-pan-pinch/bounds.util.js +84 -84
- package/dist/utilities/zoom-pan-pinch/bounds.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/calculation.util.d.ts +14 -14
- package/dist/utilities/zoom-pan-pinch/calculation.util.js +23 -23
- package/dist/utilities/zoom-pan-pinch/index.d.ts +9 -9
- package/dist/utilities/zoom-pan-pinch/index.js +25 -25
- package/dist/utilities/zoom-pan-pinch/zoom.util.d.ts +4 -4
- package/dist/utilities/zoom-pan-pinch/zoom.util.js +15 -16
- package/dist/utilities/zoom-pan-pinch/zoom.util.js.map +1 -1
- package/package.json +21 -21
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Location } from '@gamepark/rules-api';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
|
-
import { LocationDescription } from './LocationDescription';
|
|
4
|
-
export type LocationDisplayProps<P extends number = number, M extends number = number, L extends number = number> = {
|
|
5
|
-
location: Location<P, L>;
|
|
6
|
-
description: LocationDescription<P, M, L>;
|
|
7
|
-
canDrop?: boolean;
|
|
8
|
-
} & HTMLAttributes<HTMLDivElement>;
|
|
9
|
-
export declare const LocationDisplay: import("react").ForwardRefExoticComponent<{
|
|
10
|
-
location: Location<number, number
|
|
11
|
-
description: LocationDescription<number, number, number, any>;
|
|
12
|
-
canDrop?: boolean
|
|
13
|
-
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { Location } from '@gamepark/rules-api';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { LocationDescription } from './LocationDescription';
|
|
4
|
+
export type LocationDisplayProps<P extends number = number, M extends number = number, L extends number = number> = {
|
|
5
|
+
location: Location<P, L>;
|
|
6
|
+
description: LocationDescription<P, M, L>;
|
|
7
|
+
canDrop?: boolean;
|
|
8
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
export declare const LocationDisplay: import("react").ForwardRefExoticComponent<{
|
|
10
|
+
location: Location<number, number>;
|
|
11
|
+
description: LocationDescription<number, number, number, any>;
|
|
12
|
+
canDrop?: boolean;
|
|
13
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
29
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
30
|
-
if (!m) return o;
|
|
31
|
-
var i = m.call(o), r, ar = [], e;
|
|
32
|
-
try {
|
|
33
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
34
|
-
}
|
|
35
|
-
catch (error) { e = { error: error }; }
|
|
36
|
-
finally {
|
|
37
|
-
try {
|
|
38
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
39
|
-
}
|
|
40
|
-
finally { if (e) throw e.error; }
|
|
41
|
-
}
|
|
42
|
-
return ar;
|
|
43
|
-
};
|
|
44
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
45
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
46
|
-
if (ar || !(i in from)) {
|
|
47
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
48
|
-
ar[i] = from[i];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.LocationDisplay = void 0;
|
|
55
|
-
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
56
|
-
/** @jsxImportSource @emotion/react */
|
|
57
|
-
var react_1 = require("@emotion/react");
|
|
58
|
-
var react_2 = require("react");
|
|
59
|
-
var css_1 = require("../../../css");
|
|
60
|
-
var hooks_1 = require("../../../hooks");
|
|
61
|
-
exports.LocationDisplay = (0, react_2.forwardRef)(function (_a, ref) {
|
|
62
|
-
var location = _a.location, description = _a.description, _b = _a.canDrop, canDrop = _b === void 0 ? false : _b, props = __rest(_a, ["location", "description", "canDrop"]);
|
|
63
|
-
var context = (0, hooks_1.useMaterialContext)();
|
|
64
|
-
var locator = context.locators[location.type];
|
|
65
|
-
var locationContext = (0, react_2.useMemo)(function () { return (__assign(__assign({}, context), { canDrop: canDrop })); }, [context, canDrop]);
|
|
66
|
-
var _c = description.getLocationSize(location, context), width = _c.width, height = _c.height;
|
|
67
|
-
var image = description.getImage(location, context);
|
|
68
|
-
var borderRadius = description.getBorderRadius(location.id);
|
|
69
|
-
var positionOnParent = (0, react_2.useMemo)(function () { return (locator === null || locator === void 0 ? void 0 : locator.parentItemType) !== undefined ? locator.getPositionOnParent(location, context) : undefined; }, [location, context, location]);
|
|
70
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ ref: ref, css: [
|
|
71
|
-
absolute,
|
|
72
|
-
positionOnParent && positionOnParentCss(positionOnParent),
|
|
73
|
-
css_1.transformCss.apply(void 0, __spreadArray([], __read(description.getLocationTransform(location, locationContext)), false)),
|
|
74
|
-
(0, css_1.sizeCss)(width, height), image && (0, css_1.backgroundCss)(image), borderRadius && (0, css_1.borderRadiusCss)(borderRadius),
|
|
75
|
-
description.getExtraCss(location, locationContext)
|
|
76
|
-
] }, props, { children: description.content && (0, jsx_runtime_1.jsx)(description.content, { location: location }) })));
|
|
77
|
-
});
|
|
78
|
-
exports.LocationDisplay.displayName = 'LocationDisplay';
|
|
79
|
-
var absolute = (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n"], ["\n position: absolute;\n"])));
|
|
80
|
-
var positionOnParentCss = function (_a) {
|
|
81
|
-
var x = _a.x, y = _a.y;
|
|
82
|
-
return (0, react_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n left: ", "%;\n top: ", "%;\n"], ["\n left: ", "%;\n top: ", "%;\n"])), x, y);
|
|
83
|
-
};
|
|
84
|
-
var templateObject_1, templateObject_2;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
29
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
30
|
+
if (!m) return o;
|
|
31
|
+
var i = m.call(o), r, ar = [], e;
|
|
32
|
+
try {
|
|
33
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
34
|
+
}
|
|
35
|
+
catch (error) { e = { error: error }; }
|
|
36
|
+
finally {
|
|
37
|
+
try {
|
|
38
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
39
|
+
}
|
|
40
|
+
finally { if (e) throw e.error; }
|
|
41
|
+
}
|
|
42
|
+
return ar;
|
|
43
|
+
};
|
|
44
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
45
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
46
|
+
if (ar || !(i in from)) {
|
|
47
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
48
|
+
ar[i] = from[i];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.LocationDisplay = void 0;
|
|
55
|
+
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
56
|
+
/** @jsxImportSource @emotion/react */
|
|
57
|
+
var react_1 = require("@emotion/react");
|
|
58
|
+
var react_2 = require("react");
|
|
59
|
+
var css_1 = require("../../../css");
|
|
60
|
+
var hooks_1 = require("../../../hooks");
|
|
61
|
+
exports.LocationDisplay = (0, react_2.forwardRef)(function (_a, ref) {
|
|
62
|
+
var location = _a.location, description = _a.description, _b = _a.canDrop, canDrop = _b === void 0 ? false : _b, props = __rest(_a, ["location", "description", "canDrop"]);
|
|
63
|
+
var context = (0, hooks_1.useMaterialContext)();
|
|
64
|
+
var locator = context.locators[location.type];
|
|
65
|
+
var locationContext = (0, react_2.useMemo)(function () { return (__assign(__assign({}, context), { canDrop: canDrop })); }, [context, canDrop]);
|
|
66
|
+
var _c = description.getLocationSize(location, context), width = _c.width, height = _c.height;
|
|
67
|
+
var image = description.getImage(location, context);
|
|
68
|
+
var borderRadius = description.getBorderRadius(location.id);
|
|
69
|
+
var positionOnParent = (0, react_2.useMemo)(function () { return (locator === null || locator === void 0 ? void 0 : locator.parentItemType) !== undefined ? locator.getPositionOnParent(location, context) : undefined; }, [location, context, location]);
|
|
70
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ ref: ref, css: [
|
|
71
|
+
absolute,
|
|
72
|
+
positionOnParent && positionOnParentCss(positionOnParent),
|
|
73
|
+
css_1.transformCss.apply(void 0, __spreadArray([], __read(description.getLocationTransform(location, locationContext)), false)),
|
|
74
|
+
(0, css_1.sizeCss)(width, height), image && (0, css_1.backgroundCss)(image), borderRadius && (0, css_1.borderRadiusCss)(borderRadius),
|
|
75
|
+
description.getExtraCss(location, locationContext)
|
|
76
|
+
] }, props, { children: description.content && (0, jsx_runtime_1.jsx)(description.content, { location: location }) })));
|
|
77
|
+
});
|
|
78
|
+
exports.LocationDisplay.displayName = 'LocationDisplay';
|
|
79
|
+
var absolute = (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n"], ["\n position: absolute;\n"])));
|
|
80
|
+
var positionOnParentCss = function (_a) {
|
|
81
|
+
var x = _a.x, y = _a.y;
|
|
82
|
+
return (0, react_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n left: ", "%;\n top: ", "%;\n"], ["\n left: ", "%;\n top: ", "%;\n"])), x, y);
|
|
83
|
+
};
|
|
84
|
+
var templateObject_1, templateObject_2;
|
|
85
85
|
//# sourceMappingURL=LocationDisplay.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Location } from '@gamepark/rules-api';
|
|
2
|
-
export type LocationsMaskProps = {
|
|
3
|
-
locations: Location[];
|
|
4
|
-
borderRadius: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const LocationsMask: ({ borderRadius, locations }: LocationsMaskProps) => JSX.Element;
|
|
1
|
+
import { Location } from '@gamepark/rules-api';
|
|
2
|
+
export type LocationsMaskProps = {
|
|
3
|
+
locations: Location[];
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const LocationsMask: ({ borderRadius, locations }: LocationsMaskProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,40 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
return
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
exports.LocationsMask = LocationsMask;
|
|
28
|
-
var LocationRect = function (_a) {
|
|
29
|
-
var _b;
|
|
30
|
-
var location = _a.location;
|
|
31
|
-
var locator = (0, hooks_1.useItemLocator)(location.type);
|
|
32
|
-
var context = (0, hooks_1.useMaterialContext)();
|
|
33
|
-
var description = locator.getLocationDescription(location, context);
|
|
34
|
-
var position = locator.getPositionOnParent(location, context);
|
|
35
|
-
var _c = description.getLocationSize(location, context), width = _c.width, height = _c.height;
|
|
36
|
-
var radius = (_b = description.getBorderRadius(location.id)) !== null && _b !== void 0 ? _b : 0;
|
|
37
|
-
var transforms = description.getLocationTransform(location, context);
|
|
38
|
-
return ((0, jsx_runtime_1.jsx)("rect", { fill: "black", x: "".concat(position.x, "%"), y: "".concat(position.y, "%"), width: "".concat(width, "em"), height: "".concat(height, "em"), rx: "".concat(radius, "em"), ry: "".concat(radius, "em"), style: { transformBox: 'fill-box', transformOrigin: 'center', transform: transforms.join(' ') } }));
|
|
39
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocationsMask = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var compat_1 = require("es-toolkit/compat");
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var hooks_1 = require("../../../hooks");
|
|
8
|
+
var LocationsMask = function (_a) {
|
|
9
|
+
var borderRadius = _a.borderRadius, locations = _a.locations;
|
|
10
|
+
var id = (0, react_1.useMemo)(function () { return (0, compat_1.uniqueId)('mask'); }, []);
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "100%", height: "100%", style: { position: 'absolute', borderRadius: borderRadius + 'em' }, children: [(0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsxs)("mask", { id: id, children: [(0, jsx_runtime_1.jsx)("rect", { width: "100%", height: "100%", fill: "white" }), locations.map(function (location) { return (0, jsx_runtime_1.jsx)(LocationRect, { location: location }, JSON.stringify(location)); })] }) }), (0, jsx_runtime_1.jsx)("rect", { width: "100%", height: "100%", fill: "black", fillOpacity: 0.5, mask: "url(#".concat(id, ")") })] }));
|
|
12
|
+
};
|
|
13
|
+
exports.LocationsMask = LocationsMask;
|
|
14
|
+
var LocationRect = function (_a) {
|
|
15
|
+
var _b;
|
|
16
|
+
var location = _a.location;
|
|
17
|
+
var locator = (0, hooks_1.useItemLocator)(location.type);
|
|
18
|
+
var context = (0, hooks_1.useMaterialContext)();
|
|
19
|
+
var description = locator.getLocationDescription(location, context);
|
|
20
|
+
var position = locator.getPositionOnParent(location, context);
|
|
21
|
+
var _c = description.getLocationSize(location, context), width = _c.width, height = _c.height;
|
|
22
|
+
var radius = (_b = description.getBorderRadius(location.id)) !== null && _b !== void 0 ? _b : 0;
|
|
23
|
+
var transforms = description.getLocationTransform(location, context);
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)("rect", { fill: "black", x: "".concat(position.x, "%"), y: "".concat(position.y, "%"), width: "".concat(width, "em"), height: "".concat(height, "em"), rx: "".concat(radius, "em"), ry: "".concat(radius, "em"), style: { transformBox: 'fill-box', transformOrigin: 'center', transform: transforms.join(' ') } }));
|
|
25
|
+
};
|
|
40
26
|
//# sourceMappingURL=LocationsMask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationsMask.js","sourceRoot":"","sources":["../../../../src/components/material/locations/LocationsMask.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LocationsMask.js","sourceRoot":"","sources":["../../../../src/components/material/locations/LocationsMask.tsx"],"names":[],"mappings":";;;;AACA,4CAA4C;AAC5C,+BAA+B;AAC/B,wCAAmE;AAO5D,IAAM,aAAa,GAAG,UAAC,EAA+C;QAA7C,YAAY,kBAAA,EAAE,SAAS,eAAA;IACrD,IAAM,EAAE,GAAG,IAAA,eAAO,EAAC,cAAM,OAAA,IAAA,iBAAQ,EAAC,MAAM,CAAC,EAAhB,CAAgB,EAAE,EAAE,CAAC,CAAA;IAC9C,OAAO,CACL,iCAAK,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,EAAE,aAChG,2CACE,kCAAM,EAAE,EAAE,EAAE,aACV,iCAAM,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,GAAE,EAC9C,SAAS,CAAC,GAAG,CAAC,UAAA,QAAQ,IAAI,OAAA,uBAAC,YAAY,IAAgC,QAAQ,EAAE,QAAQ,IAA5C,IAAI,CAAC,SAA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UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CACzG,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Location } from '@gamepark/rules-api';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
|
-
import { DropAreaDescription } from './DropAreaDescription';
|
|
4
|
-
export type SimpleDropAreaProps<P extends number = number, M extends number = number, L extends number = number> = {
|
|
5
|
-
location: Location<P, L>;
|
|
6
|
-
description: DropAreaDescription<P, M, L>;
|
|
7
|
-
} & HTMLAttributes<HTMLDivElement>;
|
|
8
|
-
export declare const SimpleDropArea: import("react").ForwardRefExoticComponent<{
|
|
9
|
-
location: Location<number, number
|
|
10
|
-
description: DropAreaDescription<number, number, number, any>;
|
|
11
|
-
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { Location } from '@gamepark/rules-api';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { DropAreaDescription } from './DropAreaDescription';
|
|
4
|
+
export type SimpleDropAreaProps<P extends number = number, M extends number = number, L extends number = number> = {
|
|
5
|
+
location: Location<P, L>;
|
|
6
|
+
description: DropAreaDescription<P, M, L>;
|
|
7
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare const SimpleDropArea: import("react").ForwardRefExoticComponent<{
|
|
9
|
+
location: Location<number, number>;
|
|
10
|
+
description: DropAreaDescription<number, number, number, any>;
|
|
11
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,107 +1,107 @@
|
|
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __values = (this && this.__values) || function(o) {
|
|
25
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
26
|
-
if (m) return m.call(o);
|
|
27
|
-
if (o && typeof o.length === "number") return {
|
|
28
|
-
next: function () {
|
|
29
|
-
if (o && i >= o.length) o = void 0;
|
|
30
|
-
return { value: o && o[i++], done: !o };
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
34
|
-
};
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.SimpleDropArea = void 0;
|
|
37
|
-
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
38
|
-
/** @jsxImportSource @emotion/react */
|
|
39
|
-
var core_1 = require("@dnd-kit/core");
|
|
40
|
-
var react_1 = require("react");
|
|
41
|
-
var react_merge_refs_1 = require("react-merge-refs");
|
|
42
|
-
var react_redux_1 = require("react-redux");
|
|
43
|
-
var hooks_1 = require("../../../hooks");
|
|
44
|
-
var utilities_1 = require("../../../utilities");
|
|
45
|
-
var DraggableMaterial_1 = require("../DraggableMaterial");
|
|
46
|
-
var LocationComponent_1 = require("./LocationComponent");
|
|
47
|
-
exports.SimpleDropArea = (0, react_1.forwardRef)(function (_a, ref) {
|
|
48
|
-
var location = _a.location, description = _a.description, props = __rest(_a, ["location", "description"]);
|
|
49
|
-
var context = (0, hooks_1.useMaterialContext)();
|
|
50
|
-
var material = context.material;
|
|
51
|
-
var play = (0, hooks_1.usePlay)();
|
|
52
|
-
var legalMoves = (0, hooks_1.useLegalMoves)();
|
|
53
|
-
var dropMoves = (0, react_1.useMemo)(function () { return legalMoves.filter(function (move) { return description === null || description === void 0 ? void 0 : description.isMoveToLocation(move, location, context); }); }, [legalMoves, context]);
|
|
54
|
-
var onShortClick = (0, react_1.useMemo)(function () {
|
|
55
|
-
var move = (0, utilities_1.findIfUnique)(legalMoves, function (move) { return description.canShortClick(move, location, context); });
|
|
56
|
-
if (move !== undefined)
|
|
57
|
-
return function () { return play(move); };
|
|
58
|
-
var shortClickMove = description === null || description === void 0 ? void 0 : description.getShortClickMove(location, context);
|
|
59
|
-
if (shortClickMove)
|
|
60
|
-
return function () { return play(shortClickMove); };
|
|
61
|
-
var shortClickLocalMove = description === null || description === void 0 ? void 0 : description.getShortClickLocalMove(location, context);
|
|
62
|
-
if (shortClickLocalMove)
|
|
63
|
-
return function () { return play(shortClickLocalMove, { local: true }); };
|
|
64
|
-
}, [legalMoves, context]);
|
|
65
|
-
var onLongClick = (0, react_1.useMemo)(function () {
|
|
66
|
-
if (onShortClick)
|
|
67
|
-
return;
|
|
68
|
-
var move = (0, utilities_1.findIfUnique)(legalMoves, function (move) { return description.canLongClick(move, location, context); });
|
|
69
|
-
if (move !== undefined)
|
|
70
|
-
return function () { return play(move); };
|
|
71
|
-
}, [legalMoves, context]);
|
|
72
|
-
var canClickToMove = (0, react_1.useMemo)(function () {
|
|
73
|
-
var e_1, _a;
|
|
74
|
-
var short = 0, long = 0;
|
|
75
|
-
try {
|
|
76
|
-
for (var legalMoves_1 = __values(legalMoves), legalMoves_1_1 = legalMoves_1.next(); !legalMoves_1_1.done; legalMoves_1_1 = legalMoves_1.next()) {
|
|
77
|
-
var move = legalMoves_1_1.value;
|
|
78
|
-
if (description === null || description === void 0 ? void 0 : description.canShortClick(move, location, context))
|
|
79
|
-
short++;
|
|
80
|
-
if (description === null || description === void 0 ? void 0 : description.canLongClick(move, location, context))
|
|
81
|
-
long++;
|
|
82
|
-
if (short > 1 && long > 1)
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
87
|
-
finally {
|
|
88
|
-
try {
|
|
89
|
-
if (legalMoves_1_1 && !legalMoves_1_1.done && (_a = legalMoves_1.return)) _a.call(legalMoves_1);
|
|
90
|
-
}
|
|
91
|
-
finally { if (e_1) throw e_1.error; }
|
|
92
|
-
}
|
|
93
|
-
return short === 1 || long === 1;
|
|
94
|
-
}, [legalMoves, context]);
|
|
95
|
-
var _b = (0, core_1.useDroppable)({
|
|
96
|
-
id: JSON.stringify(location),
|
|
97
|
-
disabled: !dropMoves.length,
|
|
98
|
-
data: location
|
|
99
|
-
}), isOver = _b.isOver, active = _b.active, setNodeRef = _b.setNodeRef;
|
|
100
|
-
var draggedItem = (0, DraggableMaterial_1.dataIsDisplayedItem)(active === null || active === void 0 ? void 0 : active.data.current) ? active === null || active === void 0 ? void 0 : active.data.current : undefined;
|
|
101
|
-
var draggedItemContext = (0, react_1.useMemo)(function () { return draggedItem ? __assign(__assign({}, context), draggedItem) : undefined; }, [draggedItem, context]);
|
|
102
|
-
var canDrop = (0, react_1.useMemo)(function () { return !!draggedItemContext && !!description && !!material && dropMoves.some(function (move) { var _a; return ((_a = material[draggedItemContext.type]) === null || _a === void 0 ? void 0 : _a.canDrag(move, draggedItemContext)) && description.canDrop(move, location, draggedItemContext); }); }, [draggedItemContext, dropMoves]);
|
|
103
|
-
var isAnimatingPlayerAction = (0, react_redux_1.useSelector)(function (state) { var _a; return (_a = state.actions) === null || _a === void 0 ? void 0 : _a.some(function (action) { return action.playerId === state.playerId && action.animation !== undefined; }); });
|
|
104
|
-
return ((0, jsx_runtime_1.jsx)(LocationComponent_1.LocationComponent, __assign({ ref: (0, react_merge_refs_1.mergeRefs)([ref, setNodeRef]), location: location, description: description, canDrop: canDrop, onShortClick: onShortClick, onLongClick: onLongClick, highlight: (canDrop && !isOver) || (!draggedItem && canClickToMove && !isAnimatingPlayerAction), css: canDrop && isOver && description.dropHighlight }, props)));
|
|
105
|
-
});
|
|
106
|
-
exports.SimpleDropArea.displayName = 'SimpleDropArea';
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __values = (this && this.__values) || function(o) {
|
|
25
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
26
|
+
if (m) return m.call(o);
|
|
27
|
+
if (o && typeof o.length === "number") return {
|
|
28
|
+
next: function () {
|
|
29
|
+
if (o && i >= o.length) o = void 0;
|
|
30
|
+
return { value: o && o[i++], done: !o };
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
34
|
+
};
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.SimpleDropArea = void 0;
|
|
37
|
+
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
38
|
+
/** @jsxImportSource @emotion/react */
|
|
39
|
+
var core_1 = require("@dnd-kit/core");
|
|
40
|
+
var react_1 = require("react");
|
|
41
|
+
var react_merge_refs_1 = require("react-merge-refs");
|
|
42
|
+
var react_redux_1 = require("react-redux");
|
|
43
|
+
var hooks_1 = require("../../../hooks");
|
|
44
|
+
var utilities_1 = require("../../../utilities");
|
|
45
|
+
var DraggableMaterial_1 = require("../DraggableMaterial");
|
|
46
|
+
var LocationComponent_1 = require("./LocationComponent");
|
|
47
|
+
exports.SimpleDropArea = (0, react_1.forwardRef)(function (_a, ref) {
|
|
48
|
+
var location = _a.location, description = _a.description, props = __rest(_a, ["location", "description"]);
|
|
49
|
+
var context = (0, hooks_1.useMaterialContext)();
|
|
50
|
+
var material = context.material;
|
|
51
|
+
var play = (0, hooks_1.usePlay)();
|
|
52
|
+
var legalMoves = (0, hooks_1.useLegalMoves)();
|
|
53
|
+
var dropMoves = (0, react_1.useMemo)(function () { return legalMoves.filter(function (move) { return description === null || description === void 0 ? void 0 : description.isMoveToLocation(move, location, context); }); }, [legalMoves, context]);
|
|
54
|
+
var onShortClick = (0, react_1.useMemo)(function () {
|
|
55
|
+
var move = (0, utilities_1.findIfUnique)(legalMoves, function (move) { return description.canShortClick(move, location, context); });
|
|
56
|
+
if (move !== undefined)
|
|
57
|
+
return function () { return play(move); };
|
|
58
|
+
var shortClickMove = description === null || description === void 0 ? void 0 : description.getShortClickMove(location, context);
|
|
59
|
+
if (shortClickMove)
|
|
60
|
+
return function () { return play(shortClickMove); };
|
|
61
|
+
var shortClickLocalMove = description === null || description === void 0 ? void 0 : description.getShortClickLocalMove(location, context);
|
|
62
|
+
if (shortClickLocalMove)
|
|
63
|
+
return function () { return play(shortClickLocalMove, { local: true }); };
|
|
64
|
+
}, [legalMoves, context]);
|
|
65
|
+
var onLongClick = (0, react_1.useMemo)(function () {
|
|
66
|
+
if (onShortClick)
|
|
67
|
+
return;
|
|
68
|
+
var move = (0, utilities_1.findIfUnique)(legalMoves, function (move) { return description.canLongClick(move, location, context); });
|
|
69
|
+
if (move !== undefined)
|
|
70
|
+
return function () { return play(move); };
|
|
71
|
+
}, [legalMoves, context]);
|
|
72
|
+
var canClickToMove = (0, react_1.useMemo)(function () {
|
|
73
|
+
var e_1, _a;
|
|
74
|
+
var short = 0, long = 0;
|
|
75
|
+
try {
|
|
76
|
+
for (var legalMoves_1 = __values(legalMoves), legalMoves_1_1 = legalMoves_1.next(); !legalMoves_1_1.done; legalMoves_1_1 = legalMoves_1.next()) {
|
|
77
|
+
var move = legalMoves_1_1.value;
|
|
78
|
+
if (description === null || description === void 0 ? void 0 : description.canShortClick(move, location, context))
|
|
79
|
+
short++;
|
|
80
|
+
if (description === null || description === void 0 ? void 0 : description.canLongClick(move, location, context))
|
|
81
|
+
long++;
|
|
82
|
+
if (short > 1 && long > 1)
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
87
|
+
finally {
|
|
88
|
+
try {
|
|
89
|
+
if (legalMoves_1_1 && !legalMoves_1_1.done && (_a = legalMoves_1.return)) _a.call(legalMoves_1);
|
|
90
|
+
}
|
|
91
|
+
finally { if (e_1) throw e_1.error; }
|
|
92
|
+
}
|
|
93
|
+
return short === 1 || long === 1;
|
|
94
|
+
}, [legalMoves, context]);
|
|
95
|
+
var _b = (0, core_1.useDroppable)({
|
|
96
|
+
id: JSON.stringify(location),
|
|
97
|
+
disabled: !dropMoves.length,
|
|
98
|
+
data: location
|
|
99
|
+
}), isOver = _b.isOver, active = _b.active, setNodeRef = _b.setNodeRef;
|
|
100
|
+
var draggedItem = (0, DraggableMaterial_1.dataIsDisplayedItem)(active === null || active === void 0 ? void 0 : active.data.current) ? active === null || active === void 0 ? void 0 : active.data.current : undefined;
|
|
101
|
+
var draggedItemContext = (0, react_1.useMemo)(function () { return draggedItem ? __assign(__assign({}, context), draggedItem) : undefined; }, [draggedItem, context]);
|
|
102
|
+
var canDrop = (0, react_1.useMemo)(function () { return !!draggedItemContext && !!description && !!material && dropMoves.some(function (move) { var _a; return ((_a = material[draggedItemContext.type]) === null || _a === void 0 ? void 0 : _a.canDrag(move, draggedItemContext)) && description.canDrop(move, location, draggedItemContext); }); }, [draggedItemContext, dropMoves]);
|
|
103
|
+
var isAnimatingPlayerAction = (0, react_redux_1.useSelector)(function (state) { var _a; return (_a = state.actions) === null || _a === void 0 ? void 0 : _a.some(function (action) { return action.playerId === state.playerId && action.animation !== undefined; }); });
|
|
104
|
+
return ((0, jsx_runtime_1.jsx)(LocationComponent_1.LocationComponent, __assign({ ref: (0, react_merge_refs_1.mergeRefs)([ref, setNodeRef]), location: location, description: description, canDrop: canDrop, onShortClick: onShortClick, onLongClick: onLongClick, highlight: (canDrop && !isOver) || (!draggedItem && canClickToMove && !isAnimatingPlayerAction), css: canDrop && isOver && description.dropHighlight }, props)));
|
|
105
|
+
});
|
|
106
|
+
exports.SimpleDropArea.displayName = 'SimpleDropArea';
|
|
107
107
|
//# sourceMappingURL=SimpleDropArea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleDropArea.js","sourceRoot":"","sources":["../../../../src/components/material/locations/SimpleDropArea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,sCAA4C;AAG5C,+BAA2D;AAC3D,qD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CACpG,CAAA;IAED,OAAO,CACL,uBAAC,qCAAiB,aAAC,GAAG,EAAE,IAAA,4BAAS,EAAC,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EACjG,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EACpD,SAAS,EAAE,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,IAAI,cAAc,IAAI,CAAC,uBAAuB,CAAC,EAC/F,GAAG,EAAE,OAAO,IAAI,MAAM,IAAI,WAAW,CAAC,aAAa,IAAM,KAAK,EAAG,CACrF,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './DropAreaDescription';
|
|
2
|
-
export * from './HexGridDropAreaDescription';
|
|
3
|
-
export * from './LocationDescription';
|
|
4
|
-
export * from './LocationsMask';
|
|
5
|
-
export * from './SimpleDropArea';
|
|
1
|
+
export * from './DropAreaDescription';
|
|
2
|
+
export * from './HexGridDropAreaDescription';
|
|
3
|
+
export * from './LocationDescription';
|
|
4
|
+
export * from './LocationsMask';
|
|
5
|
+
export * from './SimpleDropArea';
|
|
@@ -1,22 +1,22 @@
|
|
|
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("./DropAreaDescription"), exports);
|
|
18
|
-
__exportStar(require("./HexGridDropAreaDescription"), exports);
|
|
19
|
-
__exportStar(require("./LocationDescription"), exports);
|
|
20
|
-
__exportStar(require("./LocationsMask"), exports);
|
|
21
|
-
__exportStar(require("./SimpleDropArea"), exports);
|
|
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("./DropAreaDescription"), exports);
|
|
18
|
+
__exportStar(require("./HexGridDropAreaDescription"), exports);
|
|
19
|
+
__exportStar(require("./LocationDescription"), exports);
|
|
20
|
+
__exportStar(require("./LocationsMask"), exports);
|
|
21
|
+
__exportStar(require("./SimpleDropArea"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|