-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
Media #3708
Media #3708
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 702ad16 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: Ziad Beyens <[email protected]>
data: { invalidateFiles: File[] }; | ||
}; | ||
|
||
export type uploadConfig = Partial<Record<AllowedFileType, MediaItemConfig>>; |
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.
export type uploadConfig = Partial<Record<AllowedFileType, MediaItemConfig>>; | |
export type UploadConfig = Partial<Record<AllowedFileType, MediaItemConfig>>; |
|
||
export type UploadError = { | ||
code: UploadErrorCode; | ||
data: { invalidateFiles: File[] }; |
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.
data: { invalidateFiles: File[] }; | |
data: { files: File[] }; |
uploadingFiles: Record<string, File>; | ||
// Whether multiple files of the same type can be uploaded. | ||
multiple?: boolean; | ||
uploadError?: UploadError | null; |
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.
uploadError?: UploadError | null; | |
error?: UploadError | null; |
// Whether multiple files of the same type can be uploaded. | ||
multiple?: boolean; | ||
uploadError?: UploadError | null; | ||
uploadMaxFileCount?: number; |
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.
uploadMaxFileCount?: number; | |
maxFileCount?: number; |
}, | ||
})) | ||
.extendApi(({ getOption, setOption }) => ({ | ||
addUploadingFile: (id: string, file: File) => { |
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.
addUploadingFile: (id: string, file: File) => { | |
addFile: (id: string, file: File) => { |
same for others
Checklist
yarn typecheck
yarn lint:fix
yarn test
yarn brl
yarn changeset