@emailmaker/filemanager 0.0.7 → 0.0.9

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.
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import { FileManagerProps } from '../../types';
3
3
  import '../../styles/index.scss';
4
4
  import '../../styles/variables.scss';
5
- export declare const FileManagerApp: React.MemoExoticComponent<({ config, onPathChange, onChangeSelection, onEditorOk, searchQuery, sortBySize, apiEndpoints, customIcons, dragDropIcon, dataProviders, publicPath, notification, }: FileManagerProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export declare const FileManagerApp: React.MemoExoticComponent<({ config, onPathChange, onChangeSelection, onEditorOk, searchQuery, sortBySize, apiEndpoints, customIcons, dragDropIcon, dataProviders, notification, }: FileManagerProps) => import("react/jsx-runtime").JSX.Element>;
@@ -32,6 +32,9 @@ interface FileModalsProps {
32
32
  handleCopyOk: () => void;
33
33
  handleCopyCancel: () => void;
34
34
  copyForm: FormInstance;
35
+ isDeleteConfirmVisible?: boolean;
36
+ handleDeleteConfirmOk?: () => void | Promise<void>;
37
+ handleDeleteConfirmCancel?: () => void;
35
38
  }
36
39
  export declare const FileModals: React.FC<FileModalsProps>;
37
40
  export {};
@@ -2,8 +2,8 @@ import * as React from 'react';
2
2
  import { File as AppFile, ThumbnailFile } from '../../types';
3
3
  interface PixieEditorProps {
4
4
  visible: boolean;
5
- onClose: () => void;
6
- file: AppFile | ThumbnailFile | null;
5
+ onClose?: () => void;
6
+ file: AppFile | ThumbnailFile | string | null;
7
7
  onSave: (updatedFile: AppFile) => Promise<AppFile | undefined>;
8
8
  }
9
9
  export declare const PixieEditor: React.FC<PixieEditorProps>;
package/file-manager.css CHANGED
@@ -8,7 +8,7 @@
8
8
  .em-filemanager .headerContainer {
9
9
  display: flex;
10
10
  justify-content: space-between;
11
- margin-bottom: 16px;
11
+ margin-bottom: calc(var(--margin) * 1px);
12
12
  align-items: center;
13
13
  padding: 0 16px;
14
14
  }
@@ -33,19 +33,20 @@
33
33
  }
34
34
 
35
35
  .em-filemanager .breadcrumbContainer {
36
- margin-bottom: 16px;
36
+ margin-bottom: calc(var(--margin) * 1px);
37
37
  }
38
38
 
39
39
  .em-filemanager .paginationContainer {
40
40
  display: flex;
41
41
  justify-content: center;
42
- margin-top: 16px;
42
+ margin-top: calc(var(--margin) * 1px);
43
+ margin-bottom: calc(var(--margin) * 1px);
43
44
  }
44
45
 
45
46
  .em-filemanager .paginationContainerEnd {
46
47
  display: flex;
47
48
  justify-content: flex-end;
48
- margin-top: 16px;
49
+ margin-top: calc(var(--margin) * 1px);
49
50
  }
50
51
 
51
52
  .em-filemanager .uploadZone {
@@ -76,7 +77,7 @@
76
77
  .em-filemanager .uploadIcon {
77
78
  font-size: 64px;
78
79
  color: var(--colorPrimary);
79
- margin-bottom: var(--margin);
80
+ margin-bottom: calc(var(--margin) * 1px);
80
81
  animation: uploadIconPulse 2s infinite;
81
82
  }
82
83
 
@@ -85,14 +86,14 @@
85
86
  color: var(--colorPrimary);
86
87
  font-weight: 500;
87
88
  text-align: center;
88
- margin-top: var(marginXS);
89
+ margin-top: calc(var(--marginXS) * 1px);
89
90
  }
90
91
 
91
92
  .em-filemanager .uploadSubtext {
92
93
  font-size: 14px;
93
94
  color: var(--colorTextSecondary);
94
95
  text-align: center;
95
- margin-top: var(--paddingXXS);
96
+ margin-top: calc(var(--paddingXXS) * 1px);
96
97
  }
97
98
 
