[Control Group] Add Button & Minimal Editor Settings (#151161)

Adds an "add" button that shows up to the right of the Control Group if
configured. Also adds a system for fetching settings from consumers, and
adds settings that can hide or show pieces of the Control editor flyout.
This commit is contained in:
Devon Thomson 2023-02-23 13:45:20 -06:00 committed by GitHub
parent fa6c0d1c31
commit f77f924a2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 346 additions and 197 deletions

View file

@ -104,12 +104,14 @@ export const EditExample = () => {
</>
) : null}
<ControlGroupRenderer
getInitialInput={async (initialInput, builder) => {
getCreationOptions={async (initialInput, builder) => {
const persistedInput = await onLoad();
return {
...initialInput,
...persistedInput,
viewMode: ViewMode.EDIT,
initialInput: {
...initialInput,
...persistedInput,
viewMode: ViewMode.EDIT,
},
};
}}
onLoadComplete={async (newControlGroup) => {