upconta.frontend-utils 1.0.18 → 1.0.19
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/Reloj.d.ts +1 -1
- package/.dist/cjs/components/Seeker.d.ts +1 -1
- package/.dist/cjs/components/Seeker.utils.d.ts +14 -1
- package/.dist/cjs/components/administrative/FormularioPersonas.d.ts +2 -3
- package/.dist/cjs/components/contexts/Empresa.d.ts +6 -0
- package/.dist/cjs/index.js +2 -2
- package/.dist/cjs/index.js.map +1 -1
- package/.dist/esm/index.js +2 -2
- package/.dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/.dist/cjs/libs/contexts/Empresa.d.ts +0 -63
- package/.dist/cjs/libs/contexts/FrontendUtils.d.ts +0 -10
- package/eslint.config.mjs +0 -18
package/package.json
CHANGED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
interface BusinessInfo {
|
|
3
|
-
_id: string;
|
|
4
|
-
business: string;
|
|
5
|
-
businessModules: Array<{
|
|
6
|
-
activationDate: string;
|
|
7
|
-
key: string;
|
|
8
|
-
operationDate: string;
|
|
9
|
-
}>;
|
|
10
|
-
configs: {
|
|
11
|
-
monthsBlocked: string[];
|
|
12
|
-
useTestEnviroment: boolean;
|
|
13
|
-
vouchers: {
|
|
14
|
-
nDecimals: number;
|
|
15
|
-
};
|
|
16
|
-
pac: {
|
|
17
|
-
usuario?: string;
|
|
18
|
-
fechaContrato?: Date;
|
|
19
|
-
fechaContratoTest?: Date;
|
|
20
|
-
};
|
|
21
|
-
nDecimals: number;
|
|
22
|
-
};
|
|
23
|
-
hasSignature: boolean;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
modules: Array<{
|
|
26
|
-
icon: string;
|
|
27
|
-
key: string;
|
|
28
|
-
label: string;
|
|
29
|
-
operationDate: string;
|
|
30
|
-
submodules: Array<{
|
|
31
|
-
key?: string;
|
|
32
|
-
label: string;
|
|
33
|
-
permisos?: string;
|
|
34
|
-
items?: Array<{
|
|
35
|
-
key: string;
|
|
36
|
-
label: string;
|
|
37
|
-
permisos: string;
|
|
38
|
-
}>;
|
|
39
|
-
}>;
|
|
40
|
-
}>;
|
|
41
|
-
ruc: string;
|
|
42
|
-
sessionEndDate: string;
|
|
43
|
-
sessionStartDate: string;
|
|
44
|
-
user: string;
|
|
45
|
-
userId: string;
|
|
46
|
-
userType: 'admin' | 'user';
|
|
47
|
-
esAdmin: boolean;
|
|
48
|
-
accesoBloqueoMensual: boolean;
|
|
49
|
-
wooCommerce?: boolean;
|
|
50
|
-
}
|
|
51
|
-
interface Empresa {
|
|
52
|
-
business: BusinessInfo;
|
|
53
|
-
nombreEmpresa: string;
|
|
54
|
-
nombreUsuario: string;
|
|
55
|
-
testEnviroment: boolean;
|
|
56
|
-
usuarioEsAdmin: boolean;
|
|
57
|
-
}
|
|
58
|
-
export declare function useContextoEmpresa(): Empresa;
|
|
59
|
-
declare const ContextoEmpresa: FC<{
|
|
60
|
-
children: ReactNode;
|
|
61
|
-
pathLogin?: string;
|
|
62
|
-
}>;
|
|
63
|
-
export default ContextoEmpresa;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Movement } from '../../types';
|
|
2
|
-
import { FC, ReactNode } from 'react';
|
|
3
|
-
interface Data {
|
|
4
|
-
setBitacora: (bitacora: Movement[]) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function useFrontendUtils(): Data;
|
|
7
|
-
declare const FrontendUtils: FC<{
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
}>;
|
|
10
|
-
export default FrontendUtils;
|
package/eslint.config.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import globals from 'globals'
|
|
2
|
-
import pluginJs from '@eslint/js'
|
|
3
|
-
import tseslint from 'typescript-eslint'
|
|
4
|
-
import pluginReact from 'eslint-plugin-react'
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
|
|
8
|
-
{ languageOptions: { globals: globals.browser } },
|
|
9
|
-
pluginJs.configs.recommended,
|
|
10
|
-
...tseslint.configs.recommended,
|
|
11
|
-
pluginReact.configs.flat.recommended,
|
|
12
|
-
{
|
|
13
|
-
ignore: ['.dist', '.next', '.rollup.cache'],
|
|
14
|
-
rules: {
|
|
15
|
-
'react/react-in-jsx-scope': 'off',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
]
|