hunk.code_window:   }
     componentDidMount() {
       this.pageSize = this.getPageSize();
       if (this.shouldUpdatePageSize()) {
         this.updatePageSize();
       }
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:     if (this.props.pageSize === this.pageSize) {
         this.pageSizeUpdated = true;
       }
       if (this.shouldUpdatePageSize() && !this.pageSizeUpdated) {
  
hunk.file_path: app/client/src/widgets/ListWidgetV2/widget/index.tsx
hunk.type: replace
file: import { WidgetProps } from "widgets/BaseWidget";
  import { Alignment } from "@blueprintjs/core";
  import { IconName } from "@blueprintjs/icons";
  import { ButtonPlacement } from "components/constants";
  
  export interface CodeScannerWidgetProps extends WidgetProps {
    label: string;
    isDisabled: boolean;
    tooltip?: string;
    onCodeDetected?: string;
    buttonColor: string;
    borderRadius: string;
    boxShadow?: string;
    iconName?: IconName;
    iconAlign?: Alignment;
    placement?: ButtonPlacement;
    scannerLayout: ScannerLayout;
  }
  
  export enum ScannerLayout {
    ALWAYS_ON = "ALWAYS_ON",
    CLICK_TO_SCAN = "CLICK_TO_SCAN",
  }
  