starpro-plugin-sdk 1.0.0 → 1.1.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.
@@ -0,0 +1,23 @@
1
+ import { S as StarProAuthPayload, D as DefinePluginOptions } from './react-DS5S7U6B.js';
2
+ export { M as MountCleanupFn, P as PluginMountHandler, a as StarProAppOptions, b as StarProAuthState, c as StarProPluginWrapper, d as StarProPluginWrapperProps, e as StarProRedirectBoundary, f as StarProRoute, g as StarProRouteState, h as StarProRouter, i as StarProRouterView, j as StarProRouterViewProps, k as StarProUser, 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';
3
+ import 'react';
4
+
5
+ /**
6
+ * Injects StarPro authentication tokens across all standard channels:
7
+ * - localStorage & sessionStorage
8
+ * - Global Axios default headers & interceptors
9
+ * - Browser native window.fetch() interceptor
10
+ */
11
+ declare function setupStarProAuthBridge(payload: StarProAuthPayload): void;
12
+ /**
13
+ * Returns true if the current application is currently running as a StarPro plugin.
14
+ */
15
+ declare function isStarProPlugin(): boolean;
16
+
17
+ /**
18
+ * Universal registration function to define a StarPro plugin in any JavaScript web.
19
+ * Supports React, Next.js, Vue, Svelte, and Vanilla JS.
20
+ */
21
+ declare function defineStarProPlugin(options: DefinePluginOptions): void;
22
+
23
+ export { DefinePluginOptions, StarProAuthPayload, defineStarProPlugin, isStarProPlugin, setupStarProAuthBridge };