-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support for virtual components #34
Conversation
Added a new ComponentWrapper and added a new data-cq-resource-type attribute for virtual components
Codecov Report
@@ Coverage Diff @@
## master #34 +/- ##
==========================================
+ Coverage 97.61% 97.71% +0.10%
==========================================
Files 13 13
Lines 293 306 +13
Branches 44 46 +2
==========================================
+ Hits 286 299 +13
Misses 7 7
Continue to review full report at Codecov.
|
* add a test
* update description of test
* fix failig tests
* use better variable names
…/aem-react-editable-components into feature/virtual-components
* design changes * always have resourceType attribute * remove virtual thingy
* fix package.json
* update package-lock.json
* add test
* fix linting issues
* simplification
Kudos, SonarCloud Quality Gate passed!
|
# [1.1.0](v1.0.6...v1.1.0) (2020-10-23) ### Features * support for virtual components ([#34](#34)) ([8839f97](8839f97))
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Main changes of this PR are -
withMappable
get editProps()
inEditableComponent.tsx
Description of the changes
Added a new
withMappable
Utility to make a React component mappable and add the edition capabilities and model datawithEditorContext(withModel(withEditable...
ComponentMapping.map
to use that as wellAdds a new
data-cq-resource-type
attribute on the component editable dom, when passed via the EditConfigAdded unit tests for the fix
Fixed linting issues.