@scaleflex/widget-explorer 4.0.6 → 4.1.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +12111 -12075
  2. package/LICENSE +21 -21
  3. package/README.md +1260 -1235
  4. package/dist/style.css +1438 -1094
  5. package/dist/style.min.css +1 -1
  6. package/lib/components/AssetsList/SearchView.hook.js +24 -24
  7. package/lib/components/AssetsList/__SearchTestPannel.js +27 -27
  8. package/lib/components/BulkEditPanel/components/AssetsList/Columns/columns.utils.js +2 -2
  9. package/lib/components/CropPanel/index.scss +55 -55
  10. package/lib/components/Details/Details.constants.js +5 -0
  11. package/lib/components/Details/FileItem/style.scss +11 -11
  12. package/lib/components/Details/TabChips.js +10 -5
  13. package/lib/components/Drawer/ResizerCore.js +3 -3
  14. package/lib/components/FileItem/PreUploadFileThumbnail/index.scss +19 -19
  15. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralSection.js +1 -1
  16. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.constants.js +7 -3
  17. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.styled.js +4 -2
  18. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.thunks.js +45 -0
  19. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsContent.js +15 -1
  20. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTabs.js +11 -3
  21. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTopOptions.js +4 -4
  22. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/index.js +194 -27
  23. package/lib/components/FileWindowPanel/Header/BeforeUploadActionBtns.js +4 -4
  24. package/lib/components/GalleryRoleSelect/GalleryRoleSelect.utils.js +3 -3
  25. package/lib/components/GalleryRoleSelect/index.js +11 -11
  26. package/lib/components/Modals/TransformedDownload/TransformedDownload.hooks.js +11 -11
  27. package/lib/components/Modals/TransformedDownload/TransformedDownload.utils.js +4 -4
  28. package/lib/components/TopBar/index.scss +20 -20
  29. package/lib/components/UrlBuilderModal/index.js +6 -2
  30. package/lib/components/common/FileMetadataFieldValue/FileMetadataFieldValue.utils.js +12 -8
  31. package/lib/components/metadata.adapter.js +18 -18
  32. package/lib/defaultLocale.js +7 -1
  33. package/lib/hooks/useEditFileDetails.js +5 -5
  34. package/lib/hooks/useFileMetadata.js +5 -3
  35. package/lib/hooks/useIsSmallScreen.js +6 -6
  36. package/lib/hooks/useValidateFileName.js +22 -22
  37. package/lib/index.js +154 -151
  38. package/lib/slices/files.slice.js +15 -15
  39. package/lib/slices/folders.slice.js +9 -9
  40. package/lib/slices/metadata.slice.js +9 -2
  41. package/lib/style.scss +268 -268
  42. package/lib/utils/SearchSuggestions/SearchSuggestionsMenu.js +4 -4
  43. package/lib/utils/createSuperFocus.js +5 -5
  44. package/lib/utils/filters.js +3 -3
  45. package/lib/utils/formatPinSubTitle.js +6 -6
  46. package/lib/utils/getActiveOverlayEl.js +2 -2
  47. package/lib/utils/truncateString.js +7 -7
  48. package/package.json +8 -8
  49. package/types/index.d.ts +102 -102
