fix(xpub-edit): ensure config is not regenerated on each render
This fixes a bug where the state of the menu bar was lost. Also allow passing extra props down to DOM (e.g. id for testing)
Showing
- packages/components/package.json 4 additions, 3 deletionspackages/components/package.json
- packages/components/xpub-edit/package.json 1 addition, 1 deletionpackages/components/xpub-edit/package.json
- packages/components/xpub-edit/src/components/Editor.js 13 additions, 2 deletionspackages/components/xpub-edit/src/components/Editor.js
- packages/components/xpub-edit/src/components/HtmlEditor.js 2 additions, 20 deletionspackages/components/xpub-edit/src/components/HtmlEditor.js
- packages/components/xpub-edit/src/components/HtmlViewer.js 2 additions, 2 deletionspackages/components/xpub-edit/src/components/HtmlViewer.js
- packages/components/xpub-edit/src/components/configurable/ConfigurableEditor.js 24 additions, 23 deletions...ub-edit/src/components/configurable/ConfigurableEditor.js
- packages/components/xpub-edit/src/components/configurable/ConfigurableEditor.md 1 addition, 1 deletion...ub-edit/src/components/configurable/ConfigurableEditor.md
- packages/components/xpub-edit/src/components/configurable/ConfigurableViewer.js 21 additions, 7 deletions...ub-edit/src/components/configurable/ConfigurableViewer.js
- packages/components/xpub-edit/src/components/configurable/ConfigurableViewer.md 6 additions, 0 deletions...ub-edit/src/components/configurable/ConfigurableViewer.md
- packages/components/xpub-edit/src/components/configurable/EditorOptions.js 49 additions, 0 deletions...ts/xpub-edit/src/components/configurable/EditorOptions.js
- packages/components/xpub-edit/src/components/configurable/EditorOptions.test.js 33 additions, 0 deletions...ub-edit/src/components/configurable/EditorOptions.test.js
- packages/components/xpub-edit/src/components/configurable/config/config.test.js 34 additions, 0 deletions...ub-edit/src/components/configurable/config/config.test.js
- packages/components/xpub-edit/src/components/configurable/config/index.js 3 additions, 5 deletions...nts/xpub-edit/src/components/configurable/config/index.js
- packages/components/xpub-edit/src/components/configurable/config/keys.js 8 additions, 3 deletions...ents/xpub-edit/src/components/configurable/config/keys.js
- yarn.lock 66 additions, 14 deletionsyarn.lock
Please register or sign in to comment