Skip to content

Releases: iTwin/changed-elements-react

@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>
  );
}

@itwin/[email protected]

22 Jan 16:52
65a9df1
Compare
Choose a tag to compare

Patch Changes

0.12.1 - 2025-01-22

Fixed the issue with a model where the loading spinner appears if no named versions are available. Now, a message lets the user know if named versions are unavailable.

@itwin/[email protected]

22 Jan 16:37
7d2cba5
Compare
Choose a tag to compare

Minor Changes

0.12.0 - 2025-01-22

  • Added experimental React component for the new Named Version selector. Its name or API is not stable yet, but you can try it out the following way.

    import { NamedVersionSelectorWidget } from "@itwin/changed-elements-react/experimental";
    
    [...]
    
      return (
        <VersionCompareContext iModelsClient={iModelsClient}>
          <NamedVersionSelectorWidget iModel={iModel} />
        </VersionCompareContext>
      );
    }

@itwin/[email protected]

10 Dec 19:15
Compare
Choose a tag to compare

Fixes

  • Fix ES module imports not specifying script file extensions
  • Fixed model toggle when hide all is on. When hide all is on and a model is toggled on we would show only unchanged elements for that model and not all changed elements for given model.
  • Fix the following console warnings in development environment
    • Receiving invalid property when mounting <ChangedElementsWidget /> with V2 version selector
    • Receiving invalid list ref when displaying changed elements list
    • checked checkbox property not being accompanied by onChange event handler when rendering element filters popup

@itwin/[email protected]

06 Nov 16:10
Compare
Choose a tag to compare

0.11.3 - 2024-11-6

Fixes

  • Fixed emphasized elements(EE) not being respected when version compare is stopped. Now (version compare)VC restores EE that were present before VC is run.

@itwin/[email protected]

29 Oct 16:30
Compare
Choose a tag to compare

0.11.2 - 2024-10-29

Fixes

  • Fixed color issues for feedback btn text

@itwin/[email protected]

16 Oct 16:07
Compare
Choose a tag to compare

Fixes

  • Fix change report generation failures