Skip to content

Commit

Permalink
Release packages [publish docs] (#785)
Browse files Browse the repository at this point in the history
Co-authored-by: imodeljs-admin <[email protected]>
  • Loading branch information
imodeljs-admin and imodeljs-admin authored Nov 28, 2024
1 parent 40db6ca commit e0d3176
Show file tree
Hide file tree
Showing 23 changed files with 125 additions and 100 deletions.
5 changes: 0 additions & 5 deletions .changeset/afraid-ducks-listen.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/afraid-panthers-melt.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/four-games-build.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/neat-carpets-melt.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/rude-ligers-vanish.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/seven-turtles-train.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/silly-eyes-lie.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/strong-cherries-sort.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thick-books-itch.md

This file was deleted.

9 changes: 8 additions & 1 deletion packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log - @itwin/presentation-components

## 5.6.1

### Patch Changes

- [#786](https://github.com/iTwin/presentation/pull/786): Bump package dependencies.
- [#794](https://github.com/iTwin/presentation/pull/794): Do not clear filter in `UniqueValuesSelector` when value is selected.

## 5.6.0

### Minor Changes
Expand All @@ -14,7 +21,7 @@

- The number of select options is limited to 100. When more items exist, a non-selectable option is displayed at the bottom of the list, prompting users to provide an items filter. Previously, additional pages of select options was loaded when user scrolled to the bottom of the list.
- Deprecated `PortalTargetContext`. It is no longer needed.

This affects `PresentationInstanceFilterBuilder` and `NavigationPropertyEditor` components.

- [#754](https://github.com/iTwin/presentation/pull/754): Define `type` and `exports` attributes in `package.json`.
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/presentation-components",
"version": "5.6.0",
"version": "5.6.1",
"description": "React components based on iTwin.js Presentation library",
"license": "MIT",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/core-interop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @itwin/presentation-core-interop

## 1.1.2

### Patch Changes

- Updated dependencies:
- @itwin/presentation-shared@1.2.0

## 1.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core-interop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/presentation-core-interop",
"version": "1.1.1",
"version": "1.1.2",
"description": "The package acts as a layer between iTwin.js Core and Presentation packages.",
"license": "MIT",
"author": {
Expand Down
23 changes: 23 additions & 0 deletions packages/hierarchies-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @itwin/presentation-hierarchies-react

## 1.2.0

### Minor Changes

- [#795](https://github.com/iTwin/presentation/pull/795): Added `size` property to `TreeNodeRenderer` to improve styling of `small` tree.
- [#791](https://github.com/iTwin/presentation/pull/791): Unify hierarchy updates' handling.

Previously, we'd only raise the `HierarchyProvider.hierarchyChanged` event on data source changes. The tree state hooks would listen to this event and trigger a hierarchy update. However, there are a few other reasons for the hierarchy to change - changing formatter or active hierarchy filter. In those situations the event was not raised, but tree state hooks still had to trigger hierarchy update. So we ended up with a mix of event-driven and manual hierarchy updates.

With this change we're clearly stating that a hierarchy provider should trigger its `hierarchyChanged` event whenever something happens that causes the hierarchy to change. That means, the event will be raised when formatter or hierarchy filter is set, and tree state hooks can initiate hierarchy reload from a single place - the `hierarchyChanged` event listener.

To let event listeners know what caused the hierarchy change, the event now has event arguments, which should be set by the hierarchy provider when raising the event. This allows listeners to customize hierarchy reload logic - for example, our tree state hooks always keep existing tree state except when a new hierarchy filter is set, in which case the existing state is discarded.

### Patch Changes

- [#795](https://github.com/iTwin/presentation/pull/795): Fix tree node loading indicator to match other icons size.
- [#786](https://github.com/iTwin/presentation/pull/786): Bump package dependencies.
- [#794](https://github.com/iTwin/presentation/pull/794): Add missing `ref` to the placeholder and error nodes to have correct styling in virtualized small tree.
- Updated dependencies:
- @itwin/presentation-shared@1.2.0
- @itwin/presentation-hierarchies@1.3.0
- @itwin/unified-selection@1.1.2

## 1.1.3

### 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": "1.1.3",
"version": "1.2.0",
"description": "React components based on `@itwin/presentation-hierarchies`",
"license": "MIT",
"author": {
Expand Down
37 changes: 37 additions & 0 deletions packages/hierarchies/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# @itwin/presentation-hierarchies

## 1.3.0

### Minor Changes

- [#783](https://github.com/iTwin/presentation/pull/783): Extended `createPredicateBasedHierarchyDefinition` props to accept `HierarchyDefinition` functions: `parseNode`, `preProcessNode` and `postProcessNode`.

The change allows creating a fully capable `HierarchyDefinition` with all the custom behaviors provided by those functions.

- [#791](https://github.com/iTwin/presentation/pull/791): Unify hierarchy updates' handling.

Previously, we'd only raise the `HierarchyProvider.hierarchyChanged` event on data source changes. The tree state hooks would listen to this event and trigger a hierarchy update. However, there are a few other reasons for the hierarchy to change - changing formatter or active hierarchy filter. In those situations the event was not raised, but tree state hooks still had to trigger hierarchy update. So we ended up with a mix of event-driven and manual hierarchy updates.

With this change we're clearly stating that a hierarchy provider should trigger its `hierarchyChanged` event whenever something happens that causes the hierarchy to change. That means, the event will be raised when formatter or hierarchy filter is set, and tree state hooks can initiate hierarchy reload from a single place - the `hierarchyChanged` event listener.

To let event listeners know what caused the hierarchy change, the event now has event arguments, which should be set by the hierarchy provider when raising the event. This allows listeners to customize hierarchy reload logic - for example, our tree state hooks always keep existing tree state except when a new hierarchy filter is set, in which case the existing state is discarded.

- [#783](https://github.com/iTwin/presentation/pull/783): Added hierarchy filtering helper to make hierarchy filtering easier to implement.

The helper can be created using the `createHierarchyFilteringHelper` function and supplying it the root level filtering paths and parent node. From there, filtering information for specific hierarchy level is determined and an object with the following attributes is returned:

- `hasFilter` tells if the hierarchy level has a filter applied.
- `hasFilterTargetAncestor` tells if there's a filter target ancestor node up in the hierarchy.
- `getChildNodeFilteringIdentifiers()` returns an array of hierarchy node identifiers that apply specifically for this hierarchy level.
- `createChildNodeProps()` and `createChildNodePropsAsync()` return attributes that should be applied to nodes in filtered hierarchy levels, after applying the filter.

See the [Implementing hierarchy filtering support](./learning/CustomHierarchyProviders.md#implementing-hierarchy-filtering-support) learning page for a usage example.

In addition, deprecated a few APIs that are replaced by filtering helper:

- `extractFilteringProps` function,
- `HierarchyNodeFilteringProps.create` function.

### Patch Changes

- Updated dependencies:
- @itwin/presentation-shared@1.2.0

## 1.2.1

### Patch 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": "1.2.1",
"version": "1.3.0",
"description": "A package for creating hierarchies based on data in iTwin.js iModels.",
"license": "MIT",
"author": {
Expand Down
29 changes: 29 additions & 0 deletions packages/shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# @itwin/presentation-shared

## 1.2.0

### Minor Changes

- [#791](https://github.com/iTwin/presentation/pull/791): Added a number of mapped types:

- `Props<TFunc>` obtains the type of the first `TFunc` function argument.

```ts
function func(props: { x: number; y: string }) {
// ...
}
type FunctionProps = Props<typeof func>; // { x: number, y: string }
```

- `EventListener<TEvent>` obtains the event listener type of given event type.

```ts
type MyEvent = Event<(arg: number) => void>;
type MyEventListener = EventListener<MyEvent>; // (arg: number) => void
```

- `EventArgs<TEvent>` obtains the type of the first event listener's argument of given event type.

```ts
type MyEvent = Event<(arg: { x: number; y: string }) => void>;
type MyEventArgs = EventArgs<MyEvent>; // { x: number, y: string }
```

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/presentation-shared",
"version": "1.1.0",
"version": "1.2.0",
"description": "The package contains types and utilities used across different iTwin.js Presentation packages.",
"license": "MIT",
"author": {
Expand Down
7 changes: 7 additions & 0 deletions packages/testing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log - @itwin/presentation-testing

## 5.1.2

### Patch Changes

- Updated dependencies:
- @itwin/presentation-components@5.6.1

## 5.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/presentation-testing",
"version": "5.1.1",
"version": "5.1.2",
"description": "Testing utilities for iTwin.js Presentation library",
"license": "MIT",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/unified-selection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @itwin/unified-selection

## 1.1.2

### Patch Changes

- Updated dependencies:
- @itwin/presentation-shared@1.2.0

## 1.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/unified-selection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/unified-selection",
"version": "1.1.1",
"version": "1.1.2",
"description": "Package for managing unified selection in iTwin.js applications.",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit e0d3176

Please sign in to comment.