package/lib/style.scss CHANGED
@@ -1,268 +1,268 @@
1
- @import '@scaleflex/widget-core/lib/_utils.scss';
2
- @import '@scaleflex/widget-core/lib/_variables.scss';
3
- @import '@scaleflex/widget-common/lib/style.scss';
4
- // TODO: Remove this import from provider-views and from the 2nd file (LabelsListSkeleton.jsx) then remove it from package.json
5
- @import '@scaleflex/widget-provider-views/lib/style.scss';
6
-
7
- // Component-specific css imports
8
- @import './components/CropPanel/index.scss';
9
- @import './components/TopBar/index.scss';
10
-
11
- #SfxPopper {
12
- z-index: 11111111;
13
- }
14
-
15
- // ExplorerWrapper.jsx |>>
16
-
17
- @keyframes filerobot-Explorer-fadeIn {
18
- from {
19
- opacity: 0;
20
- }
21
-
22
- to {
23
- opacity: 1;
24
- }
25
- }
26
-
27
- @keyframes filerobot-Explorer-fadeOut {
28
- from {
29
- opacity: 1;
30
- }
31
-
32
- to {
33
- opacity: 0;
34
- }
35
- }
36
-
37
- @keyframes filerobot-Explorer-slideDownAndFadeIn {
38
- from {
39
- transform: translate3d(-50%, -70%, 0);
40
- opacity: 0;
41
- }
42
-
43
- to {
44
- transform: translate3d(-50%, -50%, 0);
45
- opacity: 1;
46
- }
47
- }
48
-
49
- @keyframes filerobot-Explorer-slideDownAndFadeIn--small {
50
- from {
51
- transform: translate3d(0, -20%, 0);
52
- opacity: 0;
53
- }
54
-
55
- to {
56
- transform: translate3d(0, 0, 0);
57
- opacity: 1;
58
- }
59
- }
60
-
61
- @keyframes filerobot-Explorer-slideUpFadeOut {
62
- from {
63
- transform: translate3d(-50%, -50%, 0);
64
- opacity: 1;
65
- }
66
-
67
- to {
68
- transform: translate3d(-50%, -70%, 0);
69
- opacity: 0;
70
- }
71
- }
72
-
73
- @keyframes filerobot-Explorer-slideUpFadeOut--small {
74
- from {
75
- transform: translate3d(0, 0, 0);
76
- opacity: 1;
77
- }
78
-
79
- to {
80
- transform: translate3d(0, -20%, 0);
81
- opacity: 0;
82
- }
83
- }
84
-
85
- // End Transitions //
86
-
87
- .filerobot-Explorer--modal {
88
- z-index: $zIndex-highest;
89
- }
90
-
91
- .filerobot-Explorer-assets-picker-modal {
92
- z-index: $zIndex-modal;
93
- }
94
-
95
- .filerobot-Explorer--modal[aria-hidden=true] {
96
- display: none;
97
- }
98
-
99
- .filerobot-Explorer--modal.filerobot-Explorer--animateOpenClose>.filerobot-Explorer-inner {
100
- animation: filerobot-Explorer-slideDownAndFadeIn--small 0.3s cubic-bezier(0, 0, .2, 1);
101
-
102
- @media #{$screen-medium} {
103
- animation: filerobot-Explorer-slideDownAndFadeIn 0.3s cubic-bezier(0, 0, .2, 1);
104
- }
105
- }
106
-
107
- .filerobot-Explorer--modal.filerobot-Explorer--animateOpenClose>.filerobot-Explorer-overlay {
108
- animation: filerobot-Explorer-fadeIn 0.3s cubic-bezier(0, 0, .2, 1);
109
- }
110
-
111
- .filerobot-Explorer--modal.filerobot-Explorer--animateOpenClose.filerobot-Explorer--isClosing>.filerobot-Explorer-inner {
112
- animation: filerobot-Explorer-slideUpFadeOut--small 0.3s cubic-bezier(0, 0, .2, 1);
113
-
114
- @media #{$screen-medium} {
115
- animation: filerobot-Explorer-slideUpFadeOut 0.3s cubic-bezier(0, 0, .2, 1);
116
- }
117
- }
118
-
119
- .filerobot-Explorer--modal.filerobot-Explorer--animateOpenClose.filerobot-Explorer--isClosing>.filerobot-Explorer-overlay {
120
- animation: filerobot-Explorer-fadeOut 0.3s cubic-bezier(0, 0, .2, 1);
121
- }
122
-
123
- .filerobot-Explorer--modal .filerobot-Explorer-overlay {
124
- position: fixed;
125
- top: 0;
126
- left: 0;
127
- right: 0;
128
- bottom: 0;
129
- background-color: rgba(79, 98, 118, 0.3);
130
- z-index: $zIndex-2;
131
- outline: none;
132
- }
133
-
134
- .filerobot-Explorer-inner {
135
- position: relative;
136
- max-width: 100%;
137
- max-height: 100%;
138
- outline: none;
139
- border: 1px solid $gray-200;
140
- border-radius: 5px;
141
-
142
- .filerobot-size--md & {
143
- min-height: auto;
144
- }
145
-
146
- .filerobot-Explorer--modal & {
147
- z-index: $zIndex-3;
148
- }
149
-
150
- [data-filerobot-theme="dark"] & {
151
- background-color: $gray-900;
152
- }
153
- }
154
-
155
- .filerobot-Explorer-innerWrap {
156
- display: flex;
157
- flex-direction: column;
158
- height: 100%;
159
- position: relative;
160
- border-radius: 5px;
161
- opacity: 0;
162
- overflow: hidden;
163
- background: $white;
164
- }
165
-
166
- .filerobot-Explorer-close {
167
- @include clear-focus;
168
- display: block;
169
- position: absolute;
170
- top: -33px;
171
- right: -2px;
172
- cursor: pointer;
173
- color: rgba($white, 0.9);
174
- font-size: 27px;
175
- z-index: $zIndex-5;
176
-
177
- @media #{$screen-medium} {
178
- font-size: 35px;
179
- top: -10px;
180
- right: -35px;
181
- }
182
- }
183
-
184
- .filerobot-Explorer--isInnerWrapVisible .filerobot-Explorer-innerWrap {
185
- opacity: 1;
186
- }
187
-
188
- .filerobot-Explorer--modal .filerobot-Explorer-inner {
189
- position: fixed;
190
- top: 5px;
191
- left: 0;
192
- right: 0;
193
- bottom: 15px;
194
- border: none;
195
-
196
- @media #{$screen-medium} {
197
- top: 50%;
198
- left: 50%;
199
- transform: translate(-50%, -50%);
200
- box-shadow: 0 5px 15px 4px rgba($black, 0.15);
201
- }
202
- }
203
-
204
- .filerobot-Explorer--move-informer {
205
- .filerobot.filerobot-Informer {
206
- bottom: 80px;
207
- }
208
- }
209
-
210
- // ExplorerWrapper.jsx <<|
211
-
212
- // Added to body to prevent the page from scrolling when Modal is open
213
- // packages/@scaleflex/widget-explorer/src/index.js |>>
214
- .filerobot-Explorer-isFixed {
215
- overflow: hidden;
216
- height: 100vh;
217
- }
218
-
219
- // <<|
220
-
221
- // packages/@scaleflex/widget-explorer/src/components/AddFilesPanel/AddFiles.jsx
222
- .filerobot-Explorer-input {
223
- width: 0.1px;
224
- height: 0.1px;
225
- opacity: 0;
226
- overflow: hidden;
227
- position: absolute;
228
- z-index: -1;
229
- }
230
-
231
- // <<|
232
-
233
-
234
- .filerobot-Explorer-TopBar-leftSide {
235
- height: 100%;
236
- margin-right: 12px;
237
- }
238
-
239
- // <<|
240
-
241
- // Is used for overriding ui-kit Tag styles
242
-
243
- .filerobot-Explorer-Search-filtersInside-newFilterChip {
244
- margin-top: 0;
245
- margin-right: 8px;
246
- outline: none;
247
-
248
- * {
249
- outline: none;
250
- }
251
- }
252
-
253
- // <<|
254
-
255
-
256
- // Fix of TagField fullWidth
257
- // packages/@scaleflex/widget-common/src/FormControl.jsx
258
- .filerobot-common-FormControl .SfxTagField-listWrapper {
259
- width: 100%;
260
- }
261
-
262
- .sort-menuitem.SfxMenuItem-root {
263
- .SfxMenuItem-Icon.SfxMenuItem-Actions {
264
- display: none;
265
- }
266
- }
267
-
268
- // <<|
1
+ @import '@scaleflex/widget-core/lib/_utils.scss';
2
+ @import '@scaleflex/widget-core/lib/_variables.scss';
3
+ @import '@scaleflex/widget-common/lib/style.scss';
4
+ // TODO: Remove this import from provider-views and from the 2nd file (LabelsListSkeleton.jsx) then remove it from package.json
5
+ @import '@scaleflex/widget-provider-views/lib/style.scss';
6
+
7
+ // Component-specific css imports
8
+ @import './components/CropPanel/index.scss';
9
+ @import './components/TopBar/index.scss';
10
+
11
+ #SfxPopper {
12
+ z-index: 11111111;
13
+ }
14
+
15
+ // ExplorerWrapper.jsx |>>
16
+
17
+ @keyframes filerobot-Explorer-fadeIn {
18
+ from {
19
+ opacity: 0;
20
+ }
21
+
22
+ to {
23
+ opacity: 1;
24
+ }
25
+ }
26
+
27
+ @keyframes filerobot-Explorer-fadeOut {
28
+ from {
29
+ opacity: 1;
30
+ }
31
+
32
+ to {
33
+ opacity: 0;
34
+ }
35
+ }
36
+
37
+ @keyframes filerobot-Explorer-slideDownAndFadeIn {
38
+ from {
39
+ transform: translate3d(-50%, -70%, 0);
40
+ opacity: 0;
41
+ }
42
+
43
+ to {
44
+ transform: translate3d(-50%, -50%, 0);
45
+ opacity: 1;
46
+ }
47
+ }
48
+
49
+ @keyframes filerobot-Explorer-slideDownAndFadeIn--small {
50
+ from {
51
+ transform: translate3d(0, -20%, 0);
52
+ opacity: 0;
53
+ }
54
+
55
+ to {
56
+ transform: translate3d(0, 0, 0);
57
+ opacity: 1;
58
+ }
59
+ }
60
+
61
+ @keyframes filerobot-Explorer-slideUpFadeOut {
62
+ from {
63
+ transform: translate3d(-50%, -50%, 0);
64
+ opacity: 1;
65
+ }
66
+
67
+ to {
68
+ transform: translate3d(-50%, -70%, 0);
69
+ opacity: 0;
70
+ }
71
+ }
72
+
73
+ @keyframes filerobot-Explorer-slideUpFadeOut--small {
74
+ from {
75
+ transform: translate3d(0, 0, 0);
76
+ opacity: 1;
77
+ }
78
+
79
+ to {
80
+ transform: translate3d(0, -20%, 0);
81
+ opacity: 0;
82
+ }
83
+ }
84
+
85
+ // End Transitions //
86
+
87
+ .filerobot-Explorer--modal {
88
+ z-index: $zIndex-highest;
89
+ }
90
+
91
+ .filerobot-Explorer-assets-picker-modal {
92
+ z-index: $zIndex-modal;
93
+ }
94
+
95
+ .filerobot-Explorer--modal[aria-hidden=true] {
96
+ display: none;
97
+ }
98
+
99
+ .filerobot-Explorer--modal.filerobot-Explorer--animateOpenClose>.filerobot-Explorer-inner {
100
+ animation: filerobot-Explorer-slideDownAndFadeIn--small 0.3s cubic-bezier(0, 0, .2, 1);
101
+
102
+ @media #{$screen-medium} {
103
+ animation: filerobot-Explorer-slideDownAndFadeIn 0.3s cubic-bezier(0, 0, .2, 1);
104
+ }
105
+ }
106
+
107
+ .filerobot-Explorer--modal.filerobot-Explorer--animateOpenClose>.filerobot-Explorer-overlay {
108
+ animation: filerobot-Explorer-fadeIn 0.3s cubic-bezier(0, 0, .2, 1);
109
+ }
110
+
111
+ .filerobot-Explorer--modal.filerobot-Explorer--animateOpenClose.filerobot-Explorer--isClosing>.filerobot-Explorer-inner {
112
+ animation: filerobot-Explorer-slideUpFadeOut--small 0.3s cubic-bezier(0, 0, .2, 1);
113
+
114
+ @media #{$screen-medium} {
115
+ animation: filerobot-Explorer-slideUpFadeOut 0.3s cubic-bezier(0, 0, .2, 1);
116
+ }
117
+ }
118
+
119
+ .filerobot-Explorer--modal.filerobot-Explorer--animateOpenClose.filerobot-Explorer--isClosing>.filerobot-Explorer-overlay {
120
+ animation: filerobot-Explorer-fadeOut 0.3s cubic-bezier(0, 0, .2, 1);
121
+ }
122
+
123
+ .filerobot-Explorer--modal .filerobot-Explorer-overlay {
124
+ position: fixed;
125
+ top: 0;
126
+ left: 0;
127
+ right: 0;
128
+ bottom: 0;
129
+ background-color: rgba(79, 98, 118, 0.3);
130
+ z-index: $zIndex-2;
131
+ outline: none;
132
+ }
133
+
134
+ .filerobot-Explorer-inner {
135
+ position: relative;
136
+ max-width: 100%;
137
+ max-height: 100%;
138
+ outline: none;
139
+ border: 1px solid $gray-200;
140
+ border-radius: 5px;
141
+
142
+ .filerobot-size--md & {
143
+ min-height: auto;
144
+ }
145
+
146
+ .filerobot-Explorer--modal & {
147
+ z-index: $zIndex-3;
148
+ }
149
+
150
+ [data-filerobot-theme="dark"] & {
151
+ background-color: $gray-900;
152
+ }
153
+ }
154
+
155
+ .filerobot-Explorer-innerWrap {
156
+ display: flex;
157
+ flex-direction: column;
158
+ height: 100%;
159
+ position: relative;
160
+ border-radius: 5px;
161
+ opacity: 0;
162
+ overflow: hidden;
163
+ background: $white;
164
+ }
165
+
166
+ .filerobot-Explorer-close {
167
+ @include clear-focus;
168
+ display: block;
169
+ position: absolute;
170
+ top: -33px;
171
+ right: -2px;
172
+ cursor: pointer;
173
+ color: rgba($white, 0.9);
174
+ font-size: 27px;
175
+ z-index: $zIndex-5;
176
+
177
+ @media #{$screen-medium} {
178
+ font-size: 35px;
179
+ top: -10px;
180
+ right: -35px;
181
+ }
182
+ }
183
+
184
+ .filerobot-Explorer--isInnerWrapVisible .filerobot-Explorer-innerWrap {
185
+ opacity: 1;
186
+ }
187
+
188
+ .filerobot-Explorer--modal .filerobot-Explorer-inner {
189
+ position: fixed;
190
+ top: 5px;
191
+ left: 0;
192
+ right: 0;
193
+ bottom: 15px;
194
+ border: none;
195
+
196
+ @media #{$screen-medium} {
197
+ top: 50%;
198
+ left: 50%;
199
+ transform: translate(-50%, -50%);
200
+ box-shadow: 0 5px 15px 4px rgba($black, 0.15);
201
+ }
202
+ }
203
+
204
+ .filerobot-Explorer--move-informer {
205
+ .filerobot.filerobot-Informer {
206
+ bottom: 80px;
207
+ }
208
+ }
209
+
210
+ // ExplorerWrapper.jsx <<|
211
+
212
+ // Added to body to prevent the page from scrolling when Modal is open
213
+ // packages/@scaleflex/widget-explorer/src/index.js |>>
214
+ .filerobot-Explorer-isFixed {
215
+ overflow: hidden;
216
+ height: 100vh;
217
+ }
218
+
219
+ // <<|
220
+
221
+ // packages/@scaleflex/widget-explorer/src/components/AddFilesPanel/AddFiles.jsx
222
+ .filerobot-Explorer-input {
223
+ width: 0.1px;
224
+ height: 0.1px;
225
+ opacity: 0;
226
+ overflow: hidden;
227
+ position: absolute;
228
+ z-index: -1;
229
+ }
230
+
231
+ // <<|
232
+
233
+
234
+ .filerobot-Explorer-TopBar-leftSide {
235
+ height: 100%;
236
+ margin-right: 12px;
237
+ }
238
+
239
+ // <<|
240
+
241
+ // Is used for overriding ui-kit Tag styles
242
+
243
+ .filerobot-Explorer-Search-filtersInside-newFilterChip {
244
+ margin-top: 0;
245
+ margin-right: 8px;
246
+ outline: none;
247
+
248
+ * {
249
+ outline: none;
250
+ }
251
+ }
252
+
253
+ // <<|
254
+
255
+
256
+ // Fix of TagField fullWidth
257
+ // packages/@scaleflex/widget-common/src/FormControl.jsx
258
+ .filerobot-common-FormControl .SfxTagField-listWrapper {
259
+ width: 100%;
260
+ }
261
+
262
+ .sort-menuitem.SfxMenuItem-root {
263
+ .SfxMenuItem-Icon.SfxMenuItem-Actions {
264
+ display: none;
265
+ }
266
+ }
267
+
268
+ // <<|
@@ -22,10 +22,10 @@ var SearchSuggestionsMenu = function SearchSuggestionsMenu(_ref) {
22
22
  _useState2 = _slicedToArray(_useState, 2),
23
23
  mouseOverMenu = _useState2[0],
24
24
  setMouseOverMenu = _useState2[1];
25
- /**
26
- * The only reason why we update anchorElPosition is to update menu width.
27
- * On @scaleflex/ui Menu component we run updateRect when anchorElPosition is updated.
28
- * When on @scaleflex/ui we will have some clear way how to update rect we can refactror implementation here.
25
+ /**
26
+ * The only reason why we update anchorElPosition is to update menu width.
27
+ * On @scaleflex/ui Menu component we run updateRect when anchorElPosition is updated.
28
+ * When on @scaleflex/ui we will have some clear way how to update rect we can refactror implementation here.
29
29
  */
30
30
  var _useState3 = useState(),
31
31
  _useState4 = _slicedToArray(_useState3, 2),
@@ -2,11 +2,11 @@ import debounce from 'lodash.debounce';
2
2
  import FOCUSABLE_ELEMENTS from '@scaleflex/widget-utils/lib/FOCUSABLE_ELEMENTS';
3
3
  import getActiveOverlayEl from './getActiveOverlayEl';
4
4
 
5
- /*
6
- Focuses on some element in the currently topmost overlay.
7
-
8
- 1. If there are some [data-filerobot-super-focusable] elements rendered already - focuses on the first superfocusable element, and leaves focus up to the control of a user (until currently focused element disappears from the screen [which can happen when overlay changes, or, e.g., when we click on a folder in googledrive]).
9
- 2. If there are no [data-filerobot-super-focusable] elements yet (or ever) - focuses on the first focusable element, but switches focus if superfocusable elements appear on next render.
5
+ /*
6
+ Focuses on some element in the currently topmost overlay.
7
+
8
+ 1. If there are some [data-filerobot-super-focusable] elements rendered already - focuses on the first superfocusable element, and leaves focus up to the control of a user (until currently focused element disappears from the screen [which can happen when overlay changes, or, e.g., when we click on a folder in googledrive]).
9
+ 2. If there are no [data-filerobot-super-focusable] elements yet (or ever) - focuses on the first focusable element, but switches focus if superfocusable elements appear on next render.
10
10
  */
11
11
  export default function createSuperFocus() {
12
12
  var lastFocusWasOnSuperFocusableEl = false;
@@ -198,9 +198,9 @@ export var adaptMetadataFilter = function adaptMetadataFilter(appliedMetadata) {
198
198
  } else if (isDateField(sanitizedMetadataFilter)) {
199
199
  querySet.push(getDateFieldQuery(sanitizedMetadataFilter));
200
200
  } else if (isTagsField(sanitizedMetadataFilter)) {
201
- /**
202
- * We are adding double quotes around the tags' values, to make sure if the tag's text contains space to be considered,
203
- * as requested in this task: https://scaleflexhq.atlassian.net/browse/FRA-5997
201
+ /**
202
+ * We are adding double quotes around the tags' values, to make sure if the tag's text contains space to be considered,
203
+ * as requested in this task: https://scaleflexhq.atlassian.net/browse/FRA-5997
204
204
  */
205
205
  querySet.push(getFieldValueQuery(sanitizedMetadataFilter, "\"".concat(value.join('","'), "\"")));
206
206
  } else if (isTextField(sanitizedMetadataFilter)) {
@@ -1,9 +1,9 @@
1
- /**
2
- * Format sub title from formatted query string (filters + search) for save/edit pin modals
3
- *
4
- * @param {Array} query container width
5
- * @param {Function} i18n -- The translation function for translating the shown confirmation message - eg. plugin.i18n
6
- * @returns {String}
1
+ /**
2
+ * Format sub title from formatted query string (filters + search) for save/edit pin modals
3
+ *
4
+ * @param {Array} query container width
5
+ * @param {Function} i18n -- The translation function for translating the shown confirmation message - eg. plugin.i18n
6
+ * @returns {String}
7
7
  */
8
8
 
9
9
  var formatPinSubtitle = function formatPinSubtitle(query, i18n) {
@@ -1,5 +1,5 @@
1
- /**
2
- * @returns {HTMLElement} - either explorer element, or the overlay that's most on top
1
+ /**
2
+ * @returns {HTMLElement} - either explorer element, or the overlay that's most on top
3
3
  */
4
4
  export default function getActiveOverlayEl(explorerEl, activeOverlayType) {
5
5
  if (activeOverlayType) {
@@ -1,10 +1,10 @@
1
- /**
2
- * Truncates a string to the given number of chars (maxLength) by inserting '...' in the middle of that string.
3
- * Partially taken from https://stackoverflow.com/a/5723274/3192470.
4
- *
5
- * @param {string} string - string to be truncated
6
- * @param {number} maxLength - maximum size of the resulting string
7
- * @returns {string}
1
+ /**
2
+ * Truncates a string to the given number of chars (maxLength) by inserting '...' in the middle of that string.
3
+ * Partially taken from https://stackoverflow.com/a/5723274/3192470.
4
+ *
5
+ * @param {string} string - string to be truncated
6
+ * @param {number} maxLength - maximum size of the resulting string
7
+ * @returns {string}
8
8
  */
9
9
  export default function truncateString(string, maxLength) {
10
10
  if (typeof string !== 'string') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/widget-explorer",
3
- "version": "4.0.6",
3
+ "version": "4.1.0",
4
4
  "description": "Scaleflex explorer for the files uploaded on filerobot, handling them & upload new files.",
5
5
  "main": "lib/index.js",
6
6
  "style": "dist/style.min.css",
@@ -18,12 +18,12 @@
18
18
  "@scaleflex/icons": "^3.0.0-beta.11",
19
19
  "@scaleflex/react-url-builder": "^0.0.72",
20
20
  "@scaleflex/ui": "^3.0.0-beta.11",
21
- "@scaleflex/widget-common": "^4.0.6",
22
- "@scaleflex/widget-icons": "^4.0.6",
23
- "@scaleflex/widget-informer": "^4.0.6",
24
- "@scaleflex/widget-provider-views": "^4.0.6",
25
- "@scaleflex/widget-thumbnail-generator": "^4.0.6",
26
- "@scaleflex/widget-utils": "^4.0.6",
21
+ "@scaleflex/widget-common": "^4.1.0",
22
+ "@scaleflex/widget-icons": "^4.1.0",
23
+ "@scaleflex/widget-informer": "^4.1.0",
24
+ "@scaleflex/widget-provider-views": "^4.1.0",
25
+ "@scaleflex/widget-thumbnail-generator": "^4.1.0",
26
+ "@scaleflex/widget-utils": "^4.1.0",
27
27
  "@transloadit/prettier-bytes": "0.1.0",
28
28
  "akamai-filerobot-converter": "^0.1.6",
29
29
  "classnames": "^2.2.6",
@@ -51,5 +51,5 @@
51
51
  "react-konva": ">=19.0.3"
52
52
  },
53
53
  "license": "MIT",
54
- "gitHead": "17ad9b9abc2add9c8b52ab56e3a72108bee20a7a"
54
+ "gitHead": "471120d67066617a0d8824eae11b07d1f2259473"
55
55
  }