98
99
  @keyframes uploadZoneFadeIn {
@@ -178,7 +179,7 @@
178
179
 
179
180
  .em-filemanager .tableImagePreview {
180
181
  object-fit: contain;
181
- border-radius: 4px;
182
+ border-radius: calc(var(--borderRadius) * 1px);
182
183
  }
183
184
 
184
185
  .em-filemanager .tableFolderIcon {
@@ -187,7 +188,7 @@
187
188
  }
188
189
 
189
190
  .em-filemanager .gridRow {
190
- margin-top: 16px;
191
+ margin-top: calc(var(--margin) * 1px);
191
192
  margin-left: 0 !important;
192
193
  margin-right: 0 !important;
193
194
  }
@@ -226,7 +227,7 @@
226
227
  height: 100%;
227
228
  justify-content: center;
228
229
  align-items: center;
229
- margin-bottom: var(marginXS);
230
+ margin-bottom: calc(var(--marginXS) * 1px);
230
231
  padding: 4px;
231
232
  }
232
233
 
@@ -237,8 +238,8 @@
237
238
  justify-content: center;
238
239
  align-items: center;
239
240
  /* background: #f7fafc; */
240
- border-radius: var(--borderRadiusSM);
241
- margin-bottom: var(marginXS);
241
+ border-radius: calc(var(--borderRadiusSM) * 1px);
242
+ margin-bottom: calc(var(--marginXS) * 1px);
242
243
  height: 240px;
243
244
  }
244
245
 
@@ -471,155 +472,155 @@
471
472
  /* .folderMenu :global(.ant-tree-treenode-selected) .folderLabelItem {
472
473
  color: #1890ff !important;
473
474
  } */
