0.6.1 • Published 11 days ago

@itwin/changed-elements-react v0.6.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

@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

npm 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.
  2. Provide <VersionCompareContext /> somewhere in your app.

      <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. Mount <VersionCompareSelectComponent /> to begin version comparison worflow by selecting iModel versions to compare. You should also add a button in your UI that calls VersionCompare.manager.stopComparison().

  5. <ChangedElementsWidget /> React component lets users inspect differences in properties between versions, generate reports, search for changed elements, and control element visibility.
  6. <PropertyComparisonTable /> React component lists properties of a selected element and displays how they changed between two versions.

Contributing

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


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

0.6.1

11 days ago

0.6.0

1 month ago

0.5.0

1 month ago

0.4.0

1 month ago

0.3.11

2 months ago

0.3.10

3 months ago

0.3.8

3 months ago

0.3.7

3 months ago

0.3.6

3 months ago

0.3.5

3 months ago

0.3.4

5 months ago

0.3.0

9 months ago

0.2.0

10 months ago

0.3.2

8 months ago

0.3.1

9 months ago

0.3.3

7 months ago

0.1.0

11 months ago