seeder-resources-view 1.0.10 → 1.0.12

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/index.js CHANGED
@@ -17320,7 +17320,7 @@ const MediaGridItem = /*#__PURE__*/react.memo(_ref => {
17320
17320
  trigger: ['contextMenu'],
17321
17321
  disabled: !onContextMenu,
17322
17322
  children: /*#__PURE__*/jsxRuntime.jsxs(antd.List.Item, {
17323
- className: "media-grid-item ".concat(checked ? 'media-grid-item-selected' : ''),
17323
+ className: "".concat(showCheckbox ? 'media-grid-item' : ''),
17324
17324
  title: item.name,
17325
17325
  onClick: handleItemClick,
17326
17326
  children: [showCheckbox && /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -17335,7 +17335,7 @@ const MediaGridItem = /*#__PURE__*/react.memo(_ref => {
17335
17335
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Image, {
17336
17336
  width: "100%",
17337
17337
  height: "100%",
17338
- src: getFullUrl(item.head_thumbnail),
17338
+ src: getFullUrl(item.head_thumbnail || item.thumbnail),
17339
17339
  preview: false
17340
17340
  })
17341
17341
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -18137,7 +18137,11 @@ const ResourcesView = _ref => {
18137
18137
  renderGridHeader,
18138
18138
  acceptFileTypes = "video/*,.mxf,application/mxf,video/mxf",
18139
18139
  uploadTimeout = 60 * 60 * 1000,
18140
- searchPlaceholder = "Search ..."
18140
+ searchPlaceholder = "Search ...",
18141
+ gridConfig = {
18142
+ gutter: 0,
18143
+ column: 6
18144
+ }
18141
18145
  } = _ref;
18142
18146
  const {
18143
18147
  message,
@@ -18477,7 +18481,8 @@ const ResourcesView = _ref => {
18477
18481
  onContextMenu: mergedFeatures.delete || mergedFeatures.download || mergedFeatures.copy ? onContextMenu : null,
18478
18482
  selectedKeys: selectedItems,
18479
18483
  onSelectChange: mergedFeatures.batchOperations ? handleSelectChange : null,
18480
- onClick: () => {},
18484
+ showCheckbox: mergedFeatures.batchOperations,
18485
+ gridConfig: gridConfig,
18481
18486
  features: mergedFeatures,
18482
18487
  getFullUrl: getFullUrl
18483
18488
  })]