@ipul-labs/forge 1.13.2 → 1.14.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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
popoutUrl?: string;
|
|
3
|
+
basePath?: string;
|
|
3
4
|
}
|
|
4
|
-
export declare function ForgeDashboard({ popoutUrl }?: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ForgeDashboard({ popoutUrl, basePath }?: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ForgeRouterValue {
|
|
3
|
+
/** Navigate to a forge-internal path (e.g. "/issues/42"). */
|
|
4
|
+
navigate: (to: string, opts?: {
|
|
5
|
+
replace?: boolean;
|
|
6
|
+
}) => void;
|
|
7
|
+
/** The current pathname with the basePath stripped. */
|
|
8
|
+
pathname: string;
|
|
9
|
+
/** The basePath prefix (e.g. "/settings/admin/forge"). */
|
|
10
|
+
basePath: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Provides a scoped navigate/pathname that automatically prepends/strips
|
|
14
|
+
* `basePath`. This lets ForgeDashboard work at any mount point without
|
|
15
|
+
* changing its internal paths (e.g. "/issues", "/settings").
|
|
16
|
+
*/
|
|
17
|
+
export declare function ForgeRouterProvider({ basePath, children, }: {
|
|
18
|
+
basePath?: string;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function useForgeRouter(): ForgeRouterValue;
|
|
22
|
+
export {};
|
package/package.json
CHANGED