@noya-app/noya-file-explorer 0.0.24 → 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 +15 -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 +3 -3
- package/src/ResourceExplorer.tsx +6 -10
package/dist/index.mjs
CHANGED
|
@@ -2428,9 +2428,9 @@ import {
|
|
|
2428
2428
|
} from "@noya-app/noya-schemas";
|
|
2429
2429
|
import { Base64 as Base642, groupBy as groupBy2, isDeepEqual as isDeepEqual2, uuid as uuid3 } from "@noya-app/noya-utils";
|
|
2430
2430
|
import {
|
|
2431
|
-
AutoSizer,
|
|
2432
2431
|
downloadUrl as downloadUrl2,
|
|
2433
2432
|
memoGeneric as memoGeneric2,
|
|
2433
|
+
SingleDimensionAutoSizer,
|
|
2434
2434
|
useControlledOrUncontrolled as useControlledOrUncontrolled2
|
|
2435
2435
|
} from "@noya-app/react-utils";
|
|
2436
2436
|
import { fileOpen as fileOpen2 } from "browser-fs-access";
|
|
@@ -3239,7 +3239,7 @@ var ResourceExplorer = memo2(
|
|
|
3239
3239
|
};
|
|
3240
3240
|
}, [media, publishedResources]);
|
|
3241
3241
|
const keyExtractor = useCallback2((item) => item.id, []);
|
|
3242
|
-
const renderCollection = (
|
|
3242
|
+
const renderCollection = (virtualizedHeight) => /* @__PURE__ */ React2.createElement(
|
|
3243
3243
|
FileExplorerCollection2,
|
|
3244
3244
|
{
|
|
3245
3245
|
ref: collectionRef,
|
|
@@ -3289,7 +3289,7 @@ var ResourceExplorer = memo2(
|
|
|
3289
3289
|
selectedIds,
|
|
3290
3290
|
itemClassName,
|
|
3291
3291
|
itemStyle,
|
|
3292
|
-
virtualized:
|
|
3292
|
+
virtualized: virtualizedHeight,
|
|
3293
3293
|
renderThumbnail: (props) => /* @__PURE__ */ React2.createElement(
|
|
3294
3294
|
ResourceThumbnail,
|
|
3295
3295
|
{
|
|
@@ -3418,10 +3418,7 @@ var ResourceExplorer = memo2(
|
|
|
3418
3418
|
),
|
|
3419
3419
|
className
|
|
3420
3420
|
},
|
|
3421
|
-
virtualized ? /* @__PURE__ */ React2.createElement(
|
|
3422
|
-
// add 24px to account for the -mx-3 on the Collection component
|
|
3423
|
-
renderCollection({ width: width + 24, height })
|
|
3424
|
-
)) : renderCollection(void 0)
|
|
3421
|
+
virtualized ? /* @__PURE__ */ React2.createElement(SingleDimensionAutoSizer, { dimension: "height" }, (height) => renderCollection(height)) : renderCollection(void 0)
|
|
3425
3422
|
);
|
|
3426
3423
|
}
|
|
3427
3424
|
)
|