@codezee/sixtify-brahma 0.2.245 → 0.2.247

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,18 @@
1
+ import { type ReactNode } from "react";
2
+ import type { useRouter } from "next/navigation";
3
+ /** Next.js App Router instance (return type of useRouter()). */
4
+ export type AppRouterInstance = ReturnType<typeof useRouter>;
5
+ export type NavigationRouterContextValue = AppRouterInstance | null;
6
+ type NavigationRouterProviderProps = {
7
+ children: ReactNode;
8
+ router: AppRouterInstance;
9
+ };
10
+ /**
11
+ * Optional provider for client-side navigation (e.g. Next.js App Router).
12
+ * Pass the result of useRouter() from next/navigation.
13
+ * When not provided, components fall back to window.location.
14
+ */
15
+ export declare function NavigationRouterProvider({ children, router, }: Readonly<NavigationRouterProviderProps>): import("react/jsx-runtime").JSX.Element;
16
+ export declare function useNavigationRouter(): NavigationRouterContextValue;
17
+ export {};
18
+ //# sourceMappingURL=NavigationRouterContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationRouterContext.d.ts","sourceRoot":"","sources":["../../../src/utils/context/NavigationRouterContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,gEAAgE;AAChE,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAE7D,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,GAAG,IAAI,CAAC;AAKpE,KAAK,6BAA6B,GAAG;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,MAAM,GACP,EAAE,QAAQ,CAAC,6BAA6B,CAAC,2CAQzC;AAED,wBAAgB,mBAAmB,IAAI,4BAA4B,CAElE"}
@@ -1,2 +1,4 @@
1
1
  export { NavigationKeyProvider, useNavigationKeyContext, } from "./NavigationKeyContext";
2
+ export { NavigationRouterProvider, useNavigationRouter, } from "./NavigationRouterContext";
3
+ export type { AppRouterInstance, NavigationRouterContextValue, } from "./NavigationRouterContext";
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,iBAAiB,EACjB,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC"}