starpro-plugin-sdk 1.0.1 → 1.2.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.
package/dist/index.mjs ADDED
@@ -0,0 +1,39 @@
1
+ import {
2
+ StarProPluginWrapper,
3
+ StarProRedirectBoundary,
4
+ StarProRouter,
5
+ StarProRouterView,
6
+ autoRoutesFromGlob,
7
+ createStarProApp,
8
+ defineStarProApp,
9
+ defineStarProPlugin,
10
+ isStarProPlugin,
11
+ matchRoute,
12
+ setupStarProAuthBridge,
13
+ starproRouter,
14
+ useStarProAuth,
15
+ useStarProParams,
16
+ useStarProPathname,
17
+ useStarProRouter,
18
+ useStarProSearchParams
19
+ } from "./chunk-4C5LPF23.mjs";
20
+ import "./chunk-Y6FXYEAI.mjs";
21
+ export {
22
+ StarProPluginWrapper,
23
+ StarProRedirectBoundary,
24
+ StarProRouter,
25
+ StarProRouterView,
26
+ autoRoutesFromGlob,
27
+ createStarProApp,
28
+ defineStarProApp,
29
+ defineStarProPlugin,
30
+ isStarProPlugin,
31
+ matchRoute,
32
+ setupStarProAuthBridge,
33
+ starproRouter,
34
+ useStarProAuth,
35
+ useStarProParams,
36
+ useStarProPathname,
37
+ useStarProRouter,
38
+ useStarProSearchParams
39
+ };
@@ -0,0 +1,280 @@
1
+ import React$1 from 'react';
2
+
3
+ interface StarProUser {
4
+ name?: string | null;
5
+ email?: string | null;
6
+ id?: string | null;
7
+ [key: string]: any;
8
+ }
9
+ interface StarProAuthPayload {
10
+ accessToken: string;
11
+ refreshToken?: string;
12
+ user?: StarProUser;
13
+ [key: string]: any;
14
+ }
15
+ type MountCleanupFn = () => void;
16
+ type PluginMountHandler = (container: HTMLElement, payload: StarProAuthPayload) => MountCleanupFn | void;
17
+ interface DefinePluginOptions {
18
+ /**
19
+ * The identifier for this plugin (e.g. "star-tenant-access" or "subkon-progress").
20
+ * Defaults to "default".
21
+ */
22
+ pluginId?: string;
23
+ /**
24
+ * Callback executed when StarPro mounts the plugin.
25
+ * Receives target DOM element and the authentication payload.
26
+ * Return an optional cleanup function to be called on unmount.
27
+ */
28
+ onMount: PluginMountHandler;
29
+ /**
30
+ * Optional callback executed when StarPro unmounts the plugin.
31
+ */
32
+ onUnmount?: () => void;
33
+ /**
34
+ * Whether to automatically inject auth tokens into localStorage, sessionStorage,
35
+ * Axios defaults, and native fetch() calls. Defaults to true.
36
+ */
37
+ autoInjectAuth?: boolean;
38
+ }
39
+ interface StarProRoute {
40
+ path: string;
41
+ component: React.ComponentType<any>;
42
+ label?: string;
43
+ icon?: React.ReactNode | string;
44
+ exact?: boolean;
45
+ meta?: Record<string, any>;
46
+ }
47
+ interface StarProAppOptions {
48
+ /**
49
+ * The unique ID of the plugin registered in StarPro.
50
+ */
51
+ pluginId?: string;
52
+ /**
53
+ * Default route to navigate to on startup or if visiting "/".
54
+ * E.g. "/dashboard".
55
+ */
56
+ defaultRoute?: string;
57
+ /**
58
+ * Explicit list of routes. If omitted, routes are automatically loaded from
59
+ * auto-discovered routes (starpro:routes) or autoRoutesFromGlob.
60
+ */
61
+ routes?: StarProRoute[];
62
+ /**
63
+ * Single root component (for React SPA, Vite, or Next.js custom entry).
64
+ * When provided, renders this component directly with StarPro auth context.
65
+ */
66
+ component?: React.ComponentType<any>;
67
+ /**
68
+ * Optional global layout component to wrap all routed views
69
+ * (e.g. your app's Sidebar / Layout component).
70
+ */
71
+ layout?: React.ComponentType<{
72
+ children: React.ReactNode;
73
+ [key: string]: any;
74
+ }>;
75
+ /**
76
+ * Header title displayed on the quick navigation bar.
77
+ */
78
+ title?: string;
79
+ /**
80
+ * Badge text displayed next to title (e.g. "PRO", "APP").
81
+ */
82
+ badge?: string;
83
+ /**
84
+ * Primary brand theme color (hex code, e.g. "#059669").
85
+ */
86
+ themeColor?: string;
87
+ /**
88
+ * Whether to show the top navigation tabs bar.
89
+ * Defaults to false if a custom layout is provided, or true if routes have labels.
90
+ */
91
+ showNav?: boolean;
92
+ /**
93
+ * Whether to automatically inject auth tokens into localStorage, Axios, and fetch.
94
+ * Defaults to true.
95
+ */
96
+ autoInjectAuth?: boolean;
97
+ /**
98
+ * Whether to display the "Connected to StarPro as..." status banner.
99
+ * Defaults to true.
100
+ */
101
+ banner?: boolean;
102
+ /**
103
+ * Fallback UI to render if a route is not found or while loading.
104
+ */
105
+ fallback?: React.ReactNode;
106
+ /**
107
+ * Custom render function (e.g. for custom DOM mount or older React versions).
108
+ */
109
+ render?: (node: React.ReactNode, container: HTMLElement) => (() => void) | void;
110
+ }
111
+ declare global {
112
+ interface Window {
113
+ StarProPlugins?: Record<string, {
114
+ mount: (container: HTMLElement | string, payload: StarProAuthPayload) => MountCleanupFn | void;
115
+ }>;
116
+ mountStarProPlugin?: (container: HTMLElement | string, payload: StarProAuthPayload) => MountCleanupFn | void;
117
+ axios?: any;
118
+ __STARPRO_ROUTES__?: StarProRoute[];
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Ultra-simple, zero-boilerplate entry builder for StarPro plugins.
124
+ *
125
+ * It automatically:
126
+ * - Injects auth tokens into localStorage, Axios, and native fetch.
127
+ * - Resolves views/routes automatically without declaring them one by one.
128
+ * - Handles Next.js and React redirects seamlessly.
129
+ * - Wraps views in `StarProPluginWrapper` with connected user banner.
130
+ * - Mounts and unmounts cleanly using React 18+ createRoot.
131
+ *
132
+ * @example
133
+ * ```tsx
134
+ * // src/plugin-entry.tsx
135
+ * import { defineStarProApp } from "starpro-plugin-sdk";
136
+ *
137
+ * defineStarProApp({
138
+ * pluginId: "star-tenant-access",
139
+ * defaultRoute: "/dashboard",
140
+ * title: "Tenant Access",
141
+ * });
142
+ * ```
143
+ */
144
+ declare function defineStarProApp(options?: StarProAppOptions): void;
145
+ /**
146
+ * Alias for `defineStarProApp`.
147
+ */
148
+ declare const createStarProApp: typeof defineStarProApp;
149
+
150
+ interface StarProRouteState {
151
+ url: string;
152
+ pathname: string;
153
+ searchParams: URLSearchParams;
154
+ params: Record<string, string>;
155
+ history: string[];
156
+ }
157
+ type RouterListener = (state: StarProRouteState) => void;
158
+ /**
159
+ * Universal Route Matcher:
160
+ * Supports static paths, Next.js dynamic brackets ([id], [...slug]),
161
+ * express colons (:id), and wildcard (*).
162
+ */
163
+ declare function matchRoute(pattern: string, pathname: string): {
164
+ matched: boolean;
165
+ params: Record<string, string>;
166
+ };
167
+ /**
168
+ * Universal In-Memory Router for StarPro plugins.
169
+ */
170
+ declare class StarProRouter {
171
+ private currentUrl;
172
+ private history;
173
+ private listeners;
174
+ private routes;
175
+ private notifyScheduled;
176
+ constructor(initialUrl?: string);
177
+ setRoutes(routes: StarProRoute[]): void;
178
+ getRoutes(): StarProRoute[];
179
+ getState(): StarProRouteState;
180
+ getPathname(): string;
181
+ getSearchParams(): URLSearchParams;
182
+ getParams(): Record<string, string>;
183
+ subscribe(listener: RouterListener): () => void;
184
+ /**
185
+ * Asynchronously notifies listeners on the next microtask tick.
186
+ * This completely prevents React warnings when navigating or redirecting
187
+ * during a component's render lifecycle.
188
+ */
189
+ notify(): void;
190
+ push(url: string): void;
191
+ replace(url: string): void;
192
+ redirect(url: string): void;
193
+ back(): void;
194
+ forward(): void;
195
+ }
196
+ declare const starproRouter: StarProRouter;
197
+ declare function useStarProRouter(): {
198
+ push: (url: string) => void;
199
+ replace: (url: string) => void;
200
+ redirect: (url: string) => void;
201
+ back: () => void;
202
+ forward: () => void;
203
+ url: string;
204
+ pathname: string;
205
+ searchParams: URLSearchParams;
206
+ params: Record<string, string>;
207
+ history: string[];
208
+ };
209
+ declare function useStarProPathname(): string;
210
+ declare function useStarProSearchParams(): URLSearchParams;
211
+ declare function useStarProParams(): Record<string, string>;
212
+ /**
213
+ * Automatically maps a collection of globbed page modules (e.g. from
214
+ * Vite `import.meta.glob("./app/**\/page.tsx", { eager: true })` or Webpack)
215
+ * into StarProRoute objects.
216
+ */
217
+ declare function autoRoutesFromGlob(modules: Record<string, any>, options?: {
218
+ stripGroups?: boolean;
219
+ }): StarProRoute[];
220
+ /**
221
+ * Next.js Redirect Boundary:
222
+ * Catches `NEXT_REDIRECT` errors thrown by Next.js `redirect()` calls and smoothly
223
+ * routes to the redirect destination without crashing React.
224
+ */
225
+ interface RedirectBoundaryProps {
226
+ children: React$1.ReactNode;
227
+ fallback?: React$1.ReactNode;
228
+ }
229
+ interface RedirectBoundaryState {
230
+ hasError: boolean;
231
+ }
232
+ declare class StarProRedirectBoundary extends React$1.Component<RedirectBoundaryProps, RedirectBoundaryState> {
233
+ constructor(props: RedirectBoundaryProps);
234
+ static getDerivedStateFromError(error: any): RedirectBoundaryState;
235
+ componentDidCatch(error: any): void;
236
+ render(): React$1.ReactNode;
237
+ }
238
+ interface StarProRouterViewProps {
239
+ routes: StarProRoute[];
240
+ defaultRoute?: string;
241
+ payload?: StarProAuthPayload;
242
+ layout?: React$1.ComponentType<{
243
+ children: React$1.ReactNode;
244
+ [key: string]: any;
245
+ }>;
246
+ title?: string;
247
+ badge?: string;
248
+ showNav?: boolean;
249
+ themeColor?: string;
250
+ fallback?: React$1.ReactNode;
251
+ }
252
+ /**
253
+ * Universal Multi-Page Router View Component for ANY plugin mounted in StarPro.
254
+ */
255
+ declare const StarProRouterView: React$1.FC<StarProRouterViewProps>;
256
+
257
+ interface StarProAuthState {
258
+ accessToken: string | null;
259
+ refreshToken: string | null;
260
+ user: StarProUser | null;
261
+ isPlugin: boolean;
262
+ isLoading: boolean;
263
+ }
264
+ /**
265
+ * React Hook to access StarPro authentication state anywhere in your React/Next.js app.
266
+ */
267
+ declare function useStarProAuth(): StarProAuthState;
268
+ interface StarProPluginWrapperProps {
269
+ payload?: StarProAuthPayload;
270
+ children: React$1.ReactNode;
271
+ fallback?: React$1.ReactNode;
272
+ banner?: boolean;
273
+ }
274
+ /**
275
+ * React Wrapper Component that handles auto-bypass of the login screen.
276
+ * Displays a connected banner and directly renders your main dashboard component.
277
+ */
278
+ declare const StarProPluginWrapper: React$1.FC<StarProPluginWrapperProps>;
279
+
280
+ export { type DefinePluginOptions as D, type MountCleanupFn as M, type PluginMountHandler as P, type StarProAuthPayload as S, type StarProAppOptions as a, type StarProAuthState as b, StarProPluginWrapper as c, type StarProPluginWrapperProps as d, StarProRedirectBoundary as e, type StarProRoute as f, type StarProRouteState as g, StarProRouter as h, StarProRouterView as i, type StarProRouterViewProps as j, type StarProUser as k, autoRoutesFromGlob as l, createStarProApp as m, defineStarProApp as n, matchRoute as o, useStarProParams as p, useStarProPathname as q, useStarProRouter as r, starproRouter as s, useStarProSearchParams as t, useStarProAuth as u };
@@ -0,0 +1,280 @@
1
+ import React$1 from 'react';
2
+
3
+ interface StarProUser {
4
+ name?: string | null;
5
+ email?: string | null;
6
+ id?: string | null;
7
+ [key: string]: any;
8
+ }
9
+ interface StarProAuthPayload {
10
+ accessToken: string;
11
+ refreshToken?: string;
12
+ user?: StarProUser;
13
+ [key: string]: any;
14
+ }
15
+ type MountCleanupFn = () => void;
16
+ type PluginMountHandler = (container: HTMLElement, payload: StarProAuthPayload) => MountCleanupFn | void;
17
+ interface DefinePluginOptions {
18
+ /**
19
+ * The identifier for this plugin (e.g. "star-tenant-access" or "subkon-progress").
20
+ * Defaults to "default".
21
+ */
22
+ pluginId?: string;
23
+ /**
24
+ * Callback executed when StarPro mounts the plugin.
25
+ * Receives target DOM element and the authentication payload.
26
+ * Return an optional cleanup function to be called on unmount.
27
+ */
28
+ onMount: PluginMountHandler;
29
+ /**
30
+ * Optional callback executed when StarPro unmounts the plugin.
31
+ */
32
+ onUnmount?: () => void;
33
+ /**
34
+ * Whether to automatically inject auth tokens into localStorage, sessionStorage,
35
+ * Axios defaults, and native fetch() calls. Defaults to true.
36
+ */
37
+ autoInjectAuth?: boolean;
38
+ }
39
+ interface StarProRoute {
40
+ path: string;
41
+ component: React.ComponentType<any>;
42
+ label?: string;
43
+ icon?: React.ReactNode | string;
44
+ exact?: boolean;
45
+ meta?: Record<string, any>;
46
+ }
47
+ interface StarProAppOptions {
48
+ /**
49
+ * The unique ID of the plugin registered in StarPro.
50
+ */
51
+ pluginId?: string;
52
+ /**
53
+ * Default route to navigate to on startup or if visiting "/".
54
+ * E.g. "/dashboard".
55
+ */
56
+ defaultRoute?: string;
57
+ /**
58
+ * Explicit list of routes. If omitted, routes are automatically loaded from
59
+ * auto-discovered routes (starpro:routes) or autoRoutesFromGlob.
60
+ */
61
+ routes?: StarProRoute[];
62
+ /**
63
+ * Single root component (for React SPA, Vite, or Next.js custom entry).
64
+ * When provided, renders this component directly with StarPro auth context.
65
+ */
66
+ component?: React.ComponentType<any>;
67
+ /**
68
+ * Optional global layout component to wrap all routed views
69
+ * (e.g. your app's Sidebar / Layout component).
70
+ */
71
+ layout?: React.ComponentType<{
72
+ children: React.ReactNode;
73
+ [key: string]: any;
74
+ }>;
75
+ /**
76
+ * Header title displayed on the quick navigation bar.
77
+ */
78
+ title?: string;
79
+ /**
80
+ * Badge text displayed next to title (e.g. "PRO", "APP").
81
+ */
82
+ badge?: string;
83
+ /**
84
+ * Primary brand theme color (hex code, e.g. "#059669").
85
+ */
86
+ themeColor?: string;
87
+ /**
88
+ * Whether to show the top navigation tabs bar.
89
+ * Defaults to false if a custom layout is provided, or true if routes have labels.
90
+ */
91
+ showNav?: boolean;
92
+ /**
93
+ * Whether to automatically inject auth tokens into localStorage, Axios, and fetch.
94
+ * Defaults to true.
95
+ */
96
+ autoInjectAuth?: boolean;
97
+ /**
98
+ * Whether to display the "Connected to StarPro as..." status banner.
99
+ * Defaults to true.
100
+ */
101
+ banner?: boolean;
102
+ /**
103
+ * Fallback UI to render if a route is not found or while loading.
104
+ */
105
+ fallback?: React.ReactNode;
106
+ /**
107
+ * Custom render function (e.g. for custom DOM mount or older React versions).
108
+ */
109
+ render?: (node: React.ReactNode, container: HTMLElement) => (() => void) | void;
110
+ }
111
+ declare global {
112
+ interface Window {
113
+ StarProPlugins?: Record<string, {
114
+ mount: (container: HTMLElement | string, payload: StarProAuthPayload) => MountCleanupFn | void;
115
+ }>;
116
+ mountStarProPlugin?: (container: HTMLElement | string, payload: StarProAuthPayload) => MountCleanupFn | void;
117
+ axios?: any;
118
+ __STARPRO_ROUTES__?: StarProRoute[];
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Ultra-simple, zero-boilerplate entry builder for StarPro plugins.
124
+ *
125
+ * It automatically:
126
+ * - Injects auth tokens into localStorage, Axios, and native fetch.
127
+ * - Resolves views/routes automatically without declaring them one by one.
128
+ * - Handles Next.js and React redirects seamlessly.
129
+ * - Wraps views in `StarProPluginWrapper` with connected user banner.
130
+ * - Mounts and unmounts cleanly using React 18+ createRoot.
131
+ *
132
+ * @example
133
+ * ```tsx
134
+ * // src/plugin-entry.tsx
135
+ * import { defineStarProApp } from "starpro-plugin-sdk";
136
+ *
137
+ * defineStarProApp({
138
+ * pluginId: "star-tenant-access",
139
+ * defaultRoute: "/dashboard",
140
+ * title: "Tenant Access",
141
+ * });
142
+ * ```
143
+ */
144
+ declare function defineStarProApp(options?: StarProAppOptions): void;
145
+ /**
146
+ * Alias for `defineStarProApp`.
147
+ */
148
+ declare const createStarProApp: typeof defineStarProApp;
149
+
150
+ interface StarProRouteState {
151
+ url: string;
152
+ pathname: string;
153
+ searchParams: URLSearchParams;
154
+ params: Record<string, string>;
155
+ history: string[];
156
+ }
157
+ type RouterListener = (state: StarProRouteState) => void;
158
+ /**
159
+ * Universal Route Matcher:
160
+ * Supports static paths, Next.js dynamic brackets ([id], [...slug]),
161
+ * express colons (:id), and wildcard (*).
162
+ */
163
+ declare function matchRoute(pattern: string, pathname: string): {
164
+ matched: boolean;
165
+ params: Record<string, string>;
166
+ };
167
+ /**
168
+ * Universal In-Memory Router for StarPro plugins.
169
+ */
170
+ declare class StarProRouter {
171
+ private currentUrl;
172
+ private history;
173
+ private listeners;
174
+ private routes;
175
+ private notifyScheduled;
176
+ constructor(initialUrl?: string);
177
+ setRoutes(routes: StarProRoute[]): void;
178
+ getRoutes(): StarProRoute[];
179
+ getState(): StarProRouteState;
180
+ getPathname(): string;
181
+ getSearchParams(): URLSearchParams;
182
+ getParams(): Record<string, string>;
183
+ subscribe(listener: RouterListener): () => void;
184
+ /**
185
+ * Asynchronously notifies listeners on the next microtask tick.
186
+ * This completely prevents React warnings when navigating or redirecting
187
+ * during a component's render lifecycle.
188
+ */
189
+ notify(): void;
190
+ push(url: string): void;
191
+ replace(url: string): void;
192
+ redirect(url: string): void;
193
+ back(): void;
194
+ forward(): void;
195
+ }
196
+ declare const starproRouter: StarProRouter;
197
+ declare function useStarProRouter(): {
198
+ push: (url: string) => void;
199
+ replace: (url: string) => void;
200
+ redirect: (url: string) => void;
201
+ back: () => void;
202
+ forward: () => void;
203
+ url: string;
204
+ pathname: string;
205
+ searchParams: URLSearchParams;
206
+ params: Record<string, string>;
207
+ history: string[];
208
+ };
209
+ declare function useStarProPathname(): string;
210
+ declare function useStarProSearchParams(): URLSearchParams;
211
+ declare function useStarProParams(): Record<string, string>;
212
+ /**
213
+ * Automatically maps a collection of globbed page modules (e.g. from
214
+ * Vite `import.meta.glob("./app/**\/page.tsx", { eager: true })` or Webpack)
215
+ * into StarProRoute objects.
216
+ */
217
+ declare function autoRoutesFromGlob(modules: Record<string, any>, options?: {
218
+ stripGroups?: boolean;
219
+ }): StarProRoute[];
220
+ /**
221
+ * Next.js Redirect Boundary:
222
+ * Catches `NEXT_REDIRECT` errors thrown by Next.js `redirect()` calls and smoothly
223
+ * routes to the redirect destination without crashing React.
224
+ */
225
+ interface RedirectBoundaryProps {
226
+ children: React$1.ReactNode;
227
+ fallback?: React$1.ReactNode;
228
+ }
229
+ interface RedirectBoundaryState {
230
+ hasError: boolean;
231
+ }
232
+ declare class StarProRedirectBoundary extends React$1.Component<RedirectBoundaryProps, RedirectBoundaryState> {
233
+ constructor(props: RedirectBoundaryProps);
234
+ static getDerivedStateFromError(error: any): RedirectBoundaryState;
235
+ componentDidCatch(error: any): void;
236
+ render(): React$1.ReactNode;
237
+ }
238
+ interface StarProRouterViewProps {
239
+ routes: StarProRoute[];
240
+ defaultRoute?: string;
241
+ payload?: StarProAuthPayload;
242
+ layout?: React$1.ComponentType<{
243
+ children: React$1.ReactNode;
244
+ [key: string]: any;
245
+ }>;
246
+ title?: string;
247
+ badge?: string;
248
+ showNav?: boolean;
249
+ themeColor?: string;
250
+ fallback?: React$1.ReactNode;
251
+ }
252
+ /**
253
+ * Universal Multi-Page Router View Component for ANY plugin mounted in StarPro.
254
+ */
255
+ declare const StarProRouterView: React$1.FC<StarProRouterViewProps>;
256
+
257
+ interface StarProAuthState {
258
+ accessToken: string | null;
259
+ refreshToken: string | null;
260
+ user: StarProUser | null;
261
+ isPlugin: boolean;
262
+ isLoading: boolean;
263
+ }
264
+ /**
265
+ * React Hook to access StarPro authentication state anywhere in your React/Next.js app.
266
+ */
267
+ declare function useStarProAuth(): StarProAuthState;
268
+ interface StarProPluginWrapperProps {
269
+ payload?: StarProAuthPayload;
270
+ children: React$1.ReactNode;
271
+ fallback?: React$1.ReactNode;
272
+ banner?: boolean;
273
+ }
274
+ /**
275
+ * React Wrapper Component that handles auto-bypass of the login screen.
276
+ * Displays a connected banner and directly renders your main dashboard component.
277
+ */
278
+ declare const StarProPluginWrapper: React$1.FC<StarProPluginWrapperProps>;
279
+
280
+ export { type DefinePluginOptions as D, type MountCleanupFn as M, type PluginMountHandler as P, type StarProAuthPayload as S, type StarProAppOptions as a, type StarProAuthState as b, StarProPluginWrapper as c, type StarProPluginWrapperProps as d, StarProRedirectBoundary as e, type StarProRoute as f, type StarProRouteState as g, StarProRouter as h, StarProRouterView as i, type StarProRouterViewProps as j, type StarProUser as k, autoRoutesFromGlob as l, createStarProApp as m, defineStarProApp as n, matchRoute as o, useStarProParams as p, useStarProPathname as q, useStarProRouter as r, starproRouter as s, useStarProSearchParams as t, useStarProAuth as u };
@@ -0,0 +1,2 @@
1
+ import 'react';
2
+ export { b as StarProAuthState, c as StarProPluginWrapper, d as StarProPluginWrapperProps, e as StarProRedirectBoundary, h as StarProRouter, i as StarProRouterView, l as autoRoutesFromGlob, m as createStarProApp, n as defineStarProApp, o as matchRoute, s as starproRouter, u as useStarProAuth, p as useStarProParams, q as useStarProPathname, r as useStarProRouter, t as useStarProSearchParams } from './react-DS5S7U6B.mjs';
@@ -0,0 +1,2 @@
1
+ import 'react';
2
+ export { b as StarProAuthState, c as StarProPluginWrapper, d as StarProPluginWrapperProps, e as StarProRedirectBoundary, h as StarProRouter, i as StarProRouterView, l as autoRoutesFromGlob, m as createStarProApp, n as defineStarProApp, o as matchRoute, s as starproRouter, u as useStarProAuth, p as useStarProParams, q as useStarProPathname, r as useStarProRouter, t as useStarProSearchParams } from './react-DS5S7U6B.js';