feat: Add `RichTextVideo` extension for video playback
Overview
This adds a Video extension to Typist, which is very similar to the one that we have for Images - but for Videos - and parts of the code (mostly related to the uploading mechanism) have been copy-pasted.
Although this was built to be used as an example for a presentation where I go through the steps of building a Typist extension, this could be very well considered ready for prime time. There might be a thing or two that we might want to change and/or do differently, but other than that, the code is pretty much production-ready. However, this will be a draft PR until we are sure that we want to include such extension in our products.
PR Checklist
- [x] Pull request title follows the Conventional Commits Specification
- [x] Added/updated unit test cases and/or end-to-end test cases
Test plan
- Open the preview Storybook deployed to Netlify
- Open the
Rich-text → Defaultstory- [ ] Smoke test the
Videoextension and make sure it works as you'd expect it to
- [ ] Smoke test the
Deploy Preview for doist-typist ready!
| Name | Link |
|---|---|
| Latest commit | d5325b9f7f938a77716a875d8d93a7a26eef3867 |
| Latest deploy log | https://app.netlify.com/sites/doist-typist/deploys/6617acbbab75b10008aa1bf4 |
| Deploy Preview | https://deploy-preview-735--doist-typist.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.