@elevasis/ui 2.39.3 → 2.40.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.
@@ -3252,6 +3252,17 @@ interface ProtectedRouteProps {
3252
3252
  */
3253
3253
  declare function ProtectedRoute({ children, redirectTo, fallback, errorFallback, waitForOrganization }: ProtectedRouteProps): react_jsx_runtime.JSX.Element;
3254
3254
 
3255
+ interface AuthRedirectLoadingScreenProps {
3256
+ backgroundColor?: string;
3257
+ loader?: ReactNode;
3258
+ testId?: string;
3259
+ }
3260
+ /**
3261
+ * Full-screen neutral loader for auth handoff routes that immediately redirect
3262
+ * to a hosted provider.
3263
+ */
3264
+ declare function AuthRedirectLoadingScreen({ backgroundColor, loader: loaderOverride, testId }: AuthRedirectLoadingScreenProps): react_jsx_runtime.JSX.Element;
3265
+
3255
3266
  interface UseAccessResult extends AccessAnswer {
3256
3267
  isReady: boolean;
3257
3268
  isPlatformAdmin: boolean;
@@ -3306,5 +3317,5 @@ interface UseUserProfileReturn {
3306
3317
  */
3307
3318
  declare const useUserProfile: (options?: UseUserProfileOptions) => UseUserProfileReturn;
3308
3319
 
3309
- export { AccessGuard, ProtectedRoute, useUserProfile };
3310
- export type { AccessGuardProps, ProtectedRouteProps, UseUserProfileReturn };
3320
+ export { AccessGuard, AuthRedirectLoadingScreen, ProtectedRoute, useUserProfile };
3321
+ export type { AccessGuardProps, AuthRedirectLoadingScreenProps, ProtectedRouteProps, UseUserProfileReturn };
@@ -52,6 +52,7 @@ import '../../chunk-BRJ3QZ4E.js';
52
52
  import '../../chunk-I2KLQ2HA.js';
53
53
  import { useState, useRef, useEffect, useCallback } from 'react';
54
54
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
55
+ import { Loader } from '@mantine/core';
55
56
 
56
57
  function FullScreenLoader({ hiding, onHidden }) {
57
58
  const { background, loader } = useAppearance();
@@ -123,5 +124,26 @@ function ProtectedRoute2({
123
124
  )
124
125
  ] });
125
126
  }
127
+ function AuthRedirectLoadingScreen({
128
+ backgroundColor = "#f3f4f6",
129
+ loader: loaderOverride,
130
+ testId = "auth-redirect-loading"
131
+ }) {
132
+ const { loader } = useAppearance();
133
+ return /* @__PURE__ */ jsx(
134
+ "div",
135
+ {
136
+ "data-testid": testId,
137
+ style: {
138
+ height: "100vh",
139
+ display: "flex",
140
+ alignItems: "center",
141
+ justifyContent: "center",
142
+ backgroundColor
143
+ },
144
+ children: loaderOverride ?? loader ?? /* @__PURE__ */ jsx(Loader, { size: "lg", color: "gray" })
145
+ }
146
+ );
147
+ }
126
148
 
127
- export { ProtectedRoute2 as ProtectedRoute };
149
+ export { AuthRedirectLoadingScreen, ProtectedRoute2 as ProtectedRoute };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "2.39.3",
3
+ "version": "2.40.0",
4
4
  "description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -269,11 +269,11 @@
269
269
  "typescript": "5.9.2",
270
270
  "vite": "^7.0.0",
271
271
  "vitest": "^3.2.4",
272
- "@elevasis/sdk": "1.28.1",
273
- "@repo/core": "0.35.1",
274
- "@repo/eslint-config": "0.0.0",
272
+ "@elevasis/sdk": "1.29.0",
273
+ "@repo/core": "0.36.0",
274
+ "@repo/typescript-config": "0.0.0",
275
275
  "@repo/elevasis-core": "1.0.0",
276
- "@repo/typescript-config": "0.0.0"
276
+ "@repo/eslint-config": "0.0.0"
277
277
  },
278
278
  "dependencies": {
279
279
  "@dagrejs/dagre": "^1.1.4",