hunk.code_window:       prevProps.flattenedChildCanvasWidgets;
       this.pageSize = this.getPageSize();
       if (this.shouldUpdatePageSize()) {
         this.updatePageSize();
  
hunk.labels: keep keep keep keep replace keep
hunk.after_edit:     if (this.shouldUpdatePageSize() && this.pageSizeUpdated) {
  
hunk.file_path: app/client/src/widgets/ListWidgetV2/widget/index.tsx
hunk.type: replace
file: import { SSHKeyType } from "actions/gitSyncActions";
  export type SupportedKeyType = SSHKeyType & {
    text: string;
    generated: boolean;
  };
  
  /**
   * supportedKeyTypeList returns list of supported key types and releated data
   * @param keys {SSHKeyType[]}
   * @param generatedKeyType {string}
   * @returns {SupportedKeyType[]}
   */
  export function supportedKeyTypeList(
    keys: SSHKeyType[],
    generatedKeyType: string,
  ): SupportedKeyType[] {
    return keys
      .sort((a, b) => a.protocolName.localeCompare(b.protocolName))
      .map((key: SSHKeyType) => ({
        ...key,
        text: `${key.protocolName} ${key.keySize}`,
        generated: key.protocolName === generatedKeyType,
      }));
  }
  