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.
- package/.dist/cjs/components/IdentificadorPersona.d.ts +3 -1
- package/.dist/cjs/components/IdentificadorPersona.test.d.ts +1 -0
- package/.dist/cjs/components/Seeker.d.ts +31 -3
- package/.dist/cjs/components/Seeker.utils.mx.d.ts +66 -0
- package/.dist/cjs/components/SeekerMx.d.ts +4 -0
- package/.dist/cjs/components/Tutoriales.test.d.ts +1 -0
- package/.dist/cjs/components/administrative/mx/FormDirecciones.d.ts +9 -0
- package/.dist/cjs/components/administrative/mx/FormularioPersonasMx.d.ts +18 -0
- package/.dist/cjs/components/administrative/mx/FormularioProductoServicioMx.d.ts +7 -0
- package/.dist/cjs/components/contability/Bancos.d.ts +6 -0
- package/.dist/cjs/components/contability/FormularioCuentas.d.ts +5 -0
- package/.dist/cjs/components/contability/ModalCC.d.ts +7 -0
- package/.dist/cjs/components/contexts/ConfiguracionContext.d.ts +11 -0
- package/.dist/cjs/components/contexts/Empresa.d.ts +2 -1
- package/.dist/cjs/components/index.d.ts +3 -0
- package/.dist/cjs/components/mx/administrative/FormDirecciones.d.ts +9 -0
- package/.dist/cjs/components/mx/administrative/FormularioPersonasMx.d.ts +18 -0
- package/.dist/cjs/components/mx/administrative/FormularioProductoServicioMx.d.ts +7 -0
- package/.dist/cjs/components/mx/contability/Bancos.d.ts +6 -0
- package/.dist/cjs/components/mx/contability/FormularioCuentas.d.ts +5 -0
- package/.dist/cjs/components/mx/contability/ModalCC.d.ts +7 -0
- package/.dist/cjs/index.js +2 -2
- package/.dist/cjs/index.js.map +1 -1
- package/.dist/cjs/libs/filtros.d.ts +3 -3
- package/.dist/cjs/libs/filtros.test.d.ts +1 -0
- package/.dist/cjs/libs/hooks/vista-insertar.test.d.ts +1 -0
- package/.dist/cjs/libs/hooks/vista-principal.d.ts +8 -2
- package/.dist/cjs/libs/hooks/vista-principal.test.d.ts +1 -0
- package/.dist/cjs/libs/reglas.d.ts +1 -1
- package/.dist/cjs/libs/reglas.test.d.ts +1 -0
- package/.dist/cjs/types/mx/utils.d.ts +85 -0
- package/.dist/cjs/types.d.ts +1 -0
- package/.dist/esm/index.js +2 -2
- package/.dist/esm/index.js.map +1 -1
- package/jest.config.ts +11 -0
- package/jest.setup.js +19 -0
- 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.
|
|
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.
|
|
14
|
-
"@eslint/js": "^9.
|
|
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.
|
|
20
|
-
"@
|
|
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.
|
|
23
|
-
"dayjs": "^1.11.
|
|
24
|
-
"eslint": "^9.
|
|
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
|
-
"
|
|
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.
|
|
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.
|
|
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.
|
|
40
|
-
"use-debounce": "^10.0.
|
|
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": "
|
|
68
|
+
"test": "jest"
|
|
61
69
|
}
|
|
62
70
|
}
|