@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.
@@ -21,6 +21,8 @@ export interface UseFilesAPIActions {
21
21
  name?: string;
22
22
  folderId?: string | null;
23
23
  size?: number;
24
+ originalFileName?: string;
25
+ originalIndex?: number;
24
26
  }>;
25
27
  }) => void;
26
28
  }) => Promise<void>;
@@ -30,6 +30,8 @@ export interface UseFilesActions {
30
30
  name?: string;
31
31
  folderId?: string | null;
32
32
  size?: number;
33
+ originalFileName?: string;
34
+ originalIndex?: number;
33
35
  }>;
34
36
  }) => void;
35
37
  }) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailmaker/filemanager",
3
- "version": "0.10.48",
3
+ "version": "0.10.50",
4
4
  "main": "./file-manager.js",
5
5
  "module": "./file-manager.esm.js",
6
6
  "types": "./index.d.ts",
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;