Skip to content

Releases: iTwin/changed-elements-react

@itwin/changed-elements-react@0.14.8

14 Mar 18:07
7e663ea

Choose a tag to compare

Patch Changes

0.14.8 - 2025-03-14

Fix vitest and axios vulnerabilities

@itwin/changed-elements-react@0.14.7

25 Feb 20:42
9b14743

Choose a tag to compare

Patch Changes

0.14.7 - 2025-02-25

Updates :

  • tweaked on hover color for action btn
  • changed info button icon

@itwin/changed-elements-react@0.14.6

21 Feb 21:16
eac70f6

Choose a tag to compare

Patch Changes

0.14.6 - 2025-02-21

UI Updates

  • Updated text to be more informative for no named versions present in imodel

@itwin/changed-elements-react@0.14.5

20 Feb 17:04
a783937

Choose a tag to compare

Patch Changes

0.14.5 - 2025-02-20

  • Updated font weights for current and target strings in namedVersion selector

@itwin/changed-elements-react@0.14.4

19 Feb 23:18
29ccd4e

Choose a tag to compare

Patch Changes

0.14.4 - 2025-02-19

Fixes:

  • non experimental widget init state so it will no longer forever load

@itwin/changed-elements-react@0.14.3

19 Feb 18:48
11ec36a

Choose a tag to compare

Patch Changes

0.14.3 - 2025-02-19

UI tweaks for:

  • Font size, weight, and style
  • Property comparison table coloring changes per row
  • Updated colors for elements in tree (squares)

Fixes:

  • Forever loading in the elements tree when backing out of property comparison (experimental widget only bug)

@itwin/changed-elements-react@0.14.2

14 Feb 17:27
d6b4d7a

Choose a tag to compare

Patch Changes

0.14.2 - 2025-02-14

  • Updates the new experimental widget's font weight and font size.
  • Updates the current and target comparison header info to now be shown on the comparison tree widget.
  • Fixes the filter box to fit the content, getting rid of the horizontal scroll bar.

@itwin/changed-elements-react@0.14.1

05 Feb 15:06
46ea9c8

Choose a tag to compare

Patch Changes

0.14.1 - 2025-02-05

-Fixes NamedVersionSelectorWidget showing loading and spinning forever when no named version present.

-Fixes default dialog being shown for NamedVersionSelectorWidget when comparison is started. Now we show the proper loading state with spinner instead of "no comparison loaded".

@itwin/changed-elements-react@0.14.0

03 Feb 22:03
529a483

Choose a tag to compare

Minor Changes

0.14.0 - 2025-02-03

export type V2DialogProviderProps = {
  children: React.ReactNode;
  // Optional. When enabled will toast messages regarding job status. If not defined will default to false and will not show toasts.
  enableComparisonJobUpdateToasts?: boolean;
  /** On Job Update
 * Optional. a call back function for handling job updates.
 * @param comparisonJobUpdateType param for the type of update:
 *  - "JobComplete" = invoked when job is completed
 *  - "JobError" = invoked on job error
 *  - "JobProcessing" = invoked on job is started
 *  - "ComparisonVisualizationStarting" = invoked on when version compare visualization is starting
 * @param toaster from iTwin Ui's useToaster hook. This is necessary for showing toast messages.
 * @param jobAndNamedVersion param contain job and named version info to be passed to call back
*/
  onJobUpdate?: (comparisonJobUpdateType: ComparisonJobUpdateType, toaster: ReturnType<typeof useToaster> ,jobAndNamedVersions?: JobAndNamedVersions) => Promise<void>;
};

Toaster is no longer an exported member from iTwin UI 3.x.x. UseToaster is now required to be called in the callee of V2Dialog for onJobUpdate.

import { useToaster } from "@itwin/itwinui-react";
const toaster = useToaster();
onJobUpdate(comparisonEventType, toaster, jobAndNamedVersions);

@itwin/changed-elements-react@0.13.0

03 Feb 16:44
55875bc

Choose a tag to compare

Minor Changes

0.13.0 - 2025-02-03

Updated Dependencies:

  • appUi updated to 5.x.x
  • itwinUi updated to 3.x.x
    Important Notice: These updates may cause breaking changes if consumers of this package have not yet updated to the latest versions of these dependencies. Please ensure that you have updated your dependencies to avoid any potential issues.

Updated interface for :
ToastComparisonJobCompleteArgs.

export type Toaster = ReturnType<typeof useToaster>;
export type ToastComparisonJobCompleteArgs = {
  comparisonJob: ComparisonJobCompleted;
  comparisonJobClient: IComparisonJobClient;
  iModelConnection: IModelConnection;
  targetVersion: NamedVersion;
  currentVersion: NamedVersion;
  getToastsEnabled?: () => boolean;
  runOnJobUpdate?: (comparisonEventType: ComparisonJobUpdateType, jobAndNamedVersions?: JobAndNamedVersions) => Promise<void>;
  iModelsClient: IModelsClient;
  toaster: Toaster;
};