@m4l/core 2.0.27-beta.0 → 2.0.27-beta.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/contexts/AuthContext/AuthContext.js +1 -1
- package/contexts/BaseContext/BaseContext.js +1 -1
- package/contexts/DomainContext/index.js +1 -1
- package/contexts/DomainCountryContext/index.js +1 -1
- package/contexts/EnvironmentContext/index.js +1 -1
- package/contexts/FlagsContext/index.js +1 -1
- package/contexts/HostToolsContext/index.js +1 -1
- package/contexts/ModuleDictionaryContext/index.js +1 -1
- package/contexts/ModulePrivilegesContext/index.js +1 -1
- package/contexts/ModuleSkeletonContext/index.js +1 -1
- package/contexts/NetworkContext/index.js +1 -1
- package/package.json +3 -2
- package/contexts/AuthContext/AuthContext.d.ts +0 -8
- package/contexts/AuthContext/AuthContext.d.ts.map +0 -1
- package/contexts/AuthContext/constants.d.ts +0 -8
- package/contexts/AuthContext/constants.d.ts.map +0 -1
- package/contexts/AuthContext/helpers.d.ts +0 -6
- package/contexts/AuthContext/helpers.d.ts.map +0 -1
- package/contexts/AuthContext/index.d.ts +0 -3
- package/contexts/AuthContext/index.d.ts.map +0 -1
- package/contexts/AuthContext/types.d.ts +0 -68
- package/contexts/AuthContext/types.d.ts.map +0 -1
- package/contexts/BaseContext/BaseContext.d.ts +0 -8
- package/contexts/BaseContext/BaseContext.d.ts.map +0 -1
- package/contexts/BaseContext/index.d.ts +0 -3
- package/contexts/BaseContext/index.d.ts.map +0 -1
- package/contexts/BaseContext/store.d.ts +0 -7
- package/contexts/BaseContext/store.d.ts.map +0 -1
- package/contexts/BaseContext/types.d.ts +0 -38
- package/contexts/BaseContext/types.d.ts.map +0 -1
- package/contexts/DomainContext/index.d.ts +0 -8
- package/contexts/DomainContext/index.d.ts.map +0 -1
- package/contexts/DomainContext/types.d.ts +0 -12
- package/contexts/DomainContext/types.d.ts.map +0 -1
- package/contexts/DomainCountryContext/index.d.ts +0 -8
- package/contexts/DomainCountryContext/index.d.ts.map +0 -1
- package/contexts/DomainCountryContext/types.d.ts +0 -16
- package/contexts/DomainCountryContext/types.d.ts.map +0 -1
- package/contexts/EnvironmentContext/index.d.ts +0 -8
- package/contexts/EnvironmentContext/index.d.ts.map +0 -1
- package/contexts/EnvironmentContext/types.d.ts +0 -15
- package/contexts/EnvironmentContext/types.d.ts.map +0 -1
- package/contexts/FlagsContext/index.d.ts +0 -16
- package/contexts/FlagsContext/index.d.ts.map +0 -1
- package/contexts/FlagsContext/store.d.ts +0 -15
- package/contexts/FlagsContext/store.d.ts.map +0 -1
- package/contexts/FlagsContext/types.d.ts +0 -47
- package/contexts/FlagsContext/types.d.ts.map +0 -1
- package/contexts/HostToolsContext/index.d.ts +0 -9
- package/contexts/HostToolsContext/index.d.ts.map +0 -1
- package/contexts/HostToolsContext/types.d.ts +0 -7
- package/contexts/HostToolsContext/types.d.ts.map +0 -1
- package/contexts/ModuleDictionaryContext/index.d.ts +0 -8
- package/contexts/ModuleDictionaryContext/index.d.ts.map +0 -1
- package/contexts/ModuleDictionaryContext/types.d.ts +0 -17
- package/contexts/ModuleDictionaryContext/types.d.ts.map +0 -1
- package/contexts/ModulePrivilegesContext/index.d.ts +0 -8
- package/contexts/ModulePrivilegesContext/index.d.ts.map +0 -1
- package/contexts/ModulePrivilegesContext/types.d.ts +0 -10
- package/contexts/ModulePrivilegesContext/types.d.ts.map +0 -1
- package/contexts/ModuleSkeletonContext/index.d.ts +0 -8
- package/contexts/ModuleSkeletonContext/index.d.ts.map +0 -1
- package/contexts/ModuleSkeletonContext/types.d.ts +0 -9
- package/contexts/ModuleSkeletonContext/types.d.ts.map +0 -1
- package/contexts/NetworkContext/index.d.ts +0 -8
- package/contexts/NetworkContext/index.d.ts.map +0 -1
- package/contexts/NetworkContext/types.d.ts +0 -12
- package/contexts/NetworkContext/types.d.ts.map +0 -1
- package/contexts/index.d.ts +0 -13
- package/contexts/index.d.ts.map +0 -1
- package/hooks/index.d.ts +0 -18
- package/hooks/index.d.ts.map +0 -1
- package/hooks/useAuth/index.d.ts +0 -2
- package/hooks/useAuth/index.d.ts.map +0 -1
- package/hooks/useAuth/useAuth.d.ts +0 -6
- package/hooks/useAuth/useAuth.d.ts.map +0 -1
- package/hooks/useBase/index.d.ts +0 -2
- package/hooks/useBase/index.d.ts.map +0 -1
- package/hooks/useBase/useBase.d.ts +0 -11
- package/hooks/useBase/useBase.d.ts.map +0 -1
- package/hooks/useDomain/index.d.ts +0 -6
- package/hooks/useDomain/index.d.ts.map +0 -1
- package/hooks/useDomainCountry/index.d.ts +0 -5
- package/hooks/useDomainCountry/index.d.ts.map +0 -1
- package/hooks/useEnvironment/index.d.ts +0 -7
- package/hooks/useEnvironment/index.d.ts.map +0 -1
- package/hooks/useFlagsStore/index.d.ts +0 -10
- package/hooks/useFlagsStore/index.d.ts.map +0 -1
- package/hooks/useHostTools/index.d.ts +0 -6
- package/hooks/useHostTools/index.d.ts.map +0 -1
- package/hooks/useLocalStorage/index.d.ts +0 -5
- package/hooks/useLocalStorage/index.d.ts.map +0 -1
- package/hooks/useLocalStorageWithListener/index.d.ts +0 -8
- package/hooks/useLocalStorageWithListener/index.d.ts.map +0 -1
- package/hooks/useModuleDictionary/index.d.ts +0 -5
- package/hooks/useModuleDictionary/index.d.ts.map +0 -1
- package/hooks/useModulePrivileges/index.d.ts +0 -5
- package/hooks/useModulePrivileges/index.d.ts.map +0 -1
- package/hooks/useModuleSkeleton/index.d.ts +0 -5
- package/hooks/useModuleSkeleton/index.d.ts.map +0 -1
- package/hooks/useNetwork/index.d.ts +0 -6
- package/hooks/useNetwork/index.d.ts.map +0 -1
- package/hooks/usePaginate/index.d.ts +0 -15
- package/hooks/usePaginate/index.d.ts.map +0 -1
- package/hooks/usePaginate/types.d.ts +0 -18
- package/hooks/usePaginate/types.d.ts.map +0 -1
- package/hooks/usePropageteMF/index.d.ts +0 -7
- package/hooks/usePropageteMF/index.d.ts.map +0 -1
- package/hooks/usePropageteMF/types.d.ts +0 -7
- package/hooks/usePropageteMF/types.d.ts.map +0 -1
- package/index.d.ts +0 -7
- package/index.d.ts.map +0 -1
- package/test/constants.d.ts +0 -71
- package/test/constants.d.ts.map +0 -1
- package/test/index.d.ts +0 -4
- package/test/index.d.ts.map +0 -1
- package/test/mocks.d.ts +0 -9
- package/test/mocks.d.ts.map +0 -1
- package/test/setup.d.ts +0 -1
- package/test/setup.d.ts.map +0 -1
- package/test/types.d.ts +0 -5
- package/test/types.d.ts.map +0 -1
- package/test/utils.d.ts +0 -9
- package/test/utils.d.ts.map +0 -1
- package/types/dictionary.d.ts +0 -14
- package/types/dictionary.d.ts.map +0 -1
- package/types/index.d.ts +0 -118
- package/types/index.d.ts.map +0 -1
- package/utils/axiosOperation/index.d.ts +0 -6
- package/utils/axiosOperation/index.d.ts.map +0 -1
- package/utils/axiosOperation/types.d.ts +0 -10
- package/utils/axiosOperation/types.d.ts.map +0 -1
- package/utils/evaluateWithContext/index.d.ts +0 -8
- package/utils/evaluateWithContext/index.d.ts.map +0 -1
- package/utils/getLocalStorage/index.d.ts +0 -5
- package/utils/getLocalStorage/index.d.ts.map +0 -1
- package/utils/getPropertyByString/index.d.ts +0 -8
- package/utils/getPropertyByString/index.d.ts.map +0 -1
- package/utils/index.d.ts +0 -8
- package/utils/index.d.ts.map +0 -1
- package/utils/setLocalStorage/index.d.ts +0 -5
- package/utils/setLocalStorage/index.d.ts.map +0 -1
- package/utils/voidFunction.d.ts +0 -5
- package/utils/voidFunction.d.ts.map +0 -1
package/types/index.d.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Id, ToastOptions } from 'react-toastify';
|
|
3
|
-
import { BrowserHistory } from 'history';
|
|
4
|
-
import { AxiosProgressEvent, ResponseType } from 'axios';
|
|
5
|
-
import { DomainCountry } from '../contexts/DomainCountryContext/types';
|
|
6
|
-
import { AxiosOptions } from '../utils/axiosOperation/types';
|
|
7
|
-
export type Maybe<T> = T | undefined | null;
|
|
8
|
-
type MFProps = {
|
|
9
|
-
moduleId: string;
|
|
10
|
-
debugPort: number;
|
|
11
|
-
};
|
|
12
|
-
export type EnvironmentType = {
|
|
13
|
-
/**
|
|
14
|
-
* "isIsolatation" Indica si la aplicacion esta ejecutando stand alone sin el host.
|
|
15
|
-
* Por defecto es false.
|
|
16
|
-
* El componente ByIsolation pone esta configuración.
|
|
17
|
-
*/
|
|
18
|
-
isIsolatation?: boolean;
|
|
19
|
-
isMicroFrontend?: boolean;
|
|
20
|
-
mfProps?: MFProps;
|
|
21
|
-
/**
|
|
22
|
-
* "isLocalhost": Indica si la aplicacion esta en localhost.
|
|
23
|
-
* Se determina con base en el window.host.
|
|
24
|
-
*/
|
|
25
|
-
isLocalhost: boolean;
|
|
26
|
-
host: string;
|
|
27
|
-
domain_token: string;
|
|
28
|
-
/**
|
|
29
|
-
* Base de datos a la que la plataforma se conectará
|
|
30
|
-
*/
|
|
31
|
-
database: string;
|
|
32
|
-
host_api_remote: string;
|
|
33
|
-
host_api_local: string;
|
|
34
|
-
host_static_assets: string;
|
|
35
|
-
environment_assets: string;
|
|
36
|
-
hostApiIcons?: string;
|
|
37
|
-
googleMapsApiKey?: string;
|
|
38
|
-
};
|
|
39
|
-
export declare type NetworkProps = {
|
|
40
|
-
method: any;
|
|
41
|
-
endPoint: string;
|
|
42
|
-
/**
|
|
43
|
-
* "database" Indica la base de datos a la que se conectara. Cuando se instancia axiosOperation se pone el valor por defecto.
|
|
44
|
-
* Para made4Labs es domain
|
|
45
|
-
* Para guardian es operative
|
|
46
|
-
*/
|
|
47
|
-
database?: string;
|
|
48
|
-
timeout?: number;
|
|
49
|
-
parms?: object;
|
|
50
|
-
data?: Record<string, any>;
|
|
51
|
-
headers?: Record<string, string | number | boolean>;
|
|
52
|
-
checkUnAuthorized?: boolean;
|
|
53
|
-
isRemote?: boolean;
|
|
54
|
-
toastSuccess?: boolean;
|
|
55
|
-
toastError?: boolean;
|
|
56
|
-
onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
|
57
|
-
isExternalUrl?: boolean;
|
|
58
|
-
responseType?: ResponseType;
|
|
59
|
-
signal?: AbortSignal;
|
|
60
|
-
options?: AxiosOptions;
|
|
61
|
-
bodyToSnakeCase?: boolean;
|
|
62
|
-
responseToCamelCase?: boolean;
|
|
63
|
-
};
|
|
64
|
-
export interface ToasterFunctionProps {
|
|
65
|
-
title: ReactNode;
|
|
66
|
-
description?: ReactNode;
|
|
67
|
-
}
|
|
68
|
-
export type Toaster = {
|
|
69
|
-
(props: ToasterFunctionProps, toastOptions?: ToastOptions): Id;
|
|
70
|
-
success(props: ToasterFunctionProps, toastOptions?: ToastOptions): Id;
|
|
71
|
-
info(props: ToasterFunctionProps, toastOptions?: ToastOptions): Id;
|
|
72
|
-
warning(props: ToasterFunctionProps, toastOptions?: ToastOptions): Id;
|
|
73
|
-
error(props: ToasterFunctionProps, toastOptions?: ToastOptions): Id;
|
|
74
|
-
};
|
|
75
|
-
export declare enum EmmitEvents {
|
|
76
|
-
EMMIT_EVENT_NET_SERVICE_UNAUTHORIZED = "netsevice_unauthorized",
|
|
77
|
-
EMMIT_EVENT_HOST_LOCALE_CHANGE = "host_locale_change",
|
|
78
|
-
EMMIT_EVENT_HOST_THEME_CHANGE = "host_theme_change",
|
|
79
|
-
EMMIT_EVENT_HOST_DOMAIN_COUNTRY_CHANGE = "domain_country_change",
|
|
80
|
-
EMMIT_EVENT_HOST_FORMATTER_CHANGE = "formatter_change",
|
|
81
|
-
EMMIT_EVENT_HOST_EMERGE_WINDOW = "host_emerge_window"
|
|
82
|
-
}
|
|
83
|
-
export type EmptyObject = Record<string, any>;
|
|
84
|
-
export type EmmitBaseGuard = {
|
|
85
|
-
[K in EmmitEvents]: any;
|
|
86
|
-
};
|
|
87
|
-
export interface EmmitEventsGuard extends EmmitBaseGuard {
|
|
88
|
-
domain_country_change: DomainCountry;
|
|
89
|
-
netsevice_unauthorized: EmptyObject;
|
|
90
|
-
}
|
|
91
|
-
export type EmmitFunction = <E extends keyof EmmitEventsGuard>(event: E, arg1: EmmitEventsGuard[E]) => void;
|
|
92
|
-
export declare type EventListenerBase = (...args: any[]) => void;
|
|
93
|
-
export type EmmitListenerBaseGuard = {
|
|
94
|
-
[K in EmmitEvents]: EventListenerBase;
|
|
95
|
-
};
|
|
96
|
-
export interface EmmitListenerGuard extends EmmitListenerBaseGuard {
|
|
97
|
-
domain_country_change: (newDomainCountry: DomainCountry) => void;
|
|
98
|
-
}
|
|
99
|
-
export type EmmitEventListener = <E extends keyof EmmitListenerGuard>(event: E, handler: EmmitListenerGuard[E]) => void;
|
|
100
|
-
export declare interface HostToolsType {
|
|
101
|
-
history: BrowserHistory;
|
|
102
|
-
toast: Toaster;
|
|
103
|
-
startProgress: VoidFunction;
|
|
104
|
-
stopProgress: VoidFunction;
|
|
105
|
-
events_add_listener: EmmitEventListener;
|
|
106
|
-
events_remove_listener: EmmitEventListener;
|
|
107
|
-
events_emit: EmmitFunction;
|
|
108
|
-
}
|
|
109
|
-
export declare enum CommonFlags {
|
|
110
|
-
FLAG_PRIVILEGES_LOADED = "privileges_loaded",
|
|
111
|
-
FLAG_DICTIONARY_LOADED = "dictionary_loaded",
|
|
112
|
-
FLAG_DOMAIN_LOADED = "domain_loaded",
|
|
113
|
-
FLAG_FORM_LOADED = "form_loaded",
|
|
114
|
-
FLAG_AREAS_LOADED = "areas_loaded"
|
|
115
|
-
}
|
|
116
|
-
export declare type AxiosOperation = (props: NetworkProps, enviroment: EnvironmentType, hostTools: HostToolsType) => Promise<any>;
|
|
117
|
-
export {};
|
|
118
|
-
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,EAAE,EAA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sBAAsB;IAC5C,kBAAkB,kBAAkB;IACpC,gBAAgB,gBAAgB;IAChC,iBAAiB,iBAAiB;CACnC;AACD,MAAM,CAAC,OAAO,MAAM,cAAc,GAAG,CACnC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,eAAe,EAC3B,SAAS,EAAE,aAAa,KACrB,OAAO,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { EnvironmentType, HostToolsType, NetworkProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Esta función se encarga de realizar las operaciones de red.
|
|
4
|
-
*/
|
|
5
|
-
export declare const axiosOperation: <T = any>(props: NetworkProps, enviroment: EnvironmentType, hostTools: HostToolsType) => Promise<T>;
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/utils/axiosOperation/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAiHhF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAU,CAAC,GAAG,GAAG,EAC1C,OAAO,YAAY,EACnB,YAAY,eAAe,EAC3B,WAAW,aAAa,KACvB,OAAO,CAAC,CAAC,CAmEX,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/utils/axiosOperation/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Evalúa un fragmento de código dentro de un contexto específico.
|
|
3
|
-
* @param context - El contexto en el que se evaluará el código.
|
|
4
|
-
* @param code - El código a evaluar.
|
|
5
|
-
* @returns El resultado de la evaluación como una cadena.
|
|
6
|
-
*/
|
|
7
|
-
export declare function evaluateWithContext(context: any, code: string): string;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/utils/evaluateWithContext/index.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAetE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/utils/getLocalStorage/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,GAAG,SAAS,CAS1F"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Maybe } from '../../types';
|
|
2
|
-
type PropertyType = string | number | boolean | any[] | Record<any, any>;
|
|
3
|
-
export declare function getPropertyByString<T extends PropertyType>(object: any, key: string): Maybe<T>;
|
|
4
|
-
export declare function getPropertyByString<T extends PropertyType>(object: any, key: string, defaultValue: T): T;
|
|
5
|
-
export declare function getPropertyByString<T extends PropertyType>(object: any, key: string, defaultValue: null): T | null;
|
|
6
|
-
export declare function getPropertyByString<T extends PropertyType>(object: any, key: string, defaultValue: undefined): T | undefined;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/utils/getPropertyByString/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpC,KAAK,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAI,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE1E,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,YAAY,EACxD,MAAM,EAAE,GAAG,EACX,GAAG,EAAE,MAAM,GACV,KAAK,CAAC,CAAC,CAAC,CAAC;AAGZ,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,YAAY,EACxD,MAAM,EAAE,GAAG,EACX,GAAG,EAAE,MAAM,EACX,YAAY,EAAG,CAAC,GACf,CAAC,CAAC;AAEL,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,YAAY,EACxD,MAAM,EAAE,GAAG,EACX,GAAG,EAAE,MAAM,EACX,YAAY,EAAG,IAAI,GAClB,CAAC,GAAG,IAAI,CAAC;AAEZ,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,YAAY,EACxD,MAAM,EAAE,GAAG,EACX,GAAG,EAAE,MAAM,EACX,YAAY,EAAG,SAAS,GACvB,CAAC,GAAG,SAAS,CAAC"}
|
package/utils/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { voidFunction } from './voidFunction';
|
|
2
|
-
export { getPropertyByString } from './getPropertyByString';
|
|
3
|
-
export { evaluateWithContext } from './evaluateWithContext';
|
|
4
|
-
export { getLocalStorage } from './getLocalStorage';
|
|
5
|
-
export { setLocalStorage } from './setLocalStorage';
|
|
6
|
-
export { axiosOperation } from './axiosOperation';
|
|
7
|
-
export type { AxiosOptions } from './axiosOperation/types';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
package/utils/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Graba en el localStorage un objeto con la key especificada. Si ya existe, lo mezcla con el objeto actual.
|
|
3
|
-
*/
|
|
4
|
-
export declare function setLocalStorage<ValueType>(key: string, newValue: ValueType, mixCurrentLocalStorage?: boolean): void;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/utils/setLocalStorage/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EACvC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,SAAS,EACnB,sBAAsB,UAAQ,QAe/B"}
|
package/utils/voidFunction.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"voidFunction.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/utils/voidFunction.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,YAAY,SAAK"}
|