Releases: iTwin/saved-views
Releases · iTwin/saved-views
@itwin/[email protected]
Breaking changes
SavedViewsClient
interface changes- Remove
getSavedViewInfo
method - Add
getAllSavedViews
,getAllGroups
, andgetAllTags
methods as replacement forgetSavedViewInfo
- Rename
getSingularSavedView
method togetSavedView
- Remove
captureSavedViewData
now also captures extension data thus return type has now changed to{ viewData: ViewData; extensions: SavedViewExtension[] | undefined }
SavedViewsClient.createSavedView
: Update parameter bag to reflectSavedView
change (see minor changes)SavedViewsClient.updateSavedView
: Update parameter bag to reflectSavedView
change (see minor changes)useSavedViews
: UpdatesubmitSavedView
action parameters to reflectSavedView
change (see minor changes)- Update
applySavedView
parameter types.savedViewData
is now a subset ofSavedView
object.
Minor changes
SavedView
now also contains optionalviewData
andextension
properties. Objects returned byITwinSavedViewsClient
will have these fields populated.- Permit
ApplySavedViewSettings.viewState
value to be"reset"
. Due to technicalities, it has the same semantics as"apply"
. SavedViewTile
: Update placeholder icon
Fixes
ITwinSavedViewsClient.createSavedView
: Extension data now is no longer ignoredITwinSavedViewsClient.updateSavedView
: Fix extension data not being updatedITwinSavedViewsClient.deleteGroup
now correctly attempts to delete multiple pages of Saved Views
Dependencies
- Bump
@itwin/itwinui-icons-react
version requirement from^2.4.0
to^2.9.0
- Bump
@itwin/saved-views-client
version requirement from^0.3.0
to^0.4.0
@itwin/[email protected]
Breaking changes
SavedViewsClient
interface changesgetAllSavedViewsMinimal
andgetAllSavedViewsRepresentation
now returnAsyncIterableIterator
to better emphasize that results are delivered in pagescreateSavedView
andupdateSavedView
now returnSavedViewRepresentationResponse
to match the current iTwin API behavior
Fixes
- Remove
extensions
property fromUpdateSavedViewParams
because extensions are immutable ITwinSavedViewsClient
: Fix fetch requests failing when request body contains forbidden characters
@itwin/[email protected]
Breaking changes
captureSavedViewData
: RemovecaptureHiddenModelsAndCategories
setting from parameter bag. This function now behaves as if its value is alwaystrue
.createViewState
: Change function signature to takeViewData
instead ofSavedViewRepresentation
and use parameter bag for additional settings- Remove experimental
ModelCategoryOverrideProvider
class - Remove experimental
applyExtensionsToViewport
function
Minor changes
- Add
applySavedView
function - Promote
createViewState
to public API
@itwin/[email protected]
Patch changes
- Expose parameter types used in
SavedViewsClient
methods
@itwin/[email protected]
Minor changes
- Add
extensions
property toSavedView
type - Add
creationTime
andlastModified
properties toSavedView
type - Update
ITwinSavedViewsClient
to includecreationTime
andlastModified
ingetSavedViewInfo
,getSingularSavedView
,createSavedView
, andupdateSavedView
responses
@itwin/[email protected]
Fixes
LayeredMenuItem
: Fix chevron not aligning itself with item content
Dependencies
- Bump
@itwin/saved-views-client
package version from^0.2.1
to^0.3.0
@itwin/[email protected]
Minor changes
- Add
creationTime
andlastModified
properties toSavedView
type
@itwin/[email protected]
Breaking changes
SavedViewTile
:onRename
callback can now receiveundefined
value fornewName
parameter to indicate that user has canceled rename operationuseSavedViews
: RenamecreateSavedView
tosubmitSavedView
. When the first argument is a partialSavedView
object, this operation will now update or create a Saved View using the supplied information.
Minor changes
- Add optional
creatorId
property toSavedView
andSavedViewGroup
types - Add support for placing context menu button within
StickyExpandableBlock
title ITwinSavedViewsClient.deleteGroup
: Delete all views contained within group before attempting to delete the group itselfLayeredDropdownMenu
: Improve keyboard navigationLayeredMenuItem
: ForwardclassName
property to wrapping HTML elementLayeredMenuItem
: Increase spacing between label and right chevronSavedViewOptions
: ForwardclassName
property to wrapping HTML elementuseSavedViews
:- View and Group creation operations now sort stored locally stored Views / Groups
- Failed View and Group delete operations now restore deleted items to their original spots
Fixes
SavedViewTile
: Fix context menu button not appearing whenoptions
prop receives a function with zero parameters- Fix text overflow issues in
SavedViewTile
andStickyExpandableBlock
components by truncating titles with ellipses - Fix an issue with
useSavedViews
failing to load Saved View thumbnails when a cached data source is used
Dependencies
- Bump
@itwin/itwinui-react
package version from^3.0.11
to^3.8.1
- Update and bump
@itwin/saved-views-client
package version specifier from0.2.0
to^0.2.1
@itwin/[email protected]
Fixes
- Fix
ITwinSavedViewsClient.updateSavedView
failing when saved view data contains URL fields
@itwin/[email protected]
Fixes
- Bump
@itwin/saved-views-client
dependency version from0.1.0
to0.2.0