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