@credithub/harlan-components 1.62.9 → 1.62.10
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/dossie.js +0 -1
- package/dist/components/dossie/generativeAi/generativeAi.js +0 -2
- package/dist/components/dossie/summary/summary.js +1 -2
- package/dist/components/protestos/protestos.js +7 -0
- package/lib/cjs/index.js +10 -7
- package/lib/esm/index.js +10 -7
- package/package.json +1 -1
|
@@ -94,7 +94,6 @@ var GenerativeAI = function (_a) {
|
|
|
94
94
|
return (globalData.documentHistory !== undefined &&
|
|
95
95
|
globalData.documentHistory !== null);
|
|
96
96
|
}, [globalData]);
|
|
97
|
-
console.log('refreshQuery', refreshQuery);
|
|
98
97
|
// Atualiza o payload serializado sempre que os dados globais mudarem
|
|
99
98
|
useEffect(function () {
|
|
100
99
|
if (globalData && documento && isGlobalDataLoaded) {
|
|
@@ -137,7 +136,6 @@ var GenerativeAI = function (_a) {
|
|
|
137
136
|
var prevRefreshQueryRef = useRef(refreshQuery);
|
|
138
137
|
useEffect(function () {
|
|
139
138
|
if (refreshQuery && !prevRefreshQueryRef.current) {
|
|
140
|
-
console.log('executou refreshQuery');
|
|
141
139
|
// Aborta o stream summary atual, se houver
|
|
142
140
|
abortSummary();
|
|
143
141
|
// Permite que o stream summary seja processado novamente
|
|
@@ -20,7 +20,7 @@ import { ButtonsSummary, ButtonsWrapper, ContainerSummary, ContentSummary, Field
|
|
|
20
20
|
export var Summary = function (_a) {
|
|
21
21
|
var finderResponse = _a.finderResponse;
|
|
22
22
|
var _b = useCardsAndProducts({
|
|
23
|
-
finderResponse: finderResponse
|
|
23
|
+
finderResponse: finderResponse
|
|
24
24
|
}), cards = _b.cards, products = _b.products, isModalOpen = _b.isModalOpen, closeModal = _b.closeModal, isScrModalOpen = _b.isScrModalOpen, setScrModalOpen = _b.setScrModalOpen, setConsultasComplementares = _b.setConsultasComplementares;
|
|
25
25
|
return (React.createElement(React.Fragment, null,
|
|
26
26
|
React.createElement(ContainerSummary, { className: "credithub-container-summary" },
|
|
@@ -32,7 +32,6 @@ export var Summary = function (_a) {
|
|
|
32
32
|
React.createElement(SummaryButton, { onClick: function () { return (product === null || product === void 0 ? void 0 : product.onClick) && (product === null || product === void 0 ? void 0 : product.onClick()); }, disabled: product.isLoading, smallContent: product.price ? formatMoney(product.price) : undefined }, product.isLoading ? React.createElement(Spinner, null) : product.title))); })),
|
|
33
33
|
React.createElement(Modal, { isOpen: isModalOpen, onClose: closeModal, title: "\uD83D\uDEA7 Consulta temporariamente indispon\u00EDvel", message: "A consulta Pefin/Refin Serasa est\u00E1 fora do ar devido a mudan\u00E7as na fonte. Nossa equipe j\u00E1 est\u00E1 trabalhando para resolver, mas ainda n\u00E3o h\u00E1 previs\u00E3o de normaliza\u00E7\u00E3o.", incidentUrl: "https://credithub.statuspage.io/incidents/hnvx1dxby7rk" })),
|
|
34
34
|
isScrModalOpen && (React.createElement(ScrDataBaseModal, { isOpen: isScrModalOpen, onClose: function () { return setScrModalOpen(false); }, onConfirm: function (selected) {
|
|
35
|
-
console.log('Data-base selecionada:', selected);
|
|
36
35
|
setScrModalOpen(false);
|
|
37
36
|
setConsultasComplementares === null || setConsultasComplementares === void 0 ? void 0 : setConsultasComplementares(function (prev) { return (__assign(__assign({}, prev), { scr: __assign(__assign({}, prev === null || prev === void 0 ? void 0 : prev.scr), { dataBase: selected, consultaRealizada: true }) })); });
|
|
38
37
|
} }))));
|
|
@@ -51,6 +51,13 @@ var Protestos = function () {
|
|
|
51
51
|
}
|
|
52
52
|
return 0;
|
|
53
53
|
}, [ctxLiminar === null || ctxLiminar === void 0 ? void 0 : ctxLiminar.type, ctxLiminar === null || ctxLiminar === void 0 ? void 0 : ctxLiminar.document]);
|
|
54
|
+
useEffect(function () {
|
|
55
|
+
if ((ctx === null || ctx === void 0 ? void 0 : ctx.type) === RequestStatus.Error ||
|
|
56
|
+
(ctx === null || ctx === void 0 ? void 0 : ctx.type) === RequestStatus.Empty) {
|
|
57
|
+
setData(function (prevState) { return (__assign(__assign({}, prevState), { protestosData: { isLoaded: true } })); });
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
}, [ctx.type]);
|
|
54
61
|
// Processa os protestos e atualiza o contexto global (apenas quando ctx.document é válido e o processamento ainda não ocorreu)
|
|
55
62
|
useEffect(function () {
|
|
56
63
|
if (dataUpdated || !ctx.document) {
|