@emailmaker/filemanager 0.10.48 → 0.10.50
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/components/ImageIcons/useStreamlineApi.d.ts +14 -1
- package/constants/index.d.ts +4 -0
- package/file-manager.esm.js +9 -9
- package/file-manager.esm.js.map +1 -1
- package/file-manager.js +1 -1
- package/hooks/core/files/useFilesAPI.d.ts +2 -0
- package/hooks/core/useFiles.d.ts +2 -0
- package/package.json +1 -1
- package/types.d.ts +15 -1
package/hooks/core/useFiles.d.ts
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -392,14 +392,28 @@ 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>;
|
|
402
410
|
UNSLASH_PROXY_URL?: string;
|
|
411
|
+
/** Service proxy URL for Unsplash (stock images). Direct proxy, no proxy_url param. */
|
|
412
|
+
stockImagesProxyUrl?: string;
|
|
413
|
+
/** Service proxy URL for Giphy (stock GIFs). Direct proxy, no proxy_url param. */
|
|
414
|
+
stockGifsProxyUrl?: string;
|
|
415
|
+
/** Service proxy URL for Streamline (stock icons). Direct proxy, no proxy_url param. */
|
|
416
|
+
stockIconsProxyUrl?: string;
|
|
403
417
|
pushToGTM?: boolean;
|
|
404
418
|
projectId?: string;
|
|
405
419
|
elementId?: string;
|