Skip to content

Commit

Permalink
fix a build error
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezamirian committed Dec 9, 2024
1 parent 88661d3 commit 5730f41
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions packages/jui/src/Collections/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
export {
type CollectionFocusProxyProps,
useCollectionFocusProxy,
} from "./useCollectionFocusProxy";
export { Divider, DividerItem } from "./Divider";
export * from "./ItemStateContext";
export * from "./ItemLayout";
export { Item } from "./Item";

// Exporting from third-party modules leads to weird "@parcel/transformer-typescript-types: Got unexpected undefined"
// error.
// It's probably a bug in Parcel maybe triggered by something like a circular dependency.
// FIXME: remove this comment and reorder exports when the build tool is changed (to Rolldown or Vite or...)
export { Section } from "@react-stately/collections";
export { SelectionManager } from "@react-stately/selection";
export { type Selection } from "@react-types/shared";
export { Item } from "./Item";
export * from "./Divider";
export * from "./ItemStateContext";
export * from "./ItemLayout";
export * from "./useCollectionFocusProxy";

// NOTE: some stuff like `useCollectionCacheInvalidation` are not exported from the index, since the index is re-exported
// from other modules like Menu, Tabs, etc., but that part of the API is not considered a public API at the moment.
Expand Down

0 comments on commit 5730f41

Please sign in to comment.