ui5-webcomponents-react icon indicating copy to clipboard operation
ui5-webcomponents-react copied to clipboard

Publish WebComponents wrapper generation script

Open MarcusNotheis opened this issue 2 years ago • 0 comments

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 | HTMLElement when 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/sapui5 to standard TypeScript types?
  • Replacements in description of UI5 Web Components and their attributes are not feasible

MarcusNotheis avatar Sep 06 '23 13:09 MarcusNotheis