whyuzeim 1.1.149 → 1.1.151
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/cjs/ChatBox/BuyIM/index.d.ts +1 -0
- package/cjs/ChatBox/index.d.ts +1 -0
- package/cjs/index.js +10 -4
- package/es/ChatBox/BuyIM/index.d.ts +1 -0
- package/es/ChatBox/index.d.ts +1 -0
- package/es/index.js +10 -4
- package/package.json +1 -1
package/cjs/ChatBox/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface IChatbox {
|
|
|
20
20
|
onReportClick?: (report: AIReportMessageExts) => void;
|
|
21
21
|
onLoginRequired?: () => void;
|
|
22
22
|
onCustomMessageAction?: (messagetype: string, cus?: any) => void;
|
|
23
|
+
onBuy?: (tokenAddress: string) => void;
|
|
23
24
|
}
|
|
24
25
|
declare const Chatbox: React.FC<IChatbox>;
|
|
25
26
|
export default Chatbox;
|
package/cjs/index.js
CHANGED
|
@@ -137469,7 +137469,8 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
137469
137469
|
|
|
137470
137470
|
var BuyIM = function BuyIM(props) {
|
|
137471
137471
|
var headerInfo = props.headerInfo,
|
|
137472
|
-
tokenInfo = props.tokenInfo
|
|
137472
|
+
tokenInfo = props.tokenInfo,
|
|
137473
|
+
onBuy = props.onBuy;
|
|
137473
137474
|
return /*#__PURE__*/React.createElement("div", {
|
|
137474
137475
|
className: "flex-1 default_chat_box flex flex-col justify-center items-center gap-3 !bg-[#f5f5f5]"
|
|
137475
137476
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
@@ -137512,7 +137513,10 @@ var BuyIM = function BuyIM(props) {
|
|
|
137512
137513
|
}, "Private Chat Locked"), /*#__PURE__*/React.createElement("span", {
|
|
137513
137514
|
className: "text-[#2C7CF5] text-[14px]"
|
|
137514
137515
|
}, "Private chat with username requires holding at least ", tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.requiredAmount, " ", tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.tokenSymbol), /*#__PURE__*/React.createElement(antd.Button, {
|
|
137515
|
-
className: "!bg-[#2C7CF5] !text-white !w-[320px] !h-[48px] mt-3"
|
|
137516
|
+
className: "!bg-[#2C7CF5] !text-white !w-[320px] !h-[48px] mt-3",
|
|
137517
|
+
onClick: function onClick() {
|
|
137518
|
+
onBuy === null || onBuy === void 0 || onBuy(tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.tokenAddress);
|
|
137519
|
+
}
|
|
137516
137520
|
}, "Buy ", tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.requiredAmount, " ", tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.tokenSymbol, " to unlock"));
|
|
137517
137521
|
};
|
|
137518
137522
|
|
|
@@ -137530,7 +137534,8 @@ var Chatbox = function Chatbox(props) {
|
|
|
137530
137534
|
setMidComponent = _useContext.setMidComponent,
|
|
137531
137535
|
theme = _useContext.theme,
|
|
137532
137536
|
specialConversations = _useContext.specialConversations;
|
|
137533
|
-
var onBack = props.onBack
|
|
137537
|
+
var onBack = props.onBack,
|
|
137538
|
+
onBuy = props.onBuy;
|
|
137534
137539
|
var _useConversationConte = B_e(),
|
|
137535
137540
|
currentConversation = _useConversationConte.currentConversation;
|
|
137536
137541
|
_useConversationConte.conversationList;
|
|
@@ -138070,7 +138075,8 @@ var Chatbox = function Chatbox(props) {
|
|
|
138070
138075
|
className: "yuze_chat_container w-full h-full overflow-hidden flex flex-col"
|
|
138071
138076
|
}, currentConversation.conversationId && customHeader(), !isFree ? /*#__PURE__*/React.createElement(BuyIM, {
|
|
138072
138077
|
headerInfo: headerInfo,
|
|
138073
|
-
tokenInfo: tokenInfo
|
|
138078
|
+
tokenInfo: tokenInfo,
|
|
138079
|
+
onBuy: onBuy
|
|
138074
138080
|
}) : /*#__PURE__*/React.createElement(HighlyCustomChat, _extends({
|
|
138075
138081
|
conversationId: currentConversation.conversationId,
|
|
138076
138082
|
chatType: currentConversation.chatType
|
package/es/ChatBox/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface IChatbox {
|
|
|
20
20
|
onReportClick?: (report: AIReportMessageExts) => void;
|
|
21
21
|
onLoginRequired?: () => void;
|
|
22
22
|
onCustomMessageAction?: (messagetype: string, cus?: any) => void;
|
|
23
|
+
onBuy?: (tokenAddress: string) => void;
|
|
23
24
|
}
|
|
24
25
|
declare const Chatbox: React.FC<IChatbox>;
|
|
25
26
|
export default Chatbox;
|
package/es/index.js
CHANGED
|
@@ -137448,7 +137448,8 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
137448
137448
|
|
|
137449
137449
|
var BuyIM = function BuyIM(props) {
|
|
137450
137450
|
var headerInfo = props.headerInfo,
|
|
137451
|
-
tokenInfo = props.tokenInfo
|
|
137451
|
+
tokenInfo = props.tokenInfo,
|
|
137452
|
+
onBuy = props.onBuy;
|
|
137452
137453
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
137453
137454
|
className: "flex-1 default_chat_box flex flex-col justify-center items-center gap-3 !bg-[#f5f5f5]"
|
|
137454
137455
|
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -137491,7 +137492,10 @@ var BuyIM = function BuyIM(props) {
|
|
|
137491
137492
|
}, "Private Chat Locked"), /*#__PURE__*/React__default.createElement("span", {
|
|
137492
137493
|
className: "text-[#2C7CF5] text-[14px]"
|
|
137493
137494
|
}, "Private chat with username requires holding at least ", tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.requiredAmount, " ", tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.tokenSymbol), /*#__PURE__*/React__default.createElement(Button, {
|
|
137494
|
-
className: "!bg-[#2C7CF5] !text-white !w-[320px] !h-[48px] mt-3"
|
|
137495
|
+
className: "!bg-[#2C7CF5] !text-white !w-[320px] !h-[48px] mt-3",
|
|
137496
|
+
onClick: function onClick() {
|
|
137497
|
+
onBuy === null || onBuy === void 0 || onBuy(tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.tokenAddress);
|
|
137498
|
+
}
|
|
137495
137499
|
}, "Buy ", tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.requiredAmount, " ", tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.tokenSymbol, " to unlock"));
|
|
137496
137500
|
};
|
|
137497
137501
|
|
|
@@ -137509,7 +137513,8 @@ var Chatbox = function Chatbox(props) {
|
|
|
137509
137513
|
setMidComponent = _useContext.setMidComponent,
|
|
137510
137514
|
theme = _useContext.theme,
|
|
137511
137515
|
specialConversations = _useContext.specialConversations;
|
|
137512
|
-
var onBack = props.onBack
|
|
137516
|
+
var onBack = props.onBack,
|
|
137517
|
+
onBuy = props.onBuy;
|
|
137513
137518
|
var _useConversationConte = B_e(),
|
|
137514
137519
|
currentConversation = _useConversationConte.currentConversation;
|
|
137515
137520
|
_useConversationConte.conversationList;
|
|
@@ -138049,7 +138054,8 @@ var Chatbox = function Chatbox(props) {
|
|
|
138049
138054
|
className: "yuze_chat_container w-full h-full overflow-hidden flex flex-col"
|
|
138050
138055
|
}, currentConversation.conversationId && customHeader(), !isFree ? /*#__PURE__*/React__default.createElement(BuyIM, {
|
|
138051
138056
|
headerInfo: headerInfo,
|
|
138052
|
-
tokenInfo: tokenInfo
|
|
138057
|
+
tokenInfo: tokenInfo,
|
|
138058
|
+
onBuy: onBuy
|
|
138053
138059
|
}) : /*#__PURE__*/React__default.createElement(HighlyCustomChat, _extends({
|
|
138054
138060
|
conversationId: currentConversation.conversationId,
|
|
138055
138061
|
chatType: currentConversation.chatType
|