whyuzeim 1.1.154 → 1.1.155

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.
@@ -97,9 +97,9 @@
97
97
 
98
98
  //override
99
99
  --im-msg-bubble-color-left: rgba(255, 255, 255, 0.05);
100
- --im-msg-bubble-color-right: #91CAFF;
100
+ --im-msg-bubble-color-right: rgba(144, 249, 38, 0.05);
101
101
  --im-msg-bubble-font-color: rgba(255, 255, 255, 1);
102
- --im-msg-bubble-right-font-color: rgba(0, 0, 0, 0.90);
102
+ --im-msg-bubble-right-font-color: rgba(144, 249, 38, 1);
103
103
 
104
104
  .cui-chat-dark {
105
105
  background-color: var(--im-main-backgroundColor);
package/cjs/index.js CHANGED
@@ -136809,13 +136809,13 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
136809
136809
  setIsAgent = _useState10[1];
136810
136810
  var renderTxtMsg = function renderTxtMsg(msg, onApply) {
136811
136811
  var _msg$from, _userInfo$uid;
136812
- var isMySelf = (msg === null || msg === void 0 ? void 0 : msg.bySelf) === true || (msg === null || msg === void 0 || (_msg$from = msg.from) === null || _msg$from === void 0 ? void 0 : _msg$from.toLowerCase()) === ((_userInfo$uid = userInfo.uid) === null || _userInfo$uid === void 0 ? void 0 : _userInfo$uid.toLowerCase());
136812
+ (msg === null || msg === void 0 ? void 0 : msg.bySelf) === true || (msg === null || msg === void 0 || (_msg$from = msg.from) === null || _msg$from === void 0 ? void 0 : _msg$from.toLowerCase()) === ((_userInfo$uid = userInfo.uid) === null || _userInfo$uid === void 0 ? void 0 : _userInfo$uid.toLowerCase());
136813
136813
  return /*#__PURE__*/React.createElement(qh, {
136814
136814
  bubbleType: "none",
136815
136815
  reaction: false,
136816
136816
  select: false,
136817
136817
  thread: false,
136818
- direction: isMySelf ? "rtl" : "ltr",
136818
+ direction: "ltr",
136819
136819
  renderUserProfile: function renderUserProfile() {
136820
136820
  return null;
136821
136821
  },
@@ -136826,8 +136826,8 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
136826
136826
  visible: false,
136827
136827
  icon: null,
136828
136828
  actions: []
136829
- },
136830
- showAvatar: !isMySelf
136829
+ }
136830
+ // showAvatar={!isMySelf}
136831
136831
  // avatar={!isMySelf?<img src={headerInfo.headerImageURL||defaultAvatar} className="w-[48px] h-[48px] rounded-full overflow-hidden object-fit" />:undefined}
136832
136832
  ,
136833
136833
  children: renderLongTextMsg(msg, onApply)
@@ -136863,7 +136863,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
136863
136863
  var isMySelf = (msg === null || msg === void 0 ? void 0 : msg.bySelf) === true || (msg === null || msg === void 0 || (_msg$from2 = msg.from) === null || _msg$from2 === void 0 ? void 0 : _msg$from2.toLowerCase()) === ((_userInfo$uid2 = userInfo.uid) === null || _userInfo$uid2 === void 0 ? void 0 : _userInfo$uid2.toLowerCase());
136864
136864
  // 复制代码到剪贴板
136865
136865
  return /*#__PURE__*/React.createElement("div", {
136866
- className: "text-[var(--im-main-fontColor)] flex flex-col gap-1 ".concat(isMySelf ? "items-end" : "items-start")
136866
+ className: "text-[var(--im-main-fontColor)] flex flex-col gap-1 ".concat("items-start")
136867
136867
  }, /*#__PURE__*/React.createElement("div", {
136868
136868
  style: {
136869
136869
  background: isMySelf ? "var(--im-msg-bubble-color-right)" : "var(--im-msg-bubble-color-left)",
@@ -97,9 +97,9 @@
97
97
 
98
98
  //override
99
99
  --im-msg-bubble-color-left: rgba(255, 255, 255, 0.05);
100
- --im-msg-bubble-color-right: #91CAFF;
100
+ --im-msg-bubble-color-right: rgba(144, 249, 38, 0.05);
101
101
  --im-msg-bubble-font-color: rgba(255, 255, 255, 1);
102
- --im-msg-bubble-right-font-color: rgba(0, 0, 0, 0.90);
102
+ --im-msg-bubble-right-font-color: rgba(144, 249, 38, 1);
103
103
 
104
104
  .cui-chat-dark {
105
105
  background-color: var(--im-main-backgroundColor);
package/es/index.js CHANGED
@@ -136788,13 +136788,13 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
136788
136788
  setIsAgent = _useState10[1];
136789
136789
  var renderTxtMsg = function renderTxtMsg(msg, onApply) {
136790
136790
  var _msg$from, _userInfo$uid;
136791
- var isMySelf = (msg === null || msg === void 0 ? void 0 : msg.bySelf) === true || (msg === null || msg === void 0 || (_msg$from = msg.from) === null || _msg$from === void 0 ? void 0 : _msg$from.toLowerCase()) === ((_userInfo$uid = userInfo.uid) === null || _userInfo$uid === void 0 ? void 0 : _userInfo$uid.toLowerCase());
136791
+ (msg === null || msg === void 0 ? void 0 : msg.bySelf) === true || (msg === null || msg === void 0 || (_msg$from = msg.from) === null || _msg$from === void 0 ? void 0 : _msg$from.toLowerCase()) === ((_userInfo$uid = userInfo.uid) === null || _userInfo$uid === void 0 ? void 0 : _userInfo$uid.toLowerCase());
136792
136792
  return /*#__PURE__*/React__default.createElement(qh, {
136793
136793
  bubbleType: "none",
136794
136794
  reaction: false,
136795
136795
  select: false,
136796
136796
  thread: false,
136797
- direction: isMySelf ? "rtl" : "ltr",
136797
+ direction: "ltr",
136798
136798
  renderUserProfile: function renderUserProfile() {
136799
136799
  return null;
136800
136800
  },
@@ -136805,8 +136805,8 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
136805
136805
  visible: false,
136806
136806
  icon: null,
136807
136807
  actions: []
136808
- },
136809
- showAvatar: !isMySelf
136808
+ }
136809
+ // showAvatar={!isMySelf}
136810
136810
  // avatar={!isMySelf?<img src={headerInfo.headerImageURL||defaultAvatar} className="w-[48px] h-[48px] rounded-full overflow-hidden object-fit" />:undefined}
136811
136811
  ,
136812
136812
  children: renderLongTextMsg(msg, onApply)
@@ -136842,7 +136842,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
136842
136842
  var isMySelf = (msg === null || msg === void 0 ? void 0 : msg.bySelf) === true || (msg === null || msg === void 0 || (_msg$from2 = msg.from) === null || _msg$from2 === void 0 ? void 0 : _msg$from2.toLowerCase()) === ((_userInfo$uid2 = userInfo.uid) === null || _userInfo$uid2 === void 0 ? void 0 : _userInfo$uid2.toLowerCase());
136843
136843
  // 复制代码到剪贴板
136844
136844
  return /*#__PURE__*/React__default.createElement("div", {
136845
- className: "text-[var(--im-main-fontColor)] flex flex-col gap-1 ".concat(isMySelf ? "items-end" : "items-start")
136845
+ className: "text-[var(--im-main-fontColor)] flex flex-col gap-1 ".concat("items-start")
136846
136846
  }, /*#__PURE__*/React__default.createElement("div", {
136847
136847
  style: {
136848
136848
  background: isMySelf ? "var(--im-msg-bubble-color-right)" : "var(--im-msg-bubble-color-left)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whyuzeim",
3
- "version": "1.1.154",
3
+ "version": "1.1.155",
4
4
  "description": "im componenets",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",