@moh-sso/state 1.11.0 → 1.12.0

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.
@@ -3,3 +3,4 @@ export { EmptyState } from "./emptystate/EmptyState";
3
3
  export { ErrorState } from "./errorstate/ErrorState";
4
4
  export { MicrofrontendErrorBoundary } from "./errorstate/MicrofrontendErrorBoundary";
5
5
  export { LoadingState } from "./loadingstate/LoadingState";
6
+ export { PageLoading, useFirstLoad } from "./pageloading/PageLoading";
@@ -0,0 +1,15 @@
1
+ type PageLoadingProps = {
2
+ description?: string;
3
+ };
4
+ /**
5
+ * What an app renders instead of its page until its first data load finishes.
6
+ * Apps return it before their PageShell, so the page appears once, complete.
7
+ */
8
+ export declare function PageLoading({ description }: PageLoadingProps): import("react").JSX.Element;
9
+ /**
10
+ * True until `isLoading` first turns false, then false for the rest of the
11
+ * component's life. Use it when a later query (a new filter, say) starts a
12
+ * fresh first load that must not swap the page back to PageLoading.
13
+ */
14
+ export declare function useFirstLoad(isLoading: boolean): boolean;
15
+ export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
- "version": "1.11.0",
6
+ "version": "1.12.0",
7
7
  "license": "UNLICENSED",
8
8
  "module": "./dist/index.js",
9
9
  "files": [
@@ -24,9 +24,9 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@moh-sso/api": "^1.11.0",
28
- "@moh-sso/auth": "^1.11.0",
29
- "@moh-sso/types": "^1.11.0"
27
+ "@moh-sso/api": "^1.12.0",
28
+ "@moh-sso/auth": "^1.12.0",
29
+ "@moh-sso/types": "^1.12.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@reduxjs/toolkit": "^2.11.2"