@rpg-engine/long-bow 0.8.168 → 0.8.170
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/ManagmentPanel.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +22 -26
- 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 +22 -26
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/ManagmentPanel.tsx +33 -13
- package/src/components/Marketplace/MarketplaceRows.tsx +0 -21
- package/src/stories/Features/trading/Marketplace.stories.tsx +9 -1
package/dist/long-bow.esm.js
CHANGED
|
@@ -45913,11 +45913,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
45913
45913
|
maxLines: 1,
|
|
45914
45914
|
maxWidth: "200px",
|
|
45915
45915
|
fontSize: "10px"
|
|
45916
|
-
}, item.name), acceptedCurrency
|
|
45917
|
-
"$color": "#a78bfa"
|
|
45918
|
-
}, "DC only"), acceptedCurrency === MarketplaceAcceptedCurrency.Gold && React.createElement(CurrencyBadge, {
|
|
45919
|
-
"$color": "#fef08a"
|
|
45920
|
-
}, "Gold only")), React.createElement(PriceRow, null, acceptedCurrency !== MarketplaceAcceptedCurrency.Dc && React.createElement(GoldPriceRow$1, null, React.createElement(GoldIcon$1, null, React.createElement(SimpleTooltip, {
|
|
45916
|
+
}, item.name)), React.createElement(PriceRow, null, acceptedCurrency !== MarketplaceAcceptedCurrency.Dc && React.createElement(GoldPriceRow$1, null, React.createElement(GoldIcon$1, null, React.createElement(SimpleTooltip, {
|
|
45921
45917
|
content: "Gold Coin",
|
|
45922
45918
|
direction: "top"
|
|
45923
45919
|
}, React.createElement(SpriteFromAtlas, {
|
|
@@ -46054,27 +46050,17 @@ var GemContainer = /*#__PURE__*/styled.p.withConfig({
|
|
|
46054
46050
|
displayName: "MarketplaceRows__GemContainer",
|
|
46055
46051
|
componentId: "sc-wmpr1o-13"
|
|
46056
46052
|
})(["position:absolute;display:block;top:-5px;left:-10px;font-size:", " !important;"], uiFonts.size.xsmall);
|
|
46057
|
-
var CurrencyBadge = /*#__PURE__*/styled.span.withConfig({
|
|
46058
|
-
displayName: "MarketplaceRows__CurrencyBadge",
|
|
46059
|
-
componentId: "sc-wmpr1o-14"
|
|
46060
|
-
})(["display:inline-block;margin-left:6px;padding:1px 4px;font-family:'Press Start 2P',cursive;font-size:0.38rem;color:", ";border:1px solid ", ";border-radius:3px;opacity:0.85;vertical-align:middle;text-transform:uppercase;letter-spacing:0.5px;"], function (_ref5) {
|
|
46061
|
-
var $color = _ref5.$color;
|
|
46062
|
-
return $color;
|
|
46063
|
-
}, function (_ref6) {
|
|
46064
|
-
var $color = _ref6.$color;
|
|
46065
|
-
return $color;
|
|
46066
|
-
});
|
|
46067
46053
|
var RarityContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
46068
46054
|
displayName: "MarketplaceRows__RarityContainer",
|
|
46069
|
-
componentId: "sc-wmpr1o-
|
|
46070
|
-
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (
|
|
46071
|
-
var item =
|
|
46055
|
+
componentId: "sc-wmpr1o-14"
|
|
46056
|
+
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref5) {
|
|
46057
|
+
var item = _ref5.item;
|
|
46072
46058
|
return rarityColor(item);
|
|
46073
|
-
}, function (
|
|
46074
|
-
var item =
|
|
46059
|
+
}, function (_ref6) {
|
|
46060
|
+
var item = _ref6.item;
|
|
46075
46061
|
return "0 0 5px 8px " + rarityColor(item);
|
|
46076
|
-
}, function (
|
|
46077
|
-
var item =
|
|
46062
|
+
}, function (_ref7) {
|
|
46063
|
+
var item = _ref7.item;
|
|
46078
46064
|
return "0 0 8px 6px " + rarityColor(item);
|
|
46079
46065
|
});
|
|
46080
46066
|
|
|
@@ -46842,7 +46828,9 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
46842
46828
|
enableHotkeys = _ref.enableHotkeys,
|
|
46843
46829
|
disableHotkeys = _ref.disableHotkeys,
|
|
46844
46830
|
onMoneyWithdraw = _ref.onMoneyWithdraw,
|
|
46845
|
-
currentPage = _ref.currentPage
|
|
46831
|
+
currentPage = _ref.currentPage,
|
|
46832
|
+
_ref$dcToGoldSwapRate = _ref.dcToGoldSwapRate,
|
|
46833
|
+
dcToGoldSwapRate = _ref$dcToGoldSwapRate === void 0 ? 0 : _ref$dcToGoldSwapRate;
|
|
46846
46834
|
var _useState = useState(''),
|
|
46847
46835
|
price = _useState[0],
|
|
46848
46836
|
setPrice = _useState[1];
|
|
@@ -46942,7 +46930,7 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
46942
46930
|
},
|
|
46943
46931
|
type: "button"
|
|
46944
46932
|
}, opt.label);
|
|
46945
|
-
}))))), React.createElement(InnerOptionsWrapper, null, React.createElement(SectionLabel$1, {
|
|
46933
|
+
}), listingCurrency !== MarketplaceAcceptedCurrency.Gold && price && Number(price) > 0 && React.createElement(DCPreview, null, formatDCAmount(goldToDC(Number(price))), " DC"))))), React.createElement(InnerOptionsWrapper, null, React.createElement(SectionLabel$1, {
|
|
46946
46934
|
style: {
|
|
46947
46935
|
marginBottom: '8px'
|
|
46948
46936
|
}
|
|
@@ -46978,14 +46966,18 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
46978
46966
|
var item = _ref2.item,
|
|
46979
46967
|
price = _ref2.price,
|
|
46980
46968
|
_id = _ref2._id,
|
|
46981
|
-
|
|
46969
|
+
itemCurrency = _ref2.acceptedCurrency;
|
|
46970
|
+
var currency = itemCurrency || MarketplaceAcceptedCurrency.GoldOrDc;
|
|
46971
|
+
var isDcOnly = currency === MarketplaceAcceptedCurrency.Dc;
|
|
46972
|
+
var showDcPrice = isDcOnly || dcToGoldSwapRate > 0 && currency !== MarketplaceAcceptedCurrency.Gold;
|
|
46982
46973
|
return React.createElement(MarketplaceRows, {
|
|
46983
46974
|
key: item.key + "_" + index,
|
|
46984
46975
|
atlasIMG: atlasIMG,
|
|
46985
46976
|
atlasJSON: atlasJSON,
|
|
46986
46977
|
item: item,
|
|
46987
46978
|
itemPrice: price,
|
|
46988
|
-
|
|
46979
|
+
dcEquivalentPrice: showDcPrice ? goldToDC(price) : undefined,
|
|
46980
|
+
acceptedCurrency: currency,
|
|
46989
46981
|
equipmentSet: equipmentSet,
|
|
46990
46982
|
onMarketPlaceItemRemove: setRemovingItemId.bind(null, _id)
|
|
46991
46983
|
});
|
|
@@ -47072,6 +47064,10 @@ var CurrencyToggleButton = /*#__PURE__*/styled.button.withConfig({
|
|
|
47072
47064
|
var $active = _ref7.$active;
|
|
47073
47065
|
return $active ? '#f59e0b' : '#ddd';
|
|
47074
47066
|
});
|
|
47067
|
+
var DCPreview = /*#__PURE__*/styled.span.withConfig({
|
|
47068
|
+
displayName: "ManagmentPanel__DCPreview",
|
|
47069
|
+
componentId: "sc-1yyi6jn-16"
|
|
47070
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.4rem !important;color:rgba(167,139,250,0.8) !important;white-space:nowrap;margin-left:auto;"]);
|
|
47075
47071
|
|
|
47076
47072
|
var CURRENCY_OPTIONS = [{
|
|
47077
47073
|
value: MarketplaceAcceptedCurrency.GoldOrDc,
|