@ntbjs/react-components 0.0.1-beta.43 → 0.0.1-beta.44
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.
|
@@ -910,6 +910,19 @@ var AssetGalleryBase = React__default['default'].forwardRef(function AssetGaller
|
|
|
910
910
|
};
|
|
911
911
|
|
|
912
912
|
var calculateLayout = function calculateLayout() {
|
|
913
|
+
var assetsWithoutAKey = assetsProp.filter(function (a) {
|
|
914
|
+
return !a.key;
|
|
915
|
+
});
|
|
916
|
+
|
|
917
|
+
if (assetsWithoutAKey.length > 0) {
|
|
918
|
+
assetsProp = assetsProp.filter(function (a) {
|
|
919
|
+
return a.key;
|
|
920
|
+
});
|
|
921
|
+
assetsWithoutAKey.forEach(function (a) {
|
|
922
|
+
return console.warn("Omitted asset from the gallery because it was missing the unique `key` property.", a);
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
|
|
913
926
|
if (viewMode === 'grid' && assetGalleryWidth.current > 0) {
|
|
914
927
|
var row = [];
|
|
915
928
|
var translateX = 0;
|
package/package.json
CHANGED
package/widgets/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var AssetGallery = require('../AssetGallery-
|
|
5
|
+
var AssetGallery = require('../AssetGallery-bd8b2316.js');
|
|
6
6
|
require('../defaultTheme-18d7c1ee.js');
|
|
7
7
|
require('styled-components');
|
|
8
8
|
require('react');
|