npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@itwin/changed-elements-react

v1.0.0

Published

## About

Readme

@itwin/changed-elements-react

About

This package provides React components that help implement iTwin version comparison workflows. These components are designed to communicate with iTwin Platform Changed Elements API, which is used to retrieve data about iModel change history.

Installation

pnpm install @itwin/changed-elements-react

Usage

To begin using this package in your application, you will need to:

  1. Add changedelements:read and changedelements:modify OAuth scopes to your iTwin Platform application App Setup.

  2. Provide <VersionCompareContext /> somewhere in your app.

    import { VersionCompareContext } from "@itwin/changed-elements-react";
    
    <VersionCompareContext iModelsClient={iTwinIModelsClient}>
      <App />
    </VersionCompareContext>
  3. Initialize Version Compare module at application startup. This only needs to be done once.

    import { VersionCompare } from "@itwin/changed-elements-react";
    
    VersionCompare.initialize({
      ... // Look at VersionCompareOptions interface for documentaton about the options
    });
  4. The <ChangedElementsWidget /> React component lets users inspect differences in properties between versions, generate reports, search for changed elements, and control element visibility. The following code shows an example widget initialization (does not show off all props).

    import { ChangedElementsWidget } from "@itwin/changed-elements-react";
    
    <ChangedElementsWidget
      useV2Widget
      feedbackUrl="https://example.com"
      iModelConnection={UiFramework.getIModelConnection()}
      enableComparisonJobUpdateToasts
      manageNamedVersionsSlot={<ManageNamedVersions />}
      documentationHref="https://example.com"
    />,
  5. The <NamedVersionSelectorWidget /> is an experimental React component that lets users inspect differences in properties between versions, generate reports, search for changed elements, and control element visibility. The following code shows an example widget initialization (does not show off all props).

    import { NamedVersionSelectorWidget } from "@itwin/changed-elements-react";
    
    <NamedVersionSelectorWidget
      iModel={iModel}
      manager={VersionCompare.manager}
      manageVersions={<ManageNamedVersions />}
      feedbackUrl="https://example.com"
      documentationHref="https://example.com"
    />
  6. The <PropertyComparisonTable /> React component lists properties of a selected element and displays how they changed between two versions.

    import { PropertyComparisonTable } from "@itwin/changed-elements-react";
    
    <PropertyComparisonTable
      manager={versionCompareManager}
      selection={selection}
      isSideBySide={false}
      displaySideBySideToggle={true}
      onSideBySideToggle={() => {
        // handle toggle logic here
      }}
    />

Contributing

Issues

We welcome contributions to make this package better. You can submit feature requests or report bugs by creating an issue.

Versioning with Changesets

This repository uses Changesets to manage package versioning and changelogs. When making changes that affect the public API or behavior, please add a changeset by running:

pnpm changeset

Follow the prompts to describe your changes and select the appropriate version bump (major, minor, or patch). Versioning should follow semver conventions. If no version bump is required (such as for documentation-only changes), use pnpm changeset --empty.

When changesets are added and merged into the main branch, a release pull request (PR) will be automatically created by the Changesets GitHub Action. This PR will contain the version updates and changelog entries generated from your changesets. Review the release PR to ensure the version bumps and changelog messages are accurate before merging. Once the release PR is merged, the new package version will be published automatically.

For more details, see the Changesets documentation.


Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.