@rpg-engine/long-bow 0.8.208 → 0.8.210
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/Marketplace/BuyOrderDetailsModal.d.ts +1 -0
- package/dist/components/Marketplace/BuyOrderPanel.d.ts +1 -0
- package/dist/components/Marketplace/Marketplace.d.ts +1 -0
- package/dist/components/Store/Store.d.ts +4 -1
- package/dist/long-bow.cjs.development.js +33 -9
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +34 -10
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/BuyOrderDetailsModal.tsx +5 -2
- package/src/components/Marketplace/BuyOrderPanel.tsx +3 -0
- package/src/components/Marketplace/Marketplace.tsx +4 -0
- package/src/components/Store/Store.tsx +15 -2
|
@@ -20,6 +20,7 @@ export interface IBuyOrderPanelProps {
|
|
|
20
20
|
onCancelBuyOrder: (buyOrderId: string) => void;
|
|
21
21
|
enableHotkeys?: () => void;
|
|
22
22
|
disableHotkeys?: () => void;
|
|
23
|
+
scale?: number;
|
|
23
24
|
}
|
|
24
25
|
declare const BUY_ORDERS_PER_PAGE = 5;
|
|
25
26
|
export declare const BuyOrderPanel: React.FC<IBuyOrderPanelProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IItemPack, IPurchase, IProductBlueprint, UserAccountTypes } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IFeaturedItem } from './FeaturedBanner';
|
|
4
|
-
declare type TabId = 'premium' | 'packs' | 'items' | 'wallet' | 'history' | 'redeem';
|
|
4
|
+
declare type TabId = 'premium' | 'packs' | 'items' | 'characters' | 'wallet' | 'history' | 'redeem';
|
|
5
5
|
export interface IStoreProps {
|
|
6
6
|
items: IProductBlueprint[];
|
|
7
7
|
packs?: IItemPack[];
|
|
@@ -21,8 +21,11 @@ export interface IStoreProps {
|
|
|
21
21
|
defaultActiveTab?: TabId;
|
|
22
22
|
textInputItemKeys?: string[];
|
|
23
23
|
customPacksContent?: React.ReactNode;
|
|
24
|
+
customCharactersContent?: React.ReactNode;
|
|
24
25
|
customWalletContent?: React.ReactNode;
|
|
25
26
|
customHistoryContent?: React.ReactNode;
|
|
27
|
+
/** When true the store renders full-screen (useful on mobile). */
|
|
28
|
+
fullScreen?: boolean;
|
|
26
29
|
packsBadge?: string;
|
|
27
30
|
featuredItems?: IFeaturedItem[];
|
|
28
31
|
onQuickBuy?: (item: IProductBlueprint, quantity?: number) => void;
|
|
@@ -11278,7 +11278,8 @@ var BuyOrderDetailsModal = function BuyOrderDetailsModal(_ref) {
|
|
|
11278
11278
|
atlasJSON = _ref.atlasJSON,
|
|
11279
11279
|
atlasIMG = _ref.atlasIMG,
|
|
11280
11280
|
enableHotkeys = _ref.enableHotkeys,
|
|
11281
|
-
disableHotkeys = _ref.disableHotkeys
|
|
11281
|
+
disableHotkeys = _ref.disableHotkeys,
|
|
11282
|
+
scale = _ref.scale;
|
|
11282
11283
|
if (!isOpen || !blueprint) return null;
|
|
11283
11284
|
var stopPropagation = function stopPropagation(e) {
|
|
11284
11285
|
e.stopPropagation();
|
|
@@ -11290,7 +11291,9 @@ var BuyOrderDetailsModal = function BuyOrderDetailsModal(_ref) {
|
|
|
11290
11291
|
};
|
|
11291
11292
|
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$5, {
|
|
11292
11293
|
onPointerDown: handleClose
|
|
11293
|
-
}), React__default.createElement(ModalContainer$3,
|
|
11294
|
+
}), React__default.createElement(ModalContainer$3, {
|
|
11295
|
+
"$scale": scale
|
|
11296
|
+
}, React__default.createElement(ModalContent$3, {
|
|
11294
11297
|
onClick: stopPropagation,
|
|
11295
11298
|
onPointerDown: stopPropagation
|
|
11296
11299
|
}, React__default.createElement(Header$9, null, React__default.createElement(Title$a, null, "Place Buy Request"), React__default.createElement(CloseButton$b, {
|
|
@@ -11349,7 +11352,10 @@ var Overlay$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
11349
11352
|
var ModalContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
11350
11353
|
displayName: "BuyOrderDetailsModal__ModalContainer",
|
|
11351
11354
|
componentId: "sc-6bghe9-1"
|
|
11352
|
-
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"])
|
|
11355
|
+
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;", ""], function (_ref2) {
|
|
11356
|
+
var $scale = _ref2.$scale;
|
|
11357
|
+
return $scale !== undefined && $scale !== 1 ? "transform: scale(" + $scale + ");" : '';
|
|
11358
|
+
});
|
|
11353
11359
|
var ModalContent$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
11354
11360
|
displayName: "BuyOrderDetailsModal__ModalContent",
|
|
11355
11361
|
componentId: "sc-6bghe9-2"
|
|
@@ -11713,7 +11719,8 @@ var BuyOrderPanel = function BuyOrderPanel(props) {
|
|
|
11713
11719
|
onYourBuyOrdersPageChange = props.onYourBuyOrdersPageChange,
|
|
11714
11720
|
onCancelBuyOrder = props.onCancelBuyOrder,
|
|
11715
11721
|
enableHotkeys = props.enableHotkeys,
|
|
11716
|
-
disableHotkeys = props.disableHotkeys
|
|
11722
|
+
disableHotkeys = props.disableHotkeys,
|
|
11723
|
+
scale = props.scale;
|
|
11717
11724
|
// Local blueprint display: cleared immediately on Place Request so the
|
|
11718
11725
|
// panel returns to "Select Item" without waiting for the consumer to update
|
|
11719
11726
|
// the prop. Cancel keeps it shown so the user can reopen the modal.
|
|
@@ -11760,7 +11767,8 @@ var BuyOrderPanel = function BuyOrderPanel(props) {
|
|
|
11760
11767
|
atlasJSON: atlasJSON,
|
|
11761
11768
|
atlasIMG: atlasIMG,
|
|
11762
11769
|
enableHotkeys: enableHotkeys,
|
|
11763
|
-
disableHotkeys: disableHotkeys
|
|
11770
|
+
disableHotkeys: disableHotkeys,
|
|
11771
|
+
scale: scale
|
|
11764
11772
|
}), React__default.createElement(FormRow, null, displayedBlueprint ? React__default.createElement(SelectedBlueprintDisplay, {
|
|
11765
11773
|
onPointerDown: onOpenBlueprintSearch
|
|
11766
11774
|
}, React__default.createElement(RarityContainer, {
|
|
@@ -14397,7 +14405,9 @@ var Marketplace = function Marketplace(props) {
|
|
|
14397
14405
|
characterNameFilter = _props$characterNameF === void 0 ? '' : _props$characterNameF,
|
|
14398
14406
|
onCharacterNameFilterChange = props.onCharacterNameFilterChange,
|
|
14399
14407
|
characterAtlasIMG = props.characterAtlasIMG,
|
|
14400
|
-
characterAtlasJSON = props.characterAtlasJSON
|
|
14408
|
+
characterAtlasJSON = props.characterAtlasJSON,
|
|
14409
|
+
_props$fullScreen = props.fullScreen,
|
|
14410
|
+
fullScreen = _props$fullScreen === void 0 ? false : _props$fullScreen;
|
|
14401
14411
|
var _useState = React.useState('marketplace'),
|
|
14402
14412
|
activeTab = _useState[0],
|
|
14403
14413
|
setActiveTab = _useState[1];
|
|
@@ -14431,6 +14441,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
14431
14441
|
onCloseButton: function onCloseButton() {
|
|
14432
14442
|
if (onClose) onClose();
|
|
14433
14443
|
},
|
|
14444
|
+
isFullScreen: fullScreen,
|
|
14434
14445
|
width: "920px",
|
|
14435
14446
|
cancelDrag: "#MarketContainer, .rpgui-dropdown-imp, input, .empty-slot, button",
|
|
14436
14447
|
scale: scale
|
|
@@ -14554,7 +14565,8 @@ var Marketplace = function Marketplace(props) {
|
|
|
14554
14565
|
onYourBuyOrdersPageChange: onYourBuyOrdersPageChange != null ? onYourBuyOrdersPageChange : function () {},
|
|
14555
14566
|
onCancelBuyOrder: onCancelBuyOrder != null ? onCancelBuyOrder : function () {},
|
|
14556
14567
|
enableHotkeys: props.enableHotkeys,
|
|
14557
|
-
disableHotkeys: props.disableHotkeys
|
|
14568
|
+
disableHotkeys: props.disableHotkeys,
|
|
14569
|
+
scale: scale
|
|
14558
14570
|
}), React__default.createElement(BlueprintSearchModal, {
|
|
14559
14571
|
isOpen: isBlueprintSearchOpen,
|
|
14560
14572
|
onClose: function onClose() {
|
|
@@ -39692,8 +39704,11 @@ var Store = function Store(_ref) {
|
|
|
39692
39704
|
_ref$textInputItemKey = _ref.textInputItemKeys,
|
|
39693
39705
|
textInputItemKeys = _ref$textInputItemKey === void 0 ? [] : _ref$textInputItemKey,
|
|
39694
39706
|
customPacksContent = _ref.customPacksContent,
|
|
39707
|
+
customCharactersContent = _ref.customCharactersContent,
|
|
39695
39708
|
customWalletContent = _ref.customWalletContent,
|
|
39696
39709
|
customHistoryContent = _ref.customHistoryContent,
|
|
39710
|
+
_ref$fullScreen = _ref.fullScreen,
|
|
39711
|
+
fullScreen = _ref$fullScreen === void 0 ? false : _ref$fullScreen,
|
|
39697
39712
|
_ref$packsTabLabel = _ref.packsTabLabel,
|
|
39698
39713
|
packsTabLabel = _ref$packsTabLabel === void 0 ? 'Packs' : _ref$packsTabLabel,
|
|
39699
39714
|
packsBadge = _ref.packsBadge,
|
|
@@ -39840,7 +39855,7 @@ var Store = function Store(_ref) {
|
|
|
39840
39855
|
return React__default.createElement(ErrorMessage$3, null, error);
|
|
39841
39856
|
}
|
|
39842
39857
|
// Build tabs dynamically based on props
|
|
39843
|
-
var tabIds = [].concat(tabOrder != null ? tabOrder : defaultTabOrder, onRedeem ? ['redeem'] : [], onShowWallet || customWalletContent ? ['wallet'] : [], onShowHistory || customHistoryContent ? ['history'] : []);
|
|
39858
|
+
var tabIds = [].concat(tabOrder != null ? tabOrder : defaultTabOrder, customCharactersContent ? ['characters'] : [], onRedeem ? ['redeem'] : [], onShowWallet || customWalletContent ? ['wallet'] : [], onShowHistory || customHistoryContent ? ['history'] : []);
|
|
39844
39859
|
var availableTabIds = Array.from(new Set(tabIds.filter(function (id) {
|
|
39845
39860
|
return !(hidePremiumTab && id === 'premium');
|
|
39846
39861
|
})));
|
|
@@ -39980,6 +39995,14 @@ var Store = function Store(_ref) {
|
|
|
39980
39995
|
currencySymbol: currencySymbol
|
|
39981
39996
|
})
|
|
39982
39997
|
},
|
|
39998
|
+
characters: {
|
|
39999
|
+
id: 'characters',
|
|
40000
|
+
title: 'Characters',
|
|
40001
|
+
icon: React__default.createElement(fa.FaUsers, {
|
|
40002
|
+
size: 16
|
|
40003
|
+
}),
|
|
40004
|
+
content: customCharactersContent != null ? customCharactersContent : null
|
|
40005
|
+
},
|
|
39983
40006
|
redeem: {
|
|
39984
40007
|
id: 'redeem',
|
|
39985
40008
|
title: 'Redeem',
|
|
@@ -40026,7 +40049,8 @@ var Store = function Store(_ref) {
|
|
|
40026
40049
|
minWidth: "600px",
|
|
40027
40050
|
height: "auto",
|
|
40028
40051
|
type: exports.RPGUIContainerTypes.Framed,
|
|
40029
|
-
cancelDrag: "[class*='Store__Container'], [class*='CartView'], [class*='StoreItemDetails'], .close-button"
|
|
40052
|
+
cancelDrag: "[class*='Store__Container'], [class*='CartView'], [class*='StoreItemDetails'], .close-button",
|
|
40053
|
+
isFullScreen: fullScreen
|
|
40030
40054
|
}, isCollectingMetadata && currentMetadataItem && currentMetadataItem.metadataType ? React__default.createElement(MetadataCollector, {
|
|
40031
40055
|
metadataType: currentMetadataItem.metadataType,
|
|
40032
40056
|
config: currentMetadataItem.metadataConfig || {},
|