Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"cool-apples-tap",
"dirty-hounds-divide",
"eager-wolves-wonder",
"eight-cloths-cut",
"evil-mangos-rhyme",
"famous-bags-pull",
"fancy-states-enter",
Expand All @@ -48,6 +49,7 @@
"green-candies-refuse",
"grumpy-trains-cough",
"heavy-planes-type",
"honest-suits-check",
"hot-cheetahs-hope",
"hungry-bees-love",
"hungry-otters-wave",
Expand Down
28 changes: 28 additions & 0 deletions packages/hierarchies-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @itwin/presentation-hierarchies-react

## 2.0.0-alpha.48

### Minor Changes

- [#1159](https://github.com/iTwin/presentation/pull/1159): Introduced `getTreeItemProps` and `treeRootProps` to `StrataKitTreeRenderer`. This allows passing props to underlying `Tree.Item` and `Tree.Root` components.

**Breaking changes**

`StrataKitTreeNodeRenderer` props changes:
- `getMenuActions` callback changed to `menuActions` prop (type: `ReactNode[]`)
- `getInlineActions` callback changed to `inlineActions` prop (type: `ReactNode[]`)
- `getContextMenuActions` callback changed to `contextMenuActions` prop (type: `ReactNode[]`)
- `getLabel` callback removed - use `label` prop instead
- `getSublabel` callback removed - use `description` prop instead
- `getDecorations` callback removed - use `decorations` prop instead
- `getClassName` callback removed - use `className` prop instead
- `onNodeClick` and `onNodeKeyDown` callbacks removed - use `onClick` and `onKeyDown` props instead

`StrataKitTreeRenderer` props changes:
- Props previously passed to `StrataKitTreeNodeRenderer` are no longer accepted
- Use `getTreeItemProps` callback to provide props to specific `Tree.Item` components
- Use `getMenuActions`, `getInlineActions`, and `getContextMenuActions` on `StrataKitTreeRenderer` to provide actions for nodes

### Patch Changes

- Updated dependencies:
- @itwin/[email protected]

## 2.0.0-alpha.47

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hierarchies-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/presentation-hierarchies-react",
"version": "2.0.0-alpha.47",
"version": "2.0.0-alpha.48",
"description": "React components based on `@itwin/presentation-hierarchies`",
"license": "MIT",
"author": {
Expand Down
15 changes: 15 additions & 0 deletions packages/hierarchies/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @itwin/presentation-hierarchies

## 2.0.0-alpha.9

### Major Changes

- [#1150](https://github.com/iTwin/presentation/pull/1150): Support creating ECSQL query definitions based on instance filters, containing schema items that don't exist in the _current_ iModel.

To support that, the `NodesQueryClauseFactory` created by `createNodesQueryClauseFactory` returns a query-disabling result when it encounters such schema items. To ensure that's possible,
the `createNodesQueryClauseFactory` function should be called with `imodelAccess` that is passed to `HierarchyDefinition.defineHierarchyLevel`.

**Breaking changes:**
- `DefineHierarchyLevelProps.imodelKey` was replaced with `imodelAccess`. If needed, the key can be accessed using `imodelAccess.imodelKey`. This affects the following APIs:
- `HierarchyDefinition.defineHierarchyLevel` (function that uses these props),
- `DefineRootHierarchyLevelProps` (extends the props type),
- `DefineInstanceNodeChildHierarchyLevelProps` (extends the props type).

## 2.0.0-alpha.8

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hierarchies/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/presentation-hierarchies",
"version": "2.0.0-alpha.8",
"version": "2.0.0-alpha.9",
"description": "A package for creating hierarchies based on data in iTwin.js iModels.",
"license": "MIT",
"author": {
Expand Down