Reduce download assets
This replaces buttons with a file download handler with anchors and a download
attribute. This is basically how the download
function worked internally.
Instead of determining asset filenames in the frontend, it’s determined in the backend and set in the content-disposition
header. This means mime-types
is no longer used in Studio, which saves ~200KB bundle size.
THe <Button />
React component now accepts a component
prop. This allows to use other base components while maintaining the Button
component functionality. Components using the button
class have been updated to use this.