-
Notifications
You must be signed in to change notification settings - Fork 52
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 ToolOptionsProvider
in the Studio layout component
#223
Conversation
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 assume this is to fix issues with the context not being available everywhere?
It would be nice to have at least line or two in the PR description 😅
a42d3f1
to
fd608c6
Compare
withToolOptions
HOCToolOptionsProvider
in the Studio layout component
fd608c6
to
09d6f22
Compare
src/index.ts
Outdated
] | ||
} | ||
})) | ||
export {media} from './plugin' |
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.
As is, this is a breaking change (no longer exporting the asset source).
You could do
export {media} from './plugin' | |
export * from './plugin' |
But I prefer us being explicit
export {media} from './plugin' | |
export {media, mediaAssetSource} from './plugin' |
Looking at it now, we probably should export MediaToolOptions
too, since its used in userland
export {media} from './plugin' | |
export {media, mediaAssetSource} from './plugin' | |
export {MediaToolOptions} from '@types' |
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.
Good suggestions! Added now 👍
09d6f22
to
58bb52c
Compare
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.
Let's go!
Addresses an issue introduced in #221, where some custom asset source components for files and images did not have access to the tool options context.