@rpg-engine/long-bow 0.6.97 → 0.6.851
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 +14 -23
- 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 +14 -23
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChatRevamp/ChatRevamp.tsx +7 -22
- package/src/components/ChatRevamp/SearchCharacter.tsx +1 -5
- package/src/stories/ChatRevamp.stories.tsx +1 -1
|
@@ -26461,10 +26461,7 @@ var SearchCharacter = function SearchCharacter(_ref) {
|
|
|
26461
26461
|
return handleCharacterClick(character);
|
|
26462
26462
|
},
|
|
26463
26463
|
key: character._id
|
|
26464
|
-
},
|
|
26465
|
-
maxWidth: '150px',
|
|
26466
|
-
maxLines: 1
|
|
26467
|
-
}, character.name));
|
|
26464
|
+
}, character.name);
|
|
26468
26465
|
})));
|
|
26469
26466
|
};
|
|
26470
26467
|
var SearchContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -26528,11 +26525,6 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26528
26525
|
setShowRecentChats = _useState[1];
|
|
26529
26526
|
var isPrivate = activeTab === 'private';
|
|
26530
26527
|
var isTrade = activeTab === 'trade';
|
|
26531
|
-
var toggleRecentChats = function toggleRecentChats() {
|
|
26532
|
-
setShowRecentChats(function (prev) {
|
|
26533
|
-
return !prev;
|
|
26534
|
-
});
|
|
26535
|
-
};
|
|
26536
26528
|
var handlePreviousChatCharacterClick = function handlePreviousChatCharacterClick(character) {
|
|
26537
26529
|
if (!onPreviousChatCharacterClick) return;
|
|
26538
26530
|
onPreviousChatCharacterClick(character);
|
|
@@ -26552,8 +26544,14 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26552
26544
|
}, React__default.createElement(RecentChatTabContainer, {
|
|
26553
26545
|
isPrivate: isPrivate,
|
|
26554
26546
|
isOpen: showRecentChats
|
|
26555
|
-
}, React__default.createElement(RecentChatTopBar,
|
|
26556
|
-
|
|
26547
|
+
}, React__default.createElement(RecentChatTopBar, {
|
|
26548
|
+
isOpen: showRecentChats
|
|
26549
|
+
}, React__default.createElement(BurgerIconContainer, {
|
|
26550
|
+
onPointerDown: function onPointerDown() {
|
|
26551
|
+
return setShowRecentChats(function (t) {
|
|
26552
|
+
return !t;
|
|
26553
|
+
});
|
|
26554
|
+
},
|
|
26557
26555
|
hasUnseenMessages: (unseenMessageCharacterIds == null ? void 0 : unseenMessageCharacterIds.length) > 0 || false
|
|
26558
26556
|
}, React__default.createElement(BurgerLineIcon, null), React__default.createElement(BurgerLineIcon, null), React__default.createElement(BurgerLineIcon, null)), showRecentChats && React__default.createElement(SearchButton$1, {
|
|
26559
26557
|
onPointerDown: function onPointerDown() {
|
|
@@ -26574,10 +26572,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26574
26572
|
}
|
|
26575
26573
|
}, React__default.createElement(StatusDot, {
|
|
26576
26574
|
isUnseen: (unseenMessageCharacterIds == null ? void 0 : unseenMessageCharacterIds.includes(character._id)) || false
|
|
26577
|
-
}), React__default.createElement(
|
|
26578
|
-
maxWidth: "140px",
|
|
26579
|
-
maxLines: 1
|
|
26580
|
-
}, character.name)), React__default.createElement(CloseButton$1, {
|
|
26575
|
+
}), character.name), React__default.createElement(CloseButton$1, {
|
|
26581
26576
|
onPointerDown: function onPointerDown() {
|
|
26582
26577
|
return onRemoveRecentChatCharacter == null ? void 0 : onRemoveRecentChatCharacter(character);
|
|
26583
26578
|
}
|
|
@@ -26629,16 +26624,12 @@ var PrivateChatContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26629
26624
|
var RecentChatTabContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26630
26625
|
displayName: "ChatRevamp__RecentChatTabContainer",
|
|
26631
26626
|
componentId: "sc-1sdiknw-3"
|
|
26632
|
-
})(["display:", ";flex-direction:column;border-right:1px solid ", ";outline:none;width:", "
|
|
26627
|
+
})(["display:", ";flex-direction:column;border-right:1px solid ", ";outline:none;width:", " !important;transition:width 0.3s ease-in-out;overflow:hidden;@media (max-width:768px){width:", " !important;}"], function (props) {
|
|
26633
26628
|
return props.isPrivate ? 'flex' : 'none';
|
|
26634
26629
|
}, uiColors.gray, function (props) {
|
|
26635
|
-
return props.isOpen ? '
|
|
26636
|
-
}, function (props) {
|
|
26637
|
-
return props.isOpen ? '180px' : '30px';
|
|
26638
|
-
}, function (props) {
|
|
26639
|
-
return props.isOpen ? '50%' : '30px';
|
|
26630
|
+
return props.isOpen ? '20%' : '30px';
|
|
26640
26631
|
}, function (props) {
|
|
26641
|
-
return props.isOpen ? '
|
|
26632
|
+
return props.isOpen ? '40%' : '30px';
|
|
26642
26633
|
});
|
|
26643
26634
|
var RecentChatTopBar = /*#__PURE__*/styled__default.div.withConfig({
|
|
26644
26635
|
displayName: "ChatRevamp__RecentChatTopBar",
|
|
@@ -26671,7 +26662,7 @@ var ListElementContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26671
26662
|
var ListElement$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26672
26663
|
displayName: "ChatRevamp__ListElement",
|
|
26673
26664
|
componentId: "sc-1sdiknw-10"
|
|
26674
|
-
})(["margin:0.5rem 0 !important;font-size:", " !important;padding:2px;all:unset;color:", ";width:100%;position:relative;display:flex;align-items:center;gap:4px;&:hover{color:#ff0;}
|
|
26665
|
+
})(["margin:0.5rem 0 !important;font-size:", " !important;padding:2px;all:unset;color:", ";width:100%;position:relative;display:flex;align-items:center;gap:4px;&:hover{color:#ff0;}"], uiFonts.size.small, function (props) {
|
|
26675
26666
|
return props.active ? uiColors.yellow : uiColors.white;
|
|
26676
26667
|
});
|
|
26677
26668
|
var StatusDot = /*#__PURE__*/styled__default.span.withConfig({
|