Skip to content

Releases: iTwin/changed-elements-react

@itwin/[email protected]

25 Feb 20:42
9b14743
Compare
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/[email protected]

21 Feb 21:16
eac70f6
Compare
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/[email protected]

20 Feb 17:04
a783937
Compare
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/[email protected]

19 Feb 23:18
29ccd4e
Compare
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/[email protected]

19 Feb 18:48
11ec36a
Compare
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/[email protected]

14 Feb 17:27
d6b4d7a
Compare
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/[email protected]

05 Feb 15:06
46ea9c8
Compare
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/[email protected]

03 Feb 22:03
529a483
Compare
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/[email protected]

03 Feb 16:44
55875bc
Compare
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;
};

@itwin/[email protected]

28 Jan 19:45
5984e6e
Compare
Choose a tag to compare

Patch Changes

0.12.2 - 2025-01-28

Added a feedback button to the experimental UI and fixed the spacing on named versions in the new widget list.
Import moved for experimental UI. As previous way of importing did not work.
Marked new component as a alpha and and subject to change.

import { NamedVersionSelectorWidget } from "@itwin/changed-elements-react";

[...]

  return (
    <VersionCompareContext iModelsClient={iModelsClient}>
      <NamedVersionSelectorWidget iModel={iModel} />
    </VersionCompareContext>
  );
}