@emailmaker/filemanager 0.10.52 → 0.10.54

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;
package/file-manager.css CHANGED
@@ -27,6 +27,7 @@
27
27
  margin: auto;
28
28
  max-width: 420px;
29
29
  }
30
+ @charset "UTF-8";
30
31
  .em-filemanager .contentLayout {
31
32
  display: flex;
32
33
  flex-direction: column;
@@ -459,6 +460,14 @@
459
460
  backdrop-filter: blur(2px);
460
461
  -webkit-backdrop-filter: blur(2px);
461
462
  }
463
+ .em-filemanager .dragOverlay .uploadIcon {
464
+ color: var(--colorPrimary, var(--ant-color-primary, #1677ff)) !important;
465
+ }
466
+ .em-filemanager .dragOverlay .uploadIcon span,
467
+ .em-filemanager .dragOverlay .uploadIcon .anticon,
468
+ .em-filemanager .dragOverlay .uploadIcon svg {
469
+ color: inherit !important;
470
+ }
462
471
 
463
472
  .em-filemanager .dragOverlayInner {
464
473
  background: rgba(255, 255, 255, 0.95);
@@ -469,6 +478,28 @@
469
478
  pointer-events: none;
470
479
  }
471
480
 
481
+ /* Полноэкранный overlay при drag файлов (покрывает viewport, в т.ч. маску модалки) */
482
+ .em-filemanager .dragOverlayGlobal {
483
+ position: fixed;
484
+ inset: 0;
485
+ z-index: 99999;
486
+ background: rgba(0, 0, 0, 0.35);
487
+ display: flex;
488
+ align-items: center;
489
+ justify-content: center;
490
+ pointer-events: auto;
491
+ backdrop-filter: blur(2px);
492
+ -webkit-backdrop-filter: blur(2px);
493
+ }
494
+ .em-filemanager .dragOverlayGlobal .uploadIcon {
495
+ color: var(--colorPrimary, var(--ant-color-primary, #1677ff)) !important;
496
+ }
497
+ .em-filemanager .dragOverlayGlobal .uploadIcon span,
498
+ .em-filemanager .dragOverlayGlobal .uploadIcon .anticon,
499
+ .em-filemanager .dragOverlayGlobal .uploadIcon svg {
500
+ color: inherit !important;
501
+ }
502
+
472
503
  .em-filemanager .noFiles {
473
504
  width: 640px;
474
505
  text-align: center;