@rpg-engine/long-bow 0.8.193 → 0.8.195
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/Abstractions/ModalPortal.d.ts +6 -0
- package/dist/components/Abstractions/SlotsContainer.d.ts +18 -0
- package/dist/components/Arrow/SelectArrow.d.ts +9 -0
- package/dist/components/AsyncDropdown.d.ts +14 -0
- package/dist/components/Button.d.ts +12 -0
- package/dist/components/Character/CharacterSelection.d.ts +13 -0
- package/dist/components/Character/CharacterSkinSelectionModal.d.ts +12 -0
- package/dist/components/Character/SkinSelectionGrid.d.ts +11 -0
- package/dist/components/CharacterStatus/CharacterStatus.d.ts +9 -0
- package/dist/components/Chat/Chat.d.ts +25 -0
- package/dist/components/ChatRevamp/ChatContent.d.ts +28 -0
- package/dist/components/ChatRevamp/ChatRevamp.d.ts +3 -0
- package/dist/components/ChatRevamp/ChatTabs.d.ts +11 -0
- package/dist/components/ChatRevamp/ExpandButton.d.ts +7 -0
- package/dist/components/ChatRevamp/RecentChats.d.ts +17 -0
- package/dist/components/ChatRevamp/SearchCharacter.d.ts +14 -0
- package/dist/components/ChatRevamp/types.d.ts +34 -0
- package/dist/components/Chatdeprecated/ChatDeprecated.d.ts +13 -0
- package/dist/components/CheckButton.d.ts +13 -0
- package/dist/components/CheckItem.d.ts +7 -0
- package/dist/components/CircularController/CircularController.d.ts +14 -0
- package/dist/components/ConfirmModal.d.ts +7 -0
- package/dist/components/CraftBook/CraftBook.d.ts +20 -0
- package/dist/components/CraftBook/CraftingRecipe.d.ts +14 -0
- package/dist/components/CraftBook/CraftingTooltip.d.ts +12 -0
- package/dist/components/CraftBook/MockItems.d.ts +2 -0
- package/dist/components/CraftBook/components/CraftBookHeader.d.ts +9 -0
- package/dist/components/CraftBook/components/CraftBookPagination.d.ts +0 -0
- package/dist/components/CraftBook/components/CraftBookSearch.d.ts +0 -0
- package/dist/components/CraftBook/hooks/useCraftBookFilters.d.ts +9 -0
- package/dist/components/CraftBook/hooks/useFilteredItems.d.ts +9 -0
- package/dist/components/CraftBook/hooks/usePagination.d.ts +13 -0
- package/dist/components/CraftBook/hooks/useResponsiveSize.d.ts +6 -0
- package/dist/components/CraftBook/utils/calculateMaxCraftable.d.ts +2 -0
- package/dist/components/CraftBook/utils/modifyString.d.ts +1 -0
- package/dist/components/DCWallet/DCHistoryPanel.d.ts +18 -0
- package/dist/components/DCWallet/DCTransferPanel.d.ts +21 -0
- package/dist/components/DCWallet/DCWalletContent.d.ts +27 -0
- package/dist/components/DCWallet/DCWalletModal.d.ts +6 -0
- package/dist/components/DPad/JoystickDPad.d.ts +23 -0
- package/dist/components/DailyTasks/DailyRewardsTooltip.d.ts +11 -0
- package/dist/components/DailyTasks/DailyTaskItem.d.ts +15 -0
- package/dist/components/DailyTasks/DailyTasks.d.ts +15 -0
- package/dist/components/DailyTasks/GlobalDailyProgress.d.ts +9 -0
- package/dist/components/DailyTasks/TaskProgress.d.ts +11 -0
- package/dist/components/DailyTasks/TaskProgressDetails.d.ts +7 -0
- package/dist/components/DailyTasks/utils/dailyTasks.utils.d.ts +8 -0
- package/dist/components/DraggableContainer.d.ts +27 -0
- package/dist/components/Dropdown.d.ts +13 -0
- package/dist/components/DropdownSelectorContainer.d.ts +13 -0
- package/dist/components/Equipment/EquipmentSet.d.ts +27 -0
- package/dist/components/Friends/FriendList.d.ts +22 -0
- package/dist/components/Friends/SearchFriend.d.ts +14 -0
- package/dist/components/HistoryDialog.d.ts +14 -0
- package/dist/components/Image/ZoomableImage.d.ts +5 -0
- package/dist/components/ImageCarousel/ImageCarousel.d.ts +12 -0
- package/dist/components/ImageCarousel/SimpleImageCarousel.d.ts +9 -0
- package/dist/components/InformationCenter/InformationCenter.d.ts +20 -0
- package/dist/components/InformationCenter/InformationCenterCell.d.ts +14 -0
- package/dist/components/InformationCenter/InformationCenterTabView.d.ts +19 -0
- package/dist/components/InformationCenter/sections/bestiary/BestiaryAdvancedFilters.d.ts +13 -0
- package/dist/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.d.ts +15 -0
- package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.d.ts +15 -0
- package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCTooltip.d.ts +9 -0
- package/dist/components/InformationCenter/sections/faq/InformationCenterFaqSection.d.ts +9 -0
- package/dist/components/InformationCenter/sections/items/InformationCenterItemDetails.d.ts +11 -0
- package/dist/components/InformationCenter/sections/items/InformationCenterItemTooltip.d.ts +7 -0
- package/dist/components/InformationCenter/sections/items/InformationCenterItemsSection.d.ts +13 -0
- package/dist/components/InformationCenter/sections/items/ItemsAdvancedFilters.d.ts +11 -0
- package/dist/components/InformationCenter/sections/tutorials/InformationCenterTutorialsSection.d.ts +9 -0
- package/dist/components/InformationCenter/shared/BaseInformationDetails.d.ts +10 -0
- package/dist/components/Input.d.ts +5 -0
- package/dist/components/InputRadio.d.ts +10 -0
- package/dist/components/InternalTabs/InternalTabs.d.ts +18 -0
- package/dist/components/Item/Cards/ItemInfo.d.ts +10 -0
- package/dist/components/Item/Cards/ItemInfoDisplay.d.ts +10 -0
- package/dist/components/Item/Cards/ItemInfoWrapper.d.ts +12 -0
- package/dist/components/Item/Cards/ItemTooltip.d.ts +9 -0
- package/dist/components/Item/Cards/MobileItemTooltip.d.ts +18 -0
- package/dist/components/Item/Inventory/DraggedItem.d.ts +8 -0
- package/dist/components/Item/Inventory/ErrorBoundary.d.ts +14 -0
- package/dist/components/Item/Inventory/ItemContainer.d.ts +35 -0
- package/dist/components/Item/Inventory/ItemContainerTypes.d.ts +6 -0
- package/dist/components/Item/Inventory/ItemGem.d.ts +11 -0
- package/dist/components/Item/Inventory/ItemPropertyColorSelector.d.ts +14 -0
- package/dist/components/Item/Inventory/ItemPropertySimpleHandler.d.ts +14 -0
- package/dist/components/Item/Inventory/ItemQuantitySelector.d.ts +7 -0
- package/dist/components/Item/Inventory/ItemQuantitySelectorModal.d.ts +8 -0
- package/dist/components/Item/Inventory/ItemSlot.d.ts +56 -0
- package/dist/components/Item/Inventory/ItemSlotQty/ItemSlotQty.d.ts +9 -0
- package/dist/components/Item/Inventory/ItemSlotQuality.d.ts +2 -0
- package/dist/components/Item/Inventory/ItemSlotRarity.d.ts +2 -0
- package/dist/components/Item/Inventory/ItemSlotRenderer.d.ts +11 -0
- package/dist/components/Item/Inventory/ItemSlotTooltips.d.ts +12 -0
- package/dist/components/Item/Inventory/context/ItemSlotDetailsContext.d.ts +30 -0
- package/dist/components/Item/Inventory/context/ItemSlotDraggingContext.d.ts +22 -0
- package/dist/components/Item/Inventory/itemContainerHelper.d.ts +6 -0
- package/dist/components/Leaderboard/Leaderboard.d.ts +13 -0
- package/dist/components/Leaderboard/LeaderboardTable.d.ts +7 -0
- package/dist/components/ListMenu.d.ts +13 -0
- package/dist/components/LoginStreak/LoginStreakPanel.d.ts +17 -0
- package/dist/components/Marketplace/BlueprintSearchModal.d.ts +19 -0
- package/dist/components/Marketplace/BlueprintTable.d.ts +9 -0
- package/dist/components/Marketplace/BuyOrderDetailsModal.d.ts +19 -0
- package/dist/components/Marketplace/BuyOrderPanel.d.ts +26 -0
- package/dist/components/Marketplace/BuyOrderRows.d.ts +24 -0
- package/dist/components/Marketplace/BuyPanel.d.ts +36 -0
- package/dist/components/Marketplace/CharacterDetailModal.d.ts +17 -0
- package/dist/components/Marketplace/CharacterListingForm.d.ts +15 -0
- package/dist/components/Marketplace/CharacterListingModal.d.ts +17 -0
- package/dist/components/Marketplace/CharacterMarketplacePanel.d.ts +22 -0
- package/dist/components/Marketplace/CharacterMarketplaceRows.d.ts +26 -0
- package/dist/components/Marketplace/GroupedRowContainer.d.ts +7 -0
- package/dist/components/Marketplace/HistoryPanel.d.ts +18 -0
- package/dist/components/Marketplace/ManagmentPanel.d.ts +21 -0
- package/dist/components/Marketplace/Marketplace.d.ts +96 -0
- package/dist/components/Marketplace/MarketplaceBuyModal.d.ts +10 -0
- package/dist/components/Marketplace/MarketplaceRows.d.ts +30 -0
- package/dist/components/Marketplace/MarketplaceSettingsPanel.d.ts +8 -0
- package/dist/components/Marketplace/MyCharacterListingsPanel.d.ts +22 -0
- package/dist/components/Marketplace/filters/index.d.ts +8 -0
- package/dist/components/Multitab/Tab.d.ts +9 -0
- package/dist/components/Multitab/TabBody.d.ts +13 -0
- package/dist/components/Multitab/TabsContainer.d.ts +28 -0
- package/dist/components/NPCDialog/NPCDialog.d.ts +16 -0
- package/dist/components/NPCDialog/NPCDialogText.d.ts +11 -0
- package/dist/components/NPCDialog/NPCMultiDialog.d.ts +15 -0
- package/dist/components/NPCDialog/QuestionDialog/QuestionDialog.d.ts +17 -0
- package/dist/components/Pager.d.ts +10 -0
- package/dist/components/PartySystem/PartyCreate/PartyCreate.d.ts +6 -0
- package/dist/components/PartySystem/PartyCreate/index.d.ts +1 -0
- package/dist/components/PartySystem/PartyDashboard/PartyDashboard.d.ts +6 -0
- package/dist/components/PartySystem/PartyDashboard/PartyRows.d.ts +11 -0
- package/dist/components/PartySystem/PartyDashboard/index.d.ts +2 -0
- package/dist/components/PartySystem/PartyInvite/PartyInvite.d.ts +6 -0
- package/dist/components/PartySystem/PartyInvite/PlayersRows.d.ts +9 -0
- package/dist/components/PartySystem/PartyInvite/index.d.ts +2 -0
- package/dist/components/PartySystem/PartyManager/PartyManager.d.ts +9 -0
- package/dist/components/PartySystem/PartyManager/PartyManagerRows.d.ts +12 -0
- package/dist/components/PartySystem/PartyManager/index.d.ts +2 -0
- package/dist/components/PartySystem/index.d.ts +5 -0
- package/dist/components/PartySystem/mockedConstantes/index.d.ts +1 -0
- package/dist/components/PartySystem/mockedConstantes/mockedValues.d.ts +9 -0
- package/dist/components/ProgressBar.d.ts +12 -0
- package/dist/components/PropertySelect/PropertySelect.d.ts +13 -0
- package/dist/components/QuantitySelector/QuantitySelector.d.ts +9 -0
- package/dist/components/QuantitySelector/QuantitySelectorModal.d.ts +14 -0
- package/dist/components/Quests/QuestInfo/QuestInfo.d.ts +15 -0
- package/dist/components/Quests/QuestList.d.ts +16 -0
- package/dist/components/RPGUI/RPGUIContainer.d.ts +15 -0
- package/dist/components/RPGUI/RPGUIForceRenderStart.d.ts +9 -0
- package/dist/components/RPGUI/RPGUIOverrides.d.ts +6 -0
- package/dist/components/RPGUI/RPGUIRoot.d.ts +9 -0
- package/dist/components/RPGUI/RPGUIScrollbar.d.ts +6 -0
- package/dist/components/RadioButton.d.ts +11 -0
- package/dist/components/RadioInput/RadioButton.d.ts +8 -0
- package/dist/components/RadioInput/RadioInput.d.ts +13 -0
- package/dist/components/RadioInput/instruments.d.ts +4 -0
- package/dist/components/RangeSlider.d.ts +15 -0
- package/dist/components/ReadOnlyCheckItem.d.ts +7 -0
- package/dist/components/RelativeListMenu.d.ts +17 -0
- package/dist/components/ScrollList.d.ts +15 -0
- package/dist/components/ShopModal/ShopModal.d.ts +7 -0
- package/dist/components/Shortcuts/Shortcuts.d.ts +13 -0
- package/dist/components/Shortcuts/ShortcutsSetter.d.ts +12 -0
- package/dist/components/Shortcuts/SingleShortcut.d.ts +1 -0
- package/dist/components/Shortcuts/useShortcutCooldown.d.ts +4 -0
- package/dist/components/SimpleProgressBar.d.ts +7 -0
- package/dist/components/SkillInfoOverlay.d.ts +8 -0
- package/dist/components/SkillProgressBar.d.ts +18 -0
- package/dist/components/SkillsContainer.d.ts +11 -0
- package/dist/components/SocialModal/SocialModal.d.ts +6 -0
- package/dist/components/Spellbook/Spell.d.ts +15 -0
- package/dist/components/Spellbook/Spellbook.d.ts +22 -0
- package/dist/components/Spellbook/cards/MobileSpellTooltip.d.ts +15 -0
- package/dist/components/Spellbook/cards/SpellInfo.d.ts +7 -0
- package/dist/components/Spellbook/cards/SpellInfoDisplay.d.ts +7 -0
- package/dist/components/Spellbook/cards/SpellInfoWrapper.d.ts +10 -0
- package/dist/components/Spellbook/cards/SpellTooltip.d.ts +6 -0
- package/dist/components/Spellbook/constants.d.ts +3 -0
- package/dist/components/Spellbook/mockSpells.d.ts +2 -0
- package/dist/components/StaticBook/StaticBook.d.ts +7 -0
- package/dist/components/Stepper.d.ts +22 -0
- package/dist/components/Store/CartView.d.ts +39 -0
- package/dist/components/Store/CountdownTimer.d.ts +7 -0
- package/dist/components/Store/FeaturedBanner.d.ts +23 -0
- package/dist/components/Store/MetadataCollector.d.ts +9 -0
- package/dist/components/Store/PaymentMethodModal.d.ts +11 -0
- package/dist/components/Store/PurchaseSuccess.d.ts +18 -0
- package/dist/components/Store/Store.d.ts +77 -0
- package/dist/components/Store/StoreBadges.d.ts +13 -0
- package/dist/components/Store/StoreCharacterSkinRow.d.ts +12 -0
- package/dist/components/Store/StoreItemDetails.d.ts +17 -0
- package/dist/components/Store/StoreItemRow.d.ts +25 -0
- package/dist/components/Store/TrustBar.d.ts +9 -0
- package/dist/components/Store/hooks/useStoreCart.d.ts +20 -0
- package/dist/components/Store/hooks/useStoreMetadata.d.ts +15 -0
- package/dist/components/Store/sections/StoreItemsSection.d.ts +27 -0
- package/dist/components/Store/sections/StorePacksSection.d.ts +24 -0
- package/dist/components/Table/Table.d.ts +10 -0
- package/dist/components/Text/HighlightedText.d.ts +6 -0
- package/dist/components/TextArea.d.ts +4 -0
- package/dist/components/TimeWidget/DayNightPeriod/DayNightPeriod.d.ts +6 -0
- package/dist/components/TimeWidget/TimeWidget.d.ts +9 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/TradingMenu/PremiumLabel.d.ts +7 -0
- package/dist/components/TradingMenu/TradingItemRow.d.ts +13 -0
- package/dist/components/TradingMenu/TradingMenu.d.ts +14 -0
- package/dist/components/TradingMenu/items.mock.d.ts +14 -0
- package/dist/components/TradingMenu/useTradingGold.d.ts +16 -0
- package/dist/components/Truncate.d.ts +7 -0
- package/dist/components/Tutorial/TutorialStepper.d.ts +16 -0
- package/dist/components/itemSelector/GemSelector.d.ts +11 -0
- package/dist/components/itemSelector/ItemSelector.d.ts +14 -0
- package/dist/components/shared/AdvancedFilters/AdvancedFilters.d.ts +24 -0
- package/dist/components/shared/BaseTooltip.d.ts +12 -0
- package/dist/components/shared/CTAButton/CTAButton.d.ts +14 -0
- package/dist/components/shared/Card/Card.d.ts +14 -0
- package/dist/components/shared/Collapsible/Collapsible.d.ts +9 -0
- package/dist/components/shared/Column.d.ts +8 -0
- package/dist/components/shared/CustomScrollbar.d.ts +9 -0
- package/dist/components/shared/DCRateStrip.d.ts +2 -0
- package/dist/components/shared/Divider/Divider.d.ts +7 -0
- package/dist/components/shared/Ellipsis.d.ts +10 -0
- package/dist/components/shared/ItemRowWrapper.d.ts +3 -0
- package/dist/components/shared/LabelPill/LabelPill.d.ts +9 -0
- package/dist/components/shared/LabelPill/index.d.ts +1 -0
- package/dist/components/shared/PaginatedContent/PaginatedContent.d.ts +27 -0
- package/dist/components/shared/Pagination/Pagination.d.ts +9 -0
- package/dist/components/shared/Portal/Portal.d.ts +6 -0
- package/dist/components/shared/RadioOption.d.ts +22 -0
- package/dist/components/shared/ScalableContainer.d.ts +7 -0
- package/dist/components/shared/ScrollableContent/ScrollableContent.d.ts +23 -0
- package/dist/components/shared/SearchBar/SearchBar.d.ts +10 -0
- package/dist/components/shared/SearchHeader/SearchHeader.d.ts +18 -0
- package/dist/components/shared/SegmentedToggle/SegmentedToggle.d.ts +12 -0
- package/dist/components/shared/SegmentedToggle/index.d.ts +1 -0
- package/dist/components/shared/ShoppingCart/CartCard.d.ts +14 -0
- package/dist/components/shared/ShoppingCart/CartCardHorizontal.d.ts +13 -0
- package/dist/components/shared/SimpleTooltip.d.ts +12 -0
- package/dist/components/shared/SpriteFromAtlas.d.ts +20 -0
- package/dist/components/shared/Tabs/Tabs.d.ts +13 -0
- package/dist/components/shared/Tabs/index.d.ts +1 -0
- package/dist/components/typography/DynamicText.d.ts +8 -0
- package/dist/constants/skillInfoData.d.ts +8 -0
- package/dist/constants/uiBreakpoints.d.ts +2 -0
- package/dist/constants/uiColors.d.ts +22 -0
- package/dist/constants/uiDevices.d.ts +1 -0
- package/dist/constants/uiFonts.d.ts +12 -0
- package/dist/hooks/useCharacterSkinNavigation.d.ts +7 -0
- package/dist/hooks/useChat.d.ts +19 -0
- package/dist/hooks/useCursorPosition.d.ts +6 -0
- package/dist/hooks/useEventListener.d.ts +1 -0
- package/dist/hooks/useLocalStorage.d.ts +1 -0
- package/dist/hooks/useOutsideAlerter.d.ts +1 -0
- package/dist/hooks/usePackFiltering.d.ts +7 -0
- package/dist/hooks/useQuantityControl.d.ts +10 -0
- package/dist/hooks/useScrollOnDrag.d.ts +11 -0
- package/dist/hooks/useShortcuts.d.ts +12 -0
- package/dist/hooks/useStoreFiltering.d.ts +11 -0
- package/dist/hooks/useTapAndHold.d.ts +10 -0
- package/dist/hooks/useTooltipPosition.d.ts +15 -0
- package/dist/hooks/useTouchTarget.d.ts +5 -0
- package/dist/index.d.ts +97 -0
- package/dist/libs/CastingTypeHelper.d.ts +1 -0
- package/dist/libs/StringHelpers.d.ts +1 -0
- package/dist/libs/itemCounter.d.ts +2 -0
- package/dist/long-bow.cjs.development.js +74400 -0
- package/dist/long-bow.cjs.development.js.map +1 -0
- package/dist/long-bow.esm.js +74264 -0
- package/dist/long-bow.esm.js.map +1 -0
- package/dist/mocks/dailyTasks.mocks.d.ts +2 -0
- package/dist/mocks/equipmentSet.mocks.d.ts +16 -0
- package/dist/mocks/informationCenter.mocks.d.ts +5 -0
- package/dist/mocks/itemContainer.mocks.d.ts +3 -0
- package/dist/mocks/leaderboard.mocks.d.ts +4 -0
- package/dist/mocks/shortcut.mocks.d.ts +19 -0
- package/dist/mocks/skills.mocks.d.ts +2 -0
- package/dist/stories/Character/SkinSelectionGrid.stories.d.ts +1 -0
- package/dist/stories/Character/character/CharacterSelection.stories.d.ts +4 -0
- package/dist/stories/Character/character/CharacterSkinSelectionModal.stories.d.ts +1 -0
- package/dist/stories/Character/character/CharacterStatus.stories.d.ts +5 -0
- package/dist/stories/Character/equipment/EquipmentSet.stories.d.ts +5 -0
- package/dist/stories/Character/skills/SkillProgressBar.stories.d.ts +5 -0
- package/dist/stories/Character/skills/SkillsContainer.stories.d.ts +5 -0
- package/dist/stories/Features/chat/Chat.stories.d.ts +5 -0
- package/dist/stories/Features/chat/ChatDeprecated.stories.d.ts +5 -0
- package/dist/stories/Features/chat/ChatRevamp.stories.d.ts +9 -0
- package/dist/stories/Features/controller/CircullarController.stories.d.ts +5 -0
- package/dist/stories/Features/craftbook/CraftBook.stories.d.ts +8 -0
- package/dist/stories/Features/dailyTasks/DailyTasks.stories.d.ts +1 -0
- package/dist/stories/Features/friend/FriendList.stories.d.ts +5 -0
- package/dist/stories/Features/leaderboard/Leaderboard.stories.d.ts +7 -0
- package/dist/stories/Features/loginStreak/LoginStreakPanel.stories.d.ts +1 -0
- package/dist/stories/Features/marketplace/BlueprintSearchModal.stories.d.ts +1 -0
- package/dist/stories/Features/marketplace/BuyOrderPanel.stories.d.ts +1 -0
- package/dist/stories/Features/marketplace/BuyOrderRows.stories.d.ts +1 -0
- package/dist/stories/Features/marketplace/CharacterDetailModal.stories.d.ts +7 -0
- package/dist/stories/Features/marketplace/CharacterListingModal.stories.d.ts +8 -0
- package/dist/stories/Features/marketplace/CharacterMarketplace.stories.d.ts +11 -0
- package/dist/stories/Features/marketplace/HistoryPanel.stories.d.ts +1 -0
- package/dist/stories/Features/party/PartyCreate.stories.d.ts +5 -0
- package/dist/stories/Features/party/PartyDashboard.stories.d.ts +5 -0
- package/dist/stories/Features/party/PartyInvite.stories.d.ts +5 -0
- package/dist/stories/Features/party/PartyManager.stories.d.ts +6 -0
- package/dist/stories/Features/quest/QuestInfo.stories.d.ts +5 -0
- package/dist/stories/Features/quest/QuestList.stories.d.ts +8 -0
- package/dist/stories/Features/shortcuts/Shortcuts.stories.d.ts +5 -0
- package/dist/stories/Features/spells/SpellInfoDisplay.stories.d.ts +8 -0
- package/dist/stories/Features/spells/Spellbook.stories.d.ts +5 -0
- package/dist/stories/Features/store/FeaturedBanner.stories.d.ts +1 -0
- package/dist/stories/Features/store/MetadataCollector.stories.d.ts +1 -0
- package/dist/stories/Features/store/PurchaseSuccess.stories.d.ts +1 -0
- package/dist/stories/Features/store/Store.stories.d.ts +1 -0
- package/dist/stories/Features/store/StoreBadges.stories.d.ts +1 -0
- package/dist/stories/Features/store/TrustBar.stories.d.ts +1 -0
- package/dist/stories/Features/trading/ItemTradingComponent.stories.d.ts +5 -0
- package/dist/stories/Features/trading/Marketplace.stories.d.ts +4 -0
- package/dist/stories/Features/trading/MarketplaceRows.stories.d.ts +6 -0
- package/dist/stories/Features/trading/TradingMenu.stories.d.ts +5 -0
- package/dist/stories/Features/weather/DayNightPeriod.stories.d.ts +5 -0
- package/dist/stories/Features/weather/TimeWidget.stories.d.ts +5 -0
- package/dist/stories/Item/ItemInfoDisplay.stories.d.ts +8 -0
- package/dist/stories/NPC/dialog/NPCDialog.stories.d.ts +7 -0
- package/dist/stories/NPC/dialog/NPCHistoryDialog.stories.d.ts +5 -0
- package/dist/stories/NPC/dialog/NPCMultiDialog.stories.d.ts +5 -0
- package/dist/stories/UI/RPGUI/RPGUIContainers.stories.d.ts +5 -0
- package/dist/stories/UI/books/StaticBook.stories.d.ts +5 -0
- package/dist/stories/UI/buttonsAndInputs/Button.stories.d.ts +5 -0
- package/dist/stories/UI/buttonsAndInputs/CTAButton.stories.d.ts +18 -0
- package/dist/stories/UI/buttonsAndInputs/CheckItem.stories.d.ts +7 -0
- package/dist/stories/UI/buttonsAndInputs/RadioButton.stories.d.ts +5 -0
- package/dist/stories/UI/buttonsAndInputs/RadioInput.stories.d.ts +5 -0
- package/dist/stories/UI/buttonsAndInputs/SegmentedToggle.stories.d.ts +6 -0
- package/dist/stories/UI/containers/DraggableContainer.stories.d.ts +5 -0
- package/dist/stories/UI/containers/ItemContainer.stories.d.ts +11 -0
- package/dist/stories/UI/dropdownsAndSelectors/Arrow.stories.d.ts +5 -0
- package/dist/stories/UI/dropdownsAndSelectors/Dropdown.stories.d.ts +5 -0
- package/dist/stories/UI/dropdownsAndSelectors/DropdownSelectorContainer.stories.d.ts +5 -0
- package/dist/stories/UI/dropdownsAndSelectors/GemSelector.stories.d.ts +5 -0
- package/dist/stories/UI/dropdownsAndSelectors/ItemPropertyColorSelector.stories.d.ts +6 -0
- package/dist/stories/UI/dropdownsAndSelectors/ItemQuantitySelector.stories.d.ts +5 -0
- package/dist/stories/UI/dropdownsAndSelectors/ItemSelector.stories.d.ts +4 -0
- package/dist/stories/UI/dropdownsAndSelectors/PropertySelect.stories.d.ts +5 -0
- package/dist/stories/UI/images/ImageCarousel.stories.d.ts +6 -0
- package/dist/stories/UI/images/SimpleImageCarousel.stories.d.ts +5 -0
- package/dist/stories/UI/info/InformationCenter.stories.d.ts +7 -0
- package/dist/stories/UI/joystick/JoystickDPad.stories.d.ts +6 -0
- package/dist/stories/UI/lists/ListMenu.stories.d.ts +5 -0
- package/dist/stories/UI/lists/ScrollList.stories.d.ts +5 -0
- package/dist/stories/UI/modals/ConfirmModal.stories.d.ts +5 -0
- package/dist/stories/UI/modals/ShopModal.stories.d.ts +5 -0
- package/dist/stories/UI/progress/ProgressBar.stories.d.ts +8 -0
- package/dist/stories/UI/progress/SimpleProgressBar.stories.d.ts +5 -0
- package/dist/stories/UI/sliders/RangeSlider.stories.d.ts +5 -0
- package/dist/stories/UI/steppers/Stepper.stories.d.ts +5 -0
- package/dist/stories/UI/steppers/TutorialStepper.stories.d.ts +5 -0
- package/dist/stories/UI/tabs/InternalTabs.stories.d.ts +7 -0
- package/dist/stories/UI/tabs/Multitab.stories.d.ts +6 -0
- package/dist/stories/UI/text/LabelPill.stories.d.ts +7 -0
- package/dist/stories/UI/text/Text.stories.d.ts +7 -0
- package/dist/stories/shared/RadioOption.stories.d.ts +8 -0
- package/dist/types/eventTypes.d.ts +4 -0
- package/dist/utils/atlasUtils.d.ts +2 -0
- package/dist/utils/colorUtils.d.ts +1 -0
- package/dist/utils/itemUtils.d.ts +8 -0
- package/package.json +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ISpell } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ISpellProps {
|
|
4
|
+
atlasJSON: any;
|
|
5
|
+
atlasIMG: any;
|
|
6
|
+
charMana: number;
|
|
7
|
+
charMagicLevel: number;
|
|
8
|
+
charSkillLevels?: Record<string, number>;
|
|
9
|
+
onPointerUp?: (spellKey: string) => void;
|
|
10
|
+
isSettingShortcut?: boolean;
|
|
11
|
+
spellKey: string;
|
|
12
|
+
spell: ISpell;
|
|
13
|
+
activeCooldown?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const Spell: React.FC<ISpellProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IShortcut, ISpell } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ISpellbookProps {
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
onInputFocus?: () => void;
|
|
6
|
+
onInputBlur?: () => void;
|
|
7
|
+
spells: ISpell[];
|
|
8
|
+
magicLevel: number;
|
|
9
|
+
mana: number;
|
|
10
|
+
charSkillLevels?: Record<string, number>;
|
|
11
|
+
onSpellClick: (spellKey: string) => void;
|
|
12
|
+
setSpellShortcut: (key: string, index: number) => void;
|
|
13
|
+
shortcuts: IShortcut[];
|
|
14
|
+
removeShortcut: (index: number) => void;
|
|
15
|
+
atlasIMG: any;
|
|
16
|
+
atlasJSON: any;
|
|
17
|
+
iconAtlasIMG?: any;
|
|
18
|
+
iconAtlasJSON?: any;
|
|
19
|
+
scale?: number;
|
|
20
|
+
spellCooldowns?: Record<string, number>;
|
|
21
|
+
}
|
|
22
|
+
export declare const Spellbook: React.FC<ISpellbookProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ISpell } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IListMenuOption {
|
|
4
|
+
id: string;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export interface MobileSpellTooltipProps {
|
|
8
|
+
spell: ISpell;
|
|
9
|
+
closeTooltip: () => void;
|
|
10
|
+
scale?: number;
|
|
11
|
+
options?: IListMenuOption[];
|
|
12
|
+
onSelected?: (selectedOptionId: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const MobileSpellTooltip: React.FC<MobileSpellTooltipProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ISpell } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ISpellInfoWrapperProps {
|
|
4
|
+
spell: ISpell;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
scale?: number;
|
|
7
|
+
holdTouchDuration?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const SpellInfoWrapper: React.FC<ISpellInfoWrapperProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IStep {
|
|
3
|
+
component: React.ReactNode;
|
|
4
|
+
id: number;
|
|
5
|
+
validate?: () => boolean | Promise<boolean>;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
}
|
|
8
|
+
interface IStepperProps {
|
|
9
|
+
steps: IStep[];
|
|
10
|
+
finalCTAButton?: {
|
|
11
|
+
label: string;
|
|
12
|
+
onClick: (() => void) | (() => Promise<void>) | ((e: any) => Promise<void>);
|
|
13
|
+
};
|
|
14
|
+
onError?: (message: string) => void;
|
|
15
|
+
onStepChange?: (stepIndex: number) => void;
|
|
16
|
+
useSideArrows?: boolean;
|
|
17
|
+
styles?: {
|
|
18
|
+
stepperProgressColor?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare const Stepper: React.FC<IStepperProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IProductBlueprint } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ITrustSignal } from './TrustBar';
|
|
4
|
+
interface ICartItem {
|
|
5
|
+
item: IProductBlueprint;
|
|
6
|
+
quantity: number;
|
|
7
|
+
metadata?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
export interface ICartViewProps {
|
|
10
|
+
cartItems: ICartItem[];
|
|
11
|
+
onRemoveFromCart: (itemKey: string) => void;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onPurchase: () => Promise<boolean>;
|
|
14
|
+
atlasJSON: Record<string, any>;
|
|
15
|
+
atlasIMG: string;
|
|
16
|
+
paymentMethodLabel?: string;
|
|
17
|
+
trustSignals?: ITrustSignal[];
|
|
18
|
+
onCloseStore?: () => void;
|
|
19
|
+
/** Called when user taps the "Buy DC" nudge — open wallet/DC purchase flow */
|
|
20
|
+
onBuyDC?: () => void;
|
|
21
|
+
/** Fires when user taps the pay button — before the purchase resolves */
|
|
22
|
+
onCheckoutStart?: (items: Array<{
|
|
23
|
+
key: string;
|
|
24
|
+
name: string;
|
|
25
|
+
quantity: number;
|
|
26
|
+
}>, total: number) => void;
|
|
27
|
+
/** Fires after a successful purchase */
|
|
28
|
+
onPurchaseSuccess?: (items: Array<{
|
|
29
|
+
key: string;
|
|
30
|
+
name: string;
|
|
31
|
+
quantity: number;
|
|
32
|
+
}>, total: number) => void;
|
|
33
|
+
/** Fires when a purchase fails */
|
|
34
|
+
onPurchaseError?: (error: string) => void;
|
|
35
|
+
/** Currency symbol to display (e.g. "$" for USD, "R$" for BRL). Defaults to "$". */
|
|
36
|
+
currencySymbol?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const CartView: React.FC<ICartViewProps>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IFeaturedItem {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
imageUrl?: string | {
|
|
7
|
+
src: string;
|
|
8
|
+
default?: string;
|
|
9
|
+
};
|
|
10
|
+
texturePath?: string;
|
|
11
|
+
price: number;
|
|
12
|
+
originalPrice?: number;
|
|
13
|
+
endsAt?: string;
|
|
14
|
+
badge?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IFeaturedBannerProps {
|
|
17
|
+
items: IFeaturedItem[];
|
|
18
|
+
atlasJSON?: any;
|
|
19
|
+
atlasIMG?: string;
|
|
20
|
+
onSelectItem: (item: IFeaturedItem) => void;
|
|
21
|
+
onQuickBuy?: (item: IFeaturedItem) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const FeaturedBanner: React.FC<IFeaturedBannerProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MetadataType } from "@rpg-engine/shared";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface IMetadataCollectorProps {
|
|
4
|
+
metadataType: MetadataType;
|
|
5
|
+
config: Record<string, any>;
|
|
6
|
+
onCollect: (metadata: Record<string, any>) => void;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const MetadataCollector: React.FC<IMetadataCollectorProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IPaymentMethodModalProps {
|
|
3
|
+
dcBalance: number;
|
|
4
|
+
dcRequired?: number;
|
|
5
|
+
onPayWithDC: () => void;
|
|
6
|
+
onPayWithCard: () => void;
|
|
7
|
+
onPayWithPix: () => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
showPix?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const PaymentMethodModal: React.FC<IPaymentMethodModalProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MetadataType } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface IPurchaseSuccessItem {
|
|
4
|
+
name: string;
|
|
5
|
+
texturePath: string;
|
|
6
|
+
quantity: number;
|
|
7
|
+
metadataType?: MetadataType;
|
|
8
|
+
metadata?: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
export interface IPurchaseSuccessProps {
|
|
11
|
+
items: IPurchaseSuccessItem[];
|
|
12
|
+
totalPrice: number;
|
|
13
|
+
atlasJSON: Record<string, any>;
|
|
14
|
+
atlasIMG: string;
|
|
15
|
+
onContinueShopping: () => void;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const PurchaseSuccess: React.FC<IPurchaseSuccessProps>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { IItemPack, IPurchase, IProductBlueprint, UserAccountTypes } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IFeaturedItem } from './FeaturedBanner';
|
|
4
|
+
declare type TabId = 'premium' | 'packs' | 'items' | 'wallet' | 'history';
|
|
5
|
+
export interface IStoreProps {
|
|
6
|
+
items: IProductBlueprint[];
|
|
7
|
+
packs?: IItemPack[];
|
|
8
|
+
atlasJSON: any;
|
|
9
|
+
atlasIMG: string;
|
|
10
|
+
onPurchase: (purchase: Partial<IPurchase>) => Promise<boolean>;
|
|
11
|
+
onShowHistory?: () => void;
|
|
12
|
+
onShowWallet?: () => void;
|
|
13
|
+
walletLabel?: string;
|
|
14
|
+
packsTabLabel?: string;
|
|
15
|
+
userAccountType: UserAccountTypes;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
error?: string;
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
hidePremiumTab?: boolean;
|
|
20
|
+
tabOrder?: TabId[];
|
|
21
|
+
defaultActiveTab?: TabId;
|
|
22
|
+
textInputItemKeys?: string[];
|
|
23
|
+
customPacksContent?: React.ReactNode;
|
|
24
|
+
customWalletContent?: React.ReactNode;
|
|
25
|
+
customHistoryContent?: React.ReactNode;
|
|
26
|
+
packsBadge?: string;
|
|
27
|
+
featuredItems?: IFeaturedItem[];
|
|
28
|
+
onQuickBuy?: (item: IProductBlueprint, quantity?: number) => void;
|
|
29
|
+
itemBadges?: Record<string, {
|
|
30
|
+
badges?: import('./StoreBadges').IStoreBadge[];
|
|
31
|
+
buyCount?: number;
|
|
32
|
+
viewersCount?: number;
|
|
33
|
+
saleEndsAt?: string;
|
|
34
|
+
originalPrice?: number;
|
|
35
|
+
}>;
|
|
36
|
+
packBadges?: Record<string, {
|
|
37
|
+
badges?: import('./StoreBadges').IStoreBadge[];
|
|
38
|
+
buyCount?: number;
|
|
39
|
+
viewersCount?: number;
|
|
40
|
+
saleEndsAt?: string;
|
|
41
|
+
originalPrice?: number;
|
|
42
|
+
}>;
|
|
43
|
+
/** Fires when an item row becomes visible (on mount). Useful for store_item_viewed analytics. */
|
|
44
|
+
onItemView?: (item: IProductBlueprint, position: number) => void;
|
|
45
|
+
/** Fires when a pack row becomes visible (on mount). Useful for pack_viewed analytics. */
|
|
46
|
+
onPackView?: (pack: IItemPack, position: number) => void;
|
|
47
|
+
/** Fires when the active store tab changes (e.g. 'items', 'packs', 'premium'). */
|
|
48
|
+
onTabChange?: (tab: string, itemsShown: number) => void;
|
|
49
|
+
/** Fires when the category filter changes in the items tab. */
|
|
50
|
+
onCategoryChange?: (category: string, itemsShown: number) => void;
|
|
51
|
+
/** Fires when the cart is opened. */
|
|
52
|
+
onCartOpen?: () => void;
|
|
53
|
+
/** Fires when any item or pack is added to the cart. */
|
|
54
|
+
onAddToCart?: (item: IProductBlueprint, quantity: number) => void;
|
|
55
|
+
/** Fires when an item is removed from the cart. */
|
|
56
|
+
onRemoveFromCart?: (itemKey: string) => void;
|
|
57
|
+
/** Fires when the user taps "Pay" — before the purchase resolves. */
|
|
58
|
+
onCheckoutStart?: (items: Array<{
|
|
59
|
+
key: string;
|
|
60
|
+
name: string;
|
|
61
|
+
quantity: number;
|
|
62
|
+
}>, total: number) => void;
|
|
63
|
+
/** Fires after a successful purchase. */
|
|
64
|
+
onPurchaseSuccess?: (items: Array<{
|
|
65
|
+
key: string;
|
|
66
|
+
name: string;
|
|
67
|
+
quantity: number;
|
|
68
|
+
}>, total: number) => void;
|
|
69
|
+
/** Fires when a purchase fails. */
|
|
70
|
+
onPurchaseError?: (error: string) => void;
|
|
71
|
+
/** Called when the DC nudge in CartView is tapped — open the DC purchase flow. */
|
|
72
|
+
onBuyDC?: () => void;
|
|
73
|
+
/** Currency symbol to display (e.g. "$" for USD, "R$" for BRL). Defaults to "$". */
|
|
74
|
+
currencySymbol?: string;
|
|
75
|
+
}
|
|
76
|
+
export type { IFeaturedItem };
|
|
77
|
+
export declare const Store: React.FC<IStoreProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type StoreBadgeType = 'popular' | 'bestSeller' | 'limited' | 'new' | 'sale' | 'event';
|
|
3
|
+
export interface IStoreBadge {
|
|
4
|
+
type: StoreBadgeType;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IStoreBadgesProps {
|
|
8
|
+
badges?: IStoreBadge[];
|
|
9
|
+
buyCount?: number;
|
|
10
|
+
viewersCount?: number;
|
|
11
|
+
saleEndsAt?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const StoreBadges: React.FC<IStoreBadgesProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IProductBlueprint, UserAccountTypes } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IStoreCharacterSkinRowProps {
|
|
4
|
+
item: IProductBlueprint;
|
|
5
|
+
atlasJSON: Record<string, any>;
|
|
6
|
+
atlasIMG: string;
|
|
7
|
+
onAddToCart: (item: IProductBlueprint, quantity: number, metadata?: Record<string, any>) => void;
|
|
8
|
+
userAccountType: UserAccountTypes;
|
|
9
|
+
originalPrice?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const StoreCharacterSkinRow: React.FC<IStoreCharacterSkinRowProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IItemPack, IProductBlueprint } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IStoreItemDetailsProps {
|
|
4
|
+
item: IProductBlueprint | (IItemPack & {
|
|
5
|
+
name: string;
|
|
6
|
+
texturePath: string;
|
|
7
|
+
});
|
|
8
|
+
imageUrl: string | {
|
|
9
|
+
src: string;
|
|
10
|
+
default?: string;
|
|
11
|
+
};
|
|
12
|
+
onBack: () => void;
|
|
13
|
+
onAddToCart: (item: IProductBlueprint) => void;
|
|
14
|
+
currencySymbol?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const StoreItemDetails: React.FC<IStoreItemDetailsProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IProductBlueprint, UserAccountTypes } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IStoreBadge } from './StoreBadges';
|
|
4
|
+
interface IStoreItemRowProps {
|
|
5
|
+
item: IProductBlueprint;
|
|
6
|
+
atlasJSON: Record<string, any>;
|
|
7
|
+
atlasIMG: string;
|
|
8
|
+
onAddToCart: (item: IProductBlueprint, quantity: number, metadata?: Record<string, any>) => void;
|
|
9
|
+
onQuickBuy?: (item: IProductBlueprint, quantity: number, metadata?: Record<string, any>) => void;
|
|
10
|
+
userAccountType: UserAccountTypes;
|
|
11
|
+
showTextInput?: boolean;
|
|
12
|
+
textInputPlaceholder?: string;
|
|
13
|
+
badges?: IStoreBadge[];
|
|
14
|
+
buyCount?: number;
|
|
15
|
+
viewersCount?: number;
|
|
16
|
+
saleEndsAt?: string;
|
|
17
|
+
originalPrice?: number;
|
|
18
|
+
/** Fires once on mount — use for store_item_viewed analytics. */
|
|
19
|
+
onView?: (item: IProductBlueprint, position: number) => void;
|
|
20
|
+
positionInList?: number;
|
|
21
|
+
/** Currency symbol to display (e.g. "$" for USD, "R$" for BRL). Defaults to "$". */
|
|
22
|
+
currencySymbol?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const StoreItemRow: React.FC<IStoreItemRowProps>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IPurchase, IProductBlueprint } from '@rpg-engine/shared';
|
|
2
|
+
interface ICartItem {
|
|
3
|
+
item: IProductBlueprint;
|
|
4
|
+
quantity: number;
|
|
5
|
+
metadata?: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
interface IUseStoreCart {
|
|
8
|
+
cartItems: ICartItem[];
|
|
9
|
+
isCartOpen: boolean;
|
|
10
|
+
handleAddToCart: (item: IProductBlueprint, quantity: number, metadata?: Record<string, any>) => void;
|
|
11
|
+
handleRemoveFromCart: (itemKey: string) => void;
|
|
12
|
+
handlePurchase: (onPurchase: (purchase: IPurchase) => void) => void;
|
|
13
|
+
openCart: () => void;
|
|
14
|
+
closeCart: () => void;
|
|
15
|
+
getTotalItems: () => number;
|
|
16
|
+
getTotalPrice: () => number;
|
|
17
|
+
isCollectingMetadata: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const useStoreCart: () => IUseStoreCart;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IProductBlueprint } from "@rpg-engine/shared";
|
|
2
|
+
interface IUseStoreMetadata {
|
|
3
|
+
collectMetadata: (item: IProductBlueprint) => Promise<Record<string, any> | null>;
|
|
4
|
+
isCollectingMetadata: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const useStoreMetadata: () => IUseStoreMetadata;
|
|
7
|
+
declare global {
|
|
8
|
+
interface Window {
|
|
9
|
+
__metadataResolvers?: {
|
|
10
|
+
resolve: (metadata: Record<string, any> | null) => void;
|
|
11
|
+
item: IProductBlueprint;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IProductBlueprint, UserAccountTypes } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IStoreBadge } from '../StoreBadges';
|
|
4
|
+
interface IStoreItemsSectionProps {
|
|
5
|
+
items: IProductBlueprint[];
|
|
6
|
+
onAddToCart: (item: IProductBlueprint, quantity: number, metadata?: Record<string, any>) => void;
|
|
7
|
+
onQuickBuy?: (item: IProductBlueprint, quantity: number, metadata?: Record<string, any>) => void;
|
|
8
|
+
atlasJSON: Record<string, any>;
|
|
9
|
+
atlasIMG: string;
|
|
10
|
+
userAccountType?: UserAccountTypes;
|
|
11
|
+
textInputItemKeys?: string[];
|
|
12
|
+
itemBadges?: Record<string, {
|
|
13
|
+
badges?: IStoreBadge[];
|
|
14
|
+
buyCount?: number;
|
|
15
|
+
viewersCount?: number;
|
|
16
|
+
saleEndsAt?: string;
|
|
17
|
+
originalPrice?: number;
|
|
18
|
+
}>;
|
|
19
|
+
/** Fires when an item row becomes visible. Passes item and its 0-based position. */
|
|
20
|
+
onItemView?: (item: IProductBlueprint, position: number) => void;
|
|
21
|
+
/** Fires when the category filter changes. Passes new category and item count. */
|
|
22
|
+
onCategoryChange?: (category: string, itemsShown: number) => void;
|
|
23
|
+
/** Currency symbol to display (e.g. "$" for USD, "R$" for BRL). Defaults to "$". */
|
|
24
|
+
currencySymbol?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const StoreItemsSection: React.FC<IStoreItemsSectionProps>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IItemPack } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IStoreBadge } from '../StoreBadges';
|
|
4
|
+
interface IStorePacksSectionProps {
|
|
5
|
+
packs: IItemPack[];
|
|
6
|
+
onAddToCart: (pack: IItemPack, quantity: number) => void;
|
|
7
|
+
onQuickBuy?: (pack: IItemPack, quantity: number) => void;
|
|
8
|
+
onSelectPack?: (pack: IItemPack) => void;
|
|
9
|
+
atlasJSON?: any;
|
|
10
|
+
atlasIMG?: string;
|
|
11
|
+
packBadges?: Record<string, {
|
|
12
|
+
badges?: IStoreBadge[];
|
|
13
|
+
buyCount?: number;
|
|
14
|
+
viewersCount?: number;
|
|
15
|
+
saleEndsAt?: string;
|
|
16
|
+
originalPrice?: number;
|
|
17
|
+
}>;
|
|
18
|
+
/** Fires once on mount per pack row — use for pack_viewed analytics. */
|
|
19
|
+
onPackView?: (pack: IItemPack, position: number) => void;
|
|
20
|
+
/** Currency symbol to display (e.g. "$" for USD, "R$" for BRL). Defaults to "$". */
|
|
21
|
+
currencySymbol?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const StorePacksSection: React.FC<IStorePacksSectionProps>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const Table: import("styled-components").StyledComponent<"table", any, {}, never>;
|
|
2
|
+
export declare const TableRow: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
3
|
+
export declare const TableHeader: import("styled-components").StyledComponent<"th", any, {}, never>;
|
|
4
|
+
export declare const TableCell: import("styled-components").StyledComponent<"td", any, {}, never>;
|
|
5
|
+
export declare const ActionButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
interface IUserActionProps {
|
|
7
|
+
color: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const UserActionLink: import("styled-components").StyledComponent<"span", any, IUserActionProps, never>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PeriodOfDay } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface IClockWidgetProps {
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
TimeClock: string;
|
|
6
|
+
periodOfDay: PeriodOfDay;
|
|
7
|
+
scale?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const TimeWidget: React.FC<IClockWidgetProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Tooltip: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IEquipmentSet, ITradeResponseItem } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ITradeComponentProps {
|
|
4
|
+
traderItem: ITradeResponseItem;
|
|
5
|
+
onQuantityChange: (traderItem: ITradeResponseItem, selectedQty: number) => void;
|
|
6
|
+
atlasJSON: any;
|
|
7
|
+
atlasIMG: any;
|
|
8
|
+
selectedQty: number;
|
|
9
|
+
equipmentSet?: IEquipmentSet | null;
|
|
10
|
+
scale?: number;
|
|
11
|
+
isBuy?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const TradingItemRow: React.FC<ITradeComponentProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IEquipmentSet, ITradeRequestItem, ITradeResponseItem, TradeTransactionType } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ITradingMenu {
|
|
4
|
+
traderItems: ITradeResponseItem[];
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onConfirm: (items: ITradeRequestItem[]) => void;
|
|
7
|
+
type: TradeTransactionType;
|
|
8
|
+
atlasJSON: any;
|
|
9
|
+
atlasIMG: any;
|
|
10
|
+
characterAvailableGold: number;
|
|
11
|
+
equipmentSet?: IEquipmentSet | null;
|
|
12
|
+
scale?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const TradingMenu: React.FC<ITradingMenu>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ITradeResponseItem } from '@rpg-engine/shared';
|
|
2
|
+
export declare enum SwordsBlueprint {
|
|
3
|
+
ShortSword = "short-sword",
|
|
4
|
+
BasiliskSword = "basilisk-sword",
|
|
5
|
+
DragonsSword = "dragon's-sword",
|
|
6
|
+
DoubleEdgedSword = "double-edged-sword",
|
|
7
|
+
BroadSword = "broad-sword",
|
|
8
|
+
ElvenSword = "elven-sword",
|
|
9
|
+
FireSword = "fire-sword",
|
|
10
|
+
Katana = "katana",
|
|
11
|
+
KnightsSword = "knights-sword",
|
|
12
|
+
IceSword = "ice-sword"
|
|
13
|
+
}
|
|
14
|
+
export declare const itemMock: ITradeResponseItem[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ITradeRequestItem, ITradeResponseItem, TradeTransactionType } from '@rpg-engine/shared';
|
|
2
|
+
interface ITradingGoldHook {
|
|
3
|
+
characterAvailableGold: number;
|
|
4
|
+
type: TradeTransactionType;
|
|
5
|
+
traderItems: ITradeResponseItem[];
|
|
6
|
+
}
|
|
7
|
+
export declare const useTradingGold: ({ characterAvailableGold, type, traderItems, }: ITradingGoldHook) => {
|
|
8
|
+
sum: number;
|
|
9
|
+
qtyMap: Map<string, number>;
|
|
10
|
+
isBuy: () => boolean;
|
|
11
|
+
hasGoldForSale: () => boolean;
|
|
12
|
+
getFinalGold: () => number;
|
|
13
|
+
getTradeItems: () => ITradeRequestItem[];
|
|
14
|
+
updateQuantity: (item: ITradeResponseItem, selectedQty: number) => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CSSProperties } from 'styled-components';
|
|
3
|
+
export interface ITutorialLesson {
|
|
4
|
+
title: string;
|
|
5
|
+
body?: React.ReactNode | string;
|
|
6
|
+
text?: string;
|
|
7
|
+
image: string;
|
|
8
|
+
imageUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ITutorialStepperProps {
|
|
11
|
+
lessons: ITutorialLesson[];
|
|
12
|
+
onLessonFinish: () => void;
|
|
13
|
+
onStepChange?: (stepIndex: number) => void;
|
|
14
|
+
imageStyle?: CSSProperties;
|
|
15
|
+
}
|
|
16
|
+
export declare const TutorialStepper: React.MemoExoticComponent<({ lessons, onLessonFinish, onStepChange, imageStyle }: ITutorialStepperProps) => JSX.Element>;
|