@rpg-engine/long-bow 0.8.138 → 0.8.139
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/long-bow.cjs.development.js +24 -32
- 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 +25 -33
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +5 -7
- package/src/components/DCWallet/DCWalletModal.tsx +1 -1
- package/src/components/Marketplace/BuyPanel.tsx +2 -2
- package/src/components/Marketplace/MarketplaceBuyModal.tsx +3 -2
- package/src/components/Marketplace/MarketplaceRows.tsx +23 -35
- package/src/components/Store/Store.tsx +0 -1
|
@@ -30395,11 +30395,18 @@ var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
|
30395
30395
|
var color = (_TRANSACTION_TYPE_COL = TRANSACTION_TYPE_COLORS[tx.type]) != null ? _TRANSACTION_TYPE_COL : '#f59e0b';
|
|
30396
30396
|
var subtitle = (_tx$note = tx.note) != null ? _tx$note : tx.relatedCharacterName ? tx.relatedCharacterName : '';
|
|
30397
30397
|
return React__default.createElement(TransactionRow, {
|
|
30398
|
-
key: tx._id
|
|
30398
|
+
key: tx._id,
|
|
30399
|
+
style: {
|
|
30400
|
+
borderLeft: "3px solid " + color
|
|
30401
|
+
}
|
|
30399
30402
|
}, React__default.createElement(TxLeft, null, React__default.createElement(TxType, {
|
|
30400
|
-
|
|
30403
|
+
style: {
|
|
30404
|
+
color: color
|
|
30405
|
+
}
|
|
30401
30406
|
}, label), subtitle ? React__default.createElement(TxNote, null, subtitle) : null), React__default.createElement(TxRight, null, React__default.createElement(TxAmount, {
|
|
30402
|
-
|
|
30407
|
+
style: {
|
|
30408
|
+
color: isCredit ? '#4CAF50' : '#D04648'
|
|
30409
|
+
}
|
|
30403
30410
|
}, isCredit ? '+' : '', tx.amount, " DC"), React__default.createElement(TxDate, null, formatDate(tx.createdAt))));
|
|
30404
30411
|
})), totalPages > 1 && React__default.createElement(Pagination, {
|
|
30405
30412
|
currentPage: currentPage,
|
|
@@ -30442,17 +30449,11 @@ var TxRight = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30442
30449
|
var TxType = /*#__PURE__*/styled__default.span.withConfig({
|
|
30443
30450
|
displayName: "DCHistoryPanel__TxType",
|
|
30444
30451
|
componentId: "sc-debjdj-8"
|
|
30445
|
-
})(["font-size:7px;
|
|
30446
|
-
var $color = _ref2.$color;
|
|
30447
|
-
return $color;
|
|
30448
|
-
});
|
|
30452
|
+
})(["font-size:7px;font-family:'Press Start 2P',cursive;"]);
|
|
30449
30453
|
var TxAmount = /*#__PURE__*/styled__default.span.withConfig({
|
|
30450
30454
|
displayName: "DCHistoryPanel__TxAmount",
|
|
30451
30455
|
componentId: "sc-debjdj-9"
|
|
30452
|
-
})(["font-size:8px;font-family:'Press Start 2P',cursive;
|
|
30453
|
-
var $credit = _ref3.$credit;
|
|
30454
|
-
return $credit ? uiColors.green : uiColors.red;
|
|
30455
|
-
});
|
|
30456
|
+
})(["font-size:8px;font-family:'Press Start 2P',cursive;white-space:nowrap;"]);
|
|
30456
30457
|
var TxNote = /*#__PURE__*/styled__default.span.withConfig({
|
|
30457
30458
|
displayName: "DCHistoryPanel__TxNote",
|
|
30458
30459
|
componentId: "sc-debjdj-10"
|
|
@@ -30840,7 +30841,7 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
30840
30841
|
content: React__default.createElement(BalanceContent, null, React__default.createElement(BalanceLabel, null, "Your DC Balance"), React__default.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " DC"), onBuyDC && React__default.createElement(BuyButton, {
|
|
30841
30842
|
onPointerDown: onBuyDC,
|
|
30842
30843
|
title: "Buy Definya Coins"
|
|
30843
|
-
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy DC")))
|
|
30844
|
+
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy More DC")))
|
|
30844
30845
|
}, {
|
|
30845
30846
|
id: 'transfer',
|
|
30846
30847
|
title: 'Transfer',
|
|
@@ -35645,9 +35646,9 @@ var MarketplaceBuyModal = function MarketplaceBuyModal(_ref) {
|
|
|
35645
35646
|
"$selected": selected === 'dc'
|
|
35646
35647
|
}), React__default.createElement(OptionText, null, React__default.createElement(OptionLabel, {
|
|
35647
35648
|
"$disabled": !hasSufficientDC
|
|
35648
|
-
}, "Definya Coin"), React__default.createElement(OptionSub, null,
|
|
35649
|
+
}, "Definya Coin"), React__default.createElement(OptionSub, null, shared.formatDCAmount(dcEquivalentPrice), " DC", ' ', React__default.createElement(BalanceHint, {
|
|
35649
35650
|
"$insufficient": !hasSufficientDC
|
|
35650
|
-
}, "(",
|
|
35651
|
+
}, "(", shared.formatDCAmount(dcBalance), " available)"))))), React__default.createElement(ConfirmRow, null, React__default.createElement(Button, {
|
|
35651
35652
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
35652
35653
|
onPointerDown: handleConfirm
|
|
35653
35654
|
}, "Confirm")))));
|
|
@@ -35773,7 +35774,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35773
35774
|
maxLines: 1,
|
|
35774
35775
|
maxWidth: "200px",
|
|
35775
35776
|
fontSize: "10px"
|
|
35776
|
-
}, item.name)))), React__default.createElement(Flex$1, null, React__default.createElement(
|
|
35777
|
+
}, item.name)))), React__default.createElement(Flex$1, null, React__default.createElement(ItemIconContainer, null, React__default.createElement(GoldContainer, null, React__default.createElement(SpriteFromAtlas, {
|
|
35777
35778
|
atlasIMG: atlasIMG,
|
|
35778
35779
|
atlasJSON: atlasJSON,
|
|
35779
35780
|
spriteKey: "others/gold-coin-qty-5.png",
|
|
@@ -35782,11 +35783,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35782
35783
|
maxLines: 1,
|
|
35783
35784
|
maxWidth: "120px",
|
|
35784
35785
|
fontSize: "10px"
|
|
35785
|
-
}, "$", itemPrice)))
|
|
35786
|
-
maxLines: 1,
|
|
35787
|
-
maxWidth: "80px",
|
|
35788
|
-
fontSize: "9px"
|
|
35789
|
-
}, dcEquivalentPrice, " DC"))), React__default.createElement(ButtonContainer$3, null, React__default.createElement(Button, {
|
|
35786
|
+
}, "$", itemPrice))), dcEquivalentPrice !== undefined && React__default.createElement(DCPriceLabel, null, shared.formatDCAmount(dcEquivalentPrice), " DC")), React__default.createElement(ButtonContainer$3, null, React__default.createElement(Button, {
|
|
35790
35787
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
35791
35788
|
disabled: disabled,
|
|
35792
35789
|
onPointerDown: function onPointerDown() {
|
|
@@ -35824,25 +35821,21 @@ var SpriteContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35824
35821
|
displayName: "MarketplaceRows__SpriteContainer",
|
|
35825
35822
|
componentId: "sc-wmpr1o-6"
|
|
35826
35823
|
})(["position:relative;left:0.5rem;"]);
|
|
35827
|
-
var
|
|
35828
|
-
displayName: "MarketplaceRows__PriceContainer",
|
|
35829
|
-
componentId: "sc-wmpr1o-7"
|
|
35830
|
-
})(["display:flex;flex-direction:column;align-items:flex-start;gap:2px;"]);
|
|
35831
|
-
var DCPriceLabel = /*#__PURE__*/styled__default.p.withConfig({
|
|
35824
|
+
var DCPriceLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
35832
35825
|
displayName: "MarketplaceRows__DCPriceLabel",
|
|
35833
|
-
componentId: "sc-wmpr1o-
|
|
35834
|
-
})(["margin
|
|
35826
|
+
componentId: "sc-wmpr1o-7"
|
|
35827
|
+
})(["margin-left:8px;color:#fef08a;font-size:0.65rem;white-space:nowrap;"]);
|
|
35835
35828
|
var PriceValue = /*#__PURE__*/styled__default.div.withConfig({
|
|
35836
35829
|
displayName: "MarketplaceRows__PriceValue",
|
|
35837
|
-
componentId: "sc-wmpr1o-
|
|
35830
|
+
componentId: "sc-wmpr1o-8"
|
|
35838
35831
|
})(["margin-left:40px;"]);
|
|
35839
35832
|
var ButtonContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35840
35833
|
displayName: "MarketplaceRows__ButtonContainer",
|
|
35841
|
-
componentId: "sc-wmpr1o-
|
|
35834
|
+
componentId: "sc-wmpr1o-9"
|
|
35842
35835
|
})(["margin:auto;"]);
|
|
35843
35836
|
var RarityContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
35844
35837
|
displayName: "MarketplaceRows__RarityContainer",
|
|
35845
|
-
componentId: "sc-wmpr1o-
|
|
35838
|
+
componentId: "sc-wmpr1o-10"
|
|
35846
35839
|
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref2) {
|
|
35847
35840
|
var item = _ref2.item;
|
|
35848
35841
|
return rarityColor(item);
|
|
@@ -35943,7 +35936,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35943
35936
|
}) : null;
|
|
35944
35937
|
var hasDCBalance = dcBalance > 0 && dcToGoldSwapRate > 0;
|
|
35945
35938
|
var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
|
|
35946
|
-
return dcToGoldSwapRate > 0 ?
|
|
35939
|
+
return dcToGoldSwapRate > 0 ? shared.goldToDC(goldPrice) : 0;
|
|
35947
35940
|
};
|
|
35948
35941
|
return React__default.createElement(React__default.Fragment, null, buyingItemId && buyingItem && hasDCBalance && React__default.createElement(MarketplaceBuyModal, {
|
|
35949
35942
|
goldPrice: buyingItem.price,
|
|
@@ -59923,7 +59916,6 @@ var Store = function Store(_ref) {
|
|
|
59923
59916
|
}
|
|
59924
59917
|
}) : React__default.createElement(Container$N, null, React__default.createElement(TopBar$1, null, React__default.createElement(LeftButtons, null, onShowHistory && React__default.createElement(CTAButton, {
|
|
59925
59918
|
icon: React__default.createElement(fa.FaHistory, null),
|
|
59926
|
-
label: "History",
|
|
59927
59919
|
onClick: onShowHistory
|
|
59928
59920
|
}), onShowWallet && React__default.createElement(CTAButton, {
|
|
59929
59921
|
icon: React__default.createElement(fa.FaWallet, null),
|