@rpg-engine/long-bow 0.8.189 → 0.8.190
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 +58 -73
- 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 +58 -73
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/Marketplace.tsx +1 -21
package/dist/long-bow.esm.js
CHANGED
|
@@ -48041,63 +48041,6 @@ var EmptySubtext = /*#__PURE__*/styled.span.withConfig({
|
|
|
48041
48041
|
componentId: "sc-su21a6-17"
|
|
48042
48042
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#52525b !important;text-align:center;max-width:260px;line-height:1.6;"]);
|
|
48043
48043
|
|
|
48044
|
-
var CharacterListingForm = function CharacterListingForm(_ref) {
|
|
48045
|
-
var accountCharacters = _ref.accountCharacters,
|
|
48046
|
-
onCharacterList = _ref.onCharacterList,
|
|
48047
|
-
atlasJSON = _ref.atlasJSON,
|
|
48048
|
-
atlasIMG = _ref.atlasIMG,
|
|
48049
|
-
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
48050
|
-
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
48051
|
-
enableHotkeys = _ref.enableHotkeys,
|
|
48052
|
-
disableHotkeys = _ref.disableHotkeys;
|
|
48053
|
-
var _useState = useState(false),
|
|
48054
|
-
isModalOpen = _useState[0],
|
|
48055
|
-
setIsModalOpen = _useState[1];
|
|
48056
|
-
var eligibleCount = accountCharacters.filter(function (c) {
|
|
48057
|
-
return !c.isListedForSale && !c.tradedAt;
|
|
48058
|
-
}).length;
|
|
48059
|
-
return React.createElement(Wrapper$2, null, React.createElement(CharacterListingModal, {
|
|
48060
|
-
isOpen: isModalOpen,
|
|
48061
|
-
onClose: function onClose() {
|
|
48062
|
-
return setIsModalOpen(false);
|
|
48063
|
-
},
|
|
48064
|
-
accountCharacters: accountCharacters,
|
|
48065
|
-
atlasJSON: atlasJSON,
|
|
48066
|
-
atlasIMG: atlasIMG,
|
|
48067
|
-
characterAtlasJSON: characterAtlasJSON,
|
|
48068
|
-
characterAtlasIMG: characterAtlasIMG,
|
|
48069
|
-
onCharacterList: onCharacterList,
|
|
48070
|
-
enableHotkeys: enableHotkeys,
|
|
48071
|
-
disableHotkeys: disableHotkeys
|
|
48072
|
-
}), React.createElement(Description$4, null, "List one of your offline characters on the marketplace. Prices are set in DC."), React.createElement(OpenButton, {
|
|
48073
|
-
icon: React.createElement(ShoppingBag, {
|
|
48074
|
-
width: 20,
|
|
48075
|
-
height: 20
|
|
48076
|
-
}),
|
|
48077
|
-
label: "List a Character" + (eligibleCount > 0 ? " (" + eligibleCount + " eligible)" : ''),
|
|
48078
|
-
disabled: eligibleCount === 0,
|
|
48079
|
-
onClick: function onClick() {
|
|
48080
|
-
return setIsModalOpen(true);
|
|
48081
|
-
}
|
|
48082
|
-
}), eligibleCount === 0 && React.createElement(NoEligible, null, "No eligible characters to list."));
|
|
48083
|
-
};
|
|
48084
|
-
var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
48085
|
-
displayName: "CharacterListingForm__Wrapper",
|
|
48086
|
-
componentId: "sc-fxv1tt-0"
|
|
48087
|
-
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:40px 24px;width:95%;margin:0 auto;"]);
|
|
48088
|
-
var Description$4 = /*#__PURE__*/styled.p.withConfig({
|
|
48089
|
-
displayName: "CharacterListingForm__Description",
|
|
48090
|
-
componentId: "sc-fxv1tt-1"
|
|
48091
|
-
})(["margin:0;font-size:0.5rem;color:#666;text-align:center;line-height:1.6;max-width:320px;"]);
|
|
48092
|
-
var OpenButton = /*#__PURE__*/styled(CTAButton).withConfig({
|
|
48093
|
-
displayName: "CharacterListingForm__OpenButton",
|
|
48094
|
-
componentId: "sc-fxv1tt-2"
|
|
48095
|
-
})(["padding:14px 24px;span{font-size:0.65rem;}svg{font-size:1.2rem;}"]);
|
|
48096
|
-
var NoEligible = /*#__PURE__*/styled.span.withConfig({
|
|
48097
|
-
displayName: "CharacterListingForm__NoEligible",
|
|
48098
|
-
componentId: "sc-fxv1tt-3"
|
|
48099
|
-
})(["font-size:0.45rem;color:#52525b;text-transform:uppercase;letter-spacing:1px;"]);
|
|
48100
|
-
|
|
48101
48044
|
var Marketplace = function Marketplace(props) {
|
|
48102
48045
|
var onClose = props.onClose,
|
|
48103
48046
|
scale = props.scale,
|
|
@@ -48279,13 +48222,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
48279
48222
|
return setCharacterSubTab('my-listings');
|
|
48280
48223
|
},
|
|
48281
48224
|
type: "button"
|
|
48282
|
-
}, "My Listings"), React.createElement(
|
|
48283
|
-
"$active": characterSubTab === 'list',
|
|
48284
|
-
onClick: function onClick() {
|
|
48285
|
-
return setCharacterSubTab('list');
|
|
48286
|
-
},
|
|
48287
|
-
type: "button"
|
|
48288
|
-
}, "List Character")), characterSubTab === 'browse' && React.createElement(CharacterMarketplacePanel, {
|
|
48225
|
+
}, "My Listings")), characterSubTab === 'browse' && React.createElement(CharacterMarketplacePanel, {
|
|
48289
48226
|
characterListings: characterListings != null ? characterListings : [],
|
|
48290
48227
|
totalCount: characterListingsTotal != null ? characterListingsTotal : 0,
|
|
48291
48228
|
currentPage: characterListingsPage != null ? characterListingsPage : 1,
|
|
@@ -48316,15 +48253,6 @@ var Marketplace = function Marketplace(props) {
|
|
|
48316
48253
|
characterAtlasIMG: characterAtlasIMG != null ? characterAtlasIMG : props.atlasIMG,
|
|
48317
48254
|
enableHotkeys: props.enableHotkeys,
|
|
48318
48255
|
disableHotkeys: props.disableHotkeys
|
|
48319
|
-
}), characterSubTab === 'list' && React.createElement(CharacterListingForm, {
|
|
48320
|
-
accountCharacters: accountCharacters != null ? accountCharacters : [],
|
|
48321
|
-
onCharacterList: onCharacterList != null ? onCharacterList : function () {},
|
|
48322
|
-
atlasJSON: props.atlasJSON,
|
|
48323
|
-
atlasIMG: props.atlasIMG,
|
|
48324
|
-
characterAtlasJSON: characterAtlasJSON != null ? characterAtlasJSON : props.atlasJSON,
|
|
48325
|
-
characterAtlasIMG: characterAtlasIMG != null ? characterAtlasIMG : props.atlasIMG,
|
|
48326
|
-
enableHotkeys: props.enableHotkeys,
|
|
48327
|
-
disableHotkeys: props.disableHotkeys
|
|
48328
48256
|
})), activeTab === 'sell' && React.createElement(ManagmentPanel, Object.assign({}, props, {
|
|
48329
48257
|
acceptedCurrency: acceptedCurrency
|
|
48330
48258
|
})), activeTab === 'buy-orders' && React.createElement(React.Fragment, null, React.createElement(BuyOrderPanel, {
|
|
@@ -48552,6 +48480,63 @@ var OtherListingRow = /*#__PURE__*/styled.div.withConfig({
|
|
|
48552
48480
|
componentId: "sc-1pxkdig-15"
|
|
48553
48481
|
})(["opacity:0.85;&:hover{opacity:1;}"]);
|
|
48554
48482
|
|
|
48483
|
+
var CharacterListingForm = function CharacterListingForm(_ref) {
|
|
48484
|
+
var accountCharacters = _ref.accountCharacters,
|
|
48485
|
+
onCharacterList = _ref.onCharacterList,
|
|
48486
|
+
atlasJSON = _ref.atlasJSON,
|
|
48487
|
+
atlasIMG = _ref.atlasIMG,
|
|
48488
|
+
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
48489
|
+
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
48490
|
+
enableHotkeys = _ref.enableHotkeys,
|
|
48491
|
+
disableHotkeys = _ref.disableHotkeys;
|
|
48492
|
+
var _useState = useState(false),
|
|
48493
|
+
isModalOpen = _useState[0],
|
|
48494
|
+
setIsModalOpen = _useState[1];
|
|
48495
|
+
var eligibleCount = accountCharacters.filter(function (c) {
|
|
48496
|
+
return !c.isListedForSale && !c.tradedAt;
|
|
48497
|
+
}).length;
|
|
48498
|
+
return React.createElement(Wrapper$2, null, React.createElement(CharacterListingModal, {
|
|
48499
|
+
isOpen: isModalOpen,
|
|
48500
|
+
onClose: function onClose() {
|
|
48501
|
+
return setIsModalOpen(false);
|
|
48502
|
+
},
|
|
48503
|
+
accountCharacters: accountCharacters,
|
|
48504
|
+
atlasJSON: atlasJSON,
|
|
48505
|
+
atlasIMG: atlasIMG,
|
|
48506
|
+
characterAtlasJSON: characterAtlasJSON,
|
|
48507
|
+
characterAtlasIMG: characterAtlasIMG,
|
|
48508
|
+
onCharacterList: onCharacterList,
|
|
48509
|
+
enableHotkeys: enableHotkeys,
|
|
48510
|
+
disableHotkeys: disableHotkeys
|
|
48511
|
+
}), React.createElement(Description$4, null, "List one of your offline characters on the marketplace. Prices are set in DC."), React.createElement(OpenButton, {
|
|
48512
|
+
icon: React.createElement(ShoppingBag, {
|
|
48513
|
+
width: 20,
|
|
48514
|
+
height: 20
|
|
48515
|
+
}),
|
|
48516
|
+
label: "List a Character" + (eligibleCount > 0 ? " (" + eligibleCount + " eligible)" : ''),
|
|
48517
|
+
disabled: eligibleCount === 0,
|
|
48518
|
+
onClick: function onClick() {
|
|
48519
|
+
return setIsModalOpen(true);
|
|
48520
|
+
}
|
|
48521
|
+
}), eligibleCount === 0 && React.createElement(NoEligible, null, "No eligible characters to list."));
|
|
48522
|
+
};
|
|
48523
|
+
var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
48524
|
+
displayName: "CharacterListingForm__Wrapper",
|
|
48525
|
+
componentId: "sc-fxv1tt-0"
|
|
48526
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:40px 24px;width:95%;margin:0 auto;"]);
|
|
48527
|
+
var Description$4 = /*#__PURE__*/styled.p.withConfig({
|
|
48528
|
+
displayName: "CharacterListingForm__Description",
|
|
48529
|
+
componentId: "sc-fxv1tt-1"
|
|
48530
|
+
})(["margin:0;font-size:0.5rem;color:#666;text-align:center;line-height:1.6;max-width:320px;"]);
|
|
48531
|
+
var OpenButton = /*#__PURE__*/styled(CTAButton).withConfig({
|
|
48532
|
+
displayName: "CharacterListingForm__OpenButton",
|
|
48533
|
+
componentId: "sc-fxv1tt-2"
|
|
48534
|
+
})(["padding:14px 24px;span{font-size:0.65rem;}svg{font-size:1.2rem;}"]);
|
|
48535
|
+
var NoEligible = /*#__PURE__*/styled.span.withConfig({
|
|
48536
|
+
displayName: "CharacterListingForm__NoEligible",
|
|
48537
|
+
componentId: "sc-fxv1tt-3"
|
|
48538
|
+
})(["font-size:0.45rem;color:#52525b;text-transform:uppercase;letter-spacing:1px;"]);
|
|
48539
|
+
|
|
48555
48540
|
var TabBody = function TabBody(_ref) {
|
|
48556
48541
|
var id = _ref.id,
|
|
48557
48542
|
children = _ref.children,
|