ui5-webcomponents-react
ui5-webcomponents-react copied to clipboard
Publish WebComponents wrapper generation script
User Story
As a consumer of a custom UI5 Web Components library, I want to be able to create React wrappers for the custom UI5 Web Components library.
Scope 1
Parse api.json and create a file only containing withWebComponent().
No Types included
Scope 2
Including Types. Reuse custom-elements.json instead of api.json?
Known Issues
- Lots of manual mapping required (custom types, detection of enums)
- Manual mapping of some props (opener -> string when prop, but
string | HTMLElementwhen DomRef) - Backwards compatibility of the script? Only tested with latest UI5
api.json. We need to be aware of path changes inside these files (e.g. sap.webcomponents.main -> sap.webc.main) - Mapping of custom
@types/sapui5to standard TypeScript types? - Replacements in description of UI5 Web Components and their attributes are not feasible