Tree widget: a way to create Classifications Tree hierarchy provider
I'm trying to create a custom Classifications Tree which would show elements coming from two different iModelConnection instances. I'm planning to use hierarchy merging for that (https://github.com/iTwin/presentation/issues/844), which requires me to have pass two hierarchy providers each created with different iModelConnection.
Problem: I don't see a way to create Classifications Tree hierarchy provider without calling useClassificationsTree hook.
Additionally, I need a way to create filtered paths for Classifications Tree using InstanceKey array. Again, it should be available without using useClassificationsTree.
Prerequisites:
- [ ] https://github.com/iTwin/viewer-components-react/issues/1512
- [ ] https://github.com/iTwin/viewer-components-react/issues/1513
- [ ] https://github.com/iTwin/viewer-components-react/issues/1421
After some discussions we decided that it should be possible to define and expose public API for creating classifications tree definition and incorporate prerequisites incrementally after.