@noya-app/noya-file-explorer 0.0.23 → 0.0.25
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/.turbo/turbo-build.log +11 -11
- package/CHANGELOG.md +24 -0
- package/dist/index.css +3 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/ResourceExplorer.tsx +6 -10
package/dist/index.js
CHANGED
|
@@ -3197,7 +3197,7 @@ var ResourceExplorer = (0, import_react3.memo)(
|
|
|
3197
3197
|
};
|
|
3198
3198
|
}, [media, publishedResources]);
|
|
3199
3199
|
const keyExtractor = (0, import_react3.useCallback)((item) => item.id, []);
|
|
3200
|
-
const renderCollection = (
|
|
3200
|
+
const renderCollection = (virtualizedHeight) => /* @__PURE__ */ import_react4.default.createElement(
|
|
3201
3201
|
import_noya_designsystem2.FileExplorerCollection,
|
|
3202
3202
|
{
|
|
3203
3203
|
ref: collectionRef,
|
|
@@ -3247,7 +3247,7 @@ var ResourceExplorer = (0, import_react3.memo)(
|
|
|
3247
3247
|
selectedIds,
|
|
3248
3248
|
itemClassName,
|
|
3249
3249
|
itemStyle,
|
|
3250
|
-
virtualized:
|
|
3250
|
+
virtualized: virtualizedHeight,
|
|
3251
3251
|
renderThumbnail: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
|
3252
3252
|
ResourceThumbnail,
|
|
3253
3253
|
{
|
|
@@ -3376,10 +3376,7 @@ var ResourceExplorer = (0, import_react3.memo)(
|
|
|
3376
3376
|
),
|
|
3377
3377
|
className
|
|
3378
3378
|
},
|
|
3379
|
-
virtualized ? /* @__PURE__ */ import_react4.default.createElement(import_react_utils2.
|
|
3380
|
-
// add 24px to account for the -mx-3 on the Collection component
|
|
3381
|
-
renderCollection({ width: width + 24, height })
|
|
3382
|
-
)) : renderCollection(void 0)
|
|
3379
|
+
virtualized ? /* @__PURE__ */ import_react4.default.createElement(import_react_utils2.SingleDimensionAutoSizer, { dimension: "height" }, (height) => renderCollection(height)) : renderCollection(void 0)
|
|
3383
3380
|
);
|
|
3384
3381
|
}
|
|
3385
3382
|
)
|