474
- .em-filemanager .container {
475
- position: fixed;
476
- top: 20px;
477
- left: 20px;
478
- z-index: 1000;
479
- max-width: 400px;
480
- min-width: 320px;
481
- }
482
-
483
- .em-filemanager .uploadCard {
484
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
485
- border-radius: 8px;
486
- border: 1px solid #d9d9d9;
487
- }
488
-
489
- .em-filemanager .header {
490
- display: flex;
491
- justify-content: space-between;
492
- align-items: center;
493
- width: 100%;
494
- }
495
-
496
- .em-filemanager .headerButton {
497
- padding: 0;
498
- width: 24px;
499
- height: 24px;
500
- display: flex;
501
- align-items: center;
502
- justify-content: center;
503
- }
504
-
505
- .em-filemanager .headerButton:hover {
506
- background-color: rgba(0, 0, 0, 0.04);
507
- }
508
-
509
- .em-filemanager .fileList {
510
- max-height: 300px;
511
- overflow-y: auto;
512
- }
513
-
514
- .em-filemanager .fileItem {
515
- padding: 8px 0 !important;
516
- border-bottom: 1px solid #f0f0f0;
517
- }
518
-
519
- .em-filemanager .fileItem:last-child {
520
- border-bottom: none;
521
- }
522
-
523
- .em-filemanager .fileAvatar {
524
- background-color: transparent !important;
525
- }
526
-
527
- .em-filemanager .fileInfo {
528
- display: flex;
529
- flex-direction: column;
530
- gap: 2px;
531
- }
532
-
533
- .em-filemanager .fileName {
534
- font-size: 13px;
535
- line-height: 1.2;
536
- max-width: 200px;
537
- }
538
-
539
- .em-filemanager .fileSize {
540
- font-size: 11px;
541
- line-height: 1;
542
- }
543
-
544
- .em-filemanager .progressBar {
545
- margin-top: 4px;
546
- }
547
-
548
- .em-filemanager .errorNote {
549
- margin-top: 8px;
550
- padding: 8px;
551
- background-color: #fff2f0;
552
- border: 1px solid #ffccc7;
553
- border-radius: 4px;
554
- }
555
-
556
- /* Минимизированное состояние */
557
- .em-filemanager .minimizedContainer {
558
- position: fixed;
559
- top: 20px;
560
- left: 20px;
561
- z-index: 1000;
562
- }
563
-
564
- .em-filemanager .minimizedButton {
565
- font-size: 12px;
566
- height: 28px;
567
- padding: 0 12px;
568
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
569
- }
570
-
571
- /* Скроллбар для списка файлов */
572
- .em-filemanager .fileList::-webkit-scrollbar {
573
- width: 6px;
574
- }
575
-
576
- .em-filemanager .fileList::-webkit-scrollbar-track {
577
- background: #f1f1f1;
578
- border-radius: 3px;
579
- }
580
-
581
- .em-filemanager .fileList::-webkit-scrollbar-thumb {
582
- background: #c1c1c1;
583
- border-radius: 3px;
584
- }
585
-
586
- .em-filemanager .fileList::-webkit-scrollbar-thumb:hover {
587
- background: #a8a8a8;
588
- }
589
-
590
- /* Анимации */
591
- .em-filemanager .container {
592
- animation: slideInFromLeft 0.3s ease-out;
593
- }
594
-
595
- .em-filemanager .minimizedContainer {
596
- animation: slideInFromLeft 0.3s ease-out;
597
- }
598
-
599
- @keyframes slideInFromLeft {
600
- from {
601
- transform: translateX(-100%);
602
- opacity: 0;
603
- }
604
- to {
605
- transform: translateX(0);
606
- opacity: 1;
607
- }
608
- }
609
-
610
- /* Адаптивность */
611
- @media (max-width: 768px) {
612
- .em-filemanager .container {
613
- left: 10px;
614
- right: 10px;
615
- max-width: calc(100vw - 20px);
616
- min-width: auto;
617
- }
618
-
619
- .em-filemanager .minimizedContainer {
620
- left: 10px;
621
- }
622
- }
475
+ .em-filemanager .container {
476
+ position: fixed;
477
+ top: 20px;
478
+ left: 20px;
479
+ z-index: 1000;
480
+ max-width: 400px;
481
+ min-width: 320px;
482
+ }
483
+
484
+ .em-filemanager .uploadCard {
485
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
486
+ border-radius: 8px;
487
+ border: 1px solid #d9d9d9;
488
+ }
489
+
490
+ .em-filemanager .header {
491
+ display: flex;
492
+ justify-content: space-between;
493
+ align-items: center;
494
+ width: 100%;
495
+ }
496
+
497
+ .em-filemanager .headerButton {
498
+ padding: 0;
499
+ width: 24px;
500
+ height: 24px;
501
+ display: flex;
502
+ align-items: center;
503
+ justify-content: center;
504
+ }
505
+
506
+ .em-filemanager .headerButton:hover {
507
+ background-color: rgba(0, 0, 0, 0.04);
508
+ }
509
+
510
+ .em-filemanager .fileList {
511
+ max-height: 300px;
512
+ overflow-y: auto;
513
+ }
514
+
515
+ .em-filemanager .fileItem {
516
+ padding: 8px 0 !important;
517
+ border-bottom: 1px solid var(--colorBorderSecondary);
518
+ }
519
+
520
+ .em-filemanager .fileItem:last-child {
521
+ border-bottom: none;
522
+ }
523
+
524
+ .em-filemanager .fileAvatar {
525
+ background-color: transparent !important;
526
+ }
527
+
528
+ .em-filemanager .fileInfo {
529
+ display: flex;
530
+ flex-direction: column;
531
+ gap: 2px;
532
+ }
533
+
534
+ .em-filemanager .fileName {
535
+ font-size: 13px;
536
+ line-height: 1.2;
537
+ max-width: 200px;
538
+ }
539
+
540
+ .em-filemanager .fileSize {
541
+ font-size: 11px;
542
+ line-height: 1;
543
+ }
544
+
545
+ .em-filemanager .progressBar {
546
+ margin-top: 4px;
547
+ }
548
+
549
+ .em-filemanager .errorNote {
550
+ margin-top: 8px;
551
+ padding: 8px;
552
+ background-color: #fff2f0;
553
+ border: 1px solid #ffccc7;
554
+ border-radius: 4px;
555
+ }
556
+
557
+ /* Минимизированное состояние */
558
+ .em-filemanager .minimizedContainer {
559
+ position: fixed;
560
+ top: 20px;
561
+ left: 20px;
562
+ z-index: 1000;
563
+ }
564
+
565
+ .em-filemanager .minimizedButton {
566
+ font-size: 12px;
567
+ height: 28px;
568
+ padding: 0 12px;
569
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
570
+ }
571
+
572
+ /* Скроллбар для списка файлов */
573
+ .em-filemanager .fileList::-webkit-scrollbar {
574
+ width: 6px;
575
+ }
576
+
577
+ .em-filemanager .fileList::-webkit-scrollbar-track {
578
+ background: #f1f1f1;
579
+ border-radius: 3px;
580
+ }
581
+
582
+ .em-filemanager .fileList::-webkit-scrollbar-thumb {
583
+ background: #c1c1c1;
584
+ border-radius: 3px;
585
+ }
586
+
587
+ .em-filemanager .fileList::-webkit-scrollbar-thumb:hover {
588
+ background: #a8a8a8;
589
+ }
590
+
591
+ /* Анимации */
592
+ .em-filemanager .container {
593
+ animation: slideInFromLeft 0.3s ease-out;
594
+ }
595
+
596
+ .em-filemanager .minimizedContainer {
597
+ animation: slideInFromLeft 0.3s ease-out;
598
+ }
599
+
600
+ @keyframes slideInFromLeft {
601
+ from {
602
+ transform: translateX(-100%);
603
+ opacity: 0;
604
+ }
605
+ to {
606
+ transform: translateX(0);
607
+ opacity: 1;
608
+ }
609
+ }
610
+
611
+ /* Адаптивность */
612
+ @media (max-width: 768px) {
613
+ .em-filemanager .container {
614
+ left: 10px;
615
+ right: 10px;
616
+ max-width: calc(100vw - 20px);
617
+ min-width: auto;
618
+ }
619
+
620
+ .em-filemanager .minimizedContainer {
621
+ left: 10px;
622
+ }
623
+ }
623
624
 
