@scaleflex/widget-explorer 4.0.7 → 4.3.0
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/CHANGELOG.md +12145 -12100
- package/LICENSE +21 -21
- package/README.md +1267 -1235
- package/dist/style.css +1438 -1094
- package/dist/style.min.css +1 -1
- package/lib/components/AssetsList/SearchView.hook.js +24 -24
- package/lib/components/AssetsList/__SearchTestPannel.js +27 -27
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/columns.utils.js +2 -2
- package/lib/components/CropPanel/index.scss +55 -55
- package/lib/components/Details/FileItem/style.scss +11 -11
- package/lib/components/Drawer/ResizerCore.js +3 -3
- package/lib/components/FileItem/PreUploadFileThumbnail/index.scss +19 -19
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralSection.js +1 -1
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.constants.js +7 -3
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.styled.js +4 -2
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.thunks.js +45 -0
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsContent.js +15 -1
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTabs.js +11 -3
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTopOptions.js +4 -4
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/index.js +194 -27
- package/lib/components/FileWindowPanel/Header/BeforeUploadActionBtns.js +4 -4
- package/lib/components/FoldersView/index.js +29 -3
- package/lib/components/GalleryRoleSelect/GalleryRoleSelect.utils.js +3 -3
- package/lib/components/GalleryRoleSelect/index.js +11 -11
- package/lib/components/Modals/AddNewFolder/AddNewFolder.hooks.js +99 -0
- package/lib/components/Modals/AddNewFolder/index.js +1 -0
- package/lib/components/Modals/TransformedDownload/TransformedDownload.hooks.js +11 -11
- package/lib/components/Modals/TransformedDownload/TransformedDownload.utils.js +4 -4
- package/lib/components/Modals/index.js +1 -0
- package/lib/components/TopBar/index.scss +20 -20
- package/lib/components/UrlBuilderModal/index.js +6 -2
- package/lib/components/common/FileMetadataFieldValue/FileMetadataFieldValue.utils.js +12 -8
- package/lib/components/metadata.adapter.js +18 -18
- package/lib/defaultLocale.js +8 -1
- package/lib/hooks/useEditFileDetails.js +5 -5
- package/lib/hooks/useFileMetadata.js +5 -3
- package/lib/hooks/useIsSmallScreen.js +6 -6
- package/lib/hooks/useValidateFileName.js +22 -22
- package/lib/index.js +155 -151
- package/lib/slices/files.slice.js +15 -15
- package/lib/slices/folders.slice.js +9 -9
- package/lib/slices/metadata.slice.js +9 -2
- package/lib/style.scss +268 -268
- package/lib/utils/SearchSuggestions/SearchSuggestionsMenu.js +4 -4
- package/lib/utils/createSuperFocus.js +5 -5
- package/lib/utils/filters.js +3 -3
- package/lib/utils/formatPinSubTitle.js +6 -6
- package/lib/utils/getActiveOverlayEl.js +2 -2
- package/lib/utils/truncateString.js +7 -7
- package/package.json +8 -8
- package/types/index.d.ts +102 -102
package/types/index.d.ts
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import Filerobot = require("@scaleflex/widget-core");
|
|
2
|
-
import CompanionClient = require("@scaleflex/widget-companion-client");
|
|
3
|
-
import React = require("react");
|
|
4
|
-
|
|
5
|
-
declare module Explorer {
|
|
6
|
-
interface ExplorerOptions
|
|
7
|
-
extends Filerobot.PluginOptions,
|
|
8
|
-
CompanionClient.PublicProviderOptions {
|
|
9
|
-
config: {
|
|
10
|
-
foldersLimit?: number;
|
|
11
|
-
filesLimit?: number;
|
|
12
|
-
folderPath?: string;
|
|
13
|
-
tagging?: {
|
|
14
|
-
enabled?: boolean;
|
|
15
|
-
autoTagging?: boolean;
|
|
16
|
-
suggestedTagsOnly?: boolean;
|
|
17
|
-
language?: string;
|
|
18
|
-
confidence?: number;
|
|
19
|
-
limit?: number;
|
|
20
|
-
provider?: string;
|
|
21
|
-
suggestionList?: string[];
|
|
22
|
-
};
|
|
23
|
-
filters?: {
|
|
24
|
-
fileSize?: {
|
|
25
|
-
min?: number;
|
|
26
|
-
max?: number;
|
|
27
|
-
defaultFrom?: number;
|
|
28
|
-
defaultTo?: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
enabledManageAccess: boolean;
|
|
33
|
-
disableMultipleSelect?: boolean;
|
|
34
|
-
dismissUrlPathQueryUpdate?: boolean;
|
|
35
|
-
usersAndTeams?: string[];
|
|
36
|
-
galleryRoles?: any[];
|
|
37
|
-
inline?: boolean;
|
|
38
|
-
trigger?: boolean;
|
|
39
|
-
target: Filerobot.PluginTarget;
|
|
40
|
-
width?: number | string;
|
|
41
|
-
height?: number | string;
|
|
42
|
-
showBar?: boolean;
|
|
43
|
-
hideDownloadButtonIcon?: boolean;
|
|
44
|
-
hideModalAfterExport?: boolean;
|
|
45
|
-
closeAfterImageEdit?: boolean;
|
|
46
|
-
showDragDropPanel?: boolean;
|
|
47
|
-
view?: string;
|
|
48
|
-
defaultSearchQuery?: string;
|
|
49
|
-
imageEditorMode?: string;
|
|
50
|
-
defaultFolderPath?: string;
|
|
51
|
-
views?: string[];
|
|
52
|
-
thumbnailWidth?: number;
|
|
53
|
-
thumbnailHeight?: number;
|
|
54
|
-
waitForThumbnailsBeforeUpload?: boolean;
|
|
55
|
-
disableUpload?: boolean;
|
|
56
|
-
hideSearch?: boolean;
|
|
57
|
-
note?: string;
|
|
58
|
-
closeModalOnClickOutside?: boolean;
|
|
59
|
-
closeAfterFinish?: boolean;
|
|
60
|
-
disableInformer?: boolean;
|
|
61
|
-
disableThumbnailGenerator?: boolean;
|
|
62
|
-
disablePageScrollWhenModalOpen?: boolean;
|
|
63
|
-
animateOpenClose?: boolean;
|
|
64
|
-
showGlobalRegVariants?: boolean;
|
|
65
|
-
onRequestCloseModal?: () => void;
|
|
66
|
-
locale?: Filerobot.Locale;
|
|
67
|
-
theme?: string;
|
|
68
|
-
browserBackButtonCloseModal?: boolean;
|
|
69
|
-
noImgOperationsAndDownload?: boolean;
|
|
70
|
-
disableDownloadButton?: boolean;
|
|
71
|
-
preventDownloadDefaultBehavior?: boolean;
|
|
72
|
-
hideExportCropPanel?: boolean;
|
|
73
|
-
layoutType?: string;
|
|
74
|
-
isUploadBarAddMoreButtonHidden?: boolean;
|
|
75
|
-
isRecordIconHidden?: boolean;
|
|
76
|
-
showFoldersTree?: boolean;
|
|
77
|
-
showDetailsView?: boolean;
|
|
78
|
-
facetedSearchEnabled?: boolean;
|
|
79
|
-
facetedSearchSidebarExpanded?: boolean;
|
|
80
|
-
selectedListViewCols?: string[];
|
|
81
|
-
ExploreViewComponent?: React.Component;
|
|
82
|
-
showTitles?: boolean;
|
|
83
|
-
showMeta?: boolean;
|
|
84
|
-
showFilter?: boolean;
|
|
85
|
-
showBreadcrumbs?: boolean;
|
|
86
|
-
showSort?: boolean;
|
|
87
|
-
disableSelectionActions?: boolean;
|
|
88
|
-
videoTranscoding?: {
|
|
89
|
-
resolution?: string;
|
|
90
|
-
protocol?: string;
|
|
91
|
-
filesIds?: string[];
|
|
92
|
-
};
|
|
93
|
-
imageProcessor?: {
|
|
94
|
-
name?: string;
|
|
95
|
-
filesIds?: string[];
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
declare class Explorer extends Filerobot.Plugin<Explorer.ExplorerOptions> {}
|
|
101
|
-
|
|
102
|
-
export = Explorer;
|
|
1
|
+
import Filerobot = require("@scaleflex/widget-core");
|
|
2
|
+
import CompanionClient = require("@scaleflex/widget-companion-client");
|
|
3
|
+
import React = require("react");
|
|
4
|
+
|
|
5
|
+
declare module Explorer {
|
|
6
|
+
interface ExplorerOptions
|
|
7
|
+
extends Filerobot.PluginOptions,
|
|
8
|
+
CompanionClient.PublicProviderOptions {
|
|
9
|
+
config: {
|
|
10
|
+
foldersLimit?: number;
|
|
11
|
+
filesLimit?: number;
|
|
12
|
+
folderPath?: string;
|
|
13
|
+
tagging?: {
|
|
14
|
+
enabled?: boolean;
|
|
15
|
+
autoTagging?: boolean;
|
|
16
|
+
suggestedTagsOnly?: boolean;
|
|
17
|
+
language?: string;
|
|
18
|
+
confidence?: number;
|
|
19
|
+
limit?: number;
|
|
20
|
+
provider?: string;
|
|
21
|
+
suggestionList?: string[];
|
|
22
|
+
};
|
|
23
|
+
filters?: {
|
|
24
|
+
fileSize?: {
|
|
25
|
+
min?: number;
|
|
26
|
+
max?: number;
|
|
27
|
+
defaultFrom?: number;
|
|
28
|
+
defaultTo?: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
enabledManageAccess: boolean;
|
|
33
|
+
disableMultipleSelect?: boolean;
|
|
34
|
+
dismissUrlPathQueryUpdate?: boolean;
|
|
35
|
+
usersAndTeams?: string[];
|
|
36
|
+
galleryRoles?: any[];
|
|
37
|
+
inline?: boolean;
|
|
38
|
+
trigger?: boolean;
|
|
39
|
+
target: Filerobot.PluginTarget;
|
|
40
|
+
width?: number | string;
|
|
41
|
+
height?: number | string;
|
|
42
|
+
showBar?: boolean;
|
|
43
|
+
hideDownloadButtonIcon?: boolean;
|
|
44
|
+
hideModalAfterExport?: boolean;
|
|
45
|
+
closeAfterImageEdit?: boolean;
|
|
46
|
+
showDragDropPanel?: boolean;
|
|
47
|
+
view?: string;
|
|
48
|
+
defaultSearchQuery?: string;
|
|
49
|
+
imageEditorMode?: string;
|
|
50
|
+
defaultFolderPath?: string;
|
|
51
|
+
views?: string[];
|
|
52
|
+
thumbnailWidth?: number;
|
|
53
|
+
thumbnailHeight?: number;
|
|
54
|
+
waitForThumbnailsBeforeUpload?: boolean;
|
|
55
|
+
disableUpload?: boolean;
|
|
56
|
+
hideSearch?: boolean;
|
|
57
|
+
note?: string;
|
|
58
|
+
closeModalOnClickOutside?: boolean;
|
|
59
|
+
closeAfterFinish?: boolean;
|
|
60
|
+
disableInformer?: boolean;
|
|
61
|
+
disableThumbnailGenerator?: boolean;
|
|
62
|
+
disablePageScrollWhenModalOpen?: boolean;
|
|
63
|
+
animateOpenClose?: boolean;
|
|
64
|
+
showGlobalRegVariants?: boolean;
|
|
65
|
+
onRequestCloseModal?: () => void;
|
|
66
|
+
locale?: Filerobot.Locale;
|
|
67
|
+
theme?: string;
|
|
68
|
+
browserBackButtonCloseModal?: boolean;
|
|
69
|
+
noImgOperationsAndDownload?: boolean;
|
|
70
|
+
disableDownloadButton?: boolean;
|
|
71
|
+
preventDownloadDefaultBehavior?: boolean;
|
|
72
|
+
hideExportCropPanel?: boolean;
|
|
73
|
+
layoutType?: string;
|
|
74
|
+
isUploadBarAddMoreButtonHidden?: boolean;
|
|
75
|
+
isRecordIconHidden?: boolean;
|
|
76
|
+
showFoldersTree?: boolean;
|
|
77
|
+
showDetailsView?: boolean;
|
|
78
|
+
facetedSearchEnabled?: boolean;
|
|
79
|
+
facetedSearchSidebarExpanded?: boolean;
|
|
80
|
+
selectedListViewCols?: string[];
|
|
81
|
+
ExploreViewComponent?: React.Component;
|
|
82
|
+
showTitles?: boolean;
|
|
83
|
+
showMeta?: boolean;
|
|
84
|
+
showFilter?: boolean;
|
|
85
|
+
showBreadcrumbs?: boolean;
|
|
86
|
+
showSort?: boolean;
|
|
87
|
+
disableSelectionActions?: boolean;
|
|
88
|
+
videoTranscoding?: {
|
|
89
|
+
resolution?: string;
|
|
90
|
+
protocol?: string;
|
|
91
|
+
filesIds?: string[];
|
|
92
|
+
};
|
|
93
|
+
imageProcessor?: {
|
|
94
|
+
name?: string;
|
|
95
|
+
filesIds?: string[];
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class Explorer extends Filerobot.Plugin<Explorer.ExplorerOptions> {}
|
|
101
|
+
|
|
102
|
+
export = Explorer;
|