forlogic-core 3.0.10 → 3.0.11

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.
@@ -0,0 +1,6 @@
1
+ export declare function isCommonV5RedirectSuppressed(): boolean;
2
+ /**
3
+ * Enquanto o componente que chama este hook estiver montado (e `active`),
4
+ * suprime o redirect V5->V4 por has_common_v5 na troca de unidade.
5
+ */
6
+ export declare function useSuppressCommonV5Redirect(active?: boolean): void;
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export { createCrudPage, createSimpleSaveHandler, CrudPageInternal } from './cru
27
27
  export { generateCrudConfig } from './crud/generateCrudConfig';
28
28
  export { default as BaseForm } from './crud/components/BaseForm';
29
29
  export { useAuth } from './auth/contexts/AuthContext';
30
+ export { useSuppressCommonV5Redirect } from './auth/commonV5RedirectSuppression';
30
31
  export { ProtectedRoute } from './auth/components/ProtectedRoute';
31
32
  export { AliasRouteGuard } from './auth/components/AliasRouteGuard';
32
33
  export { AliasRedirect } from './auth/components/AliasRedirect';