@insforge/react 0.5.8 → 0.5.9
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/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +1 -2
- package/dist/components.d.ts +1 -2
- package/dist/components.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { UserSchema } from '@insforge/sdk';
|
|
3
|
-
import * as react from 'react';
|
|
4
3
|
import { ReactNode } from 'react';
|
|
5
4
|
import { InsforgeUser } from './types.cjs';
|
|
6
5
|
export { ForgotPasswordForm, ForgotPasswordFormProps, ResetPasswordForm, ResetPasswordFormProps, SignInForm, SignInFormProps, SignUpForm, SignUpFormProps, VerifyEmailStatus, VerifyEmailStatusProps } from './forms.cjs';
|
|
@@ -215,7 +214,7 @@ interface ProtectProps {
|
|
|
215
214
|
* @param {function} [condition] - Custom access condition
|
|
216
215
|
* @param {function} [onRedirect] - Custom redirect handler (default: window.location)
|
|
217
216
|
*/
|
|
218
|
-
declare function Protect({ children, fallback, redirectTo, condition, onRedirect, }: ProtectProps):
|
|
217
|
+
declare function Protect({ children, fallback, redirectTo, condition, onRedirect, }: ProtectProps): ReactNode;
|
|
219
218
|
|
|
220
219
|
interface ConditionalProps$1 {
|
|
221
220
|
children: ReactNode;
|
package/dist/components.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { UserSchema } from '@insforge/sdk';
|
|
3
|
-
import * as react from 'react';
|
|
4
3
|
import { ReactNode } from 'react';
|
|
5
4
|
import { InsforgeUser } from './types.js';
|
|
6
5
|
export { ForgotPasswordForm, ForgotPasswordFormProps, ResetPasswordForm, ResetPasswordFormProps, SignInForm, SignInFormProps, SignUpForm, SignUpFormProps, VerifyEmailStatus, VerifyEmailStatusProps } from './forms.js';
|
|
@@ -215,7 +214,7 @@ interface ProtectProps {
|
|
|
215
214
|
* @param {function} [condition] - Custom access condition
|
|
216
215
|
* @param {function} [onRedirect] - Custom redirect handler (default: window.location)
|
|
217
216
|
*/
|
|
218
|
-
declare function Protect({ children, fallback, redirectTo, condition, onRedirect, }: ProtectProps):
|
|
217
|
+
declare function Protect({ children, fallback, redirectTo, condition, onRedirect, }: ProtectProps): ReactNode;
|
|
219
218
|
|
|
220
219
|
interface ConditionalProps$1 {
|
|
221
220
|
children: ReactNode;
|