hunk.code_window:                     assertArrayEquals(
                               new DatasourceStructure.Template[]{
                                       new DatasourceStructure.Template("SELECT", "SELECT * FROM public.\"users\" LIMIT 10;"),
                                       new DatasourceStructure.Template("INSERT", "INSERT INTO public.\"users\" (\"username\", \"password\", \"email\", \"spouse_dob\", \"dob\", \"time1\", \"time_tz\", \"created_on\", \"created_on_tz\", \"interval1\")\n" +
                                               "  VALUES ('', '', '', '2019-07-01', '2019-07-01', '18:32:45', '04:05:06 PST', TIMESTAMP '2019-07-01 10:00:00', TIMESTAMP WITH TIME ZONE '2019-07-01 06:30:00 CET', 1);"),
                                       new DatasourceStructure.Template("UPDATE", "UPDATE public.\"users\" SET\n" +
                                               "    \"username\" = ''\n" +
                                               "    \"password\" = ''\n" +
                                               "    \"email\" = ''\n" +
                                               "    \"spouse_dob\" = '2019-07-01'\n" +
  
hunk.labels: keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:                                     new DatasourceStructure.Template("INSERT", "INSERT INTO public.\"users\" (\"username\", \"password\", \"email\", \"spouse_dob\", \"dob\", \"time1\", \"time_tz\", \"created_on\", \"created_on_tz\", \"interval1\", \"numbers\", \"texts\")\n" +
                                               "  VALUES ('', '', '', '2019-07-01', '2019-07-01', '18:32:45', '04:05:06 PST', TIMESTAMP '2019-07-01 10:00:00', TIMESTAMP WITH TIME ZONE '2019-07-01 06:30:00 CET', 1, '{1, 2, 3}', '{\"first\", \"second\"}');"),
  
hunk.file_path: app/server/appsmith-plugins/postgresPlugin/src/test/java/com/external/plugins/PostgresPluginTest.java
hunk.type: replace
file: import React, { lazy, Suspense } from "react";
  import BaseWidget, { WidgetProps, WidgetState } from "./BaseWidget";
  import { WidgetType } from "constants/WidgetConstants";
  import { EventType } from "constants/ActionConstants";
  import { WidgetPropertyValidationType } from "utils/WidgetValidation";
  import { VALIDATION_TYPES } from "constants/WidgetValidation";
  import {
    TriggerPropertiesMap,
    DerivedPropertiesMap,
  } from "utils/WidgetFactory";
  import Skeleton from "components/utils/Skeleton";
  import * as Sentry from "@sentry/react";
  import { retryPromise } from "utils/AppsmithUtils";
  import withMeta, { WithMeta } from "./MetaHOC";
  
  const RichTextEditorComponent = lazy(() =>
    retryPromise(() =>
      import(
        /* webpackChunkName: "rte",webpackPrefetch: 2 */ "components/designSystems/appsmith/RichTextEditorComponent"
      ),
    ),
  );
  
  class RichTextEditorWidget extends BaseWidget<
    RichTextEditorWidgetProps,
    WidgetState
  > {
    static getPropertyValidationMap(): WidgetPropertyValidationType {
      return {
        text: VALIDATION_TYPES.TEXT,
        placeholder: VALIDATION_TYPES.TEXT,
        defaultValue: VALIDATION_TYPES.TEXT,
        isDisabled: VALIDATION_TYPES.BOOLEAN,
        isVisible: VALIDATION_TYPES.BOOLEAN,
        // onTextChange: VALIDATION_TYPES.ACTION_SELECTOR,
      };
    }
  
    static getTriggerPropertyMap(): TriggerPropertiesMap {
      return {
        onTextChange: true,
      };
    }
  
    static getMetaPropertiesMap(): Record<string, any> {
      return {
        text: undefined,
      };
    }
  
    static getDefaultPropertiesMap(): Record<string, string> {
      return {
        text: "defaultText",
      };
    }
  
    static getDerivedPropertiesMap(): DerivedPropertiesMap {
      return {
        value: `{{this.text}}`,
      };
    }
  
    onValueChange = (text: string) => {
      this.props.updateWidgetMetaProperty("text", text, {
        dynamicString: this.props.onTextChange,
        event: {
          type: EventType.ON_TEXT_CHANGE,
        },
      });
    };
  
    getPageView() {
      return (
        <Suspense fallback={<Skeleton />}>
          <RichTextEditorComponent
            onValueChange={this.onValueChange}
            defaultValue={this.props.text || ""}
            widgetId={this.props.widgetId}
            placeholder={this.props.placeholder}
            key={this.props.widgetId}
            isDisabled={this.props.isDisabled}
            isVisible={this.props.isVisible}
          />
        </Suspense>
      );
    }
  
    getWidgetType(): WidgetType {
      return "RICH_TEXT_EDITOR_WIDGET";
    }
  }
  
  export interface RichTextEditorWidgetProps extends WidgetProps, WithMeta {
    defaultText?: string;
    text?: string;
    placeholder?: string;
    onTextChange?: string;
    isDisabled?: boolean;
    isVisible?: boolean;
  }
  
  export default RichTextEditorWidget;
  export const ProfiledRichTextEditorWidget = Sentry.withProfiler(
    withMeta(RichTextEditorWidget),
  );
  