upconta.frontend-utils 2.2.1 → 2.3.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 (37) hide show
  1. package/.dist/cjs/components/IdentificadorPersona.d.ts +3 -1
  2. package/.dist/cjs/components/IdentificadorPersona.test.d.ts +1 -0
  3. package/.dist/cjs/components/Seeker.d.ts +31 -3
  4. package/.dist/cjs/components/Seeker.utils.mx.d.ts +66 -0
  5. package/.dist/cjs/components/SeekerMx.d.ts +4 -0
  6. package/.dist/cjs/components/Tutoriales.test.d.ts +1 -0
  7. package/.dist/cjs/components/administrative/mx/FormDirecciones.d.ts +9 -0
  8. package/.dist/cjs/components/administrative/mx/FormularioPersonasMx.d.ts +18 -0
  9. package/.dist/cjs/components/administrative/mx/FormularioProductoServicioMx.d.ts +7 -0
  10. package/.dist/cjs/components/contability/Bancos.d.ts +6 -0
  11. package/.dist/cjs/components/contability/FormularioCuentas.d.ts +5 -0
  12. package/.dist/cjs/components/contability/ModalCC.d.ts +7 -0
  13. package/.dist/cjs/components/contexts/ConfiguracionContext.d.ts +11 -0
  14. package/.dist/cjs/components/contexts/Empresa.d.ts +2 -1
  15. package/.dist/cjs/components/index.d.ts +3 -0
  16. package/.dist/cjs/components/mx/administrative/FormDirecciones.d.ts +9 -0
  17. package/.dist/cjs/components/mx/administrative/FormularioPersonasMx.d.ts +18 -0
  18. package/.dist/cjs/components/mx/administrative/FormularioProductoServicioMx.d.ts +7 -0
  19. package/.dist/cjs/components/mx/contability/Bancos.d.ts +6 -0
  20. package/.dist/cjs/components/mx/contability/FormularioCuentas.d.ts +5 -0
  21. package/.dist/cjs/components/mx/contability/ModalCC.d.ts +7 -0
  22. package/.dist/cjs/index.js +2 -2
  23. package/.dist/cjs/index.js.map +1 -1
  24. package/.dist/cjs/libs/filtros.d.ts +3 -3
  25. package/.dist/cjs/libs/filtros.test.d.ts +1 -0
  26. package/.dist/cjs/libs/hooks/vista-insertar.test.d.ts +1 -0
  27. package/.dist/cjs/libs/hooks/vista-principal.d.ts +8 -2
  28. package/.dist/cjs/libs/hooks/vista-principal.test.d.ts +1 -0
  29. package/.dist/cjs/libs/reglas.d.ts +1 -1
  30. package/.dist/cjs/libs/reglas.test.d.ts +1 -0
  31. package/.dist/cjs/types/mx/utils.d.ts +85 -0
  32. package/.dist/cjs/types.d.ts +1 -0
  33. package/.dist/esm/index.js +2 -2
  34. package/.dist/esm/index.js.map +1 -1
  35. package/jest.config.ts +11 -0
  36. package/jest.setup.js +19 -0
  37. package/package.json +22 -14
