@emailmaker/filemanager 0.10.89 → 0.10.90

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.
Files changed (35) hide show
  1. package/{129.533eb7b36d92578d2ead.js → 129.1f7048a0e93daec2ca44.js} +27 -27
  2. package/adapters/DataSourceProxyBase.d.ts +225 -0
  3. package/adapters/FailedRequestCache.d.ts +20 -0
  4. package/adapters/MutationRegistry.d.ts +6 -0
  5. package/adapters/PathAwareStorageAdapter.d.ts +70 -0
  6. package/adapters/TreeCache.d.ts +181 -0
  7. package/components/FileContent/renderers/FileTableView.d.ts +1 -1
  8. package/components/FileModals/FileModals.d.ts +1 -1
  9. package/components/Tag/index.d.ts +1 -1
  10. package/file-manager-IconsTab-CgBriMBe.js +2 -0
  11. package/file-manager-ImageCodeGenerator-BoVEEDJM.js +2 -0
  12. package/file-manager-JsBarcode-rSv58QnO.js +2 -0
  13. package/file-manager-browser-Bk6AOO-_.js +2 -0
  14. package/file-manager-index-B3Ea-yTf.js +10 -0
  15. package/file-manager.css +176 -160
  16. package/file-manager.esm.js +1 -1
  17. package/file-manager.js +10499 -61577
  18. package/{fm-icons-tab.d9174776dd6a2cd3d05e.js → fm-icons-tab.9fb59ff579663a515590.js} +19 -21
  19. package/{fm-image-code-generator.078531875a31b8f35911.js → fm-image-code-generator.50fded261e49f2abdf2b.js} +46 -47
  20. package/helpers/urls.d.ts +1 -0
  21. package/hooks/core/types.d.ts +1 -1
  22. package/hooks/core/useFolders.d.ts +1 -1
  23. package/hooks/notifications/index.d.ts +1 -1
  24. package/hooks/notifications/useNotificationsBase.d.ts +9 -0
  25. package/hooks/useFolderSelectionMenu.d.ts +1 -1
  26. package/index.d.ts +7 -0
  27. package/notification.d.ts +7 -1
  28. package/package.json +8 -2
  29. package/types/storage.d.ts +411 -0
  30. package/types.d.ts +7 -2
  31. package/file-manager-IconsTab-BB0044jH.js +0 -2
  32. package/file-manager-ImageCodeGenerator-D7H2_EZi.js +0 -2
  33. package/file-manager-JsBarcode-CB7r374U.js +0 -2
  34. package/file-manager-browser-C6quQUxe.js +0 -2
  35. package/file-manager-index-D14X20BS.js +0 -62
