@credithub/harlan-components 1.122.2 → 1.123.1

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.
Files changed (117) hide show
  1. package/dist/assets/btn/btnSend.js +1 -22
  2. package/dist/assets/btn/btnWrapper.js +1 -4
  3. package/dist/assets/btn/chevronDown.js +1 -22
  4. package/dist/assets/btn/chevronLeft.js +1 -22
  5. package/dist/assets/btn/chevronRight.js +1 -22
  6. package/dist/assets/btn/chevronUp.js +1 -22
  7. package/dist/assets/btn/closeIcon.js +1 -22
  8. package/dist/assets/btn/printIcon.js +1 -22
  9. package/dist/assets/btn/stopBtn.js +1 -22
  10. package/dist/components/adresses/addresses.js +1 -11
  11. package/dist/components/bank-accounts/bank-accounts.js +1 -11
  12. package/dist/components/ccf/ccf.js +1 -11
  13. package/dist/components/chart/chartContent.js +1 -13
  14. package/dist/components/chart/chartSystem.js +1 -51
  15. package/dist/components/chart/components/MixedChart.js +1 -4
  16. package/dist/components/chart/components/categoryProtestos.js +1 -4
  17. package/dist/components/chart/hooks/useDividasPublicas.js +1 -11
  18. package/dist/components/chart/quantityResult.js +1 -4
  19. package/dist/components/chart/utils/chartCustomization.js +1 -11
  20. package/dist/components/chart/utils/dataManipulation.js +1 -20
  21. package/dist/components/chart/utils/dataProcessing.js +1 -11
  22. package/dist/components/common/ModalDadosCartorio.js +1 -4
  23. package/dist/components/common/ModalInstallExtension.js +1 -4
  24. package/dist/components/common/addItem.js +1 -26
  25. package/dist/components/common/button.js +1 -26
  26. package/dist/components/common/content.js +1 -4
  27. package/dist/components/common/gauge.js +1 -4
  28. package/dist/components/common/modal.js +1 -4
  29. package/dist/components/common/modalInstrumentoProtestoSP.js +1 -4
  30. package/dist/components/common/modalMaintenance.js +1 -4
  31. package/dist/components/common/printButton.js +1 -4
  32. package/dist/components/common/printSectionWrapper.js +1 -26
  33. package/dist/components/common/tooltip.js +1 -4
  34. package/dist/components/consultaSimplesSection/consultaSimplesSection.js +1 -26
  35. package/dist/components/consultasComplementares.d.ts +1 -1
  36. package/dist/components/contacts/contactLikeDislikeSection.js +1 -15
  37. package/dist/components/contacts/contacts.js +1 -24
  38. package/dist/components/contacts/thumbsButton.js +1 -4
  39. package/dist/components/dividasPublicas/dividasPublicas.js +1 -11
  40. package/dist/components/dominios/dominios.js +1 -4
  41. package/dist/components/dossie/dossie.js +1 -15
  42. package/dist/components/dossie/generativeAi/dataUtils.js +1 -31
  43. package/dist/components/dossie/generativeAi/generativeAi.js +1 -56
  44. package/dist/components/dossie/generativeAi/processStream.js +1 -52
  45. package/dist/components/dossie/generativeAi/queryUtils.js +1 -9
  46. package/dist/components/dossie/generativeAi/styles.js +1 -4
  47. package/dist/components/dossie/sliderCompanyName/companyLogo/companyLogo.js +1 -4
  48. package/dist/components/dossie/sliderCompanyName/reclameAqui/carousel.js +1 -4
  49. package/dist/components/dossie/sliderCompanyName/reclameAqui/reclameAquiCarousel.js +1 -11
  50. package/dist/components/dossie/sliderCompanyName/reclameAqui/styles.js +1 -4
  51. package/dist/components/dossie/sliderCompanyName/sliderCompanyName.js +1 -4
  52. package/dist/components/dossie/summary/cardsAndProducts.d.ts +7 -7
  53. package/dist/components/dossie/summary/cardsAndProducts.js +1 -47
  54. package/dist/components/dossie/summary/styles.js +1 -4
  55. package/dist/components/dossie/summary/summary.js +1 -11
  56. package/dist/components/dossie/transactionTable/transactionTable.js +1 -4
  57. package/dist/components/edital/edital.js +1 -24
  58. package/dist/components/edital/editalList.js +1 -4
  59. package/dist/components/falencia/falencia.js +1 -11
  60. package/dist/components/imoveis/imoveisService.js +1 -11
  61. package/dist/components/interface/header.js +1 -26
  62. package/dist/components/interface/loadingBar.js +1 -26
  63. package/dist/components/interface/responsiveGrid.js +1 -4
  64. package/dist/components/interface/result.js +1 -4
  65. package/dist/components/interface/resultWithoutInformation.js +1 -22
  66. package/dist/components/interface/section.d.ts +1 -1
  67. package/dist/components/interface/section.js +1 -4
  68. package/dist/components/interface/statusMessage.js +1 -4
  69. package/dist/components/liminar/liminar.js +1 -47
  70. package/dist/components/liminar/liminarStyles.js +1 -4
  71. package/dist/components/liminar/useLiminarHistory.js +1 -9
  72. package/dist/components/liminar/useLiminarProtestosDoPassado.js +1 -47
  73. package/dist/components/partners/partnerList.js +1 -4
  74. package/dist/components/partners/partners.js +1 -31
  75. package/dist/components/pep/pep.js +1 -11
  76. package/dist/components/processos-juridicos/envolvidosList.js +1 -4
  77. package/dist/components/processos-juridicos/processosJuridicos.js +1 -11
  78. package/dist/components/processos-juridicos/processosJuridicosList.js +1 -26
  79. package/dist/components/protestos/instrumento/InstrumentoDiscoveryConfirmModal.js +1 -4
  80. package/dist/components/protestos/instrumento/InstrumentoEmailStatusModal.js +1 -4
  81. package/dist/components/protestos/instrumento/ieptbInstrumento.js +1 -36
  82. package/dist/components/protestos/instrumento/useInstrumento.js +1 -36
  83. package/dist/components/protestos/protestos.js +1 -24
  84. package/dist/components/protestos/protestosCategory.js +1 -22
  85. package/dist/components/protestos/protestosList.js +1 -40
  86. package/dist/components/protestosPagosBaixados/adaptToChart.js +1 -11
  87. package/dist/components/protestosPagosBaixados/index.js +1 -11
  88. package/dist/components/refinBoaVista/refinBoaVista.js +1 -11
  89. package/dist/components/refinSerasa/refinSerasa.d.ts +1 -1
  90. package/dist/components/refinSerasa/refinSerasa.js +1 -11
  91. package/dist/components/requestContextTypes.d.ts +40 -0
  92. package/dist/components/requestContextTypes.js +7 -0
  93. package/dist/components/resultadoDaPesquisa/resultado-da-pesquisa.js +1 -4
  94. package/dist/components/score/scoreService.js +1 -11
  95. package/dist/components/scoreSerasa/scoreSerasa.js +1 -11
  96. package/dist/components/scr/scr.js +24 -63
  97. package/dist/components/scr/scrDataBaseModal.js +1 -4
  98. package/dist/components/section.d.ts +1 -1
  99. package/dist/components/section.js +2 -27
  100. package/dist/components/streamQuery.js +1 -49
  101. package/dist/components/veiculos/veiculos.js +1 -11
  102. package/dist/components/webservice.d.ts +3 -40
  103. package/dist/components/webservice.js +3 -54
  104. package/dist/consultaSimples.js +16 -5
  105. package/dist/contexts/createDataContext.js +1 -11
  106. package/dist/contexts/errorModalContext.js +1 -11
  107. package/dist/hooks/useConsultaRfb.js +1 -11
  108. package/dist/server.js +1 -36
  109. package/dist/styles/globalStyle.js +1 -4
  110. package/dist/utils/bpqlResponse.js +1 -36
  111. package/dist/utils/businessDays.js +1 -36
  112. package/dist/utils/parseCartorio.js +1 -11
  113. package/dist/utils/similarNames.js +1 -9
  114. package/dist/utils/sortProcessosByDate.js +1 -9
  115. package/lib/cjs/index.js +622 -2023
  116. package/lib/esm/index.js +849 -2250
  117. package/package.json +2 -1