624
625
  .em-filemanager .gifTab {
625
626
  padding: 16px;
@@ -635,7 +636,7 @@
635
636
  }
636
637
  .em-filemanager .gifTab .gifSearchInput {
637
638
  padding: 0 2px 0 2px;
638
- margin-bottom: 16px;
639
+ margin-bottom: calc(var(--margin) * 1px);
639
640
  }
640
641
  .em-filemanager .gifTab .scrollableDiv {
641
642
  width: 100%;
@@ -660,14 +661,14 @@
660
661
  cursor: pointer;
661
662
  position: relative;
662
663
  transition: all 0.3s ease;
663
- border: 1px solid #f0f2f5;
664
+ border: 1px solid var(--colorBgLayout);
664
665
  margin-bottom: 30px;
665
666
  display: inline-block;
666
667
  border-radius: 16px;
667
668
  min-height: 100px;
668
669
  max-height: 100px;
669
670
  overflow: hidden;
670
- background: #f0f2f5;
671
+ background: var(--colorBgLayout);
671
672
  height: 320px;
672
673
  width: 320px;
673
674
  margin-right: 30px;
@@ -684,7 +685,7 @@
684
685
  }
685
686
  .em-filemanager .gifTab .listItem .ant-spin {
686
687
  font-size: 20px;
687
- color: #f0f2f5;
688
+ color: var(--colorBgLayout);
688
689
  position: absolute;
689
690
  top: 50%;
690
691
  left: 50%;
@@ -809,7 +810,7 @@
809
810
  }
810
811
  .em-filemanager .stockTab .stockSearchInput {
811
812
  padding: 0 2px 0 2px;
812
- margin-bottom: 16px;
813
+ margin-bottom: calc(var(--margin) * 1px);
813
814
  }
814
815
  .em-filemanager .stockTab .searchResults .stockSearchInput {
815
816
  width: 100%;
@@ -848,13 +849,13 @@
848
849
  min-height: 100px;
849
850
  max-height: 100px;
850
851
  overflow: hidden;
851
- background: #f0f2f5;
852
+ background: var(--colorBgLayout);
852
853
  height: 320px;
853
854
  width: 320px;
854
855
  }
855
856
  .em-filemanager .stockTab .listItem .ant-spin {
856
857
  font-size: 20px;
857
- color: #f0f2f5;
858
+ color: var(--colorBgLayout);
858
859
  position: absolute;
859
860
  top: 50%;
860
861
  left: 50%;
@@ -1061,7 +1062,7 @@
1061
1062
  }
1062
1063
 
1063
1064
  .em-filemanager .status {
1064
- margin: 3px 0 0 0;
1065
+ margin: calc(var(--margin) * 1px) 0 0 0;
1065
1066
  }
1066
1067
 
