-
Notifications
You must be signed in to change notification settings - Fork 536
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
Add hooks to draft exports #2260
Conversation
🦋 Changeset detectedLatest commit: bebfd94 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
@@ -39,5 +39,5 @@ export type {MarkdownEditorProps} from './MarkdownEditor' | |||
export type {Emoji} from './suggestions/_useEmojiSuggestions' | |||
export type {Mentionable} from './suggestions/_useMentionSuggestions' | |||
export type {Reference} from './suggestions/_useReferenceSuggestions' | |||
export type {FileUploadResult} from './_useFileHandling' | |||
export type {FileUploadResult, FileType} from './_useFileHandling' |
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.
I added FileType
to the MarkdownEditor
exports because it's useful when building the acceptedFileTypes
prop.
size-limit report 📦
|
@@ -0,0 +1,5 @@ | |||
export * from './useCombobox' |
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.
I wasn't 100% sure if I can just export *
vs calling out each export type
individually, but it appears to work fine based on the export * from './MarkdownViewer'
in the drafts/index.ts
file.
Very minor PR to add the hooks in
drafts/hooks/
to the exports defined indrafts/index.ts
. I intended to do this when I introduced them but forgot.The only hook I excluded is
useUnifiedFileSelect
because I think the use-case is fairly specific here and it's not worth making it public if we want to more easily change the implementation later. If someone requests it we can export it.