@@ -1,14 +1,4 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
1
+ import { __assign } from "tslib";
12
2
  // src/contexts/errorModalContext.tsx
13
3
  import Modal from '../components/common/modal';
14
4
  import React, { createContext, useCallback, useContext, useState } from 'react';
@@ -1,14 +1,4 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
1
+ import { __assign } from "tslib";
12
2
  import { ConsultaRfbContext } from '../components/consultaRfb';
13
3
  import { useContext } from 'react';
14
4
  export var useConsultaRfb = function () {
package/dist/server.js CHANGED
@@ -1,39 +1,4 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __generator = (this && this.__generator) || function (thisArg, body) {
11
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
- function verb(n) { return function (v) { return step([n, v]); }; }
14
- function step(op) {
15
- if (f) throw new TypeError("Generator is already executing.");
16
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
- if (y = 0, t) op = [op[0] & 2, t.value];
19
- switch (op[0]) {
20
- case 0: case 1: t = op; break;
21
- case 4: _.label++; return { value: op[1], done: false };
22
- case 5: _.label++; y = op[1]; op = [0]; continue;
23
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
- default:
25
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
- if (t[2]) _.ops.pop();
30
- _.trys.pop(); continue;
31
- }
32
- op = body.call(thisArg, _);
33
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
- }
36
- };
1
+ import { __awaiter, __generator } from "tslib";
37
2
  import express from 'express';
38
3
  import { createServer as createViteServer } from 'vite';
39
4
  function startServer() {
@@ -1,7 +1,4 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
1
+ import { __makeTemplateObject } from "tslib";
5
2
  // src/styles/globalStyle.tsx
6
3
  import React from 'react';
7
4
  import { createGlobalStyle } from 'styled-components';
@@ -1,39 +1,4 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __generator = (this && this.__generator) || function (thisArg, body) {
11
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
- function verb(n) { return function (v) { return step([n, v]); }; }
14
- function step(op) {
15
- if (f) throw new TypeError("Generator is already executing.");
16
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
- if (y = 0, t) op = [op[0] & 2, t.value];
19
- switch (op[0]) {
20
- case 0: case 1: t = op; break;
21
- case 4: _.label++; return { value: op[1], done: false };
22
- case 5: _.label++; y = op[1]; op = [0]; continue;
23
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
- default:
25
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
- if (t[2]) _.ops.pop();
30
- _.trys.pop(); continue;
31
- }
32
- op = body.call(thisArg, _);
33
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
- }
36
- };
1
+ import { __awaiter, __generator } from "tslib";
37
2
  export var parseBpqlResponse = function (response) { return __awaiter(void 0, void 0, void 0, function () {
38
3
  var text, json, parser, xml, rawDescription, description, warning, id;
39
4
  var _a, _b, _c, _d, _e, _f;
@@ -1,42 +1,7 @@
1
1
  /**
2
2
  * Utility functions for calculating business days (Monday-Friday, excluding Brazilian national holidays)
3
3
  */
4
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
- return new (P || (P = Promise))(function (resolve, reject) {
7
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
- step((generator = generator.apply(thisArg, _arguments || [])).next());
11
- });
12
- };
13
- var __generator = (this && this.__generator) || function (thisArg, body) {
14
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
15
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
16
- function verb(n) { return function (v) { return step([n, v]); }; }
17
- function step(op) {
18
- if (f) throw new TypeError("Generator is already executing.");
19
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
20
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
21
- if (y = 0, t) op = [op[0] & 2, t.value];
22
- switch (op[0]) {
23
- case 0: case 1: t = op; break;
24
- case 4: _.label++; return { value: op[1], done: false };
25
- case 5: _.label++; y = op[1]; op = [0]; continue;
26
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
27
- default:
28
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
29
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
30
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
31
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
32
- if (t[2]) _.ops.pop();
33
- _.trys.pop(); continue;
34
- }
35
- op = body.call(thisArg, _);
36
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
37
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
38
- }
39
- };
4
+ import { __awaiter, __generator } from "tslib";
40
5
  /**
41
6
  * Brazilian national holidays for 2024-2026 (static fallback)
42
7
  * Format: 'YYYY-MM-DD'
@@ -1,14 +1,4 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
1
+ import { __assign } from "tslib";
12
2
  import XPathUtils from '../utils/xpath';
13
3
  /**
14
4
  * Parseia o nó `<cartorio>` do XML IEPTB e retorna um objeto Cartorio.
@@ -1,12 +1,4 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
1
+ import { __spreadArray } from "tslib";
10
2
  import { remove } from 'diacritics';
11
3
  import stringSimilarity from 'string-similarity';
12
4
  export var normalizeName = function (name) {
@@ -1,12 +1,4 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
1
+ import { __spreadArray } from "tslib";
10
2
  export var extractDateFromCNJ = function (cnj) {
11
3
  var dateRegex = /\b(\d{4})\.(\d{1,2})\.(\d{1,2})\b/;
12
4
  var match = cnj.match(dateRegex);