- Changed the "components" directory to "base" in package.json.
- Updated exports in package.json to reflect new paths for components.
- Added a new index file in the base directory to export multiple components.
- Updated tsup configuration to include the new base index entry.
* fix: pass maxFileSizeBytes to child components in FileUploader
FileUploader had a 100MB default for maxFileSizeBytes but wasn't passing
it to FileDropzone and FileUpload child components. This caused the
validateFile function's 10MB default to be used instead.
Changes:
- Pass maxFileSizeBytes to FileDropzone in multi-file mode
- Pass maxFileSizeBytes to FileUpload in single-file mode
- Update validateFile and createFileTypeValidator defaults from 10MB to
100MB for consistency
Slack thread: https://llama-index.slack.com/archives/C078MCV1VF1/p1770406441562149?thread_ts=1770402394.899169&cid=C078MCV1VF1https://claude.ai/code/session_01PkeX39guEDiA4s18Co23mD
* Update default max file size to 100MB
Increase the default maximum file size limit to 100MB and ensure this change is reflected in all relevant components.
---------
Co-authored-by: Claude <noreply@anthropic.com>
* Add configurable purpose prop to file upload components
The file upload previously hardcoded purpose as "user_data". This adds
a configurable `purpose` prop (defaulting to "user_data") that supports
all valid API values
* fix: allow Enter key to submit form after file is selected in upload modal
Previously, pressing Enter in the file dropzone would always reopen
the file picker dialog. Now, Enter only opens the file picker when
no file is selected; when a file is already selected, Enter allows
the form submission to proceed.
The auto-fix PR workflow was failing because it tried to add files from
examples/ directory which doesn't exist at the repo root. This caused
`git add` to fail with "pathspec 'examples/' did not match any files".
https://claude.ai/code/session_01Nu8sTEG8UxRfPGhoFunTVB
Co-authored-by: Claude <noreply@anthropic.com>