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.
@@ -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
- React.useEffect(function () {
453
- if (client) {
454
- client.addEventHandler("handlerId", {
455
- onChannelMessage: function onChannelMessage(message) {
456
- console.log(_JSON$stringify(message), 'dfsfsd1');
457
- },
458
- onTextMessage: function onTextMessage(message) {
459
- console.log(_JSON$stringify(message), 'dfsfsd2');
460
- }
461
- });
462
- }
463
- }, [client]);
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(function () {
451
- if (client) {
452
- client.addEventHandler("handlerId", {
453
- onChannelMessage: function onChannelMessage(message) {
454
- console.log(_JSON$stringify(message), 'dfsfsd1');
455
- },
456
- onTextMessage: function onTextMessage(message) {
457
- console.log(_JSON$stringify(message), 'dfsfsd2');
458
- }
459
- });
460
- }
461
- }, [client]);
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", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whyuzeim",
3
- "version": "1.1.30",
3
+ "version": "1.1.32",
4
4
  "description": "im componenets",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",