@rpg-engine/long-bow 0.6.94 → 0.6.96
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 +27 -21
- 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 +27 -21
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChatRevamp/ChatRevamp.tsx +62 -50
|
@@ -26547,9 +26547,9 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26547
26547
|
}, isPrivate && React__default.createElement(RecentChatTabContainer, {
|
|
26548
26548
|
isPrivate: isPrivate,
|
|
26549
26549
|
isOpen: showRecentChats
|
|
26550
|
-
}, React__default.createElement(
|
|
26550
|
+
}, React__default.createElement(RecentChatContent, {
|
|
26551
26551
|
isOpen: showRecentChats
|
|
26552
|
-
}, React__default.createElement(BurgerIconContainer, {
|
|
26552
|
+
}, React__default.createElement(RecentChatTopBar, null, React__default.createElement(BurgerIconContainer, {
|
|
26553
26553
|
onClick: function onClick() {
|
|
26554
26554
|
return setShowRecentChats(function (t) {
|
|
26555
26555
|
return !t;
|
|
@@ -26563,9 +26563,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26563
26563
|
}, React__default.createElement(rx.RxMagnifyingGlass, {
|
|
26564
26564
|
size: 16,
|
|
26565
26565
|
color: uiColors.white
|
|
26566
|
-
}))), React__default.createElement(RecentChatLogContainer, {
|
|
26567
|
-
isOpen: showRecentChats
|
|
26568
|
-
}, recentChatCharacters == null ? void 0 : recentChatCharacters.map(function (character) {
|
|
26566
|
+
}))), React__default.createElement(RecentChatLogContainer, null, recentChatCharacters == null ? void 0 : recentChatCharacters.map(function (character) {
|
|
26569
26567
|
return React__default.createElement(ListElementContainer, {
|
|
26570
26568
|
key: character._id
|
|
26571
26569
|
}, React__default.createElement(ListElement$1, {
|
|
@@ -26577,7 +26575,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26577
26575
|
isUnseen: (unseenMessageCharacterIds == null ? void 0 : unseenMessageCharacterIds.includes(character._id)) || false
|
|
26578
26576
|
}), React__default.createElement(EllipsisWrapper, null, React__default.createElement(Ellipsis, {
|
|
26579
26577
|
maxLines: 1,
|
|
26580
|
-
maxWidth: "
|
|
26578
|
+
maxWidth: "140px"
|
|
26581
26579
|
}, character.name))), React__default.createElement(CloseButton$1, {
|
|
26582
26580
|
onClick: function onClick() {
|
|
26583
26581
|
return onRemoveRecentChatCharacter == null ? void 0 : onRemoveRecentChatCharacter(character);
|
|
@@ -26585,7 +26583,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26585
26583
|
}, React__default.createElement(rx.RxCross2, {
|
|
26586
26584
|
size: 16
|
|
26587
26585
|
})));
|
|
26588
|
-
}))), isPrivate && searchCharacterUI ? React__default.createElement(SearchCharacter, {
|
|
26586
|
+
})))), isPrivate && searchCharacterUI ? React__default.createElement(SearchCharacter, {
|
|
26589
26587
|
onFocus: onFocus,
|
|
26590
26588
|
onBlur: onBlur,
|
|
26591
26589
|
onChangeCharacterName: onChangeCharacterName,
|
|
@@ -26636,60 +26634,68 @@ var PrivateChatContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26636
26634
|
var RecentChatTabContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26637
26635
|
displayName: "ChatRevamp__RecentChatTabContainer",
|
|
26638
26636
|
componentId: "sc-1sdiknw-4"
|
|
26639
|
-
})(["display:", ";flex-direction:column;border-right:1px solid ", ";outline:none;width:", "
|
|
26637
|
+
})(["display:", ";flex-direction:column;border-right:1px solid ", ";outline:none;width:", ";min-width:", ";max-width:300px;transition:all 0.3s ease-in-out;overflow:hidden;@media (max-width:768px){width:", ";min-width:", ";}"], function (props) {
|
|
26640
26638
|
return props.isPrivate ? 'flex' : 'none';
|
|
26641
26639
|
}, uiColors.gray, function (props) {
|
|
26642
26640
|
return props.isOpen ? '20%' : '30px';
|
|
26641
|
+
}, function (props) {
|
|
26642
|
+
return props.isOpen ? '140px' : '30px';
|
|
26643
26643
|
}, function (props) {
|
|
26644
26644
|
return props.isOpen ? '40%' : '30px';
|
|
26645
|
+
}, function (props) {
|
|
26646
|
+
return props.isOpen ? '140px' : '30px';
|
|
26647
|
+
});
|
|
26648
|
+
var RecentChatContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
26649
|
+
displayName: "ChatRevamp__RecentChatContent",
|
|
26650
|
+
componentId: "sc-1sdiknw-5"
|
|
26651
|
+
})(["width:100%;min-width:140px;opacity:", ";transition:opacity 0.3s ease-in-out;"], function (props) {
|
|
26652
|
+
return props.isOpen ? 1 : 0;
|
|
26645
26653
|
});
|
|
26646
26654
|
var RecentChatTopBar = /*#__PURE__*/styled__default.div.withConfig({
|
|
26647
26655
|
displayName: "ChatRevamp__RecentChatTopBar",
|
|
26648
|
-
componentId: "sc-1sdiknw-
|
|
26656
|
+
componentId: "sc-1sdiknw-6"
|
|
26649
26657
|
})(["display:flex;align-items:center;justify-content:space-between;height:30px;"]);
|
|
26650
26658
|
var SearchButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26651
26659
|
displayName: "ChatRevamp__SearchButton",
|
|
26652
|
-
componentId: "sc-1sdiknw-
|
|
26660
|
+
componentId: "sc-1sdiknw-7"
|
|
26653
26661
|
})(["border:none;background-color:transparent;display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:4px;position:relative;"]);
|
|
26654
26662
|
var BurgerIconContainer = /*#__PURE__*/styled__default.button.withConfig({
|
|
26655
26663
|
displayName: "ChatRevamp__BurgerIconContainer",
|
|
26656
|
-
componentId: "sc-1sdiknw-
|
|
26664
|
+
componentId: "sc-1sdiknw-8"
|
|
26657
26665
|
})(["border:none;background-color:transparent;display:flex;flex-direction:column;align-items:flex-end;padding:4px;gap:2px;position:relative;&:after{content:'';width:6px;height:6px;position:absolute;top:0;right:2px;border-radius:50%;background-color:", ";display:", ";}"], uiColors.lightGreen, function (props) {
|
|
26658
26666
|
return props.hasUnseenMessages ? 'block' : 'none';
|
|
26659
26667
|
});
|
|
26660
26668
|
var BurgerLineIcon = /*#__PURE__*/styled__default.span.withConfig({
|
|
26661
26669
|
displayName: "ChatRevamp__BurgerLineIcon",
|
|
26662
|
-
componentId: "sc-1sdiknw-
|
|
26670
|
+
componentId: "sc-1sdiknw-9"
|
|
26663
26671
|
})(["width:1rem;height:2px;background-color:#ffffff;"]);
|
|
26664
26672
|
var RecentChatLogContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26665
26673
|
displayName: "ChatRevamp__RecentChatLogContainer",
|
|
26666
|
-
componentId: "sc-1sdiknw-
|
|
26667
|
-
})(["border:none;list-style:none;display:flex;
|
|
26668
|
-
return props.isOpen ? 1 : 0;
|
|
26669
|
-
});
|
|
26674
|
+
componentId: "sc-1sdiknw-10"
|
|
26675
|
+
})(["border:none;list-style:none;display:flex;flex-direction:column;gap:0.5rem;padding:0;margin:0;flex:1;"]);
|
|
26670
26676
|
var ListElementContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26671
26677
|
displayName: "ChatRevamp__ListElementContainer",
|
|
26672
|
-
componentId: "sc-1sdiknw-
|
|
26678
|
+
componentId: "sc-1sdiknw-11"
|
|
26673
26679
|
})(["display:flex;justify-content:space-between;align-items:center;width:100%;"]);
|
|
26674
26680
|
var ListElement$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26675
26681
|
displayName: "ChatRevamp__ListElement",
|
|
26676
|
-
componentId: "sc-1sdiknw-
|
|
26682
|
+
componentId: "sc-1sdiknw-12"
|
|
26677
26683
|
})(["margin:0.5rem 0 !important;font-size:", " !important;padding:8px 4px;border-radius:4px;all:unset;color:", ";width:100%;position:relative;display:flex;align-items:center;gap:4px;transition:all 0.2s ease;flex:1;min-width:0;&:hover{background-color:rgba(255,255,255,0.1);}"], uiFonts.size.small, function (props) {
|
|
26678
26684
|
return props.active ? uiColors.yellow : uiColors.white;
|
|
26679
26685
|
});
|
|
26680
26686
|
var EllipsisWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
26681
26687
|
displayName: "ChatRevamp__EllipsisWrapper",
|
|
26682
|
-
componentId: "sc-1sdiknw-
|
|
26688
|
+
componentId: "sc-1sdiknw-13"
|
|
26683
26689
|
})(["flex:1;min-width:0;"]);
|
|
26684
26690
|
var StatusDot = /*#__PURE__*/styled__default.span.withConfig({
|
|
26685
26691
|
displayName: "ChatRevamp__StatusDot",
|
|
26686
|
-
componentId: "sc-1sdiknw-
|
|
26692
|
+
componentId: "sc-1sdiknw-14"
|
|
26687
26693
|
})(["width:6px;height:6px;border-radius:50%;background-color:", ";display:inline-block;margin-right:6px;"], function (props) {
|
|
26688
26694
|
return props.isUnseen ? uiColors.lightGreen : uiColors.gray;
|
|
26689
26695
|
});
|
|
26690
26696
|
var CloseButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26691
26697
|
displayName: "ChatRevamp__CloseButton",
|
|
26692
|
-
componentId: "sc-1sdiknw-
|
|
26698
|
+
componentId: "sc-1sdiknw-15"
|
|
26693
26699
|
})(["all:unset;font-size:", ";margin:0 0.5rem;transition:all 0.2s ease-in-out;background-color:", ";color:", ";border-radius:50%;padding:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;&:hover{background-color:", ";color:", ";}"], uiFonts.size.xxsmall, uiColors.red, uiColors.white, uiColors.white, uiColors.red);
|
|
26694
26700
|
|
|
26695
26701
|
var CheckButton = function CheckButton(_ref) {
|