wca-designsystem 1.0.104 → 1.0.106

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.104",
2
+ "version": "1.0.106",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -105,7 +105,7 @@
105
105
  "react-router-dom": "^6.23.1",
106
106
  "recharts": "^2.14.1",
107
107
  "styled-components": "^6.1.11",
108
- "wca-designsystem": "^1.0.16",
108
+ "wca-designsystem": "^1.0.104",
109
109
  "xlsx": "^0.18.5"
110
110
  }
111
111
  }
@@ -13,7 +13,7 @@ type ConchaAplicacaolType = {
13
13
  notificacoes: NotificationsProps
14
14
  links?: LinksProps[]
15
15
  modulo: string
16
- // isNavHover: boolean
16
+ isNavHover: boolean
17
17
  navbarRef?: React.RefObject<HTMLDivElement>
18
18
  temNotificacoes?: boolean
19
19
  temChatBot?: boolean
@@ -34,7 +34,6 @@ export function ConchaAplicacao({
34
34
  temNotificacoes,
35
35
  temChatBot,
36
36
  openChatBot,
37
- // isNavHover,
38
37
  icone,
39
38
  info,
40
39
  subTitulo,
@@ -47,7 +46,7 @@ export function ConchaAplicacao({
47
46
  links,
48
47
  navbarRef,
49
48
  }: ConchaAplicacaolType) {
50
- const [isNavHover, setisNavHover] = useState(true);
49
+ const [isNavHover, setisNavHover] = useState(false);
51
50
 
52
51
  return (
53
52
  <S.ConchaAplicacaoWrapper
@@ -6,7 +6,7 @@ import {
6
6
  TypingIndicator,
7
7
  Avatar,
8
8
  } from '@chatscope/chat-ui-kit-react'
9
- import React from 'react'
9
+ import React, { useEffect, useRef } from 'react'
10
10
  import { BotaoChat, ChatWrapper } from './styles'
11
11
  import { Flex } from '@mantine/core'
12
12
  import icon from '../../../assets/imagens/WCA/wca_inteligencia_comercial_logo.png'
@@ -70,6 +70,13 @@ const ChatBot = ({
70
70
  }
71
71
  }
72
72
 
73
+ const endOfMessagesRef = useRef<HTMLDivElement | null>(null)
74
+ useEffect(() => {
75
+ endOfMessagesRef.current?.scrollIntoView({
76
+ behavior: 'smooth',
77
+ })
78
+ }, [messages])
79
+
73
80
  return (
74
81
  <ChatWrapper>
75
82
  <ChatContainer>
@@ -123,6 +130,8 @@ const ChatBot = ({
123
130
  </Message>
124
131
  )
125
132
  )}
133
+
134
+ <div ref={endOfMessagesRef} />
126
135
  </MessageList>
127
136
 
128
137
  <MessageInput