Skip to content

Releases: iTwin/saved-views

@itwin/[email protected]

22 Jul 15:32
Compare
Choose a tag to compare

Breaking changes

  • SavedViewsClient interface changes
    • Remove getSavedViewInfo method
    • Add getAllSavedViews, getAllGroups, and getAllTags methods as replacement for getSavedViewInfo
    • Rename getSingularSavedView method to getSavedView
  • captureSavedViewData now also captures extension data thus return type has now changed to { viewData: ViewData; extensions: SavedViewExtension[] | undefined }
  • SavedViewsClient.createSavedView: Update parameter bag to reflect SavedView change (see minor changes)
  • SavedViewsClient.updateSavedView: Update parameter bag to reflect SavedView change (see minor changes)
  • useSavedViews: Update submitSavedView action parameters to reflect SavedView change (see minor changes)
  • Update applySavedView parameter types. savedViewData is now a subset of SavedView object.

Minor changes

  • SavedView now also contains optional viewData and extension properties. Objects returned by ITwinSavedViewsClient 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 ignored
  • ITwinSavedViewsClient.updateSavedView: Fix extension data not being updated
  • ITwinSavedViewsClient.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]

22 Jul 14:46
Compare
Choose a tag to compare

Breaking changes

  • SavedViewsClient interface changes
    • getAllSavedViewsMinimal and getAllSavedViewsRepresentation now return AsyncIterableIterator to better emphasize that results are delivered in pages
    • createSavedView and updateSavedView now return SavedViewRepresentationResponse to match the current iTwin API behavior

Fixes

  • Remove extensions property from UpdateSavedViewParams because extensions are immutable
  • ITwinSavedViewsClient: Fix fetch requests failing when request body contains forbidden characters

@itwin/[email protected]

03 Jun 13:01
Compare
Choose a tag to compare

Breaking changes

  • captureSavedViewData: Remove captureHiddenModelsAndCategories setting from parameter bag. This function now behaves as if its value is always true.
  • createViewState: Change function signature to take ViewData instead of SavedViewRepresentation 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]

28 May 16:31
Compare
Choose a tag to compare

Patch changes

  • Expose parameter types used in SavedViewsClient methods

@itwin/[email protected]

28 May 15:09
Compare
Choose a tag to compare

Minor changes

  • Add extensions property to SavedView type
  • Add creationTime and lastModified properties to SavedView type
  • Update ITwinSavedViewsClient to include creationTime and lastModified in getSavedViewInfo, getSingularSavedView, createSavedView, and updateSavedView responses

@itwin/[email protected]

20 May 14:21
Compare
Choose a tag to compare

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]

17 May 09:41
Compare
Choose a tag to compare

Minor changes

  • Add creationTime and lastModified properties to SavedView type

@itwin/[email protected]

08 May 13:11
Compare
Choose a tag to compare

Breaking changes

  • SavedViewTile: onRename callback can now receive undefined value for newName parameter to indicate that user has canceled rename operation
  • useSavedViews: Rename createSavedView to submitSavedView. When the first argument is a partial SavedView object, this operation will now update or create a Saved View using the supplied information.

Minor changes

  • Add optional creatorId property to SavedView and SavedViewGroup 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 itself
  • LayeredDropdownMenu: Improve keyboard navigation
  • LayeredMenuItem: Forward className property to wrapping HTML element
  • LayeredMenuItem: Increase spacing between label and right chevron
  • SavedViewOptions: Forward className property to wrapping HTML element
  • useSavedViews:
    • 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 when options prop receives a function with zero parameters
  • Fix text overflow issues in SavedViewTile and StickyExpandableBlock 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 from 0.2.0 to ^0.2.1

@itwin/[email protected]

07 May 19:15
Compare
Choose a tag to compare

Fixes

  • Fix ITwinSavedViewsClient.updateSavedView failing when saved view data contains URL fields

@itwin/[email protected]

24 Apr 09:50
Compare
Choose a tag to compare

Fixes

  • Bump @itwin/saved-views-client dependency version from 0.1.0 to 0.2.0