whyuzeim 1.1.33 → 1.1.35

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.
@@ -12,6 +12,7 @@ var _asyncToGenerator = require('@babel/runtime-corejs3/helpers/esm/asyncToGener
12
12
  var _defineProperty = require('@babel/runtime-corejs3/helpers/esm/defineProperty');
13
13
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/esm/slicedToArray');
14
14
  var _regeneratorRuntime = require('@babel/runtime-corejs3/regenerator');
15
+ var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
15
16
  var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
16
17
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
17
18
  var _setInterval = require('@babel/runtime-corejs3/core-js-stable/set-interval');
@@ -37,6 +38,9 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
37
38
  var _useSDK = agoraChatUikit.useSDK(),
38
39
  MessageSDK = _useSDK.ChatSDK;
39
40
  var manulLoginRef = React.useRef(false);
41
+ var _useConversationConte = agoraChatUikit.useConversationContext(),
42
+ i = _useConversationConte.currentConversation;
43
+ console.log(_JSON$stringify(i), 'dfsfs');
40
44
  var _useContext = React.useContext(context.Context),
41
45
  http = _useContext.http,
42
46
  userInfo = _useContext.userInfo;
@@ -430,20 +434,6 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
430
434
  return _ref4.apply(this, arguments);
431
435
  };
432
436
  }();
433
- // useEffect(()=>{
434
- // const client = rootStore.client
435
- // if(client){
436
- // console.log('fsfsd')
437
- // client?.addEventHandler("UIKitMessage", {
438
- // onChannelMessage(message:any){
439
- // // console.log(JSON.stringify(message),'dfsfsd1')
440
- // },
441
- // onTextMessage(message:any){
442
- // // console.log(JSON.stringify(message),'dfsfsd2')
443
- // }
444
- // })
445
- // }
446
- // },[rootStore.client])
447
437
  return /*#__PURE__*/React.createElement("div", {
448
438
  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")
449
439
  }, loading ? /*#__PURE__*/React.createElement("div", {
@@ -10,12 +10,13 @@ import _asyncToGenerator from '@babel/runtime-corejs3/helpers/esm/asyncToGenerat
10
10
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
11
11
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
12
12
  import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
13
+ import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
13
14
  import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
14
15
  import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
15
16
  import _setInterval from '@babel/runtime-corejs3/core-js-stable/set-interval';
16
17
  import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
17
18
  import React, { useRef, useContext, useState, useCallback, useEffect } from 'react';
18
- import { useClient, useSDK, rootStore, MessageList, MessageInput, ImageMessage, FileMessage, VideoMessage, BaseMessage } from 'agora-chat-uikit';
19
+ import { useClient, useSDK, useConversationContext, rootStore, MessageList, MessageInput, ImageMessage, FileMessage, VideoMessage, BaseMessage } from 'agora-chat-uikit';
19
20
  import { Context } from '../IM/context.js';
20
21
  import { commonMessageInputConfig, commonMessageProps } from '../type.js';
21
22
  import { reportAgentInUse } from '../tools.js';
@@ -35,6 +36,9 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
35
36
  var _useSDK = useSDK(),
36
37
  MessageSDK = _useSDK.ChatSDK;
37
38
  var manulLoginRef = useRef(false);
39
+ var _useConversationConte = useConversationContext(),
40
+ i = _useConversationConte.currentConversation;
41
+ console.log(_JSON$stringify(i), 'dfsfs');
38
42
  var _useContext = useContext(Context),
39
43
  http = _useContext.http,
40
44
  userInfo = _useContext.userInfo;
@@ -428,20 +432,6 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
428
432
  return _ref4.apply(this, arguments);
429
433
  };
430
434
  }();
431
- // useEffect(()=>{
432
- // const client = rootStore.client
433
- // if(client){
434
- // console.log('fsfsd')
435
- // client?.addEventHandler("UIKitMessage", {
436
- // onChannelMessage(message:any){
437
- // // console.log(JSON.stringify(message),'dfsfsd1')
438
- // },
439
- // onTextMessage(message:any){
440
- // // console.log(JSON.stringify(message),'dfsfsd2')
441
- // }
442
- // })
443
- // }
444
- // },[rootStore.client])
445
435
  return /*#__PURE__*/React.createElement("div", {
446
436
  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")
447
437
  }, loading ? /*#__PURE__*/React.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whyuzeim",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "description": "im componenets",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",