@emailmaker/filemanager 0.10.51 → 0.10.53

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.
@@ -5,20 +5,8 @@ type SvgCacheValue = {
5
5
  url: string;
6
6
  original: string;
7
7
  };
8
- /** Вшитый транзитный прокси и ключ — без настройки nginx и .env у устанавливающего пакет. */
9
- export declare const BUILTIN_STREAMLINE_TRANSIT_PROXY_URL = "https://px0.emailmaker.ru";
10
8
  export declare const BUILTIN_STREAMLINE_API_KEY = "3pAQQzwUNMmcgSr2.f4eb08cd5886d44b1fc6a701a3ba797c";
11
- export type StreamlineTransitOptions = {
12
- /** Базовый URL транзитного прокси, напр. https://px0.useblocks.io */
13
- transitProxyUrl: string;
14
- /** Реальный API Streamline (по умолчанию https://public-api.streamlinehq.com/v1) */
15
- apiBaseUrl?: string;
16
- /** Ключ API для заголовка x-api-key при запросах через транзитный прокси */
17
- apiKey?: string;
18
- };
19
- export declare function useStreamlineApi(useCssColor?: boolean, streamlineBaseUrl?: string, transitOptions?: StreamlineTransitOptions | null, serviceProxyUrl?: string | null,
20
- /** Ключ API для заголовка x-api-key при запросах через сервисный прокси. Шлётся с клиента, nginx просто пробрасывает. */
21
- serviceProxyApiKey?: string | null): {
9
+ export declare function useStreamlineApi(useCssColor?: boolean, streamlineBaseUrl?: string, handleProxyUrl?: ((url: string) => string | Promise<string>) | null, apiKey?: string | null): {
22
10
  buildUrl: (params: {
23
11
  mode: SearchMode;
24
12
  q: string;
@@ -26,7 +14,7 @@ serviceProxyApiKey?: string | null): {
26
14
  limit: number;
27
15
  familySlug?: string | null;
28
16
  style?: string | null;
29
- }) => string;
17
+ }) => Promise<string>;
30
18
  performSearch: (params: {
31
19
  mode: SearchMode;
32
20
  familySlug: string | null;