Skip to content
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

Publish WebComponents wrapper generation script #5046

Open
MarcusNotheis opened this issue Sep 6, 2023 · 0 comments
Open

Publish WebComponents wrapper generation script #5046

MarcusNotheis opened this issue Sep 6, 2023 · 0 comments

Comments

@MarcusNotheis
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 2024-Q1
Development

No branches or pull requests

1 participant