@credithub/harlan-components 1.58.0 → 1.58.2
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/dist/components/dossie/generativeAi/generativeAi.js +0 -3
- package/dist/components/partners/partnerList.js +1 -1
- package/dist/components/processos-juridicos/processosJuridicos.js +8 -1
- package/dist/consultaSimples.js +0 -2
- package/lib/cjs/index.js +10 -65
- package/lib/esm/index.js +10 -65
- package/package.json +1 -1
|
@@ -150,8 +150,6 @@ var GenerativeAI = function (_a) {
|
|
|
150
150
|
if (newChatQueryData &&
|
|
151
151
|
newChatQueryData.messages !== lastQueryRef.current) {
|
|
152
152
|
lastQueryRef.current = newChatQueryData.messages;
|
|
153
|
-
console.log('Contexto atualizado enviado para a API:', messageHistory);
|
|
154
|
-
console.log('Nova query gerada:', newChatQueryData);
|
|
155
153
|
abortChat();
|
|
156
154
|
setChatQueryData(newChatQueryData);
|
|
157
155
|
setPendingRefetch(true);
|
|
@@ -163,7 +161,6 @@ var GenerativeAI = function (_a) {
|
|
|
163
161
|
chatQueryData &&
|
|
164
162
|
streamMode === 'chat' &&
|
|
165
163
|
!chatLoading) {
|
|
166
|
-
console.log('Disparando refetchChat com payload', chatQueryData);
|
|
167
164
|
refetchChat();
|
|
168
165
|
setPendingRefetch(false);
|
|
169
166
|
}
|
|
@@ -16,7 +16,7 @@ var PartnerList = memo(function (_a) {
|
|
|
16
16
|
React.createElement(PartnerField, { name: partner.cnpj ? 'Empresa' : ((_a = partner.cargo) !== null && _a !== void 0 ? _a : ''), value: partner.nome }),
|
|
17
17
|
React.createElement(PartnerField, { name: partner.cnpj ? 'CNPJ' : 'CPF', value: (_b = (partner.cnpj || partner.cpf)) !== null && _b !== void 0 ? _b : '', onClick: function () { var _a, _b; return (_a = partner.onClickCpfCnpj) === null || _a === void 0 ? void 0 : _a.call(partner, (_b = (partner.cnpj || partner.cpf)) !== null && _b !== void 0 ? _b : ''); } }),
|
|
18
18
|
React.createElement(PartnerField, { name: "Protestos", value: partner === null || partner === void 0 ? void 0 : partner.protestos }),
|
|
19
|
-
React.createElement(PartnerField, { name: "Receita
|
|
19
|
+
React.createElement(PartnerField, { name: "Situa\u00E7\u00E3o na Receita Federal", value: partner.receitaStatus }),
|
|
20
20
|
React.createElement(PartnerField, { name: "Dividas P\u00FAblicas", value: partner.dividasPublicas }),
|
|
21
21
|
React.createElement("div", null, (partner.cpf || partner.cnpj) && (React.createElement(ButtonPartner, { onClick: function (e) {
|
|
22
22
|
e.preventDefault();
|
|
@@ -23,7 +23,14 @@ var ProcessosJuridicos = function (_a) {
|
|
|
23
23
|
var _b = useState(false), dataUpdated = _b[0], setDataUpdated = _b[1];
|
|
24
24
|
useEffect(function () {
|
|
25
25
|
var _a;
|
|
26
|
-
if (ctx.type
|
|
26
|
+
if ((ctx.type == RequestStatus.Error || ctx.type == RequestStatus.Empty) && !dataUpdated) {
|
|
27
|
+
setData(function (prevState) { return (__assign(__assign({}, prevState), { processosJuridicosData: {
|
|
28
|
+
empresa: [],
|
|
29
|
+
isLoaded: true
|
|
30
|
+
} })); });
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (ctx.type == RequestStatus.Success && !dataUpdated && ctx.document) {
|
|
27
34
|
var qtyProcessos_1 = (_a = ctx.document.empresa) === null || _a === void 0 ? void 0 : _a.length;
|
|
28
35
|
if (qtyProcessos_1) {
|
|
29
36
|
var processosJuridicosData_1 = {
|
package/dist/consultaSimples.js
CHANGED
|
@@ -12,7 +12,6 @@ import { ConsultasComplementaresProvider } from './components/consultasComplemen
|
|
|
12
12
|
import Dominios from './components/dominios/dominios';
|
|
13
13
|
import ConsultaImoveis from './components/imoveis/imoveisService';
|
|
14
14
|
import Liminar from './components/liminar/liminar';
|
|
15
|
-
import ProtestosSP from './components/protestos/protestosSp';
|
|
16
15
|
import ConsultaScore from './components/score/scoreService';
|
|
17
16
|
import ConsultaSCR from './components/scr/scr';
|
|
18
17
|
import { GlobalDataProvider } from './contexts/globalDataContext';
|
|
@@ -57,7 +56,6 @@ var ConsultaSimples = function (_a) {
|
|
|
57
56
|
React.createElement(ConsultaScore, { documento: documento }),
|
|
58
57
|
React.createElement(ConsultaImoveis, { documento: documento }),
|
|
59
58
|
React.createElement(Veiculos, { documento: documento })),
|
|
60
|
-
React.createElement(ProtestosSP, null),
|
|
61
59
|
React.createElement(Protestos, null),
|
|
62
60
|
React.createElement(CCF, null),
|
|
63
61
|
React.createElement(DividasPublicas, null),
|