@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/react-utils.d.ts
CHANGED
|
@@ -288,9 +288,7 @@ export function useDisplayErrorPage(): boolean;
|
|
|
288
288
|
*
|
|
289
289
|
* A zustand store containing the status code of the latest API failed with 403 or
|
|
290
290
|
*
|
|
291
|
-
* 404 status
|
|
292
|
-
*
|
|
293
|
-
* the error page should be rendered or not.
|
|
291
|
+
* 404 status. It stores the following values:
|
|
294
292
|
*
|
|
295
293
|
* This store is automatically managed by neeto-commons-frontend using its axios
|
|
296
294
|
*
|
|
@@ -302,6 +300,8 @@ export function useDisplayErrorPage(): boolean;
|
|
|
302
300
|
export const useErrorDisplayStore: UseBoundStore<StoreApi<{
|
|
303
301
|
showErrorPage: boolean;
|
|
304
302
|
statusCode: number;
|
|
303
|
+
failedApiUrl: string;
|
|
304
|
+
failedApiPath: string;
|
|
305
305
|
}>>;
|
|
306
306
|
type TimerType = {
|
|
307
307
|
lastUpdated: number;
|
package/react-utils.js
CHANGED
|
@@ -947,7 +947,9 @@ var useDisplayErrorPage = function useDisplayErrorPage() {
|
|
|
947
947
|
var useErrorDisplayStore = create$1(function () {
|
|
948
948
|
return {
|
|
949
949
|
showErrorPage: false,
|
|
950
|
-
statusCode: 404
|
|
950
|
+
statusCode: 404,
|
|
951
|
+
failedApiUrl: "",
|
|
952
|
+
failedApiPath: ""
|
|
951
953
|
};
|
|
952
954
|
});
|
|
953
955
|
|
|
@@ -4275,7 +4277,8 @@ var useCheckpointStore = create$1(withImmutableActions(function (set) {
|
|
|
4275
4277
|
}
|
|
4276
4278
|
};
|
|
4277
4279
|
}));
|
|
4278
|
-
var useRegisterNavigationCheckpoint = function useRegisterNavigationCheckpoint(key
|
|
4280
|
+
var useRegisterNavigationCheckpoint = function useRegisterNavigationCheckpoint(key) {
|
|
4281
|
+
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.pathname + window.location.search;
|
|
4279
4282
|
var setCheckpoint = useCheckpointStore(prop("setCheckpoint"));
|
|
4280
4283
|
useEffect(function () {
|
|
4281
4284
|
setCheckpoint(key, path);
|