@m4l/core 0.0.34 → 0.0.35
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.
|
@@ -8,12 +8,14 @@ const initialValue = {
|
|
|
8
8
|
host_api_remote: "",
|
|
9
9
|
host_static_assets: "",
|
|
10
10
|
environment_assets: "",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
dfnsFormat: {
|
|
12
|
+
date_format: "yyyy-MM-dd",
|
|
13
|
+
date_mask: "____-__-__",
|
|
14
|
+
time_format: "HH:mm:ss",
|
|
15
|
+
time_mask: "__:__:__",
|
|
16
|
+
datetime_format: "yyyy-MM-dd HH:mm:ss",
|
|
17
|
+
datetime_mask: "____-__-__ __:__:__"
|
|
18
|
+
}
|
|
17
19
|
};
|
|
18
20
|
const EnvironmentContext = createContext(initialValue);
|
|
19
21
|
function EnvironmentProvider(props) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { Id, ToastContent, ToastOptions } from 'react-toastify';
|
|
2
2
|
import type { BrowserHistory } from 'history';
|
|
3
3
|
export declare type Maybe<T> = T | undefined | null;
|
|
4
|
+
export declare interface DfnFormat {
|
|
5
|
+
date_format: string;
|
|
6
|
+
date_mask: string;
|
|
7
|
+
time_format: string;
|
|
8
|
+
time_mask: string;
|
|
9
|
+
datetime_format: string;
|
|
10
|
+
datetime_mask: string;
|
|
11
|
+
}
|
|
4
12
|
export declare interface EnvironmentType {
|
|
5
13
|
isLocalhost: boolean;
|
|
6
14
|
host: string;
|
|
@@ -9,12 +17,7 @@ export declare interface EnvironmentType {
|
|
|
9
17
|
host_api_local: string;
|
|
10
18
|
host_static_assets: string;
|
|
11
19
|
environment_assets: string;
|
|
12
|
-
|
|
13
|
-
date_mask: string;
|
|
14
|
-
time_format: string;
|
|
15
|
-
time_mask: string;
|
|
16
|
-
datetime_format: string;
|
|
17
|
-
datetime_mask: string;
|
|
20
|
+
dfnsFormat: DfnFormat;
|
|
18
21
|
}
|
|
19
22
|
export declare type NetworkProps = {
|
|
20
23
|
method: any;
|