@monkvision/common 5.2.1 → 5.2.2

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.
@@ -42,7 +42,11 @@ export declare enum MonkSearchParam {
42
42
  /**
43
43
  * Search parameter used to specify the Auth0 Client ID.
44
44
  */
45
- CLIENT_ID = "c"
45
+ CLIENT_ID = "c",
46
+ /**
47
+ * Search parameter used to specify the live configuration to use.
48
+ */
49
+ LIVE_CONFIG = "lc"
46
50
  }
47
51
  /**
48
52
  * Getter function used to fetch the value of MonkSearchParams for the current app search params.
@@ -54,6 +58,7 @@ export type MonkSearchParamsGetter = {
54
58
  (param: MonkSearchParam.STEERING_WHEEL): SteeringWheelPosition | null;
55
59
  (param: MonkSearchParam.LANGUAGE): MonkLanguage | null;
56
60
  (param: MonkSearchParam.CLIENT_ID): string | null;
61
+ (param: MonkSearchParam.LIVE_CONFIG): string | null;
57
62
  };
58
63
  /**
59
64
  * Options accepted by the useMonkSearchParams hook.
@@ -50,6 +50,10 @@ var MonkSearchParam;
50
50
  * Search parameter used to specify the Auth0 Client ID.
51
51
  */
52
52
  MonkSearchParam["CLIENT_ID"] = "c";
53
+ /**
54
+ * Search parameter used to specify the live configuration to use.
55
+ */
56
+ MonkSearchParam["LIVE_CONFIG"] = "lc";
53
57
  })(MonkSearchParam = exports.MonkSearchParam || (exports.MonkSearchParam = {}));
54
58
  function validateParamValue(value, validValues) {
55
59
  var validValuesArray = (Array.isArray(validValues) ? validValues : Object.values(validValues));
@@ -78,6 +82,8 @@ function useMonkSearchParams(_a) {
78
82
  return validateParamValue(value, types_1.monkLanguages);
79
83
  case MonkSearchParam.CLIENT_ID:
80
84
  return value;
85
+ case MonkSearchParam.LIVE_CONFIG:
86
+ return value;
81
87
  default:
82
88
  return null;
83
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/common",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "license": "BSD-3-Clause-Clear",
5
5
  "packageManager": "yarn@3.2.4",
6
6
  "description": "MonkJs common logic package",
@@ -28,18 +28,17 @@
28
28
  "lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
29
29
  },
30
30
  "dependencies": {
31
- "@monkvision/analytics": "5.2.1",
32
- "@monkvision/monitoring": "5.2.1",
33
- "@monkvision/sights": "5.2.1",
34
- "@monkvision/types": "5.2.1",
31
+ "@monkvision/analytics": "5.2.2",
32
+ "@monkvision/monitoring": "5.2.2",
33
+ "@monkvision/sights": "5.2.2",
34
+ "@monkvision/types": "5.2.2",
35
35
  "i18next": "^23.4.5",
36
36
  "jsonwebtoken": "^9.0.2",
37
37
  "jwt-decode": "^4.0.0",
38
38
  "localforage": "^1.10.0",
39
39
  "match-sorter": "^6.3.4",
40
40
  "pako": "^2.1.0",
41
- "react-i18next": "^13.2.0",
42
- "sort-by": "^1.2.0"
41
+ "react-i18next": "^13.2.0"
43
42
  },
44
43
  "peerDependencies": {
45
44
  "react": "^17.0.2",
@@ -47,19 +46,18 @@
47
46
  "react-router-dom": "^6.22.3"
48
47
  },
49
48
  "devDependencies": {
50
- "@monkvision/eslint-config-base": "5.2.1",
51
- "@monkvision/eslint-config-typescript": "5.2.1",
52
- "@monkvision/eslint-config-typescript-react": "5.2.1",
53
- "@monkvision/jest-config": "5.2.1",
54
- "@monkvision/prettier-config": "5.2.1",
55
- "@monkvision/test-utils": "5.2.1",
56
- "@monkvision/typescript-config": "5.2.1",
49
+ "@monkvision/eslint-config-base": "5.2.2",
50
+ "@monkvision/eslint-config-typescript": "5.2.2",
51
+ "@monkvision/eslint-config-typescript-react": "5.2.2",
52
+ "@monkvision/jest-config": "5.2.2",
53
+ "@monkvision/prettier-config": "5.2.2",
54
+ "@monkvision/test-utils": "5.2.2",
55
+ "@monkvision/typescript-config": "5.2.2",
57
56
  "@testing-library/react": "^12.1.5",
58
57
  "@testing-library/react-hooks": "^8.0.1",
59
58
  "@types/jest": "^29.2.2",
60
59
  "@types/node": "^18.11.9",
61
60
  "@types/pako": "^2",
62
- "@types/sort-by": "^1",
63
61
  "@typescript-eslint/eslint-plugin": "^5.43.0",
64
62
  "@typescript-eslint/parser": "^5.43.0",
65
63
  "eslint": "^8.29.0",
@@ -96,5 +94,5 @@
96
94
  "url": "https://github.com/monkvision/monkjs/issues"
97
95
  },
98
96
  "homepage": "https://github.com/monkvision/monkjs",
99
- "gitHead": "30d140ff8b98f818e0bafa5a41d319d0b5a1e50f"
97
+ "gitHead": "f05ba32932398b3f01ba46e1569d336c78c62738"
100
98
  }