@bigbinary/neeto-commons-frontend 2.0.115 → 2.0.117
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/constants.cjs.js +8 -7
- package/constants.cjs.js.map +1 -1
- package/constants.d.ts +4 -2
- package/constants.js +8 -6
- package/constants.js.map +1 -1
- package/package.json +1 -1
- package/react-utils.d.ts +5 -1
package/constants.cjs.js
CHANGED
|
@@ -7,16 +7,17 @@ var DEFAULT_PAGE_INDEX = 1;
|
|
|
7
7
|
var DEFAULT_STALE_TIME = 3600000; // 1 hour
|
|
8
8
|
|
|
9
9
|
// Constants for translation
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
var TRANSLATION = {
|
|
11
|
+
SINGULAR: {
|
|
12
|
+
count: 1
|
|
13
|
+
},
|
|
14
|
+
PLURAL: {
|
|
15
|
+
count: 2
|
|
16
|
+
}
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
exports.BASE_API_V1_URL = BASE_API_V1_URL;
|
|
18
20
|
exports.DEFAULT_PAGE_INDEX = DEFAULT_PAGE_INDEX;
|
|
19
21
|
exports.DEFAULT_STALE_TIME = DEFAULT_STALE_TIME;
|
|
20
|
-
exports.
|
|
21
|
-
exports.TRANSLATION_SINGULAR = TRANSLATION_SINGULAR;
|
|
22
|
+
exports.TRANSLATION = TRANSLATION;
|
|
22
23
|
//# sourceMappingURL=constants.cjs.js.map
|
package/constants.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.cjs.js","sources":["src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const
|
|
1
|
+
{"version":3,"file":"constants.cjs.js","sources":["src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const TRANSLATION = {\n SINGULAR: { count: 1 },\n PLURAL: { count: 2 },\n};\n"],"names":["BASE_API_V1_URL","DEFAULT_PAGE_INDEX","DEFAULT_STALE_TIME","TRANSLATION","SINGULAR","count","PLURAL"],"mappings":";;;;AAAO,IAAMA,eAAe,GAAG,UAAS;AAEjC,IAAMC,kBAAkB,GAAG,EAAC;AACtBC,IAAAA,kBAAkB,GAAG,QAAU;;AAE5C;AACO,IAAMC,WAAW,GAAG;AACzBC,EAAAA,QAAQ,EAAE;AAAEC,IAAAA,KAAK,EAAE,CAAA;GAAG;AACtBC,EAAAA,MAAM,EAAE;AAAED,IAAAA,KAAK,EAAE,CAAA;AAAE,GAAA;AACrB;;;;;;;"}
|
package/constants.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export const BASE_API_V1_URL: string;
|
|
2
2
|
export const DEFAULT_PAGE_INDEX: number;
|
|
3
3
|
export const DEFAULT_STALE_TIME: number;
|
|
4
|
-
export const
|
|
5
|
-
|
|
4
|
+
export const TRANSLATION: {
|
|
5
|
+
SINGULAR: { count: number },
|
|
6
|
+
PLURAL: { count: number }
|
|
7
|
+
}
|
package/constants.js
CHANGED
|
@@ -3,12 +3,14 @@ var DEFAULT_PAGE_INDEX = 1;
|
|
|
3
3
|
var DEFAULT_STALE_TIME = 3600000; // 1 hour
|
|
4
4
|
|
|
5
5
|
// Constants for translation
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
var TRANSLATION = {
|
|
7
|
+
SINGULAR: {
|
|
8
|
+
count: 1
|
|
9
|
+
},
|
|
10
|
+
PLURAL: {
|
|
11
|
+
count: 2
|
|
12
|
+
}
|
|
11
13
|
};
|
|
12
14
|
|
|
13
|
-
export { BASE_API_V1_URL, DEFAULT_PAGE_INDEX, DEFAULT_STALE_TIME,
|
|
15
|
+
export { BASE_API_V1_URL, DEFAULT_PAGE_INDEX, DEFAULT_STALE_TIME, TRANSLATION };
|
|
14
16
|
//# sourceMappingURL=constants.js.map
|
package/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const TRANSLATION = {\n SINGULAR: { count: 1 },\n PLURAL: { count: 2 },\n};\n"],"names":["BASE_API_V1_URL","DEFAULT_PAGE_INDEX","DEFAULT_STALE_TIME","TRANSLATION","SINGULAR","count","PLURAL"],"mappings":"AAAO,IAAMA,eAAe,GAAG,UAAS;AAEjC,IAAMC,kBAAkB,GAAG,EAAC;AACtBC,IAAAA,kBAAkB,GAAG,QAAU;;AAE5C;AACO,IAAMC,WAAW,GAAG;AACzBC,EAAAA,QAAQ,EAAE;AAAEC,IAAAA,KAAK,EAAE,CAAA;GAAG;AACtBC,EAAAA,MAAM,EAAE;AAAED,IAAAA,KAAK,EAAE,CAAA;AAAE,GAAA;AACrB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.117",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
package/react-utils.d.ts
CHANGED
|
@@ -759,4 +759,8 @@ export function useFetchNeetoApps(options?: UseQueryOptions): ReturnType<typeof
|
|
|
759
759
|
* const Component = withT(({ t }) => <div>{t("some.key")}</div>);
|
|
760
760
|
* @endexample
|
|
761
761
|
*/
|
|
762
|
-
export const withT: <
|
|
762
|
+
export const withT: <Props extends {
|
|
763
|
+
[key: string]: any;
|
|
764
|
+
}>(Component: React.ComponentType<Props & {
|
|
765
|
+
t: TFunction;
|
|
766
|
+
}>) => React.ComponentType<Props>;
|