Continues #827. Most of the components and functions that we were sure can be deprecated are now deprecated. Everything remaining needs to be reviewed and moved to other packages (or deprecated if not needed).
Changes
Deprecated HorizontalAlignment, VerticalAlignment, CheckBoxInfo, SortDirection, withIsPressed, withOnOutsideClick, withTimeout, MessageRenderer, MessageType, ReactMessage, FilteredText, IconHelper, ClassNameProps, CommonProps, CommonDivProps, NoChildrenProps, OmitChildrenProp, ScrollPositionMaintainer, ExecuteHandler, Timer, getCssVariable, getCssVariableAsNumber, useInterval, OutsideClickEvent, useOnOutsideClick, ElementResizeObserver. These components and functions are intended for internal AppUI usage or are not used by AppUI at all.
Deprecated SvgPath and WebFontIcon. Users should use @itwin/itwinui-icons-react package (or svg element directly in the case of SvgPath).
Deprecated MessageBox and MessageContainer in favor of iTwinUI Dialog.
Deprecated Popup in favor of iTwinUI Popover.
Deprecated TreeBranch, ExpansionToggle, TreeNode, NodeCheckBoxProps, TreeNodePlaceholder, Tree in favor of iTwinUI Tree.
Deprecated useOptionalDisposable. Users should use useState + useEffect for creating and disposing disposable resources.
Deprecated useEffectSkipFirst. Users should use useEffect instead. Besides this concept will no longer work from React 18 with Strict mode.
Continues #827. Most of the components and functions that we were sure can be deprecated are now deprecated. Everything remaining needs to be reviewed and moved to other packages (or deprecated if not needed).
Changes
HorizontalAlignment
,VerticalAlignment
,CheckBoxInfo
,SortDirection
,withIsPressed
,withOnOutsideClick
,withTimeout
,MessageRenderer
,MessageType
,ReactMessage
,FilteredText
,IconHelper
,ClassNameProps
,CommonProps
,CommonDivProps
,NoChildrenProps
,OmitChildrenProp
,ScrollPositionMaintainer
,ExecuteHandler
,Timer
,getCssVariable
,getCssVariableAsNumber
,useInterval
,OutsideClickEvent
,useOnOutsideClick
,ElementResizeObserver
. These components and functions are intended for internal AppUI usage or are not used by AppUI at all.SvgPath
andWebFontIcon
. Users should use@itwin/itwinui-icons-react
package (or svg element directly in the case ofSvgPath
).MessageBox
andMessageContainer
in favor of iTwinUIDialog
.Popup
in favor of iTwinUIPopover.
TreeBranch
,ExpansionToggle
,TreeNode
,NodeCheckBoxProps
,TreeNodePlaceholder
,Tree
in favor of iTwinUITree
.useOptionalDisposable
. Users should useuseState
+useEffect
for creating and disposing disposable resources.useEffectSkipFirst
. Users should useuseEffect
instead. Besides this concept will no longer work from React 18 with Strict mode.ResizableContainerObserver
. Users should use third party packages e.g. https://www.npmjs.com/package/rc-resize-observer.Omit
. Users should use TypeScriptOmit
.StandardMessageBox
from appui-react in favor of iTwinUIDialog
.Testing
N/A