1067
1068
  .em-filemanager .carousel {
@@ -1163,7 +1164,7 @@
1163
1164
  .em-filemanager .file-manager__layout {
1164
1165
  width: 100%;
1165
1166
  height: 100%;
1166
- border-radius: calc(var(--borderRadiusXL) * 1px);
1167
+ border-radius: calc(var(--borderRadiusLG) * 1px);
1167
1168
  overflow: hidden;
1168
1169
  /* FileContent стили */
1169
1170
  /* FolderSidebar стили */
@@ -1186,7 +1187,7 @@
1186
1187
  margin-right: 24px;
1187
1188
  }
1188
1189
  .em-filemanager .file-manager__layout h5.header-title {
1189
- margin-right: 16px;
1190
+ margin-right: calc(var(--margin) * 1px);
1190
1191
  margin-bottom: 0;
1191
1192
  font-size: 24px;
1192
1193
  font-weight: 500;
@@ -1252,7 +1253,7 @@
1252
1253
  width: 100%;
1253
1254
  border-radius: calc(var(--borderRadius) * 1px);
1254
1255
  }
1255
- .em-filemanager .file-manager__layout .file-manager-sider .ant-tree .ant-tree-treenode:hover {
1256
+ .em-filemanager .file-manager__layout .file-manager-sider .ant-tree .ant-tree-treenode:hover, .em-filemanager .file-manager__layout .file-manager-sider .ant-tree .ant-tree-treenode.ant-tree-treenode-selected {
1256
1257
  background-color: var(--colorFillSecondary);
1257
1258
  }
1258
1259
  .em-filemanager .file-manager__layout .file-manager-sider .ant-tree .ant-tree-node-content-wrapper {
@@ -1303,7 +1304,7 @@
1303
1304
  overflow: hidden;
1304
1305
  }
1305
1306
  .em-filemanager .file-manager__layout .file-manager-sider .ant-tree .ant-tree-treenode[data-key=folders] {
1306
- border-bottom: 1px solid #f0f0f0;
1307
+ border-bottom: 1px solid var(--colorBorderSecondary);
1307
1308
  margin-bottom: 8px;
1308
1309
  padding-bottom: 8px;
1309
1310
  }
@@ -1370,7 +1371,8 @@
1370
1371
  background: var(--colorBorder);
1371
1372
  border-radius: calc(var(--borderRadiusLG) * 1px);
1372
1373
  }
1373
- .em-filemanager .file-manager__layout .main-content .ant-image-mask {
1374
+ .em-filemanager .file-manager__layout .main-content .ant-image-mask,
1375
+ .em-filemanager .file-manager__layout .main-content .ant-card-cover img + .ant-image-mask {
1374
1376
  border-radius: calc(var(--borderRadiusLG) * 1px);
1375
1377
  }
1376
1378
  .em-filemanager .file-manager__layout .main-content .ant-table-wrapper {
@@ -1387,7 +1389,7 @@
1387
1389
  box-shadow: 0 8px 16px 0 rgba(25, 29, 58, 0.0392156863);
1388
1390
  }
1389
1391
  .em-filemanager .file-manager__layout .main-content .ant-table-wrapper .ant-table .ant-table-row td {
1390
- border-bottom: 4px solid #f0f2f5;
1392
+ border-bottom: 4px solid var(--colorBgLayout);
1391
1393
  }
1392
1394
  .em-filemanager .file-manager__layout .main-content .ant-table-wrapper .ant-table .ant-table-row td:first-child {
1393
1395
  border-radius: calc(var(--borderRadiusLG) * 1px) 0 0 calc(var(--borderRadiusLG) * 1px);
@@ -1462,7 +1464,7 @@
1462
1464
  .em-filemanager .file-manager__layout .header-container {
1463
1465
  display: flex;
1464
1466
  justify-content: space-between;
1465
- margin-bottom: 16px;
1467
+ margin-bottom: calc(var(--margin) * 1px);
1466
1468
  align-items: center;
1467
1469
  }
1468
1470
  .em-filemanager .file-manager__layout .actions-container {
@@ -1482,12 +1484,12 @@
1482
1484
  width: 652px;
1483
1485
  }
1484
1486
  .em-filemanager .file-manager__layout .breadcrumb-container {
1485
- margin-bottom: 16px;
1487
+ margin-bottom: calc(var(--margin) * 1px);
1486
1488
  }
1487
1489
  .em-filemanager .file-manager__layout .pagination-container {
1488
1490
  display: flex;
1489
1491
  justify-content: flex-end;
1490
- margin-top: 16px;
1492
+ margin-top: calc(var(--margin) * 1px);
1491
1493
  }
1492
1494
  .em-filemanager .file-manager__layout .upload-zone {
1493
1495
  border: 2px dashed #e8e8e8;
@@ -1496,7 +1498,7 @@
1496
1498
  text-align: center;
1497
1499
  padding: 20px;
1498
1500
  transition: border-color 0.3s, background-color 0.3s;
1499
- margin-bottom: 16px;
1501
+ margin-bottom: calc(var(--margin) * 1px);
1500
1502
  }
1501
1503
  .em-filemanager .file-manager__layout .upload-zone.active {
1502
1504
  border-color: var(--colorPrimary);
@@ -1564,7 +1566,7 @@
1564
1566
  font-weight: 500;
1565
1567
  }
1566
1568
  .em-filemanager .file-manager__layout .form-item {
1567
- margin-bottom: 16px;
1569
+ margin-bottom: calc(var(--margin) * 1px);
1568
1570
  }
1569
1571
  .em-filemanager .file-manager__layout .form-label {
1570
1572
  font-weight: 500;
@@ -1582,7 +1584,7 @@
1582
1584
  display: flex;
1583
1585
  justify-content: flex-end;
1584
1586
  gap: 8px;
1585
- margin-top: 16px;
1587
+ margin-top: calc(var(--margin) * 1px);
1586
1588
  }
1587
1589
  .em-filemanager .file-manager__layout .cancel-button {
1588
1590
  border-radius: 6px;
@@ -1803,7 +1805,7 @@
1803
1805
  }
1804
1806
  .em-filemanager .files-grid-empty .empty-icon {
1805
1807
  font-size: 48px;
1806
- margin-bottom: 16px;
1808
+ margin-bottom: calc(var(--margin) * 1px);
1807
1809
  opacity: 0.5;
1808
1810
  }
1809
1811
  .em-filemanager .files-grid-empty .empty-text {
package/file-manager.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { Config, CustomIcons, File, FileManagerDataProviders, ThumbnailFile } from './types';
2
3
  import 'antd/dist/reset.css';
3
4
  import './styles/index.scss';
@@ -25,7 +26,6 @@ export interface Options {
25
26
  dragDropIcon?: string;
26
27
  }
27
28
  export interface FileManagerAppProps {
28
- publicPath?: string;
29
29
  config?: Config;
30
30
  currentPath?: string;
31
31
  onPathChange?: (path: string[]) => void;
@@ -52,17 +52,30 @@ export declare const init: (containerOrOptions: HTMLElement | Options, config?:
52
52
  export declare const unmount: (container: HTMLElement) => void;
53
53
  export interface InitPixieEditorOptions {
54
54
  element: HTMLElement;
55
- file?: File | ThumbnailFile;
55
+ file?: File | ThumbnailFile | string;
56
56
  imageDataUrl?: string;
57
57
  name?: string;
58
58
  type?: string;
59
59
  extension?: string;
60
- publicPath?: string;
61
60
  dataProviders?: FileManagerDataProviders;
62
61
  onSave?: (updatedFile: File) => Promise<void> | void;
63
62
  onClose?: () => void;
64
63
  theme?: Config['theme'];
65
64
  locale?: string;
66
65
  }
66
+ export declare const PixieOnlyApp: React.FC<Omit<InitPixieEditorOptions, 'element'>>;
67
67
  export declare const initPixieEditor: (options: InitPixieEditorOptions) => void;
68
68
  export declare const unmountPixieEditor: (container: HTMLElement) => void;
69
+ export interface UniversalInitOptions {
70
+ mode: 'fileManager' | 'pixieEditor' | 'both';
71
+ element: HTMLElement;
72
+ fileManager?: Omit<Options, 'element'>;
73
+ pixieEditor?: Omit<InitPixieEditorOptions, 'element'>;
74
+ theme?: Config['theme'];
75
+ dataProviders?: FileManagerDataProviders;
76
+ }
77
+ export declare const initFileManager: (options: UniversalInitOptions) => {
78
+ unmount: () => void;
79
+ unmountFileManager?: () => void;
80
+ unmountPixieEditor?: () => void;
81
+ };