sanity-plugin-media 3.0.2 → 3.0.3

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
@@ -4456,23 +4456,19 @@ const CardWrapper = styledComponents.styled(ui.Flex)`
4456
4456
  ), StyledItemContainer = styledComponents.styled.div`
4457
4457
  height: ${CARD_HEIGHT}px;
4458
4458
  width: ${CARD_WIDTH}px;
4459
- `;
4460
- function ItemContainer(props) {
4459
+ `, ItemContainer = react.forwardRef((props, ref) => {
4461
4460
  const { context, ...rest } = props;
4462
- return /* @__PURE__ */ jsxRuntime.jsx(StyledItemContainer, { ...rest });
4463
- }
4464
- const StyledListContainer = styledComponents.styled.div`
4461
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledItemContainer, { ref, ...rest });
4462
+ }), StyledListContainer = styledComponents.styled.div`
4465
4463
  display: grid;
4466
4464
  grid-template-columns: repeat(auto-fill, ${CARD_WIDTH}px);
4467
4465
  grid-template-rows: repeat(auto-fill, ${CARD_HEIGHT}px);
4468
4466
  justify-content: center;
4469
4467
  margin: 0 auto;
4470
- `;
4471
- function ListContainer(props) {
4468
+ `, ListContainer = react.forwardRef((props, ref) => {
4472
4469
  const { context, ...rest } = props;
4473
- return /* @__PURE__ */ jsxRuntime.jsx(StyledListContainer, { ...rest });
4474
- }
4475
- const AssetGridVirtualized = (props) => {
4470
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledListContainer, { ref, ...rest });
4471
+ }), AssetGridVirtualized = (props) => {
4476
4472
  const { items, onLoadMore } = props, selectedAssets = useTypedSelector((state) => state.selected.assets), selectedIds = selectedAssets && selectedAssets.map((asset) => asset._id) || [], totalCount = items?.length;
4477
4473
  return totalCount === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(
4478
4474
  reactVirtuoso.VirtuosoGrid,