Preparing to implement the new design, the Widget component now accepts a mode string prop that determines which parts of the UI will be rendered. Previously there was a boolean editor prop that achieved a similar effect but obviously could not accommodate the three desired modes: view-only (view), QL preview (ql), and advanced editor (editor).
On this branch, each mode is of course not fully implemented. This PR is more to establish the structure for fully implementing the different modes. So currently, view is simply a subset of ql which is simply a subset of editor.
The Storybook has been revised to match this change, along with a general reorganization of stories for greater clarity.
Preparing to implement the new design, the
Widget
component now accepts amode
string prop that determines which parts of the UI will be rendered. Previously there was a booleaneditor
prop that achieved a similar effect but obviously could not accommodate the three desired modes: view-only (view
), QL preview (ql
), and advanced editor (editor
).On this branch, each mode is of course not fully implemented. This PR is more to establish the structure for fully implementing the different modes. So currently,
view
is simply a subset ofql
which is simply a subset ofeditor
.The Storybook has been revised to match this change, along with a general reorganization of stories for greater clarity.