package/jest.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ import type { JestConfigWithTsJest } from 'ts-jest'
2
+
3
+ const jestConfig: JestConfigWithTsJest = {
4
+ preset: 'ts-jest',
5
+ testEnvironment: 'jest-environment-jsdom',
6
+ moduleNameMapper: { '^@/(.*)$': '<rootDir>/src/$1' },
7
+ setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
8
+ transform: { '^.+\\.tsx?$': ['ts-jest', { tsconfig: { jsx: 'react-jsx' } }] },
9
+ }
10
+
11
+ export default jestConfig
package/jest.setup.js ADDED
@@ -0,0 +1,19 @@
1
+ require('@testing-library/jest-dom')
2
+
3
+ Object.defineProperty(window, 'matchMedia', {
4
+ writable: true,
5
+ value: jest.fn().mockImplementation((query) => ({
6
+ matches: false,
7
+ media: query,
8
+ onchange: null,
9
+ addListener: jest.fn(),
10
+ removeListener: jest.fn(),
11
+ addEventListener: jest.fn(),
12
+ removeEventListener: jest.fn(),
13
+ dispatchEvent: jest.fn(),
14
+ })),
15
+ })
16
+
17
+ Object.defineProperty(window, 'getComputedStyle', {
18
+ value: () => ({ getPropertyValue: () => '' }),
19
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upconta.frontend-utils",
3
- "version": "2.2.1",
3
+ "version": "2.3.1",
4
4
  "description": "",
5
5
  "main": ".dist/cjs/index.js",
6
6
  "module": ".dist/esm/index.js",
@@ -10,34 +10,42 @@
10
10
  "license": "ISC",
11
11
  "devDependencies": {
12
12
  "@ant-design/cssinjs": "^1.24.0",
13
- "@ant-design/icons": "^6.0.0",
14
- "@eslint/js": "^9.33.0",
13
+ "@ant-design/icons": "^6.0.1",
14
+ "@eslint/js": "^9.35.0",
15
15
  "@rollup/plugin-commonjs": "^26.0.3",
16
16
  "@rollup/plugin-node-resolve": "^15.3.1",
17
17
  "@rollup/plugin-terser": "^0.4.4",
18
18
  "@rollup/plugin-typescript": "^11.1.6",
19
- "@tailwindcss/postcss": "^4.1.12",
20
- "@types/node": "22.15.3",
19
+ "@tailwindcss/postcss": "^4.1.13",
20
+ "@testing-library/dom": "^10.4.1",
21
+ "@testing-library/jest-dom": "^6.8.0",
22
+ "@testing-library/react": "^16.3.0",
23
+ "@types/jest": "^30.0.0",
24
+ "@types/node": "24.3.1",
21
25
  "@types/react": "^18.3.23",
22
- "antd": "^5.27.0",
23
- "dayjs": "^1.11.13",
24
- "eslint": "^9.33.0",
26
+ "antd": "^5.27.3",
27
+ "dayjs": "^1.11.18",
28
+ "eslint": "^9.35.0",
25
29
  "eslint-plugin-react": "^7.37.5",
26
30
  "globals": "^16.3.0",
27
- "next": "^15.4.6",
31
+ "jest": "^30.1.3",
32
+ "jest-environment-jsdom": "^30.1.2",
33
+ "next": "^15.5.2",
28
34
  "postcss": "^8.5.6",
29
35
  "rc-field-form": "^2.7.0",
30
36
  "react": "^18.3.1",
31
- "rollup": "^4.46.2",
37
+ "rollup": "^4.50.1",
32
38
  "rollup-plugin-copy": "^3.5.0",
33
39
  "rollup-plugin-peer-deps-external": "^2.2.4",
34
40
  "rollup-plugin-postcss": "^4.0.2",
35
41
  "swr": "^2.3.6",
36
- "tailwindcss": "^4.1.12",
42
+ "tailwindcss": "^4.1.13",
43
+ "ts-jest": "^29.4.1",
44
+ "ts-node": "^10.9.2",
37
45
  "tslib": "^2.8.1",
38
46
  "typescript": "^5.9.2",
39
- "typescript-eslint": "^8.39.1",
40
- "use-debounce": "^10.0.5"
47
+ "typescript-eslint": "^8.43.0",
48
+ "use-debounce": "^10.0.6"
41
49
  },
42
50
  "peerDependencies": {
43
51
  "@ant-design/cssinjs": "^1",
@@ -57,6 +65,6 @@
57
65
  "start": "next start",
58
66
  "lint": "next lint",
59
67
  "build": "rollup -c --bundleConfigAsCjs",
60
- "test": "echo \"Error: no test specified\" && exit 1"
68
+ "test": "jest"
61
69
  }
62
70
  }