Skip to content

Commit 71ac9a6

Browse files
authored
docs: update MigrationGuide & READMEs (#6237)
1 parent 2ad71da commit 71ac9a6

File tree

4 files changed

+93
-25
lines changed

4 files changed

+93
-25
lines changed

README.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
<img src="https://raw.githubusercontent.com/SAP/ui5-webcomponents-react/main/assets/Logo-Sticker.png" alt="UI5 Web Components for React Logo" />
55
</p>
66
<p align="center">
7-
<a href="https://github.com/SAP/ui5-webcomponents-react/actions?query=workflow:%22build%22" target="_blank">
8-
<img alt="Build Status" src="https://github.com/SAP/ui5-webcomponents-react/workflows/build/badge.svg">
9-
</a>
107
<a href='https://coveralls.io/github/SAP/ui5-webcomponents-react'>
118
<img src='https://coveralls.io/repos/github/SAP/ui5-webcomponents-react/badge.svg' alt='Coverage Status' />
129
</a>
@@ -16,12 +13,6 @@
1613
<a href="https://openui5.slack.com/archives/CSQEJ2J04" target="_blank">
1714
<img alt="Slack Badge" src="https://badgen.net/badge/slack/webcomponents-react/orange?icon=slack">
1815
</a>
19-
<a href="https://github.com/prettier/prettier" target="_blank">
20-
<img alt="code style: prettier" src="https://badgen.net/badge/code%20style/prettier?color=pink">
21-
</a>
22-
<a href="https://lerna.js.org" target="_blank">
23-
<img alt="lerna" src="https://badgen.net/badge/maintained%20with/lerna?color=purple">
24-
</a>
2516
<a href="https://api.reuse.software/info/github.com/SAP/ui5-webcomponents-react" target="_blank">
2617
<img alt="REUSE Status" src="https://api.reuse.software/badge/github.com/SAP/ui5-webcomponents-react"/>
2718
</a>
@@ -35,20 +26,33 @@ You can find our documentation under the following links:
3526

3627
- [Stable Release Documentation](https://sap.github.io/ui5-webcomponents-react/)
3728
- [Nightly Release Documentation](https://sap.github.io/ui5-webcomponents-react/nightly/)
29+
- [V1 Release Documentation](https://sap.github.io/ui5-webcomponents-react/v1/)
30+
31+
## Packages Overview
3832

39-
## Package Overview
33+
- [@ui5/webcomponents-react](https://github.com/SAP/ui5-webcomponents-react/tree/main/packages/main) - Main Package
4034

41-
- [@ui5/webcomponents-react](https://github.com/SAP/ui5-webcomponents-react/tree/main/packages/main) - Fiori 3 Components<br/>
4235
[![](https://badgen.net/npm/v/@ui5/webcomponents-react?icon=npm)](https://www.npmjs.com/package/@ui5/webcomponents-react)
43-
[![npm bundle size (scoped)](https://badgen.net/bundlephobia/minzip/@ui5/webcomponents-react)](https://bundlephobia.com/result?p=@ui5/webcomponents-react)
4436

45-
- [@ui5/webcomponents-react-charts](https://github.com/SAP/ui5-webcomponents-react/tree/main/packages/charts) - Fiori Charts<br />
37+
- [@ui5/webcomponents-react-charts](https://github.com/SAP/ui5-webcomponents-react/tree/main/packages/charts) - Charts Package
38+
4639
[![](https://badgen.net/npm/v/@ui5/webcomponents-react-charts?icon=npm)](https://www.npmjs.com/package/@ui5/webcomponents-react-charts)
47-
[![npm bundle size (scoped)](https://badgen.net/bundlephobia/minzip/@ui5/webcomponents-react-charts)](https://bundlephobia.com/result?p=@ui5/webcomponents-react-charts)
4840

49-
- [@ui5/webcomponents-react-base](https://github.com/SAP/ui5-webcomponents-react/tree/main/packages/base) - Utils<br />
41+
- [@ui5/webcomponents-react-base](https://github.com/SAP/ui5-webcomponents-react/tree/main/packages/base) - Base Package
42+
5043
[![](https://badgen.net/npm/v/@ui5/webcomponents-react-base?icon=npm)](https://www.npmjs.com/package/@ui5/webcomponents-react-base)
51-
[![npm bundle size (scoped)](https://badgen.net/bundlephobia/minzip/@ui5/webcomponents-react-base)](https://bundlephobia.com/result?p=@ui5/webcomponents-react-base)
44+
45+
- [@ui5/webcomponents-react-compat](https://github.com/SAP/ui5-webcomponents-react/tree/main/packages/compat) - Legacy Components Package
46+
47+
[![](https://badgen.net/npm/v/@ui5/webcomponents-react-compat?icon=npm)](https://www.npmjs.com/package/@ui5/webcomponents-react-compat)
48+
49+
- [@ui5/webcomponents-react-cli](https://github.com/SAP/ui5-webcomponents-react/tree/main/packages/cli) - Wrapper Generation & Code-Mod Package
50+
51+
[![](https://badgen.net/npm/v/@ui5/webcomponents-react-cli?icon=npm)](https://www.npmjs.com/package/@ui5/webcomponents-react-cli)
52+
53+
- [@ui5/webcomponents-cypress-commands](https://github.com/SAP/ui5-webcomponents-react/tree/main/packages/cypress-commands) - Custom Cypress Commands & Queries Package
54+
55+
[![](https://badgen.net/npm/v/@ui5/webcomponents-cypress-commands?icon=npm)](https://www.npmjs.com/package/@ui5/webcomponents-cypress-commands)
5256

5357
<!-- *********************************************************************** -->
5458

@@ -66,7 +70,7 @@ You can find our documentation under the following links:
6670

6771
## Download and Installation
6872

69-
To consume `ui5-webcomponents-react`, you need to install the npm module and required peer dependencies:
73+
To consume `ui5-webcomponents-react`, you need to install the npm modules and required peer dependencies:
7074

7175
```sh
7276
npm install @ui5/webcomponents-react @ui5/webcomponents @ui5/webcomponents-fiori
@@ -127,22 +131,17 @@ Then, you can use the Button in your app:
127131
<Button onClick={() => alert('Hello World!')}>Hello world!</Button>
128132
```
129133

130-
For Browser Support and the configuration of the UI5 Web Components, please take a look at the
131-
[Browser Support](https://github.com/SAP/ui5-webcomponents#browser-support) and the
132-
[Configure](https://github.com/SAP/ui5-webcomponents#browser-support) sections of the
133-
[UI5 Web Components Readme](https://github.com/SAP/ui5-webcomponents#ui5-web-components).
134-
135134
### Browser Support
136135

137-
UI5 Web Components are supported by all major modern browsers, including their mobile versions.
136+
UI5 Web Components for React supports the same [browsers and respective versions](https://github.com/SAP/ui5-webcomponents#browser-support) as UI5 Web Components.
138137

139138
<!-- *********************************************************************** -->
140139

141140
<a name="issues"></a>
142141

143142
## Known Issues
144143

145-
Please look at our [GitHub Issues](https://github.com/SAP/ui5-webcomponents-react/issues).
144+
Please take a look at our [GitHub Issues](https://github.com/SAP/ui5-webcomponents-react/issues).
146145

147146
<!-- *********************************************************************** -->
148147

docs/MigrationGuide.mdx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ npx @ui5/webcomponents-react-cli@next codemod --transform v2 \
4646

4747
## General changes
4848

49+
## Minimal React Version
50+
51+
The minimum required `react` and `react-dom` version is now `18.0.0`.
52+
4953
### Removed `react-jss`
5054

5155
UI5 Web Components for React is no longer relying on `react-jss` internally, hence the dependency is now removed and the `react-jss` ThemeProvider is no longer rendered as part of our `ThemeProvider`.
@@ -65,6 +69,10 @@ function MyRootComponent() {
6569
}
6670
```
6771

72+
### Removed `jestSetup` file
73+
74+
We stopped recommending jest as a testing framework over a year ago, thus the `jestSetup` file is removed. We recommend using [Cypress](https://sap.github.io/ui5-webcomponents-react/?path=/docs/testing-with-cypress-setup--docs) instead.
75+
6876
### Changes Exclusive to TypeScript
6977

7078
- Removed `dangerouslySetInnerHTML` from general prop types since it was never intended to be used with our library.
@@ -171,6 +179,28 @@ The `useResponsiveContentPadding` hook has been removed.
171179
You can now apply responsive content paddings by applying the `sap-content-paddings-container` class from `@sap-ui/common-css` package to your element.
172180
You can find a more detailed documentation [here](?path=/docs/knowledge-base-common-css--docs#content-paddings).
173181

182+
## Removed Components
183+
184+
- `TableGroupRow` has been removed.
185+
- `NotificationAction` has been removed. You can use the `Menu` component instead.
186+
- `SelectMenu` and `SelectMenuOption` have been removed. The `Select` and `Option` now allow custom content.
187+
188+
## Renamed Components
189+
190+
With the release of UI5 Web Components v2, some component names have been renamed. Because we use these web component names (class names) as React component names, the renamings are considered breaking changes in our repository.
191+
192+
**The list below shows only the previous and updated component names. For details on changes concerning attributes, properties, methods, etc., please refer to the [UI5 Web Components Migration Guide](https://sap.github.io/ui5-webcomponents/docs/migration-guides/to-version-2/).**
193+
194+
**Note:** The tag name in the parenthesis is the **old** tag name.
195+
196+
- `StandardListItem` has been renamed to `ListItemStandard` (`ui5-li`).
197+
- `CustomListItem` has been renamed to `ListItemCustom` (`ui5-li-custom`).
198+
- `MultiComboBoxGroupItem` has been renamed to `MultiComboBoxItemGroup` (`ui5-mcb-group-item`).
199+
- `TableColumn` has been renamed to `TableHeaderCell` (`ui5-mcb-group-item`).
200+
- `Badge` has been renamed to `Tag` (`ui5-tag`).
201+
- `ComboBoxGroupItem` has been renamed to `ComboBoxItemGroup` (`ui5-cb-group-item`).
202+
- `GroupHeaderListItem` has been renamed to `ListItemGroup` (`ui5-li-groupheader`).
203+
174204
## Replaced Components
175205

176206
### AnalyticalCard
@@ -1138,6 +1168,16 @@ For better alignment with the UI5 Web Components the `active` prop has been rena
11381168
The prop `withoutModalsProvider` has been removed.
11391169
In order to provide a place for the `Modals` helper to mount the popovers, you have to render the new `Modals` component in your application tree.
11401170

1171+
### SelectDialog
1172+
1173+
- `mode` has been renamed to `selectionMode`
1174+
- `onAfterClose` has been renamed to `onClose`
1175+
- `onAfterOpen` has been renamed to `onOpen`
1176+
1177+
### VariantManagement
1178+
1179+
The `portalContainer` prop has been removed as it is no longer needed.
1180+
11411181
## Enum Changes
11421182

11431183
For better alignment with the UI5 Web Components, the following enums have been renamed:

packages/cli/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# @ui5/webcomponents-react-cli
2+
3+
Wrapper generation and code-mod for ui5-webcomponents-react.
4+
5+
## Usage
6+
7+
### Installation
8+
9+
```bash
10+
npm install @ui5/webcomponents-react-cli
11+
```
12+
13+
### Documentation
14+
15+
You can find an interactive documentation in our [Storybook](https://sap.github.io/ui5-webcomponents-react/).
16+
17+
- [Wrapper generation](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/knowledge-base-bring-your-own-web-components--docs)
18+
- [Code-mod](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/migration-guide--docs#codemod)
19+
20+
## Contribute
21+
22+
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents-react/blob/main/CONTRIBUTING.md).
23+
24+
## License
25+
26+
Please see our [LICENSE](https://github.com/SAP/ui5-webcomponents-react/blob/main/LICENSE) for copyright and license information.
27+
Detailed information including third-party components and their licensing/copyright information is available via the [REUSE tool](https://api.reuse.software/info/github.com/SAP/ui5-webcomponents-react).
28+
29+
<!-- Use the force -->

packages/compat/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ npm install @ui5/webcomponents-react-compat
1010

1111
## Documentation
1212

13-
You can find an interactive documentation in our [Storybook](https://sap.github.io/ui5-webcomponents-react/).
13+
You can find an interactive documentation in our [Storybook](https://sap.github.io/ui5-webcomponents-react/) (Legacy Components).
1414

1515
## Contribute
1616

0 commit comments

Comments
 (0)