v2.0.0-rc.0
Pre-release
Pre-release
ui5-webcomponents-react-bot
released this
11 Jul 14:20
·
326 commits
to main
since this release
2.0.0-rc.0 (2024-07-11)
Note
The ObjectPage
and FilterBar
are not yet supporting version 2.0.0!
Bug Fixes
- AnalyticalTable -
useRowDisableSelection
: removetitle
from select-all cell (#5955) (c731554), closes #5953 - AnalyticalTable: don't wrap custom header content in
Text
component (#6022) (455acc1) - AnalyticalTable: fire row select & click events on
keyup
instead ofkeydown
(#6013) (f1386f8), closes #4388 - AnalyticalTable: fix custom header alignment (#6068) (c4a49e4)
- AnalyticalTable: improve focus border alignment (#5944) (18aeb52), closes #5898
- apply correct scoping for internal ui5wc CSS vars (#6057) (3822bee), closes #6051
- CommonProps - TypeScript: remove
dangerouslySetInnerHTML
from types (#6002) (f5f9101) - deps: update dependency @tanstack/react-virtual to v3.5.1 (#5883) (2db3ca9)
- deps: update dependency react-content-loader to v7.0.1 (#5899) (5ed11e9)
- deps: update dependency react-content-loader to v7.0.2 (#5909) (cb79434)
- deps: update react monorepo to v19.0.0-rc-fb9a90fa48-20240614 (patch) (#5928) (863055a)
- MessageBox - TypeScript: adjust
onClose
type (#5975) (a30867a) - MessageViewItem: enable details view if
titleText
is overflowing (#6015) (dba28ce), closes #5990 - MessageView: use correct icon and color for default type (#6016) (0018bba)
- NumericSideIndicator: fix alignment (#6064) (7ecd301)
- ObjectStatus: remove
HTMLDivElement
fromonClick
type (#6011) (671cfaa) - use new JSX transform in preparation for React 19 (#5837) (7dcad64)
chore
- remove
jestSetup
(#5906) (2da6d60) - remove
react-jss
(#5907) (5342836) - remove deprecated
AnalyticalCard
component (#5887) (1d8b257)
Code Refactoring
- ActionSheet: api alignment (#5956) (5b2ac63)
- AnalyticalTable: remove deprecated props & enums (#6021) (ca13875)
- AnalyticalTable: remove unnecessary
portalContainer
prop (#6039) (7e19fbb) - enums: harmonize enum names (#5970) (98b9bb7)
- FilterGroupItem: api alignment (#6012) (0e6a326)
- harmonize prop/enum names (#6040) (4b4815b)
- make titleText required for object page sections (#6014) (10e50a2)
- MessageBox: refactor
onClose
event (#5989) (ef490f4) - Modals: replace context with use-sync-external-store (#6042) (e0818c4)
- ObjectPage: api alignment (#6047) (703084b)
- remove all
spacing
variables (#6009) (c2c3730) - replace
Toolbar
with UI5 Web Component (#6061) (bf60767)
Features
- AnalyticalTable: introduce
loadingDelay
prop (#6025) (6d80fd8) - charts: introduce
loadingDelay
prop (#6027) (71fcb40) - cli: create codemod for UI5 Web Components React v2 migration (#5908) (9f65c98)
- create compat package (#5894) (f4516cc)
- DynamicPage & ObjectPage: use ui5wc
DynamicPage
& renameObjectPage
components (#5939) (cb684cd) - Form: replace with UI5 Web Component (#5925) (1e246ee)
- move
Loader
tocompat
package & replace withBusyIndicator
(#6020) (80d8c0b) - ObjectPage: introduce
preserveHeaderStateOnClick
prop (#6049) (c3c6f06) - RadialChart: introduce
loading
&loadingDelay
props (#6028) (3891437) - support objects and references as Web Component props (#5957) (f41d32b)
- support React 19 (#5860) (c78ab7f)
- Text: replace with UI5 Web Component (#5988) (19ed2ec)
- ThemeProvider: apply Fiori scrollbar styling to all scroll containers (#5978) (9a611fd)
- update to @ui5/webcomonents 2.0.0-rc.6 (#5940) (60907b4)
- update to UI5 Web Components 2.0 RC (#5861) (7a27b7f)
- update UI5 Web Components to 2.0.0 (#6023) (49efb9b)
BREAKING CHANGES
- the
Toolbar
component and its related components have been moved to the@ui5/webcomponents-react-compat
package. - the
ToolbarV2
component has been renamed toToolbar
- the
ToolbarSpacerV2
component has been renamed toToolbarSpacer
- the
ToolbarSeparatorV2
component has been renamed toToolbarSeparator
- ObjectPage: the props
showHideHeaderButton
andshowTitleInHeaderContent
have been removed. - ObjectPage: the prop
alwaysShowContentHeader
has been renamed toheaderPinned
- ObjectPage: the prop
headerContentPinnable
has been renamed tohidePinButton
and its logic has been inverted. The pin button is now shown by default. - ObjectPage: the prop
showSubHeaderRight
has been removed as it's not defined by design anymore. - Modals: ThemeProvider: the prop
withoutModalsProvider
has been removed. For more information, please refer to our Migration Guide. - Modals: the hooks
useShowDialog
,useShowPopover
,useShowResponsivePopover
,useShowMenu
,useShowMessageBox
anduseShowToast
have been removed. For more information, please refer to our Migration Guide. - ActionSheet:
a11yConfig
has been renamed toaccessibilityAttributes
. - AnalyticalTable: The properties and values for the
AnalyticalTableSelectionMode
enum has been changed.SingleSelect
is nowSingle
andMultiSelect
is nowMultiple
. - AnalyticalTable:
a11yConfig
has been renamed toaccessibilityAttributes
. - ObjectPage:
a11yConfig
has been renamed toaccessibilityAttributes
. - ObjectStatus:
active
has been renamed tointeractive
. - AnalyticalTable:
portalContainer
has been removed as it's no longer needed due to the Popover API. - updated UI5 Web Components to v2. All breaking changes apply to this project as well.
- the
SuggestionGroupItem
component has been replaced by theSuggestionItemGroup
component - AnalyticalTable: The
TableScaleWidthMode
enum has been removed, please useAnalyticalTableScaleWidthMode
instead. - AnalyticalTable: The
TableSelectionBehavior
enum has been removed, please useAnalyticalTableSelectionBehavior
instead. - AnalyticalTable: The
TableSelectionMode
enum has been removed, please useAnalyticalTableSelectionMode
instead. - AnalyticalTable: The
TableVisibleRowCountMode
enum has been removed, please useAnalyticalTableVisibleRowCountMode
instead. - AnalyticalTable: The
alwaysShowSubComponent
prop has been removed, please usesubComponentsBehavior
instead. - AnalyticalTable: The default value (
true
) of thesortable
prop has been removed, it is now required to explicitly set this prop, if the table should be sortable. - AnalyticalTable: The
canReorder
column property has been removed, please usedisableDragAndDrop
instead. - The deprecated
Loader
component has been moved to the@ui5/webcomponents-react-compat
package. Please use the
BusyIndicator
instead, as it's now the only loading indicator that is supported by our UX guidelines. Please visit our Migration Guide for more details. - FilterGroupItem: For a better aligned API, the
visible
andvisibleInFilterBar
(default:true
) props have been replaced withhidden
andhiddenInFilterBar
(no default value). - ObjectPageSection: the prop
titleText
is now required. - ObjectPageSection: the default value
true
for the proptitleTextUppercase
has been removed. - ObjectPageSubSection: the prop
titleText
is now required. - AnalyticalTable: When selecting or pressing a row by using the Space key,
onRowClick
andonRowSelect
are now fired onkeyup
instead ofkeydown
. - ObjectStatus: TypeScript: the
HTMLDivElement
type has been removed from theonClick
handler. - All spacing variables have been removed. You can use common CSS classes as a substitute for most variables. For more information, please refer to our Migration Guide.
- Text: the
Text
component has been replaced with theui5-text
web component, please visit our Migration Guide for more details. - Text: ExpandableText: the inherited props
hyphenated
andemptyIndicator
from theText
have been removed. - Text: ExpandableText: the
portalContainer
prop has been removed as it's not needed anymore - CommonProps - TypeScript:
dangerouslySetInnerHTML
type has been removed - ThemeProvider: the
GlobalStyleClasses
enum has been removed - MessageBox:
onClose
is now a plain callback and not a
CustomEvent
event anymore. It now receives two params:action
&
escPressed
. - enums: the
MessageBoxActions
enum has been renamed toMessageBoxAction
- enums: the
MessageBoxTypes
enum has been renamed toMessageBoxType
- enums: the
Themes
enum has been renamed toTheme
and the deprecated "Belize" (sap_belize
) theme family has been removed - ActionSheet: the
portalContainer
prop has been removed as it's not needed anymore - ActionSheet: the
showCancelButton
has been renamed tohideCancelButton
and the logic has been inverted. - the
StandardListItem
has been replaced with theListItemStandard
component - the
CustomListItem
has been replaced with theListItemCustom
component - the
MultiComboBoxGroupItem
has been replaced with theMultiComboBoxItemGroup
component - the
TableGroupRow
component has been deleted - the
TableColumn
component has been replaced with theTableHeaderCell
component - VariantManagement: the
portalContainer
prop has been removed as it is no longer needed. - DynamicPage & ObjectPage: The
DynamicPage
component has been replaced with theui5-dynamic-page
UI5 Web Component, please visit our Migration Guide for more details. - DynamicPage & ObjectPage: The
DynamicPageHeader
component has been replaced with theui5-dynamic-page-header
UI5 Web Component, please visit our Migration Guide for more details. - DynamicPage & ObjectPage: The
DynamicPageTitle
component has been replaced with theui5-dynamic-page-title
UI5 Web Component, please visit our Migration Guide for more details. - DynamicPage & ObjectPage: ObjectPage:
headerTitle
now only accepts the
ObjectPageTitle
component instead of theDynamicPageTitle
. - DynamicPage & ObjectPage: ObjectPage:
headerContent
now only accepts the
ObjectPageHeader
component instead of theDynamicPageTitle
. - DynamicPage & ObjectPage: ObjectPage:
a11yConfig.dynamicPageAnchorBar
has
been renamed toa11yConfig.objectPageAnchorBar
- Form: The
Form
component has been replaced with theui5-form
UI5 Web Component, please visit our Migration Guide for more details. - UI5 Web Components for React is no longer relying on
react-jss
internally, hence the dependency is now removed and thereact-jss
ThemeProvider is no longer rendered as part of ourThemeProvider
. If you are relying onreact-jss
in your application, please make sure to render your ownreact-jss
ThemeProvider. - The
useResponsiveContentPadding
has been removed. You can achieve the same look and feel by using the responsive content padding from Common CSS. - We stopped recommending
jest
as a testing framework over a year ago, thus thejestSetup
file is removed. We recommend using cypress instead. - The
AnalyticalCard
component has been removed. Please use theCard
component instead. - updated UI5 Web Components to v2. All breaking changes apply to this project as well.
ActionSheet
: propplacementType
has been renamed toplacement
,onAfterClose
toonClose
andonAfterOpen
toonOpen
- the
Badge
component has been renamed toTag
- the
ComboBoxGroupItem
component has been renamed toComboBoxItemGroup
- the
GroupHeaderListItem
component has been renamed toListItemGroup
- the
NotificationAction
component has been removed. You can use theMenu
component instead. - the
SelectMenu
andSelectMenuOption
components have been removed. TheSelect
andOption
now allow custom content. SelectDialog
: renamed propmode
toselectionMode
to be aligned with new List API,onAfterClose
toonClose
andonAfterOpen
toonOpen
- ObjectPage (TypeScript): replace
headerTitle
type withReactElement<DynamicPageTitlePropTypes>
- ObjectPage (TypeScript): replace
headerContent
type withReactElement<DynamicPageHeaderPropTypes>
- ObjectPage (TypeScript): replace
image
type withstring | ReactElement<AvatarPropTypes>