package/file-manager.css CHANGED
@@ -1,3 +1,145 @@
1
+ @charset "UTF-8";
2
+ .em-filemanager .root {
3
+ padding: 16px 20px 24px;
4
+ max-width: 520px;
5
+ }
6
+
7
+ .em-filemanager .controls {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 20px;
11
+ }
12
+
13
+ .em-filemanager .segmentedControl {
14
+ background-color: var(--ant-color-fill-secondary, rgba(0, 0, 0, 0.06));
15
+ padding: 4px;
16
+ }
17
+
18
+ .em-filemanager .sizeRow {
19
+ display: grid;
20
+ grid-template-columns: 1fr 1fr;
21
+ gap: 16px 24px;
22
+ align-items: center;
23
+ width: 100%;
24
+ }
25
+
26
+ .em-filemanager .sizeRowLabel {
27
+ margin: 0;
28
+ }
29
+
30
+ /** InputNumber с prefix / suffix — ширина блока значения */
31
+ .em-filemanager .sizeInputNumber {
32
+ width: 100%;
33
+ }
34
+
35
+ .em-filemanager .sizeSuffix {
36
+ color: var(--ant-color-text-tertiary, rgba(0, 0, 0, 0.45));
37
+ font-size: 13px;
38
+ line-height: 1;
39
+ -webkit-user-select: none;
40
+ user-select: none;
41
+ }
42
+
43
+ .em-filemanager .colorGrid {
44
+ display: grid;
45
+ grid-template-columns: 1fr 1fr;
46
+ gap: 16px 24px;
47
+ }
48
+
49
+ .em-filemanager .colorCell {
50
+ display: flex;
51
+ flex-direction: column;
52
+ align-items: stretch;
53
+ gap: 8px;
54
+ min-width: 0;
55
+ }
56
+
57
+ .em-filemanager .colorCellLabel {
58
+ margin: 0 !important;
59
+ white-space: nowrap;
60
+ }
61
+
62
+ .em-filemanager .colorPickerFull {
63
+ width: 100%;
64
+ justify-content: flex-start;
65
+ }
66
+
67
+ .em-filemanager .bgExtras {
68
+ grid-column: 1/-1;
69
+ margin-top: -8px;
70
+ display: flex;
71
+ flex-direction: column;
72
+ gap: 12px;
73
+ }
74
+
75
+ .em-filemanager .bgWarning {
76
+ margin: 0;
77
+ }
78
+
79
+ .em-filemanager .previewSection {
80
+ display: flex;
81
+ flex-direction: column;
82
+ gap: 12px;
83
+ }
84
+
85
+ .em-filemanager .previewTitle {
86
+ font-size: 14px;
87
+ font-weight: 600;
88
+ }
89
+
90
+ .em-filemanager .previewWrap {
91
+ display: flex;
92
+ justify-content: center;
93
+ align-items: center;
94
+ min-height: 220px;
95
+ padding: 16px;
96
+ border: 1px solid var(--ant-color-border-secondary, #f0f0f0);
97
+ border-radius: 8px;
98
+ background-color: var(--ant-color-fill-quaternary, #fafafa);
99
+ background-image: linear-gradient(45deg, #e8e8e8 25%, transparent 25%), linear-gradient(-45deg, #e8e8e8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e8e8e8 75%), linear-gradient(-45deg, transparent 75%, #e8e8e8 75%);
100
+ background-size: 16px 16px;
101
+ background-position: 0 0, 0 8px, 8px -8px, -8px 0;
102
+ position: relative;
103
+ overflow: hidden;
104
+ }
105
+
106
+ .em-filemanager .scanLine {
107
+ position: absolute;
108
+ top: 50%;
109
+ left: 20%;
110
+ right: 20%;
111
+ height: 2px;
112
+ background-color: #ff4d4f;
113
+ box-shadow: 0 0 6px #ff4d4f;
114
+ z-index: 10;
115
+ pointer-events: none;
116
+ }
117
+
118
+ .em-filemanager .scanLineBarcode {
119
+ left: 10%;
120
+ right: 10%;
121
+ }
122
+
123
+ .em-filemanager .previewWrapBarcode {
124
+ min-height: 104px;
125
+ padding: 12px 16px;
126
+ }
127
+
128
+ .em-filemanager .previewCanvas {
129
+ display: block;
130
+ max-width: 100%;
131
+ height: auto;
132
+ background: transparent;
133
+ }
134
+
135
+ .em-filemanager .previewCanvasBarcode {
136
+ max-height: 120px;
137
+ width: auto;
138
+ }
139
+
140
+ .em-filemanager .actions {
141
+ margin-top: 8px;
142
+ }
1
143
  .em-filemanager .iconsTab {
2
144
  display: flex;
3
145
  flex-direction: column;
@@ -126,7 +268,7 @@
126
268
  }
127
269
 
128
270
  .em-filemanager .iconsControlsNumSuffix {
129
- color: var(--ant-color-text-tertiary);
271
+ color: var(--ant-color-text-tertiary, rgba(0, 0, 0, 0.45));
130
272
  font-size: 13px;
131
273
  line-height: 1;
132
274
  -webkit-user-select: none;
@@ -434,148 +576,6 @@
434
576
  background: rgba(255, 255, 255, 0.6);
435
577
  pointer-events: all;
436
578
  }
437
- @charset "UTF-8";
438
- .em-filemanager .root {
439
- padding: 16px 20px 24px;
440
- max-width: 520px;
441
- }
442
-
443
- .em-filemanager .controls {
444
- display: flex;
445
- flex-direction: column;
446
- gap: 20px;
447
- }
448
-
449
- .em-filemanager .segmentedControl {
450
- background-color: var(--ant-color-fill-secondary, rgba(0, 0, 0, 0.06));
451
- padding: 4px;
452
- }
453
-
454
- .em-filemanager .sizeRow {
455
- display: grid;
456
- grid-template-columns: 1fr 1fr;
457
- gap: 16px 24px;
458
- align-items: center;
459
- width: 100%;
460
- }
461
-
462
- .em-filemanager .sizeRowLabel {
463
- margin: 0;
464
- }
465
-
466
- /** InputNumber с prefix / suffix — ширина блока значения */
467
- .em-filemanager .sizeInputNumber {
468
- width: 100%;
469
- }
470
-
471
- .em-filemanager .sizeSuffix {
472
- color: var(--ant-color-text-tertiary);
473
- font-size: 13px;
474
- line-height: 1;
475
- -webkit-user-select: none;
476
- user-select: none;
477
- }
478
-
479
- .em-filemanager .colorGrid {
480
- display: grid;
481
- grid-template-columns: 1fr 1fr;
482
- gap: 16px 24px;
483
- }
484
-
485
- .em-filemanager .colorCell {
486
- display: flex;
487
- flex-direction: column;
488
- align-items: stretch;
489
- gap: 8px;
490
- min-width: 0;
491
- }
492
-
493
- .em-filemanager .colorCellLabel {
494
- margin: 0 !important;
495
- white-space: nowrap;
496
- }
497
-
498
- .em-filemanager .colorPickerFull {
499
- width: 100%;
500
- justify-content: flex-start;
501
- }
502
-
503
- .em-filemanager .bgExtras {
504
- grid-column: 1/-1;
505
- margin-top: -8px;
506
- display: flex;
507
- flex-direction: column;
508
- gap: 12px;
509
- }
510
-
511
- .em-filemanager .bgWarning {
512
- margin: 0;
513
- }
514
-
515
- .em-filemanager .previewSection {
516
- display: flex;
517
- flex-direction: column;
518
- gap: 12px;
519
- }
520
-
521
- .em-filemanager .previewTitle {
522
- font-size: 14px;
523
- font-weight: 600;
524
- }
525
-
526
- .em-filemanager .previewWrap {
527
- display: flex;
528
- justify-content: center;
529
- align-items: center;
530
- min-height: 220px;
531
- padding: 16px;
532
- border: 1px solid var(--ant-color-border-secondary, #f0f0f0);
533
- border-radius: 8px;
534
- background-color: var(--ant-color-fill-quaternary, #fafafa);
535
- background-image: linear-gradient(45deg, #e8e8e8 25%, transparent 25%), linear-gradient(-45deg, #e8e8e8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e8e8e8 75%), linear-gradient(-45deg, transparent 75%, #e8e8e8 75%);
536
- background-size: 16px 16px;
537
- background-position: 0 0, 0 8px, 8px -8px, -8px 0;
538
- position: relative;
539
- overflow: hidden;
540
- }
541
-
542
- .em-filemanager .scanLine {
543
- position: absolute;
544
- top: 50%;
545
- left: 20%;
546
- right: 20%;
547
- height: 2px;
548
- background-color: #ff4d4f;
549
- box-shadow: 0 0 6px #ff4d4f;
550
- z-index: 10;
551
- pointer-events: none;
552
- }
553
-
554
- .em-filemanager .scanLineBarcode {
555
- left: 10%;
556
- right: 10%;
557
- }
558
-
559
- .em-filemanager .previewWrapBarcode {
560
- min-height: 104px;
561
- padding: 12px 16px;
562
- }
563
-
564
- .em-filemanager .previewCanvas {
565
- display: block;
566
- max-width: 100%;
567
- height: auto;
568
- background: transparent;
569
- }
570
-
571
- .em-filemanager .previewCanvasBarcode {
572
- max-height: 120px;
573
- width: auto;
574
- }
575
-
576
- .em-filemanager .actions {
577
- margin-top: 8px;
578
- }
579
579
  .em-filemanager .noFilesContainer {
580
580
  text-align: center;
581
581
  }
@@ -631,6 +631,7 @@
631
631
  position: relative;
632
632
  flex: 1;
633
633
  min-height: 0;
634
+ min-width: 0;
634
635
  overflow-y: auto;
635
636
  display: flex;
636
637
  flex-direction: column;
@@ -672,15 +673,16 @@
672
673
  .em-filemanager .paginationContainer {
673
674
  display: flex;
674
675
  justify-content: center;
675
- margin-top: calc(var(--margin) * 1px);
676
- margin-bottom: calc(var(--margin) * 1px);
677
- height: 90px;
678
- }
679
-
680
- .em-filemanager .paginationContainerEnd {
681
- display: flex;
682
- justify-content: flex-end;
683
- margin-top: calc(var(--margin) * 1px);
676
+ align-items: center;
677
+ flex-wrap: wrap;
678
+ gap: 8px 16px;
679
+ width: 100%;
680
+ min-width: 0;
681
+ max-width: 100%;
682
+ overflow-x: auto;
683
+ margin: calc(var(--margin) * 1px) 0;
684
+ flex: 0 0 auto;
685
+ height: auto;
684
686
  }
685
687
 
686
688
  .em-filemanager .uploadIcon > span {
@@ -708,6 +710,7 @@
708
710
  .em-filemanager .tableContainer {
709
711
  flex: 1;
710
712
  min-height: 0;
713
+ min-width: 0;
711
714
  overflow: hidden;
712
715
  width: 100%;
713
716
  display: flex;
@@ -2456,14 +2459,22 @@
2456
2459
  }
2457
2460
  @charset "UTF-8";
2458
2461
  /* FileManagerApp стили */
2459
- .em-filemanager.ant-app {
2460
- width: 100%;
2462
+ .em-filemanager {
2461
2463
  height: 100%;
2464
+ width: 100%;
2465
+ min-height: 0;
2466
+ min-width: 0;
2467
+ display: flex;
2468
+ flex-direction: column;
2469
+ overflow: hidden;
2462
2470
  }
2463
2471
 
2464
2472
  .em-filemanager .file-manager__layout {
2465
- width: 100%;
2466
- height: 100%;
2473
+ flex: 1;
2474
+ min-height: 0;
2475
+ min-width: 0;
2476
+ display: flex;
2477
+ flex-direction: column;
2467
2478
  border-radius: calc(var(--borderRadiusXL) * 1px);
2468
2479
  overflow: hidden;
2469
2480
  position: relative;
@@ -2523,7 +2534,8 @@
2523
2534
  }
2524
2535
  .em-filemanager .file-manager__layout .file-manager__content {
2525
2536
  flex: 1;
2526
- width: 100%;
2537
+ min-width: 0;
2538
+ min-height: 0;
2527
2539
  }
2528
2540
  .em-filemanager .file-manager__layout .ant-table-wrapper table,
2529
2541
  .em-filemanager .file-manager__layout .ant-table-wrapper .ant-table-container,
@@ -2592,10 +2604,13 @@
2592
2604
  }
2593
2605
  .em-filemanager .file-manager__layout .file-manager__main-content {
2594
2606
  position: relative;
2595
- overflow: clip;
2607
+ overflow: hidden;
2596
2608
  border-bottom-right-radius: 14px;
2597
2609
  flex: 1;
2598
- width: 100%;
2610
+ min-width: 0;
2611
+ min-height: 0;
2612
+ display: flex;
2613
+ flex-direction: column;
2599
2614
  }
2600
2615
  .em-filemanager .file-manager__layout .content-layout {
2601
2616
  padding: 24px;
@@ -2605,6 +2620,7 @@
2605
2620
  display: flex;
2606
2621
  flex-direction: column;
2607
2622
  min-height: 0;
2623
+ min-width: 0;
2608
2624
  }
2609
2625
  .em-filemanager .file-manager__layout .main-content .content-layout {
2610
2626
  padding: 0;
@@ -2688,7 +2704,7 @@
2688
2704
  border-radius: calc(var(--borderRadiusLG) * 1px) 0 0 calc(var(--borderRadiusLG) * 1px);
2689
2705
  padding-left: 8px;
2690
2706
  }
2691
- .em-filemanager .file-manager__layout .main-content .ant-table-wrapper .ant-table .ant-table-row td:first-child .ant-checkbox.ant-wave-target {
2707
+ .em-filemanager .file-manager__layout .main-content .ant-table-wrapper .ant-table .ant-table-row td:first-child .ant-checkbox-wrapper {
2692
2708
  margin-left: 8px;
2693
2709
  }
2694
2710
  .em-filemanager .file-manager__layout .main-content .ant-table-wrapper .ant-table .ant-table-row td:last-child {
@@ -1,2 +1,2 @@
1
- export{D as FileContent,J as FileManagerApiError,C as FileManagerApp,x as FileManagerAppWithContext,E as FileModals,G as FolderSidebar,P as PixieOnlyApp,B as default,L as fetchRemoteImageBlobByUrl,v as init,A as initFileManager,y as initPixieEditor,H as installResizeObserverErrorHandler,K as mapHttpStatusToErrorCode,I as uninstallResizeObserverErrorHandler,w as unmount,z as unmountPixieEditor}from"./file-manager-index-D14X20BS.js";import"react/jsx-runtime";import"react";import"react-dom/client";import"antd";import"antd/es/alert/ErrorBoundary";import"@ant-design/icons";import"react-dom";
1
+ export{O as DEFAULT_FILE_MANAGER_CACHE_TTL_MS,R as DataSourceProxyBase,L as FailedRequestCache,A as FileContent,G as FileManagerApiError,z as FileManagerApp,t as FileManagerAppWithContext,B as FileModals,C as FolderSidebar,M as MutationRegistry,S as PathAwareStorageAdapter,P as PixieOnlyApp,T as TreeCache,V as ViewCacheManager,I as buildAssetsPath,y as default,Q as defaultIsFolderNotFoundError,U as fetchRemoteImageBlobByUrl,K as getAssetsBase,q as init,x as initFileManager,v as initPixieEditor,D as installResizeObserverErrorHandler,J as joinUrls,H as mapHttpStatusToErrorCode,E as uninstallResizeObserverErrorHandler,s as unmount,w as unmountPixieEditor}from"./file-manager-index-B3Ea-yTf.js";import"react/jsx-runtime";import"react";import"react-dom/client";import"antd";import"@ant-design/icons";import"@ant-design/cssinjs";import"react-dom";import"@untitledui/icons";import"browser-image-compression";import"pixie";
2
2
  //# sourceMappingURL=file-manager.esm.js.map