box-ui-elements 21.0.1-beta.2 → 21.0.1
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/dist/explorer.css +1 -1
- package/dist/explorer.js +24551 -24510
- package/dist/openwith.js +15 -4
- package/dist/picker.js +15 -4
- package/dist/preview.css +1 -1
- package/dist/preview.js +12839 -12757
- package/dist/sharing.js +3531 -1960
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +12852 -12770
- package/dist/uploader.js +15 -4
- package/es/components/popper/PopperComponent.js +3 -6
- package/es/components/popper/PopperComponent.js.flow +6 -9
- package/es/components/popper/PopperComponent.js.map +1 -1
- package/es/components/popper/props.js +0 -1
- package/es/components/popper/props.js.flow +4 -4
- package/es/components/popper/props.js.map +1 -1
- package/es/components/select-field/SelectFieldDropdown.js +3 -3
- package/es/components/select-field/SelectFieldDropdown.js.flow +3 -3
- package/es/components/select-field/SelectFieldDropdown.js.map +1 -1
- package/es/utils/uploads.js +15 -4
- package/es/utils/uploads.js.flow +17 -7
- package/es/utils/uploads.js.map +1 -1
- package/package.json +14 -40
- package/src/components/popper/PopperComponent.js +6 -9
- package/src/components/popper/props.js +4 -4
- package/src/components/select-field/SelectFieldDropdown.js +3 -3
- package/src/features/virtualized-table-renderers/__tests__/__snapshots__/lastModifiedByCellRenderer.test.js.snap +1 -1
- package/src/utils/__tests__/uploads.test.js +2 -0
- package/src/utils/uploads.js +17 -7
package/dist/openwith.js
CHANGED
|
@@ -27959,10 +27959,21 @@ function getFileLastModifiedAsISONoMSIfPossible(file) {
|
|
|
27959
27959
|
// The compatibility chart at https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified#Browser_compatibility
|
|
27960
27960
|
// is not up to date as of 12-13-2018. Edge & ie11 do not support lastModified, but support lastModifiedDate.
|
|
27961
27961
|
const lastModified = file.lastModified || file.lastModifiedDate;
|
|
27962
|
-
if (lastModified
|
|
27963
|
-
|
|
27964
|
-
if (
|
|
27965
|
-
|
|
27962
|
+
if (lastModified) {
|
|
27963
|
+
let lastModifiedDate = null;
|
|
27964
|
+
if (typeof lastModified === 'number') {
|
|
27965
|
+
// Only non-negative timestamps are valid. In rare cases, the timestamp may be erroneously set to a negative value
|
|
27966
|
+
// https://issues.chromium.org/issues/393149335
|
|
27967
|
+
if (lastModified < 0) {
|
|
27968
|
+
return null;
|
|
27969
|
+
}
|
|
27970
|
+
lastModifiedDate = new Date(lastModified); // Try number first
|
|
27971
|
+
} else if (typeof lastModified === 'string' || lastModified instanceof Date) {
|
|
27972
|
+
lastModifiedDate = new Date(lastModified);
|
|
27973
|
+
}
|
|
27974
|
+
if (lastModifiedDate && isValidDateObject(lastModifiedDate)) {
|
|
27975
|
+
const isoString = toISOStringNoMS(lastModifiedDate);
|
|
27976
|
+
return isoString;
|
|
27966
27977
|
}
|
|
27967
27978
|
}
|
|
27968
27979
|
return null;
|
package/dist/picker.js
CHANGED
|
@@ -33829,10 +33829,21 @@ function getFileLastModifiedAsISONoMSIfPossible(file) {
|
|
|
33829
33829
|
// The compatibility chart at https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified#Browser_compatibility
|
|
33830
33830
|
// is not up to date as of 12-13-2018. Edge & ie11 do not support lastModified, but support lastModifiedDate.
|
|
33831
33831
|
const lastModified = file.lastModified || file.lastModifiedDate;
|
|
33832
|
-
if (lastModified
|
|
33833
|
-
|
|
33834
|
-
if (
|
|
33835
|
-
|
|
33832
|
+
if (lastModified) {
|
|
33833
|
+
let lastModifiedDate = null;
|
|
33834
|
+
if (typeof lastModified === 'number') {
|
|
33835
|
+
// Only non-negative timestamps are valid. In rare cases, the timestamp may be erroneously set to a negative value
|
|
33836
|
+
// https://issues.chromium.org/issues/393149335
|
|
33837
|
+
if (lastModified < 0) {
|
|
33838
|
+
return null;
|
|
33839
|
+
}
|
|
33840
|
+
lastModifiedDate = new Date(lastModified); // Try number first
|
|
33841
|
+
} else if (typeof lastModified === 'string' || lastModified instanceof Date) {
|
|
33842
|
+
lastModifiedDate = new Date(lastModified);
|
|
33843
|
+
}
|
|
33844
|
+
if (lastModifiedDate && isValidDateObject(lastModifiedDate)) {
|
|
33845
|
+
const isoString = toISOStringNoMS(lastModifiedDate);
|
|
33846
|
+
return isoString;
|
|
33836
33847
|
}
|
|
33837
33848
|
}
|
|
33838
33849
|
return null;
|