-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added support for uppy #842
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@ezhil56x is attempting to deploy a commit to the TypeCell Team on Vercel. A member of the Team first needs to authorize it. |
Click to expand2024-06-13.16-02-35.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great already. I've left some comments inline but also have one main architectural request:
I don't think we want to add the uppy dependencies by default - otherwise users who don't need uppy will end up adding a lot of dependencies. This means all Uppy related code should live in the Example (or in a separate package (blocknote-uppy
or sth), but I don't think that's necessary for now). The way to do this would be to in the example use a FilePanelController
and pass in the Uppy tab as part of it's props. (the uppy tab should then also live in the configuration).
Secondly, I don't think we then need uploadFileUppy
anymore in the configuration. We do need (see original requirements) to make sure that uploadFile
uploads via Uppy. The reason for this is that while at this moment, it's true that uploadFile
is only called from the upload tab (which we'll replace by the dashboard), but at a later point it's likely we'll call uploadFile
from other places (like dropping files into the editor) as well.
packages/react/src/components/FilePanel/DefaultTabs/UploadTabUppy.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/FilePanel/DefaultTabs/UploadTabUppy.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/FilePanel/DefaultTabs/UploadTabUppy.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/FilePanel/DefaultTabs/UploadTabUppy.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/FilePanel/DefaultTabs/UploadTabUppy.tsx
Outdated
Show resolved
Hide resolved
@ezhil56x I have already made changes related to this. If needed any reference you can view my closed pr. |
Will update my PR soon and let you know |
|
@ezhil56x I've updated the PR. As you can see I've been able to use:
I've also added some documentation, cleaned up the code a bit, and added some Uppy plugins so that it's a nice demo. Let me know what you think! |
@YousefED |
# Conflicts: # playground/src/examples.gen.tsx
Added support for uppy with an example
Closes #807
/claim #807