@bigbinary/neeto-commons-frontend 2.1.3 → 2.1.5
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/cypress-configs/initializer.js +1 -1
- package/initializers.cjs.js +3 -1
- package/initializers.cjs.js.map +1 -1
- package/initializers.js +3 -1
- package/initializers.js.map +1 -1
- package/package.json +1 -1
- package/react-utils.cjs.js +5 -2
- package/react-utils.cjs.js.map +1 -1
- package/react-utils.d.ts +3 -3
- package/react-utils.js +5 -2
- package/react-utils.js.map +1 -1
- package/utils.cjs.js.map +1 -1
- package/utils.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
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.cjs.js
CHANGED
|
@@ -975,7 +975,9 @@ var useDisplayErrorPage = function useDisplayErrorPage() {
|
|
|
975
975
|
var useErrorDisplayStore = create$1(function () {
|
|
976
976
|
return {
|
|
977
977
|
showErrorPage: false,
|
|
978
|
-
statusCode: 404
|
|
978
|
+
statusCode: 404,
|
|
979
|
+
failedApiUrl: "",
|
|
980
|
+
failedApiPath: ""
|
|
979
981
|
};
|
|
980
982
|
});
|
|
981
983
|
|
|
@@ -4303,7 +4305,8 @@ var useCheckpointStore = create$1(withImmutableActions(function (set) {
|
|
|
4303
4305
|
}
|
|
4304
4306
|
};
|
|
4305
4307
|
}));
|
|
4306
|
-
var useRegisterNavigationCheckpoint = function useRegisterNavigationCheckpoint(key
|
|
4308
|
+
var useRegisterNavigationCheckpoint = function useRegisterNavigationCheckpoint(key) {
|
|
4309
|
+
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.pathname + window.location.search;
|
|
4307
4310
|
var setCheckpoint = useCheckpointStore(ramda.prop("setCheckpoint"));
|
|
4308
4311
|
React.useEffect(function () {
|
|
4309
4312
|
setCheckpoint(key, path);
|