Skip to content

Fix: barrel imports - #295

Open
santipalenque wants to merge 2 commits into
mainfrom
fix/barrel-imports
Open

Fix: barrel imports#295
santipalenque wants to merge 2 commits into
mainfrom
fix/barrel-imports

Conversation

@santipalenque

@santipalenque santipalenque commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

https://app.clickup.com/t/9014802374/86baz0zt6

Summary by CodeRabbit

  • New Features
    • Added guidance for importing components through individual module paths.
  • Bug Fixes
    • Updated component exports to prevent the upload input from being included in the shared component entry point.
  • Documentation
    • Documented import paths for components with heavier third-party dependencies.
  • Chores
    • Updated the package version to 5.0.44-beta.0.

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d30a5b63-7077-4f86-a42f-9819527b2aeb

📥 Commits

Reviewing files that changed from the base of the PR and between 24b90d8 and 7e1eebf.

📒 Files selected for processing (3)
  • package.json
  • readme.md
  • src/components/index.js

📝 Walkthrough

Walkthrough

The package version is updated to 5.0.44-beta.0. UploadInputV3 is removed from the components barrel export, and the README documents direct imports for components excluded from that barrel.

Changes

Component release update

Layer / File(s) Summary
Beta package version
package.json
The package version changes from 5.0.43 to 5.0.44-beta.0.
Direct component import contract
src/components/index.js, readme.md
UploadInputV3 is removed from the barrel export, and the README documents importing excluded components through individual module paths.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: smarcet

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and matches the main change: fixing barrel imports by removing a component from the barrel export.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/barrel-imports

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@smarcet
smarcet requested review from smarcet and a lite review from Copilot and removed request for smarcet August 11, 2026 17:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the library’s component “barrel” export strategy to reduce unintended dependency requirements from importing lib/components, and documents the preferred per-module import approach for consumers.

Changes:

  • Removed UploadInputV3 from the src/components/index.js barrel export and listed it under the “3rd party deps” commented-out section.
  • Added README guidance recommending direct per-component import paths and explaining why some components are excluded from the barrel.
  • Bumped the package version to 5.0.44-beta.0.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/components/index.js Removes UploadInputV3 from the barrel and documents it as excluded due to external deps.
readme.md Adds guidance on importing from individual component paths and rationale for excluding some exports from the barrel.
package.json Updates package version to 5.0.44-beta.0.
Suppressed comments (1)

readme.md:31

  • This new "Importing Components" section makes the following "Enviroment Variables" heading look like a sub-section of it. If this is meant to be a top-level section, bump it back to ## and fix the spelling to "Environment".
will not resolve them.

### Enviroment Variables

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/components/index.js
// export {default as TextEditorV2} from './inputs/editor-input-v2'
// export {default as TextEditorV3} from './inputs/editor-input-v3'
// export {default as CompanyInputV2} from './inputs/company-input-v2.js'
// export {default as UploadInputV3} from './inputs/upload-input-v3' // @mui/material, @mui/icons-material, @mui/x-date-pickers, spark-md5, dropzone, react-dropzone
Comment thread readme.md
Comment on lines +23 to +24
Components that pull in heavy 3rd-party dependencies (MUI, Stripe,
react-beautiful-dnd, etc.) are intentionally commented out of
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants