@trackunit/react-core-contexts-api 1.7.5 → 1.7.10
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +4 -4
- package/src/assetSortingContext.d.ts +1 -1
- package/src/filterBarContext.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -72,7 +72,7 @@ const stringToEnum = {
|
|
|
72
72
|
* Ensures that a string is a valid AssetSortByProperty enum value
|
|
73
73
|
*
|
|
74
74
|
* @param input A string to test against AssetSortByProperty
|
|
75
|
-
* @returns {AssetSortByProperty
|
|
75
|
+
* @returns {AssetSortByProperty} The AssetSortByProperty enum value or the default value (AssetSortByProperty.Activity)
|
|
76
76
|
*/
|
|
77
77
|
const validateStringAsAssetSortByProperty = (input) => {
|
|
78
78
|
const fallback = exports.AssetSortByProperty.Activity;
|
package/index.esm.js
CHANGED
|
@@ -70,7 +70,7 @@ const stringToEnum = {
|
|
|
70
70
|
* Ensures that a string is a valid AssetSortByProperty enum value
|
|
71
71
|
*
|
|
72
72
|
* @param input A string to test against AssetSortByProperty
|
|
73
|
-
* @returns {AssetSortByProperty
|
|
73
|
+
* @returns {AssetSortByProperty} The AssetSortByProperty enum value or the default value (AssetSortByProperty.Activity)
|
|
74
74
|
*/
|
|
75
75
|
const validateStringAsAssetSortByProperty = (input) => {
|
|
76
76
|
const fallback = AssetSortByProperty.Activity;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts-api",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.10",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"jest-fetch-mock": "^3.0.3",
|
|
11
|
-
"@trackunit/shared-utils": "1.8.
|
|
12
|
-
"@trackunit/geo-json-utils": "1.6.
|
|
13
|
-
"@trackunit/react-test-setup": "1.3.
|
|
11
|
+
"@trackunit/shared-utils": "1.8.10",
|
|
12
|
+
"@trackunit/geo-json-utils": "1.6.10",
|
|
13
|
+
"@trackunit/react-test-setup": "1.3.10"
|
|
14
14
|
},
|
|
15
15
|
"module": "./index.esm.js",
|
|
16
16
|
"main": "./index.cjs.js",
|
|
@@ -39,7 +39,7 @@ export declare enum AssetSortByProperty {
|
|
|
39
39
|
* Ensures that a string is a valid AssetSortByProperty enum value
|
|
40
40
|
*
|
|
41
41
|
* @param input A string to test against AssetSortByProperty
|
|
42
|
-
* @returns {AssetSortByProperty
|
|
42
|
+
* @returns {AssetSortByProperty} The AssetSortByProperty enum value or the default value (AssetSortByProperty.Activity)
|
|
43
43
|
*/
|
|
44
44
|
export declare const validateStringAsAssetSortByProperty: (input?: string) => {
|
|
45
45
|
sortBy: AssetSortByProperty;
|
|
@@ -21,7 +21,7 @@ export interface FilterBarContext {
|
|
|
21
21
|
/**
|
|
22
22
|
* The filter bar values, keyed by filter key.
|
|
23
23
|
*
|
|
24
|
-
* @deprecated Use {
|
|
24
|
+
* @deprecated Use { FilterBarContext.assetsFilterBarValues} instead.
|
|
25
25
|
*/
|
|
26
26
|
filterBarValues: FilterBarValues | null;
|
|
27
27
|
/**
|