@bigbinary/neeto-commons-frontend 2.1.6 → 2.1.8
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/README.md +104 -94
- package/configs/scripts/jsdoc-builder/constants.mjs +1 -1
- package/configs/scripts/jsdoc-builder/utils.mjs +4 -3
- package/cypress-utils.d.ts +2 -2
- package/initializers.cjs.js +0 -1
- package/initializers.cjs.js.map +1 -1
- package/initializers.d.ts +7 -5
- package/initializers.js +0 -1
- package/initializers.js.map +1 -1
- package/package.json +1 -1
- package/pure.d.ts +325 -324
- package/react-utils.d.ts +674 -153
- package/utils.cjs.js +8 -2
- package/utils.cjs.js.map +1 -1
- package/utils.d.ts +145 -44
- package/utils.js +8 -2
- package/utils.js.map +1 -1
package/initializers.d.ts
CHANGED
|
@@ -64,18 +64,20 @@ export const globalProps: GlobalPropsType;
|
|
|
64
64
|
/** @deprecated use useDisplayErrorPage from react-utils bundle */
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
*
|
|
67
|
+
* The useDisplayErrorPage hook is a utility that allows you to conditionally
|
|
68
68
|
*
|
|
69
|
-
*
|
|
69
|
+
* render an error page in your application based on the status codes of API
|
|
70
70
|
*
|
|
71
|
-
*
|
|
71
|
+
* responses.
|
|
72
72
|
*
|
|
73
|
-
*
|
|
73
|
+
* The following code snippet demonstrates the usage of useDisplayErrorPage in
|
|
74
74
|
*
|
|
75
|
-
*
|
|
75
|
+
* conditionally rendering an error page.
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
78
|
*
|
|
79
|
+
* import { useDisplayErrorPage } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
80
|
+
*
|
|
79
81
|
* const App = () => {
|
|
80
82
|
* const isError = useDisplayErrorPage();
|
|
81
83
|
*
|