@emailmaker/filemanager 0.10.48 → 0.10.49
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/hooks/core/useFiles.d.ts
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -392,10 +392,18 @@ export interface Config {
|
|
|
392
392
|
customTheme?: CustomTheme;
|
|
393
393
|
UNSPLASH_KEY?: string;
|
|
394
394
|
APP_NAME_UNSPLASH?: string;
|
|
395
|
-
/** Ключ Streamline API (добавляется на прокси, не передаётся с клиента). */
|
|
395
|
+
/** Ключ Streamline API (добавляется на прокси, не передаётся с клиента). При использовании транзитного прокси передаётся в заголовке x-api-key. */
|
|
396
396
|
STREAMLINE_API_KEY?: string;
|
|
397
397
|
/** Переопределение URL прокси Streamline (по умолчанию /streamline). Ключ добавляется на прокси. */
|
|
398
398
|
STREAMLINE_BASE_URL?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Транзитный прокси для выхода на Streamline API без настройки nginx на каждом сервере.
|
|
401
|
+
* Примеры: https://px0.useblocks.io (Германия), https://px0.racs.rest, https://px0.emailmaker.ru (РФ).
|
|
402
|
+
* Запросы строятся как {STREAMLINE_TRANSIT_PROXY_URL}/{path}?params&proxy_url={STREAMLINE_API_BASE_URL}.
|
|
403
|
+
*/
|
|
404
|
+
STREAMLINE_TRANSIT_PROXY_URL?: string;
|
|
405
|
+
/** Базовый URL реального Streamline API при использовании транзитного прокси (по умолчанию https://public-api.streamlinehq.com/v1). */
|
|
406
|
+
STREAMLINE_API_BASE_URL?: string;
|
|
399
407
|
handleTranslate?: (input: string, opts: {
|
|
400
408
|
locale?: string;
|
|
401
409
|
}) => Promise<string>;
|