platform
platform copied to clipboard
Split react-components into core and pro parts
Describe your motivation
Vaadin Core / open source users should be able to use core/free React components without Vaadin license.
Describe the solution you'd like
Acceptance Criteria:
- [x] React components are split into
@vaadin/react-components(free) and@vaadin/react-components-pro(commercial) npm packages, this change is re-applied - [x] Platform versions has
react-componentsincoreandreact-components-proinvaadin - [x] Flow adds
@vaadin/react-components-propackage intopackage.jsoninvaadindependency is used in a project.@vaadin/react-componentsare added for bothvaadin-coreandvaadin.
Note: this is planned between 24.4 beta and GA, so that these changes don't block beta release and beta testing.
Describe alternatives you've considered
No response
Additional context
Vaadin 24.4.
Created the React components split PR: https://github.com/vaadin/react-components/pull/242
Flow will pick/discard react components by the mode flag ("mode": "react") in the versions files and both vaadin-core-versions.json and vaadin-versions.json are always checked if available so for Flow there is nothing extra for step 3 to add.
Extended test to check this case explicitly: https://github.com/vaadin/flow/pull/19103
i have pushed a branch in platform with the necessary changes. let us wait after beta https://github.com/vaadin/platform/tree/react-component-pro
Done. Tested with having vaadin and vaadin-core. Vaadin adds react-components-pro in the first case and does not in the second case.