@rpg-engine/long-bow 0.8.186 → 0.8.188
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 +40 -29
- 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 +40 -29
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/CharacterDetailModal.tsx +32 -24
- package/src/components/Marketplace/CharacterListingModal.tsx +1 -0
- package/src/components/Marketplace/CharacterMarketplacePanel.tsx +2 -0
- package/src/components/Marketplace/MyCharacterListingsPanel.tsx +2 -0
- package/src/stories/Features/marketplace/CharacterDetailModal.stories.tsx +8 -7
package/dist/long-bow.esm.js
CHANGED
|
@@ -47245,16 +47245,17 @@ var CharacterDetailModal = function CharacterDetailModal(_ref) {
|
|
|
47245
47245
|
spriteKey: snap.textureKey + "/down/standing/0.png",
|
|
47246
47246
|
imgScale: 4,
|
|
47247
47247
|
height: 96,
|
|
47248
|
-
width: 96
|
|
47248
|
+
width: 96,
|
|
47249
|
+
centered: true
|
|
47249
47250
|
})), React.createElement(HeroInfo, null, React.createElement(CharacterName$1, null, snap.name || 'Unknown'), React.createElement(CharacterClass, null, "Lv.", snap.level, " \xB7 ", snap["class"]), React.createElement(CharacterOrigin, null, snap.race, " \xB7 ", snap.faction), React.createElement(ModeBadge, {
|
|
47250
47251
|
"$hardcore": ((_snap$mode = snap.mode) == null ? void 0 : _snap$mode.toLowerCase()) === 'hardcore'
|
|
47251
|
-
}, snap.mode || 'Standard'))), React.createElement(Divider, null), topSkills.length > 0 && React.createElement(Section$3, null, React.createElement(SectionTitle$3, null, "Skills"), React.createElement(
|
|
47252
|
+
}, snap.mode || 'Standard'))), React.createElement(Divider, null), React.createElement(MetaColumns, null, topSkills.length > 0 && React.createElement(Section$3, null, React.createElement(SectionTitle$3, null, "Skills"), React.createElement(SkillsList, null, topSkills.map(function (_ref4) {
|
|
47252
47253
|
var name = _ref4[0],
|
|
47253
47254
|
value = _ref4[1];
|
|
47254
47255
|
return React.createElement(SkillRow, {
|
|
47255
47256
|
key: name
|
|
47256
47257
|
}, React.createElement(SkillName, null, name), React.createElement(SkillValue, null, value));
|
|
47257
|
-
}))), ((_snap$equipment = snap.equipment) == null ? void 0 : _snap$equipment.length) > 0 && React.createElement(
|
|
47258
|
+
}))), ((_snap$equipment = snap.equipment) == null ? void 0 : _snap$equipment.length) > 0 && React.createElement(Section$3, null, React.createElement(SectionTitle$3, null, "Equipment"), React.createElement(EquipmentList, null, snap.equipment.map(function (eq, i) {
|
|
47258
47259
|
return React.createElement(EquipmentRow, {
|
|
47259
47260
|
key: i
|
|
47260
47261
|
}, React.createElement(EquipSlot, null, eq.slot), React.createElement(EquipName, null, eq.itemName), React.createElement(RarityBadge, {
|
|
@@ -47264,7 +47265,8 @@ var CharacterDetailModal = function CharacterDetailModal(_ref) {
|
|
|
47264
47265
|
atlasIMG: atlasIMG,
|
|
47265
47266
|
atlasJSON: atlasJSON,
|
|
47266
47267
|
spriteKey: "others/definya-coin.png",
|
|
47267
|
-
imgScale: 1
|
|
47268
|
+
imgScale: 1,
|
|
47269
|
+
centered: true
|
|
47268
47270
|
})), React.createElement(PriceAmount, null, formatDCAmount(listing.price), " DC")), React.createElement(BuyBtn, {
|
|
47269
47271
|
icon: React.createElement(ShoppingBag, {
|
|
47270
47272
|
width: 18,
|
|
@@ -47287,7 +47289,7 @@ var ModalContainer$5 = /*#__PURE__*/styled.div.withConfig({
|
|
|
47287
47289
|
var ModalContent$5 = /*#__PURE__*/styled.div.withConfig({
|
|
47288
47290
|
displayName: "CharacterDetailModal__ModalContent",
|
|
47289
47291
|
componentId: "sc-1kdn1l6-2"
|
|
47290
|
-
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:
|
|
47292
|
+
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:580px;max-width:96%;max-height:85dvh;display:flex;flex-direction:column;gap:14px;overflow-y:auto;overflow-x:hidden;pointer-events:auto;animation:", " 0.15s ease-out;&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-track{background:rgba(0,0,0,0.2);border-radius:4px;}&::-webkit-scrollbar-thumb{background:rgba(245,158,11,0.3);border-radius:4px;}"], scaleIn$2);
|
|
47291
47293
|
var Header$b = /*#__PURE__*/styled.div.withConfig({
|
|
47292
47294
|
displayName: "CharacterDetailModal__Header",
|
|
47293
47295
|
componentId: "sc-1kdn1l6-3"
|
|
@@ -47346,41 +47348,45 @@ var SectionTitle$3 = /*#__PURE__*/styled.span.withConfig({
|
|
|
47346
47348
|
displayName: "CharacterDetailModal__SectionTitle",
|
|
47347
47349
|
componentId: "sc-1kdn1l6-15"
|
|
47348
47350
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.45rem !important;color:#f59e0b !important;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47349
|
-
var
|
|
47350
|
-
displayName: "
|
|
47351
|
+
var MetaColumns = /*#__PURE__*/styled.div.withConfig({
|
|
47352
|
+
displayName: "CharacterDetailModal__MetaColumns",
|
|
47351
47353
|
componentId: "sc-1kdn1l6-16"
|
|
47352
|
-
})(["display:grid;grid-template-columns:
|
|
47354
|
+
})(["display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;"]);
|
|
47355
|
+
var SkillsList = /*#__PURE__*/styled.div.withConfig({
|
|
47356
|
+
displayName: "CharacterDetailModal__SkillsList",
|
|
47357
|
+
componentId: "sc-1kdn1l6-17"
|
|
47358
|
+
})(["display:flex;flex-direction:column;gap:4px;"]);
|
|
47353
47359
|
var SkillRow = /*#__PURE__*/styled.div.withConfig({
|
|
47354
47360
|
displayName: "CharacterDetailModal__SkillRow",
|
|
47355
|
-
componentId: "sc-1kdn1l6-
|
|
47361
|
+
componentId: "sc-1kdn1l6-18"
|
|
47356
47362
|
})(["display:flex;justify-content:space-between;align-items:center;gap:8px;"]);
|
|
47357
47363
|
var SkillName = /*#__PURE__*/styled.span.withConfig({
|
|
47358
47364
|
displayName: "CharacterDetailModal__SkillName",
|
|
47359
|
-
componentId: "sc-1kdn1l6-
|
|
47365
|
+
componentId: "sc-1kdn1l6-19"
|
|
47360
47366
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#9ca3af !important;text-transform:capitalize;"]);
|
|
47361
47367
|
var SkillValue = /*#__PURE__*/styled.span.withConfig({
|
|
47362
47368
|
displayName: "CharacterDetailModal__SkillValue",
|
|
47363
|
-
componentId: "sc-1kdn1l6-
|
|
47369
|
+
componentId: "sc-1kdn1l6-20"
|
|
47364
47370
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#fef08a !important;"]);
|
|
47365
47371
|
var EquipmentList = /*#__PURE__*/styled.div.withConfig({
|
|
47366
47372
|
displayName: "CharacterDetailModal__EquipmentList",
|
|
47367
|
-
componentId: "sc-1kdn1l6-
|
|
47373
|
+
componentId: "sc-1kdn1l6-21"
|
|
47368
47374
|
})(["display:flex;flex-direction:column;gap:5px;"]);
|
|
47369
47375
|
var EquipmentRow = /*#__PURE__*/styled.div.withConfig({
|
|
47370
47376
|
displayName: "CharacterDetailModal__EquipmentRow",
|
|
47371
|
-
componentId: "sc-1kdn1l6-
|
|
47377
|
+
componentId: "sc-1kdn1l6-22"
|
|
47372
47378
|
})(["display:flex;align-items:center;gap:8px;padding:5px 8px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.05);border-radius:4px;"]);
|
|
47373
47379
|
var EquipSlot = /*#__PURE__*/styled.span.withConfig({
|
|
47374
47380
|
displayName: "CharacterDetailModal__EquipSlot",
|
|
47375
|
-
componentId: "sc-1kdn1l6-
|
|
47381
|
+
componentId: "sc-1kdn1l6-23"
|
|
47376
47382
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.34rem !important;color:#6b7280 !important;text-transform:capitalize;min-width:52px;flex-shrink:0;"]);
|
|
47377
47383
|
var EquipName = /*#__PURE__*/styled.span.withConfig({
|
|
47378
47384
|
displayName: "CharacterDetailModal__EquipName",
|
|
47379
|
-
componentId: "sc-1kdn1l6-
|
|
47385
|
+
componentId: "sc-1kdn1l6-24"
|
|
47380
47386
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#d1d5db !important;flex:1;"]);
|
|
47381
47387
|
var RarityBadge = /*#__PURE__*/styled.span.withConfig({
|
|
47382
47388
|
displayName: "CharacterDetailModal__RarityBadge",
|
|
47383
|
-
componentId: "sc-1kdn1l6-
|
|
47389
|
+
componentId: "sc-1kdn1l6-25"
|
|
47384
47390
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.32rem !important;color:", " !important;border:1px solid ", "44;border-radius:2px;padding:1px 4px;text-transform:uppercase;flex-shrink:0;"], function (_ref7) {
|
|
47385
47391
|
var $rarity = _ref7.$rarity;
|
|
47386
47392
|
return rarityColor$1($rarity);
|
|
@@ -47390,35 +47396,35 @@ var RarityBadge = /*#__PURE__*/styled.span.withConfig({
|
|
|
47390
47396
|
});
|
|
47391
47397
|
var Footer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47392
47398
|
displayName: "CharacterDetailModal__Footer",
|
|
47393
|
-
componentId: "sc-1kdn1l6-
|
|
47399
|
+
componentId: "sc-1kdn1l6-26"
|
|
47394
47400
|
})(["display:flex;flex-direction:column;gap:8px;flex-shrink:0;"]);
|
|
47395
47401
|
var SellerInfo = /*#__PURE__*/styled.span.withConfig({
|
|
47396
47402
|
displayName: "CharacterDetailModal__SellerInfo",
|
|
47397
|
-
componentId: "sc-1kdn1l6-
|
|
47403
|
+
componentId: "sc-1kdn1l6-27"
|
|
47398
47404
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#6b7280 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47399
47405
|
var FooterActions = /*#__PURE__*/styled.div.withConfig({
|
|
47400
47406
|
displayName: "CharacterDetailModal__FooterActions",
|
|
47401
|
-
componentId: "sc-1kdn1l6-
|
|
47407
|
+
componentId: "sc-1kdn1l6-28"
|
|
47402
47408
|
})(["display:flex;align-items:center;justify-content:space-between;gap:12px;"]);
|
|
47403
47409
|
var PriceDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
47404
47410
|
displayName: "CharacterDetailModal__PriceDisplay",
|
|
47405
|
-
componentId: "sc-1kdn1l6-
|
|
47411
|
+
componentId: "sc-1kdn1l6-29"
|
|
47406
47412
|
})(["display:flex;align-items:center;gap:6px;line-height:1;"]);
|
|
47407
47413
|
var DCCoinWrapper$2 = /*#__PURE__*/styled.span.withConfig({
|
|
47408
47414
|
displayName: "CharacterDetailModal__DCCoinWrapper",
|
|
47409
|
-
componentId: "sc-1kdn1l6-
|
|
47415
|
+
componentId: "sc-1kdn1l6-30"
|
|
47410
47416
|
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0;"]);
|
|
47411
47417
|
var PriceAmount = /*#__PURE__*/styled.span.withConfig({
|
|
47412
47418
|
displayName: "CharacterDetailModal__PriceAmount",
|
|
47413
|
-
componentId: "sc-1kdn1l6-
|
|
47419
|
+
componentId: "sc-1kdn1l6-31"
|
|
47414
47420
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.7rem !important;color:#fef08a !important;"]);
|
|
47415
47421
|
var BuyBtn = /*#__PURE__*/styled(CTAButton).withConfig({
|
|
47416
47422
|
displayName: "CharacterDetailModal__BuyBtn",
|
|
47417
|
-
componentId: "sc-1kdn1l6-
|
|
47423
|
+
componentId: "sc-1kdn1l6-32"
|
|
47418
47424
|
})(["flex-shrink:0;padding:10px 18px;height:34px;span{font-size:0.6rem;}"]);
|
|
47419
47425
|
var PendingNotice = /*#__PURE__*/styled.span.withConfig({
|
|
47420
47426
|
displayName: "CharacterDetailModal__PendingNotice",
|
|
47421
|
-
componentId: "sc-1kdn1l6-
|
|
47427
|
+
componentId: "sc-1kdn1l6-33"
|
|
47422
47428
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.35rem !important;color:#ef4444 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47423
47429
|
|
|
47424
47430
|
var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {
|
|
@@ -47475,7 +47481,8 @@ var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {
|
|
|
47475
47481
|
spriteKey: snapshot.textureKey + "/down/standing/0.png",
|
|
47476
47482
|
imgScale: 3,
|
|
47477
47483
|
height: 64,
|
|
47478
|
-
width: 64
|
|
47484
|
+
width: 64,
|
|
47485
|
+
centered: true
|
|
47479
47486
|
});
|
|
47480
47487
|
};
|
|
47481
47488
|
return React.createElement(React.Fragment, null, React.createElement(CharacterDetailModal, {
|
|
@@ -47517,7 +47524,8 @@ var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {
|
|
|
47517
47524
|
atlasIMG: atlasIMG,
|
|
47518
47525
|
atlasJSON: atlasJSON,
|
|
47519
47526
|
spriteKey: "others/definya-coin.png",
|
|
47520
|
-
imgScale: 1
|
|
47527
|
+
imgScale: 1,
|
|
47528
|
+
centered: true
|
|
47521
47529
|
})), formatDCAmount(listing.price), " DC")), listing.isBeingBought && React.createElement(BeingBoughtBadge, null, "Pending"));
|
|
47522
47530
|
}))), totalCount > itemsPerPage && React.createElement(PagerFooter$1, null, React.createElement(Pagination, {
|
|
47523
47531
|
currentPage: currentPage,
|
|
@@ -47669,12 +47677,14 @@ var MyCharacterListingsPanel = function MyCharacterListingsPanel(_ref) {
|
|
|
47669
47677
|
spriteKey: listing.characterSnapshot.textureKey + "/down/standing/0.png",
|
|
47670
47678
|
imgScale: 3,
|
|
47671
47679
|
height: 64,
|
|
47672
|
-
width: 64
|
|
47680
|
+
width: 64,
|
|
47681
|
+
centered: true
|
|
47673
47682
|
})), React.createElement(CharacterInfo$1, null, React.createElement(CharacterName$3, null, listing.characterSnapshot.name || 'Unknown'), React.createElement(CharacterMeta$1, null, "Level ", listing.characterSnapshot.level), React.createElement(ListingPrice$1, null, React.createElement(DCCoinWrapper$4, null, React.createElement(SpriteFromAtlas, {
|
|
47674
47683
|
atlasIMG: atlasIMG,
|
|
47675
47684
|
atlasJSON: atlasJSON,
|
|
47676
47685
|
spriteKey: "others/definya-coin.png",
|
|
47677
|
-
imgScale: 1
|
|
47686
|
+
imgScale: 1,
|
|
47687
|
+
centered: true
|
|
47678
47688
|
})), formatDCAmount(listing.price), " DC"), React.createElement(ListingMeta, null, "Listed ", getFormattedDate(listing.createdAt)), listing.isBeingBought && React.createElement(ListingStatus, {
|
|
47679
47689
|
"$status": "pending"
|
|
47680
47690
|
}, "Sale Pending")), React.createElement(ActionButton, {
|
|
@@ -47918,7 +47928,8 @@ var CharacterListingModal = function CharacterListingModal(_ref) {
|
|
|
47918
47928
|
atlasIMG: atlasIMG,
|
|
47919
47929
|
atlasJSON: atlasJSON,
|
|
47920
47930
|
spriteKey: "others/definya-coin.png",
|
|
47921
|
-
imgScale: 1
|
|
47931
|
+
imgScale: 1,
|
|
47932
|
+
centered: true
|
|
47922
47933
|
})), React.createElement(PricePreviewAmount, null, Number(price).toLocaleString(), " DC")), React.createElement(DCRateStrip, null)))));
|
|
47923
47934
|
};
|
|
47924
47935
|
var scaleIn$3 = /*#__PURE__*/keyframes(["from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}"]);
|