whyuzeim 1.1.30 → 1.1.32
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/HighlyCustomChat/index.js +12 -13
- package/es/HighlyCustomChat/index.js +12 -13
- package/package.json +1 -1
|
@@ -16,7 +16,6 @@ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
16
16
|
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
17
17
|
var _setInterval = require('@babel/runtime-corejs3/core-js-stable/set-interval');
|
|
18
18
|
var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
|
|
19
|
-
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
20
19
|
var React = require('react');
|
|
21
20
|
var agoraChatUikit = require('agora-chat-uikit');
|
|
22
21
|
var jsrsasign = require('jsrsasign');
|
|
@@ -449,18 +448,18 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
449
448
|
return _ref4.apply(this, arguments);
|
|
450
449
|
};
|
|
451
450
|
}();
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
},
|
|
451
|
+
// useEffect(()=>{
|
|
452
|
+
// if(client){
|
|
453
|
+
// client.addEventHandler("UIKitMessage", {
|
|
454
|
+
// onChannelMessage(message:any){
|
|
455
|
+
// console.log(JSON.stringify(message),'dfsfsd1')
|
|
456
|
+
// },
|
|
457
|
+
// onTextMessage(message:any){
|
|
458
|
+
// console.log(JSON.stringify(message),'dfsfsd2')
|
|
459
|
+
// }
|
|
460
|
+
// })
|
|
461
|
+
// }
|
|
462
|
+
// },[client])
|
|
464
463
|
return /*#__PURE__*/React.createElement("div", {
|
|
465
464
|
className: "bg-[var(--im-main-backgroundColor)] im-agent-mid ".concat((_props$className = props.className) !== null && _props$className !== void 0 ? _props$className : "", " w-full h-full overflow-hidden flex flex-col")
|
|
466
465
|
}, loading ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -14,7 +14,6 @@ import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
|
|
|
14
14
|
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
15
15
|
import _setInterval from '@babel/runtime-corejs3/core-js-stable/set-interval';
|
|
16
16
|
import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
|
|
17
|
-
import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
18
17
|
import React, { useRef, useContext, useState, useCallback, useEffect } from 'react';
|
|
19
18
|
import { useClient, useSDK, rootStore, MessageList, MessageInput, ImageMessage, FileMessage, VideoMessage, BaseMessage } from 'agora-chat-uikit';
|
|
20
19
|
import jsrsasign from 'jsrsasign';
|
|
@@ -447,18 +446,18 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
447
446
|
return _ref4.apply(this, arguments);
|
|
448
447
|
};
|
|
449
448
|
}();
|
|
450
|
-
useEffect(
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
},
|
|
449
|
+
// useEffect(()=>{
|
|
450
|
+
// if(client){
|
|
451
|
+
// client.addEventHandler("UIKitMessage", {
|
|
452
|
+
// onChannelMessage(message:any){
|
|
453
|
+
// console.log(JSON.stringify(message),'dfsfsd1')
|
|
454
|
+
// },
|
|
455
|
+
// onTextMessage(message:any){
|
|
456
|
+
// console.log(JSON.stringify(message),'dfsfsd2')
|
|
457
|
+
// }
|
|
458
|
+
// })
|
|
459
|
+
// }
|
|
460
|
+
// },[client])
|
|
462
461
|
return /*#__PURE__*/React.createElement("div", {
|
|
463
462
|
className: "bg-[var(--im-main-backgroundColor)] im-agent-mid ".concat((_props$className = props.className) !== null && _props$className !== void 0 ? _props$className : "", " w-full h-full overflow-hidden flex flex-col")
|
|
464
463
|
}, loading ? /*#__PURE__*/React.createElement("div", {
|