@project-sunbird/collection-editor-react 1.0.4 → 1.0.5

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,3 +1,13 @@
1
1
  export declare function setApiBaseUrl(url: string): void;
2
2
  export declare const apiClient: import('axios').AxiosInstance;
3
+ /**
4
+ * Every src/api/*.ts call hardcodes one of three prefixes (/action, /api,
5
+ * /portal) matching this editor's own dev-proxy assumptions about which
6
+ * backend service owns a route. A host portal's own gateway may collapse all
7
+ * three under one prefix of its own — rather than guess at that mapping, the
8
+ * portal tells us via config.metadata.apiSlug, and every request gets its
9
+ * leading /action|/api|/portal segment swapped for it. No apiSlug (the
10
+ * default) leaves every hardcoded prefix exactly as each api file wrote it.
11
+ */
12
+ export declare function resolveApiUrl(url: string | undefined, apiSlug: unknown): string | undefined;
3
13
  export default apiClient;
@@ -0,0 +1 @@
1
+ export {};